@nexeraid/identity-schemas 1.12.22-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.
Files changed (80) hide show
  1. package/dist/chainalysis.schema-9e5926b9.esm.js +2316 -0
  2. package/dist/chainalysis.schema-a9079d73.cjs.prod.js +2582 -0
  3. package/dist/chainalysis.schema-ab6cda47.cjs.dev.js +2582 -0
  4. package/dist/declarations/src/index.d.ts +4 -4
  5. package/dist/declarations/src/index.d.ts.map +1 -1
  6. package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts +1735 -0
  7. package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts.map +1 -0
  8. package/dist/declarations/src/providers/chainalysis/chainalysis.schema.d.ts +759 -0
  9. package/dist/declarations/src/providers/chainalysis/chainalysis.schema.d.ts.map +1 -0
  10. package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts +5735 -0
  11. package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts.map +1 -0
  12. package/dist/declarations/src/providers/customers.schema.d.ts +92 -0
  13. package/dist/declarations/src/providers/customers.schema.d.ts.map +1 -0
  14. package/dist/declarations/src/providers/index.d.ts +16 -0
  15. package/dist/declarations/src/providers/index.d.ts.map +1 -0
  16. package/dist/declarations/src/providers/ipquality/ipquality.schema.d.ts +1582 -0
  17. package/dist/declarations/src/providers/ipquality/ipquality.schema.d.ts.map +1 -0
  18. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts +307 -0
  19. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts.map +1 -0
  20. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +969 -0
  21. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -0
  22. package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +604 -0
  23. package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts.map +1 -0
  24. package/dist/declarations/src/providers/provider.schema.d.ts +10861 -0
  25. package/dist/declarations/src/providers/provider.schema.d.ts.map +1 -0
  26. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +3991 -0
  27. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts.map +1 -0
  28. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +6460 -0
  29. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts.map +1 -0
  30. package/dist/declarations/src/providers/sumsub/sumsub-reject.schema.d.ts +12 -0
  31. package/dist/declarations/src/providers/sumsub/sumsub-reject.schema.d.ts.map +1 -0
  32. package/dist/declarations/src/providers/sumsub/sumsub-webhooks.schema.d.ts +187 -0
  33. package/dist/declarations/src/providers/sumsub/sumsub-webhooks.schema.d.ts.map +1 -0
  34. package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts +314 -0
  35. package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts.map +1 -0
  36. package/dist/declarations/src/providers/synaps/synaps.schema.d.ts +4071 -0
  37. package/dist/declarations/src/providers/synaps/synaps.schema.d.ts.map +1 -0
  38. package/dist/declarations/src/webhooks/alert.schema.d.ts +98 -0
  39. package/dist/declarations/src/webhooks/alert.schema.d.ts.map +1 -0
  40. package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts +43 -0
  41. package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts.map +1 -0
  42. package/dist/declarations/src/webhooks/customer.webhooks.schema.d.ts +479 -0
  43. package/dist/declarations/src/webhooks/customer.webhooks.schema.d.ts.map +1 -0
  44. package/dist/declarations/src/webhooks/index.d.ts +7 -0
  45. package/dist/declarations/src/webhooks/index.d.ts.map +1 -0
  46. package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts +195 -0
  47. package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts.map +1 -0
  48. package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +12605 -0
  49. package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts.map +1 -0
  50. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +53321 -0
  51. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -0
  52. package/dist/{frontend-utilities.schema-c327466a.cjs.prod.js → frontend-utilities.schema-9951d168.cjs.prod.js} +1 -1
  53. package/dist/{frontend-utilities.schema-1699cc67.esm.js → frontend-utilities.schema-c150e92a.esm.js} +1 -1
  54. package/dist/{frontend-utilities.schema-9b6dbb5e.cjs.dev.js → frontend-utilities.schema-c3ccca7b.cjs.dev.js} +1 -1
  55. package/dist/{identity-api.schema-6c0e3df3.cjs.prod.js → identity-api.schema-181d93d3.cjs.prod.js} +1266 -1271
  56. package/dist/{identity-api.schema-b7ca0eb2.esm.js → identity-api.schema-2df73bbd.esm.js} +1265 -1272
  57. package/dist/{identity-api.schema-5be99363.cjs.dev.js → identity-api.schema-8832ddec.cjs.dev.js} +1266 -1271
  58. package/dist/nexeraid-identity-schemas.cjs.dev.js +2 -2
  59. package/dist/nexeraid-identity-schemas.cjs.prod.js +2 -2
  60. package/dist/nexeraid-identity-schemas.esm.js +3 -3
  61. package/dist/package.json +15 -3
  62. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -1
  63. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -1
  64. package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
  65. package/package.json +15 -3
  66. package/providers/dist/nexeraid-identity-schemas-providers.cjs.d.ts +2 -0
  67. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +276 -0
  68. package/providers/dist/nexeraid-identity-schemas-providers.cjs.js +7 -0
  69. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +276 -0
  70. package/providers/dist/nexeraid-identity-schemas-providers.esm.js +4 -0
  71. package/providers/package.json +4 -0
  72. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
  73. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
  74. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
  75. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.d.ts +2 -0
  76. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +662 -0
  77. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.js +7 -0
  78. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +662 -0
  79. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +580 -0
  80. package/webhooks/package.json +4 -0
@@ -3,923 +3,380 @@
3
3
  var zod = require('zod');
4
4
  var nanoid = require('nanoid');
5
5
 
