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