@artu-ai/compliance-sdk 0.0.1 → 0.0.2
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.
- package/dist/ComplianceSDK-CuOqOAWW.d.cts +97 -0
- package/dist/ComplianceSDK-tCtb3guf.d.ts +97 -0
- package/dist/{chunk-5FWX6MJJ.js → chunk-2U5GSJXC.js} +5 -5
- package/dist/chunk-2U5GSJXC.js.map +1 -0
- package/dist/chunk-6SWNJ2RI.cjs +26 -0
- package/dist/chunk-6SWNJ2RI.cjs.map +1 -0
- package/dist/{chunk-5M73AGYR.js → chunk-HAQ3MDZ3.js} +406 -11
- package/dist/chunk-HAQ3MDZ3.js.map +1 -0
- package/dist/{chunk-FT2LSJUD.js → chunk-HHGLEYAC.js} +5 -5
- package/dist/chunk-HHGLEYAC.js.map +1 -0
- package/dist/{chunk-CLRMY27D.js → chunk-N665EEF5.js} +52 -35
- package/dist/chunk-N665EEF5.js.map +1 -0
- package/dist/chunk-NMCHGBEG.cjs +26 -0
- package/dist/chunk-NMCHGBEG.cjs.map +1 -0
- package/dist/chunk-NOYIUN35.cjs +26 -0
- package/dist/chunk-NOYIUN35.cjs.map +1 -0
- package/dist/chunk-PEMCL7LW.cjs +261 -0
- package/dist/chunk-PEMCL7LW.cjs.map +1 -0
- package/dist/{chunk-QM2YAOGD.cjs → chunk-RMHHOBDM.cjs} +406 -11
- package/dist/chunk-RMHHOBDM.cjs.map +1 -0
- package/dist/{chunk-C4N2ALDL.js → chunk-TYJGEA4A.js} +5 -5
- package/dist/chunk-TYJGEA4A.js.map +1 -0
- package/dist/{filters-BjYmxK8N.d.cts → filters-DQLprGKG.d.cts} +202 -21
- package/dist/{filters-BjYmxK8N.d.ts → filters-DQLprGKG.d.ts} +202 -21
- package/dist/index-D5qqghPa.d.cts +2738 -0
- package/dist/index-DB0m5y8e.d.ts +2738 -0
- package/dist/index.cjs +137 -85
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/mexico/actividad-vulnerable/avi.cjs +93 -83
- package/dist/mexico/actividad-vulnerable/avi.cjs.map +1 -1
- package/dist/mexico/actividad-vulnerable/avi.d.cts +579 -3
- package/dist/mexico/actividad-vulnerable/avi.d.ts +579 -3
- package/dist/mexico/actividad-vulnerable/avi.js +17 -7
- package/dist/mexico/actividad-vulnerable/avi.js.map +1 -1
- package/dist/mexico/actividad-vulnerable/jys.cjs +98 -83
- package/dist/mexico/actividad-vulnerable/jys.cjs.map +1 -1
- package/dist/mexico/actividad-vulnerable/jys.d.cts +642 -5
- package/dist/mexico/actividad-vulnerable/jys.d.ts +642 -5
- package/dist/mexico/actividad-vulnerable/jys.js +22 -7
- package/dist/mexico/actividad-vulnerable/jys.js.map +1 -1
- package/dist/mexico/actividad-vulnerable/tsc.cjs +92 -83
- package/dist/mexico/actividad-vulnerable/tsc.cjs.map +1 -1
- package/dist/mexico/actividad-vulnerable/tsc.d.cts +500 -3
- package/dist/mexico/actividad-vulnerable/tsc.d.ts +500 -3
- package/dist/mexico/actividad-vulnerable/tsc.js +16 -7
- package/dist/mexico/actividad-vulnerable/tsc.js.map +1 -1
- package/dist/mexico/index.cjs +101 -101
- package/dist/mexico/index.d.cts +1194 -77
- package/dist/mexico/index.d.ts +1194 -77
- package/dist/mexico/index.js +5 -5
- package/package.json +6 -2
- package/dist/chunk-5FWX6MJJ.js.map +0 -1
- package/dist/chunk-5M73AGYR.js.map +0 -1
- package/dist/chunk-C4N2ALDL.js.map +0 -1
- package/dist/chunk-CLRMY27D.js.map +0 -1
- package/dist/chunk-FT2LSJUD.js.map +0 -1
- package/dist/chunk-IKDGGCJO.cjs +0 -26
- package/dist/chunk-IKDGGCJO.cjs.map +0 -1
- package/dist/chunk-J2P6EUCD.cjs +0 -26
- package/dist/chunk-J2P6EUCD.cjs.map +0 -1
- package/dist/chunk-QM2YAOGD.cjs.map +0 -1
- package/dist/chunk-X3RBAIDU.cjs +0 -245
- package/dist/chunk-X3RBAIDU.cjs.map +0 -1
- package/dist/chunk-XO3OCPIN.cjs +0 -26
- package/dist/chunk-XO3OCPIN.cjs.map +0 -1
- package/dist/index-BF15okXT.d.ts +0 -777
- package/dist/index-DeVuMBhV.d.cts +0 -777
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { C as ComplianceSDKImpl, E as EBRResource, a as ComplianceSDKOptionsMexico, M as MexicoScopedSDKOptions } from './filters-DQLprGKG.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Mexico-scoped ComplianceSDK
|
|
5
|
+
*
|
|
6
|
+
* Provides Mexico-specific resources like EBR (Expediente de Beneficiario Real).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Mexico ComplianceSDK Implementation.
|
|
11
|
+
*
|
|
12
|
+
* Extends the base SDK with Mexico-specific resources.
|
|
13
|
+
* This class is used when you create a ComplianceSDK with `jurisdiction: "MX"`.
|
|
14
|
+
*
|
|
15
|
+
* Registration is handled by `registerMexicoScopes()` in `./index.ts`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* const sdk = new ComplianceSDK({
|
|
20
|
+
* apiKey: process.env.API_KEY!,
|
|
21
|
+
* environment: "test",
|
|
22
|
+
* jurisdiction: "MX",
|
|
23
|
+
* });
|
|
24
|
+
*
|
|
25
|
+
* // Mexico-specific EBR resource is available
|
|
26
|
+
* console.log(sdk.ebr); // EbrResource instance
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare class MexicoComplianceSDKImpl extends ComplianceSDKImpl {
|
|
30
|
+
/**
|
|
31
|
+
* EBR (Expediente de Beneficiario Real) resource.
|
|
32
|
+
*
|
|
33
|
+
* Mexico-only resource for managing beneficial owner records.
|
|
34
|
+
*/
|
|
35
|
+
readonly ebr: EBRResource;
|
|
36
|
+
constructor(options: ComplianceSDKOptionsMexico);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Mexico-scoped ComplianceSDK (convenience class).
|
|
40
|
+
* Pre-configured for Mexico jurisdiction - no need to specify jurisdiction in options.
|
|
41
|
+
*
|
|
42
|
+
* Includes Mexico-specific resources:
|
|
43
|
+
* - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import { ComplianceSDK } from "@artu/compliance-sdk/mexico";
|
|
48
|
+
*
|
|
49
|
+
* const sdk = new ComplianceSDK({
|
|
50
|
+
* apiKey: process.env.API_KEY!,
|
|
51
|
+
* environment: "test",
|
|
52
|
+
* });
|
|
53
|
+
*
|
|
54
|
+
* // Already scoped to Mexico - no need to specify jurisdiction
|
|
55
|
+
* const client = await sdk.clients.create({
|
|
56
|
+
* type: ClientType.Person,
|
|
57
|
+
* name: "Juan García",
|
|
58
|
+
* });
|
|
59
|
+
*
|
|
60
|
+
* // Access Mexico-specific EBR resource
|
|
61
|
+
* const weights = sdk.ebr.presets.suggested();
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
declare class MexicoComplianceSDKScoped extends MexicoComplianceSDKImpl {
|
|
65
|
+
/**
|
|
66
|
+
* EBR (Evaluación Basada en Riesgos) resource manager.
|
|
67
|
+
*
|
|
68
|
+
* Provides risk-based evaluation methodology for AML/KYC compliance
|
|
69
|
+
* as required by Mexican LFPIORPI regulations.
|
|
70
|
+
*
|
|
71
|
+
* Key features:
|
|
72
|
+
* - Immutable configurations (append-only for audit trail)
|
|
73
|
+
* - Scope-aware (global or activity-specific)
|
|
74
|
+
* - Weight presets for all 15 Actividades Vulnerables
|
|
75
|
+
* - Risk level mapping (5 internal → 3 regulatory)
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* // Create EBR configuration
|
|
80
|
+
* const config = await sdk.ebr.create({
|
|
81
|
+
* weights: { client: 0.25, geographic: 0.35, product: 0.20, transactional: 0.20 },
|
|
82
|
+
* thresholds: sdk.ebr.thresholds.defaults,
|
|
83
|
+
* justification: "Initial configuration Q4 2024",
|
|
84
|
+
* });
|
|
85
|
+
*
|
|
86
|
+
* // Get suggested preset for current activity
|
|
87
|
+
* const suggested = sdk.ebr.presets.suggested();
|
|
88
|
+
*
|
|
89
|
+
* // Map risk level for regulatory reporting
|
|
90
|
+
* const regulatory = sdk.ebr.riskLevel.mapToRegulatory("muy_alto"); // "alto"
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
readonly ebr: EBRResource;
|
|
94
|
+
constructor(options: MexicoScopedSDKOptions);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { MexicoComplianceSDKScoped as M };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { C as ComplianceSDKImpl, E as EBRResource, a as ComplianceSDKOptionsMexico, M as MexicoScopedSDKOptions } from './filters-DQLprGKG.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Mexico-scoped ComplianceSDK
|
|
5
|
+
*
|
|
6
|
+
* Provides Mexico-specific resources like EBR (Expediente de Beneficiario Real).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Mexico ComplianceSDK Implementation.
|
|
11
|
+
*
|
|
12
|
+
* Extends the base SDK with Mexico-specific resources.
|
|
13
|
+
* This class is used when you create a ComplianceSDK with `jurisdiction: "MX"`.
|
|
14
|
+
*
|
|
15
|
+
* Registration is handled by `registerMexicoScopes()` in `./index.ts`.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* const sdk = new ComplianceSDK({
|
|
20
|
+
* apiKey: process.env.API_KEY!,
|
|
21
|
+
* environment: "test",
|
|
22
|
+
* jurisdiction: "MX",
|
|
23
|
+
* });
|
|
24
|
+
*
|
|
25
|
+
* // Mexico-specific EBR resource is available
|
|
26
|
+
* console.log(sdk.ebr); // EbrResource instance
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare class MexicoComplianceSDKImpl extends ComplianceSDKImpl {
|
|
30
|
+
/**
|
|
31
|
+
* EBR (Expediente de Beneficiario Real) resource.
|
|
32
|
+
*
|
|
33
|
+
* Mexico-only resource for managing beneficial owner records.
|
|
34
|
+
*/
|
|
35
|
+
readonly ebr: EBRResource;
|
|
36
|
+
constructor(options: ComplianceSDKOptionsMexico);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Mexico-scoped ComplianceSDK (convenience class).
|
|
40
|
+
* Pre-configured for Mexico jurisdiction - no need to specify jurisdiction in options.
|
|
41
|
+
*
|
|
42
|
+
* Includes Mexico-specific resources:
|
|
43
|
+
* - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import { ComplianceSDK } from "@artu/compliance-sdk/mexico";
|
|
48
|
+
*
|
|
49
|
+
* const sdk = new ComplianceSDK({
|
|
50
|
+
* apiKey: process.env.API_KEY!,
|
|
51
|
+
* environment: "test",
|
|
52
|
+
* });
|
|
53
|
+
*
|
|
54
|
+
* // Already scoped to Mexico - no need to specify jurisdiction
|
|
55
|
+
* const client = await sdk.clients.create({
|
|
56
|
+
* type: ClientType.Person,
|
|
57
|
+
* name: "Juan García",
|
|
58
|
+
* });
|
|
59
|
+
*
|
|
60
|
+
* // Access Mexico-specific EBR resource
|
|
61
|
+
* const weights = sdk.ebr.presets.suggested();
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
declare class MexicoComplianceSDKScoped extends MexicoComplianceSDKImpl {
|
|
65
|
+
/**
|
|
66
|
+
* EBR (Evaluación Basada en Riesgos) resource manager.
|
|
67
|
+
*
|
|
68
|
+
* Provides risk-based evaluation methodology for AML/KYC compliance
|
|
69
|
+
* as required by Mexican LFPIORPI regulations.
|
|
70
|
+
*
|
|
71
|
+
* Key features:
|
|
72
|
+
* - Immutable configurations (append-only for audit trail)
|
|
73
|
+
* - Scope-aware (global or activity-specific)
|
|
74
|
+
* - Weight presets for all 15 Actividades Vulnerables
|
|
75
|
+
* - Risk level mapping (5 internal → 3 regulatory)
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* // Create EBR configuration
|
|
80
|
+
* const config = await sdk.ebr.create({
|
|
81
|
+
* weights: { client: 0.25, geographic: 0.35, product: 0.20, transactional: 0.20 },
|
|
82
|
+
* thresholds: sdk.ebr.thresholds.defaults,
|
|
83
|
+
* justification: "Initial configuration Q4 2024",
|
|
84
|
+
* });
|
|
85
|
+
*
|
|
86
|
+
* // Get suggested preset for current activity
|
|
87
|
+
* const suggested = sdk.ebr.presets.suggested();
|
|
88
|
+
*
|
|
89
|
+
* // Map risk level for regulatory reporting
|
|
90
|
+
* const regulatory = sdk.ebr.riskLevel.mapToRegulatory("muy_alto"); // "alto"
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
readonly ebr: EBRResource;
|
|
94
|
+
constructor(options: MexicoScopedSDKOptions);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { MexicoComplianceSDKScoped as M };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MexicoComplianceSDKScoped, registerScope, MexAddressesResource, MexBankAccountsResource, TSCReportsResource, TSCTransactionsResource, TSCClientsResource } from './chunk-HAQ3MDZ3.js';
|
|
2
2
|
|
|
3
3
|
// src/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.ts
|
|
4
|
-
var TSCComplianceSDKScoped = class extends
|
|
4
|
+
var TSCComplianceSDKScoped = class extends MexicoComplianceSDKScoped {
|
|
5
5
|
constructor(options) {
|
|
6
|
-
super({ ...options,
|
|
6
|
+
super({ ...options, actividadVulnerable: "TSC" });
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
9
|
|
|
@@ -19,5 +19,5 @@ function registerTSCScope() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export { TSCComplianceSDKScoped, registerTSCScope };
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-2U5GSJXC.js.map
|
|
23
|
+
//# sourceMappingURL=chunk-2U5GSJXC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.ts","../src/sdk/mex/actividad-vulnerable/tsc/types.ts"],"names":[],"mappings":";;;AAoCO,IAAM,sBAAA,GAAN,cAAqC,yBAAA,CAA0B;AAAA,EACpE,YAAY,OAAA,EAA8B;AACxC,IAAA,KAAA,CAAM,EAAE,GAAG,OAAA,EAAS,mBAAA,EAAqB,OAAO,CAAA;AAAA,EAClD;AACF;;;ACsBO,SAAS,gBAAA,GAAyB;AACvC,EAAA,aAAA,CAAc,QAAA,EAAU;AAAA,IACtB,OAAA,EAAS,CAAC,MAAA,KAAW,IAAI,mBAAmB,MAAM,CAAA;AAAA,IAClD,YAAA,EAAc,CAAC,MAAA,KAAW,IAAI,wBAAwB,MAAM,CAAA;AAAA,IAC5D,OAAA,EAAS,CAAC,MAAA,KACR,IAAI,mBAAmB,MAAM,CAAA;AAAA,IAC/B,YAAA,EAAc,CAAC,MAAA,KAAW,IAAI,wBAAwB,MAAM,CAAA;AAAA,IAC5D,SAAA,EAAW,CAAC,MAAA,KAAW,IAAI,qBAAqB,MAAM;AAAA,GACvD,CAAA;AACH","file":"chunk-2U5GSJXC.js","sourcesContent":["/**\n * TSC-scoped ComplianceSDK\n *\n * Pre-configured SDK for Mexico jurisdiction and Tarjetas de Servicio y Crédito (TSC) activity.\n * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources like EBR.\n */\n\nimport { MexicoComplianceSDKScoped } from \"../../ComplianceSDK\";\nimport type { TSCScopedSDKOptions } from \"./types\";\n\n/**\n * TSC-scoped ComplianceSDK.\n * Pre-configured for Mexico jurisdiction and Tarjetas de Servicio y Crédito (TSC) activity.\n *\n * Inherits Mexico-specific resources:\n * - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation\n *\n * @example\n * ```typescript\n * import { ComplianceSDK } from \"@artu/compliance-sdk/mexico/actividad-vulnerable/tsc\";\n *\n * const sdk = new ComplianceSDK({\n * apiKey: process.env.API_KEY!,\n * environment: \"test\",\n * });\n *\n * // Already scoped - no need to specify jurisdiction/activity\n * const client = await sdk.clients.create({\n * type: ClientType.Person,\n * name: \"Juan García\",\n * });\n *\n * // Access inherited EBR resource\n * const weights = sdk.ebr.presets.suggested();\n * ```\n */\nexport class TSCComplianceSDKScoped extends MexicoComplianceSDKScoped {\n constructor(options: TSCScopedSDKOptions) {\n super({ ...options, actividadVulnerable: \"TSC\" });\n }\n}\n","/**\n * TSC SDK Types & Registration\n *\n * Tarjetas de Servicios y Crédito (Service and Credit Cards) - prepaid cards, etc.\n */\n\nimport { Jurisdiction, CodigoActividad } from \"@artu-ai/shared\";\nimport type { ComplianceSDKOptionsBase } from \"../../../types\";\nimport type { MexicoComplianceSDK } from \"../../types\";\nimport {\n TSCClientsResource,\n TSCTransactionsResource,\n TSCReportsResource,\n MexBankAccountsResource,\n MexAddressesResource,\n} from \"../../../../resources\";\nimport { registerScope } from \"../../../resource-registry\";\nimport type { ReportsResource } from \"../../../../resources/reports\";\nimport type { EBRResource } from \"../../../../resources/mex/ebr\";\n\n// ===========================\n// SDK Options\n// ===========================\n\n/**\n * Options for creating a TSC-scoped SDK\n */\nexport interface TSCSDKOptions extends ComplianceSDKOptionsBase {\n jurisdiction: typeof Jurisdiction.Mexico | \"MX\";\n actividadVulnerable: typeof CodigoActividad.TSC | \"TSC\";\n}\n\n/**\n * Options for TSC-scoped SDK (without jurisdiction/activity - pre-configured)\n */\nexport type TSCScopedSDKOptions = Omit<\n ComplianceSDKOptionsBase,\n \"jurisdiction\" | \"actividadVulnerable\"\n>;\n\n// ===========================\n// Typed SDK Interface\n// ===========================\n\n/**\n * Mexico TSC-scoped SDK - uses TSC resource types\n * Extends MexicoComplianceSDK with TSC-specific overrides\n */\nexport interface TSCComplianceSDK\n extends Omit<MexicoComplianceSDK, \"clients\" | \"transactions\" | \"reports\"> {\n readonly clients: TSCClientsResource;\n readonly transactions: TSCTransactionsResource;\n readonly reports: TSCReportsResource;\n readonly bankAccounts: MexBankAccountsResource;\n /** EBR resource for risk-based evaluation */\n readonly ebr: EBRResource;\n}\n\n// ===========================\n// Registration\n// ===========================\n\nexport function registerTSCScope(): void {\n registerScope(\"MX:TSC\", {\n clients: (config) => new TSCClientsResource(config),\n transactions: (config) => new TSCTransactionsResource(config),\n reports: (config) =>\n new TSCReportsResource(config) as unknown as ReportsResource,\n bankAccounts: (config) => new MexBankAccountsResource(config),\n addresses: (config) => new MexAddressesResource(config),\n });\n}\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRMHHOBDM_cjs = require('./chunk-RMHHOBDM.cjs');
|
|
4
|
+
|
|
5
|
+
// src/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.ts
|
|
6
|
+
var AVIComplianceSDKScoped = class extends chunkRMHHOBDM_cjs.MexicoComplianceSDKScoped {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super({ ...options, actividadVulnerable: "AVI" });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// src/sdk/mex/actividad-vulnerable/avi/types.ts
|
|
13
|
+
function registerAVIScope() {
|
|
14
|
+
chunkRMHHOBDM_cjs.registerScope("MX:AVI", {
|
|
15
|
+
clients: (config) => new chunkRMHHOBDM_cjs.AVIClientsResource(config),
|
|
16
|
+
transactions: (config) => new chunkRMHHOBDM_cjs.AVITransactionsResource(config),
|
|
17
|
+
reports: (config) => new chunkRMHHOBDM_cjs.AVIReportsResource(config),
|
|
18
|
+
bankAccounts: (config) => new chunkRMHHOBDM_cjs.MexBankAccountsResource(config),
|
|
19
|
+
addresses: (config) => new chunkRMHHOBDM_cjs.MexAddressesResource(config)
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.AVIComplianceSDKScoped = AVIComplianceSDKScoped;
|
|
24
|
+
exports.registerAVIScope = registerAVIScope;
|
|
25
|
+
//# sourceMappingURL=chunk-6SWNJ2RI.cjs.map
|
|
26
|
+
//# sourceMappingURL=chunk-6SWNJ2RI.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.ts","../src/sdk/mex/actividad-vulnerable/avi/types.ts"],"names":["MexicoComplianceSDKScoped","registerScope","AVIClientsResource","AVITransactionsResource","AVIReportsResource","MexBankAccountsResource","MexAddressesResource"],"mappings":";;;;;AAoCO,IAAM,sBAAA,GAAN,cAAqCA,2CAAA,CAA0B;AAAA,EACpE,YAAY,OAAA,EAA8B;AACxC,IAAA,KAAA,CAAM,EAAE,GAAG,OAAA,EAAS,mBAAA,EAAqB,OAAO,CAAA;AAAA,EAClD;AACF;;;ACsBO,SAAS,gBAAA,GAAyB;AACvC,EAAAC,+BAAA,CAAc,QAAA,EAAU;AAAA,IACtB,OAAA,EAAS,CAAC,MAAA,KAAW,IAAIC,qCAAmB,MAAM,CAAA;AAAA,IAClD,YAAA,EAAc,CAAC,MAAA,KAAW,IAAIC,0CAAwB,MAAM,CAAA;AAAA,IAC5D,OAAA,EAAS,CAAC,MAAA,KACR,IAAIC,qCAAmB,MAAM,CAAA;AAAA,IAC/B,YAAA,EAAc,CAAC,MAAA,KAAW,IAAIC,0CAAwB,MAAM,CAAA;AAAA,IAC5D,SAAA,EAAW,CAAC,MAAA,KAAW,IAAIC,uCAAqB,MAAM;AAAA,GACvD,CAAA;AACH","file":"chunk-6SWNJ2RI.cjs","sourcesContent":["/**\n * AVI-scoped ComplianceSDK\n *\n * Pre-configured SDK for Mexico jurisdiction and Activos Virtuales (AVI) activity.\n * Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources like EBR.\n */\n\nimport { MexicoComplianceSDKScoped } from \"../../ComplianceSDK\";\nimport type { AVIScopedSDKOptions } from \"./types\";\n\n/**\n * AVI-scoped ComplianceSDK.\n * Pre-configured for Mexico jurisdiction and Activos Virtuales (AVI) activity.\n *\n * Inherits Mexico-specific resources:\n * - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation\n *\n * @example\n * ```typescript\n * import { ComplianceSDK } from \"@artu/compliance-sdk/mexico/actividad-vulnerable/avi\";\n *\n * const sdk = new ComplianceSDK({\n * apiKey: process.env.API_KEY!,\n * environment: \"test\",\n * });\n *\n * // Already scoped - no need to specify jurisdiction/activity\n * const client = await sdk.clients.create({\n * type: ClientType.Person,\n * name: \"Juan García\",\n * });\n *\n * // Access inherited EBR resource\n * const weights = sdk.ebr.presets.suggested();\n * ```\n */\nexport class AVIComplianceSDKScoped extends MexicoComplianceSDKScoped {\n constructor(options: AVIScopedSDKOptions) {\n super({ ...options, actividadVulnerable: \"AVI\" });\n }\n}\n","/**\n * AVI SDK Types & Registration\n *\n * Activos Virtuales (Virtual Assets) - cryptocurrency exchanges, wallets, etc.\n */\n\nimport { Jurisdiction, CodigoActividad } from \"@artu-ai/shared\";\nimport type { ComplianceSDKOptionsBase } from \"../../../types\";\nimport type { MexicoComplianceSDK } from \"../../types\";\nimport {\n AVIClientsResource,\n AVITransactionsResource,\n AVIReportsResource,\n MexBankAccountsResource,\n MexAddressesResource,\n} from \"../../../../resources\";\nimport { registerScope } from \"../../../resource-registry\";\nimport type { ReportsResource } from \"../../../../resources/reports\";\nimport type { EBRResource } from \"../../../../resources/mex/ebr\";\n\n// ===========================\n// SDK Options\n// ===========================\n\n/**\n * Options for creating an AVI-scoped SDK\n */\nexport interface AVISDKOptions extends ComplianceSDKOptionsBase {\n jurisdiction: typeof Jurisdiction.Mexico | \"MX\";\n actividadVulnerable: typeof CodigoActividad.AVI | \"AVI\";\n}\n\n/**\n * Options for AVI-scoped SDK (without jurisdiction/activity - pre-configured)\n */\nexport type AVIScopedSDKOptions = Omit<\n ComplianceSDKOptionsBase,\n \"jurisdiction\" | \"actividadVulnerable\"\n>;\n\n// ===========================\n// Typed SDK Interface\n// ===========================\n\n/**\n * Mexico AVI-scoped SDK - uses AVI resource types\n * Extends MexicoComplianceSDK with AVI-specific overrides\n */\nexport interface AVIComplianceSDK\n extends Omit<MexicoComplianceSDK, \"clients\" | \"transactions\" | \"reports\"> {\n readonly clients: AVIClientsResource;\n readonly transactions: AVITransactionsResource;\n readonly reports: AVIReportsResource;\n readonly bankAccounts: MexBankAccountsResource;\n /** EBR resource for risk-based evaluation */\n readonly ebr: EBRResource;\n}\n\n// ===========================\n// Registration\n// ===========================\n\nexport function registerAVIScope(): void {\n registerScope(\"MX:AVI\", {\n clients: (config) => new AVIClientsResource(config),\n transactions: (config) => new AVITransactionsResource(config),\n reports: (config) =>\n new AVIReportsResource(config) as unknown as ReportsResource,\n bankAccounts: (config) => new MexBankAccountsResource(config),\n addresses: (config) => new MexAddressesResource(config),\n });\n}\n"]}
|