@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
@@ -0,0 +1,2012 @@
1
+ 'use strict';
2
+
3
+ var zod = require('zod');
4
+ var vault_schema = require('./vault.schema-d868aba3.cjs.prod.cjs');
5
+ var nanoid = require('nanoid');
6
+
7
+ function _toPrimitive(t, r) {
8
+ if ("object" != typeof t || !t) return t;
9
+ var e = t[Symbol.toPrimitive];
10
+ if (void 0 !== e) {
11
+ var i = e.call(t, r || "default");
12
+ if ("object" != typeof i) return i;
13
+ throw new TypeError("@@toPrimitive must return a primitive value.");
14
+ }
15
+ return ("string" === r ? String : Number)(t);
16
+ }
17
+
18
+ function _toPropertyKey(t) {
19
+ var i = _toPrimitive(t, "string");
20
+ return "symbol" == typeof i ? i : i + "";
21
+ }
22
+
23
+ function _defineProperty(e, r, t) {
24
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
25
+ value: t,
26
+ enumerable: !0,
27
+ configurable: !0,
28
+ writable: !0
29
+ }) : e[r] = t, e;
30
+ }
31
+
32
+ /////////////////////////////////////////
33
+ // APTOS //
34
+ /////////////////////////////////////////
35
+
36
+ var NEXERA_APTOS_CHAINS = /*#__PURE__*/function (NEXERA_APTOS_CHAINS) {
37
+ NEXERA_APTOS_CHAINS["MAINNET"] = "mainnet-aptos";
38
+ NEXERA_APTOS_CHAINS["TESTNET"] = "testnet-aptos";
39
+ return NEXERA_APTOS_CHAINS;
40
+ }({});
41
+ var APTOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_APTOS_CHAINS.MAINNET, "Aptos Mainnet"), NEXERA_APTOS_CHAINS.TESTNET, "Aptos Testnet");
42
+ var APTOS_CHAIN_NAMES_LIST = Object.values(APTOS_CHAIN_NAMES);
43
+ var APTOS_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_APTOS_CHAINS.MAINNET, "mainnet-aptos"), NEXERA_APTOS_CHAINS.TESTNET, "testnet-aptos");
44
+ var ACTIVE_APTOS_CHAIN_IDS = [NEXERA_APTOS_CHAINS.MAINNET, NEXERA_APTOS_CHAINS.TESTNET];
45
+ var AptosChainId = zod.z["enum"](ACTIVE_APTOS_CHAIN_IDS).describe("a value that identifies the chain of the address.");
46
+
47
+ /////////////////////////////////////////
48
+ // BITCOIN //
49
+ /////////////////////////////////////////
50
+
51
+ var NEXERA_BITCOIN_CHAINS = /*#__PURE__*/function (NEXERA_BITCOIN_CHAINS) {
52
+ NEXERA_BITCOIN_CHAINS["MAINNET"] = "mainnet-bitcoin";
53
+ NEXERA_BITCOIN_CHAINS["TESTNET"] = "testnet-bitcoin";
54
+ return NEXERA_BITCOIN_CHAINS;
55
+ }({});
56
+ var BITCOIN_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_BITCOIN_CHAINS.MAINNET, "Bitcoin Mainnet"), NEXERA_BITCOIN_CHAINS.TESTNET, "Bitcoin Testnet");
57
+ var BITCOIN_CHAIN_NAMES_LIST = Object.values(BITCOIN_CHAIN_NAMES);
58
+ var BITCOIN_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_BITCOIN_CHAINS.MAINNET, "mainnet-bitcoin"), NEXERA_BITCOIN_CHAINS.TESTNET, "testnet-bitcoin");
59
+ var ACTIVE_BITCOIN_CHAIN_IDS = [NEXERA_BITCOIN_CHAINS.MAINNET, NEXERA_BITCOIN_CHAINS.TESTNET];
60
+ var BitcoinChainId = zod.z["enum"](ACTIVE_BITCOIN_CHAIN_IDS).describe("a value that identifies the chain of the address.");
61
+
62
+ /////////////////////////////////////////
63
+ // CARDANO //
64
+ /////////////////////////////////////////
65
+
66
+ var NEXERA_CARDANO_CHAINS = /*#__PURE__*/function (NEXERA_CARDANO_CHAINS) {
67
+ NEXERA_CARDANO_CHAINS["MAINNET"] = "cardano-mainnet";
68
+ NEXERA_CARDANO_CHAINS["TESTNET"] = "cardano-testnet";
69
+ return NEXERA_CARDANO_CHAINS;
70
+ }({});
71
+ var CARDANO_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_CARDANO_CHAINS.MAINNET, "Cardano Mainnet"), NEXERA_CARDANO_CHAINS.TESTNET, "Cardano Testnet");
72
+ var CARDANO_CHAIN_NAMES_LIST = Object.values(CARDANO_CHAIN_NAMES);
73
+ var CARDANO_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_CARDANO_CHAINS.MAINNET, "cardano-mainnet"), NEXERA_CARDANO_CHAINS.TESTNET, "cardano-testnet");
74
+ var ACTIVE_CARDANO_CHAIN_IDS = [NEXERA_CARDANO_CHAINS.MAINNET, NEXERA_CARDANO_CHAINS.TESTNET];
75
+ var CardanoChainId = zod.z["enum"](ACTIVE_CARDANO_CHAIN_IDS).describe("a value that identifies the chain of the address.");
76
+
77
+ /////////////////////////////////////////
78
+ // COSMOS //
79
+ /////////////////////////////////////////
80
+
81
+ var NEXERA_COSMOS_CHAINS = /*#__PURE__*/function (NEXERA_COSMOS_CHAINS) {
82
+ NEXERA_COSMOS_CHAINS["COSMOS"] = "cosmoshub-4";
83
+ NEXERA_COSMOS_CHAINS["COSMOS_TESTNET"] = "theta-testnet-001";
84
+ return NEXERA_COSMOS_CHAINS;
85
+ }({});
86
+ var COSMOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "Cosmos Mainnet"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "Cosmos Testnet");
87
+ var COSMOS_CHAIN_NAMES_LIST = Object.values(COSMOS_CHAIN_NAMES);
88
+ var COSMOS_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_COSMOS_CHAINS.COSMOS, "cosmoshub-4"), NEXERA_COSMOS_CHAINS.COSMOS_TESTNET, "theta-testnet-001");
89
+ var ACTIVE_COSMOS_CHAIN_IDS = [NEXERA_COSMOS_CHAINS.COSMOS, NEXERA_COSMOS_CHAINS.COSMOS_TESTNET];
90
+ var CosmosChainId = zod.z["enum"](ACTIVE_COSMOS_CHAIN_IDS).describe("a value that identifies the chain of the address.");
91
+
92
+ var _NEXERA_EVM_CHAIN_NAM, _EVM_BLOCK_TIME;
93
+ var NEXERA_EVM_CHAINS = /*#__PURE__*/function (NEXERA_EVM_CHAINS) {
94
+ NEXERA_EVM_CHAINS["ETHEREUM"] = "1";
95
+ NEXERA_EVM_CHAINS["GOERLI"] = "5";
96
+ NEXERA_EVM_CHAINS["ARBITRUM"] = "42161";
97
+ NEXERA_EVM_CHAINS["ARBITRUM_GOERLI"] = "421613";
98
+ NEXERA_EVM_CHAINS["ARBITRUM_SEPOLIA"] = "421614";
99
+ NEXERA_EVM_CHAINS["OPTIMISM"] = "10";
100
+ NEXERA_EVM_CHAINS["OPTIMISM_GOERLI"] = "420";
101
+ NEXERA_EVM_CHAINS["OPTIMISM_SEPOLIA"] = "11155420";
102
+ NEXERA_EVM_CHAINS["AVALANCHE"] = "43114";
103
+ NEXERA_EVM_CHAINS["AVALANCHE_FUJI"] = "43113";
104
+ NEXERA_EVM_CHAINS["POLYGON"] = "137";
105
+ NEXERA_EVM_CHAINS["POLYGON_AMOY"] = "80002";
106
+ NEXERA_EVM_CHAINS["SEPOLIA"] = "11155111";
107
+ NEXERA_EVM_CHAINS["BASE"] = "8453";
108
+ NEXERA_EVM_CHAINS["BASE_GOERLI"] = "84531";
109
+ NEXERA_EVM_CHAINS["BASE_SEPOLIA"] = "84532";
110
+ NEXERA_EVM_CHAINS["MOONBEAM"] = "1284";
111
+ NEXERA_EVM_CHAINS["MOONRIVER"] = "1285";
112
+ NEXERA_EVM_CHAINS["BNB"] = "56";
113
+ NEXERA_EVM_CHAINS["BNB_TESTNET"] = "97";
114
+ NEXERA_EVM_CHAINS["SWISSTRONIK_TESTNET"] = "1291";
115
+ return NEXERA_EVM_CHAINS;
116
+ }({});
117
+ 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"));
118
+ var NEXERA_EVM_CHAIN_NAMES_LIST = Object.values(NEXERA_EVM_CHAIN_NAMES);
119
+ 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];
120
+ var NexeraEvmChains = zod.z["enum"](NEXERA_EVM_CHAINS_ID);
121
+ 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));
122
+ 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];
123
+ 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,
124
+ // for Bsc
125
+ 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];
126
+ 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>.");
127
+
128
+ /////////////////////////////////////////
129
+ // POLKADOT //
130
+ /////////////////////////////////////////
131
+
132
+ var NEXERA_POLKADOT_CHAINS = /*#__PURE__*/function (NEXERA_POLKADOT_CHAINS) {
133
+ NEXERA_POLKADOT_CHAINS["POLKADOT_RELAY_CHAIN"] = "polkadot-relay-chain";
134
+ NEXERA_POLKADOT_CHAINS["KUSAMA_RELAY_CHAIN"] = "kusama-relay-chain";
135
+ NEXERA_POLKADOT_CHAINS["POLKADOT_TESTNET"] = "polkadot-testnet";
136
+ return NEXERA_POLKADOT_CHAINS;
137
+ }({});
138
+ 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");
139
+ var POLKADOT_CHAIN_NAMES_LIST = Object.values(POLKADOT_CHAIN_NAMES);
140
+ 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");
141
+ var ACTIVE_POLKADOT_CHAIN_IDS = [NEXERA_POLKADOT_CHAINS.POLKADOT_RELAY_CHAIN, NEXERA_POLKADOT_CHAINS.KUSAMA_RELAY_CHAIN, NEXERA_POLKADOT_CHAINS.POLKADOT_TESTNET];
142
+ var PolkadotChainId = zod.z["enum"](ACTIVE_POLKADOT_CHAIN_IDS).describe("a value that identifies the chain of the address.");
143
+
144
+ /////////////////////////////////////////
145
+ // SOLANA //
146
+ /////////////////////////////////////////
147
+
148
+ var NEXERA_SOLANA_CHAINS = /*#__PURE__*/function (NEXERA_SOLANA_CHAINS) {
149
+ NEXERA_SOLANA_CHAINS["MAINNET"] = "solana-mainnet";
150
+ NEXERA_SOLANA_CHAINS["TESTNET"] = "solana-testnet";
151
+ NEXERA_SOLANA_CHAINS["DEVNET"] = "solana-devnet";
152
+ return NEXERA_SOLANA_CHAINS;
153
+ }({});
154
+ 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");
155
+ var SOLANA_CHAIN_NAMES_LIST = Object.values(SOLANA_CHAIN_NAMES);
156
+ 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");
157
+ var ACTIVE_SOLANA_CHAIN_IDS = [NEXERA_SOLANA_CHAINS.MAINNET, NEXERA_SOLANA_CHAINS.TESTNET, NEXERA_SOLANA_CHAINS.DEVNET];
158
+ var SolanaChainId = zod.z["enum"](ACTIVE_SOLANA_CHAIN_IDS).describe("a value that identifies the chain of the address.");
159
+
160
+ /////////////////////////////////////////
161
+ // STARKNET //
162
+ /////////////////////////////////////////
163
+
164
+ var NEXERA_STARKNET_CHAINS = /*#__PURE__*/function (NEXERA_STARKNET_CHAINS) {
165
+ NEXERA_STARKNET_CHAINS["STARKNET_MAIN"] = "0x534e5f4d41494e";
166
+ NEXERA_STARKNET_CHAINS["STARKNET_SEPOLIA"] = "0x534e5f5345504f4c4941";
167
+ return NEXERA_STARKNET_CHAINS;
168
+ }({});
169
+ var NEXERA_STARKNET_CHAIN_NAMES = {
170
+ STARKNET_MAIN: "Starknet Mainnet",
171
+ STARKNET_SEPOLIA: "Starknet Sepolia"
172
+ };
173
+ var NEXERA_STARKNET_CHAIN_IDS = {
174
+ STARKNET_MAIN: "0x534e5f4d41494e",
175
+ STARKNET_SEPOLIA: "0x534e5f5345504f4c4941"
176
+ };
177
+ var NEXERA_ACTIVE_STARKNET_CHAIN_IDS = [NEXERA_STARKNET_CHAIN_IDS.STARKNET_MAIN, NEXERA_STARKNET_CHAIN_IDS.STARKNET_SEPOLIA];
178
+ var StarknetChainId = zod.z["enum"](NEXERA_ACTIVE_STARKNET_CHAIN_IDS).describe("a value that identifies the chain of the address.");
179
+
180
+ var NEXERA_TEZOS_CHAINS = /*#__PURE__*/function (NEXERA_TEZOS_CHAINS) {
181
+ NEXERA_TEZOS_CHAINS["TEZOS"] = "NetXdQprcVkpaWU";
182
+ NEXERA_TEZOS_CHAINS["TEZOS_GHOSTNET"] = "NetXnHfVqm9iesp";
183
+ return NEXERA_TEZOS_CHAINS;
184
+ }({});
185
+ /////////////////////////////////////////
186
+ // TEZOS //
187
+ /////////////////////////////////////////
188
+
189
+ var NEXERA_TEZOS_CHAIN_NAMES = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "Tezos Mainnet"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "Tezos Ghostnet");
190
+ var NEXERA_TEZOS_CHAIN_NAMES_LIST = Object.values(NEXERA_TEZOS_CHAIN_NAMES);
191
+ var NEXERA_TEZOS_CHAIN_IDS = _defineProperty(_defineProperty({}, NEXERA_TEZOS_CHAINS.TEZOS, "NetXdQprcVkpaWU"), NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET, "NetXnHfVqm9iesp");
192
+ var ACTIVE_TEZOS_CHAIN_IDS = [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
193
+ 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>.");
194
+
195
+ /////////////////////////////////////////
196
+ // MERGED //
197
+ /////////////////////////////////////////
198
+
199
+ var BlockchainId = zod.z.union([EvmChainId, TezosChainId, CosmosChainId, StarknetChainId, BitcoinChainId, AptosChainId, PolkadotChainId, SolanaChainId, CardanoChainId]);
200
+ 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)]);
201
+
202
+ /////////////////////////////////////////
203
+ // Polygon //
204
+ /////////////////////////////////////////
205
+
206
+ var POLYGON_NETWORK_NAMES = ["main", "amoy"];
207
+ var PolygonNetworkNames = zod.z["enum"](POLYGON_NETWORK_NAMES);
208
+
209
+ /**
210
+ * EIP155
211
+ */
212
+ var String0x = zod.z.string().refine(function (value) {
213
+ return value.startsWith("0x");
214
+ }, {
215
+ message: "0x string must start with '0x'"
216
+ }).describe("0x string");
217
+ var HexadecimalSchema = zod.z.string().refine(function (value) {
218
+ return /^[0-9a-fA-F]+$/.test(value);
219
+ }, {
220
+ message: "Input must be a hexadecimal string"
221
+ });
222
+
223
+ /**
224
+ * EIP155
225
+ */
226
+ var isValidAddress = function isValidAddress(address) {
227
+ var regex = /^0x[a-fA-F0-9]{40}$/;
228
+ return regex.test(address);
229
+ };
230
+ var PrivateKey = String0x;
231
+ var PublicKey = zod.z.string();
232
+ /**
233
+ * Note: it might be nice to use String0x as the base object instead of z.string(),
234
+ * but this causes update-api to fail with the following error:
235
+ * TRPCError: [query.kyc.sumsub.getJourneyData] -
236
+ * Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
237
+ */
238
+ var AddressSchema = zod.z.string().refine(function (value) {
239
+ // Check if the string starts with '0x' and the rest is a valid hexadecimal string
240
+ return /^0x[0-9A-Fa-f]*$/.test(value);
241
+ }, {
242
+ message: "Value must be a valid hexadecimal string prefixed with 0x"
243
+ }).transform(function (value) {
244
+ return value;
245
+ }).describe("String value that identifies the address of a specific user. Normally tied to an EOA that includes the Smart Wallet.");
246
+ var TxHash = zod.z.string().refine(function (value) {
247
+ // Check if the string starts with '0x' and the rest is a valid hexadecimal string
248
+ return /^0x[0-9A-Fa-f]*$/.test(value);
249
+ }, {
250
+ message: "Value must be a valid hexadecimal string prefixed with 0x"
251
+ }).transform(function (value) {
252
+ return value;
253
+ }).describe("Transaction hash");
254
+ var shortBlockchainAddress = function shortBlockchainAddress(address) {
255
+ return "".concat(address.substring(0, 6), "...").concat(address.substring(address.length - 4));
256
+ };
257
+
258
+ /**
259
+ * Aptos
260
+ */
261
+ var AptosAddress = String0x;
262
+ /**
263
+ * Starknet
264
+ */
265
+ var StarknetAddress = String0x;
266
+ /**
267
+ * Polkadot
268
+ */
269
+ var PolkadotAddress = zod.z.string();
270
+ /**
271
+ * Cosmos
272
+ */
273
+ var CosmosAddress = zod.z.string().refine(function (value) {
274
+ return value.startsWith("cosmos");
275
+ }, {
276
+ message: "Cosmos address must start with 'cosmos'"
277
+ }).transform(function (value) {
278
+ return value;
279
+ }).describe("Cosmos address");
280
+ /**
281
+ * Tezos
282
+ */
283
+
284
+ var TezosImplicitAddress = zod.z.string().refine(function (value) {
285
+ return value.startsWith("tz");
286
+ }, {
287
+ message: "Tezos address (implicit account) must start with 'tz'"
288
+ }).describe("Tezos address (implicit account)");
289
+ var TezosContractAddress = zod.z.string().refine(function (value) {
290
+ return value.startsWith("KT1");
291
+ }, {
292
+ message: "Tezos contract address must start with 'KT1'"
293
+ }).describe("Tezos contract address");
294
+ var TezosAddress = zod.z.union([TezosImplicitAddress, TezosContractAddress]);
295
+ /**
296
+ * Cardano
297
+ */
298
+ var CardanoAddress = zod.z.string().refine(function (value) {
299
+ return value.startsWith("addr");
300
+ }, {
301
+ message: "Cardano address must start with 'addr'"
302
+ }).transform(function (value) {
303
+ return value;
304
+ }).describe("Cosmos address");
305
+ /**
306
+ * Bitcoin
307
+ */
308
+ var BitcoinP2PKHAddress = zod.z.string().refine(function (value) {
309
+ return value.startsWith("1");
310
+ }, {
311
+ message: "Bitcoin P2PKH Address must start with '1'"
312
+ }).describe("Bitcoin P2PKH Address");
313
+ var BitcoinP2SHAddress = zod.z.string().refine(function (value) {
314
+ return value.startsWith("3");
315
+ }, {
316
+ message: "Bitcoin P2SH Address must start with '3'"
317
+ }).describe("Bitcoin P2SH Address");
318
+ var BitcoinBech32Address = zod.z.string().refine(function (value) {
319
+ return value.startsWith("bc1");
320
+ }, {
321
+ message: "Bitcoin Bech32 Address must start with 'bc1'"
322
+ }).describe("Bitcoin Bech32 Address");
323
+ var BitcoinTestnetP2PKHAddress = zod.z.string().refine(function (value) {
324
+ return value.startsWith("m") || value.startsWith("n");
325
+ }, {
326
+ message: "Bitcoin Testnet P2PKH Address must start with 'm' or 'n'"
327
+ }).describe("Bitcoin Testnet P2PKH Address");
328
+ var BitcoinTestnetP2SHAddress = zod.z.string().refine(function (value) {
329
+ return value.startsWith("2");
330
+ }, {
331
+ message: "Bitcoin Testnet P2SH Address must start with '2'"
332
+ }).describe("Bitcoin Testnet P2SH Address");
333
+ var BitcoinTestnetBech32Address = zod.z.string().refine(function (value) {
334
+ return value.startsWith("tb1");
335
+ }, {
336
+ message: "Bitcoin Testnet Bech32 Address must start with 'tb1'"
337
+ }).describe("Bitcoin Testnet Bech32 Address");
338
+ var BitcoinAddress = zod.z.union([BitcoinP2PKHAddress, BitcoinP2SHAddress, BitcoinBech32Address, BitcoinTestnetP2PKHAddress, BitcoinTestnetP2SHAddress, BitcoinTestnetBech32Address]);
339
+ /**
340
+ * Chain agnostic schemas
341
+ */
342
+ var BlockchainAddress = zod.z.union([AddressSchema, TezosAddress, AptosAddress, PolkadotAddress, StarknetAddress, CosmosAddress, CardanoAddress, BitcoinAddress]);
343
+
344
+ var BLOCKCHAIN_NAMESPACES = ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano", "bitcoin"];
345
+ var BlockchainNamespace = zod.z["enum"](BLOCKCHAIN_NAMESPACES);
346
+ var SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH = ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
347
+ var SupportedBlockchainNamespaceForSignatureAuth = zod.z["enum"](SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH);
348
+ // Nicer names
349
+ var BLOCKCHAIN_NAMESPACES_NAMES = {
350
+ tezos: "Tezos",
351
+ eip155: "EVM",
352
+ aptos: "Aptos",
353
+ polkadot: "Polkadot",
354
+ starknet: "Starknet",
355
+ cosmos: "Cosmos",
356
+ solana: "Solana",
357
+ cardano: "Cardano",
358
+ bitcoin: "Bitcoin"
359
+ };
360
+ var DISPLAYED_BLOCKCHAIN_NAMESPACES = ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano", "Bitcoin"];
361
+ var DisplayedBlockchainNamespace = zod.z["enum"](DISPLAYED_BLOCKCHAIN_NAMESPACES);
362
+ var BLOCKCHAIN_NAME_TO_NAMESPACE = {
363
+ Tezos: "tezos",
364
+ EVM: "eip155",
365
+ Aptos: "aptos",
366
+ Polkadot: "polkadot",
367
+ Starknet: "starknet",
368
+ Cosmos: "cosmos",
369
+ Solana: "solana",
370
+ Cardano: "cardano",
371
+ Bitcoin: "bitcoin"
372
+ };
373
+ var BLOCKCHAIN_NAMESPACE_TO_NAME = {
374
+ tezos: "Tezos",
375
+ eip155: "EVM",
376
+ aptos: "Aptos",
377
+ polkadot: "Polkadot",
378
+ starknet: "Starknet",
379
+ cosmos: "Cosmos",
380
+ solana: "Solana",
381
+ cardano: "Cardano",
382
+ bitcoin: "Bitcoin"
383
+ };
384
+
385
+ /**
386
+ * EIP155
387
+ */
388
+
389
+ var EIP155Signature = String0x;
390
+ /**
391
+ * Aptos
392
+ */
393
+ var AptosSignature = zod.z.string();
394
+ /**
395
+ * Starknet
396
+ */
397
+
398
+ var StarknetSignature = String0x;
399
+ /**
400
+ * Polkadot
401
+ */
402
+
403
+ var PolkadotSignature = String0x;
404
+ /**
405
+ * Cosmos
406
+ */
407
+
408
+ var CosmosSignature = HexadecimalSchema;
409
+ /**
410
+ * Tezos
411
+ */
412
+
413
+ var EdSignature = zod.z.string().refine(function (value) {
414
+ return value.startsWith("edsig");
415
+ }, {
416
+ message: "EdSignature must start with 'edsig'"
417
+ });
418
+ var SpSignature = zod.z.string().refine(function (value) {
419
+ return value.startsWith("spsig");
420
+ }, {
421
+ message: "SpSignature must start with 'spsig'"
422
+ });
423
+ var P2Signature = zod.z.string().refine(function (value) {
424
+ return value.startsWith("p2sig");
425
+ }, {
426
+ message: "P2Signature must start with 'p2sig'"
427
+ });
428
+ var TezosSignature = zod.z.union([EdSignature, SpSignature, P2Signature]);
429
+ /**
430
+ * Cardano
431
+ */
432
+
433
+ var CardanoSignature = HexadecimalSchema;
434
+ /**
435
+ * Chain agnostic schemas
436
+ */
437
+
438
+ var BlockchainSignature = zod.z.union([EIP155Signature, TezosSignature, AptosSignature, PolkadotSignature, StarknetSignature, CosmosSignature, CardanoSignature]);
439
+
440
+ /**
441
+ * EIP155
442
+ */
443
+
444
+ var FunctionCallData = String0x;
445
+ /**
446
+ * Tezos
447
+ */
448
+
449
+ var TezosEntrypointName = zod.z.string().refine(function (value) {
450
+ return value.startsWith("%");
451
+ }, {
452
+ message: "Tezos entrypoint name must start with '%'"
453
+ }).describe("Tezos entrypoint name");
454
+
455
+ var ENVS = ["cicd", "local", "test-dev-1", "test-dev-2", "test-dev-3", "dev", "stage", "prod"];
456
+ var EnvironmentSchema = zod.z["enum"](ENVS);
457
+ var UuidString = zod.z.string().uuid();
458
+ var OtpCode = zod.z.string().regex(/^\d{6}$/, "OtpCode must be a 6-digit number");
459
+ /**
460
+ * All public services
461
+ */
462
+ var PUBLIC_SERVICES_SCHEMA_MAP = {
463
+ api: {
464
+ cicd: "http://localhost:3001",
465
+ local: "http://localhost:3001",
466
+ "test-dev-1": "https://api-test-dev-1.bjrcom.xyz",
467
+ "test-dev-2": "https://api-test-dev-2.bjrcom.xyz",
468
+ "test-dev-3": "https://api-test-dev-3.bjrcom.xyz",
469
+ dev: "https://api.bjrcom.xyz",
470
+ stage: "https://api.bjrpilot.xyz",
471
+ prod: "https://api.compilot.ai"
472
+ },
473
+ identity_api: {
474
+ cicd: "http://localhost:3015",
475
+ local: "http://localhost:3015",
476
+ "test-dev-1": "https://identity-api-test-dev-1.bjrcom.xyz",
477
+ "test-dev-2": "https://identity-api-test-dev-2.bjrcom.xyz",
478
+ "test-dev-3": "https://identity-api-test-dev-3.bjrcom.xyz",
479
+ dev: "https://identity-api.bjrcom.xyz",
480
+ stage: "https://identity-api.bjrpilot.xyz",
481
+ prod: "https://identity-api.compilot.ai"
482
+ },
483
+ identityV2: {
484
+ cicd: "http://localhost:3009",
485
+ local: "http://localhost:3009",
486
+ "test-dev-1": "https://identity-v2-test-dev-1.bjrcom.xyz",
487
+ "test-dev-2": "https://identity-v2-test-dev-2.bjrcom.xyz",
488
+ "test-dev-3": "https://identity-v2-test-dev-3.bjrcom.xyz",
489
+ dev: "https://identity-v2.bjrcom.xyz",
490
+ stage: "https://identity-v2.bjrpilot.xyz",
491
+ prod: "https://identity-v2.compilot.ai"
492
+ }
493
+ };
494
+ var IpAddress = zod.z.string().optional().refine(function (val) {
495
+ return val === undefined || zod.z.string().ip().safeParse(val).success;
496
+ }, {
497
+ message: "Invalid IP address"
498
+ });
499
+
500
+ var CredentialSchemas = {
501
+ ProofOfResidence: vault_schema.ProofOfResidenceCredentialSubjectSchema,
502
+ SelfieImage: vault_schema.SelfieImageCredentialSubjectSchema,
503
+ IDImage: vault_schema.IDImageCredentialSubjectSchema,
504
+ IDInformation: vault_schema.IDInformationCredentialSubjectSchema,
505
+ AMLScreeningsResults: vault_schema.OLD_AMLScreeningsResultsCredentialSubjectSchema,
506
+ ID3: vault_schema.ID3CredentialSubjectSchema,
507
+ IDScan: vault_schema.IDScanCredentialSubjectSchema,
508
+ IDScanSelfie: vault_schema.IDScanSelfieCredentialSubjectSchema,
509
+ IDScanPassport: vault_schema.IDScanPassportCredentialSubjectSchema
510
+ };
511
+ var CredentialNames = [{
512
+ value: "AMLScreeningsResults",
513
+ label: "AML screening results"
514
+ }, {
515
+ value: "ProofOfResidence",
516
+ label: "Proof of residence"
517
+ }, {
518
+ value: "SelfieImage",
519
+ label: "Selfie image"
520
+ }, {
521
+ value: "IDImage",
522
+ label: "ID image"
523
+ }, {
524
+ value: "IDInformation",
525
+ label: "ID information"
526
+ }];
527
+ var CredentialTypes = ["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "ID3",
528
+ // this is for backwards compatibility
529
+ "IDScan",
530
+ // this is for backwards compatibility
531
+ "IDScanSelfie",
532
+ // this is for backwards compatibility
533
+ "IDScanPassport" // this is for backwards compatibility
534
+ ];
535
+ var NexeraCredentialType = zod.z["enum"](CredentialTypes);
536
+ var getCredentialName = function getCredentialName(value) {
537
+ var _CredentialNames$find;
538
+ return (_CredentialNames$find = CredentialNames.find(function (obj) {
539
+ return obj.value === value;
540
+ })) === null || _CredentialNames$find === void 0 ? void 0 : _CredentialNames$find.label;
541
+ };
542
+ var CredentialType = zod.z.string().transform(function (x) {
543
+ return x.replace("_", "-");
544
+ }) // TODO determine why this is needed
545
+ .pipe(zod.z["enum"](CredentialTypes));
546
+ // Should this be replaced by GenericVerifiableCredentialSchema?
547
+
548
+ var VerifiableCredential = zod.z.object({
549
+ issuer: zod.z.string(),
550
+ type: zod.z.array(zod.z.union([zod.z.string(), CredentialType])),
551
+ credentialSubject: zod.z.record(zod.z.unknown())
552
+ }).catchall(zod.z.any());
553
+ var CredentialMediaType = vault_schema.IDImageCredentialSubjectSchema.shape.mediaType_front;
554
+
555
+ // Request
556
+
557
+ var MediaType = /*#__PURE__*/function (MediaType) {
558
+ MediaType["ZKPMessage"] = "application/iden3-zkp-json";
559
+ MediaType["PlainMessage"] = "application/iden3comm-plain-json";
560
+ MediaType["SignedMessage"] = "application/iden3comm-signed-json";
561
+ return MediaType;
562
+ }({});
563
+ var MediaTypePID = zod.z.nativeEnum(MediaType);
564
+ var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
565
+ var CircuitId = zod.z["enum"](CIRCUIT_IDS);
566
+ var ZeroKnowledgeProofRequest = zod.z.object({
567
+ id: zod.z.number(),
568
+ circuitId: zod.z.string(),
569
+ optional: zod.z["boolean"]().optional(),
570
+ query: zod.z.record(zod.z.string(), zod.z.any())
571
+ });
572
+ var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
573
+ AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
574
+ AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
575
+ CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
576
+ CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
577
+ CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
578
+ CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
579
+ CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
580
+ DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
581
+ MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
582
+ PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
583
+ PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
584
+ REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
585
+ REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
586
+ CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
587
+ CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
588
+ CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
589
+ PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
590
+ PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
591
+ PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
592
+ PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
593
+ };
594
+ 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"];
595
+ var AuthorizationRequestMessageType = zod.z["enum"](AuthorizationRequestMessageTypes);
596
+ var AuthorizationRequestMessage = zod.z.object({
597
+ id: zod.z.string(),
598
+ typ: MediaTypePID.optional(),
599
+ type: AuthorizationRequestMessageType,
600
+ thid: zod.z.string().optional(),
601
+ body: zod.z.object({
602
+ callbackUrl: zod.z.string(),
603
+ reason: zod.z.string().optional(),
604
+ did_doc: zod.z.any().optional(),
605
+ message: zod.z.string().optional(),
606
+ scope: zod.z.array(ZeroKnowledgeProofRequest)
607
+ }),
608
+ from: zod.z.string(),
609
+ to: zod.z.string().optional()
610
+ });
611
+ // Response
612
+ var ProofData = zod.z.object({
613
+ pi_a: zod.z.array(zod.z.string()),
614
+ pi_b: zod.z.array(zod.z.array(zod.z.string())),
615
+ pi_c: zod.z.array(zod.z.string()),
616
+ protocol: zod.z.string(),
617
+ curve: zod.z.string().optional()
618
+ });
619
+ var ZeroKnowledgeProofResponse = zod.z.object({
620
+ id: zod.z.number(),
621
+ circuitId: zod.z.string(),
622
+ vp: zod.z.any().optional(),
623
+ proof: ProofData,
624
+ pub_signals: zod.z.array(zod.z.string())
625
+ });
626
+ var AuthorizationResponseMessage = zod.z.object({
627
+ id: zod.z.string(),
628
+ typ: MediaTypePID.optional(),
629
+ type: zod.z.string(),
630
+ thid: zod.z.string().optional(),
631
+ body: zod.z.object({
632
+ did_doc: zod.z.any().optional(),
633
+ message: zod.z.string().optional(),
634
+ scope: zod.z.array(ZeroKnowledgeProofResponse)
635
+ }),
636
+ from: zod.z.string().optional(),
637
+ to: zod.z.string().optional()
638
+ });
639
+ // Polygon Wallet
640
+ var CredentialQrCodeData = zod.z.object({
641
+ id: zod.z.string(),
642
+ typ: zod.z.string(),
643
+ type: zod.z.string(),
644
+ thid: zod.z.string(),
645
+ body: zod.z.object({
646
+ url: zod.z.string(),
647
+ credentials: zod.z.unknown()
648
+ }),
649
+ from: zod.z.string(),
650
+ to: zod.z.string()
651
+ });
652
+ var AuthQrCodeData = zod.z.object({
653
+ id: zod.z.string(),
654
+ typ: zod.z.string(),
655
+ type: zod.z.string(),
656
+ thid: zod.z.string(),
657
+ body: zod.z.object({
658
+ callbackUrl: zod.z.string(),
659
+ reason: zod.z.string(),
660
+ scope: zod.z.unknown()
661
+ }),
662
+ from: zod.z.string()
663
+ });
664
+ var QrCodeLinkWithSchemaType = zod.z.object({
665
+ qrCodeLink: zod.z.string().nullish(),
666
+ schemaType: zod.z.string().nullish()
667
+ }).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
668
+ function parseIden3Message(input) {
669
+ var prefix = "request_uri=";
670
+ var startIndex = input.indexOf(prefix);
671
+ if (startIndex === -1) {
672
+ throw new Error("Wrong request - request doesn't start with request_uri=");
673
+ }
674
+ return zod.z.string().url().parse(input.substring(startIndex + prefix.length));
675
+ }
676
+ function parseSessionIdFromUrl(urlString) {
677
+ var url = new URL(urlString);
678
+ var params = new URLSearchParams(url.search);
679
+ var sessionId = params.get("sessionID");
680
+ if (!sessionId) {
681
+ throw new Error("No Session Id found in callback url");
682
+ }
683
+ return sessionId;
684
+ }
685
+
686
+ var StoragePrefix = "storage";
687
+ var IdentityPrefix = "identity";
688
+ var EmailPrefix = "email";
689
+ var WalletPrefix = "wallet";
690
+ var AppPrefix = "app";
691
+ var ChallengePrefix = "challenge";
692
+ var TestPrefix = "test";
693
+ var CustomerScreeningPrefix = "cstscr";
694
+ var TagPrefix = "tag";
695
+
696
+ // TMS
697
+ var TagsToTransactionReviewsPrefix = "ttxr";
698
+ var TransactionAddressesPrefix = "txa";
699
+ var TransactionPrefix = "tx";
700
+ var TransactionFeesPrefix = "txf";
701
+ var TransactionReviewPrefix = "txrev";
702
+ var TransactionPartiesPrefix = "txpar";
703
+ var TransactionInfosPrefix = "txi";
704
+ var TransactionExtractedInfosPrefix = "txei";
705
+ var TransactionMethodsPrefix = "txm";
706
+ var TransactionMethodExtractedInfosPrefix = "txmei";
707
+ var InstitutionPrefix = "ins";
708
+ var InstitutionExtractedInfosPrefix = "insei";
709
+ var TransactionAmountPrefix = "txam";
710
+
711
+ // Add these lines near the top of the file with other prefix definitions
712
+ var ScenarioPrefix = "scenario";
713
+ var ListPrefix = "list";
714
+ var QueryPrefix = "query";
715
+ var ActionPrefix = "action";
716
+
717
+ // workflows-api
718
+ var WorkflowSessionAttributePrefix = "wsatr";
719
+
720
+ // ---
721
+
722
+ // Add these lines in the type definitions section
723
+
724
+ // TMS
725
+
726
+ // workflows-api
727
+
728
+ // ---
729
+
730
+ // TMS
731
+
732
+ // Scenarios service
733
+
734
+ // Workflows-API
735
+
736
+ var createBrandedSchemaId = function createBrandedSchemaId(brand) {
737
+ return zod.z.custom(function (val) {
738
+ if (typeof val !== "string") return false;
739
+ return val.startsWith(brand);
740
+ }, {
741
+ message: "Invalid ".concat(brand, " id")
742
+ });
743
+ };
744
+
745
+ // ---
746
+
747
+ var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
748
+ var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
749
+ var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
750
+ var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
751
+ var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
752
+ var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
753
+ var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
754
+ var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
755
+ var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
756
+ var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
757
+
758
+ // TMS
759
+ var TagsToTransactionReviewsId = createBrandedSchemaId("".concat(TagsToTransactionReviewsPrefix, "_"));
760
+ var TransactionAddressesId = createBrandedSchemaId("".concat(TransactionAddressesPrefix, "_"));
761
+ var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
762
+ var TransactionFeesId = createBrandedSchemaId("".concat(TransactionFeesPrefix, "_"));
763
+ var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
764
+ var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
765
+ var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
766
+ var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
767
+ var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
768
+ var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
769
+ var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
770
+ var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
771
+ var TransactionAmountId = createBrandedSchemaId("".concat(TransactionAmountPrefix, "_"));
772
+ var ScenarioId = createBrandedSchemaId("".concat(ScenarioPrefix, "_"));
773
+ var ListId = createBrandedSchemaId("".concat(ListPrefix, "_"));
774
+ var QueryId = createBrandedSchemaId("".concat(QueryPrefix, "_"));
775
+
776
+ // Workflows api
777
+ var WorkflowSessionId = UuidString;
778
+ var WorkflowSessionAttributeId = createBrandedSchemaId("".concat(WorkflowSessionAttributePrefix, "_"));
779
+ var generateId = function generateId(type) {
780
+ return "".concat(type, "_").concat(nanoid.nanoid(12));
781
+ };
782
+ var MemberId = zod.z.string();
783
+
784
+ var QUERY_LOGIC_OPERATOR = ["AND", "OR"];
785
+ var QueryLogicOperator = zod.z["enum"](QUERY_LOGIC_OPERATOR);
786
+ var OPERATORS = ["$noop",
787
+ // 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
788
+ "$eq",
789
+ // equal to
790
+ "$lt",
791
+ // less than
792
+ "$lte",
793
+ // less than or equal to
794
+ "$gt",
795
+ // greater than
796
+ "$gte",
797
+ // greater than or equal to
798
+ "$in",
799
+ // in
800
+ "$nin",
801
+ // not in
802
+ "$ne",
803
+ // not equal to
804
+ //"$between", // between
805
+ //"$nonbetween", // contains
806
+ "$exists" // exists
807
+ ];
808
+ var Operator = zod.z["enum"](OPERATORS);
809
+ var ZKPOperator = zod.z["enum"](OPERATORS).exclude(["$lte", "$gte"]);
810
+ 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");
811
+ var ARRAY_OPERATORS = [Operator["enum"].$in, Operator["enum"].$nin, Operator["enum"].$eq, Operator["enum"].$ne
812
+ //Operator.enum.$between,
813
+ //Operator.enum.$nonbetween,
814
+ ];
815
+ var ArrayOperator = zod.z["enum"](ARRAY_OPERATORS);
816
+ var STRING_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne, Operator["enum"].$in, Operator["enum"].$nin, Operator["enum"].$exists];
817
+ var StringOperator = zod.z["enum"](STRING_OPERATORS);
818
+ var NUMERIC_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne, Operator["enum"].$gt, Operator["enum"].$gte, Operator["enum"].$lt, Operator["enum"].$lte
819
+ //Operator.enum.$between,
820
+ //Operator.enum.$nonbetween,
821
+ ];
822
+ var NumericOperator = zod.z["enum"](NUMERIC_OPERATORS);
823
+ var BOOLEAN_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne];
824
+ var BooleanOperator = zod.z["enum"](BOOLEAN_OPERATORS);
825
+ var DATE_OPERATORS = [Operator["enum"].$eq, Operator["enum"].$ne, Operator["enum"].$gt, Operator["enum"].$gte, Operator["enum"].$lt, Operator["enum"].$lte
826
+ //Operator.enum.$between,
827
+ //Operator.enum.$nonbetween,
828
+ ];
829
+ var DateOperator = zod.z["enum"](DATE_OPERATORS);
830
+ var SUPPORTED_TYPES = ["string", "integer", "boolean", "number", "array", "date"];
831
+ var SupportedType = zod.z["enum"](SUPPORTED_TYPES);
832
+ 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));
833
+ 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())]);
834
+ var QueryConfigSimplified = zod.z.object({
835
+ queryId: QueryId.describe("Unique ID for the query").optional(),
836
+ // TODO: this should not be optional?
837
+ requestId: zod.z.coerce.number().nullish().describe("Request ID for ZKPs"),
838
+ attribute: vault_schema.VaultMetadataLinkZodSchema,
839
+ value: AllCredentialValues.nullish(),
840
+ // TODO: Make the value type dynamic based on the attribute type
841
+ operator: Operator // TODO: Make the operator type dynamic based on the attribute type
842
+ });
843
+ var PartialQueryConfigSimplified = QueryConfigSimplified.partial();
844
+ var OLD_ChallengeQuerySchema = zod.z.object({
845
+ id: zod.z.string().optional(),
846
+ query: QueryConfigSimplified
847
+ });
848
+ var OLD_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",
849
+ //"BETWEEN",
850
+ //"NOT_BETWEEN",
851
+ "EXISTS"];
852
+ var OLD_ChallengeQueryOperator = zod.z["enum"](OLD_CHALLENGE_QUERY_OPERATORS);
853
+ var OperatorMappings = {
854
+ toChallenge: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$noop, OLD_ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$eq, OLD_ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$lt, OLD_ChallengeQueryOperator["enum"].LESS_THAN), Operator["enum"].$lte, OLD_ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO), Operator["enum"].$gt, OLD_ChallengeQueryOperator["enum"].GREATER_THAN), Operator["enum"].$gte, OLD_ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO), Operator["enum"].$in, OLD_ChallengeQueryOperator["enum"].IN), Operator["enum"].$nin, OLD_ChallengeQueryOperator["enum"].NOT_IN), Operator["enum"].$ne, OLD_ChallengeQueryOperator["enum"].NOT_EQUAL_TO), Operator["enum"].$exists, OLD_ChallengeQueryOperator["enum"].EXISTS),
855
+ fromChallenge: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, OLD_ChallengeQueryOperator["enum"].EQUAL_TO, Operator["enum"].$eq), OLD_ChallengeQueryOperator["enum"].LESS_THAN, Operator["enum"].$lt), OLD_ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO, Operator["enum"].$lte), OLD_ChallengeQueryOperator["enum"].GREATER_THAN, Operator["enum"].$gt), OLD_ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO, Operator["enum"].$gte), OLD_ChallengeQueryOperator["enum"].IN, Operator["enum"].$in), OLD_ChallengeQueryOperator["enum"].NOT_IN, Operator["enum"].$nin), OLD_ChallengeQueryOperator["enum"].NOT_EQUAL_TO, Operator["enum"].$ne), OLD_ChallengeQueryOperator["enum"].EXISTS, Operator["enum"].$exists)
856
+ };
857
+ var OperatorToOLD_ChallengeQueryOperator = OperatorMappings.toChallenge;
858
+ var OLD_ChallengeQueryOperatorToOperator = OperatorMappings.fromChallenge;
859
+
860
+ // FIXME: Remove this once we migrate to the vault metadata
861
+ var OLD_QueryCredentialTypes = ["IDInformation", "IDImage", "SelfieImage", "ProofOfResidence", "AMLScreeningsResults", "ID3", "IDScan", "IDScanSelfie", "IDScanPassport"];
862
+ var OLD_QueryCredentialType = zod.z["enum"](OLD_QueryCredentialTypes);
863
+ /**
864
+ * @deprecated Use vault client and services instead
865
+ *
866
+ * FIXME: Have a better way to determine which credentials are required, centralize this logic if possible
867
+ * and with a way that doesn't require looking into the link
868
+ *
869
+ * @param dataLink
870
+ * @returns
871
+ */
872
+ function getOldCredentialType(dataLink) {
873
+ if (dataLink.path.includes("/vcs/")) {
874
+ var _dataLink$path$split$;
875
+ return (_dataLink$path$split$ = dataLink.path.split("/vcs/")[1]) === null || _dataLink$path$split$ === void 0 ? void 0 : _dataLink$path$split$.split("/")[0];
876
+ }
877
+ var mapping = {
878
+ "Customer/identityData/age": "IDInformation",
879
+ "Customer/identityData/nationality": "IDInformation",
880
+ "Customer/identityData/residence": "ProofOfResidence",
881
+ "Customer/kycStatus/selfieCheckStatus": "SelfieImage",
882
+ "Customer/kycStatus/idImageCheckStatus": "IDImage",
883
+ "Customer/kycStatus/idInformationCheckStatus": "IDInformation",
884
+ "Customer/kycStatus/proofOfResidenceCheckStatus": "ProofOfResidence"
885
+ };
886
+ if (dataLink.path in mapping) {
887
+ return mapping[dataLink.path];
888
+ }
889
+ return undefined;
890
+ }
891
+
892
+ /**
893
+ * @deprecated Use vault client and services instead
894
+ *
895
+ * @param dataLink
896
+ * @returns
897
+ */
898
+ function getOldCredentialPath(dataLink) {
899
+ if (dataLink.path.includes("credentialSubject")) {
900
+ var _dataLink$path$split$2;
901
+ var path = (_dataLink$path$split$2 = dataLink.path.split("credentialSubject")[1]) !== null && _dataLink$path$split$2 !== void 0 ? _dataLink$path$split$2 : "";
902
+ path = path.startsWith("/") ? path.slice(1) : path;
903
+ path = path.replaceAll("/", ".");
904
+ return path;
905
+ }
906
+ var mapping = {
907
+ "Customer/identityData/age": "personalData.age",
908
+ "Customer/identityData/nationality": "personalData.nationality",
909
+ "Customer/identityData/residence": "personalData.residence"
910
+ };
911
+ if (dataLink.path in mapping) {
912
+ return mapping[dataLink.path];
913
+ }
914
+ return dataLink.path;
915
+ }
916
+
917
+ /**
918
+ * @deprecated Use vault client and services instead
919
+ */
920
+ function oldCredentialPathToDataLink(path, credentialType) {
921
+ return {
922
+ version: "v1",
923
+ schema: "KycSession",
924
+ // all old paths are for customer credentials
925
+ path: "KycSession/vcs/".concat(credentialType, "/v1/credentialSubject/").concat(path.replaceAll(".", "/"))
926
+ };
927
+ }
928
+
929
+ var FLOW_TYPES = ["web2", "web3"];
930
+ var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
931
+ var VerificationModes = ["full_verification", "sandbox"];
932
+ var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
933
+ var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
934
+ var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
935
+ var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
936
+ var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
937
+ var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
938
+ var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
939
+ var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
940
+
941
+ /**
942
+ * Represents the additional data that can be attached to a customer
943
+ */
944
+
945
+ var AdditionalCustomerInformationParams = zod.z.object({
946
+ email: zod.z.string().email().optional(),
947
+ phone: zod.z.string().min(4).optional(),
948
+ wallet: zod.z.object({
949
+ address: BlockchainAddress,
950
+ namespace: BlockchainNamespace
951
+ }).optional()
952
+ });
953
+ var OrganizationId = zod.z.string();
954
+ var WorkspaceId = zod.z.string();
955
+ var WorkflowId = UuidString;
956
+ var CustomerId = UuidString;
957
+ var IdentityWidgetAccessToken = zod.z.object({
958
+ sub: BlockchainAddress,
959
+ blockchainNamespace: BlockchainNamespace,
960
+ exp: zod.z.number(),
961
+ projectId: zod.z.string(),
962
+ organizationId: OrganizationId,
963
+ customerId: UuidString,
964
+ workspaceId: WorkspaceId,
965
+ // cmsProjectId
966
+ workflowId: WorkflowId.optional(),
967
+ ipAddress: zod.z.string().optional(),
968
+ timestamp: zod.z.number(),
969
+ storeSharedVC: zod.z["boolean"]().nullish(),
970
+ verificationMode: VerificationMode,
971
+ hosts: zod.z.array(zod.z.string())
972
+ });
973
+
974
+ // represents an id of a consumer in the external system of our client
975
+ // as it's an external id, it can be any string
976
+ var ExternalCustomerId = zod.z.string();
977
+ var IdentityAppV2BaseJWT = zod.z.object({
978
+ sub: IdentityId,
979
+ // @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
980
+ flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
981
+ exp: zod.z.number(),
982
+ customerId: UuidString,
983
+ verificationMode: VerificationMode,
984
+ organizationId: OrganizationId,
985
+ workspaceId: WorkspaceId,
986
+ workflowId: WorkflowId,
987
+ ipAddress: zod.z.string().optional(),
988
+ timestamp: zod.z.number(),
989
+ iat: zod.z.number(),
990
+ hosts: zod.z.array(zod.z.string())
991
+ });
992
+ var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
993
+ flowType: zod.z.literal(FlowType.Values.web3),
994
+ blockchainAddress: BlockchainAddress,
995
+ blockchainNamespace: BlockchainNamespace
996
+ });
997
+ var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
998
+ flowType: zod.z.literal(FlowType.Values.web2),
999
+ /**
1000
+ * @deprecated Fetch the additional user information from the services instead of relying on this field
1001
+ * 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
1002
+ */
1003
+ deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
1004
+ });
1005
+ var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
1006
+ var IdentityWidgetSessionToken = zod.z.union([IdentityWidgetAccessToken, IdentityWidgetAccessToken_NEW]);
1007
+
1008
+ /**
1009
+ * The parameters required to create a new configuration in web2 mode.
1010
+ */
1011
+
1012
+ var Web2CreateSessionParams = zod.z.object({
1013
+ workflowId: WorkflowId,
1014
+ // required in web2 because we don't have the wallet address
1015
+ externalCustomerId: ExternalCustomerId,
1016
+ additionalInformation: AdditionalCustomerInformationParams.optional()
1017
+ });
1018
+
1019
+ var ScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring"];
1020
+ var ScenarioType = zod.z["enum"](ScenarioTypes);
1021
+ var BaseQueryResponse = zod.z.object({
1022
+ result: zod.z.object({
1023
+ is_valid: zod.z["boolean"](),
1024
+ reasons: zod.z.array(zod.z.string())
1025
+ })
1026
+ });
1027
+ var OffChainZKPRuleResult = BaseQueryResponse.extend({
1028
+ result: zod.z.object({
1029
+ is_valid: zod.z["boolean"](),
1030
+ query: QueryConfigSimplified,
1031
+ reasons: zod.z.array(zod.z.string())
1032
+ })
1033
+ });
1034
+ var ExecuteQueryResponse = BaseQueryResponse.extend({
1035
+ executionId: UuidString
1036
+ });
1037
+ var RuleEngineResponse = zod.z.object({
1038
+ objectType: ScenarioType,
1039
+ objectId: zod.z.string().describe("Object id in the cms (challengeQueryid, offChainZKPid)"),
1040
+ name: zod.z.string(),
1041
+ address: BlockchainAddress.nullish(),
1042
+ result: ExecuteQueryResponse,
1043
+ executionId: UuidString,
1044
+ scenarioId: zod.z.string()
1045
+ });
1046
+ var ScenarioExecutionResponse = zod.z.array(RuleEngineResponse);
1047
+ var RuleResultStatuses = ["valid", "not-valid", "error", "unknown"];
1048
+ var RuleResultStatus = zod.z["enum"](RuleResultStatuses);
1049
+ var RuleResultStatusLabels = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RuleResultStatus.Enum.valid, "Valid"), RuleResultStatus.Enum["not-valid"], "Not Valid"), RuleResultStatus.Enum.error, "Error"), RuleResultStatus.Enum.unknown, "Unknown");
1050
+ var SdkVerificationOutput = zod.z.object({
1051
+ customerId: zod.z.string().optional(),
1052
+ // for v1
1053
+ scenarioExecutionId: zod.z.string().optional(),
1054
+ // for v1
1055
+ status: RuleResultStatus.optional(),
1056
+ // for v1
1057
+ results: zod.z.array(ScenarioExecutionResponse).optional() // for v1,
1058
+ });
1059
+ var VerificationSessionStatuses = ["IN_PROGRESS", "COMPLETED", "NOT_STARTED"];
1060
+ var VerificationSessionStatus = zod.z["enum"](VerificationSessionStatuses);
1061
+ var VerificationOutput = zod.z.object({
1062
+ id: UuidString.nullable(),
1063
+ verificationResult: SdkVerificationOutput.nullable(),
1064
+ status: VerificationSessionStatus
1065
+ });
1066
+ var Scenario = zod.z.object({
1067
+ id: ScenarioId,
1068
+ name: zod.z.string(),
1069
+ description: zod.z.string().nullish(),
1070
+ queries: zod.z.array(QueryConfigSimplified),
1071
+ type: ScenarioType,
1072
+ workspaceId: WorkspaceId,
1073
+ vcsIncluded: zod.z.array(CredentialType).nullish()
1074
+ });
1075
+
1076
+ // creating this because SmartContractDeployment has an issue with AddressSchema
1077
+ // during rpcPublisher.send
1078
+ // also the parsing of the queryconfiguration fields changes type slightly as well.
1079
+ var AbbreviatedWorkflowScenario = Scenario.omit({
1080
+ vcsIncluded: true,
1081
+ queries: true
1082
+ }).extend({
1083
+ queries: zod.z.array(QueryConfigSimplified)
1084
+ });
1085
+ var TemplateScenario = Scenario.omit({
1086
+ workspaceId: true
1087
+ });
1088
+ var CreateTemplateScenario = TemplateScenario.omit({
1089
+ id: true
1090
+ });
1091
+
1092
+ var ScenarioAuthorizationData = zod.z.object({
1093
+ executionId: UuidString,
1094
+ sessionId: UuidString,
1095
+ projectId: zod.z.string(),
1096
+ address: BlockchainAddress.nullish(),
1097
+ status: zod.z["enum"](["pending", "authorised", "unauthorised"]),
1098
+ scenarioId: zod.z.string(),
1099
+ scenarioName: zod.z.string(),
1100
+ requestMessage: AuthorizationRequestMessage,
1101
+ responseMessage: AuthorizationResponseMessage.nullish(),
1102
+ verificationError: zod.z.string().nullish(),
1103
+ query: QueryConfigSimplified.array(),
1104
+ workflowSessionId: UuidString.optional()
1105
+ });
1106
+ // v1 sdk
1107
+ var SdkVerificationResponseSchema = SdkVerificationOutput;
1108
+ var CloseScreenNotification = zod.z.object({
1109
+ type: zod.z.literal("closeScreen"),
1110
+ identifier: zod.z.string(),
1111
+ data: zod.z.undefined()
1112
+ });
1113
+ var KycCompletionData = zod.z.array(VerifiableCredential);
1114
+ var KycCompletionNotification = zod.z.object({
1115
+ type: zod.z.literal("kycCompletion"),
1116
+ identifier: zod.z.string(),
1117
+ data: KycCompletionData
1118
+ });
1119
+ var RuleEngineScenarioExecutionData = zod.z.object({
1120
+ type: zod.z.literal("RuleEngineScenarioExecution"),
1121
+ data: SdkVerificationResponseSchema
1122
+ });
1123
+ var OffChainScenarioExecutionData = zod.z.object({
1124
+ type: zod.z.literal("OffChainScenarioExecution"),
1125
+ data: zod.z.array(ScenarioAuthorizationData)
1126
+ });
1127
+ var OnChainScenarioExecutionData = zod.z.object({
1128
+ type: zod.z.literal("OnChainScenarioExecution"),
1129
+ data: zod.z.any()
1130
+ });
1131
+ var ScenarioExecutionData = zod.z.union([RuleEngineScenarioExecutionData, OffChainScenarioExecutionData, OnChainScenarioExecutionData]);
1132
+ var ScenarioExecutionNotification = zod.z.object({
1133
+ type: zod.z.literal("scenarioExecution"),
1134
+ identifier: zod.z.string(),
1135
+ data: ScenarioExecutionData
1136
+ });
1137
+ var IsVerifiedNotification = zod.z.object({
1138
+ type: zod.z.literal("isVerifiedNotification"),
1139
+ identifier: zod.z.string(),
1140
+ isVerified: zod.z["boolean"]()
1141
+ });
1142
+ var PolygonIdInitialized = zod.z.object({
1143
+ type: zod.z.literal("polygonIdInitialized"),
1144
+ identifier: zod.z.string(),
1145
+ data: zod.z.string()
1146
+ });
1147
+ var OcvSdkInitialized = zod.z.object({
1148
+ type: zod.z.literal("ocvSdkInitialized"),
1149
+ identifier: zod.z.string()
1150
+ });
1151
+ var StartCompletedNotification = zod.z.object({
1152
+ type: zod.z.literal("startCompletedNotification"),
1153
+ identifier: zod.z.string()
1154
+ });
1155
+ var IdentityNotificationMessage = zod.z.union([CloseScreenNotification, PolygonIdInitialized, OcvSdkInitialized, StartCompletedNotification, KycCompletionNotification, ScenarioExecutionNotification, IsVerifiedNotification]);
1156
+ var InitialDataRequest = zod.z.object({
1157
+ type: zod.z.literal("initialDataRequest"),
1158
+ identifier: zod.z.string()
1159
+ });
1160
+ var SignatureRequest = zod.z.object({
1161
+ type: zod.z.literal("signatureRequest"),
1162
+ identifier: zod.z.string(),
1163
+ data: zod.z.object({
1164
+ message: zod.z.string()
1165
+ })
1166
+ });
1167
+ var TransactionData = zod.z.object({
1168
+ accountAddress: BlockchainAddress,
1169
+ to: BlockchainAddress,
1170
+ data: String0x,
1171
+ value: zod.z.string().optional()
1172
+ });
1173
+ var SendTransactionRequest = zod.z.object({
1174
+ type: zod.z.literal("sendTransactionRequest"),
1175
+ identifier: zod.z.string(),
1176
+ data: TransactionData
1177
+ });
1178
+ var IdentityRequestMessage = zod.z.union([InitialDataRequest, SignatureRequest, SendTransactionRequest]);
1179
+ var AVAILABLE_FLOWS = ["VERIFICATION", "MANAGEMENT", "POLYGON_ID", "KYB"];
1180
+ var AvailableFlow = zod.z["enum"](AVAILABLE_FLOWS);
1181
+ var DataAvailableOnStart = zod.z.object({
1182
+ identifier: zod.z.string().optional(),
1183
+ flow: zod.z["enum"](AVAILABLE_FLOWS).optional(),
1184
+ accessToken: zod.z.string(),
1185
+ signingMessage: zod.z.string(),
1186
+ signature: zod.z.string()
1187
+ });
1188
+ var InitialDataResponse = zod.z.object({
1189
+ type: zod.z.literal("onStartKyc"),
1190
+ data: DataAvailableOnStart
1191
+ });
1192
+ var SignatureResponse = zod.z.object({
1193
+ type: zod.z.literal("signature"),
1194
+ data: BlockchainSignature
1195
+ });
1196
+ var TransactionResponse = zod.z.object({
1197
+ type: zod.z.literal("transactionResponse"),
1198
+ data: zod.z.object({
1199
+ txHash: TxHash
1200
+ })
1201
+ });
1202
+ var HostResponseMessage = zod.z.union([InitialDataResponse, SignatureResponse, TransactionResponse]);
1203
+
1204
+ /**
1205
+ * Exported types
1206
+ */
1207
+
1208
+ var ComplianceImplementationStepsInput = zod.z.object({
1209
+ identityChecks: zod.z["boolean"]().nullish(),
1210
+ configureIdentity: zod.z["boolean"]().nullish(),
1211
+ deployIdentity: zod.z["boolean"]().nullish(),
1212
+ monitorIdentity: zod.z["boolean"]().nullish()
1213
+ });
1214
+
1215
+ /////////////
1216
+ // EIP-155 //
1217
+ /////////////
1218
+
1219
+ var TxAuthInput = zod.z.object({
1220
+ workflowId: WorkflowId.optional(),
1221
+ chainId: EvmChainId,
1222
+ contractAbi: zod.z.array(zod.z.record(zod.z.unknown())),
1223
+ contractAddress: AddressSchema,
1224
+ functionName: zod.z.string(),
1225
+ args: zod.z.array(zod.z.unknown()),
1226
+ userAddress: AddressSchema,
1227
+ blockExpiration: zod.z.number()["int"]().optional(),
1228
+ nonce: zod.z.number()["int"]().optional()
1229
+ });
1230
+ // the api endpoint can source the userAddress from the session if it's not provided
1231
+ var ApiTxAuthInput = TxAuthInput.extend({
1232
+ userAddress: AddressSchema.optional()
1233
+ });
1234
+ var TxSignatureResponse = zod.z.object({
1235
+ signature: EIP155Signature,
1236
+ blockExpiration: zod.z.number()
1237
+ });
1238
+ var GetTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
1239
+ isAuthorized: zod.z.literal(true),
1240
+ signature: EIP155Signature,
1241
+ payload: zod.z.string(),
1242
+ blockExpiration: zod.z.number()
1243
+ }), zod.z.object({
1244
+ isAuthorized: zod.z.literal(false),
1245
+ errorMessage: zod.z.any()
1246
+ })]);
1247
+ /////////////
1248
+ // Tezos //
1249
+ /////////////
1250
+
1251
+ var TezosTxAuthInput = zod.z.object({
1252
+ workflowId: WorkflowId.optional(),
1253
+ chainID: TezosChainId,
1254
+ contractAddress: TezosContractAddress,
1255
+ functionName: TezosEntrypointName,
1256
+ args: zod.z.string(),
1257
+ userAddress: TezosImplicitAddress,
1258
+ blockExpiration: zod.z.number()["int"]().optional(),
1259
+ nonce: zod.z.number()["int"]().optional()
1260
+ });
1261
+ // the api endpoint can source the userAddress from the session if it's not provided
1262
+ var ApiTezosTxAuthInput = TezosTxAuthInput.extend({
1263
+ userAddress: TezosImplicitAddress.optional()
1264
+ });
1265
+ var TezosTxSignatureResponse = zod.z.object({
1266
+ signature: EdSignature,
1267
+ blockExpiration: zod.z.number()
1268
+ });
1269
+ var GetTezosTxAuthDataSignatureResponse = zod.z.union([zod.z.object({
1270
+ isAuthorized: zod.z.literal(true),
1271
+ signature: EdSignature,
1272
+ blockExpiration: zod.z.number()
1273
+ }), zod.z.object({
1274
+ isAuthorized: zod.z.literal(false),
1275
+ errorMessage: zod.z.any()
1276
+ })]);
1277
+ /////////////
1278
+ // General //
1279
+ /////////////
1280
+
1281
+ var ExtendedTxAuthInput = TxAuthInput.and(zod.z.object({
1282
+ namespace: zod.z.literal(BlockchainNamespace.Enum.eip155),
1283
+ userAddress: AddressSchema
1284
+ }));
1285
+ var ExtendedTezosTxAuthInput = TezosTxAuthInput.and(zod.z.object({
1286
+ namespace: zod.z.literal(BlockchainNamespace.Enum.tezos),
1287
+ userAddress: TezosImplicitAddress
1288
+ }));
1289
+ var ExtendedTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse.and(zod.z.object({
1290
+ namespace: zod.z.literal(BlockchainNamespace.Enum.eip155),
1291
+ userAddress: AddressSchema
1292
+ }));
1293
+ var ExtendedTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse.and(zod.z.object({
1294
+ namespace: zod.z.literal(BlockchainNamespace.Enum.tezos),
1295
+ userAddress: TezosImplicitAddress
1296
+ }));
1297
+ var AnyTxAuthDataSignatureResponse = zod.z.union([ExtendedTxAuthDataSignatureResponse, ExtendedTezosTxAuthDataSignatureResponse]);
1298
+ /////////////
1299
+ // JS SDK //
1300
+ /////////////
1301
+
1302
+ var Eip155TxAuthInputJsSdk = ExtendedTxAuthInput.and(zod.z.object({
1303
+ workflowId: WorkflowId
1304
+ }));
1305
+ var TezosTxAuthInputJsSdk = ExtendedTezosTxAuthInput.and(zod.z.object({
1306
+ workflowId: WorkflowId
1307
+ }));
1308
+ var AnyTxAuthInputJsSdk = zod.z.union([Eip155TxAuthInputJsSdk, TezosTxAuthInputJsSdk]);
1309
+
1310
+ var SimplifiedCredential = zod.z.object({
1311
+ id: zod.z.string(),
1312
+ type: zod.z.array(zod.z.string()),
1313
+ issuanceDate: zod.z.string(),
1314
+ journeyId: zod.z.string()
1315
+ });
1316
+ /**
1317
+ * GetCredentialsRequest
1318
+ */
1319
+ var GetCredentialsRequest = zod.z.object({
1320
+ type: zod.z.literal("getCredentials"),
1321
+ data: zod.z.undefined()
1322
+ });
1323
+ /**
1324
+ * GetCredentialsResponse
1325
+ */
1326
+ var GetCredentialsResponse = zod.z.object({
1327
+ type: zod.z.literal("polygonIdCredentials"),
1328
+ credentials: zod.z.array(SimplifiedCredential),
1329
+ identifier: zod.z.string()
1330
+ });
1331
+ /**
1332
+ * PolygonIdRequest
1333
+ */
1334
+ var PolygonIdRequestData = zod.z.union([zod.z.object({
1335
+ type: zod.z.literal("auth"),
1336
+ authRequest: AuthorizationRequestMessage
1337
+ }), zod.z.object({
1338
+ type: zod.z.literal("credentialOffer"),
1339
+ credentialOfferRequest: QrCodeLinkWithSchemaType
1340
+ }), zod.z.object({
1341
+ type: zod.z.literal("zkp"),
1342
+ zkpRequest: ZeroKnowledgeProofRequest
1343
+ })]);
1344
+ var PolygonIdRequest = zod.z.object({
1345
+ type: zod.z.literal("polygonIdRequest"),
1346
+ data: PolygonIdRequestData
1347
+ });
1348
+ /**
1349
+ * PolygonIdResponse
1350
+ */
1351
+ var PolygonIdResponseData = zod.z.union([zod.z.object({
1352
+ type: zod.z.literal("auth"),
1353
+ authResponse: AuthorizationResponseMessage
1354
+ }), zod.z.object({
1355
+ type: zod.z.literal("credentialOffer"),
1356
+ credentialOfferResponse: zod.z.array(vault_schema.GenericVerifiableCredentialSchema)
1357
+ }), zod.z.object({
1358
+ type: zod.z.literal("zkp"),
1359
+ zkpResponse: ZeroKnowledgeProofResponse
1360
+ }), zod.z.object({
1361
+ type: zod.z.literal("close"),
1362
+ screen: zod.z["enum"](["auth", "credentialOffer", "zkp", "getCredentials"]),
1363
+ closeResponse: zod.z.string()
1364
+ })]);
1365
+ var PolygonIdResponse = zod.z.object({
1366
+ type: zod.z.literal("polygonIdResponse"),
1367
+ identifier: zod.z.string(),
1368
+ data: PolygonIdResponseData
1369
+ });
1370
+ /**
1371
+ * StartFlowRequest
1372
+ */
1373
+ var StartFlowRequest = zod.z.union([zod.z.object({
1374
+ type: zod.z.literal("startVerification"),
1375
+ data: zod.z.undefined()
1376
+ }), zod.z.object({
1377
+ type: zod.z.literal("startManagement"),
1378
+ data: zod.z.undefined()
1379
+ }), zod.z.object({
1380
+ type: zod.z.literal("startKYB"),
1381
+ data: zod.z.undefined()
1382
+ })]);
1383
+ /**
1384
+ * IsVerifiedRequest
1385
+ */
1386
+ var IsVerifiedRequest = zod.z.object({
1387
+ type: zod.z.literal("isVerifiedRequest"),
1388
+ data: zod.z.object({
1389
+ userAddress: AddressSchema
1390
+ }),
1391
+ identifier: zod.z.string()
1392
+ });
1393
+ /**
1394
+ * IsVerifiedResponse
1395
+ */
1396
+ var IsVerifiedResponse = zod.z.object({
1397
+ type: zod.z.literal("isVerifiedResponse"),
1398
+ isVerified: zod.z["boolean"](),
1399
+ identifier: zod.z.string()
1400
+ });
1401
+ /**
1402
+ * GetTxAuthSigRequest
1403
+ */
1404
+ var GetTxAuthSigRequest = zod.z.object({
1405
+ type: zod.z.literal("getTxAuthSigRequest"),
1406
+ data: ApiTxAuthInput,
1407
+ identifier: zod.z.string()
1408
+ });
1409
+ /**
1410
+ * GetTxAuthSigResponse
1411
+ */
1412
+ var GetTxAuthSigResponse = zod.z.object({
1413
+ type: zod.z.literal("getTxAuthSigResponse"),
1414
+ signatureResponse: GetTxAuthDataSignatureResponse,
1415
+ identifier: zod.z.string()
1416
+ });
1417
+ /**
1418
+ * GetTxAuthSigRequest Tezos
1419
+ */
1420
+ var GetTxAuthSigRequestTezos = zod.z.object({
1421
+ type: zod.z.literal("getTxAuthSigRequestTezos"),
1422
+ data: ApiTezosTxAuthInput,
1423
+ identifier: zod.z.string()
1424
+ });
1425
+ /**
1426
+ * GetTxAuthSigResponse Tezos
1427
+ */
1428
+ var GetTxAuthSigResponseTezos = zod.z.object({
1429
+ type: zod.z.literal("getTezosTxAuthSigResponse"),
1430
+ signatureResponse: GetTezosTxAuthDataSignatureResponse,
1431
+ identifier: zod.z.string()
1432
+ });
1433
+ var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
1434
+ var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
1435
+
1436
+ /**
1437
+ * Wallet challenge parameters
1438
+ */
1439
+
1440
+ var GenerateWalletChallengeRequest = zod.z.object({
1441
+ address: BlockchainAddress,
1442
+ namespace: SupportedBlockchainNamespaceForSignatureAuth,
1443
+ blockchainId: BlockchainId.optional(),
1444
+ origin: zod.z.string().url(),
1445
+ workflowId: WorkflowId,
1446
+ externalCustomerId: ExternalCustomerId.optional(),
1447
+ additionalInformation: AdditionalCustomerInformationParams.optional()
1448
+ });
1449
+ var AuthSession = zod.z.object({
1450
+ // JWT token containing user authentication data
1451
+ // Generated by the Identity-api using the IdentityWidgetAccessToken_NEW schema
1452
+ // Used for user identification in the identity-v2-app
1453
+ // We don't want users to rely on the structure of the token so we expose it as a string
1454
+ token: zod.z.string(),
1455
+ // the timestamp at which the session will expire
1456
+ // in seconds since epoch to avoid timezone issues and date parsing errors
1457
+ // this is exposed in case the app needs to store the session so it knows when
1458
+ // the session becomes invalid again
1459
+ // We don't want users to rely on the fact that the token is a JWT, as we
1460
+ // want to change to openId in the future, so we expose the expiration as a number
1461
+ expiresAt: zod.z.number(),
1462
+ // if an external customer id was provided, it will be returned
1463
+ // when obtaining the auth session to facilitate integration with the user's system
1464
+ externalCustomerId: ExternalCustomerId.optional()
1465
+ });
1466
+ var AuthSessionData = zod.z.object({
1467
+ /**
1468
+ * The unique identifier of the user
1469
+ */
1470
+ identityId: zod.z.string(),
1471
+ /**
1472
+ * The unique identifier of the user's session
1473
+ */
1474
+ customerId: zod.z.string(),
1475
+ /**
1476
+ * The identifier passed by the user platform
1477
+ */
1478
+ externalCustomerId: ExternalCustomerId.optional()
1479
+ });
1480
+ var ChallengeResponse = zod.z.object({
1481
+ challenge: zod.z.string()
1482
+ });
1483
+ ////////////////
1484
+ // SDK messages
1485
+ ////////////////
1486
+
1487
+ var AppConfigRequest = zod.z.object({
1488
+ type: zod.z.literal("appConfig"),
1489
+ data: zod.z.object({
1490
+ authSession: AuthSession
1491
+ })
1492
+ });
1493
+ var WalletUpdated = zod.z.object({
1494
+ type: zod.z.literal("walletUpdated"),
1495
+ data: zod.z.object({
1496
+ address: BlockchainAddress
1497
+ })
1498
+ });
1499
+ var WalletSignResponse = zod.z.object({
1500
+ type: zod.z.literal("walletSignResponse"),
1501
+ data: zod.z.object({
1502
+ message: zod.z.string(),
1503
+ signature: BlockchainSignature
1504
+ })
1505
+ });
1506
+ var TxAuthDataSignatureGatingRequest = zod.z.object({
1507
+ type: zod.z.literal("txAuthDataSignatureGatingRequest"),
1508
+ data: zod.z.object({
1509
+ input: AnyTxAuthInputJsSdk
1510
+ })
1511
+ });
1512
+ var GetCustomerStatusRequest = zod.z.object({
1513
+ type: zod.z.literal("getCustomerStatusRequest")
1514
+ });
1515
+ var IdentitySdkMessage = zod.z.union([AppConfigRequest, WalletUpdated, WalletSignResponse, TransactionResponse, TxAuthDataSignatureGatingRequest, GetCustomerStatusRequest]);
1516
+ var IdentitySdkMessageWithIdentifier = zod.z.intersection(IdentitySdkMessage, zod.z.object({
1517
+ identifier: zod.z.string()
1518
+ }));
1519
+ ////////////////
1520
+ // App messages
1521
+ ////////////////
1522
+
1523
+ var IdentityAppLoadedNotification = zod.z.object({
1524
+ type: zod.z.literal("identityAppLoaded")
1525
+ });
1526
+ var IdentityAppConfiguredNotification = zod.z.object({
1527
+ type: zod.z.literal("identityAppConfigured"),
1528
+ data: zod.z.object({
1529
+ auth: AuthSession
1530
+ })
1531
+ });
1532
+ var AuthenticationExpiredNotification = zod.z.object({
1533
+ type: zod.z.literal("authenticationExpired"),
1534
+ data: zod.z.object({
1535
+ authSession: AuthSession
1536
+ })
1537
+ });
1538
+ var WalletSignRequest = zod.z.object({
1539
+ type: zod.z.literal("walletSignRequest"),
1540
+ data: zod.z.object({
1541
+ message: zod.z.string()
1542
+ })
1543
+ });
1544
+ var TxAuthDataSignatureResponse = zod.z.object({
1545
+ type: zod.z.literal("txAuthDataSignatureResponse"),
1546
+ data: AnyTxAuthDataSignatureResponse
1547
+ });
1548
+ var TxAuthDataSignatureGatingError = zod.z.object({
1549
+ type: zod.z.literal("txAuthDataSignatureGatingError"),
1550
+ data: zod.z.object({
1551
+ error: zod.z.string()
1552
+ })
1553
+ });
1554
+ var GetCustomerStatusResponse = zod.z.object({
1555
+ type: zod.z.literal("getCustomerStatusResponse"),
1556
+ data: zod.z.union([vault_schema.CustomerStatus, zod.z["null"]()])
1557
+ });
1558
+ var IdentityAppMessage = zod.z.union([IdentityAppLoadedNotification, IdentityAppConfiguredNotification, AuthenticationExpiredNotification, WalletSignRequest, TxAuthDataSignatureResponse, TxAuthDataSignatureGatingError, GetCustomerStatusResponse,
1559
+ // `identifier` is a technical detail that should not be exposed to the app
1560
+ KycCompletionNotification.omit({
1561
+ identifier: true
1562
+ }), ScenarioExecutionNotification.omit({
1563
+ identifier: true
1564
+ }), CloseScreenNotification.omit({
1565
+ identifier: true
1566
+ }), IsVerifiedNotification.omit({
1567
+ identifier: true
1568
+ }), SendTransactionRequest.omit({
1569
+ identifier: true
1570
+ })]);
1571
+ var IdentityWallet = zod.z.object({
1572
+ address: BlockchainAddress,
1573
+ namespace: SupportedBlockchainNamespaceForSignatureAuth
1574
+ });
1575
+
1576
+ var ZKPRequest = zod.z.object({
1577
+ id: zod.z.number(),
1578
+ circuitId: zod.z["enum"](["credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain"]),
1579
+ optional: zod.z["boolean"]().optional(),
1580
+ query: QueryConfigSimplified
1581
+ });
1582
+ var ZKPRequestFromZKVerifier = zod.z.object({
1583
+ id: zod.z.number(),
1584
+ circuitId: zod.z.string(),
1585
+ optional: zod.z["boolean"]().optional(),
1586
+ query: zod.z.record(zod.z.unknown())
1587
+ });
1588
+ var PrivacyPreservingMonitoring = zod.z.object({
1589
+ requestingAuthorizationMessage: zod.z.string().nullish(),
1590
+ zkpRequest: zod.z.array(ZKPRequest).nullish()
1591
+ });
1592
+ var CreateAuthRequestProps = zod.z.object({
1593
+ hostUrl: zod.z.string().url(),
1594
+ sessionId: UuidString,
1595
+ audience: zod.z.string().describe("DID of the verifier"),
1596
+ callbackURL: zod.z.string().describe("URL to which the auth response of the client callback will be sent"),
1597
+ query: zod.z.array(QueryConfigSimplified),
1598
+ onChainVerification: zod.z["boolean"]().optional(),
1599
+ id: zod.z.string().uuid(),
1600
+ thid: zod.z.string().uuid(),
1601
+ message: zod.z.string().describe("Message shown to the user")
1602
+ });
1603
+ var AllScenarioExecutionAuthorizationData = zod.z.object({
1604
+ executionId: UuidString,
1605
+ projectId: zod.z.string(),
1606
+ scenarioExecutionIds: zod.z.array(UuidString)
1607
+ });
1608
+ var SCENARIO_AUTHORIZATION_STATUSES = ["pending", "authorised", "unauthorised"];
1609
+ var ScenarioAuthorizationStatus = zod.z["enum"](SCENARIO_AUTHORIZATION_STATUSES);
1610
+
1611
+ var HostMessage = zod.z.union([HostRequestMessage, HostResponseMessage]);
1612
+ var IdentityMessage = zod.z.union([IdentityNotificationMessage, IdentityRequestMessage, IdentityResponseMessage]);
1613
+ var RequiredDataRowSchema = zod.z.object({
1614
+ type: CredentialType,
1615
+ requiredAttributes: zod.z.array(zod.z.object({
1616
+ attribute: zod.z.string(),
1617
+ value: zod.z.string(),
1618
+ operator: zod.z.string()
1619
+ }))
1620
+ });
1621
+ var RequiredVerificationData = zod.z.object({
1622
+ ruleEngine: zod.z.object({
1623
+ requiredData: zod.z.array(RequiredDataRowSchema)
1624
+ }),
1625
+ PrivacyPreservingMonitoring: zod.z.object({
1626
+ requiredData: zod.z.array(RequiredDataRowSchema),
1627
+ verifications: zod.z.array(zod.z.object({
1628
+ scenarioVerifierAddress: zod.z.string(),
1629
+ conditions: zod.z.array(ZKPRequest)
1630
+ }))
1631
+ })
1632
+ });
1633
+
1634
+ var WalletSignatureResponse = zod.z.object({
1635
+ // the message we requested the user to sign
1636
+ message: zod.z.string(),
1637
+ // the signature of the message
1638
+ signature: BlockchainSignature,
1639
+ // some wallets like Cardano Nami generate a new address for each transaction or signature
1640
+ // this means we have to request the signer's public key to verify the signature
1641
+ signerPublicKey: PublicKey,
1642
+ // the type of the signer's public key
1643
+ // this is optional because some wallets don't provide this information
1644
+ // but for other wallets like cosmos kepler, this is required to verify the signature
1645
+ signerPublicKeyType: zod.z.string().optional(),
1646
+ // some wallets like Aptos Petra wrap the message in some text metadata before signing
1647
+ // this means the user doesn't sign the message directly, but a message that contains the original message
1648
+ signedMessage: zod.z.string()
1649
+ });
1650
+ var VerifyWalletChallengeRequest = WalletSignatureResponse.and(zod.z.object({
1651
+ address: BlockchainAddress,
1652
+ namespace: SupportedBlockchainNamespaceForSignatureAuth,
1653
+ blockchainId: BlockchainId.optional()
1654
+ }));
1655
+
1656
+ exports.ACTIVE_APTOS_CHAIN_IDS = ACTIVE_APTOS_CHAIN_IDS;
1657
+ exports.ACTIVE_BITCOIN_CHAIN_IDS = ACTIVE_BITCOIN_CHAIN_IDS;
1658
+ exports.ACTIVE_CARDANO_CHAIN_IDS = ACTIVE_CARDANO_CHAIN_IDS;
1659
+ exports.ACTIVE_COSMOS_CHAIN_IDS = ACTIVE_COSMOS_CHAIN_IDS;
1660
+ exports.ACTIVE_EVM_CHAIN_VALUES = ACTIVE_EVM_CHAIN_VALUES;
1661
+ exports.ACTIVE_POLKADOT_CHAIN_IDS = ACTIVE_POLKADOT_CHAIN_IDS;
1662
+ exports.ACTIVE_SOLANA_CHAIN_IDS = ACTIVE_SOLANA_CHAIN_IDS;
1663
+ exports.ACTIVE_TEZOS_CHAIN_IDS = ACTIVE_TEZOS_CHAIN_IDS;
1664
+ exports.APTOS_CHAIN_IDS = APTOS_CHAIN_IDS;
1665
+ exports.APTOS_CHAIN_NAMES = APTOS_CHAIN_NAMES;
1666
+ exports.APTOS_CHAIN_NAMES_LIST = APTOS_CHAIN_NAMES_LIST;
1667
+ exports.ARRAY_OPERATORS = ARRAY_OPERATORS;
1668
+ exports.AUTHORIZATION_REQUEST_MESSAGE_TYPES = AUTHORIZATION_REQUEST_MESSAGE_TYPES;
1669
+ exports.AVAILABLE_FLOWS = AVAILABLE_FLOWS;
1670
+ exports.AbbreviatedWorkflowScenario = AbbreviatedWorkflowScenario;
1671
+ exports.ActionId = ActionId;
1672
+ exports.ActionPrefix = ActionPrefix;
1673
+ exports.AdditionalCustomerInformationParams = AdditionalCustomerInformationParams;
1674
+ exports.AddressSchema = AddressSchema;
1675
+ exports.AllCredentialValues = AllCredentialValues;
1676
+ exports.AllScenarioExecutionAuthorizationData = AllScenarioExecutionAuthorizationData;
1677
+ exports.AnyTxAuthDataSignatureResponse = AnyTxAuthDataSignatureResponse;
1678
+ exports.AnyTxAuthInputJsSdk = AnyTxAuthInputJsSdk;
1679
+ exports.ApiTezosTxAuthInput = ApiTezosTxAuthInput;
1680
+ exports.ApiTxAuthInput = ApiTxAuthInput;
1681
+ exports.AppId = AppId;
1682
+ exports.AppPrefix = AppPrefix;
1683
+ exports.AptosAddress = AptosAddress;
1684
+ exports.AptosChainId = AptosChainId;
1685
+ exports.AptosSignature = AptosSignature;
1686
+ exports.ArrayOperator = ArrayOperator;
1687
+ exports.AuthQrCodeData = AuthQrCodeData;
1688
+ exports.AuthSession = AuthSession;
1689
+ exports.AuthSessionData = AuthSessionData;
1690
+ exports.AuthorizationRequestMessage = AuthorizationRequestMessage;
1691
+ exports.AuthorizationRequestMessageType = AuthorizationRequestMessageType;
1692
+ exports.AuthorizationRequestMessageTypes = AuthorizationRequestMessageTypes;
1693
+ exports.AuthorizationResponseMessage = AuthorizationResponseMessage;
1694
+ exports.AvailableFlow = AvailableFlow;
1695
+ exports.BITCOIN_CHAIN_IDS = BITCOIN_CHAIN_IDS;
1696
+ exports.BITCOIN_CHAIN_NAMES = BITCOIN_CHAIN_NAMES;
1697
+ exports.BITCOIN_CHAIN_NAMES_LIST = BITCOIN_CHAIN_NAMES_LIST;
1698
+ exports.BLOCKCHAIN_NAMESPACES = BLOCKCHAIN_NAMESPACES;
1699
+ exports.BLOCKCHAIN_NAMESPACES_NAMES = BLOCKCHAIN_NAMESPACES_NAMES;
1700
+ exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
1701
+ exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
1702
+ exports.BOOLEAN_OPERATORS = BOOLEAN_OPERATORS;
1703
+ exports.BaseQueryResponse = BaseQueryResponse;
1704
+ exports.BitcoinAddress = BitcoinAddress;
1705
+ exports.BitcoinBech32Address = BitcoinBech32Address;
1706
+ exports.BitcoinChainId = BitcoinChainId;
1707
+ exports.BitcoinP2PKHAddress = BitcoinP2PKHAddress;
1708
+ exports.BitcoinP2SHAddress = BitcoinP2SHAddress;
1709
+ exports.BitcoinTestnetBech32Address = BitcoinTestnetBech32Address;
1710
+ exports.BitcoinTestnetP2PKHAddress = BitcoinTestnetP2PKHAddress;
1711
+ exports.BitcoinTestnetP2SHAddress = BitcoinTestnetP2SHAddress;
1712
+ exports.BlockchainAddress = BlockchainAddress;
1713
+ exports.BlockchainId = BlockchainId;
1714
+ exports.BlockchainNamespace = BlockchainNamespace;
1715
+ exports.BlockchainSignature = BlockchainSignature;
1716
+ exports.BooleanOperator = BooleanOperator;
1717
+ exports.CARDANO_CHAIN_IDS = CARDANO_CHAIN_IDS;
1718
+ exports.CARDANO_CHAIN_NAMES = CARDANO_CHAIN_NAMES;
1719
+ exports.CARDANO_CHAIN_NAMES_LIST = CARDANO_CHAIN_NAMES_LIST;
1720
+ exports.CIRCUIT_IDS = CIRCUIT_IDS;
1721
+ exports.COSMOS_CHAIN_IDS = COSMOS_CHAIN_IDS;
1722
+ exports.COSMOS_CHAIN_NAMES = COSMOS_CHAIN_NAMES;
1723
+ exports.COSMOS_CHAIN_NAMES_LIST = COSMOS_CHAIN_NAMES_LIST;
1724
+ exports.CardanoAddress = CardanoAddress;
1725
+ exports.CardanoChainId = CardanoChainId;
1726
+ exports.CardanoSignature = CardanoSignature;
1727
+ exports.ChallengeId = ChallengeId;
1728
+ exports.ChallengePrefix = ChallengePrefix;
1729
+ exports.ChallengeResponse = ChallengeResponse;
1730
+ exports.CircuitId = CircuitId;
1731
+ exports.CloseScreenNotification = CloseScreenNotification;
1732
+ exports.ComplianceImplementationStepsInput = ComplianceImplementationStepsInput;
1733
+ exports.CosmosAddress = CosmosAddress;
1734
+ exports.CosmosChainId = CosmosChainId;
1735
+ exports.CosmosSignature = CosmosSignature;
1736
+ exports.CreateAuthRequestProps = CreateAuthRequestProps;
1737
+ exports.CreateTemplateScenario = CreateTemplateScenario;
1738
+ exports.CredentialMediaType = CredentialMediaType;
1739
+ exports.CredentialNames = CredentialNames;
1740
+ exports.CredentialQrCodeData = CredentialQrCodeData;
1741
+ exports.CredentialSchemas = CredentialSchemas;
1742
+ exports.CredentialType = CredentialType;
1743
+ exports.CredentialTypes = CredentialTypes;
1744
+ exports.CustomerId = CustomerId;
1745
+ exports.CustomerScreeningId = CustomerScreeningId;
1746
+ exports.CustomerScreeningPrefix = CustomerScreeningPrefix;
1747
+ exports.DATE_OPERATORS = DATE_OPERATORS;
1748
+ exports.DISPLAYED_BLOCKCHAIN_NAMESPACES = DISPLAYED_BLOCKCHAIN_NAMESPACES;
1749
+ exports.DataAvailableOnStart = DataAvailableOnStart;
1750
+ exports.DateOperator = DateOperator;
1751
+ exports.DisplayedBlockchainNamespace = DisplayedBlockchainNamespace;
1752
+ exports.EIP155Signature = EIP155Signature;
1753
+ exports.ENVS = ENVS;
1754
+ exports.EVM_BLOCK_TIME = EVM_BLOCK_TIME;
1755
+ exports.EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC = EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC;
1756
+ exports.EdSignature = EdSignature;
1757
+ exports.Eip155TxAuthInputJsSdk = Eip155TxAuthInputJsSdk;
1758
+ exports.EmailId = EmailId;
1759
+ exports.EmailPrefix = EmailPrefix;
1760
+ exports.EnvironmentSchema = EnvironmentSchema;
1761
+ exports.EvmChainId = EvmChainId;
1762
+ exports.ExecuteQueryResponse = ExecuteQueryResponse;
1763
+ exports.ExtendedTezosTxAuthDataSignatureResponse = ExtendedTezosTxAuthDataSignatureResponse;
1764
+ exports.ExtendedTezosTxAuthInput = ExtendedTezosTxAuthInput;
1765
+ exports.ExtendedTxAuthDataSignatureResponse = ExtendedTxAuthDataSignatureResponse;
1766
+ exports.ExtendedTxAuthInput = ExtendedTxAuthInput;
1767
+ exports.ExternalCustomerId = ExternalCustomerId;
1768
+ exports.FLOW_TYPES = FLOW_TYPES;
1769
+ exports.FlowType = FlowType;
1770
+ exports.FunctionCallData = FunctionCallData;
1771
+ exports.GenerateWalletChallengeRequest = GenerateWalletChallengeRequest;
1772
+ exports.GetCredentialsRequest = GetCredentialsRequest;
1773
+ exports.GetCredentialsResponse = GetCredentialsResponse;
1774
+ exports.GetCustomerStatusRequest = GetCustomerStatusRequest;
1775
+ exports.GetCustomerStatusResponse = GetCustomerStatusResponse;
1776
+ exports.GetTezosTxAuthDataSignatureResponse = GetTezosTxAuthDataSignatureResponse;
1777
+ exports.GetTxAuthDataSignatureResponse = GetTxAuthDataSignatureResponse;
1778
+ exports.GetTxAuthSigRequest = GetTxAuthSigRequest;
1779
+ exports.GetTxAuthSigRequestTezos = GetTxAuthSigRequestTezos;
1780
+ exports.GetTxAuthSigResponse = GetTxAuthSigResponse;
1781
+ exports.GetTxAuthSigResponseTezos = GetTxAuthSigResponseTezos;
1782
+ exports.HexadecimalSchema = HexadecimalSchema;
1783
+ exports.HostMessage = HostMessage;
1784
+ exports.HostRequestMessage = HostRequestMessage;
1785
+ exports.HostResponseMessage = HostResponseMessage;
1786
+ exports.IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS;
1787
+ exports.IDENTITY_DOCUMENT_OPTIONS = IDENTITY_DOCUMENT_OPTIONS;
1788
+ exports.Identifier = Identifier;
1789
+ exports.IdentityAppMessage = IdentityAppMessage;
1790
+ exports.IdentityAppV2Web2JWT = IdentityAppV2Web2JWT;
1791
+ exports.IdentityAppV2Web3JWT = IdentityAppV2Web3JWT;
1792
+ exports.IdentityDocumentCountryListOption = IdentityDocumentCountryListOption;
1793
+ exports.IdentityDocumentOptionsType = IdentityDocumentOptionsType;
1794
+ exports.IdentityId = IdentityId;
1795
+ exports.IdentityMessage = IdentityMessage;
1796
+ exports.IdentityNotificationMessage = IdentityNotificationMessage;
1797
+ exports.IdentityPrefix = IdentityPrefix;
1798
+ exports.IdentityRequestMessage = IdentityRequestMessage;
1799
+ exports.IdentityResponseMessage = IdentityResponseMessage;
1800
+ exports.IdentitySdkMessage = IdentitySdkMessage;
1801
+ exports.IdentitySdkMessageWithIdentifier = IdentitySdkMessageWithIdentifier;
1802
+ exports.IdentityWallet = IdentityWallet;
1803
+ exports.IdentityWidgetAccessToken = IdentityWidgetAccessToken;
1804
+ exports.IdentityWidgetAccessToken_NEW = IdentityWidgetAccessToken_NEW;
1805
+ exports.IdentityWidgetSessionToken = IdentityWidgetSessionToken;
1806
+ exports.InitialDataRequest = InitialDataRequest;
1807
+ exports.InitialDataResponse = InitialDataResponse;
1808
+ exports.InstitutionExtractedInfosId = InstitutionExtractedInfosId;
1809
+ exports.InstitutionExtractedInfosPrefix = InstitutionExtractedInfosPrefix;
1810
+ exports.InstitutionId = InstitutionId;
1811
+ exports.InstitutionPrefix = InstitutionPrefix;
1812
+ exports.IpAddress = IpAddress;
1813
+ exports.IsVerifiedNotification = IsVerifiedNotification;
1814
+ exports.IsVerifiedRequest = IsVerifiedRequest;
1815
+ exports.IsVerifiedResponse = IsVerifiedResponse;
1816
+ exports.KycCompletionData = KycCompletionData;
1817
+ exports.KycCompletionNotification = KycCompletionNotification;
1818
+ exports.ListId = ListId;
1819
+ exports.ListPrefix = ListPrefix;
1820
+ exports.MediaType = MediaType;
1821
+ exports.MediaTypePID = MediaTypePID;
1822
+ exports.MemberId = MemberId;
1823
+ exports.NEXERA_ACTIVE_STARKNET_CHAIN_IDS = NEXERA_ACTIVE_STARKNET_CHAIN_IDS;
1824
+ exports.NEXERA_APTOS_CHAINS = NEXERA_APTOS_CHAINS;
1825
+ exports.NEXERA_BITCOIN_CHAINS = NEXERA_BITCOIN_CHAINS;
1826
+ exports.NEXERA_CARDANO_CHAINS = NEXERA_CARDANO_CHAINS;
1827
+ exports.NEXERA_COSMOS_CHAINS = NEXERA_COSMOS_CHAINS;
1828
+ exports.NEXERA_EVM_CHAINS = NEXERA_EVM_CHAINS;
1829
+ exports.NEXERA_EVM_CHAINS_ID = NEXERA_EVM_CHAINS_ID;
1830
+ exports.NEXERA_EVM_CHAIN_NAMES = NEXERA_EVM_CHAIN_NAMES;
1831
+ exports.NEXERA_EVM_CHAIN_NAMES_LIST = NEXERA_EVM_CHAIN_NAMES_LIST;
1832
+ exports.NEXERA_POLKADOT_CHAINS = NEXERA_POLKADOT_CHAINS;
1833
+ exports.NEXERA_SOLANA_CHAINS = NEXERA_SOLANA_CHAINS;
1834
+ exports.NEXERA_STARKNET_CHAINS = NEXERA_STARKNET_CHAINS;
1835
+ exports.NEXERA_STARKNET_CHAIN_IDS = NEXERA_STARKNET_CHAIN_IDS;
1836
+ exports.NEXERA_STARKNET_CHAIN_NAMES = NEXERA_STARKNET_CHAIN_NAMES;
1837
+ exports.NEXERA_TEZOS_CHAINS = NEXERA_TEZOS_CHAINS;
1838
+ exports.NEXERA_TEZOS_CHAIN_IDS = NEXERA_TEZOS_CHAIN_IDS;
1839
+ exports.NEXERA_TEZOS_CHAIN_NAMES = NEXERA_TEZOS_CHAIN_NAMES;
1840
+ exports.NEXERA_TEZOS_CHAIN_NAMES_LIST = NEXERA_TEZOS_CHAIN_NAMES_LIST;
1841
+ exports.NUMERIC_OPERATORS = NUMERIC_OPERATORS;
1842
+ exports.NexeraCredentialType = NexeraCredentialType;
1843
+ exports.NexeraEvmChains = NexeraEvmChains;
1844
+ exports.NonTestnetBlockchainId = NonTestnetBlockchainId;
1845
+ exports.NumericOperator = NumericOperator;
1846
+ exports.OLD_CHALLENGE_QUERY_OPERATORS = OLD_CHALLENGE_QUERY_OPERATORS;
1847
+ exports.OLD_ChallengeQueryOperator = OLD_ChallengeQueryOperator;
1848
+ exports.OLD_ChallengeQueryOperatorToOperator = OLD_ChallengeQueryOperatorToOperator;
1849
+ exports.OLD_ChallengeQuerySchema = OLD_ChallengeQuerySchema;
1850
+ exports.OLD_QueryCredentialType = OLD_QueryCredentialType;
1851
+ exports.OLD_QueryCredentialTypes = OLD_QueryCredentialTypes;
1852
+ exports.OPERATORS = OPERATORS;
1853
+ exports.OcvSdkInitialized = OcvSdkInitialized;
1854
+ exports.OffChainScenarioExecutionData = OffChainScenarioExecutionData;
1855
+ exports.OffChainZKPRuleResult = OffChainZKPRuleResult;
1856
+ exports.OnChainScenarioExecutionData = OnChainScenarioExecutionData;
1857
+ exports.Operator = Operator;
1858
+ exports.OperatorMappings = OperatorMappings;
1859
+ exports.OperatorToOLD_ChallengeQueryOperator = OperatorToOLD_ChallengeQueryOperator;
1860
+ exports.OrganizationId = OrganizationId;
1861
+ exports.OtpCode = OtpCode;
1862
+ exports.P2Signature = P2Signature;
1863
+ exports.PERSONAL_INFORMATION_FIELDS = PERSONAL_INFORMATION_FIELDS;
1864
+ exports.POLKADOT_CHAIN_IDS = POLKADOT_CHAIN_IDS;
1865
+ exports.POLKADOT_CHAIN_NAMES = POLKADOT_CHAIN_NAMES;
1866
+ exports.POLKADOT_CHAIN_NAMES_LIST = POLKADOT_CHAIN_NAMES_LIST;
1867
+ exports.POLYGON_NETWORK_NAMES = POLYGON_NETWORK_NAMES;
1868
+ exports.PUBLIC_SERVICES_SCHEMA_MAP = PUBLIC_SERVICES_SCHEMA_MAP;
1869
+ exports.PartialQueryConfigSimplified = PartialQueryConfigSimplified;
1870
+ exports.PersonalInformationFieldsIdentityDocuments = PersonalInformationFieldsIdentityDocuments;
1871
+ exports.PolkadotAddress = PolkadotAddress;
1872
+ exports.PolkadotChainId = PolkadotChainId;
1873
+ exports.PolkadotSignature = PolkadotSignature;
1874
+ exports.PolygonIdInitialized = PolygonIdInitialized;
1875
+ exports.PolygonIdRequest = PolygonIdRequest;
1876
+ exports.PolygonIdRequestData = PolygonIdRequestData;
1877
+ exports.PolygonIdResponse = PolygonIdResponse;
1878
+ exports.PolygonIdResponseData = PolygonIdResponseData;
1879
+ exports.PolygonNetworkNames = PolygonNetworkNames;
1880
+ exports.PrivacyPreservingMonitoring = PrivacyPreservingMonitoring;
1881
+ exports.PrivateKey = PrivateKey;
1882
+ exports.ProofData = ProofData;
1883
+ exports.PublicKey = PublicKey;
1884
+ exports.QUERY_LOGIC_OPERATOR = QUERY_LOGIC_OPERATOR;
1885
+ exports.QrCodeLinkWithSchemaType = QrCodeLinkWithSchemaType;
1886
+ exports.QueryConfigSimplified = QueryConfigSimplified;
1887
+ exports.QueryId = QueryId;
1888
+ exports.QueryLogicOperator = QueryLogicOperator;
1889
+ exports.QueryPrefix = QueryPrefix;
1890
+ exports.RequiredDataRowSchema = RequiredDataRowSchema;
1891
+ exports.RequiredVerificationData = RequiredVerificationData;
1892
+ exports.RuleEngineResponse = RuleEngineResponse;
1893
+ exports.RuleEngineScenarioExecutionData = RuleEngineScenarioExecutionData;
1894
+ exports.RuleResultStatus = RuleResultStatus;
1895
+ exports.RuleResultStatusLabels = RuleResultStatusLabels;
1896
+ exports.RuleResultStatuses = RuleResultStatuses;
1897
+ exports.SCENARIO_AUTHORIZATION_STATUSES = SCENARIO_AUTHORIZATION_STATUSES;
1898
+ exports.SOLANA_CHAIN_IDS = SOLANA_CHAIN_IDS;
1899
+ exports.SOLANA_CHAIN_NAMES = SOLANA_CHAIN_NAMES;
1900
+ exports.SOLANA_CHAIN_NAMES_LIST = SOLANA_CHAIN_NAMES_LIST;
1901
+ exports.STRING_OPERATORS = STRING_OPERATORS;
1902
+ exports.SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH = SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH;
1903
+ exports.SUPPORTED_TYPES = SUPPORTED_TYPES;
1904
+ exports.Scenario = Scenario;
1905
+ exports.ScenarioAuthorizationData = ScenarioAuthorizationData;
1906
+ exports.ScenarioAuthorizationStatus = ScenarioAuthorizationStatus;
1907
+ exports.ScenarioExecutionData = ScenarioExecutionData;
1908
+ exports.ScenarioExecutionNotification = ScenarioExecutionNotification;
1909
+ exports.ScenarioExecutionResponse = ScenarioExecutionResponse;
1910
+ exports.ScenarioId = ScenarioId;
1911
+ exports.ScenarioPrefix = ScenarioPrefix;
1912
+ exports.ScenarioType = ScenarioType;
1913
+ exports.ScenarioTypes = ScenarioTypes;
1914
+ exports.SdkVerificationOutput = SdkVerificationOutput;
1915
+ exports.SdkVerificationResponseSchema = SdkVerificationResponseSchema;
1916
+ exports.SendTransactionRequest = SendTransactionRequest;
1917
+ exports.SignatureRequest = SignatureRequest;
1918
+ exports.SignatureResponse = SignatureResponse;
1919
+ exports.SimplifiedCredential = SimplifiedCredential;
1920
+ exports.SolanaChainId = SolanaChainId;
1921
+ exports.SpSignature = SpSignature;
1922
+ exports.StarknetAddress = StarknetAddress;
1923
+ exports.StarknetChainId = StarknetChainId;
1924
+ exports.StarknetSignature = StarknetSignature;
1925
+ exports.StartCompletedNotification = StartCompletedNotification;
1926
+ exports.StartFlowRequest = StartFlowRequest;
1927
+ exports.StorageId = StorageId;
1928
+ exports.StoragePrefix = StoragePrefix;
1929
+ exports.String0x = String0x;
1930
+ exports.StringOperator = StringOperator;
1931
+ exports.SupportedBlockchainNamespaceForSignatureAuth = SupportedBlockchainNamespaceForSignatureAuth;
1932
+ exports.SupportedType = SupportedType;
1933
+ exports.SupportedTypes = SupportedTypes;
1934
+ exports.TagId = TagId;
1935
+ exports.TagPrefix = TagPrefix;
1936
+ exports.TagsToTransactionReviewsId = TagsToTransactionReviewsId;
1937
+ exports.TagsToTransactionReviewsPrefix = TagsToTransactionReviewsPrefix;
1938
+ exports.TemplateScenario = TemplateScenario;
1939
+ exports.TestId = TestId;
1940
+ exports.TestPrefix = TestPrefix;
1941
+ exports.TezosAddress = TezosAddress;
1942
+ exports.TezosChainId = TezosChainId;
1943
+ exports.TezosContractAddress = TezosContractAddress;
1944
+ exports.TezosEntrypointName = TezosEntrypointName;
1945
+ exports.TezosImplicitAddress = TezosImplicitAddress;
1946
+ exports.TezosSignature = TezosSignature;
1947
+ exports.TezosTxAuthInput = TezosTxAuthInput;
1948
+ exports.TezosTxAuthInputJsSdk = TezosTxAuthInputJsSdk;
1949
+ exports.TezosTxSignatureResponse = TezosTxSignatureResponse;
1950
+ exports.TransactionAddressesId = TransactionAddressesId;
1951
+ exports.TransactionAddressesPrefix = TransactionAddressesPrefix;
1952
+ exports.TransactionAmountId = TransactionAmountId;
1953
+ exports.TransactionAmountPrefix = TransactionAmountPrefix;
1954
+ exports.TransactionData = TransactionData;
1955
+ exports.TransactionExtractedInfosId = TransactionExtractedInfosId;
1956
+ exports.TransactionExtractedInfosPrefix = TransactionExtractedInfosPrefix;
1957
+ exports.TransactionFeesId = TransactionFeesId;
1958
+ exports.TransactionFeesPrefix = TransactionFeesPrefix;
1959
+ exports.TransactionId = TransactionId;
1960
+ exports.TransactionInfosId = TransactionInfosId;
1961
+ exports.TransactionInfosPrefix = TransactionInfosPrefix;
1962
+ exports.TransactionMethodExtractedInfosId = TransactionMethodExtractedInfosId;
1963
+ exports.TransactionMethodExtractedInfosPrefix = TransactionMethodExtractedInfosPrefix;
1964
+ exports.TransactionMethodsId = TransactionMethodsId;
1965
+ exports.TransactionMethodsPrefix = TransactionMethodsPrefix;
1966
+ exports.TransactionPartiesId = TransactionPartiesId;
1967
+ exports.TransactionPartiesPrefix = TransactionPartiesPrefix;
1968
+ exports.TransactionPrefix = TransactionPrefix;
1969
+ exports.TransactionResponse = TransactionResponse;
1970
+ exports.TransactionReviewId = TransactionReviewId;
1971
+ exports.TransactionReviewPrefix = TransactionReviewPrefix;
1972
+ exports.TxAuthDataSignatureGatingError = TxAuthDataSignatureGatingError;
1973
+ exports.TxAuthDataSignatureGatingRequest = TxAuthDataSignatureGatingRequest;
1974
+ exports.TxAuthDataSignatureResponse = TxAuthDataSignatureResponse;
1975
+ exports.TxAuthInput = TxAuthInput;
1976
+ exports.TxHash = TxHash;
1977
+ exports.TxSignatureResponse = TxSignatureResponse;
1978
+ exports.UuidString = UuidString;
1979
+ exports.VerifiableCredential = VerifiableCredential;
1980
+ exports.VerificationMode = VerificationMode;
1981
+ exports.VerificationModes = VerificationModes;
1982
+ exports.VerificationOutput = VerificationOutput;
1983
+ exports.VerificationSessionStatus = VerificationSessionStatus;
1984
+ exports.VerificationSessionStatuses = VerificationSessionStatuses;
1985
+ exports.VerifyWalletChallengeRequest = VerifyWalletChallengeRequest;
1986
+ exports.WalletId = WalletId;
1987
+ exports.WalletPrefix = WalletPrefix;
1988
+ exports.WalletSignResponse = WalletSignResponse;
1989
+ exports.WalletSignatureResponse = WalletSignatureResponse;
1990
+ exports.Web2CreateSessionParams = Web2CreateSessionParams;
1991
+ exports.WorkflowId = WorkflowId;
1992
+ exports.WorkflowSessionAttributeId = WorkflowSessionAttributeId;
1993
+ exports.WorkflowSessionAttributePrefix = WorkflowSessionAttributePrefix;
1994
+ exports.WorkflowSessionId = WorkflowSessionId;
1995
+ exports.WorkspaceId = WorkspaceId;
1996
+ exports.ZKPOperator = ZKPOperator;
1997
+ exports.ZKPRequest = ZKPRequest;
1998
+ exports.ZKPRequestFromZKVerifier = ZKPRequestFromZKVerifier;
1999
+ exports.ZeroKnowledgeProofRequest = ZeroKnowledgeProofRequest;
2000
+ exports.ZeroKnowledgeProofResponse = ZeroKnowledgeProofResponse;
2001
+ exports._defineProperty = _defineProperty;
2002
+ exports.createBrandedSchemaId = createBrandedSchemaId;
2003
+ exports.generateId = generateId;
2004
+ exports.getCredentialName = getCredentialName;
2005
+ exports.getOldCredentialPath = getOldCredentialPath;
2006
+ exports.getOldCredentialType = getOldCredentialType;
2007
+ exports.isValidAddress = isValidAddress;
2008
+ exports.oldCredentialPathToDataLink = oldCredentialPathToDataLink;
2009
+ exports.operatorDisplayMap = operatorDisplayMap;
2010
+ exports.parseIden3Message = parseIden3Message;
2011
+ exports.parseSessionIdFromUrl = parseSessionIdFromUrl;
2012
+ exports.shortBlockchainAddress = shortBlockchainAddress;