@nexeraid/identity-schemas 2.92.0-staging → 2.94.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 (53) hide show
  1. package/dist/{CoinMarketCap.schema-f941f584.esm.mjs → CoinMarketCap.schema-22fa7136.esm.mjs} +2 -2
  2. package/dist/{CoinMarketCap.schema-8c155e0d.cjs.dev.cjs → CoinMarketCap.schema-63b8b9d4.cjs.dev.cjs} +4 -4
  3. package/dist/{CoinMarketCap.schema-218d0159.cjs.prod.cjs → CoinMarketCap.schema-ae9b8952.cjs.prod.cjs} +4 -4
  4. package/dist/declarations/src/identity/app-requests.schema.d.ts +37 -37
  5. package/dist/declarations/src/identity/identity-v2.schema.d.ts +9 -9
  6. package/dist/declarations/src/identity/kyc.schema.d.ts +9 -9
  7. package/dist/declarations/src/identity/scenario.schema.d.ts +59 -59
  8. package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -1
  9. package/dist/declarations/src/identity-ids.schema.d.ts +6 -2
  10. package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
  11. package/dist/declarations/src/providers/index.d.ts +1 -0
  12. package/dist/declarations/src/providers/index.d.ts.map +1 -1
  13. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +37 -37
  14. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +1 -3
  15. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts.map +1 -1
  16. package/dist/declarations/src/providers/scorechain/scorechainRiskLevel.schema.d.ts +5 -0
  17. package/dist/declarations/src/providers/scorechain/scorechainRiskLevel.schema.d.ts.map +1 -0
  18. package/dist/declarations/src/vault/schemas/Customer.zod.d.ts +28 -0
  19. package/dist/declarations/src/vault/schemas/Customer.zod.d.ts.map +1 -1
  20. package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +38 -0
  21. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +6 -0
  22. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -1
  23. package/dist/declarations/src/vault/vault.schema.d.ts +48 -0
  24. package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
  25. package/dist/{identity-api.schema-631884b4.cjs.dev.cjs → identity-api.schema-4ed6a942.cjs.dev.cjs} +9 -106
  26. package/dist/{identity-api.schema-a5793eed.esm.mjs → identity-api.schema-9348634f.esm.mjs} +9 -87
  27. package/dist/{identity-api.schema-49bb28b1.cjs.prod.cjs → identity-api.schema-bf4a1b77.cjs.prod.cjs} +9 -106
  28. package/dist/nexeraid-identity-schemas.cjs.dev.cjs +24 -22
  29. package/dist/nexeraid-identity-schemas.cjs.prod.cjs +24 -22
  30. package/dist/nexeraid-identity-schemas.esm.mjs +4 -4
  31. package/dist/package.json +3 -3
  32. package/dist/{tfhe-utilities-8f915faa.cjs.prod.cjs → tfhe-utilities-0c007314.cjs.prod.cjs} +2 -2
  33. package/dist/{tfhe-utilities-35852daa.esm.mjs → tfhe-utilities-e0a1b383.esm.mjs} +2 -2
  34. package/dist/{tfhe-utilities-9a012c74.cjs.dev.cjs → tfhe-utilities-f5b97307.cjs.dev.cjs} +2 -2
  35. package/dist/{vault.schema-4f041ed1.cjs.dev.cjs → vault.schema-163fc0c4.cjs.prod.cjs} +164 -3
  36. package/dist/{vault.schema-7f773af4.cjs.prod.cjs → vault.schema-6eb2c2ba.cjs.dev.cjs} +164 -3
  37. package/dist/{vault.schema-a0de2905.esm.mjs → vault.schema-d15880eb.esm.mjs} +144 -4
  38. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
  39. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
  40. package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
  41. package/package.json +4 -4
  42. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +3 -3
  43. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +3 -3
  44. package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
  45. package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +1 -1
  46. package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +1 -1
  47. package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +1 -1
  48. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
  49. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
  50. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
  51. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +11 -11
  52. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +11 -11
  53. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +3 -3
@@ -2587,6 +2587,7 @@ var AppPrefix = "app";
2587
2587
  var ChallengePrefix = "challenge";
2588
2588
  var TestPrefix = "test";
2589
2589
  var CustomerScreeningPrefix = "cstscr";
2590
+ var SigGatingPrefix = "siggating";
2590
2591
  var TagPrefix = "tag";
2591
2592
  var ScorechainAnalysisPrefix = "scrchn";
2592
2593
 
@@ -2701,6 +2702,7 @@ var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
2701
2702
  var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
2702
2703
  var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
2703
2704
  var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
2705
+ var SigGatingId = createBrandedSchemaId("".concat(SigGatingPrefix, "_"));
2704
2706
  var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
2705
2707
  var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
2706
2708
 