6
- var ID3CredentialSubjectSchema = zod.z.object({
7
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
8
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
9
- amendmentsData: zod.z.object({
10
- data: zod.z.object({
11
- citizenship: zod.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(),
12
- documentType: zod.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(),
13
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
14
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
15
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
16
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
17
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
18
- birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
19
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
20
- countryOfResidence: zod.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(),
21
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
22
- city: zod.z.string().describe("City of the credential subject").optional(),
23
- province: zod.z.string().describe("Province of the credential subject").optional(),
24
- postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
25
- emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
26
- phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
27
- countryOfBirth: zod.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(),
28
- middleName: zod.z.string().describe("Middle name of the credential subject").optional()
29
- }).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
30
- authenticateSPResult: zod.z.object({
31
- AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
32
- Timestamp: zod.z.string().datetime().describe("The timestamp of the authentication request").optional(),
33
- CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
34
- ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
35
- ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
36
- ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
37
- ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
38
- ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
39
- ResultCodes: zod.z.object({
40
- GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
41
- Name: zod.z.string().optional(),
42
- Description: zod.z.string().optional(),
43
- Comment: zod.z.object({
44
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
45
- Description: zod.z.string().optional(),
46
- Code: zod.z.number()["int"]().optional()
47
- })).optional()
48
- }).optional(),
49
- Match: zod.z.object({
50
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
51
- Description: zod.z.string().optional(),
52
- Code: zod.z.number()["int"]().optional()
53
- })).optional()
54
- }).optional(),
55
- Warning: zod.z.object({
56
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
57
- Description: zod.z.string().optional(),
58
- Code: zod.z.number()["int"]().optional()
59
- })).optional()
60
- }).optional(),
61
- Mismatch: zod.z.object({
62
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
63
- Description: zod.z.string().optional(),
64
- Code: zod.z.number()["int"]().optional()
65
- })).optional()
66
- }).optional(),
67
- ID: zod.z.number()["int"]().optional(),
68
- Pass: zod.z.string().optional(),
69
- Address: zod.z.string().optional(),
70
- Forename: zod.z.string().optional(),
71
- Surname: zod.z.string().optional(),
72
- DOB: zod.z.string().optional(),
73
- Alert: zod.z.string().optional(),
74
- SanctionsMatches: zod.z.object({
75
- GlobalSanctionsMatch: zod.z.array(zod.z.object({
76
- SanctionID: zod.z.string().optional(),
77
- Url: zod.z.string().optional(),
78
- Rank: zod.z.number()["int"]().optional(),
79
- CaseID: zod.z.string().optional(),
80
- SearchID: zod.z.string().optional()
81
- })).optional()
82
- }).optional()
83
- })).optional()
84
- }).describe("The result codes of the authentication request").optional(),
85
- Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
86
- BandText: zod.z.string().describe("The band text of the authentication request").optional(),
87
- Country: zod.z.string().describe("Country type of the authentication request").optional(),
88
- ItemCheckDecisionBands: zod.z.object({
89
- GlobalItemCheckDecisionBands: zod.z.array(zod.z.object({
90
- ID: zod.z.number()["int"]().optional(),
91
- BandScore: zod.z.number()["int"]().optional(),
92
- BandText: zod.z.string().optional()
93
- })).optional()
94
- }).describe("The item check decision bands of the authentication request").optional()
95
- }).describe("Result of the authentication request").optional(),
96
- pepIntelligenceResult: zod.z.array(zod.z.object({
97
- Fullname: zod.z.string().optional(),
98
- Aliases: zod.z.object({
99
- elements: zod.z.array(zod.z.string()).optional()
100
- }).optional(),
101
- SanctionsAddresses: zod.z.object({
102
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
103
- AddressLine: zod.z.string().optional(),
104
- City: zod.z.string().optional(),
105
- Country: zod.z.string().describe("Full name of country").optional(),
106
- Region: zod.z.string().optional()
107
- })).optional()
108
- }).optional(),
109
- SanctionsDates: zod.z.object({
110
- GlobalSanctionsDate: zod.z.object({
111
- DateType: zod.z.string().optional(),
112
- Day: zod.z.number()["int"]().optional(),
113
- Month: zod.z.number()["int"]().optional(),
114
- Year: zod.z.number()["int"]().optional()
115
- }).optional()
116
- }).optional(),
117
- IdentityInformation: zod.z.string().optional(),
118
- SanctionsPositions: zod.z.object({
119
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
120
- Position: zod.z.string().optional(),
121
- Country: zod.z.string().optional()
122
- })).optional()
123
- }).optional()
124
- })).optional(),
125
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
126
- Fullname: zod.z.string().optional(),
127
- SanctionsBodies: zod.z.object({
128
- elements: zod.z.array(zod.z.number()["int"]()).optional()
129
- }).optional(),
130
- Aliases: zod.z.object({
131
- elements: zod.z.array(zod.z.string()).optional()
132
- }).optional(),
133
- SanctionsAddresses: zod.z.object({
134
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
135
- AddressLine: zod.z.string().optional(),
136
- City: zod.z.string().optional(),
137
- Country: zod.z.string().describe("Full name of country").optional(),
138
- Region: zod.z.string().optional()
139
- })).optional()
140
- }).optional(),
141
- SanctionsDates: zod.z.object({
142
- GlobalSanctionsDate: zod.z.object({
143
- DateType: zod.z.string().optional(),
144
- Day: zod.z.number()["int"]().optional(),
145
- Month: zod.z.number()["int"]().optional(),
146
- Year: zod.z.number()["int"]().optional()
147
- }).optional()
148
- }).optional(),
149
- IdentityInformation: zod.z.string().optional()
150
- })).optional()
151
- }).describe("Details related to the amendments made to the original data."),
152
- originalData: zod.z.object({
153
- data: zod.z.object({
154
- citizenship: zod.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(),
155
- documentType: zod.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(),
156
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
157
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
158
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
159
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
160
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
161
- birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
162
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
163
- countryOfResidence: zod.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(),
164
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
165
- city: zod.z.string().describe("City of the credential subject").optional(),
166
- province: zod.z.string().describe("Province of the credential subject").optional(),
167
- postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
168
- emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
169
- phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
170
- countryOfBirth: zod.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(),
171
- middleName: zod.z.string().describe("Middle name of the credential subject").optional()
172
- }).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
173
- authenticateSPResult: zod.z.object({
174
- AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
175
- Timestamp: zod.z.string().datetime().describe("The date and time of the authentication request").optional(),
176
- CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
177
- ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
178
- ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
179
- ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
180
- ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
181
- ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
182
- ResultCodes: zod.z.object({
183
- GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
184
- Name: zod.z.string().optional(),
185
- Description: zod.z.string().optional(),
186
- Comment: zod.z.object({
187
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
188
- Description: zod.z.string().optional(),
189
- Code: zod.z.number()["int"]().optional()
190
- })).optional()
191
- }).optional(),
192
- Match: zod.z.object({
193
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
194
- Description: zod.z.string().optional(),
195
- Code: zod.z.number()["int"]().optional()
196
- })).optional()
197
- }).optional(),
198
- Warning: zod.z.object({
199
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
200
- Description: zod.z.string().optional(),
201
- Code: zod.z.number()["int"]().optional()
202
- })).optional()
203
- }).optional(),
204
- Mismatch: zod.z.object({
205
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
206
- Description: zod.z.string().optional(),
207
- Code: zod.z.number()["int"]().optional()
208
- })).optional()
209
- }).optional(),
210
- ID: zod.z.number()["int"]().optional(),
211
- Pass: zod.z.string().optional(),
212
- Address: zod.z.string().optional(),
213
- Forename: zod.z.string().optional(),
214
- Surname: zod.z.string().optional(),
215
- DOB: zod.z.string().optional(),
216
- Alert: zod.z.string().optional(),
217
- SanctionsMatches: zod.z.object({
218
- GlobalSanctionsMatch: zod.z.array(zod.z.object({
219
- SanctionID: zod.z.string().optional(),
220
- Url: zod.z.string().optional(),
221
- Rank: zod.z.number()["int"]().optional(),
222
- CaseID: zod.z.string().optional(),
223
- SearchID: zod.z.string().optional()
224
- })).optional()
225
- }).optional()
226
- })).optional()
227
- }).describe("The result codes of the authentication request").optional(),
228
- Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
229
- BandText: zod.z.string().describe("The band text of the authentication request").optional(),
230
- Country: zod.z.string().describe("The country type of the authentication request").optional()
231
- }).describe("The result of the Authenticate SP check").optional(),
232
- pepIntelligenceResult: zod.z.array(zod.z.object({
233
- Fullname: zod.z.string().optional(),
234
- Aliases: zod.z.object({
235
- elements: zod.z.array(zod.z.string()).optional()
236
- }).optional(),
237
- SanctionsAddresses: zod.z.object({
238
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
239
- AddressLine: zod.z.string().optional(),
240
- City: zod.z.string().optional(),
241
- Country: zod.z.string().describe("Full name of country").optional(),
242
- Region: zod.z.string().optional()
243
- })).optional()
244
- }).optional(),
245
- SanctionsDates: zod.z.object({
246
- GlobalSanctionsDate: zod.z.object({
247
- DateType: zod.z.string().optional(),
248
- Day: zod.z.number()["int"]().optional(),
249
- Month: zod.z.number()["int"]().optional(),
250
- Year: zod.z.number()["int"]().optional()
251
- }).optional()
252
- }).optional(),
253
- IdentityInformation: zod.z.string().optional(),
254
- SanctionsPositions: zod.z.object({
255
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
256
- Position: zod.z.string().optional(),
257
- Country: zod.z.string().optional()
258
- })).optional()
259
- }).optional()
260
- })).describe("The result of the PEP Intelligence check").optional(),
261
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
262
- Fullname: zod.z.string().optional(),
263
- SanctionsBodies: zod.z.object({
264
- elements: zod.z.array(zod.z.number()["int"]()).optional()
265
- }).optional(),
266
- Aliases: zod.z.object({
267
- elements: zod.z.array(zod.z.string()).optional()
268
- }).optional(),
269
- SanctionsAddresses: zod.z.object({
270
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
271
- AddressLine: zod.z.string().optional(),
272
- City: zod.z.string().optional(),
273
- Country: zod.z.string().describe("Full name of country").optional(),
274
- Region: zod.z.string().optional()
275
- })).optional()
276
- }).optional(),
277
- SanctionsDates: zod.z.object({
278
- GlobalSanctionsDate: zod.z.object({
279
- DateType: zod.z.string().optional(),
280
- Day: zod.z.number()["int"]().optional(),
281
- Month: zod.z.number()["int"]().optional(),
282
- Year: zod.z.number()["int"]().optional()
283
- }).optional()
284
- }).optional(),
285
- IdentityInformation: zod.z.string().optional()
286
- })).describe("The result of the Sanctions Enforcements check").optional()
287
- }).describe("Details related to the original data before any amendments"),
288
- personalDetails: zod.z.object({
289
- citizenship: zod.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(),
290
- documentType: zod.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(),
291
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
292
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
293
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
294
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
295
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
296
- birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
297
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
298
- countryOfResidence: zod.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(),
299
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
300
- city: zod.z.string().describe("City of the credential subject").optional(),
301
- province: zod.z.string().describe("Province of the credential subject").optional(),
302
- postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
303
- emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
304
- phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
305
- countryOfBirth: zod.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(),
306
- middleName: zod.z.string().describe("Middle name of the credential subject").optional()
307
- }).describe("Personal details of the credential subject")
308
- }).describe("Stores the data of the credential");
309
-
310
- var IDScanCredentialSubjectSchema = zod.z.object({
311
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
312
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
313
- highLevelResult: zod.z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
314
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
315
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
316
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
317
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
318
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
319
- citizenship: zod.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(),
320
- documentCategory: zod.z.string().describe("Category of the document provided by the credential subject").optional(),
321
- documentName: zod.z.string().describe("Name of the document provided by the credential subject").optional(),
322
- documentSide: zod.z["enum"](["Front", "Back"]).describe("Side of the document provided by the credential subject").optional(),
323
- documentType: zod.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(),
324
- entryDate: zod.z.string().describe("Entry date associated with the credential").optional(),
325
- entryTime: zod.z.string().describe("Entry time associated with the credential").optional(),
326
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
327
- addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
328
- addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
329
- birthDate: zod.z.string().describe("Date of birth of the credential subject").optional(),
330
- birthPlace: zod.z.string().nullable().optional(),
331
- highLevelResultDetails: zod.z.object({
332
- documentOverallValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
333
- documentBlockingPolicy: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
334
- documentExpiry: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
335
- documentSupport: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
336
- documentValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
337
- faceMatchValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
338
- accumulativeLivenessResult: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
339
- }).describe("Detailed results of the high level KYC check").optional(),
340
- faceMatchScore: zod.z.string().describe("Score for the face match validation").optional(),
341
- qualityCheckDetails: zod.z.array(zod.z.object({
342
- id: zod.z.string().describe("ID of the quality check item").optional(),
343
- title: zod.z.string().describe("Title of the quality check item").optional(),
344
- description: zod.z.string().describe("Description of the quality check item").optional(),
345
- state: zod.z.number()["int"]().describe("State of the quality check item").optional()
346
- }).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
347
- validationDetails: zod.z.array(zod.z.object({
348
- name: zod.z.string().describe("Name of the validation item").optional(),
349
- description: zod.z.string().describe("Detailed description of the validation item").optional(),
350
- result: zod.z.number()["int"]().describe("Result code of the validation").optional()
351
- }).describe("Details of a specific validation item")).describe("Details of the validation performed").optional()
352
- }).describe("Stores the data of the credential");
353
-
354
- var IDScanPassportCredentialSubjectSchema = zod.z.object({
355
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
356
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
357
- base64: zod.z.string().describe("Base64 encoded image of the passport image"),
358
- name: zod.z.string().describe("Name of the docuemnt (e.g. passport.jpg)"),
359
- documentType: zod.z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
360
- }).describe("Stores the data of the credential");
361
-
362
- var IDScanSelfieCredentialSubjectSchema = zod.z.object({
363
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
364
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
365
- base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
366
- name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
367
- documentType: zod.z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
368
- }).describe("Stores the data of the credential");
369
-
370
- var OLD_IDImageCredentialSubjectSchema = zod.z.object({
371
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
372
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
373
- base64: zod.z.string().describe("Base64 encoded image of the passport image"),
374
- name: zod.z.string().describe("Name of the document (e.g. passport.jpg)"),
375
- documentType: zod.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)"),
376
- mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)")
377
- }).describe("Stores the data of the credential");
378
-
379
- var OLD_IDInformationCredentialSubjectSchema = zod.z.object({
380
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
381
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
382
- highLevelResult: zod.z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
383
- highLevelResultDetails: zod.z.object({
384
- documentOverallValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
385
- documentBlockingPolicy: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
386
- documentExpiry: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
387
- documentSupport: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
388
- documentValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
389
- faceMatchValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
390
- accumulativeLivenessResult: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
391
- }).describe("Detailed results of the high level KYC check").optional(),
392
- faceMatchScore: zod.z.string().describe("Score for the face match validation").optional(),
393
- qualityCheckDetails: zod.z.array(zod.z.object({
394
- id: zod.z.string().describe("ID of the quality check item").optional(),
395
- title: zod.z.string().describe("Title of the quality check item").optional(),
396
- description: zod.z.string().describe("Description of the quality check item").optional(),
397
- state: zod.z.number()["int"]().describe("State of the quality check item").optional()
398
- }).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
399
- validationDetails: zod.z.array(zod.z.object({
400
- name: zod.z.string().describe("Name of the validation item").optional(),
401
- description: zod.z.string().describe("Detailed description of the validation item").optional(),
402
- result: zod.z.number()["int"]().describe("Result code of the validation").optional()
403
- }).describe("Details of a specific validation item")).describe("Details of the validation performed").optional(),
404
- documentCategory: zod.z.string().describe("Category of the document provided by the credential subject").optional(),
405
- documentName: zod.z.string().describe("Name of the document provided by the credential subject"),
406
- documentType: zod.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"),
407
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
408
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
409
- originalData: zod.z.object({
410
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
411
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
412
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
413
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
414
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
415
- citizenship: zod.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(),
416
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
417
- addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
418
- addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
419
- birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
420
- placeOfBirth: zod.z.string().nullable().describe("Place of birth of the credential subject").optional()
421
- }).describe("Original data extracted by the provider"),
422
- amendmentsData: zod.z.object({
423
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
424
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
425
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
426
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
427
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
428
- citizenship: zod.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(),
429
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
430
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
431
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
432
- birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
433
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
434
- countryOfBirth: zod.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()
435
- }).describe("Personal details manually amended by the holder/user during authentication process.")
436
- }).describe("Stores the data of the credential");
437
-
438
- var OLD_ProofOfResidenceCredentialSubjectSchema = zod.z.object({
439
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
440
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with").optional(),
441
- country: zod.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(),
442
- base64: zod.z.string().describe("Base64 encoded image of the proof of residence").optional(),
443
- name: zod.z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
444
- documentType: zod.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(),
445
- mediaType: zod.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(),
446
- county: zod.z.string().describe("The county of residence").optional(),
447
- city: zod.z.string().describe("The city of residence").optional(),
448
- streetName: zod.z.string().describe("The street name of residence").optional(),
449
- postalCode: zod.z.string().describe("The postal code of residence").optional()
450
- }).describe("Stores the data of the credential");
451
-
452
- var OLD_SelfieImageCredentialSubjectSchema = zod.z.object({
453
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
454
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
455
- base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
456
- name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
457
- mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)")
458
- }).describe("Stores the data of the credential");
459
-
460
- var OLD_AMLScreeningsResultsCredentialSubjectSchema = zod.z.object({
461
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
462
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
463
- amendmentsData: zod.z.object({
464
- data: zod.z.object({
465
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
466
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
467
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
468
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
469
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
470
- citizenship: zod.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(),
471
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
472
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
473
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
474
- birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
475
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
476
- countryOfResidence: zod.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(),
477
- city: zod.z.string().describe("City of the credential subject").optional(),
478
- province: zod.z.string().describe("Province of the credential subject").optional(),
479
- postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
480
- emailAddress: zod.z.string().email().describe("Email address of the credential subject").optional(),
481
- phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
482
- countryOfBirth: zod.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()
483
- }).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
484
- authenticateSPResult: zod.z.object({
485
- AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
486
- Timestamp: zod.z.string().datetime().describe("The timestamp of the authentication request").optional(),
487
- CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
488
- ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
489
- ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
490
- ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
491
- ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
492
- ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
493
- ResultCodes: zod.z.object({
494
- GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
495
- Name: zod.z.string().optional(),
496
- Description: zod.z.string().optional(),
497
- Comment: zod.z.object({
498
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
499
- Description: zod.z.string().optional(),
500
- Code: zod.z.number()["int"]().optional()
501
- })).optional()
502
- }).optional(),
503
- Match: zod.z.object({
504
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
505
- Description: zod.z.string().optional(),
506
- Code: zod.z.number()["int"]().optional()
507
- })).optional()
508
- }).optional(),
509
- Warning: zod.z.object({
510
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
511
- Description: zod.z.string().optional(),
512
- Code: zod.z.number()["int"]().optional()
513
- })).optional()
514
- }).optional(),
515
- Mismatch: zod.z.object({
516
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
517
- Description: zod.z.string().optional(),
518
- Code: zod.z.number()["int"]().optional()
519
- })).optional()
520
- }).optional(),
521
- ID: zod.z.number()["int"]().optional(),
522
- Pass: zod.z.string().optional(),
523
- Address: zod.z.string().optional(),
524
- Forename: zod.z.string().optional(),
525
- Surname: zod.z.string().optional(),
526
- DOB: zod.z.string().optional(),
527
- Alert: zod.z.string().optional(),
528
- SanctionsMatches: zod.z.object({
529
- GlobalSanctionsMatch: zod.z.array(zod.z.object({
530
- SanctionID: zod.z.string().optional(),
531
- Url: zod.z.string().optional(),
532
- Rank: zod.z.number()["int"]().optional(),
533
- CaseID: zod.z.string().optional(),
534
- SearchID: zod.z.string().optional()
535
- })).optional()
536
- }).optional()
537
- })).optional()
538
- }).describe("The result codes of the authentication request").optional(),
539
- Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
540
- BandText: zod.z.string().describe("The band text of the authentication request").optional(),
541
- Country: zod.z.string().describe("Country type of the authentication request").optional(),
542
- ItemCheckDecisionBands: zod.z.object({
543
- GlobalItemCheckDecisionBands: zod.z.array(zod.z.object({
544
- ID: zod.z.number()["int"]().optional(),
545
- BandScore: zod.z.number()["int"]().optional(),
546
- BandText: zod.z.string().optional()
547
- })).optional()
548
- }).describe("The item check decision bands of the authentication request").optional()
549
- }).describe("Result of the authentication request").optional(),
550
- pepIntelligenceResult: zod.z.array(zod.z.object({
551
- Fullname: zod.z.string().optional(),
552
- Aliases: zod.z.object({
553
- elements: zod.z.array(zod.z.string()).optional()
554
- }).optional(),
555
- SanctionsAddresses: zod.z.object({
556
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
557
- AddressLine: zod.z.string().optional(),
558
- City: zod.z.string().optional(),
559
- Country: zod.z.string().describe("Full name of country").optional(),
560
- Region: zod.z.string().optional()
561
- })).optional()
562
- }).optional(),
563
- SanctionsDates: zod.z.object({
564
- GlobalSanctionsDate: zod.z.object({
565
- DateType: zod.z.string().optional(),
566
- Day: zod.z.number()["int"]().optional(),
567
- Month: zod.z.number()["int"]().optional(),
568
- Year: zod.z.number()["int"]().optional()
569
- }).optional()
570
- }).optional(),
571
- IdentityInformation: zod.z.string().optional(),
572
- SanctionsPositions: zod.z.object({
573
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
574
- Position: zod.z.string().optional(),
575
- Country: zod.z.string().optional()
576
- })).optional()
577
- }).optional()
578
- })).optional(),
579
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
580
- Fullname: zod.z.string().optional(),
581
- SanctionsBodies: zod.z.object({
582
- elements: zod.z.array(zod.z.number()["int"]()).optional()
583
- }).optional(),
584
- Aliases: zod.z.object({
585
- elements: zod.z.array(zod.z.string()).optional()
586
- }).optional(),
587
- SanctionsAddresses: zod.z.object({
588
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
589
- AddressLine: zod.z.string().optional(),
590
- City: zod.z.string().optional(),
591
- Country: zod.z.string().describe("Full name of country").optional(),
592
- Region: zod.z.string().optional()
593
- })).optional()
594
- }).optional(),
595
- SanctionsDates: zod.z.object({
596
- GlobalSanctionsDate: zod.z.object({
597
- DateType: zod.z.string().optional(),
598
- Day: zod.z.number()["int"]().optional(),
599
- Month: zod.z.number()["int"]().optional(),
600
- Year: zod.z.number()["int"]().optional()
601
- }).optional()
602
- }).optional(),
603
- IdentityInformation: zod.z.string().optional()
604
- })).optional()
605
- }).describe("Details related to the amendments made to the original data."),
606
- originalData: zod.z.object({
607
- data: zod.z.object({
608
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
609
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
610
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
611
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
612
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
613
- citizenship: zod.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(),
614
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
615
- addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
616
- addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
617
- birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
618
- placeOfBirth: zod.z.string().nullable().optional()
619
- }).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
620
- authenticateSPResult: zod.z.object({
621
- AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
622
- Timestamp: zod.z.string().datetime().describe("The date and time of the authentication request").optional(),
623
- CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
624
- ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
625
- ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
626
- ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
627
- ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
628
- ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
629
- ResultCodes: zod.z.object({
630
- GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
631
- Name: zod.z.string().optional(),
632
- Description: zod.z.string().optional(),
633
- Comment: zod.z.object({
634
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
635
- Description: zod.z.string().optional(),
636
- Code: zod.z.number()["int"]().optional()
637
- })).optional()
638
- }).optional(),
639
- Match: zod.z.object({
640
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
641
- Description: zod.z.string().optional(),
642
- Code: zod.z.number()["int"]().optional()
643
- })).optional()
644
- }).optional(),
645
- Warning: zod.z.object({
646
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
647
- Description: zod.z.string().optional(),
648
- Code: zod.z.number()["int"]().optional()
649
- })).optional()
650
- }).optional(),
651
- Mismatch: zod.z.object({
652
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
653
- Description: zod.z.string().optional(),
654
- Code: zod.z.number()["int"]().optional()
655
- })).optional()
656
- }).optional(),
657
- ID: zod.z.number()["int"]().optional(),
658
- Pass: zod.z.string().optional(),
659
- Address: zod.z.string().optional(),
660
- Forename: zod.z.string().optional(),
661
- Surname: zod.z.string().optional(),
662
- DOB: zod.z.string().optional(),
663
- Alert: zod.z.string().optional(),
664
- SanctionsMatches: zod.z.object({
665
- GlobalSanctionsMatch: zod.z.array(zod.z.object({
666
- SanctionID: zod.z.string().optional(),
667
- Url: zod.z.string().optional(),
668
- Rank: zod.z.number()["int"]().optional(),
669
- CaseID: zod.z.string().optional(),
670
- SearchID: zod.z.string().optional()
671
- })).optional()
672
- }).optional()
673
- })).optional()
674
- }).describe("The result codes of the authentication request").optional(),
675
- Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
676
- BandText: zod.z.string().describe("The band text of the authentication request").optional(),
677
- Country: zod.z.string().describe("The country type of the authentication request").optional()
678
- }).describe("The result of the Authenticate SP check").optional(),
679
- pepIntelligenceResult: zod.z.array(zod.z.object({
680
- Fullname: zod.z.string().optional(),
681
- Aliases: zod.z.object({
682
- elements: zod.z.array(zod.z.string()).optional()
683
- }).optional(),
684
- SanctionsAddresses: zod.z.object({
685
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
686
- AddressLine: zod.z.string().optional(),
687
- City: zod.z.string().optional(),
688
- Country: zod.z.string().describe("Full name of country").optional(),
689
- Region: zod.z.string().optional()
690
- })).optional()
691
- }).optional(),
692
- SanctionsDates: zod.z.object({
693
- GlobalSanctionsDate: zod.z.object({
694
- DateType: zod.z.string().optional(),
695
- Day: zod.z.number()["int"]().optional(),
696
- Month: zod.z.number()["int"]().optional(),
697
- Year: zod.z.number()["int"]().optional()
698
- }).optional()
699
- }).optional(),
700
- IdentityInformation: zod.z.string().optional(),
701
- SanctionsPositions: zod.z.object({
702
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
703
- Position: zod.z.string().optional(),
704
- Country: zod.z.string().optional()
705
- })).optional()
706
- }).optional()
707
- })).describe("The result of the PEP Intelligence check").optional(),
708
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
709
- Fullname: zod.z.string().optional(),
710
- SanctionsBodies: zod.z.object({
711
- elements: zod.z.array(zod.z.number()["int"]()).optional()
712
- }).optional(),
713
- Aliases: zod.z.object({
714
- elements: zod.z.array(zod.z.string()).optional()
715
- }).optional(),
716
- SanctionsAddresses: zod.z.object({
717
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
718
- AddressLine: zod.z.string().optional(),
719
- City: zod.z.string().optional(),
720
- Country: zod.z.string().describe("Full name of country").optional(),
721
- Region: zod.z.string().optional()
722
- })).optional()
723
- }).optional(),
724
- SanctionsDates: zod.z.object({
725
- GlobalSanctionsDate: zod.z.object({
726
- DateType: zod.z.string().optional(),
727
- Day: zod.z.number()["int"]().optional(),
728
- Month: zod.z.number()["int"]().optional(),
729
- Year: zod.z.number()["int"]().optional()
730
- }).optional()
731
- }).optional(),
732
- IdentityInformation: zod.z.string().optional()
733
- })).describe("The result of the Sanctions Enforcements check").optional()
734
- }).describe("Details related to the original data before any amendments")
735
- }).describe("Stores the data of the credential");
6
+ function _toPrimitive(t, r) {
7
+ if ("object" != typeof t || !t) return t;
8
+ var e = t[Symbol.toPrimitive];
9
+ if (void 0 !== e) {
10
+ var i = e.call(t, r || "default");
11
+ if ("object" != typeof i) return i;
12
+ throw new TypeError("@@toPrimitive must return a primitive value.");
13
+ }
14
+ return ("string" === r ? String : Number)(t);
15
+ }
736
16
 
