@nexeraid/identity-schemas 2.86.0-dev → 2.88.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 (43) hide show
  1. package/dist/{CoinMarketCap.schema-01aa87e4.cjs.prod.cjs → CoinMarketCap.schema-20fb43b4.cjs.prod.cjs} +2 -2
  2. package/dist/{CoinMarketCap.schema-397b9857.esm.mjs → CoinMarketCap.schema-2522156d.esm.mjs} +2 -2
  3. package/dist/{CoinMarketCap.schema-6717bd28.cjs.dev.cjs → CoinMarketCap.schema-b5d9d48a.cjs.dev.cjs} +2 -2
  4. package/dist/declarations/src/customer.schema.d.ts +14 -0
  5. package/dist/declarations/src/customer.schema.d.ts.map +1 -1
  6. package/dist/declarations/src/identity/scenario.schema.d.ts +49 -49
  7. package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -1
  8. package/dist/declarations/src/identity-ids.schema.d.ts +6 -6
  9. package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
  10. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +40 -40
  11. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts.map +1 -1
  12. package/dist/declarations/src/tag.schema.d.ts +10 -3
  13. package/dist/declarations/src/tag.schema.d.ts.map +1 -1
  14. package/dist/declarations/src/vault/vault.schema.d.ts +12 -12
  15. package/dist/{identity-api.schema-c1a397aa.cjs.prod.cjs → identity-api.schema-25a40938.cjs.prod.cjs} +84 -119
  16. package/dist/{identity-api.schema-8c8827a8.cjs.dev.cjs → identity-api.schema-4670c94c.cjs.dev.cjs} +84 -119
  17. package/dist/{identity-api.schema-413be7b9.esm.mjs → identity-api.schema-bdf74232.esm.mjs} +84 -106
  18. package/dist/nexeraid-identity-schemas.cjs.dev.cjs +20 -8
  19. package/dist/nexeraid-identity-schemas.cjs.prod.cjs +20 -8
  20. package/dist/nexeraid-identity-schemas.esm.mjs +17 -8
  21. package/dist/package.json +1 -1
  22. package/dist/{tfhe-utilities-308ce036.esm.mjs → tfhe-utilities-9a4bc5f6.esm.mjs} +2 -2
  23. package/dist/{tfhe-utilities-87c99c35.cjs.prod.cjs → tfhe-utilities-be752443.cjs.prod.cjs} +2 -2
  24. package/dist/{tfhe-utilities-d84f1a0e.cjs.dev.cjs → tfhe-utilities-d05b2a83.cjs.dev.cjs} +2 -2
  25. package/dist/{vault.schema-3e68499e.esm.mjs → vault.schema-06c7ebc0.esm.mjs} +12 -12
  26. package/dist/{vault.schema-b879e107.cjs.dev.cjs → vault.schema-771644cb.cjs.prod.cjs} +13 -13
  27. package/dist/{vault.schema-ba3a058a.cjs.prod.cjs → vault.schema-94ffd2d8.cjs.dev.cjs} +13 -13
  28. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
  29. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
  30. package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
  31. package/package.json +1 -1
  32. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +3 -3
  33. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +3 -3
  34. package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
  35. package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +1 -1
  36. package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +1 -1
  37. package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +1 -1
  38. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
  39. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
  40. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
  41. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +48 -21
  42. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +48 -21
  43. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +31 -5
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var zod = require('zod');
4
- var vault_schema = require('./vault.schema-ba3a058a.cjs.prod.cjs');
4
+ var vault_schema = require('./vault.schema-771644cb.cjs.prod.cjs');
5
5
 
6
6
  var CredentialSchemas = {
7
7
  ProofOfResidence: vault_schema.ProofOfResidenceCredentialSubjectSchema,
@@ -386,115 +386,13 @@ function oldCredentialPathToDataLink(path, credentialType) {
386
386
  };
387
387
  }
388
388
 
