@nexeraid/identity-schemas 2.37.0 → 2.38.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/{CoinMarketCap.schema-6a1ff221.cjs.prod.cjs → CoinMarketCap.schema-5142a776.cjs.prod.cjs} +23 -12
  2. package/dist/{CoinMarketCap.schema-aefa43e8.cjs.dev.cjs → CoinMarketCap.schema-f5000da2.cjs.dev.cjs} +23 -12
  3. package/dist/{CoinMarketCap.schema-280414c3.esm.mjs → CoinMarketCap.schema-f9a98f8e.esm.mjs} +11 -2
  4. package/dist/declarations/src/customer.schema.d.ts +7 -0
  5. package/dist/declarations/src/customer.schema.d.ts.map +1 -1
  6. package/dist/declarations/src/identity/app-requests.schema.d.ts +358 -170
  7. package/dist/declarations/src/identity/app-requests.schema.d.ts.map +1 -1
  8. package/dist/declarations/src/identity/host-requests.schema.d.ts +10 -10
  9. package/dist/declarations/src/identity/identity-v2.schema.d.ts +86 -42
  10. package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
  11. package/dist/declarations/src/identity/kyc.schema.d.ts +190 -94
  12. package/dist/declarations/src/identity/kyc.schema.d.ts.map +1 -1
  13. package/dist/declarations/src/identity/query.schema.d.ts +141 -565
  14. package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
  15. package/dist/declarations/src/identity/scenario.schema.d.ts +316 -562
  16. package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -1
  17. package/dist/declarations/src/identity/zkps.schema.d.ts +145 -53
  18. package/dist/declarations/src/identity/zkps.schema.d.ts.map +1 -1
  19. package/dist/declarations/src/index.d.ts +1 -0
  20. package/dist/declarations/src/index.d.ts.map +1 -1
  21. package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts +42 -42
  22. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts +16 -16
  23. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +36 -36
  24. package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +32 -32
  25. package/dist/declarations/src/providers/provider.schema.d.ts +469 -469
  26. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +36 -36
  27. package/dist/declarations/src/providers/synaps/synaps.schema.d.ts +100 -100
  28. package/dist/declarations/src/vault/data-link.schema.d.ts +8 -0
  29. package/dist/declarations/src/vault/data-link.schema.d.ts.map +1 -0
  30. package/dist/declarations/src/vault/index.d.ts +3 -0
  31. package/dist/declarations/src/vault/index.d.ts.map +1 -0
  32. package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +897 -0
  33. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +47 -0
  34. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -0
  35. package/dist/declarations/src/vault/schemas/generated/KycSession.schema.json.d.ts +1859 -0
  36. package/dist/declarations/src/vault/schemas/generated/KycSession.type.d.ts +219 -0
  37. package/dist/declarations/src/vault/schemas/generated/KycSession.type.d.ts.map +1 -0
  38. package/dist/declarations/src/vault/schemas/generated/Transaction.schema.json.d.ts +1139 -0
  39. package/dist/declarations/src/vault/schemas/generated/Transaction.type.d.ts +61 -0
  40. package/dist/declarations/src/vault/schemas/generated/Transaction.type.d.ts.map +1 -0
  41. package/dist/declarations/src/vault/vault.schema.d.ts +2808 -0
  42. package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -0
  43. package/dist/declarations/src/verifiable-credentials/index.d.ts +5 -10
  44. package/dist/declarations/src/verifiable-credentials/index.d.ts.map +1 -1
  45. package/dist/declarations/src/verifiable-credentials/vcs.schema.d.ts +8764 -0
  46. package/dist/declarations/src/verifiable-credentials/vcs.schema.d.ts.map +1 -0
  47. package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts +2 -2
  48. package/dist/declarations/src/webhooks/customer.webhooks.schema.d.ts +28 -28
  49. package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +100 -100
  50. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +1362 -1480
  51. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -1
  52. package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts +2 -2
  53. package/dist/{frontend-utilities.schema-2cdacfcb.cjs.dev.cjs → frontend-utilities.schema-3dbbc782.cjs.dev.cjs} +7 -6
  54. package/dist/{frontend-utilities.schema-2c6e346e.esm.mjs → frontend-utilities.schema-aae337dd.esm.mjs} +2 -1
  55. package/dist/{frontend-utilities.schema-fb803ead.cjs.prod.cjs → frontend-utilities.schema-b58a8d24.cjs.prod.cjs} +7 -6
  56. package/dist/identity-api.schema-185a6e6e.cjs.dev.cjs +2012 -0
  57. package/dist/identity-api.schema-774e69d4.cjs.prod.cjs +2012 -0
  58. package/dist/identity-api.schema-80658b16.esm.mjs +1654 -0
  59. package/dist/nexeraid-identity-schemas.cjs.dev.cjs +124 -98
  60. package/dist/nexeraid-identity-schemas.cjs.prod.cjs +124 -98
  61. package/dist/nexeraid-identity-schemas.esm.mjs +5 -4
  62. package/dist/package.json +25 -5
  63. package/dist/vault.schema-05a9f7fa.cjs.dev.cjs +6349 -0
  64. package/dist/vault.schema-d868aba3.cjs.prod.cjs +6349 -0
  65. package/dist/vault.schema-dc014e8d.esm.mjs +6238 -0
  66. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +16 -22
  67. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +16 -22
  68. package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +3 -1
  69. package/package.json +25 -5
  70. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +4 -2
  71. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +4 -2
  72. package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +4 -2
  73. package/vault/dist/nexeraid-identity-schemas-vault.cjs.cjs +7 -0
  74. package/vault/dist/nexeraid-identity-schemas-vault.cjs.d.cts +2 -0
  75. package/vault/dist/nexeraid-identity-schemas-vault.cjs.d.mts +2 -0
  76. package/vault/dist/nexeraid-identity-schemas-vault.cjs.d.ts +2 -0
  77. package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +25 -0
  78. package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +25 -0
  79. package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +3 -0
  80. package/vault/package.json +4 -0
  81. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +35 -20
  82. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +35 -20
  83. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +4 -2
  84. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +22 -17
  85. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +22 -17
  86. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +8 -3
  87. package/dist/identity-api.schema-79b2c3a7.esm.mjs +0 -3485
  88. package/dist/identity-api.schema-ab731fb2.cjs.prod.cjs +0 -3895
  89. package/dist/identity-api.schema-d2a8b678.cjs.dev.cjs +0 -3895
  90. package/dist/transaction.schema-16357ae0.esm.mjs +0 -65
  91. package/dist/transaction.schema-548b315f.cjs.prod.cjs +0 -101
  92. package/dist/transaction.schema-8c266a30.cjs.dev.cjs +0 -101