737
- var IDInformationCredentialSubjectSchema = zod.z.object({
738
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
739
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
740
- reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
741
- reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
742
- reviewRejectLabels: zod.z.array(zod.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(),
743
- documentType: zod.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"),
744
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
745
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
746
- personalData: zod.z.object({
747
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
748
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
749
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
750
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
751
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
752
- citizenship: zod.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(),
753
- country: zod.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(),
754
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
755
- birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
756
- countryOfBirth: zod.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(),
757
- stateOfBirth: zod.z.string().describe("State of birth of the credential subject").optional()
758
- }).describe("Original data extracted by the provider"),
759
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
760
- }).describe("Stores the data of the credential");
17
+ function _toPropertyKey(t) {
18
+ var i = _toPrimitive(t, "string");
19
+ return "symbol" == typeof i ? i : i + "";
20
+ }
761
21
 
762
- var IDImageCredentialSubjectSchema = zod.z.object({
763
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
764
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
765
- base64_front: zod.z.string().describe("Base64 encoded image of the front of the document"),
766
- base64_back: zod.z.string().describe("Base64 encoded image of the back of the document").optional(),
767
- name: zod.z.string().describe("Name of the document (e.g. passport.jpg)"),
768
- documentType: zod.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)"),
769
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
770
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
771
- mediaType_front: zod.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)"),
772
- mediaType_back: zod.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(),
773
- reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review answer from kyc provider"),
774
- reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
775
- reviewRejectLabels: zod.z.array(zod.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(),
776
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
777
- }).describe("Stores the data of the credential");
22
+ function _defineProperty(e, r, t) {
23
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
24
+ value: t,
25
+ enumerable: !0,
26
+ configurable: !0,
27
+ writable: !0
28
+ }) : e[r] = t, e;
29
+ }
778
30
 
779
- var SelfieImageCredentialSubjectSchema = zod.z.object({
780
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
781
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
782
- base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
783
- name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
784
- mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)"),
785
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
786
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
787
- reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
788
- reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
789
- reviewRejectLabels: zod.z.array(zod.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(),
790
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
791
- }).describe("Stores the data of the credential");
31
+ var _EVM_BLOCK_TIME, _NEXERA_EVM_CHAIN_NAM, _NEXERA_CHAIN_VALUES;
32
+ var NEXERA_EVM_CHAINS = /*#__PURE__*/function (NEXERA_EVM_CHAINS) {
33
+ NEXERA_EVM_CHAINS["ETHEREUM"] = "1";
34
+ NEXERA_EVM_CHAINS["GOERLI"] = "5";
35
+ NEXERA_EVM_CHAINS["ARBITRUM"] = "42161";
36
+ NEXERA_EVM_CHAINS["ARBITRUM_GOERLI"] = "421613";
37
+ NEXERA_EVM_CHAINS["ARBITRUM_SEPOLIA"] = "421614";
38
+ NEXERA_EVM_CHAINS["OPTIMISM"] = "10";
39
+ NEXERA_EVM_CHAINS["OPTIMISM_GOERLI"] = "420";
40
+ NEXERA_EVM_CHAINS["OPTIMISM_SEPOLIA"] = "11155420";
41
+ NEXERA_EVM_CHAINS["AVALANCHE"] = "43114";
42
+ NEXERA_EVM_CHAINS["AVALANCHE_FUJI"] = "43113";
43
+ NEXERA_EVM_CHAINS["POLYGON"] = "137";
44
+ NEXERA_EVM_CHAINS["POLYGON_AMOY"] = "80002";
45
+ NEXERA_EVM_CHAINS["SEPOLIA"] = "11155111";
46
+ NEXERA_EVM_CHAINS["BASE"] = "8453";
47
+ NEXERA_EVM_CHAINS["BASE_GOERLI"] = "84531";
48
+ NEXERA_EVM_CHAINS["BASE_SEPOLIA"] = "84532";
49
+ NEXERA_EVM_CHAINS["MOONBEAM"] = "1284";
50
+ NEXERA_EVM_CHAINS["MOONRIVER"] = "1285";
51
+ NEXERA_EVM_CHAINS["BNB"] = "56";
52
+ NEXERA_EVM_CHAINS["BNB_TESTNET"] = "97";
53
+ NEXERA_EVM_CHAINS["SWISSTRONIK_TESTNET"] = "1291";
54
+ return NEXERA_EVM_CHAINS;
55
+ }({});
56
+ 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));
57
+ var NEXERA_TEZOS_CHAINS = /*#__PURE__*/function (NEXERA_TEZOS_CHAINS) {
58
+ NEXERA_TEZOS_CHAINS["TEZOS"] = "NetXdQprcVkpaWU";
59
+ NEXERA_TEZOS_CHAINS["TEZOS_GHOSTNET"] = "NetXnHfVqm9iesp";
60
+ return NEXERA_TEZOS_CHAINS;
61
+ }({});
62
+ var NEXERA_COSMOS_CHAINS = /*#__PURE__*/function (NEXERA_COSMOS_CHAINS) {
63
+ NEXERA_COSMOS_CHAINS["COSMOS"] = "cosmoshub-4";
64
+ NEXERA_COSMOS_CHAINS["COSMOS_TESTNET"] = "theta-testnet-001";
65
+ return NEXERA_COSMOS_CHAINS;
66
+ }({});
67
+ var NEXERA_STARKNET_CHAINS = /*#__PURE__*/function (NEXERA_STARKNET_CHAINS) {
68
+ NEXERA_STARKNET_CHAINS["STARKNET_MAIN"] = "0x534e5f4d41494e";
69
+ NEXERA_STARKNET_CHAINS["STARKNET_SEPOLIA"] = "0x534e5f5345504f4c4941";
70
+ return NEXERA_STARKNET_CHAINS;
71
+ }({});
72
+ 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"));
73
+ var NEXERA_EVM_CHAIN_NAMES_LIST = Object.values(NEXERA_EVM_CHAIN_NAMES);
74
+ 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"));
75
+ 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];
76
+ 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,
77
+ // for Bsc
78
+ 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];
79
+ var EvmChainId = zod.z.preprocess(function (val) {
80
+ return String(val);
81
+ }, zod.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>."));
82
+ /////////////////////////////////////////
83
+ // Polygon //
84
+ /////////////////////////////////////////
792
85
 
793
- var ProofOfResidenceCredentialSubjectSchema = zod.z.object({
794
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
795
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
796
- country: zod.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(),
797
- base64: zod.z.string().describe("Base64 encoded image of the proof of residence").optional(),
798
- name: zod.z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
799
- documentType: zod.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)"),
800
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
801
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
802
- mediaType: zod.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(),
803
- county: zod.z.string().describe("The county of residence").optional(),
804
- city: zod.z.string().describe("The city of residence").optional(),
805
- streetName: zod.z.string().describe("The street name of residence").optional(),
806
- postalCode: zod.z.string().describe("The postal code of residence").optional(),
807
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
808
- }).describe("Stores the data of the credential");
86
+ var POLYGON_NETWORK_NAMES = ["main", "amoy"];
87
+ var PolygonNetworkNames = zod.z["enum"](POLYGON_NETWORK_NAMES);
88
+ /////////////////////////////////////////
89
+ // TEZOS //
90
+ /////////////////////////////////////////
809
91
 
