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