@artu-ai/compliance-sdk 0.0.5 → 0.2.0
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/errors/api.d.ts +160 -0
- package/dist/errors/api.d.ts.map +1 -0
- package/dist/errors/api.js +255 -0
- package/dist/errors/base.d.ts +87 -0
- package/dist/errors/base.d.ts.map +1 -0
- package/dist/errors/base.js +84 -0
- package/dist/errors/index.d.ts +32 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +35 -0
- package/dist/errors/upload.d.ts +109 -0
- package/dist/errors/upload.d.ts.map +1 -0
- package/dist/errors/upload.js +163 -0
- package/dist/errors/validation.d.ts +98 -0
- package/dist/errors/validation.d.ts.map +1 -0
- package/dist/errors/validation.js +129 -0
- package/dist/exports/base.d.ts +12 -0
- package/dist/exports/base.d.ts.map +1 -0
- package/dist/exports/base.js +21 -0
- package/dist/exports/index.d.ts +40 -0
- package/dist/exports/index.d.ts.map +1 -0
- package/dist/exports/index.js +59 -0
- package/dist/{mexico → exports/mexico}/actividad-vulnerable/avi.d.ts +130 -138
- package/dist/exports/mexico/actividad-vulnerable/avi.d.ts.map +1 -0
- package/dist/exports/mexico/actividad-vulnerable/avi.js +108 -0
- package/dist/{mexico → exports/mexico}/actividad-vulnerable/jys.d.ts +147 -158
- package/dist/exports/mexico/actividad-vulnerable/jys.d.ts.map +1 -0
- package/dist/exports/mexico/actividad-vulnerable/jys.js +115 -0
- package/dist/{mexico → exports/mexico}/actividad-vulnerable/tsc.d.ts +118 -129
- package/dist/exports/mexico/actividad-vulnerable/tsc.d.ts.map +1 -0
- package/dist/exports/mexico/actividad-vulnerable/tsc.js +103 -0
- package/dist/exports/mexico/index.d.ts +48 -0
- package/dist/exports/mexico/index.d.ts.map +1 -0
- package/dist/exports/mexico/index.js +70 -0
- package/dist/models/Address.d.ts +118 -0
- package/dist/models/Address.d.ts.map +1 -0
- package/dist/models/Address.js +187 -0
- package/dist/models/BankAccount.d.ts +124 -0
- package/dist/models/BankAccount.d.ts.map +1 -0
- package/dist/models/BankAccount.js +190 -0
- package/dist/models/Client.d.ts +170 -0
- package/dist/models/Client.d.ts.map +1 -0
- package/dist/models/Client.js +257 -0
- package/dist/models/ContactMethod.d.ts +102 -0
- package/dist/models/ContactMethod.d.ts.map +1 -0
- package/dist/models/ContactMethod.js +152 -0
- package/dist/models/Document.d.ts +167 -0
- package/dist/models/Document.d.ts.map +1 -0
- package/dist/models/Document.js +295 -0
- package/dist/models/LinkedClient.d.ts +62 -0
- package/dist/models/LinkedClient.d.ts.map +1 -0
- package/dist/models/LinkedClient.js +70 -0
- package/dist/models/Report.d.ts +98 -0
- package/dist/models/Report.d.ts.map +1 -0
- package/dist/models/Report.js +156 -0
- package/dist/models/ReportItem.d.ts +106 -0
- package/dist/models/ReportItem.d.ts.map +1 -0
- package/dist/models/ReportItem.js +167 -0
- package/dist/models/Transaction.d.ts +108 -0
- package/dist/models/Transaction.d.ts.map +1 -0
- package/dist/models/Transaction.js +175 -0
- package/dist/models/base.d.ts +42 -0
- package/dist/models/base.d.ts.map +1 -0
- package/dist/models/base.js +51 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +34 -0
- package/dist/models/mex/MexAddress.d.ts +93 -0
- package/dist/models/mex/MexAddress.d.ts.map +1 -0
- package/dist/models/mex/MexAddress.js +148 -0
- package/dist/models/mex/MexBankAccount.d.ts +65 -0
- package/dist/models/mex/MexBankAccount.d.ts.map +1 -0
- package/dist/models/mex/MexBankAccount.js +90 -0
- package/dist/models/mex/MexClient.d.ts +88 -0
- package/dist/models/mex/MexClient.d.ts.map +1 -0
- package/dist/models/mex/MexClient.js +133 -0
- package/dist/models/mex/MexDocument.d.ts +415 -0
- package/dist/models/mex/MexDocument.d.ts.map +1 -0
- package/dist/models/mex/MexDocument.js +687 -0
- package/dist/models/mex/MexReport.d.ts +50 -0
- package/dist/models/mex/MexReport.d.ts.map +1 -0
- package/dist/models/mex/MexReport.js +73 -0
- package/dist/models/mex/MexReportItem.d.ts +39 -0
- package/dist/models/mex/MexReportItem.d.ts.map +1 -0
- package/dist/models/mex/MexReportItem.js +50 -0
- package/dist/models/mex/MexTransaction.d.ts +53 -0
- package/dist/models/mex/MexTransaction.d.ts.map +1 -0
- package/dist/models/mex/MexTransaction.js +78 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.d.ts +37 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.js +46 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts +38 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.js +39 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts +38 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.js +39 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.d.ts +29 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.js +37 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.d.ts +43 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.js +59 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.js +75 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.js +63 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.d.ts +67 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.js +136 -0
- package/dist/models/mex/actividad-vulnerable/index.d.ts +20 -0
- package/dist/models/mex/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/index.js +25 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.d.ts +39 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.js +53 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.js +75 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.js +63 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.d.ts +85 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.js +152 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.d.ts +39 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.js +53 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.js +75 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts +56 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.js +63 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.d.ts +53 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.d.ts.map +1 -0
- package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.js +82 -0
- package/dist/models/mex/index.d.ts +12 -0
- package/dist/models/mex/index.d.ts.map +1 -0
- package/dist/models/mex/index.js +20 -0
- package/dist/models/types.d.ts +81 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +6 -0
- package/dist/namespaces/index.d.ts +25 -0
- package/dist/namespaces/index.d.ts.map +1 -0
- package/dist/namespaces/index.js +27 -0
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts +322 -0
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/avi/index.js +42 -0
- package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts +1361 -0
- package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/index.js +53 -0
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts +454 -0
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/jys/index.js +52 -0
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts +162 -0
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.js +40 -0
- package/dist/namespaces/mexico/index.d.ts +2481 -0
- package/dist/namespaces/mexico/index.d.ts.map +1 -0
- package/dist/namespaces/mexico/index.js +140 -0
- package/dist/resources/addresses.d.ts +171 -0
- package/dist/resources/addresses.d.ts.map +1 -0
- package/dist/resources/addresses.js +208 -0
- package/dist/resources/bank-accounts.d.ts +174 -0
- package/dist/resources/bank-accounts.d.ts.map +1 -0
- package/dist/resources/bank-accounts.js +220 -0
- package/dist/resources/base.d.ts +191 -0
- package/dist/resources/base.d.ts.map +1 -0
- package/dist/resources/base.js +202 -0
- package/dist/resources/clients.d.ts +446 -0
- package/dist/resources/clients.d.ts.map +1 -0
- package/dist/resources/clients.js +448 -0
- package/dist/resources/contact-methods.d.ts +176 -0
- package/dist/resources/contact-methods.d.ts.map +1 -0
- package/dist/resources/contact-methods.js +215 -0
- package/dist/resources/documents.d.ts +253 -0
- package/dist/resources/documents.d.ts.map +1 -0
- package/dist/resources/documents.js +340 -0
- package/dist/resources/index.d.ts +23 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +25 -0
- package/dist/resources/mex/actividad-vulnerable/avi/clients.d.ts +159 -0
- package/dist/resources/mex/actividad-vulnerable/avi/clients.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/clients.js +304 -0
- package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/index.js +6 -0
- package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts +134 -0
- package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/reports.js +333 -0
- package/dist/resources/mex/actividad-vulnerable/avi/transactions.d.ts +83 -0
- package/dist/resources/mex/actividad-vulnerable/avi/transactions.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/avi/transactions.js +239 -0
- package/dist/resources/mex/actividad-vulnerable/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/index.js +9 -0
- package/dist/resources/mex/actividad-vulnerable/jys/clients.d.ts +112 -0
- package/dist/resources/mex/actividad-vulnerable/jys/clients.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/clients.js +218 -0
- package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/index.js +6 -0
- package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts +110 -0
- package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/reports.js +309 -0
- package/dist/resources/mex/actividad-vulnerable/jys/transactions.d.ts +86 -0
- package/dist/resources/mex/actividad-vulnerable/jys/transactions.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/jys/transactions.js +240 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/clients.d.ts +112 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/clients.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/clients.js +218 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts +7 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/index.js +6 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts +110 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/reports.js +309 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/transactions.d.ts +83 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/transactions.d.ts.map +1 -0
- package/dist/resources/mex/actividad-vulnerable/tsc/transactions.js +246 -0
- package/dist/resources/mex/addresses.d.ts +135 -0
- package/dist/resources/mex/addresses.d.ts.map +1 -0
- package/dist/resources/mex/addresses.js +313 -0
- package/dist/resources/mex/bank-accounts.d.ts +99 -0
- package/dist/resources/mex/bank-accounts.d.ts.map +1 -0
- package/dist/resources/mex/bank-accounts.js +147 -0
- package/dist/resources/mex/clients.d.ts +186 -0
- package/dist/resources/mex/clients.d.ts.map +1 -0
- package/dist/resources/mex/clients.js +438 -0
- package/dist/resources/mex/ebr.d.ts +213 -0
- package/dist/resources/mex/ebr.d.ts.map +1 -0
- package/dist/resources/mex/ebr.js +417 -0
- package/dist/resources/mex/index.d.ts +11 -0
- package/dist/resources/mex/index.d.ts.map +1 -0
- package/dist/resources/mex/index.js +12 -0
- package/dist/resources/mex/reports.d.ts +204 -0
- package/dist/resources/mex/reports.d.ts.map +1 -0
- package/dist/resources/mex/reports.js +404 -0
- package/dist/resources/mex/transactions.d.ts +117 -0
- package/dist/resources/mex/transactions.d.ts.map +1 -0
- package/dist/resources/mex/transactions.js +259 -0
- package/dist/resources/reports.d.ts +217 -0
- package/dist/resources/reports.d.ts.map +1 -0
- package/dist/resources/reports.js +310 -0
- package/dist/resources/transactions.d.ts +142 -0
- package/dist/resources/transactions.d.ts.map +1 -0
- package/dist/resources/transactions.js +221 -0
- package/dist/sdk/ComplianceSDK.d.ts +457 -0
- package/dist/sdk/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/ComplianceSDK.js +520 -0
- package/dist/sdk/base.d.ts +17 -0
- package/dist/sdk/base.d.ts.map +1 -0
- package/dist/sdk/base.js +22 -0
- package/dist/sdk/index.d.ts +18 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +43 -0
- package/dist/{ComplianceSDK-CsFkAge8.d.ts → sdk/mex/ComplianceSDK.d.ts} +16 -7
- package/dist/sdk/mex/ComplianceSDK.d.ts.map +1 -0
- package/dist/{ComplianceSDK-DzmqGCLF.d.cts → sdk/mex/ComplianceSDK.js} +26 -11
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts +44 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.js +39 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/index.d.ts +8 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/index.js +9 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts +35 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/avi/types.js +19 -0
- package/dist/sdk/mex/actividad-vulnerable/index.d.ts +13 -0
- package/dist/sdk/mex/actividad-vulnerable/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/index.js +31 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts +44 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.js +39 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/index.d.ts +8 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/index.js +9 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts +35 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/jys/types.js +19 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts +44 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.js +39 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/index.d.ts +8 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/index.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/index.js +9 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts +35 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts.map +1 -0
- package/dist/sdk/mex/actividad-vulnerable/tsc/types.js +19 -0
- package/dist/sdk/mex/index.d.ts +13 -0
- package/dist/sdk/mex/index.d.ts.map +1 -0
- package/dist/sdk/mex/index.js +38 -0
- package/dist/sdk/mex/types.d.ts +57 -0
- package/dist/sdk/mex/types.d.ts.map +1 -0
- package/dist/sdk/mex/types.js +7 -0
- package/dist/sdk/resource-registry.d.ts +118 -0
- package/dist/sdk/resource-registry.d.ts.map +1 -0
- package/dist/sdk/resource-registry.js +145 -0
- package/dist/sdk/sdk-registry.d.ts +59 -0
- package/dist/sdk/sdk-registry.d.ts.map +1 -0
- package/dist/sdk/sdk-registry.js +82 -0
- package/dist/sdk/types.d.ts +209 -0
- package/dist/sdk/types.d.ts.map +1 -0
- package/dist/sdk/types.js +42 -0
- package/dist/utils/environment.d.ts +102 -0
- package/dist/utils/environment.d.ts.map +1 -0
- package/dist/utils/environment.js +110 -0
- package/dist/utils/filters.d.ts +338 -0
- package/dist/utils/filters.d.ts.map +1 -0
- package/dist/utils/filters.js +373 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +39 -0
- package/dist/utils/pagination.d.ts +85 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/pagination.js +120 -0
- package/dist/utils/session.d.ts +155 -0
- package/dist/utils/session.d.ts.map +1 -0
- package/dist/utils/session.js +50 -0
- package/dist/utils/trpc-client.d.ts +19337 -0
- package/dist/utils/trpc-client.d.ts.map +1 -0
- package/dist/utils/trpc-client.js +128 -0
- package/package.json +16 -27
- package/src/errors/api.ts +305 -0
- package/src/errors/base.ts +127 -0
- package/src/errors/index.ts +63 -0
- package/src/errors/upload.ts +204 -0
- package/src/errors/validation.ts +163 -0
- package/src/exports/base.ts +139 -0
- package/src/exports/index.ts +187 -0
- package/src/exports/mexico/actividad-vulnerable/avi.ts +207 -0
- package/src/exports/mexico/actividad-vulnerable/jys.ts +214 -0
- package/src/exports/mexico/actividad-vulnerable/tsc.ts +202 -0
- package/src/exports/mexico/index.ts +215 -0
- package/src/models/Address.ts +235 -0
- package/src/models/BankAccount.ts +235 -0
- package/src/models/Client.ts +343 -0
- package/src/models/ContactMethod.ts +197 -0
- package/src/models/Document.ts +355 -0
- package/src/models/LinkedClient.ts +84 -0
- package/src/models/Report.ts +193 -0
- package/src/models/ReportItem.ts +211 -0
- package/src/models/Transaction.ts +219 -0
- package/src/models/base.ts +56 -0
- package/src/models/index.ts +148 -0
- package/src/models/mex/MexAddress.ts +184 -0
- package/src/models/mex/MexBankAccount.ts +121 -0
- package/src/models/mex/MexClient.ts +177 -0
- package/src/models/mex/MexDocument.ts +890 -0
- package/src/models/mex/MexReport.ts +99 -0
- package/src/models/mex/MexReportItem.ts +79 -0
- package/src/models/mex/MexTransaction.ts +105 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableClient.ts +66 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableReport.ts +73 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.ts +74 -0
- package/src/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.ts +50 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVIClient.ts +80 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVIReport.ts +114 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVIReportItem.ts +105 -0
- package/src/models/mex/actividad-vulnerable/avi/MexAVITransaction.ts +157 -0
- package/src/models/mex/actividad-vulnerable/index.ts +78 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSClient.ts +73 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSReport.ts +114 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSReportItem.ts +105 -0
- package/src/models/mex/actividad-vulnerable/jys/MexJYSTransaction.ts +178 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCClient.ts +73 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCReport.ts +114 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.ts +105 -0
- package/src/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.ts +104 -0
- package/src/models/mex/index.ts +57 -0
- package/src/models/types.ts +196 -0
- package/src/namespaces/index.ts +29 -0
- package/src/namespaces/mexico/actividad-vulnerable/avi/index.ts +62 -0
- package/src/namespaces/mexico/actividad-vulnerable/index.ts +79 -0
- package/src/namespaces/mexico/actividad-vulnerable/jys/index.ts +72 -0
- package/src/namespaces/mexico/actividad-vulnerable/tsc/index.ts +60 -0
- package/src/namespaces/mexico/index.ts +325 -0
- package/src/resources/addresses.ts +387 -0
- package/src/resources/bank-accounts.ts +413 -0
- package/src/resources/base.ts +322 -0
- package/src/resources/clients.ts +802 -0
- package/src/resources/contact-methods.ts +410 -0
- package/src/resources/documents.ts +508 -0
- package/src/resources/index.ts +35 -0
- package/src/resources/mex/actividad-vulnerable/avi/clients.ts +537 -0
- package/src/resources/mex/actividad-vulnerable/avi/index.ts +7 -0
- package/src/resources/mex/actividad-vulnerable/avi/reports.ts +513 -0
- package/src/resources/mex/actividad-vulnerable/avi/transactions.ts +386 -0
- package/src/resources/mex/actividad-vulnerable/index.ts +12 -0
- package/src/resources/mex/actividad-vulnerable/jys/clients.ts +427 -0
- package/src/resources/mex/actividad-vulnerable/jys/index.ts +7 -0
- package/src/resources/mex/actividad-vulnerable/jys/reports.ts +489 -0
- package/src/resources/mex/actividad-vulnerable/jys/transactions.ts +377 -0
- package/src/resources/mex/actividad-vulnerable/tsc/clients.ts +427 -0
- package/src/resources/mex/actividad-vulnerable/tsc/index.ts +7 -0
- package/src/resources/mex/actividad-vulnerable/tsc/reports.ts +489 -0
- package/src/resources/mex/actividad-vulnerable/tsc/transactions.ts +386 -0
- package/src/resources/mex/addresses.ts +471 -0
- package/src/resources/mex/bank-accounts.ts +259 -0
- package/src/resources/mex/clients.ts +735 -0
- package/src/resources/mex/ebr.ts +621 -0
- package/src/resources/mex/index.ts +23 -0
- package/src/resources/mex/reports.ts +575 -0
- package/src/resources/mex/transactions.ts +400 -0
- package/src/resources/reports.ts +493 -0
- package/src/resources/transactions.ts +354 -0
- package/src/sdk/ComplianceSDK.ts +797 -0
- package/src/sdk/base.ts +43 -0
- package/src/sdk/index.ts +98 -0
- package/src/sdk/mex/ComplianceSDK.ts +140 -0
- package/src/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.ts +51 -0
- package/src/sdk/mex/actividad-vulnerable/avi/index.ts +16 -0
- package/src/sdk/mex/actividad-vulnerable/avi/types.ts +72 -0
- package/src/sdk/mex/actividad-vulnerable/index.ts +58 -0
- package/src/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.ts +51 -0
- package/src/sdk/mex/actividad-vulnerable/jys/index.ts +16 -0
- package/src/sdk/mex/actividad-vulnerable/jys/types.ts +72 -0
- package/src/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.ts +51 -0
- package/src/sdk/mex/actividad-vulnerable/tsc/index.ts +16 -0
- package/src/sdk/mex/actividad-vulnerable/tsc/types.ts +72 -0
- package/src/sdk/mex/index.ts +66 -0
- package/src/sdk/mex/types.ts +84 -0
- package/src/sdk/resource-registry.ts +204 -0
- package/src/sdk/sdk-registry.ts +99 -0
- package/src/sdk/types.ts +275 -0
- package/src/utils/environment.ts +145 -0
- package/src/utils/filters.ts +412 -0
- package/src/utils/index.ts +115 -0
- package/src/utils/pagination.ts +143 -0
- package/src/utils/session.ts +273 -0
- package/src/utils/trpc-client.ts +233 -0
- package/dist/chunk-C4Y56E4V.js +0 -23
- package/dist/chunk-C4Y56E4V.js.map +0 -1
- package/dist/chunk-E36XEOE2.js +0 -22558
- package/dist/chunk-E36XEOE2.js.map +0 -1
- package/dist/chunk-EO7ANPLK.cjs +0 -26
- package/dist/chunk-EO7ANPLK.cjs.map +0 -1
- package/dist/chunk-F5LRN233.cjs +0 -26
- package/dist/chunk-F5LRN233.cjs.map +0 -1
- package/dist/chunk-IS3YJ7Y5.cjs +0 -26
- package/dist/chunk-IS3YJ7Y5.cjs.map +0 -1
- package/dist/chunk-MNPRPINS.js +0 -23
- package/dist/chunk-MNPRPINS.js.map +0 -1
- package/dist/chunk-NQWTMQQL.js +0 -249
- package/dist/chunk-NQWTMQQL.js.map +0 -1
- package/dist/chunk-Q3J7CQWL.js +0 -23
- package/dist/chunk-Q3J7CQWL.js.map +0 -1
- package/dist/chunk-U3W5OO7I.cjs +0 -22711
- package/dist/chunk-U3W5OO7I.cjs.map +0 -1
- package/dist/chunk-UVM75OVG.cjs +0 -261
- package/dist/chunk-UVM75OVG.cjs.map +0 -1
- package/dist/filters-CEVr2pEJ.d.cts +0 -6368
- package/dist/filters-CEVr2pEJ.d.ts +0 -6368
- package/dist/index-CWAflRhP.d.ts +0 -2866
- package/dist/index-FBXIzHa9.d.cts +0 -2866
- package/dist/index.cjs +0 -417
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -9
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -28
- package/dist/index.js.map +0 -1
- package/dist/mexico/actividad-vulnerable/avi.cjs +0 -320
- package/dist/mexico/actividad-vulnerable/avi.cjs.map +0 -1
- package/dist/mexico/actividad-vulnerable/avi.d.cts +0 -680
- package/dist/mexico/actividad-vulnerable/avi.js +0 -55
- package/dist/mexico/actividad-vulnerable/avi.js.map +0 -1
- package/dist/mexico/actividad-vulnerable/jys.cjs +0 -330
- package/dist/mexico/actividad-vulnerable/jys.cjs.map +0 -1
- package/dist/mexico/actividad-vulnerable/jys.d.cts +0 -746
- package/dist/mexico/actividad-vulnerable/jys.js +0 -65
- package/dist/mexico/actividad-vulnerable/jys.js.map +0 -1
- package/dist/mexico/actividad-vulnerable/tsc.cjs +0 -318
- package/dist/mexico/actividad-vulnerable/tsc.cjs.map +0 -1
- package/dist/mexico/actividad-vulnerable/tsc.d.cts +0 -600
- package/dist/mexico/actividad-vulnerable/tsc.js +0 -53
- package/dist/mexico/actividad-vulnerable/tsc.js.map +0 -1
- package/dist/mexico/index.cjs +0 -384
- package/dist/mexico/index.cjs.map +0 -1
- package/dist/mexico/index.d.cts +0 -1422
- package/dist/mexico/index.d.ts +0 -1422
- package/dist/mexico/index.js +0 -7
- package/dist/mexico/index.js.map +0 -1
package/src/sdk/base.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base SDK Types & Registration
|
|
3
|
+
*
|
|
4
|
+
* Unscoped/default SDK types and resource factory registration.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { ComplianceSDKOptionsBase } from "./types";
|
|
8
|
+
import {
|
|
9
|
+
ClientsResource,
|
|
10
|
+
TransactionsResource,
|
|
11
|
+
ReportsResource,
|
|
12
|
+
BankAccountsResource,
|
|
13
|
+
AddressesResource,
|
|
14
|
+
} from "../resources";
|
|
15
|
+
import { registerScope } from "./resource-registry";
|
|
16
|
+
|
|
17
|
+
// ===========================
|
|
18
|
+
// SDK Options
|
|
19
|
+
// ===========================
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Options for creating an unscoped SDK
|
|
23
|
+
*/
|
|
24
|
+
export type UnscopedSDKOptions = ComplianceSDKOptionsBase & {
|
|
25
|
+
jurisdiction?: undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// ===========================
|
|
29
|
+
// Registration
|
|
30
|
+
// ===========================
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Registers the base (unscoped) resource factories
|
|
34
|
+
*/
|
|
35
|
+
export function registerBaseScope(): void {
|
|
36
|
+
registerScope("base", {
|
|
37
|
+
clients: (config) => new ClientsResource(config),
|
|
38
|
+
transactions: (config) => new TransactionsResource(config),
|
|
39
|
+
reports: (config) => new ReportsResource(config),
|
|
40
|
+
bankAccounts: (config) => new BankAccountsResource(config),
|
|
41
|
+
addresses: (config) => new AddressesResource(config),
|
|
42
|
+
});
|
|
43
|
+
}
|
package/src/sdk/index.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SDK Core Module
|
|
3
|
+
*
|
|
4
|
+
* Core SDK infrastructure including types, registry, and scope registrations.
|
|
5
|
+
* Organized by jurisdiction with barrel exports.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// ===========================
|
|
9
|
+
// Core Types
|
|
10
|
+
// ===========================
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
type Environment,
|
|
14
|
+
type ComplianceSDKOptionsBase,
|
|
15
|
+
type ComplianceAuthOptions,
|
|
16
|
+
type ComplianceAuthMode,
|
|
17
|
+
type FetchCredentials,
|
|
18
|
+
type ComplianceAPIKeyAuth,
|
|
19
|
+
type ComplianceCookieAuth,
|
|
20
|
+
type SDKScope,
|
|
21
|
+
type SDKScopeBase,
|
|
22
|
+
type SDKScopeMexico,
|
|
23
|
+
isMexicoScope,
|
|
24
|
+
buildScope,
|
|
25
|
+
} from "./types";
|
|
26
|
+
|
|
27
|
+
export type { SessionInfo } from "../utils/session";
|
|
28
|
+
|
|
29
|
+
// ===========================
|
|
30
|
+
// Registry
|
|
31
|
+
// ===========================
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
type ResourceFactory,
|
|
35
|
+
type ScopeResourceFactories,
|
|
36
|
+
registerScope,
|
|
37
|
+
getResourceFactories,
|
|
38
|
+
getScopeKey,
|
|
39
|
+
hasScope,
|
|
40
|
+
getRegisteredScopes,
|
|
41
|
+
clearRegistry,
|
|
42
|
+
} from "./resource-registry";
|
|
43
|
+
|
|
44
|
+
// ===========================
|
|
45
|
+
// Base (Unscoped)
|
|
46
|
+
// ===========================
|
|
47
|
+
|
|
48
|
+
export { type UnscopedSDKOptions, registerBaseScope } from "./base";
|
|
49
|
+
|
|
50
|
+
// ===========================
|
|
51
|
+
// Mexico
|
|
52
|
+
// ===========================
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
// Types
|
|
56
|
+
type ComplianceSDKOptionsMexico,
|
|
57
|
+
type MexicoSDKOptions,
|
|
58
|
+
type MexicoComplianceSDK,
|
|
59
|
+
type AVISDKOptions,
|
|
60
|
+
type AVIComplianceSDK,
|
|
61
|
+
type JYSSDKOptions,
|
|
62
|
+
type JYSComplianceSDK,
|
|
63
|
+
type TSCSDKOptions,
|
|
64
|
+
type TSCComplianceSDK,
|
|
65
|
+
// Registration
|
|
66
|
+
registerMexicoScopes,
|
|
67
|
+
} from "./mex";
|
|
68
|
+
|
|
69
|
+
// ===========================
|
|
70
|
+
// Initialize All Scopes
|
|
71
|
+
// ===========================
|
|
72
|
+
|
|
73
|
+
import { registerBaseScope } from "./base";
|
|
74
|
+
import { registerMexicoScopes } from "./mex";
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Registers all SDK scopes.
|
|
78
|
+
* Called automatically when the SDK module is imported.
|
|
79
|
+
*/
|
|
80
|
+
export function initializeRegistry(): void {
|
|
81
|
+
registerBaseScope();
|
|
82
|
+
registerMexicoScopes();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Auto-initialize on import
|
|
86
|
+
initializeRegistry();
|
|
87
|
+
|
|
88
|
+
// ===========================
|
|
89
|
+
// ComplianceSDK
|
|
90
|
+
// ===========================
|
|
91
|
+
|
|
92
|
+
export {
|
|
93
|
+
ComplianceSDK,
|
|
94
|
+
ComplianceSDKImpl,
|
|
95
|
+
type ComplianceSDKOptions,
|
|
96
|
+
type ComplianceSDKConstructor,
|
|
97
|
+
type UnscopedComplianceSDK,
|
|
98
|
+
} from "./ComplianceSDK";
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mexico-scoped ComplianceSDK
|
|
3
|
+
*
|
|
4
|
+
* Provides Mexico-specific resources like EBR (Expediente de Beneficiario Real).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { ComplianceSDKImpl } from "../ComplianceSDK";
|
|
8
|
+
import type {
|
|
9
|
+
MexicoScopedSDKOptions,
|
|
10
|
+
ComplianceSDKOptionsMexico,
|
|
11
|
+
} from "./types";
|
|
12
|
+
import { EBRResource } from "../../resources/mex/ebr";
|
|
13
|
+
import type { MexClientsResource } from "../../resources/mex/clients";
|
|
14
|
+
import type { MexTransactionsResource } from "../../resources/mex/transactions";
|
|
15
|
+
import type { MexReportsResource } from "../../resources/mex/reports";
|
|
16
|
+
import type { MexBankAccountsResource } from "../../resources/mex/bank-accounts";
|
|
17
|
+
import type { MexAddressesResource } from "../../resources/mex/addresses";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Mexico ComplianceSDK Implementation.
|
|
21
|
+
*
|
|
22
|
+
* Extends the base SDK with Mexico-specific resources.
|
|
23
|
+
* This class is used when you create a ComplianceSDK with `jurisdiction: "MX"`.
|
|
24
|
+
*
|
|
25
|
+
* Registration is handled by `registerMexicoScopes()` in `./index.ts`.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```typescript
|
|
29
|
+
* const sdk = new ComplianceSDK({
|
|
30
|
+
* apiKey: process.env.API_KEY!,
|
|
31
|
+
* environment: "test",
|
|
32
|
+
* jurisdiction: "MX",
|
|
33
|
+
* });
|
|
34
|
+
*
|
|
35
|
+
* // Mexico-specific EBR resource is available
|
|
36
|
+
* console.log(sdk.ebr); // EbrResource instance
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export class MexicoComplianceSDKImpl extends ComplianceSDKImpl {
|
|
40
|
+
// ─────────────────────────────────────────────────────────────────
|
|
41
|
+
// Override resource types with Mexico-specific types
|
|
42
|
+
// The registry creates these at runtime, we just need correct types
|
|
43
|
+
// ─────────────────────────────────────────────────────────────────
|
|
44
|
+
|
|
45
|
+
declare public readonly clients: MexClientsResource;
|
|
46
|
+
declare public readonly transactions: MexTransactionsResource;
|
|
47
|
+
declare public readonly reports: MexReportsResource;
|
|
48
|
+
declare public readonly bankAccounts: MexBankAccountsResource;
|
|
49
|
+
declare public readonly addresses: MexAddressesResource;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* EBR (Expediente de Beneficiario Real) resource.
|
|
53
|
+
*
|
|
54
|
+
* Mexico-only resource for managing beneficial owner records.
|
|
55
|
+
*/
|
|
56
|
+
public readonly ebr: EBRResource;
|
|
57
|
+
|
|
58
|
+
constructor(options: ComplianceSDKOptionsMexico) {
|
|
59
|
+
super(options);
|
|
60
|
+
|
|
61
|
+
// Add Mexico-specific resources
|
|
62
|
+
this.ebr = new EBRResource({
|
|
63
|
+
trpc: this.trpc,
|
|
64
|
+
scope: this._scope,
|
|
65
|
+
environment: this.environment,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Mexico-scoped ComplianceSDK (convenience class).
|
|
72
|
+
* Pre-configured for Mexico jurisdiction - no need to specify jurisdiction in options.
|
|
73
|
+
*
|
|
74
|
+
* Includes Mexico-specific resources:
|
|
75
|
+
* - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import { ComplianceSDK } from "@artu/compliance-sdk/mexico";
|
|
80
|
+
*
|
|
81
|
+
* const sdk = new ComplianceSDK({
|
|
82
|
+
* apiKey: process.env.API_KEY!,
|
|
83
|
+
* environment: "test",
|
|
84
|
+
* });
|
|
85
|
+
*
|
|
86
|
+
* // Already scoped to Mexico - no need to specify jurisdiction
|
|
87
|
+
* const client = await sdk.clients.create({
|
|
88
|
+
* type: ClientType.Person,
|
|
89
|
+
* name: "Juan García",
|
|
90
|
+
* });
|
|
91
|
+
*
|
|
92
|
+
* // Access Mexico-specific EBR resource
|
|
93
|
+
* const weights = sdk.ebr.presets.suggested();
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
export class MexicoComplianceSDKScoped extends MexicoComplianceSDKImpl {
|
|
97
|
+
// Resource types inherited from MexicoComplianceSDKImpl (already Mexico-typed)
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* EBR (Evaluación Basada en Riesgos) resource manager.
|
|
101
|
+
*
|
|
102
|
+
* Provides risk-based evaluation methodology for AML/KYC compliance
|
|
103
|
+
* as required by Mexican LFPIORPI regulations.
|
|
104
|
+
*
|
|
105
|
+
* Key features:
|
|
106
|
+
* - Immutable configurations (append-only for audit trail)
|
|
107
|
+
* - Scope-aware (global or activity-specific)
|
|
108
|
+
* - Weight presets for all 15 Actividades Vulnerables
|
|
109
|
+
* - Risk level mapping (5 internal → 3 regulatory)
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```typescript
|
|
113
|
+
* // Create EBR configuration
|
|
114
|
+
* const config = await sdk.ebr.create({
|
|
115
|
+
* weights: { client: 0.25, geographic: 0.35, product: 0.20, transactional: 0.20 },
|
|
116
|
+
* thresholds: sdk.ebr.thresholds.defaults,
|
|
117
|
+
* justification: "Initial configuration Q4 2024",
|
|
118
|
+
* });
|
|
119
|
+
*
|
|
120
|
+
* // Get suggested preset for current activity
|
|
121
|
+
* const suggested = sdk.ebr.presets.suggested();
|
|
122
|
+
*
|
|
123
|
+
* // Map risk level for regulatory reporting
|
|
124
|
+
* const regulatory = sdk.ebr.riskLevel.mapToRegulatory("muy_alto"); // "alto"
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
public readonly ebr: EBRResource;
|
|
128
|
+
|
|
129
|
+
constructor(options: MexicoScopedSDKOptions) {
|
|
130
|
+
const { actividadVulnerable, ...baseOptions } = options;
|
|
131
|
+
super({ ...baseOptions, jurisdiction: "MX", actividadVulnerable });
|
|
132
|
+
|
|
133
|
+
// Initialize Mexico-specific resources
|
|
134
|
+
this.ebr = new EBRResource({
|
|
135
|
+
trpc: this.trpc,
|
|
136
|
+
scope: this.scope,
|
|
137
|
+
environment: this.environment,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AVI-scoped ComplianceSDK
|
|
3
|
+
*
|
|
4
|
+
* Pre-configured SDK for Mexico jurisdiction and Activos Virtuales (AVI) activity.
|
|
5
|
+
* Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources like EBR.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { MexicoComplianceSDKScoped } from "../../ComplianceSDK";
|
|
9
|
+
import type { AVIScopedSDKOptions } from "./types";
|
|
10
|
+
import type { AVIClientsResource } from "../../../../resources/mex/actividad-vulnerable/avi/clients";
|
|
11
|
+
import type { AVITransactionsResource } from "../../../../resources/mex/actividad-vulnerable/avi/transactions";
|
|
12
|
+
import type { AVIReportsResource } from "../../../../resources/mex/actividad-vulnerable/avi/reports";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* AVI-scoped ComplianceSDK.
|
|
16
|
+
* Pre-configured for Mexico jurisdiction and Activos Virtuales (AVI) activity.
|
|
17
|
+
*
|
|
18
|
+
* Inherits Mexico-specific resources:
|
|
19
|
+
* - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import { ComplianceSDK } from "@artu/compliance-sdk/mexico/actividad-vulnerable/avi";
|
|
24
|
+
*
|
|
25
|
+
* const sdk = new ComplianceSDK({
|
|
26
|
+
* apiKey: process.env.API_KEY!,
|
|
27
|
+
* environment: "test",
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* // Already scoped - no need to specify jurisdiction/activity
|
|
31
|
+
* const client = await sdk.clients.create({
|
|
32
|
+
* type: ClientType.Person,
|
|
33
|
+
* name: "Juan García",
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* // Access inherited EBR resource
|
|
37
|
+
* const weights = sdk.ebr.presets.suggested();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export class AVIComplianceSDKScoped extends MexicoComplianceSDKScoped {
|
|
41
|
+
// Override resource types with AVI-specific types
|
|
42
|
+
// The registry creates these at runtime, we just need correct types
|
|
43
|
+
declare public readonly clients: AVIClientsResource;
|
|
44
|
+
declare public readonly transactions: AVITransactionsResource;
|
|
45
|
+
declare public readonly reports: AVIReportsResource;
|
|
46
|
+
// addresses and bankAccounts inherited from MexicoComplianceSDKImpl (MexAddressesResource, MexBankAccountsResource)
|
|
47
|
+
|
|
48
|
+
constructor(options: AVIScopedSDKOptions) {
|
|
49
|
+
super({ ...options, actividadVulnerable: "AVI" });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AVI SDK Module
|
|
3
|
+
*
|
|
4
|
+
* Exports types, registration, and scoped SDK for Activos Virtuales.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Types and registration
|
|
8
|
+
export {
|
|
9
|
+
type AVISDKOptions,
|
|
10
|
+
type AVIScopedSDKOptions,
|
|
11
|
+
type AVIComplianceSDK,
|
|
12
|
+
registerAVIScope,
|
|
13
|
+
} from "./types";
|
|
14
|
+
|
|
15
|
+
// Scoped SDK class
|
|
16
|
+
export { AVIComplianceSDKScoped } from "./ComplianceSDK";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AVI SDK Types & Registration
|
|
3
|
+
*
|
|
4
|
+
* Activos Virtuales (Virtual Assets) - cryptocurrency exchanges, wallets, etc.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { Jurisdiction, CodigoActividad } from "@artu-ai/shared";
|
|
8
|
+
import type { ComplianceSDKOptionsBase } from "../../../types";
|
|
9
|
+
import type { MexicoComplianceSDK } from "../../types";
|
|
10
|
+
import {
|
|
11
|
+
AVIClientsResource,
|
|
12
|
+
AVITransactionsResource,
|
|
13
|
+
AVIReportsResource,
|
|
14
|
+
MexBankAccountsResource,
|
|
15
|
+
MexAddressesResource,
|
|
16
|
+
} from "../../../../resources";
|
|
17
|
+
import { registerScope } from "../../../resource-registry";
|
|
18
|
+
import type { ReportsResource } from "../../../../resources/reports";
|
|
19
|
+
import type { EBRResource } from "../../../../resources/mex/ebr";
|
|
20
|
+
|
|
21
|
+
// ===========================
|
|
22
|
+
// SDK Options
|
|
23
|
+
// ===========================
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Options for creating an AVI-scoped SDK
|
|
27
|
+
*/
|
|
28
|
+
export type AVISDKOptions = ComplianceSDKOptionsBase & {
|
|
29
|
+
jurisdiction: typeof Jurisdiction.Mexico | "MX";
|
|
30
|
+
actividadVulnerable: typeof CodigoActividad.AVI | "AVI";
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Options for AVI-scoped SDK (without jurisdiction/activity - pre-configured)
|
|
35
|
+
*/
|
|
36
|
+
export type AVIScopedSDKOptions = Omit<
|
|
37
|
+
ComplianceSDKOptionsBase,
|
|
38
|
+
"jurisdiction" | "actividadVulnerable"
|
|
39
|
+
>;
|
|
40
|
+
|
|
41
|
+
// ===========================
|
|
42
|
+
// Typed SDK Interface
|
|
43
|
+
// ===========================
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Mexico AVI-scoped SDK - uses AVI resource types
|
|
47
|
+
* Extends MexicoComplianceSDK with AVI-specific overrides
|
|
48
|
+
*/
|
|
49
|
+
export interface AVIComplianceSDK
|
|
50
|
+
extends Omit<MexicoComplianceSDK, "clients" | "transactions" | "reports"> {
|
|
51
|
+
readonly clients: AVIClientsResource;
|
|
52
|
+
readonly transactions: AVITransactionsResource;
|
|
53
|
+
readonly reports: AVIReportsResource;
|
|
54
|
+
readonly bankAccounts: MexBankAccountsResource;
|
|
55
|
+
/** EBR resource for risk-based evaluation */
|
|
56
|
+
readonly ebr: EBRResource;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ===========================
|
|
60
|
+
// Registration
|
|
61
|
+
// ===========================
|
|
62
|
+
|
|
63
|
+
export function registerAVIScope(): void {
|
|
64
|
+
registerScope("MX:AVI", {
|
|
65
|
+
clients: (config) => new AVIClientsResource(config),
|
|
66
|
+
transactions: (config) => new AVITransactionsResource(config),
|
|
67
|
+
reports: (config) =>
|
|
68
|
+
new AVIReportsResource(config) as unknown as ReportsResource,
|
|
69
|
+
bankAccounts: (config) => new MexBankAccountsResource(config),
|
|
70
|
+
addresses: (config) => new MexAddressesResource(config),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Actividad Vulnerable SDK Types & Registrations
|
|
3
|
+
*
|
|
4
|
+
* Barrel export for all activity-specific SDK types, registrations, and scoped SDKs.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// ===========================
|
|
8
|
+
// AVI
|
|
9
|
+
// ===========================
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
type AVISDKOptions,
|
|
13
|
+
type AVIScopedSDKOptions,
|
|
14
|
+
type AVIComplianceSDK,
|
|
15
|
+
registerAVIScope,
|
|
16
|
+
AVIComplianceSDKScoped,
|
|
17
|
+
} from "./avi";
|
|
18
|
+
|
|
19
|
+
// ===========================
|
|
20
|
+
// JYS
|
|
21
|
+
// ===========================
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
type JYSSDKOptions,
|
|
25
|
+
type JYSScopedSDKOptions,
|
|
26
|
+
type JYSComplianceSDK,
|
|
27
|
+
registerJYSScope,
|
|
28
|
+
JYSComplianceSDKScoped,
|
|
29
|
+
} from "./jys";
|
|
30
|
+
|
|
31
|
+
// ===========================
|
|
32
|
+
// TSC
|
|
33
|
+
// ===========================
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
type TSCSDKOptions,
|
|
37
|
+
type TSCScopedSDKOptions,
|
|
38
|
+
type TSCComplianceSDK,
|
|
39
|
+
registerTSCScope,
|
|
40
|
+
TSCComplianceSDKScoped,
|
|
41
|
+
} from "./tsc";
|
|
42
|
+
|
|
43
|
+
// ===========================
|
|
44
|
+
// Register All Activities
|
|
45
|
+
// ===========================
|
|
46
|
+
|
|
47
|
+
import { registerAVIScope } from "./avi";
|
|
48
|
+
import { registerJYSScope } from "./jys";
|
|
49
|
+
import { registerTSCScope } from "./tsc";
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Registers all Actividad Vulnerable activity scopes
|
|
53
|
+
*/
|
|
54
|
+
export function registerActividadVulnerableScopes(): void {
|
|
55
|
+
registerAVIScope();
|
|
56
|
+
registerJYSScope();
|
|
57
|
+
registerTSCScope();
|
|
58
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JYS-scoped ComplianceSDK
|
|
3
|
+
*
|
|
4
|
+
* Pre-configured SDK for Mexico jurisdiction and Joyas y Relojes (JYS) activity.
|
|
5
|
+
* Extends MexicoComplianceSDKScoped to inherit Mexico-specific resources like EBR.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { MexicoComplianceSDKScoped } from "../../ComplianceSDK";
|
|
9
|
+
import type { JYSScopedSDKOptions } from "./types";
|
|
10
|
+
import type { JYSClientsResource } from "../../../../resources/mex/actividad-vulnerable/jys/clients";
|
|
11
|
+
import type { JYSTransactionsResource } from "../../../../resources/mex/actividad-vulnerable/jys/transactions";
|
|
12
|
+
import type { JYSReportsResource } from "../../../../resources/mex/actividad-vulnerable/jys/reports";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* JYS-scoped ComplianceSDK.
|
|
16
|
+
* Pre-configured for Mexico jurisdiction and Joyas y Relojes (JYS) activity.
|
|
17
|
+
*
|
|
18
|
+
* Inherits Mexico-specific resources:
|
|
19
|
+
* - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import { ComplianceSDK } from "@artu/compliance-sdk/mexico/actividad-vulnerable/jys";
|
|
24
|
+
*
|
|
25
|
+
* const sdk = new ComplianceSDK({
|
|
26
|
+
* apiKey: process.env.API_KEY!,
|
|
27
|
+
* environment: "test",
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* // Already scoped - no need to specify jurisdiction/activity
|
|
31
|
+
* const client = await sdk.clients.create({
|
|
32
|
+
* type: ClientType.Person,
|
|
33
|
+
* name: "Juan García",
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* // Access inherited EBR resource
|
|
37
|
+
* const weights = sdk.ebr.presets.suggested();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export class JYSComplianceSDKScoped extends MexicoComplianceSDKScoped {
|
|
41
|
+
// Override resource types with JYS-specific types
|
|
42
|
+
// The registry creates these at runtime, we just need correct types
|
|
43
|
+
declare public readonly clients: JYSClientsResource;
|
|
44
|
+
declare public readonly transactions: JYSTransactionsResource;
|
|
45
|
+
declare public readonly reports: JYSReportsResource;
|
|
46
|
+
// addresses and bankAccounts inherited from MexicoComplianceSDKImpl (MexAddressesResource, MexBankAccountsResource)
|
|
47
|
+
|
|
48
|
+
constructor(options: JYSScopedSDKOptions) {
|
|
49
|
+
super({ ...options, actividadVulnerable: "JYS" });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JYS SDK Module
|
|
3
|
+
*
|
|
4
|
+
* Exports types, registration, and scoped SDK for Joyas y Sorteos.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Types and registration
|
|
8
|
+
export {
|
|
9
|
+
type JYSSDKOptions,
|
|
10
|
+
type JYSScopedSDKOptions,
|
|
11
|
+
type JYSComplianceSDK,
|
|
12
|
+
registerJYSScope,
|
|
13
|
+
} from "./types";
|
|
14
|
+
|
|
15
|
+
// Scoped SDK class
|
|
16
|
+
export { JYSComplianceSDKScoped } from "./ComplianceSDK";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JYS SDK Types & Registration
|
|
3
|
+
*
|
|
4
|
+
* Joyas y Relojes (Jewelry and Watches) - high-value goods dealers.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { Jurisdiction, CodigoActividad } from "@artu-ai/shared";
|
|
8
|
+
import type { ComplianceSDKOptionsBase } from "../../../types";
|
|
9
|
+
import type { MexicoComplianceSDK } from "../../types";
|
|
10
|
+
import {
|
|
11
|
+
JYSClientsResource,
|
|
12
|
+
JYSTransactionsResource,
|
|
13
|
+
JYSReportsResource,
|
|
14
|
+
MexBankAccountsResource,
|
|
15
|
+
MexAddressesResource,
|
|
16
|
+
} from "../../../../resources";
|
|
17
|
+
import { registerScope } from "../../../resource-registry";
|
|
18
|
+
import type { ReportsResource } from "../../../../resources/reports";
|
|
19
|
+
import type { EBRResource } from "../../../../resources/mex/ebr";
|
|
20
|
+
|
|
21
|
+
// ===========================
|
|
22
|
+
// SDK Options
|
|
23
|
+
// ===========================
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Options for creating a JYS-scoped SDK
|
|
27
|
+
*/
|
|
28
|
+
export type JYSSDKOptions = ComplianceSDKOptionsBase & {
|
|
29
|
+
jurisdiction: typeof Jurisdiction.Mexico | "MX";
|
|
30
|
+
actividadVulnerable: typeof CodigoActividad.JYS | "JYS";
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Options for JYS-scoped SDK (without jurisdiction/activity - pre-configured)
|
|
35
|
+
*/
|
|
36
|
+
export type JYSScopedSDKOptions = Omit<
|
|
37
|
+
ComplianceSDKOptionsBase,
|
|
38
|
+
"jurisdiction" | "actividadVulnerable"
|
|
39
|
+
>;
|
|
40
|
+
|
|
41
|
+
// ===========================
|
|
42
|
+
// Typed SDK Interface
|
|
43
|
+
// ===========================
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Mexico JYS-scoped SDK - uses JYS resource types
|
|
47
|
+
* Extends MexicoComplianceSDK with JYS-specific overrides
|
|
48
|
+
*/
|
|
49
|
+
export interface JYSComplianceSDK
|
|
50
|
+
extends Omit<MexicoComplianceSDK, "clients" | "transactions" | "reports"> {
|
|
51
|
+
readonly clients: JYSClientsResource;
|
|
52
|
+
readonly transactions: JYSTransactionsResource;
|
|
53
|
+
readonly reports: JYSReportsResource;
|
|
54
|
+
readonly bankAccounts: MexBankAccountsResource;
|
|
55
|
+
/** EBR resource for risk-based evaluation */
|
|
56
|
+
readonly ebr: EBRResource;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ===========================
|
|
60
|
+
// Registration
|
|
61
|
+
// ===========================
|
|
62
|
+
|
|
63
|
+
export function registerJYSScope(): void {
|
|
64
|
+
registerScope("MX:JYS", {
|
|
65
|
+
clients: (config) => new JYSClientsResource(config),
|
|
66
|
+
transactions: (config) => new JYSTransactionsResource(config),
|
|
67
|
+
reports: (config) =>
|
|
68
|
+
new JYSReportsResource(config) as unknown as ReportsResource,
|
|
69
|
+
bankAccounts: (config) => new MexBankAccountsResource(config),
|
|
70
|
+
addresses: (config) => new MexAddressesResource(config),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSC-scoped ComplianceSDK
|
|
3
|
+
*
|
|
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.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { MexicoComplianceSDKScoped } from "../../ComplianceSDK";
|
|
9
|
+
import type { TSCScopedSDKOptions } from "./types";
|
|
10
|
+
import type { TSCClientsResource } from "../../../../resources/mex/actividad-vulnerable/tsc/clients";
|
|
11
|
+
import type { TSCTransactionsResource } from "../../../../resources/mex/actividad-vulnerable/tsc/transactions";
|
|
12
|
+
import type { TSCReportsResource } from "../../../../resources/mex/actividad-vulnerable/tsc/reports";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* TSC-scoped ComplianceSDK.
|
|
16
|
+
* Pre-configured for Mexico jurisdiction and Tarjetas de Servicio y Crédito (TSC) activity.
|
|
17
|
+
*
|
|
18
|
+
* Inherits Mexico-specific resources:
|
|
19
|
+
* - `ebr` - EBR (Evaluación Basada en Riesgos) for AML/KYC risk evaluation
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import { ComplianceSDK } from "@artu/compliance-sdk/mexico/actividad-vulnerable/tsc";
|
|
24
|
+
*
|
|
25
|
+
* const sdk = new ComplianceSDK({
|
|
26
|
+
* apiKey: process.env.API_KEY!,
|
|
27
|
+
* environment: "test",
|
|
28
|
+
* });
|
|
29
|
+
*
|
|
30
|
+
* // Already scoped - no need to specify jurisdiction/activity
|
|
31
|
+
* const client = await sdk.clients.create({
|
|
32
|
+
* type: ClientType.Person,
|
|
33
|
+
* name: "Juan García",
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* // Access inherited EBR resource
|
|
37
|
+
* const weights = sdk.ebr.presets.suggested();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export class TSCComplianceSDKScoped extends MexicoComplianceSDKScoped {
|
|
41
|
+
// Override resource types with TSC-specific types
|
|
42
|
+
// The registry creates these at runtime, we just need correct types
|
|
43
|
+
declare public readonly clients: TSCClientsResource;
|
|
44
|
+
declare public readonly transactions: TSCTransactionsResource;
|
|
45
|
+
declare public readonly reports: TSCReportsResource;
|
|
46
|
+
// addresses and bankAccounts inherited from MexicoComplianceSDKImpl (MexAddressesResource, MexBankAccountsResource)
|
|
47
|
+
|
|
48
|
+
constructor(options: TSCScopedSDKOptions) {
|
|
49
|
+
super({ ...options, actividadVulnerable: "TSC" });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TSC SDK Module
|
|
3
|
+
*
|
|
4
|
+
* Exports types, registration, and scoped SDK for Tarjetas de Servicio y Crédito.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Types and registration
|
|
8
|
+
export {
|
|
9
|
+
type TSCSDKOptions,
|
|
10
|
+
type TSCScopedSDKOptions,
|
|
11
|
+
type TSCComplianceSDK,
|
|
12
|
+
registerTSCScope,
|
|
13
|
+
} from "./types";
|
|
14
|
+
|
|
15
|
+
// Scoped SDK class
|
|
16
|
+
export { TSCComplianceSDKScoped } from "./ComplianceSDK";
|