810
- // NB: this is supposed to reproduce W3CCredential used in polygon id js sdk
92
+ var NEXERA_TEZOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "Tezos Mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "Tezos Ghostnet");
93
+ var NEXERA_TEZOS_CHAIN_NAMES_LIST = Object.values(NEXERA_TEZOS_CHAIN_NAMES);
94
+ var NEXERA_TEZOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp");
95
+ var ACTIVE_TEZOS_CHAIN_VALUES = [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
96
+ var TezosChainId = zod.z.preprocess(function (val) {
97
+ return String(val);
98
+ }, zod.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>."));
99
+ /////////////////////////////////////////
100
+ // COSMOS //
101
+ /////////////////////////////////////////
811
102
 
812
- var CredentialStatusTypePID = zod.z["enum"](["SparseMerkleTreeProof", "Iden3ReverseSparseMerkleTreeProof", "Iden3commRevocationStatusV1.0", "Iden3OnchainSparseMerkleTreeProof2023"]);
813
- var CredentialStatusPID = zod.z.object({
814
- id: zod.z.string(),
815
- type: CredentialStatusTypePID,
816
- revocationNonce: zod.z.number().optional()
817
- //statusIssuer?: CredentialStatus;
818
- });
819
- var CredentialSchemaPID = zod.z.object({
820
- id: zod.z.string(),
821
- type: zod.z.string()
822
- });
823
- var GenericVerifiableCredentialSchema = zod.z.object({
824
- id: zod.z.string(),
825
- "@context": zod.z.array(zod.z.string()).optional(),
826
- // context: z.array(z.string()),
827
- type: zod.z.array(zod.z.string()),
828
- expirationDate: zod.z.string().optional(),
829
- issuanceDate: zod.z.string().optional(),
830
- credentialSubject: zod.z.record(zod.z.string(),
831
- // The old version of the generated API does not handle z.union correctly.
832
- // Until we either
833
- // 1. discontinue usage of the old apiClient
834
- // or
835
- // 2. remove {nullable: true} from the birthPlace field in the IDInformation schema
836
- // we need to use z.any() instead.
837
- //
838
- // if you do the following test you can see that the old apiClient does not change
839
- // when you add z.null() to the union below.
840
- //
841
- // 1. comment out the z.any() below.
842
- zod.z.any()
843
- // 2. uncomment the following lines
844
- // z.union([
845
- // z.record(z.string(), z.any()),
846
- // z.string(),
847
- // z.number(),
848
- // z.boolean(),
849
- // z.null(),
850
- // z.array(z.any()),
851
- // ]),
852
- // 3. run the following command: pnpnm update-api
853
- // 4. Notice that several generated files are modified.
854
- // 5. make a temporary branch to throw away later
855
- // 6. comment out z.null() above
856
- // 7. run the following command: pnpnm update-api
857
- // 8. notice that only the new apiClient is modified.
858
- // modified: packages/clients/api/src/generated/apps/ComplianceService.ts
859
- // modified: packages/clients/api/src/generated/apps/CustomersService.ts
860
- // modified: packages/clients/api/src/generated/apps/ScenariosService.ts
861
- // modified: packages/libs/schemas/src/compliance/vc-schemas/supported-schemas/GenericVerifiableCredentialSchema.ts
862
- ),
863
- credentialStatus: CredentialStatusPID,
864
- issuer: zod.z.string(),
865
- credentialSchema: CredentialSchemaPID,
866
- proof: zod.z.any() //object | unknown[];
103
+ var COSMOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "Cosmos Mainnet"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "Cosmos Testnet");
104
+ var COSMOS_CHAIN_NAMES_LIST = Object.values(COSMOS_CHAIN_NAMES);
105
+ var COSMOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001");
106
+ var ACTIVE_COSMOS_CHAIN_VALUES = [NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET];
107
+ var CosmosChainId = zod.z.preprocess(function (val) {
108
+ return String(val);
109
+ }, zod.z["enum"](ACTIVE_COSMOS_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
110
+ /////////////////////////////////////////
111
+ // STARKNET //
112
+ /////////////////////////////////////////
113
+
114
+ var NEXERA_STARKNET_CHAIN_NAMES = {
115
+ STARKNET_MAIN: "Starknet Mainnet",
116
+ STARKNET_SEPOLIA: "Starknet Sepolia"
117
+ };
118
+ var NEXERA_STARKNET_CHAIN_VALUES = {
119
+ STARKNET_MAIN: "0x534e5f4d41494e",
120
+ STARKNET_SEPOLIA: "0x534e5f5345504f4c4941"
121
+ };
122
+ var NEXERA_ACTIVE_STARKNET_CHAIN_VALUES = [NEXERA_STARKNET_CHAIN_VALUES.STARKNET_MAIN, NEXERA_STARKNET_CHAIN_VALUES.STARKNET_SEPOLIA];
123
+ var StarknetChainId = zod.z.preprocess(function (val) {
124
+ return String(val);
125
+ }, zod.z["enum"](NEXERA_ACTIVE_STARKNET_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
126
+ /////////////////////////////////////////
127
+ // MERGED //
128
+ /////////////////////////////////////////
129
+
130
+ var BlockchainId = zod.z.union([EvmChainId, TezosChainId, CosmosChainId, StarknetChainId]);
131
+
132
+ /**
133
+ * EIP155
134
+ */
135
+ var isValidAddress = function isValidAddress(address) {
136
+ var regex = /^0x[a-fA-F0-9]{40}$/;
137
+ return regex.test(address);
138
+ };
139
+ var String0x = zod.z.string().refine(function (value) {
140
+ return value.startsWith("0x");
141
+ }, {
142
+ message: "0x string must start with '0x'"
143
+ }).describe("0x string");
144
+ var PrivateKey = String0x;
145
+ var PublicKey = zod.z.string();
146
+ var HexadecimalSchema = zod.z.string().refine(function (value) {
147
+ return /^[0-9a-fA-F]+$/.test(value);
148
+ }, {
149
+ message: "Input must be a hexadecimal string"
867
150
  });
868
151
 
869
- var CredentialSchemas = {
870
- ProofOfResidence: ProofOfResidenceCredentialSubjectSchema,
871
- SelfieImage: SelfieImageCredentialSubjectSchema,
872
- IDImage: IDImageCredentialSubjectSchema,
873
- IDInformation: IDInformationCredentialSubjectSchema,
874
- AMLScreeningsResults: OLD_AMLScreeningsResultsCredentialSubjectSchema,
875
- ID3: ID3CredentialSubjectSchema,
876
- IDScan: IDScanCredentialSubjectSchema,
877
- IDScanSelfie: IDScanSelfieCredentialSubjectSchema,
878
- IDScanPassport: IDScanPassportCredentialSubjectSchema
152
+ /**
153
+ * Note: it might be nice to use String0x as the base object instead of z.string(),
154
+ * but this causes update-api to fail with the following error:
155
+ * TRPCError: [query.kyc.sumsub.getJourneyData] -
156
+ * Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
157
+ */
158
+ var AddressSchema = zod.z.string().refine(function (value) {
159
+ // Check if the string starts with '0x' and the rest is a valid hexadecimal string
160
+ return /^0x[0-9A-Fa-f]*$/.test(value);
161
+ }, {
162
+ message: "Value must be a valid hexadecimal string prefixed with 0x"
163
+ }).transform(function (value) {
164
+ return value;
165
+ }).describe("String value that identifies the address of a specific user. Normally tied to an EOA that includes the Smart Wallet.");
166
+ var TxHash = zod.z.string().refine(function (value) {
167
+ // Check if the string starts with '0x' and the rest is a valid hexadecimal string
168
+ return /^0x[0-9A-Fa-f]*$/.test(value);
169
+ }, {
170
+ message: "Value must be a valid hexadecimal string prefixed with 0x"
171
+ }).transform(function (value) {
172
+ return value;
173
+ }).describe("Transaction hash");
174
+ var EIP155Signature = String0x;
175
+ var FunctionCallData = String0x;
176
+ var shortAddress = function shortAddress(address) {
177
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
178
+ return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
879
179
  };
880
- var CredentialNames = [{
881
- value: "AMLScreeningsResults",
882
- label: "AML screening results"
180
+
181
+ /**
182
+ * Aptos
183
+ */
184
+ var AptosAddress = String0x;
185
+ var AptosSignature = zod.z.string();
186
+ /**
187
+ * Starknet
188
+ */
189
+ var StarknetAddress = String0x;
190
+ var StarknetSignature = String0x;
191
+ /**
192
+ * Polkadot
193
+ */
194
+ var PolkadotAddress = zod.z.string();
195
+ var PolkadotSignature = String0x;
196
+ /**
197
+ * Cosmos
198
+ */
199
+ var CosmosAddress = zod.z.string().refine(function (value) {
200
+ return value.startsWith("cosmos");
883
201
  }, {
884
- value: "ProofOfResidence",
885
- label: "Proof of residence"
202
+ message: "Cosmos address must start with 'cosmos'"
203
+ }).transform(function (value) {
204
+ return value;
205
+ }).describe("Cosmos address");
206
+ var CosmosSignature = HexadecimalSchema;
207
+ /**
208
+ * Tezos
209
+ */
210
+
211
+ var TezosImplicitAddress = zod.z.string().refine(function (value) {
212
+ return value.startsWith("tz");
886
213
  }, {
887
- value: "SelfieImage",
888
- label: "Selfie image"
214
+ message: "Tezos address (implicit account) must start with 'tz'"
215
+ }).describe("Tezos address (implicit account)");
216
+ var TezosContractAddress = zod.z.string().refine(function (value) {
217
+ return value.startsWith("KT1");
889
218
  }, {
890
- value: "IDImage",
891
- label: "ID image"
219
+ message: "Tezos contract address must start with 'KT1'"
220
+ }).describe("Tezos contract address");
221
+ var TezosAddress = zod.z.union([TezosImplicitAddress, TezosContractAddress]);
222
+ var TezosEntrypointName = zod.z.string().refine(function (value) {
223
+ return value.startsWith("%");
892
224
  }, {
893
- value: "IDInformation",
894
- label: "ID information"
895
- }];
896
- var CredentialTypes = ["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "ID3",
897
- // this is for backwards compatibility
898
- "IDScan",
899
- // this is for backwards compatibility
900
- "IDScanSelfie",
901
- // this is for backwards compatibility
902
- "IDScanPassport" // this is for backwards compatibility
903
- ];
904
- var NexeraCredentialType = zod.z["enum"](CredentialTypes);
905
- var getCredentialName = function getCredentialName(value) {
906
- var _CredentialNames$find;
907
- return (_CredentialNames$find = CredentialNames.find(function (obj) {
908
- return obj.value === value;
909
- })) === null || _CredentialNames$find === void 0 ? void 0 : _CredentialNames$find.label;
225
+ message: "Tezos entrypoint name must start with '%'"
226
+ }).describe("Tezos entrypoint name");
227
+ var EdSignature = zod.z.string().refine(function (value) {
228
+ return value.startsWith("edsig");
229
+ }, {
230
+ message: "EdSignature must start with 'edsig'"
231
+ });
232
+ var SpSignature = zod.z.string().refine(function (value) {
233
+ return value.startsWith("spsig");
234
+ }, {
235
+ message: "SpSignature must start with 'spsig'"
236
+ });
237
+ var P2Signature = zod.z.string().refine(function (value) {
238
+ return value.startsWith("p2sig");
239
+ }, {
240
+ message: "P2Signature must start with 'p2sig'"
241
+ });
242
+ var TezosSignature = zod.z.union([EdSignature, SpSignature, P2Signature]);
243
+ /**
244
+ * Cardano
245
+ */
246
+ var CardanoAddress = zod.z.string().refine(function (value) {
247
+ return value.startsWith("addr");
248
+ }, {
249
+ message: "Cardano address must start with 'addr'"
250
+ }).transform(function (value) {
251
+ return value;
252
+ }).describe("Cosmos address");
253
+ var CardanoSignature = HexadecimalSchema;
254
+ /**
255
+ * Chain agnostic schemas
256
+ */
257
+ var BlockchainAddress = zod.z.union([AddressSchema, TezosAddress, AptosAddress, PolkadotAddress, StarknetAddress, CosmosAddress, CardanoAddress]);
258
+ var BlockchainSignature = zod.z.union([EIP155Signature, TezosSignature, AptosSignature, PolkadotSignature, StarknetSignature, CosmosSignature, CardanoSignature]);
259
+ var BLOCKCHAIN_NAMESPACES = ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
260
+ var BlockchainNamespace = zod.z["enum"](BLOCKCHAIN_NAMESPACES);
261
+ // Nicer names
262
+ var BLOCKCHAIN_NAMESPACES_NAMES = {
263
+ tezos: "Tezos",
264
+ eip155: "EVM",
265
+ aptos: "Aptos",
266
+ polkadot: "Polkadot",
267
+ starknet: "Starknet",
268
+ cosmos: "Cosmos",
269
+ solana: "Solana",
270
+ cardano: "Cardano"
271
+ };
272
+ var DISPLAYED_LOCKCHAIN_NAMESPACES = ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano"];
273
+ var DisplayedBlockchainNamespace = zod.z["enum"](DISPLAYED_LOCKCHAIN_NAMESPACES);
274
+ var BLOCKCHAIN_NAME_TO_NAMESPACE = {
275
+ Tezos: "tezos",
276
+ EVM: "eip155",
277
+ Aptos: "aptos",
278
+ Polkadot: "polkadot",
279
+ Starknet: "starknet",
280
+ Cosmos: "cosmos",
281
+ Solana: "solana",
282
+ Cardano: "cardano"
283
+ };
284
+ var BLOCKCHAIN_NAMESPACE_TO_NAME = {
285
+ tezos: "Tezos",
286
+ eip155: "EVM",
287
+ aptos: "Aptos",
288
+ polkadot: "Polkadot",
289
+ starknet: "Starknet",
290
+ cosmos: "Cosmos",
291
+ solana: "Solana",
292
+ cardano: "Cardano"
293
+ };
294
+ var coerceBoolean = zod.z["enum"](["0", "1", "true", "false"])["catch"]("false").transform(function (value) {
295
+ return value == "true" || value == "1";
296
+ });
297
+ var ENVS = ["cicd", "local", "test-dev-1", "test-dev-2", "dev", "stage", "prod"];
298
+ var EnvironmentSchema = zod.z["enum"](ENVS);
299
+ var UuidString = zod.z.string().uuid();
300
+ /**
301
+ * Zod parse without throwing an error if the value is invalid
302
+ * Rather, it returns a object with optional error and data fields
303
+ *
304
+ * @param schema
305
+ * @param value
306
+ * @constructor
307
+ */
308
+ function ZodParse(schema, value) {
309
+ var result = schema.safeParse(value);
310
+ if (result.success) {
311
+ return {
312
+ data: result.data,
313
+ error: undefined
314
+ };
315
+ } else {
316
+ return {
317
+ error: result.error,
318
+ data: undefined
319
+ };
320
+ }
321
+ }
322
+ var shortBlockchainAddress = function shortBlockchainAddress(address) {
323
+ return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
324
+ };
325
+ var PUBLIC_SERVICES_SCHEMA_MAP = {
326
+ api: {
327
+ cicd: "http://localhost:3001",
328
+ local: "http://localhost:3001",
329
+ "test-dev-1": "https://api-test-dev-1.nexera.id",
330
+ "test-dev-2": "https://api-test-dev-2.nexera.id",
331
+ dev: "https://api-dev.nexera.id",
332
+ stage: "https://api-staging.nexera.id",
333
+ prod: "https://api.nexera.id"
334
+ },
335
+ identity_api: {
336
+ cicd: "http://localhost:3015",
337
+ local: "http://localhost:3015",
338
+ "test-dev-1": "https://identity-api-test-dev-1.nexera.id",
339
+ "test-dev-2": "https://identity-api-test-dev-2.nexera.id",
340
+ dev: "https://identity-api-dev.nexera.id",
341
+ stage: "https://identity-api-staging.nexera.id",
342
+ prod: "https://identity-api.nexera.id"
343
+ },
344
+ identityV2: {
345
+ cicd: "http://localhost:3009",
346
+ local: "http://localhost:3009",
347
+ branch: "https://identity-v2-branch.nexera.id",
348
+ "test-dev-1": "https://identity-v2-test-dev-1.nexera.id",
349
+ "test-dev-2": "https://identity-v2-test-dev-2.nexera.id",
350
+ dev: "https://identity-v2-dev.nexera.id",
351
+ stage: "https://identity-v2-staging.nexera.id",
352
+ prod: "https://identity-v2.nexera.id"
353
+ }
910
354
  };
911
- var CredentialType = zod.z.string().transform(function (x) {
912
- return x.replace("_", "-");
913
- }) // TODO determine why this is needed
914
- .pipe(zod.z["enum"](CredentialTypes));
915
- // Should this be replaced by GenericVerifiableCredentialSchema?
916
355
 
917
- var VerifiableCredential = zod.z.object({
918
- issuer: zod.z.string(),
919
- type: zod.z.array(zod.z.union([zod.z.string(), CredentialType])),
920
- credentialSubject: zod.z.record(zod.z.unknown())
921
- }).catchall(zod.z.any());
922
- var CredentialMediaType = IDImageCredentialSubjectSchema.shape.mediaType_front;
356
+ var IDInformationCredentialSubjectSchema = zod.z.object({
357
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
358
+ journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
359
+ reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
360
+ reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
361
+ reviewRejectLabels: zod.z.array(zod.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(),
362
+ documentType: zod.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"),
363
+ entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
364
+ entryTime: zod.z.string().describe("Entry time associated with the credential"),
365
+ personalData: zod.z.object({
366
+ firstName: zod.z.string().describe("First name of the credential subject").optional(),
367
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
368
+ lastName: zod.z.string().describe("Last name of the credential subject").optional(),
369
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
370
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
371
+ citizenship: zod.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(),
372
+ country: zod.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(),
373
+ fullName: zod.z.string().describe("Full name of the credential subject").optional(),
374
+ birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
375
+ countryOfBirth: zod.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(),
376
+ stateOfBirth: zod.z.string().describe("State of birth of the credential subject").optional()
377
+ }).describe("Original data extracted by the provider"),
378
+ isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
379
+ }).describe("Stores the data of the credential");
923
380
 
924
381
  var ISO3CountryCode = IDInformationCredentialSubjectSchema.shape.personalData.shape.citizenship.unwrap();
925
382
  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"];
@@ -1687,290 +1144,927 @@ function parseISO3CountryCode(code) {
1687
1144
  return ISO3CountryCode.safeParse(code).success ? ISO3CountryCode.parse(code) : undefined;
1688
1145
  }
1689
1146
 
1690
- function _arrayLikeToArray(arr, len) {
1691
- if (len == null || len > arr.length) len = arr.length;
1692
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1693
- return arr2;
1694
- }
1147
+ var ID3CredentialSubjectSchema = zod.z.object({
1148
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1149
+ journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1150
+ amendmentsData: zod.z.object({
1151
+ data: zod.z.object({
1152
+ citizenship: zod.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(),
1153
+ documentType: zod.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(),
1154
+ firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1155
+ lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1156
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1157
+ addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1158
+ addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1159
+ birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
1160
+ placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1161
+ countryOfResidence: zod.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(),
1162
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1163
+ city: zod.z.string().describe("City of the credential subject").optional(),
1164
+ province: zod.z.string().describe("Province of the credential subject").optional(),
1165
+ postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
1166
+ emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
1167
+ phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
1168
+ countryOfBirth: zod.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(),
1169
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional()
1170
+ }).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
1171
+ authenticateSPResult: zod.z.object({
1172
+ AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
1173
+ Timestamp: zod.z.string().datetime().describe("The timestamp of the authentication request").optional(),
1174
+ CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
1175
+ ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
1176
+ ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
1177
+ ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
1178
+ ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
1179
+ ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
1180
+ ResultCodes: zod.z.object({
1181
+ GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
1182
+ Name: zod.z.string().optional(),
1183
+ Description: zod.z.string().optional(),
1184
+ Comment: zod.z.object({
1185
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1186
+ Description: zod.z.string().optional(),
1187
+ Code: zod.z.number()["int"]().optional()
1188
+ })).optional()
1189
+ }).optional(),
1190
+ Match: zod.z.object({
1191
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1192
+ Description: zod.z.string().optional(),
1193
+ Code: zod.z.number()["int"]().optional()
1194
+ })).optional()
1195
+ }).optional(),
1196
+ Warning: zod.z.object({
1197
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1198
+ Description: zod.z.string().optional(),
1199
+ Code: zod.z.number()["int"]().optional()
1200
+ })).optional()
1201
+ }).optional(),
1202
+ Mismatch: zod.z.object({
1203
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1204
+ Description: zod.z.string().optional(),
1205
+ Code: zod.z.number()["int"]().optional()
1206
+ })).optional()
1207
+ }).optional(),
1208
+ ID: zod.z.number()["int"]().optional(),
1209
+ Pass: zod.z.string().optional(),
1210
+ Address: zod.z.string().optional(),
1211
+ Forename: zod.z.string().optional(),
1212
+ Surname: zod.z.string().optional(),
1213
+ DOB: zod.z.string().optional(),
1214
+ Alert: zod.z.string().optional(),
1215
+ SanctionsMatches: zod.z.object({
1216
+ GlobalSanctionsMatch: zod.z.array(zod.z.object({
1217
+ SanctionID: zod.z.string().optional(),
1218
+ Url: zod.z.string().optional(),
1219
+ Rank: zod.z.number()["int"]().optional(),
1220
+ CaseID: zod.z.string().optional(),
1221
+ SearchID: zod.z.string().optional()
1222
+ })).optional()
1223
+ }).optional()
1224
+ })).optional()
1225
+ }).describe("The result codes of the authentication request").optional(),
1226
+ Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
1227
+ BandText: zod.z.string().describe("The band text of the authentication request").optional(),
1228
+ Country: zod.z.string().describe("Country type of the authentication request").optional(),
1229
+ ItemCheckDecisionBands: zod.z.object({
1230
+ GlobalItemCheckDecisionBands: zod.z.array(zod.z.object({
1231
+ ID: zod.z.number()["int"]().optional(),
1232
+ BandScore: zod.z.number()["int"]().optional(),
1233
+ BandText: zod.z.string().optional()
1234
+ })).optional()
1235
+ }).describe("The item check decision bands of the authentication request").optional()
1236
+ }).describe("Result of the authentication request").optional(),
1237
+ pepIntelligenceResult: zod.z.array(zod.z.object({
1238
+ Fullname: zod.z.string().optional(),
1239
+ Aliases: zod.z.object({
1240
+ elements: zod.z.array(zod.z.string()).optional()
1241
+ }).optional(),
1242
+ SanctionsAddresses: zod.z.object({
1243
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1244
+ AddressLine: zod.z.string().optional(),
1245
+ City: zod.z.string().optional(),
1246
+ Country: zod.z.string().describe("Full name of country").optional(),
1247
+ Region: zod.z.string().optional()
1248
+ })).optional()
1249
+ }).optional(),
1250
+ SanctionsDates: zod.z.object({
1251
+ GlobalSanctionsDate: zod.z.object({
1252
+ DateType: zod.z.string().optional(),
1253
+ Day: zod.z.number()["int"]().optional(),
1254
+ Month: zod.z.number()["int"]().optional(),
1255
+ Year: zod.z.number()["int"]().optional()
1256
+ }).optional()
1257
+ }).optional(),
1258
+ IdentityInformation: zod.z.string().optional(),
1259
+ SanctionsPositions: zod.z.object({
1260
+ GlobalSanctionsPosition: zod.z.array(zod.z.object({
1261
+ Position: zod.z.string().optional(),
1262
+ Country: zod.z.string().optional()
1263
+ })).optional()
1264
+ }).optional()
1265
+ })).optional(),
1266
+ sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1267
+ Fullname: zod.z.string().optional(),
1268
+ SanctionsBodies: zod.z.object({
1269
+ elements: zod.z.array(zod.z.number()["int"]()).optional()
1270
+ }).optional(),
1271
+ Aliases: zod.z.object({
1272
+ elements: zod.z.array(zod.z.string()).optional()
1273
+ }).optional(),
1274
+ SanctionsAddresses: zod.z.object({
1275
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1276
+ AddressLine: zod.z.string().optional(),
1277
+ City: zod.z.string().optional(),
1278
+ Country: zod.z.string().describe("Full name of country").optional(),
1279
+ Region: zod.z.string().optional()
1280
+ })).optional()
1281
+ }).optional(),
1282
+ SanctionsDates: zod.z.object({
1283
+ GlobalSanctionsDate: zod.z.object({
1284
+ DateType: zod.z.string().optional(),
1285
+ Day: zod.z.number()["int"]().optional(),
1286
+ Month: zod.z.number()["int"]().optional(),
1287
+ Year: zod.z.number()["int"]().optional()
1288
+ }).optional()
1289
+ }).optional(),
1290
+ IdentityInformation: zod.z.string().optional()
1291
+ })).optional()
1292
+ }).describe("Details related to the amendments made to the original data."),
1293
+ originalData: zod.z.object({
1294
+ data: zod.z.object({
1295
+ citizenship: zod.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(),
1296
+ documentType: zod.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(),
1297
+ firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1298
+ lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1299
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1300
+ addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1301
+ addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1302
+ birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
1303
+ placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1304
+ countryOfResidence: zod.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(),
1305
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1306
+ city: zod.z.string().describe("City of the credential subject").optional(),
1307
+ province: zod.z.string().describe("Province of the credential subject").optional(),
1308
+ postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
1309
+ emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
1310
+ phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
1311
+ countryOfBirth: zod.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(),
1312
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional()
1313
+ }).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
1314
+ authenticateSPResult: zod.z.object({
1315
+ AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
1316
+ Timestamp: zod.z.string().datetime().describe("The date and time of the authentication request").optional(),
1317
+ CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
1318
+ ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
1319
+ ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
1320
+ ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
1321
+ ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
1322
+ ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
1323
+ ResultCodes: zod.z.object({
1324
+ GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
1325
+ Name: zod.z.string().optional(),
1326
+ Description: zod.z.string().optional(),
1327
+ Comment: zod.z.object({
1328
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1329
+ Description: zod.z.string().optional(),
1330
+ Code: zod.z.number()["int"]().optional()
1331
+ })).optional()
1332
+ }).optional(),
1333
+ Match: zod.z.object({
1334
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1335
+ Description: zod.z.string().optional(),
1336
+ Code: zod.z.number()["int"]().optional()
1337
+ })).optional()
1338
+ }).optional(),
1339
+ Warning: zod.z.object({
1340
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1341
+ Description: zod.z.string().optional(),
1342
+ Code: zod.z.number()["int"]().optional()
1343
+ })).optional()
1344
+ }).optional(),
1345
+ Mismatch: zod.z.object({
1346
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1347
+ Description: zod.z.string().optional(),
1348
+ Code: zod.z.number()["int"]().optional()
1349
+ })).optional()
1350
+ }).optional(),
1351
+ ID: zod.z.number()["int"]().optional(),
1352
+ Pass: zod.z.string().optional(),
1353
+ Address: zod.z.string().optional(),
1354
+ Forename: zod.z.string().optional(),
1355
+ Surname: zod.z.string().optional(),
1356
+ DOB: zod.z.string().optional(),
1357
+ Alert: zod.z.string().optional(),
1358
+ SanctionsMatches: zod.z.object({
1359
+ GlobalSanctionsMatch: zod.z.array(zod.z.object({
1360
+ SanctionID: zod.z.string().optional(),
1361
+ Url: zod.z.string().optional(),
1362
+ Rank: zod.z.number()["int"]().optional(),
1363
+ CaseID: zod.z.string().optional(),
1364
+ SearchID: zod.z.string().optional()
1365
+ })).optional()
1366
+ }).optional()
1367
+ })).optional()
1368
+ }).describe("The result codes of the authentication request").optional(),
1369
+ Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
1370
+ BandText: zod.z.string().describe("The band text of the authentication request").optional(),
1371
+ Country: zod.z.string().describe("The country type of the authentication request").optional()
1372
+ }).describe("The result of the Authenticate SP check").optional(),
1373
+ pepIntelligenceResult: zod.z.array(zod.z.object({
1374
+ Fullname: zod.z.string().optional(),
1375
+ Aliases: zod.z.object({
1376
+ elements: zod.z.array(zod.z.string()).optional()
1377
+ }).optional(),
1378
+ SanctionsAddresses: zod.z.object({
1379
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1380
+ AddressLine: zod.z.string().optional(),
1381
+ City: zod.z.string().optional(),
1382
+ Country: zod.z.string().describe("Full name of country").optional(),
1383
+ Region: zod.z.string().optional()
1384
+ })).optional()
1385
+ }).optional(),
1386
+ SanctionsDates: zod.z.object({
1387
+ GlobalSanctionsDate: zod.z.object({
1388
+ DateType: zod.z.string().optional(),
1389
+ Day: zod.z.number()["int"]().optional(),
1390
+ Month: zod.z.number()["int"]().optional(),
1391
+ Year: zod.z.number()["int"]().optional()
1392
+ }).optional()
1393
+ }).optional(),
1394
+ IdentityInformation: zod.z.string().optional(),
1395
+ SanctionsPositions: zod.z.object({
1396
+ GlobalSanctionsPosition: zod.z.array(zod.z.object({
1397
+ Position: zod.z.string().optional(),
1398
+ Country: zod.z.string().optional()
1399
+ })).optional()
1400
+ }).optional()
1401
+ })).describe("The result of the PEP Intelligence check").optional(),
1402
+ sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1403
+ Fullname: zod.z.string().optional(),
1404
+ SanctionsBodies: zod.z.object({
1405
+ elements: zod.z.array(zod.z.number()["int"]()).optional()
1406
+ }).optional(),
1407
+ Aliases: zod.z.object({
1408
+ elements: zod.z.array(zod.z.string()).optional()
1409
+ }).optional(),
1410
+ SanctionsAddresses: zod.z.object({
1411
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1412
+ AddressLine: zod.z.string().optional(),
1413
+ City: zod.z.string().optional(),
1414
+ Country: zod.z.string().describe("Full name of country").optional(),
1415
+ Region: zod.z.string().optional()
1416
+ })).optional()
1417
+ }).optional(),
1418
+ SanctionsDates: zod.z.object({
1419
+ GlobalSanctionsDate: zod.z.object({
1420
+ DateType: zod.z.string().optional(),
1421
+ Day: zod.z.number()["int"]().optional(),
1422
+ Month: zod.z.number()["int"]().optional(),
1423
+ Year: zod.z.number()["int"]().optional()
1424
+ }).optional()
1425
+ }).optional(),
1426
+ IdentityInformation: zod.z.string().optional()
1427
+ })).describe("The result of the Sanctions Enforcements check").optional()
1428
+ }).describe("Details related to the original data before any amendments"),
1429
+ personalDetails: zod.z.object({
1430
+ citizenship: zod.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(),
1431
+ documentType: zod.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(),
1432
+ firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1433
+ lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1434
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1435
+ addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1436
+ addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1437
+ birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
1438
+ placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1439
+ countryOfResidence: zod.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(),
1440
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1441
+ city: zod.z.string().describe("City of the credential subject").optional(),
1442
+ province: zod.z.string().describe("Province of the credential subject").optional(),
1443
+ postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
1444
+ emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
1445
+ phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
1446
+ countryOfBirth: zod.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(),
1447
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional()
1448
+ }).describe("Personal details of the credential subject")
1449
+ }).describe("Stores the data of the credential");
1450
+
1451
+ var IDScanCredentialSubjectSchema = zod.z.object({
1452
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1453
+ journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1454
+ highLevelResult: zod.z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
1455
+ firstName: zod.z.string().describe("First name of the credential subject").optional(),
1456
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1457
+ lastName: zod.z.string().describe("Last name of the credential subject").optional(),
1458
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1459
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1460
+ citizenship: zod.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(),
1461
+ documentCategory: zod.z.string().describe("Category of the document provided by the credential subject").optional(),
1462
+ documentName: zod.z.string().describe("Name of the document provided by the credential subject").optional(),
1463
+ documentSide: zod.z["enum"](["Front", "Back"]).describe("Side of the document provided by the credential subject").optional(),
1464
+ documentType: zod.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(),
1465
+ entryDate: zod.z.string().describe("Entry date associated with the credential").optional(),
1466
+ entryTime: zod.z.string().describe("Entry time associated with the credential").optional(),
1467
+ fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1468
+ addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
1469
+ addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
1470
+ birthDate: zod.z.string().describe("Date of birth of the credential subject").optional(),
1471
+ birthPlace: zod.z.string().nullable().optional(),
1472
+ highLevelResultDetails: zod.z.object({
1473
+ documentOverallValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
1474
+ documentBlockingPolicy: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
1475
+ documentExpiry: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
1476
+ documentSupport: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
1477
+ documentValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
1478
+ faceMatchValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
1479
+ accumulativeLivenessResult: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
1480
+ }).describe("Detailed results of the high level KYC check").optional(),
1481
+ faceMatchScore: zod.z.string().describe("Score for the face match validation").optional(),
1482
+ qualityCheckDetails: zod.z.array(zod.z.object({
1483
+ id: zod.z.string().describe("ID of the quality check item").optional(),
1484
+ title: zod.z.string().describe("Title of the quality check item").optional(),
1485
+ description: zod.z.string().describe("Description of the quality check item").optional(),
1486
+ state: zod.z.number()["int"]().describe("State of the quality check item").optional()
1487
+ }).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
1488
+ validationDetails: zod.z.array(zod.z.object({
1489
+ name: zod.z.string().describe("Name of the validation item").optional(),
1490
+ description: zod.z.string().describe("Detailed description of the validation item").optional(),
1491
+ result: zod.z.number()["int"]().describe("Result code of the validation").optional()
1492
+ }).describe("Details of a specific validation item")).describe("Details of the validation performed").optional()
1493
+ }).describe("Stores the data of the credential");
1695
1494
 
1696
- function _arrayWithoutHoles(arr) {
1697
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1698
- }
1495
+ var IDScanPassportCredentialSubjectSchema = zod.z.object({
1496
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1497
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1498
+ base64: zod.z.string().describe("Base64 encoded image of the passport image"),
1499
+ name: zod.z.string().describe("Name of the docuemnt (e.g. passport.jpg)"),
1500
+ documentType: zod.z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
1501
+ }).describe("Stores the data of the credential");
1699
1502
 
1700
- function _iterableToArray(iter) {
1701
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1702
- }
1503
+ var IDScanSelfieCredentialSubjectSchema = zod.z.object({
1504
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1505
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1506
+ base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
1507
+ name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
1508
+ documentType: zod.z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
1509
+ }).describe("Stores the data of the credential");
1703
1510
 
1704
- function _unsupportedIterableToArray(o, minLen) {
1705
- if (!o) return;
1706
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1707
- var n = Object.prototype.toString.call(o).slice(8, -1);
1708
- if (n === "Object" && o.constructor) n = o.constructor.name;
1709
- if (n === "Map" || n === "Set") return Array.from(o);
1710
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1711
- }
1511
+ var OLD_IDImageCredentialSubjectSchema = zod.z.object({
1512
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1513
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1514
+ base64: zod.z.string().describe("Base64 encoded image of the passport image"),
1515
+ name: zod.z.string().describe("Name of the document (e.g. passport.jpg)"),
1516
+ documentType: zod.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)"),
1517
+ mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)")
1518
+ }).describe("Stores the data of the credential");
1712
1519
 
