@taxdao/fintax-mcp 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 (341) hide show
  1. package/README.md +220 -0
  2. package/dist/app/create-server.d.ts +18 -0
  3. package/dist/app/create-server.js +80 -0
  4. package/dist/app/create-server.js.map +1 -0
  5. package/dist/app/register-tools.d.ts +4 -0
  6. package/dist/app/register-tools.js +18 -0
  7. package/dist/app/register-tools.js.map +1 -0
  8. package/dist/audit/audit-context.d.ts +38 -0
  9. package/dist/audit/audit-context.js +167 -0
  10. package/dist/audit/audit-context.js.map +1 -0
  11. package/dist/audit/audit-sink.d.ts +20 -0
  12. package/dist/audit/audit-sink.js +6 -0
  13. package/dist/audit/audit-sink.js.map +1 -0
  14. package/dist/audit/file-audit-sink.d.ts +6 -0
  15. package/dist/audit/file-audit-sink.js +18 -0
  16. package/dist/audit/file-audit-sink.js.map +1 -0
  17. package/dist/auth/auth-session.d.ts +63 -0
  18. package/dist/auth/auth-session.js +226 -0
  19. package/dist/auth/auth-session.js.map +1 -0
  20. package/dist/auth/credentials.d.ts +6 -0
  21. package/dist/auth/credentials.js +12 -0
  22. package/dist/auth/credentials.js.map +1 -0
  23. package/dist/auth/org-token-provider.d.ts +15 -0
  24. package/dist/auth/org-token-provider.js +62 -0
  25. package/dist/auth/org-token-provider.js.map +1 -0
  26. package/dist/capabilities/capability.d.ts +100 -0
  27. package/dist/capabilities/capability.js +26 -0
  28. package/dist/capabilities/capability.js.map +1 -0
  29. package/dist/capabilities/create-capabilities.d.ts +2 -0
  30. package/dist/capabilities/create-capabilities.js +37 -0
  31. package/dist/capabilities/create-capabilities.js.map +1 -0
  32. package/dist/capabilities/define-capability.d.ts +39 -0
  33. package/dist/capabilities/define-capability.js +64 -0
  34. package/dist/capabilities/define-capability.js.map +1 -0
  35. package/dist/capabilities/definitions/accounting-balances.d.ts +4 -0
  36. package/dist/capabilities/definitions/accounting-balances.js +98 -0
  37. package/dist/capabilities/definitions/accounting-balances.js.map +1 -0
  38. package/dist/capabilities/definitions/accounting-context.d.ts +2 -0
  39. package/dist/capabilities/definitions/accounting-context.js +17 -0
  40. package/dist/capabilities/definitions/accounting-context.js.map +1 -0
  41. package/dist/capabilities/definitions/assets.d.ts +2 -0
  42. package/dist/capabilities/definitions/assets.js +367 -0
  43. package/dist/capabilities/definitions/assets.js.map +1 -0
  44. package/dist/capabilities/definitions/business-documents.d.ts +9 -0
  45. package/dist/capabilities/definitions/business-documents.js +386 -0
  46. package/dist/capabilities/definitions/business-documents.js.map +1 -0
  47. package/dist/capabilities/definitions/dashboard.d.ts +2 -0
  48. package/dist/capabilities/definitions/dashboard.js +153 -0
  49. package/dist/capabilities/definitions/dashboard.js.map +1 -0
  50. package/dist/capabilities/definitions/extended-operation-contracts.d.ts +597 -0
  51. package/dist/capabilities/definitions/extended-operation-contracts.js +1180 -0
  52. package/dist/capabilities/definitions/extended-operation-contracts.js.map +1 -0
  53. package/dist/capabilities/definitions/extended-operations.d.ts +2 -0
  54. package/dist/capabilities/definitions/extended-operations.js +699 -0
  55. package/dist/capabilities/definitions/extended-operations.js.map +1 -0
  56. package/dist/capabilities/definitions/financial-reports.d.ts +2 -0
  57. package/dist/capabilities/definitions/financial-reports.js +100 -0
  58. package/dist/capabilities/definitions/financial-reports.js.map +1 -0
  59. package/dist/capabilities/definitions/fnd-import.d.ts +34 -0
  60. package/dist/capabilities/definitions/fnd-import.js +282 -0
  61. package/dist/capabilities/definitions/fnd-import.js.map +1 -0
  62. package/dist/capabilities/definitions/fund-accounts.d.ts +2 -0
  63. package/dist/capabilities/definitions/fund-accounts.js +188 -0
  64. package/dist/capabilities/definitions/fund-accounts.js.map +1 -0
  65. package/dist/capabilities/definitions/fund-balances.d.ts +2 -0
  66. package/dist/capabilities/definitions/fund-balances.js +84 -0
  67. package/dist/capabilities/definitions/fund-balances.js.map +1 -0
  68. package/dist/capabilities/definitions/journals.d.ts +10 -0
  69. package/dist/capabilities/definitions/journals.js +224 -0
  70. package/dist/capabilities/definitions/journals.js.map +1 -0
  71. package/dist/capabilities/definitions/master-data.d.ts +2 -0
  72. package/dist/capabilities/definitions/master-data.js +451 -0
  73. package/dist/capabilities/definitions/master-data.js.map +1 -0
  74. package/dist/capabilities/definitions/pnl.d.ts +2 -0
  75. package/dist/capabilities/definitions/pnl.js +139 -0
  76. package/dist/capabilities/definitions/pnl.js.map +1 -0
  77. package/dist/capabilities/definitions/reference-data.d.ts +2 -0
  78. package/dist/capabilities/definitions/reference-data.js +169 -0
  79. package/dist/capabilities/definitions/reference-data.js.map +1 -0
  80. package/dist/capabilities/definitions/transaction-drafts.d.ts +2 -0
  81. package/dist/capabilities/definitions/transaction-drafts.js +157 -0
  82. package/dist/capabilities/definitions/transaction-drafts.js.map +1 -0
  83. package/dist/capabilities/definitions/transactions.d.ts +168 -0
  84. package/dist/capabilities/definitions/transactions.js +79 -0
  85. package/dist/capabilities/definitions/transactions.js.map +1 -0
  86. package/dist/capabilities/executor.d.ts +19 -0
  87. package/dist/capabilities/executor.js +134 -0
  88. package/dist/capabilities/executor.js.map +1 -0
  89. package/dist/capabilities/registry.d.ts +7 -0
  90. package/dist/capabilities/registry.js +51 -0
  91. package/dist/capabilities/registry.js.map +1 -0
  92. package/dist/clients/base-client.d.ts +5 -0
  93. package/dist/clients/base-client.js +13 -0
  94. package/dist/clients/base-client.js.map +1 -0
  95. package/dist/clients/http-client.d.ts +29 -0
  96. package/dist/clients/http-client.js +167 -0
  97. package/dist/clients/http-client.js.map +1 -0
  98. package/dist/clients/suite-client.d.ts +5 -0
  99. package/dist/clients/suite-client.js +5 -0
  100. package/dist/clients/suite-client.js.map +1 -0
  101. package/dist/concurrency/lock-manager.d.ts +4 -0
  102. package/dist/concurrency/lock-manager.js +23 -0
  103. package/dist/concurrency/lock-manager.js.map +1 -0
  104. package/dist/config/load-config.d.ts +2 -0
  105. package/dist/config/load-config.js +18 -0
  106. package/dist/config/load-config.js.map +1 -0
  107. package/dist/config/schema.d.ts +24 -0
  108. package/dist/config/schema.js +85 -0
  109. package/dist/config/schema.js.map +1 -0
  110. package/dist/errors/fintax-error.d.ts +24 -0
  111. package/dist/errors/fintax-error.js +21 -0
  112. package/dist/errors/fintax-error.js.map +1 -0
  113. package/dist/errors/normalize-error.d.ts +3 -0
  114. package/dist/errors/normalize-error.js +67 -0
  115. package/dist/errors/normalize-error.js.map +1 -0
  116. package/dist/files/artifact-store.d.ts +17 -0
  117. package/dist/files/artifact-store.js +74 -0
  118. package/dist/files/artifact-store.js.map +1 -0
  119. package/dist/files/input-policy.d.ts +28 -0
  120. package/dist/files/input-policy.js +109 -0
  121. package/dist/files/input-policy.js.map +1 -0
  122. package/dist/files/roots-provider.d.ts +14 -0
  123. package/dist/files/roots-provider.js +47 -0
  124. package/dist/files/roots-provider.js.map +1 -0
  125. package/dist/index.d.ts +2 -0
  126. package/dist/index.js +49 -0
  127. package/dist/index.js.map +1 -0
  128. package/dist/logging/logger.d.ts +3 -0
  129. package/dist/logging/logger.js +13 -0
  130. package/dist/logging/logger.js.map +1 -0
  131. package/dist/policies/idempotency.d.ts +32 -0
  132. package/dist/policies/idempotency.js +155 -0
  133. package/dist/policies/idempotency.js.map +1 -0
  134. package/dist/policies/job-reference.d.ts +16 -0
  135. package/dist/policies/job-reference.js +62 -0
  136. package/dist/policies/job-reference.js.map +1 -0
  137. package/dist/policies/operation-plan.d.ts +27 -0
  138. package/dist/policies/operation-plan.js +99 -0
  139. package/dist/policies/operation-plan.js.map +1 -0
  140. package/dist/policies/redaction.d.ts +2 -0
  141. package/dist/policies/redaction.js +29 -0
  142. package/dist/policies/redaction.js.map +1 -0
  143. package/dist/policies/retry.d.ts +8 -0
  144. package/dist/policies/retry.js +19 -0
  145. package/dist/policies/retry.js.map +1 -0
  146. package/dist/responses/tool-response.d.ts +4 -0
  147. package/dist/responses/tool-response.js +24 -0
  148. package/dist/responses/tool-response.js.map +1 -0
  149. package/dist/schemas/common.d.ts +226 -0
  150. package/dist/schemas/common.js +133 -0
  151. package/dist/schemas/common.js.map +1 -0
  152. package/dist/schemas/domains/accounting-balances.d.ts +497 -0
  153. package/dist/schemas/domains/accounting-balances.js +226 -0
  154. package/dist/schemas/domains/accounting-balances.js.map +1 -0
  155. package/dist/schemas/domains/accounting-context.d.ts +118 -0
  156. package/dist/schemas/domains/accounting-context.js +54 -0
  157. package/dist/schemas/domains/accounting-context.js.map +1 -0
  158. package/dist/schemas/domains/assets.d.ts +2508 -0
  159. package/dist/schemas/domains/assets.js +960 -0
  160. package/dist/schemas/domains/assets.js.map +1 -0
  161. package/dist/schemas/domains/business-documents.d.ts +4406 -0
  162. package/dist/schemas/domains/business-documents.js +1153 -0
  163. package/dist/schemas/domains/business-documents.js.map +1 -0
  164. package/dist/schemas/domains/configuration.d.ts +518 -0
  165. package/dist/schemas/domains/configuration.js +504 -0
  166. package/dist/schemas/domains/configuration.js.map +1 -0
  167. package/dist/schemas/domains/dashboard.d.ts +339 -0
  168. package/dist/schemas/domains/dashboard.js +211 -0
  169. package/dist/schemas/domains/dashboard.js.map +1 -0
  170. package/dist/schemas/domains/extended-operation-results.d.ts +1588 -0
  171. package/dist/schemas/domains/extended-operation-results.js +275 -0
  172. package/dist/schemas/domains/extended-operation-results.js.map +1 -0
  173. package/dist/schemas/domains/extended-operations.d.ts +1061 -0
  174. package/dist/schemas/domains/extended-operations.js +567 -0
  175. package/dist/schemas/domains/extended-operations.js.map +1 -0
  176. package/dist/schemas/domains/extended-query-results.d.ts +1688 -0
  177. package/dist/schemas/domains/extended-query-results.js +337 -0
  178. package/dist/schemas/domains/extended-query-results.js.map +1 -0
  179. package/dist/schemas/domains/financial-reports.d.ts +540 -0
  180. package/dist/schemas/domains/financial-reports.js +206 -0
  181. package/dist/schemas/domains/financial-reports.js.map +1 -0
  182. package/dist/schemas/domains/fnd-import.d.ts +912 -0
  183. package/dist/schemas/domains/fnd-import.js +396 -0
  184. package/dist/schemas/domains/fnd-import.js.map +1 -0
  185. package/dist/schemas/domains/fund-accounts.d.ts +1092 -0
  186. package/dist/schemas/domains/fund-accounts.js +410 -0
  187. package/dist/schemas/domains/fund-accounts.js.map +1 -0
  188. package/dist/schemas/domains/fund-balances.d.ts +476 -0
  189. package/dist/schemas/domains/fund-balances.js +233 -0
  190. package/dist/schemas/domains/fund-balances.js.map +1 -0
  191. package/dist/schemas/domains/journals.d.ts +1619 -0
  192. package/dist/schemas/domains/journals.js +615 -0
  193. package/dist/schemas/domains/journals.js.map +1 -0
  194. package/dist/schemas/domains/master-data.d.ts +2010 -0
  195. package/dist/schemas/domains/master-data.js +799 -0
  196. package/dist/schemas/domains/master-data.js.map +1 -0
  197. package/dist/schemas/domains/pnl.d.ts +837 -0
  198. package/dist/schemas/domains/pnl.js +469 -0
  199. package/dist/schemas/domains/pnl.js.map +1 -0
  200. package/dist/schemas/domains/reference-data.d.ts +227 -0
  201. package/dist/schemas/domains/reference-data.js +144 -0
  202. package/dist/schemas/domains/reference-data.js.map +1 -0
  203. package/dist/schemas/domains/transaction-drafts.d.ts +903 -0
  204. package/dist/schemas/domains/transaction-drafts.js +242 -0
  205. package/dist/schemas/domains/transaction-drafts.js.map +1 -0
  206. package/dist/schemas/domains/transactions.d.ts +910 -0
  207. package/dist/schemas/domains/transactions.js +266 -0
  208. package/dist/schemas/domains/transactions.js.map +1 -0
  209. package/dist/schemas/primitives.d.ts +6 -0
  210. package/dist/schemas/primitives.js +11 -0
  211. package/dist/schemas/primitives.js.map +1 -0
  212. package/dist/schemas/public-input.d.ts +3 -0
  213. package/dist/schemas/public-input.js +524 -0
  214. package/dist/schemas/public-input.js.map +1 -0
  215. package/dist/tools/core-edit/idempotent-write.d.ts +23 -0
  216. package/dist/tools/core-edit/idempotent-write.js +58 -0
  217. package/dist/tools/core-edit/idempotent-write.js.map +1 -0
  218. package/dist/tools/core-edit/save-asset.d.ts +5 -0
  219. package/dist/tools/core-edit/save-asset.js +334 -0
  220. package/dist/tools/core-edit/save-asset.js.map +1 -0
  221. package/dist/tools/core-edit/save-business-document-draft.d.ts +2 -0
  222. package/dist/tools/core-edit/save-business-document-draft.js +128 -0
  223. package/dist/tools/core-edit/save-business-document-draft.js.map +1 -0
  224. package/dist/tools/core-edit/save-fund-account.d.ts +2 -0
  225. package/dist/tools/core-edit/save-fund-account.js +138 -0
  226. package/dist/tools/core-edit/save-fund-account.js.map +1 -0
  227. package/dist/tools/core-edit/save-journal-draft.d.ts +2 -0
  228. package/dist/tools/core-edit/save-journal-draft.js +122 -0
  229. package/dist/tools/core-edit/save-journal-draft.js.map +1 -0
  230. package/dist/tools/core-edit/save-master-data.d.ts +2 -0
  231. package/dist/tools/core-edit/save-master-data.js +153 -0
  232. package/dist/tools/core-edit/save-master-data.js.map +1 -0
  233. package/dist/tools/core-edit/save-transaction-draft.d.ts +2 -0
  234. package/dist/tools/core-edit/save-transaction-draft.js +128 -0
  235. package/dist/tools/core-edit/save-transaction-draft.js.map +1 -0
  236. package/dist/tools/core-read/export-business-documents.d.ts +2 -0
  237. package/dist/tools/core-read/export-business-documents.js +67 -0
  238. package/dist/tools/core-read/export-business-documents.js.map +1 -0
  239. package/dist/tools/core-read/export-journals.d.ts +2 -0
  240. package/dist/tools/core-read/export-journals.js +56 -0
  241. package/dist/tools/core-read/export-journals.js.map +1 -0
  242. package/dist/tools/core-read/export-transactions.d.ts +2 -0
  243. package/dist/tools/core-read/export-transactions.js +67 -0
  244. package/dist/tools/core-read/export-transactions.js.map +1 -0
  245. package/dist/tools/core-read/query-accounting-balances.d.ts +2 -0
  246. package/dist/tools/core-read/query-accounting-balances.js +135 -0
  247. package/dist/tools/core-read/query-accounting-balances.js.map +1 -0
  248. package/dist/tools/core-read/query-accounting-context.d.ts +2 -0
  249. package/dist/tools/core-read/query-accounting-context.js +76 -0
  250. package/dist/tools/core-read/query-accounting-context.js.map +1 -0
  251. package/dist/tools/core-read/query-assets.d.ts +2 -0
  252. package/dist/tools/core-read/query-assets.js +425 -0
  253. package/dist/tools/core-read/query-assets.js.map +1 -0
  254. package/dist/tools/core-read/query-business-documents.d.ts +9 -0
  255. package/dist/tools/core-read/query-business-documents.js +620 -0
  256. package/dist/tools/core-read/query-business-documents.js.map +1 -0
  257. package/dist/tools/core-read/query-dashboard.d.ts +2 -0
  258. package/dist/tools/core-read/query-dashboard.js +144 -0
  259. package/dist/tools/core-read/query-dashboard.js.map +1 -0
  260. package/dist/tools/core-read/query-financial-reports.d.ts +2 -0
  261. package/dist/tools/core-read/query-financial-reports.js +171 -0
  262. package/dist/tools/core-read/query-financial-reports.js.map +1 -0
  263. package/dist/tools/core-read/query-fund-accounts.d.ts +2 -0
  264. package/dist/tools/core-read/query-fund-accounts.js +140 -0
  265. package/dist/tools/core-read/query-fund-accounts.js.map +1 -0
  266. package/dist/tools/core-read/query-fund-balances.d.ts +2 -0
  267. package/dist/tools/core-read/query-fund-balances.js +150 -0
  268. package/dist/tools/core-read/query-fund-balances.js.map +1 -0
  269. package/dist/tools/core-read/query-journals.d.ts +2 -0
  270. package/dist/tools/core-read/query-journals.js +277 -0
  271. package/dist/tools/core-read/query-journals.js.map +1 -0
  272. package/dist/tools/core-read/query-master-data.d.ts +2 -0
  273. package/dist/tools/core-read/query-master-data.js +363 -0
  274. package/dist/tools/core-read/query-master-data.js.map +1 -0
  275. package/dist/tools/core-read/query-pnl.d.ts +2 -0
  276. package/dist/tools/core-read/query-pnl.js +244 -0
  277. package/dist/tools/core-read/query-pnl.js.map +1 -0
  278. package/dist/tools/core-read/query-reference-data.d.ts +2 -0
  279. package/dist/tools/core-read/query-reference-data.js +293 -0
  280. package/dist/tools/core-read/query-reference-data.js.map +1 -0
  281. package/dist/tools/core-read/query-transactions.d.ts +2 -0
  282. package/dist/tools/core-read/query-transactions.js +58 -0
  283. package/dist/tools/core-read/query-transactions.js.map +1 -0
  284. package/dist/tools/create-tools.d.ts +3 -0
  285. package/dist/tools/create-tools.js +88 -0
  286. package/dist/tools/create-tools.js.map +1 -0
  287. package/dist/tools/extended/asset-operation-tools.d.ts +9 -0
  288. package/dist/tools/extended/asset-operation-tools.js +419 -0
  289. package/dist/tools/extended/asset-operation-tools.js.map +1 -0
  290. package/dist/tools/extended/automation-tools.d.ts +7 -0
  291. package/dist/tools/extended/automation-tools.js +333 -0
  292. package/dist/tools/extended/automation-tools.js.map +1 -0
  293. package/dist/tools/extended/configuration-tools.d.ts +14 -0
  294. package/dist/tools/extended/configuration-tools.js +871 -0
  295. package/dist/tools/extended/configuration-tools.js.map +1 -0
  296. package/dist/tools/extended/period-end-tools.d.ts +11 -0
  297. package/dist/tools/extended/period-end-tools.js +480 -0
  298. package/dist/tools/extended/period-end-tools.js.map +1 -0
  299. package/dist/tools/extended/query-output.d.ts +2589 -0
  300. package/dist/tools/extended/query-output.js +610 -0
  301. package/dist/tools/extended/query-output.js.map +1 -0
  302. package/dist/tools/extended/tool-support.d.ts +56 -0
  303. package/dist/tools/extended/tool-support.js +198 -0
  304. package/dist/tools/extended/tool-support.js.map +1 -0
  305. package/dist/tools/extended/workflow-tools.d.ts +10 -0
  306. package/dist/tools/extended/workflow-tools.js +678 -0
  307. package/dist/tools/extended/workflow-tools.js.map +1 -0
  308. package/dist/tools/fnd-import/execute-import.d.ts +2 -0
  309. package/dist/tools/fnd-import/execute-import.js +201 -0
  310. package/dist/tools/fnd-import/execute-import.js.map +1 -0
  311. package/dist/tools/fnd-import/get-import-template.d.ts +2 -0
  312. package/dist/tools/fnd-import/get-import-template.js +66 -0
  313. package/dist/tools/fnd-import/get-import-template.js.map +1 -0
  314. package/dist/tools/fnd-import/get-job-status.d.ts +8 -0
  315. package/dist/tools/fnd-import/get-job-status.js +201 -0
  316. package/dist/tools/fnd-import/get-job-status.js.map +1 -0
  317. package/dist/tools/fnd-import/prepare-import.d.ts +31 -0
  318. package/dist/tools/fnd-import/prepare-import.js +214 -0
  319. package/dist/tools/fnd-import/prepare-import.js.map +1 -0
  320. package/dist/tools/fnd-import/public-import-result.d.ts +18 -0
  321. package/dist/tools/fnd-import/public-import-result.js +35 -0
  322. package/dist/tools/fnd-import/public-import-result.js.map +1 -0
  323. package/dist/tools/tool-definition.d.ts +45 -0
  324. package/dist/tools/tool-definition.js +11 -0
  325. package/dist/tools/tool-definition.js.map +1 -0
  326. package/dist/tools/tool-handler.d.ts +27 -0
  327. package/dist/tools/tool-handler.js +196 -0
  328. package/dist/tools/tool-handler.js.map +1 -0
  329. package/dist/tools/transaction-item.d.ts +225 -0
  330. package/dist/tools/transaction-item.js +109 -0
  331. package/dist/tools/transaction-item.js.map +1 -0
  332. package/dist/transport/draining-transport.d.ts +14 -0
  333. package/dist/transport/draining-transport.js +36 -0
  334. package/dist/transport/draining-transport.js.map +1 -0
  335. package/dist/transport/stdio.d.ts +2 -0
  336. package/dist/transport/stdio.js +5 -0
  337. package/dist/transport/stdio.js.map +1 -0
  338. package/dist/version.d.ts +2 -0
  339. package/dist/version.js +3 -0
  340. package/dist/version.js.map +1 -0
  341. package/package.json +49 -0