@@ -3074,9 +3076,92 @@ var Web2CreateSessionParams = zod.z.object({
3074
3076
  additionalInformation: AdditionalCustomerInformationParams.optional()
3075
3077
  });
3076
3078
 
3079
+ // Risk Score
3080
+ var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
3081
+ var RiskScoreType = zod.z["enum"](RiskScoreTypes);
3082
+ // Customer Type
3083
+ var CustomerTypes = ["Individual", "Company"];
3084
+ var CustomerType = zod.z["enum"](CustomerTypes);
3085
+ // KYC Onboarding Level
3086
+ var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
3087
+ var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
3088
+ // KYB Onboarding Level
3089
+ var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
3090
+ var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
3091
+ var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
3092
+ var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
3093
+ // Customer Status
3094
+ var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
3095
+ var CustomerStatus = zod.z["enum"](CustomerStatuses);
3096
+ var BasicCustomerContactInformation = zod.z.object({
3097
+ email: zod.z.string().email(),
3098
+ phone: zod.z.string().min(4),
3099
+ twitter: zod.z.string(),
3100
+ discord: zod.z.string(),
3101
+ telegram: zod.z.string()
3102
+ }).partial();
3103
+ var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
3104
+ var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
3105
+ var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
3106
+ var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
3107
+ var CUSTOMER_AUTOMATION_REASONS = {
3108
+ "rule-engine": {
3109
+ fail: "Rules engine verification failed",
3110
+ pass: "Rules engine verification passed"
3111
+ },
3112
+ kyc: {
3113
+ green: {
3114
+ "final": "Passed KYC"
3115
+ },
3116
+ yellow: {
3117
+ retry: "User rejected by the KYC provider with possibility to retry",
3118
+ fail: "User rejected by the KYC provider"
3119
+ },
3120
+ red: {
3121
+ retry: "User rejected by the KYC provider with possibility to retry",
3122
+ fail: "User rejected by the KYC provider"
3123
+ }
3124
+ },
3125
+ kyb: {
3126
+ green: {
3127
+ "final": "Passed KYB"
3128
+ },
3129
+ yellow: {
3130
+ retry: "Company rejected by the KYB provider with possibility to retry",
3131
+ fail: "Company rejected by the KYB provider"
3132
+ },
3133
+ red: {
3134
+ retry: "Company rejected by the KYB provider with possibility to retry",
3135
+ fail: "Company rejected by the KYB provider"
3136
+ },
3137
+ beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
3138
+ },
3139
+ "aml-screening": {
3140
+ fail: "AML screening hits received during onboarding",
3141
+ ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
3142
+ pass: "Passed AML screening"
3143
+ },
3144
+ offchain_zkp: {
3145
+ fail: "Offchain ZKP verification failed",
3146
+ pass: "Offchain ZKP verification passed"
3147
+ },
3148
+ tfhe: {
3149
+ fail: "TFHE verification failed",
3150
+ pass: "TFHE verification passed"
3151
+ }
3152
+ };
3153
+ var CustomerPersonalInformation = zod.z.object({
3154
+ age: zod.z.number().optional(),
3155
+ nationality: ISO3CountryCode.optional(),
3156
+ residence: ISO3CountryCode.optional()
3157
+ });
3158
+
3077
3159
  var SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "STELLAR", "CARDANO", "ZCASH", "MONERO", "SOLANA", "POLKADOT", "ICON", "DOGECOIN", "FILECOIN", "ARBITRUMONE", "COSMOS", "ALGORAND", "CELO", "POLYGON", "EOS", "ETHEREUMCLASSIC", "FLOW", "FANTOM", "MOONBEAM", "GROESTLCOIN", "INTERNETCOMPUTERPROTOCOL", "INJECTIVEPROTOCOL", "KUSAMA", "LISK", "TERRACLASSIC", "MOONRIVER", "NEARPROTOCOL", "BITCOINGOLD", "THORCHAIN", "SIACOIN", "ECREDITS", "BITCOINSV", "RADIX", "STACKS", "THETANETWORK", "VECHAIN", "VITE", "ZILLIQA", "NEM", "NEO", "VERGE", "AVALANCHE", "GNOSIS", "APTOS", "BNBBEACONCHAIN", "OPTIMISM", "VENIDIUM", "MULTIVERSX", "HARMONY", "TON", "WEMIX", "CRONOS", "AVALANCHEP-XCHAIN", "SUI", "METIS", "AETERNITY", "COTI", "CASPER", "CONSTELLATION", "ELECTRONEUM", "EVERSCALE", "DECENTRALIZEDPICTURES", "HEDERA", "CIRRUS", "HATHOR", "KADENA", "STRATIS", "IOST", "DIGIBYTE", "KOMODO", "RAVENCOIN", "TELOS", "DIGITALBITS", "NERVOS", "DIVI", "HIVE", "NANO", "XDCNETWORK", "FUSE", "ZKSYNC", "BOBA", "HECO", "PULSECHAIN", "BASE", "HELIUM", "DOGECHAIN", "KASPA", "MANTLE", "SEI", "COMDEX", "FIRO", "ECASH", "XDAG", "RONIN", "KLEVER", "BAHAMUT", "FLARE", "CELESTIA", "BNBOPTIMISTIC", "OSMOSIS", "MANTANETWORK", "CONFLUX", "IOTA", "STARKNET", "PARTISIA", "LINEA", "NIBIRUCHAIN", "DYDXCHAIN", "DYMENSION", "OKB", "POLYGONZKEVM", "LUMIA"];
