@nexeraid/identity-schemas 2.77.0-dev → 2.79.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{CoinMarketCap.schema-32e2c7da.cjs.prod.cjs → CoinMarketCap.schema-898f7352.cjs.prod.cjs} +2 -2
  2. package/dist/{CoinMarketCap.schema-184b8dba.esm.mjs → CoinMarketCap.schema-9ed30efb.esm.mjs} +2 -2
  3. package/dist/{CoinMarketCap.schema-e32b532c.cjs.dev.cjs → CoinMarketCap.schema-cb2cb990.cjs.dev.cjs} +2 -2
  4. package/dist/declarations/src/vault/schemas/generated/Transaction.schema.json.d.ts +818 -0
  5. package/dist/declarations/src/vault/schemas/generated/Transaction.type.d.ts +21 -0
  6. package/dist/declarations/src/vault/schemas/generated/Transaction.type.d.ts.map +1 -1
  7. package/dist/declarations/src/vault/vault.schema.d.ts +165 -0
  8. package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
  9. package/dist/{identity-api.schema-ea5b7e85.cjs.prod.cjs → identity-api.schema-281e27f8.cjs.prod.cjs} +1 -1
  10. package/dist/{identity-api.schema-78cad570.cjs.dev.cjs → identity-api.schema-924918d6.cjs.dev.cjs} +1 -1
  11. package/dist/{identity-api.schema-a2ca36c1.esm.mjs → identity-api.schema-a1e12180.esm.mjs} +1 -1
  12. package/dist/nexeraid-identity-schemas.cjs.dev.cjs +3 -3
  13. package/dist/nexeraid-identity-schemas.cjs.prod.cjs +3 -3
  14. package/dist/nexeraid-identity-schemas.esm.mjs +4 -4
  15. package/dist/package.json +1 -1
  16. package/dist/{tfhe-utilities-17dfb556.cjs.prod.cjs → tfhe-utilities-791a7163.cjs.prod.cjs} +2 -2
  17. package/dist/{tfhe-utilities-180e4ba0.cjs.dev.cjs → tfhe-utilities-dadd90dd.cjs.dev.cjs} +2 -2
  18. package/dist/{tfhe-utilities-2ff3db73.esm.mjs → tfhe-utilities-ec01285b.esm.mjs} +2 -2
  19. package/dist/{vault.schema-4acec510.esm.mjs → vault.schema-1731457a.esm.mjs} +1034 -186
  20. package/dist/{vault.schema-01e66371.cjs.prod.cjs → vault.schema-2462a106.cjs.prod.cjs} +1034 -186
  21. package/dist/{vault.schema-f3a557c2.cjs.dev.cjs → vault.schema-bcad47da.cjs.dev.cjs} +1034 -186
  22. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
  23. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
  24. package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
  25. package/package.json +1 -1
  26. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +3 -3
  27. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +3 -3
  28. package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
  29. package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +1 -1
  30. package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +1 -1
  31. package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +1 -1
  32. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
  33. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
  34. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
  35. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +3 -3
  36. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +3 -3
  37. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +4 -4
@@ -3803,8 +3803,8 @@ var SUMSUB_REVIEW_ANSWERS = ["GREEN", "RED", "YELLOW"];
3803
3803
  var SumSubReviewAnswer = zod.z["enum"](SUMSUB_REVIEW_ANSWERS);
3804
3804
  var SUMSUB_REVIEW_REJECT_TYPES = ["FINAL", "RETRY"];
3805
3805
  var SumSubReviewRejectType = zod.z["enum"](SUMSUB_REVIEW_REJECT_TYPES);
3806
- var AML_RESULTS = ["AML Hits", "PEP Hits", "Sanction Hits", "Adverse Media"];
3807
- var AmlResults = zod.z["enum"](AML_RESULTS);
3806
+ var AML_RESULTS$1 = ["AML Hits", "PEP Hits", "Sanction Hits", "Adverse Media"];
3807
+ var AmlResults$1 = zod.z["enum"](AML_RESULTS$1);
3808
3808
  var WALLET_SCREENING_RISK_SCORE = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
3809
3809
  zod.z["enum"](WALLET_SCREENING_RISK_SCORE);
3810
3810
  var DETECTED_DUPLICATES = ["Duplicate hit"];
@@ -3827,7 +3827,7 @@ var CustomerZodSchema = zod.z.object({
3827
3827
  idInformationRejectType: SumSubReviewRejectType.optional()
3828
3828
  }).optional(),
3829
3829
  amlScreening: zod.z.object({
3830
- amlResults: AmlResults.array().optional()
3830
+ amlResults: AmlResults$1.array().optional()
3831
3831
  }).optional(),
