@nexeraid/identity-schemas 2.75.0-dev → 2.76.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 (57) hide show
  1. package/dist/{CoinMarketCap.schema-a0e3284a.cjs.prod.cjs → CoinMarketCap.schema-4716bd1c.cjs.prod.cjs} +18 -3
  2. package/dist/{CoinMarketCap.schema-73597e44.cjs.dev.cjs → CoinMarketCap.schema-7b93e4c3.cjs.dev.cjs} +18 -3
  3. package/dist/{CoinMarketCap.schema-55b8c72b.esm.mjs → CoinMarketCap.schema-a3f7532d.esm.mjs} +17 -4
  4. package/dist/declarations/src/identity/app-requests.schema.d.ts +27 -27
  5. package/dist/declarations/src/identity/identity-v2.schema.d.ts +7 -7
  6. package/dist/declarations/src/identity/kyc.schema.d.ts +7 -7
  7. package/dist/declarations/src/identity/query.schema.d.ts +77 -0
  8. package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
  9. package/dist/declarations/src/identity/scenario.schema.d.ts +597 -10
  10. package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -1
  11. package/dist/declarations/src/identity-ids.schema.d.ts +6 -2
  12. package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
  13. package/dist/declarations/src/providers/customers.schema.d.ts +33 -0
  14. package/dist/declarations/src/providers/customers.schema.d.ts.map +1 -1
  15. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +57 -20
  16. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -1
  17. package/dist/declarations/src/vault/schemas/Customer.zod.d.ts +10 -0
  18. package/dist/declarations/src/vault/schemas/Customer.zod.d.ts.map +1 -1
  19. package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +5 -0
  20. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +2 -0
  21. package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -1
  22. package/dist/declarations/src/vault/vault.schema.d.ts +14 -0
  23. package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
  24. package/dist/declarations/src/webhooks/alert.schema.d.ts +2 -2
  25. package/dist/declarations/src/webhooks/alert.schema.d.ts.map +1 -1
  26. package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts +3 -3
  27. package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts +3 -3
  28. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +180 -180
  29. package/dist/{identity-api.schema-698da711.esm.mjs → identity-api.schema-3a704c7f.esm.mjs} +130 -80
  30. package/dist/{identity-api.schema-f273d197.cjs.dev.cjs → identity-api.schema-58bf8f00.cjs.dev.cjs} +154 -79
  31. package/dist/{identity-api.schema-86cf92dd.cjs.prod.cjs → identity-api.schema-bc5ea73e.cjs.prod.cjs} +154 -79
  32. package/dist/nexeraid-identity-schemas.cjs.dev.cjs +16 -3
  33. package/dist/nexeraid-identity-schemas.cjs.prod.cjs +16 -3
  34. package/dist/nexeraid-identity-schemas.esm.mjs +4 -4
  35. package/dist/package.json +1 -1
  36. package/dist/{tfhe-utilities-2bc50d3e.cjs.prod.cjs → tfhe-utilities-b500085b.cjs.prod.cjs} +2 -2
  37. package/dist/{tfhe-utilities-36b44d38.cjs.dev.cjs → tfhe-utilities-ca4bf29e.cjs.dev.cjs} +2 -2
  38. package/dist/{tfhe-utilities-ca582b5e.esm.mjs → tfhe-utilities-eef7ff5b.esm.mjs} +2 -2
  39. package/dist/{vault.schema-03f54b78.cjs.dev.cjs → vault.schema-01e66371.cjs.prod.cjs} +23 -1
  40. package/dist/{vault.schema-4c134301.esm.mjs → vault.schema-4acec510.esm.mjs} +22 -2
  41. package/dist/{vault.schema-6c801a7d.cjs.prod.cjs → vault.schema-f3a557c2.cjs.dev.cjs} +23 -1
  42. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +13 -2
  43. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +13 -2
  44. package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
  45. package/package.json +1 -1
  46. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +5 -3
  47. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +5 -3
  48. package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
  49. package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +1 -1
  50. package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +1 -1
  51. package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +1 -1
  52. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
  53. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
  54. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
  55. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +21 -48
  56. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +21 -48
  57. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +5 -31
@@ -1,7 +1,21 @@
1
1
  import { z } from "zod";
2
+ export declare const SCENARIO_ACTION_TYPES: readonly ["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"];
3
+ export declare const ActionType: z.ZodEnum<["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"]>;
4
+ export type ActionType = z.infer<typeof ActionType>;
5
+ export declare const ACTION_TRIGGERS: readonly ["ON_TRUE", "ON_FALSE", "ALWAYS"];
6
+ export declare const ActionTrigger: z.ZodEnum<["ON_TRUE", "ON_FALSE", "ALWAYS"]>;
7
+ export type ActionTrigger = z.infer<typeof ActionTrigger>;
8
+ export declare const ACTION_STATUSES: readonly ["ENABLED", "DISABLED"];
9
+ export declare const ActionStatus: z.ZodEnum<["ENABLED", "DISABLED"]>;
10
+ export type ActionStatus = z.infer<typeof ActionStatus>;
11
+ export declare const ActionValue: z.ZodUnion<[z.ZodEnum<["Low", "Medium", "High", "No risk"]>, z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, z.ZodEnum<["pending", "approved", "under_investigation", "blocked", "failed"]>, z.ZodEnum<["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"]>]>;
12
+ export type ActionValue = z.infer<typeof ActionValue>;
2
13
  export declare const ScenarioTypes: readonly ["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"];
3
14
  export declare const ScenarioType: z.ZodEnum<["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"]>;
4
15
  export type ScenarioType = z.infer<typeof ScenarioType>;