3078
3160
  var NON_MINIMAL_SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "SOLANA", "POLYGON", "AVALANCHE", "BASE", "TON"];
3079
3161
 
3162
+ var ScorechainWalletRiskLevels = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
3163
+ var ScorechainWalletRiskLevel = zod.z["enum"](ScorechainWalletRiskLevels);
3164
+
3080
3165
  var _ScorechainBlockchain;
3081
3166
 
3082
3167
  // based on https://tech-doc.api.scorechain.com/
@@ -3149,8 +3234,6 @@ var ScorechainBlockchainToNamespace = (_ScorechainBlockchain = {
3149
3234
  WEMIX: "bip122",
3150
3235
  CRONOS: "eip155"
3151
3236
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "AVALANCHEP-XCHAIN", "avax"), "SUI", "bip122"), "METIS", "eip155"), "AETERNITY", "bip122"), "COTI", "bip122"), "CASPER", "bip122"), "CONSTELLATION", "bip122"), "ELECTRONEUM", "bip122"), "EVERSCALE", "bip122"), "DECENTRALIZEDPICTURES", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "HEDERA", "bip122"), "CIRRUS", "bip122"), "HATHOR", "bip122"), "KADENA", "bip122"), "STRATIS", "bip122"), "IOST", "bip122"), "DIGIBYTE", "bip122"), "KOMODO", "bip122"), "RAVENCOIN", "bip122"), "TELOS", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "DIGITALBITS", "bip122"), "NERVOS", "bip122"), "DIVI", "bip122"), "HIVE", "bip122"), "NANO", "bip122"), "XDCNETWORK", "bip122"), "FUSE", "eip155"), "ZKSYNC", "eip155"), "BOBA", "eip155"), "HECO", "eip155"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "PULSECHAIN", "eip155"), "BASE", "eip155"), "HELIUM", "bip122"), "DOGECHAIN", "eip155"), "KASPA", "bip122"), "MANTLE", "eip155"), "SEI", "bip122"), "COMDEX", "bip122"), "FIRO", "bip122"), "ECASH", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "XDAG", "bip122"), "RONIN", "eip155"), "KLEVER", "bip122"), "BAHAMUT", "bip122"), "FLARE", "bip122"), "CELESTIA", "bip122"), "BNBOPTIMISTIC", "eip155"), "OSMOSIS", "cosmos"), "MANTANETWORK", "bip122"), "CONFLUX", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "IOTA", "bip122"), "STARKNET", "starknet"), "PARTISIA", "bip122"), "LINEA", "eip155"), "NIBIRUCHAIN", "bip122"), "DYDXCHAIN", "bip122"), "DYMENSION", "bip122"), "OKB", "eip155"), "POLYGONZKEVM", "eip155"), "LUMIA", "bip122"));
3152
- var ScorechainWalletRiskLevels = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
3153
- var ScorechainWalletRiskLevel = zod.z["enum"](ScorechainWalletRiskLevels);
3154
3237
  var getRiskLevelByRiskScore = function getRiskLevelByRiskScore(riskScore) {
3155
3238
  if (riskScore === 1) {
3156
3239
  return "Critical Risk";
@@ -3839,7 +3922,13 @@ var CustomerZodSchema = zod.z.object({
3839
3922
  ipScore: zod.z.number().optional(),
3840
3923
  emailScore: zod.z.number().optional(),
3841
3924
  phoneScore: zod.z.number().optional()
3842
- }).optional()
3925
+ }).optional(),
3926
+ attributes: zod.z.object({
3927
+ status: CustomerStatus.optional(),
3928
+ riskLevel: RiskScoreType.optional(),
3929
+ onboarding: CustomerOnboardingLevel.optional(),
3930
+ customerType: CustomerType.optional()
3931
+ })
3843
3932
  }).strict();
3844
3933
 
3845
3934
  var CustomerJsonSchema = {
@@ -5567,8 +5656,59 @@ var CustomerJsonSchema = {
5567
5656
  }
5568
5657
  },