3832
3832
  duplicates: zod.z.object({
3833
3833
  detectedDuplicates: DetectedDuplicates.array().optional()
@@ -9921,188 +9921,1036 @@ var TransactionJsonSchema = {
9921
9921
  }
9922
9922
  },
9923
9923
  additionalProperties: false
9924
- }
9925
- },
9926
- additionalProperties: false
9927
- }
9928
- },
9929
- $schema: "http://json-schema.org/draft-07/schema#"
9930
- };
9931
-
9932
- var KycSessionZodSchema = zod.z.object({
9933
- vcs: zod.z.object({
9934
- // "v1" here refers the version of the credential schema
9935
- IDInformation: zod.z.object({
9936
- v1: IDInformationCredentialSchema
9937
- }).optional(),
9938
- IDImage: zod.z.object({
9939
- v1: IDImageCredentialSchema
9940
- }).optional(),
9941
- SelfieImage: zod.z.object({
9942
- v1: SelfieImageCredentialSchema
9943
- }).optional(),
9944
- ProofOfResidence: zod.z.object({
9945
- v1: ProofOfResidenceCredentialSchema
9946
- }).optional()
9947
- })
9948
- }).strict();
9949
-
9950
- var TfheZodSchema = zod.z.object({
9951
- encryptedData: zod.z.string(),
9952
- descriptor: zod.z.string()
9953
- }).strict();
9954
-
9955
- var TfheKycSessionZodSchema = zod.z.object({
9956
- vcs: zod.z.object({
9957
- // "v1" here refers the version of the credential schema
9958
- IDInformationTfhe: zod.z.object({
9959
- v1: IDInformationTfheCredentialSchema
9960
- })
9961
- })
9962
- }).strict();
9963
-
9964
- var TRANSACTION_CHARTS = ["totalAlerts", "alertsInProgress", "unassignedAlerts", "escalatedAlerts", "overdueAlerts", "avgTimeToCloseAlert", "volume", "transactions", "volumeEvolution", "transactionsEvolution", "assetVolume", "assetTransactions", "breakdownVolume", "breakdownTransaction", "breakdownVolumeByStatus", "breakdownTransactionsByStatus"];
9965
- var TransactionsChartType = zod.z["enum"](TRANSACTION_CHARTS);
9966
- var TRANSACTION_TABLE_COLUMNS = ["riskLevel", "id", "transactionHash", "dateTime", "type", "financeType", "amount", "customer", "counterparty", "tags", "status"];
9967
- var TransactionTableColumn = zod.z["enum"](TRANSACTION_TABLE_COLUMNS);
9968
- // Transaction Type
9969
- var TransactionTypes = ["crypto", "fiat"];
9970
- var TransactionType = zod.z["enum"](TransactionTypes);
9971
- // Transaction Type + all
9972
- var TransactionTypesWithAll = [].concat(TransactionTypes, ["all"]);
9973
- var TransactionTypeWithAll = zod.z["enum"](TransactionTypesWithAll);
9974
- // Transaction Risk level
9975
- var TransactionRiskLevels = ["Low", "Medium", "High", "No risk"];
9976
- var TransactionRiskLevel = zod.z["enum"](TransactionRiskLevels);
9977
- // TransactionReview Status
9978
- var TransactionReviewStatuses = ["pending", "approved", "under_investigation", "blocked", "failed"];
9979
- var TransactionReviewStatus = zod.z["enum"](TransactionReviewStatuses);
9980
- // TransactionReview Status mapped to be human readable (on the frontend)
9981
- var HumanReadableTransactionReviewStatuses = ["Approved", "Blocked", "Failed", "Under investigation", "Pending"];
9982
- var HumanReadableTransactionReviewStatus = zod.z["enum"](HumanReadableTransactionReviewStatuses);
9983
- var TransactionStatusMapping = {
9984
- pending: "Pending",
9985
- approved: "Approved",
9986
- under_investigation: "Under investigation",
9987
- blocked: "Blocked",
9988
- failed: "Failed"
9989
- };
9990
- var HumanReadableTransactionStatusMapping = {
9991
- Pending: "pending",
9992
- Approved: "approved",
9993
- "Under investigation": "under_investigation",
9994
- Blocked: "blocked",
9995
- Failed: "failed"
9996
- };
9997
-
9998
- // TransactionInfos Direction
9999
- var TransactionDirections = ["IN", "OUT", "EXCHANGE"];
10000
- var TransactionDirection = zod.z["enum"](TransactionDirections);
10001
- var TransactionCurrencyCodes = [].concat(_toConsumableArray(CurrencyCodes), _toConsumableArray(CryptoCodes));
10002
- var TransactionCurrencyCode = zod.z["enum"](TransactionCurrencyCodes);
10003
- // TransactionExtractedInfos Providers
10004
- var TransactionProviders = ["sumsub"];
10005
- var TransactionProvider = zod.z["enum"](TransactionProviders);
10006
- // PaymentMethods Type
10007
- var PaymentTypes = ["card", "account", "crypto"];
10008
- var PaymentType = zod.z["enum"](PaymentTypes);
10009
- // TransactionParties Type
10010
- var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
10011
- var TransactionPartiesType = zod.z["enum"](TransactionPartiesTypes);
10012
- var TransactionAmountsFieldNames = ["amount", "targetAmount", "networkFeeAmount", "platformFeeAmount", "transactionFeeAmount"];
10013
- var TransactionAmountsFieldName = zod.z["enum"](TransactionAmountsFieldNames);
10014
- var DEFAULT_FIAT_CURRENCY = "EUR";
10015
- var TRANSACTIONS_STATS_CURRENCIES = ["USD", "EUR", "GBP"];
10016
- var TransactionStatsCurrency = zod.z["enum"](TRANSACTIONS_STATS_CURRENCIES);
10017
- // TMS activity logs
10018
- var TransactionDataEventObject = zod.z.object({
10019
- transactionId: zod.z.string(),
10020
- customerId: zod.z.string(),
10021
- eventDate: zod.z.coerce.date(),
10022
- workflowName: zod.z.string().optional(),
10023
- workflowStep: zod.z.string().optional(),
10024
- sessionId: zod.z.string(),
10025
- topic: zod.z["enum"](["NEXERA_SSID_TRANSACTION_CREATED", "NEXERA_SSID_KYT_START", "NEXERA_SSID_KYT_RULE_FAILED", "NEXERA_SSID_KYT_RULE_SUCCESS", "NEXERA_SSID_KYT_RULE_SKIPPED", "NEXERA_SSID_KYT_AML"]),
10026
- scenario: zod.z.object({
10027
- name: zod.z.string().optional(),
10028
- status: zod.z.string().optional(),
10029
- rule: zod.z.string().optional()
10030
- }).optional()
10031
- });
10032
-
10033
- var TransactionStats = zod.z.object({
10034
- count: zod.z.number().optional(),
10035
- totalAmountUsd: zod.z.number().optional(),
10036
- maxAmountUsd: zod.z.number().optional()
10037
- });
10038
- var DecimalSchema = zod.z["instanceof"](Decimal__default["default"]).describe("decimal");
10039
- var PartySchema = zod.z.object({
10040
- countryOfResidence: ISO3CountryCode.optional(),
10041
- nationality: ISO3CountryCode.optional(),
10042
- riskScore: zod.z.number().optional(),
10043
- riskLevel: TransactionRiskLevel.optional(),
10044
- type: zod.z.string().optional(),
10045
- address: zod.z.string().optional()
10046
- }).optional();
10047
- var TransactionZodSchema = zod.z.object({
10048
- amount: zod.z.object({
10049
- USD: DecimalSchema.optional(),
10050
- EUR: DecimalSchema.optional(),
10051
- GBP: DecimalSchema.optional()
10052
- }).optional(),
10053
- event: zod.z.object({
10054
- transactionDate: zod.z.coerce.date().optional(),
10055
- amount: DecimalSchema.optional(),
10056
- riskScore: zod.z.number().optional(),
10057
- riskLevel: zod.z.string().optional(),
10058
- type: TransactionType.optional(),
10059
- assets: zod.z.array(zod.z.string()).optional()
10060
- }).optional(),
10061
- originator: PartySchema,
10062
- beneficiary: PartySchema,
10063
- transactionStats: zod.z.object({
10064
- last1D: TransactionStats.optional(),
10065
- last7D: TransactionStats.optional(),
10066
- last14D: TransactionStats.optional(),
10067
- last30D: TransactionStats.optional(),
10068
- yearToDate: TransactionStats.optional(),
10069
- monthToDate: TransactionStats.optional()
10070
- }).optional()
10071
- });
10072
-
10073
- var VaultJsonSchemas = {
10074
- Customer: CustomerJsonSchema,
10075
- KycSession: KycSessionJsonSchema,
10076
- Transaction: TransactionJsonSchema,
10077
- TfheKycSession: TfheKycSessionJsonSchema,
10078
- Tfhe: TfheJsonSchema
10079
- };
10080
- var VaultZodSchema = zod.z.object({
10081
- Customer: CustomerZodSchema,
10082
- KycSession: KycSessionZodSchema,
10083
- Transaction: TransactionZodSchema,
10084
- TfheKycSession: TfheKycSessionZodSchema,
10085
- Tfhe: TfheZodSchema
10086
- });
10087
- var VaultSchemaIdZodSchema = zod.z["enum"](Object.keys(VaultZodSchema.shape));
10088
- var VaultSchemaPathsZodSchema = zod.z["enum"](generateZodObjectPaths(VaultZodSchema));
10089
- var VaultPointerKeyMapZodSchema = zod.z.object({
10090
- Customer: zod.z.object({
10091
- customerId: zod.z.string(),
10092
- workflowSessionId: zod.z.string().optional(),
10093
- verificationMode: VerificationMode.optional()
10094
- }).strict(),
10095
- "Customer/walletScreening": zod.z.object({
10096
- customerId: zod.z.string(),
10097
- workflowSessionId: zod.z.string().optional(),
10098
- verificationMode: VerificationMode.optional()
10099
- }).strict(),
10100
- KycSession: zod.z.object({
10101
- customerId: zod.z.string(),
10102
- workflowSessionId: zod.z.string().optional() // if not provided, use the latest workflow session
10103
- }).strict(),
10104
- Transaction: zod.z.object({
10105
- transactionId: zod.z.string()
9924
+ },
9925
+ amlScreening: {
9926
+ type: "object",
9927
+ properties: {
9928
+ amlResults: {
9929
+ type: "array",
9930
+ items: {
9931
+ type: "string",
9932
+ "enum": [
9933
+ "AML Hits",
9934
+ "PEP Hits",
9935
+ "Sanction Hits",
9936
+ "Adverse Media"
9937
+ ]
9938
+ }
9939
+ }
9940
+ },
9941
+ additionalProperties: false
9942
+ },
9943
+ walletScreening: {
9944
+ type: "object",
9945
+ properties: {
9946
+ riskLevel: {
9947
+ type: "string",
9948
+ "enum": [
9949
+ "No Risk",
9950
+ "Low Risk",
9951
+ "Medium Risk",
9952
+ "High Risk",
9953
+ "Critical Risk"
9954
+ ]
9955
+ },
9956
+ riskScore: {
9957
+ type: "number",
9958
+ minimum: 0,
9959
+ maximum: 100
9960
+ },
9961
+ firstActive: {
9962
+ type: "number"
9963
+ },
9964
+ lastActive: {
9965
+ type: "number"
9966
+ },
9967
+ lastScreened: {
9968
+ type: "number"
9969
+ },
9970
+ entities: {
9971
+ type: "array",
9972
+ items: {
9973
+ type: "object",
9974
+ properties: {
9975
+ name: {
9976
+ type: "string"
9977
+ },
9978
+ entityType: {
9979
+ type: "string",
9980
+ "enum": [
9981
+ "ATM",
9982
+ "Airdrop",
9983
+ "Auctioned assets",
9984
+ "Bank",
9985
+ "Block reward",
9986
+ "Bot",
9987
+ "Child abuse",
9988
+ "Cloud mining",
9989
+ "Community reported scam",
9990
+ "Cross-chain Bridge Protocol",
9991
+ "Darkweb",
9992
+ "Decentralized service",
9993
+ "Dex",
9994
+ "Donations",
9995
+ "Exchange",
9996
+ "Gambling",
9997
+ "Hack",
9998
+ "ICO",
9999
+ "Ignored small amounts",
10000
+ "Investment management firm",
10001
+ "Large transaction",
10002
+ "Large unnamed entity",
10003
+ "Mining pool",
10004
+ "Mixing pattern",
10005
+ "Mixing service",
10006
+ "NFT Marketplace",
10007
+ "No entities found",
10008
+ "Ongoing legal action",
10009
+ "Payment Service Provider",
10010
+ "Payment channel",
10011
+ "Peeling chain of unknown origin",
10012
+ "Phishing",
10013
+ "Ransomware",
10014
+ "Real World Asset",
10015
+ "Sanction list",
10016
+ "Scam",
10017
+ "Seized assets",
10018
+ "Service",
10019
+ "Staking pool",
10020
+ "Suspicious",
10021
+ "Terrorism",
10022
+ "Token",
10023
+ "Token burning",
10024
+ "Token minting",
10025
+ "Unspent output",
10026
+ "Wallet",
10027
+ "OFAC sanction list",
10028
+ "Closed exchange",
10029
+ "Custom group"
10030
+ ]
10031
+ }
10032
+ },
10033
+ required: [
10034
+ "name",
10035
+ "entityType"
10036
+ ],
10037
+ additionalProperties: false
10038
+ }
10039
+ },
10040
+ blockchainsActive: {
10041
+ type: "array",
10042
+ items: {
10043
+ type: "string",
10044
+ "enum": [
10045
+ "BITCOIN",
10046
+ "ETHEREUM",
10047
+ "BITCOINCASH",
10048
+ "LITECOIN",
10049
+ "DASH",
10050
+ "RIPPLE",
10051
+ "TEZOS",
10052
+ "TRON",
10053
+ "BSC",
10054
+ "STELLAR",
10055
+ "CARDANO",
10056
+ "ZCASH",
10057
+ "MONERO",
10058
+ "SOLANA",
10059
+ "POLKADOT",
10060
+ "ICON",
10061
+ "DOGECOIN",
10062
+ "FILECOIN",
10063
+ "ARBITRUMONE",
10064
+ "COSMOS",
10065
+ "ALGORAND",
10066
+ "CELO",
10067
+ "POLYGON",
10068
+ "EOS",
10069
+ "ETHEREUMCLASSIC",
10070
+ "FLOW",
10071
+ "FANTOM",
10072
+ "MOONBEAM",
10073
+ "GROESTLCOIN",
10074
+ "INTERNETCOMPUTERPROTOCOL",
10075
+ "INJECTIVEPROTOCOL",
10076
+ "KUSAMA",
10077
+ "LISK",
10078
+ "TERRACLASSIC",
10079
+ "MOONRIVER",
10080
+ "NEARPROTOCOL",
10081
+ "BITCOINGOLD",
10082
+ "THORCHAIN",
10083
+ "SIACOIN",
10084
+ "ECREDITS",
10085
+ "BITCOINSV",
10086
+ "RADIX",
10087
+ "STACKS",
10088
+ "THETANETWORK",
10089
+ "VECHAIN",
10090
+ "VITE",
10091
+ "ZILLIQA",
10092
+ "NEM",
10093
+ "NEO",
10094
+ "VERGE",
10095
+ "AVALANCHE",
10096
+ "GNOSIS",
10097
+ "APTOS",
10098
+ "BNBBEACONCHAIN",
10099
+ "OPTIMISM",
10100
+ "VENIDIUM",
10101
+ "MULTIVERSX",
10102
+ "HARMONY",
10103
+ "TON",
10104
+ "WEMIX",
10105
+ "CRONOS",
10106
+ "AVALANCHEP-XCHAIN",
10107
+ "SUI",
10108
+ "METIS",
10109
+ "AETERNITY",
10110
+ "COTI",
10111
+ "CASPER",
10112
+ "CONSTELLATION",
10113
+ "ELECTRONEUM",
10114
+ "EVERSCALE",
10115
+ "DECENTRALIZEDPICTURES",
10116
+ "HEDERA",
10117
+ "CIRRUS",
10118
+ "HATHOR",
10119
+ "KADENA",
10120
+ "STRATIS",
10121
+ "IOST",
10122
+ "DIGIBYTE",
10123
+ "KOMODO",
10124
+ "RAVENCOIN",
10125
+ "TELOS",
10126
+ "DIGITALBITS",
10127
+ "NERVOS",
10128
+ "DIVI",
10129
+ "HIVE",
10130
+ "NANO",
10131
+ "XDCNETWORK",
10132
+ "FUSE",
10133
+ "ZKSYNC",
10134
+ "BOBA",
10135
+ "HECO",
10136
+ "PULSECHAIN",
10137
+ "BASE",
10138
+ "HELIUM",
10139
+ "DOGECHAIN",
10140
+ "KASPA",
10141
+ "MANTLE",
10142
+ "SEI",
10143
+ "COMDEX",
10144
+ "FIRO",
10145
+ "ECASH",
10146
+ "XDAG",
10147
+ "RONIN",
10148
+ "KLEVER",
10149
+ "BAHAMUT",
10150
+ "FLARE",
10151
+ "CELESTIA",
10152
+ "BNBOPTIMISTIC",
10153
+ "OSMOSIS",
10154
+ "MANTANETWORK",
10155
+ "CONFLUX",
10156
+ "IOTA",
10157
+ "STARKNET",
10158
+ "PARTISIA",
10159
+ "LINEA",
10160
+ "NIBIRUCHAIN",
10161
+ "DYDXCHAIN",
10162
+ "DYMENSION",
10163
+ "OKB",
10164
+ "POLYGONZKEVM",
10165
+ "LUMIA"
10166
+ ]
10167
+ }
10168
+ },
10169
+ countries: {
10170
+ type: "array",
10171
+ items: {
10172
+ type: "string",
10173
+ "enum": [
10174
+ "Afghanistan",
10175
+ "Åland Islands",
10176
+ "Albania",
10177
+ "Algeria",
10178
+ "American Samoa",
10179
+ "Andorra",
10180
+ "Angola",
10181
+ "Anguilla",
10182
+ "Antigua and Barbuda",
10183
+ "Argentina",
10184
+ "Armenia",
10185
+ "Aruba",
10186
+ "Australia",
10187
+ "Austria",
10188
+ "Azerbaijan",
10189
+ "Bahamas",
10190
+ "Bahrain",
10191
+ "Bangladesh",
10192
+ "Barbados",
10193
+ "Belarus",
10194
+ "Belgium",
10195
+ "Belize",
10196
+ "Benin",
10197
+ "Bermuda",
10198
+ "Bhutan",
10199
+ "Bolivia",
10200
+ "Bonaire, Sint Eustatius and Saba",
10201
+ "Bosnia-Herzegovina",
10202
+ "Botswana",
10203
+ "Brazil",
10204
+ "British Indian Ocean Territory",
10205
+ "British Virgin Islands",
10206
+ "Brunei Darussalam",
10207
+ "Bulgaria",
10208
+ "Burkina Faso",
10209
+ "Burundi",
10210
+ "Cambodia",
10211
+ "Cameroon",
10212
+ "Canada",
10213
+ "Cape Verde",
10214
+ "Cayman Islands",
10215
+ "Central African Rep",
10216
+ "Chad",
10217
+ "Chile",
10218
+ "China",
10219
+ "Christmas Island",
10220
+ "Cocos (Keeling) Islands",
10221
+ "Colombia",
10222
+ "Comoros",
10223
+ "Congo (Brazzaville)",
10224
+ "Congo, the Democratic Republic",
10225
+ "Cook Islands",
10226
+ "Costa Rica",
10227
+ "Cote D'Ivoire",
10228
+ "Croatia",
10229
+ "Cuba",
10230
+ "Curacao",
10231
+ "Cyprus",
10232
+ "Czech Republic",
10233
+ "Denmark",
10234
+ "Djibouti",
10235
+ "Dominica",
10236
+ "Dominican Republic",
10237
+ "Ecuador",
10238
+ "Egypt",
10239
+ "El Salvador",
10240
+ "Equatorial Guinea",
10241
+ "Eritrea",
10242
+ "Estonia",
10243
+ "Eswatini",
10244
+ "Ethiopia",
10245
+ "Falkland Islands (Malvinas)",
10246
+ "Faroe islands",
10247
+ "Fiji",
10248
+ "Finland",
10249
+ "France",
10250
+ "French Guiana",
10251
+ "French Polynesia",
10252
+ "Gabon",
10253
+ "Gambia",
10254
+ "Georgia",
10255
+ "Germany",
10256
+ "Ghana",
10257
+ "Gibraltar",
10258
+ "Greece",
10259
+ "Greenland",
10260
+ "Grenada",
10261
+ "Guadeloupe",
10262
+ "Guam",
10263
+ "Guatemala",
10264
+ "Guernsey",
10265
+ "Guinea",
10266
+ "Guinea Bissau",
10267
+ "Guyana",
10268
+ "Haiti",
10269
+ "Honduras",
10270
+ "Hong Kong",
10271
+ "Hungary",
10272
+ "Iceland",
10273
+ "India",
10274
+ "Indonesia",
10275
+ "Iran, Islamic Republic of",
10276
+ "Iraq",
10277
+ "Ireland",
10278
+ "Isle Of Man",
10279
+ "Israel",
10280
+ "Italy",
10281
+ "Jamaica",
10282
+ "Japan",
10283
+ "Jersey",
10284
+ "Jordan",
10285
+ "Kazakhstan",
10286
+ "Kenya",
10287
+ "Kiribati",
10288
+ "Kosovo",
10289
+ "Kuwait",
10290
+ "Kyrgyzstan",
10291
+ "Lao People's Democratic Republic",
10292
+ "Latvia",
10293
+ "Lebanon",
10294
+ "Lesotho",
10295
+ "Liberia",
10296
+ "Libya",
10297
+ "Liechtenstein",
10298
+ "Lithuania",
10299
+ "Luxembourg",
10300
+ "Macau",
10301
+ "Madagascar",
10302
+ "Malawi",
10303
+ "Malaysia",
10304
+ "Maldives",
10305
+ "Mali",
10306
+ "Malta",
10307
+ "Marshall Islands",
10308
+ "Martinique",
10309
+ "Mauritania",
10310
+ "Mauritius",
10311
+ "Mayotte",
10312
+ "Mexico",
10313
+ "Micronesia",
10314
+ "Moldova",
10315
+ "Monaco",
10316
+ "Mongolia",
10317
+ "Montenegro",
10318
+ "Montserrat",
10319
+ "Morocco",
10320
+ "Mozambique",
10321
+ "Myanmar",
10322
+ "Namibia",
10323
+ "Nauru",
10324
+ "Nepal",
10325
+ "Netherlands",
10326
+ "New Caledonia",
10327
+ "New Zealand",
10328
+ "Nicaragua",
10329
+ "Niger",
10330
+ "Nigeria",
10331
+ "Niue",
10332
+ "Norfolk Island",
10333
+ "North Korea",
10334
+ "North Macedonia",
10335
+ "North Mariana Islands",
10336
+ "Norway",
10337
+ "Oman",
10338
+ "Pakistan",
10339
+ "Palau",
10340
+ "Palestine, State of",
10341
+ "Panama",
10342
+ "Papua New Guinea",
10343
+ "Paraguay",
10344
+ "Peru",
10345
+ "Philippines",
10346
+ "Pitcairn",
10347
+ "Poland",
10348
+ "Portugal",
10349
+ "Puerto Rico",
10350
+ "Qatar",
10351
+ "Réunion",
10352
+ "Romania",
10353
+ "Russian Federation",
10354
+ "Rwanda",
10355
+ "Saint Barthélemy",
10356
+ "Saint Helena, Ascension and Tristan",
10357
+ "Saint Kitts & Nevis",
10358
+ "Saint Lucia",
10359
+ "Saint Maarten",
10360
+ "Saint Martin (French part)",
10361
+ "Saint Pierre and Miquelon",
10362
+ "Saint Vincent & Grenadines",
10363
+ "Samoa",
10364
+ "San Marino",
10365
+ "Sao Tome & Prin.",
10366
+ "Saudi Arabia",
10367
+ "Senegal",
10368
+ "Serbia",
10369
+ "Seychelles",
10370
+ "Sierra Leone",
10371
+ "Singapore",
10372
+ "Slovakia",
10373
+ "Slovenia",
10374
+ "Solomon Islands",
10375
+ "Somalia",
10376
+ "South Africa",
10377
+ "South Korea",
10378
+ "South Sudan",
10379
+ "Spain",
10380
+ "Sri Lanka",
10381
+ "Sudan",
10382
+ "Suriname",
10383
+ "Svalbard and Mayen",
10384
+ "Sweden",
10385
+ "Switzerland",
10386
+ "Syria",
10387
+ "Taiwan",
10388
+ "Tajikistan",
10389
+ "Tanzania",
10390
+ "Thailand",
10391
+ "Timor-Leste",
10392
+ "Togo",
10393
+ "Tokelau",
10394
+ "Tonga",
10395
+ "Trinidad & Tobago",
10396
+ "Tunisia",
10397
+ "Turkey",
10398
+ "Turkmenistan",
10399
+ "Turks & Caicos",
10400
+ "Tuvalu",
10401
+ "Uganda",
10402
+ "Ukraine",
10403
+ "United Arab Emirates",
10404
+ "United Kingdom",
10405
+ "United States",
10406
+ "United States Virgin Islands",
10407
+ "Uruguay",
10408
+ "Uzbekistan",
10409
+ "Vanuatu",
10410
+ "Vatican City State (Holy See)",
10411
+ "Venezuela",
10412
+ "Vietnam",
10413
+ "Wallis and Futuna",
10414
+ "Western Sahara",
10415
+ "Yemen",
10416
+ "Zambia",
10417
+ "Zimbabwe",
10418
+ "Undefined",
10419
+ "Netherlands Antiles",
10420
+ "Antarctica",
10421
+ "Bouvet Island",
10422
+ "French Southern Territories",
10423
+ "Heard Island & Mcdonald Islands",
10424
+ "South Georgia And Sandwich Isl.",
10425
+ "United States Outlying Islands"
10426
+ ]
10427
+ }
10428
+ },
10429
+ relatedCountries: {
10430
+ type: "array",
10431
+ items: {
10432
+ type: "string",
10433
+ "enum": [
10434
+ "Afghanistan",
10435
+ "Åland Islands",
10436
+ "Albania",
10437
+ "Algeria",
10438
+ "American Samoa",
10439
+ "Andorra",
10440
+ "Angola",
10441
+ "Anguilla",
10442
+ "Antigua and Barbuda",
10443
+ "Argentina",
10444
+ "Armenia",
10445
+ "Aruba",
10446
+ "Australia",
10447
+ "Austria",
10448
+ "Azerbaijan",
10449
+ "Bahamas",
10450
+ "Bahrain",
10451
+ "Bangladesh",
10452
+ "Barbados",
10453
+ "Belarus",
10454
+ "Belgium",
10455
+ "Belize",
10456
+ "Benin",
10457
+ "Bermuda",
10458
+ "Bhutan",
10459
+ "Bolivia",
10460
+ "Bonaire, Sint Eustatius and Saba",
10461
+ "Bosnia-Herzegovina",
10462
+ "Botswana",
10463
+ "Brazil",
10464
+ "British Indian Ocean Territory",
10465
+ "British Virgin Islands",
10466
+ "Brunei Darussalam",
10467
+ "Bulgaria",
10468
+ "Burkina Faso",
10469
+ "Burundi",
10470
+ "Cambodia",
10471
+ "Cameroon",
10472
+ "Canada",
10473
+ "Cape Verde",
10474
+ "Cayman Islands",
10475
+ "Central African Rep",
10476
+ "Chad",
10477
+ "Chile",
10478
+ "China",
10479
+ "Christmas Island",
10480
+ "Cocos (Keeling) Islands",
10481
+ "Colombia",
10482
+ "Comoros",
10483
+ "Congo (Brazzaville)",
10484
+ "Congo, the Democratic Republic",
10485
+ "Cook Islands",
10486
+ "Costa Rica",
10487
+ "Cote D'Ivoire",
10488
+ "Croatia",
10489
+ "Cuba",
10490
+ "Curacao",
10491
+ "Cyprus",
10492
+ "Czech Republic",
10493
+ "Denmark",
10494
+ "Djibouti",
10495
+ "Dominica",
10496
+ "Dominican Republic",
10497
+ "Ecuador",
10498
+ "Egypt",
10499
+ "El Salvador",
10500
+ "Equatorial Guinea",
10501
+ "Eritrea",
10502
+ "Estonia",
10503
+ "Eswatini",
10504
+ "Ethiopia",
10505
+ "Falkland Islands (Malvinas)",
10506
+ "Faroe islands",
10507
+ "Fiji",
10508
+ "Finland",
10509
+ "France",
10510
+ "French Guiana",
10511
+ "French Polynesia",
10512
+ "Gabon",
10513
+ "Gambia",
10514
+ "Georgia",
10515
+ "Germany",
10516
+ "Ghana",
10517
+ "Gibraltar",
10518
+ "Greece",
10519
+ "Greenland",
10520
+ "Grenada",
10521
+ "Guadeloupe",
10522
+ "Guam",
10523
+ "Guatemala",
10524
+ "Guernsey",
10525
+ "Guinea",
10526
+ "Guinea Bissau",
10527
+ "Guyana",
10528
+ "Haiti",
10529
+ "Honduras",
10530
+ "Hong Kong",
10531
+ "Hungary",
10532
+ "Iceland",
10533
+ "India",
10534
+ "Indonesia",
10535
+ "Iran, Islamic Republic of",
10536
+ "Iraq",
10537
+ "Ireland",
10538
+ "Isle Of Man",
10539
+ "Israel",
10540
+ "Italy",
10541
+ "Jamaica",
10542
+ "Japan",
10543
+ "Jersey",
10544
+ "Jordan",
10545
+ "Kazakhstan",
10546
+ "Kenya",
10547
+ "Kiribati",
10548
+ "Kosovo",
10549
+ "Kuwait",
10550
+ "Kyrgyzstan",
10551
+ "Lao People's Democratic Republic",
10552
+ "Latvia",
10553
+ "Lebanon",
10554
+ "Lesotho",
10555
+ "Liberia",
10556
+ "Libya",
10557
+ "Liechtenstein",
10558
+ "Lithuania",
10559
+ "Luxembourg",
10560
+ "Macau",
10561
+ "Madagascar",
10562
+ "Malawi",
10563
+ "Malaysia",
10564
+ "Maldives",
10565
+ "Mali",
10566
+ "Malta",
10567
+ "Marshall Islands",
10568
+ "Martinique",
10569
+ "Mauritania",
10570
+ "Mauritius",
10571
+ "Mayotte",
10572
+ "Mexico",
10573
+ "Micronesia",
10574
+ "Moldova",
10575
+ "Monaco",
10576
+ "Mongolia",
10577
+ "Montenegro",
10578
+ "Montserrat",
10579
+ "Morocco",
10580
+ "Mozambique",
10581
+ "Myanmar",
10582
+ "Namibia",
10583
+ "Nauru",
10584
+ "Nepal",
10585
+ "Netherlands",
10586
+ "New Caledonia",
10587
+ "New Zealand",
10588
+ "Nicaragua",
10589
+ "Niger",
10590
+ "Nigeria",
10591
+ "Niue",
10592
+ "Norfolk Island",
10593
+ "North Korea",
10594
+ "North Macedonia",
10595
+ "North Mariana Islands",
10596
+ "Norway",
10597
+ "Oman",
10598
+ "Pakistan",
10599
+ "Palau",
10600
+ "Palestine, State of",
10601
+ "Panama",
10602
+ "Papua New Guinea",
10603
+ "Paraguay",
10604
+ "Peru",
10605
+ "Philippines",
10606
+ "Pitcairn",
10607
+ "Poland",
10608
+ "Portugal",
10609
+ "Puerto Rico",
10610
+ "Qatar",
10611
+ "Réunion",
10612
+ "Romania",
10613
+ "Russian Federation",
10614
+ "Rwanda",
10615
+ "Saint Barthélemy",
10616
+ "Saint Helena, Ascension and Tristan",
10617
+ "Saint Kitts & Nevis",
10618
+ "Saint Lucia",
10619
+ "Saint Maarten",
10620
+ "Saint Martin (French part)",
10621
+ "Saint Pierre and Miquelon",
10622
+ "Saint Vincent & Grenadines",
10623
+ "Samoa",
10624
+ "San Marino",
10625
+ "Sao Tome & Prin.",
10626
+ "Saudi Arabia",
10627
+ "Senegal",
10628
+ "Serbia",
10629
+ "Seychelles",
10630
+ "Sierra Leone",
10631
+ "Singapore",
10632
+ "Slovakia",
10633
+ "Slovenia",
10634
+ "Solomon Islands",
10635
+ "Somalia",
10636
+ "South Africa",
10637
+ "South Korea",
10638
+ "South Sudan",
10639
+ "Spain",
10640
+ "Sri Lanka",
10641
+ "Sudan",
10642
+ "Suriname",
10643
+ "Svalbard and Mayen",
10644
+ "Sweden",
10645
+ "Switzerland",
10646
+ "Syria",
10647
+ "Taiwan",
10648
+ "Tajikistan",
10649
+ "Tanzania",
10650
+ "Thailand",
10651
+ "Timor-Leste",
10652
+ "Togo",
10653
+ "Tokelau",
10654
+ "Tonga",
10655
+ "Trinidad & Tobago",
10656
+ "Tunisia",
10657
+ "Turkey",
10658
+ "Turkmenistan",
10659
+ "Turks & Caicos",
10660
+ "Tuvalu",
10661
+ "Uganda",
10662
+ "Ukraine",
10663
+ "United Arab Emirates",
10664
+ "United Kingdom",
10665
+ "United States",
10666
+ "United States Virgin Islands",
10667
+ "Uruguay",
10668
+ "Uzbekistan",
10669
+ "Vanuatu",
10670
+ "Vatican City State (Holy See)",
10671
+ "Venezuela",
10672
+ "Vietnam",
10673
+ "Wallis and Futuna",
10674
+ "Western Sahara",
10675
+ "Yemen",
10676
+ "Zambia",
10677
+ "Zimbabwe",
10678
+ "Undefined",
10679
+ "Netherlands Antiles",
10680
+ "Antarctica",
10681
+ "Bouvet Island",
10682
+ "French Southern Territories",
10683
+ "Heard Island & Mcdonald Islands",
10684
+ "South Georgia And Sandwich Isl.",
10685
+ "United States Outlying Islands"
10686
+ ]
10687
+ }
10688
+ },
10689
+ relatedEntities: {
10690
+ type: "array",
10691
+ items: {
10692
+ type: "object",
10693
+ properties: {
10694
+ name: {
10695
+ type: "string"
10696
+ },
10697
+ entityType: {
10698
+ type: "string",
10699
+ "enum": [
10700
+ "ATM",
10701
+ "Airdrop",
10702
+ "Auctioned assets",
10703
+ "Bank",
10704
+ "Block reward",
10705
+ "Bot",
10706
+ "Child abuse",
10707
+ "Cloud mining",
10708
+ "Community reported scam",
10709
+ "Cross-chain Bridge Protocol",
10710
+ "Darkweb",
10711
+ "Decentralized service",
10712
+ "Dex",
10713
+ "Donations",
10714
+ "Exchange",
10715
+ "Gambling",
10716
+ "Hack",
10717
+ "ICO",
10718
+ "Ignored small amounts",
10719
+ "Investment management firm",
10720
+ "Large transaction",
10721
+ "Large unnamed entity",
10722
+ "Mining pool",
10723
+ "Mixing pattern",
10724
+ "Mixing service",
10725
+ "NFT Marketplace",
10726
+ "No entities found",
10727
+ "Ongoing legal action",
10728
+ "Payment Service Provider",
10729
+ "Payment channel",
10730
+ "Peeling chain of unknown origin",
10731
+ "Phishing",
10732
+ "Ransomware",
10733
+ "Real World Asset",
10734
+ "Sanction list",
10735
+ "Scam",
10736
+ "Seized assets",
10737
+ "Service",
10738
+ "Staking pool",
10739
+ "Suspicious",
10740
+ "Terrorism",
10741
+ "Token",
10742
+ "Token burning",
10743
+ "Token minting",
10744
+ "Unspent output",
10745
+ "Wallet",
10746
+ "OFAC sanction list",
10747
+ "Closed exchange",
10748
+ "Custom group"
10749
+ ]
10750
+ }
10751
+ },
10752
+ required: [
10753
+ "name",
10754
+ "entityType"
10755
+ ],
10756
+ additionalProperties: false
10757
+ }
10758
+ }
10759
+ },
10760
+ required: [
10761
+ "riskLevel"
10762
+ ],
10763
+ additionalProperties: false
10764
+ }
10765
+ },
10766
+ additionalProperties: false
10767
+ }
10768
+ },
10769
+ $schema: "http://json-schema.org/draft-07/schema#"
10770
+ };
10771
+
10772
+ var KycSessionZodSchema = zod.z.object({
10773
+ vcs: zod.z.object({
10774
+ // "v1" here refers the version of the credential schema
10775
+ IDInformation: zod.z.object({
10776
+ v1: IDInformationCredentialSchema
10777
+ }).optional(),
10778
+ IDImage: zod.z.object({
10779
+ v1: IDImageCredentialSchema
10780
+ }).optional(),
10781
+ SelfieImage: zod.z.object({
10782
+ v1: SelfieImageCredentialSchema
10783
+ }).optional(),
10784
+ ProofOfResidence: zod.z.object({
10785
+ v1: ProofOfResidenceCredentialSchema
10786
+ }).optional()
10787
+ })
10788
+ }).strict();
10789
+
10790
+ var TfheZodSchema = zod.z.object({
10791
+ encryptedData: zod.z.string(),
10792
+ descriptor: zod.z.string()
10793
+ }).strict();
10794
+
10795
+ var TfheKycSessionZodSchema = zod.z.object({
10796
+ vcs: zod.z.object({
10797
+ // "v1" here refers the version of the credential schema
10798
+ IDInformationTfhe: zod.z.object({
10799
+ v1: IDInformationTfheCredentialSchema
10800
+ })
10801
+ })
10802
+ }).strict();
10803
+
10804
+ var TRANSACTION_CHARTS = ["totalAlerts", "alertsInProgress", "unassignedAlerts", "escalatedAlerts", "overdueAlerts", "avgTimeToCloseAlert", "volume", "transactions", "volumeEvolution", "transactionsEvolution", "assetVolume", "assetTransactions", "breakdownVolume", "breakdownTransaction", "breakdownVolumeByStatus", "breakdownTransactionsByStatus"];
10805
+ var TransactionsChartType = zod.z["enum"](TRANSACTION_CHARTS);
10806
+ var TRANSACTION_TABLE_COLUMNS = ["riskLevel", "id", "transactionHash", "dateTime", "type", "financeType", "amount", "customer", "counterparty", "tags", "status"];
10807
+ var TransactionTableColumn = zod.z["enum"](TRANSACTION_TABLE_COLUMNS);
10808
+ // Transaction Type
10809
+ var TransactionTypes = ["crypto", "fiat"];
10810
+ var TransactionType = zod.z["enum"](TransactionTypes);
10811
+ // Transaction Type + all
10812
+ var TransactionTypesWithAll = [].concat(TransactionTypes, ["all"]);
10813
+ var TransactionTypeWithAll = zod.z["enum"](TransactionTypesWithAll);
10814
+ // Transaction Risk level
10815
+ var TransactionRiskLevels = ["Low", "Medium", "High", "No risk"];
10816
+ var TransactionRiskLevel = zod.z["enum"](TransactionRiskLevels);
10817
+ // TransactionReview Status
10818
+ var TransactionReviewStatuses = ["pending", "approved", "under_investigation", "blocked", "failed"];
10819
+ var TransactionReviewStatus = zod.z["enum"](TransactionReviewStatuses);
10820
+ // TransactionReview Status mapped to be human readable (on the frontend)
10821
+ var HumanReadableTransactionReviewStatuses = ["Approved", "Blocked", "Failed", "Under investigation", "Pending"];
10822
+ var HumanReadableTransactionReviewStatus = zod.z["enum"](HumanReadableTransactionReviewStatuses);
10823
+ var TransactionStatusMapping = {
10824
+ pending: "Pending",
10825
+ approved: "Approved",
10826
+ under_investigation: "Under investigation",
10827
+ blocked: "Blocked",
10828
+ failed: "Failed"
10829
+ };
10830
+ var HumanReadableTransactionStatusMapping = {
10831
+ Pending: "pending",
10832
+ Approved: "approved",
10833
+ "Under investigation": "under_investigation",
10834
+ Blocked: "blocked",
10835
+ Failed: "failed"
10836
+ };
10837
+
10838
+ // TransactionInfos Direction
10839
+ var TransactionDirections = ["IN", "OUT", "EXCHANGE"];
10840
+ var TransactionDirection = zod.z["enum"](TransactionDirections);
10841
+ var TransactionCurrencyCodes = [].concat(_toConsumableArray(CurrencyCodes), _toConsumableArray(CryptoCodes));
10842
+ var TransactionCurrencyCode = zod.z["enum"](TransactionCurrencyCodes);
10843
+ // TransactionExtractedInfos Providers
10844
+ var TransactionProviders = ["sumsub"];
10845
+ var TransactionProvider = zod.z["enum"](TransactionProviders);
10846
+ // PaymentMethods Type
10847
+ var PaymentTypes = ["card", "account", "crypto"];
10848
+ var PaymentType = zod.z["enum"](PaymentTypes);
10849
+ // TransactionParties Type
10850
+ var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
10851
+ var TransactionPartiesType = zod.z["enum"](TransactionPartiesTypes);
10852
+ var TransactionAmountsFieldNames = ["amount", "targetAmount", "networkFeeAmount", "platformFeeAmount", "transactionFeeAmount"];
10853
+ var TransactionAmountsFieldName = zod.z["enum"](TransactionAmountsFieldNames);
10854
+ var DEFAULT_FIAT_CURRENCY = "EUR";
10855
+ var TRANSACTIONS_STATS_CURRENCIES = ["USD", "EUR", "GBP"];
10856
+ var TransactionStatsCurrency = zod.z["enum"](TRANSACTIONS_STATS_CURRENCIES);
10857
+ // TMS activity logs
10858
+ var TransactionDataEventObject = zod.z.object({
10859
+ transactionId: zod.z.string(),
10860
+ customerId: zod.z.string(),
10861
+ eventDate: zod.z.coerce.date(),
10862
+ workflowName: zod.z.string().optional(),
10863
+ workflowStep: zod.z.string().optional(),
10864
+ sessionId: zod.z.string(),
10865
+ topic: zod.z["enum"](["NEXERA_SSID_TRANSACTION_CREATED", "NEXERA_SSID_KYT_START", "NEXERA_SSID_KYT_RULE_FAILED", "NEXERA_SSID_KYT_RULE_SUCCESS", "NEXERA_SSID_KYT_RULE_SKIPPED", "NEXERA_SSID_KYT_AML"]),
10866
+ scenario: zod.z.object({
10867
+ name: zod.z.string().optional(),
10868
+ status: zod.z.string().optional(),
10869
+ rule: zod.z.string().optional()
10870
+ }).optional()
10871
+ });
10872
+
10873
+ var TransactionStats = zod.z.object({
10874
+ count: zod.z.number().optional(),
10875
+ totalAmountUsd: zod.z.number().optional(),
10876
+ maxAmountUsd: zod.z.number().optional()
10877
+ });
10878
+ var AML_RESULTS = ["AML Hits", "PEP Hits", "Sanction Hits", "Adverse Media"];
10879
+ var AmlResults = zod.z["enum"](AML_RESULTS);
10880
+ var DecimalSchema = zod.z["instanceof"](Decimal__default["default"]).describe("decimal");
10881
+ var PartySchema = zod.z.object({
10882
+ countryOfResidence: ISO3CountryCode.optional(),
10883
+ nationality: ISO3CountryCode.optional(),
10884
+ riskScore: zod.z.number().optional(),
10885
+ riskLevel: TransactionRiskLevel.optional(),
10886
+ type: zod.z.string().optional(),
10887
+ address: zod.z.string().optional()
10888
+ }).optional();
10889
+ var TransactionZodSchema = zod.z.object({
10890
+ amount: zod.z.object({
10891
+ USD: DecimalSchema.optional(),
10892
+ EUR: DecimalSchema.optional(),
10893
+ GBP: DecimalSchema.optional()
10894
+ }).optional(),
10895
+ event: zod.z.object({
10896
+ transactionDate: zod.z.coerce.date().optional(),
10897
+ amount: DecimalSchema.optional(),
10898
+ riskScore: zod.z.number().optional(),
10899
+ riskLevel: zod.z.string().optional(),
10900
+ type: TransactionType.optional(),
10901
+ assets: zod.z.array(zod.z.string()).optional()
10902
+ }).optional(),
10903
+ originator: PartySchema,
10904
+ beneficiary: PartySchema,
10905
+ transactionStats: zod.z.object({
10906
+ last1D: TransactionStats.optional(),
10907
+ last7D: TransactionStats.optional(),
10908
+ last14D: TransactionStats.optional(),
10909
+ last30D: TransactionStats.optional(),
10910
+ yearToDate: TransactionStats.optional(),
10911
+ monthToDate: TransactionStats.optional()
10912
+ }).optional(),
10913
+ amlScreening: zod.z.object({
10914
+ amlResults: AmlResults.array().optional()
10915
+ }).optional(),
10916
+ walletScreening: WalletScreeningData.optional()
10917
+ });
10918
+
10919
+ var VaultJsonSchemas = {
10920
+ Customer: CustomerJsonSchema,
10921
+ KycSession: KycSessionJsonSchema,
10922
+ Transaction: TransactionJsonSchema,
10923
+ TfheKycSession: TfheKycSessionJsonSchema,
10924
+ Tfhe: TfheJsonSchema
10925
+ };
10926
+ var VaultZodSchema = zod.z.object({
10927
+ Customer: CustomerZodSchema,
10928
+ KycSession: KycSessionZodSchema,
10929
+ Transaction: TransactionZodSchema,
10930
+ TfheKycSession: TfheKycSessionZodSchema,
10931
+ Tfhe: TfheZodSchema
10932
+ });
10933
+ var VaultSchemaIdZodSchema = zod.z["enum"](Object.keys(VaultZodSchema.shape));
10934
+ var VaultSchemaPathsZodSchema = zod.z["enum"](generateZodObjectPaths(VaultZodSchema));
10935
+ var VaultPointerKeyMapZodSchema = zod.z.object({
10936
+ Customer: zod.z.object({
10937
+ customerId: zod.z.string(),
10938
+ workflowSessionId: zod.z.string().optional(),
10939
+ verificationMode: VerificationMode.optional()
10940
+ }).strict(),
10941
+ "Customer/walletScreening": zod.z.object({
10942
+ customerId: zod.z.string(),
10943
+ workflowSessionId: zod.z.string().optional(),
10944
+ verificationMode: VerificationMode.optional()
10945
+ }).strict(),
10946
+ KycSession: zod.z.object({
10947
+ customerId: zod.z.string(),
10948
+ workflowSessionId: zod.z.string().optional() // if not provided, use the latest workflow session
10949
+ }).strict(),
10950
+ Transaction: zod.z.object({
10951
+ transactionId: zod.z.string(),
10952
+ workflowSessionId: zod.z.string().optional(),
10953
+ verificationMode: VerificationMode.optional()
10106
10954
  }),
10107
10955
  Tfhe: zod.z.object({
10108
10956
  organizationId: zod.z.string(),
@@ -10185,7 +11033,7 @@ exports.AiMessagePrefix = AiMessagePrefix;
10185
11033
  exports.AiStepId = AiStepId;
10186
11034
  exports.AiStepPrefix = AiStepPrefix;
10187
11035
  exports.Alpha2Country = Alpha2Country;
10188
- exports.AmlResults = AmlResults;
11036
+ exports.AmlResults = AmlResults$1;
10189
11037
  exports.AnalysisType = AnalysisType;
10190
11038
  exports.AppId = AppId;
10191
11039
  exports.AppPrefix = AppPrefix;