@artu-ai/compliance-sdk 0.12.4 → 0.12.5

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 (45) hide show
  1. package/README.md +0 -3
  2. package/dist/exports/mx/index.d.ts +1 -1
  3. package/dist/exports/mx/index.d.ts.map +1 -1
  4. package/dist/exports/mx/index.js +1 -3
  5. package/dist/resources/mx/index.d.ts +0 -1
  6. package/dist/resources/mx/index.d.ts.map +1 -1
  7. package/dist/resources/mx/index.js +0 -1
  8. package/dist/sdk/mx/ComplianceSDK.d.ts +1 -22
  9. package/dist/sdk/mx/ComplianceSDK.d.ts.map +1 -1
  10. package/dist/sdk/mx/ComplianceSDK.js +1 -36
  11. package/dist/sdk/mx/av/ari/ComplianceSDK.d.ts +1 -26
  12. package/dist/sdk/mx/av/ari/ComplianceSDK.d.ts.map +1 -1
  13. package/dist/sdk/mx/av/ari/ComplianceSDK.js +1 -26
  14. package/dist/sdk/mx/av/ari/types.d.ts +0 -3
  15. package/dist/sdk/mx/av/ari/types.d.ts.map +1 -1
  16. package/dist/sdk/mx/av/avi/ComplianceSDK.d.ts +1 -1
  17. package/dist/sdk/mx/av/avi/ComplianceSDK.js +1 -1
  18. package/dist/sdk/mx/av/avi/types.d.ts +0 -3
  19. package/dist/sdk/mx/av/avi/types.d.ts.map +1 -1
  20. package/dist/sdk/mx/av/jys/ComplianceSDK.d.ts +1 -7
  21. package/dist/sdk/mx/av/jys/ComplianceSDK.d.ts.map +1 -1
  22. package/dist/sdk/mx/av/jys/ComplianceSDK.js +1 -7
  23. package/dist/sdk/mx/av/jys/types.d.ts +0 -3
  24. package/dist/sdk/mx/av/jys/types.d.ts.map +1 -1
  25. package/dist/sdk/mx/av/mjr/ComplianceSDK.d.ts +1 -19
  26. package/dist/sdk/mx/av/mjr/ComplianceSDK.d.ts.map +1 -1
  27. package/dist/sdk/mx/av/mjr/ComplianceSDK.js +1 -19
  28. package/dist/sdk/mx/av/mjr/types.d.ts +0 -3
  29. package/dist/sdk/mx/av/mjr/types.d.ts.map +1 -1
  30. package/dist/sdk/mx/av/tsc/ComplianceSDK.d.ts +1 -7
  31. package/dist/sdk/mx/av/tsc/ComplianceSDK.d.ts.map +1 -1
  32. package/dist/sdk/mx/av/tsc/ComplianceSDK.js +1 -7
  33. package/dist/sdk/mx/av/tsc/types.d.ts +0 -3
  34. package/dist/sdk/mx/av/tsc/types.d.ts.map +1 -1
  35. package/dist/sdk/mx/cnbv/transmisor/ComplianceSDK.d.ts +1 -7
  36. package/dist/sdk/mx/cnbv/transmisor/ComplianceSDK.d.ts.map +1 -1
  37. package/dist/sdk/mx/cnbv/transmisor/ComplianceSDK.js +1 -7
  38. package/dist/sdk/mx/cnbv/transmisor/types.d.ts +0 -3
  39. package/dist/sdk/mx/cnbv/transmisor/types.d.ts.map +1 -1
  40. package/dist/sdk/mx/types.d.ts +1 -6
  41. package/dist/sdk/mx/types.d.ts.map +1 -1
  42. package/package.json +2 -2
  43. package/dist/resources/mx/ebr.d.ts +0 -214
  44. package/dist/resources/mx/ebr.d.ts.map +0 -1
  45. package/dist/resources/mx/ebr.js +0 -418
@@ -2,16 +2,13 @@
2
2
  * TSC-scoped ComplianceSDK
3
3
  *
4
4
  * Pre-configured SDK for Mexico jurisdiction and Tarjetas de Servicio y Crédito (TSC) activity.
5
- * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources like EBR.
5
+ * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources.
6
6
  */
7
7
  import { MexicoComplianceSDKScoped } from "../../ComplianceSDK";