5569
5658
  additionalProperties: false
5659
+ },
5660
+ attributes: {
5661
+ type: "object",
5662
+ properties: {
5663
+ status: {
5664
+ type: "string",
5665
+ "enum": [
5666
+ "Active",
5667
+ "Rejected",
5668
+ "Dormant",
5669
+ "To be reviewed",
5670
+ "Failed",
5671
+ "Escalated",
5672
+ "Terminated",
5673
+ "No status"
5674
+ ]
5675
+ },
5676
+ riskLevel: {
5677
+ type: "string",
5678
+ "enum": [
5679
+ "Low",
5680
+ "Medium",
5681
+ "High",
5682
+ "No risk"
5683
+ ]
5684
+ },
5685
+ onboarding: {
5686
+ type: "string",
5687
+ "enum": [
5688
+ "Sign-up",
5689
+ "AML screening",
5690
+ "KYC",
5691
+ "Questionaire",
5692
+ "Onboarded",
5693
+ "Onboarding",
5694
+ "KYB",
5695
+ "Onboarded"
5696
+ ]
5697
+ },
5698
+ customerType: {
5699
+ type: "string",
5700
+ "enum": [
5701
+ "Individual",
5702
+ "Company"
5703
+ ]
5704
+ }
5705
+ },
5706
+ additionalProperties: false
5570
5707
  }
5571
5708
  },
5709
+ required: [
5710
+ "attributes"
5711
+ ],
5572
5712
  additionalProperties: false
5573
5713
  }
5574
5714
  },
@@ -11130,6 +11270,7 @@ exports.BLOCKCHAIN_NAMESPACES = BLOCKCHAIN_NAMESPACES;
11130
11270
  exports.BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL = BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL;
11131
11271
  exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
11132
11272
  exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
11273
+ exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
11133
11274
  exports.BitcoinAddress = BitcoinAddress;
11134
11275
  exports.BitcoinBech32Address = BitcoinBech32Address;
11135
11276
  exports.BitcoinChainId = BitcoinChainId;
@@ -11148,6 +11289,9 @@ exports.CARDANO_CHAIN_NAMES_LIST = CARDANO_CHAIN_NAMES_LIST;
11148
11289
  exports.COSMOS_CHAIN_IDS = COSMOS_CHAIN_IDS;
11149
11290
  exports.COSMOS_CHAIN_NAMES = COSMOS_CHAIN_NAMES;
11150
11291
  exports.COSMOS_CHAIN_NAMES_LIST = COSMOS_CHAIN_NAMES_LIST;
11292
+ exports.CUSTOMERS_CHARTS = CUSTOMERS_CHARTS;
11293
+ exports.CUSTOMER_AUTOMATION_REASONS = CUSTOMER_AUTOMATION_REASONS;
11294
+ exports.CUSTOMER_TABLE_COLUMNS = CUSTOMER_TABLE_COLUMNS;
11151
11295
  exports.CardanoAddress = CardanoAddress;
11152
11296
  exports.CardanoChainId = CardanoChainId;
11153
11297
  exports.CardanoSignature = CardanoSignature;
@@ -11165,8 +11309,17 @@ exports.CryptoCodes = CryptoCodes;
11165
11309
  exports.CurrencyCode = CurrencyCode;
11166
11310
  exports.CurrencyCodes = CurrencyCodes;
11167
11311
  exports.CustomerId = CustomerId;
11312
+ exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
11313
+ exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
11314
+ exports.CustomerPersonalInformation = CustomerPersonalInformation;
11168
11315
  exports.CustomerScreeningId = CustomerScreeningId;
11169
11316
  exports.CustomerScreeningPrefix = CustomerScreeningPrefix;
11317
+ exports.CustomerStatus = CustomerStatus;
11318
+ exports.CustomerStatuses = CustomerStatuses;
11319
+ exports.CustomerTableColumn = CustomerTableColumn;
11320
+ exports.CustomerType = CustomerType;
11321
+ exports.CustomerTypes = CustomerTypes;
11322
+ exports.CustomersChartType = CustomersChartType;
11170
11323
  exports.DEFAULT_FIAT_CURRENCY = DEFAULT_FIAT_CURRENCY;
11171
11324
  exports.DISPLAYED_BLOCKCHAIN_NAMESPACES = DISPLAYED_BLOCKCHAIN_NAMESPACES;
11172
11325
  exports.DataLinkTypeZodSchema = DataLinkTypeZodSchema;
@@ -11234,6 +11387,10 @@ exports.InstitutionExtractedInfosPrefix = InstitutionExtractedInfosPrefix;
11234
11387
  exports.InstitutionId = InstitutionId;
11235
11388
  exports.InstitutionPrefix = InstitutionPrefix;