16
+ export declare const ScenarioModes: readonly ["INTERNAL", "EXTERNAL"];
17
+ export declare const ScenarioMode: z.ZodEnum<["INTERNAL", "EXTERNAL"]>;
18
+ export type ScenarioMode = z.infer<typeof ScenarioMode>;
5
19
  export declare const ScenarioStatuses: readonly ["enabled", "disabled"];
6
20
  export declare const ScenarioStatus: z.ZodEnum<["enabled", "disabled"]>;
7
21
  export type ScenarioStatus = z.infer<typeof ScenarioType>;
@@ -341,14 +355,14 @@ export declare const ScenarioExecutionResponse: z.ZodArray<z.ZodObject<{
341
355
  address?: string | null | undefined;
342
356
  }>, "many">;
343
357
  export type ScenarioExecutionResponse = z.infer<typeof ScenarioExecutionResponse>;
344
- export declare const RuleResultStatuses: readonly ["valid", "not-valid", "error", "unknown"];
345
- export declare const RuleResultStatus: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
358
+ export declare const RuleResultStatuses: readonly ["valid", "not-valid", "skipped", "error", "unknown"];
359
+ export declare const RuleResultStatus: z.ZodEnum<["valid", "not-valid", "skipped", "error", "unknown"]>;
346
360
  export type RuleResultStatus = z.infer<typeof RuleResultStatus>;
347
361
  export declare const RuleResultStatusLabels: Record<RuleResultStatus, string>;