389
- // Risk Score
390
- var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
391
- var RiskScoreType = zod.z["enum"](RiskScoreTypes);
392
- // Customer Type
393
- var CustomerTypes = ["Individual", "Company"];
394
- var CustomerType = zod.z["enum"](CustomerTypes);
395
- // KYC Onboarding Level
396
- var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
397
- var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
398
- // KYB Onboarding Level
399
- var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
400
- var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
401
- var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
402
- var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
403
- // Customer Status
404
- var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
405
- var CustomerStatus = zod.z["enum"](CustomerStatuses);
406
- var BasicCustomerContactInformation = zod.z.object({
407
- email: zod.z.string().email(),
408
- phone: zod.z.string().min(4),
409
- twitter: zod.z.string(),
410
- discord: zod.z.string(),
411
- telegram: zod.z.string()
412
- }).partial();
413
- var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
414
- var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
415
- var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
416
- var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
417
- var CUSTOMER_AUTOMATION_REASONS = {
418
- "rule-engine": {
419
- fail: "Rules engine verification failed",
420
- pass: "Rules engine verification passed"
421
- },
422
- kyc: {
423
- green: {
424
- "final": "Passed KYC"
425
- },
426
- yellow: {
427
- retry: "User rejected by the KYC provider with possibility to retry",
428
- fail: "User rejected by the KYC provider"
429
- },
430
- red: {
431
- retry: "User rejected by the KYC provider with possibility to retry",
432
- fail: "User rejected by the KYC provider"
433
- }
434
- },
435
- kyb: {
436
- green: {
437
- "final": "Passed KYB"
438
- },
439
- yellow: {
440
- retry: "Company rejected by the KYB provider with possibility to retry",
441
- fail: "Company rejected by the KYB provider"
442
- },
443
- red: {
444
- retry: "Company rejected by the KYB provider with possibility to retry",
445
- fail: "Company rejected by the KYB provider"
446
- },
447
- beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
448
- },
449
- "aml-screening": {
450
- fail: "AML screening hits received during onboarding",
451
- ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
452
- pass: "Passed AML screening"
453
- },
454
- offchain_zkp: {
455
- fail: "Offchain ZKP verification failed",
456
- pass: "Offchain ZKP verification passed"
457
- },
458
- tfhe: {
459
- fail: "TFHE verification failed",
460
- pass: "TFHE verification passed"
461
- }
462
- };
463
-
464
- // Alert Statuses
465
- var AlertStatuses = ["Open", "Under Investigation", "Pending", "Closed", "Escalated"];
466
- var AlertStatus = zod.z["enum"](AlertStatuses);
467
- // Alert Types
468
- var AlertTypes = ["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"];
469
- var AlertType = zod.z["enum"](AlertTypes);
470
- // Alert Severities
471
- var AlertSeverities = ["Low", "Medium", "High"];
472
- var AlertSeverity = zod.z["enum"](AlertSeverities);
473
- // Alert Categories
474
- var AlertCategories = ["Onboarding", "Ongoing monitoring"];
475
- var AlertCategory = zod.z["enum"](AlertCategories);
476
- var ALERT_CHART_TYPES = ["total", "new", "opened", "closed", "inProgress", "unassigned", "escalated", "overdue", "avgClosureTime", "ageOfOldest", "alertTrendsOverTime", "alertsByType", "ageOfOpenAlerts", "alertsPerOfficer", "alertsSeverity"];
477
- var AlertChartType = zod.z["enum"](ALERT_CHART_TYPES);
478
- var ALERT_TABLE_COLUMNS = ["selected", "createdAt", "overdue", "id", "severity", "type", "description", "assignedTo", "country", "status"];
479
- var AlertTableColumn = zod.z["enum"](ALERT_TABLE_COLUMNS);
480
- var UserInfoForDuplicate = zod.z.object({
481
- customerId: vault_schema.UuidString,
482
- customerInfo: zod.z.string().nullish(),
483
- profilePicture: zod.z.string().nullish(),
484
- idDocumentUrl: zod.z.string().nullish()
485
- });
486
- var DuplicateData = zod.z.object({
487
- original: UserInfoForDuplicate,
488
- duplicate: UserInfoForDuplicate
489
- });
490
-
491
- var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"];
389
+ var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT", "ASSIGN_TAG"];
492
390
  var ActionType = zod.z["enum"](SCENARIO_ACTION_TYPES);
493
391
  var ACTION_TRIGGERS = ["ON_TRUE", "ON_FALSE", "ALWAYS"];
494
392
  var ActionTrigger = zod.z["enum"](ACTION_TRIGGERS);
495
393
  var ACTION_STATUSES = ["ENABLED", "DISABLED"];
496
394
  var ActionStatus = zod.z["enum"](ACTION_STATUSES);