11236
11389
  exports.IpAddress = IpAddress;
11390
+ exports.KybOnboardingLevel = KybOnboardingLevel;
11391
+ exports.KybOnboardingLevels = KybOnboardingLevels;
11392
+ exports.KycOnboardingLevel = KycOnboardingLevel;
11393
+ exports.KycOnboardingLevels = KycOnboardingLevels;
11237
11394
  exports.ListId = ListId;
11238
11395
  exports.ListPrefix = ListPrefix;
11239
11396
  exports.MemberId = MemberId;
@@ -11300,6 +11457,8 @@ exports.QueryId = QueryId;
11300
11457
  exports.QueryPrefix = QueryPrefix;
11301
11458
  exports.RawScorechainResult = RawScorechainResult;
11302
11459
  exports.RiskExplanation = RiskExplanation;
11460
+ exports.RiskScoreType = RiskScoreType;
11461
+ exports.RiskScoreTypes = RiskScoreTypes;
11303
11462
  exports.RiskSeverity = RiskSeverity;
11304
11463
  exports.SOLANA_CHAIN_IDS = SOLANA_CHAIN_IDS;
11305
11464
  exports.SOLANA_CHAIN_NAMES = SOLANA_CHAIN_NAMES;
@@ -11327,6 +11486,8 @@ exports.ScoringAnalysisResponse = ScoringAnalysisResponse;
11327
11486
  exports.SelfieImageCredentialSchema = SelfieImageCredentialSchema;
11328
11487
  exports.SelfieImageCredentialSubjectSchema = SelfieImageCredentialSubjectSchema;
11329
11488
  exports.Separator = Separator;
11489
+ exports.SigGatingId = SigGatingId;
11490
+ exports.SigGatingPrefix = SigGatingPrefix;
11330
11491
  exports.SolanaChainId = SolanaChainId;
11331
11492
  exports.SpSignature = SpSignature;
11332
11493
  exports.SsssChunkId = SsssChunkId;
@@ -2587,6 +2587,7 @@ var AppPrefix = "app";
2587
2587
  var ChallengePrefix = "challenge";
2588
2588
  var TestPrefix = "test";
2589
2589
  var CustomerScreeningPrefix = "cstscr";
2590
+ var SigGatingPrefix = "siggating";
2590
2591
  var TagPrefix = "tag";
2591
2592
  var ScorechainAnalysisPrefix = "scrchn";
2592
2593
 
@@ -2701,6 +2702,7 @@ var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
2701
2702
  var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
2702
2703
  var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
2703
2704
  var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
2705
+ var SigGatingId = createBrandedSchemaId("".concat(SigGatingPrefix, "_"));
2704
2706
  var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
2705
2707
  var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
2706
2708
 
@@ -3074,9 +3076,92 @@ var Web2CreateSessionParams = zod.z.object({
3074
3076
  additionalInformation: AdditionalCustomerInformationParams.optional()
3075
3077
  });
3076
3078
 
