@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.
Files changed (484) hide show
  1. package/dist/errors/api.d.ts +160 -0
  2. package/dist/errors/api.d.ts.map +1 -0
  3. package/dist/errors/api.js +255 -0
  4. package/dist/errors/base.d.ts +87 -0
  5. package/dist/errors/base.d.ts.map +1 -0
  6. package/dist/errors/base.js +84 -0
  7. package/dist/errors/index.d.ts +32 -0
  8. package/dist/errors/index.d.ts.map +1 -0
  9. package/dist/errors/index.js +35 -0
  10. package/dist/errors/upload.d.ts +109 -0
  11. package/dist/errors/upload.d.ts.map +1 -0
  12. package/dist/errors/upload.js +163 -0
  13. package/dist/errors/validation.d.ts +98 -0
  14. package/dist/errors/validation.d.ts.map +1 -0
  15. package/dist/errors/validation.js +129 -0
  16. package/dist/exports/base.d.ts +12 -0
  17. package/dist/exports/base.d.ts.map +1 -0
  18. package/dist/exports/base.js +21 -0
  19. package/dist/exports/index.d.ts +40 -0
  20. package/dist/exports/index.d.ts.map +1 -0
  21. package/dist/exports/index.js +59 -0
  22. package/dist/{mexico → exports/mexico}/actividad-vulnerable/avi.d.ts +130 -138
  23. package/dist/exports/mexico/actividad-vulnerable/avi.d.ts.map +1 -0
  24. package/dist/exports/mexico/actividad-vulnerable/avi.js +108 -0
  25. package/dist/{mexico → exports/mexico}/actividad-vulnerable/jys.d.ts +147 -158
  26. package/dist/exports/mexico/actividad-vulnerable/jys.d.ts.map +1 -0
  27. package/dist/exports/mexico/actividad-vulnerable/jys.js +115 -0
  28. package/dist/{mexico → exports/mexico}/actividad-vulnerable/tsc.d.ts +118 -129
  29. package/dist/exports/mexico/actividad-vulnerable/tsc.d.ts.map +1 -0
  30. package/dist/exports/mexico/actividad-vulnerable/tsc.js +103 -0
  31. package/dist/exports/mexico/index.d.ts +48 -0
  32. package/dist/exports/mexico/index.d.ts.map +1 -0
  33. package/dist/exports/mexico/index.js +70 -0
  34. package/dist/models/Address.d.ts +118 -0
  35. package/dist/models/Address.d.ts.map +1 -0
  36. package/dist/models/Address.js +187 -0
  37. package/dist/models/BankAccount.d.ts +124 -0
  38. package/dist/models/BankAccount.d.ts.map +1 -0
  39. package/dist/models/BankAccount.js +190 -0
  40. package/dist/models/Client.d.ts +170 -0
  41. package/dist/models/Client.d.ts.map +1 -0
  42. package/dist/models/Client.js +257 -0
  43. package/dist/models/ContactMethod.d.ts +102 -0
  44. package/dist/models/ContactMethod.d.ts.map +1 -0
  45. package/dist/models/ContactMethod.js +152 -0
  46. package/dist/models/Document.d.ts +167 -0
  47. package/dist/models/Document.d.ts.map +1 -0
  48. package/dist/models/Document.js +295 -0
  49. package/dist/models/LinkedClient.d.ts +62 -0
  50. package/dist/models/LinkedClient.d.ts.map +1 -0
  51. package/dist/models/LinkedClient.js +70 -0
  52. package/dist/models/Report.d.ts +98 -0
  53. package/dist/models/Report.d.ts.map +1 -0
  54. package/dist/models/Report.js +156 -0
  55. package/dist/models/ReportItem.d.ts +106 -0
  56. package/dist/models/ReportItem.d.ts.map +1 -0
  57. package/dist/models/ReportItem.js +167 -0
  58. package/dist/models/Transaction.d.ts +108 -0
  59. package/dist/models/Transaction.d.ts.map +1 -0
  60. package/dist/models/Transaction.js +175 -0
  61. package/dist/models/base.d.ts +42 -0
  62. package/dist/models/base.d.ts.map +1 -0
  63. package/dist/models/base.js +51 -0
  64. package/dist/models/index.d.ts +20 -0
  65. package/dist/models/index.d.ts.map +1 -0
  66. package/dist/models/index.js +34 -0
  67. package/dist/models/mex/MexAddress.d.ts +93 -0
  68. package/dist/models/mex/MexAddress.d.ts.map +1 -0
  69. package/dist/models/mex/MexAddress.js +148 -0
  70. package/dist/models/mex/MexBankAccount.d.ts +65 -0
  71. package/dist/models/mex/MexBankAccount.d.ts.map +1 -0
  72. package/dist/models/mex/MexBankAccount.js +90 -0
  73. package/dist/models/mex/MexClient.d.ts +88 -0
  74. package/dist/models/mex/MexClient.d.ts.map +1 -0
  75. package/dist/models/mex/MexClient.js +133 -0
  76. package/dist/models/mex/MexDocument.d.ts +415 -0
  77. package/dist/models/mex/MexDocument.d.ts.map +1 -0
  78. package/dist/models/mex/MexDocument.js +687 -0
  79. package/dist/models/mex/MexReport.d.ts +50 -0
  80. package/dist/models/mex/MexReport.d.ts.map +1 -0
  81. package/dist/models/mex/MexReport.js +73 -0
  82. package/dist/models/mex/MexReportItem.d.ts +39 -0
  83. package/dist/models/mex/MexReportItem.d.ts.map +1 -0
  84. package/dist/models/mex/MexReportItem.js +50 -0
  85. package/dist/models/mex/MexTransaction.d.ts +53 -0
  86. package/dist/models/mex/MexTransaction.d.ts.map +1 -0
  87. package/dist/models/mex/MexTransaction.js +78 -0
  88. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.d.ts +37 -0
  89. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.d.ts.map +1 -0
  90. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableClient.js +46 -0
  91. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts +38 -0
  92. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.d.ts.map +1 -0
  93. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReport.js +39 -0
  94. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts +38 -0
  95. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.d.ts.map +1 -0
  96. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.js +39 -0
  97. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.d.ts +29 -0
  98. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.d.ts.map +1 -0
  99. package/dist/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.js +37 -0
  100. package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.d.ts +43 -0
  101. package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.d.ts.map +1 -0
  102. package/dist/models/mex/actividad-vulnerable/avi/MexAVIClient.js +59 -0
  103. package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts +53 -0
  104. package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.d.ts.map +1 -0
  105. package/dist/models/mex/actividad-vulnerable/avi/MexAVIReport.js +75 -0
  106. package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts +56 -0
  107. package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.d.ts.map +1 -0
  108. package/dist/models/mex/actividad-vulnerable/avi/MexAVIReportItem.js +63 -0
  109. package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.d.ts +67 -0
  110. package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.d.ts.map +1 -0
  111. package/dist/models/mex/actividad-vulnerable/avi/MexAVITransaction.js +136 -0
  112. package/dist/models/mex/actividad-vulnerable/index.d.ts +20 -0
  113. package/dist/models/mex/actividad-vulnerable/index.d.ts.map +1 -0
  114. package/dist/models/mex/actividad-vulnerable/index.js +25 -0
  115. package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.d.ts +39 -0
  116. package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.d.ts.map +1 -0
  117. package/dist/models/mex/actividad-vulnerable/jys/MexJYSClient.js +53 -0
  118. package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts +53 -0
  119. package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.d.ts.map +1 -0
  120. package/dist/models/mex/actividad-vulnerable/jys/MexJYSReport.js +75 -0
  121. package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts +56 -0
  122. package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.d.ts.map +1 -0
  123. package/dist/models/mex/actividad-vulnerable/jys/MexJYSReportItem.js +63 -0
  124. package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.d.ts +85 -0
  125. package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.d.ts.map +1 -0
  126. package/dist/models/mex/actividad-vulnerable/jys/MexJYSTransaction.js +152 -0
  127. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.d.ts +39 -0
  128. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.d.ts.map +1 -0
  129. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCClient.js +53 -0
  130. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts +53 -0
  131. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.d.ts.map +1 -0
  132. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReport.js +75 -0
  133. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts +56 -0
  134. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.d.ts.map +1 -0
  135. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.js +63 -0
  136. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.d.ts +53 -0
  137. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.d.ts.map +1 -0
  138. package/dist/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.js +82 -0
  139. package/dist/models/mex/index.d.ts +12 -0
  140. package/dist/models/mex/index.d.ts.map +1 -0
  141. package/dist/models/mex/index.js +20 -0
  142. package/dist/models/types.d.ts +81 -0
  143. package/dist/models/types.d.ts.map +1 -0
  144. package/dist/models/types.js +6 -0
  145. package/dist/namespaces/index.d.ts +25 -0
  146. package/dist/namespaces/index.d.ts.map +1 -0
  147. package/dist/namespaces/index.js +27 -0
  148. package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts +322 -0
  149. package/dist/namespaces/mexico/actividad-vulnerable/avi/index.d.ts.map +1 -0
  150. package/dist/namespaces/mexico/actividad-vulnerable/avi/index.js +42 -0
  151. package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts +1361 -0
  152. package/dist/namespaces/mexico/actividad-vulnerable/index.d.ts.map +1 -0
  153. package/dist/namespaces/mexico/actividad-vulnerable/index.js +53 -0
  154. package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts +454 -0
  155. package/dist/namespaces/mexico/actividad-vulnerable/jys/index.d.ts.map +1 -0
  156. package/dist/namespaces/mexico/actividad-vulnerable/jys/index.js +52 -0
  157. package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts +162 -0
  158. package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.d.ts.map +1 -0
  159. package/dist/namespaces/mexico/actividad-vulnerable/tsc/index.js +40 -0
  160. package/dist/namespaces/mexico/index.d.ts +2481 -0
  161. package/dist/namespaces/mexico/index.d.ts.map +1 -0
  162. package/dist/namespaces/mexico/index.js +140 -0
  163. package/dist/resources/addresses.d.ts +171 -0
  164. package/dist/resources/addresses.d.ts.map +1 -0
  165. package/dist/resources/addresses.js +208 -0
  166. package/dist/resources/bank-accounts.d.ts +174 -0
  167. package/dist/resources/bank-accounts.d.ts.map +1 -0
  168. package/dist/resources/bank-accounts.js +220 -0
  169. package/dist/resources/base.d.ts +191 -0
  170. package/dist/resources/base.d.ts.map +1 -0
  171. package/dist/resources/base.js +202 -0
  172. package/dist/resources/clients.d.ts +446 -0
  173. package/dist/resources/clients.d.ts.map +1 -0
  174. package/dist/resources/clients.js +448 -0
  175. package/dist/resources/contact-methods.d.ts +176 -0
  176. package/dist/resources/contact-methods.d.ts.map +1 -0
  177. package/dist/resources/contact-methods.js +215 -0
  178. package/dist/resources/documents.d.ts +253 -0
  179. package/dist/resources/documents.d.ts.map +1 -0
  180. package/dist/resources/documents.js +340 -0
  181. package/dist/resources/index.d.ts +23 -0
  182. package/dist/resources/index.d.ts.map +1 -0
  183. package/dist/resources/index.js +25 -0
  184. package/dist/resources/mex/actividad-vulnerable/avi/clients.d.ts +159 -0
  185. package/dist/resources/mex/actividad-vulnerable/avi/clients.d.ts.map +1 -0
  186. package/dist/resources/mex/actividad-vulnerable/avi/clients.js +304 -0
  187. package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts +7 -0
  188. package/dist/resources/mex/actividad-vulnerable/avi/index.d.ts.map +1 -0
  189. package/dist/resources/mex/actividad-vulnerable/avi/index.js +6 -0
  190. package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts +134 -0
  191. package/dist/resources/mex/actividad-vulnerable/avi/reports.d.ts.map +1 -0
  192. package/dist/resources/mex/actividad-vulnerable/avi/reports.js +333 -0
  193. package/dist/resources/mex/actividad-vulnerable/avi/transactions.d.ts +83 -0
  194. package/dist/resources/mex/actividad-vulnerable/avi/transactions.d.ts.map +1 -0
  195. package/dist/resources/mex/actividad-vulnerable/avi/transactions.js +239 -0
  196. package/dist/resources/mex/actividad-vulnerable/index.d.ts +7 -0
  197. package/dist/resources/mex/actividad-vulnerable/index.d.ts.map +1 -0
  198. package/dist/resources/mex/actividad-vulnerable/index.js +9 -0
  199. package/dist/resources/mex/actividad-vulnerable/jys/clients.d.ts +112 -0
  200. package/dist/resources/mex/actividad-vulnerable/jys/clients.d.ts.map +1 -0
  201. package/dist/resources/mex/actividad-vulnerable/jys/clients.js +218 -0
  202. package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts +7 -0
  203. package/dist/resources/mex/actividad-vulnerable/jys/index.d.ts.map +1 -0
  204. package/dist/resources/mex/actividad-vulnerable/jys/index.js +6 -0
  205. package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts +110 -0
  206. package/dist/resources/mex/actividad-vulnerable/jys/reports.d.ts.map +1 -0
  207. package/dist/resources/mex/actividad-vulnerable/jys/reports.js +309 -0
  208. package/dist/resources/mex/actividad-vulnerable/jys/transactions.d.ts +86 -0
  209. package/dist/resources/mex/actividad-vulnerable/jys/transactions.d.ts.map +1 -0
  210. package/dist/resources/mex/actividad-vulnerable/jys/transactions.js +240 -0
  211. package/dist/resources/mex/actividad-vulnerable/tsc/clients.d.ts +112 -0
  212. package/dist/resources/mex/actividad-vulnerable/tsc/clients.d.ts.map +1 -0
  213. package/dist/resources/mex/actividad-vulnerable/tsc/clients.js +218 -0
  214. package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts +7 -0
  215. package/dist/resources/mex/actividad-vulnerable/tsc/index.d.ts.map +1 -0
  216. package/dist/resources/mex/actividad-vulnerable/tsc/index.js +6 -0
  217. package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts +110 -0
  218. package/dist/resources/mex/actividad-vulnerable/tsc/reports.d.ts.map +1 -0
  219. package/dist/resources/mex/actividad-vulnerable/tsc/reports.js +309 -0
  220. package/dist/resources/mex/actividad-vulnerable/tsc/transactions.d.ts +83 -0
  221. package/dist/resources/mex/actividad-vulnerable/tsc/transactions.d.ts.map +1 -0
  222. package/dist/resources/mex/actividad-vulnerable/tsc/transactions.js +246 -0
  223. package/dist/resources/mex/addresses.d.ts +135 -0
  224. package/dist/resources/mex/addresses.d.ts.map +1 -0
  225. package/dist/resources/mex/addresses.js +313 -0
  226. package/dist/resources/mex/bank-accounts.d.ts +99 -0
  227. package/dist/resources/mex/bank-accounts.d.ts.map +1 -0
  228. package/dist/resources/mex/bank-accounts.js +147 -0
  229. package/dist/resources/mex/clients.d.ts +186 -0
  230. package/dist/resources/mex/clients.d.ts.map +1 -0
  231. package/dist/resources/mex/clients.js +438 -0
  232. package/dist/resources/mex/ebr.d.ts +213 -0
  233. package/dist/resources/mex/ebr.d.ts.map +1 -0
  234. package/dist/resources/mex/ebr.js +417 -0
  235. package/dist/resources/mex/index.d.ts +11 -0
  236. package/dist/resources/mex/index.d.ts.map +1 -0
  237. package/dist/resources/mex/index.js +12 -0
  238. package/dist/resources/mex/reports.d.ts +204 -0
  239. package/dist/resources/mex/reports.d.ts.map +1 -0
  240. package/dist/resources/mex/reports.js +404 -0
  241. package/dist/resources/mex/transactions.d.ts +117 -0
  242. package/dist/resources/mex/transactions.d.ts.map +1 -0
  243. package/dist/resources/mex/transactions.js +259 -0
  244. package/dist/resources/reports.d.ts +217 -0
  245. package/dist/resources/reports.d.ts.map +1 -0
  246. package/dist/resources/reports.js +310 -0
  247. package/dist/resources/transactions.d.ts +142 -0
  248. package/dist/resources/transactions.d.ts.map +1 -0
  249. package/dist/resources/transactions.js +221 -0
  250. package/dist/sdk/ComplianceSDK.d.ts +457 -0
  251. package/dist/sdk/ComplianceSDK.d.ts.map +1 -0
  252. package/dist/sdk/ComplianceSDK.js +520 -0
  253. package/dist/sdk/base.d.ts +17 -0
  254. package/dist/sdk/base.d.ts.map +1 -0
  255. package/dist/sdk/base.js +22 -0
  256. package/dist/sdk/index.d.ts +18 -0
  257. package/dist/sdk/index.d.ts.map +1 -0
  258. package/dist/sdk/index.js +43 -0
  259. package/dist/{ComplianceSDK-CsFkAge8.d.ts → sdk/mex/ComplianceSDK.d.ts} +16 -7
  260. package/dist/sdk/mex/ComplianceSDK.d.ts.map +1 -0
  261. package/dist/{ComplianceSDK-DzmqGCLF.d.cts → sdk/mex/ComplianceSDK.js} +26 -11
  262. package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts +44 -0
  263. package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.d.ts.map +1 -0
  264. package/dist/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.js +39 -0
  265. package/dist/sdk/mex/actividad-vulnerable/avi/index.d.ts +8 -0
  266. package/dist/sdk/mex/actividad-vulnerable/avi/index.d.ts.map +1 -0
  267. package/dist/sdk/mex/actividad-vulnerable/avi/index.js +9 -0
  268. package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts +35 -0
  269. package/dist/sdk/mex/actividad-vulnerable/avi/types.d.ts.map +1 -0
  270. package/dist/sdk/mex/actividad-vulnerable/avi/types.js +19 -0
  271. package/dist/sdk/mex/actividad-vulnerable/index.d.ts +13 -0
  272. package/dist/sdk/mex/actividad-vulnerable/index.d.ts.map +1 -0
  273. package/dist/sdk/mex/actividad-vulnerable/index.js +31 -0
  274. package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts +44 -0
  275. package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.d.ts.map +1 -0
  276. package/dist/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.js +39 -0
  277. package/dist/sdk/mex/actividad-vulnerable/jys/index.d.ts +8 -0
  278. package/dist/sdk/mex/actividad-vulnerable/jys/index.d.ts.map +1 -0
  279. package/dist/sdk/mex/actividad-vulnerable/jys/index.js +9 -0
  280. package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts +35 -0
  281. package/dist/sdk/mex/actividad-vulnerable/jys/types.d.ts.map +1 -0
  282. package/dist/sdk/mex/actividad-vulnerable/jys/types.js +19 -0
  283. package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts +44 -0
  284. package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.d.ts.map +1 -0
  285. package/dist/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.js +39 -0
  286. package/dist/sdk/mex/actividad-vulnerable/tsc/index.d.ts +8 -0
  287. package/dist/sdk/mex/actividad-vulnerable/tsc/index.d.ts.map +1 -0
  288. package/dist/sdk/mex/actividad-vulnerable/tsc/index.js +9 -0
  289. package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts +35 -0
  290. package/dist/sdk/mex/actividad-vulnerable/tsc/types.d.ts.map +1 -0
  291. package/dist/sdk/mex/actividad-vulnerable/tsc/types.js +19 -0
  292. package/dist/sdk/mex/index.d.ts +13 -0
  293. package/dist/sdk/mex/index.d.ts.map +1 -0
  294. package/dist/sdk/mex/index.js +38 -0
  295. package/dist/sdk/mex/types.d.ts +57 -0
  296. package/dist/sdk/mex/types.d.ts.map +1 -0
  297. package/dist/sdk/mex/types.js +7 -0
  298. package/dist/sdk/resource-registry.d.ts +118 -0
  299. package/dist/sdk/resource-registry.d.ts.map +1 -0
  300. package/dist/sdk/resource-registry.js +145 -0
  301. package/dist/sdk/sdk-registry.d.ts +59 -0
  302. package/dist/sdk/sdk-registry.d.ts.map +1 -0
  303. package/dist/sdk/sdk-registry.js +82 -0
  304. package/dist/sdk/types.d.ts +209 -0
  305. package/dist/sdk/types.d.ts.map +1 -0
  306. package/dist/sdk/types.js +42 -0
  307. package/dist/utils/environment.d.ts +102 -0
  308. package/dist/utils/environment.d.ts.map +1 -0
  309. package/dist/utils/environment.js +110 -0
  310. package/dist/utils/filters.d.ts +338 -0
  311. package/dist/utils/filters.d.ts.map +1 -0
  312. package/dist/utils/filters.js +373 -0
  313. package/dist/utils/index.d.ts +13 -0
  314. package/dist/utils/index.d.ts.map +1 -0
  315. package/dist/utils/index.js +39 -0
  316. package/dist/utils/pagination.d.ts +85 -0
  317. package/dist/utils/pagination.d.ts.map +1 -0
  318. package/dist/utils/pagination.js +120 -0
  319. package/dist/utils/session.d.ts +155 -0
  320. package/dist/utils/session.d.ts.map +1 -0
  321. package/dist/utils/session.js +50 -0
  322. package/dist/utils/trpc-client.d.ts +19337 -0
  323. package/dist/utils/trpc-client.d.ts.map +1 -0
  324. package/dist/utils/trpc-client.js +128 -0
  325. package/package.json +16 -27
  326. package/src/errors/api.ts +305 -0
  327. package/src/errors/base.ts +127 -0
  328. package/src/errors/index.ts +63 -0
  329. package/src/errors/upload.ts +204 -0
  330. package/src/errors/validation.ts +163 -0
  331. package/src/exports/base.ts +139 -0
  332. package/src/exports/index.ts +187 -0
  333. package/src/exports/mexico/actividad-vulnerable/avi.ts +207 -0
  334. package/src/exports/mexico/actividad-vulnerable/jys.ts +214 -0
  335. package/src/exports/mexico/actividad-vulnerable/tsc.ts +202 -0
  336. package/src/exports/mexico/index.ts +215 -0
  337. package/src/models/Address.ts +235 -0
  338. package/src/models/BankAccount.ts +235 -0
  339. package/src/models/Client.ts +343 -0
  340. package/src/models/ContactMethod.ts +197 -0
  341. package/src/models/Document.ts +355 -0
  342. package/src/models/LinkedClient.ts +84 -0
  343. package/src/models/Report.ts +193 -0
  344. package/src/models/ReportItem.ts +211 -0
  345. package/src/models/Transaction.ts +219 -0
  346. package/src/models/base.ts +56 -0
  347. package/src/models/index.ts +148 -0
  348. package/src/models/mex/MexAddress.ts +184 -0
  349. package/src/models/mex/MexBankAccount.ts +121 -0
  350. package/src/models/mex/MexClient.ts +177 -0
  351. package/src/models/mex/MexDocument.ts +890 -0
  352. package/src/models/mex/MexReport.ts +99 -0
  353. package/src/models/mex/MexReportItem.ts +79 -0
  354. package/src/models/mex/MexTransaction.ts +105 -0
  355. package/src/models/mex/actividad-vulnerable/MexActividadVulnerableClient.ts +66 -0
  356. package/src/models/mex/actividad-vulnerable/MexActividadVulnerableReport.ts +73 -0
  357. package/src/models/mex/actividad-vulnerable/MexActividadVulnerableReportItem.ts +74 -0
  358. package/src/models/mex/actividad-vulnerable/MexActividadVulnerableTransaction.ts +50 -0
  359. package/src/models/mex/actividad-vulnerable/avi/MexAVIClient.ts +80 -0
  360. package/src/models/mex/actividad-vulnerable/avi/MexAVIReport.ts +114 -0
  361. package/src/models/mex/actividad-vulnerable/avi/MexAVIReportItem.ts +105 -0
  362. package/src/models/mex/actividad-vulnerable/avi/MexAVITransaction.ts +157 -0
  363. package/src/models/mex/actividad-vulnerable/index.ts +78 -0
  364. package/src/models/mex/actividad-vulnerable/jys/MexJYSClient.ts +73 -0
  365. package/src/models/mex/actividad-vulnerable/jys/MexJYSReport.ts +114 -0
  366. package/src/models/mex/actividad-vulnerable/jys/MexJYSReportItem.ts +105 -0
  367. package/src/models/mex/actividad-vulnerable/jys/MexJYSTransaction.ts +178 -0
  368. package/src/models/mex/actividad-vulnerable/tsc/MexTSCClient.ts +73 -0
  369. package/src/models/mex/actividad-vulnerable/tsc/MexTSCReport.ts +114 -0
  370. package/src/models/mex/actividad-vulnerable/tsc/MexTSCReportItem.ts +105 -0
  371. package/src/models/mex/actividad-vulnerable/tsc/MexTSCTransaction.ts +104 -0
  372. package/src/models/mex/index.ts +57 -0
  373. package/src/models/types.ts +196 -0
  374. package/src/namespaces/index.ts +29 -0
  375. package/src/namespaces/mexico/actividad-vulnerable/avi/index.ts +62 -0
  376. package/src/namespaces/mexico/actividad-vulnerable/index.ts +79 -0
  377. package/src/namespaces/mexico/actividad-vulnerable/jys/index.ts +72 -0
  378. package/src/namespaces/mexico/actividad-vulnerable/tsc/index.ts +60 -0
  379. package/src/namespaces/mexico/index.ts +325 -0
  380. package/src/resources/addresses.ts +387 -0
  381. package/src/resources/bank-accounts.ts +413 -0
  382. package/src/resources/base.ts +322 -0
  383. package/src/resources/clients.ts +802 -0
  384. package/src/resources/contact-methods.ts +410 -0
  385. package/src/resources/documents.ts +508 -0
  386. package/src/resources/index.ts +35 -0
  387. package/src/resources/mex/actividad-vulnerable/avi/clients.ts +537 -0
  388. package/src/resources/mex/actividad-vulnerable/avi/index.ts +7 -0
  389. package/src/resources/mex/actividad-vulnerable/avi/reports.ts +513 -0
  390. package/src/resources/mex/actividad-vulnerable/avi/transactions.ts +386 -0
  391. package/src/resources/mex/actividad-vulnerable/index.ts +12 -0
  392. package/src/resources/mex/actividad-vulnerable/jys/clients.ts +427 -0
  393. package/src/resources/mex/actividad-vulnerable/jys/index.ts +7 -0
  394. package/src/resources/mex/actividad-vulnerable/jys/reports.ts +489 -0
  395. package/src/resources/mex/actividad-vulnerable/jys/transactions.ts +377 -0
  396. package/src/resources/mex/actividad-vulnerable/tsc/clients.ts +427 -0
  397. package/src/resources/mex/actividad-vulnerable/tsc/index.ts +7 -0
  398. package/src/resources/mex/actividad-vulnerable/tsc/reports.ts +489 -0
  399. package/src/resources/mex/actividad-vulnerable/tsc/transactions.ts +386 -0
  400. package/src/resources/mex/addresses.ts +471 -0
  401. package/src/resources/mex/bank-accounts.ts +259 -0
  402. package/src/resources/mex/clients.ts +735 -0
  403. package/src/resources/mex/ebr.ts +621 -0
  404. package/src/resources/mex/index.ts +23 -0
  405. package/src/resources/mex/reports.ts +575 -0
  406. package/src/resources/mex/transactions.ts +400 -0
  407. package/src/resources/reports.ts +493 -0
  408. package/src/resources/transactions.ts +354 -0
  409. package/src/sdk/ComplianceSDK.ts +797 -0
  410. package/src/sdk/base.ts +43 -0
  411. package/src/sdk/index.ts +98 -0
  412. package/src/sdk/mex/ComplianceSDK.ts +140 -0
  413. package/src/sdk/mex/actividad-vulnerable/avi/ComplianceSDK.ts +51 -0
  414. package/src/sdk/mex/actividad-vulnerable/avi/index.ts +16 -0
  415. package/src/sdk/mex/actividad-vulnerable/avi/types.ts +72 -0
  416. package/src/sdk/mex/actividad-vulnerable/index.ts +58 -0
  417. package/src/sdk/mex/actividad-vulnerable/jys/ComplianceSDK.ts +51 -0
  418. package/src/sdk/mex/actividad-vulnerable/jys/index.ts +16 -0
  419. package/src/sdk/mex/actividad-vulnerable/jys/types.ts +72 -0
  420. package/src/sdk/mex/actividad-vulnerable/tsc/ComplianceSDK.ts +51 -0
  421. package/src/sdk/mex/actividad-vulnerable/tsc/index.ts +16 -0
  422. package/src/sdk/mex/actividad-vulnerable/tsc/types.ts +72 -0
  423. package/src/sdk/mex/index.ts +66 -0
  424. package/src/sdk/mex/types.ts +84 -0
  425. package/src/sdk/resource-registry.ts +204 -0
  426. package/src/sdk/sdk-registry.ts +99 -0
  427. package/src/sdk/types.ts +275 -0
  428. package/src/utils/environment.ts +145 -0
  429. package/src/utils/filters.ts +412 -0
  430. package/src/utils/index.ts +115 -0
  431. package/src/utils/pagination.ts +143 -0
  432. package/src/utils/session.ts +273 -0
  433. package/src/utils/trpc-client.ts +233 -0
  434. package/dist/chunk-C4Y56E4V.js +0 -23
  435. package/dist/chunk-C4Y56E4V.js.map +0 -1
  436. package/dist/chunk-E36XEOE2.js +0 -22558
  437. package/dist/chunk-E36XEOE2.js.map +0 -1
  438. package/dist/chunk-EO7ANPLK.cjs +0 -26
  439. package/dist/chunk-EO7ANPLK.cjs.map +0 -1
  440. package/dist/chunk-F5LRN233.cjs +0 -26
  441. package/dist/chunk-F5LRN233.cjs.map +0 -1
  442. package/dist/chunk-IS3YJ7Y5.cjs +0 -26
  443. package/dist/chunk-IS3YJ7Y5.cjs.map +0 -1
  444. package/dist/chunk-MNPRPINS.js +0 -23
  445. package/dist/chunk-MNPRPINS.js.map +0 -1
  446. package/dist/chunk-NQWTMQQL.js +0 -249
  447. package/dist/chunk-NQWTMQQL.js.map +0 -1
  448. package/dist/chunk-Q3J7CQWL.js +0 -23
  449. package/dist/chunk-Q3J7CQWL.js.map +0 -1
  450. package/dist/chunk-U3W5OO7I.cjs +0 -22711
  451. package/dist/chunk-U3W5OO7I.cjs.map +0 -1
  452. package/dist/chunk-UVM75OVG.cjs +0 -261
  453. package/dist/chunk-UVM75OVG.cjs.map +0 -1
  454. package/dist/filters-CEVr2pEJ.d.cts +0 -6368
  455. package/dist/filters-CEVr2pEJ.d.ts +0 -6368
  456. package/dist/index-CWAflRhP.d.ts +0 -2866
  457. package/dist/index-FBXIzHa9.d.cts +0 -2866
  458. package/dist/index.cjs +0 -417
  459. package/dist/index.cjs.map +0 -1
  460. package/dist/index.d.cts +0 -9
  461. package/dist/index.d.ts +0 -9
  462. package/dist/index.js +0 -28
  463. package/dist/index.js.map +0 -1
  464. package/dist/mexico/actividad-vulnerable/avi.cjs +0 -320
  465. package/dist/mexico/actividad-vulnerable/avi.cjs.map +0 -1
  466. package/dist/mexico/actividad-vulnerable/avi.d.cts +0 -680
  467. package/dist/mexico/actividad-vulnerable/avi.js +0 -55
  468. package/dist/mexico/actividad-vulnerable/avi.js.map +0 -1
  469. package/dist/mexico/actividad-vulnerable/jys.cjs +0 -330
  470. package/dist/mexico/actividad-vulnerable/jys.cjs.map +0 -1
  471. package/dist/mexico/actividad-vulnerable/jys.d.cts +0 -746
  472. package/dist/mexico/actividad-vulnerable/jys.js +0 -65
  473. package/dist/mexico/actividad-vulnerable/jys.js.map +0 -1
  474. package/dist/mexico/actividad-vulnerable/tsc.cjs +0 -318
  475. package/dist/mexico/actividad-vulnerable/tsc.cjs.map +0 -1
  476. package/dist/mexico/actividad-vulnerable/tsc.d.cts +0 -600
  477. package/dist/mexico/actividad-vulnerable/tsc.js +0 -53
  478. package/dist/mexico/actividad-vulnerable/tsc.js.map +0 -1
  479. package/dist/mexico/index.cjs +0 -384
  480. package/dist/mexico/index.cjs.map +0 -1
  481. package/dist/mexico/index.d.cts +0 -1422
  482. package/dist/mexico/index.d.ts +0 -1422
  483. package/dist/mexico/index.js +0 -7
  484. package/dist/mexico/index.js.map +0 -1