@@ -1,3895 +0,0 @@
1
- 'use strict';
2
-
3
- var zod = require('zod');
4
- var nanoid = require('nanoid');
5
-
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
- }
16
-
17
- function _toPropertyKey(t) {
18
- var i = _toPrimitive(t, "string");
19
- return "symbol" == typeof i ? i : i + "";
20
- }
21
-
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
- }
30
-
31
- /////////////////////////////////////////
32
- // APTOS //
33
- /////////////////////////////////////////
34
-
35
- var NEXERA_APTOS_CHAINS = /*#__PURE__*/function (NEXERA_APTOS_CHAINS) {
36
- NEXERA_APTOS_CHAINS["MAINNET"] = "mainnet-aptos";
37
- NEXERA_APTOS_CHAINS["TESTNET"] = "testnet-aptos";
38
- return NEXERA_APTOS_CHAINS;
39
- }({});
40
- var APTOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_APTOS_CHAINS.MAINNET, "Aptos Mainnet"), NEXERA_APTOS_CHAINS.TESTNET, "Aptos Testnet");
41
- var APTOS_CHAIN_NAMES_LIST = Object.values(APTOS_CHAIN_NAMES);
42
- var APTOS_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_APTOS_CHAINS.MAINNET, "mainnet-aptos"), NEXERA_APTOS_CHAINS.TESTNET, "testnet-aptos");
43
- var ACTIVE_APTOS_CHAIN_IDS = [NEXERA_APTOS_CHAINS.MAINNET, NEXERA_APTOS_CHAINS.TESTNET];
44
- var AptosChainId = zod.z["enum"](ACTIVE_APTOS_CHAIN_IDS).describe("a value that identifies the chain of the address.");
45
-
46
- /////////////////////////////////////////
47
- // BITCOIN //
48
- /////////////////////////////////////////
49
-
50
- var NEXERA_BITCOIN_CHAINS = /*#__PURE__*/function (NEXERA_BITCOIN_CHAINS) {
51
- NEXERA_BITCOIN_CHAINS["MAINNET"] = "mainnet-bitcoin";
52
- NEXERA_BITCOIN_CHAINS["TESTNET"] = "testnet-bitcoin";
53
- return NEXERA_BITCOIN_CHAINS;
54
- }({});
55
- var BITCOIN_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_BITCOIN_CHAINS.MAINNET, "Bitcoin Mainnet"), NEXERA_BITCOIN_CHAINS.TESTNET, "Bitcoin Testnet");
56
- var BITCOIN_CHAIN_NAMES_LIST = Object.values(BITCOIN_CHAIN_NAMES);
57
- var BITCOIN_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_BITCOIN_CHAINS.MAINNET, "mainnet-bitcoin"), NEXERA_BITCOIN_CHAINS.TESTNET, "testnet-bitcoin");
58
- var ACTIVE_BITCOIN_CHAIN_IDS = [NEXERA_BITCOIN_CHAINS.MAINNET, NEXERA_BITCOIN_CHAINS.TESTNET];
59
- var BitcoinChainId = zod.z["enum"](ACTIVE_BITCOIN_CHAIN_IDS).describe("a value that identifies the chain of the address.");
60
-
61
- /////////////////////////////////////////
62
- // CARDANO //
63
- /////////////////////////////////////////
64
-
65
- var NEXERA_CARDANO_CHAINS = /*#__PURE__*/function (NEXERA_CARDANO_CHAINS) {
66
- NEXERA_CARDANO_CHAINS["MAINNET"] = "cardano-mainnet";
67
- NEXERA_CARDANO_CHAINS["TESTNET"] = "cardano-testnet";
68
- return NEXERA_CARDANO_CHAINS;
69
- }({});
70
- var CARDANO_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_CARDANO_CHAINS.MAINNET, "Cardano Mainnet"), NEXERA_CARDANO_CHAINS.TESTNET, "Cardano Testnet");
71
- var CARDANO_CHAIN_NAMES_LIST = Object.values(CARDANO_CHAIN_NAMES);
72
- var CARDANO_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_CARDANO_CHAINS.MAINNET, "cardano-mainnet"), NEXERA_CARDANO_CHAINS.TESTNET, "cardano-testnet");
73
- var ACTIVE_CARDANO_CHAIN_IDS = [NEXERA_CARDANO_CHAINS.MAINNET, NEXERA_CARDANO_CHAINS.TESTNET];
74
- var CardanoChainId = zod.z["enum"](ACTIVE_CARDANO_CHAIN_IDS).describe("a value that identifies the chain of the address.");
75
-
76
- /////////////////////////////////////////
77
- // COSMOS //
78
- /////////////////////////////////////////
79
-
80
- var NEXERA_COSMOS_CHAINS = /*#__PURE__*/function (NEXERA_COSMOS_CHAINS) {
81
- NEXERA_COSMOS_CHAINS["COSMOS"] = "cosmoshub-4";
82
- NEXERA_COSMOS_CHAINS["COSMOS_TESTNET"] = "theta-testnet-001";
83
- return NEXERA_COSMOS_CHAINS;
84
- }({});
85
- var COSMOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "Cosmos Mainnet"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "Cosmos Testnet");
86
- var COSMOS_CHAIN_NAMES_LIST = Object.values(COSMOS_CHAIN_NAMES);
87
- var COSMOS_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001");
88
- var ACTIVE_COSMOS_CHAIN_IDS = [NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET];
89
- var CosmosChainId = zod.z["enum"](ACTIVE_COSMOS_CHAIN_IDS).describe("a value that identifies the chain of the address.");
90
-
91
- var _NEXERA_EVM_CHAIN_NAM, _EVM_BLOCK_TIME;
92
- var NEXERA_EVM_CHAINS = /*#__PURE__*/function (NEXERA_EVM_CHAINS) {
93
- NEXERA_EVM_CHAINS["ETHEREUM"] = "1";
94
- NEXERA_EVM_CHAINS["GOERLI"] = "5";
95
- NEXERA_EVM_CHAINS["ARBITRUM"] = "42161";
96
- NEXERA_EVM_CHAINS["ARBITRUM_GOERLI"] = "421613";
97
- NEXERA_EVM_CHAINS["ARBITRUM_SEPOLIA"] = "421614";
98
- NEXERA_EVM_CHAINS["OPTIMISM"] = "10";
99
- NEXERA_EVM_CHAINS["OPTIMISM_GOERLI"] = "420";
100
- NEXERA_EVM_CHAINS["OPTIMISM_SEPOLIA"] = "11155420";
101
- NEXERA_EVM_CHAINS["AVALANCHE"] = "43114";
102
- NEXERA_EVM_CHAINS["AVALANCHE_FUJI"] = "43113";
103
- NEXERA_EVM_CHAINS["POLYGON"] = "137";
104
- NEXERA_EVM_CHAINS["POLYGON_AMOY"] = "80002";
105
- NEXERA_EVM_CHAINS["SEPOLIA"] = "11155111";
106
- NEXERA_EVM_CHAINS["BASE"] = "8453";
107
- NEXERA_EVM_CHAINS["BASE_GOERLI"] = "84531";
108
- NEXERA_EVM_CHAINS["BASE_SEPOLIA"] = "84532";
109
- NEXERA_EVM_CHAINS["MOONBEAM"] = "1284";
110
- NEXERA_EVM_CHAINS["MOONRIVER"] = "1285";
111
- NEXERA_EVM_CHAINS["BNB"] = "56";
112
- NEXERA_EVM_CHAINS["BNB_TESTNET"] = "97";
113
- NEXERA_EVM_CHAINS["SWISSTRONIK_TESTNET"] = "1291";
114
- return NEXERA_EVM_CHAINS;
115
- }({});
116
- 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.SEPOLIA, "Sepolia Testnet"), NEXERA_EVM_CHAINS.POLYGON, "Polygon Mainnet"), NEXERA_EVM_CHAINS.POLYGON_AMOY, "Polygon Amoy Testnet"), NEXERA_EVM_CHAINS.AVALANCHE, "Avalanche Mainnet"), NEXERA_EVM_CHAINS.AVALANCHE_FUJI, "Avalanche Fuji Testnet"), NEXERA_EVM_CHAINS.ARBITRUM, "Arbitrum Mainnet"), NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, "Arbitrum Sepolia Testnet"), NEXERA_EVM_CHAINS.BASE, "Base Mainnet"), NEXERA_EVM_CHAINS.BASE_SEPOLIA, "Base Sepolia Testnet"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_NEXERA_EVM_CHAIN_NAM, NEXERA_EVM_CHAINS.BNB, "Binance Smart Chain Mainnet"), NEXERA_EVM_CHAINS.BNB_TESTNET, "Binance Smart Chain Testnet"), NEXERA_EVM_CHAINS.OPTIMISM, "Optimism Mainnet"), NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, "Optimism Sepolia Testnet"), NEXERA_EVM_CHAINS.MOONBEAM, "Moonbeam Mainnet"), NEXERA_EVM_CHAINS.MOONRIVER, "Moonriver Mainnet"), NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET, "Swisstronik Testnet"));
117
- var NEXERA_EVM_CHAIN_NAMES_LIST = Object.values(NEXERA_EVM_CHAIN_NAMES);
118
- var NEXERA_EVM_CHAINS_ID = [NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.GOERLI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_GOERLI, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_GOERLI, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_GOERLI, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.SWISSTRONIK_TESTNET];
119
- var NexeraEvmChains = zod.z["enum"](NEXERA_EVM_CHAINS_ID);
120
- 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));
121
- 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];
122
- 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,
123
- // for Bsc
124
- 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];
125
- var EvmChainId = 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>.");
126
-
127
- /////////////////////////////////////////
128
- // POLKADOT //
129
- /////////////////////////////////////////
130
-
131
- var NEXERA_POLKADOT_CHAINS = /*#__PURE__*/function (NEXERA_POLKADOT_CHAINS) {
132
- NEXERA_POLKADOT_CHAINS["POLKADOT_RELAY_CHAIN"] = "polkadot-relay-chain";
133
- NEXERA_POLKADOT_CHAINS["KUSAMA_RELAY_CHAIN"] = "kusama-relay-chain";
134
- NEXERA_POLKADOT_CHAINS["POLKADOT_TESTNET"] = "polkadot-testnet";
135
- return NEXERA_POLKADOT_CHAINS;
136
- }({});
137
- var POLKADOT_CHAIN_NAMES = _defineProperty(_defineProperty(_defineProperty({}, NEXERA_POLKADOT_CHAINS.POLKADOT_RELAY_CHAIN, "Polkadot Mainnet"), NEXERA_POLKADOT_CHAINS.KUSAMA_RELAY_CHAIN, "Kusama Testnet"), NEXERA_POLKADOT_CHAINS.POLKADOT_TESTNET, "Polkadot Testnet");
138
- var POLKADOT_CHAIN_NAMES_LIST = Object.values(POLKADOT_CHAIN_NAMES);
139
- var POLKADOT_CHAIN_IDS = _defineProperty(_defineProperty(_defineProperty({}, NEXERA_POLKADOT_CHAINS.POLKADOT_RELAY_CHAIN, "polkadot-relay-chain"), NEXERA_POLKADOT_CHAINS.KUSAMA_RELAY_CHAIN, "kusama-relay-chain"), NEXERA_POLKADOT_CHAINS.POLKADOT_TESTNET, "polkadot-testnet");
140
- var ACTIVE_POLKADOT_CHAIN_IDS = [NEXERA_POLKADOT_CHAINS.POLKADOT_RELAY_CHAIN, NEXERA_POLKADOT_CHAINS.KUSAMA_RELAY_CHAIN, NEXERA_POLKADOT_CHAINS.POLKADOT_TESTNET];
141
- var PolkadotChainId = zod.z["enum"](ACTIVE_POLKADOT_CHAIN_IDS).describe("a value that identifies the chain of the address.");
142
-
143
- /////////////////////////////////////////
144
- // SOLANA //
145
- /////////////////////////////////////////
146
-
147
- var NEXERA_SOLANA_CHAINS = /*#__PURE__*/function (NEXERA_SOLANA_CHAINS) {
148
- NEXERA_SOLANA_CHAINS["MAINNET"] = "solana-mainnet";
149
- NEXERA_SOLANA_CHAINS["TESTNET"] = "solana-testnet";
150
- NEXERA_SOLANA_CHAINS["DEVNET"] = "solana-devnet";
151
- return NEXERA_SOLANA_CHAINS;
152
- }({});
153
- var SOLANA_CHAIN_NAMES = _defineProperty(_defineProperty(_defineProperty({}, NEXERA_SOLANA_CHAINS.MAINNET, "Solana Mainnet"), NEXERA_SOLANA_CHAINS.TESTNET, "Solana Testnet"), NEXERA_SOLANA_CHAINS.DEVNET, "Solana Devnet");
154
- var SOLANA_CHAIN_NAMES_LIST = Object.values(SOLANA_CHAIN_NAMES);
155
- var SOLANA_CHAIN_IDS = _defineProperty(_defineProperty(_defineProperty({}, NEXERA_SOLANA_CHAINS.MAINNET, "solana-mainnet"), NEXERA_SOLANA_CHAINS.TESTNET, "solana-testnet"), NEXERA_SOLANA_CHAINS.DEVNET, "solana-devnet");
156
- var ACTIVE_SOLANA_CHAIN_IDS = [NEXERA_SOLANA_CHAINS.MAINNET, NEXERA_SOLANA_CHAINS.TESTNET, NEXERA_SOLANA_CHAINS.DEVNET];
157
- var SolanaChainId = zod.z["enum"](ACTIVE_SOLANA_CHAIN_IDS).describe("a value that identifies the chain of the address.");
158
-
159
- /////////////////////////////////////////
160
- // STARKNET //
161
- /////////////////////////////////////////
162
-
163
- var NEXERA_STARKNET_CHAINS = /*#__PURE__*/function (NEXERA_STARKNET_CHAINS) {
164
- NEXERA_STARKNET_CHAINS["STARKNET_MAIN"] = "0x534e5f4d41494e";
165
- NEXERA_STARKNET_CHAINS["STARKNET_SEPOLIA"] = "0x534e5f5345504f4c4941";
166
- return NEXERA_STARKNET_CHAINS;
167
- }({});
168
- var NEXERA_STARKNET_CHAIN_NAMES = {
169
- STARKNET_MAIN: "Starknet Mainnet",
170
- STARKNET_SEPOLIA: "Starknet Sepolia"
171
- };
172
- var NEXERA_STARKNET_CHAIN_IDS = {
173
- STARKNET_MAIN: "0x534e5f4d41494e",
174
- STARKNET_SEPOLIA: "0x534e5f5345504f4c4941"
175
- };
176
- var NEXERA_ACTIVE_STARKNET_CHAIN_IDS = [NEXERA_STARKNET_CHAIN_IDS.STARKNET_MAIN, NEXERA_STARKNET_CHAIN_IDS.STARKNET_SEPOLIA];
177
- var StarknetChainId = zod.z["enum"](NEXERA_ACTIVE_STARKNET_CHAIN_IDS).describe("a value that identifies the chain of the address.");
178
-
179
- var NEXERA_TEZOS_CHAINS = /*#__PURE__*/function (NEXERA_TEZOS_CHAINS) {
180
- NEXERA_TEZOS_CHAINS["TEZOS"] = "NetXdQprcVkpaWU";
181
- NEXERA_TEZOS_CHAINS["TEZOS_GHOSTNET"] = "NetXnHfVqm9iesp";
182
- return NEXERA_TEZOS_CHAINS;
183
- }({});
184
- /////////////////////////////////////////
185
- // TEZOS //
186
- /////////////////////////////////////////
187
-
188
- var NEXERA_TEZOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "Tezos Mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "Tezos Ghostnet");
189
- var NEXERA_TEZOS_CHAIN_NAMES_LIST = Object.values(NEXERA_TEZOS_CHAIN_NAMES);
190
- var NEXERA_TEZOS_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp");
191
- var ACTIVE_TEZOS_CHAIN_IDS = [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
192
- var TezosChainId = zod.z["enum"](ACTIVE_TEZOS_CHAIN_IDS).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>.");
193
-
194
- /////////////////////////////////////////
195
- // MERGED //
196
- /////////////////////////////////////////
197
-
198
- var BlockchainId = zod.z.union([EvmChainId, TezosChainId, CosmosChainId, StarknetChainId, BitcoinChainId, AptosChainId, PolkadotChainId, SolanaChainId, CardanoChainId]);
199
- var NonTestnetBlockchainId = zod.z.union([zod.z.literal(NEXERA_EVM_CHAINS.ETHEREUM), zod.z.literal(NEXERA_EVM_CHAINS.POLYGON), zod.z.literal(NEXERA_EVM_CHAINS.AVALANCHE), zod.z.literal(NEXERA_EVM_CHAINS.ARBITRUM), zod.z.literal(NEXERA_EVM_CHAINS.BASE), zod.z.literal(NEXERA_EVM_CHAINS.BNB), zod.z.literal(NEXERA_EVM_CHAINS.OPTIMISM), zod.z.literal(NEXERA_EVM_CHAINS.MOONBEAM), zod.z.literal(NEXERA_EVM_CHAINS.MOONRIVER), zod.z.literal(NEXERA_TEZOS_CHAINS.TEZOS), zod.z.literal(NEXERA_COSMOS_CHAINS.COSMOS), zod.z.literal(NEXERA_STARKNET_CHAINS.STARKNET_MAIN), zod.z.literal(NEXERA_BITCOIN_CHAINS.MAINNET), zod.z.literal(NEXERA_APTOS_CHAINS.MAINNET), zod.z.literal(NEXERA_POLKADOT_CHAINS.POLKADOT_RELAY_CHAIN), zod.z.literal(NEXERA_POLKADOT_CHAINS.KUSAMA_RELAY_CHAIN), zod.z.literal(NEXERA_SOLANA_CHAINS.MAINNET), zod.z.literal(NEXERA_CARDANO_CHAINS.MAINNET)]);
200
-
201
- /////////////////////////////////////////
202
- // Polygon //
203
- /////////////////////////////////////////
204
-
205
- var POLYGON_NETWORK_NAMES = ["main", "amoy"];
206
- var PolygonNetworkNames = zod.z["enum"](POLYGON_NETWORK_NAMES);
207
-
208
- /**
209
- * EIP155
210
- */
211
- var String0x = zod.z.string().refine(function (value) {
212
- return value.startsWith("0x");
213
- }, {
214
- message: "0x string must start with '0x'"
215
- }).describe("0x string");
216
- var HexadecimalSchema = zod.z.string().refine(function (value) {
217
- return /^[0-9a-fA-F]+$/.test(value);
218
- }, {
219
- message: "Input must be a hexadecimal string"
220
- });
221
-
222
- /**
223
- * EIP155
224
- */
225
- var isValidAddress = function isValidAddress(address) {
226
- var regex = /^0x[a-fA-F0-9]{40}$/;
227
- return regex.test(address);
228
- };
229
- var PrivateKey = String0x;
230
- var PublicKey = zod.z.string();
231
- /**
232
- * Note: it might be nice to use String0x as the base object instead of z.string(),
233
- * but this causes update-api to fail with the following error:
234
- * TRPCError: [query.kyc.sumsub.getJourneyData] -
235
- * Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
236
- */
237
- var AddressSchema = zod.z.string().refine(function (value) {
238
- // Check if the string starts with '0x' and the rest is a valid hexadecimal string
239
- return /^0x[0-9A-Fa-f]*$/.test(value);
240
- }, {
241
- message: "Value must be a valid hexadecimal string prefixed with 0x"
242
- }).transform(function (value) {
243
- return value;
244
- }).describe("String value that identifies the address of a specific user. Normally tied to an EOA that includes the Smart Wallet.");
245
- var TxHash = zod.z.string().refine(function (value) {
246
- // Check if the string starts with '0x' and the rest is a valid hexadecimal string
247
- return /^0x[0-9A-Fa-f]*$/.test(value);
248
- }, {
249
- message: "Value must be a valid hexadecimal string prefixed with 0x"
250
- }).transform(function (value) {
251
- return value;
252
- }).describe("Transaction hash");
253
- var shortBlockchainAddress = function shortBlockchainAddress(address) {
254
- return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
255
- };
256
-
257
- /**
258
- * Aptos
259
- */
260
- var AptosAddress = String0x;
261
- /**
262
- * Starknet
263
- */
264
- var StarknetAddress = String0x;
265
- /**
266
- * Polkadot
267
- */
268
- var PolkadotAddress = zod.z.string();
269
- /**
270
- * Cosmos
271
- */
272
- var CosmosAddress = zod.z.string().refine(function (value) {
273
- return value.startsWith("cosmos");
274
- }, {
275
- message: "Cosmos address must start with 'cosmos'"
276
- }).transform(function (value) {
277
- return value;
278
- }).describe("Cosmos address");
279
- /**
280
- * Tezos
281
- */
282
-
283
- var TezosImplicitAddress = zod.z.string().refine(function (value) {
284
- return value.startsWith("tz");
285
- }, {
286
- message: "Tezos address (implicit account) must start with 'tz'"
287
- }).describe("Tezos address (implicit account)");
288
- var TezosContractAddress = zod.z.string().refine(function (value) {
289
- return value.startsWith("KT1");
290
- }, {
291
- message: "Tezos contract address must start with 'KT1'"
292
- }).describe("Tezos contract address");
293
- var TezosAddress = zod.z.union([TezosImplicitAddress, TezosContractAddress]);
294
- /**
295
- * Cardano
296
- */
297
- var CardanoAddress = zod.z.string().refine(function (value) {
298
- return value.startsWith("addr");
299
- }, {
300
- message: "Cardano address must start with 'addr'"
301
- }).transform(function (value) {
302
- return value;
303
- }).describe("Cosmos address");
304
- /**
305
- * Bitcoin
306
- */
307
- var BitcoinP2PKHAddress = zod.z.string().refine(function (value) {
308
- return value.startsWith("1");
309
- }, {
310
- message: "Bitcoin P2PKH Address must start with '1'"
311
- }).describe("Bitcoin P2PKH Address");
312
- var BitcoinP2SHAddress = zod.z.string().refine(function (value) {
313
- return value.startsWith("3");
314
- }, {
315
- message: "Bitcoin P2SH Address must start with '3'"
316
- }).describe("Bitcoin P2SH Address");
317
- var BitcoinBech32Address = zod.z.string().refine(function (value) {
318
- return value.startsWith("bc1");
319
- }, {
320
- message: "Bitcoin Bech32 Address must start with 'bc1'"
321
- }).describe("Bitcoin Bech32 Address");
322
- var BitcoinTestnetP2PKHAddress = zod.z.string().refine(function (value) {
323
- return value.startsWith("m") || value.startsWith("n");
324
- }, {
325
- message: "Bitcoin Testnet P2PKH Address must start with 'm' or 'n'"
326
- }).describe("Bitcoin Testnet P2PKH Address");
327
- var BitcoinTestnetP2SHAddress = zod.z.string().refine(function (value) {
328
- return value.startsWith("2");
329
- }, {
330
- message: "Bitcoin Testnet P2SH Address must start with '2'"
331
- }).describe("Bitcoin Testnet P2SH Address");
332
- var BitcoinTestnetBech32Address = zod.z.string().refine(function (value) {
333
- return value.startsWith("tb1");
334
- }, {
335
- message: "Bitcoin Testnet Bech32 Address must start with 'tb1'"
336
- }).describe("Bitcoin Testnet Bech32 Address");
337
- var BitcoinAddress = zod.z.union([BitcoinP2PKHAddress, BitcoinP2SHAddress, BitcoinBech32Address, BitcoinTestnetP2PKHAddress, BitcoinTestnetP2SHAddress, BitcoinTestnetBech32Address]);
338
- /**
339
- * Chain agnostic schemas
340
- */
341
- var BlockchainAddress = zod.z.union([AddressSchema, TezosAddress, AptosAddress, PolkadotAddress, StarknetAddress, CosmosAddress, CardanoAddress, BitcoinAddress]);
342
-
343
- var BLOCKCHAIN_NAMESPACES = ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "bitcoin"];
344
- var BlockchainNamespace = zod.z["enum"](BLOCKCHAIN_NAMESPACES);
345
- var SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH = ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
346
- var SupportedBlockchainNamespaceForSignatureAuth = zod.z["enum"](SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH);
347
- // Nicer names
348
- var BLOCKCHAIN_NAMESPACES_NAMES = {
349
- tezos: "Tezos",
350
- eip155: "EVM",
351
- aptos: "Aptos",
352
- polkadot: "Polkadot",
353
- starknet: "Starknet",
354
- cosmos: "Cosmos",
355
- solana: "Solana",
356
- cardano: "Cardano",
357
- bitcoin: "Bitcoin"
358
- };
359
- var DISPLAYED_BLOCKCHAIN_NAMESPACES = ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin"];
360
- var DisplayedBlockchainNamespace = zod.z["enum"](DISPLAYED_BLOCKCHAIN_NAMESPACES);
361
- var BLOCKCHAIN_NAME_TO_NAMESPACE = {
362
- Tezos: "tezos",
363
- EVM: "eip155",
364
- Aptos: "aptos",
365
- Polkadot: "polkadot",
366
- Starknet: "starknet",
367
- Cosmos: "cosmos",
368
- Solana: "solana",
369
- Cardano: "cardano",
370
- Bitcoin: "bitcoin"
371
- };
372
- var BLOCKCHAIN_NAMESPACE_TO_NAME = {
373
- tezos: "Tezos",
374
- eip155: "EVM",
375
- aptos: "Aptos",
376
- polkadot: "Polkadot",
377
- starknet: "Starknet",
378
- cosmos: "Cosmos",
379
- solana: "Solana",
380
- cardano: "Cardano",
381
- bitcoin: "Bitcoin"
382
- };
383
-
384
- /**
385
- * EIP155
386
- */
387
-
388
- var EIP155Signature = String0x;
389
- /**
390
- * Aptos
391
- */
392
- var AptosSignature = zod.z.string();
393
- /**
394
- * Starknet
395
- */
396
-
397
- var StarknetSignature = String0x;
398
- /**
399
- * Polkadot
400
- */
401
-
402
- var PolkadotSignature = String0x;
403
- /**
404
- * Cosmos
405
- */
406
-
407
- var CosmosSignature = HexadecimalSchema;
408
- /**
409
- * Tezos
410
- */
411
-
412
- var EdSignature = zod.z.string().refine(function (value) {
413
- return value.startsWith("edsig");
414
- }, {
415
- message: "EdSignature must start with 'edsig'"
416
- });
417
- var SpSignature = zod.z.string().refine(function (value) {
418
- return value.startsWith("spsig");
419
- }, {
420
- message: "SpSignature must start with 'spsig'"
421
- });
422
- var P2Signature = zod.z.string().refine(function (value) {
423
- return value.startsWith("p2sig");
424
- }, {
425
- message: "P2Signature must start with 'p2sig'"
426
- });
427
- var TezosSignature = zod.z.union([EdSignature, SpSignature, P2Signature]);
428
- /**
429
- * Cardano
430
- */
431
-
432
- var CardanoSignature = HexadecimalSchema;
433
- /**
434
- * Chain agnostic schemas
435
- */
436
-
437
- var BlockchainSignature = zod.z.union([EIP155Signature, TezosSignature, AptosSignature, PolkadotSignature, StarknetSignature, CosmosSignature, CardanoSignature]);
438
-
439
- /**
440
- * EIP155
441
- */
442
-
443
- var FunctionCallData = String0x;
444
- /**
445
- * Tezos
446
- */
447
-
448
- var TezosEntrypointName = zod.z.string().refine(function (value) {
449
- return value.startsWith("%");
450
- }, {
451
- message: "Tezos entrypoint name must start with '%'"
452
- }).describe("Tezos entrypoint name");
453
-
454
- var ENVS = ["cicd", "local", "test-dev-1", "test-dev-2", "test-dev-3", "dev", "stage", "prod"];
455
- var EnvironmentSchema = zod.z["enum"](ENVS);
456
- var UuidString = zod.z.string().uuid();
457
- var OtpCode = zod.z.string().regex(/^\d{6}$/, "OtpCode must be a 6-digit number");
458
- /**
459
- * All public services
460
- */
461
- var PUBLIC_SERVICES_SCHEMA_MAP = {
462
- api: {
463
- cicd: "http://localhost:3001",
464
- local: "http://localhost:3001",
465
- "test-dev-1": "https://api-test-dev-1.bjrcom.xyz",
466
- "test-dev-2": "https://api-test-dev-2.bjrcom.xyz",
467
- "test-dev-3": "https://api-test-dev-3.bjrcom.xyz",
468
- dev: "https://api.bjrcom.xyz",
469
- stage: "https://api.bjrpilot.xyz",
470
- prod: "https://api.compilot.ai"
471
- },
472
- identity_api: {
473
- cicd: "http://localhost:3015",
474
- local: "http://localhost:3015",
475
- "test-dev-1": "https://identity-api-test-dev-1.bjrcom.xyz",
476
- "test-dev-2": "https://identity-api-test-dev-2.bjrcom.xyz",
477
- "test-dev-3": "https://identity-api-test-dev-3.bjrcom.xyz",
478
- dev: "https://identity-api.bjrcom.xyz",
479
- stage: "https://identity-api.bjrpilot.xyz",
480
- prod: "https://identity-api.compilot.ai"
481
- },
482
- identityV2: {
483
- cicd: "http://localhost:3009",
484
- local: "http://localhost:3009",
485
- "test-dev-1": "https://identity-v2-test-dev-1.bjrcom.xyz",
486
- "test-dev-2": "https://identity-v2-test-dev-2.bjrcom.xyz",
487
- "test-dev-3": "https://identity-v2-test-dev-3.bjrcom.xyz",
488
- dev: "https://identity-v2.bjrcom.xyz",
489
- stage: "https://identity-v2.bjrpilot.xyz",
490
- prod: "https://identity-v2.compilot.ai"
491
- }
492
- };
493
- var IpAddress = zod.z.string().optional().refine(function (val) {
494
- return val === undefined || zod.z.string().ip().safeParse(val).success;
495
- }, {
496
- message: "Invalid IP address"
497
- });
498
-
499
- var IDInformationCredentialSubjectSchema = zod.z.object({
500
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
501
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
502
- reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
503
- reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
504
- 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(),
505
- 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"),
506
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
507
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
508
- personalData: zod.z.object({
509
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
510
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
511
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
512
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
513
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
514
- 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(),
515
- 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(),
516
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
517
- 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(),
518
- 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(),
519
- stateOfBirth: zod.z.string().describe("State of birth of the credential subject").optional()
520
- }).describe("Original data extracted by the provider"),
521
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
522
- }).describe("Stores the data of the credential");
523
-
524
- var ISO3CountryCode = IDInformationCredentialSubjectSchema.shape.personalData.shape.citizenship.unwrap();
525
- 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"];
526
- var Alpha2Country = zod.z["enum"](ALPHA_2_COUNTRIES);
527
- var countryISO3toISO2Mapping = {
528
- AFG: "AF",
529
- ALA: "AX",
530
- ALB: "AL",
531
- DZA: "DZ",
532
- ASM: "AS",
533
- AND: "AD",
534
- AGO: "AO",
535
- AIA: "AI",
536
- ATA: "AQ",
537
- ATG: "AG",
538
- ARG: "AR",
539
- ARM: "AM",
540
- ABW: "AW",
541
- AUS: "AU",
542
- AUT: "AT",
543
- AZE: "AZ",
544
- BHS: "BS",
545
- BHR: "BH",
546
- BGD: "BD",
547
- BRB: "BB",
548
- BLR: "BY",
549
- BEL: "BE",
550
- BLZ: "BZ",
551
- BEN: "BJ",
552
- BMU: "BM",
553
- BTN: "BT",
554
- BOL: "BO",
555
- BES: "BQ",
556
- BIH: "BA",
557
- BWA: "BW",
558
- BVT: "BV",
559
- BRA: "BR",
560
- VGB: "VG",
561
- IOT: "IO",
562
- BRN: "BN",
563
- BGR: "BG",
564
- BFA: "BF",
565
- BDI: "BI",
566
- KHM: "KH",
567
- CMR: "CM",
568
- CAN: "CA",
569
- CPV: "CV",
570
- CYM: "KY",
571
- CAF: "CF",
572
- TCD: "TD",
573
- CHL: "CL",
574
- CHN: "CN",
575
- HKG: "HK",
576
- MAC: "MO",
577
- CXR: "CX",
578
- CCK: "CC",
579
- COL: "CO",
580
- COM: "KM",
581
- COG: "CG",
582
- COD: "CD",
583
- COK: "CK",
584
- CRI: "CR",
585
- CIV: "CI",
586
- HRV: "HR",
587
- CUB: "CU",
588
- CUW: "CW",
589
- CYP: "CY",
590
- CZE: "CZ",
591
- DNK: "DK",
592
- DJI: "DJ",
593
- DMA: "DM",
594
- DOM: "DO",
595
- ECU: "EC",
596
- EGY: "EG",
597
- SLV: "SV",
598
- GNQ: "GQ",
599
- ERI: "ER",
600
- EST: "EE",
601
- ETH: "ET",
602
- FLK: "FK",
603
- FRO: "FO",
604
- FJI: "FJ",
605
- FIN: "FI",
606
- FRA: "FR",
607
- GUF: "GF",
608
- PYF: "PF",
609
- ATF: "TF",
610
- GAB: "GA",
611
- GMB: "GM",
612
- GEO: "GE",
613
- DEU: "DE",
614
- GHA: "GH",
615
- GIB: "GI",
616
- GRC: "GR",
617
- GRL: "GL",
618
- GRD: "GD",
619
- GLP: "GP",
620
- GUM: "GU",
621
- GTM: "GT",
622
- GGY: "GG",
623
- GIN: "GN",
624
- GNB: "GW",
625
- GUY: "GY",
626
- HTI: "HT",
627
- HMD: "HM",
628
- VAT: "VA",
629
- HND: "HN",
630
- HUN: "HU",
631
- ISL: "IS",
632
- IND: "IN",
633
- IDN: "ID",
634
- IRN: "IR",
635
- IRQ: "IQ",
636
- IRL: "IE",
637
- IMN: "IM",
638
- ISR: "IL",
639
- ITA: "IT",
640
- JAM: "JM",
641
- JPN: "JP",
642
- JEY: "JE",
643
- JOR: "JO",
644
- KAZ: "KZ",
645
- KEN: "KE",
646
- KIR: "KI",
647
- PRK: "KP",
648
- KOR: "KR",
649
- KWT: "KW",
650
- KGZ: "KG",
651
- LAO: "LA",
652
- LVA: "LV",
653
- LBN: "LB",
654
- LSO: "LS",
655
- LBR: "LR",
656
- LBY: "LY",
657
- LIE: "LI",
658
- LTU: "LT",
659
- LUX: "LU",
660
- MKD: "MK",
661
- MDG: "MG",
662
- MWI: "MW",
663
- MYS: "MY",
664
- MDV: "MV",
665
- MLI: "ML",
666
- MLT: "MT",
667
- MHL: "MH",
668
- MTQ: "MQ",
669
- MRT: "MR",
670
- MUS: "MU",
671
- MYT: "YT",
672
- MEX: "MX",
673
- FSM: "FM",
674
- MDA: "MD",
675
- MCO: "MC",
676
- MNG: "MN",
677
- MNE: "ME",
678
- MSR: "MS",
679
- MAR: "MA",
680
- MOZ: "MZ",
681
- MMR: "MM",
682
- NAM: "NA",
683
- NRU: "NR",
684
- NPL: "NP",
685
- NLD: "NL",
686
- NCL: "NC",
687
- NZL: "NZ",
688
- NIC: "NI",
689
- NER: "NE",
690
- NGA: "NG",
691
- NIU: "NU",
692
- NFK: "NF",
693
- MNP: "MP",
694
- NOR: "NO",
695
- OMN: "OM",
696
- PAK: "PK",
697
- PLW: "PW",
698
- PSE: "PS",
699
- PAN: "PA",
700
- PNG: "PG",
701
- PRY: "PY",
702
- PER: "PE",
703
- PHL: "PH",
704
- PCN: "PN",
705
- POL: "PL",
706
- PRT: "PT",
707
- PRI: "PR",
708
- QAT: "QA",
709
- REU: "RE",
710
- ROU: "RO",
711
- RUS: "RU",
712
- RWA: "RW",
713
- BLM: "BL",
714
- SHN: "SH",
715
- KNA: "KN",
716
- LCA: "LC",
717
- MAF: "MF",
718
- SPM: "PM",
719
- VCT: "VC",
720
- WSM: "WS",
721
- SMR: "SM",
722
- STP: "ST",
723
- SAU: "SA",
724
- SEN: "SN",
725
- SRB: "RS",
726
- SYC: "SC",
727
- SLE: "SL",
728
- SGP: "SG",
729
- SXM: "SX",
730
- SVK: "SK",
731
- SVN: "SI",
732
- SLB: "SB",
733
- SOM: "SO",
734
- ZAF: "ZA",
735
- SGS: "GS",
736
- SSD: "SS",
737
- ESP: "ES",
738
- LKA: "LK",
739
- SDN: "SD",
740
- SUR: "SR",
741
- SJM: "SJ",
742
- SWZ: "SZ",
743
- SWE: "SE",
744
- CHE: "CH",
745
- SYR: "SY",
746
- TWN: "TW",
747
- TJK: "TJ",
748
- TZA: "TZ",
749
- THA: "TH",
750
- TLS: "TL",
751
- TGO: "TG",
752
- TKL: "TK",
753
- TON: "TO",
754
- TTO: "TT",
755
- TUN: "TN",
756
- TUR: "TR",
757
- TKM: "TM",
758
- TCA: "TC",
759
- TUV: "TV",
760
- UGA: "UG",
761
- UKR: "UA",
762
- ARE: "AE",
763
- GBR: "GB",
764
- USA: "US",
765
- UMI: "UM",
766
- URY: "UY",
767
- UZB: "UZ",
768
- VUT: "VU",
769
- VEN: "VE",
770
- VNM: "VN",
771
- VIR: "VI",
772
- WLF: "WF",
773
- ESH: "EH",
774
- YEM: "YE",
775
- ZMB: "ZM",
776
- ZWE: "ZW",
777
- XKX: "XK",
778
- ANT: "AN"
779
- };
780
- var countryISO2toISO3Mapping = {
781
- AF: "AFG",
782
- AX: "ALA",
783
- AL: "ALB",
784
- DZ: "DZA",
785
- AS: "ASM",
786
- AD: "AND",
787
- AO: "AGO",
788
- AI: "AIA",
789
- AQ: "ATA",
790
- AG: "ATG",
791
- AR: "ARG",
792
- AM: "ARM",
793
- AW: "ABW",
794
- AU: "AUS",
795
- AT: "AUT",
796
- AZ: "AZE",
797
- BS: "BHS",
798
- BH: "BHR",
799
- BD: "BGD",
800
- BB: "BRB",
801
- BY: "BLR",
802
- BE: "BEL",
803
- BZ: "BLZ",
804
- BJ: "BEN",
805
- BM: "BMU",
806
- BT: "BTN",
807
- BO: "BOL",
808
- BQ: "BES",
809
- BA: "BIH",
810
- BW: "BWA",
811
- BV: "BVT",
812
- BR: "BRA",
813
- VG: "VGB",
814
- IO: "IOT",
815
- BN: "BRN",
816
- BG: "BGR",
817
- BF: "BFA",
818
- BI: "BDI",
819
- KH: "KHM",
820
- CM: "CMR",
821
- CA: "CAN",
822
- CV: "CPV",
823
- KY: "CYM",
824
- CF: "CAF",
825
- TD: "TCD",
826
- CL: "CHL",
827
- CN: "CHN",
828
- HK: "HKG",
829
- MO: "MAC",
830
- CX: "CXR",
831
- CC: "CCK",
832
- CO: "COL",
833
- KM: "COM",
834
- CG: "COG",
835
- CD: "COD",
836
- CK: "COK",
837
- CR: "CRI",
838
- CI: "CIV",
839
- HR: "HRV",
840
- CU: "CUB",
841
- CW: "CUW",
842
- CY: "CYP",
843
- CZ: "CZE",
844
- DK: "DNK",
845
- DJ: "DJI",
846
- DM: "DMA",
847
- DO: "DOM",
848
- EC: "ECU",
849
- EG: "EGY",
850
- SV: "SLV",
851
- GQ: "GNQ",
852
- ER: "ERI",
853
- EE: "EST",
854
- ET: "ETH",
855
- FK: "FLK",
856
- FO: "FRO",
857
- FJ: "FJI",
858
- FI: "FIN",
859
- FR: "FRA",
860
- GF: "GUF",
861
- PF: "PYF",
862
- TF: "ATF",
863
- GA: "GAB",
864
- GM: "GMB",
865
- GE: "GEO",
866
- DE: "DEU",
867
- GH: "GHA",
868
- GI: "GIB",
869
- GR: "GRC",
870
- GL: "GRL",
871
- GD: "GRD",
872
- GP: "GLP",
873
- GU: "GUM",
874
- GT: "GTM",
875
- GG: "GGY",
876
- GN: "GIN",
877
- GW: "GNB",
878
- GY: "GUY",
879
- HT: "HTI",
880
- HM: "HMD",
881
- VA: "VAT",
882
- HN: "HND",
883
- HU: "HUN",
884
- IS: "ISL",
885
- IN: "IND",
886
- ID: "IDN",
887
- IR: "IRN",
888
- IQ: "IRQ",
889
- IE: "IRL",
890
- IM: "IMN",
891
- IL: "ISR",
892
- IT: "ITA",
893
- JM: "JAM",
894
- JP: "JPN",
895
- JE: "JEY",
896
- JO: "JOR",
897
- KZ: "KAZ",
898
- KE: "KEN",
899
- KI: "KIR",
900
- KP: "PRK",
901
- KR: "KOR",
902
- KW: "KWT",
903
- KG: "KGZ",
904
- LA: "LAO",
905
- LV: "LVA",
906
- LB: "LBN",
907
- LS: "LSO",
908
- LR: "LBR",
909
- LY: "LBY",
910
- LI: "LIE",
911
- LT: "LTU",
912
- LU: "LUX",
913
- MK: "MKD",
914
- MG: "MDG",
915
- MW: "MWI",
916
- MY: "MYS",
917
- MV: "MDV",
918
- ML: "MLI",
919
- MT: "MLT",
920
- MH: "MHL",
921
- MQ: "MTQ",
922
- MR: "MRT",
923
- MU: "MUS",
924
- YT: "MYT",
925
- MX: "MEX",
926
- FM: "FSM",
927
- MD: "MDA",
928
- MC: "MCO",
929
- MN: "MNG",
930
- ME: "MNE",
931
- MS: "MSR",
932
- MA: "MAR",
933
- MZ: "MOZ",
934
- MM: "MMR",
935
- NA: "NAM",
936
- NR: "NRU",
937
- NP: "NPL",
938
- NL: "NLD",
939
- NC: "NCL",
940
- NZ: "NZL",
941
- NI: "NIC",
942
- NE: "NER",
943
- NG: "NGA",
944
- NU: "NIU",
945
- NF: "NFK",
946
- MP: "MNP",
947
- NO: "NOR",
948
- OM: "OMN",
949
- PK: "PAK",
950
- PW: "PLW",
951
- PS: "PSE",
952
- PA: "PAN",
953
- PG: "PNG",
954
- PY: "PRY",
955
- PE: "PER",
956
- PH: "PHL",
957
- PN: "PCN",
958
- PL: "POL",
959
- PT: "PRT",
960
- PR: "PRI",
961
- QA: "QAT",
962
- RE: "REU",
963
- RO: "ROU",
964
- RU: "RUS",
965
- RW: "RWA",
966
- BL: "BLM",
967
- SH: "SHN",
968
- KN: "KNA",
969
- LC: "LCA",
970
- MF: "MAF",
971
- PM: "SPM",
972
- VC: "VCT",
973
- WS: "WSM",
974
- SM: "SMR",
975
- ST: "STP",
976
- SA: "SAU",
977
- SN: "SEN",
978
- RS: "SRB",
979
- SC: "SYC",
980
- SL: "SLE",
981
- SG: "SGP",
982
- SX: "SXM",
983
- SK: "SVK",
984
- SI: "SVN",
985
- SB: "SLB",
986
- SO: "SOM",
987
- ZA: "ZAF",
988
- GS: "SGS",
989
- SS: "SSD",
990
- ES: "ESP",
991
- LK: "LKA",
992
- SD: "SDN",
993
- SR: "SUR",
994
- SJ: "SJM",
995
- SZ: "SWZ",
996
- SE: "SWE",
997
- CH: "CHE",
998
- SY: "SYR",
999
- TW: "TWN",
1000
- TJ: "TJK",
1001
- TZ: "TZA",
1002
- TH: "THA",
1003
- TL: "TLS",
1004
- TG: "TGO",
1005
- TK: "TKL",
1006
- TO: "TON",
1007
- TT: "TTO",
1008
- TN: "TUN",
1009
- TR: "TUR",
1010
- TM: "TKM",
1011
- TC: "TCA",
1012
- TV: "TUV",
1013
- UG: "UGA",
1014
- UA: "UKR",
1015
- AE: "ARE",
1016
- GB: "GBR",
1017
- US: "USA",
1018
- UM: "UMI",
1019
- UY: "URY",
1020
- UZ: "UZB",
1021
- VU: "VUT",
1022
- VE: "VEN",
1023
- VN: "VNM",
1024
- VI: "VIR",
1025
- WF: "WLF",
1026
- EH: "ESH",
1027
- YE: "YEM",
1028
- ZM: "ZMB",
1029
- ZW: "ZWE",
1030
- XK: "XKX",
1031
- AN: "ANT"
1032
- };
1033
- var isoCountriesNameFromISO2 = {
1034
- AN: "Netherlands Antiles",
1035
- XK: "Kosovo",
1036
- BQ: "Bonaire, Sint Eustatius and Saba ",
1037
- CW: "Curaçao",
1038
- KP: "Korea (the Democratic People's Republic of)",
1039
- SX: "Sint Maarten (Dutch part)",
1040
- SS: "South Sudan",
1041
- AF: "Afghanistan",
1042
- AX: "Aland Islands",
1043
- AL: "Albania",
1044
- DZ: "Algeria",
1045
- AS: "American Samoa",
1046
- AD: "Andorra",
1047
- AO: "Angola",
1048
- AI: "Anguilla",
1049
- AQ: "Antarctica",
1050
- AG: "Antigua And Barbuda",
1051
- AR: "Argentina",
1052
- AM: "Armenia",
1053
- AW: "Aruba",
1054
- AU: "Australia",
1055
- AT: "Austria",
1056
- AZ: "Azerbaijan",
1057
- BS: "Bahamas",
1058
- BH: "Bahrain",
1059
- BD: "Bangladesh",
1060
- BB: "Barbados",
1061
- BY: "Belarus",
1062
- BE: "Belgium",
1063
- BZ: "Belize",
1064
- BJ: "Benin",
1065
- BM: "Bermuda",
1066
- BT: "Bhutan",
1067
- BO: "Bolivia",
1068
- BA: "Bosnia And Herzegovina",
1069
- BW: "Botswana",
1070
- BV: "Bouvet Island",
1071
- BR: "Brazil",
1072
- IO: "British Indian Ocean Territory",
1073
- BN: "Brunei Darussalam",
1074
- BG: "Bulgaria",
1075
- BF: "Burkina Faso",
1076
- BI: "Burundi",
1077
- KH: "Cambodia",
1078
- CM: "Cameroon",
1079
- CA: "Canada",
1080
- CV: "Cape Verde",
1081
- KY: "Cayman Islands",
1082
- CF: "Central African Republic",
1083
- TD: "Chad",
1084
- CL: "Chile",
1085
- CN: "China",
1086
- CX: "Christmas Island",
1087
- CC: "Cocos (Keeling) Islands",
1088
- CO: "Colombia",
1089
- KM: "Comoros",
1090
- CG: "Congo",
1091
- CD: "Congo, Democratic Republic",
1092
- CK: "Cook Islands",
1093
- CR: "Costa Rica",
1094
- CI: "Cote D'Ivoire",
1095
- HR: "Croatia",
1096
- CU: "Cuba",
1097
- CY: "Cyprus",
1098
- CZ: "Czech Republic",
1099
- DK: "Denmark",
1100
- DJ: "Djibouti",
1101
- DM: "Dominica",
1102
- DO: "Dominican Republic",
1103
- EC: "Ecuador",
1104
- EG: "Egypt",
1105
- SV: "El Salvador",
1106
- GQ: "Equatorial Guinea",
1107
- ER: "Eritrea",
1108
- EE: "Estonia",
1109
- ET: "Ethiopia",
1110
- FK: "Falkland Islands (Malvinas)",
1111
- FO: "Faroe Islands",
1112
- FJ: "Fiji",
1113
- FI: "Finland",
1114
- FR: "France",
1115
- GF: "French Guiana",
1116
- PF: "French Polynesia",
1117
- TF: "French Southern Territories",
1118
- GA: "Gabon",
1119
- GM: "Gambia",
1120
- GE: "Georgia",
1121
- DE: "Germany",
1122
- GH: "Ghana",
1123
- GI: "Gibraltar",
1124
- GR: "Greece",
1125
- GL: "Greenland",
1126
- GD: "Grenada",
1127
- GP: "Guadeloupe",
1128
- GU: "Guam",
1129
- GT: "Guatemala",
1130
- GG: "Guernsey",
1131
- GN: "Guinea",
1132
- GW: "Guinea-Bissau",
1133
- GY: "Guyana",
1134
- HT: "Haiti",
1135
- HM: "Heard Island & Mcdonald Islands",
1136
- VA: "Holy See (Vatican City State)",
1137
- HN: "Honduras",
1138
- HK: "Hong Kong",
1139
- HU: "Hungary",
1140
- IS: "Iceland",
1141
- IN: "India",
1142
- ID: "Indonesia",
1143
- IR: "Iran, Islamic Republic Of",
1144
- IQ: "Iraq",
1145
- IE: "Ireland",
1146
- IM: "Isle Of Man",
1147
- IL: "Israel",
1148
- IT: "Italy",
1149
- JM: "Jamaica",
1150
- JP: "Japan",
1151
- JE: "Jersey",
1152
- JO: "Jordan",
1153
- KZ: "Kazakhstan",
1154
- KE: "Kenya",
1155
- KI: "Kiribati",
1156
- KR: "Korea",
1157
- KW: "Kuwait",
1158
- KG: "Kyrgyzstan",
1159
- LA: "Lao People's Democratic Republic",
1160
- LV: "Latvia",
1161
- LB: "Lebanon",
1162
- LS: "Lesotho",
1163
- LR: "Liberia",
1164
- LY: "Libyan Arab Jamahiriya",
1165
- LI: "Liechtenstein",
1166
- LT: "Lithuania",
1167
- LU: "Luxembourg",
1168
- MO: "Macao",
1169
- MK: "Macedonia",
1170
- MG: "Madagascar",
1171
- MW: "Malawi",
1172
- MY: "Malaysia",
1173
- MV: "Maldives",
1174
- ML: "Mali",
1175
- MT: "Malta",
1176
- MH: "Marshall Islands",
1177
- MQ: "Martinique",
1178
- MR: "Mauritania",
1179
- MU: "Mauritius",
1180
- YT: "Mayotte",
1181
- MX: "Mexico",
1182
- FM: "Micronesia, Federated States Of",
1183
- MD: "Moldova",
1184
- MC: "Monaco",
1185
- MN: "Mongolia",
1186
- ME: "Montenegro",
1187
- MS: "Montserrat",
1188
- MA: "Morocco",
1189
- MZ: "Mozambique",
1190
- MM: "Myanmar",
1191
- NA: "Namibia",
1192
- NR: "Nauru",
1193
- NP: "Nepal",
1194
- NL: "Netherlands",
1195
- NC: "New Caledonia",
1196
- NZ: "New Zealand",
1197
- NI: "Nicaragua",
1198
- NE: "Niger",
1199
- NG: "Nigeria",
1200
- NU: "Niue",
1201
- NF: "Norfolk Island",
1202
- MP: "Northern Mariana Islands",
1203
- NO: "Norway",
1204
- OM: "Oman",
1205
- PK: "Pakistan",
1206
- PW: "Palau",
1207
- PS: "Palestinian Territory, Occupied",
1208
- PA: "Panama",
1209
- PG: "Papua New Guinea",
1210
- PY: "Paraguay",
1211
- PE: "Peru",
1212
- PH: "Philippines",
1213
- PN: "Pitcairn",
1214
- PL: "Poland",
1215
- PT: "Portugal",
1216
- PR: "Puerto Rico",
1217
- QA: "Qatar",
1218
- RE: "Reunion",
1219
- RO: "Romania",
1220
- RU: "Russian Federation",
1221
- RW: "Rwanda",
1222
- BL: "Saint Barthelemy",
1223
- SH: "Saint Helena",
1224
- KN: "Saint Kitts And Nevis",
1225
- LC: "Saint Lucia",
1226
- MF: "Saint Martin",
1227
- PM: "Saint Pierre And Miquelon",
1228
- VC: "Saint Vincent And Grenadines",
1229
- WS: "Samoa",
1230
- SM: "San Marino",
1231
- ST: "Sao Tome And Principe",
1232
- SA: "Saudi Arabia",
1233
- SN: "Senegal",
1234
- RS: "Serbia",
1235
- SC: "Seychelles",
1236
- SL: "Sierra Leone",
1237
- SG: "Singapore",
1238
- SK: "Slovakia",
1239
- SI: "Slovenia",
1240
- SB: "Solomon Islands",
1241
- SO: "Somalia",
1242
- ZA: "South Africa",
1243
- GS: "South Georgia And Sandwich Isl.",
1244
- ES: "Spain",
1245
- LK: "Sri Lanka",
1246
- SD: "Sudan",
1247
- SR: "Suriname",
1248
- SJ: "Svalbard And Jan Mayen",
1249
- SZ: "Swaziland",
1250
- SE: "Sweden",
1251
- CH: "Switzerland",
1252
- SY: "Syrian Arab Republic",
1253
- TW: "Taiwan",
1254
- TJ: "Tajikistan",
1255
- TZ: "Tanzania",
1256
- TH: "Thailand",
1257
- TL: "Timor-Leste",
1258
- TG: "Togo",
1259
- TK: "Tokelau",
1260
- TO: "Tonga",
1261
- TT: "Trinidad And Tobago",
1262
- TN: "Tunisia",
1263
- TR: "Turkey",
1264
- TM: "Turkmenistan",
1265
- TC: "Turks And Caicos Islands",
1266
- TV: "Tuvalu",
1267
- UG: "Uganda",
1268
- UA: "Ukraine",
1269
- AE: "United Arab Emirates",
1270
- GB: "United Kingdom",
1271
- US: "United States",
1272
- UM: "United States Outlying Islands",
1273
- UY: "Uruguay",
1274
- UZ: "Uzbekistan",
1275
- VU: "Vanuatu",
1276
- VE: "Venezuela",
1277
- VN: "Viet Nam",
1278
- VG: "Virgin Islands, British",
1279
- VI: "Virgin Islands, U.S.",
1280
- WF: "Wallis And Futuna",
1281
- EH: "Western Sahara",
1282
- YE: "Yemen",
1283
- ZM: "Zambia",
1284
- ZW: "Zimbabwe"
1285
- };
1286
- function parseISO3CountryCode(code) {
1287
- return ISO3CountryCode.safeParse(code).success ? ISO3CountryCode.parse(code) : undefined;
1288
- }
1289
-
1290
- var ID3CredentialSubjectSchema = zod.z.object({
1291
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1292
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1293
- amendmentsData: 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("Personal details manually amended by the holder/user 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 timestamp 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("Country type of the authentication request").optional(),
1372
- ItemCheckDecisionBands: zod.z.object({
1373
- GlobalItemCheckDecisionBands: zod.z.array(zod.z.object({
1374
- ID: zod.z.number()["int"]().optional(),
1375
- BandScore: zod.z.number()["int"]().optional(),
1376
- BandText: zod.z.string().optional()
1377
- })).optional()
1378
- }).describe("The item check decision bands of the authentication request").optional()
1379
- }).describe("Result of the authentication request").optional(),
1380
- pepIntelligenceResult: zod.z.array(zod.z.object({
1381
- Fullname: zod.z.string().optional(),
1382
- Aliases: zod.z.object({
1383
- elements: zod.z.array(zod.z.string()).optional()
1384
- }).optional(),
1385
- SanctionsAddresses: zod.z.object({
1386
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
1387
- AddressLine: zod.z.string().optional(),
1388
- City: zod.z.string().optional(),
1389
- Country: zod.z.string().describe("Full name of country").optional(),
1390
- Region: zod.z.string().optional()
1391
- })).optional()
1392
- }).optional(),
1393
- SanctionsDates: zod.z.object({
1394
- GlobalSanctionsDate: zod.z.object({
1395
- DateType: zod.z.string().optional(),
1396
- Day: zod.z.number()["int"]().optional(),
1397
- Month: zod.z.number()["int"]().optional(),
1398
- Year: zod.z.number()["int"]().optional()
1399
- }).optional()
1400
- }).optional(),
1401
- IdentityInformation: zod.z.string().optional(),
1402
- SanctionsPositions: zod.z.object({
1403
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
1404
- Position: zod.z.string().optional(),
1405
- Country: zod.z.string().optional()
1406
- })).optional()
1407
- }).optional()
1408
- })).optional(),
1409
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1410
- Fullname: zod.z.string().optional(),
1411
- SanctionsBodies: zod.z.object({
1412
- elements: zod.z.array(zod.z.number()["int"]()).optional()
1413
- }).optional(),
1414
- Aliases: zod.z.object({
1415
- elements: zod.z.array(zod.z.string()).optional()
1416
- }).optional(),
1417
- SanctionsAddresses: zod.z.object({
1418
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
1419
- AddressLine: zod.z.string().optional(),
1420
- City: zod.z.string().optional(),
1421
- Country: zod.z.string().describe("Full name of country").optional(),
1422
- Region: zod.z.string().optional()
1423
- })).optional()
1424
- }).optional(),
1425
- SanctionsDates: zod.z.object({
1426
- GlobalSanctionsDate: zod.z.object({
1427
- DateType: zod.z.string().optional(),
1428
- Day: zod.z.number()["int"]().optional(),
1429
- Month: zod.z.number()["int"]().optional(),
1430
- Year: zod.z.number()["int"]().optional()
1431
- }).optional()
1432
- }).optional(),
1433
- IdentityInformation: zod.z.string().optional()
1434
- })).optional()
1435
- }).describe("Details related to the amendments made to the original data."),
1436
- originalData: zod.z.object({
1437
- data: zod.z.object({
1438
- 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(),
1439
- 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(),
1440
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1441
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1442
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
1443
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1444
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1445
- birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
1446
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1447
- 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(),
1448
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1449
- city: zod.z.string().describe("City of the credential subject").optional(),
1450
- province: zod.z.string().describe("Province of the credential subject").optional(),
1451
- postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
1452
- emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
1453
- phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
1454
- 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(),
1455
- middleName: zod.z.string().describe("Middle name of the credential subject").optional()
1456
- }).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
1457
- authenticateSPResult: zod.z.object({
1458
- AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
1459
- Timestamp: zod.z.string().datetime().describe("The date and time of the authentication request").optional(),
1460
- CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
1461
- ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
1462
- ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
1463
- ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
1464
- ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
1465
- ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
1466
- ResultCodes: zod.z.object({
1467
- GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
1468
- Name: zod.z.string().optional(),
1469
- Description: zod.z.string().optional(),
1470
- Comment: zod.z.object({
1471
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1472
- Description: zod.z.string().optional(),
1473
- Code: zod.z.number()["int"]().optional()
1474
- })).optional()
1475
- }).optional(),
1476
- Match: zod.z.object({
1477
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1478
- Description: zod.z.string().optional(),
1479
- Code: zod.z.number()["int"]().optional()
1480
- })).optional()
1481
- }).optional(),
1482
- Warning: zod.z.object({
1483
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1484
- Description: zod.z.string().optional(),
1485
- Code: zod.z.number()["int"]().optional()
1486
- })).optional()
1487
- }).optional(),
1488
- Mismatch: zod.z.object({
1489
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1490
- Description: zod.z.string().optional(),
1491
- Code: zod.z.number()["int"]().optional()
1492
- })).optional()
1493
- }).optional(),
1494
- ID: zod.z.number()["int"]().optional(),
1495
- Pass: zod.z.string().optional(),
1496
- Address: zod.z.string().optional(),
1497
- Forename: zod.z.string().optional(),
1498
- Surname: zod.z.string().optional(),
1499
- DOB: zod.z.string().optional(),
1500
- Alert: zod.z.string().optional(),
1501
- SanctionsMatches: zod.z.object({
1502
- GlobalSanctionsMatch: zod.z.array(zod.z.object({
1503
- SanctionID: zod.z.string().optional(),
1504
- Url: zod.z.string().optional(),
1505
- Rank: zod.z.number()["int"]().optional(),
1506
- CaseID: zod.z.string().optional(),
1507
- SearchID: zod.z.string().optional()
1508
- })).optional()
1509
- }).optional()
1510
- })).optional()
1511
- }).describe("The result codes of the authentication request").optional(),
1512
- Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
1513
- BandText: zod.z.string().describe("The band text of the authentication request").optional(),
1514
- Country: zod.z.string().describe("The country type of the authentication request").optional()
1515
- }).describe("The result of the Authenticate SP check").optional(),
1516
- pepIntelligenceResult: zod.z.array(zod.z.object({
1517
- Fullname: zod.z.string().optional(),
1518
- Aliases: zod.z.object({
1519
- elements: zod.z.array(zod.z.string()).optional()
1520
- }).optional(),
1521
- SanctionsAddresses: zod.z.object({
1522
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
1523
- AddressLine: zod.z.string().optional(),
1524
- City: zod.z.string().optional(),
1525
- Country: zod.z.string().describe("Full name of country").optional(),
1526
- Region: zod.z.string().optional()
1527
- })).optional()
1528
- }).optional(),
1529
- SanctionsDates: zod.z.object({
1530
- GlobalSanctionsDate: zod.z.object({
1531
- DateType: zod.z.string().optional(),
1532
- Day: zod.z.number()["int"]().optional(),
1533
- Month: zod.z.number()["int"]().optional(),
1534
- Year: zod.z.number()["int"]().optional()
1535
- }).optional()
1536
- }).optional(),
1537
- IdentityInformation: zod.z.string().optional(),
1538
- SanctionsPositions: zod.z.object({
1539
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
1540
- Position: zod.z.string().optional(),
1541
- Country: zod.z.string().optional()
1542
- })).optional()
1543
- }).optional()
1544
- })).describe("The result of the PEP Intelligence check").optional(),
1545
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1546
- Fullname: zod.z.string().optional(),
1547
- SanctionsBodies: zod.z.object({
1548
- elements: zod.z.array(zod.z.number()["int"]()).optional()
1549
- }).optional(),
1550
- Aliases: zod.z.object({
1551
- elements: zod.z.array(zod.z.string()).optional()
1552
- }).optional(),
1553
- SanctionsAddresses: zod.z.object({
1554
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
1555
- AddressLine: zod.z.string().optional(),
1556
- City: zod.z.string().optional(),
1557
- Country: zod.z.string().describe("Full name of country").optional(),
1558
- Region: zod.z.string().optional()
1559
- })).optional()
1560
- }).optional(),
1561
- SanctionsDates: zod.z.object({
1562
- GlobalSanctionsDate: zod.z.object({
1563
- DateType: zod.z.string().optional(),
1564
- Day: zod.z.number()["int"]().optional(),
1565
- Month: zod.z.number()["int"]().optional(),
1566
- Year: zod.z.number()["int"]().optional()
1567
- }).optional()
1568
- }).optional(),
1569
- IdentityInformation: zod.z.string().optional()
1570
- })).describe("The result of the Sanctions Enforcements check").optional()
1571
- }).describe("Details related to the original data before any amendments"),
1572
- personalDetails: zod.z.object({
1573
- 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(),
1574
- 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(),
1575
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1576
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1577
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
1578
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1579
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1580
- birthday: zod.z.string().describe("Birthday of the credential subject").optional(),
1581
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1582
- 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(),
1583
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1584
- city: zod.z.string().describe("City of the credential subject").optional(),
1585
- province: zod.z.string().describe("Province of the credential subject").optional(),
1586
- postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
1587
- emailAddress: zod.z.string().describe("Email address of the credential subject").optional(),
1588
- phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
1589
- 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(),
1590
- middleName: zod.z.string().describe("Middle name of the credential subject").optional()
1591
- }).describe("Personal details of the credential subject")
1592
- }).describe("Stores the data of the credential");
1593
-
1594
- var IDScanCredentialSubjectSchema = zod.z.object({
1595
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1596
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1597
- highLevelResult: zod.z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
1598
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
1599
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1600
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
1601
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
1602
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1603
- 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(),
1604
- documentCategory: zod.z.string().describe("Category of the document provided by the credential subject").optional(),
1605
- documentName: zod.z.string().describe("Name of the document provided by the credential subject").optional(),
1606
- documentSide: zod.z["enum"](["Front", "Back"]).describe("Side of the document provided by the credential subject").optional(),
1607
- 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(),
1608
- entryDate: zod.z.string().describe("Entry date associated with the credential").optional(),
1609
- entryTime: zod.z.string().describe("Entry time associated with the credential").optional(),
1610
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1611
- addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
1612
- addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
1613
- birthDate: zod.z.string().describe("Date of birth of the credential subject").optional(),
1614
- birthPlace: zod.z.string().nullable().optional(),
1615
- highLevelResultDetails: zod.z.object({
1616
- documentOverallValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
1617
- documentBlockingPolicy: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
1618
- documentExpiry: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
1619
- documentSupport: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
1620
- documentValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
1621
- faceMatchValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
1622
- accumulativeLivenessResult: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
1623
- }).describe("Detailed results of the high level KYC check").optional(),
1624
- faceMatchScore: zod.z.string().describe("Score for the face match validation").optional(),
1625
- qualityCheckDetails: zod.z.array(zod.z.object({
1626
- id: zod.z.string().describe("ID of the quality check item").optional(),
1627
- title: zod.z.string().describe("Title of the quality check item").optional(),
1628
- description: zod.z.string().describe("Description of the quality check item").optional(),
1629
- state: zod.z.number()["int"]().describe("State of the quality check item").optional()
1630
- }).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
1631
- validationDetails: zod.z.array(zod.z.object({
1632
- name: zod.z.string().describe("Name of the validation item").optional(),
1633
- description: zod.z.string().describe("Detailed description of the validation item").optional(),
1634
- result: zod.z.number()["int"]().describe("Result code of the validation").optional()
1635
- }).describe("Details of a specific validation item")).describe("Details of the validation performed").optional()
1636
- }).describe("Stores the data of the credential");
1637
-
1638
- var IDScanPassportCredentialSubjectSchema = zod.z.object({
1639
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1640
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1641
- base64: zod.z.string().describe("Base64 encoded image of the passport image"),
1642
- name: zod.z.string().describe("Name of the docuemnt (e.g. passport.jpg)"),
1643
- documentType: zod.z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
1644
- }).describe("Stores the data of the credential");
1645
-
1646
- var IDScanSelfieCredentialSubjectSchema = zod.z.object({
1647
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1648
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1649
- base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
1650
- name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
1651
- documentType: zod.z.string().describe("Type of the document (e.g. image/jpeg, image/png)")
1652
- }).describe("Stores the data of the credential");
1653
-
1654
- var OLD_IDImageCredentialSubjectSchema = zod.z.object({
1655
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1656
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1657
- base64: zod.z.string().describe("Base64 encoded image of the passport image"),
1658
- name: zod.z.string().describe("Name of the document (e.g. passport.jpg)"),
1659
- 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)"),
1660
- mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png, application/pdf)")
1661
- }).describe("Stores the data of the credential");
1662
-
1663
- var OLD_IDInformationCredentialSubjectSchema = zod.z.object({
1664
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1665
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1666
- highLevelResult: zod.z["enum"](["Refer", "NotAccepted", "Notsupported", "Passed", "Refer", "Undefined"]).describe("High level result of the kyc check").optional(),
1667
- highLevelResultDetails: zod.z.object({
1668
- documentOverallValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Overall validation status of the document").optional(),
1669
- documentBlockingPolicy: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Blocking policy of the document").optional(),
1670
- documentExpiry: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Expiry status of the document").optional(),
1671
- documentSupport: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Support status of the document").optional(),
1672
- documentValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of the document").optional(),
1673
- faceMatchValidation: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Validation status of face match").optional(),
1674
- accumulativeLivenessResult: zod.z["enum"](["FAILED", "NOTNEEDED", "PASSED", "SKIPPED", "NEEDED"]).describe("Result of accumulative liveness check").optional()
1675
- }).describe("Detailed results of the high level KYC check").optional(),
1676
- faceMatchScore: zod.z.string().describe("Score for the face match validation").optional(),
1677
- qualityCheckDetails: zod.z.array(zod.z.object({
1678
- id: zod.z.string().describe("ID of the quality check item").optional(),
1679
- title: zod.z.string().describe("Title of the quality check item").optional(),
1680
- description: zod.z.string().describe("Description of the quality check item").optional(),
1681
- state: zod.z.number()["int"]().describe("State of the quality check item").optional()
1682
- }).describe("Quality check item details")).describe("Details of quality checks performed").optional(),
1683
- validationDetails: zod.z.array(zod.z.object({
1684
- name: zod.z.string().describe("Name of the validation item").optional(),
1685
- description: zod.z.string().describe("Detailed description of the validation item").optional(),
1686
- result: zod.z.number()["int"]().describe("Result code of the validation").optional()
1687
- }).describe("Details of a specific validation item")).describe("Details of the validation performed").optional(),
1688
- documentCategory: zod.z.string().describe("Category of the document provided by the credential subject").optional(),
1689
- documentName: zod.z.string().describe("Name of the document provided by the credential subject"),
1690
- 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"),
1691
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
1692
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
1693
- originalData: zod.z.object({
1694
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
1695
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1696
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
1697
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
1698
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1699
- 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(),
1700
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1701
- addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
1702
- addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
1703
- 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(),
1704
- placeOfBirth: zod.z.string().nullable().describe("Place of birth of the credential subject").optional()
1705
- }).describe("Original data extracted by the provider"),
1706
- amendmentsData: zod.z.object({
1707
- firstName: zod.z.string().describe("The first name of the credential subject").optional(),
1708
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1709
- lastName: zod.z.string().describe("The last name of the credential subject").optional(),
1710
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
1711
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1712
- 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(),
1713
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1714
- addressLine1: zod.z.string().describe("Address line 1 of the credential subject").optional(),
1715
- addressLine2: zod.z.string().describe("Address line 2 of the credential subject").optional(),
1716
- 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(),
1717
- placeOfBirth: zod.z.string().describe("Place of birth of the credential subject").optional(),
1718
- 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()
1719
- }).describe("Personal details manually amended by the holder/user during authentication process.")
1720
- }).describe("Stores the data of the credential");
1721
-
1722
- var OLD_ProofOfResidenceCredentialSubjectSchema = zod.z.object({
1723
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1724
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with").optional(),
1725
- 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(),
1726
- base64: zod.z.string().describe("Base64 encoded image of the proof of residence").optional(),
1727
- name: zod.z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
1728
- 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(),
1729
- 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(),
1730
- county: zod.z.string().describe("The county of residence").optional(),
1731
- city: zod.z.string().describe("The city of residence").optional(),
1732
- streetName: zod.z.string().describe("The street name of residence").optional(),
1733
- postalCode: zod.z.string().describe("The postal code of residence").optional()
1734
- }).describe("Stores the data of the credential");
1735
-
1736
- var OLD_SelfieImageCredentialSubjectSchema = zod.z.object({
1737
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1738
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
1739
- base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
1740
- name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
1741
- mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)")
1742
- }).describe("Stores the data of the credential");
1743
-
1744
- var OLD_AMLScreeningsResultsCredentialSubjectSchema = zod.z.object({
1745
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
1746
- journeyId: zod.z.string().uuid().describe("Journey ID of when credential was generated"),
1747
- amendmentsData: zod.z.object({
1748
- data: zod.z.object({
1749
- firstName: zod.z.string().describe("The 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("The 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("Address line 1 of the credential subject").optional(),
1757
- addressLine2: zod.z.string().describe("Address line 2 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().describe("Place of birth of the credential subject").optional(),
1760
- 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(),
1761
- city: zod.z.string().describe("City of the credential subject").optional(),
1762
- province: zod.z.string().describe("Province of the credential subject").optional(),
1763
- postalCode: zod.z.string().describe("Postal code of the credential subject").optional(),
1764
- emailAddress: zod.z.string().email().describe("Email address of the credential subject").optional(),
1765
- phoneNumber: zod.z.string().describe("Phone number of the credential subject").optional(),
1766
- 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()
1767
- }).describe("Personal details manually amended by the holder/user during authentication process.").optional(),
1768
- authenticateSPResult: zod.z.object({
1769
- AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
1770
- Timestamp: zod.z.string().datetime().describe("The timestamp of the authentication request").optional(),
1771
- CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
1772
- ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
1773
- ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
1774
- ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
1775
- ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
1776
- ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
1777
- ResultCodes: zod.z.object({
1778
- GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
1779
- Name: zod.z.string().optional(),
1780
- Description: zod.z.string().optional(),
1781
- Comment: zod.z.object({
1782
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1783
- Description: zod.z.string().optional(),
1784
- Code: zod.z.number()["int"]().optional()
1785
- })).optional()
1786
- }).optional(),
1787
- Match: zod.z.object({
1788
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1789
- Description: zod.z.string().optional(),
1790
- Code: zod.z.number()["int"]().optional()
1791
- })).optional()
1792
- }).optional(),
1793
- Warning: zod.z.object({
1794
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1795
- Description: zod.z.string().optional(),
1796
- Code: zod.z.number()["int"]().optional()
1797
- })).optional()
1798
- }).optional(),
1799
- Mismatch: zod.z.object({
1800
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1801
- Description: zod.z.string().optional(),
1802
- Code: zod.z.number()["int"]().optional()
1803
- })).optional()
1804
- }).optional(),
1805
- ID: zod.z.number()["int"]().optional(),
1806
- Pass: zod.z.string().optional(),
1807
- Address: zod.z.string().optional(),
1808
- Forename: zod.z.string().optional(),
1809
- Surname: zod.z.string().optional(),
1810
- DOB: zod.z.string().optional(),
1811
- Alert: zod.z.string().optional(),
1812
- SanctionsMatches: zod.z.object({
1813
- GlobalSanctionsMatch: zod.z.array(zod.z.object({
1814
- SanctionID: zod.z.string().optional(),
1815
- Url: zod.z.string().optional(),
1816
- Rank: zod.z.number()["int"]().optional(),
1817
- CaseID: zod.z.string().optional(),
1818
- SearchID: zod.z.string().optional()
1819
- })).optional()
1820
- }).optional()
1821
- })).optional()
1822
- }).describe("The result codes of the authentication request").optional(),
1823
- Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
1824
- BandText: zod.z.string().describe("The band text of the authentication request").optional(),
1825
- Country: zod.z.string().describe("Country type of the authentication request").optional(),
1826
- ItemCheckDecisionBands: zod.z.object({
1827
- GlobalItemCheckDecisionBands: zod.z.array(zod.z.object({
1828
- ID: zod.z.number()["int"]().optional(),
1829
- BandScore: zod.z.number()["int"]().optional(),
1830
- BandText: zod.z.string().optional()
1831
- })).optional()
1832
- }).describe("The item check decision bands of the authentication request").optional()
1833
- }).describe("Result of the authentication request").optional(),
1834
- pepIntelligenceResult: zod.z.array(zod.z.object({
1835
- Fullname: zod.z.string().optional(),
1836
- Aliases: zod.z.object({
1837
- elements: zod.z.array(zod.z.string()).optional()
1838
- }).optional(),
1839
- SanctionsAddresses: zod.z.object({
1840
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
1841
- AddressLine: zod.z.string().optional(),
1842
- City: zod.z.string().optional(),
1843
- Country: zod.z.string().describe("Full name of country").optional(),
1844
- Region: zod.z.string().optional()
1845
- })).optional()
1846
- }).optional(),
1847
- SanctionsDates: zod.z.object({
1848
- GlobalSanctionsDate: zod.z.object({
1849
- DateType: zod.z.string().optional(),
1850
- Day: zod.z.number()["int"]().optional(),
1851
- Month: zod.z.number()["int"]().optional(),
1852
- Year: zod.z.number()["int"]().optional()
1853
- }).optional()
1854
- }).optional(),
1855
- IdentityInformation: zod.z.string().optional(),
1856
- SanctionsPositions: zod.z.object({
1857
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
1858
- Position: zod.z.string().optional(),
1859
- Country: zod.z.string().optional()
1860
- })).optional()
1861
- }).optional()
1862
- })).optional(),
1863
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1864
- Fullname: zod.z.string().optional(),
1865
- SanctionsBodies: zod.z.object({
1866
- elements: zod.z.array(zod.z.number()["int"]()).optional()
1867
- }).optional(),
1868
- Aliases: zod.z.object({
1869
- elements: zod.z.array(zod.z.string()).optional()
1870
- }).optional(),
1871
- SanctionsAddresses: zod.z.object({
1872
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
1873
- AddressLine: zod.z.string().optional(),
1874
- City: zod.z.string().optional(),
1875
- Country: zod.z.string().describe("Full name of country").optional(),
1876
- Region: zod.z.string().optional()
1877
- })).optional()
1878
- }).optional(),
1879
- SanctionsDates: zod.z.object({
1880
- GlobalSanctionsDate: zod.z.object({
1881
- DateType: zod.z.string().optional(),
1882
- Day: zod.z.number()["int"]().optional(),
1883
- Month: zod.z.number()["int"]().optional(),
1884
- Year: zod.z.number()["int"]().optional()
1885
- }).optional()
1886
- }).optional(),
1887
- IdentityInformation: zod.z.string().optional()
1888
- })).optional()
1889
- }).describe("Details related to the amendments made to the original data."),
1890
- originalData: zod.z.object({
1891
- data: zod.z.object({
1892
- firstName: zod.z.string().describe("First name of the credential subject").optional(),
1893
- middleName: zod.z.string().describe("Middle name of the credential subject").optional(),
1894
- lastName: zod.z.string().describe("Last name of the credential subject").optional(),
1895
- gender: zod.z.string().describe("Gender of the credential subject").optional(),
1896
- age: zod.z.number()["int"]().gte(0).lte(125).describe("Age of the credential subject").optional(),
1897
- 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(),
1898
- fullName: zod.z.string().describe("Full name of the credential subject").optional(),
1899
- addressLine1: zod.z.string().describe("First line of the address of the credential subject").optional(),
1900
- addressLine2: zod.z.string().describe("Second line of the address of the credential subject").optional(),
1901
- 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(),
1902
- placeOfBirth: zod.z.string().nullable().optional()
1903
- }).describe("Unmodified personal details imported directly from document during authentication process.").optional(),
1904
- authenticateSPResult: zod.z.object({
1905
- AuthenticationID: zod.z.string().describe("The ID of the authentication request").optional(),
1906
- Timestamp: zod.z.string().datetime().describe("The date and time of the authentication request").optional(),
1907
- CustomerRef: zod.z.string().describe("The customer reference of the authentication request").optional(),
1908
- ProfileID: zod.z.string().describe("The ID of the profile used for the authentication request").optional(),
1909
- ProfileName: zod.z.string().describe("The name of the profile used for the authentication request").optional(),
1910
- ProfileVersion: zod.z.number()["int"]().describe("The version of the profile used for the authentication request").optional(),
1911
- ProfileRevision: zod.z.number()["int"]().describe("The revision of the profile used for the authentication request").optional(),
1912
- ProfileState: zod.z.string().describe("The state of the profile used for the authentication request").optional(),
1913
- ResultCodes: zod.z.object({
1914
- GlobalItemCheckResultCodes: zod.z.array(zod.z.object({
1915
- Name: zod.z.string().optional(),
1916
- Description: zod.z.string().optional(),
1917
- Comment: zod.z.object({
1918
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1919
- Description: zod.z.string().optional(),
1920
- Code: zod.z.number()["int"]().optional()
1921
- })).optional()
1922
- }).optional(),
1923
- Match: zod.z.object({
1924
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1925
- Description: zod.z.string().optional(),
1926
- Code: zod.z.number()["int"]().optional()
1927
- })).optional()
1928
- }).optional(),
1929
- Warning: zod.z.object({
1930
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1931
- Description: zod.z.string().optional(),
1932
- Code: zod.z.number()["int"]().optional()
1933
- })).optional()
1934
- }).optional(),
1935
- Mismatch: zod.z.object({
1936
- GlobalItemCheckResultCode: zod.z.array(zod.z.object({
1937
- Description: zod.z.string().optional(),
1938
- Code: zod.z.number()["int"]().optional()
1939
- })).optional()
1940
- }).optional(),
1941
- ID: zod.z.number()["int"]().optional(),
1942
- Pass: zod.z.string().optional(),
1943
- Address: zod.z.string().optional(),
1944
- Forename: zod.z.string().optional(),
1945
- Surname: zod.z.string().optional(),
1946
- DOB: zod.z.string().optional(),
1947
- Alert: zod.z.string().optional(),
1948
- SanctionsMatches: zod.z.object({
1949
- GlobalSanctionsMatch: zod.z.array(zod.z.object({
1950
- SanctionID: zod.z.string().optional(),
1951
- Url: zod.z.string().optional(),
1952
- Rank: zod.z.number()["int"]().optional(),
1953
- CaseID: zod.z.string().optional(),
1954
- SearchID: zod.z.string().optional()
1955
- })).optional()
1956
- }).optional()
1957
- })).optional()
1958
- }).describe("The result codes of the authentication request").optional(),
1959
- Score: zod.z.number()["int"]().describe("The score of the authentication request").optional(),
1960
- BandText: zod.z.string().describe("The band text of the authentication request").optional(),
1961
- Country: zod.z.string().describe("The country type of the authentication request").optional()
1962
- }).describe("The result of the Authenticate SP check").optional(),
1963
- pepIntelligenceResult: zod.z.array(zod.z.object({
1964
- Fullname: zod.z.string().optional(),
1965
- Aliases: zod.z.object({
1966
- elements: zod.z.array(zod.z.string()).optional()
1967
- }).optional(),
1968
- SanctionsAddresses: zod.z.object({
1969
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
1970
- AddressLine: zod.z.string().optional(),
1971
- City: zod.z.string().optional(),
1972
- Country: zod.z.string().describe("Full name of country").optional(),
1973
- Region: zod.z.string().optional()
1974
- })).optional()
1975
- }).optional(),
1976
- SanctionsDates: zod.z.object({
1977
- GlobalSanctionsDate: zod.z.object({
1978
- DateType: zod.z.string().optional(),
1979
- Day: zod.z.number()["int"]().optional(),
1980
- Month: zod.z.number()["int"]().optional(),
1981
- Year: zod.z.number()["int"]().optional()
1982
- }).optional()
1983
- }).optional(),
1984
- IdentityInformation: zod.z.string().optional(),
1985
- SanctionsPositions: zod.z.object({
1986
- GlobalSanctionsPosition: zod.z.array(zod.z.object({
1987
- Position: zod.z.string().optional(),
1988
- Country: zod.z.string().optional()
1989
- })).optional()
1990
- }).optional()
1991
- })).describe("The result of the PEP Intelligence check").optional(),
1992
- sanctionsEnforcementsResult: zod.z.array(zod.z.object({
1993
- Fullname: zod.z.string().optional(),
1994
- SanctionsBodies: zod.z.object({
1995
- elements: zod.z.array(zod.z.number()["int"]()).optional()
1996
- }).optional(),
1997
- Aliases: zod.z.object({
1998
- elements: zod.z.array(zod.z.string()).optional()
1999
- }).optional(),
2000
- SanctionsAddresses: zod.z.object({
2001
- GlobalSanctionsAddress: zod.z.array(zod.z.object({
2002
- AddressLine: zod.z.string().optional(),
2003
- City: zod.z.string().optional(),
2004
- Country: zod.z.string().describe("Full name of country").optional(),
2005
- Region: zod.z.string().optional()
2006
- })).optional()
2007
- }).optional(),
2008
- SanctionsDates: zod.z.object({
2009
- GlobalSanctionsDate: zod.z.object({
2010
- DateType: zod.z.string().optional(),
2011
- Day: zod.z.number()["int"]().optional(),
2012
- Month: zod.z.number()["int"]().optional(),
2013
- Year: zod.z.number()["int"]().optional()
2014
- }).optional()
2015
- }).optional(),
2016
- IdentityInformation: zod.z.string().optional()
2017
- })).describe("The result of the Sanctions Enforcements check").optional()
2018
- }).describe("Details related to the original data before any amendments")
2019
- }).describe("Stores the data of the credential");
2020
-
2021
- var IDImageCredentialSubjectSchema = zod.z.object({
2022
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
2023
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
2024
- base64_front: zod.z.string().describe("Base64 encoded image of the front of the document"),
2025
- base64_back: zod.z.string().describe("Base64 encoded image of the back of the document").optional(),
2026
- name: zod.z.string().describe("Name of the document (e.g. passport.jpg)"),
2027
- 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)"),
2028
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
2029
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
2030
- 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)"),
2031
- 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(),
2032
- reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review answer from kyc provider"),
2033
- reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
2034
- 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(),
2035
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
2036
- }).describe("Stores the data of the credential");
2037
-
2038
- var SelfieImageCredentialSubjectSchema = zod.z.object({
2039
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
2040
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
2041
- base64: zod.z.string().describe("Base64 encoded image of the selfie image"),
2042
- name: zod.z.string().describe("Name of the docuemnt (e.g. selfie.jpg)"),
2043
- mediaType: zod.z["enum"](["image/jpeg", "image/jpg", "application/pdf", "image/png"]).describe("Media type of the document (e.g. image/jpeg, image/png)"),
2044
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
2045
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
2046
- reviewAnswer: zod.z["enum"](["RED", "YELLOW", "GREEN"]).describe("Review result from kyc provider"),
2047
- reviewRejectType: zod.z["enum"](["FINAL", "RETRY"]).describe("Review reject type").optional(),
2048
- 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(),
2049
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
2050
- }).describe("Stores the data of the credential");
2051
-
2052
- var ProofOfResidenceCredentialSubjectSchema = zod.z.object({
2053
- id: zod.z.string().url().describe("Stores the DID of the subject that owns the credential"),
2054
- journeyId: zod.z.string().uuid().describe("The ID of the journey that this credential is associated with"),
2055
- 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(),
2056
- base64: zod.z.string().describe("Base64 encoded image of the proof of residence").optional(),
2057
- name: zod.z.string().describe("Name of the document (e.g. ProofOfResidence.jpg)").optional(),
2058
- 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)"),
2059
- entryDate: zod.z.number()["int"]().describe("Entry date associated with the credential"),
2060
- entryTime: zod.z.string().describe("Entry time associated with the credential"),
2061
- 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(),
2062
- county: zod.z.string().describe("The county of residence").optional(),
2063
- city: zod.z.string().describe("The city of residence").optional(),
2064
- streetName: zod.z.string().describe("The street name of residence").optional(),
2065
- postalCode: zod.z.string().describe("The postal code of residence").optional(),
2066
- isSandbox: zod.z["boolean"]().describe("Indicates if the credential was generated in a sandbox environment").optional()
2067
- }).describe("Stores the data of the credential");
2068
-
2069
- // NB: this is supposed to reproduce W3CCredential used in polygon id js sdk
2070
-
2071
- var CredentialStatusTypePID = zod.z["enum"](["SparseMerkleTreeProof", "Iden3ReverseSparseMerkleTreeProof", "Iden3commRevocationStatusV1.0", "Iden3OnchainSparseMerkleTreeProof2023"]);
2072
- var CredentialStatusPID = zod.z.object({
2073
- id: zod.z.string(),
2074
- type: CredentialStatusTypePID,
2075
- revocationNonce: zod.z.number().optional()
2076
- //statusIssuer?: CredentialStatus;
2077
- });
2078
- var CredentialSchemaPID = zod.z.object({
2079
- id: zod.z.string(),
2080
- type: zod.z.string()
2081
- });
2082
- var GenericVerifiableCredentialSchema = zod.z.object({
2083
- id: zod.z.string(),
2084
- "@context": zod.z.array(zod.z.string()).optional(),
2085
- // context: z.array(z.string()),
2086
- type: zod.z.array(zod.z.string()),
2087
- expirationDate: zod.z.string().optional(),
2088
- issuanceDate: zod.z.string().optional(),
2089
- credentialSubject: zod.z.record(zod.z.string(),
2090
- // The old version of the generated API does not handle z.union correctly.
2091
- // Until we either
2092
- // 1. discontinue usage of the old apiClient
2093
- // or
2094
- // 2. remove {nullable: true} from the birthPlace field in the IDInformation schema
2095
- // we need to use z.any() instead.
2096
- //
2097
- // if you do the following test you can see that the old apiClient does not change
2098
- // when you add z.null() to the union below.
2099
- //
2100
- // 1. comment out the z.any() below.
2101
- zod.z.any()
2102
- // 2. uncomment the following lines
2103
- // z.union([
2104
- // z.record(z.string(), z.any()),
2105
- // z.string(),
2106
- // z.number(),
2107
- // z.boolean(),
2108
- // z.null(),
2109
- // z.array(z.any()),
2110
- // ]),
2111
- // 3. run the following command: pnpnm update-api
2112
- // 4. Notice that several generated files are modified.
2113
- // 5. make a temporary branch to throw away later
2114
- // 6. comment out z.null() above
2115
- // 7. run the following command: pnpnm update-api
2116
- // 8. notice that only the new apiClient is modified.
2117
- // modified: packages/clients/api/src/generated/apps/ComplianceService.ts
2118
- // modified: packages/clients/api/src/generated/apps/CustomersService.ts
2119
- // modified: packages/clients/api/src/generated/apps/ScenariosService.ts
2120
- // modified: packages/libs/schemas/src/compliance/vc-schemas/supported-schemas/GenericVerifiableCredentialSchema.ts
2121
- ),
2122
- credentialStatus: CredentialStatusPID,
2123
- issuer: zod.z.string(),
2124
- credentialSchema: CredentialSchemaPID,
2125
- proof: zod.z.any() //object | unknown[];
2126
- });
2127
-
2128
- var CredentialSchemas = {
2129
- ProofOfResidence: ProofOfResidenceCredentialSubjectSchema,
2130
- SelfieImage: SelfieImageCredentialSubjectSchema,
2131
- IDImage: IDImageCredentialSubjectSchema,
2132
- IDInformation: IDInformationCredentialSubjectSchema,
2133
- AMLScreeningsResults: OLD_AMLScreeningsResultsCredentialSubjectSchema,
2134
- ID3: ID3CredentialSubjectSchema,
2135
- IDScan: IDScanCredentialSubjectSchema,
2136
- IDScanSelfie: IDScanSelfieCredentialSubjectSchema,
2137
- IDScanPassport: IDScanPassportCredentialSubjectSchema
2138
- };
2139
- var CredentialNames = [{
2140
- value: "AMLScreeningsResults",
2141
- label: "AML screening results"
2142
- }, {
2143
- value: "ProofOfResidence",
2144
- label: "Proof of residence"
2145
- }, {
2146
- value: "SelfieImage",
2147
- label: "Selfie image"
2148
- }, {
2149
- value: "IDImage",
2150
- label: "ID image"
2151
- }, {
2152
- value: "IDInformation",
2153
- label: "ID information"
2154
- }];
2155
- var CredentialTypes = ["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "ID3",
2156
- // this is for backwards compatibility
2157
- "IDScan",
2158
- // this is for backwards compatibility
2159
- "IDScanSelfie",
2160
- // this is for backwards compatibility
2161
- "IDScanPassport" // this is for backwards compatibility
2162
- ];
2163
- var NexeraCredentialType = zod.z["enum"](CredentialTypes);
2164
- var getCredentialName = function getCredentialName(value) {
2165
- var _CredentialNames$find;
2166
- return (_CredentialNames$find = CredentialNames.find(function (obj) {
2167
- return obj.value === value;
2168
- })) === null || _CredentialNames$find === void 0 ? void 0 : _CredentialNames$find.label;
2169
- };
2170
- var CredentialType = zod.z.string().transform(function (x) {
2171
- return x.replace("_", "-");
2172
- }) // TODO determine why this is needed
2173
- .pipe(zod.z["enum"](CredentialTypes));
2174
- // Should this be replaced by GenericVerifiableCredentialSchema?
2175
-
2176
- var VerifiableCredential = zod.z.object({
2177
- issuer: zod.z.string(),
2178
- type: zod.z.array(zod.z.union([zod.z.string(), CredentialType])),
2179
- credentialSubject: zod.z.record(zod.z.unknown())
2180
- }).catchall(zod.z.any());
2181
- var CredentialMediaType = IDImageCredentialSubjectSchema.shape.mediaType_front;
2182
-
2183
- function _arrayLikeToArray(r, a) {
2184
- (null == a || a > r.length) && (a = r.length);
2185
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
2186
- return n;
2187
- }
2188
-
2189
- function _arrayWithoutHoles(r) {
2190
- if (Array.isArray(r)) return _arrayLikeToArray(r);
2191
- }
2192
-
2193
- function _iterableToArray(r) {
2194
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
2195
- }
2196
-
2197
- function _unsupportedIterableToArray(r, a) {
2198
- if (r) {
2199
- if ("string" == typeof r) return _arrayLikeToArray(r, a);
2200
- var t = {}.toString.call(r).slice(8, -1);
2201
- 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;
2202
- }
2203
- }
2204
-
2205
- function _nonIterableSpread() {
2206
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2207
- }
2208
-
2209
- function _toConsumableArray(r) {
2210
- return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
2211
- }
2212
-
2213
- // Request
2214
-
2215
- var MediaType = /*#__PURE__*/function (MediaType) {
2216
- MediaType["ZKPMessage"] = "application/iden3-zkp-json";
2217
- MediaType["PlainMessage"] = "application/iden3comm-plain-json";
2218
- MediaType["SignedMessage"] = "application/iden3comm-signed-json";
2219
- return MediaType;
2220
- }({});
2221
- var MediaTypePID = zod.z.nativeEnum(MediaType);
2222
- var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
2223
- var CircuitId = zod.z["enum"](CIRCUIT_IDS);
2224
- var ZeroKnowledgeProofRequest = zod.z.object({
2225
- id: zod.z.number(),
2226
- circuitId: zod.z.string(),
2227
- optional: zod.z["boolean"]().optional(),
2228
- query: zod.z.record(zod.z.string(), zod.z.any())
2229
- });
2230
- var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
2231
- AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
2232
- AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
2233
- CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
2234
- CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
2235
- CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
2236
- CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
2237
- CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
2238
- DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
2239
- MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
2240
- PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
2241
- PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
2242
- REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
2243
- REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
2244
- CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
2245
- CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
2246
- CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
2247
- PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
2248
- PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
2249
- PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
2250
- PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
2251
- };
2252
- var AuthorizationRequestMessageTypes = ["https://iden3-communication.io/authorization/1.0/request", "https://iden3-communication.io/authorization/1.0/response", "https://iden3-communication.io/credentials/1.0/issuance-request", "https://iden3-communication.io/credentials/1.0/fetch-request", "https://iden3-communication.io/credentials/1.0/offer", "https://iden3-communication.io/credentials/1.0/issuance-response", "https://iden3-communication.io/credentials/1.0/refresh", "https://iden3-communication.io/devices/1.0/registration", "https://iden3-communication.io/messages/1.0/fetch", "https://iden3-communication.io/proofs/1.0/request", "https://iden3-communication.io/proofs/1.0/response", "https://iden3-communication.io/revocation/1.0/request-status", "https://iden3-communication.io/revocation/1.0/status", "https://iden3-communication.io/proofs/1.0/contract-invoke-request", "https://iden3-communication.io/proofs/1.0/contract-invoke-response", "https://iden3-communication.io/credentials/1.0/onchain-offer", "https://iden3-communication.io/credentials/0.1/proposal-request", "https://iden3-communication.io/credentials/0.1/proposal", "https://iden3-communication.io/credentials/0.1/payment-request", "https://iden3-communication.io/credentials/0.1/payment"];
2253
- var AuthorizationRequestMessageType = zod.z["enum"](AuthorizationRequestMessageTypes);
2254
- var AuthorizationRequestMessage = zod.z.object({
2255
- id: zod.z.string(),
2256
- typ: MediaTypePID.optional(),
2257
- type: AuthorizationRequestMessageType,
2258
- thid: zod.z.string().optional(),
2259
- body: zod.z.object({
2260
- callbackUrl: zod.z.string(),
2261
- reason: zod.z.string().optional(),
2262
- did_doc: zod.z.any().optional(),
2263
- message: zod.z.string().optional(),
2264
- scope: zod.z.array(ZeroKnowledgeProofRequest)
2265
- }),
2266
- from: zod.z.string(),
2267
- to: zod.z.string().optional()
2268
- });
2269
- // Response
2270
- var ProofData = zod.z.object({
2271
- pi_a: zod.z.array(zod.z.string()),
2272
- pi_b: zod.z.array(zod.z.array(zod.z.string())),
2273
- pi_c: zod.z.array(zod.z.string()),
2274
- protocol: zod.z.string(),
2275
- curve: zod.z.string().optional()
2276
- });
2277
- var ZeroKnowledgeProofResponse = zod.z.object({
2278
- id: zod.z.number(),
2279
- circuitId: zod.z.string(),
2280
- vp: zod.z.any().optional(),
2281
- proof: ProofData,
2282
- pub_signals: zod.z.array(zod.z.string())
2283
- });
2284
- var AuthorizationResponseMessage = zod.z.object({
2285
- id: zod.z.string(),
2286
- typ: MediaTypePID.optional(),
2287
- type: zod.z.string(),
2288
- thid: zod.z.string().optional(),
2289
- body: zod.z.object({
2290
- did_doc: zod.z.any().optional(),
2291
- message: zod.z.string().optional(),
2292
- scope: zod.z.array(ZeroKnowledgeProofResponse)
2293
- }),
2294
- from: zod.z.string().optional(),
2295
- to: zod.z.string().optional()
2296
- });
2297
- // Polygon Wallet
2298
- var CredentialQrCodeData = zod.z.object({
2299
- id: zod.z.string(),
2300
- typ: zod.z.string(),
2301
- type: zod.z.string(),
2302
- thid: zod.z.string(),
2303
- body: zod.z.object({
2304
- url: zod.z.string(),
2305
- credentials: zod.z.unknown()
2306
- }),
2307
- from: zod.z.string(),
2308
- to: zod.z.string()
2309
- });
2310
- var AuthQrCodeData = zod.z.object({
2311
- id: zod.z.string(),
2312
- typ: zod.z.string(),
2313
- type: zod.z.string(),
2314
- thid: zod.z.string(),
2315
- body: zod.z.object({
2316
- callbackUrl: zod.z.string(),
2317
- reason: zod.z.string(),
2318
- scope: zod.z.unknown()
2319
- }),
2320
- from: zod.z.string()
2321
- });
2322
- var QrCodeLinkWithSchemaType = zod.z.object({
2323
- qrCodeLink: zod.z.string().nullish(),
2324
- schemaType: zod.z.string().nullish()
2325
- }).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
2326
- function parseIden3Message(input) {
2327
- var prefix = "request_uri=";
2328
- var startIndex = input.indexOf(prefix);
2329
- if (startIndex === -1) {
2330
- throw new Error("Wrong request - request doesn't start with request_uri=");
2331
- }
2332
- return zod.z.string().url().parse(input.substring(startIndex + prefix.length));
2333
- }
2334
- function parseSessionIdFromUrl(urlString) {
2335
- var url = new URL(urlString);
2336
- var params = new URLSearchParams(url.search);
2337
- var sessionId = params.get("sessionID");
2338
- if (!sessionId) {
2339
- throw new Error("No Session Id found in callback url");
2340
- }
2341
- return sessionId;
2342
- }
2343
-
2344
- function _arrayWithHoles(r) {
2345
- if (Array.isArray(r)) return r;
2346
- }
2347
-
2348
- function _nonIterableRest() {
2349
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2350
- }
2351
-
2352
- function _toArray(r) {
2353
- return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
2354
- }
2355
-
2356
- function zodEnumFromObjKeys(obj) {
2357
- var _ref = Object.keys(obj),
2358
- _ref2 = _toArray(_ref),
2359
- firstKey = _ref2[0],
2360
- otherKeys = _ref2.slice(1);
2361
- return zod.z["enum"]([firstKey].concat(_toConsumableArray(otherKeys)));
2362
- }
2363
- var AllCredentialAttributes = zod.z.union([zodEnumFromObjKeys(IDInformationCredentialSubjectSchema.shape), zodEnumFromObjKeys(IDImageCredentialSubjectSchema.shape), zodEnumFromObjKeys(SelfieImageCredentialSubjectSchema.shape), zodEnumFromObjKeys(ProofOfResidenceCredentialSubjectSchema.shape)]);
2364
- var AllCredentialValues = zod.z.union([zod.z["boolean"](), zod.z.string(), zod.z.number(), zod.z.array(zod.z.string()), zod.z.array(zod.z.number())]);
2365
- var OPERATORS = ["$noop",
2366
- // noop can be used in zkps as proof of credential issuance https://docs.privado.id/docs/verifier/verification-library/zk-query-language#exists---operator-11
2367
- "$eq",
2368
- // equal to
2369
- "$lt",
2370
- // less than
2371
- "$lte",
2372
- // less than or equal to
2373
- "$gt",
2374
- // greater than
2375
- "$gte",
2376
- // greater than or equal to
2377
- "$in",
2378
- // in
2379
- "$nin",
2380
- // not in
2381
- "$ne",
2382
- // not equal to
2383
- //"$between", // between
2384
- //"$nonbetween", // contains
2385
- "$exists" // exists
2386
- ];
2387
- var Operator = zod.z["enum"](OPERATORS);
2388
- var ZKPOperator = zod.z["enum"](OPERATORS).exclude(["$lte", "$gte"]);
2389
- var operatorDisplayMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$eq, "="), Operator["enum"].$gt, ">"), Operator["enum"].$lt, "<"), Operator["enum"].$gte, ">="), Operator["enum"].$lte, "<="), Operator["enum"].$ne, "!="), Operator["enum"].$in, "in"), Operator["enum"].$nin, "not in"), Operator["enum"].$noop, "noop"), Operator["enum"].$exists, "exists");
2390
- var ARRAY_OPERATORS = [Operator["enum"].$in, Operator["enum"].$nin, Operator["enum"].$eq, Operator["enum"].$ne
2391
- //Operator.enum.$between,
2392
- //Operator.enum.$nonbetween,
2393
- ];
2394
- var ArrayOperator = zod.z["enum"](ARRAY_OPERATORS);
2395
- var STRING_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne, Operator["enum"].$in, Operator["enum"].$nin, Operator["enum"].$exists];
2396
- var StringOperator = zod.z["enum"](STRING_OPERATORS);
2397
- var NUMERIC_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne, Operator["enum"].$gt, Operator["enum"].$gte, Operator["enum"].$lt, Operator["enum"].$lte
2398
- //Operator.enum.$between,
2399
- //Operator.enum.$nonbetween,
2400
- ];
2401
- var NumericOperator = zod.z["enum"](NUMERIC_OPERATORS);
2402
- var BOOLEAN_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne];
2403
- var BooleanOperator = zod.z["enum"](BOOLEAN_OPERATORS);
2404
- var DATE_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne, Operator["enum"].$gt, Operator["enum"].$gte, Operator["enum"].$lt, Operator["enum"].$lte
2405
- //Operator.enum.$between,
2406
- //Operator.enum.$nonbetween,
2407
- ];
2408
- var DateOperator = zod.z["enum"](DATE_OPERATORS);
2409
- var SUPPORTED_TYPES = ["string", "integer", "boolean", "number", "array", "date"];
2410
- var SupportedType = zod.z["enum"](SUPPORTED_TYPES);
2411
- var SupportedTypes = zod.z.object(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, SupportedType["enum"].string, StringOperator), SupportedType["enum"].integer, NumericOperator), SupportedType["enum"]["boolean"], BooleanOperator), SupportedType["enum"].number, NumericOperator), SupportedType["enum"].array, ArrayOperator), SupportedType["enum"].date, DateOperator));
2412
- var IDInformation = zod.z.object({
2413
- type: zod.z.literal("IDInformation"),
2414
- requestId: zod.z.coerce.number().nullish(),
2415
- attribute: zod.z.union([zod.z.string(), zodEnumFromObjKeys(IDInformationCredentialSubjectSchema.shape)]),
2416
- value: AllCredentialValues,
2417
- // TODO play with discriminatedUnion to make it dynamic based on selected attribute (e.g. if attribute age is type number in the schema, then value her shuld be number etc..)
2418
- operator: Operator
2419
- });
2420
- var IDImage = zod.z.object({
2421
- type: zod.z.literal("IDImage"),
2422
- requestId: zod.z.coerce.number().nullish(),
2423
- attribute: zod.z.union([zod.z.string(), zodEnumFromObjKeys(IDImageCredentialSubjectSchema.shape)]),
2424
- value: AllCredentialValues,
2425
- operator: Operator
2426
- });
2427
- var SelfieImage = zod.z.object({
2428
- type: zod.z.literal("SelfieImage"),
2429
- requestId: zod.z.coerce.number().nullish(),
2430
- attribute: zod.z.union([zod.z.string(), zodEnumFromObjKeys(SelfieImageCredentialSubjectSchema.shape)]),
2431
- value: AllCredentialValues,
2432
- // TODO play with discriminatedUnion to make it dynamic based on selected attribute (e.g. if attribute age is type number in the schema, then value her shuld be number etc..)
2433
- operator: Operator
2434
- });
2435
- var ProofOfResidence = zod.z.object({
2436
- type: zod.z.literal("ProofOfResidence"),
2437
- requestId: zod.z.coerce.number().nullish(),
2438
- attribute: zod.z.union([zod.z.string(), zodEnumFromObjKeys(ProofOfResidenceCredentialSubjectSchema.shape)]),
2439
- value: AllCredentialValues,
2440
- // TODO play with discriminatedUnion to make it dynamic based on selected attribute (e.g. if attribute age is type number in the schema, then value her shuld be number etc..)
2441
- operator: Operator
2442
- });
2443
- var QueryConfig = zod.z.discriminatedUnion("type", [IDInformation, IDImage, SelfieImage, ProofOfResidence]);
2444
- var QueryType = zod.z["enum"](["IDInformation", "SelfieImage", "IDImage", "ProofOfResidence", "AMLScreeningsResults",
2445
- // backwards compatibility
2446
-
2447
- "ID3",
2448
- // this is for backwards compatibility
2449
- "IDScan",
2450
- // this is for backwards compatibility
2451
- "IDScanSelfie",
2452
- // this is for backwards compatibility
2453
- "IDScanPassport" // this is for backwards compatibility
2454
- ]);
2455
- var QueryConfigSimplified = zod.z.object({
2456
- type: QueryType,
2457
- requestId: zod.z.coerce.number().nullish().describe("Request ID for ZKPs"),
2458
- attribute: zod.z.string(),
2459
- value: AllCredentialValues,
2460
- // TODO play with discriminatedUnion to make it dynamic based on selected attribute (e.g. if attribute age is type number in the schema, then value her shuld be number etc..)
2461
- operator: Operator
2462
- });
2463
- var PartialQueryConfigSimplified = QueryConfigSimplified.partial();
2464
- var transformQuery = function transformQuery(request) {
2465
- var schema = CredentialSchemas[request.type];
2466
- var transformedValue = request.value;
2467
- var shape = schema.shape[request.attribute];
2468
- if (shape instanceof zod.ZodOptional) {
2469
- var wrapped = shape.unwrap();
2470
- if (wrapped instanceof zod.ZodNumber) {
2471
- transformedValue = zod.z.coerce.number().parse(request.value);
2472
- }
2473
- }
2474
- return {
2475
- requestId: request.requestId,
2476
- type: request.type,
2477
- attribute: request.attribute,
2478
- operator: request.operator,
2479
- value: transformedValue
2480
- };
2481
-
2482
- // // Dynamically construct the output object
2483
- // // in rare cases not doing so can cause mismatch between scenario schema and scenario type
2484
- // const output: PartialQueryConfigSimplified = {
2485
- // type: request.type,
2486
- // attribute: request.attribute,
2487
- // operator: request.operator,
2488
- // value: transformedValue,
2489
- // };
2490
-
2491
- // if (request.requestId !== undefined) {
2492
- // output.requestId = request.requestId;
2493
- // }
2494
- // return output;
2495
- };
2496
- // this is used to parse updateQuery response
2497
- // value won't be parsed if type is not there, which is fine for now
2498
- // because we don't use value from update response
2499
- var transformPartialQuery = function transformPartialQuery(request) {
2500
- if (!request.type || !request.value) {
2501
- return request;
2502
- }
2503
- var schema = CredentialSchemas[request.type];
2504
- var transformedValue = request.value;
2505
- var shape = schema.shape[request.attribute];
2506
- if (shape instanceof zod.ZodOptional) {
2507
- var wrapped = shape.unwrap();
2508
- if (wrapped instanceof zod.ZodNumber) {
2509
- transformedValue = zod.z.coerce.number().parse(request.value);
2510
- }
2511
- }
2512
- // maybe we should use the same logic as in transformQuery
2513
- // not seeing any issues yet...
2514
- return {
2515
- requestId: request.requestId,
2516
- type: request.type,
2517
- attribute: request.attribute,
2518
- operator: request.operator,
2519
- value: transformedValue
2520
- };
2521
- };
2522
- var QueryConfigSimplifiedParsed = QueryConfigSimplified.transform(transformQuery);
2523
- var QueryConfiguration = zod.z.object({
2524
- id: zod.z.string(),
2525
- query: QueryConfigSimplifiedParsed
2526
- });
2527
- var NonParsedQueryConfiguration = zod.z.object({
2528
- id: zod.z.string(),
2529
- query: QueryConfigSimplified
2530
- });
2531
- var CreateQueryConfigurationInput = zod.z.object({
2532
- query: QueryConfigSimplified,
2533
- scenarioId: zod.z.string()
2534
- });
2535
- // Response should be parsed to get right value type
2536
- var CreateQueryConfigurationResponse = zod.z.object({
2537
- queryConfiguration: QueryConfigSimplifiedParsed
2538
- });
2539
- var UpdateQueryConfigurationInput = zod.z.object({
2540
- queryConfigurationId: zod.z.string(),
2541
- scenarioId: zod.z.string(),
2542
- query: PartialQueryConfigSimplified
2543
- });
2544
- // Response should be parsed to get right value type
2545
- var UpdateQueryConfigurationResponse = zod.z.object({
2546
- queryConfiguration: PartialQueryConfigSimplified.transform(transformPartialQuery)
2547
- });
2548
- var DeleteQueryConfigurationInput = zod.z.object({
2549
- queryConfigurationId: zod.z.string(),
2550
- scenarioId: zod.z.string()
2551
- });
2552
- var DeleteQueryConfigurationResponse = zod.z.object({
2553
- queryConfigurationId: zod.z.string()
2554
- });
2555
- var QueryCredentialTypes = ["IDInformation", "IDImage", "SelfieImage", "ProofOfResidence"];
2556
- var QueryCredentialType = zod.z["enum"](QueryCredentialTypes);
2557
- var ChallengeQuerySchema = zod.z.object({
2558
- id: zod.z.string().optional(),
2559
- query: QueryConfig
2560
- });
2561
- var CHALLENGE_QUERY_OPERATORS = ["GREATER_THAN", "LESS_THAN", "EQUAL_TO", "NOT_EQUAL_TO", "LESS_THAN_OR_EQUAL_TO", "GREATER_THAN_OR_EQUAL_TO", "IN", "NOT_IN",
2562
- //"BETWEEN",
2563
- //"NOT_BETWEEN",
2564
- "EXISTS"];
2565
- var ChallengeQueryOperator = zod.z["enum"](CHALLENGE_QUERY_OPERATORS);
2566
- var OperatorMappings = {
2567
- toChallenge: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$noop, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$eq, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$lt, ChallengeQueryOperator["enum"].LESS_THAN), Operator["enum"].$lte, ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO), Operator["enum"].$gt, ChallengeQueryOperator["enum"].GREATER_THAN), Operator["enum"].$gte, ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO), Operator["enum"].$in, ChallengeQueryOperator["enum"].IN), Operator["enum"].$nin, ChallengeQueryOperator["enum"].NOT_IN), Operator["enum"].$ne, ChallengeQueryOperator["enum"].NOT_EQUAL_TO), Operator["enum"].$exists, ChallengeQueryOperator["enum"].EXISTS),
2568
- fromChallenge: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ChallengeQueryOperator["enum"].EQUAL_TO, Operator["enum"].$eq), ChallengeQueryOperator["enum"].LESS_THAN, Operator["enum"].$lt), ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO, Operator["enum"].$lte), ChallengeQueryOperator["enum"].GREATER_THAN, Operator["enum"].$gt), ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO, Operator["enum"].$gte), ChallengeQueryOperator["enum"].IN, Operator["enum"].$in), ChallengeQueryOperator["enum"].NOT_IN, Operator["enum"].$nin), ChallengeQueryOperator["enum"].NOT_EQUAL_TO, Operator["enum"].$ne), ChallengeQueryOperator["enum"].EXISTS, Operator["enum"].$exists)
2569
- };
2570
- var OperatorToChallengeQueryOperator = OperatorMappings.toChallenge;
2571
- var ChallengeQueryOperatorToOperator = OperatorMappings.fromChallenge;
2572
-
2573
- var StoragePrefix = "storage";
2574
- var IdentityPrefix = "identity";
2575
- var EmailPrefix = "email";
2576
- var WalletPrefix = "wallet";
2577
- var AppPrefix = "app";
2578
- var ChallengePrefix = "challenge";
2579
- var TestPrefix = "test";
2580
- var CustomerScreeningPrefix = "cstscr";
2581
- var TagPrefix = "tag";
2582
-
2583
- // TMS
2584
- var TagsToTransactionReviewsPrefix = "ttxr";
2585
- var TransactionAddressesPrefix = "txa";
2586
- var TransactionPrefix = "tx";
2587
- var TransactionFeesPrefix = "txf";
2588
- var TransactionReviewPrefix = "txrev";
2589
- var TransactionPartiesPrefix = "txpar";
2590
- var TransactionInfosPrefix = "txi";
2591
- var TransactionExtractedInfosPrefix = "txei";
2592
- var TransactionMethodsPrefix = "txm";
2593
- var TransactionMethodExtractedInfosPrefix = "txmei";
2594
- var InstitutionPrefix = "ins";
2595
- var InstitutionExtractedInfosPrefix = "insei";
2596
- var TransactionAmountPrefix = "txam";
2597
-
2598
- // Add these lines near the top of the file with other prefix definitions
2599
- var ScenarioPrefix = "scenario";
2600
- var ListPrefix = "list";
2601
- var QueryPrefix = "query";
2602
- var ActionPrefix = "action";
2603
-
2604
- // workflows-api
2605
- var WorkflowSessionAttributePrefix = "wsatr";
2606
-
2607
- // ---
2608
-
2609
- // Add these lines in the type definitions section
2610
-
2611
- // TMS
2612
-
2613
- // workflows-api
2614
-
2615
- // ---
2616
-
2617
- // TMS
2618
-
2619
- // Scenarios service
2620
-
2621
- // Workflows-API
2622
-
2623
- var createBrandedSchemaId = function createBrandedSchemaId(brand) {
2624
- return zod.z.custom(function (val) {
2625
- if (typeof val !== "string") return false;
2626
- return val.startsWith(brand);
2627
- }, {
2628
- message: "Invalid ".concat(brand, " id")
2629
- });
2630
- };
2631
-
2632
- // ---
2633
-
2634
- var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
2635
- var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
2636
- var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
2637
- var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
2638
- var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
2639
- var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
2640
- var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
2641
- var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
2642
- var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
2643
- var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
2644
-
2645
- // TMS
2646
- var TagsToTransactionReviewsId = createBrandedSchemaId("".concat(TagsToTransactionReviewsPrefix, "_"));
2647
- var TransactionAddressesId = createBrandedSchemaId("".concat(TransactionAddressesPrefix, "_"));
2648
- var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
2649
- var TransactionFeesId = createBrandedSchemaId("".concat(TransactionFeesPrefix, "_"));
2650
- var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
2651
- var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
2652
- var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
2653
- var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
2654
- var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
2655
- var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
2656
- var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
2657
- var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
2658
- var TransactionAmountId = createBrandedSchemaId("".concat(TransactionAmountPrefix, "_"));
2659
- var ScenarioId = createBrandedSchemaId("".concat(ScenarioPrefix, "_"));
2660
- var ListId = createBrandedSchemaId("".concat(ListPrefix, "_"));
2661
- var QueryId = createBrandedSchemaId("".concat(QueryPrefix, "_"));
2662
-
2663
- // Workflows api
2664
- var WorkflowSessionId = UuidString;
2665
- var WorkflowSessionAttributeId = createBrandedSchemaId("".concat(WorkflowSessionAttributePrefix, "_"));
2666
- var generateId = function generateId(type) {
2667
- return "".concat(type, "_").concat(nanoid.nanoid(12));
2668
- };
2669
- var MemberId = zod.z.string();
2670
-
2671
- var FLOW_TYPES = ["web2", "web3"];
2672
- var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
2673
- var VerificationModes = ["full_verification", "sandbox"];
2674
- var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
2675
- var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
2676
- var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
2677
- var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
2678
- var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
2679
- var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
2680
- var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
2681
- var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
2682
-
2683
- /**
2684
- * Represents the additional data that can be attached to a customer
2685
- */
2686
-
2687
- var AdditionalCustomerInformationParams = zod.z.object({
2688
- email: zod.z.string().email().optional(),
2689
- phone: zod.z.string().min(4).optional(),
2690
- wallet: zod.z.object({
2691
- address: BlockchainAddress,
2692
- namespace: BlockchainNamespace
2693
- }).optional()
2694
- });
2695
- var OrganizationId = zod.z.string();
2696
- var WorkspaceId = zod.z.string();
2697
- var WorkflowId = UuidString;
2698
- var CustomerId = UuidString;
2699
- var IdentityWidgetAccessToken = zod.z.object({
2700
- sub: BlockchainAddress,
2701
- blockchainNamespace: BlockchainNamespace,
2702
- exp: zod.z.number(),
2703
- projectId: zod.z.string(),
2704
- organizationId: OrganizationId,
2705
- customerId: UuidString,
2706
- workspaceId: WorkspaceId,
2707
- // cmsProjectId
2708
- workflowId: WorkflowId.optional(),
2709
- ipAddress: zod.z.string().optional(),
2710
- timestamp: zod.z.number(),
2711
- storeSharedVC: zod.z["boolean"]().nullish(),
2712
- verificationMode: VerificationMode,
2713
- hosts: zod.z.array(zod.z.string())
2714
- });
2715
-
2716
- // represents an id of a consumer in the external system of our client
2717
- // as it's an external id, it can be any string
2718
- var ExternalCustomerId = zod.z.string();
2719
- var IdentityAppV2BaseJWT = zod.z.object({
2720
- sub: IdentityId,
2721
- // @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
2722
- flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
2723
- exp: zod.z.number(),
2724
- customerId: UuidString,
2725
- verificationMode: VerificationMode,
2726
- organizationId: OrganizationId,
2727
- workspaceId: WorkspaceId,
2728
- workflowId: WorkflowId,
2729
- ipAddress: zod.z.string().optional(),
2730
- timestamp: zod.z.number(),
2731
- iat: zod.z.number(),
2732
- hosts: zod.z.array(zod.z.string())
2733
- });
2734
- var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
2735
- flowType: zod.z.literal(FlowType.Values.web3),
2736
- blockchainAddress: BlockchainAddress,
2737
- blockchainNamespace: BlockchainNamespace
2738
- });
2739
- var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
2740
- flowType: zod.z.literal(FlowType.Values.web2),
2741
- /**
2742
- * @deprecated Fetch the additional user information from the services instead of relying on this field
2743
- * We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
2744
- */
2745
- deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
2746
- });
2747
- var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
2748
- var IdentityWidgetSessionToken = zod.z.union([IdentityWidgetAccessToken, IdentityWidgetAccessToken_NEW]);
2749
-
2750
- /**
2751
- * The parameters required to create a new configuration in web2 mode.
2752
- */
2753
-
2754
- var Web2CreateSessionParams = zod.z.object({
2755
- workflowId: WorkflowId,
2756
- // required in web2 because we don't have the wallet address
2757
- externalCustomerId: ExternalCustomerId,
2758
- additionalInformation: AdditionalCustomerInformationParams.optional()
2759
- });
2760
-
2761
- var ScenarioTypes = ["ChallengeQuery", "OffChainZKP", "IndividualCustomerMonitoring", "TransactionMonitoring"];
2762
- var ScenarioType = zod.z["enum"](ScenarioTypes);
2763
- var BaseQueryResponse = zod.z.object({
2764
- result: zod.z.object({
2765
- is_valid: zod.z["boolean"](),
2766
- reasons: zod.z.array(zod.z.string())
2767
- })
2768
- });
2769
- var OffChainZKPRuleResult = BaseQueryResponse.extend({
2770
- result: zod.z.object({
2771
- is_valid: zod.z["boolean"](),
2772
- query: QueryConfigSimplified,
2773
- reasons: zod.z.array(zod.z.string())
2774
- })
2775
- });
2776
- var ExecuteQueryResponse = BaseQueryResponse.extend({
2777
- executionId: UuidString
2778
- });
2779
- var RuleEngineResponse = zod.z.object({
2780
- objectType: ScenarioType,
2781
- objectId: zod.z.string().describe("Object id in the cms (challengeQueryid, offChainZKPid)"),
2782
- name: zod.z.string(),
2783
- address: BlockchainAddress.nullish(),
2784
- result: ExecuteQueryResponse,
2785
- executionId: UuidString,
2786
- scenarioId: zod.z.string()
2787
- });
2788
- var ScenarioExecutionResponse = zod.z.array(RuleEngineResponse);
2789
- var RuleResultStatuses = ["valid", "not-valid", "error", "unknown"];
2790
- var RuleResultStatus = zod.z["enum"](RuleResultStatuses);
2791
- var RuleResultStatusLabels = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RuleResultStatus.Enum.valid, "Valid"), RuleResultStatus.Enum["not-valid"], "Not Valid"), RuleResultStatus.Enum.error, "Error"), RuleResultStatus.Enum.unknown, "Unknown");
2792
- var SdkVerificationOutput = zod.z.object({
2793
- customerId: zod.z.string().optional(),
2794
- // for v1
2795
- scenarioExecutionId: zod.z.string().optional(),
2796
- // for v1
2797
- status: RuleResultStatus.optional(),
2798
- // for v1
2799
- results: zod.z.array(ScenarioExecutionResponse).optional() // for v1,
2800
- });
2801
- var VerificationSessionStatuses = ["IN_PROGRESS", "COMPLETED", "NOT_STARTED"];
2802
- var VerificationSessionStatus = zod.z["enum"](VerificationSessionStatuses);
2803
- var VerificationOutput = zod.z.object({
2804
- id: UuidString.nullable(),
2805
- verificationResult: SdkVerificationOutput.nullable(),
2806
- status: VerificationSessionStatus
2807
- });
2808
- var Scenario = zod.z.object({
2809
- id: ScenarioId,
2810
- name: zod.z.string(),
2811
- description: zod.z.string().nullish(),
2812
- queries: zod.z.array(QueryConfig),
2813
- type: ScenarioType,
2814
- workspaceId: WorkspaceId,
2815
- vcsIncluded: zod.z.array(CredentialType).nullish()
2816
- });
2817
-
2818
- // creating this because SmartContractDeployment has an issue with AddressSchema
2819
- // during rpcPublisher.send
2820
- // also the parsing of the queryconfiguration fields changes type slightly as well.
2821
- var AbbreviatedWorkflowScenario = Scenario.omit({
2822
- vcsIncluded: true,
2823
- queries: true
2824
- }).extend({
2825
- queries: zod.z.array(QueryConfig)
2826
- });
2827
- var TemplateScenario = Scenario.omit({
2828
- workspaceId: true
2829
- });
2830
- var CreateTemplateScenario = TemplateScenario.omit({
2831
- id: true
2832
- });
2833
-
2834
- var ScenarioAuthorizationData = zod.z.object({
2835
- executionId: UuidString,
2836
- sessionId: UuidString,
2837
- projectId: zod.z.string(),
2838
- address: BlockchainAddress.nullish(),
2839
- status: zod.z["enum"](["pending", "authorised", "unauthorised"]),
2840
- scenarioId: zod.z.string(),
2841
- scenarioName: zod.z.string(),
2842
- requestMessage: AuthorizationRequestMessage,
2843
- responseMessage: AuthorizationResponseMessage.nullish(),
2844
- verificationError: zod.z.string().nullish(),
2845
- query: QueryConfigSimplified.array(),
2846
- workflowSessionId: UuidString.optional()
2847
- });
2848
- // v1 sdk
2849
- var SdkVerificationResponseSchema = SdkVerificationOutput;
2850
- var CloseScreenNotification = zod.z.object({
2851
- type: zod.z.literal("closeScreen"),
2852
- identifier: zod.z.string(),
2853
- data: zod.z.undefined()
2854
- });
2855
- var KycCompletionData = zod.z.array(VerifiableCredential);
2856
- var KycCompletionNotification = zod.z.object({
2857
- type: zod.z.literal("kycCompletion"),
2858
- identifier: zod.z.string(),
2859
- data: KycCompletionData
2860
- });
2861
- var RuleEngineScenarioExecutionData = zod.z.object({
2862
- type: zod.z.literal("RuleEngineScenarioExecution"),
2863
- data: SdkVerificationResponseSchema
2864
- });
2865
- var OffChainScenarioExecutionData = zod.z.object({
2866
- type: zod.z.literal("OffChainScenarioExecution"),
2867
- data: zod.z.array(ScenarioAuthorizationData)
2868
- });
2869
- var OnChainScenarioExecutionData = zod.z.object({
2870
- type: zod.z.literal("OnChainScenarioExecution"),
2871
- data: zod.z.any()
2872
- });
2873
- var ScenarioExecutionData = zod.z.union([RuleEngineScenarioExecutionData, OffChainScenarioExecutionData, OnChainScenarioExecutionData]);
2874
- var ScenarioExecutionNotification = zod.z.object({
2875
- type: zod.z.literal("scenarioExecution"),
2876
- identifier: zod.z.string(),
2877
- data: ScenarioExecutionData
2878
- });
2879
- var IsVerifiedNotification = zod.z.object({
2880
- type: zod.z.literal("isVerifiedNotification"),
2881
- identifier: zod.z.string(),
2882
- isVerified: zod.z["boolean"]()
2883
- });
2884
- var PolygonIdInitialized = zod.z.object({
2885
- type: zod.z.literal("polygonIdInitialized"),
2886
- identifier: zod.z.string(),
2887
- data: zod.z.string()
2888
- });
2889
- var OcvSdkInitialized = zod.z.object({
2890
- type: zod.z.literal("ocvSdkInitialized"),
2891
- identifier: zod.z.string()
2892
- });
2893
- var StartCompletedNotification = zod.z.object({
2894
- type: zod.z.literal("startCompletedNotification"),
2895
- identifier: zod.z.string()
2896
- });
2897
- var IdentityNotificationMessage = zod.z.union([CloseScreenNotification, PolygonIdInitialized, OcvSdkInitialized, StartCompletedNotification, KycCompletionNotification, ScenarioExecutionNotification, IsVerifiedNotification]);
2898
- var InitialDataRequest = zod.z.object({
2899
- type: zod.z.literal("initialDataRequest"),
2900
- identifier: zod.z.string()
2901
- });
2902
- var SignatureRequest = zod.z.object({
2903
- type: zod.z.literal("signatureRequest"),
2904
- identifier: zod.z.string(),
2905
- data: zod.z.object({
2906
- message: zod.z.string()
2907
- })
2908
- });
2909
- var TransactionData = zod.z.object({
2910
- accountAddress: BlockchainAddress,
2911
- to: BlockchainAddress,
2912
- data: String0x,
2913
- value: zod.z.string().optional()
2914
- });
2915
- var SendTransactionRequest = zod.z.object({
2916
- type: zod.z.literal("sendTransactionRequest"),
2917
- identifier: zod.z.string(),
2918
- data: TransactionData
2919
- });
2920
- var IdentityRequestMessage = zod.z.union([InitialDataRequest, SignatureRequest, SendTransactionRequest]);
2921
- var AVAILABLE_FLOWS = ["VERIFICATION", "MANAGEMENT", "POLYGON_ID", "KYB"];
2922
- var AvailableFlow = zod.z["enum"](AVAILABLE_FLOWS);
2923
- var DataAvailableOnStart = zod.z.object({
2924
- identifier: zod.z.string().optional(),
2925
- flow: zod.z["enum"](AVAILABLE_FLOWS).optional(),
2926
- accessToken: zod.z.string(),
2927
- signingMessage: zod.z.string(),
2928
- signature: zod.z.string()
2929
- });
2930
- var InitialDataResponse = zod.z.object({
2931
- type: zod.z.literal("onStartKyc"),
2932
- data: DataAvailableOnStart
2933
- });
2934
- var SignatureResponse = zod.z.object({
2935
- type: zod.z.literal("signature"),
2936
- data: BlockchainSignature
2937
- });
2938
- var TransactionResponse = zod.z.object({
2939
- type: zod.z.literal("transactionResponse"),
2940
- data: zod.z.object({
2941
- txHash: TxHash
2942
- })
2943
- });
2944
- var HostResponseMessage = zod.z.union([InitialDataResponse, SignatureResponse, TransactionResponse]);
2945
-
2946
- /**
2947
- * Exported types
2948
- */
2949
-
2950
- var ComplianceImplementationStepsInput = zod.z.object({
2951
- identityChecks: zod.z["boolean"]().nullish(),
2952
- configureIdentity: zod.z["boolean"]().nullish(),
2953
- deployIdentity: zod.z["boolean"]().nullish(),
2954
- monitorIdentity: zod.z["boolean"]().nullish()
2955
- });
2956
-
2957
- /////////////
2958
- // EIP-155 //
2959
- /////////////
2960
-
2961
- var TxAuthInput = zod.z.object({
2962
- workflowId: WorkflowId.optional(),
2963
- chainId: EvmChainId,
2964
- contractAbi: zod.z.array(zod.z.record(zod.z.unknown())),
2965
- contractAddress: AddressSchema,
2966
- functionName: zod.z.string(),
2967
- args: zod.z.array(zod.z.unknown()),
2968
- userAddress: AddressSchema,
2969
- blockExpiration: zod.z.number()["int"]().optional(),
2970
- nonce: zod.z.number()["int"]().optional()
2971
- });
2972
- // the api endpoint can source the userAddress from the session if it's not provided
2973
- var ApiTxAuthInput = TxAuthInput.extend({
2974
- userAddress: AddressSchema.optional()
2975
- });
2976
- var TxSignatureResponse = zod.z.object({
2977
- signature: EIP155Signature,
2978
- blockExpiration: zod.z.number()
2979
- });
2980
- var GetTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
2981
- isAuthorized: zod.z.literal(true),
2982
- signature: EIP155Signature,
2983
- payload: zod.z.string(),
2984
- blockExpiration: zod.z.number()
2985
- }), zod.z.object({
2986
- isAuthorized: zod.z.literal(false),
2987
- errorMessage: zod.z.any()
2988
- })]);
2989
- /////////////
2990
- // Tezos //
2991
- /////////////
2992
-
2993
- var TezosTxAuthInput = zod.z.object({
2994
- workflowId: WorkflowId.optional(),
2995
- chainID: TezosChainId,
2996
- contractAddress: TezosContractAddress,
2997
- functionName: TezosEntrypointName,
2998
- args: zod.z.string(),
2999
- userAddress: TezosImplicitAddress,
3000
- blockExpiration: zod.z.number()["int"]().optional(),
3001
- nonce: zod.z.number()["int"]().optional()
3002
- });
3003
- // the api endpoint can source the userAddress from the session if it's not provided
3004
- var ApiTezosTxAuthInput = TezosTxAuthInput.extend({
3005
- userAddress: TezosImplicitAddress.optional()
3006
- });
3007
- var TezosTxSignatureResponse = zod.z.object({
3008
- signature: EdSignature,
3009
- blockExpiration: zod.z.number()
3010
- });
3011
- var GetTezosTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
3012
- isAuthorized: zod.z.literal(true),
3013
- signature: EdSignature,
3014
- blockExpiration: zod.z.number()
3015
- }), zod.z.object({
3016
- isAuthorized: zod.z.literal(false),
3017
- errorMessage: zod.z.any()
3018
- })]);
3019
- /////////////
3020
- // General //
3021
- /////////////
3022
-
3023
- var ExtendedTxAuthInput = TxAuthInput.and(zod.z.object({
3024
- namespace: zod.z.literal(BlockchainNamespace.Enum.eip155),
3025
- userAddress: AddressSchema
3026
- }));
3027
- var ExtendedTezosTxAuthInput = TezosTxAuthInput.and(zod.z.object({
3028
- namespace: zod.z.literal(BlockchainNamespace.Enum.tezos),
3029
- userAddress: TezosImplicitAddress
3030
- }));
3031
- var ExtendedTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse.and(zod.z.object({
3032
- namespace: zod.z.literal(BlockchainNamespace.Enum.eip155),
3033
- userAddress: AddressSchema
3034
- }));
3035
- var ExtendedTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse.and(zod.z.object({
3036
- namespace: zod.z.literal(BlockchainNamespace.Enum.tezos),
3037
- userAddress: TezosImplicitAddress
3038
- }));
3039
- var AnyTxAuthDataSignatureResponse = zod.z.union([ExtendedTxAuthDataSignatureResponse, ExtendedTezosTxAuthDataSignatureResponse]);
3040
- /////////////
3041
- // JS SDK //
3042
- /////////////
3043
-
3044
- var Eip155TxAuthInputJsSdk = ExtendedTxAuthInput.and(zod.z.object({
3045
- workflowId: WorkflowId
3046
- }));
3047
- var TezosTxAuthInputJsSdk = ExtendedTezosTxAuthInput.and(zod.z.object({
3048
- workflowId: WorkflowId
3049
- }));
3050
- var AnyTxAuthInputJsSdk = zod.z.union([Eip155TxAuthInputJsSdk, TezosTxAuthInputJsSdk]);
3051
-
3052
- var SimplifiedCredential = zod.z.object({
3053
- id: zod.z.string(),
3054
- type: zod.z.array(zod.z.string()),
3055
- issuanceDate: zod.z.string(),
3056
- journeyId: zod.z.string()
3057
- });
3058
- /**
3059
- * GetCredentialsRequest
3060
- */
3061
- var GetCredentialsRequest = zod.z.object({
3062
- type: zod.z.literal("getCredentials"),
3063
- data: zod.z.undefined()
3064
- });
3065
- /**
3066
- * GetCredentialsResponse
3067
- */
3068
- var GetCredentialsResponse = zod.z.object({
3069
- type: zod.z.literal("polygonIdCredentials"),
3070
- credentials: zod.z.array(SimplifiedCredential),
3071
- identifier: zod.z.string()
3072
- });
3073
- /**
3074
- * PolygonIdRequest
3075
- */
3076
- var PolygonIdRequestData = zod.z.union([zod.z.object({
3077
- type: zod.z.literal("auth"),
3078
- authRequest: AuthorizationRequestMessage
3079
- }), zod.z.object({
3080
- type: zod.z.literal("credentialOffer"),
3081
- credentialOfferRequest: QrCodeLinkWithSchemaType
3082
- }), zod.z.object({
3083
- type: zod.z.literal("zkp"),
3084
- zkpRequest: ZeroKnowledgeProofRequest
3085
- })]);
3086
- var PolygonIdRequest = zod.z.object({
3087
- type: zod.z.literal("polygonIdRequest"),
3088
- data: PolygonIdRequestData
3089
- });
3090
- /**
3091
- * PolygonIdResponse
3092
- */
3093
- var PolygonIdResponseData = zod.z.union([zod.z.object({
3094
- type: zod.z.literal("auth"),
3095
- authResponse: AuthorizationResponseMessage
3096
- }), zod.z.object({
3097
- type: zod.z.literal("credentialOffer"),
3098
- credentialOfferResponse: zod.z.array(GenericVerifiableCredentialSchema)
3099
- }), zod.z.object({
3100
- type: zod.z.literal("zkp"),
3101
- zkpResponse: ZeroKnowledgeProofResponse
3102
- }), zod.z.object({
3103
- type: zod.z.literal("close"),
3104
- screen: zod.z["enum"](["auth", "credentialOffer", "zkp", "getCredentials"]),
3105
- closeResponse: zod.z.string()
3106
- })]);
3107
- var PolygonIdResponse = zod.z.object({
3108
- type: zod.z.literal("polygonIdResponse"),
3109
- identifier: zod.z.string(),
3110
- data: PolygonIdResponseData
3111
- });
3112
- /**
3113
- * StartFlowRequest
3114
- */
3115
- var StartFlowRequest = zod.z.union([zod.z.object({
3116
- type: zod.z.literal("startVerification"),
3117
- data: zod.z.undefined()
3118
- }), zod.z.object({
3119
- type: zod.z.literal("startManagement"),
3120
- data: zod.z.undefined()
3121
- }), zod.z.object({
3122
- type: zod.z.literal("startKYB"),
3123
- data: zod.z.undefined()
3124
- })]);
3125
- /**
3126
- * IsVerifiedRequest
3127
- */
3128
- var IsVerifiedRequest = zod.z.object({
3129
- type: zod.z.literal("isVerifiedRequest"),
3130
- data: zod.z.object({
3131
- userAddress: AddressSchema
3132
- }),
3133
- identifier: zod.z.string()
3134
- });
3135
- /**
3136
- * IsVerifiedResponse
3137
- */
3138
- var IsVerifiedResponse = zod.z.object({
3139
- type: zod.z.literal("isVerifiedResponse"),
3140
- isVerified: zod.z["boolean"](),
3141
- identifier: zod.z.string()
3142
- });
3143
- /**
3144
- * GetTxAuthSigRequest
3145
- */
3146
- var GetTxAuthSigRequest = zod.z.object({
3147
- type: zod.z.literal("getTxAuthSigRequest"),
3148
- data: ApiTxAuthInput,
3149
- identifier: zod.z.string()
3150
- });
3151
- /**
3152
- * GetTxAuthSigResponse
3153
- */
3154
- var GetTxAuthSigResponse = zod.z.object({
3155
- type: zod.z.literal("getTxAuthSigResponse"),
3156
- signatureResponse: GetTxAuthDataSignatureResponse,
3157
- identifier: zod.z.string()
3158
- });
3159
- /**
3160
- * GetTxAuthSigRequest Tezos
3161
- */
3162
- var GetTxAuthSigRequestTezos = zod.z.object({
3163
- type: zod.z.literal("getTxAuthSigRequestTezos"),
3164
- data: ApiTezosTxAuthInput,
3165
- identifier: zod.z.string()
3166
- });
3167
- /**
3168
- * GetTxAuthSigResponse Tezos
3169
- */
3170
- var GetTxAuthSigResponseTezos = zod.z.object({
3171
- type: zod.z.literal("getTezosTxAuthSigResponse"),
3172
- signatureResponse: GetTezosTxAuthDataSignatureResponse,
3173
- identifier: zod.z.string()
3174
- });
3175
- var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
3176
- var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
3177
-
3178
- // Risk Score
3179
- var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
3180
- var RiskScoreType = zod.z["enum"](RiskScoreTypes);
3181
- // Customer Type
3182
- var CustomerTypes = ["Individual", "Company"];
3183
- var CustomerType = zod.z["enum"](CustomerTypes);
3184
- // KYC Onboarding Level
3185
- var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
3186
- var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
3187
- // KYB Onboarding Level
3188
- var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
3189
- var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
3190
- var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
3191
- var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
3192
- // Customer Status
3193
- var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
3194
-
3195
- /**
3196
- * We changed the status names to be more user-friendly, that's why we need to preprocess the data
3197
- * “Closed” -> “Terminated”
3198
- * “Blocked” -> “Rejected”
3199
- * “Under Investigation” -> “To be reviewed”
3200
- */
3201
- var CustomerStatus = zod.z.preprocess(function (status) {
3202
- switch (status) {
3203
- case "Closed":
3204
- return "Terminated";
3205
- case "Blocked":
3206
- return "Rejected";
3207
- case "Under Investigation":
3208
- return "To be reviewed";
3209
- default:
3210
- return status;
3211
- }
3212
- }, zod.z["enum"](CustomerStatuses));
3213
- var BasicCustomerContactInformation = zod.z.object({
3214
- email: zod.z.string().email(),
3215
- phone: zod.z.string().min(4),
3216
- twitter: zod.z.string(),
3217
- discord: zod.z.string(),
3218
- telegram: zod.z.string()
3219
- }).partial();
3220
- var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
3221
- var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
3222
- var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
3223
- var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
3224
- var CUSTOMER_AUTOMATION_REASONS = {
3225
- "rule-engine": {
3226
- fail: "Rules engine verification failed",
3227
- pass: "Rules engine verification passed"
3228
- },
3229
- kyc: {
3230
- green: {
3231
- "final": "Passed KYC"
3232
- },
3233
- yellow: {
3234
- retry: "User rejected by the KYC provider with possibility to retry",
3235
- fail: "User rejected by the KYC provider"
3236
- },
3237
- red: {
3238
- retry: "User rejected by the KYC provider with possibility to retry",
3239
- fail: "User rejected by the KYC provider"
3240
- }
3241
- },
3242
- kyb: {
3243
- green: {
3244
- "final": "Passed KYB"
3245
- },
3246
- yellow: {
3247
- retry: "User rejected by the KYB provider with possibility to retry",
3248
- fail: "User rejected by the KYB provider"
3249
- },
3250
- red: {
3251
- retry: "User rejected by the KYB provider with possibility to retry",
3252
- fail: "User rejected by the KYB provider"
3253
- },
3254
- beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
3255
- },
3256
- "aml-screening": {
3257
- fail: "AML screening hits received during onboarding",
3258
- ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
3259
- pass: "Passed AML screening"
3260
- },
3261
- offchain_zkp: {
3262
- fail: "Offchain ZKP verification failed",
3263
- pass: "Offchain ZKP verification passed"
3264
- }
3265
- };
3266
-
3267
- /**
3268
- * Wallet challenge parameters
3269
- */
3270
-
3271
- var GenerateWalletChallengeRequest = zod.z.object({
3272
- address: BlockchainAddress,
3273
- namespace: SupportedBlockchainNamespaceForSignatureAuth,
3274
- blockchainId: BlockchainId.optional(),
3275
- origin: zod.z.string().url(),
3276
- workflowId: WorkflowId,
3277
- externalCustomerId: ExternalCustomerId.optional(),
3278
- additionalInformation: AdditionalCustomerInformationParams.optional()
3279
- });
3280
- var AuthSession = zod.z.object({
3281
- // JWT token containing user authentication data
3282
- // Generated by the Identity-api using the IdentityWidgetAccessToken_NEW schema
3283
- // Used for user identification in the identity-v2-app
3284
- // We don't want users to rely on the structure of the token so we expose it as a string
3285
- token: zod.z.string(),
3286
- // the timestamp at which the session will expire
3287
- // in seconds since epoch to avoid timezone issues and date parsing errors
3288
- // this is exposed in case the app needs to store the session so it knows when
3289
- // the session becomes invalid again
3290
- // We don't want users to rely on the fact that the token is a JWT, as we
3291
- // want to change to openId in the future, so we expose the expiration as a number
3292
- expiresAt: zod.z.number(),
3293
- // if an external customer id was provided, it will be returned
3294
- // when obtaining the auth session to facilitate integration with the user's system
3295
- externalCustomerId: ExternalCustomerId.optional()
3296
- });
3297
- var AuthSessionData = zod.z.object({
3298
- /**
3299
- * The unique identifier of the user
3300
- */
3301
- identityId: zod.z.string(),
3302
- /**
3303
- * The unique identifier of the user's session
3304
- */
3305
- customerId: zod.z.string(),
3306
- /**
3307
- * The identifier passed by the user platform
3308
- */
3309
- externalCustomerId: ExternalCustomerId.optional()
3310
- });
3311
- var ChallengeResponse = zod.z.object({
3312
- challenge: zod.z.string()
3313
- });
3314
- ////////////////
3315
- // SDK messages
3316
- ////////////////
3317
-
3318
- var AppConfigRequest = zod.z.object({
3319
- type: zod.z.literal("appConfig"),
3320
- data: zod.z.object({
3321
- authSession: AuthSession
3322
- })
3323
- });
3324
- var WalletUpdated = zod.z.object({
3325
- type: zod.z.literal("walletUpdated"),
3326
- data: zod.z.object({
3327
- address: BlockchainAddress
3328
- })
3329
- });
3330
- var WalletSignResponse = zod.z.object({
3331
- type: zod.z.literal("walletSignResponse"),
3332
- data: zod.z.object({
3333
- message: zod.z.string(),
3334
- signature: BlockchainSignature
3335
- })
3336
- });
3337
- var TxAuthDataSignatureGatingRequest = zod.z.object({
3338
- type: zod.z.literal("txAuthDataSignatureGatingRequest"),
3339
- data: zod.z.object({
3340
- input: AnyTxAuthInputJsSdk
3341
- })
3342
- });
3343
- var GetCustomerStatusRequest = zod.z.object({
3344
- type: zod.z.literal("getCustomerStatusRequest")
3345
- });
3346
- var IdentitySdkMessage = zod.z.union([AppConfigRequest, WalletUpdated, WalletSignResponse, TransactionResponse, TxAuthDataSignatureGatingRequest, GetCustomerStatusRequest]);
3347
- var IdentitySdkMessageWithIdentifier = zod.z.intersection(IdentitySdkMessage, zod.z.object({
3348
- identifier: zod.z.string()
3349
- }));
3350
- ////////////////
3351
- // App messages
3352
- ////////////////
3353
-
3354
- var IdentityAppLoadedNotification = zod.z.object({
3355
- type: zod.z.literal("identityAppLoaded")
3356
- });
3357
- var IdentityAppConfiguredNotification = zod.z.object({
3358
- type: zod.z.literal("identityAppConfigured"),
3359
- data: zod.z.object({
3360
- auth: AuthSession
3361
- })
3362
- });
3363
- var AuthenticationExpiredNotification = zod.z.object({
3364
- type: zod.z.literal("authenticationExpired"),
3365
- data: zod.z.object({
3366
- authSession: AuthSession
3367
- })
3368
- });
3369
- var WalletSignRequest = zod.z.object({
3370
- type: zod.z.literal("walletSignRequest"),
3371
- data: zod.z.object({
3372
- message: zod.z.string()
3373
- })
3374
- });
3375
- var TxAuthDataSignatureResponse = zod.z.object({
3376
- type: zod.z.literal("txAuthDataSignatureResponse"),
3377
- data: AnyTxAuthDataSignatureResponse
3378
- });
3379
- var TxAuthDataSignatureGatingError = zod.z.object({
3380
- type: zod.z.literal("txAuthDataSignatureGatingError"),
3381
- data: zod.z.object({
3382
- error: zod.z.string()
3383
- })
3384
- });
3385
- var GetCustomerStatusResponse = zod.z.object({
3386
- type: zod.z.literal("getCustomerStatusResponse"),
3387
- data: zod.z.union([CustomerStatus, zod.z["null"]()])
3388
- });
3389
- var IdentityAppMessage = zod.z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, AuthenticationExpiredNotification, WalletSignRequest, TxAuthDataSignatureResponse, TxAuthDataSignatureGatingError, GetCustomerStatusResponse,
3390
- // `identifier` is a technical detail that should not be exposed to the app
3391
- KycCompletionNotification.omit({
3392
- identifier: true
3393
- }), ScenarioExecutionNotification.omit({
3394
- identifier: true
3395
- }), CloseScreenNotification.omit({
3396
- identifier: true
3397
- }), IsVerifiedNotification.omit({
3398
- identifier: true
3399
- }), SendTransactionRequest.omit({
3400
- identifier: true
3401
- })]);
3402
- var IdentityWallet = zod.z.object({
3403
- address: BlockchainAddress,
3404
- namespace: SupportedBlockchainNamespaceForSignatureAuth
3405
- });
3406
-
3407
- var ZKPRequest = zod.z.object({
3408
- id: zod.z.number(),
3409
- circuitId: zod.z["enum"](["credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain"]),
3410
- optional: zod.z["boolean"]().optional(),
3411
- query: QueryConfigSimplified
3412
- });
3413
- var ZKPRequestFromZKVerifier = zod.z.object({
3414
- id: zod.z.number(),
3415
- circuitId: zod.z.string(),
3416
- optional: zod.z["boolean"]().optional(),
3417
- query: zod.z.record(zod.z.unknown())
3418
- });
3419
- var OffChainZKP = zod.z.object({
3420
- requestingAuthorizationMessage: zod.z.string().nullish(),
3421
- zkpRequest: zod.z.array(ZKPRequest).nullish()
3422
- });
3423
- var CreateAuthRequestProps = zod.z.object({
3424
- hostUrl: zod.z.string().url(),
3425
- sessionId: UuidString,
3426
- audience: zod.z.string().describe("DID of the verifier"),
3427
- callbackURL: zod.z.string().describe("URL to which the auth response of the client callback will be sent"),
3428
- query: zod.z.array(QueryConfigSimplified),
3429
- onChainVerification: zod.z["boolean"]().optional(),
3430
- id: zod.z.string().uuid(),
3431
- thid: zod.z.string().uuid(),
3432
- message: zod.z.string().describe("Message shown to the user")
3433
- });
3434
- var AllScenarioExecutionAuthorizationData = zod.z.object({
3435
- executionId: UuidString,
3436
- projectId: zod.z.string(),
3437
- scenarioExecutionIds: zod.z.array(UuidString)
3438
- });
3439
- var SCENARIO_AUTHORIZATION_STATUSES = ["pending", "authorised", "unauthorised"];
3440
- var ScenarioAuthorizationStatus = zod.z["enum"](SCENARIO_AUTHORIZATION_STATUSES);
3441
-
3442
- var HostMessage = zod.z.union([HostRequestMessage, HostResponseMessage]);
3443
- var IdentityMessage = zod.z.union([IdentityNotificationMessage, IdentityRequestMessage, IdentityResponseMessage]);
3444
- var RequiredDataRowSchema = zod.z.object({
3445
- type: CredentialType,
3446
- requiredAttributes: zod.z.array(zod.z.object({
3447
- attribute: zod.z.string(),
3448
- value: zod.z.string(),
3449
- operator: zod.z.string()
3450
- }))
3451
- });
3452
- var RequiredVerificationData = zod.z.object({
3453
- ruleEngine: zod.z.object({
3454
- requiredData: zod.z.array(RequiredDataRowSchema)
3455
- }),
3456
- offchainZKP: zod.z.object({
3457
- requiredData: zod.z.array(RequiredDataRowSchema),
3458
- verifications: zod.z.array(zod.z.object({
3459
- scenarioVerifierAddress: zod.z.string(),
3460
- conditions: zod.z.array(ZKPRequest)
3461
- }))
3462
- })
3463
- });
3464
-
3465
- var WalletSignatureResponse = zod.z.object({
3466
- // the message we requested the user to sign
3467
- message: zod.z.string(),
3468
- // the signature of the message
3469
- signature: BlockchainSignature,
3470
- // some wallets like Cardano Nami generate a new address for each transaction or signature
3471
- // this means we have to request the signer's public key to verify the signature
3472
- signerPublicKey: PublicKey,
3473
- // the type of the signer's public key
3474
- // this is optional because some wallets don't provide this information
3475
- // but for other wallets like cosmos kepler, this is required to verify the signature
3476
- signerPublicKeyType: zod.z.string().optional(),
3477
- // some wallets like Aptos Petra wrap the message in some text metadata before signing
3478
- // this means the user doesn't sign the message directly, but a message that contains the original message
3479
- signedMessage: zod.z.string()
3480
- });
3481
- var VerifyWalletChallengeRequest = WalletSignatureResponse.and(zod.z.object({
3482
- address: BlockchainAddress,
3483
- namespace: SupportedBlockchainNamespaceForSignatureAuth,
3484
- blockchainId: BlockchainId.optional()
3485
- }));
3486
-
3487
- exports.ACTIVE_APTOS_CHAIN_IDS = ACTIVE_APTOS_CHAIN_IDS;
3488
- exports.ACTIVE_BITCOIN_CHAIN_IDS = ACTIVE_BITCOIN_CHAIN_IDS;
3489
- exports.ACTIVE_CARDANO_CHAIN_IDS = ACTIVE_CARDANO_CHAIN_IDS;
3490
- exports.ACTIVE_COSMOS_CHAIN_IDS = ACTIVE_COSMOS_CHAIN_IDS;
3491
- exports.ACTIVE_EVM_CHAIN_VALUES = ACTIVE_EVM_CHAIN_VALUES;
3492
- exports.ACTIVE_POLKADOT_CHAIN_IDS = ACTIVE_POLKADOT_CHAIN_IDS;
3493
- exports.ACTIVE_SOLANA_CHAIN_IDS = ACTIVE_SOLANA_CHAIN_IDS;
3494
- exports.ACTIVE_TEZOS_CHAIN_IDS = ACTIVE_TEZOS_CHAIN_IDS;
3495
- exports.ALPHA_2_COUNTRIES = ALPHA_2_COUNTRIES;
3496
- exports.APTOS_CHAIN_IDS = APTOS_CHAIN_IDS;
3497
- exports.APTOS_CHAIN_NAMES = APTOS_CHAIN_NAMES;
3498
- exports.APTOS_CHAIN_NAMES_LIST = APTOS_CHAIN_NAMES_LIST;
3499
- exports.ARRAY_OPERATORS = ARRAY_OPERATORS;
3500
- exports.AUTHORIZATION_REQUEST_MESSAGE_TYPES = AUTHORIZATION_REQUEST_MESSAGE_TYPES;
3501
- exports.AVAILABLE_FLOWS = AVAILABLE_FLOWS;
3502
- exports.AbbreviatedWorkflowScenario = AbbreviatedWorkflowScenario;
3503
- exports.ActionId = ActionId;
3504
- exports.ActionPrefix = ActionPrefix;
3505
- exports.AdditionalCustomerInformationParams = AdditionalCustomerInformationParams;
3506
- exports.AddressSchema = AddressSchema;
3507
- exports.AllCredentialAttributes = AllCredentialAttributes;
3508
- exports.AllCredentialValues = AllCredentialValues;
3509
- exports.AllScenarioExecutionAuthorizationData = AllScenarioExecutionAuthorizationData;
3510
- exports.Alpha2Country = Alpha2Country;
3511
- exports.AnyTxAuthDataSignatureResponse = AnyTxAuthDataSignatureResponse;
3512
- exports.AnyTxAuthInputJsSdk = AnyTxAuthInputJsSdk;
3513
- exports.ApiTezosTxAuthInput = ApiTezosTxAuthInput;
3514
- exports.ApiTxAuthInput = ApiTxAuthInput;
3515
- exports.AppId = AppId;
3516
- exports.AppPrefix = AppPrefix;
3517
- exports.AptosAddress = AptosAddress;
3518
- exports.AptosChainId = AptosChainId;
3519
- exports.AptosSignature = AptosSignature;
3520
- exports.ArrayOperator = ArrayOperator;
3521
- exports.AuthQrCodeData = AuthQrCodeData;
3522
- exports.AuthSession = AuthSession;
3523
- exports.AuthSessionData = AuthSessionData;
3524
- exports.AuthorizationRequestMessage = AuthorizationRequestMessage;
3525
- exports.AuthorizationRequestMessageType = AuthorizationRequestMessageType;
3526
- exports.AuthorizationRequestMessageTypes = AuthorizationRequestMessageTypes;
3527
- exports.AuthorizationResponseMessage = AuthorizationResponseMessage;
3528
- exports.AvailableFlow = AvailableFlow;
3529
- exports.BITCOIN_CHAIN_IDS = BITCOIN_CHAIN_IDS;
3530
- exports.BITCOIN_CHAIN_NAMES = BITCOIN_CHAIN_NAMES;
3531
- exports.BITCOIN_CHAIN_NAMES_LIST = BITCOIN_CHAIN_NAMES_LIST;
3532
- exports.BLOCKCHAIN_NAMESPACES = BLOCKCHAIN_NAMESPACES;
3533
- exports.BLOCKCHAIN_NAMESPACES_NAMES = BLOCKCHAIN_NAMESPACES_NAMES;
3534
- exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
3535
- exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
3536
- exports.BOOLEAN_OPERATORS = BOOLEAN_OPERATORS;
3537
- exports.BaseQueryResponse = BaseQueryResponse;
3538
- exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
3539
- exports.BitcoinAddress = BitcoinAddress;
3540
- exports.BitcoinBech32Address = BitcoinBech32Address;
3541
- exports.BitcoinChainId = BitcoinChainId;
3542
- exports.BitcoinP2PKHAddress = BitcoinP2PKHAddress;
3543
- exports.BitcoinP2SHAddress = BitcoinP2SHAddress;
3544
- exports.BitcoinTestnetBech32Address = BitcoinTestnetBech32Address;
3545
- exports.BitcoinTestnetP2PKHAddress = BitcoinTestnetP2PKHAddress;
3546
- exports.BitcoinTestnetP2SHAddress = BitcoinTestnetP2SHAddress;
3547
- exports.BlockchainAddress = BlockchainAddress;
3548
- exports.BlockchainId = BlockchainId;
3549
- exports.BlockchainNamespace = BlockchainNamespace;
3550
- exports.BlockchainSignature = BlockchainSignature;
3551
- exports.BooleanOperator = BooleanOperator;
3552
- exports.CARDANO_CHAIN_IDS = CARDANO_CHAIN_IDS;
3553
- exports.CARDANO_CHAIN_NAMES = CARDANO_CHAIN_NAMES;
3554
- exports.CARDANO_CHAIN_NAMES_LIST = CARDANO_CHAIN_NAMES_LIST;
3555
- exports.CHALLENGE_QUERY_OPERATORS = CHALLENGE_QUERY_OPERATORS;
3556
- exports.CIRCUIT_IDS = CIRCUIT_IDS;
3557
- exports.COSMOS_CHAIN_IDS = COSMOS_CHAIN_IDS;
3558
- exports.COSMOS_CHAIN_NAMES = COSMOS_CHAIN_NAMES;
3559
- exports.COSMOS_CHAIN_NAMES_LIST = COSMOS_CHAIN_NAMES_LIST;
3560
- exports.CUSTOMERS_CHARTS = CUSTOMERS_CHARTS;
3561
- exports.CUSTOMER_AUTOMATION_REASONS = CUSTOMER_AUTOMATION_REASONS;
3562
- exports.CUSTOMER_TABLE_COLUMNS = CUSTOMER_TABLE_COLUMNS;
3563
- exports.CardanoAddress = CardanoAddress;
3564
- exports.CardanoChainId = CardanoChainId;
3565
- exports.CardanoSignature = CardanoSignature;
3566
- exports.ChallengeId = ChallengeId;
3567
- exports.ChallengePrefix = ChallengePrefix;
3568
- exports.ChallengeQueryOperator = ChallengeQueryOperator;
3569
- exports.ChallengeQueryOperatorToOperator = ChallengeQueryOperatorToOperator;
3570
- exports.ChallengeQuerySchema = ChallengeQuerySchema;
3571
- exports.ChallengeResponse = ChallengeResponse;
3572
- exports.CircuitId = CircuitId;
3573
- exports.CloseScreenNotification = CloseScreenNotification;
3574
- exports.ComplianceImplementationStepsInput = ComplianceImplementationStepsInput;
3575
- exports.CosmosAddress = CosmosAddress;
3576
- exports.CosmosChainId = CosmosChainId;
3577
- exports.CosmosSignature = CosmosSignature;
3578
- exports.CreateAuthRequestProps = CreateAuthRequestProps;
3579
- exports.CreateQueryConfigurationInput = CreateQueryConfigurationInput;
3580
- exports.CreateQueryConfigurationResponse = CreateQueryConfigurationResponse;
3581
- exports.CreateTemplateScenario = CreateTemplateScenario;
3582
- exports.CredentialMediaType = CredentialMediaType;
3583
- exports.CredentialNames = CredentialNames;
3584
- exports.CredentialQrCodeData = CredentialQrCodeData;
3585
- exports.CredentialSchemas = CredentialSchemas;
3586
- exports.CredentialType = CredentialType;
3587
- exports.CredentialTypes = CredentialTypes;
3588
- exports.CustomerId = CustomerId;
3589
- exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
3590
- exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
3591
- exports.CustomerScreeningId = CustomerScreeningId;
3592
- exports.CustomerScreeningPrefix = CustomerScreeningPrefix;
3593
- exports.CustomerStatus = CustomerStatus;
3594
- exports.CustomerStatuses = CustomerStatuses;
3595
- exports.CustomerTableColumn = CustomerTableColumn;
3596
- exports.CustomerType = CustomerType;
3597
- exports.CustomerTypes = CustomerTypes;
3598
- exports.CustomersChartType = CustomersChartType;
3599
- exports.DATE_OPERATORS = DATE_OPERATORS;
3600
- exports.DISPLAYED_BLOCKCHAIN_NAMESPACES = DISPLAYED_BLOCKCHAIN_NAMESPACES;
3601
- exports.DataAvailableOnStart = DataAvailableOnStart;
3602
- exports.DateOperator = DateOperator;
3603
- exports.DeleteQueryConfigurationInput = DeleteQueryConfigurationInput;
3604
- exports.DeleteQueryConfigurationResponse = DeleteQueryConfigurationResponse;
3605
- exports.DisplayedBlockchainNamespace = DisplayedBlockchainNamespace;
3606
- exports.EIP155Signature = EIP155Signature;
3607
- exports.ENVS = ENVS;
3608
- exports.EVM_BLOCK_TIME = EVM_BLOCK_TIME;
3609
- exports.EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC = EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC;
3610
- exports.EdSignature = EdSignature;
3611
- exports.Eip155TxAuthInputJsSdk = Eip155TxAuthInputJsSdk;
3612
- exports.EmailId = EmailId;
3613
- exports.EmailPrefix = EmailPrefix;
3614
- exports.EnvironmentSchema = EnvironmentSchema;
3615
- exports.EvmChainId = EvmChainId;
3616
- exports.ExecuteQueryResponse = ExecuteQueryResponse;
3617
- exports.ExtendedTezosTxAuthDataSignatureResponse = ExtendedTezosTxAuthDataSignatureResponse;
3618
- exports.ExtendedTezosTxAuthInput = ExtendedTezosTxAuthInput;
3619
- exports.ExtendedTxAuthDataSignatureResponse = ExtendedTxAuthDataSignatureResponse;
3620
- exports.ExtendedTxAuthInput = ExtendedTxAuthInput;
3621
- exports.ExternalCustomerId = ExternalCustomerId;
3622
- exports.FLOW_TYPES = FLOW_TYPES;
3623
- exports.FlowType = FlowType;
3624
- exports.FunctionCallData = FunctionCallData;
3625
- exports.GenerateWalletChallengeRequest = GenerateWalletChallengeRequest;
3626
- exports.GenericVerifiableCredentialSchema = GenericVerifiableCredentialSchema;
3627
- exports.GetCredentialsRequest = GetCredentialsRequest;
3628
- exports.GetCredentialsResponse = GetCredentialsResponse;
3629
- exports.GetCustomerStatusRequest = GetCustomerStatusRequest;
3630
- exports.GetCustomerStatusResponse = GetCustomerStatusResponse;
3631
- exports.GetTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse;
3632
- exports.GetTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse;
3633
- exports.GetTxAuthSigRequest = GetTxAuthSigRequest;
3634
- exports.GetTxAuthSigRequestTezos = GetTxAuthSigRequestTezos;
3635
- exports.GetTxAuthSigResponse = GetTxAuthSigResponse;
3636
- exports.GetTxAuthSigResponseTezos = GetTxAuthSigResponseTezos;
3637
- exports.HexadecimalSchema = HexadecimalSchema;
3638
- exports.HostMessage = HostMessage;
3639
- exports.HostRequestMessage = HostRequestMessage;
3640
- exports.HostResponseMessage = HostResponseMessage;
3641
- exports.ID3CredentialSubjectSchema = ID3CredentialSubjectSchema;
3642
- exports.IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS;
3643
- exports.IDENTITY_DOCUMENT_OPTIONS = IDENTITY_DOCUMENT_OPTIONS;
3644
- exports.IDImageCredentialSubjectSchema = IDImageCredentialSubjectSchema;
3645
- exports.IDInformation = IDInformation;
3646
- exports.IDInformationCredentialSubjectSchema = IDInformationCredentialSubjectSchema;
3647
- exports.IDScanCredentialSubjectSchema = IDScanCredentialSubjectSchema;
3648
- exports.IDScanPassportCredentialSubjectSchema = IDScanPassportCredentialSubjectSchema;
3649
- exports.IDScanSelfieCredentialSubjectSchema = IDScanSelfieCredentialSubjectSchema;
3650
- exports.ISO3CountryCode = ISO3CountryCode;
3651
- exports.Identifier = Identifier;
3652
- exports.IdentityAppMessage = IdentityAppMessage;
3653
- exports.IdentityAppV2Web2JWT = IdentityAppV2Web2JWT;
3654
- exports.IdentityAppV2Web3JWT = IdentityAppV2Web3JWT;
3655
- exports.IdentityDocumentCountryListOption = IdentityDocumentCountryListOption;
3656
- exports.IdentityDocumentOptionsType = IdentityDocumentOptionsType;
3657
- exports.IdentityId = IdentityId;
3658
- exports.IdentityMessage = IdentityMessage;
3659
- exports.IdentityNotificationMessage = IdentityNotificationMessage;
3660
- exports.IdentityPrefix = IdentityPrefix;
3661
- exports.IdentityRequestMessage = IdentityRequestMessage;
3662
- exports.IdentityResponseMessage = IdentityResponseMessage;
3663
- exports.IdentitySdkMessage = IdentitySdkMessage;
3664
- exports.IdentitySdkMessageWithIdentifier = IdentitySdkMessageWithIdentifier;
3665
- exports.IdentityWallet = IdentityWallet;
3666
- exports.IdentityWidgetAccessToken = IdentityWidgetAccessToken;
3667
- exports.IdentityWidgetAccessToken_NEW = IdentityWidgetAccessToken_NEW;
3668
- exports.IdentityWidgetSessionToken = IdentityWidgetSessionToken;
3669
- exports.InitialDataRequest = InitialDataRequest;
3670
- exports.InitialDataResponse = InitialDataResponse;
3671
- exports.InstitutionExtractedInfosId = InstitutionExtractedInfosId;
3672
- exports.InstitutionExtractedInfosPrefix = InstitutionExtractedInfosPrefix;
3673
- exports.InstitutionId = InstitutionId;
3674
- exports.InstitutionPrefix = InstitutionPrefix;
3675
- exports.IpAddress = IpAddress;
3676
- exports.IsVerifiedNotification = IsVerifiedNotification;
3677
- exports.IsVerifiedRequest = IsVerifiedRequest;
3678
- exports.IsVerifiedResponse = IsVerifiedResponse;
3679
- exports.KybOnboardingLevel = KybOnboardingLevel;
3680
- exports.KybOnboardingLevels = KybOnboardingLevels;
3681
- exports.KycCompletionData = KycCompletionData;
3682
- exports.KycCompletionNotification = KycCompletionNotification;
3683
- exports.KycOnboardingLevel = KycOnboardingLevel;
3684
- exports.KycOnboardingLevels = KycOnboardingLevels;
3685
- exports.ListId = ListId;
3686
- exports.ListPrefix = ListPrefix;
3687
- exports.MediaType = MediaType;
3688
- exports.MediaTypePID = MediaTypePID;
3689
- exports.MemberId = MemberId;
3690
- exports.NEXERA_ACTIVE_STARKNET_CHAIN_IDS = NEXERA_ACTIVE_STARKNET_CHAIN_IDS;
3691
- exports.NEXERA_APTOS_CHAINS = NEXERA_APTOS_CHAINS;
3692
- exports.NEXERA_BITCOIN_CHAINS = NEXERA_BITCOIN_CHAINS;
3693
- exports.NEXERA_CARDANO_CHAINS = NEXERA_CARDANO_CHAINS;
3694
- exports.NEXERA_COSMOS_CHAINS = NEXERA_COSMOS_CHAINS;
3695
- exports.NEXERA_EVM_CHAINS = NEXERA_EVM_CHAINS;
3696
- exports.NEXERA_EVM_CHAINS_ID = NEXERA_EVM_CHAINS_ID;
3697
- exports.NEXERA_EVM_CHAIN_NAMES = NEXERA_EVM_CHAIN_NAMES;
3698
- exports.NEXERA_EVM_CHAIN_NAMES_LIST = NEXERA_EVM_CHAIN_NAMES_LIST;
3699
- exports.NEXERA_POLKADOT_CHAINS = NEXERA_POLKADOT_CHAINS;
3700
- exports.NEXERA_SOLANA_CHAINS = NEXERA_SOLANA_CHAINS;
3701
- exports.NEXERA_STARKNET_CHAINS = NEXERA_STARKNET_CHAINS;
3702
- exports.NEXERA_STARKNET_CHAIN_IDS = NEXERA_STARKNET_CHAIN_IDS;
3703
- exports.NEXERA_STARKNET_CHAIN_NAMES = NEXERA_STARKNET_CHAIN_NAMES;
3704
- exports.NEXERA_TEZOS_CHAINS = NEXERA_TEZOS_CHAINS;
3705
- exports.NEXERA_TEZOS_CHAIN_IDS = NEXERA_TEZOS_CHAIN_IDS;
3706
- exports.NEXERA_TEZOS_CHAIN_NAMES = NEXERA_TEZOS_CHAIN_NAMES;
3707
- exports.NEXERA_TEZOS_CHAIN_NAMES_LIST = NEXERA_TEZOS_CHAIN_NAMES_LIST;
3708
- exports.NUMERIC_OPERATORS = NUMERIC_OPERATORS;
3709
- exports.NexeraCredentialType = NexeraCredentialType;
3710
- exports.NexeraEvmChains = NexeraEvmChains;
3711
- exports.NonParsedQueryConfiguration = NonParsedQueryConfiguration;
3712
- exports.NonTestnetBlockchainId = NonTestnetBlockchainId;
3713
- exports.NumericOperator = NumericOperator;
3714
- exports.OLD_AMLScreeningsResultsCredentialSubjectSchema = OLD_AMLScreeningsResultsCredentialSubjectSchema;
3715
- exports.OLD_IDImageCredentialSubjectSchema = OLD_IDImageCredentialSubjectSchema;
3716
- exports.OLD_IDInformationCredentialSubjectSchema = OLD_IDInformationCredentialSubjectSchema;
3717
- exports.OLD_ProofOfResidenceCredentialSubjectSchema = OLD_ProofOfResidenceCredentialSubjectSchema;
3718
- exports.OLD_SelfieImageCredentialSubjectSchema = OLD_SelfieImageCredentialSubjectSchema;
3719
- exports.OPERATORS = OPERATORS;
3720
- exports.OcvSdkInitialized = OcvSdkInitialized;
3721
- exports.OffChainScenarioExecutionData = OffChainScenarioExecutionData;
3722
- exports.OffChainZKP = OffChainZKP;
3723
- exports.OffChainZKPRuleResult = OffChainZKPRuleResult;
3724
- exports.OnChainScenarioExecutionData = OnChainScenarioExecutionData;
3725
- exports.Operator = Operator;
3726
- exports.OperatorMappings = OperatorMappings;
3727
- exports.OperatorToChallengeQueryOperator = OperatorToChallengeQueryOperator;
3728
- exports.OrganizationId = OrganizationId;
3729
- exports.OtpCode = OtpCode;
3730
- exports.P2Signature = P2Signature;
3731
- exports.PERSONAL_INFORMATION_FIELDS = PERSONAL_INFORMATION_FIELDS;
3732
- exports.POLKADOT_CHAIN_IDS = POLKADOT_CHAIN_IDS;
3733
- exports.POLKADOT_CHAIN_NAMES = POLKADOT_CHAIN_NAMES;
3734
- exports.POLKADOT_CHAIN_NAMES_LIST = POLKADOT_CHAIN_NAMES_LIST;
3735
- exports.POLYGON_NETWORK_NAMES = POLYGON_NETWORK_NAMES;
3736
- exports.PUBLIC_SERVICES_SCHEMA_MAP = PUBLIC_SERVICES_SCHEMA_MAP;
3737
- exports.PartialQueryConfigSimplified = PartialQueryConfigSimplified;
3738
- exports.PersonalInformationFieldsIdentityDocuments = PersonalInformationFieldsIdentityDocuments;
3739
- exports.PolkadotAddress = PolkadotAddress;
3740
- exports.PolkadotChainId = PolkadotChainId;
3741
- exports.PolkadotSignature = PolkadotSignature;
3742
- exports.PolygonIdInitialized = PolygonIdInitialized;
3743
- exports.PolygonIdRequest = PolygonIdRequest;
3744
- exports.PolygonIdRequestData = PolygonIdRequestData;
3745
- exports.PolygonIdResponse = PolygonIdResponse;
3746
- exports.PolygonIdResponseData = PolygonIdResponseData;
3747
- exports.PolygonNetworkNames = PolygonNetworkNames;
3748
- exports.PrivateKey = PrivateKey;
3749
- exports.ProofData = ProofData;
3750
- exports.ProofOfResidenceCredentialSubjectSchema = ProofOfResidenceCredentialSubjectSchema;
3751
- exports.PublicKey = PublicKey;
3752
- exports.QrCodeLinkWithSchemaType = QrCodeLinkWithSchemaType;
3753
- exports.QueryConfig = QueryConfig;
3754
- exports.QueryConfigSimplified = QueryConfigSimplified;
3755
- exports.QueryConfigSimplifiedParsed = QueryConfigSimplifiedParsed;
3756
- exports.QueryConfiguration = QueryConfiguration;
3757
- exports.QueryCredentialType = QueryCredentialType;
3758
- exports.QueryCredentialTypes = QueryCredentialTypes;
3759
- exports.QueryId = QueryId;
3760
- exports.QueryPrefix = QueryPrefix;
3761
- exports.QueryType = QueryType;
3762
- exports.RequiredDataRowSchema = RequiredDataRowSchema;
3763
- exports.RequiredVerificationData = RequiredVerificationData;
3764
- exports.RiskScoreType = RiskScoreType;
3765
- exports.RiskScoreTypes = RiskScoreTypes;
3766
- exports.RuleEngineResponse = RuleEngineResponse;
3767
- exports.RuleEngineScenarioExecutionData = RuleEngineScenarioExecutionData;
3768
- exports.RuleResultStatus = RuleResultStatus;
3769
- exports.RuleResultStatusLabels = RuleResultStatusLabels;
3770
- exports.RuleResultStatuses = RuleResultStatuses;
3771
- exports.SCENARIO_AUTHORIZATION_STATUSES = SCENARIO_AUTHORIZATION_STATUSES;
3772
- exports.SOLANA_CHAIN_IDS = SOLANA_CHAIN_IDS;
3773
- exports.SOLANA_CHAIN_NAMES = SOLANA_CHAIN_NAMES;
3774
- exports.SOLANA_CHAIN_NAMES_LIST = SOLANA_CHAIN_NAMES_LIST;
3775
- exports.STRING_OPERATORS = STRING_OPERATORS;
3776
- exports.SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH = SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH;
3777
- exports.SUPPORTED_TYPES = SUPPORTED_TYPES;
3778
- exports.Scenario = Scenario;
3779
- exports.ScenarioAuthorizationData = ScenarioAuthorizationData;
3780
- exports.ScenarioAuthorizationStatus = ScenarioAuthorizationStatus;
3781
- exports.ScenarioExecutionData = ScenarioExecutionData;
3782
- exports.ScenarioExecutionNotification = ScenarioExecutionNotification;
3783
- exports.ScenarioExecutionResponse = ScenarioExecutionResponse;
3784
- exports.ScenarioId = ScenarioId;
3785
- exports.ScenarioPrefix = ScenarioPrefix;
3786
- exports.ScenarioType = ScenarioType;
3787
- exports.ScenarioTypes = ScenarioTypes;
3788
- exports.SdkVerificationOutput = SdkVerificationOutput;
3789
- exports.SdkVerificationResponseSchema = SdkVerificationResponseSchema;
3790
- exports.SelfieImageCredentialSubjectSchema = SelfieImageCredentialSubjectSchema;
3791
- exports.SendTransactionRequest = SendTransactionRequest;
3792
- exports.SignatureRequest = SignatureRequest;
3793
- exports.SignatureResponse = SignatureResponse;
3794
- exports.SimplifiedCredential = SimplifiedCredential;
3795
- exports.SolanaChainId = SolanaChainId;
3796
- exports.SpSignature = SpSignature;
3797
- exports.StarknetAddress = StarknetAddress;
3798
- exports.StarknetChainId = StarknetChainId;
3799
- exports.StarknetSignature = StarknetSignature;
3800
- exports.StartCompletedNotification = StartCompletedNotification;
3801
- exports.StartFlowRequest = StartFlowRequest;
3802
- exports.StorageId = StorageId;
3803
- exports.StoragePrefix = StoragePrefix;
3804
- exports.String0x = String0x;
3805
- exports.StringOperator = StringOperator;
3806
- exports.SupportedBlockchainNamespaceForSignatureAuth = SupportedBlockchainNamespaceForSignatureAuth;
3807
- exports.SupportedType = SupportedType;
3808
- exports.SupportedTypes = SupportedTypes;
3809
- exports.TagId = TagId;
3810
- exports.TagPrefix = TagPrefix;
3811
- exports.TagsToTransactionReviewsId = TagsToTransactionReviewsId;
3812
- exports.TagsToTransactionReviewsPrefix = TagsToTransactionReviewsPrefix;
3813
- exports.TemplateScenario = TemplateScenario;
3814
- exports.TestId = TestId;
3815
- exports.TestPrefix = TestPrefix;
3816
- exports.TezosAddress = TezosAddress;
3817
- exports.TezosChainId = TezosChainId;
3818
- exports.TezosContractAddress = TezosContractAddress;
3819
- exports.TezosEntrypointName = TezosEntrypointName;
3820
- exports.TezosImplicitAddress = TezosImplicitAddress;
3821
- exports.TezosSignature = TezosSignature;
3822
- exports.TezosTxAuthInput = TezosTxAuthInput;
3823
- exports.TezosTxAuthInputJsSdk = TezosTxAuthInputJsSdk;
3824
- exports.TezosTxSignatureResponse = TezosTxSignatureResponse;
3825
- exports.TransactionAddressesId = TransactionAddressesId;
3826
- exports.TransactionAddressesPrefix = TransactionAddressesPrefix;
3827
- exports.TransactionAmountId = TransactionAmountId;
3828
- exports.TransactionAmountPrefix = TransactionAmountPrefix;
3829
- exports.TransactionData = TransactionData;
3830
- exports.TransactionExtractedInfosId = TransactionExtractedInfosId;
3831
- exports.TransactionExtractedInfosPrefix = TransactionExtractedInfosPrefix;
3832
- exports.TransactionFeesId = TransactionFeesId;
3833
- exports.TransactionFeesPrefix = TransactionFeesPrefix;
3834
- exports.TransactionId = TransactionId;
3835
- exports.TransactionInfosId = TransactionInfosId;
3836
- exports.TransactionInfosPrefix = TransactionInfosPrefix;
3837
- exports.TransactionMethodExtractedInfosId = TransactionMethodExtractedInfosId;
3838
- exports.TransactionMethodExtractedInfosPrefix = TransactionMethodExtractedInfosPrefix;
3839
- exports.TransactionMethodsId = TransactionMethodsId;
3840
- exports.TransactionMethodsPrefix = TransactionMethodsPrefix;
3841
- exports.TransactionPartiesId = TransactionPartiesId;
3842
- exports.TransactionPartiesPrefix = TransactionPartiesPrefix;
3843
- exports.TransactionPrefix = TransactionPrefix;
3844
- exports.TransactionResponse = TransactionResponse;
3845
- exports.TransactionReviewId = TransactionReviewId;
3846
- exports.TransactionReviewPrefix = TransactionReviewPrefix;
3847
- exports.TxAuthDataSignatureGatingError = TxAuthDataSignatureGatingError;
3848
- exports.TxAuthDataSignatureGatingRequest = TxAuthDataSignatureGatingRequest;
3849
- exports.TxAuthDataSignatureResponse = TxAuthDataSignatureResponse;
3850
- exports.TxAuthInput = TxAuthInput;
3851
- exports.TxHash = TxHash;
3852
- exports.TxSignatureResponse = TxSignatureResponse;
3853
- exports.UpdateQueryConfigurationInput = UpdateQueryConfigurationInput;
3854
- exports.UpdateQueryConfigurationResponse = UpdateQueryConfigurationResponse;
3855
- exports.UuidString = UuidString;
3856
- exports.VerifiableCredential = VerifiableCredential;
3857
- exports.VerificationMode = VerificationMode;
3858
- exports.VerificationModes = VerificationModes;
3859
- exports.VerificationOutput = VerificationOutput;
3860
- exports.VerificationSessionStatus = VerificationSessionStatus;
3861
- exports.VerificationSessionStatuses = VerificationSessionStatuses;
3862
- exports.VerifyWalletChallengeRequest = VerifyWalletChallengeRequest;
3863
- exports.WalletId = WalletId;
3864
- exports.WalletPrefix = WalletPrefix;
3865
- exports.WalletSignResponse = WalletSignResponse;
3866
- exports.WalletSignatureResponse = WalletSignatureResponse;
3867
- exports.Web2CreateSessionParams = Web2CreateSessionParams;
3868
- exports.WorkflowId = WorkflowId;
3869
- exports.WorkflowSessionAttributeId = WorkflowSessionAttributeId;
3870
- exports.WorkflowSessionAttributePrefix = WorkflowSessionAttributePrefix;
3871
- exports.WorkflowSessionId = WorkflowSessionId;
3872
- exports.WorkspaceId = WorkspaceId;
3873
- exports.ZKPOperator = ZKPOperator;
3874
- exports.ZKPRequest = ZKPRequest;
3875
- exports.ZKPRequestFromZKVerifier = ZKPRequestFromZKVerifier;
3876
- exports.ZeroKnowledgeProofRequest = ZeroKnowledgeProofRequest;
3877
- exports.ZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse;
3878
- exports._arrayWithHoles = _arrayWithHoles;
3879
- exports._defineProperty = _defineProperty;
3880
- exports._nonIterableRest = _nonIterableRest;
3881
- exports._toArray = _toArray;
3882
- exports._toConsumableArray = _toConsumableArray;
3883
- exports._unsupportedIterableToArray = _unsupportedIterableToArray;
3884
- exports.countryISO2toISO3Mapping = countryISO2toISO3Mapping;
3885
- exports.countryISO3toISO2Mapping = countryISO3toISO2Mapping;
3886
- exports.createBrandedSchemaId = createBrandedSchemaId;
3887
- exports.generateId = generateId;
3888
- exports.getCredentialName = getCredentialName;
3889
- exports.isValidAddress = isValidAddress;
3890
- exports.isoCountriesNameFromISO2 = isoCountriesNameFromISO2;
3891
- exports.operatorDisplayMap = operatorDisplayMap;
3892
- exports.parseISO3CountryCode = parseISO3CountryCode;
3893
- exports.parseIden3Message = parseIden3Message;
3894
- exports.parseSessionIdFromUrl = parseSessionIdFromUrl;
3895
- exports.shortBlockchainAddress = shortBlockchainAddress;