3079
+ // Risk Score
3080
+ var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
3081
+ var RiskScoreType = zod.z["enum"](RiskScoreTypes);
3082
+ // Customer Type
3083
+ var CustomerTypes = ["Individual", "Company"];
3084
+ var CustomerType = zod.z["enum"](CustomerTypes);
3085
+ // KYC Onboarding Level
3086
+ var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
3087
+ var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
3088
+ // KYB Onboarding Level
3089
+ var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
3090
+ var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
3091
+ var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
3092
+ var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
3093
+ // Customer Status
3094
+ var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
3095
+ var CustomerStatus = zod.z["enum"](CustomerStatuses);
3096
+ var BasicCustomerContactInformation = zod.z.object({
3097
+ email: zod.z.string().email(),
3098
+ phone: zod.z.string().min(4),
3099
+ twitter: zod.z.string(),
3100
+ discord: zod.z.string(),
3101
+ telegram: zod.z.string()
3102
+ }).partial();
3103
+ var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
3104
+ var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
3105
+ var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
3106
+ var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
3107
+ var CUSTOMER_AUTOMATION_REASONS = {
3108
+ "rule-engine": {
3109
+ fail: "Rules engine verification failed",
3110
+ pass: "Rules engine verification passed"
3111
+ },
3112
+ kyc: {
3113
+ green: {
3114
+ "final": "Passed KYC"
3115
+ },
3116
+ yellow: {
3117
+ retry: "User rejected by the KYC provider with possibility to retry",
3118
+ fail: "User rejected by the KYC provider"
3119
+ },
3120
+ red: {
3121
+ retry: "User rejected by the KYC provider with possibility to retry",
3122
+ fail: "User rejected by the KYC provider"
3123
+ }
3124
+ },
3125
+ kyb: {
3126
+ green: {
3127
+ "final": "Passed KYB"
3128
+ },
3129
+ yellow: {
3130
+ retry: "Company rejected by the KYB provider with possibility to retry",
3131
+ fail: "Company rejected by the KYB provider"
3132
+ },
3133
+ red: {
3134
+ retry: "Company rejected by the KYB provider with possibility to retry",
3135
+ fail: "Company rejected by the KYB provider"
3136
+ },
3137
+ beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
3138
+ },
3139
+ "aml-screening": {
3140
+ fail: "AML screening hits received during onboarding",
3141
+ ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
3142
+ pass: "Passed AML screening"
3143
+ },
3144
+ offchain_zkp: {
3145
+ fail: "Offchain ZKP verification failed",
3146
+ pass: "Offchain ZKP verification passed"
3147
+ },
3148
+ tfhe: {
3149
+ fail: "TFHE verification failed",
3150
+ pass: "TFHE verification passed"
3151
+ }
3152
+ };
3153
+ var CustomerPersonalInformation = zod.z.object({
3154
+ age: zod.z.number().optional(),
3155
+ nationality: ISO3CountryCode.optional(),
3156
+ residence: ISO3CountryCode.optional()
3157
+ });
3158
+
3077
3159
  var SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "STELLAR", "CARDANO", "ZCASH", "MONERO", "SOLANA", "POLKADOT", "ICON", "DOGECOIN", "FILECOIN", "ARBITRUMONE", "COSMOS", "ALGORAND", "CELO", "POLYGON", "EOS", "ETHEREUMCLASSIC", "FLOW", "FANTOM", "MOONBEAM", "GROESTLCOIN", "INTERNETCOMPUTERPROTOCOL", "INJECTIVEPROTOCOL", "KUSAMA", "LISK", "TERRACLASSIC", "MOONRIVER", "NEARPROTOCOL", "BITCOINGOLD", "THORCHAIN", "SIACOIN", "ECREDITS", "BITCOINSV", "RADIX", "STACKS", "THETANETWORK", "VECHAIN", "VITE", "ZILLIQA", "NEM", "NEO", "VERGE", "AVALANCHE", "GNOSIS", "APTOS", "BNBBEACONCHAIN", "OPTIMISM", "VENIDIUM", "MULTIVERSX", "HARMONY", "TON", "WEMIX", "CRONOS", "AVALANCHEP-XCHAIN", "SUI", "METIS", "AETERNITY", "COTI", "CASPER", "CONSTELLATION", "ELECTRONEUM", "EVERSCALE", "DECENTRALIZEDPICTURES", "HEDERA", "CIRRUS", "HATHOR", "KADENA", "STRATIS", "IOST", "DIGIBYTE", "KOMODO", "RAVENCOIN", "TELOS", "DIGITALBITS", "NERVOS", "DIVI", "HIVE", "NANO", "XDCNETWORK", "FUSE", "ZKSYNC", "BOBA", "HECO", "PULSECHAIN", "BASE", "HELIUM", "DOGECHAIN", "KASPA", "MANTLE", "SEI", "COMDEX", "FIRO", "ECASH", "XDAG", "RONIN", "KLEVER", "BAHAMUT", "FLARE", "CELESTIA", "BNBOPTIMISTIC", "OSMOSIS", "MANTANETWORK", "CONFLUX", "IOTA", "STARKNET", "PARTISIA", "LINEA", "NIBIRUCHAIN", "DYDXCHAIN", "DYMENSION", "OKB", "POLYGONZKEVM", "LUMIA"];
3078
3160
  var NON_MINIMAL_SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "SOLANA", "POLYGON", "AVALANCHE", "BASE", "TON"];
3079
3161
 
3162
+ var ScorechainWalletRiskLevels = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
3163
+ var ScorechainWalletRiskLevel = zod.z["enum"](ScorechainWalletRiskLevels);
3164
+
3080
3165
  var _ScorechainBlockchain;
3081
3166
 
3082
3167
  // based on https://tech-doc.api.scorechain.com/