8
8
  /**
9
9
  * TSC-scoped ComplianceSDK.
10
10
  * Pre-configured for Mexico jurisdiction and Tarjetas de Servicio y Crédito (TSC) activity.
11
11
  *
12
- * Inherits Mexico-specific resources:
13
- * - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation
14
- *
15
12
  * @example
16
13
  * ```typescript
17
14
  * import { ComplianceSDK } from "@artu/compliance-sdk/mx/av/tsc";
@@ -26,9 +23,6 @@ import { MexicoComplianceSDKScoped } from "../../ComplianceSDK";
26
23
  * type: ClientType.Person,
27
24
  * name: "Juan García",
28
25
  * });
29
- *
30
- * // Access inherited EBR resource
31
- * const weights = sdk.ebr.presets.suggested();
32
26
  * ```
33
27
  */
34
28
  export class TSCComplianceSDKScoped extends MexicoComplianceSDKScoped {
@@ -4,7 +4,6 @@
4
4
  * Tarjetas de Servicios y Crédito (Service and Credit Cards) - prepaid cards, etc.
5
5
  */
6
6
  import { MexBankAccountsResource, TSCAlertsResource, TSCClientsResource, TSCTransactionsResource } from "../../../../resources";
7
- import type { EBRResource } from "../../../../resources/mx/ebr";
8
7
  import type { ComplianceSDKOptionsBase } from "../../../types";
9
8
  import type { MexicoComplianceSDK } from "../../types";
10
9
  /**
@@ -26,8 +25,6 @@ export interface TSCComplianceSDK extends Omit<MexicoComplianceSDK, "clients" |
26
25
  readonly transactions: TSCTransactionsResource;
27
26
  readonly alerts: TSCAlertsResource;
28
27
  readonly bankAccounts: MexBankAccountsResource;
29
- /** EBR resource for risk-based evaluation */
30
- readonly ebr: EBRResource;
31
28
  }
32
29
  export declare function registerTSCScope(): void;
33
30
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/mx/av/tsc/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEN,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMvD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,wBAAwB,GAAG;IACtD,KAAK,EAAE,WAAW,CAAC;CAC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AAuB,CAAC;CAC/C;AAMD,wBAAgB,gBAAgB,IAAI,IAAI,CAcvC"}
@@ -2,7 +2,7 @@
2
2
  * Transmisor-scoped ComplianceSDK
3
3
  *
4
4
  * Pre-configured SDK for Mexico jurisdiction and Transmisores de Dinero (TRANSMISOR) CNBV subject.
5
- * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources like EBR.
5
+ * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources.
6
6
  */
7
7
  import type { TransmisorAddressesResource } from "../../../../resources/mx/cnbv/transmisor/addresses";
8
8
  import type { TransmisorAlertsResource } from "../../../../resources/mx/cnbv/transmisor/alerts";
@@ -14,9 +14,6 @@ import type { TransmisorScopedSDKOptions } from "./types";
14
14
  * Transmisor-scoped ComplianceSDK.
15
15
  * Pre-configured for Mexico jurisdiction and Transmisores de Dinero (TRANSMISOR) CNBV subject.
16
16
  *
17
- * Inherits Mexico-specific resources:
18
- * - `ebr` - EBR (Evaluacion Basada en Riesgos) for AML/KYC risk evaluation
19
- *
20
17
  * @example
21
18
  * ```typescript
22
19
  * import { ComplianceSDK } from "@artu/compliance-sdk/mx/cnbv/transmisor";
@@ -31,9 +28,6 @@ import type { TransmisorScopedSDKOptions } from "./types";
31
28
  * type: ClientType.Person,
32
29
  * name: "Juan Garcia",
33
30
  * });
34
- *
35
- * // Access inherited EBR resource
36
- * const weights = sdk.ebr.presets.suggested();
37
31
  * ```
38
32
  */