1713
- function _nonIterableSpread() {
1714
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1715
- }
1520
+ var OLD_IDInformationCredentialSubjectSchema = zod.z.object({
1521
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1522
+ journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1523
+ highLevelResult: zod.z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
1524
+ highLevelResultDetails: zod.z.object({
1525
+ documentOverallValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
1526
+ documentBlockingPolicy: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
1527
+ documentExpiry: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
1528
+ documentSupport: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
1529
+ documentValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
1530
+ faceMatchValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
1531
+ accumulativeLivenessResult: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
1532
+ }).describe("Detailed results of the high level KYC check").optional(),
1533
+ faceMatchScore: zod.z.string().describe("Score for the face match validation").optional(),
1534
+ qualityCheckDetails: zod.z.array(zod.z.object({
1535
+ id: zod.z.string().describe("ID of the quality check item").optional(),
1536
+ title: zod.z.string().describe("Title of the quality check item").optional(),
1537
+ description: zod.z.string().describe("Description of the quality check item").optional(),
1538
+ state: zod.z.number()["int"]().describe("State of the quality check item").optional()
1539
+ }).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
1540
+ validationDetails: zod.z.array(zod.z.object({
1541
+ name: zod.z.string().describe("Name of the validation item").optional(),
1542
+ description: zod.z.string().describe("Detailed description of the validation item").optional(),
1543
+ result: zod.z.number()["int"]().describe("Result code of the validation").optional()
1544
+ }).describe("Details of a specific validation item")).describe("Details of the validation performed").optional(),
1545
+ documentCategory: zod.z.string().describe("Category of the document provided by the credential subject").optional(),
1546
+ documentName: zod.z.string().describe("Name of the document provided by the credential subject"),
1547
+ documentType: zod.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"),
1548
+ entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
1549
+ entryTime: zod.z.string().describe("Entry time associated with the credential"),
1550
+ originalData: zod.z.object({
1551
+ firstName: zod.z.string().describe("First name of the credential subject").optional(),
1552
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1553
+ lastName: zod.z.string().describe("Last name of the credential subject").optional(),
1554
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1555
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1556
+ citizenship: zod.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(),
1557
+ fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1558
+ addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
1559
+ addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
1560
+ birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
1561
+ placeOfBirth: zod.z.string().nullable().describe("Place of birth of the credential subject").optional()
1562
+ }).describe("Original data extracted by the provider"),
1563
+ amendmentsData: zod.z.object({
1564
+ firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1565
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1566
+ lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1567
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1568
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1569
+ citizenship: zod.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(),
1570
+ fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1571
+ addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1572
+ addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1573
+ birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
1574
+ placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1575
+ countryOfBirth: zod.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()
1576
+ }).describe("Personal details manually amended by the holder/user during authentication process.")
1577
+ }).describe("Stores the data of the credential");
1578
+
1579
+ var OLD_ProofOfResidenceCredentialSubjectSchema = zod.z.object({
1580
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1581
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with").optional(),
1582
+ country: zod.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(),
1583
+ base64: zod.z.string().describe("Base64 encoded image of the proof of residence").optional(),
1584
+ name: zod.z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
1585
+ documentType: zod.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(),
1586
+ mediaType: zod.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(),
1587
+ county: zod.z.string().describe("The county of residence").optional(),
1588
+ city: zod.z.string().describe("The city of residence").optional(),
1589
+ streetName: zod.z.string().describe("The street name of residence").optional(),
1590
+ postalCode: zod.z.string().describe("The postal code of residence").optional()
1591
+ }).describe("Stores the data of the credential");
1592
+
1593
+ var OLD_SelfieImageCredentialSubjectSchema = zod.z.object({
1594
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1595
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1596
+ base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
1597
+ name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
1598
+ mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)")
1599
+ }).describe("Stores the data of the credential");
1600
+
1601
+ var OLD_AMLScreeningsResultsCredentialSubjectSchema = zod.z.object({
1602
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1603
+ journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1604
+ amendmentsData: zod.z.object({
1605
+ data: zod.z.object({
1606
+ firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1607
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1608
+ lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1609
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1610
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1611
+ citizenship: zod.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(),
1612
+ fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1613
+ addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1614
+ addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1615
+ birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
1616
+ placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1617
+ countryOfResidence: zod.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(),
1618
+ city: zod.z.string().describe("City of the credential subject").optional(),
1619
+ province: zod.z.string().describe("Province of the credential subject").optional(),
1620
+ postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
1621
+ emailAddress: zod.z.string().email().describe("Email address of the credential subject").optional(),
1622
+ phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
1623
+ countryOfBirth: zod.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()
1624
+ }).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
1625
+ authenticateSPResult: zod.z.object({
1626
+ AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
1627
+ Timestamp: zod.z.string().datetime().describe("The timestamp of the authentication request").optional(),
1628
+ CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
1629
+ ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
1630
+ ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
1631
+ ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
1632
+ ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
1633
+ ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
1634
+ ResultCodes: zod.z.object({
1635
+ GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
1636
+ Name: zod.z.string().optional(),
1637
+ Description: zod.z.string().optional(),
1638
+ Comment: zod.z.object({
1639
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1640
+ Description: zod.z.string().optional(),
1641
+ Code: zod.z.number()["int"]().optional()
1642
+ })).optional()
1643
+ }).optional(),
1644
+ Match: zod.z.object({
1645
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1646
+ Description: zod.z.string().optional(),
1647
+ Code: zod.z.number()["int"]().optional()
1648
+ })).optional()
1649
+ }).optional(),
1650
+ Warning: zod.z.object({
1651
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1652
+ Description: zod.z.string().optional(),
1653
+ Code: zod.z.number()["int"]().optional()
1654
+ })).optional()
1655
+ }).optional(),
1656
+ Mismatch: zod.z.object({
1657
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1658
+ Description: zod.z.string().optional(),
1659
+ Code: zod.z.number()["int"]().optional()
1660
+ })).optional()
1661
+ }).optional(),
1662
+ ID: zod.z.number()["int"]().optional(),
1663
+ Pass: zod.z.string().optional(),
1664
+ Address: zod.z.string().optional(),
1665
+ Forename: zod.z.string().optional(),
1666
+ Surname: zod.z.string().optional(),
1667
+ DOB: zod.z.string().optional(),
1668
+ Alert: zod.z.string().optional(),
1669
+ SanctionsMatches: zod.z.object({
1670
+ GlobalSanctionsMatch: zod.z.array(zod.z.object({
1671
+ SanctionID: zod.z.string().optional(),
1672
+ Url: zod.z.string().optional(),
1673
+ Rank: zod.z.number()["int"]().optional(),
1674
+ CaseID: zod.z.string().optional(),
1675
+ SearchID: zod.z.string().optional()
1676
+ })).optional()
1677
+ }).optional()
1678
+ })).optional()
1679
+ }).describe("The result codes of the authentication request").optional(),
1680
+ Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
1681
+ BandText: zod.z.string().describe("The band text of the authentication request").optional(),
1682
+ Country: zod.z.string().describe("Country type of the authentication request").optional(),
1683
+ ItemCheckDecisionBands: zod.z.object({
1684
+ GlobalItemCheckDecisionBands: zod.z.array(zod.z.object({
1685
+ ID: zod.z.number()["int"]().optional(),
1686
+ BandScore: zod.z.number()["int"]().optional(),
1687
+ BandText: zod.z.string().optional()
1688
+ })).optional()
1689
+ }).describe("The item check decision bands of the authentication request").optional()
1690
+ }).describe("Result of the authentication request").optional(),
1691
+ pepIntelligenceResult: zod.z.array(zod.z.object({
1692
+ Fullname: zod.z.string().optional(),
1693
+ Aliases: zod.z.object({
1694
+ elements: zod.z.array(zod.z.string()).optional()
1695
+ }).optional(),
1696
+ SanctionsAddresses: zod.z.object({
1697
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1698
+ AddressLine: zod.z.string().optional(),
1699
+ City: zod.z.string().optional(),
1700
+ Country: zod.z.string().describe("Full name of country").optional(),
1701
+ Region: zod.z.string().optional()
1702
+ })).optional()
1703
+ }).optional(),
1704
+ SanctionsDates: zod.z.object({
1705
+ GlobalSanctionsDate: zod.z.object({
1706
+ DateType: zod.z.string().optional(),
1707
+ Day: zod.z.number()["int"]().optional(),
1708
+ Month: zod.z.number()["int"]().optional(),
1709
+ Year: zod.z.number()["int"]().optional()
1710
+ }).optional()
1711
+ }).optional(),
1712
+ IdentityInformation: zod.z.string().optional(),
1713
+ SanctionsPositions: zod.z.object({
1714
+ GlobalSanctionsPosition: zod.z.array(zod.z.object({
1715
+ Position: zod.z.string().optional(),
1716
+ Country: zod.z.string().optional()
1717
+ })).optional()
1718
+ }).optional()
1719
+ })).optional(),
1720
+ sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1721
+ Fullname: zod.z.string().optional(),
1722
+ SanctionsBodies: zod.z.object({
1723
+ elements: zod.z.array(zod.z.number()["int"]()).optional()
1724
+ }).optional(),
1725
+ Aliases: zod.z.object({
1726
+ elements: zod.z.array(zod.z.string()).optional()
1727
+ }).optional(),
1728
+ SanctionsAddresses: zod.z.object({
1729
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1730
+ AddressLine: zod.z.string().optional(),
1731
+ City: zod.z.string().optional(),
1732
+ Country: zod.z.string().describe("Full name of country").optional(),
1733
+ Region: zod.z.string().optional()
1734
+ })).optional()
1735
+ }).optional(),
1736
+ SanctionsDates: zod.z.object({
1737
+ GlobalSanctionsDate: zod.z.object({
1738
+ DateType: zod.z.string().optional(),
1739
+ Day: zod.z.number()["int"]().optional(),
1740
+ Month: zod.z.number()["int"]().optional(),
1741
+ Year: zod.z.number()["int"]().optional()
1742
+ }).optional()
1743
+ }).optional(),
1744
+ IdentityInformation: zod.z.string().optional()
1745
+ })).optional()
1746
+ }).describe("Details related to the amendments made to the original data."),
1747
+ originalData: zod.z.object({
1748
+ data: zod.z.object({
1749
+ firstName: zod.z.string().describe("First name of the credential subject").optional(),
1750
+ middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1751
+ lastName: zod.z.string().describe("Last name of the credential subject").optional(),
1752
+ gender: zod.z.string().describe("Gender of the credential subject").optional(),
1753
+ age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1754
+ citizenship: zod.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(),
1755
+ fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1756
+ addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
1757
+ addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
1758
+ birthDate: zod.z.number()["int"]().describe("Birth Date of the credential subject in integer format of yyyymmdd, example: 20231226 2023 year, 12-December, 26-day").optional(),
1759
+ placeOfBirth: zod.z.string().nullable().optional()
1760
+ }).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
1761
+ authenticateSPResult: zod.z.object({
1762
+ AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
1763
+ Timestamp: zod.z.string().datetime().describe("The date and time of the authentication request").optional(),
1764
+ CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
1765
+ ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
1766
+ ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
1767
+ ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
1768
+ ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
1769
+ ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
1770
+ ResultCodes: zod.z.object({
1771
+ GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
1772
+ Name: zod.z.string().optional(),
1773
+ Description: zod.z.string().optional(),
1774
+ Comment: zod.z.object({
1775
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1776
+ Description: zod.z.string().optional(),
1777
+ Code: zod.z.number()["int"]().optional()
1778
+ })).optional()
1779
+ }).optional(),
1780
+ Match: zod.z.object({
1781
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1782
+ Description: zod.z.string().optional(),
1783
+ Code: zod.z.number()["int"]().optional()
1784
+ })).optional()
1785
+ }).optional(),
1786
+ Warning: zod.z.object({
1787
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1788
+ Description: zod.z.string().optional(),
1789
+ Code: zod.z.number()["int"]().optional()
1790
+ })).optional()
1791
+ }).optional(),
1792
+ Mismatch: zod.z.object({
1793
+ GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1794
+ Description: zod.z.string().optional(),
1795
+ Code: zod.z.number()["int"]().optional()
1796
+ })).optional()
1797
+ }).optional(),
1798
+ ID: zod.z.number()["int"]().optional(),
1799
+ Pass: zod.z.string().optional(),
1800
+ Address: zod.z.string().optional(),
1801
+ Forename: zod.z.string().optional(),
1802
+ Surname: zod.z.string().optional(),
1803
+ DOB: zod.z.string().optional(),
1804
+ Alert: zod.z.string().optional(),
1805
+ SanctionsMatches: zod.z.object({
1806
+ GlobalSanctionsMatch: zod.z.array(zod.z.object({
1807
+ SanctionID: zod.z.string().optional(),
1808
+ Url: zod.z.string().optional(),
1809
+ Rank: zod.z.number()["int"]().optional(),
1810
+ CaseID: zod.z.string().optional(),
1811
+ SearchID: zod.z.string().optional()
1812
+ })).optional()
1813
+ }).optional()
1814
+ })).optional()
1815
+ }).describe("The result codes of the authentication request").optional(),
1816
+ Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
1817
+ BandText: zod.z.string().describe("The band text of the authentication request").optional(),
1818
+ Country: zod.z.string().describe("The country type of the authentication request").optional()
1819
+ }).describe("The result of the Authenticate SP check").optional(),
1820
+ pepIntelligenceResult: zod.z.array(zod.z.object({
1821
+ Fullname: zod.z.string().optional(),
1822
+ Aliases: zod.z.object({
1823
+ elements: zod.z.array(zod.z.string()).optional()
1824
+ }).optional(),
1825
+ SanctionsAddresses: zod.z.object({
1826
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1827
+ AddressLine: zod.z.string().optional(),
1828
+ City: zod.z.string().optional(),
1829
+ Country: zod.z.string().describe("Full name of country").optional(),
1830
+ Region: zod.z.string().optional()
1831
+ })).optional()
1832
+ }).optional(),
1833
+ SanctionsDates: zod.z.object({
1834
+ GlobalSanctionsDate: zod.z.object({
1835
+ DateType: zod.z.string().optional(),
1836
+ Day: zod.z.number()["int"]().optional(),
1837
+ Month: zod.z.number()["int"]().optional(),
1838
+ Year: zod.z.number()["int"]().optional()
1839
+ }).optional()
1840
+ }).optional(),
1841
+ IdentityInformation: zod.z.string().optional(),
1842
+ SanctionsPositions: zod.z.object({
1843
+ GlobalSanctionsPosition: zod.z.array(zod.z.object({
1844
+ Position: zod.z.string().optional(),
1845
+ Country: zod.z.string().optional()
1846
+ })).optional()
1847
+ }).optional()
1848
+ })).describe("The result of the PEP Intelligence check").optional(),
1849
+ sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1850
+ Fullname: zod.z.string().optional(),
1851
+ SanctionsBodies: zod.z.object({
1852
+ elements: zod.z.array(zod.z.number()["int"]()).optional()
1853
+ }).optional(),
1854
+ Aliases: zod.z.object({
1855
+ elements: zod.z.array(zod.z.string()).optional()
1856
+ }).optional(),
1857
+ SanctionsAddresses: zod.z.object({
1858
+ GlobalSanctionsAddress: zod.z.array(zod.z.object({
1859
+ AddressLine: zod.z.string().optional(),
1860
+ City: zod.z.string().optional(),
1861
+ Country: zod.z.string().describe("Full name of country").optional(),
1862
+ Region: zod.z.string().optional()
1863
+ })).optional()
1864
+ }).optional(),
1865
+ SanctionsDates: zod.z.object({
1866
+ GlobalSanctionsDate: zod.z.object({
1867
+ DateType: zod.z.string().optional(),
1868
+ Day: zod.z.number()["int"]().optional(),
1869
+ Month: zod.z.number()["int"]().optional(),
1870
+ Year: zod.z.number()["int"]().optional()
1871
+ }).optional()
1872
+ }).optional(),
1873
+ IdentityInformation: zod.z.string().optional()
1874
+ })).describe("The result of the Sanctions Enforcements check").optional()
1875
+ }).describe("Details related to the original data before any amendments")
1876
+ }).describe("Stores the data of the credential");
1716
1877
 