@@ -3149,8 +3234,6 @@ var ScorechainBlockchainToNamespace = (_ScorechainBlockchain = {
3149
3234
  WEMIX: "bip122",
3150
3235
  CRONOS: "eip155"
3151
3236
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "AVALANCHEP-XCHAIN", "avax"), "SUI", "bip122"), "METIS", "eip155"), "AETERNITY", "bip122"), "COTI", "bip122"), "CASPER", "bip122"), "CONSTELLATION", "bip122"), "ELECTRONEUM", "bip122"), "EVERSCALE", "bip122"), "DECENTRALIZEDPICTURES", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "HEDERA", "bip122"), "CIRRUS", "bip122"), "HATHOR", "bip122"), "KADENA", "bip122"), "STRATIS", "bip122"), "IOST", "bip122"), "DIGIBYTE", "bip122"), "KOMODO", "bip122"), "RAVENCOIN", "bip122"), "TELOS", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "DIGITALBITS", "bip122"), "NERVOS", "bip122"), "DIVI", "bip122"), "HIVE", "bip122"), "NANO", "bip122"), "XDCNETWORK", "bip122"), "FUSE", "eip155"), "ZKSYNC", "eip155"), "BOBA", "eip155"), "HECO", "eip155"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "PULSECHAIN", "eip155"), "BASE", "eip155"), "HELIUM", "bip122"), "DOGECHAIN", "eip155"), "KASPA", "bip122"), "MANTLE", "eip155"), "SEI", "bip122"), "COMDEX", "bip122"), "FIRO", "bip122"), "ECASH", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "XDAG", "bip122"), "RONIN", "eip155"), "KLEVER", "bip122"), "BAHAMUT", "bip122"), "FLARE", "bip122"), "CELESTIA", "bip122"), "BNBOPTIMISTIC", "eip155"), "OSMOSIS", "cosmos"), "MANTANETWORK", "bip122"), "CONFLUX", "bip122"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ScorechainBlockchain, "IOTA", "bip122"), "STARKNET", "starknet"), "PARTISIA", "bip122"), "LINEA", "eip155"), "NIBIRUCHAIN", "bip122"), "DYDXCHAIN", "bip122"), "DYMENSION", "bip122"), "OKB", "eip155"), "POLYGONZKEVM", "eip155"), "LUMIA", "bip122"));
3152
- var ScorechainWalletRiskLevels = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
3153
- var ScorechainWalletRiskLevel = zod.z["enum"](ScorechainWalletRiskLevels);
3154
3237
  var getRiskLevelByRiskScore = function getRiskLevelByRiskScore(riskScore) {
3155
3238
  if (riskScore === 1) {
3156
3239
  return "Critical Risk";
@@ -3839,7 +3922,13 @@ var CustomerZodSchema = zod.z.object({
3839
3922
  ipScore: zod.z.number().optional(),
3840
3923
  emailScore: zod.z.number().optional(),
3841
3924
  phoneScore: zod.z.number().optional()
3842
- }).optional()
3925
+ }).optional(),
3926
+ attributes: zod.z.object({
3927
+ status: CustomerStatus.optional(),
3928
+ riskLevel: RiskScoreType.optional(),
3929
+ onboarding: CustomerOnboardingLevel.optional(),
3930
+ customerType: CustomerType.optional()
3931
+ })
3843
3932
  }).strict();
3844
3933
 
3845
3934
  var CustomerJsonSchema = {
@@ -5567,8 +5656,59 @@ var CustomerJsonSchema = {
5567
5656
  }
5568
5657
  },
5569
5658
  additionalProperties: false
5659
+ },
5660
+ attributes: {
5661
+ type: "object",
5662
+ properties: {
5663
+ status: {
5664
+ type: "string",
5665
+ "enum": [
5666
+ "Active",
5667
+ "Rejected",
5668
+ "Dormant",
5669
+ "To be reviewed",
5670
+ "Failed",
5671
+ "Escalated",
5672
+ "Terminated",
5673
+ "No status"
5674
+ ]
5675
+ },
5676
+ riskLevel: {
5677
+ type: "string",
5678
+ "enum": [
5679
+ "Low",
5680
+ "Medium",
5681
+ "High",
5682
+ "No risk"
5683
+ ]
5684
+ },
5685
+ onboarding: {
5686
+ type: "string",
5687
+ "enum": [
5688
+ "Sign-up",
5689
+ "AML screening",
5690
+ "KYC",
5691
+ "Questionaire",
5692
+ "Onboarded",
5693
+ "Onboarding",
5694
+ "KYB",
5695
+ "Onboarded"
5696
+ ]
5697
+ },
5698
+ customerType: {
5699
+ type: "string",
5700
+ "enum": [
5701
+ "Individual",
5702
+ "Company"
5703
+ ]
5704
+ }
5705
+ },
5706
+ additionalProperties: false
5570
5707
  }
5571
5708
  },
5709
+ required: [
5710
+ "attributes"
5711
+ ],
5572
5712
  additionalProperties: false
5573
5713
  }
5574
5714
  },
@@ -11130,6 +11270,7 @@ exports.BLOCKCHAIN_NAMESPACES = BLOCKCHAIN_NAMESPACES;
11130
11270
  exports.BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL = BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL;
11131
11271
  exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
11132
11272
  exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
11273
+ exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
11133
11274
  exports.BitcoinAddress = BitcoinAddress;
11134
11275
  exports.BitcoinBech32Address = BitcoinBech32Address;