348
362
  export declare const SdkVerificationOutput: z.ZodObject<{
349
363
  customerId: z.ZodOptional<z.ZodString>;
350
364
  scenarioExecutionId: z.ZodOptional<z.ZodString>;
351
- status: z.ZodOptional<z.ZodEnum<["valid", "not-valid", "error", "unknown"]>>;
365
+ status: z.ZodOptional<z.ZodEnum<["valid", "not-valid", "skipped", "error", "unknown"]>>;
352
366
  results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
353
367
  objectType: z.ZodEnum<["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE", "OffChainZKP", "ChallengeQuery"]>;
354
368
  objectId: z.ZodString;
@@ -412,7 +426,7 @@ export declare const SdkVerificationOutput: z.ZodObject<{
412
426
  address?: string | null | undefined;
413
427
  }>, "many">, "many">>;
414
428
  }, "strip", z.ZodTypeAny, {
415
- status?: "valid" | "unknown" | "not-valid" | "error" | undefined;
429
+ status?: "valid" | "unknown" | "not-valid" | "skipped" | "error" | undefined;
416
430
  customerId?: string | undefined;
417
431
  scenarioExecutionId?: string | undefined;
418
432
  results?: {
@@ -431,7 +445,7 @@ export declare const SdkVerificationOutput: z.ZodObject<{
431
445
  address?: string | null | undefined;
432
446
  }[][] | undefined;
433
447
  }, {
434
- status?: "valid" | "unknown" | "not-valid" | "error" | undefined;
448
+ status?: "valid" | "unknown" | "not-valid" | "skipped" | "error" | undefined;
435
449
  customerId?: string | undefined;
436
450
  scenarioExecutionId?: string | undefined;
437
451
  results?: {
@@ -459,7 +473,7 @@ export declare const VerificationOutput: z.ZodObject<{
459
473
  verificationResult: z.ZodNullable<z.ZodObject<{
460
474
  customerId: z.ZodOptional<z.ZodString>;
461
475
  scenarioExecutionId: z.ZodOptional<z.ZodString>;
462
- status: z.ZodOptional<z.ZodEnum<["valid", "not-valid", "error", "unknown"]>>;
476
+ status: z.ZodOptional<z.ZodEnum<["valid", "not-valid", "skipped", "error", "unknown"]>>;
463
477
  results: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
464
478
  objectType: z.ZodEnum<["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE", "OffChainZKP", "ChallengeQuery"]>;
465
479
  objectId: z.ZodString;
@@ -523,7 +537,7 @@ export declare const VerificationOutput: z.ZodObject<{
523
537
  address?: string | null | undefined;
524
538
  }>, "many">, "many">>;
525
539
  }, "strip", z.ZodTypeAny, {
526
- status?: "valid" | "unknown" | "not-valid" | "error" | undefined;
540
+ status?: "valid" | "unknown" | "not-valid" | "skipped" | "error" | undefined;
527
541
  customerId?: string | undefined;
528
542
  scenarioExecutionId?: string | undefined;
529
543
  results?: {
@@ -542,7 +556,7 @@ export declare const VerificationOutput: z.ZodObject<{
542
556
  address?: string | null | undefined;
543
557
  }[][] | undefined;
544
558
  }, {
545
- status?: "valid" | "unknown" | "not-valid" | "error" | undefined;
559
+ status?: "valid" | "unknown" | "not-valid" | "skipped" | "error" | undefined;
546
560
  customerId?: string | undefined;
547
561
  scenarioExecutionId?: string | undefined;
548
562
  results?: {
@@ -566,7 +580,7 @@ export declare const VerificationOutput: z.ZodObject<{
566
580
  id: string | null;
567
581
  status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
568
582
  verificationResult: {
569
- status?: "valid" | "unknown" | "not-valid" | "error" | undefined;
583
+ status?: "valid" | "unknown" | "not-valid" | "skipped" | "error" | undefined;
570
584
  customerId?: string | undefined;
571
585
  scenarioExecutionId?: string | undefined;
572
586
  results?: {
@@ -589,7 +603,7 @@ export declare const VerificationOutput: z.ZodObject<{
589
603
  id: string | null;
590
604
  status: "IN_PROGRESS" | "COMPLETED" | "NOT_STARTED";
591
605
  verificationResult: {
592
- status?: "valid" | "unknown" | "not-valid" | "error" | undefined;
606
+ status?: "valid" | "unknown" | "not-valid" | "skipped" | "error" | undefined;
593
607
  customerId?: string | undefined;
594
608
  scenarioExecutionId?: string | undefined;
595
609
  results?: {
@@ -610,6 +624,23 @@ export declare const VerificationOutput: z.ZodObject<{
610
624
  } | null;
611
625
  }>;
612
626
  export type VerificationOutput = z.infer<typeof VerificationOutput>;
627
+ export declare const Action: z.ZodObject<{
628
+ type: z.ZodEnum<["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"]>;
629
+ trigger: z.ZodEnum<["ON_TRUE", "ON_FALSE", "ALWAYS"]>;
630
+ status: z.ZodEnum<["ENABLED", "DISABLED"]>;
631
+ value: z.ZodUnion<[z.ZodEnum<["Low", "Medium", "High", "No risk"]>, z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, z.ZodEnum<["pending", "approved", "under_investigation", "blocked", "failed"]>, z.ZodEnum<["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"]>]>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
634
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
635
+ status: "ENABLED" | "DISABLED";
636
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
637
+ }, {
638
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
639
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
640
+ status: "ENABLED" | "DISABLED";
641
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
642
+ }>;
643
+ export type Action = z.infer<typeof Action>;
613
644
  export declare const Scenario: z.ZodObject<{
614
645
  id: z.ZodType<`scenario_${string}`, z.ZodTypeDef, `scenario_${string}`>;
615
646
  name: z.ZodString;
@@ -656,7 +687,100 @@ export declare const Scenario: z.ZodObject<{
656
687
  queryId?: `query_${string}` | undefined;
657
688
  requestId?: number | null | undefined;
658
689
  }>, "many">;
690
+ queryGroups: z.ZodArray<z.ZodObject<{
691
+ id: z.ZodOptional<z.ZodType<`qgroup_${string}`, z.ZodTypeDef, `qgroup_${string}`>>;
692
+ operator: z.ZodEnum<["AND", "OR"]>;
693
+ queries: z.ZodArray<z.ZodObject<{
694
+ queryId: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
695
+ id: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
696
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
697
+ attribute: z.ZodObject<{
698
+ version: z.ZodEnum<["v1"]>;
699
+ schema: z.ZodEnum<[keyof import("../index.js").VaultSchema, ...(keyof import("../index.js").VaultSchema)[]]>;
700
+ path: z.ZodEnum<[import("../index.js").VaultSchemaPaths, ...import("../index.js").VaultSchemaPaths[]]>;
701
+ }, "strip", z.ZodTypeAny, {
702
+ path: import("../index.js").VaultSchemaPaths;
703
+ version: "v1";
704
+ schema: keyof import("../index.js").VaultSchema;
705
+ }, {
706
+ path: import("../index.js").VaultSchemaPaths;
707
+ version: "v1";
708
+ schema: keyof import("../index.js").VaultSchema;
709
+ }>;
710
+ value: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>;
711
+ operator: z.ZodEnum<["$noop", "$eq", "$lt", "$lte", "$gt", "$gte", "$in", "$nin", "$ne", "$exists", "$has", "$nhas"]>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ attribute: {
714
+ path: import("../index.js").VaultSchemaPaths;
715
+ version: "v1";
716
+ schema: keyof import("../index.js").VaultSchema;
717
+ };
718
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
719
+ id?: `query_${string}` | undefined;
720
+ value?: string | number | boolean | string[] | number[] | null | undefined;
721
+ queryId?: `query_${string}` | undefined;
722
+ requestId?: number | null | undefined;
723
+ }, {
724
+ attribute: {
725
+ path: import("../index.js").VaultSchemaPaths;
726
+ version: "v1";
727
+ schema: keyof import("../index.js").VaultSchema;
728
+ };
729
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
730
+ id?: `query_${string}` | undefined;
731
+ value?: string | number | boolean | string[] | number[] | null | undefined;
732
+ queryId?: `query_${string}` | undefined;
733
+ requestId?: number | null | undefined;
734
+ }>, "many">;
735
+ }, "strip", z.ZodTypeAny, {
736
+ operator: "AND" | "OR";
737
+ queries: {
738
+ attribute: {
739
+ path: import("../index.js").VaultSchemaPaths;
740
+ version: "v1";
741
+ schema: keyof import("../index.js").VaultSchema;
742
+ };
743
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
744
+ id?: `query_${string}` | undefined;
745
+ value?: string | number | boolean | string[] | number[] | null | undefined;
746
+ queryId?: `query_${string}` | undefined;
747
+ requestId?: number | null | undefined;
748
+ }[];
749
+ id?: `qgroup_${string}` | undefined;
750
+ }, {
751
+ operator: "AND" | "OR";
752
+ queries: {
753
+ attribute: {
754
+ path: import("../index.js").VaultSchemaPaths;
755
+ version: "v1";
756
+ schema: keyof import("../index.js").VaultSchema;
757
+ };
758
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
759
+ id?: `query_${string}` | undefined;
760
+ value?: string | number | boolean | string[] | number[] | null | undefined;
761
+ queryId?: `query_${string}` | undefined;
762
+ requestId?: number | null | undefined;
763
+ }[];
764
+ id?: `qgroup_${string}` | undefined;
765
+ }>, "many">;
766
+ actions: z.ZodArray<z.ZodObject<{
767
+ type: z.ZodEnum<["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"]>;
768
+ trigger: z.ZodEnum<["ON_TRUE", "ON_FALSE", "ALWAYS"]>;
769
+ status: z.ZodEnum<["ENABLED", "DISABLED"]>;
770
+ value: z.ZodUnion<[z.ZodEnum<["Low", "Medium", "High", "No risk"]>, z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, z.ZodEnum<["pending", "approved", "under_investigation", "blocked", "failed"]>, z.ZodEnum<["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"]>]>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
773
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
774
+ status: "ENABLED" | "DISABLED";
775
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
776
+ }, {
777
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
778
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
779
+ status: "ENABLED" | "DISABLED";
780
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
781
+ }>, "many">;
659
782
  type: z.ZodEnum<["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"]>;
783
+ mode: z.ZodEnum<["INTERNAL", "EXTERNAL"]>;
660
784
  workspaceId: z.ZodString;
661
785
  vcsIncluded: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "IDInformationTfhe", "ID3", "IDScan", "IDScanSelfie", "IDScanPassport"]>>, "many">>>;
662
786
  }, "strip", z.ZodTypeAny, {
@@ -676,6 +800,29 @@ export declare const Scenario: z.ZodObject<{
676
800
  queryId?: `query_${string}` | undefined;
677
801
  requestId?: number | null | undefined;
678
802
  }[];
803
+ queryGroups: {
804
+ operator: "AND" | "OR";
805
+ queries: {
806
+ attribute: {
807
+ path: import("../index.js").VaultSchemaPaths;
808
+ version: "v1";
809
+ schema: keyof import("../index.js").VaultSchema;
810
+ };
811
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
812
+ id?: `query_${string}` | undefined;
813
+ value?: string | number | boolean | string[] | number[] | null | undefined;
814
+ queryId?: `query_${string}` | undefined;
815
+ requestId?: number | null | undefined;
816
+ }[];
817
+ id?: `qgroup_${string}` | undefined;
818
+ }[];
819
+ actions: {
820
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
821
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
822
+ status: "ENABLED" | "DISABLED";
823
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
824
+ }[];
825
+ mode: "INTERNAL" | "EXTERNAL";
679
826
  description?: string | null | undefined;
680
827
  vcsIncluded?: ("AMLScreeningsResults" | "ProofOfResidence" | "SelfieImage" | "IDImage" | "IDInformation" | "IDInformationTfhe" | "ID3" | "IDScan" | "IDScanSelfie" | "IDScanPassport")[] | null | undefined;
681
828
  }, {
@@ -695,6 +842,29 @@ export declare const Scenario: z.ZodObject<{
695
842
  queryId?: `query_${string}` | undefined;
696
843
  requestId?: number | null | undefined;
697
844
  }[];
845
+ queryGroups: {
846
+ operator: "AND" | "OR";
847
+ queries: {
848
+ attribute: {
849
+ path: import("../index.js").VaultSchemaPaths;
850
+ version: "v1";
851
+ schema: keyof import("../index.js").VaultSchema;
852
+ };
853
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
854
+ id?: `query_${string}` | undefined;
855
+ value?: string | number | boolean | string[] | number[] | null | undefined;
856
+ queryId?: `query_${string}` | undefined;
857
+ requestId?: number | null | undefined;
858
+ }[];
859
+ id?: `qgroup_${string}` | undefined;
860
+ }[];
861
+ actions: {
862
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
863
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
864
+ status: "ENABLED" | "DISABLED";
865
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
866
+ }[];
867
+ mode: "INTERNAL" | "EXTERNAL";
698
868
  description?: string | null | undefined;
699
869
  vcsIncluded?: string[] | null | undefined;
700
870
  }>;
@@ -744,7 +914,100 @@ export declare const AbbreviatedWorkflowScenario: z.ZodObject<z.objectUtil.exten
744
914
  queryId?: `query_${string}` | undefined;
745
915
  requestId?: number | null | undefined;
746
916
  }>, "many">;
917
+ queryGroups: z.ZodArray<z.ZodObject<{
918
+ id: z.ZodOptional<z.ZodType<`qgroup_${string}`, z.ZodTypeDef, `qgroup_${string}`>>;
919
+ operator: z.ZodEnum<["AND", "OR"]>;
920
+ queries: z.ZodArray<z.ZodObject<{
921
+ queryId: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
922
+ id: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
923
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
924
+ attribute: z.ZodObject<{
925
+ version: z.ZodEnum<["v1"]>;
926
+ schema: z.ZodEnum<[keyof import("../index.js").VaultSchema, ...(keyof import("../index.js").VaultSchema)[]]>;
927
+ path: z.ZodEnum<[import("../index.js").VaultSchemaPaths, ...import("../index.js").VaultSchemaPaths[]]>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ path: import("../index.js").VaultSchemaPaths;
930
+ version: "v1";
931
+ schema: keyof import("../index.js").VaultSchema;
932
+ }, {
933
+ path: import("../index.js").VaultSchemaPaths;
934
+ version: "v1";
935
+ schema: keyof import("../index.js").VaultSchema;
936
+ }>;
937
+ value: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>;
938
+ operator: z.ZodEnum<["$noop", "$eq", "$lt", "$lte", "$gt", "$gte", "$in", "$nin", "$ne", "$exists", "$has", "$nhas"]>;
939
+ }, "strip", z.ZodTypeAny, {
940
+ attribute: {
941
+ path: import("../index.js").VaultSchemaPaths;
942
+ version: "v1";
943
+ schema: keyof import("../index.js").VaultSchema;
944
+ };
945
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
946
+ id?: `query_${string}` | undefined;
947
+ value?: string | number | boolean | string[] | number[] | null | undefined;
948
+ queryId?: `query_${string}` | undefined;
949
+ requestId?: number | null | undefined;
950
+ }, {
951
+ attribute: {
952
+ path: import("../index.js").VaultSchemaPaths;
953
+ version: "v1";
954
+ schema: keyof import("../index.js").VaultSchema;
955
+ };
956
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
957
+ id?: `query_${string}` | undefined;
958
+ value?: string | number | boolean | string[] | number[] | null | undefined;
959
+ queryId?: `query_${string}` | undefined;
960
+ requestId?: number | null | undefined;
961
+ }>, "many">;
962
+ }, "strip", z.ZodTypeAny, {
963
+ operator: "AND" | "OR";
964
+ queries: {
965
+ attribute: {
966
+ path: import("../index.js").VaultSchemaPaths;
967
+ version: "v1";
968
+ schema: keyof import("../index.js").VaultSchema;
969
+ };
970
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
971
+ id?: `query_${string}` | undefined;
972
+ value?: string | number | boolean | string[] | number[] | null | undefined;
973
+ queryId?: `query_${string}` | undefined;
974
+ requestId?: number | null | undefined;
975
+ }[];
976
+ id?: `qgroup_${string}` | undefined;
977
+ }, {
978
+ operator: "AND" | "OR";
979
+ queries: {
980
+ attribute: {
981
+ path: import("../index.js").VaultSchemaPaths;
982
+ version: "v1";
983
+ schema: keyof import("../index.js").VaultSchema;
984
+ };
985
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
986
+ id?: `query_${string}` | undefined;
987
+ value?: string | number | boolean | string[] | number[] | null | undefined;
988
+ queryId?: `query_${string}` | undefined;
989
+ requestId?: number | null | undefined;
990
+ }[];
991
+ id?: `qgroup_${string}` | undefined;
992
+ }>, "many">;
993
+ actions: z.ZodArray<z.ZodObject<{
994
+ type: z.ZodEnum<["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"]>;
995
+ trigger: z.ZodEnum<["ON_TRUE", "ON_FALSE", "ALWAYS"]>;
996
+ status: z.ZodEnum<["ENABLED", "DISABLED"]>;
997
+ value: z.ZodUnion<[z.ZodEnum<["Low", "Medium", "High", "No risk"]>, z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, z.ZodEnum<["pending", "approved", "under_investigation", "blocked", "failed"]>, z.ZodEnum<["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"]>]>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1000
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1001
+ status: "ENABLED" | "DISABLED";
1002
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1003
+ }, {
1004
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1005
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1006
+ status: "ENABLED" | "DISABLED";
1007
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1008
+ }>, "many">;
747
1009
  type: z.ZodEnum<["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"]>;
1010
+ mode: z.ZodEnum<["INTERNAL", "EXTERNAL"]>;
748
1011
  workspaceId: z.ZodString;
749
1012
  vcsIncluded: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "IDInformationTfhe", "ID3", "IDScan", "IDScanSelfie", "IDScanPassport"]>>, "many">>>;
750
1013
  }, "queries" | "vcsIncluded">, {
@@ -807,6 +1070,29 @@ export declare const AbbreviatedWorkflowScenario: z.ZodObject<z.objectUtil.exten
807
1070
  queryId?: `query_${string}` | undefined;
808
1071
  requestId?: number | null | undefined;
809
1072
  }[];
1073
+ queryGroups: {
1074
+ operator: "AND" | "OR";
1075
+ queries: {
1076
+ attribute: {
1077
+ path: import("../index.js").VaultSchemaPaths;
1078
+ version: "v1";
1079
+ schema: keyof import("../index.js").VaultSchema;
1080
+ };
1081
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1082
+ id?: `query_${string}` | undefined;
1083
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1084
+ queryId?: `query_${string}` | undefined;
1085
+ requestId?: number | null | undefined;
1086
+ }[];
1087
+ id?: `qgroup_${string}` | undefined;
1088
+ }[];
1089
+ actions: {
1090
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1091
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1092
+ status: "ENABLED" | "DISABLED";
1093
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1094
+ }[];
1095
+ mode: "INTERNAL" | "EXTERNAL";
810
1096
  description?: string | null | undefined;
811
1097
  }, {
812
1098
  id: `scenario_${string}`;
@@ -825,6 +1111,29 @@ export declare const AbbreviatedWorkflowScenario: z.ZodObject<z.objectUtil.exten
825
1111
  queryId?: `query_${string}` | undefined;
826
1112
  requestId?: number | null | undefined;
827
1113
  }[];
1114
+ queryGroups: {
1115
+ operator: "AND" | "OR";
1116
+ queries: {
1117
+ attribute: {
1118
+ path: import("../index.js").VaultSchemaPaths;
1119
+ version: "v1";
1120
+ schema: keyof import("../index.js").VaultSchema;
1121
+ };
1122
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1123
+ id?: `query_${string}` | undefined;
1124
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1125
+ queryId?: `query_${string}` | undefined;
1126
+ requestId?: number | null | undefined;
1127
+ }[];
1128
+ id?: `qgroup_${string}` | undefined;
1129
+ }[];
1130
+ actions: {
1131
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1132
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1133
+ status: "ENABLED" | "DISABLED";
1134
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1135
+ }[];
1136
+ mode: "INTERNAL" | "EXTERNAL";
828
1137
  description?: string | null | undefined;
829
1138
  }>;
830
1139
  export declare const TemplateScenario: z.ZodObject<Omit<{
@@ -873,7 +1182,100 @@ export declare const TemplateScenario: z.ZodObject<Omit<{
873
1182
  queryId?: `query_${string}` | undefined;
874
1183
  requestId?: number | null | undefined;
875
1184
  }>, "many">;
1185
+ queryGroups: z.ZodArray<z.ZodObject<{
1186
+ id: z.ZodOptional<z.ZodType<`qgroup_${string}`, z.ZodTypeDef, `qgroup_${string}`>>;
1187
+ operator: z.ZodEnum<["AND", "OR"]>;
1188
+ queries: z.ZodArray<z.ZodObject<{
1189
+ queryId: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
1190
+ id: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
1191
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1192
+ attribute: z.ZodObject<{
1193
+ version: z.ZodEnum<["v1"]>;
1194
+ schema: z.ZodEnum<[keyof import("../index.js").VaultSchema, ...(keyof import("../index.js").VaultSchema)[]]>;
1195
+ path: z.ZodEnum<[import("../index.js").VaultSchemaPaths, ...import("../index.js").VaultSchemaPaths[]]>;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ path: import("../index.js").VaultSchemaPaths;
1198
+ version: "v1";
1199
+ schema: keyof import("../index.js").VaultSchema;
1200
+ }, {
1201
+ path: import("../index.js").VaultSchemaPaths;
1202
+ version: "v1";
1203
+ schema: keyof import("../index.js").VaultSchema;
1204
+ }>;
1205
+ value: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>;
1206
+ operator: z.ZodEnum<["$noop", "$eq", "$lt", "$lte", "$gt", "$gte", "$in", "$nin", "$ne", "$exists", "$has", "$nhas"]>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ attribute: {
1209
+ path: import("../index.js").VaultSchemaPaths;
1210
+ version: "v1";
1211
+ schema: keyof import("../index.js").VaultSchema;
1212
+ };
1213
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1214
+ id?: `query_${string}` | undefined;
1215
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1216
+ queryId?: `query_${string}` | undefined;
1217
+ requestId?: number | null | undefined;
1218
+ }, {
1219
+ attribute: {
1220
+ path: import("../index.js").VaultSchemaPaths;
1221
+ version: "v1";
1222
+ schema: keyof import("../index.js").VaultSchema;
1223
+ };
1224
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1225
+ id?: `query_${string}` | undefined;
1226
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1227
+ queryId?: `query_${string}` | undefined;
1228
+ requestId?: number | null | undefined;
1229
+ }>, "many">;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ operator: "AND" | "OR";
1232
+ queries: {
1233
+ attribute: {
1234
+ path: import("../index.js").VaultSchemaPaths;
1235
+ version: "v1";
1236
+ schema: keyof import("../index.js").VaultSchema;
1237
+ };
1238
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1239
+ id?: `query_${string}` | undefined;
1240
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1241
+ queryId?: `query_${string}` | undefined;
1242
+ requestId?: number | null | undefined;
1243
+ }[];
1244
+ id?: `qgroup_${string}` | undefined;
1245
+ }, {
1246
+ operator: "AND" | "OR";
1247
+ queries: {
1248
+ attribute: {
1249
+ path: import("../index.js").VaultSchemaPaths;
1250
+ version: "v1";
1251
+ schema: keyof import("../index.js").VaultSchema;
1252
+ };
1253
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1254
+ id?: `query_${string}` | undefined;
1255
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1256
+ queryId?: `query_${string}` | undefined;
1257
+ requestId?: number | null | undefined;
1258
+ }[];
1259
+ id?: `qgroup_${string}` | undefined;
1260
+ }>, "many">;
1261
+ actions: z.ZodArray<z.ZodObject<{
1262
+ type: z.ZodEnum<["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"]>;
1263
+ trigger: z.ZodEnum<["ON_TRUE", "ON_FALSE", "ALWAYS"]>;
1264
+ status: z.ZodEnum<["ENABLED", "DISABLED"]>;
1265
+ value: z.ZodUnion<[z.ZodEnum<["Low", "Medium", "High", "No risk"]>, z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, z.ZodEnum<["pending", "approved", "under_investigation", "blocked", "failed"]>, z.ZodEnum<["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"]>]>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1268
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1269
+ status: "ENABLED" | "DISABLED";
1270
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1271
+ }, {
1272
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1273
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1274
+ status: "ENABLED" | "DISABLED";
1275
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1276
+ }>, "many">;
876
1277
  type: z.ZodEnum<["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"]>;
1278
+ mode: z.ZodEnum<["INTERNAL", "EXTERNAL"]>;
877
1279
  workspaceId: z.ZodString;
878
1280
  vcsIncluded: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "IDInformationTfhe", "ID3", "IDScan", "IDScanSelfie", "IDScanPassport"]>>, "many">>>;
879
1281
  }, "workspaceId">, "strip", z.ZodTypeAny, {
@@ -892,6 +1294,29 @@ export declare const TemplateScenario: z.ZodObject<Omit<{
892
1294
  queryId?: `query_${string}` | undefined;
893
1295
  requestId?: number | null | undefined;
894
1296
  }[];
1297
+ queryGroups: {
1298
+ operator: "AND" | "OR";
1299
+ queries: {
1300
+ attribute: {
1301
+ path: import("../index.js").VaultSchemaPaths;
1302
+ version: "v1";
1303
+ schema: keyof import("../index.js").VaultSchema;
1304
+ };
1305
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1306
+ id?: `query_${string}` | undefined;
1307
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1308
+ queryId?: `query_${string}` | undefined;
1309
+ requestId?: number | null | undefined;
1310
+ }[];
1311
+ id?: `qgroup_${string}` | undefined;
1312
+ }[];
1313
+ actions: {
1314
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1315
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1316
+ status: "ENABLED" | "DISABLED";
1317
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1318
+ }[];
1319
+ mode: "INTERNAL" | "EXTERNAL";
895
1320
  description?: string | null | undefined;
896
1321
  vcsIncluded?: ("AMLScreeningsResults" | "ProofOfResidence" | "SelfieImage" | "IDImage" | "IDInformation" | "IDInformationTfhe" | "ID3" | "IDScan" | "IDScanSelfie" | "IDScanPassport")[] | null | undefined;
897
1322
  }, {
@@ -910,6 +1335,29 @@ export declare const TemplateScenario: z.ZodObject<Omit<{
910
1335
  queryId?: `query_${string}` | undefined;
911
1336
  requestId?: number | null | undefined;
912
1337
  }[];
1338
+ queryGroups: {
1339
+ operator: "AND" | "OR";
1340
+ queries: {
1341
+ attribute: {
1342
+ path: import("../index.js").VaultSchemaPaths;
1343
+ version: "v1";
1344
+ schema: keyof import("../index.js").VaultSchema;
1345
+ };
1346
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1347
+ id?: `query_${string}` | undefined;
1348
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1349
+ queryId?: `query_${string}` | undefined;
1350
+ requestId?: number | null | undefined;
1351
+ }[];
1352
+ id?: `qgroup_${string}` | undefined;
1353
+ }[];
1354
+ actions: {
1355
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1356
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1357
+ status: "ENABLED" | "DISABLED";
1358
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1359
+ }[];
1360
+ mode: "INTERNAL" | "EXTERNAL";
913
1361
  description?: string | null | undefined;
914
1362
  vcsIncluded?: string[] | null | undefined;
915
1363
  }>;
@@ -959,7 +1407,100 @@ export declare const CreateTemplateScenario: z.ZodObject<Omit<Omit<{
959
1407
  queryId?: `query_${string}` | undefined;
960
1408
  requestId?: number | null | undefined;
961
1409
  }>, "many">;
1410
+ queryGroups: z.ZodArray<z.ZodObject<{
1411
+ id: z.ZodOptional<z.ZodType<`qgroup_${string}`, z.ZodTypeDef, `qgroup_${string}`>>;
1412
+ operator: z.ZodEnum<["AND", "OR"]>;
1413
+ queries: z.ZodArray<z.ZodObject<{
1414
+ queryId: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
1415
+ id: z.ZodOptional<z.ZodType<`query_${string}`, z.ZodTypeDef, `query_${string}`>>;
1416
+ requestId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1417
+ attribute: z.ZodObject<{
1418
+ version: z.ZodEnum<["v1"]>;
1419
+ schema: z.ZodEnum<[keyof import("../index.js").VaultSchema, ...(keyof import("../index.js").VaultSchema)[]]>;
1420
+ path: z.ZodEnum<[import("../index.js").VaultSchemaPaths, ...import("../index.js").VaultSchemaPaths[]]>;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ path: import("../index.js").VaultSchemaPaths;
1423
+ version: "v1";
1424
+ schema: keyof import("../index.js").VaultSchema;
1425
+ }, {
1426
+ path: import("../index.js").VaultSchemaPaths;
1427
+ version: "v1";
1428
+ schema: keyof import("../index.js").VaultSchema;
1429
+ }>;
1430
+ value: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>>>;
1431
+ operator: z.ZodEnum<["$noop", "$eq", "$lt", "$lte", "$gt", "$gte", "$in", "$nin", "$ne", "$exists", "$has", "$nhas"]>;
1432
+ }, "strip", z.ZodTypeAny, {
1433
+ attribute: {
1434
+ path: import("../index.js").VaultSchemaPaths;
1435
+ version: "v1";
1436
+ schema: keyof import("../index.js").VaultSchema;
1437
+ };
1438
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1439
+ id?: `query_${string}` | undefined;
1440
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1441
+ queryId?: `query_${string}` | undefined;
1442
+ requestId?: number | null | undefined;
1443
+ }, {
1444
+ attribute: {
1445
+ path: import("../index.js").VaultSchemaPaths;
1446
+ version: "v1";
1447
+ schema: keyof import("../index.js").VaultSchema;
1448
+ };
1449
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1450
+ id?: `query_${string}` | undefined;
1451
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1452
+ queryId?: `query_${string}` | undefined;
1453
+ requestId?: number | null | undefined;
1454
+ }>, "many">;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ operator: "AND" | "OR";
1457
+ queries: {
1458
+ attribute: {
1459
+ path: import("../index.js").VaultSchemaPaths;
1460
+ version: "v1";
1461
+ schema: keyof import("../index.js").VaultSchema;
1462
+ };
1463
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1464
+ id?: `query_${string}` | undefined;
1465
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1466
+ queryId?: `query_${string}` | undefined;
1467
+ requestId?: number | null | undefined;
1468
+ }[];
1469
+ id?: `qgroup_${string}` | undefined;
1470
+ }, {
1471
+ operator: "AND" | "OR";
1472
+ queries: {
1473
+ attribute: {
1474
+ path: import("../index.js").VaultSchemaPaths;
1475
+ version: "v1";
1476
+ schema: keyof import("../index.js").VaultSchema;
1477
+ };
1478
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1479
+ id?: `query_${string}` | undefined;
1480
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1481
+ queryId?: `query_${string}` | undefined;
1482
+ requestId?: number | null | undefined;
1483
+ }[];
1484
+ id?: `qgroup_${string}` | undefined;
1485
+ }>, "many">;
1486
+ actions: z.ZodArray<z.ZodObject<{
1487
+ type: z.ZodEnum<["SET_CUSTOMER_RISK_LEVEL", "SET_CUSTOMER_STATUS", "SET_ALERT_RISK_LEVEL", "SET_TRANSACTION_RISK_LEVEL", "SET_TRANSACTION_STATUS", "ASSIGN_COMPLIANCE_OFFICER", "CREATE_ALERT"]>;
1488
+ trigger: z.ZodEnum<["ON_TRUE", "ON_FALSE", "ALWAYS"]>;
1489
+ status: z.ZodEnum<["ENABLED", "DISABLED"]>;
1490
+ value: z.ZodUnion<[z.ZodEnum<["Low", "Medium", "High", "No risk"]>, z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, z.ZodEnum<["pending", "approved", "under_investigation", "blocked", "failed"]>, z.ZodEnum<["AML Screening", "IP Screening", "Email Screening", "KYC Drop-off", "Onchain Monitoring", "Fraud", "Transaction Monitoring", "Duplicate", "Individual Monitoring"]>]>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1493
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1494
+ status: "ENABLED" | "DISABLED";
1495
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1496
+ }, {
1497
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1498
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1499
+ status: "ENABLED" | "DISABLED";
1500
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1501
+ }>, "many">;
962
1502
  type: z.ZodEnum<["PrivacyPreservingMonitoring", "IndividualMonitoring", "TransactionMonitoring", "TFHE"]>;
1503
+ mode: z.ZodEnum<["INTERNAL", "EXTERNAL"]>;
963
1504
  workspaceId: z.ZodString;
964
1505
  vcsIncluded: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "IDInformationTfhe", "ID3", "IDScan", "IDScanSelfie", "IDScanPassport"]>>, "many">>>;
965
1506
  }, "workspaceId">, "id">, "strip", z.ZodTypeAny, {
@@ -977,6 +1518,29 @@ export declare const CreateTemplateScenario: z.ZodObject<Omit<Omit<{
977
1518
  queryId?: `query_${string}` | undefined;
978
1519
  requestId?: number | null | undefined;
979
1520
  }[];
1521
+ queryGroups: {
1522
+ operator: "AND" | "OR";
1523
+ queries: {
1524
+ attribute: {
1525
+ path: import("../index.js").VaultSchemaPaths;
1526
+ version: "v1";
1527
+ schema: keyof import("../index.js").VaultSchema;
1528
+ };
1529
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1530
+ id?: `query_${string}` | undefined;
1531
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1532
+ queryId?: `query_${string}` | undefined;
1533
+ requestId?: number | null | undefined;
1534
+ }[];
1535
+ id?: `qgroup_${string}` | undefined;
1536
+ }[];
1537
+ actions: {
1538
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1539
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1540
+ status: "ENABLED" | "DISABLED";
1541
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1542
+ }[];
1543
+ mode: "INTERNAL" | "EXTERNAL";
980
1544
  description?: string | null | undefined;
981
1545
  vcsIncluded?: ("AMLScreeningsResults" | "ProofOfResidence" | "SelfieImage" | "IDImage" | "IDInformation" | "IDInformationTfhe" | "ID3" | "IDScan" | "IDScanSelfie" | "IDScanPassport")[] | null | undefined;
982
1546
  }, {
@@ -994,6 +1558,29 @@ export declare const CreateTemplateScenario: z.ZodObject<Omit<Omit<{
994
1558
  queryId?: `query_${string}` | undefined;
995
1559
  requestId?: number | null | undefined;
996
1560
  }[];
1561
+ queryGroups: {
1562
+ operator: "AND" | "OR";
1563
+ queries: {
1564
+ attribute: {
1565
+ path: import("../index.js").VaultSchemaPaths;
1566
+ version: "v1";
1567
+ schema: keyof import("../index.js").VaultSchema;
1568
+ };
1569
+ operator: "$noop" | "$eq" | "$lt" | "$lte" | "$gt" | "$gte" | "$in" | "$nin" | "$ne" | "$exists" | "$has" | "$nhas";
1570
+ id?: `query_${string}` | undefined;
1571
+ value?: string | number | boolean | string[] | number[] | null | undefined;
1572
+ queryId?: `query_${string}` | undefined;
1573
+ requestId?: number | null | undefined;
1574
+ }[];
1575
+ id?: `qgroup_${string}` | undefined;
1576
+ }[];
1577
+ actions: {
1578
+ value: "Low" | "Medium" | "High" | "No risk" | "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | "pending" | "approved" | "under_investigation" | "blocked" | "failed" | "AML Screening" | "IP Screening" | "Email Screening" | "KYC Drop-off" | "Onchain Monitoring" | "Fraud" | "Transaction Monitoring" | "Duplicate" | "Individual Monitoring";
1579
+ type: "SET_CUSTOMER_RISK_LEVEL" | "SET_CUSTOMER_STATUS" | "SET_ALERT_RISK_LEVEL" | "SET_TRANSACTION_RISK_LEVEL" | "SET_TRANSACTION_STATUS" | "ASSIGN_COMPLIANCE_OFFICER" | "CREATE_ALERT";
1580
+ status: "ENABLED" | "DISABLED";
1581
+ trigger: "ON_TRUE" | "ON_FALSE" | "ALWAYS";
1582
+ }[];
1583
+ mode: "INTERNAL" | "EXTERNAL";
997
1584
  description?: string | null | undefined;
998
1585
  vcsIncluded?: string[] | null | undefined;
999
1586
  }>;