39
33
  export declare class TransmisorComplianceSDKScoped extends MexicoComplianceSDKScoped {
@@ -1 +1 @@
1
- {"version":3,"file":"ComplianceSDK.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/mx/cnbv/transmisor/ComplianceSDK.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACtG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MA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
  * Transmisor-scoped ComplianceSDK
3
3
  *
4
4
  * Pre-configured SDK for Mexico jurisdiction and Transmisores de Dinero (TRANSMISOR) CNBV subject.
5
- * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources like EBR.
5
+ * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources.
6
6
  */
7
7
  import { MexicoComplianceSDKScoped } from "../../ComplianceSDK";
8
8
  /**
9
9
  * Transmisor-scoped ComplianceSDK.
10
10
  * Pre-configured for Mexico jurisdiction and Transmisores de Dinero (TRANSMISOR) CNBV subject.
11
11
  *
12
- * Inherits Mexico-specific resources:
13
- * - `ebr` - EBR (Evaluacion Basada en Riesgos) for AML/KYC risk evaluation
14
- *
15
12
  * @example
16
13
  * ```typescript
17
14
  * import { ComplianceSDK } from "@artu/compliance-sdk/mx/cnbv/transmisor";
@@ -26,9 +23,6 @@ import { MexicoComplianceSDKScoped } from "../../ComplianceSDK";
26
23
  * type: ClientType.Person,
27
24
  * name: "Juan Garcia",
28
25
  * });
29
- *
30
- * // Access inherited EBR resource
31
- * const weights = sdk.ebr.presets.suggested();
32
26
  * ```
33
27
  */
34
28
  export class TransmisorComplianceSDKScoped extends MexicoComplianceSDKScoped {
@@ -4,7 +4,6 @@
4
4
  * Transmisores de Dinero (Money Transmitters) - CNBV regulated entities.
5
5
  */
6
6
  import { MexBankAccountsResource, TransmisorAddressesResource, TransmisorAlertsResource, TransmisorClientsResource, TransmisorTransactionsResource } from "../../../../resources";
7
- import type { EBRResource } from "../../../../resources/mx/ebr";
8
7
  import type { ComplianceSDKOptionsBase } from "../../../types";
9
8
  import type { MexicoComplianceSDK } from "../../types";
10
9
  /**
@@ -27,8 +26,6 @@ export interface TransmisorComplianceSDK extends Omit<MexicoComplianceSDK, "clie
27
26
  readonly alerts: TransmisorAlertsResource;
28
27
  readonly addresses: TransmisorAddressesResource;
29
28
  readonly bankAccounts: MexBankAccountsResource;
30
- /** EBR resource for risk-based evaluation */
31
- readonly ebr: EBRResource;
32
29
  }
33
30
  export declare function registerTransmisorScope(): void;
34
31
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/mx/cnbv/transmisor/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACN,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMvD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG;IAC7D,KAAK,EAAE,oBAAoB,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAMlE;;;GAGG;AACH,MAAM,WAAW,uBAChB,SAAQ,IAAI,CACX,mBAAmB,EACnB,SAAS,GAAG,cAAc,GAAG,QAAQ,GAAG,WAAW,CACnD;IACD,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,8BAA8B,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAChD,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAC/C,6CAA6C;IAC7C,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;CAC1B;AAMD,wBAAgB,uBAAuB,IAAI,IAAI,CAgB9C"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/mx/cnbv/transmisor/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACN,uBAAuB,EACvB,2BAA2B,EAC3B,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,MAAM,uBAAuB,CAAC;AAO/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAMvD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG;IAC7D,KAAK,EAAE,oBAAoB,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,CAAC;AAMlE;;;GAGG;AACH,MAAM,WAAW,uBAChB,SAAQ,IAAI,CACX,mBAAmB,EACnB,SAAS,GAAG,cAAc,GAAG,QAAQ,GAAG,WAAW,CACnD;IACD,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,8BAA8B,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,2BAA2B,CAAC;IAChD,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAC;CAC/C;AAMD,wBAAgB,uBAAuB,IAAI,IAAI,CAgB9C"}
@@ -4,7 +4,7 @@
4
4
  * Typed SDK interfaces and options for Mexico jurisdiction (base level).
5
5
  * Activity-specific types are in actividad-vulnerable/ subfolder.
6
6
  */
7
- import type { EBRResource, MexAddressesResource, MexAlertsResource, MexBankAccountsResource, MexClientsResource, MexTransactionsResource } from "../../resources";
7
+ import type { MexAddressesResource, MexAlertsResource, MexBankAccountsResource, MexClientsResource, MexTransactionsResource } from "../../resources";
8
8
  import type { ContactMethodsResource } from "../../resources/contact-methods";
9
9
  import type { DocumentsResource } from "../../resources/documents";
10
10
  import type { ExchangeRatesResource } from "../../resources/exchange-rates";
@@ -40,10 +40,5 @@ export interface MexicoComplianceSDK extends BaseComplianceSDK {
40
40
  readonly exchangeRates: ExchangeRatesResource;
41
41
  readonly referenceData: ReferenceDataResource;
42
42
  readonly reports: ReportsResource;
43
- /**
44
- * EBR (Evaluación Basada en Riesgos) resource.
45
- * Mexico-only resource for risk-based evaluation methodology.
46
- */
47
- readonly ebr: EBRResource;
48
43
  }
49
44
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/sdk/mx/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACX,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAM5E;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG;IACnE;;OAEG;IACH,KAAK,EACF,IAAI,GACJ,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,oBAAoB,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,GAAG;IACzD,KAAK,EAAE,IAAI,CAAC;CACZ,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAE7D,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAC/C,QAAQ,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GAAG;IACzD,KAAK,EAAE,IAAI,CAAC;CACZ,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAE7D,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAG/C,QAAQ,CAAC,SAAS,EAAE,oBAAoB,CAAC;IACzC,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IAEtC,QAAQ,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAC9C,QAAQ,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAG9C,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;CAClC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artu-ai/compliance-sdk",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "TypeScript SDK for the Artu Compliance API",
5
5
  "private": false,
6
6
  "type": "module",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  "license": "UNLICENSED",
77
77
  "dependencies": {
78
- "@artu-ai/shared": "0.12.4",
78
+ "@artu-ai/shared": "0.12.5",
79
79
  "@trpc/client": "^11.7.2"
80
80
  },
81
81
  "devDependencies": {
@@ -1,214 +0,0 @@
1
- /**
2
- * EBR Resource
3
- *
4
- * Provides the SDK interface for managing EBR (Evaluación Basada en Riesgos)
5
- * configurations. Supports both global EBR (no AV) and activity-specific EBR.
6
- *
7
- * @module resources/mx/ebr
8
- */
9
- import { type CreateEBRConfigInput, type EBRConfigListItem, type EBRConfiguration, InternalRiskLevel, RegulatoryRiskLevel, type ScoreThresholds, WEIGHT_RANGE } from "@artu-ai/shared";
10
- import type { Scope } from "@artu-ai/shared/scopes";
11
- import type { Environment } from "../../sdk/types";
12
- import type { TRPCClient } from "../../utils/trpc-client";
13
- /**
14
- * Confidence level for weight presets.
15
- */
16
- export type PresetConfidence = "high" | "medium";
17
- /**
18
- * A weight preset for a specific Actividad Vulnerable.
19
- */
20
- export interface WeightPreset {
21
- client: number;
22
- geographic: number;
23
- product: number;
24
- transactional: number;
25
- confidence: PresetConfidence;
26
- }
27
- /**
28
- * Weight presets for all 15 Actividades Vulnerables.
29
- *
30
- * These presets are validated according to:
31
- * - ENR 2020/2023 (Evaluación Nacional de Riesgos)
32
- * - GAFI/FATF RBA Guidance
33
- * - LFPIORPI regulatory requirements
34
- */
35
- export declare const WEIGHT_PRESETS: Record<string, WeightPreset>;
36
- /**
37
- * All 15 Actividades Vulnerables defined in LFPIORPI.
38
- */
39
- export declare const ACTIVIDADES_VULNERABLES: readonly ["INM", "MPJ", "NOT", "EMP", "BLI", "VEH", "AVI", "JYS", "ODA", "SPR", "ARR", "FID", "TSC", "DON", "CEX"];
40
- export type ActividadVulnerable = (typeof ACTIVIDADES_VULNERABLES)[number];
41
- /** @deprecated Use WeightPreset instead */
42
- export type MERWeightPreset = WeightPreset;
43
- /**
44
- * Context for EBR resource operations.
45
- * Passed from the main SDK.
46
- */
47
- export interface EBRResourceContext {
48
- /** tRPC client for API communication (optional for backward compatibility) */
49
- trpc?: TRPCClient;
50
- /** SDK scope */
51
- scope: Scope | undefined;
52
- /** Environment (test or live) */
53
- environment: Environment;
54
- }
55
- /**
56
- * Weights sub-resource for accessing weight configuration.
57
- */
58
- export interface EBRWeightsResource {
59
- /** Valid weight range (min: 0.10, max: 0.70) */
60
- readonly range: typeof WEIGHT_RANGE;
61
- }
62
- /**
63
- * Thresholds sub-resource for accessing threshold configuration.
64
- */
65
- export interface EBRThresholdsResource {
66
- /** Default/suggested thresholds */
67
- readonly defaults: ScoreThresholds;
68
- }
69
- /**
70
- * Presets sub-resource for accessing weight presets.
71
- */
72
- export interface EBRPresetsResource {
73
- /**
74
- * Lists all available preset activity codes.
75
- * @returns Array of activity codes with presets
76
- */
77
- list(): readonly string[];
78
- /**
79
- * Gets the preset for a specific activity.
80
- * @param activity - Activity code (e.g., "AVI", "INM")
81
- * @returns The weight preset or null if not found
82
- */
83
- get(activity: string): WeightPreset | null;
84
- /**
85
- * Gets the suggested preset for the current SDK scope.
86
- * Returns null if SDK is not scoped to an activity or no preset exists.
87
- * @returns The suggested weight preset or null
88
- */
89
- suggested(): WeightPreset | null;
90
- }
91
- /**
92
- * Risk level sub-resource for risk level utilities.
93
- */
94
- export interface EBRRiskLevelResource {
95
- /**
96
- * Maps an internal risk level (5) to regulatory level (3).
97
- * @param internal - Internal risk level
98
- * @returns Regulatory risk level
99
- */
100
- mapToRegulatory(internal: InternalRiskLevel): RegulatoryRiskLevel;
101
- /**
102
- * Gets the recommended KYC update frequency for a risk level.
103
- * @param level - Internal risk level
104
- * @returns Update frequency in months
105
- */
106
- getUpdateFrequency(level: InternalRiskLevel): number;
107
- }
108
- /**
109
- * EBR Resource
110
- *
111
- * Manages EBR (Evaluación Basada en Riesgos) configurations for Mexican
112
- * AML/KYC compliance under LFPIORPI.
113
- *
114
- * Key features:
115
- * - **Immutable configurations**: No updates - each change creates a new version
116
- * - **Scope-aware**: Works with global EBR or activity-specific EBR
117
- * - **Validation**: Full client-side validation before API calls
118
- * - **Audit trail**: All versions preserved with justifications
119
- *
120
- * @example
121
- * ```typescript
122
- * // Create EBR configuration
123
- * const config = await sdk.ebr.create({
124
- * weights: { client: 0.25, geographic: 0.35, product: 0.20, transactional: 0.20 },
125
- * thresholds: sdk.ebr.thresholds.defaults,
126
- * justification: "Initial configuration for Q4 2024",
127
- * });
128
- *
129
- * // Get suggested preset for current activity
130
- * const suggested = sdk.ebr.presets.suggested();
131
- *
132
- * // Map risk level for regulatory alerting
133
- * const regulatory = sdk.ebr.riskLevel.mapToRegulatory("muy_alto"); // "alto"
134
- * ```
135
- */
136
- export declare class EBRResource {
137
- protected readonly ctx: EBRResourceContext;
138
- constructor(context: EBRResourceContext);
139
- /**
140
- * Gets the tRPC client, throwing if not available.
141
- */
142
- private get trpc();
143
- /**
144
- * Creates a new EBR configuration.
145
- *
146
- * If a configuration already exists, the existing one is marked as "superseded"
147
- * and a new version is created. This maintains a complete audit trail.
148
- *
149
- * @param input - Configuration input (weights, thresholds, justification)
150
- * @returns The created EBR configuration
151
- * @throws {ValidationError} If input validation fails
152
- */
153
- create(input: CreateEBRConfigInput): Promise<EBRConfiguration>;
154
- /**
155
- * Gets the currently active EBR configuration.
156
- *
157
- * @returns The active configuration or null if none exists
158
- */
159
- get(): Promise<EBRConfiguration | null>;
160
- /**
161
- * Gets an EBR configuration by ID.
162
- *
163
- * @param id - Configuration ID
164
- * @returns The configuration or null if not found
165
- */
166
- getById(id: string): Promise<EBRConfiguration | null>;
167
- /**
168
- * Gets the complete history of EBR configurations.
169
- *
170
- * @param options - Optional options including limit
171
- * @returns Array of all EBR configuration versions, newest first
172
- */
173
- getHistory(options?: {
174
- limit?: number;
175
- }): Promise<EBRConfigListItem[]>;
176
- /**
177
- * Promotes an EBR configuration from test to live environment.
178
- *
179
- * Must be called from the test environment.
180
- *
181
- * @returns The promoted configuration (now in live)
182
- */
183
- promote(): Promise<EBRConfiguration>;
184
- /**
185
- * Weights configuration sub-resource.
186
- */
187
- get weights(): EBRWeightsResource;
188
- /**
189
- * Thresholds configuration sub-resource.
190
- */
191
- get thresholds(): EBRThresholdsResource;
192
- /**
193
- * Presets sub-resource for weight presets.
194
- */
195
- get presets(): EBRPresetsResource;
196
- /**
197
- * Risk level utilities sub-resource.
198
- */
199
- get riskLevel(): EBRRiskLevelResource;
200
- /**
201
- * Gets the current activity from the SDK scope.
202
- */
203
- private getCurrentActivity;
204
- /**
205
- * Wraps a tRPC operation with error mapping.
206
- */
207
- private execute;
208
- /**
209
- * Transforms API response to EBRConfiguration type.
210
- * Converts ISO date strings from API to Date objects.
211
- */
212
- private transformResponse;
213
- }
214
- //# sourceMappingURL=ebr.d.ts.map
@@ -1 +0,0 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