1717
- function _toConsumableArray(arr) {
1718
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1719
- }
1878
+ var IDImageCredentialSubjectSchema = zod.z.object({
1879
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1880
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1881
+ base64_front: zod.z.string().describe("Base64 encoded image of the front of the document"),
1882
+ base64_back: zod.z.string().describe("Base64 encoded image of the back of the document").optional(),
1883
+ name: zod.z.string().describe("Name of the document (e.g. passport.jpg)"),
1884
+ documentType: zod.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)"),
1885
+ entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
1886
+ entryTime: zod.z.string().describe("Entry time associated with the credential"),
1887
+ mediaType_front: zod.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)"),
1888
+ mediaType_back: zod.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(),
1889
+ reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review answer from kyc provider"),
1890
+ reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
1891
+ reviewRejectLabels: zod.z.array(zod.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(),
1892
+ isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
1893
+ }).describe("Stores the data of the credential");
1720
1894
 
1721
- /**
1722
- * EIP155
1723
- */
1724
- var isValidAddress = function isValidAddress(address) {
1725
- var regex = /^0x[a-fA-F0-9]{40}$/;
1726
- return regex.test(address);
1727
- };
1728
- var String0x = zod.z.string().refine(function (value) {
1729
- return value.startsWith("0x");
1730
- }, {
1731
- message: "0x string must start with '0x'"
1732
- }).describe("0x string");
1733
- var PrivateKey = String0x;
1734
- var PublicKey = zod.z.string();
1735
- var HexadecimalSchema = zod.z.string().refine(function (value) {
1736
- return /^[0-9a-fA-F]+$/.test(value);
1737
- }, {
1738
- message: "Input must be a hexadecimal string"
1739
- });
1895
+ var SelfieImageCredentialSubjectSchema = zod.z.object({
1896
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1897
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1898
+ base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
1899
+ name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
1900
+ mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)"),
1901
+ entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
1902
+ entryTime: zod.z.string().describe("Entry time associated with the credential"),
1903
+ reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
1904
+ reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
1905
+ reviewRejectLabels: zod.z.array(zod.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(),
1906
+ isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
1907
+ }).describe("Stores the data of the credential");
1740
1908
 