@@ -0,0 +1,890 @@
1
+ /**
2
+ * Mexico Document Models
3
+ *
4
+ * Type-specific document models with typed field accessors.
5
+ * Provides helpers for accessing extracted document data.
6
+ */
7
+
8
+ import { Document, type DocumentData } from "../Document";
9
+ import {
10
+ type IneFrontFields,
11
+ type IneBackFields,
12
+ type CurpDocumentFields,
13
+ type RfcConstanciaFields,
14
+ type AddressProofFields,
15
+ type ActaConstitutivaFields,
16
+ type PoderNotarialFields,
17
+ type PassportFields,
18
+ MexDocumentType,
19
+ } from "@artu-ai/shared";
20
+
21
+ /**
22
+ * Union of all Mexico document field types
23
+ */
24
+ export type MexDocumentFields =
25
+ | IneFrontFields
26
+ | IneBackFields
27
+ | PassportFields
28
+ | CurpDocumentFields
29
+ | RfcConstanciaFields
30
+ | AddressProofFields
31
+ | ActaConstitutivaFields
32
+ | PoderNotarialFields;
33
+
34
+ // ─────────────────────────────────────────────────────────────────
35
+ // Base Mexico Document
36
+ // ─────────────────────────────────────────────────────────────────
37
+
38
+ /**
39
+ * Mexico document model - base class for all Mexico documents
40
+ */
41
+ export class MexDocument extends Document {
42
+ /**
43
+ * Mexico document type
44
+ */
45
+ override get type(): MexDocumentType {
46
+ return this._data.type as MexDocumentType;
47
+ }
48
+
49
+ /**
50
+ * Document fields - typed as union of all Mexico document field types
51
+ *
52
+ * For specific field types, use type-specific document classes:
53
+ * - MexIneFrontDocument.ineFields
54
+ * - MexPassportDocument.passportFields
55
+ * - etc.
56
+ */
57
+ override get fields(): Partial<MexDocumentFields> | undefined {
58
+ return (
59
+ this._data as DocumentData & { fields?: Partial<MexDocumentFields> }
60
+ ).fields;
61
+ }
62
+
63
+ /**
64
+ * Check if this is an INE front document
65
+ */
66
+ get isIneFront(): boolean {
67
+ return this.type === MexDocumentType.IneFront;
68
+ }
69
+
70
+ /**
71
+ * Check if this is an INE back document
72
+ */
73
+ get isIneBack(): boolean {
74
+ return this.type === MexDocumentType.IneBack;
75
+ }
76
+
77
+ /**
78
+ * Check if this is a passport document
79
+ */
80
+ get isPassport(): boolean {
81
+ return this.type === MexDocumentType.Passport;
82
+ }
83
+
84
+ /**
85
+ * Check if this is a CURP document
86
+ */
87
+ get isCurp(): boolean {
88
+ return this.type === MexDocumentType.Curp;
89
+ }
90
+
91
+ /**
92
+ * Check if this is an RFC constancia document
93
+ */
94
+ get isRfcConstancia(): boolean {
95
+ return this.type === MexDocumentType.RfcConstancia;
96
+ }
97
+
98
+ /**
99
+ * Check if this is an address proof document
100
+ */
101
+ get isAddressProof(): boolean {
102
+ return this.type === MexDocumentType.AddressProof;
103
+ }
104
+
105
+ /**
106
+ * Check if this is an acta constitutiva document
107
+ */
108
+ get isActaConstitutiva(): boolean {
109
+ return this.type === MexDocumentType.ActaConstitutiva;
110
+ }
111
+
112
+ /**
113
+ * Check if this is a poder notarial document
114
+ */
115
+ get isPoderNotarial(): boolean {
116
+ return this.type === MexDocumentType.PoderNotarial;
117
+ }
118
+ }
119
+
120
+ // ─────────────────────────────────────────────────────────────────
121
+ // INE Front Document
122
+ // ─────────────────────────────────────────────────────────────────
123
+
124
+ /**
125
+ * INE Front document model with typed field accessors
126
+ *
127
+ * @example
128
+ * ```typescript
129
+ * const doc = await sdk.mex.documents.retrieve(id) as MexIneFrontDocument;
130
+ *
131
+ * if (doc.isIneFront) {
132
+ * console.log(doc.claveElector); // Typed accessor
133
+ * console.log(doc.curp);
134
+ * console.log(doc.fullName);
135
+ * }
136
+ * ```
137
+ */
138
+ export class MexIneFrontDocument extends MexDocument {
139
+ /**
140
+ * Typed INE front fields
141
+ */
142
+ get ineFields(): Partial<IneFrontFields> | undefined {
143
+ return this.fields as Partial<IneFrontFields> | undefined;
144
+ }
145
+
146
+ /** Voter ID number (Clave de Elector) */
147
+ get claveElector(): string | undefined {
148
+ return this.ineFields?.claveElector;
149
+ }
150
+
151
+ /** CURP */
152
+ get curp(): string | undefined {
153
+ return this.ineFields?.curp;
154
+ }
155
+
156
+ /** Full name as shown on INE */
157
+ get fullName(): string | undefined {
158
+ return this.ineFields?.fullName;
159
+ }
160
+
161
+ /** Paternal surname */
162
+ get paternalSurname(): string | undefined {
163
+ return this.ineFields?.paternalSurname;
164
+ }
165
+
166
+ /** Maternal surname */
167
+ get maternalSurname(): string | undefined {
168
+ return this.ineFields?.maternalSurname;
169
+ }
170
+
171
+ /** Given name(s) */
172
+ get givenNames(): string | undefined {
173
+ return this.ineFields?.givenNames;
174
+ }
175
+
176
+ /** Date of birth */
177
+ get dateOfBirth(): Date | undefined {
178
+ const val = this.ineFields?.dateOfBirth;
179
+ return val ? new Date(val) : undefined;
180
+ }
181
+
182
+ /** Gender (H = Hombre, M = Mujer) */
183
+ get gender(): "H" | "M" | undefined {
184
+ return this.ineFields?.gender;
185
+ }
186
+
187
+ /** State of birth */
188
+ get birthState(): string | undefined {
189
+ return this.ineFields?.birthState;
190
+ }
191
+
192
+ /** Electoral section */
193
+ get section(): string | undefined {
194
+ return this.ineFields?.section;
195
+ }
196
+
197
+ /** Registration year */
198
+ get registrationYear(): number | undefined {
199
+ return this.ineFields?.registrationYear;
200
+ }
201
+
202
+ /** Expiration year */
203
+ get expirationYear(): number | undefined {
204
+ return this.ineFields?.expirationYear;
205
+ }
206
+
207
+ /** Full address from INE */
208
+ get address(): {
209
+ street?: string;
210
+ exteriorNumber?: string;
211
+ interiorNumber?: string;
212
+ neighborhood?: string;
213
+ municipality?: string;
214
+ state?: string;
215
+ postalCode?: string;
216
+ } {
217
+ return {
218
+ street: this.ineFields?.street,
219
+ exteriorNumber: this.ineFields?.exteriorNumber,
220
+ interiorNumber: this.ineFields?.interiorNumber,
221
+ neighborhood: this.ineFields?.neighborhood,
222
+ municipality: this.ineFields?.municipality,
223
+ state: this.ineFields?.state,
224
+ postalCode: this.ineFields?.postalCode,
225
+ };
226
+ }
227
+ }
228
+
229
+ // ─────────────────────────────────────────────────────────────────
230
+ // INE Back Document
231
+ // ─────────────────────────────────────────────────────────────────
232
+
233
+ /**
234
+ * INE Back document model with typed field accessors
235
+ */
236
+ export class MexIneBackDocument extends MexDocument {
237
+ /**
238
+ * Typed INE back fields
239
+ */
240
+ get ineBackFields(): Partial<IneBackFields> | undefined {
241
+ return this.fields as Partial<IneBackFields> | undefined;
242
+ }
243
+
244
+ /** OCR number */
245
+ get ocrNumber(): string | undefined {
246
+ return this.ineBackFields?.ocrNumber;
247
+ }
248
+
249
+ /** CIC number */
250
+ get cicNumber(): string | undefined {
251
+ return this.ineBackFields?.cicNumber;
252
+ }
253
+
254
+ /** Citizen ID (9 digits) */
255
+ get citizenId(): string | undefined {
256
+ return this.ineBackFields?.citizenId;
257
+ }
258
+
259
+ /** MRZ lines (Machine Readable Zone) */
260
+ get mrz(): { line1?: string; line2?: string; line3?: string } {
261
+ return {
262
+ line1: this.ineBackFields?.mrzLine1,
263
+ line2: this.ineBackFields?.mrzLine2,
264
+ line3: this.ineBackFields?.mrzLine3,
265
+ };
266
+ }
267
+ }
268
+
269
+ // ─────────────────────────────────────────────────────────────────
270
+ // Passport Document
271
+ // ─────────────────────────────────────────────────────────────────
272
+
273
+ /**
274
+ * Passport document model with typed field accessors
275
+ */
276
+ export class MexPassportDocument extends MexDocument {
277
+ /**
278
+ * Typed passport fields
279
+ */
280
+ get passportFields(): Partial<PassportFields> | undefined {
281
+ return this.fields as Partial<PassportFields> | undefined;
282
+ }
283
+
284
+ /** Passport number */
285
+ get passportNumber(): string | undefined {
286
+ return this.passportFields?.passportNumber;
287
+ }
288
+
289
+ /** Issuing country */
290
+ get issuingCountry(): string | undefined {
291
+ return this.passportFields?.issuingCountry;
292
+ }
293
+
294
+ /** Nationality */
295
+ get nationality(): string | undefined {
296
+ return this.passportFields?.nationality;
297
+ }
298
+
299
+ /** Full name as shown on passport */
300
+ get fullName(): string | undefined {
301
+ return this.passportFields?.fullName;
302
+ }
303
+
304
+ /** Given name(s) */
305
+ get givenNames(): string | undefined {
306
+ return this.passportFields?.givenNames;
307
+ }
308
+
309
+ /** Surname(s) */
310
+ get surnames(): string | undefined {
311
+ return this.passportFields?.surnames;
312
+ }
313
+
314
+ /** Date of birth */
315
+ get dateOfBirth(): Date | undefined {
316
+ const val = this.passportFields?.dateOfBirth;
317
+ return val ? new Date(val) : undefined;
318
+ }
319
+
320
+ /** Place of birth */
321
+ get placeOfBirth(): string | undefined {
322
+ return this.passportFields?.placeOfBirth;
323
+ }
324
+
325
+ /** Gender */
326
+ get gender(): "M" | "F" | "X" | undefined {
327
+ return this.passportFields?.gender;
328
+ }
329
+
330
+ /** Issue date */
331
+ get issueDate(): Date | undefined {
332
+ const val = this.passportFields?.issueDate;
333
+ return val ? new Date(val) : undefined;
334
+ }
335
+
336
+ /** Expiration date */
337
+ get passportExpirationDate(): Date | undefined {
338
+ const val = this.passportFields?.expirationDate;
339
+ return val ? new Date(val) : undefined;
340
+ }
341
+
342
+ /** MRZ lines */
343
+ get mrz(): { line1?: string; line2?: string } {
344
+ return {
345
+ line1: this.passportFields?.mrzLine1,
346
+ line2: this.passportFields?.mrzLine2,
347
+ };
348
+ }
349
+ }
350
+
351
+ // ─────────────────────────────────────────────────────────────────
352
+ // CURP Document
353
+ // ─────────────────────────────────────────────────────────────────
354
+
355
+ /**
356
+ * CURP document model with typed field accessors
357
+ */
358
+ export class MexCurpDocument extends MexDocument {
359
+ /**
360
+ * Typed CURP fields
361
+ */
362
+ get curpFields(): Partial<CurpDocumentFields> | undefined {
363
+ return this.fields as Partial<CurpDocumentFields> | undefined;
364
+ }
365
+
366
+ /** CURP (18 character ID) */
367
+ get curp(): string | undefined {
368
+ return this.curpFields?.curp;
369
+ }
370
+
371
+ /** Full name */
372
+ get fullName(): string | undefined {
373
+ return this.curpFields?.fullName;
374
+ }
375
+
376
+ /** Paternal surname */
377
+ get paternalSurname(): string | undefined {
378
+ return this.curpFields?.paternalSurname;
379
+ }
380
+
381
+ /** Maternal surname */
382
+ get maternalSurname(): string | undefined {
383
+ return this.curpFields?.maternalSurname;
384
+ }
385
+
386
+ /** Given name(s) */
387
+ get givenNames(): string | undefined {
388
+ return this.curpFields?.givenNames;
389
+ }
390
+
391
+ /** Date of birth */
392
+ get dateOfBirth(): Date | undefined {
393
+ const val = this.curpFields?.dateOfBirth;
394
+ return val ? new Date(val) : undefined;
395
+ }
396
+
397
+ /** Gender */
398
+ get gender(): "H" | "M" | undefined {
399
+ return this.curpFields?.gender;
400
+ }
401
+
402
+ /** State of birth */
403
+ get birthState(): string | undefined {
404
+ return this.curpFields?.birthState;
405
+ }
406
+
407
+ /** Verification URL */
408
+ get verificationUrl(): string | undefined {
409
+ return this.curpFields?.verificationUrl;
410
+ }
411
+ }
412
+
413
+ // ─────────────────────────────────────────────────────────────────
414
+ // RFC Constancia Document
415
+ // ─────────────────────────────────────────────────────────────────
416
+
417
+ /**
418
+ * RFC Constancia document model with typed field accessors
419
+ */
420
+ export class MexRfcConstanciaDocument extends MexDocument {
421
+ /**
422
+ * Typed RFC fields
423
+ */
424
+ get rfcFields(): Partial<RfcConstanciaFields> | undefined {
425
+ return this.fields as Partial<RfcConstanciaFields> | undefined;
426
+ }
427
+
428
+ /** RFC (tax ID) */
429
+ get rfc(): string | undefined {
430
+ return this.rfcFields?.rfc;
431
+ }
432
+
433
+ /** Full name or business name */
434
+ get fullName(): string | undefined {
435
+ return this.rfcFields?.fullName;
436
+ }
437
+
438
+ /** CURP (for individuals) */
439
+ get curp(): string | undefined {
440
+ return this.rfcFields?.curp;
441
+ }
442
+
443
+ /** Tax regime(s) */
444
+ get taxRegimes(): string[] | undefined {
445
+ return this.rfcFields?.taxRegimes;
446
+ }
447
+
448
+ /** Economic activities */
449
+ get economicActivities(): string[] | undefined {
450
+ return this.rfcFields?.economicActivities;
451
+ }
452
+
453
+ /** Tax obligations */
454
+ get taxObligations(): string[] | undefined {
455
+ return this.rfcFields?.taxObligations;
456
+ }
457
+
458
+ /** Registration date */
459
+ get registrationDate(): Date | undefined {
460
+ const val = this.rfcFields?.registrationDate;
461
+ return val ? new Date(val) : undefined;
462
+ }
463
+
464
+ /** Registered address */
465
+ get address(): {
466
+ street?: string;
467
+ exteriorNumber?: string;
468
+ interiorNumber?: string;
469
+ neighborhood?: string;
470
+ municipality?: string;
471
+ state?: string;
472
+ postalCode?: string;
473
+ } {
474
+ return {
475
+ street: this.rfcFields?.street,
476
+ exteriorNumber: this.rfcFields?.exteriorNumber,
477
+ interiorNumber: this.rfcFields?.interiorNumber,
478
+ neighborhood: this.rfcFields?.neighborhood,
479
+ municipality: this.rfcFields?.municipality,
480
+ state: this.rfcFields?.state,
481
+ postalCode: this.rfcFields?.postalCode,
482
+ };
483
+ }
484
+ }
485
+
486
+ // ─────────────────────────────────────────────────────────────────
487
+ // Address Proof Document
488
+ // ─────────────────────────────────────────────────────────────────
489
+
490
+ /**
491
+ * Address proof document model with typed field accessors
492
+ * (Comprobante de Domicilio, Recibo de Luz/Agua, Estado de Cuenta)
493
+ */
494
+ export class MexAddressProofDocument extends MexDocument {
495
+ /**
496
+ * Typed address proof fields
497
+ */
498
+ get addressProofFields(): Partial<AddressProofFields> | undefined {
499
+ return this.fields as Partial<AddressProofFields> | undefined;
500
+ }
501
+
502
+ /** Account holder name */
503
+ get accountHolderName(): string | undefined {
504
+ return this.addressProofFields?.accountHolderName;
505
+ }
506
+
507
+ /** Service type */
508
+ get serviceType(): string | undefined {
509
+ return this.addressProofFields?.serviceType;
510
+ }
511
+
512
+ /** Provider name */
513
+ get providerName(): string | undefined {
514
+ return this.addressProofFields?.providerName;
515
+ }
516
+
517
+ /** Account/contract number */
518
+ get accountNumber(): string | undefined {
519
+ return this.addressProofFields?.accountNumber;
520
+ }
521
+
522
+ /** Statement date */
523
+ get statementDate(): Date | undefined {
524
+ const val = this.addressProofFields?.statementDate;
525
+ return val ? new Date(val) : undefined;
526
+ }
527
+
528
+ /** Service address */
529
+ get serviceAddress(): {
530
+ street?: string;
531
+ exteriorNumber?: string;
532
+ interiorNumber?: string;
533
+ neighborhood?: string;
534
+ municipality?: string;
535
+ state?: string;
536
+ postalCode?: string;
537
+ } {
538
+ return {
539
+ street: this.addressProofFields?.street,
540
+ exteriorNumber: this.addressProofFields?.exteriorNumber,
541
+ interiorNumber: this.addressProofFields?.interiorNumber,
542
+ neighborhood: this.addressProofFields?.neighborhood,
543
+ municipality: this.addressProofFields?.municipality,
544
+ state: this.addressProofFields?.state,
545
+ postalCode: this.addressProofFields?.postalCode,
546
+ };
547
+ }
548
+ }
549
+
550
+ // ─────────────────────────────────────────────────────────────────
551
+ // Acta Constitutiva Document
552
+ // ─────────────────────────────────────────────────────────────────
553
+
554
+ /**
555
+ * Acta Constitutiva (Articles of Incorporation) document model
556
+ * with typed field accessors
557
+ */
558
+ export class MexActaConstitutivaDocument extends MexDocument {
559
+ /**
560
+ * Typed acta constitutiva fields
561
+ */
562
+ get actaFields(): Partial<ActaConstitutivaFields> | undefined {
563
+ return this.fields as Partial<ActaConstitutivaFields> | undefined;
564
+ }
565
+
566
+ /** Company legal name (Denominación o Razón Social) */
567
+ get companyName(): string | undefined {
568
+ return this.actaFields?.companyName;
569
+ }
570
+
571
+ /** Company RFC (tax ID) */
572
+ get companyRfc(): string | undefined {
573
+ return this.actaFields?.companyRfc;
574
+ }
575
+
576
+ /** Type of legal entity */
577
+ get entityType(): string | undefined {
578
+ return this.actaFields?.entityType;
579
+ }
580
+
581
+ /** Notary number (Número de Notaría) */
582
+ get notaryNumber(): number | undefined {
583
+ return this.actaFields?.notaryNumber;
584
+ }
585
+
586
+ /** Notary name */
587
+ get notaryName(): string | undefined {
588
+ return this.actaFields?.notaryName;
589
+ }
590
+
591
+ /** Notary state/city */
592
+ get notaryLocation(): string | undefined {
593
+ return this.actaFields?.notaryLocation;
594
+ }
595
+
596
+ /** Instrument number (Número de Escritura) */
597
+ get instrumentNumber(): string | undefined {
598
+ return this.actaFields?.instrumentNumber;
599
+ }
600
+
601
+ /** Book number (Número de Libro) */
602
+ get bookNumber(): string | undefined {
603
+ return this.actaFields?.bookNumber;
604
+ }
605
+
606
+ /** Volume number (Número de Volumen) */
607
+ get volumeNumber(): string | undefined {
608
+ return this.actaFields?.volumeNumber;
609
+ }
610
+
611
+ /** Date of incorporation */
612
+ get incorporationDate(): Date | undefined {
613
+ const val = this.actaFields?.incorporationDate;
614
+ return val ? new Date(val) : undefined;
615
+ }
616
+
617
+ /** Registration number at Public Registry of Commerce */
618
+ get publicRegistryNumber(): string | undefined {
619
+ return this.actaFields?.publicRegistryNumber;
620
+ }
621
+
622
+ /** Public Registry of Commerce location */
623
+ get publicRegistryLocation(): string | undefined {
624
+ return this.actaFields?.publicRegistryLocation;
625
+ }
626
+
627
+ /** Registration date at Public Registry */
628
+ get publicRegistryDate(): Date | undefined {
629
+ const val = this.actaFields?.publicRegistryDate;
630
+ return val ? new Date(val) : undefined;
631
+ }
632
+
633
+ /** Corporate purpose (Objeto Social) */
634
+ get corporatePurpose(): string | undefined {
635
+ return this.actaFields?.corporatePurpose;
636
+ }
637
+
638
+ /** Duration of the company */
639
+ get duration(): string | undefined {
640
+ return this.actaFields?.duration;
641
+ }
642
+
643
+ /** Initial capital (Capital Social Inicial) */
644
+ get initialCapital(): number | undefined {
645
+ return this.actaFields?.initialCapital;
646
+ }
647
+
648
+ /** Capital currency */
649
+ get capitalCurrency(): string | undefined {
650
+ return this.actaFields?.capitalCurrency;
651
+ }
652
+
653
+ /** List of founding partners/shareholders */
654
+ get founders():
655
+ | {
656
+ name: string;
657
+ rfc?: string;
658
+ capitalContribution?: number;
659
+ percentageOwnership?: number;
660
+ }[]
661
+ | undefined {
662
+ return this.actaFields?.founders;
663
+ }
664
+
665
+ /** Legal representatives mentioned */
666
+ get legalRepresentatives(): string[] | undefined {
667
+ return this.actaFields?.legalRepresentatives;
668
+ }
669
+
670
+ /** Registered address */
671
+ get registeredAddress(): {
672
+ street?: string;
673
+ exteriorNumber?: string;
674
+ interiorNumber?: string;
675
+ neighborhood?: string;
676
+ municipality?: string;
677
+ state?: string;
678
+ postalCode?: string;
679
+ } {
680
+ return {
681
+ street: this.actaFields?.street,
682
+ exteriorNumber: this.actaFields?.exteriorNumber,
683
+ interiorNumber: this.actaFields?.interiorNumber,
684
+ neighborhood: this.actaFields?.neighborhood,
685
+ municipality: this.actaFields?.municipality,
686
+ state: this.actaFields?.state,
687
+ postalCode: this.actaFields?.postalCode,
688
+ };
689
+ }
690
+ }
691
+
692
+ // ─────────────────────────────────────────────────────────────────
693
+ // Poder Notarial Document
694
+ // ─────────────────────────────────────────────────────────────────
695
+
696
+ /**
697
+ * Poder Notarial (Notarized Power of Attorney) document model
698
+ * with typed field accessors
699
+ */
700
+ export class MexPoderNotarialDocument extends MexDocument {
701
+ /**
702
+ * Typed poder notarial fields
703
+ */
704
+ get poderFields(): Partial<PoderNotarialFields> | undefined {
705
+ return this.fields as Partial<PoderNotarialFields> | undefined;
706
+ }
707
+
708
+ /** Type of power granted */
709
+ get powerType(): string | undefined {
710
+ return this.poderFields?.powerType;
711
+ }
712
+
713
+ /** Grantor name (Poderdante - individual/company giving power) */
714
+ get grantorName(): string | undefined {
715
+ return this.poderFields?.grantorName;
716
+ }
717
+
718
+ /** Grantor RFC */
719
+ get grantorRfc(): string | undefined {
720
+ return this.poderFields?.grantorRfc;
721
+ }
722
+
723
+ /** Grantor type */
724
+ get grantorType(): "individual" | "company" | undefined {
725
+ return this.poderFields?.grantorType;
726
+ }
727
+
728
+ /** Attorney-in-fact name (Apoderado - individual receiving power) */
729
+ get attorneyName(): string | undefined {
730
+ return this.poderFields?.attorneyName;
731
+ }
732
+
733
+ /** Attorney RFC */
734
+ get attorneyRfc(): string | undefined {
735
+ return this.poderFields?.attorneyRfc;
736
+ }
737
+
738
+ /** Attorney CURP */
739
+ get attorneyCurp(): string | undefined {
740
+ return this.poderFields?.attorneyCurp;
741
+ }
742
+
743
+ /** Notary number */
744
+ get notaryNumber(): number | undefined {
745
+ return this.poderFields?.notaryNumber;
746
+ }
747
+
748
+ /** Notary name */
749
+ get notaryName(): string | undefined {
750
+ return this.poderFields?.notaryName;
751
+ }
752
+
753
+ /** Notary state/city */
754
+ get notaryLocation(): string | undefined {
755
+ return this.poderFields?.notaryLocation;
756
+ }
757
+
758
+ /** Instrument number (Número de Escritura) */
759
+ get instrumentNumber(): string | undefined {
760
+ return this.poderFields?.instrumentNumber;
761
+ }
762
+
763
+ /** Book number */
764
+ get bookNumber(): string | undefined {
765
+ return this.poderFields?.bookNumber;
766
+ }
767
+
768
+ /** Volume number */
769
+ get volumeNumber(): string | undefined {
770
+ return this.poderFields?.volumeNumber;
771
+ }
772
+
773
+ /** Date power was granted */
774
+ get grantDate(): Date | undefined {
775
+ const val = this.poderFields?.grantDate;
776
+ return val ? new Date(val) : undefined;
777
+ }
778
+
779
+ /** Expiration date (if applicable) */
780
+ get poderExpirationDate(): Date | undefined {
781
+ const val = this.poderFields?.expirationDate;
782
+ return val ? new Date(val) : undefined;
783
+ }
784
+
785
+ /** Whether the power is revocable */
786
+ get isRevocable(): boolean | undefined {
787
+ return this.poderFields?.isRevocable;
788
+ }
789
+
790
+ /** Scope/limitations of the power */
791
+ get scope(): string | undefined {
792
+ return this.poderFields?.scope;
793
+ }
794
+
795
+ /** Specific acts authorized (for special powers) */
796
+ get authorizedActs(): string[] | undefined {
797
+ return this.poderFields?.authorizedActs;
798
+ }
799
+
800
+ /** Registration number (if registered) */
801
+ get registrationNumber(): string | undefined {
802
+ return this.poderFields?.registrationNumber;
803
+ }
804
+
805
+ /** Whether this power has been revoked */
806
+ get isRevoked(): boolean | undefined {
807
+ return this.poderFields?.isRevoked;
808
+ }
809
+
810
+ /** Revocation date */
811
+ get revocationDate(): Date | undefined {
812
+ const val = this.poderFields?.revocationDate;
813
+ return val ? new Date(val) : undefined;
814
+ }
815
+ }
816
+
817
+ // ─────────────────────────────────────────────────────────────────
818
+ // Type Guards
819
+ // ─────────────────────────────────────────────────────────────────
820
+
821
+ /**
822
+ * Check if document is a Mexico document
823
+ */
824
+ export function isMexDocument(doc: Document): doc is MexDocument {
825
+ return doc.isMexico;
826
+ }
827
+
828
+ /**
829
+ * Check if document is INE front
830
+ */
831
+ export function isMexIneFront(doc: Document): doc is MexIneFrontDocument {
832
+ return doc.isMexico && doc.type === MexDocumentType.IneFront;
833
+ }
834
+
835
+ /**
836
+ * Check if document is INE back
837
+ */
838
+ export function isMexIneBack(doc: Document): doc is MexIneBackDocument {
839
+ return doc.isMexico && doc.type === MexDocumentType.IneBack;
840
+ }
841
+
842
+ /**
843
+ * Check if document is a passport
844
+ */
845
+ export function isMexPassport(doc: Document): doc is MexPassportDocument {
846
+ return doc.isMexico && doc.type === MexDocumentType.Passport;
847
+ }
848
+
849
+ /**
850
+ * Check if document is a CURP
851
+ */
852
+ export function isMexCurp(doc: Document): doc is MexCurpDocument {
853
+ return doc.isMexico && doc.type === MexDocumentType.Curp;
854
+ }
855
+
856
+ /**
857
+ * Check if document is an RFC constancia
858
+ */
859
+ export function isMexRfcConstancia(
860
+ doc: Document
861
+ ): doc is MexRfcConstanciaDocument {
862
+ return doc.isMexico && doc.type === MexDocumentType.RfcConstancia;
863
+ }
864
+
865
+ /**
866
+ * Check if document is an address proof
867
+ */
868
+ export function isMexAddressProof(
869
+ doc: Document
870
+ ): doc is MexAddressProofDocument {
871
+ return doc.isMexico && doc.type === MexDocumentType.AddressProof;
872
+ }
873
+
874
+ /**
875
+ * Check if document is an acta constitutiva
876
+ */
877
+ export function isMexActaConstitutiva(
878
+ doc: Document
879
+ ): doc is MexActaConstitutivaDocument {
880
+ return doc.isMexico && doc.type === MexDocumentType.ActaConstitutiva;
881
+ }
882
+
883
+ /**
884
+ * Check if document is a poder notarial
885
+ */
886
+ export function isMexPoderNotarial(
887
+ doc: Document
888
+ ): doc is MexPoderNotarialDocument {
889
+ return doc.isMexico && doc.type === MexDocumentType.PoderNotarial;
890
+ }