11135
11276
  exports.BitcoinChainId = BitcoinChainId;
@@ -11148,6 +11289,9 @@ exports.CARDANO_CHAIN_NAMES_LIST = CARDANO_CHAIN_NAMES_LIST;
11148
11289
  exports.COSMOS_CHAIN_IDS = COSMOS_CHAIN_IDS;
11149
11290
  exports.COSMOS_CHAIN_NAMES = COSMOS_CHAIN_NAMES;
11150
11291
  exports.COSMOS_CHAIN_NAMES_LIST = COSMOS_CHAIN_NAMES_LIST;
11292
+ exports.CUSTOMERS_CHARTS = CUSTOMERS_CHARTS;
11293
+ exports.CUSTOMER_AUTOMATION_REASONS = CUSTOMER_AUTOMATION_REASONS;
11294
+ exports.CUSTOMER_TABLE_COLUMNS = CUSTOMER_TABLE_COLUMNS;
11151
11295
  exports.CardanoAddress = CardanoAddress;
11152
11296
  exports.CardanoChainId = CardanoChainId;
11153
11297
  exports.CardanoSignature = CardanoSignature;
@@ -11165,8 +11309,17 @@ exports.CryptoCodes = CryptoCodes;
11165
11309
  exports.CurrencyCode = CurrencyCode;
11166
11310
  exports.CurrencyCodes = CurrencyCodes;
11167
11311
  exports.CustomerId = CustomerId;
11312
+ exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
11313
+ exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
11314
+ exports.CustomerPersonalInformation = CustomerPersonalInformation;
11168
11315
  exports.CustomerScreeningId = CustomerScreeningId;
11169
11316
  exports.CustomerScreeningPrefix = CustomerScreeningPrefix;
11317
+ exports.CustomerStatus = CustomerStatus;
11318
+ exports.CustomerStatuses = CustomerStatuses;
11319
+ exports.CustomerTableColumn = CustomerTableColumn;
11320
+ exports.CustomerType = CustomerType;
11321
+ exports.CustomerTypes = CustomerTypes;
11322
+ exports.CustomersChartType = CustomersChartType;
11170
11323
  exports.DEFAULT_FIAT_CURRENCY = DEFAULT_FIAT_CURRENCY;
11171
11324
  exports.DISPLAYED_BLOCKCHAIN_NAMESPACES = DISPLAYED_BLOCKCHAIN_NAMESPACES;
11172
11325
  exports.DataLinkTypeZodSchema = DataLinkTypeZodSchema;
@@ -11234,6 +11387,10 @@ exports.InstitutionExtractedInfosPrefix = InstitutionExtractedInfosPrefix;
11234
11387
  exports.InstitutionId = InstitutionId;
11235
11388
  exports.InstitutionPrefix = InstitutionPrefix;
11236
11389
  exports.IpAddress = IpAddress;
11390
+ exports.KybOnboardingLevel = KybOnboardingLevel;
11391
+ exports.KybOnboardingLevels = KybOnboardingLevels;
11392
+ exports.KycOnboardingLevel = KycOnboardingLevel;
11393
+ exports.KycOnboardingLevels = KycOnboardingLevels;
11237
11394
  exports.ListId = ListId;
11238
11395
  exports.ListPrefix = ListPrefix;
11239
11396
  exports.MemberId = MemberId;
@@ -11300,6 +11457,8 @@ exports.QueryId = QueryId;
11300
11457
  exports.QueryPrefix = QueryPrefix;
11301
11458
  exports.RawScorechainResult = RawScorechainResult;
11302
11459
  exports.RiskExplanation = RiskExplanation;
11460
+ exports.RiskScoreType = RiskScoreType;
11461
+ exports.RiskScoreTypes = RiskScoreTypes;
11303
11462
  exports.RiskSeverity = RiskSeverity;
11304
11463
  exports.SOLANA_CHAIN_IDS = SOLANA_CHAIN_IDS;
11305
11464
  exports.SOLANA_CHAIN_NAMES = SOLANA_CHAIN_NAMES;
@@ -11327,6 +11486,8 @@ exports.ScoringAnalysisResponse = ScoringAnalysisResponse;
11327
11486
  exports.SelfieImageCredentialSchema = SelfieImageCredentialSchema;
11328
11487
  exports.SelfieImageCredentialSubjectSchema = SelfieImageCredentialSubjectSchema;
11329
11488
  exports.Separator = Separator;
11489
+ exports.SigGatingId = SigGatingId;
11490
+ exports.SigGatingPrefix = SigGatingPrefix;
11330
11491
  exports.SolanaChainId = SolanaChainId;
11331
11492
  exports.SpSignature = SpSignature;
11332
11493
  exports.SsssChunkId = SsssChunkId;