1741
- /**
1742
- * Note: it might be nice to use String0x as the base object instead of z.string(),
1743
- * but this causes update-api to fail with the following error:
1744
- * TRPCError: [query.kyc.sumsub.getJourneyData] -
1745
- * Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
1746
- */
1747
- var AddressSchema = zod.z.string().refine(function (value) {
1748
- // Check if the string starts with '0x' and the rest is a valid hexadecimal string
1749
- return /^0x[0-9A-Fa-f]*$/.test(value);
1750
- }, {
1751
- message: "Value must be a valid hexadecimal string prefixed with 0x"
1752
- }).transform(function (value) {
1753
- return value;
1754
- }).describe("String value that identifies the address of a specific user. Normally tied to an EOA that includes the Smart Wallet.");
1755
- var TxHash = zod.z.string().refine(function (value) {
1756
- // Check if the string starts with '0x' and the rest is a valid hexadecimal string
1757
- return /^0x[0-9A-Fa-f]*$/.test(value);
1758
- }, {
1759
- message: "Value must be a valid hexadecimal string prefixed with 0x"
1760
- }).transform(function (value) {
1761
- return value;
1762
- }).describe("Transaction hash");
1763
- var EIP155Signature = String0x;
1764
- var FunctionCallData = String0x;
1765
- var shortAddress = function shortAddress(address) {
1766
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
1767
- return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
1768
- };
1909
+ var ProofOfResidenceCredentialSubjectSchema = zod.z.object({
1910
+ id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1911
+ journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1912
+ country: zod.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(),
1913
+ base64: zod.z.string().describe("Base64 encoded image of the proof of residence").optional(),
1914
+ name: zod.z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
1915
+ documentType: zod.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)"),
1916
+ entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
1917
+ entryTime: zod.z.string().describe("Entry time associated with the credential"),
1918
+ mediaType: zod.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(),
1919
+ county: zod.z.string().describe("The county of residence").optional(),
1920
+ city: zod.z.string().describe("The city of residence").optional(),
1921
+ streetName: zod.z.string().describe("The street name of residence").optional(),
1922
+ postalCode: zod.z.string().describe("The postal code of residence").optional(),
1923
+ isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
1924
+ }).describe("Stores the data of the credential");
1769
1925
 
1770
- /**
1771
- * Aptos
1772
- */
1773
- var AptosAddress = String0x;
1774
- var AptosSignature = zod.z.string();
1775
- /**
1776
- * Starknet
1777
- */
1778
- var StarknetAddress = String0x;
1779
- var StarknetSignature = String0x;
1780
- /**
1781
- * Polkadot
1782
- */
1783
- var PolkadotAddress = zod.z.string();
1784
- var PolkadotSignature = String0x;
1785
- /**
1786
- * Cosmos
1787
- */
1788
- var CosmosAddress = zod.z.string().refine(function (value) {
1789
- return value.startsWith("cosmos");
1790
- }, {
1791
- message: "Cosmos address must start with 'cosmos'"
1792
- }).transform(function (value) {
1793
- return value;
1794
- }).describe("Cosmos address");
1795
- var CosmosSignature = HexadecimalSchema;
1796
- /**
1797
- * Tezos
1798
- */
1926
+ // NB: this is supposed to reproduce W3CCredential used in polygon id js sdk
1799
1927
 