497
- var ActionValue = zod.z.union([RiskScoreType, CustomerStatus, vault_schema.TransactionReviewStatus, AlertType]);
395
+ var ActionValue = zod.z.string();
498
396
  var ScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE" // TODO integrate TFHE verification
499
397
  ];
500
398
  var ScenarioType = zod.z["enum"](ScenarioTypes);
@@ -940,6 +838,86 @@ var GetTxAuthSigResponseTezos = zod.z.object({
940
838
  var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
941
839
  var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
942
840
 
841
+ // Risk Score
842
+ var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
843
+ var RiskScoreType = zod.z["enum"](RiskScoreTypes);
844
+ // Customer Type
845
+ var CustomerTypes = ["Individual", "Company"];
846
+ var CustomerType = zod.z["enum"](CustomerTypes);
847
+ // KYC Onboarding Level
848
+ var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
849
+ var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
850
+ // KYB Onboarding Level
851
+ var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
852
+ var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
853
+ var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
854
+ var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
855
+ // Customer Status
856
+ var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
857
+ var CustomerStatus = zod.z["enum"](CustomerStatuses);
858
+ var BasicCustomerContactInformation = zod.z.object({
859
+ email: zod.z.string().email(),
860
+ phone: zod.z.string().min(4),
861
+ twitter: zod.z.string(),
862
+ discord: zod.z.string(),
863
+ telegram: zod.z.string()
864
+ }).partial();
865
+ var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
866
+ var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
867
+ var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
868
+ var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
869
+ var CUSTOMER_AUTOMATION_REASONS = {
870
+ "rule-engine": {
871
+ fail: "Rules engine verification failed",
872
+ pass: "Rules engine verification passed"
873
+ },
874
+ kyc: {
875
+ green: {
876
+ "final": "Passed KYC"
877
+ },
878
+ yellow: {
879
+ retry: "User rejected by the KYC provider with possibility to retry",
880
+ fail: "User rejected by the KYC provider"
881
+ },
882
+ red: {
883
+ retry: "User rejected by the KYC provider with possibility to retry",
884
+ fail: "User rejected by the KYC provider"
885
+ }
886
+ },
887
+ kyb: {
888
+ green: {
889
+ "final": "Passed KYB"
890
+ },
891
+ yellow: {
892
+ retry: "Company rejected by the KYB provider with possibility to retry",
893
+ fail: "Company rejected by the KYB provider"
894
+ },
895
+ red: {
896
+ retry: "Company rejected by the KYB provider with possibility to retry",
897
+ fail: "Company rejected by the KYB provider"
898
+ },
899
+ beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
900
+ },
901
+ "aml-screening": {
902
+ fail: "AML screening hits received during onboarding",
903
+ ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
904
+ pass: "Passed AML screening"
905
+ },
906
+ offchain_zkp: {
907
+ fail: "Offchain ZKP verification failed",
908
+ pass: "Offchain ZKP verification passed"
909
+ },
910
+ tfhe: {
911
+ fail: "TFHE verification failed",
912
+ pass: "TFHE verification passed"
913
+ }
914
+ };
915
+ var CustomerPersonalInformation = zod.z.object({
916
+ age: zod.z.number().optional(),
917
+ nationality: vault_schema.ISO3CountryCode.optional(),
918
+ residence: vault_schema.ISO3CountryCode.optional()
919
+ });
920
+
943
921
  /**
944
922
  * Wallet challenge parameters
945
923
  */
@@ -1166,8 +1144,6 @@ var VerifyWalletChallengeRequest = WalletSignatureResponse.and(zod.z.object({
1166
1144
 
1167
1145
  exports.ACTION_STATUSES = ACTION_STATUSES;
1168
1146
  exports.ACTION_TRIGGERS = ACTION_TRIGGERS;
1169
- exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
1170
- exports.ALERT_TABLE_COLUMNS = ALERT_TABLE_COLUMNS;
1171
1147
  exports.ARRAY_OPERATORS = ARRAY_OPERATORS;
1172
1148
  exports.AUTHORIZATION_REQUEST_MESSAGE_TYPES = AUTHORIZATION_REQUEST_MESSAGE_TYPES;
1173
1149
  exports.AVAILABLE_FLOWS = AVAILABLE_FLOWS;
@@ -1177,16 +1153,6 @@ exports.ActionStatus = ActionStatus;
1177
1153
  exports.ActionTrigger = ActionTrigger;
1178
1154
  exports.ActionType = ActionType;
1179
1155
  exports.ActionValue = ActionValue;
1180
- exports.AlertCategories = AlertCategories;
1181
- exports.AlertCategory = AlertCategory;
1182
- exports.AlertChartType = AlertChartType;
1183
- exports.AlertSeverities = AlertSeverities;
1184
- exports.AlertSeverity = AlertSeverity;
1185
- exports.AlertStatus = AlertStatus;
1186
- exports.AlertStatuses = AlertStatuses;
1187
- exports.AlertTableColumn = AlertTableColumn;
1188
- exports.AlertType = AlertType;
1189
- exports.AlertTypes = AlertTypes;
1190
1156
  exports.AllCredentialValues = AllCredentialValues;
1191
1157
  exports.AllScenarioExecutionAuthorizationData = AllScenarioExecutionAuthorizationData;
1192
1158
  exports.AnyTxAuthDataSignatureResponse = AnyTxAuthDataSignatureResponse;
@@ -1227,6 +1193,7 @@ exports.CredentialType = CredentialType;
1227
1193
  exports.CredentialTypes = CredentialTypes;
1228
1194
  exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
1229
1195
  exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
1196
+ exports.CustomerPersonalInformation = CustomerPersonalInformation;
1230
1197
  exports.CustomerStatus = CustomerStatus;
1231
1198
  exports.CustomerStatuses = CustomerStatuses;
1232
1199
  exports.CustomerTableColumn = CustomerTableColumn;
@@ -1236,7 +1203,6 @@ exports.CustomersChartType = CustomersChartType;
1236
1203
  exports.DATE_OPERATORS = DATE_OPERATORS;
1237
1204
  exports.DataAvailableOnStart = DataAvailableOnStart;
1238
1205
  exports.DateOperator = DateOperator;
1239
- exports.DuplicateData = DuplicateData;
1240
1206
  exports.Eip155TxAuthInputJsSdk = Eip155TxAuthInputJsSdk;
1241
1207
  exports.ExecuteQueryResponse = ExecuteQueryResponse;
1242
1208
  exports.ExtendedTezosTxAuthDataSignatureResponse = ExtendedTezosTxAuthDataSignatureResponse;
@@ -1363,7 +1329,6 @@ exports.TxAuthDataSignatureGatingRequest = TxAuthDataSignatureGatingRequest;
1363
1329
  exports.TxAuthDataSignatureResponse = TxAuthDataSignatureResponse;
1364
1330
  exports.TxAuthInput = TxAuthInput;
1365
1331
  exports.TxSignatureResponse = TxSignatureResponse;
1366
- exports.UserInfoForDuplicate = UserInfoForDuplicate;
1367
1332
  exports.VerifiableCredential = VerifiableCredential;
1368
1333
  exports.VerificationOutput = VerificationOutput;
1369
1334
  exports.VerificationSessionStatus = VerificationSessionStatus;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var zod = require('zod');
4
- var vault_schema = require('./vault.schema-b879e107.cjs.dev.cjs');
4
+ var vault_schema = require('./vault.schema-94ffd2d8.cjs.dev.cjs');
5
5
 
6
6
  var CredentialSchemas = {
7
7
  ProofOfResidence: vault_schema.ProofOfResidenceCredentialSubjectSchema,
@@ -386,115 +386,13 @@ function oldCredentialPathToDataLink(path, credentialType) {
386
386
  };
387
387
  }
388
388
 
389
- // Risk Score
390
- var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
391
- var RiskScoreType = zod.z["enum"](RiskScoreTypes);
392
- // Customer Type
393
- var CustomerTypes = ["Individual", "Company"];
394
- var CustomerType = zod.z["enum"](CustomerTypes);
395
- // KYC Onboarding Level
396
- var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
397
- var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
398
- // KYB Onboarding Level
399
- var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
400
- var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
401
- var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
402
- var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
403
- // Customer Status
404
- var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
405
- var CustomerStatus = zod.z["enum"](CustomerStatuses);
406
- var BasicCustomerContactInformation = zod.z.object({
407
- email: zod.z.string().email(),
408
- phone: zod.z.string().min(4),
409
- twitter: zod.z.string(),
410
- discord: zod.z.string(),
411
- telegram: zod.z.string()
412
- }).partial();
413
- var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
414
- var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
415
- var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
416
- var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
417
- var CUSTOMER_AUTOMATION_REASONS = {
418
- "rule-engine": {
419
- fail: "Rules engine verification failed",
420
- pass: "Rules engine verification passed"
421
- },
422
- kyc: {
423
- green: {
424
- "final": "Passed KYC"
425
- },
426
- yellow: {
427
- retry: "User rejected by the KYC provider with possibility to retry",
428
- fail: "User rejected by the KYC provider"
429
- },
430
- red: {
431
- retry: "User rejected by the KYC provider with possibility to retry",
432
- fail: "User rejected by the KYC provider"
433
- }
434
- },
435
- kyb: {
436
- green: {
437
- "final": "Passed KYB"
438
- },
439
- yellow: {
440
- retry: "Company rejected by the KYB provider with possibility to retry",
441
- fail: "Company rejected by the KYB provider"
442
- },
443
- red: {
444
- retry: "Company rejected by the KYB provider with possibility to retry",
445
- fail: "Company rejected by the KYB provider"
446
- },
447
- beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
448
- },
449
- "aml-screening": {
450
- fail: "AML screening hits received during onboarding",
451
- ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
452
- pass: "Passed AML screening"
453
- },
454
- offchain_zkp: {
455
- fail: "Offchain ZKP verification failed",
456
- pass: "Offchain ZKP verification passed"
457
- },
458
- tfhe: {
459
- fail: "TFHE verification failed",
460
- pass: "TFHE verification passed"
461
- }
462
- };
463
-
464
- // Alert Statuses
465
- var AlertStatuses = ["Open", "Under Investigation", "Pending", "Closed", "Escalated"];
466
- var AlertStatus = zod.z["enum"](AlertStatuses);
467
- // Alert Types
468
- var AlertTypes = ["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"];
469
- var AlertType = zod.z["enum"](AlertTypes);
470
- // Alert Severities
471
- var AlertSeverities = ["Low", "Medium", "High"];
472
- var AlertSeverity = zod.z["enum"](AlertSeverities);
473
- // Alert Categories
474
- var AlertCategories = ["Onboarding", "Ongoing monitoring"];
475
- var AlertCategory = zod.z["enum"](AlertCategories);
476
- var ALERT_CHART_TYPES = ["total", "new", "opened", "closed", "inProgress", "unassigned", "escalated", "overdue", "avgClosureTime", "ageOfOldest", "alertTrendsOverTime", "alertsByType", "ageOfOpenAlerts", "alertsPerOfficer", "alertsSeverity"];
477
- var AlertChartType = zod.z["enum"](ALERT_CHART_TYPES);
478
- var ALERT_TABLE_COLUMNS = ["selected", "createdAt", "overdue", "id", "severity", "type", "description", "assignedTo", "country", "status"];
479
- var AlertTableColumn = zod.z["enum"](ALERT_TABLE_COLUMNS);
480
- var UserInfoForDuplicate = zod.z.object({
481
- customerId: vault_schema.UuidString,
482
- customerInfo: zod.z.string().nullish(),
483
- profilePicture: zod.z.string().nullish(),
484
- idDocumentUrl: zod.z.string().nullish()
485
- });
486
- var DuplicateData = zod.z.object({
487
- original: UserInfoForDuplicate,
488
- duplicate: UserInfoForDuplicate
489
- });
490
-
491
- var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"];
389
+ var SCENARIO_ACTION_TYPES = ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT", "ASSIGN_TAG"];
492
390
  var ActionType = zod.z["enum"](SCENARIO_ACTION_TYPES);
493
391
  var ACTION_TRIGGERS = ["ON_TRUE", "ON_FALSE", "ALWAYS"];
494
392
  var ActionTrigger = zod.z["enum"](ACTION_TRIGGERS);
495
393
  var ACTION_STATUSES = ["ENABLED", "DISABLED"];
496
394
  var ActionStatus = zod.z["enum"](ACTION_STATUSES);
497
- var ActionValue = zod.z.union([RiskScoreType, CustomerStatus, vault_schema.TransactionReviewStatus, AlertType]);
395
+ var ActionValue = zod.z.string();
498
396
  var ScenarioTypes = ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE" // TODO integrate TFHE verification
499
397
  ];
500
398
  var ScenarioType = zod.z["enum"](ScenarioTypes);
@@ -940,6 +838,86 @@ var GetTxAuthSigResponseTezos = zod.z.object({
940
838
  var HostRequestMessage = zod.z.union([GetCredentialsRequest, PolygonIdRequest, StartFlowRequest, IsVerifiedRequest, GetTxAuthSigRequest, GetTxAuthSigRequestTezos]);
941
839
  var IdentityResponseMessage = zod.z.union([GetCredentialsResponse, PolygonIdResponse, IsVerifiedResponse, GetTxAuthSigResponse, GetTxAuthSigResponseTezos]);
942
840
 
841
+ // Risk Score
842
+ var RiskScoreTypes = ["Low", "Medium", "High", "No risk"];
843
+ var RiskScoreType = zod.z["enum"](RiskScoreTypes);
844
+ // Customer Type
845
+ var CustomerTypes = ["Individual", "Company"];
846
+ var CustomerType = zod.z["enum"](CustomerTypes);
847
+ // KYC Onboarding Level
848
+ var KycOnboardingLevels = ["Sign-up", "AML screening", "KYC", "Questionaire", "Onboarded"];
849
+ var KycOnboardingLevel = zod.z["enum"](KycOnboardingLevels);
850
+ // KYB Onboarding Level
851
+ var KybOnboardingLevels = ["Onboarding", "KYB", "Onboarded"];
852
+ var KybOnboardingLevel = zod.z["enum"](KybOnboardingLevels);
853
+ var CustomerOnboardingLevels = [].concat(KycOnboardingLevels, KybOnboardingLevels);
854
+ var CustomerOnboardingLevel = zod.z["enum"](CustomerOnboardingLevels);
855
+ // Customer Status
856
+ var CustomerStatuses = ["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"];
857
+ var CustomerStatus = zod.z["enum"](CustomerStatuses);
858
+ var BasicCustomerContactInformation = zod.z.object({
859
+ email: zod.z.string().email(),
860
+ phone: zod.z.string().min(4),
861
+ twitter: zod.z.string(),
862
+ discord: zod.z.string(),
863
+ telegram: zod.z.string()
864
+ }).partial();
865
+ var CUSTOMERS_CHARTS = ["totalCustomers", "onboarded", "active", "dormant", "rejected", "topCountriesByCustomersCount", "customersRiskLevel", "customersByStatus", "trendOfStatusesOverTime"];
866
+ var CustomersChartType = zod.z["enum"](CUSTOMERS_CHARTS);
867
+ var CUSTOMER_TABLE_COLUMNS = ["selected", "wallets", "type", "country_of_residence", "risk_score", "onboarding_level", "open_alerts_count", "status", "date_onboarded"];
868
+ var CustomerTableColumn = zod.z["enum"](CUSTOMER_TABLE_COLUMNS);
869
+ var CUSTOMER_AUTOMATION_REASONS = {
870
+ "rule-engine": {
871
+ fail: "Rules engine verification failed",
872
+ pass: "Rules engine verification passed"
873
+ },
874
+ kyc: {
875
+ green: {
876
+ "final": "Passed KYC"
877
+ },
878
+ yellow: {
879
+ retry: "User rejected by the KYC provider with possibility to retry",
880
+ fail: "User rejected by the KYC provider"
881
+ },
882
+ red: {
883
+ retry: "User rejected by the KYC provider with possibility to retry",
884
+ fail: "User rejected by the KYC provider"
885
+ }
886
+ },
887
+ kyb: {
888
+ green: {
889
+ "final": "Passed KYB"
890
+ },
891
+ yellow: {
892
+ retry: "Company rejected by the KYB provider with possibility to retry",
893
+ fail: "Company rejected by the KYB provider"
894
+ },
895
+ red: {
896
+ retry: "Company rejected by the KYB provider with possibility to retry",
897
+ fail: "Company rejected by the KYB provider"
898
+ },
899
+ beneficiaryOnToBeReviewState: "One or more beneficiaries are on 'To be reviewed' state"
900
+ },
901
+ "aml-screening": {
902
+ fail: "AML screening hits received during onboarding",
903
+ ongoingMonitoringFail: "AML screening hits received during ongoing monitoring",
904
+ pass: "Passed AML screening"
905
+ },
906
+ offchain_zkp: {
907
+ fail: "Offchain ZKP verification failed",
908
+ pass: "Offchain ZKP verification passed"
909
+ },
910
+ tfhe: {
911
+ fail: "TFHE verification failed",
912
+ pass: "TFHE verification passed"
913
+ }
914
+ };
915
+ var CustomerPersonalInformation = zod.z.object({
916
+ age: zod.z.number().optional(),
917
+ nationality: vault_schema.ISO3CountryCode.optional(),
918
+ residence: vault_schema.ISO3CountryCode.optional()
919
+ });
920
+
943
921
  /**
944
922
  * Wallet challenge parameters
945
923
  */
@@ -1166,8 +1144,6 @@ var VerifyWalletChallengeRequest = WalletSignatureResponse.and(zod.z.object({
1166
1144
 
1167
1145
  exports.ACTION_STATUSES = ACTION_STATUSES;
1168
1146
  exports.ACTION_TRIGGERS = ACTION_TRIGGERS;
1169
- exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
1170
- exports.ALERT_TABLE_COLUMNS = ALERT_TABLE_COLUMNS;
1171
1147
  exports.ARRAY_OPERATORS = ARRAY_OPERATORS;
1172
1148
  exports.AUTHORIZATION_REQUEST_MESSAGE_TYPES = AUTHORIZATION_REQUEST_MESSAGE_TYPES;
1173
1149
  exports.AVAILABLE_FLOWS = AVAILABLE_FLOWS;
@@ -1177,16 +1153,6 @@ exports.ActionStatus = ActionStatus;
1177
1153
  exports.ActionTrigger = ActionTrigger;
1178
1154
  exports.ActionType = ActionType;
1179
1155
  exports.ActionValue = ActionValue;
1180
- exports.AlertCategories = AlertCategories;
1181
- exports.AlertCategory = AlertCategory;
1182
- exports.AlertChartType = AlertChartType;
1183
- exports.AlertSeverities = AlertSeverities;
1184
- exports.AlertSeverity = AlertSeverity;
1185
- exports.AlertStatus = AlertStatus;
1186
- exports.AlertStatuses = AlertStatuses;
1187
- exports.AlertTableColumn = AlertTableColumn;
1188
- exports.AlertType = AlertType;
1189
- exports.AlertTypes = AlertTypes;
1190
1156
  exports.AllCredentialValues = AllCredentialValues;
1191
1157
  exports.AllScenarioExecutionAuthorizationData = AllScenarioExecutionAuthorizationData;
1192
1158
  exports.AnyTxAuthDataSignatureResponse = AnyTxAuthDataSignatureResponse;
@@ -1227,6 +1193,7 @@ exports.CredentialType = CredentialType;
1227
1193
  exports.CredentialTypes = CredentialTypes;
1228
1194
  exports.CustomerOnboardingLevel = CustomerOnboardingLevel;
1229
1195
  exports.CustomerOnboardingLevels = CustomerOnboardingLevels;
1196
+ exports.CustomerPersonalInformation = CustomerPersonalInformation;
1230
1197
  exports.CustomerStatus = CustomerStatus;
1231
1198
  exports.CustomerStatuses = CustomerStatuses;
1232
1199
  exports.CustomerTableColumn = CustomerTableColumn;
@@ -1236,7 +1203,6 @@ exports.CustomersChartType = CustomersChartType;
1236
1203
  exports.DATE_OPERATORS = DATE_OPERATORS;
1237
1204
  exports.DataAvailableOnStart = DataAvailableOnStart;
1238
1205
  exports.DateOperator = DateOperator;
1239
- exports.DuplicateData = DuplicateData;
1240
1206
  exports.Eip155TxAuthInputJsSdk = Eip155TxAuthInputJsSdk;
1241
1207
  exports.ExecuteQueryResponse = ExecuteQueryResponse;
1242
1208
  exports.ExtendedTezosTxAuthDataSignatureResponse = ExtendedTezosTxAuthDataSignatureResponse;
@@ -1363,7 +1329,6 @@ exports.TxAuthDataSignatureGatingRequest = TxAuthDataSignatureGatingRequest;
1363
1329
  exports.TxAuthDataSignatureResponse = TxAuthDataSignatureResponse;
1364
1330
  exports.TxAuthInput = TxAuthInput;
1365
1331
  exports.TxSignatureResponse = TxSignatureResponse;
1366
- exports.UserInfoForDuplicate = UserInfoForDuplicate;
1367
1332
  exports.VerifiableCredential = VerifiableCredential;
1368
1333
  exports.VerificationOutput = VerificationOutput;
1369
1334
  exports.VerificationSessionStatus = VerificationSessionStatus;