@@ -0,0 +1,1619 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const journalEntrySourceSchema: z.ZodEnum<{
3
+ MANUAL: "MANUAL";
4
+ IMPORT: "IMPORT";
5
+ AUTO: "AUTO";
6
+ }>;
7
+ export declare const journalSourceTypeSchema: z.ZodEnum<{
8
+ FA: "FA";
9
+ AP: "AP";
10
+ AR: "AR";
11
+ MANUAL: "MANUAL";
12
+ CRYPTO: "CRYPTO";
13
+ FIAT: "FIAT";
14
+ DERIVATIVE: "DERIVATIVE";
15
+ SECURITY: "SECURITY";
16
+ MIXED: "MIXED";
17
+ COST: "COST";
18
+ ALOC: "ALOC";
19
+ REVALUATION: "REVALUATION";
20
+ }>;
21
+ export declare const journalTypeSchema: z.ZodEnum<{
22
+ ELIMINATION: "ELIMINATION";
23
+ NORMAL: "NORMAL";
24
+ }>;
25
+ export declare const journalApprovalStatusSchema: z.ZodEnum<{
26
+ NONE: "NONE";
27
+ PENDING: "PENDING";
28
+ APPROVED: "APPROVED";
29
+ REJECTED: "REJECTED";
30
+ WITHDRAWN: "WITHDRAWN";
31
+ }>;
32
+ export declare const journalVerificationStatusSchema: z.ZodEnum<{
33
+ D: "D";
34
+ V: "V";
35
+ F: "F";
36
+ }>;
37
+ export declare const journalOrgScopeSchema: z.ZodEnum<{
38
+ SELF: "SELF";
39
+ SUBTREE: "SUBTREE";
40
+ }>;
41
+ export declare const journalCoaAttributeFilterSchema: z.ZodObject<{
42
+ coa_code: z.ZodString;
43
+ attributes: z.ZodRecord<z.ZodEnum<{
44
+ attribute1: "attribute1";
45
+ attribute2: "attribute2";
46
+ attribute3: "attribute3";
47
+ attribute4: "attribute4";
48
+ attribute5: "attribute5";
49
+ attribute6: "attribute6";
50
+ attribute7: "attribute7";
51
+ attribute8: "attribute8";
52
+ attribute9: "attribute9";
53
+ attribute10: "attribute10";
54
+ attribute11: "attribute11";
55
+ attribute12: "attribute12";
56
+ }> & z.core.$partial, z.ZodString>;
57
+ }, z.core.$strict>;
58
+ export declare const journalFiltersSchema: z.ZodObject<{
59
+ keyword: z.ZodOptional<z.ZodString>;
60
+ period_from: z.ZodDefault<z.ZodString>;
61
+ period_to: z.ZodDefault<z.ZodString>;
62
+ journal_number: z.ZodOptional<z.ZodString>;
63
+ ledger_id: z.ZodOptional<z.ZodUUID>;
64
+ entry_source: z.ZodOptional<z.ZodEnum<{
65
+ MANUAL: "MANUAL";
66
+ IMPORT: "IMPORT";
67
+ AUTO: "AUTO";
68
+ }>>;
69
+ source_type: z.ZodOptional<z.ZodEnum<{
70
+ FA: "FA";
71
+ AP: "AP";
72
+ AR: "AR";
73
+ MANUAL: "MANUAL";
74
+ CRYPTO: "CRYPTO";
75
+ FIAT: "FIAT";
76
+ DERIVATIVE: "DERIVATIVE";
77
+ SECURITY: "SECURITY";
78
+ MIXED: "MIXED";
79
+ COST: "COST";
80
+ ALOC: "ALOC";
81
+ REVALUATION: "REVALUATION";
82
+ }>>;
83
+ journal_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
84
+ ELIMINATION: "ELIMINATION";
85
+ NORMAL: "NORMAL";
86
+ }>>>;
87
+ coa_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
88
+ coa_attr_filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
89
+ coa_code: z.ZodString;
90
+ attributes: z.ZodRecord<z.ZodEnum<{
91
+ attribute1: "attribute1";
92
+ attribute2: "attribute2";
93
+ attribute3: "attribute3";
94
+ attribute4: "attribute4";
95
+ attribute5: "attribute5";
96
+ attribute6: "attribute6";
97
+ attribute7: "attribute7";
98
+ attribute8: "attribute8";
99
+ attribute9: "attribute9";
100
+ attribute10: "attribute10";
101
+ attribute11: "attribute11";
102
+ attribute12: "attribute12";
103
+ }> & z.core.$partial, z.ZodString>;
104
+ }, z.core.$strict>>>;
105
+ org_scope: z.ZodDefault<z.ZodEnum<{
106
+ SELF: "SELF";
107
+ SUBTREE: "SUBTREE";
108
+ }>>;
109
+ origin_currency: z.ZodOptional<z.ZodString>;
110
+ description: z.ZodOptional<z.ZodString>;
111
+ biz_date_start: z.ZodOptional<z.ZodISODate>;
112
+ biz_date_end: z.ZodOptional<z.ZodISODate>;
113
+ gl_date_start: z.ZodOptional<z.ZodISODate>;
114
+ gl_date_end: z.ZodOptional<z.ZodISODate>;
115
+ approval_status: z.ZodOptional<z.ZodEnum<{
116
+ NONE: "NONE";
117
+ PENDING: "PENDING";
118
+ APPROVED: "APPROVED";
119
+ REJECTED: "REJECTED";
120
+ WITHDRAWN: "WITHDRAWN";
121
+ }>>;
122
+ }, z.core.$strict>;
123
+ export declare const journalExportFiltersSchema: z.ZodObject<{
124
+ keyword: z.ZodOptional<z.ZodString>;
125
+ period_from: z.ZodDefault<z.ZodString>;
126
+ period_to: z.ZodDefault<z.ZodString>;
127
+ journal_number: z.ZodOptional<z.ZodString>;
128
+ entry_source: z.ZodOptional<z.ZodEnum<{
129
+ MANUAL: "MANUAL";
130
+ IMPORT: "IMPORT";
131
+ AUTO: "AUTO";
132
+ }>>;
133
+ source_type: z.ZodOptional<z.ZodEnum<{
134
+ FA: "FA";
135
+ AP: "AP";
136
+ AR: "AR";
137
+ MANUAL: "MANUAL";
138
+ CRYPTO: "CRYPTO";
139
+ FIAT: "FIAT";
140
+ DERIVATIVE: "DERIVATIVE";
141
+ SECURITY: "SECURITY";
142
+ MIXED: "MIXED";
143
+ COST: "COST";
144
+ ALOC: "ALOC";
145
+ REVALUATION: "REVALUATION";
146
+ }>>;
147
+ journal_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
148
+ ELIMINATION: "ELIMINATION";
149
+ NORMAL: "NORMAL";
150
+ }>>>;
151
+ coa_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
+ coa_attr_filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
+ coa_code: z.ZodString;
154
+ attributes: z.ZodRecord<z.ZodEnum<{
155
+ attribute1: "attribute1";
156
+ attribute2: "attribute2";
157
+ attribute3: "attribute3";
158
+ attribute4: "attribute4";
159
+ attribute5: "attribute5";
160
+ attribute6: "attribute6";
161
+ attribute7: "attribute7";
162
+ attribute8: "attribute8";
163
+ attribute9: "attribute9";
164
+ attribute10: "attribute10";
165
+ attribute11: "attribute11";
166
+ attribute12: "attribute12";
167
+ }> & z.core.$partial, z.ZodString>;
168
+ }, z.core.$strict>>>;
169
+ org_scope: z.ZodDefault<z.ZodEnum<{
170
+ SELF: "SELF";
171
+ SUBTREE: "SUBTREE";
172
+ }>>;
173
+ origin_currency: z.ZodOptional<z.ZodString>;
174
+ description: z.ZodOptional<z.ZodString>;
175
+ biz_date_start: z.ZodOptional<z.ZodISODate>;
176
+ biz_date_end: z.ZodOptional<z.ZodISODate>;
177
+ gl_date_start: z.ZodOptional<z.ZodISODate>;
178
+ gl_date_end: z.ZodOptional<z.ZodISODate>;
179
+ approval_status: z.ZodOptional<z.ZodEnum<{
180
+ NONE: "NONE";
181
+ PENDING: "PENDING";
182
+ APPROVED: "APPROVED";
183
+ REJECTED: "REJECTED";
184
+ WITHDRAWN: "WITHDRAWN";
185
+ }>>;
186
+ ledger_id: z.ZodUUID;
187
+ }, z.core.$strict>;
188
+ export declare const queryJournalsInputSchema: z.ZodUnion<readonly [z.ZodObject<{
189
+ view: z.ZodLiteral<"list">;
190
+ filters: z.ZodDefault<z.ZodObject<{
191
+ keyword: z.ZodOptional<z.ZodString>;
192
+ period_from: z.ZodDefault<z.ZodString>;
193
+ period_to: z.ZodDefault<z.ZodString>;
194
+ journal_number: z.ZodOptional<z.ZodString>;
195
+ ledger_id: z.ZodOptional<z.ZodUUID>;
196
+ entry_source: z.ZodOptional<z.ZodEnum<{
197
+ MANUAL: "MANUAL";
198
+ IMPORT: "IMPORT";
199
+ AUTO: "AUTO";
200
+ }>>;
201
+ source_type: z.ZodOptional<z.ZodEnum<{
202
+ FA: "FA";
203
+ AP: "AP";
204
+ AR: "AR";
205
+ MANUAL: "MANUAL";
206
+ CRYPTO: "CRYPTO";
207
+ FIAT: "FIAT";
208
+ DERIVATIVE: "DERIVATIVE";
209
+ SECURITY: "SECURITY";
210
+ MIXED: "MIXED";
211
+ COST: "COST";
212
+ ALOC: "ALOC";
213
+ REVALUATION: "REVALUATION";
214
+ }>>;
215
+ journal_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
216
+ ELIMINATION: "ELIMINATION";
217
+ NORMAL: "NORMAL";
218
+ }>>>;
219
+ coa_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
220
+ coa_attr_filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
221
+ coa_code: z.ZodString;
222
+ attributes: z.ZodRecord<z.ZodEnum<{
223
+ attribute1: "attribute1";
224
+ attribute2: "attribute2";
225
+ attribute3: "attribute3";
226
+ attribute4: "attribute4";
227
+ attribute5: "attribute5";
228
+ attribute6: "attribute6";
229
+ attribute7: "attribute7";
230
+ attribute8: "attribute8";
231
+ attribute9: "attribute9";
232
+ attribute10: "attribute10";
233
+ attribute11: "attribute11";
234
+ attribute12: "attribute12";
235
+ }> & z.core.$partial, z.ZodString>;
236
+ }, z.core.$strict>>>;
237
+ org_scope: z.ZodDefault<z.ZodEnum<{
238
+ SELF: "SELF";
239
+ SUBTREE: "SUBTREE";
240
+ }>>;
241
+ origin_currency: z.ZodOptional<z.ZodString>;
242
+ description: z.ZodOptional<z.ZodString>;
243
+ biz_date_start: z.ZodOptional<z.ZodISODate>;
244
+ biz_date_end: z.ZodOptional<z.ZodISODate>;
245
+ gl_date_start: z.ZodOptional<z.ZodISODate>;
246
+ gl_date_end: z.ZodOptional<z.ZodISODate>;
247
+ approval_status: z.ZodOptional<z.ZodEnum<{
248
+ NONE: "NONE";
249
+ PENDING: "PENDING";
250
+ APPROVED: "APPROVED";
251
+ REJECTED: "REJECTED";
252
+ WITHDRAWN: "WITHDRAWN";
253
+ }>>;
254
+ }, z.core.$strict>>;
255
+ include: z.ZodDefault<z.ZodArray<z.ZodLiteral<"lines">>>;
256
+ page: z.ZodDefault<z.ZodNumber>;
257
+ page_size: z.ZodDefault<z.ZodNumber>;
258
+ context: z.ZodOptional<z.ZodObject<{
259
+ org_id: z.ZodOptional<z.ZodUUID>;
260
+ }, z.core.$strict>>;
261
+ }, z.core.$strict>, z.ZodObject<{
262
+ view: z.ZodLiteral<"detail">;
263
+ journal_id: z.ZodUUID;
264
+ include: z.ZodDefault<z.ZodArray<z.ZodEnum<{
265
+ lines: "lines";
266
+ source_links: "source_links";
267
+ attachments: "attachments";
268
+ }>>>;
269
+ context: z.ZodOptional<z.ZodObject<{
270
+ org_id: z.ZodOptional<z.ZodUUID>;
271
+ }, z.core.$strict>>;
272
+ }, z.core.$strict>]>;
273
+ export declare const journalAttributeUpstreamSchema: z.ZodObject<{
274
+ slot: z.ZodEnum<{
275
+ attribute1: "attribute1";
276
+ attribute2: "attribute2";
277
+ attribute3: "attribute3";
278
+ attribute4: "attribute4";
279
+ attribute5: "attribute5";
280
+ attribute6: "attribute6";
281
+ attribute7: "attribute7";
282
+ attribute8: "attribute8";
283
+ attribute9: "attribute9";
284
+ attribute10: "attribute10";
285
+ attribute11: "attribute11";
286
+ attribute12: "attribute12";
287
+ }>;
288
+ name: z.ZodNullable<z.ZodString>;
289
+ value: z.ZodString;
290
+ code: z.ZodString;
291
+ }, z.core.$loose>;
292
+ export declare const journalListLineUpstreamSchema: z.ZodObject<{
293
+ id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
294
+ line_no: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
295
+ coa_code: z.ZodString;
296
+ coa_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ base_currency: z.ZodString;
299
+ base_debit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
300
+ base_credit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
301
+ origin_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ origin_debit: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
303
+ origin_credit: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
304
+ attribute1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ attribute2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ attribute3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ attribute4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ attribute5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ attribute6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ attribute7: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ attribute8: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ attribute9: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ attribute10: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ attribute11: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ attribute12: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
+ attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
317
+ slot: z.ZodEnum<{
318
+ attribute1: "attribute1";
319
+ attribute2: "attribute2";
320
+ attribute3: "attribute3";
321
+ attribute4: "attribute4";
322
+ attribute5: "attribute5";
323
+ attribute6: "attribute6";
324
+ attribute7: "attribute7";
325
+ attribute8: "attribute8";
326
+ attribute9: "attribute9";
327
+ attribute10: "attribute10";
328
+ attribute11: "attribute11";
329
+ attribute12: "attribute12";
330
+ }>;
331
+ name: z.ZodNullable<z.ZodString>;
332
+ value: z.ZodString;
333
+ code: z.ZodString;
334
+ }, z.core.$loose>>>;
335
+ }, z.core.$loose>;
336
+ export declare const journalListItemUpstreamSchema: z.ZodObject<{
337
+ id: z.ZodUUID;
338
+ journal_number: z.ZodString;
339
+ period_name: z.ZodString;
340
+ entry_source: z.ZodString;
341
+ source_type: z.ZodString;
342
+ journal_type: z.ZodString;
343
+ biz_date: z.ZodString;
344
+ gl_date: z.ZodString;
345
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ org_id: z.ZodUUID;
347
+ ledger_id: z.ZodUUID;
348
+ org_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
350
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
351
+ id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
352
+ line_no: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
353
+ coa_code: z.ZodString;
354
+ coa_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ base_currency: z.ZodString;
357
+ base_debit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
358
+ base_credit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
359
+ origin_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
+ origin_debit: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
361
+ origin_credit: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
362
+ attribute1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
+ attribute2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ attribute3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
+ attribute4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ attribute5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
+ attribute6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ attribute7: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ attribute8: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ attribute9: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ attribute10: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ attribute11: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ attribute12: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
375
+ slot: z.ZodEnum<{
376
+ attribute1: "attribute1";
377
+ attribute2: "attribute2";
378
+ attribute3: "attribute3";
379
+ attribute4: "attribute4";
380
+ attribute5: "attribute5";
381
+ attribute6: "attribute6";
382
+ attribute7: "attribute7";
383
+ attribute8: "attribute8";
384
+ attribute9: "attribute9";
385
+ attribute10: "attribute10";
386
+ attribute11: "attribute11";
387
+ attribute12: "attribute12";
388
+ }>;
389
+ name: z.ZodNullable<z.ZodString>;
390
+ value: z.ZodString;
391
+ code: z.ZodString;
392
+ }, z.core.$loose>>>;
393
+ }, z.core.$loose>>>;
394
+ attachment_count: z.ZodNumber;
395
+ approval_status: z.ZodString;
396
+ verification_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
+ approved_by: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
398
+ approved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
+ }, z.core.$loose>;
402
+ export declare const journalListUpstreamSchema: z.ZodObject<{
403
+ total: z.ZodNumber;
404
+ page: z.ZodNumber;
405
+ page_size: z.ZodNumber;
406
+ org_scope_narrowed: z.ZodBoolean;
407
+ items: z.ZodArray<z.ZodObject<{
408
+ id: z.ZodUUID;
409
+ journal_number: z.ZodString;
410
+ period_name: z.ZodString;
411
+ entry_source: z.ZodString;
412
+ source_type: z.ZodString;
413
+ journal_type: z.ZodString;
414
+ biz_date: z.ZodString;
415
+ gl_date: z.ZodString;
416
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ org_id: z.ZodUUID;
418
+ ledger_id: z.ZodUUID;
419
+ org_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
420
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
421
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
422
+ id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
423
+ line_no: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
424
+ coa_code: z.ZodString;
425
+ coa_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
426
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
427
+ base_currency: z.ZodString;
428
+ base_debit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
429
+ base_credit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
430
+ origin_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ origin_debit: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
432
+ origin_credit: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
433
+ attribute1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ attribute2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
+ attribute3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
+ attribute4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ attribute5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
+ attribute6: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
+ attribute7: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
+ attribute8: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ attribute9: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
+ attribute10: z.ZodOptional<z.ZodNullable<z.ZodString>>;
443
+ attribute11: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ attribute12: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
446
+ slot: z.ZodEnum<{
447
+ attribute1: "attribute1";
448
+ attribute2: "attribute2";
449
+ attribute3: "attribute3";
450
+ attribute4: "attribute4";
451
+ attribute5: "attribute5";
452
+ attribute6: "attribute6";
453
+ attribute7: "attribute7";
454
+ attribute8: "attribute8";
455
+ attribute9: "attribute9";
456
+ attribute10: "attribute10";
457
+ attribute11: "attribute11";
458
+ attribute12: "attribute12";
459
+ }>;
460
+ name: z.ZodNullable<z.ZodString>;
461
+ value: z.ZodString;
462
+ code: z.ZodString;
463
+ }, z.core.$loose>>>;
464
+ }, z.core.$loose>>>;
465
+ attachment_count: z.ZodNumber;
466
+ approval_status: z.ZodString;
467
+ verification_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ approved_by: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
469
+ approved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ }, z.core.$loose>>;
473
+ }, z.core.$loose>;
474
+ export declare const journalDocumentLineUpstreamSchema: z.ZodObject<{
475
+ id: z.ZodNullable<z.ZodUUID>;
476
+ coa_code: z.ZodString;
477
+ coa_name: z.ZodNullable<z.ZodString>;
478
+ description: z.ZodNullable<z.ZodString>;
479
+ base_currency: z.ZodString;
480
+ base_debit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
481
+ base_credit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
482
+ origin_currency: z.ZodNullable<z.ZodString>;
483
+ origin_debit: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
484
+ origin_credit: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
485
+ attributes: z.ZodArray<z.ZodObject<{
486
+ slot: z.ZodEnum<{
487
+ attribute1: "attribute1";
488
+ attribute2: "attribute2";
489
+ attribute3: "attribute3";
490
+ attribute4: "attribute4";
491
+ attribute5: "attribute5";
492
+ attribute6: "attribute6";
493
+ attribute7: "attribute7";
494
+ attribute8: "attribute8";
495
+ attribute9: "attribute9";
496
+ attribute10: "attribute10";
497
+ attribute11: "attribute11";
498
+ attribute12: "attribute12";
499
+ }>;
500
+ name: z.ZodNullable<z.ZodString>;
501
+ value: z.ZodString;
502
+ code: z.ZodString;
503
+ }, z.core.$loose>>;
504
+ source_id: z.ZodNullable<z.ZodUUID>;
505
+ source_type: z.ZodNullable<z.ZodString>;
506
+ rate_amount: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
507
+ rate_time: z.ZodNullable<z.ZodString>;
508
+ }, z.core.$loose>;
509
+ export declare const journalDocumentUpstreamSchema: z.ZodObject<{
510
+ id: z.ZodUUID;
511
+ journal_number: z.ZodString;
512
+ period_name: z.ZodString;
513
+ entry_source: z.ZodString;
514
+ source_type: z.ZodString;
515
+ journal_type: z.ZodString;
516
+ biz_date: z.ZodString;
517
+ gl_date: z.ZodString;
518
+ description: z.ZodNullable<z.ZodString>;
519
+ org_id: z.ZodUUID;
520
+ ledger_id: z.ZodUUID;
521
+ version: z.ZodNullable<z.ZodNumber>;
522
+ approval_status: z.ZodNullable<z.ZodString>;
523
+ verification_status: z.ZodNullable<z.ZodString>;
524
+ lines: z.ZodArray<z.ZodObject<{
525
+ id: z.ZodNullable<z.ZodUUID>;
526
+ coa_code: z.ZodString;
527
+ coa_name: z.ZodNullable<z.ZodString>;
528
+ description: z.ZodNullable<z.ZodString>;
529
+ base_currency: z.ZodString;
530
+ base_debit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
531
+ base_credit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
532
+ origin_currency: z.ZodNullable<z.ZodString>;
533
+ origin_debit: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
534
+ origin_credit: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
535
+ attributes: z.ZodArray<z.ZodObject<{
536
+ slot: z.ZodEnum<{
537
+ attribute1: "attribute1";
538
+ attribute2: "attribute2";
539
+ attribute3: "attribute3";
540
+ attribute4: "attribute4";
541
+ attribute5: "attribute5";
542
+ attribute6: "attribute6";
543
+ attribute7: "attribute7";
544
+ attribute8: "attribute8";
545
+ attribute9: "attribute9";
546
+ attribute10: "attribute10";
547
+ attribute11: "attribute11";
548
+ attribute12: "attribute12";
549
+ }>;
550
+ name: z.ZodNullable<z.ZodString>;
551
+ value: z.ZodString;
552
+ code: z.ZodString;
553
+ }, z.core.$loose>>;
554
+ source_id: z.ZodNullable<z.ZodUUID>;
555
+ source_type: z.ZodNullable<z.ZodString>;
556
+ rate_amount: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
557
+ rate_time: z.ZodNullable<z.ZodString>;
558
+ }, z.core.$loose>>;
559
+ }, z.core.$loose>;
560
+ export declare const journalDocumentsUpstreamSchema: z.ZodObject<{
561
+ matched_rules: z.ZodArray<z.ZodObject<{
562
+ rule_h_id: z.ZodNullable<z.ZodUUID>;
563
+ rule_code: z.ZodNullable<z.ZodString>;
564
+ rule_name: z.ZodNullable<z.ZodString>;
565
+ is_balanced: z.ZodBoolean;
566
+ unavailable_reason: z.ZodNullable<z.ZodString>;
567
+ journals: z.ZodArray<z.ZodObject<{
568
+ id: z.ZodUUID;
569
+ journal_number: z.ZodString;
570
+ period_name: z.ZodString;
571
+ entry_source: z.ZodString;
572
+ source_type: z.ZodString;
573
+ journal_type: z.ZodString;
574
+ biz_date: z.ZodString;
575
+ gl_date: z.ZodString;
576
+ description: z.ZodNullable<z.ZodString>;
577
+ org_id: z.ZodUUID;
578
+ ledger_id: z.ZodUUID;
579
+ version: z.ZodNullable<z.ZodNumber>;
580
+ approval_status: z.ZodNullable<z.ZodString>;
581
+ verification_status: z.ZodNullable<z.ZodString>;
582
+ lines: z.ZodArray<z.ZodObject<{
583
+ id: z.ZodNullable<z.ZodUUID>;
584
+ coa_code: z.ZodString;
585
+ coa_name: z.ZodNullable<z.ZodString>;
586
+ description: z.ZodNullable<z.ZodString>;
587
+ base_currency: z.ZodString;
588
+ base_debit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
589
+ base_credit: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
590
+ origin_currency: z.ZodNullable<z.ZodString>;
591
+ origin_debit: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
592
+ origin_credit: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
593
+ attributes: z.ZodArray<z.ZodObject<{
594
+ slot: z.ZodEnum<{
595
+ attribute1: "attribute1";
596
+ attribute2: "attribute2";
597
+ attribute3: "attribute3";
598
+ attribute4: "attribute4";
599
+ attribute5: "attribute5";
600
+ attribute6: "attribute6";
601
+ attribute7: "attribute7";
602
+ attribute8: "attribute8";
603
+ attribute9: "attribute9";
604
+ attribute10: "attribute10";
605
+ attribute11: "attribute11";
606
+ attribute12: "attribute12";
607
+ }>;
608
+ name: z.ZodNullable<z.ZodString>;
609
+ value: z.ZodString;
610
+ code: z.ZodString;
611
+ }, z.core.$loose>>;
612
+ source_id: z.ZodNullable<z.ZodUUID>;
613
+ source_type: z.ZodNullable<z.ZodString>;
614
+ rate_amount: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
615
+ rate_time: z.ZodNullable<z.ZodString>;
616
+ }, z.core.$loose>>;
617
+ }, z.core.$loose>>;
618
+ }, z.core.$loose>>;
619
+ recommended_rule_h_id: z.ZodNullable<z.ZodUUID>;
620
+ }, z.core.$loose>;
621
+ export declare const journalSourceLinkUpstreamSchema: z.ZodObject<{
622
+ source_ref_type: z.ZodString;
623
+ source_ref_id: z.ZodUUID;
624
+ source_ref_no: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
+ target_route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
+ }, z.core.$loose>;
627
+ export declare const journalSourceLinksUpstreamSchema: z.ZodObject<{
628
+ items: z.ZodArray<z.ZodObject<{
629
+ source_ref_type: z.ZodString;
630
+ source_ref_id: z.ZodUUID;
631
+ source_ref_no: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
+ target_route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
+ }, z.core.$loose>>;
634
+ }, z.core.$loose>;
635
+ export declare const journalAttachmentUpstreamSchema: z.ZodObject<{
636
+ id: z.ZodUUID;
637
+ file_name: z.ZodString;
638
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
639
+ size_bytes: z.ZodNumber;
640
+ created_by: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
641
+ created_by_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
642
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ }, z.core.$loose>;
644
+ export declare const journalAttachmentsUpstreamSchema: z.ZodObject<{
645
+ items: z.ZodArray<z.ZodObject<{
646
+ id: z.ZodUUID;
647
+ file_name: z.ZodString;
648
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
+ size_bytes: z.ZodNumber;
650
+ created_by: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
651
+ created_by_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
652
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
+ }, z.core.$loose>>;
654
+ mutable: z.ZodBoolean;
655
+ approval_status: z.ZodString;
656
+ }, z.core.$loose>;
657
+ export declare const journalRateLookupInputSchema: z.ZodObject<{
658
+ symbol: z.ZodString;
659
+ quote: z.ZodString;
660
+ at: z.ZodISODateTime;
661
+ }, z.core.$strict>;
662
+ export declare const journalRateLookupUpstreamSchema: z.ZodObject<{
663
+ found: z.ZodBoolean;
664
+ rate: z.ZodNullable<z.ZodString>;
665
+ rate_time: z.ZodNullable<z.ZodString>;
666
+ source: z.ZodNullable<z.ZodString>;
667
+ }, z.core.$loose>;
668
+ export declare const journalLineSchema: z.ZodObject<{
669
+ id: z.ZodNullable<z.ZodUUID>;
670
+ line_no: z.ZodNullable<z.ZodNumber>;
671
+ coa_code: z.ZodString;
672
+ coa_name: z.ZodNullable<z.ZodString>;
673
+ description: z.ZodNullable<z.ZodString>;
674
+ base_currency: z.ZodString;
675
+ base_debit: z.ZodString;
676
+ base_credit: z.ZodString;
677
+ origin_currency: z.ZodNullable<z.ZodString>;
678
+ origin_debit: z.ZodNullable<z.ZodString>;
679
+ origin_credit: z.ZodNullable<z.ZodString>;
680
+ attributes: z.ZodArray<z.ZodObject<{
681
+ slot: z.ZodEnum<{
682
+ attribute1: "attribute1";
683
+ attribute2: "attribute2";
684
+ attribute3: "attribute3";
685
+ attribute4: "attribute4";
686
+ attribute5: "attribute5";
687
+ attribute6: "attribute6";
688
+ attribute7: "attribute7";
689
+ attribute8: "attribute8";
690
+ attribute9: "attribute9";
691
+ attribute10: "attribute10";
692
+ attribute11: "attribute11";
693
+ attribute12: "attribute12";
694
+ }>;
695
+ name: z.ZodNullable<z.ZodString>;
696
+ value: z.ZodString;
697
+ code: z.ZodString;
698
+ }, z.core.$strict>>;
699
+ source_id: z.ZodNullable<z.ZodUUID>;
700
+ source_type: z.ZodNullable<z.ZodString>;
701
+ rate_amount: z.ZodNullable<z.ZodString>;
702
+ rate_time: z.ZodNullable<z.ZodString>;
703
+ }, z.core.$strict>;
704
+ export declare const journalSourceLinkSchema: z.ZodObject<{
705
+ source_ref_type: z.ZodString;
706
+ source_ref_id: z.ZodUUID;
707
+ source_ref_no: z.ZodNullable<z.ZodString>;
708
+ target_route: z.ZodNullable<z.ZodString>;
709
+ }, z.core.$strict>;
710
+ export declare const journalAttachmentSchema: z.ZodObject<{
711
+ id: z.ZodUUID;
712
+ file_name: z.ZodString;
713
+ content_type: z.ZodNullable<z.ZodString>;
714
+ size_bytes: z.ZodNumber;
715
+ created_by: z.ZodNullable<z.ZodUUID>;
716
+ created_by_name: z.ZodNullable<z.ZodString>;
717
+ created_at: z.ZodNullable<z.ZodString>;
718
+ }, z.core.$strict>;
719
+ export declare const journalSchema: z.ZodObject<{
720
+ id: z.ZodUUID;
721
+ journal_number: z.ZodString;
722
+ period_name: z.ZodString;
723
+ entry_source: z.ZodString;
724
+ source_type: z.ZodString;
725
+ journal_type: z.ZodString;
726
+ biz_date: z.ZodString;
727
+ gl_date: z.ZodString;
728
+ description: z.ZodNullable<z.ZodString>;
729
+ org_id: z.ZodUUID;
730
+ ledger_id: z.ZodUUID;
731
+ org_name: z.ZodNullable<z.ZodString>;
732
+ rule_h_id: z.ZodNullable<z.ZodUUID>;
733
+ version: z.ZodNullable<z.ZodNumber>;
734
+ attachment_count: z.ZodNullable<z.ZodNumber>;
735
+ approval_status: z.ZodNullable<z.ZodString>;
736
+ verification_status: z.ZodNullable<z.ZodString>;
737
+ approved_by: z.ZodNullable<z.ZodUUID>;
738
+ approved_at: z.ZodNullable<z.ZodString>;
739
+ created_at: z.ZodNullable<z.ZodString>;
740
+ updated_at: z.ZodNullable<z.ZodString>;
741
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
742
+ id: z.ZodNullable<z.ZodUUID>;
743
+ line_no: z.ZodNullable<z.ZodNumber>;
744
+ coa_code: z.ZodString;
745
+ coa_name: z.ZodNullable<z.ZodString>;
746
+ description: z.ZodNullable<z.ZodString>;
747
+ base_currency: z.ZodString;
748
+ base_debit: z.ZodString;
749
+ base_credit: z.ZodString;
750
+ origin_currency: z.ZodNullable<z.ZodString>;
751
+ origin_debit: z.ZodNullable<z.ZodString>;
752
+ origin_credit: z.ZodNullable<z.ZodString>;
753
+ attributes: z.ZodArray<z.ZodObject<{
754
+ slot: z.ZodEnum<{
755
+ attribute1: "attribute1";
756
+ attribute2: "attribute2";
757
+ attribute3: "attribute3";
758
+ attribute4: "attribute4";
759
+ attribute5: "attribute5";
760
+ attribute6: "attribute6";
761
+ attribute7: "attribute7";
762
+ attribute8: "attribute8";
763
+ attribute9: "attribute9";
764
+ attribute10: "attribute10";
765
+ attribute11: "attribute11";
766
+ attribute12: "attribute12";
767
+ }>;
768
+ name: z.ZodNullable<z.ZodString>;
769
+ value: z.ZodString;
770
+ code: z.ZodString;
771
+ }, z.core.$strict>>;
772
+ source_id: z.ZodNullable<z.ZodUUID>;
773
+ source_type: z.ZodNullable<z.ZodString>;
774
+ rate_amount: z.ZodNullable<z.ZodString>;
775
+ rate_time: z.ZodNullable<z.ZodString>;
776
+ }, z.core.$strict>>>;
777
+ source_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
778
+ source_ref_type: z.ZodString;
779
+ source_ref_id: z.ZodUUID;
780
+ source_ref_no: z.ZodNullable<z.ZodString>;
781
+ target_route: z.ZodNullable<z.ZodString>;
782
+ }, z.core.$strict>>>;
783
+ attachments: z.ZodOptional<z.ZodObject<{
784
+ items: z.ZodArray<z.ZodObject<{
785
+ id: z.ZodUUID;
786
+ file_name: z.ZodString;
787
+ content_type: z.ZodNullable<z.ZodString>;
788
+ size_bytes: z.ZodNumber;
789
+ created_by: z.ZodNullable<z.ZodUUID>;
790
+ created_by_name: z.ZodNullable<z.ZodString>;
791
+ created_at: z.ZodNullable<z.ZodString>;
792
+ }, z.core.$strict>>;
793
+ mutable: z.ZodBoolean;
794
+ approval_status: z.ZodString;
795
+ }, z.core.$strict>>;
796
+ }, z.core.$strict>;
797
+ export declare const queryJournalsOutputSchema: z.ZodObject<{
798
+ warnings: z.ZodArray<z.ZodString>;
799
+ trace_id: z.ZodString;
800
+ source_refs: z.ZodArray<z.ZodObject<{
801
+ service: z.ZodEnum<{
802
+ base: "base";
803
+ suite: "suite";
804
+ mcp: "mcp";
805
+ }>;
806
+ operation: z.ZodString;
807
+ }, z.core.$strict>>;
808
+ page?: never;
809
+ ok: z.ZodLiteral<true>;
810
+ data: z.ZodUnion<readonly [z.ZodObject<{
811
+ view: z.ZodLiteral<"list">;
812
+ org_scope_narrowed: z.ZodBoolean;
813
+ items: z.ZodArray<z.ZodObject<{
814
+ id: z.ZodUUID;
815
+ journal_number: z.ZodString;
816
+ period_name: z.ZodString;
817
+ entry_source: z.ZodString;
818
+ source_type: z.ZodString;
819
+ journal_type: z.ZodString;
820
+ biz_date: z.ZodString;
821
+ gl_date: z.ZodString;
822
+ description: z.ZodNullable<z.ZodString>;
823
+ org_id: z.ZodUUID;
824
+ ledger_id: z.ZodUUID;
825
+ org_name: z.ZodNullable<z.ZodString>;
826
+ rule_h_id: z.ZodNullable<z.ZodUUID>;
827
+ version: z.ZodNullable<z.ZodNumber>;
828
+ attachment_count: z.ZodNullable<z.ZodNumber>;
829
+ approval_status: z.ZodNullable<z.ZodString>;
830
+ verification_status: z.ZodNullable<z.ZodString>;
831
+ approved_by: z.ZodNullable<z.ZodUUID>;
832
+ approved_at: z.ZodNullable<z.ZodString>;
833
+ created_at: z.ZodNullable<z.ZodString>;
834
+ updated_at: z.ZodNullable<z.ZodString>;
835
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
836
+ id: z.ZodNullable<z.ZodUUID>;
837
+ line_no: z.ZodNullable<z.ZodNumber>;
838
+ coa_code: z.ZodString;
839
+ coa_name: z.ZodNullable<z.ZodString>;
840
+ description: z.ZodNullable<z.ZodString>;
841
+ base_currency: z.ZodString;
842
+ base_debit: z.ZodString;
843
+ base_credit: z.ZodString;
844
+ origin_currency: z.ZodNullable<z.ZodString>;
845
+ origin_debit: z.ZodNullable<z.ZodString>;
846
+ origin_credit: z.ZodNullable<z.ZodString>;
847
+ attributes: z.ZodArray<z.ZodObject<{
848
+ slot: z.ZodEnum<{
849
+ attribute1: "attribute1";
850
+ attribute2: "attribute2";
851
+ attribute3: "attribute3";
852
+ attribute4: "attribute4";
853
+ attribute5: "attribute5";
854
+ attribute6: "attribute6";
855
+ attribute7: "attribute7";
856
+ attribute8: "attribute8";
857
+ attribute9: "attribute9";
858
+ attribute10: "attribute10";
859
+ attribute11: "attribute11";
860
+ attribute12: "attribute12";
861
+ }>;
862
+ name: z.ZodNullable<z.ZodString>;
863
+ value: z.ZodString;
864
+ code: z.ZodString;
865
+ }, z.core.$strict>>;
866
+ source_id: z.ZodNullable<z.ZodUUID>;
867
+ source_type: z.ZodNullable<z.ZodString>;
868
+ rate_amount: z.ZodNullable<z.ZodString>;
869
+ rate_time: z.ZodNullable<z.ZodString>;
870
+ }, z.core.$strict>>>;
871
+ source_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
872
+ source_ref_type: z.ZodString;
873
+ source_ref_id: z.ZodUUID;
874
+ source_ref_no: z.ZodNullable<z.ZodString>;
875
+ target_route: z.ZodNullable<z.ZodString>;
876
+ }, z.core.$strict>>>;
877
+ attachments: z.ZodOptional<z.ZodObject<{
878
+ items: z.ZodArray<z.ZodObject<{
879
+ id: z.ZodUUID;
880
+ file_name: z.ZodString;
881
+ content_type: z.ZodNullable<z.ZodString>;
882
+ size_bytes: z.ZodNumber;
883
+ created_by: z.ZodNullable<z.ZodUUID>;
884
+ created_by_name: z.ZodNullable<z.ZodString>;
885
+ created_at: z.ZodNullable<z.ZodString>;
886
+ }, z.core.$strict>>;
887
+ mutable: z.ZodBoolean;
888
+ approval_status: z.ZodString;
889
+ }, z.core.$strict>>;
890
+ }, z.core.$strict>>;
891
+ }, z.core.$strict>, z.ZodObject<{
892
+ view: z.ZodLiteral<"detail">;
893
+ item: z.ZodObject<{
894
+ id: z.ZodUUID;
895
+ journal_number: z.ZodString;
896
+ period_name: z.ZodString;
897
+ entry_source: z.ZodString;
898
+ source_type: z.ZodString;
899
+ journal_type: z.ZodString;
900
+ biz_date: z.ZodString;
901
+ gl_date: z.ZodString;
902
+ description: z.ZodNullable<z.ZodString>;
903
+ org_id: z.ZodUUID;
904
+ ledger_id: z.ZodUUID;
905
+ org_name: z.ZodNullable<z.ZodString>;
906
+ rule_h_id: z.ZodNullable<z.ZodUUID>;
907
+ version: z.ZodNullable<z.ZodNumber>;
908
+ attachment_count: z.ZodNullable<z.ZodNumber>;
909
+ approval_status: z.ZodNullable<z.ZodString>;
910
+ verification_status: z.ZodNullable<z.ZodString>;
911
+ approved_by: z.ZodNullable<z.ZodUUID>;
912
+ approved_at: z.ZodNullable<z.ZodString>;
913
+ created_at: z.ZodNullable<z.ZodString>;
914
+ updated_at: z.ZodNullable<z.ZodString>;
915
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
916
+ id: z.ZodNullable<z.ZodUUID>;
917
+ line_no: z.ZodNullable<z.ZodNumber>;
918
+ coa_code: z.ZodString;
919
+ coa_name: z.ZodNullable<z.ZodString>;
920
+ description: z.ZodNullable<z.ZodString>;
921
+ base_currency: z.ZodString;
922
+ base_debit: z.ZodString;
923
+ base_credit: z.ZodString;
924
+ origin_currency: z.ZodNullable<z.ZodString>;
925
+ origin_debit: z.ZodNullable<z.ZodString>;
926
+ origin_credit: z.ZodNullable<z.ZodString>;
927
+ attributes: z.ZodArray<z.ZodObject<{
928
+ slot: z.ZodEnum<{
929
+ attribute1: "attribute1";
930
+ attribute2: "attribute2";
931
+ attribute3: "attribute3";
932
+ attribute4: "attribute4";
933
+ attribute5: "attribute5";
934
+ attribute6: "attribute6";
935
+ attribute7: "attribute7";
936
+ attribute8: "attribute8";
937
+ attribute9: "attribute9";
938
+ attribute10: "attribute10";
939
+ attribute11: "attribute11";
940
+ attribute12: "attribute12";
941
+ }>;
942
+ name: z.ZodNullable<z.ZodString>;
943
+ value: z.ZodString;
944
+ code: z.ZodString;
945
+ }, z.core.$strict>>;
946
+ source_id: z.ZodNullable<z.ZodUUID>;
947
+ source_type: z.ZodNullable<z.ZodString>;
948
+ rate_amount: z.ZodNullable<z.ZodString>;
949
+ rate_time: z.ZodNullable<z.ZodString>;
950
+ }, z.core.$strict>>>;
951
+ source_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
952
+ source_ref_type: z.ZodString;
953
+ source_ref_id: z.ZodUUID;
954
+ source_ref_no: z.ZodNullable<z.ZodString>;
955
+ target_route: z.ZodNullable<z.ZodString>;
956
+ }, z.core.$strict>>>;
957
+ attachments: z.ZodOptional<z.ZodObject<{
958
+ items: z.ZodArray<z.ZodObject<{
959
+ id: z.ZodUUID;
960
+ file_name: z.ZodString;
961
+ content_type: z.ZodNullable<z.ZodString>;
962
+ size_bytes: z.ZodNumber;
963
+ created_by: z.ZodNullable<z.ZodUUID>;
964
+ created_by_name: z.ZodNullable<z.ZodString>;
965
+ created_at: z.ZodNullable<z.ZodString>;
966
+ }, z.core.$strict>>;
967
+ mutable: z.ZodBoolean;
968
+ approval_status: z.ZodString;
969
+ }, z.core.$strict>>;
970
+ }, z.core.$strict>;
971
+ }, z.core.$strict>]>;
972
+ } | {
973
+ warnings: z.ZodArray<z.ZodString>;
974
+ trace_id: z.ZodString;
975
+ source_refs: z.ZodArray<z.ZodObject<{
976
+ service: z.ZodEnum<{
977
+ base: "base";
978
+ suite: "suite";
979
+ mcp: "mcp";
980
+ }>;
981
+ operation: z.ZodString;
982
+ }, z.core.$strict>>;
983
+ page: z.ZodObject<{
984
+ number: z.ZodNumber;
985
+ size: z.ZodNumber;
986
+ total_items: z.ZodNumber;
987
+ has_more: z.ZodBoolean;
988
+ }, z.core.$strict> | z.ZodOptional<z.ZodObject<{
989
+ number: z.ZodNumber;
990
+ size: z.ZodNumber;
991
+ total_items: z.ZodNumber;
992
+ has_more: z.ZodBoolean;
993
+ }, z.core.$strict>>;
994
+ ok: z.ZodLiteral<true>;
995
+ data: z.ZodUnion<readonly [z.ZodObject<{
996
+ view: z.ZodLiteral<"list">;
997
+ org_scope_narrowed: z.ZodBoolean;
998
+ items: z.ZodArray<z.ZodObject<{
999
+ id: z.ZodUUID;
1000
+ journal_number: z.ZodString;
1001
+ period_name: z.ZodString;
1002
+ entry_source: z.ZodString;
1003
+ source_type: z.ZodString;
1004
+ journal_type: z.ZodString;
1005
+ biz_date: z.ZodString;
1006
+ gl_date: z.ZodString;
1007
+ description: z.ZodNullable<z.ZodString>;
1008
+ org_id: z.ZodUUID;
1009
+ ledger_id: z.ZodUUID;
1010
+ org_name: z.ZodNullable<z.ZodString>;
1011
+ rule_h_id: z.ZodNullable<z.ZodUUID>;
1012
+ version: z.ZodNullable<z.ZodNumber>;
1013
+ attachment_count: z.ZodNullable<z.ZodNumber>;
1014
+ approval_status: z.ZodNullable<z.ZodString>;
1015
+ verification_status: z.ZodNullable<z.ZodString>;
1016
+ approved_by: z.ZodNullable<z.ZodUUID>;
1017
+ approved_at: z.ZodNullable<z.ZodString>;
1018
+ created_at: z.ZodNullable<z.ZodString>;
1019
+ updated_at: z.ZodNullable<z.ZodString>;
1020
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1021
+ id: z.ZodNullable<z.ZodUUID>;
1022
+ line_no: z.ZodNullable<z.ZodNumber>;
1023
+ coa_code: z.ZodString;
1024
+ coa_name: z.ZodNullable<z.ZodString>;
1025
+ description: z.ZodNullable<z.ZodString>;
1026
+ base_currency: z.ZodString;
1027
+ base_debit: z.ZodString;
1028
+ base_credit: z.ZodString;
1029
+ origin_currency: z.ZodNullable<z.ZodString>;
1030
+ origin_debit: z.ZodNullable<z.ZodString>;
1031
+ origin_credit: z.ZodNullable<z.ZodString>;
1032
+ attributes: z.ZodArray<z.ZodObject<{
1033
+ slot: z.ZodEnum<{
1034
+ attribute1: "attribute1";
1035
+ attribute2: "attribute2";
1036
+ attribute3: "attribute3";
1037
+ attribute4: "attribute4";
1038
+ attribute5: "attribute5";
1039
+ attribute6: "attribute6";
1040
+ attribute7: "attribute7";
1041
+ attribute8: "attribute8";
1042
+ attribute9: "attribute9";
1043
+ attribute10: "attribute10";
1044
+ attribute11: "attribute11";
1045
+ attribute12: "attribute12";
1046
+ }>;
1047
+ name: z.ZodNullable<z.ZodString>;
1048
+ value: z.ZodString;
1049
+ code: z.ZodString;
1050
+ }, z.core.$strict>>;
1051
+ source_id: z.ZodNullable<z.ZodUUID>;
1052
+ source_type: z.ZodNullable<z.ZodString>;
1053
+ rate_amount: z.ZodNullable<z.ZodString>;
1054
+ rate_time: z.ZodNullable<z.ZodString>;
1055
+ }, z.core.$strict>>>;
1056
+ source_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1057
+ source_ref_type: z.ZodString;
1058
+ source_ref_id: z.ZodUUID;
1059
+ source_ref_no: z.ZodNullable<z.ZodString>;
1060
+ target_route: z.ZodNullable<z.ZodString>;
1061
+ }, z.core.$strict>>>;
1062
+ attachments: z.ZodOptional<z.ZodObject<{
1063
+ items: z.ZodArray<z.ZodObject<{
1064
+ id: z.ZodUUID;
1065
+ file_name: z.ZodString;
1066
+ content_type: z.ZodNullable<z.ZodString>;
1067
+ size_bytes: z.ZodNumber;
1068
+ created_by: z.ZodNullable<z.ZodUUID>;
1069
+ created_by_name: z.ZodNullable<z.ZodString>;
1070
+ created_at: z.ZodNullable<z.ZodString>;
1071
+ }, z.core.$strict>>;
1072
+ mutable: z.ZodBoolean;
1073
+ approval_status: z.ZodString;
1074
+ }, z.core.$strict>>;
1075
+ }, z.core.$strict>>;
1076
+ }, z.core.$strict>, z.ZodObject<{
1077
+ view: z.ZodLiteral<"detail">;
1078
+ item: z.ZodObject<{
1079
+ id: z.ZodUUID;
1080
+ journal_number: z.ZodString;
1081
+ period_name: z.ZodString;
1082
+ entry_source: z.ZodString;
1083
+ source_type: z.ZodString;
1084
+ journal_type: z.ZodString;
1085
+ biz_date: z.ZodString;
1086
+ gl_date: z.ZodString;
1087
+ description: z.ZodNullable<z.ZodString>;
1088
+ org_id: z.ZodUUID;
1089
+ ledger_id: z.ZodUUID;
1090
+ org_name: z.ZodNullable<z.ZodString>;
1091
+ rule_h_id: z.ZodNullable<z.ZodUUID>;
1092
+ version: z.ZodNullable<z.ZodNumber>;
1093
+ attachment_count: z.ZodNullable<z.ZodNumber>;
1094
+ approval_status: z.ZodNullable<z.ZodString>;
1095
+ verification_status: z.ZodNullable<z.ZodString>;
1096
+ approved_by: z.ZodNullable<z.ZodUUID>;
1097
+ approved_at: z.ZodNullable<z.ZodString>;
1098
+ created_at: z.ZodNullable<z.ZodString>;
1099
+ updated_at: z.ZodNullable<z.ZodString>;
1100
+ lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
1101
+ id: z.ZodNullable<z.ZodUUID>;
1102
+ line_no: z.ZodNullable<z.ZodNumber>;
1103
+ coa_code: z.ZodString;
1104
+ coa_name: z.ZodNullable<z.ZodString>;
1105
+ description: z.ZodNullable<z.ZodString>;
1106
+ base_currency: z.ZodString;
1107
+ base_debit: z.ZodString;
1108
+ base_credit: z.ZodString;
1109
+ origin_currency: z.ZodNullable<z.ZodString>;
1110
+ origin_debit: z.ZodNullable<z.ZodString>;
1111
+ origin_credit: z.ZodNullable<z.ZodString>;
1112
+ attributes: z.ZodArray<z.ZodObject<{
1113
+ slot: z.ZodEnum<{
1114
+ attribute1: "attribute1";
1115
+ attribute2: "attribute2";
1116
+ attribute3: "attribute3";
1117
+ attribute4: "attribute4";
1118
+ attribute5: "attribute5";
1119
+ attribute6: "attribute6";
1120
+ attribute7: "attribute7";
1121
+ attribute8: "attribute8";
1122
+ attribute9: "attribute9";
1123
+ attribute10: "attribute10";
1124
+ attribute11: "attribute11";
1125
+ attribute12: "attribute12";
1126
+ }>;
1127
+ name: z.ZodNullable<z.ZodString>;
1128
+ value: z.ZodString;
1129
+ code: z.ZodString;
1130
+ }, z.core.$strict>>;
1131
+ source_id: z.ZodNullable<z.ZodUUID>;
1132
+ source_type: z.ZodNullable<z.ZodString>;
1133
+ rate_amount: z.ZodNullable<z.ZodString>;
1134
+ rate_time: z.ZodNullable<z.ZodString>;
1135
+ }, z.core.$strict>>>;
1136
+ source_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1137
+ source_ref_type: z.ZodString;
1138
+ source_ref_id: z.ZodUUID;
1139
+ source_ref_no: z.ZodNullable<z.ZodString>;
1140
+ target_route: z.ZodNullable<z.ZodString>;
1141
+ }, z.core.$strict>>>;
1142
+ attachments: z.ZodOptional<z.ZodObject<{
1143
+ items: z.ZodArray<z.ZodObject<{
1144
+ id: z.ZodUUID;
1145
+ file_name: z.ZodString;
1146
+ content_type: z.ZodNullable<z.ZodString>;
1147
+ size_bytes: z.ZodNumber;
1148
+ created_by: z.ZodNullable<z.ZodUUID>;
1149
+ created_by_name: z.ZodNullable<z.ZodString>;
1150
+ created_at: z.ZodNullable<z.ZodString>;
1151
+ }, z.core.$strict>>;
1152
+ mutable: z.ZodBoolean;
1153
+ approval_status: z.ZodString;
1154
+ }, z.core.$strict>>;
1155
+ }, z.core.$strict>;
1156
+ }, z.core.$strict>]>;
1157
+ }, z.core.$strict>;
1158
+ export declare const journalExportFormatSchema: z.ZodEnum<{
1159
+ xlsx: "xlsx";
1160
+ csv: "csv";
1161
+ }>;
1162
+ export declare const exportJournalsInputSchema: z.ZodObject<{
1163
+ filters: z.ZodObject<{
1164
+ keyword: z.ZodOptional<z.ZodString>;
1165
+ period_from: z.ZodDefault<z.ZodString>;
1166
+ period_to: z.ZodDefault<z.ZodString>;
1167
+ journal_number: z.ZodOptional<z.ZodString>;
1168
+ entry_source: z.ZodOptional<z.ZodEnum<{
1169
+ MANUAL: "MANUAL";
1170
+ IMPORT: "IMPORT";
1171
+ AUTO: "AUTO";
1172
+ }>>;
1173
+ source_type: z.ZodOptional<z.ZodEnum<{
1174
+ FA: "FA";
1175
+ AP: "AP";
1176
+ AR: "AR";
1177
+ MANUAL: "MANUAL";
1178
+ CRYPTO: "CRYPTO";
1179
+ FIAT: "FIAT";
1180
+ DERIVATIVE: "DERIVATIVE";
1181
+ SECURITY: "SECURITY";
1182
+ MIXED: "MIXED";
1183
+ COST: "COST";
1184
+ ALOC: "ALOC";
1185
+ REVALUATION: "REVALUATION";
1186
+ }>>;
1187
+ journal_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1188
+ ELIMINATION: "ELIMINATION";
1189
+ NORMAL: "NORMAL";
1190
+ }>>>;
1191
+ coa_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1192
+ coa_attr_filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1193
+ coa_code: z.ZodString;
1194
+ attributes: z.ZodRecord<z.ZodEnum<{
1195
+ attribute1: "attribute1";
1196
+ attribute2: "attribute2";
1197
+ attribute3: "attribute3";
1198
+ attribute4: "attribute4";
1199
+ attribute5: "attribute5";
1200
+ attribute6: "attribute6";
1201
+ attribute7: "attribute7";
1202
+ attribute8: "attribute8";
1203
+ attribute9: "attribute9";
1204
+ attribute10: "attribute10";
1205
+ attribute11: "attribute11";
1206
+ attribute12: "attribute12";
1207
+ }> & z.core.$partial, z.ZodString>;
1208
+ }, z.core.$strict>>>;
1209
+ org_scope: z.ZodDefault<z.ZodEnum<{
1210
+ SELF: "SELF";
1211
+ SUBTREE: "SUBTREE";
1212
+ }>>;
1213
+ origin_currency: z.ZodOptional<z.ZodString>;
1214
+ description: z.ZodOptional<z.ZodString>;
1215
+ biz_date_start: z.ZodOptional<z.ZodISODate>;
1216
+ biz_date_end: z.ZodOptional<z.ZodISODate>;
1217
+ gl_date_start: z.ZodOptional<z.ZodISODate>;
1218
+ gl_date_end: z.ZodOptional<z.ZodISODate>;
1219
+ approval_status: z.ZodOptional<z.ZodEnum<{
1220
+ NONE: "NONE";
1221
+ PENDING: "PENDING";
1222
+ APPROVED: "APPROVED";
1223
+ REJECTED: "REJECTED";
1224
+ WITHDRAWN: "WITHDRAWN";
1225
+ }>>;
1226
+ ledger_id: z.ZodUUID;
1227
+ }, z.core.$strict>;
1228
+ format: z.ZodDefault<z.ZodEnum<{
1229
+ xlsx: "xlsx";
1230
+ csv: "csv";
1231
+ }>>;
1232
+ context: z.ZodOptional<z.ZodObject<{
1233
+ org_id: z.ZodOptional<z.ZodUUID>;
1234
+ }, z.core.$strict>>;
1235
+ }, z.core.$strict>;
1236
+ export declare const exportJournalsOutputSchema: z.ZodObject<{
1237
+ warnings: z.ZodArray<z.ZodString>;
1238
+ trace_id: z.ZodString;
1239
+ source_refs: z.ZodArray<z.ZodObject<{
1240
+ service: z.ZodEnum<{
1241
+ base: "base";
1242
+ suite: "suite";
1243
+ mcp: "mcp";
1244
+ }>;
1245
+ operation: z.ZodString;
1246
+ }, z.core.$strict>>;
1247
+ page?: never;
1248
+ ok: z.ZodLiteral<true>;
1249
+ data: z.ZodObject<{
1250
+ format: z.ZodEnum<{
1251
+ xlsx: "xlsx";
1252
+ csv: "csv";
1253
+ }>;
1254
+ artifact: z.ZodObject<{
1255
+ file_ref: z.ZodObject<{
1256
+ kind: z.ZodLiteral<"artifact">;
1257
+ value: z.ZodUUID;
1258
+ }, z.core.$strict>;
1259
+ file_name: z.ZodString;
1260
+ media_type: z.ZodString;
1261
+ size_bytes: z.ZodNumber;
1262
+ sha256: z.ZodString;
1263
+ expires_at: z.ZodISODateTime;
1264
+ }, z.core.$strict>;
1265
+ }, z.core.$strict>;
1266
+ } | {
1267
+ warnings: z.ZodArray<z.ZodString>;
1268
+ trace_id: z.ZodString;
1269
+ source_refs: z.ZodArray<z.ZodObject<{
1270
+ service: z.ZodEnum<{
1271
+ base: "base";
1272
+ suite: "suite";
1273
+ mcp: "mcp";
1274
+ }>;
1275
+ operation: z.ZodString;
1276
+ }, z.core.$strict>>;
1277
+ page: z.ZodObject<{
1278
+ number: z.ZodNumber;
1279
+ size: z.ZodNumber;
1280
+ total_items: z.ZodNumber;
1281
+ has_more: z.ZodBoolean;
1282
+ }, z.core.$strict> | z.ZodOptional<z.ZodObject<{
1283
+ number: z.ZodNumber;
1284
+ size: z.ZodNumber;
1285
+ total_items: z.ZodNumber;
1286
+ has_more: z.ZodBoolean;
1287
+ }, z.core.$strict>>;
1288
+ ok: z.ZodLiteral<true>;
1289
+ data: z.ZodObject<{
1290
+ format: z.ZodEnum<{
1291
+ xlsx: "xlsx";
1292
+ csv: "csv";
1293
+ }>;
1294
+ artifact: z.ZodObject<{
1295
+ file_ref: z.ZodObject<{
1296
+ kind: z.ZodLiteral<"artifact">;
1297
+ value: z.ZodUUID;
1298
+ }, z.core.$strict>;
1299
+ file_name: z.ZodString;
1300
+ media_type: z.ZodString;
1301
+ size_bytes: z.ZodNumber;
1302
+ sha256: z.ZodString;
1303
+ expires_at: z.ZodISODateTime;
1304
+ }, z.core.$strict>;
1305
+ }, z.core.$strict>;
1306
+ }, z.core.$strict>;
1307
+ export declare const journalDraftLineInputSchema: z.ZodObject<{
1308
+ id: z.ZodOptional<z.ZodUUID>;
1309
+ coa_code: z.ZodString;
1310
+ description: z.ZodOptional<z.ZodString>;
1311
+ base_currency: z.ZodString;
1312
+ base_debit: z.ZodString;
1313
+ base_credit: z.ZodString;
1314
+ origin_currency: z.ZodOptional<z.ZodString>;
1315
+ origin_debit: z.ZodOptional<z.ZodString>;
1316
+ origin_credit: z.ZodOptional<z.ZodString>;
1317
+ attributes: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
1318
+ source_id: z.ZodOptional<z.ZodUUID>;
1319
+ source_type: z.ZodOptional<z.ZodString>;
1320
+ rate_amount: z.ZodOptional<z.ZodString>;
1321
+ rate_time: z.ZodOptional<z.ZodISODateTime>;
1322
+ }, z.core.$strict>;
1323
+ export declare const journalDraftValuesSchema: z.ZodObject<{
1324
+ period_name: z.ZodString;
1325
+ ledger_id: z.ZodUUID;
1326
+ source_type: z.ZodOptional<z.ZodEnum<{
1327
+ FA: "FA";
1328
+ AP: "AP";
1329
+ AR: "AR";
1330
+ MANUAL: "MANUAL";
1331
+ CRYPTO: "CRYPTO";
1332
+ FIAT: "FIAT";
1333
+ DERIVATIVE: "DERIVATIVE";
1334
+ SECURITY: "SECURITY";
1335
+ MIXED: "MIXED";
1336
+ COST: "COST";
1337
+ ALOC: "ALOC";
1338
+ REVALUATION: "REVALUATION";
1339
+ }>>;
1340
+ journal_type: z.ZodDefault<z.ZodEnum<{
1341
+ ELIMINATION: "ELIMINATION";
1342
+ NORMAL: "NORMAL";
1343
+ }>>;
1344
+ biz_date: z.ZodOptional<z.ZodISODate>;
1345
+ gl_date: z.ZodOptional<z.ZodISODate>;
1346
+ description: z.ZodOptional<z.ZodString>;
1347
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
1348
+ id: z.ZodOptional<z.ZodUUID>;
1349
+ coa_code: z.ZodString;
1350
+ description: z.ZodOptional<z.ZodString>;
1351
+ base_currency: z.ZodString;
1352
+ base_debit: z.ZodString;
1353
+ base_credit: z.ZodString;
1354
+ origin_currency: z.ZodOptional<z.ZodString>;
1355
+ origin_debit: z.ZodOptional<z.ZodString>;
1356
+ origin_credit: z.ZodOptional<z.ZodString>;
1357
+ attributes: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
1358
+ source_id: z.ZodOptional<z.ZodUUID>;
1359
+ source_type: z.ZodOptional<z.ZodString>;
1360
+ rate_amount: z.ZodOptional<z.ZodString>;
1361
+ rate_time: z.ZodOptional<z.ZodISODateTime>;
1362
+ }, z.core.$strict>>>;
1363
+ }, z.core.$strict>;
1364
+ export declare const journalCreateValuesSchema: z.ZodObject<{
1365
+ period_name: z.ZodString;
1366
+ ledger_id: z.ZodUUID;
1367
+ source_type: z.ZodOptional<z.ZodEnum<{
1368
+ FA: "FA";
1369
+ AP: "AP";
1370
+ AR: "AR";
1371
+ MANUAL: "MANUAL";
1372
+ CRYPTO: "CRYPTO";
1373
+ FIAT: "FIAT";
1374
+ DERIVATIVE: "DERIVATIVE";
1375
+ SECURITY: "SECURITY";
1376
+ MIXED: "MIXED";
1377
+ COST: "COST";
1378
+ ALOC: "ALOC";
1379
+ REVALUATION: "REVALUATION";
1380
+ }>>;
1381
+ journal_type: z.ZodDefault<z.ZodEnum<{
1382
+ ELIMINATION: "ELIMINATION";
1383
+ NORMAL: "NORMAL";
1384
+ }>>;
1385
+ biz_date: z.ZodOptional<z.ZodISODate>;
1386
+ gl_date: z.ZodOptional<z.ZodISODate>;
1387
+ description: z.ZodOptional<z.ZodString>;
1388
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
1389
+ id: z.ZodOptional<z.ZodUUID>;
1390
+ coa_code: z.ZodString;
1391
+ description: z.ZodOptional<z.ZodString>;
1392
+ base_currency: z.ZodString;
1393
+ base_debit: z.ZodString;
1394
+ base_credit: z.ZodString;
1395
+ origin_currency: z.ZodOptional<z.ZodString>;
1396
+ origin_debit: z.ZodOptional<z.ZodString>;
1397
+ origin_credit: z.ZodOptional<z.ZodString>;
1398
+ attributes: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
1399
+ source_id: z.ZodOptional<z.ZodUUID>;
1400
+ source_type: z.ZodOptional<z.ZodString>;
1401
+ rate_amount: z.ZodOptional<z.ZodString>;
1402
+ rate_time: z.ZodOptional<z.ZodISODateTime>;
1403
+ }, z.core.$strict>>>;
1404
+ attachment_file_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1405
+ }, z.core.$strict>;
1406
+ export declare const saveJournalDraftInputSchema: z.ZodObject<{
1407
+ context: z.ZodObject<{
1408
+ org_id: z.ZodUUID;
1409
+ }, z.core.$strict>;
1410
+ idempotency_key: z.ZodUUID;
1411
+ mutation: z.ZodDiscriminatedUnion<[z.ZodObject<{
1412
+ operation: z.ZodLiteral<"create">;
1413
+ values: z.ZodObject<{
1414
+ period_name: z.ZodString;
1415
+ ledger_id: z.ZodUUID;
1416
+ source_type: z.ZodOptional<z.ZodEnum<{
1417
+ FA: "FA";
1418
+ AP: "AP";
1419
+ AR: "AR";
1420
+ MANUAL: "MANUAL";
1421
+ CRYPTO: "CRYPTO";
1422
+ FIAT: "FIAT";
1423
+ DERIVATIVE: "DERIVATIVE";
1424
+ SECURITY: "SECURITY";
1425
+ MIXED: "MIXED";
1426
+ COST: "COST";
1427
+ ALOC: "ALOC";
1428
+ REVALUATION: "REVALUATION";
1429
+ }>>;
1430
+ journal_type: z.ZodDefault<z.ZodEnum<{
1431
+ ELIMINATION: "ELIMINATION";
1432
+ NORMAL: "NORMAL";
1433
+ }>>;
1434
+ biz_date: z.ZodOptional<z.ZodISODate>;
1435
+ gl_date: z.ZodOptional<z.ZodISODate>;
1436
+ description: z.ZodOptional<z.ZodString>;
1437
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
1438
+ id: z.ZodOptional<z.ZodUUID>;
1439
+ coa_code: z.ZodString;
1440
+ description: z.ZodOptional<z.ZodString>;
1441
+ base_currency: z.ZodString;
1442
+ base_debit: z.ZodString;
1443
+ base_credit: z.ZodString;
1444
+ origin_currency: z.ZodOptional<z.ZodString>;
1445
+ origin_debit: z.ZodOptional<z.ZodString>;
1446
+ origin_credit: z.ZodOptional<z.ZodString>;
1447
+ attributes: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
1448
+ source_id: z.ZodOptional<z.ZodUUID>;
1449
+ source_type: z.ZodOptional<z.ZodString>;
1450
+ rate_amount: z.ZodOptional<z.ZodString>;
1451
+ rate_time: z.ZodOptional<z.ZodISODateTime>;
1452
+ }, z.core.$strict>>>;
1453
+ attachment_file_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1454
+ }, z.core.$strict>;
1455
+ }, z.core.$strict>, z.ZodObject<{
1456
+ operation: z.ZodLiteral<"update">;
1457
+ journal_id: z.ZodUUID;
1458
+ version: z.ZodNumber;
1459
+ values: z.ZodObject<{
1460
+ period_name: z.ZodString;
1461
+ ledger_id: z.ZodUUID;
1462
+ source_type: z.ZodOptional<z.ZodEnum<{
1463
+ FA: "FA";
1464
+ AP: "AP";
1465
+ AR: "AR";
1466
+ MANUAL: "MANUAL";
1467
+ CRYPTO: "CRYPTO";
1468
+ FIAT: "FIAT";
1469
+ DERIVATIVE: "DERIVATIVE";
1470
+ SECURITY: "SECURITY";
1471
+ MIXED: "MIXED";
1472
+ COST: "COST";
1473
+ ALOC: "ALOC";
1474
+ REVALUATION: "REVALUATION";
1475
+ }>>;
1476
+ journal_type: z.ZodDefault<z.ZodEnum<{
1477
+ ELIMINATION: "ELIMINATION";
1478
+ NORMAL: "NORMAL";
1479
+ }>>;
1480
+ biz_date: z.ZodOptional<z.ZodISODate>;
1481
+ gl_date: z.ZodOptional<z.ZodISODate>;
1482
+ description: z.ZodOptional<z.ZodString>;
1483
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
1484
+ id: z.ZodOptional<z.ZodUUID>;
1485
+ coa_code: z.ZodString;
1486
+ description: z.ZodOptional<z.ZodString>;
1487
+ base_currency: z.ZodString;
1488
+ base_debit: z.ZodString;
1489
+ base_credit: z.ZodString;
1490
+ origin_currency: z.ZodOptional<z.ZodString>;
1491
+ origin_debit: z.ZodOptional<z.ZodString>;
1492
+ origin_credit: z.ZodOptional<z.ZodString>;
1493
+ attributes: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
1494
+ source_id: z.ZodOptional<z.ZodUUID>;
1495
+ source_type: z.ZodOptional<z.ZodString>;
1496
+ rate_amount: z.ZodOptional<z.ZodString>;
1497
+ rate_time: z.ZodOptional<z.ZodISODateTime>;
1498
+ }, z.core.$strict>>>;
1499
+ }, z.core.$strict>;
1500
+ }, z.core.$strict>], "operation">;
1501
+ }, z.core.$strict>;
1502
+ export declare const saveJournalDraftPublicInputSchema: z.ZodObject<{
1503
+ context: z.ZodObject<{
1504
+ org_id: z.ZodUUID;
1505
+ }, z.core.$strict>;
1506
+ idempotency_key: z.ZodUUID;
1507
+ mutation: z.ZodObject<{
1508
+ operation: z.ZodEnum<{
1509
+ update: "update";
1510
+ create: "create";
1511
+ }>;
1512
+ journal_id: z.ZodOptional<z.ZodUUID>;
1513
+ version: z.ZodOptional<z.ZodNumber>;
1514
+ values: z.ZodObject<{
1515
+ period_name: z.ZodString;
1516
+ ledger_id: z.ZodUUID;
1517
+ source_type: z.ZodOptional<z.ZodEnum<{
1518
+ FA: "FA";
1519
+ AP: "AP";
1520
+ AR: "AR";
1521
+ MANUAL: "MANUAL";
1522
+ CRYPTO: "CRYPTO";
1523
+ FIAT: "FIAT";
1524
+ DERIVATIVE: "DERIVATIVE";
1525
+ SECURITY: "SECURITY";
1526
+ MIXED: "MIXED";
1527
+ COST: "COST";
1528
+ ALOC: "ALOC";
1529
+ REVALUATION: "REVALUATION";
1530
+ }>>;
1531
+ journal_type: z.ZodDefault<z.ZodEnum<{
1532
+ ELIMINATION: "ELIMINATION";
1533
+ NORMAL: "NORMAL";
1534
+ }>>;
1535
+ biz_date: z.ZodOptional<z.ZodISODate>;
1536
+ gl_date: z.ZodOptional<z.ZodISODate>;
1537
+ description: z.ZodOptional<z.ZodString>;
1538
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
1539
+ id: z.ZodOptional<z.ZodUUID>;
1540
+ coa_code: z.ZodString;
1541
+ description: z.ZodOptional<z.ZodString>;
1542
+ base_currency: z.ZodString;
1543
+ base_debit: z.ZodString;
1544
+ base_credit: z.ZodString;
1545
+ origin_currency: z.ZodOptional<z.ZodString>;
1546
+ origin_debit: z.ZodOptional<z.ZodString>;
1547
+ origin_credit: z.ZodOptional<z.ZodString>;
1548
+ attributes: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>>>;
1549
+ source_id: z.ZodOptional<z.ZodUUID>;
1550
+ source_type: z.ZodOptional<z.ZodString>;
1551
+ rate_amount: z.ZodOptional<z.ZodString>;
1552
+ rate_time: z.ZodOptional<z.ZodISODateTime>;
1553
+ }, z.core.$strict>>>;
1554
+ attachment_file_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1555
+ }, z.core.$strict>;
1556
+ }, z.core.$strict>;
1557
+ }, z.core.$strict>;
1558
+ export declare const saveJournalDraftOutputSchema: z.ZodObject<{
1559
+ warnings: z.ZodArray<z.ZodString>;
1560
+ trace_id: z.ZodString;
1561
+ source_refs: z.ZodArray<z.ZodObject<{
1562
+ service: z.ZodEnum<{
1563
+ base: "base";
1564
+ suite: "suite";
1565
+ mcp: "mcp";
1566
+ }>;
1567
+ operation: z.ZodString;
1568
+ }, z.core.$strict>>;
1569
+ page?: never;
1570
+ ok: z.ZodLiteral<true>;
1571
+ data: z.ZodObject<{
1572
+ operation: z.ZodEnum<{
1573
+ created: "created";
1574
+ updated: "updated";
1575
+ }>;
1576
+ journal: z.ZodObject<{
1577
+ id: z.ZodUUID;
1578
+ journal_number: z.ZodString;
1579
+ journal_type: z.ZodString;
1580
+ approval_status: z.ZodString;
1581
+ }, z.core.$strict>;
1582
+ }, z.core.$strict>;
1583
+ } | {
1584
+ warnings: z.ZodArray<z.ZodString>;
1585
+ trace_id: z.ZodString;
1586
+ source_refs: z.ZodArray<z.ZodObject<{
1587
+ service: z.ZodEnum<{
1588
+ base: "base";
1589
+ suite: "suite";
1590
+ mcp: "mcp";
1591
+ }>;
1592
+ operation: z.ZodString;
1593
+ }, z.core.$strict>>;
1594
+ page: z.ZodObject<{
1595
+ number: z.ZodNumber;
1596
+ size: z.ZodNumber;
1597
+ total_items: z.ZodNumber;
1598
+ has_more: z.ZodBoolean;
1599
+ }, z.core.$strict> | z.ZodOptional<z.ZodObject<{
1600
+ number: z.ZodNumber;
1601
+ size: z.ZodNumber;
1602
+ total_items: z.ZodNumber;
1603
+ has_more: z.ZodBoolean;
1604
+ }, z.core.$strict>>;
1605
+ ok: z.ZodLiteral<true>;
1606
+ data: z.ZodObject<{
1607
+ operation: z.ZodEnum<{
1608
+ created: "created";
1609
+ updated: "updated";
1610
+ }>;
1611
+ journal: z.ZodObject<{
1612
+ id: z.ZodUUID;
1613
+ journal_number: z.ZodString;
1614
+ journal_type: z.ZodString;
1615
+ approval_status: z.ZodString;
1616
+ }, z.core.$strict>;
1617
+ }, z.core.$strict>;
1618
+ }, z.core.$strict>;
1619
+ export type SaveJournalDraftInput = z.infer<typeof saveJournalDraftInputSchema>;