1800
- var TezosImplicitAddress = zod.z.string().refine(function (value) {
1801
- return value.startsWith("tz");
1802
- }, {
1803
- message: "Tezos address (implicit account) must start with 'tz'"
1804
- }).describe("Tezos address (implicit account)");
1805
- var TezosContractAddress = zod.z.string().refine(function (value) {
1806
- return value.startsWith("KT1");
1807
- }, {
1808
- message: "Tezos contract address must start with 'KT1'"
1809
- }).describe("Tezos contract address");
1810
- var TezosAddress = zod.z.union([TezosImplicitAddress, TezosContractAddress]);
1811
- var TezosEntrypointName = zod.z.string().refine(function (value) {
1812
- return value.startsWith("%");
1813
- }, {
1814
- message: "Tezos entrypoint name must start with '%'"
1815
- }).describe("Tezos entrypoint name");
1816
- var EdSignature = zod.z.string().refine(function (value) {
1817
- return value.startsWith("edsig");
1818
- }, {
1819
- message: "EdSignature must start with 'edsig'"
1820
- });
1821
- var SpSignature = zod.z.string().refine(function (value) {
1822
- return value.startsWith("spsig");
1823
- }, {
1824
- message: "SpSignature must start with 'spsig'"
1928
+ var CredentialStatusTypePID = zod.z["enum"](["SparseMerkleTreeProof", "Iden3ReverseSparseMerkleTreeProof", "Iden3commRevocationStatusV1.0", "Iden3OnchainSparseMerkleTreeProof2023"]);
1929
+ var CredentialStatusPID = zod.z.object({
1930
+ id: zod.z.string(),
1931
+ type: CredentialStatusTypePID,
1932
+ revocationNonce: zod.z.number().optional()
1933
+ //statusIssuer?: CredentialStatus;
1825
1934
  });
1826
- var P2Signature = zod.z.string().refine(function (value) {
1827
- return value.startsWith("p2sig");
1828
- }, {
1829
- message: "P2Signature must start with 'p2sig'"
1935
+ var CredentialSchemaPID = zod.z.object({
1936
+ id: zod.z.string(),
1937
+ type: zod.z.string()
1830
1938
  });
1831
- var TezosSignature = zod.z.union([EdSignature, SpSignature, P2Signature]);
1832
- /**
1833
- * Cardano
1834
- */
1835
- var CardanoAddress = zod.z.string().refine(function (value) {
1836
- return value.startsWith("addr");
1837
- }, {
1838
- message: "Cardano address must start with 'addr'"
1839
- }).transform(function (value) {
1840
- return value;
1841
- }).describe("Cosmos address");
1842
- var CardanoSignature = HexadecimalSchema;
1843
- /**
1844
- * Chain agnostic schemas
1845
- */
1846
- var BlockchainAddress = zod.z.union([AddressSchema, TezosAddress, AptosAddress, PolkadotAddress, StarknetAddress, CosmosAddress, CardanoAddress]);
1847
- var BlockchainSignature = zod.z.union([EIP155Signature, TezosSignature, AptosSignature, PolkadotSignature, StarknetSignature, CosmosSignature, CardanoSignature]);
1848
- var BLOCKCHAIN_NAMESPACES = ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
1849
- var BlockchainNamespace = zod.z["enum"](BLOCKCHAIN_NAMESPACES);
1850
- // Nicer names
1851
- var BLOCKCHAIN_NAMESPACES_NAMES = {
1852
- tezos: "Tezos",
1853
- eip155: "EVM",
1854
- aptos: "Aptos",
1855
- polkadot: "Polkadot",
1856
- starknet: "Starknet",
1857
- cosmos: "Cosmos",
1858
- solana: "Solana",
1859
- cardano: "Cardano"
1860
- };
1861
- var DISPLAYED_LOCKCHAIN_NAMESPACES = ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano"];
1862
- var DisplayedBlockchainNamespace = zod.z["enum"](DISPLAYED_LOCKCHAIN_NAMESPACES);
1863
- var BLOCKCHAIN_NAME_TO_NAMESPACE = {
1864
- Tezos: "tezos",
1865
- EVM: "eip155",
1866
- Aptos: "aptos",
1867
- Polkadot: "polkadot",
1868
- Starknet: "starknet",
1869
- Cosmos: "cosmos",
1870
- Solana: "solana",
1871
- Cardano: "cardano"
1872
- };
1873
- var BLOCKCHAIN_NAMESPACE_TO_NAME = {
1874
- tezos: "Tezos",
1875
- eip155: "EVM",
1876
- aptos: "Aptos",
1877
- polkadot: "Polkadot",
1878
- starknet: "Starknet",
1879
- cosmos: "Cosmos",
1880
- solana: "Solana",
1881
- cardano: "Cardano"
1882
- };
1883
- var coerceBoolean = zod.z["enum"](["0", "1", "true", "false"])["catch"]("false").transform(function (value) {
1884
- return value == "true" || value == "1";
1939
+ var GenericVerifiableCredentialSchema = zod.z.object({
1940
+ id: zod.z.string(),
1941
+ "@context": zod.z.array(zod.z.string()).optional(),
1942
+ // context: z.array(z.string()),
1943
+ type: zod.z.array(zod.z.string()),
1944
+ expirationDate: zod.z.string().optional(),
1945
+ issuanceDate: zod.z.string().optional(),
1946
+ credentialSubject: zod.z.record(zod.z.string(),
1947
+ // The old version of the generated API does not handle z.union correctly.
1948
+ // Until we either
1949
+ // 1. discontinue usage of the old apiClient
1950
+ // or
1951
+ // 2. remove {nullable: true} from the birthPlace field in the IDInformation schema
1952
+ // we need to use z.any() instead.
1953
+ //
1954
+ // if you do the following test you can see that the old apiClient does not change
1955
+ // when you add z.null() to the union below.
1956
+ //
1957
+ // 1. comment out the z.any() below.
1958
+ zod.z.any()
1959
+ // 2. uncomment the following lines
1960
+ // z.union([
1961
+ // z.record(z.string(), z.any()),
1962
+ // z.string(),
1963
+ // z.number(),
1964
+ // z.boolean(),
1965
+ // z.null(),
1966
+ // z.array(z.any()),
1967
+ // ]),
1968
+ // 3. run the following command: pnpnm update-api
1969
+ // 4. Notice that several generated files are modified.
1970
+ // 5. make a temporary branch to throw away later
1971
+ // 6. comment out z.null() above
1972
+ // 7. run the following command: pnpnm update-api
1973
+ // 8. notice that only the new apiClient is modified.
1974
+ // modified: packages/clients/api/src/generated/apps/ComplianceService.ts
1975
+ // modified: packages/clients/api/src/generated/apps/CustomersService.ts
1976
+ // modified: packages/clients/api/src/generated/apps/ScenariosService.ts
1977
+ // modified: packages/libs/schemas/src/compliance/vc-schemas/supported-schemas/GenericVerifiableCredentialSchema.ts
1978
+ ),
1979
+ credentialStatus: CredentialStatusPID,
1980
+ issuer: zod.z.string(),
1981
+ credentialSchema: CredentialSchemaPID,
1982
+ proof: zod.z.any() //object | unknown[];
1885
1983
  });
1886
- var ENVS = ["cicd", "local", "test-dev-1", "test-dev-2", "dev", "stage", "prod"];
1887
- var EnvironmentSchema = zod.z["enum"](ENVS);
1888
- var UuidString = zod.z.string().uuid();
1889
- /**
1890
- * Zod parse without throwing an error if the value is invalid
1891
- * Rather, it returns a object with optional error and data fields
1892
- *
1893
- * @param schema
1894
- * @param value
1895
- * @constructor
1896
- */
1897
- function ZodParse(schema, value) {
1898
- var result = schema.safeParse(value);
1899
- if (result.success) {
1900
- return {
1901
- data: result.data,
1902
- error: undefined
1903
- };
1904
- } else {
1905
- return {
1906
- error: result.error,
1907
- data: undefined
1908
- };
1909
- }
1910
- }
1911
- var shortBlockchainAddress = function shortBlockchainAddress(address) {
1912
- return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
1984
+
1985
+ var CredentialSchemas = {
1986
+ ProofOfResidence: ProofOfResidenceCredentialSubjectSchema,
1987
+ SelfieImage: SelfieImageCredentialSubjectSchema,
1988
+ IDImage: IDImageCredentialSubjectSchema,
1989
+ IDInformation: IDInformationCredentialSubjectSchema,
1990
+ AMLScreeningsResults: OLD_AMLScreeningsResultsCredentialSubjectSchema,
1991
+ ID3: ID3CredentialSubjectSchema,
1992
+ IDScan: IDScanCredentialSubjectSchema,
1993
+ IDScanSelfie: IDScanSelfieCredentialSubjectSchema,
1994
+ IDScanPassport: IDScanPassportCredentialSubjectSchema
1913
1995
  };
1914
- var PUBLIC_SERVICES_SCHEMA_MAP = {
1915
- api: {
1916
- cicd: "http://localhost:3001",
1917
- local: "http://localhost:3001",
1918
- "test-dev-1": "https://api-test-dev-1.nexera.id",
1919
- "test-dev-2": "https://api-test-dev-2.nexera.id",
1920
- dev: "https://api-dev.nexera.id",
1921
- stage: "https://api-staging.nexera.id",
1922
- prod: "https://api.nexera.id"
1923
- },
1924
- identity_api: {
1925
- cicd: "http://localhost:3015",
1926
- local: "http://localhost:3015",
1927
- "test-dev-1": "https://identity-api-test-dev-1.nexera.id",
1928
- "test-dev-2": "https://identity-api-test-dev-2.nexera.id",
1929
- dev: "https://identity-api-dev.nexera.id",
1930
- stage: "https://identity-api-staging.nexera.id",
1931
- prod: "https://identity-api.nexera.id"
1932
- },
1933
- identityV2: {
1934
- cicd: "http://localhost:3009",
1935
- local: "http://localhost:3009",
1936
- branch: "https://identity-v2-branch.nexera.id",
1937
- "test-dev-1": "https://identity-v2-test-dev-1.nexera.id",
1938
- "test-dev-2": "https://identity-v2-test-dev-2.nexera.id",
1939
- dev: "https://identity-v2-dev.nexera.id",
1940
- stage: "https://identity-v2-staging.nexera.id",
1941
- prod: "https://identity-v2.nexera.id"
1942
- }
1996
+ var CredentialNames = [{
1997
+ value: "AMLScreeningsResults",
1998
+ label: "AML screening results"
1999
+ }, {
2000
+ value: "ProofOfResidence",
2001
+ label: "Proof of residence"
2002
+ }, {
2003
+ value: "SelfieImage",
2004
+ label: "Selfie image"
2005
+ }, {
2006
+ value: "IDImage",
2007
+ label: "ID image"
2008
+ }, {
2009
+ value: "IDInformation",
2010
+ label: "ID information"
2011
+ }];
2012
+ var CredentialTypes = ["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "ID3",
2013
+ // this is for backwards compatibility
2014
+ "IDScan",
2015
+ // this is for backwards compatibility
2016
+ "IDScanSelfie",
2017
+ // this is for backwards compatibility
2018
+ "IDScanPassport" // this is for backwards compatibility
2019
+ ];
2020
+ var NexeraCredentialType = zod.z["enum"](CredentialTypes);
2021
+ var getCredentialName = function getCredentialName(value) {
2022
+ var _CredentialNames$find;
2023
+ return (_CredentialNames$find = CredentialNames.find(function (obj) {
2024
+ return obj.value === value;
2025
+ })) === null || _CredentialNames$find === void 0 ? void 0 : _CredentialNames$find.label;
1943
2026
  };
2027
+ var CredentialType = zod.z.string().transform(function (x) {
2028
+ return x.replace("_", "-");
2029
+ }) // TODO determine why this is needed
2030
+ .pipe(zod.z["enum"](CredentialTypes));
2031
+ // Should this be replaced by GenericVerifiableCredentialSchema?
1944
2032
 
1945
- function _toPrimitive(t, r) {
1946
- if ("object" != typeof t || !t) return t;
1947
- var e = t[Symbol.toPrimitive];
1948
- if (void 0 !== e) {
1949
- var i = e.call(t, r || "default");
1950
- if ("object" != typeof i) return i;
1951
- throw new TypeError("@@toPrimitive must return a primitive value.");
1952
- }
1953
- return ("string" === r ? String : Number)(t);
2033
+ var VerifiableCredential = zod.z.object({
2034
+ issuer: zod.z.string(),
2035
+ type: zod.z.array(zod.z.union([zod.z.string(), CredentialType])),
2036
+ credentialSubject: zod.z.record(zod.z.unknown())
2037
+ }).catchall(zod.z.any());
2038
+ var CredentialMediaType = IDImageCredentialSubjectSchema.shape.mediaType_front;
2039
+
2040
+ function _arrayLikeToArray(r, a) {
2041
+ (null == a || a > r.length) && (a = r.length);
2042
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2043
+ return n;
1954
2044
  }
1955
2045
 
1956
- function _toPropertyKey(t) {
1957
- var i = _toPrimitive(t, "string");
1958
- return "symbol" == typeof i ? i : i + "";
2046
+ function _arrayWithoutHoles(r) {
2047
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
1959
2048
  }
1960
2049
 
1961
- function _defineProperty(obj, key, value) {
1962
- key = _toPropertyKey(key);
1963
- if (key in obj) {
1964
- Object.defineProperty(obj, key, {
1965
- value: value,
1966
- enumerable: true,
1967
- configurable: true,
1968
- writable: true
1969
- });
1970
- } else {
1971
- obj[key] = value;
2050
+ function _iterableToArray(r) {
2051
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
2052
+ }
2053
+
2054
+ function _unsupportedIterableToArray(r, a) {
2055
+ if (r) {
2056
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
2057
+ var t = {}.toString.call(r).slice(8, -1);
2058
+ 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;
1972
2059
  }
1973
- return obj;
2060
+ }
2061
+
2062
+ function _nonIterableSpread() {
2063
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2064
+ }
2065
+
2066
+ function _toConsumableArray(r) {
2067
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
1974
2068
  }
1975
2069
 
1976
2070
  var ScenarioTypes = ["ChallengeQuery", "OnChainZKP", "OffChainZKP"];
@@ -2104,16 +2198,16 @@ function parseSessionIdFromUrl(urlString) {
2104
2198
  return sessionId;
2105
2199
  }
2106
2200
 
2107
- function _arrayWithHoles(arr) {
2108
- if (Array.isArray(arr)) return arr;
2201
+ function _arrayWithHoles(r) {
2202
+ if (Array.isArray(r)) return r;
2109
2203
  }
2110
2204
 
2111
2205
  function _nonIterableRest() {
2112
2206
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2113
2207
  }
2114
2208
 
2115
- function _toArray(arr) {
2116
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
2209
+ function _toArray(r) {
2210
+ return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
2117
2211
  }
2118
2212
 
2119
2213
  function zodEnumFromObjKeys(obj) {
@@ -2624,107 +2718,6 @@ var ComplianceImplementationStepsInput = zod.z.object({
2624
2718
  monitorIdentity: zod.z["boolean"]().nullish()
2625
2719
  });
2626
2720
 
2627
- var _EVM_BLOCK_TIME, _NEXERA_EVM_CHAIN_NAM, _NEXERA_CHAIN_VALUES;
2628
- var NEXERA_EVM_CHAINS = /*#__PURE__*/function (NEXERA_EVM_CHAINS) {
2629
- NEXERA_EVM_CHAINS["ETHEREUM"] = "1";
2630
- NEXERA_EVM_CHAINS["GOERLI"] = "5";
2631
- NEXERA_EVM_CHAINS["ARBITRUM"] = "42161";
2632
- NEXERA_EVM_CHAINS["ARBITRUM_GOERLI"] = "421613";
2633
- NEXERA_EVM_CHAINS["ARBITRUM_SEPOLIA"] = "421614";
2634
- NEXERA_EVM_CHAINS["OPTIMISM"] = "10";
2635
- NEXERA_EVM_CHAINS["OPTIMISM_GOERLI"] = "420";
2636
- NEXERA_EVM_CHAINS["OPTIMISM_SEPOLIA"] = "11155420";
2637
- NEXERA_EVM_CHAINS["AVALANCHE"] = "43114";
2638
- NEXERA_EVM_CHAINS["AVALANCHE_FUJI"] = "43113";
2639
- NEXERA_EVM_CHAINS["POLYGON"] = "137";
2640
- NEXERA_EVM_CHAINS["POLYGON_AMOY"] = "80002";
2641
- NEXERA_EVM_CHAINS["SEPOLIA"] = "11155111";
2642
- NEXERA_EVM_CHAINS["BASE"] = "8453";
2643
- NEXERA_EVM_CHAINS["BASE_GOERLI"] = "84531";
2644
- NEXERA_EVM_CHAINS["BASE_SEPOLIA"] = "84532";
2645
- NEXERA_EVM_CHAINS["MOONBEAM"] = "1284";
2646
- NEXERA_EVM_CHAINS["MOONRIVER"] = "1285";
2647
- NEXERA_EVM_CHAINS["BNB"] = "56";
2648
- NEXERA_EVM_CHAINS["BNB_TESTNET"] = "97";
2649
- NEXERA_EVM_CHAINS["SWISSTRONIK_TESTNET"] = "1291";
2650
- return NEXERA_EVM_CHAINS;
2651
- }({});
2652
- 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));
2653
- var NEXERA_TEZOS_CHAINS = /*#__PURE__*/function (NEXERA_TEZOS_CHAINS) {
2654
- NEXERA_TEZOS_CHAINS["TEZOS"] = "NetXdQprcVkpaWU";
2655
- NEXERA_TEZOS_CHAINS["TEZOS_GHOSTNET"] = "NetXnHfVqm9iesp";
2656
- return NEXERA_TEZOS_CHAINS;
2657
- }({});
2658
- var NEXERA_COSMOS_CHAINS = /*#__PURE__*/function (NEXERA_COSMOS_CHAINS) {
2659
- NEXERA_COSMOS_CHAINS["COSMOS"] = "cosmoshub-4";
2660
- NEXERA_COSMOS_CHAINS["COSMOS_TESTNET"] = "theta-testnet-001";
2661
- return NEXERA_COSMOS_CHAINS;
2662
- }({});
2663
- var NEXERA_STARKNET_CHAINS = /*#__PURE__*/function (NEXERA_STARKNET_CHAINS) {
2664
- NEXERA_STARKNET_CHAINS["STARKNET_MAIN"] = "0x534e5f4d41494e";
2665
- NEXERA_STARKNET_CHAINS["STARKNET_SEPOLIA"] = "0x534e5f5345504f4c4941";
2666
- return NEXERA_STARKNET_CHAINS;
2667
- }({});
2668
- 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"));
2669
- var NEXERA_EVM_CHAIN_NAMES_LIST = Object.values(NEXERA_EVM_CHAIN_NAMES);
2670
- 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"));
2671
- 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];
2672
- 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,
2673
- // for Bsc
2674
- 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];
2675
- var EvmChainId = zod.z.preprocess(function (val) {
2676
- return String(val);
2677
- }, zod.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>."));
2678
- /////////////////////////////////////////
2679
- // Polygon //
2680
- /////////////////////////////////////////
2681
-
2682
- var POLYGON_NETWORK_NAMES = ["main", "amoy"];
2683
- var PolygonNetworkNames = zod.z["enum"](POLYGON_NETWORK_NAMES);
2684
- /////////////////////////////////////////
2685
- // TEZOS //
2686
- /////////////////////////////////////////
2687
-
2688
- var NEXERA_TEZOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "Tezos Mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "Tezos Ghostnet");
2689
- var NEXERA_TEZOS_CHAIN_NAMES_LIST = Object.values(NEXERA_TEZOS_CHAIN_NAMES);
2690
- var NEXERA_TEZOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp");
2691
- var ACTIVE_TEZOS_CHAIN_VALUES = [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
2692
- var TezosChainId = zod.z.preprocess(function (val) {
2693
- return String(val);
2694
- }, zod.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>."));
2695
- /////////////////////////////////////////
2696
- // COSMOS //
2697
- /////////////////////////////////////////
2698
-
2699
- var COSMOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "Cosmos Mainnet"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "Cosmos Testnet");
2700
- var COSMOS_CHAIN_NAMES_LIST = Object.values(COSMOS_CHAIN_NAMES);
2701
- var COSMOS_CHAIN_VALUES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001");
2702
- var ACTIVE_COSMOS_CHAIN_VALUES = [NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET];
2703
- var CosmosChainId = zod.z.preprocess(function (val) {
2704
- return String(val);
2705
- }, zod.z["enum"](ACTIVE_COSMOS_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
2706
- /////////////////////////////////////////
2707
- // STARKNET //
2708
- /////////////////////////////////////////
2709
-
2710
- var NEXERA_STARKNET_CHAIN_NAMES = {
2711
- STARKNET_MAIN: "Starknet Mainnet",
2712
- STARKNET_SEPOLIA: "Starknet Sepolia"
2713
- };
2714
- var NEXERA_STARKNET_CHAIN_VALUES = {
2715
- STARKNET_MAIN: "0x534e5f4d41494e",
2716
- STARKNET_SEPOLIA: "0x534e5f5345504f4c4941"
2717
- };
2718
- var NEXERA_ACTIVE_STARKNET_CHAIN_VALUES = [NEXERA_STARKNET_CHAIN_VALUES.STARKNET_MAIN, NEXERA_STARKNET_CHAIN_VALUES.STARKNET_SEPOLIA];
2719
- var StarknetChainId = zod.z.preprocess(function (val) {
2720
- return String(val);
2721
- }, zod.z["enum"](NEXERA_ACTIVE_STARKNET_CHAIN_VALUES).describe("a value that identifies the chain of the address."));
2722
- /////////////////////////////////////////
2723
- // MERGED //
2724
- /////////////////////////////////////////
2725
-
2726
- var BlockchainId = zod.z.union([EvmChainId, TezosChainId, CosmosChainId, StarknetChainId]);
2727
-
2728
2721
  /////////////
2729
2722
  // EIP-155 //
2730
2723
  /////////////
@@ -3524,6 +3517,8 @@ exports.ZKPRequestFromZKVerifier = ZKPRequestFromZKVerifier;
3524
3517
  exports.ZeroKnowledgeProofRequest = ZeroKnowledgeProofRequest;
3525
3518
  exports.ZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse;
3526
3519
  exports.ZodParse = ZodParse;
3520
+ exports._defineProperty = _defineProperty;
3521
+ exports._toArray = _toArray;
3527
3522
  exports._toConsumableArray = _toConsumableArray;
3528
3523
  exports.coerceBoolean = coerceBoolean;
3529
3524
  exports.countryISO2toISO3Mapping = countryISO2toISO3Mapping;