@spaceinvoices/js-sdk 2.3.2 → 2.3.4

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 (2667) hide show
  1. package/README.md +7 -1
  2. package/dist/client-headers.d.cts +3 -0
  3. package/dist/client-headers.d.ts +3 -0
  4. package/dist/client-headers.d.ts.map +1 -0
  5. package/dist/generated/account-webhooks/account-webhooks.d.cts +313 -0
  6. package/dist/generated/account-webhooks/account-webhooks.d.ts +313 -0
  7. package/dist/generated/account-webhooks/account-webhooks.d.ts.map +1 -0
  8. package/dist/generated/activities/activities.d.cts +2 -2
  9. package/dist/generated/activities/activities.d.ts +2 -2
  10. package/dist/generated/activities/activities.d.ts.map +1 -1
  11. package/dist/generated/advance-invoices/advance-invoices.d.cts +5 -3
  12. package/dist/generated/advance-invoices/advance-invoices.d.ts +5 -3
  13. package/dist/generated/advance-invoices/advance-invoices.d.ts.map +1 -1
  14. package/dist/generated/company-registry/company-registry.d.cts +2 -2
  15. package/dist/generated/company-registry/company-registry.d.ts +2 -2
  16. package/dist/generated/company-registry/company-registry.d.ts.map +1 -1
  17. package/dist/generated/credit-notes/credit-notes.d.cts +5 -3
  18. package/dist/generated/credit-notes/credit-notes.d.ts +5 -3
  19. package/dist/generated/credit-notes/credit-notes.d.ts.map +1 -1
  20. package/dist/generated/customers/customers.d.cts +12 -4
  21. package/dist/generated/customers/customers.d.ts +12 -4
  22. package/dist/generated/customers/customers.d.ts.map +1 -1
  23. package/dist/generated/delivery-notes/delivery-notes.d.cts +5 -3
  24. package/dist/generated/delivery-notes/delivery-notes.d.ts +5 -3
  25. package/dist/generated/delivery-notes/delivery-notes.d.ts.map +1 -1
  26. package/dist/generated/documents/documents.d.cts +53 -12
  27. package/dist/generated/documents/documents.d.ts +53 -12
  28. package/dist/generated/documents/documents.d.ts.map +1 -1
  29. package/dist/generated/e-invoicing/e-invoicing.d.cts +416 -0
  30. package/dist/generated/e-invoicing/e-invoicing.d.ts +416 -0
  31. package/dist/generated/e-invoicing/e-invoicing.d.ts.map +1 -0
  32. package/dist/generated/email/email.d.cts +2 -2
  33. package/dist/generated/email/email.d.ts +2 -2
  34. package/dist/generated/email/email.d.ts.map +1 -1
  35. package/dist/generated/entities/entities.d.cts +39 -6
  36. package/dist/generated/entities/entities.d.ts +39 -6
  37. package/dist/generated/entities/entities.d.ts.map +1 -1
  38. package/dist/generated/entity-api-keys/entity-api-keys.d.cts +7 -3
  39. package/dist/generated/entity-api-keys/entity-api-keys.d.ts +7 -3
  40. package/dist/generated/entity-api-keys/entity-api-keys.d.ts.map +1 -1
  41. package/dist/generated/entity-invitations/entity-invitations.d.cts +7 -3
  42. package/dist/generated/entity-invitations/entity-invitations.d.ts +7 -3
  43. package/dist/generated/entity-invitations/entity-invitations.d.ts.map +1 -1
  44. package/dist/generated/entity-stats/entity-stats.d.cts +16 -21
  45. package/dist/generated/entity-stats/entity-stats.d.ts +16 -21
  46. package/dist/generated/entity-stats/entity-stats.d.ts.map +1 -1
  47. package/dist/generated/entity-users/entity-users.d.cts +7 -3
  48. package/dist/generated/entity-users/entity-users.d.ts +7 -3
  49. package/dist/generated/entity-users/entity-users.d.ts.map +1 -1
  50. package/dist/generated/estimates/estimates.d.cts +5 -3
  51. package/dist/generated/estimates/estimates.d.ts +5 -3
  52. package/dist/generated/estimates/estimates.d.ts.map +1 -1
  53. package/dist/generated/exports/exports.d.cts +169 -6
  54. package/dist/generated/exports/exports.d.ts +169 -6
  55. package/dist/generated/exports/exports.d.ts.map +1 -1
  56. package/dist/generated/files/files.d.cts +2 -2
  57. package/dist/generated/files/files.d.ts +2 -2
  58. package/dist/generated/files/files.d.ts.map +1 -1
  59. package/dist/generated/fina-certificate/fina-certificate.d.cts +2 -2
  60. package/dist/generated/fina-certificate/fina-certificate.d.ts +2 -2
  61. package/dist/generated/fina-certificate/fina-certificate.d.ts.map +1 -1
  62. package/dist/generated/fina-devices/fina-devices.d.cts +2 -2
  63. package/dist/generated/fina-devices/fina-devices.d.ts +2 -2
  64. package/dist/generated/fina-devices/fina-devices.d.ts.map +1 -1
  65. package/dist/generated/fina-premises/fina-premises.d.cts +2 -2
  66. package/dist/generated/fina-premises/fina-premises.d.ts +2 -2
  67. package/dist/generated/fina-premises/fina-premises.d.ts.map +1 -1
  68. package/dist/generated/fina-settings/fina-settings.d.cts +2 -2
  69. package/dist/generated/fina-settings/fina-settings.d.ts +2 -2
  70. package/dist/generated/fina-settings/fina-settings.d.ts.map +1 -1
  71. package/dist/generated/furs-certificate/furs-certificate.d.cts +2 -2
  72. package/dist/generated/furs-certificate/furs-certificate.d.ts +2 -2
  73. package/dist/generated/furs-certificate/furs-certificate.d.ts.map +1 -1
  74. package/dist/generated/furs-devices/furs-devices.d.cts +2 -2
  75. package/dist/generated/furs-devices/furs-devices.d.ts +2 -2
  76. package/dist/generated/furs-devices/furs-devices.d.ts.map +1 -1
  77. package/dist/generated/furs-internal-act/furs-internal-act.d.cts +91 -0
  78. package/dist/generated/furs-internal-act/furs-internal-act.d.ts +91 -0
  79. package/dist/generated/furs-internal-act/furs-internal-act.d.ts.map +1 -0
  80. package/dist/generated/furs-premises/furs-premises.d.cts +2 -2
  81. package/dist/generated/furs-premises/furs-premises.d.ts +2 -2
  82. package/dist/generated/furs-premises/furs-premises.d.ts.map +1 -1
  83. package/dist/generated/furs-settings/furs-settings.d.cts +2 -2
  84. package/dist/generated/furs-settings/furs-settings.d.ts +2 -2
  85. package/dist/generated/furs-settings/furs-settings.d.ts.map +1 -1
  86. package/dist/generated/health/health.d.cts +27 -0
  87. package/dist/generated/health/health.d.ts +27 -0
  88. package/dist/generated/health/health.d.ts.map +1 -1
  89. package/dist/generated/incoming-purchase-documents/incoming-purchase-documents.d.cts +378 -0
  90. package/dist/generated/incoming-purchase-documents/incoming-purchase-documents.d.ts +378 -0
  91. package/dist/generated/incoming-purchase-documents/incoming-purchase-documents.d.ts.map +1 -0
  92. package/dist/generated/invoices/invoices.d.cts +46 -3
  93. package/dist/generated/invoices/invoices.d.ts +46 -3
  94. package/dist/generated/invoices/invoices.d.ts.map +1 -1
  95. package/dist/generated/items/items.d.cts +55 -6
  96. package/dist/generated/items/items.d.ts +55 -6
  97. package/dist/generated/items/items.d.ts.map +1 -1
  98. package/dist/generated/legacy-migration/legacy-migration.d.cts +86 -0
  99. package/dist/generated/legacy-migration/legacy-migration.d.ts +86 -0
  100. package/dist/generated/legacy-migration/legacy-migration.d.ts.map +1 -0
  101. package/dist/generated/model/acceptEntityInvitationBody.d.cts +1 -1
  102. package/dist/generated/model/acceptEntityInvitationBody.d.ts +1 -1
  103. package/dist/generated/model/acceptEntityInvitationParams.d.cts +1 -1
  104. package/dist/generated/model/acceptEntityInvitationParams.d.ts +1 -1
  105. package/dist/generated/model/acceptInvitationResponse.d.cts +1 -1
  106. package/dist/generated/model/acceptInvitationResponse.d.ts +1 -1
  107. package/dist/generated/model/accessToken.d.cts +1 -1
  108. package/dist/generated/model/accessToken.d.ts +1 -1
  109. package/dist/generated/model/accountWebhookDelivery.d.cts +67 -0
  110. package/dist/generated/model/accountWebhookDelivery.d.ts +67 -0
  111. package/dist/generated/model/accountWebhookDelivery.d.ts.map +1 -0
  112. package/dist/generated/model/accountWebhookDeliveryRequestBody.d.cts +11 -0
  113. package/dist/generated/model/accountWebhookDeliveryRequestBody.d.ts +11 -0
  114. package/dist/generated/model/accountWebhookDeliveryRequestBody.d.ts.map +1 -0
  115. package/dist/generated/model/accountWebhookDeliveryStatus.d.cts +14 -0
  116. package/dist/generated/model/accountWebhookDeliveryStatus.d.ts +14 -0
  117. package/dist/generated/model/accountWebhookDeliveryStatus.d.ts.map +1 -0
  118. package/dist/generated/model/accountWebhookResponse.d.cts +33 -0
  119. package/dist/generated/model/accountWebhookResponse.d.ts +33 -0
  120. package/dist/generated/model/accountWebhookResponse.d.ts.map +1 -0
  121. package/dist/generated/model/accountWebhookResponseEventsItem.d.cts +20 -0
  122. package/dist/generated/model/accountWebhookResponseEventsItem.d.ts +20 -0
  123. package/dist/generated/model/accountWebhookResponseEventsItem.d.ts.map +1 -0
  124. package/dist/generated/model/accountWebhookResponseMetadata.d.cts +11 -0
  125. package/dist/generated/model/accountWebhookResponseMetadata.d.ts +11 -0
  126. package/dist/generated/model/accountWebhookResponseMetadata.d.ts.map +1 -0
  127. package/dist/generated/model/accountWebhookWithSecret.d.cts +33 -0
  128. package/dist/generated/model/accountWebhookWithSecret.d.ts +33 -0
  129. package/dist/generated/model/accountWebhookWithSecret.d.ts.map +1 -0
  130. package/dist/generated/model/accountWebhookWithSecretEventsItem.d.cts +20 -0
  131. package/dist/generated/model/accountWebhookWithSecretEventsItem.d.ts +20 -0
  132. package/dist/generated/model/accountWebhookWithSecretEventsItem.d.ts.map +1 -0
  133. package/dist/generated/model/accountWebhookWithSecretMetadata.d.cts +11 -0
  134. package/dist/generated/model/accountWebhookWithSecretMetadata.d.ts +11 -0
  135. package/dist/generated/model/accountWebhookWithSecretMetadata.d.ts.map +1 -0
  136. package/dist/generated/model/addEntityUser201.d.cts +1 -1
  137. package/dist/generated/model/addEntityUser201.d.ts +1 -1
  138. package/dist/generated/model/addEntityUserBody.d.cts +1 -1
  139. package/dist/generated/model/addEntityUserBody.d.ts +1 -1
  140. package/dist/generated/model/addEntityUserBodyRole.d.cts +1 -1
  141. package/dist/generated/model/addEntityUserBodyRole.d.ts +1 -1
  142. package/dist/generated/model/advanceInvoice.d.cts +28 -4
  143. package/dist/generated/model/advanceInvoice.d.ts +28 -4
  144. package/dist/generated/model/advanceInvoice.d.ts.map +1 -1
  145. package/dist/generated/model/advanceInvoiceCalculationMode.d.cts +16 -0
  146. package/dist/generated/model/advanceInvoiceCalculationMode.d.ts +16 -0
  147. package/dist/generated/model/advanceInvoiceCalculationMode.d.ts.map +1 -0
  148. package/dist/generated/model/advanceInvoiceItem.d.cts +28 -13
  149. package/dist/generated/model/advanceInvoiceItem.d.ts +28 -13
  150. package/dist/generated/model/advanceInvoiceItem.d.ts.map +1 -1
  151. package/dist/generated/model/advanceInvoiceItemClassification.d.cts +18 -0
  152. package/dist/generated/model/advanceInvoiceItemClassification.d.ts +18 -0
  153. package/dist/generated/model/advanceInvoiceItemClassification.d.ts.map +1 -0
  154. package/dist/generated/model/advanceInvoiceItemMetadata.d.cts +1 -1
  155. package/dist/generated/model/advanceInvoiceItemMetadata.d.ts +1 -1
  156. package/dist/generated/model/advanceInvoiceItemType.d.cts +16 -0
  157. package/dist/generated/model/advanceInvoiceItemType.d.ts +16 -0
  158. package/dist/generated/model/advanceInvoiceItemType.d.ts.map +1 -0
  159. package/dist/generated/model/advanceInvoiceList.d.cts +1 -1
  160. package/dist/generated/model/advanceInvoiceList.d.ts +1 -1
  161. package/dist/generated/model/advanceInvoiceMetadata.d.cts +1 -1
  162. package/dist/generated/model/advanceInvoiceMetadata.d.ts +1 -1
  163. package/dist/generated/model/advanceInvoicePt.d.cts +11 -0
  164. package/dist/generated/model/advanceInvoicePt.d.ts +11 -0
  165. package/dist/generated/model/advanceInvoicePt.d.ts.map +1 -0
  166. package/dist/generated/model/advanceInvoiceTransactionType.d.cts +3 -1
  167. package/dist/generated/model/advanceInvoiceTransactionType.d.ts +3 -1
  168. package/dist/generated/model/advanceInvoiceTransactionType.d.ts.map +1 -1
  169. package/dist/generated/model/authorizeShopifyBody.d.cts +1 -1
  170. package/dist/generated/model/authorizeShopifyBody.d.ts +1 -1
  171. package/dist/generated/model/availablePlans.d.cts +1 -1
  172. package/dist/generated/model/availablePlans.d.ts +1 -1
  173. package/dist/generated/model/calculateDocumentPreview.d.cts +46 -0
  174. package/dist/generated/model/calculateDocumentPreview.d.ts +46 -0
  175. package/dist/generated/model/calculateDocumentPreview.d.ts.map +1 -0
  176. package/dist/generated/model/calculateDocumentPreviewCalculationMode.d.cts +17 -0
  177. package/dist/generated/model/calculateDocumentPreviewCalculationMode.d.ts +17 -0
  178. package/dist/generated/model/calculateDocumentPreviewCalculationMode.d.ts.map +1 -0
  179. package/dist/generated/model/calculateDocumentPreviewCustomer.d.cts +24 -0
  180. package/dist/generated/model/calculateDocumentPreviewCustomer.d.ts +24 -0
  181. package/dist/generated/model/calculateDocumentPreviewCustomer.d.ts.map +1 -0
  182. package/dist/generated/model/calculateDocumentPreviewParams.d.cts +15 -0
  183. package/dist/generated/model/calculateDocumentPreviewParams.d.ts +15 -0
  184. package/dist/generated/model/calculateDocumentPreviewParams.d.ts.map +1 -0
  185. package/dist/generated/model/{pdfExportByDocumentIdsType.d.cts → calculateDocumentPreviewType.d.cts} +4 -7
  186. package/dist/generated/model/{pdfExportByDocumentIdsType.d.ts → calculateDocumentPreviewType.d.ts} +4 -7
  187. package/dist/generated/model/calculateDocumentPreviewType.d.ts.map +1 -0
  188. package/dist/generated/model/calculatedItem.d.cts +55 -0
  189. package/dist/generated/model/calculatedItem.d.ts +55 -0
  190. package/dist/generated/model/calculatedItem.d.ts.map +1 -0
  191. package/dist/generated/model/calculatedItemType.d.cts +15 -0
  192. package/dist/generated/model/calculatedItemType.d.ts +15 -0
  193. package/dist/generated/model/calculatedItemType.d.ts.map +1 -0
  194. package/dist/generated/model/cancelEntityInvitation200.d.cts +1 -1
  195. package/dist/generated/model/cancelEntityInvitation200.d.ts +1 -1
  196. package/dist/generated/model/companyBankAccount.d.cts +1 -1
  197. package/dist/generated/model/companyBankAccount.d.ts +1 -1
  198. package/dist/generated/model/companyRegistryResult.d.cts +1 -1
  199. package/dist/generated/model/companyRegistryResult.d.ts +1 -1
  200. package/dist/generated/model/companyRegistrySearchResponse.d.cts +1 -1
  201. package/dist/generated/model/companyRegistrySearchResponse.d.ts +1 -1
  202. package/dist/generated/model/completeAdvanceInvoicePreview.d.cts +33 -4
  203. package/dist/generated/model/completeAdvanceInvoicePreview.d.ts +33 -4
  204. package/dist/generated/model/completeAdvanceInvoicePreview.d.ts.map +1 -1
  205. package/dist/generated/model/completeAdvanceInvoicePreviewCalculationMode.d.cts +17 -0
  206. package/dist/generated/model/completeAdvanceInvoicePreviewCalculationMode.d.ts +17 -0
  207. package/dist/generated/model/completeAdvanceInvoicePreviewCalculationMode.d.ts.map +1 -0
  208. package/dist/generated/model/completeAdvanceInvoicePreviewMetadata.d.cts +1 -1
  209. package/dist/generated/model/completeAdvanceInvoicePreviewMetadata.d.ts +1 -1
  210. package/dist/generated/model/completeCreditNotePreview.d.cts +36 -7
  211. package/dist/generated/model/completeCreditNotePreview.d.ts +36 -7
  212. package/dist/generated/model/completeCreditNotePreview.d.ts.map +1 -1
  213. package/dist/generated/model/completeCreditNotePreviewCalculationMode.d.cts +17 -0
  214. package/dist/generated/model/completeCreditNotePreviewCalculationMode.d.ts +17 -0
  215. package/dist/generated/model/completeCreditNotePreviewCalculationMode.d.ts.map +1 -0
  216. package/dist/generated/model/completeCreditNotePreviewMetadata.d.cts +1 -1
  217. package/dist/generated/model/completeCreditNotePreviewMetadata.d.ts +1 -1
  218. package/dist/generated/model/completeDeliveryNotePreview.d.cts +31 -6
  219. package/dist/generated/model/completeDeliveryNotePreview.d.ts +31 -6
  220. package/dist/generated/model/completeDeliveryNotePreview.d.ts.map +1 -1
  221. package/dist/generated/model/completeDeliveryNotePreviewCalculationMode.d.cts +17 -0
  222. package/dist/generated/model/completeDeliveryNotePreviewCalculationMode.d.ts +17 -0
  223. package/dist/generated/model/completeDeliveryNotePreviewCalculationMode.d.ts.map +1 -0
  224. package/dist/generated/model/completeDeliveryNotePreviewMetadata.d.cts +1 -1
  225. package/dist/generated/model/completeDeliveryNotePreviewMetadata.d.ts +1 -1
  226. package/dist/generated/model/completeEstimatePreview.d.cts +29 -5
  227. package/dist/generated/model/completeEstimatePreview.d.ts +29 -5
  228. package/dist/generated/model/completeEstimatePreview.d.ts.map +1 -1
  229. package/dist/generated/model/completeEstimatePreviewCalculationMode.d.cts +17 -0
  230. package/dist/generated/model/completeEstimatePreviewCalculationMode.d.ts +17 -0
  231. package/dist/generated/model/completeEstimatePreviewCalculationMode.d.ts.map +1 -0
  232. package/dist/generated/model/completeEstimatePreviewMetadata.d.cts +1 -1
  233. package/dist/generated/model/completeEstimatePreviewMetadata.d.ts +1 -1
  234. package/dist/generated/model/completeEstimatePreviewTitleType.d.cts +3 -3
  235. package/dist/generated/model/completeEstimatePreviewTitleType.d.ts +3 -3
  236. package/dist/generated/model/completeInvoicePreview.d.cts +39 -6
  237. package/dist/generated/model/completeInvoicePreview.d.ts +39 -6
  238. package/dist/generated/model/completeInvoicePreview.d.ts.map +1 -1
  239. package/dist/generated/model/completeInvoicePreviewCalculationMode.d.cts +17 -0
  240. package/dist/generated/model/completeInvoicePreviewCalculationMode.d.ts +17 -0
  241. package/dist/generated/model/completeInvoicePreviewCalculationMode.d.ts.map +1 -0
  242. package/dist/generated/model/completeInvoicePreviewMetadata.d.cts +1 -1
  243. package/dist/generated/model/completeInvoicePreviewMetadata.d.ts +1 -1
  244. package/dist/generated/model/countryRules.d.cts +1 -1
  245. package/dist/generated/model/countryRules.d.ts +1 -1
  246. package/dist/generated/model/createAccountWebhookBody.d.cts +35 -0
  247. package/dist/generated/model/createAccountWebhookBody.d.ts +35 -0
  248. package/dist/generated/model/createAccountWebhookBody.d.ts.map +1 -0
  249. package/dist/generated/model/createAccountWebhookBodyEventsItem.d.cts +20 -0
  250. package/dist/generated/model/createAccountWebhookBodyEventsItem.d.ts +20 -0
  251. package/dist/generated/model/createAccountWebhookBodyEventsItem.d.ts.map +1 -0
  252. package/dist/generated/model/createAccountWebhookBodyMetadata.d.cts +15 -0
  253. package/dist/generated/model/createAccountWebhookBodyMetadata.d.ts +15 -0
  254. package/dist/generated/model/createAccountWebhookBodyMetadata.d.ts.map +1 -0
  255. package/dist/generated/model/createAdvanceInvoice.d.cts +34 -7
  256. package/dist/generated/model/createAdvanceInvoice.d.ts +34 -7
  257. package/dist/generated/model/createAdvanceInvoice.d.ts.map +1 -1
  258. package/dist/generated/model/createAdvanceInvoiceCalculationMode.d.cts +17 -0
  259. package/dist/generated/model/createAdvanceInvoiceCalculationMode.d.ts +17 -0
  260. package/dist/generated/model/createAdvanceInvoiceCalculationMode.d.ts.map +1 -0
  261. package/dist/generated/model/createAdvanceInvoiceMetadata.d.cts +1 -1
  262. package/dist/generated/model/createAdvanceInvoiceMetadata.d.ts +1 -1
  263. package/dist/generated/model/createCreditNote.d.cts +36 -9
  264. package/dist/generated/model/createCreditNote.d.ts +36 -9
  265. package/dist/generated/model/createCreditNote.d.ts.map +1 -1
  266. package/dist/generated/model/createCreditNoteCalculationMode.d.cts +17 -0
  267. package/dist/generated/model/createCreditNoteCalculationMode.d.ts +17 -0
  268. package/dist/generated/model/createCreditNoteCalculationMode.d.ts.map +1 -0
  269. package/dist/generated/model/createCreditNoteMetadata.d.cts +1 -1
  270. package/dist/generated/model/createCreditNoteMetadata.d.ts +1 -1
  271. package/dist/generated/model/createCustomerBody.d.cts +8 -1
  272. package/dist/generated/model/createCustomerBody.d.ts +8 -1
  273. package/dist/generated/model/createCustomerBody.d.ts.map +1 -1
  274. package/dist/generated/model/createCustomerBodyMetadata.d.cts +1 -1
  275. package/dist/generated/model/createCustomerBodyMetadata.d.ts +1 -1
  276. package/dist/generated/model/createDeliveryNote.d.cts +31 -6
  277. package/dist/generated/model/createDeliveryNote.d.ts +31 -6
  278. package/dist/generated/model/createDeliveryNote.d.ts.map +1 -1
  279. package/dist/generated/model/createDeliveryNoteCalculationMode.d.cts +17 -0
  280. package/dist/generated/model/createDeliveryNoteCalculationMode.d.ts +17 -0
  281. package/dist/generated/model/createDeliveryNoteCalculationMode.d.ts.map +1 -0
  282. package/dist/generated/model/createDeliveryNoteMetadata.d.cts +1 -1
  283. package/dist/generated/model/createDeliveryNoteMetadata.d.ts +1 -1
  284. package/dist/generated/model/createDocumentCustomer.d.cts +12 -8
  285. package/dist/generated/model/createDocumentCustomer.d.ts +12 -8
  286. package/dist/generated/model/createDocumentCustomer.d.ts.map +1 -1
  287. package/dist/generated/model/createDocumentItem.d.cts +46 -16
  288. package/dist/generated/model/createDocumentItem.d.ts +46 -16
  289. package/dist/generated/model/createDocumentItem.d.ts.map +1 -1
  290. package/dist/generated/model/createDocumentItemClassification.d.cts +18 -0
  291. package/dist/generated/model/createDocumentItemClassification.d.ts +18 -0
  292. package/dist/generated/model/createDocumentItemClassification.d.ts.map +1 -0
  293. package/dist/generated/model/createDocumentItemMetadata.d.cts +1 -1
  294. package/dist/generated/model/createDocumentItemMetadata.d.ts +1 -1
  295. package/dist/generated/model/createDocumentItemType.d.cts +17 -0
  296. package/dist/generated/model/createDocumentItemType.d.ts +17 -0
  297. package/dist/generated/model/createDocumentItemType.d.ts.map +1 -0
  298. package/dist/generated/model/createDocumentPayment.d.cts +18 -13
  299. package/dist/generated/model/createDocumentPayment.d.ts +18 -13
  300. package/dist/generated/model/createDocumentPayment.d.ts.map +1 -1
  301. package/dist/generated/model/createDocumentPaymentMetadata.d.cts +1 -1
  302. package/dist/generated/model/createDocumentPaymentMetadata.d.ts +1 -1
  303. package/dist/generated/model/createDocumentPaymentType.d.cts +1 -1
  304. package/dist/generated/model/createDocumentPaymentType.d.ts +1 -1
  305. package/dist/generated/model/createEntityApiKeyBody.d.cts +6 -1
  306. package/dist/generated/model/createEntityApiKeyBody.d.ts +6 -1
  307. package/dist/generated/model/createEntityApiKeyBody.d.ts.map +1 -1
  308. package/dist/generated/model/createEntityBody.d.cts +27 -3
  309. package/dist/generated/model/createEntityBody.d.ts +27 -3
  310. package/dist/generated/model/createEntityBody.d.ts.map +1 -1
  311. package/dist/generated/model/createEntityBodyEnvironment.d.cts +1 -1
  312. package/dist/generated/model/createEntityBodyEnvironment.d.ts +1 -1
  313. package/dist/generated/model/createEntityBodyMetadata.d.cts +1 -1
  314. package/dist/generated/model/createEntityBodyMetadata.d.ts +1 -1
  315. package/dist/generated/model/createEntityBodySettings.d.cts +76 -1
  316. package/dist/generated/model/createEntityBodySettings.d.ts +76 -1
  317. package/dist/generated/model/createEntityBodySettings.d.ts.map +1 -1
  318. package/dist/generated/model/createEntityBodySettingsCalculation.d.cts +19 -0
  319. package/dist/generated/model/createEntityBodySettingsCalculation.d.ts +19 -0
  320. package/dist/generated/model/createEntityBodySettingsCalculation.d.ts.map +1 -0
  321. package/dist/generated/model/createEntityBodySettingsEInvoicing.d.cts +22 -0
  322. package/dist/generated/model/createEntityBodySettingsEInvoicing.d.ts +22 -0
  323. package/dist/generated/model/createEntityBodySettingsEInvoicing.d.ts.map +1 -0
  324. package/dist/generated/model/createEntityBodySettingsEmailDefaults.d.cts +35 -5
  325. package/dist/generated/model/createEntityBodySettingsEmailDefaults.d.ts +35 -5
  326. package/dist/generated/model/createEntityBodySettingsEmailDefaults.d.ts.map +1 -1
  327. package/dist/generated/model/createEntityBodySettingsEpcQr.d.cts +1 -1
  328. package/dist/generated/model/createEntityBodySettingsEpcQr.d.ts +1 -1
  329. package/dist/generated/model/createEntityBodySettingsFina.d.cts +6 -1
  330. package/dist/generated/model/createEntityBodySettingsFina.d.ts +6 -1
  331. package/dist/generated/model/createEntityBodySettingsFina.d.ts.map +1 -1
  332. package/dist/generated/model/createEntityBodySettingsFurs.d.cts +5 -1
  333. package/dist/generated/model/createEntityBodySettingsFurs.d.ts +5 -1
  334. package/dist/generated/model/createEntityBodySettingsFurs.d.ts.map +1 -1
  335. package/dist/generated/model/createEntityBodySettingsNumberFormats.d.cts +1 -1
  336. package/dist/generated/model/createEntityBodySettingsNumberFormats.d.ts +1 -1
  337. package/dist/generated/model/createEntityBodySettingsOverdueNotifications.d.cts +1 -1
  338. package/dist/generated/model/createEntityBodySettingsOverdueNotifications.d.ts +1 -1
  339. package/dist/generated/model/createEntityBodySettingsPdfTemplate.d.cts +2 -1
  340. package/dist/generated/model/createEntityBodySettingsPdfTemplate.d.ts +2 -1
  341. package/dist/generated/model/createEntityBodySettingsPdfTemplate.d.ts.map +1 -1
  342. package/dist/generated/model/createEntityBodySettingsPt.d.cts +29 -0
  343. package/dist/generated/model/createEntityBodySettingsPt.d.ts +29 -0
  344. package/dist/generated/model/createEntityBodySettingsPt.d.ts.map +1 -0
  345. package/dist/generated/model/createEntityBodySettingsSlovenia.d.cts +221 -0
  346. package/dist/generated/model/createEntityBodySettingsSlovenia.d.ts +221 -0
  347. package/dist/generated/model/createEntityBodySettingsSlovenia.d.ts.map +1 -0
  348. package/dist/generated/model/createEntityBodySettingsTaxClauseDefaults.d.cts +12 -2
  349. package/dist/generated/model/createEntityBodySettingsTaxClauseDefaults.d.ts +12 -2
  350. package/dist/generated/model/createEntityBodySettingsTaxClauseDefaults.d.ts.map +1 -1
  351. package/dist/generated/model/createEntityBodySettingsUpnQr.d.cts +1 -1
  352. package/dist/generated/model/createEntityBodySettingsUpnQr.d.ts +1 -1
  353. package/dist/generated/model/createEstimate.d.cts +29 -5
  354. package/dist/generated/model/createEstimate.d.ts +29 -5
  355. package/dist/generated/model/createEstimate.d.ts.map +1 -1
  356. package/dist/generated/model/createEstimateCalculationMode.d.cts +17 -0
  357. package/dist/generated/model/createEstimateCalculationMode.d.ts +17 -0
  358. package/dist/generated/model/createEstimateCalculationMode.d.ts.map +1 -0
  359. package/dist/generated/model/createEstimateMetadata.d.cts +1 -1
  360. package/dist/generated/model/createEstimateMetadata.d.ts +1 -1
  361. package/dist/generated/model/createEstimateTitleType.d.cts +3 -3
  362. package/dist/generated/model/createEstimateTitleType.d.ts +3 -3
  363. package/dist/generated/model/createFinaInvoiceData.d.cts +25 -13
  364. package/dist/generated/model/createFinaInvoiceData.d.ts +25 -13
  365. package/dist/generated/model/createFinaInvoiceData.d.ts.map +1 -1
  366. package/dist/generated/model/createFinaPremiseBody.d.cts +3 -3
  367. package/dist/generated/model/createFinaPremiseBody.d.ts +3 -3
  368. package/dist/generated/model/createFinaPremiseBody.d.ts.map +1 -1
  369. package/dist/generated/model/createFursDocumentData.d.cts +20 -9
  370. package/dist/generated/model/createFursDocumentData.d.ts +20 -9
  371. package/dist/generated/model/createFursDocumentData.d.ts.map +1 -1
  372. package/dist/generated/model/createIncomingPurchaseDocumentBody.d.cts +87 -0
  373. package/dist/generated/model/createIncomingPurchaseDocumentBody.d.ts +87 -0
  374. package/dist/generated/model/createIncomingPurchaseDocumentBody.d.ts.map +1 -0
  375. package/dist/generated/model/createIncomingPurchaseDocumentBodyMetadata.d.cts +15 -0
  376. package/dist/generated/model/createIncomingPurchaseDocumentBodyMetadata.d.ts +15 -0
  377. package/dist/generated/model/createIncomingPurchaseDocumentBodyMetadata.d.ts.map +1 -0
  378. package/dist/generated/model/createIncomingPurchaseDocumentBodyTransactionType.d.cts +20 -0
  379. package/dist/generated/model/createIncomingPurchaseDocumentBodyTransactionType.d.ts +20 -0
  380. package/dist/generated/model/createIncomingPurchaseDocumentBodyTransactionType.d.ts.map +1 -0
  381. package/dist/generated/model/createIncomingPurchaseDocumentBodyType.d.cts +14 -0
  382. package/dist/generated/model/createIncomingPurchaseDocumentBodyType.d.ts +14 -0
  383. package/dist/generated/model/createIncomingPurchaseDocumentBodyType.d.ts.map +1 -0
  384. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBody.d.cts +43 -0
  385. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBody.d.ts +43 -0
  386. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBody.d.ts.map +1 -0
  387. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyMetadata.d.cts +15 -0
  388. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyMetadata.d.ts +15 -0
  389. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyMetadata.d.ts.map +1 -0
  390. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyType.d.cts +23 -0
  391. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyType.d.ts +23 -0
  392. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyType.d.ts.map +1 -0
  393. package/dist/generated/model/createInvoice.d.cts +38 -8
  394. package/dist/generated/model/createInvoice.d.ts +38 -8
  395. package/dist/generated/model/createInvoice.d.ts.map +1 -1
  396. package/dist/generated/model/createInvoiceCalculationMode.d.cts +17 -0
  397. package/dist/generated/model/createInvoiceCalculationMode.d.ts +17 -0
  398. package/dist/generated/model/createInvoiceCalculationMode.d.ts.map +1 -0
  399. package/dist/generated/model/createInvoiceMetadata.d.cts +1 -1
  400. package/dist/generated/model/createInvoiceMetadata.d.ts +1 -1
  401. package/dist/generated/model/createItemBody.d.cts +7 -1
  402. package/dist/generated/model/createItemBody.d.ts +7 -1
  403. package/dist/generated/model/createItemBody.d.ts.map +1 -1
  404. package/dist/generated/model/createItemBodyClassification.d.cts +18 -0
  405. package/dist/generated/model/createItemBodyClassification.d.ts +18 -0
  406. package/dist/generated/model/createItemBodyClassification.d.ts.map +1 -0
  407. package/dist/generated/model/createItemBodyMetadata.d.cts +1 -1
  408. package/dist/generated/model/createItemBodyMetadata.d.ts +1 -1
  409. package/dist/generated/model/createItemBodyTaxesItem.d.cts +1 -1
  410. package/dist/generated/model/createItemBodyTaxesItem.d.ts +1 -1
  411. package/dist/generated/model/createMigrationJobRequest.d.cts +25 -0
  412. package/dist/generated/model/createMigrationJobRequest.d.ts +25 -0
  413. package/dist/generated/model/createMigrationJobRequest.d.ts.map +1 -0
  414. package/dist/generated/model/createMigrationJobRequestEnvironment.d.cts +16 -0
  415. package/dist/generated/model/createMigrationJobRequestEnvironment.d.ts +16 -0
  416. package/dist/generated/model/createMigrationJobRequestEnvironment.d.ts.map +1 -0
  417. package/dist/generated/model/createMigrationJobResponse.d.cts +17 -0
  418. package/dist/generated/model/createMigrationJobResponse.d.ts +17 -0
  419. package/dist/generated/model/createMigrationJobResponse.d.ts.map +1 -0
  420. package/dist/generated/model/createMigrationJobResponseStatus.d.cts +18 -0
  421. package/dist/generated/model/createMigrationJobResponseStatus.d.ts +18 -0
  422. package/dist/generated/model/createMigrationJobResponseStatus.d.ts.map +1 -0
  423. package/dist/generated/model/createOrderBody.d.cts +1 -1
  424. package/dist/generated/model/createOrderBody.d.ts +1 -1
  425. package/dist/generated/model/createOrderBodyMetadata.d.cts +1 -1
  426. package/dist/generated/model/createOrderBodyMetadata.d.ts +1 -1
  427. package/dist/generated/model/createOrderBodyPaymentStatus.d.cts +1 -1
  428. package/dist/generated/model/createOrderBodyPaymentStatus.d.ts +1 -1
  429. package/dist/generated/model/createOrderBodySource.d.cts +1 -1
  430. package/dist/generated/model/createOrderBodySource.d.ts +1 -1
  431. package/dist/generated/model/createOrderIntegrationBody.d.cts +17 -1
  432. package/dist/generated/model/createOrderIntegrationBody.d.ts +17 -1
  433. package/dist/generated/model/createOrderIntegrationBody.d.ts.map +1 -1
  434. package/dist/generated/model/createOrderIntegrationBodyMetadata.d.cts +1 -1
  435. package/dist/generated/model/createOrderIntegrationBodyMetadata.d.ts +1 -1
  436. package/dist/generated/model/createOrderIntegrationBodySource.d.cts +1 -1
  437. package/dist/generated/model/createOrderIntegrationBodySource.d.ts +1 -1
  438. package/dist/generated/model/createPaymentBody.d.cts +17 -1
  439. package/dist/generated/model/createPaymentBody.d.ts +17 -1
  440. package/dist/generated/model/createPaymentBody.d.ts.map +1 -1
  441. package/dist/generated/model/createPaymentBodyMetadata.d.cts +1 -1
  442. package/dist/generated/model/createPaymentBodyMetadata.d.ts +1 -1
  443. package/dist/generated/model/createPaymentBodyType.d.cts +1 -1
  444. package/dist/generated/model/createPaymentBodyType.d.ts +1 -1
  445. package/dist/generated/model/createPtAtcudSeriesBody.d.cts +40 -0
  446. package/dist/generated/model/createPtAtcudSeriesBody.d.ts +40 -0
  447. package/dist/generated/model/createPtAtcudSeriesBody.d.ts.map +1 -0
  448. package/dist/generated/model/createPtAtcudSeriesBodyDocumentType.d.cts +18 -0
  449. package/dist/generated/model/createPtAtcudSeriesBodyDocumentType.d.ts +18 -0
  450. package/dist/generated/model/createPtAtcudSeriesBodyDocumentType.d.ts.map +1 -0
  451. package/dist/generated/model/createRecurringInvoiceBody.d.cts +1 -1
  452. package/dist/generated/model/createRecurringInvoiceBody.d.ts +1 -1
  453. package/dist/generated/model/createRecurringInvoiceBodyFrequency.d.cts +1 -1
  454. package/dist/generated/model/createRecurringInvoiceBodyFrequency.d.ts +1 -1
  455. package/dist/generated/model/createRecurringInvoiceBodyMetadata.d.cts +1 -1
  456. package/dist/generated/model/createRecurringInvoiceBodyMetadata.d.ts +1 -1
  457. package/dist/generated/model/createSupplierBody.d.cts +79 -0
  458. package/dist/generated/model/createSupplierBody.d.ts +79 -0
  459. package/dist/generated/model/createSupplierBody.d.ts.map +1 -0
  460. package/dist/generated/model/createSupplierBodyMetadata.d.cts +15 -0
  461. package/dist/generated/model/createSupplierBodyMetadata.d.ts +15 -0
  462. package/dist/generated/model/createSupplierBodyMetadata.d.ts.map +1 -0
  463. package/dist/generated/model/createTaxBody.d.cts +11 -1
  464. package/dist/generated/model/createTaxBody.d.ts +11 -1
  465. package/dist/generated/model/createTaxBody.d.ts.map +1 -1
  466. package/dist/generated/model/createTaxBodyMetadata.d.cts +1 -1
  467. package/dist/generated/model/createTaxBodyMetadata.d.ts +1 -1
  468. package/dist/generated/model/createTaxBodyTaxRatesItem.d.cts +1 -1
  469. package/dist/generated/model/createTaxBodyTaxRatesItem.d.ts +1 -1
  470. package/dist/generated/model/createWebhookBody.d.cts +1 -1
  471. package/dist/generated/model/createWebhookBody.d.ts +1 -1
  472. package/dist/generated/model/createWebhookBodyEventsItem.d.cts +7 -1
  473. package/dist/generated/model/createWebhookBodyEventsItem.d.ts +7 -1
  474. package/dist/generated/model/createWebhookBodyEventsItem.d.ts.map +1 -1
  475. package/dist/generated/model/createWebhookBodyMetadata.d.cts +1 -1
  476. package/dist/generated/model/createWebhookBodyMetadata.d.ts +1 -1
  477. package/dist/generated/model/creationSource.d.cts +16 -0
  478. package/dist/generated/model/creationSource.d.ts +16 -0
  479. package/dist/generated/model/creationSource.d.ts.map +1 -0
  480. package/dist/generated/model/creditNote.d.cts +32 -8
  481. package/dist/generated/model/creditNote.d.ts +32 -8
  482. package/dist/generated/model/creditNote.d.ts.map +1 -1
  483. package/dist/generated/model/creditNoteCalculationMode.d.cts +16 -0
  484. package/dist/generated/model/creditNoteCalculationMode.d.ts +16 -0
  485. package/dist/generated/model/creditNoteCalculationMode.d.ts.map +1 -0
  486. package/dist/generated/model/creditNoteItem.d.cts +28 -13
  487. package/dist/generated/model/creditNoteItem.d.ts +28 -13
  488. package/dist/generated/model/creditNoteItem.d.ts.map +1 -1
  489. package/dist/generated/model/creditNoteItemClassification.d.cts +18 -0
  490. package/dist/generated/model/creditNoteItemClassification.d.ts +18 -0
  491. package/dist/generated/model/creditNoteItemClassification.d.ts.map +1 -0
  492. package/dist/generated/model/creditNoteItemMetadata.d.cts +1 -1
  493. package/dist/generated/model/creditNoteItemMetadata.d.ts +1 -1
  494. package/dist/generated/model/creditNoteItemType.d.cts +16 -0
  495. package/dist/generated/model/creditNoteItemType.d.ts +16 -0
  496. package/dist/generated/model/creditNoteItemType.d.ts.map +1 -0
  497. package/dist/generated/model/creditNoteList.d.cts +1 -1
  498. package/dist/generated/model/creditNoteList.d.ts +1 -1
  499. package/dist/generated/model/creditNoteMetadata.d.cts +1 -1
  500. package/dist/generated/model/creditNoteMetadata.d.ts +1 -1
  501. package/dist/generated/model/creditNotePt.d.cts +11 -0
  502. package/dist/generated/model/creditNotePt.d.ts +11 -0
  503. package/dist/generated/model/creditNotePt.d.ts.map +1 -0
  504. package/dist/generated/model/creditNoteTransactionType.d.cts +3 -1
  505. package/dist/generated/model/creditNoteTransactionType.d.ts +3 -1
  506. package/dist/generated/model/creditNoteTransactionType.d.ts.map +1 -1
  507. package/dist/generated/model/currentSubscription.d.cts +42 -1
  508. package/dist/generated/model/currentSubscription.d.ts +42 -1
  509. package/dist/generated/model/currentSubscription.d.ts.map +1 -1
  510. package/dist/generated/model/currentSubscriptionPaymentMethod.d.cts +18 -0
  511. package/dist/generated/model/currentSubscriptionPaymentMethod.d.ts +18 -0
  512. package/dist/generated/model/currentSubscriptionPaymentMethod.d.ts.map +1 -0
  513. package/dist/generated/model/currentSubscriptionPaymentProvider.d.cts +18 -0
  514. package/dist/generated/model/currentSubscriptionPaymentProvider.d.ts +18 -0
  515. package/dist/generated/model/currentSubscriptionPaymentProvider.d.ts.map +1 -0
  516. package/dist/generated/model/currentSubscriptionScheduledChange.d.cts +22 -0
  517. package/dist/generated/model/currentSubscriptionScheduledChange.d.ts +22 -0
  518. package/dist/generated/model/currentSubscriptionScheduledChange.d.ts.map +1 -0
  519. package/dist/generated/model/customCreateAdvanceInvoice.d.cts +44 -33
  520. package/dist/generated/model/customCreateAdvanceInvoice.d.ts +44 -33
  521. package/dist/generated/model/customCreateAdvanceInvoice.d.ts.map +1 -1
  522. package/dist/generated/model/customCreateAdvanceInvoiceCalculationMode.d.cts +17 -0
  523. package/dist/generated/model/customCreateAdvanceInvoiceCalculationMode.d.ts +17 -0
  524. package/dist/generated/model/customCreateAdvanceInvoiceCalculationMode.d.ts.map +1 -0
  525. package/dist/generated/model/customCreateAdvanceInvoiceIssuer.d.cts +12 -0
  526. package/dist/generated/model/customCreateAdvanceInvoiceIssuer.d.ts +12 -0
  527. package/dist/generated/model/customCreateAdvanceInvoiceIssuer.d.ts.map +1 -0
  528. package/dist/generated/model/customCreateAdvanceInvoiceMetadata.d.cts +1 -1
  529. package/dist/generated/model/customCreateAdvanceInvoiceMetadata.d.ts +1 -1
  530. package/dist/generated/model/customCreateAdvanceInvoicePt.d.cts +11 -0
  531. package/dist/generated/model/customCreateAdvanceInvoicePt.d.ts +11 -0
  532. package/dist/generated/model/customCreateAdvanceInvoicePt.d.ts.map +1 -0
  533. package/dist/generated/model/customCreateCreditNote.d.cts +44 -42
  534. package/dist/generated/model/customCreateCreditNote.d.ts +44 -42
  535. package/dist/generated/model/customCreateCreditNote.d.ts.map +1 -1
  536. package/dist/generated/model/customCreateCreditNoteCalculationMode.d.cts +17 -0
  537. package/dist/generated/model/customCreateCreditNoteCalculationMode.d.ts +17 -0
  538. package/dist/generated/model/customCreateCreditNoteCalculationMode.d.ts.map +1 -0
  539. package/dist/generated/model/customCreateCreditNoteIssuer.d.cts +12 -0
  540. package/dist/generated/model/customCreateCreditNoteIssuer.d.ts +12 -0
  541. package/dist/generated/model/customCreateCreditNoteIssuer.d.ts.map +1 -0
  542. package/dist/generated/model/customCreateCreditNoteMetadata.d.cts +1 -1
  543. package/dist/generated/model/customCreateCreditNoteMetadata.d.ts +1 -1
  544. package/dist/generated/model/customCreateCreditNotePt.d.cts +11 -0
  545. package/dist/generated/model/customCreateCreditNotePt.d.ts +11 -0
  546. package/dist/generated/model/customCreateCreditNotePt.d.ts.map +1 -0
  547. package/dist/generated/model/customCreateDeliveryNote.d.cts +42 -34
  548. package/dist/generated/model/customCreateDeliveryNote.d.ts +42 -34
  549. package/dist/generated/model/customCreateDeliveryNote.d.ts.map +1 -1
  550. package/dist/generated/model/customCreateDeliveryNoteCalculationMode.d.cts +17 -0
  551. package/dist/generated/model/customCreateDeliveryNoteCalculationMode.d.ts +17 -0
  552. package/dist/generated/model/customCreateDeliveryNoteCalculationMode.d.ts.map +1 -0
  553. package/dist/generated/model/customCreateDeliveryNoteIssuer.d.cts +12 -0
  554. package/dist/generated/model/customCreateDeliveryNoteIssuer.d.ts +12 -0
  555. package/dist/generated/model/customCreateDeliveryNoteIssuer.d.ts.map +1 -0
  556. package/dist/generated/model/customCreateDeliveryNoteMetadata.d.cts +1 -1
  557. package/dist/generated/model/customCreateDeliveryNoteMetadata.d.ts +1 -1
  558. package/dist/generated/model/customCreateEstimate.d.cts +39 -38
  559. package/dist/generated/model/customCreateEstimate.d.ts +39 -38
  560. package/dist/generated/model/customCreateEstimate.d.ts.map +1 -1
  561. package/dist/generated/model/customCreateEstimateCalculationMode.d.cts +17 -0
  562. package/dist/generated/model/customCreateEstimateCalculationMode.d.ts +17 -0
  563. package/dist/generated/model/customCreateEstimateCalculationMode.d.ts.map +1 -0
  564. package/dist/generated/model/customCreateEstimateIssuer.d.cts +12 -0
  565. package/dist/generated/model/customCreateEstimateIssuer.d.ts +12 -0
  566. package/dist/generated/model/customCreateEstimateIssuer.d.ts.map +1 -0
  567. package/dist/generated/model/customCreateEstimateMetadata.d.cts +1 -1
  568. package/dist/generated/model/customCreateEstimateMetadata.d.ts +1 -1
  569. package/dist/generated/model/customCreateEstimatePt.d.cts +11 -0
  570. package/dist/generated/model/customCreateEstimatePt.d.ts +11 -0
  571. package/dist/generated/model/customCreateEstimatePt.d.ts.map +1 -0
  572. package/dist/generated/model/customCreateEstimateTitleType.d.cts +2 -3
  573. package/dist/generated/model/customCreateEstimateTitleType.d.ts +2 -3
  574. package/dist/generated/model/customCreateEstimateTitleType.d.ts.map +1 -1
  575. package/dist/generated/model/customCreateIncomingPurchaseDocument.d.cts +87 -0
  576. package/dist/generated/model/customCreateIncomingPurchaseDocument.d.ts +87 -0
  577. package/dist/generated/model/customCreateIncomingPurchaseDocument.d.ts.map +1 -0
  578. package/dist/generated/model/customCreateIncomingPurchaseDocumentMetadata.d.cts +15 -0
  579. package/dist/generated/model/customCreateIncomingPurchaseDocumentMetadata.d.ts +15 -0
  580. package/dist/generated/model/customCreateIncomingPurchaseDocumentMetadata.d.ts.map +1 -0
  581. package/dist/generated/model/customCreateIncomingPurchaseDocumentTransactionType.d.cts +20 -0
  582. package/dist/generated/model/customCreateIncomingPurchaseDocumentTransactionType.d.ts +20 -0
  583. package/dist/generated/model/customCreateIncomingPurchaseDocumentTransactionType.d.ts.map +1 -0
  584. package/dist/generated/model/customCreateIncomingPurchaseDocumentType.d.cts +14 -0
  585. package/dist/generated/model/customCreateIncomingPurchaseDocumentType.d.ts +14 -0
  586. package/dist/generated/model/customCreateIncomingPurchaseDocumentType.d.ts.map +1 -0
  587. package/dist/generated/model/customCreateInvoice.d.cts +50 -49
  588. package/dist/generated/model/customCreateInvoice.d.ts +50 -49
  589. package/dist/generated/model/customCreateInvoice.d.ts.map +1 -1
  590. package/dist/generated/model/customCreateInvoiceCalculationMode.d.cts +17 -0
  591. package/dist/generated/model/customCreateInvoiceCalculationMode.d.ts +17 -0
  592. package/dist/generated/model/customCreateInvoiceCalculationMode.d.ts.map +1 -0
  593. package/dist/generated/model/customCreateInvoiceIssuer.d.cts +12 -0
  594. package/dist/generated/model/customCreateInvoiceIssuer.d.ts +12 -0
  595. package/dist/generated/model/customCreateInvoiceIssuer.d.ts.map +1 -0
  596. package/dist/generated/model/customCreateInvoiceMetadata.d.cts +1 -1
  597. package/dist/generated/model/customCreateInvoiceMetadata.d.ts +1 -1
  598. package/dist/generated/model/customCreateInvoicePt.d.cts +11 -0
  599. package/dist/generated/model/customCreateInvoicePt.d.ts +11 -0
  600. package/dist/generated/model/customCreateInvoicePt.d.ts.map +1 -0
  601. package/dist/generated/model/customDocumentItem.d.cts +54 -20
  602. package/dist/generated/model/customDocumentItem.d.ts +54 -20
  603. package/dist/generated/model/customDocumentItem.d.ts.map +1 -1
  604. package/dist/generated/model/customDocumentItemClassification.d.cts +18 -0
  605. package/dist/generated/model/customDocumentItemClassification.d.ts +18 -0
  606. package/dist/generated/model/customDocumentItemClassification.d.ts.map +1 -0
  607. package/dist/generated/model/customDocumentItemMetadata.d.cts +1 -1
  608. package/dist/generated/model/customDocumentItemMetadata.d.ts +1 -1
  609. package/dist/generated/model/customDocumentItemType.d.cts +17 -0
  610. package/dist/generated/model/customDocumentItemType.d.ts +17 -0
  611. package/dist/generated/model/customDocumentItemType.d.ts.map +1 -0
  612. package/dist/generated/model/customer.d.cts +2 -4
  613. package/dist/generated/model/customer.d.ts +2 -4
  614. package/dist/generated/model/customer.d.ts.map +1 -1
  615. package/dist/generated/model/customerBase.d.cts +7 -1
  616. package/dist/generated/model/customerBase.d.ts +7 -1
  617. package/dist/generated/model/customerBase.d.ts.map +1 -1
  618. package/dist/generated/model/customerBaseMetadata.d.cts +1 -1
  619. package/dist/generated/model/customerBaseMetadata.d.ts +1 -1
  620. package/dist/generated/model/customerBaseVies.d.cts +1 -1
  621. package/dist/generated/model/customerBaseVies.d.ts +1 -1
  622. package/dist/generated/model/deleteAccountWebhook200.d.cts +11 -0
  623. package/dist/generated/model/deleteAccountWebhook200.d.ts +11 -0
  624. package/dist/generated/model/deleteAccountWebhook200.d.ts.map +1 -0
  625. package/dist/generated/model/deleteDocumentParams.d.cts +3 -3
  626. package/dist/generated/model/deleteDocumentParams.d.ts +3 -3
  627. package/dist/generated/model/deleteDocumentParams.d.ts.map +1 -1
  628. package/dist/generated/model/deleteDocumentType.d.cts +1 -1
  629. package/dist/generated/model/deleteDocumentType.d.ts +1 -1
  630. package/dist/generated/model/deleteEntityApiKey200.d.cts +1 -1
  631. package/dist/generated/model/deleteEntityApiKey200.d.ts +1 -1
  632. package/dist/generated/model/deleteWebhook200.d.cts +1 -1
  633. package/dist/generated/model/deleteWebhook200.d.ts +1 -1
  634. package/dist/generated/model/deliveryNote.d.cts +26 -4
  635. package/dist/generated/model/deliveryNote.d.ts +26 -4
  636. package/dist/generated/model/deliveryNote.d.ts.map +1 -1
  637. package/dist/generated/model/deliveryNoteCalculationMode.d.cts +16 -0
  638. package/dist/generated/model/deliveryNoteCalculationMode.d.ts +16 -0
  639. package/dist/generated/model/deliveryNoteCalculationMode.d.ts.map +1 -0
  640. package/dist/generated/model/deliveryNoteItem.d.cts +28 -13
  641. package/dist/generated/model/deliveryNoteItem.d.ts +28 -13
  642. package/dist/generated/model/deliveryNoteItem.d.ts.map +1 -1
  643. package/dist/generated/model/deliveryNoteItemClassification.d.cts +18 -0
  644. package/dist/generated/model/deliveryNoteItemClassification.d.ts +18 -0
  645. package/dist/generated/model/deliveryNoteItemClassification.d.ts.map +1 -0
  646. package/dist/generated/model/deliveryNoteItemMetadata.d.cts +1 -1
  647. package/dist/generated/model/deliveryNoteItemMetadata.d.ts +1 -1
  648. package/dist/generated/model/deliveryNoteItemType.d.cts +16 -0
  649. package/dist/generated/model/deliveryNoteItemType.d.ts +16 -0
  650. package/dist/generated/model/deliveryNoteItemType.d.ts.map +1 -0
  651. package/dist/generated/model/deliveryNoteList.d.cts +1 -1
  652. package/dist/generated/model/deliveryNoteList.d.ts +1 -1
  653. package/dist/generated/model/deliveryNoteMetadata.d.cts +1 -1
  654. package/dist/generated/model/deliveryNoteMetadata.d.ts +1 -1
  655. package/dist/generated/model/deliveryNoteTransactionType.d.cts +3 -1
  656. package/dist/generated/model/deliveryNoteTransactionType.d.ts +3 -1
  657. package/dist/generated/model/deliveryNoteTransactionType.d.ts.map +1 -1
  658. package/dist/generated/model/documentCalculation.d.cts +52 -0
  659. package/dist/generated/model/documentCalculation.d.ts +52 -0
  660. package/dist/generated/model/documentCalculation.d.ts.map +1 -0
  661. package/dist/generated/model/documentCalculationCalculationMode.d.cts +16 -0
  662. package/dist/generated/model/documentCalculationCalculationMode.d.ts +16 -0
  663. package/dist/generated/model/documentCalculationCalculationMode.d.ts.map +1 -0
  664. package/dist/generated/model/documentCalculationTransactionType.d.cts +21 -0
  665. package/dist/generated/model/documentCalculationTransactionType.d.ts +21 -0
  666. package/dist/generated/model/documentCalculationTransactionType.d.ts.map +1 -0
  667. package/dist/generated/model/documentCustomer.d.cts +42 -15
  668. package/dist/generated/model/documentCustomer.d.ts +42 -15
  669. package/dist/generated/model/documentCustomer.d.ts.map +1 -1
  670. package/dist/generated/model/documentEntity.d.cts +7 -1
  671. package/dist/generated/model/documentEntity.d.ts +7 -1
  672. package/dist/generated/model/documentEntity.d.ts.map +1 -1
  673. package/dist/generated/model/documentEntityBankAccount.d.cts +36 -15
  674. package/dist/generated/model/documentEntityBankAccount.d.ts +36 -15
  675. package/dist/generated/model/documentEntityBankAccount.d.ts.map +1 -1
  676. package/dist/generated/model/documentItemTax.d.cts +15 -6
  677. package/dist/generated/model/documentItemTax.d.ts +15 -6
  678. package/dist/generated/model/documentItemTax.d.ts.map +1 -1
  679. package/dist/generated/model/documentRelation.d.cts +5 -1
  680. package/dist/generated/model/documentRelation.d.ts +5 -1
  681. package/dist/generated/model/documentRelation.d.ts.map +1 -1
  682. package/dist/generated/model/documentRelationRelatedDocument.d.cts +28 -0
  683. package/dist/generated/model/documentRelationRelatedDocument.d.ts +28 -0
  684. package/dist/generated/model/documentRelationRelatedDocument.d.ts.map +1 -0
  685. package/dist/generated/model/documentRelationRelatedDocumentTitleType.d.cts +16 -0
  686. package/dist/generated/model/documentRelationRelatedDocumentTitleType.d.ts +16 -0
  687. package/dist/generated/model/documentRelationRelatedDocumentTitleType.d.ts.map +1 -0
  688. package/dist/generated/model/documentRelationRelatedDocumentType.d.cts +19 -0
  689. package/dist/generated/model/documentRelationRelatedDocumentType.d.ts +19 -0
  690. package/dist/generated/model/documentRelationRelatedDocumentType.d.ts.map +1 -0
  691. package/dist/generated/model/documentRelationSourceType.d.cts +1 -1
  692. package/dist/generated/model/documentRelationSourceType.d.ts +1 -1
  693. package/dist/generated/model/documentRelationTargetType.d.cts +1 -1
  694. package/dist/generated/model/documentRelationTargetType.d.ts +1 -1
  695. package/dist/generated/model/documentSummaryTax.d.cts +7 -3
  696. package/dist/generated/model/documentSummaryTax.d.ts +7 -3
  697. package/dist/generated/model/documentSummaryTax.d.ts.map +1 -1
  698. package/dist/generated/model/documentVersion.d.cts +1 -1
  699. package/dist/generated/model/documentVersion.d.ts +1 -1
  700. package/dist/generated/model/documentVersionDocumentType.d.cts +1 -1
  701. package/dist/generated/model/documentVersionDocumentType.d.ts +1 -1
  702. package/dist/generated/model/documentVersionList.d.cts +1 -1
  703. package/dist/generated/model/documentVersionList.d.ts +1 -1
  704. package/dist/generated/model/documentVersionSnapshot.d.cts +1 -1
  705. package/dist/generated/model/documentVersionSnapshot.d.ts +1 -1
  706. package/dist/generated/model/eInvoicingCustomerSearchRequest.d.cts +24 -0
  707. package/dist/generated/model/eInvoicingCustomerSearchRequest.d.ts +24 -0
  708. package/dist/generated/model/eInvoicingCustomerSearchRequest.d.ts.map +1 -0
  709. package/dist/generated/model/eInvoicingCustomerSearchResult.d.cts +18 -0
  710. package/dist/generated/model/eInvoicingCustomerSearchResult.d.ts +18 -0
  711. package/dist/generated/model/eInvoicingCustomerSearchResult.d.ts.map +1 -0
  712. package/dist/generated/model/eInvoicingSettingsResponse.d.cts +17 -0
  713. package/dist/generated/model/eInvoicingSettingsResponse.d.ts +17 -0
  714. package/dist/generated/model/eInvoicingSettingsResponse.d.ts.map +1 -0
  715. package/dist/generated/model/eInvoicingSubmission.d.cts +62 -0
  716. package/dist/generated/model/eInvoicingSubmission.d.ts +62 -0
  717. package/dist/generated/model/eInvoicingSubmission.d.ts.map +1 -0
  718. package/dist/generated/model/eInvoicingSubmissionDetail.d.cts +64 -0
  719. package/dist/generated/model/eInvoicingSubmissionDetail.d.ts +64 -0
  720. package/dist/generated/model/eInvoicingSubmissionDetail.d.ts.map +1 -0
  721. package/dist/generated/model/eInvoicingSubmissionDetailMetadata.d.cts +11 -0
  722. package/dist/generated/model/eInvoicingSubmissionDetailMetadata.d.ts +11 -0
  723. package/dist/generated/model/eInvoicingSubmissionDetailMetadata.d.ts.map +1 -0
  724. package/dist/generated/model/eInvoicingSubmissionMetadata.d.cts +11 -0
  725. package/dist/generated/model/eInvoicingSubmissionMetadata.d.ts +11 -0
  726. package/dist/generated/model/eInvoicingSubmissionMetadata.d.ts.map +1 -0
  727. package/dist/generated/model/eInvoicingSupplier.d.cts +96 -0
  728. package/dist/generated/model/eInvoicingSupplier.d.ts +96 -0
  729. package/dist/generated/model/eInvoicingSupplier.d.ts.map +1 -0
  730. package/dist/generated/model/eInvoicingSupplierMetadata.d.cts +11 -0
  731. package/dist/generated/model/eInvoicingSupplierMetadata.d.ts +11 -0
  732. package/dist/generated/model/eInvoicingSupplierMetadata.d.ts.map +1 -0
  733. package/dist/generated/model/electronicDeviceSuccessResponse.d.cts +1 -1
  734. package/dist/generated/model/electronicDeviceSuccessResponse.d.ts +1 -1
  735. package/dist/generated/model/entity.d.cts +30 -3
  736. package/dist/generated/model/entity.d.ts +30 -3
  737. package/dist/generated/model/entity.d.ts.map +1 -1
  738. package/dist/generated/model/entityApiKey.d.cts +6 -1
  739. package/dist/generated/model/entityApiKey.d.ts +6 -1
  740. package/dist/generated/model/entityApiKey.d.ts.map +1 -1
  741. package/dist/generated/model/entityApiKeyEnvironment.d.cts +1 -1
  742. package/dist/generated/model/entityApiKeyEnvironment.d.ts +1 -1
  743. package/dist/generated/model/entityApiKeyListItem.d.cts +1 -1
  744. package/dist/generated/model/entityApiKeyListItem.d.ts +1 -1
  745. package/dist/generated/model/entityApiKeysList.d.cts +1 -1
  746. package/dist/generated/model/entityApiKeysList.d.ts +1 -1
  747. package/dist/generated/model/entityBankAccount.d.cts +41 -17
  748. package/dist/generated/model/entityBankAccount.d.ts +41 -17
  749. package/dist/generated/model/entityBankAccount.d.ts.map +1 -1
  750. package/dist/generated/model/entityBankAccountType.d.cts +1 -1
  751. package/dist/generated/model/entityBankAccountType.d.ts +1 -1
  752. package/dist/generated/model/entityEnvironment.d.cts +1 -1
  753. package/dist/generated/model/entityEnvironment.d.ts +1 -1
  754. package/dist/generated/model/entityInvitation.d.cts +1 -1
  755. package/dist/generated/model/entityInvitation.d.ts +1 -1
  756. package/dist/generated/model/entityInvitationRole.d.cts +1 -1
  757. package/dist/generated/model/entityInvitationRole.d.ts +1 -1
  758. package/dist/generated/model/entityInvitationStatus.d.cts +1 -1
  759. package/dist/generated/model/entityInvitationStatus.d.ts +1 -1
  760. package/dist/generated/model/entityInvitationsList.d.cts +1 -1
  761. package/dist/generated/model/entityInvitationsList.d.ts +1 -1
  762. package/dist/generated/model/entityMetadata.d.cts +8 -4
  763. package/dist/generated/model/entityMetadata.d.ts +8 -4
  764. package/dist/generated/model/entityMetadata.d.ts.map +1 -1
  765. package/dist/generated/model/entitySettings.d.cts +76 -1
  766. package/dist/generated/model/entitySettings.d.ts +76 -1
  767. package/dist/generated/model/entitySettings.d.ts.map +1 -1
  768. package/dist/generated/model/entitySettingsCalculation.d.cts +19 -0
  769. package/dist/generated/model/entitySettingsCalculation.d.ts +19 -0
  770. package/dist/generated/model/entitySettingsCalculation.d.ts.map +1 -0
  771. package/dist/generated/model/entitySettingsEInvoicing.d.cts +22 -0
  772. package/dist/generated/model/entitySettingsEInvoicing.d.ts +22 -0
  773. package/dist/generated/model/entitySettingsEInvoicing.d.ts.map +1 -0
  774. package/dist/generated/model/entitySettingsEmailDefaults.d.cts +35 -5
  775. package/dist/generated/model/entitySettingsEmailDefaults.d.ts +35 -5
  776. package/dist/generated/model/entitySettingsEmailDefaults.d.ts.map +1 -1
  777. package/dist/generated/model/entitySettingsEpcQr.d.cts +1 -1
  778. package/dist/generated/model/entitySettingsEpcQr.d.ts +1 -1
  779. package/dist/generated/model/entitySettingsFina.d.cts +6 -1
  780. package/dist/generated/model/entitySettingsFina.d.ts +6 -1
  781. package/dist/generated/model/entitySettingsFina.d.ts.map +1 -1
  782. package/dist/generated/model/entitySettingsFurs.d.cts +5 -1
  783. package/dist/generated/model/entitySettingsFurs.d.ts +5 -1
  784. package/dist/generated/model/entitySettingsFurs.d.ts.map +1 -1
  785. package/dist/generated/model/entitySettingsNumberFormats.d.cts +1 -1
  786. package/dist/generated/model/entitySettingsNumberFormats.d.ts +1 -1
  787. package/dist/generated/model/entitySettingsOverdueNotifications.d.cts +1 -1
  788. package/dist/generated/model/entitySettingsOverdueNotifications.d.ts +1 -1
  789. package/dist/generated/model/entitySettingsPdfTemplate.d.cts +2 -1
  790. package/dist/generated/model/entitySettingsPdfTemplate.d.ts +2 -1
  791. package/dist/generated/model/entitySettingsPdfTemplate.d.ts.map +1 -1
  792. package/dist/generated/model/entitySettingsPt.d.cts +29 -0
  793. package/dist/generated/model/entitySettingsPt.d.ts +29 -0
  794. package/dist/generated/model/entitySettingsPt.d.ts.map +1 -0
  795. package/dist/generated/model/entitySettingsSlovenia.d.cts +221 -0
  796. package/dist/generated/model/entitySettingsSlovenia.d.ts +221 -0
  797. package/dist/generated/model/entitySettingsSlovenia.d.ts.map +1 -0
  798. package/dist/generated/model/entitySettingsTaxClauseDefaults.d.cts +12 -2
  799. package/dist/generated/model/entitySettingsTaxClauseDefaults.d.ts +12 -2
  800. package/dist/generated/model/entitySettingsTaxClauseDefaults.d.ts.map +1 -1
  801. package/dist/generated/model/entitySettingsUpnQr.d.cts +1 -1
  802. package/dist/generated/model/entitySettingsUpnQr.d.ts +1 -1
  803. package/dist/generated/model/entityUser.d.cts +1 -1
  804. package/dist/generated/model/entityUser.d.ts +1 -1
  805. package/dist/generated/model/entityUserRole.d.cts +1 -1
  806. package/dist/generated/model/entityUserRole.d.ts +1 -1
  807. package/dist/generated/model/entityUsersList.d.cts +1 -1
  808. package/dist/generated/model/entityUsersList.d.ts +1 -1
  809. package/dist/generated/model/error.d.cts +1 -1
  810. package/dist/generated/model/error.d.ts +1 -1
  811. package/dist/generated/model/eslogData.d.cts +1 -1
  812. package/dist/generated/model/eslogData.d.ts +1 -1
  813. package/dist/generated/model/eslogExportByDateRange.d.cts +26 -0
  814. package/dist/generated/model/eslogExportByDateRange.d.ts +26 -0
  815. package/dist/generated/model/eslogExportByDateRange.d.ts.map +1 -0
  816. package/dist/generated/model/eslogExportByDateRangeTypesItem.d.cts +17 -0
  817. package/dist/generated/model/eslogExportByDateRangeTypesItem.d.ts +17 -0
  818. package/dist/generated/model/eslogExportByDateRangeTypesItem.d.ts.map +1 -0
  819. package/dist/generated/model/eslogExportByDocumentIds.d.cts +15 -0
  820. package/dist/generated/model/eslogExportByDocumentIds.d.ts +15 -0
  821. package/dist/generated/model/eslogExportByDocumentIds.d.ts.map +1 -0
  822. package/dist/generated/model/eslogInput.d.cts +1 -1
  823. package/dist/generated/model/eslogInput.d.ts +1 -1
  824. package/dist/generated/model/estimate.d.cts +30 -6
  825. package/dist/generated/model/estimate.d.ts +30 -6
  826. package/dist/generated/model/estimate.d.ts.map +1 -1
  827. package/dist/generated/model/estimateCalculationMode.d.cts +16 -0
  828. package/dist/generated/model/estimateCalculationMode.d.ts +16 -0
  829. package/dist/generated/model/estimateCalculationMode.d.ts.map +1 -0
  830. package/dist/generated/model/estimateItem.d.cts +28 -13
  831. package/dist/generated/model/estimateItem.d.ts +28 -13
  832. package/dist/generated/model/estimateItem.d.ts.map +1 -1
  833. package/dist/generated/model/estimateItemClassification.d.cts +18 -0
  834. package/dist/generated/model/estimateItemClassification.d.ts +18 -0
  835. package/dist/generated/model/estimateItemClassification.d.ts.map +1 -0
  836. package/dist/generated/model/estimateItemMetadata.d.cts +1 -1
  837. package/dist/generated/model/estimateItemMetadata.d.ts +1 -1
  838. package/dist/generated/model/estimateItemType.d.cts +16 -0
  839. package/dist/generated/model/estimateItemType.d.ts +16 -0
  840. package/dist/generated/model/estimateItemType.d.ts.map +1 -0
  841. package/dist/generated/model/estimateList.d.cts +1 -1
  842. package/dist/generated/model/estimateList.d.ts +1 -1
  843. package/dist/generated/model/estimateMetadata.d.cts +1 -1
  844. package/dist/generated/model/estimateMetadata.d.ts +1 -1
  845. package/dist/generated/model/estimatePt.d.cts +11 -0
  846. package/dist/generated/model/estimatePt.d.ts +11 -0
  847. package/dist/generated/model/estimatePt.d.ts.map +1 -0
  848. package/dist/generated/model/estimateTitleType.d.cts +3 -3
  849. package/dist/generated/model/estimateTitleType.d.ts +3 -3
  850. package/dist/generated/model/estimateTransactionType.d.cts +3 -1
  851. package/dist/generated/model/estimateTransactionType.d.ts +3 -1
  852. package/dist/generated/model/estimateTransactionType.d.ts.map +1 -1
  853. package/dist/generated/model/exchangeRate.d.cts +1 -1
  854. package/dist/generated/model/exchangeRate.d.ts +1 -1
  855. package/dist/generated/model/exportDocumentsFormat.d.cts +1 -1
  856. package/dist/generated/model/exportDocumentsFormat.d.ts +1 -1
  857. package/dist/generated/model/exportDocumentsLanguage.d.cts +14 -2
  858. package/dist/generated/model/exportDocumentsLanguage.d.ts +14 -2
  859. package/dist/generated/model/exportDocumentsLanguage.d.ts.map +1 -1
  860. package/dist/generated/model/exportDocumentsParams.d.cts +2 -2
  861. package/dist/generated/model/exportDocumentsParams.d.ts +2 -2
  862. package/dist/generated/model/exportDocumentsType.d.cts +1 -1
  863. package/dist/generated/model/exportDocumentsType.d.ts +1 -1
  864. package/dist/generated/model/exportSalesPerItemFormat.d.cts +1 -1
  865. package/dist/generated/model/exportSalesPerItemFormat.d.ts +1 -1
  866. package/dist/generated/model/exportSalesPerItemLanguage.d.cts +10 -2
  867. package/dist/generated/model/exportSalesPerItemLanguage.d.ts +10 -2
  868. package/dist/generated/model/exportSalesPerItemLanguage.d.ts.map +1 -1
  869. package/dist/generated/model/exportSalesPerItemParams.d.cts +2 -2
  870. package/dist/generated/model/exportSalesPerItemParams.d.ts +2 -2
  871. package/dist/generated/model/exportSloveniaVodXmlBody.d.cts +14 -0
  872. package/dist/generated/model/exportSloveniaVodXmlBody.d.ts +14 -0
  873. package/dist/generated/model/exportSloveniaVodXmlBody.d.ts.map +1 -0
  874. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBody.d.cts +18 -0
  875. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBody.d.ts +18 -0
  876. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBody.d.ts.map +1 -0
  877. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBodyManualValues.d.cts +35 -0
  878. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBodyManualValues.d.ts +35 -0
  879. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBodyManualValues.d.ts.map +1 -0
  880. package/dist/generated/model/featureCheck.d.cts +1 -1
  881. package/dist/generated/model/featureCheck.d.ts +1 -1
  882. package/dist/generated/model/fileMetadata.d.cts +2 -4
  883. package/dist/generated/model/fileMetadata.d.ts +2 -4
  884. package/dist/generated/model/fileMetadata.d.ts.map +1 -1
  885. package/dist/generated/model/fileMetadataBase.d.cts +6 -1
  886. package/dist/generated/model/fileMetadataBase.d.ts +6 -1
  887. package/dist/generated/model/fileMetadataBase.d.ts.map +1 -1
  888. package/dist/generated/model/fileMetadataBaseMetadata.d.cts +1 -1
  889. package/dist/generated/model/fileMetadataBaseMetadata.d.ts +1 -1
  890. package/dist/generated/model/finaBusinessPremise.d.cts +2 -2
  891. package/dist/generated/model/finaBusinessPremise.d.ts +2 -2
  892. package/dist/generated/model/finaBusinessPremise.d.ts.map +1 -1
  893. package/dist/generated/model/finaElectronicDevice.d.cts +2 -2
  894. package/dist/generated/model/finaElectronicDevice.d.ts +2 -2
  895. package/dist/generated/model/finaElectronicDevice.d.ts.map +1 -1
  896. package/dist/generated/model/finaElectronicDeviceSuccessResponse.d.cts +3 -3
  897. package/dist/generated/model/finaElectronicDeviceSuccessResponse.d.ts +3 -3
  898. package/dist/generated/model/finaElectronicDeviceSuccessResponse.d.ts.map +1 -1
  899. package/dist/generated/model/finaFiscalizationResponse.d.cts +4 -4
  900. package/dist/generated/model/finaFiscalizationResponse.d.ts +4 -4
  901. package/dist/generated/model/finaFiscalizationResponse.d.ts.map +1 -1
  902. package/dist/generated/model/finaMovablePremise.d.cts +1 -1
  903. package/dist/generated/model/finaMovablePremise.d.ts +1 -1
  904. package/dist/generated/model/finaPremiseSuccessResponse.d.cts +3 -3
  905. package/dist/generated/model/finaPremiseSuccessResponse.d.ts +3 -3
  906. package/dist/generated/model/finaPremiseSuccessResponse.d.ts.map +1 -1
  907. package/dist/generated/model/finaRealEstatePremise.d.cts +1 -1
  908. package/dist/generated/model/finaRealEstatePremise.d.ts +1 -1
  909. package/dist/generated/model/finalizeDocumentBody.d.cts +14 -0
  910. package/dist/generated/model/finalizeDocumentBody.d.ts +14 -0
  911. package/dist/generated/model/finalizeDocumentBody.d.ts.map +1 -0
  912. package/dist/generated/model/finalizeDocumentParams.d.cts +3 -3
  913. package/dist/generated/model/finalizeDocumentParams.d.ts +3 -3
  914. package/dist/generated/model/finalizeDocumentParams.d.ts.map +1 -1
  915. package/dist/generated/model/finalizeDocumentType.d.cts +1 -1
  916. package/dist/generated/model/finalizeDocumentType.d.ts +1 -1
  917. package/dist/generated/model/fiscalizeDocumentParams.d.cts +3 -3
  918. package/dist/generated/model/fiscalizeDocumentParams.d.ts +3 -3
  919. package/dist/generated/model/fiscalizeDocumentParams.d.ts.map +1 -1
  920. package/dist/generated/model/fiscalizeDocumentType.d.cts +1 -1
  921. package/dist/generated/model/fiscalizeDocumentType.d.ts +1 -1
  922. package/dist/generated/model/fursBusinessPremise.d.cts +1 -1
  923. package/dist/generated/model/fursBusinessPremise.d.ts +1 -1
  924. package/dist/generated/model/fursElectronicDevice.d.cts +1 -1
  925. package/dist/generated/model/fursElectronicDevice.d.ts +1 -1
  926. package/dist/generated/model/fursFiscalizationResponse.d.cts +1 -1
  927. package/dist/generated/model/fursFiscalizationResponse.d.ts +1 -1
  928. package/dist/generated/model/fursPremiseSuccessResponse.d.cts +1 -1
  929. package/dist/generated/model/fursPremiseSuccessResponse.d.ts +1 -1
  930. package/dist/generated/model/fursPremiseSuccessResponseEnvironment.d.cts +1 -1
  931. package/dist/generated/model/fursPremiseSuccessResponseEnvironment.d.ts +1 -1
  932. package/dist/generated/model/generateKirExportParams.d.cts +1 -1
  933. package/dist/generated/model/generateKirExportParams.d.ts +1 -1
  934. package/dist/generated/model/generatePtSaftReportParams.d.cts +18 -0
  935. package/dist/generated/model/generatePtSaftReportParams.d.ts +18 -0
  936. package/dist/generated/model/generatePtSaftReportParams.d.ts.map +1 -0
  937. package/dist/generated/model/generateUserTokenResponse.d.cts +1 -1
  938. package/dist/generated/model/generateUserTokenResponse.d.ts +1 -1
  939. package/dist/generated/model/genericDocument.d.cts +1 -1
  940. package/dist/generated/model/genericDocument.d.ts +1 -1
  941. package/dist/generated/model/getAccountWebhookDeliveries200.d.cts +14 -0
  942. package/dist/generated/model/getAccountWebhookDeliveries200.d.ts +14 -0
  943. package/dist/generated/model/getAccountWebhookDeliveries200.d.ts.map +1 -0
  944. package/dist/generated/model/getAccountWebhookDeliveriesParams.d.cts +30 -0
  945. package/dist/generated/model/getAccountWebhookDeliveriesParams.d.ts +30 -0
  946. package/dist/generated/model/getAccountWebhookDeliveriesParams.d.ts.map +1 -0
  947. package/dist/generated/model/getAccountWebhooks200.d.cts +14 -0
  948. package/dist/generated/model/getAccountWebhooks200.d.ts +14 -0
  949. package/dist/generated/model/getAccountWebhooks200.d.ts.map +1 -0
  950. package/dist/generated/model/getAccountWebhooksParams.d.cts +30 -0
  951. package/dist/generated/model/getAccountWebhooksParams.d.ts +30 -0
  952. package/dist/generated/model/getAccountWebhooksParams.d.ts.map +1 -0
  953. package/dist/generated/model/getActivePtAtcudSeriesDocumentType.d.cts +15 -0
  954. package/dist/generated/model/getActivePtAtcudSeriesDocumentType.d.ts +15 -0
  955. package/dist/generated/model/getActivePtAtcudSeriesDocumentType.d.ts.map +1 -0
  956. package/dist/generated/model/getActivePtAtcudSeriesParams.d.cts +12 -0
  957. package/dist/generated/model/getActivePtAtcudSeriesParams.d.ts +12 -0
  958. package/dist/generated/model/getActivePtAtcudSeriesParams.d.ts.map +1 -0
  959. package/dist/generated/model/getActivities200.d.cts +1 -1
  960. package/dist/generated/model/getActivities200.d.ts +1 -1
  961. package/dist/generated/model/getActivities200DataItem.d.cts +1 -1
  962. package/dist/generated/model/getActivities200DataItem.d.ts +1 -1
  963. package/dist/generated/model/getActivities200DataItemActorType.d.cts +1 -1
  964. package/dist/generated/model/getActivities200DataItemActorType.d.ts +1 -1
  965. package/dist/generated/model/getActivities200DataItemDetails.d.cts +1 -1
  966. package/dist/generated/model/getActivities200DataItemDetails.d.ts +1 -1
  967. package/dist/generated/model/getActivitiesParams.d.cts +6 -3
  968. package/dist/generated/model/getActivitiesParams.d.ts +6 -3
  969. package/dist/generated/model/getActivitiesParams.d.ts.map +1 -1
  970. package/dist/generated/model/getAdvanceInvoiceByIdParams.d.cts +1 -1
  971. package/dist/generated/model/getAdvanceInvoiceByIdParams.d.ts +1 -1
  972. package/dist/generated/model/getAdvanceInvoicesParams.d.cts +6 -3
  973. package/dist/generated/model/getAdvanceInvoicesParams.d.ts +6 -3
  974. package/dist/generated/model/getAdvanceInvoicesParams.d.ts.map +1 -1
  975. package/dist/generated/model/getCreditNoteByIdParams.d.cts +1 -1
  976. package/dist/generated/model/getCreditNoteByIdParams.d.ts +1 -1
  977. package/dist/generated/model/getCreditNotesParams.d.cts +6 -3
  978. package/dist/generated/model/getCreditNotesParams.d.ts +6 -3
  979. package/dist/generated/model/getCreditNotesParams.d.ts.map +1 -1
  980. package/dist/generated/model/getCustomers200.d.cts +1 -1
  981. package/dist/generated/model/getCustomers200.d.ts +1 -1
  982. package/dist/generated/model/getCustomersParams.d.cts +6 -3
  983. package/dist/generated/model/getCustomersParams.d.ts +6 -3
  984. package/dist/generated/model/getCustomersParams.d.ts.map +1 -1
  985. package/dist/generated/model/getDeliveryNoteByIdParams.d.cts +1 -1
  986. package/dist/generated/model/getDeliveryNoteByIdParams.d.ts +1 -1
  987. package/dist/generated/model/getDeliveryNotesParams.d.cts +6 -3
  988. package/dist/generated/model/getDeliveryNotesParams.d.ts +6 -3
  989. package/dist/generated/model/getDeliveryNotesParams.d.ts.map +1 -1
  990. package/dist/generated/model/getEntities200.d.cts +3 -3
  991. package/dist/generated/model/getEntities200.d.ts +3 -3
  992. package/dist/generated/model/getEntities200.d.ts.map +1 -1
  993. package/dist/generated/model/getEntitiesEnvironment.d.cts +1 -1
  994. package/dist/generated/model/getEntitiesEnvironment.d.ts +1 -1
  995. package/dist/generated/model/getEntitiesParams.d.cts +6 -3
  996. package/dist/generated/model/getEntitiesParams.d.ts +6 -3
  997. package/dist/generated/model/getEntitiesParams.d.ts.map +1 -1
  998. package/dist/generated/model/getEslogExportStatus200.d.cts +43 -0
  999. package/dist/generated/model/getEslogExportStatus200.d.ts +43 -0
  1000. package/dist/generated/model/getEslogExportStatus200.d.ts.map +1 -0
  1001. package/dist/generated/model/getEslogExportStatus200Result.d.cts +18 -0
  1002. package/dist/generated/model/getEslogExportStatus200Result.d.ts +18 -0
  1003. package/dist/generated/model/getEslogExportStatus200Result.d.ts.map +1 -0
  1004. package/dist/generated/model/getEslogExportStatus200Status.d.cts +18 -0
  1005. package/dist/generated/model/getEslogExportStatus200Status.d.ts +18 -0
  1006. package/dist/generated/model/getEslogExportStatus200Status.d.ts.map +1 -0
  1007. package/dist/generated/model/getEstimateByIdParams.d.cts +1 -1
  1008. package/dist/generated/model/getEstimateByIdParams.d.ts +1 -1
  1009. package/dist/generated/model/getEstimatesParams.d.cts +6 -3
  1010. package/dist/generated/model/getEstimatesParams.d.ts +6 -3
  1011. package/dist/generated/model/getEstimatesParams.d.ts.map +1 -1
  1012. package/dist/generated/model/getFiles200.d.cts +1 -1
  1013. package/dist/generated/model/getFiles200.d.ts +1 -1
  1014. package/dist/generated/model/getFilesCategory.d.cts +1 -1
  1015. package/dist/generated/model/getFilesCategory.d.ts +1 -1
  1016. package/dist/generated/model/getFilesParams.d.cts +7 -3
  1017. package/dist/generated/model/getFilesParams.d.ts +7 -3
  1018. package/dist/generated/model/getFilesParams.d.ts.map +1 -1
  1019. package/dist/generated/model/getFinaCertificate200.d.cts +1 -1
  1020. package/dist/generated/model/getFinaCertificate200.d.ts +1 -1
  1021. package/dist/generated/model/getFinaSettings200.d.cts +15 -6
  1022. package/dist/generated/model/getFinaSettings200.d.ts +15 -6
  1023. package/dist/generated/model/getFinaSettings200.d.ts.map +1 -1
  1024. package/dist/generated/model/getFinaSettings200CertificateStatus.d.cts +1 -1
  1025. package/dist/generated/model/getFinaSettings200CertificateStatus.d.ts +1 -1
  1026. package/dist/generated/model/getFinaSettings200NumberingSequence.d.cts +1 -1
  1027. package/dist/generated/model/getFinaSettings200NumberingSequence.d.ts +1 -1
  1028. package/dist/generated/model/getFursCertificate200.d.cts +1 -1
  1029. package/dist/generated/model/getFursCertificate200.d.ts +1 -1
  1030. package/dist/generated/model/getFursSettings200.d.cts +3 -1
  1031. package/dist/generated/model/getFursSettings200.d.ts +3 -1
  1032. package/dist/generated/model/getFursSettings200.d.ts.map +1 -1
  1033. package/dist/generated/model/getFursSettings200CertificateStatus.d.cts +1 -1
  1034. package/dist/generated/model/getFursSettings200CertificateStatus.d.ts +1 -1
  1035. package/dist/generated/model/getFursSettings200NumberingStrategy.d.cts +1 -1
  1036. package/dist/generated/model/getFursSettings200NumberingStrategy.d.ts +1 -1
  1037. package/dist/generated/model/getIncomingPurchaseDocumentAttachments200.d.cts +14 -0
  1038. package/dist/generated/model/getIncomingPurchaseDocumentAttachments200.d.ts +14 -0
  1039. package/dist/generated/model/getIncomingPurchaseDocumentAttachments200.d.ts.map +1 -0
  1040. package/dist/generated/model/getIncomingPurchaseDocumentPayments200.d.cts +14 -0
  1041. package/dist/generated/model/getIncomingPurchaseDocumentPayments200.d.ts +14 -0
  1042. package/dist/generated/model/getIncomingPurchaseDocumentPayments200.d.ts.map +1 -0
  1043. package/dist/generated/model/getIncomingPurchaseDocuments200.d.cts +14 -0
  1044. package/dist/generated/model/getIncomingPurchaseDocuments200.d.ts +14 -0
  1045. package/dist/generated/model/getIncomingPurchaseDocuments200.d.ts.map +1 -0
  1046. package/dist/generated/model/getIncomingPurchaseDocumentsIsDraft.d.cts +13 -0
  1047. package/dist/generated/model/getIncomingPurchaseDocumentsIsDraft.d.ts +13 -0
  1048. package/dist/generated/model/getIncomingPurchaseDocumentsIsDraft.d.ts.map +1 -0
  1049. package/dist/generated/model/getIncomingPurchaseDocumentsParams.d.cts +60 -0
  1050. package/dist/generated/model/getIncomingPurchaseDocumentsParams.d.ts +60 -0
  1051. package/dist/generated/model/getIncomingPurchaseDocumentsParams.d.ts.map +1 -0
  1052. package/dist/generated/model/getInvoiceByIdParams.d.cts +1 -1
  1053. package/dist/generated/model/getInvoiceByIdParams.d.ts +1 -1
  1054. package/dist/generated/model/getInvoicesParams.d.cts +7 -4
  1055. package/dist/generated/model/getInvoicesParams.d.ts +7 -4
  1056. package/dist/generated/model/getInvoicesParams.d.ts.map +1 -1
  1057. package/dist/generated/model/getItems200.d.cts +3 -3
  1058. package/dist/generated/model/getItems200.d.ts +3 -3
  1059. package/dist/generated/model/getItems200.d.ts.map +1 -1
  1060. package/dist/generated/model/getItemsParams.d.cts +6 -3
  1061. package/dist/generated/model/getItemsParams.d.ts +6 -3
  1062. package/dist/generated/model/getItemsParams.d.ts.map +1 -1
  1063. package/dist/generated/model/getNextDocumentNumberParams.d.cts +3 -3
  1064. package/dist/generated/model/getNextDocumentNumberParams.d.ts +3 -3
  1065. package/dist/generated/model/getNextDocumentNumberType.d.cts +1 -1
  1066. package/dist/generated/model/getNextDocumentNumberType.d.ts +1 -1
  1067. package/dist/generated/model/getOrderIntegrations200.d.cts +1 -1
  1068. package/dist/generated/model/getOrderIntegrations200.d.ts +1 -1
  1069. package/dist/generated/model/getOrderIntegrationsParams.d.cts +6 -3
  1070. package/dist/generated/model/getOrderIntegrationsParams.d.ts +6 -3
  1071. package/dist/generated/model/getOrderIntegrationsParams.d.ts.map +1 -1
  1072. package/dist/generated/model/getOrders200.d.cts +1 -1
  1073. package/dist/generated/model/getOrders200.d.ts +1 -1
  1074. package/dist/generated/model/getOrdersParams.d.cts +6 -3
  1075. package/dist/generated/model/getOrdersParams.d.ts +6 -3
  1076. package/dist/generated/model/getOrdersParams.d.ts.map +1 -1
  1077. package/dist/generated/model/getPaymentByIdParams.d.cts +4 -2
  1078. package/dist/generated/model/getPaymentByIdParams.d.ts +4 -2
  1079. package/dist/generated/model/getPaymentByIdParams.d.ts.map +1 -1
  1080. package/dist/generated/model/getPayments200.d.cts +1 -1
  1081. package/dist/generated/model/getPayments200.d.ts +1 -1
  1082. package/dist/generated/model/getPaymentsParams.d.cts +10 -5
  1083. package/dist/generated/model/getPaymentsParams.d.ts +10 -5
  1084. package/dist/generated/model/getPaymentsParams.d.ts.map +1 -1
  1085. package/dist/generated/model/getPdfExportStatus200.d.cts +13 -2
  1086. package/dist/generated/model/getPdfExportStatus200.d.ts +13 -2
  1087. package/dist/generated/model/getPdfExportStatus200.d.ts.map +1 -1
  1088. package/dist/generated/model/getPdfExportStatus200Result.d.cts +18 -0
  1089. package/dist/generated/model/getPdfExportStatus200Result.d.ts +18 -0
  1090. package/dist/generated/model/getPdfExportStatus200Result.d.ts.map +1 -0
  1091. package/dist/generated/model/getPdfExportStatus200Status.d.cts +1 -1
  1092. package/dist/generated/model/getPdfExportStatus200Status.d.ts +1 -1
  1093. package/dist/generated/model/getRecurringInvoices200.d.cts +1 -1
  1094. package/dist/generated/model/getRecurringInvoices200.d.ts +1 -1
  1095. package/dist/generated/model/getRecurringInvoicesParams.d.cts +6 -3
  1096. package/dist/generated/model/getRecurringInvoicesParams.d.ts +6 -3
  1097. package/dist/generated/model/getRecurringInvoicesParams.d.ts.map +1 -1
  1098. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLanguage.d.cts +29 -0
  1099. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLanguage.d.ts +29 -0
  1100. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLanguage.d.ts.map +1 -0
  1101. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLocale.d.cts +9 -1
  1102. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLocale.d.ts +9 -1
  1103. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLocale.d.ts.map +1 -1
  1104. package/dist/generated/model/getShareableAdvanceInvoiceHtmlParams.d.cts +7 -2
  1105. package/dist/generated/model/getShareableAdvanceInvoiceHtmlParams.d.ts +7 -2
  1106. package/dist/generated/model/getShareableAdvanceInvoiceHtmlParams.d.ts.map +1 -1
  1107. package/dist/generated/model/getShareableAdvanceInvoicePdfLanguage.d.cts +29 -0
  1108. package/dist/generated/model/getShareableAdvanceInvoicePdfLanguage.d.ts +29 -0
  1109. package/dist/generated/model/getShareableAdvanceInvoicePdfLanguage.d.ts.map +1 -0
  1110. package/dist/generated/model/getShareableAdvanceInvoicePdfLocale.d.cts +9 -1
  1111. package/dist/generated/model/getShareableAdvanceInvoicePdfLocale.d.ts +9 -1
  1112. package/dist/generated/model/getShareableAdvanceInvoicePdfLocale.d.ts.map +1 -1
  1113. package/dist/generated/model/getShareableAdvanceInvoicePdfParams.d.cts +7 -2
  1114. package/dist/generated/model/getShareableAdvanceInvoicePdfParams.d.ts +7 -2
  1115. package/dist/generated/model/getShareableAdvanceInvoicePdfParams.d.ts.map +1 -1
  1116. package/dist/generated/model/getShareableCreditNoteHtmlLanguage.d.cts +29 -0
  1117. package/dist/generated/model/getShareableCreditNoteHtmlLanguage.d.ts +29 -0
  1118. package/dist/generated/model/getShareableCreditNoteHtmlLanguage.d.ts.map +1 -0
  1119. package/dist/generated/model/getShareableCreditNoteHtmlLocale.d.cts +9 -1
  1120. package/dist/generated/model/getShareableCreditNoteHtmlLocale.d.ts +9 -1
  1121. package/dist/generated/model/getShareableCreditNoteHtmlLocale.d.ts.map +1 -1
  1122. package/dist/generated/model/getShareableCreditNoteHtmlParams.d.cts +7 -2
  1123. package/dist/generated/model/getShareableCreditNoteHtmlParams.d.ts +7 -2
  1124. package/dist/generated/model/getShareableCreditNoteHtmlParams.d.ts.map +1 -1
  1125. package/dist/generated/model/getShareableCreditNotePdfLanguage.d.cts +29 -0
  1126. package/dist/generated/model/getShareableCreditNotePdfLanguage.d.ts +29 -0
  1127. package/dist/generated/model/getShareableCreditNotePdfLanguage.d.ts.map +1 -0
  1128. package/dist/generated/model/getShareableCreditNotePdfLocale.d.cts +9 -1
  1129. package/dist/generated/model/getShareableCreditNotePdfLocale.d.ts +9 -1
  1130. package/dist/generated/model/getShareableCreditNotePdfLocale.d.ts.map +1 -1
  1131. package/dist/generated/model/getShareableCreditNotePdfParams.d.cts +7 -2
  1132. package/dist/generated/model/getShareableCreditNotePdfParams.d.ts +7 -2
  1133. package/dist/generated/model/getShareableCreditNotePdfParams.d.ts.map +1 -1
  1134. package/dist/generated/model/getShareableDeliveryNoteHtmlLanguage.d.cts +29 -0
  1135. package/dist/generated/model/getShareableDeliveryNoteHtmlLanguage.d.ts +29 -0
  1136. package/dist/generated/model/getShareableDeliveryNoteHtmlLanguage.d.ts.map +1 -0
  1137. package/dist/generated/model/getShareableDeliveryNoteHtmlLocale.d.cts +9 -1
  1138. package/dist/generated/model/getShareableDeliveryNoteHtmlLocale.d.ts +9 -1
  1139. package/dist/generated/model/getShareableDeliveryNoteHtmlLocale.d.ts.map +1 -1
  1140. package/dist/generated/model/getShareableDeliveryNoteHtmlParams.d.cts +7 -2
  1141. package/dist/generated/model/getShareableDeliveryNoteHtmlParams.d.ts +7 -2
  1142. package/dist/generated/model/getShareableDeliveryNoteHtmlParams.d.ts.map +1 -1
  1143. package/dist/generated/model/getShareableDeliveryNotePdfLanguage.d.cts +29 -0
  1144. package/dist/generated/model/getShareableDeliveryNotePdfLanguage.d.ts +29 -0
  1145. package/dist/generated/model/getShareableDeliveryNotePdfLanguage.d.ts.map +1 -0
  1146. package/dist/generated/model/getShareableDeliveryNotePdfLocale.d.cts +9 -1
  1147. package/dist/generated/model/getShareableDeliveryNotePdfLocale.d.ts +9 -1
  1148. package/dist/generated/model/getShareableDeliveryNotePdfLocale.d.ts.map +1 -1
  1149. package/dist/generated/model/getShareableDeliveryNotePdfParams.d.cts +7 -2
  1150. package/dist/generated/model/getShareableDeliveryNotePdfParams.d.ts +7 -2
  1151. package/dist/generated/model/getShareableDeliveryNotePdfParams.d.ts.map +1 -1
  1152. package/dist/generated/model/getShareableEstimateHtmlLanguage.d.cts +29 -0
  1153. package/dist/generated/model/getShareableEstimateHtmlLanguage.d.ts +29 -0
  1154. package/dist/generated/model/getShareableEstimateHtmlLanguage.d.ts.map +1 -0
  1155. package/dist/generated/model/getShareableEstimateHtmlLocale.d.cts +9 -1
  1156. package/dist/generated/model/getShareableEstimateHtmlLocale.d.ts +9 -1
  1157. package/dist/generated/model/getShareableEstimateHtmlLocale.d.ts.map +1 -1
  1158. package/dist/generated/model/getShareableEstimateHtmlParams.d.cts +7 -2
  1159. package/dist/generated/model/getShareableEstimateHtmlParams.d.ts +7 -2
  1160. package/dist/generated/model/getShareableEstimateHtmlParams.d.ts.map +1 -1
  1161. package/dist/generated/model/getShareableEstimatePdfLanguage.d.cts +29 -0
  1162. package/dist/generated/model/getShareableEstimatePdfLanguage.d.ts +29 -0
  1163. package/dist/generated/model/getShareableEstimatePdfLanguage.d.ts.map +1 -0
  1164. package/dist/generated/model/getShareableEstimatePdfLocale.d.cts +9 -1
  1165. package/dist/generated/model/getShareableEstimatePdfLocale.d.ts +9 -1
  1166. package/dist/generated/model/getShareableEstimatePdfLocale.d.ts.map +1 -1
  1167. package/dist/generated/model/getShareableEstimatePdfParams.d.cts +7 -2
  1168. package/dist/generated/model/getShareableEstimatePdfParams.d.ts +7 -2
  1169. package/dist/generated/model/getShareableEstimatePdfParams.d.ts.map +1 -1
  1170. package/dist/generated/model/getShareableInvoiceHtmlLanguage.d.cts +29 -0
  1171. package/dist/generated/model/getShareableInvoiceHtmlLanguage.d.ts +29 -0
  1172. package/dist/generated/model/getShareableInvoiceHtmlLanguage.d.ts.map +1 -0
  1173. package/dist/generated/model/getShareableInvoiceHtmlLocale.d.cts +9 -1
  1174. package/dist/generated/model/getShareableInvoiceHtmlLocale.d.ts +9 -1
  1175. package/dist/generated/model/getShareableInvoiceHtmlLocale.d.ts.map +1 -1
  1176. package/dist/generated/model/getShareableInvoiceHtmlParams.d.cts +7 -2
  1177. package/dist/generated/model/getShareableInvoiceHtmlParams.d.ts +7 -2
  1178. package/dist/generated/model/getShareableInvoiceHtmlParams.d.ts.map +1 -1
  1179. package/dist/generated/model/getShareableInvoicePdfLanguage.d.cts +29 -0
  1180. package/dist/generated/model/getShareableInvoicePdfLanguage.d.ts +29 -0
  1181. package/dist/generated/model/getShareableInvoicePdfLanguage.d.ts.map +1 -0
  1182. package/dist/generated/model/getShareableInvoicePdfLocale.d.cts +9 -1
  1183. package/dist/generated/model/getShareableInvoicePdfLocale.d.ts +9 -1
  1184. package/dist/generated/model/getShareableInvoicePdfLocale.d.ts.map +1 -1
  1185. package/dist/generated/model/getShareableInvoicePdfParams.d.cts +7 -2
  1186. package/dist/generated/model/getShareableInvoicePdfParams.d.ts +7 -2
  1187. package/dist/generated/model/getShareableInvoicePdfParams.d.ts.map +1 -1
  1188. package/dist/generated/model/getSloveniaTaxProfile200.d.cts +50 -0
  1189. package/dist/generated/model/getSloveniaTaxProfile200.d.ts +50 -0
  1190. package/dist/generated/model/getSloveniaTaxProfile200.d.ts.map +1 -0
  1191. package/dist/generated/model/getSloveniaTaxProfile200AccountingExports.d.cts +18 -0
  1192. package/dist/generated/model/getSloveniaTaxProfile200AccountingExports.d.ts +18 -0
  1193. package/dist/generated/model/getSloveniaTaxProfile200AccountingExports.d.ts.map +1 -0
  1194. package/dist/generated/model/getSloveniaTaxProfile200AccountingExportsPreferredFormat.d.cts +18 -0
  1195. package/dist/generated/model/getSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts +18 -0
  1196. package/dist/generated/model/getSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts.map +1 -0
  1197. package/dist/generated/model/getSloveniaTaxProfile200BusinessForm.d.cts +19 -0
  1198. package/dist/generated/model/getSloveniaTaxProfile200BusinessForm.d.ts +19 -0
  1199. package/dist/generated/model/getSloveniaTaxProfile200BusinessForm.d.ts.map +1 -0
  1200. package/dist/generated/model/getSloveniaTaxProfile200BusinessFormSource.d.cts +14 -0
  1201. package/dist/generated/model/getSloveniaTaxProfile200BusinessFormSource.d.ts +14 -0
  1202. package/dist/generated/model/getSloveniaTaxProfile200BusinessFormSource.d.ts.map +1 -0
  1203. package/dist/generated/model/getSloveniaTaxProfile200IncomeTaxRegime.d.cts +17 -0
  1204. package/dist/generated/model/getSloveniaTaxProfile200IncomeTaxRegime.d.ts +17 -0
  1205. package/dist/generated/model/getSloveniaTaxProfile200IncomeTaxRegime.d.ts.map +1 -0
  1206. package/dist/generated/model/getSloveniaTaxProfile200InferredBusinessForm.d.cts +19 -0
  1207. package/dist/generated/model/getSloveniaTaxProfile200InferredBusinessForm.d.ts +19 -0
  1208. package/dist/generated/model/getSloveniaTaxProfile200InferredBusinessForm.d.ts.map +1 -0
  1209. package/dist/generated/model/getSloveniaTaxProfile200SupportedExports.d.cts +14 -0
  1210. package/dist/generated/model/getSloveniaTaxProfile200SupportedExports.d.ts +14 -0
  1211. package/dist/generated/model/getSloveniaTaxProfile200SupportedExports.d.ts.map +1 -0
  1212. package/dist/generated/model/getSloveniaTaxProfile200TaxResidency.d.cts +17 -0
  1213. package/dist/generated/model/getSloveniaTaxProfile200TaxResidency.d.ts +17 -0
  1214. package/dist/generated/model/getSloveniaTaxProfile200TaxResidency.d.ts.map +1 -0
  1215. package/dist/generated/model/getSloveniaTaxProfile200VatProfile.d.cts +18 -0
  1216. package/dist/generated/model/getSloveniaTaxProfile200VatProfile.d.ts +18 -0
  1217. package/dist/generated/model/getSloveniaTaxProfile200VatProfile.d.ts.map +1 -0
  1218. package/dist/generated/model/getSloveniaTaxProfile200YearlyReporting.d.cts +44 -0
  1219. package/dist/generated/model/getSloveniaTaxProfile200YearlyReporting.d.ts +44 -0
  1220. package/dist/generated/model/getSloveniaTaxProfile200YearlyReporting.d.ts.map +1 -0
  1221. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingAccountingType.d.cts +18 -0
  1222. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingAccountingType.d.ts +18 -0
  1223. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingAccountingType.d.ts.map +1 -0
  1224. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  1225. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  1226. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  1227. package/dist/generated/model/getSuppliers200.d.cts +14 -0
  1228. package/dist/generated/model/getSuppliers200.d.ts +14 -0
  1229. package/dist/generated/model/getSuppliers200.d.ts.map +1 -0
  1230. package/dist/generated/model/getSuppliersParams.d.cts +36 -0
  1231. package/dist/generated/model/getSuppliersParams.d.ts +36 -0
  1232. package/dist/generated/model/getSuppliersParams.d.ts.map +1 -0
  1233. package/dist/generated/model/getTaxes200.d.cts +3 -3
  1234. package/dist/generated/model/getTaxes200.d.ts +3 -3
  1235. package/dist/generated/model/getTaxes200.d.ts.map +1 -1
  1236. package/dist/generated/model/getTaxesParams.d.cts +6 -3
  1237. package/dist/generated/model/getTaxesParams.d.ts +6 -3
  1238. package/dist/generated/model/getTaxesParams.d.ts.map +1 -1
  1239. package/dist/generated/model/getWebhookDeliveries200.d.cts +1 -1
  1240. package/dist/generated/model/getWebhookDeliveries200.d.ts +1 -1
  1241. package/dist/generated/model/getWebhookDeliveriesParams.d.cts +3 -3
  1242. package/dist/generated/model/getWebhookDeliveriesParams.d.ts +3 -3
  1243. package/dist/generated/model/getWebhooks200.d.cts +1 -1
  1244. package/dist/generated/model/getWebhooks200.d.ts +1 -1
  1245. package/dist/generated/model/getWebhooksParams.d.cts +3 -3
  1246. package/dist/generated/model/getWebhooksParams.d.ts +3 -3
  1247. package/dist/generated/model/handleFlowinWebhookBody.d.cts +11 -0
  1248. package/dist/generated/model/handleFlowinWebhookBody.d.ts +11 -0
  1249. package/dist/generated/model/handleFlowinWebhookBody.d.ts.map +1 -0
  1250. package/dist/generated/model/incomingPurchaseDocument.d.cts +119 -0
  1251. package/dist/generated/model/incomingPurchaseDocument.d.ts +119 -0
  1252. package/dist/generated/model/incomingPurchaseDocument.d.ts.map +1 -0
  1253. package/dist/generated/model/incomingPurchaseDocumentItem.d.cts +29 -0
  1254. package/dist/generated/model/incomingPurchaseDocumentItem.d.ts +29 -0
  1255. package/dist/generated/model/incomingPurchaseDocumentItem.d.ts.map +1 -0
  1256. package/dist/generated/model/incomingPurchaseDocumentItemClassification.d.cts +13 -0
  1257. package/dist/generated/model/incomingPurchaseDocumentItemClassification.d.ts +13 -0
  1258. package/dist/generated/model/incomingPurchaseDocumentItemClassification.d.ts.map +1 -0
  1259. package/dist/generated/model/incomingPurchaseDocumentMetadata.d.cts +11 -0
  1260. package/dist/generated/model/incomingPurchaseDocumentMetadata.d.ts +11 -0
  1261. package/dist/generated/model/incomingPurchaseDocumentMetadata.d.ts.map +1 -0
  1262. package/dist/generated/model/incomingPurchaseDocumentSummaryClassification.d.cts +16 -0
  1263. package/dist/generated/model/incomingPurchaseDocumentSummaryClassification.d.ts +16 -0
  1264. package/dist/generated/model/incomingPurchaseDocumentSummaryClassification.d.ts.map +1 -0
  1265. package/dist/generated/model/incomingPurchaseDocumentSummaryTax.d.cts +26 -0
  1266. package/dist/generated/model/incomingPurchaseDocumentSummaryTax.d.ts +26 -0
  1267. package/dist/generated/model/incomingPurchaseDocumentSummaryTax.d.ts.map +1 -0
  1268. package/dist/generated/model/incomingPurchaseDocumentSupplier.d.cts +45 -0
  1269. package/dist/generated/model/incomingPurchaseDocumentSupplier.d.ts +45 -0
  1270. package/dist/generated/model/incomingPurchaseDocumentSupplier.d.ts.map +1 -0
  1271. package/dist/generated/model/incomingPurchaseDocumentType.d.cts +14 -0
  1272. package/dist/generated/model/incomingPurchaseDocumentType.d.ts +14 -0
  1273. package/dist/generated/model/incomingPurchaseDocumentType.d.ts.map +1 -0
  1274. package/dist/generated/model/index.d.cts +334 -13
  1275. package/dist/generated/model/index.d.ts +334 -13
  1276. package/dist/generated/model/index.d.ts.map +1 -1
  1277. package/dist/generated/model/invoice.d.cts +28 -4
  1278. package/dist/generated/model/invoice.d.ts +28 -4
  1279. package/dist/generated/model/invoice.d.ts.map +1 -1
  1280. package/dist/generated/model/invoiceCalculationMode.d.cts +16 -0
  1281. package/dist/generated/model/invoiceCalculationMode.d.ts +16 -0
  1282. package/dist/generated/model/invoiceCalculationMode.d.ts.map +1 -0
  1283. package/dist/generated/model/invoiceItem.d.cts +28 -13
  1284. package/dist/generated/model/invoiceItem.d.ts +28 -13
  1285. package/dist/generated/model/invoiceItem.d.ts.map +1 -1
  1286. package/dist/generated/model/invoiceItemClassification.d.cts +18 -0
  1287. package/dist/generated/model/invoiceItemClassification.d.ts +18 -0
  1288. package/dist/generated/model/invoiceItemClassification.d.ts.map +1 -0
  1289. package/dist/generated/model/invoiceItemMetadata.d.cts +1 -1
  1290. package/dist/generated/model/invoiceItemMetadata.d.ts +1 -1
  1291. package/dist/generated/model/invoiceItemType.d.cts +16 -0
  1292. package/dist/generated/model/invoiceItemType.d.ts +16 -0
  1293. package/dist/generated/model/invoiceItemType.d.ts.map +1 -0
  1294. package/dist/generated/model/invoiceList.d.cts +1 -1
  1295. package/dist/generated/model/invoiceList.d.ts +1 -1
  1296. package/dist/generated/model/invoiceMetadata.d.cts +1 -1
  1297. package/dist/generated/model/invoiceMetadata.d.ts +1 -1
  1298. package/dist/generated/model/invoicePt.d.cts +11 -0
  1299. package/dist/generated/model/invoicePt.d.ts +11 -0
  1300. package/dist/generated/model/invoicePt.d.ts.map +1 -0
  1301. package/dist/generated/model/invoiceTransactionType.d.cts +3 -1
  1302. package/dist/generated/model/invoiceTransactionType.d.ts +3 -1
  1303. package/dist/generated/model/invoiceTransactionType.d.ts.map +1 -1
  1304. package/dist/generated/model/item.d.cts +7 -1
  1305. package/dist/generated/model/item.d.ts +7 -1
  1306. package/dist/generated/model/item.d.ts.map +1 -1
  1307. package/dist/generated/model/itemClassification.d.cts +18 -0
  1308. package/dist/generated/model/itemClassification.d.ts +18 -0
  1309. package/dist/generated/model/itemClassification.d.ts.map +1 -0
  1310. package/dist/generated/model/itemMetadata.d.cts +1 -1
  1311. package/dist/generated/model/itemMetadata.d.ts +1 -1
  1312. package/dist/generated/model/itemResponse.d.cts +13 -0
  1313. package/dist/generated/model/itemResponse.d.ts +13 -0
  1314. package/dist/generated/model/itemResponse.d.ts.map +1 -0
  1315. package/dist/generated/model/legacyAuthRequest.d.cts +17 -0
  1316. package/dist/generated/model/legacyAuthRequest.d.ts +17 -0
  1317. package/dist/generated/model/legacyAuthRequest.d.ts.map +1 -0
  1318. package/dist/generated/model/legacyAuthResponse.d.cts +14 -0
  1319. package/dist/generated/model/legacyAuthResponse.d.ts +14 -0
  1320. package/dist/generated/model/legacyAuthResponse.d.ts.map +1 -0
  1321. package/dist/generated/model/legacyAuthResponseOrganizationsItem.d.cts +33 -0
  1322. package/dist/generated/model/legacyAuthResponseOrganizationsItem.d.ts +33 -0
  1323. package/dist/generated/model/legacyAuthResponseOrganizationsItem.d.ts.map +1 -0
  1324. package/dist/generated/model/legacyAuthResponseOrganizationsItemSubscriptionReview.d.cts +46 -0
  1325. package/dist/generated/model/legacyAuthResponseOrganizationsItemSubscriptionReview.d.ts +46 -0
  1326. package/dist/generated/model/legacyAuthResponseOrganizationsItemSubscriptionReview.d.ts.map +1 -0
  1327. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItem.d.cts +21 -0
  1328. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItem.d.ts +21 -0
  1329. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItem.d.ts.map +1 -0
  1330. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItemCode.d.cts +19 -0
  1331. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItemCode.d.ts +19 -0
  1332. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItemCode.d.ts.map +1 -0
  1333. package/dist/generated/model/limitCheck.d.cts +1 -1
  1334. package/dist/generated/model/limitCheck.d.ts +1 -1
  1335. package/dist/generated/model/lineDiscount.d.cts +1 -1
  1336. package/dist/generated/model/lineDiscount.d.ts +1 -1
  1337. package/dist/generated/model/lineDiscountType.d.cts +1 -1
  1338. package/dist/generated/model/lineDiscountType.d.ts +1 -1
  1339. package/dist/generated/model/listEInvoicingSubmissions200.d.cts +14 -0
  1340. package/dist/generated/model/listEInvoicingSubmissions200.d.ts +14 -0
  1341. package/dist/generated/model/listEInvoicingSubmissions200.d.ts.map +1 -0
  1342. package/dist/generated/model/listEInvoicingSubmissionsParams.d.cts +30 -0
  1343. package/dist/generated/model/listEInvoicingSubmissionsParams.d.ts +30 -0
  1344. package/dist/generated/model/listEInvoicingSubmissionsParams.d.ts.map +1 -0
  1345. package/dist/generated/model/listPtAtcudSeriesDocumentType.d.cts +15 -0
  1346. package/dist/generated/model/listPtAtcudSeriesDocumentType.d.ts +15 -0
  1347. package/dist/generated/model/listPtAtcudSeriesDocumentType.d.ts.map +1 -0
  1348. package/dist/generated/model/listPtAtcudSeriesParams.d.cts +16 -0
  1349. package/dist/generated/model/listPtAtcudSeriesParams.d.ts +16 -0
  1350. package/dist/generated/model/listPtAtcudSeriesParams.d.ts.map +1 -0
  1351. package/dist/generated/model/migrationJobListResponse.d.cts +12 -0
  1352. package/dist/generated/model/migrationJobListResponse.d.ts +12 -0
  1353. package/dist/generated/model/migrationJobListResponse.d.ts.map +1 -0
  1354. package/dist/generated/model/migrationJobResponse.d.cts +55 -0
  1355. package/dist/generated/model/migrationJobResponse.d.ts +55 -0
  1356. package/dist/generated/model/migrationJobResponse.d.ts.map +1 -0
  1357. package/dist/generated/model/migrationJobResponseStatus.d.cts +18 -0
  1358. package/dist/generated/model/migrationJobResponseStatus.d.ts +18 -0
  1359. package/dist/generated/model/migrationJobResponseStatus.d.ts.map +1 -0
  1360. package/dist/generated/model/movablePremise.d.cts +1 -1
  1361. package/dist/generated/model/movablePremise.d.ts +1 -1
  1362. package/dist/generated/model/nextDocumentNumber.d.cts +7 -1
  1363. package/dist/generated/model/nextDocumentNumber.d.ts +7 -1
  1364. package/dist/generated/model/nextDocumentNumber.d.ts.map +1 -1
  1365. package/dist/generated/model/nextDocumentNumberFina.d.cts +5 -5
  1366. package/dist/generated/model/nextDocumentNumberFina.d.ts +5 -5
  1367. package/dist/generated/model/nextDocumentNumberFina.d.ts.map +1 -1
  1368. package/dist/generated/model/nextDocumentNumberFurs.d.cts +1 -1
  1369. package/dist/generated/model/nextDocumentNumberFurs.d.ts +1 -1
  1370. package/dist/generated/model/nextDocumentNumberPt.d.cts +22 -0
  1371. package/dist/generated/model/nextDocumentNumberPt.d.ts +22 -0
  1372. package/dist/generated/model/nextDocumentNumberPt.d.ts.map +1 -0
  1373. package/dist/generated/model/order.d.cts +2 -4
  1374. package/dist/generated/model/order.d.ts +2 -4
  1375. package/dist/generated/model/order.d.ts.map +1 -1
  1376. package/dist/generated/model/orderAddress.d.cts +1 -1
  1377. package/dist/generated/model/orderAddress.d.ts +1 -1
  1378. package/dist/generated/model/orderBase.d.cts +1 -1
  1379. package/dist/generated/model/orderBase.d.ts +1 -1
  1380. package/dist/generated/model/orderBaseMetadata.d.cts +1 -1
  1381. package/dist/generated/model/orderBaseMetadata.d.ts +1 -1
  1382. package/dist/generated/model/orderBasePaymentStatus.d.cts +1 -1
  1383. package/dist/generated/model/orderBasePaymentStatus.d.ts +1 -1
  1384. package/dist/generated/model/orderBaseRawData.d.cts +1 -1
  1385. package/dist/generated/model/orderBaseRawData.d.ts +1 -1
  1386. package/dist/generated/model/orderBaseSource.d.cts +1 -1
  1387. package/dist/generated/model/orderBaseSource.d.ts +1 -1
  1388. package/dist/generated/model/orderBaseStatus.d.cts +1 -1
  1389. package/dist/generated/model/orderBaseStatus.d.ts +1 -1
  1390. package/dist/generated/model/orderCustomer.d.cts +1 -1
  1391. package/dist/generated/model/orderCustomer.d.ts +1 -1
  1392. package/dist/generated/model/orderIntegration.d.cts +2 -4
  1393. package/dist/generated/model/orderIntegration.d.ts +2 -4
  1394. package/dist/generated/model/orderIntegration.d.ts.map +1 -1
  1395. package/dist/generated/model/orderIntegrationBase.d.cts +1 -1
  1396. package/dist/generated/model/orderIntegrationBase.d.ts +1 -1
  1397. package/dist/generated/model/orderIntegrationBaseAutoProcessOn.d.cts +1 -1
  1398. package/dist/generated/model/orderIntegrationBaseAutoProcessOn.d.ts +1 -1
  1399. package/dist/generated/model/orderIntegrationBaseMetadata.d.cts +1 -1
  1400. package/dist/generated/model/orderIntegrationBaseMetadata.d.ts +1 -1
  1401. package/dist/generated/model/orderIntegrationBaseSource.d.cts +1 -1
  1402. package/dist/generated/model/orderIntegrationBaseSource.d.ts +1 -1
  1403. package/dist/generated/model/orderItem.d.cts +5 -1
  1404. package/dist/generated/model/orderItem.d.ts +5 -1
  1405. package/dist/generated/model/orderItem.d.ts.map +1 -1
  1406. package/dist/generated/model/orderItemKind.d.cts +13 -0
  1407. package/dist/generated/model/orderItemKind.d.ts +13 -0
  1408. package/dist/generated/model/orderItemKind.d.ts.map +1 -0
  1409. package/dist/generated/model/orderItemTaxesItem.d.cts +11 -0
  1410. package/dist/generated/model/orderItemTaxesItem.d.ts +11 -0
  1411. package/dist/generated/model/orderItemTaxesItem.d.ts.map +1 -0
  1412. package/dist/generated/model/orderTransaction.d.cts +1 -1
  1413. package/dist/generated/model/orderTransaction.d.ts +1 -1
  1414. package/dist/generated/model/paginationMetadata.d.cts +3 -3
  1415. package/dist/generated/model/paginationMetadata.d.ts +3 -3
  1416. package/dist/generated/model/partialAdvanceInvoicePreview.d.cts +33 -4
  1417. package/dist/generated/model/partialAdvanceInvoicePreview.d.ts +33 -4
  1418. package/dist/generated/model/partialAdvanceInvoicePreview.d.ts.map +1 -1
  1419. package/dist/generated/model/partialAdvanceInvoicePreviewCalculationMode.d.cts +17 -0
  1420. package/dist/generated/model/partialAdvanceInvoicePreviewCalculationMode.d.ts +17 -0
  1421. package/dist/generated/model/partialAdvanceInvoicePreviewCalculationMode.d.ts.map +1 -0
  1422. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItem.d.cts +6 -1
  1423. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItem.d.ts +6 -1
  1424. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItem.d.ts.map +1 -1
  1425. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItem.d.cts +13 -0
  1426. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItem.d.ts +13 -0
  1427. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1428. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1429. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1430. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1431. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemMetadata.d.cts +1 -1
  1432. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemMetadata.d.ts +1 -1
  1433. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemTaxesItem.d.cts +1 -1
  1434. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemTaxesItem.d.ts +1 -1
  1435. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemType.d.cts +12 -0
  1436. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemType.d.ts +12 -0
  1437. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemType.d.ts.map +1 -0
  1438. package/dist/generated/model/partialAdvanceInvoicePreviewMetadata.d.cts +1 -1
  1439. package/dist/generated/model/partialAdvanceInvoicePreviewMetadata.d.ts +1 -1
  1440. package/dist/generated/model/partialCreditNotePreview.d.cts +36 -7
  1441. package/dist/generated/model/partialCreditNotePreview.d.ts +36 -7
  1442. package/dist/generated/model/partialCreditNotePreview.d.ts.map +1 -1
  1443. package/dist/generated/model/partialCreditNotePreviewCalculationMode.d.cts +17 -0
  1444. package/dist/generated/model/partialCreditNotePreviewCalculationMode.d.ts +17 -0
  1445. package/dist/generated/model/partialCreditNotePreviewCalculationMode.d.ts.map +1 -0
  1446. package/dist/generated/model/partialCreditNotePreviewItemsItem.d.cts +6 -1
  1447. package/dist/generated/model/partialCreditNotePreviewItemsItem.d.ts +6 -1
  1448. package/dist/generated/model/partialCreditNotePreviewItemsItem.d.ts.map +1 -1
  1449. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItem.d.cts +13 -0
  1450. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItem.d.ts +13 -0
  1451. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1452. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1453. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1454. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1455. package/dist/generated/model/partialCreditNotePreviewItemsItemMetadata.d.cts +1 -1
  1456. package/dist/generated/model/partialCreditNotePreviewItemsItemMetadata.d.ts +1 -1
  1457. package/dist/generated/model/partialCreditNotePreviewItemsItemTaxesItem.d.cts +1 -1
  1458. package/dist/generated/model/partialCreditNotePreviewItemsItemTaxesItem.d.ts +1 -1
  1459. package/dist/generated/model/partialCreditNotePreviewItemsItemType.d.cts +12 -0
  1460. package/dist/generated/model/partialCreditNotePreviewItemsItemType.d.ts +12 -0
  1461. package/dist/generated/model/partialCreditNotePreviewItemsItemType.d.ts.map +1 -0
  1462. package/dist/generated/model/partialCreditNotePreviewMetadata.d.cts +1 -1
  1463. package/dist/generated/model/partialCreditNotePreviewMetadata.d.ts +1 -1
  1464. package/dist/generated/model/partialDeliveryNotePreview.d.cts +31 -6
  1465. package/dist/generated/model/partialDeliveryNotePreview.d.ts +31 -6
  1466. package/dist/generated/model/partialDeliveryNotePreview.d.ts.map +1 -1
  1467. package/dist/generated/model/partialDeliveryNotePreviewCalculationMode.d.cts +17 -0
  1468. package/dist/generated/model/partialDeliveryNotePreviewCalculationMode.d.ts +17 -0
  1469. package/dist/generated/model/partialDeliveryNotePreviewCalculationMode.d.ts.map +1 -0
  1470. package/dist/generated/model/partialDeliveryNotePreviewItemsItem.d.cts +6 -1
  1471. package/dist/generated/model/partialDeliveryNotePreviewItemsItem.d.ts +6 -1
  1472. package/dist/generated/model/partialDeliveryNotePreviewItemsItem.d.ts.map +1 -1
  1473. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItem.d.cts +13 -0
  1474. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItem.d.ts +13 -0
  1475. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1476. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1477. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1478. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1479. package/dist/generated/model/partialDeliveryNotePreviewItemsItemMetadata.d.cts +1 -1
  1480. package/dist/generated/model/partialDeliveryNotePreviewItemsItemMetadata.d.ts +1 -1
  1481. package/dist/generated/model/partialDeliveryNotePreviewItemsItemTaxesItem.d.cts +1 -1
  1482. package/dist/generated/model/partialDeliveryNotePreviewItemsItemTaxesItem.d.ts +1 -1
  1483. package/dist/generated/model/partialDeliveryNotePreviewItemsItemType.d.cts +12 -0
  1484. package/dist/generated/model/partialDeliveryNotePreviewItemsItemType.d.ts +12 -0
  1485. package/dist/generated/model/partialDeliveryNotePreviewItemsItemType.d.ts.map +1 -0
  1486. package/dist/generated/model/partialDeliveryNotePreviewMetadata.d.cts +1 -1
  1487. package/dist/generated/model/partialDeliveryNotePreviewMetadata.d.ts +1 -1
  1488. package/dist/generated/model/partialEstimatePreview.d.cts +29 -5
  1489. package/dist/generated/model/partialEstimatePreview.d.ts +29 -5
  1490. package/dist/generated/model/partialEstimatePreview.d.ts.map +1 -1
  1491. package/dist/generated/model/partialEstimatePreviewCalculationMode.d.cts +17 -0
  1492. package/dist/generated/model/partialEstimatePreviewCalculationMode.d.ts +17 -0
  1493. package/dist/generated/model/partialEstimatePreviewCalculationMode.d.ts.map +1 -0
  1494. package/dist/generated/model/partialEstimatePreviewItemsItem.d.cts +6 -1
  1495. package/dist/generated/model/partialEstimatePreviewItemsItem.d.ts +6 -1
  1496. package/dist/generated/model/partialEstimatePreviewItemsItem.d.ts.map +1 -1
  1497. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItem.d.cts +13 -0
  1498. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItem.d.ts +13 -0
  1499. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1500. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1501. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1502. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1503. package/dist/generated/model/partialEstimatePreviewItemsItemMetadata.d.cts +1 -1
  1504. package/dist/generated/model/partialEstimatePreviewItemsItemMetadata.d.ts +1 -1
  1505. package/dist/generated/model/partialEstimatePreviewItemsItemTaxesItem.d.cts +1 -1
  1506. package/dist/generated/model/partialEstimatePreviewItemsItemTaxesItem.d.ts +1 -1
  1507. package/dist/generated/model/partialEstimatePreviewItemsItemType.d.cts +12 -0
  1508. package/dist/generated/model/partialEstimatePreviewItemsItemType.d.ts +12 -0
  1509. package/dist/generated/model/partialEstimatePreviewItemsItemType.d.ts.map +1 -0
  1510. package/dist/generated/model/partialEstimatePreviewMetadata.d.cts +1 -1
  1511. package/dist/generated/model/partialEstimatePreviewMetadata.d.ts +1 -1
  1512. package/dist/generated/model/partialEstimatePreviewTitleType.d.cts +3 -3
  1513. package/dist/generated/model/partialEstimatePreviewTitleType.d.ts +3 -3
  1514. package/dist/generated/model/partialInvoicePreview.d.cts +39 -6
  1515. package/dist/generated/model/partialInvoicePreview.d.ts +39 -6
  1516. package/dist/generated/model/partialInvoicePreview.d.ts.map +1 -1
  1517. package/dist/generated/model/partialInvoicePreviewCalculationMode.d.cts +17 -0
  1518. package/dist/generated/model/partialInvoicePreviewCalculationMode.d.ts +17 -0
  1519. package/dist/generated/model/partialInvoicePreviewCalculationMode.d.ts.map +1 -0
  1520. package/dist/generated/model/partialInvoicePreviewItemsItem.d.cts +6 -1
  1521. package/dist/generated/model/partialInvoicePreviewItemsItem.d.ts +6 -1
  1522. package/dist/generated/model/partialInvoicePreviewItemsItem.d.ts.map +1 -1
  1523. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItem.d.cts +13 -0
  1524. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItem.d.ts +13 -0
  1525. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1526. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1527. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1528. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1529. package/dist/generated/model/partialInvoicePreviewItemsItemMetadata.d.cts +1 -1
  1530. package/dist/generated/model/partialInvoicePreviewItemsItemMetadata.d.ts +1 -1
  1531. package/dist/generated/model/partialInvoicePreviewItemsItemTaxesItem.d.cts +1 -1
  1532. package/dist/generated/model/partialInvoicePreviewItemsItemTaxesItem.d.ts +1 -1
  1533. package/dist/generated/model/partialInvoicePreviewItemsItemType.d.cts +12 -0
  1534. package/dist/generated/model/partialInvoicePreviewItemsItemType.d.ts +12 -0
  1535. package/dist/generated/model/partialInvoicePreviewItemsItemType.d.ts.map +1 -0
  1536. package/dist/generated/model/partialInvoicePreviewMetadata.d.cts +1 -1
  1537. package/dist/generated/model/partialInvoicePreviewMetadata.d.ts +1 -1
  1538. package/dist/generated/model/patchEntityBody.d.cts +27 -3
  1539. package/dist/generated/model/patchEntityBody.d.ts +27 -3
  1540. package/dist/generated/model/patchEntityBody.d.ts.map +1 -1
  1541. package/dist/generated/model/patchEntityBodyMetadata.d.cts +1 -1
  1542. package/dist/generated/model/patchEntityBodyMetadata.d.ts +1 -1
  1543. package/dist/generated/model/patchEntityBodySettings.d.cts +76 -1
  1544. package/dist/generated/model/patchEntityBodySettings.d.ts +76 -1
  1545. package/dist/generated/model/patchEntityBodySettings.d.ts.map +1 -1
  1546. package/dist/generated/model/patchEntityBodySettingsCalculation.d.cts +19 -0
  1547. package/dist/generated/model/patchEntityBodySettingsCalculation.d.ts +19 -0
  1548. package/dist/generated/model/patchEntityBodySettingsCalculation.d.ts.map +1 -0
  1549. package/dist/generated/model/patchEntityBodySettingsEInvoicing.d.cts +22 -0
  1550. package/dist/generated/model/patchEntityBodySettingsEInvoicing.d.ts +22 -0
  1551. package/dist/generated/model/patchEntityBodySettingsEInvoicing.d.ts.map +1 -0
  1552. package/dist/generated/model/patchEntityBodySettingsEmailDefaults.d.cts +35 -5
  1553. package/dist/generated/model/patchEntityBodySettingsEmailDefaults.d.ts +35 -5
  1554. package/dist/generated/model/patchEntityBodySettingsEmailDefaults.d.ts.map +1 -1
  1555. package/dist/generated/model/patchEntityBodySettingsEpcQr.d.cts +1 -1
  1556. package/dist/generated/model/patchEntityBodySettingsEpcQr.d.ts +1 -1
  1557. package/dist/generated/model/patchEntityBodySettingsFina.d.cts +6 -1
  1558. package/dist/generated/model/patchEntityBodySettingsFina.d.ts +6 -1
  1559. package/dist/generated/model/patchEntityBodySettingsFina.d.ts.map +1 -1
  1560. package/dist/generated/model/patchEntityBodySettingsFurs.d.cts +5 -1
  1561. package/dist/generated/model/patchEntityBodySettingsFurs.d.ts +5 -1
  1562. package/dist/generated/model/patchEntityBodySettingsFurs.d.ts.map +1 -1
  1563. package/dist/generated/model/patchEntityBodySettingsNumberFormats.d.cts +1 -1
  1564. package/dist/generated/model/patchEntityBodySettingsNumberFormats.d.ts +1 -1
  1565. package/dist/generated/model/patchEntityBodySettingsOverdueNotifications.d.cts +1 -1
  1566. package/dist/generated/model/patchEntityBodySettingsOverdueNotifications.d.ts +1 -1
  1567. package/dist/generated/model/patchEntityBodySettingsPdfTemplate.d.cts +2 -1
  1568. package/dist/generated/model/patchEntityBodySettingsPdfTemplate.d.ts +2 -1
  1569. package/dist/generated/model/patchEntityBodySettingsPdfTemplate.d.ts.map +1 -1
  1570. package/dist/generated/model/patchEntityBodySettingsPt.d.cts +29 -0
  1571. package/dist/generated/model/patchEntityBodySettingsPt.d.ts +29 -0
  1572. package/dist/generated/model/patchEntityBodySettingsPt.d.ts.map +1 -0
  1573. package/dist/generated/model/patchEntityBodySettingsSlovenia.d.cts +221 -0
  1574. package/dist/generated/model/patchEntityBodySettingsSlovenia.d.ts +221 -0
  1575. package/dist/generated/model/patchEntityBodySettingsSlovenia.d.ts.map +1 -0
  1576. package/dist/generated/model/patchEntityBodySettingsTaxClauseDefaults.d.cts +12 -2
  1577. package/dist/generated/model/patchEntityBodySettingsTaxClauseDefaults.d.ts +12 -2
  1578. package/dist/generated/model/patchEntityBodySettingsTaxClauseDefaults.d.ts.map +1 -1
  1579. package/dist/generated/model/patchEntityBodySettingsUpnQr.d.cts +1 -1
  1580. package/dist/generated/model/patchEntityBodySettingsUpnQr.d.ts +1 -1
  1581. package/dist/generated/model/patchMeBody.d.cts +5 -2
  1582. package/dist/generated/model/patchMeBody.d.ts +5 -2
  1583. package/dist/generated/model/patchMeBody.d.ts.map +1 -1
  1584. package/dist/generated/model/patchMeBodyLocale.d.cts +19 -3
  1585. package/dist/generated/model/patchMeBodyLocale.d.ts +19 -3
  1586. package/dist/generated/model/patchMeBodyLocale.d.ts.map +1 -1
  1587. package/dist/generated/model/payment.d.cts +23 -1
  1588. package/dist/generated/model/payment.d.ts +23 -1
  1589. package/dist/generated/model/payment.d.ts.map +1 -1
  1590. package/dist/generated/model/paymentAdvanceInvoice.d.cts +1 -1
  1591. package/dist/generated/model/paymentAdvanceInvoice.d.ts +1 -1
  1592. package/dist/generated/model/paymentAppliedToIncomingPurchaseDocument.d.cts +34 -0
  1593. package/dist/generated/model/paymentAppliedToIncomingPurchaseDocument.d.ts +34 -0
  1594. package/dist/generated/model/paymentAppliedToIncomingPurchaseDocument.d.ts.map +1 -0
  1595. package/dist/generated/model/paymentCreditNote.d.cts +1 -1
  1596. package/dist/generated/model/paymentCreditNote.d.ts +1 -1
  1597. package/dist/generated/model/paymentIncomingPurchaseDocument.d.cts +34 -0
  1598. package/dist/generated/model/paymentIncomingPurchaseDocument.d.ts +34 -0
  1599. package/dist/generated/model/paymentIncomingPurchaseDocument.d.ts.map +1 -0
  1600. package/dist/generated/model/paymentInvoice.d.cts +1 -1
  1601. package/dist/generated/model/paymentInvoice.d.ts +1 -1
  1602. package/dist/generated/model/paymentMetadata.d.cts +1 -1
  1603. package/dist/generated/model/paymentMetadata.d.ts +1 -1
  1604. package/dist/generated/model/paymentType.d.cts +1 -1
  1605. package/dist/generated/model/paymentType.d.ts +1 -1
  1606. package/dist/generated/model/pdfExportByDateRange.d.cts +29 -8
  1607. package/dist/generated/model/pdfExportByDateRange.d.ts +29 -8
  1608. package/dist/generated/model/pdfExportByDateRange.d.ts.map +1 -1
  1609. package/dist/generated/model/pdfExportByDateRangeLanguage.d.cts +33 -0
  1610. package/dist/generated/model/pdfExportByDateRangeLanguage.d.ts +33 -0
  1611. package/dist/generated/model/pdfExportByDateRangeLanguage.d.ts.map +1 -0
  1612. package/dist/generated/model/pdfExportByDateRangeLocale.d.cts +33 -0
  1613. package/dist/generated/model/pdfExportByDateRangeLocale.d.ts +33 -0
  1614. package/dist/generated/model/pdfExportByDateRangeLocale.d.ts.map +1 -0
  1615. package/dist/generated/model/{pdfExportByDateRangeType.d.cts → pdfExportByDateRangeTypesItem.d.cts} +4 -4
  1616. package/dist/generated/model/{pdfExportByDateRangeType.d.ts → pdfExportByDateRangeTypesItem.d.ts} +4 -4
  1617. package/dist/generated/model/pdfExportByDateRangeTypesItem.d.ts.map +1 -0
  1618. package/dist/generated/model/pdfExportByDocumentIds.d.cts +14 -5
  1619. package/dist/generated/model/pdfExportByDocumentIds.d.ts +14 -5
  1620. package/dist/generated/model/pdfExportByDocumentIds.d.ts.map +1 -1
  1621. package/dist/generated/model/pdfExportByDocumentIdsLanguage.d.cts +33 -0
  1622. package/dist/generated/model/pdfExportByDocumentIdsLanguage.d.ts +33 -0
  1623. package/dist/generated/model/pdfExportByDocumentIdsLanguage.d.ts.map +1 -0
  1624. package/dist/generated/model/pdfExportByDocumentIdsLocale.d.cts +33 -0
  1625. package/dist/generated/model/pdfExportByDocumentIdsLocale.d.ts +33 -0
  1626. package/dist/generated/model/pdfExportByDocumentIdsLocale.d.ts.map +1 -0
  1627. package/dist/generated/model/permanentDeleteDocumentParams.d.cts +3 -3
  1628. package/dist/generated/model/permanentDeleteDocumentParams.d.ts +3 -3
  1629. package/dist/generated/model/permanentDeleteDocumentParams.d.ts.map +1 -1
  1630. package/dist/generated/model/permanentDeleteDocumentType.d.cts +1 -1
  1631. package/dist/generated/model/permanentDeleteDocumentType.d.ts +1 -1
  1632. package/dist/generated/model/planLimits.d.cts +37 -2
  1633. package/dist/generated/model/planLimits.d.ts +37 -2
  1634. package/dist/generated/model/planLimits.d.ts.map +1 -1
  1635. package/dist/generated/model/ptAtcudSeries.d.cts +47 -0
  1636. package/dist/generated/model/ptAtcudSeries.d.ts +47 -0
  1637. package/dist/generated/model/ptAtcudSeries.d.ts.map +1 -0
  1638. package/dist/generated/model/ptAtcudSeriesDocumentType.d.cts +18 -0
  1639. package/dist/generated/model/ptAtcudSeriesDocumentType.d.ts +18 -0
  1640. package/dist/generated/model/ptAtcudSeriesDocumentType.d.ts.map +1 -0
  1641. package/dist/generated/model/ptDocumentInput.d.cts +72 -0
  1642. package/dist/generated/model/ptDocumentInput.d.ts +72 -0
  1643. package/dist/generated/model/ptDocumentInput.d.ts.map +1 -0
  1644. package/dist/generated/model/realEstatePremise.d.cts +6 -3
  1645. package/dist/generated/model/realEstatePremise.d.ts +6 -3
  1646. package/dist/generated/model/realEstatePremise.d.ts.map +1 -1
  1647. package/dist/generated/model/recurringInvoice.d.cts +2 -4
  1648. package/dist/generated/model/recurringInvoice.d.ts +2 -4
  1649. package/dist/generated/model/recurringInvoice.d.ts.map +1 -1
  1650. package/dist/generated/model/recurringInvoiceBase.d.cts +1 -1
  1651. package/dist/generated/model/recurringInvoiceBase.d.ts +1 -1
  1652. package/dist/generated/model/recurringInvoiceBaseFrequency.d.cts +1 -1
  1653. package/dist/generated/model/recurringInvoiceBaseFrequency.d.ts +1 -1
  1654. package/dist/generated/model/recurringInvoiceBaseMetadata.d.cts +1 -1
  1655. package/dist/generated/model/recurringInvoiceBaseMetadata.d.ts +1 -1
  1656. package/dist/generated/model/recurringInvoiceBaseStatus.d.cts +1 -1
  1657. package/dist/generated/model/recurringInvoiceBaseStatus.d.ts +1 -1
  1658. package/dist/generated/model/registerEInvoicingSupplierRequest.d.cts +65 -0
  1659. package/dist/generated/model/registerEInvoicingSupplierRequest.d.ts +65 -0
  1660. package/dist/generated/model/registerEInvoicingSupplierRequest.d.ts.map +1 -0
  1661. package/dist/generated/model/registerFinaDeviceBody.d.cts +3 -3
  1662. package/dist/generated/model/registerFinaDeviceBody.d.ts +3 -3
  1663. package/dist/generated/model/registerFinaDeviceBody.d.ts.map +1 -1
  1664. package/dist/generated/model/registerFursElectronicDeviceBody.d.cts +1 -1
  1665. package/dist/generated/model/registerFursElectronicDeviceBody.d.ts +1 -1
  1666. package/dist/generated/model/registerFursMovablePremiseBody.d.cts +1 -1
  1667. package/dist/generated/model/registerFursMovablePremiseBody.d.ts +1 -1
  1668. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremise.d.cts +1 -1
  1669. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremise.d.ts +1 -1
  1670. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremisePremiseType.d.cts +1 -1
  1671. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremisePremiseType.d.ts +1 -1
  1672. package/dist/generated/model/registerFursRealEstatePremiseBody.d.cts +1 -1
  1673. package/dist/generated/model/registerFursRealEstatePremiseBody.d.ts +1 -1
  1674. package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.cts +1 -1
  1675. package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.ts +1 -1
  1676. package/dist/generated/model/removeEntityUser200.d.cts +1 -1
  1677. package/dist/generated/model/removeEntityUser200.d.ts +1 -1
  1678. package/dist/generated/model/renderAdvanceInvoicePreviewEpcQrEnabled.d.cts +13 -0
  1679. package/dist/generated/model/renderAdvanceInvoicePreviewEpcQrEnabled.d.ts +13 -0
  1680. package/dist/generated/model/renderAdvanceInvoicePreviewEpcQrEnabled.d.ts.map +1 -0
  1681. package/dist/generated/model/renderAdvanceInvoicePreviewParams.d.cts +24 -1
  1682. package/dist/generated/model/renderAdvanceInvoicePreviewParams.d.ts +24 -1
  1683. package/dist/generated/model/renderAdvanceInvoicePreviewParams.d.ts.map +1 -1
  1684. package/dist/generated/model/renderAdvanceInvoicePreviewPartial.d.cts +1 -1
  1685. package/dist/generated/model/renderAdvanceInvoicePreviewPartial.d.ts +1 -1
  1686. package/dist/generated/model/renderAdvanceInvoicePreviewTemplate.d.cts +1 -1
  1687. package/dist/generated/model/renderAdvanceInvoicePreviewTemplate.d.ts +1 -1
  1688. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrDisplayMode.d.cts +13 -0
  1689. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrDisplayMode.d.ts +13 -0
  1690. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1691. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrEnabled.d.cts +13 -0
  1692. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrEnabled.d.ts +13 -0
  1693. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrEnabled.d.ts.map +1 -0
  1694. package/dist/generated/model/renderCreditNotePreviewEpcQrEnabled.d.cts +13 -0
  1695. package/dist/generated/model/renderCreditNotePreviewEpcQrEnabled.d.ts +13 -0
  1696. package/dist/generated/model/renderCreditNotePreviewEpcQrEnabled.d.ts.map +1 -0
  1697. package/dist/generated/model/renderCreditNotePreviewParams.d.cts +24 -1
  1698. package/dist/generated/model/renderCreditNotePreviewParams.d.ts +24 -1
  1699. package/dist/generated/model/renderCreditNotePreviewParams.d.ts.map +1 -1
  1700. package/dist/generated/model/renderCreditNotePreviewPartial.d.cts +1 -1
  1701. package/dist/generated/model/renderCreditNotePreviewPartial.d.ts +1 -1
  1702. package/dist/generated/model/renderCreditNotePreviewTemplate.d.cts +1 -1
  1703. package/dist/generated/model/renderCreditNotePreviewTemplate.d.ts +1 -1
  1704. package/dist/generated/model/renderCreditNotePreviewUpnQrDisplayMode.d.cts +13 -0
  1705. package/dist/generated/model/renderCreditNotePreviewUpnQrDisplayMode.d.ts +13 -0
  1706. package/dist/generated/model/renderCreditNotePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1707. package/dist/generated/model/renderCreditNotePreviewUpnQrEnabled.d.cts +13 -0
  1708. package/dist/generated/model/renderCreditNotePreviewUpnQrEnabled.d.ts +13 -0
  1709. package/dist/generated/model/renderCreditNotePreviewUpnQrEnabled.d.ts.map +1 -0
  1710. package/dist/generated/model/renderDeliveryNotePreviewEpcQrEnabled.d.cts +13 -0
  1711. package/dist/generated/model/renderDeliveryNotePreviewEpcQrEnabled.d.ts +13 -0
  1712. package/dist/generated/model/renderDeliveryNotePreviewEpcQrEnabled.d.ts.map +1 -0
  1713. package/dist/generated/model/renderDeliveryNotePreviewParams.d.cts +24 -1
  1714. package/dist/generated/model/renderDeliveryNotePreviewParams.d.ts +24 -1
  1715. package/dist/generated/model/renderDeliveryNotePreviewParams.d.ts.map +1 -1
  1716. package/dist/generated/model/renderDeliveryNotePreviewPartial.d.cts +1 -1
  1717. package/dist/generated/model/renderDeliveryNotePreviewPartial.d.ts +1 -1
  1718. package/dist/generated/model/renderDeliveryNotePreviewTemplate.d.cts +1 -1
  1719. package/dist/generated/model/renderDeliveryNotePreviewTemplate.d.ts +1 -1
  1720. package/dist/generated/model/renderDeliveryNotePreviewUpnQrDisplayMode.d.cts +13 -0
  1721. package/dist/generated/model/renderDeliveryNotePreviewUpnQrDisplayMode.d.ts +13 -0
  1722. package/dist/generated/model/renderDeliveryNotePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1723. package/dist/generated/model/renderDeliveryNotePreviewUpnQrEnabled.d.cts +13 -0
  1724. package/dist/generated/model/renderDeliveryNotePreviewUpnQrEnabled.d.ts +13 -0
  1725. package/dist/generated/model/renderDeliveryNotePreviewUpnQrEnabled.d.ts.map +1 -0
  1726. package/dist/generated/model/renderDocumentHtmlParams.d.cts +9 -1
  1727. package/dist/generated/model/renderDocumentHtmlParams.d.ts +9 -1
  1728. package/dist/generated/model/renderDocumentHtmlParams.d.ts.map +1 -1
  1729. package/dist/generated/model/renderDocumentHtmlTemplate.d.cts +1 -1
  1730. package/dist/generated/model/renderDocumentHtmlTemplate.d.ts +1 -1
  1731. package/dist/generated/model/renderDocumentPdfParams.d.cts +9 -1
  1732. package/dist/generated/model/renderDocumentPdfParams.d.ts +9 -1
  1733. package/dist/generated/model/renderDocumentPdfParams.d.ts.map +1 -1
  1734. package/dist/generated/model/renderDocumentPdfTemplate.d.cts +1 -1
  1735. package/dist/generated/model/renderDocumentPdfTemplate.d.ts +1 -1
  1736. package/dist/generated/model/renderEstimatePreviewEpcQrEnabled.d.cts +13 -0
  1737. package/dist/generated/model/renderEstimatePreviewEpcQrEnabled.d.ts +13 -0
  1738. package/dist/generated/model/renderEstimatePreviewEpcQrEnabled.d.ts.map +1 -0
  1739. package/dist/generated/model/renderEstimatePreviewParams.d.cts +24 -1
  1740. package/dist/generated/model/renderEstimatePreviewParams.d.ts +24 -1
  1741. package/dist/generated/model/renderEstimatePreviewParams.d.ts.map +1 -1
  1742. package/dist/generated/model/renderEstimatePreviewPartial.d.cts +1 -1
  1743. package/dist/generated/model/renderEstimatePreviewPartial.d.ts +1 -1
  1744. package/dist/generated/model/renderEstimatePreviewTemplate.d.cts +1 -1
  1745. package/dist/generated/model/renderEstimatePreviewTemplate.d.ts +1 -1
  1746. package/dist/generated/model/renderEstimatePreviewUpnQrDisplayMode.d.cts +13 -0
  1747. package/dist/generated/model/renderEstimatePreviewUpnQrDisplayMode.d.ts +13 -0
  1748. package/dist/generated/model/renderEstimatePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1749. package/dist/generated/model/renderEstimatePreviewUpnQrEnabled.d.cts +13 -0
  1750. package/dist/generated/model/renderEstimatePreviewUpnQrEnabled.d.ts +13 -0
  1751. package/dist/generated/model/renderEstimatePreviewUpnQrEnabled.d.ts.map +1 -0
  1752. package/dist/generated/model/renderInvoicePreviewEpcQrEnabled.d.cts +13 -0
  1753. package/dist/generated/model/renderInvoicePreviewEpcQrEnabled.d.ts +13 -0
  1754. package/dist/generated/model/renderInvoicePreviewEpcQrEnabled.d.ts.map +1 -0
  1755. package/dist/generated/model/renderInvoicePreviewParams.d.cts +24 -1
  1756. package/dist/generated/model/renderInvoicePreviewParams.d.ts +24 -1
  1757. package/dist/generated/model/renderInvoicePreviewParams.d.ts.map +1 -1
  1758. package/dist/generated/model/renderInvoicePreviewPartial.d.cts +1 -1
  1759. package/dist/generated/model/renderInvoicePreviewPartial.d.ts +1 -1
  1760. package/dist/generated/model/renderInvoicePreviewTemplate.d.cts +1 -1
  1761. package/dist/generated/model/renderInvoicePreviewTemplate.d.ts +1 -1
  1762. package/dist/generated/model/renderInvoicePreviewUpnQrDisplayMode.d.cts +13 -0
  1763. package/dist/generated/model/renderInvoicePreviewUpnQrDisplayMode.d.ts +13 -0
  1764. package/dist/generated/model/renderInvoicePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1765. package/dist/generated/model/renderInvoicePreviewUpnQrEnabled.d.cts +13 -0
  1766. package/dist/generated/model/renderInvoicePreviewUpnQrEnabled.d.ts +13 -0
  1767. package/dist/generated/model/renderInvoicePreviewUpnQrEnabled.d.ts.map +1 -0
  1768. package/dist/generated/model/replaceTaxBody.d.cts +11 -1
  1769. package/dist/generated/model/replaceTaxBody.d.ts +11 -1
  1770. package/dist/generated/model/replaceTaxBody.d.ts.map +1 -1
  1771. package/dist/generated/model/replaceTaxBodyMetadata.d.cts +1 -1
  1772. package/dist/generated/model/replaceTaxBodyMetadata.d.ts +1 -1
  1773. package/dist/generated/model/replaceTaxBodyTaxRatesItem.d.cts +1 -1
  1774. package/dist/generated/model/replaceTaxBodyTaxRatesItem.d.ts +1 -1
  1775. package/dist/generated/model/resendInvitationResponse.d.cts +1 -1
  1776. package/dist/generated/model/resendInvitationResponse.d.ts +1 -1
  1777. package/dist/generated/model/restoreDocumentParams.d.cts +3 -3
  1778. package/dist/generated/model/restoreDocumentParams.d.ts +3 -3
  1779. package/dist/generated/model/restoreDocumentParams.d.ts.map +1 -1
  1780. package/dist/generated/model/restoreDocumentType.d.cts +1 -1
  1781. package/dist/generated/model/restoreDocumentType.d.ts +1 -1
  1782. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200.d.cts +33 -0
  1783. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200.d.ts +33 -0
  1784. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200.d.ts.map +1 -0
  1785. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200AutoValues.d.cts +22 -0
  1786. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200AutoValues.d.ts +22 -0
  1787. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200AutoValues.d.ts.map +1 -0
  1788. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200DerivedFlags.d.cts +13 -0
  1789. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200DerivedFlags.d.ts +13 -0
  1790. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200DerivedFlags.d.ts.map +1 -0
  1791. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200FilingKind.d.cts +12 -0
  1792. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200FilingKind.d.ts +12 -0
  1793. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200FilingKind.d.ts.map +1 -0
  1794. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItem.d.cts +22 -0
  1795. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItem.d.ts +22 -0
  1796. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItem.d.ts.map +1 -0
  1797. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItem.d.cts +27 -0
  1798. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItem.d.ts +27 -0
  1799. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItem.d.ts.map +1 -0
  1800. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType.d.cts +13 -0
  1801. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType.d.ts +13 -0
  1802. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType.d.ts.map +1 -0
  1803. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItem.d.cts +14 -0
  1804. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItem.d.ts +14 -0
  1805. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItem.d.ts.map +1 -0
  1806. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer.d.cts +13 -0
  1807. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer.d.ts +13 -0
  1808. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer.d.ts.map +1 -0
  1809. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity.d.cts +13 -0
  1810. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity.d.ts +13 -0
  1811. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity.d.ts.map +1 -0
  1812. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ManualValues.d.cts +35 -0
  1813. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ManualValues.d.ts +35 -0
  1814. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ManualValues.d.ts.map +1 -0
  1815. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200Profile.d.cts +50 -0
  1816. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200Profile.d.ts +50 -0
  1817. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200Profile.d.ts.map +1 -0
  1818. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExports.d.cts +18 -0
  1819. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExports.d.ts +18 -0
  1820. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExports.d.ts.map +1 -0
  1821. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat.d.cts +18 -0
  1822. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat.d.ts +18 -0
  1823. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat.d.ts.map +1 -0
  1824. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessForm.d.cts +19 -0
  1825. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessForm.d.ts +19 -0
  1826. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessForm.d.ts.map +1 -0
  1827. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource.d.cts +14 -0
  1828. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource.d.ts +14 -0
  1829. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource.d.ts.map +1 -0
  1830. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime.d.cts +17 -0
  1831. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime.d.ts +17 -0
  1832. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime.d.ts.map +1 -0
  1833. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm.d.cts +19 -0
  1834. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm.d.ts +19 -0
  1835. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm.d.ts.map +1 -0
  1836. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileSupportedExports.d.cts +14 -0
  1837. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileSupportedExports.d.ts +14 -0
  1838. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileSupportedExports.d.ts.map +1 -0
  1839. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileTaxResidency.d.cts +17 -0
  1840. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileTaxResidency.d.ts +17 -0
  1841. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileTaxResidency.d.ts.map +1 -0
  1842. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileVatProfile.d.cts +18 -0
  1843. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileVatProfile.d.ts +18 -0
  1844. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileVatProfile.d.ts.map +1 -0
  1845. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReporting.d.cts +44 -0
  1846. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReporting.d.ts +44 -0
  1847. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReporting.d.ts.map +1 -0
  1848. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType.d.cts +18 -0
  1849. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType.d.ts +18 -0
  1850. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType.d.ts.map +1 -0
  1851. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  1852. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  1853. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  1854. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200RuleSummary.d.cts +13 -0
  1855. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200RuleSummary.d.ts +13 -0
  1856. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200RuleSummary.d.ts.map +1 -0
  1857. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItem.d.cts +14 -0
  1858. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItem.d.ts +14 -0
  1859. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItem.d.ts.map +1 -0
  1860. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItemSeverity.d.cts +13 -0
  1861. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItemSeverity.d.ts +13 -0
  1862. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItemSeverity.d.ts.map +1 -0
  1863. package/dist/generated/model/reviewSloveniaYearlyNormiraniReportBody.d.cts +16 -0
  1864. package/dist/generated/model/reviewSloveniaYearlyNormiraniReportBody.d.ts +16 -0
  1865. package/dist/generated/model/reviewSloveniaYearlyNormiraniReportBody.d.ts.map +1 -0
  1866. package/dist/generated/model/searchCompanyRegistryParams.d.cts +1 -1
  1867. package/dist/generated/model/searchCompanyRegistryParams.d.ts +1 -1
  1868. package/dist/generated/model/searchEInvoicingCustomer200.d.cts +12 -0
  1869. package/dist/generated/model/searchEInvoicingCustomer200.d.ts +12 -0
  1870. package/dist/generated/model/searchEInvoicingCustomer200.d.ts.map +1 -0
  1871. package/dist/generated/model/sendDocument200.d.cts +3 -1
  1872. package/dist/generated/model/sendDocument200.d.ts +3 -1
  1873. package/dist/generated/model/sendDocument200.d.ts.map +1 -1
  1874. package/dist/generated/model/sendDocument200Status.d.cts +2 -1
  1875. package/dist/generated/model/sendDocument200Status.d.ts +2 -1
  1876. package/dist/generated/model/sendDocument200Status.d.ts.map +1 -1
  1877. package/dist/generated/model/sendDocumentBody.d.cts +3 -1
  1878. package/dist/generated/model/sendDocumentBody.d.ts +3 -1
  1879. package/dist/generated/model/sendDocumentBody.d.ts.map +1 -1
  1880. package/dist/generated/model/sendEInvoiceRequest.d.cts +29 -0
  1881. package/dist/generated/model/sendEInvoiceRequest.d.ts +29 -0
  1882. package/dist/generated/model/sendEInvoiceRequest.d.ts.map +1 -0
  1883. package/dist/generated/model/sendEmail200.d.cts +3 -1
  1884. package/dist/generated/model/sendEmail200.d.ts +3 -1
  1885. package/dist/generated/model/sendEmail200.d.ts.map +1 -1
  1886. package/dist/generated/model/sendEmail200Status.d.cts +2 -1
  1887. package/dist/generated/model/sendEmail200Status.d.ts +2 -1
  1888. package/dist/generated/model/sendEmail200Status.d.ts.map +1 -1
  1889. package/dist/generated/model/sendEmailBody.d.cts +16 -3
  1890. package/dist/generated/model/sendEmailBody.d.ts +16 -3
  1891. package/dist/generated/model/sendEmailBody.d.ts.map +1 -1
  1892. package/dist/generated/model/sendEmailBodyLanguage.d.cts +32 -0
  1893. package/dist/generated/model/sendEmailBodyLanguage.d.ts +32 -0
  1894. package/dist/generated/model/sendEmailBodyLanguage.d.ts.map +1 -0
  1895. package/dist/generated/model/sendEmailBodyLocale.d.cts +33 -0
  1896. package/dist/generated/model/sendEmailBodyLocale.d.ts +33 -0
  1897. package/dist/generated/model/sendEmailBodyLocale.d.ts.map +1 -0
  1898. package/dist/generated/model/shareableId.d.cts +1 -1
  1899. package/dist/generated/model/shareableId.d.ts +1 -1
  1900. package/dist/generated/model/shopifyAuthorizeResponse.d.cts +1 -1
  1901. package/dist/generated/model/shopifyAuthorizeResponse.d.ts +1 -1
  1902. package/dist/generated/model/sloveniaAccountingKontoMappings.d.cts +143 -0
  1903. package/dist/generated/model/sloveniaAccountingKontoMappings.d.ts +143 -0
  1904. package/dist/generated/model/sloveniaAccountingKontoMappings.d.ts.map +1 -0
  1905. package/dist/generated/model/startEslogExport202.d.cts +17 -0
  1906. package/dist/generated/model/startEslogExport202.d.ts +17 -0
  1907. package/dist/generated/model/startEslogExport202.d.ts.map +1 -0
  1908. package/dist/generated/model/startEslogExport202Status.d.cts +18 -0
  1909. package/dist/generated/model/startEslogExport202Status.d.ts +18 -0
  1910. package/dist/generated/model/startEslogExport202Status.d.ts.map +1 -0
  1911. package/dist/generated/model/startPdfExport202.d.cts +1 -1
  1912. package/dist/generated/model/startPdfExport202.d.ts +1 -1
  1913. package/dist/generated/model/startPdfExport202Status.d.cts +1 -1
  1914. package/dist/generated/model/startPdfExport202Status.d.ts +1 -1
  1915. package/dist/generated/model/statsFilters.d.cts +1 -1
  1916. package/dist/generated/model/statsFilters.d.ts +1 -1
  1917. package/dist/generated/model/statsQueryBatchRequest.d.cts +15 -0
  1918. package/dist/generated/model/statsQueryBatchRequest.d.ts +15 -0
  1919. package/dist/generated/model/statsQueryBatchRequest.d.ts.map +1 -0
  1920. package/dist/generated/model/statsQueryBatchResponse.d.cts +13 -0
  1921. package/dist/generated/model/statsQueryBatchResponse.d.ts +13 -0
  1922. package/dist/generated/model/statsQueryBatchResponse.d.ts.map +1 -0
  1923. package/dist/generated/model/statsQueryData.d.cts +1 -1
  1924. package/dist/generated/model/statsQueryData.d.ts +1 -1
  1925. package/dist/generated/model/statsQueryDataItem.d.cts +1 -1
  1926. package/dist/generated/model/statsQueryDataItem.d.ts +1 -1
  1927. package/dist/generated/model/statsQueryMeta.d.cts +1 -1
  1928. package/dist/generated/model/statsQueryMeta.d.ts +1 -1
  1929. package/dist/generated/model/statsQueryRequest.d.cts +1 -1
  1930. package/dist/generated/model/statsQueryRequest.d.ts +1 -1
  1931. package/dist/generated/model/statsQueryRequestMetricsItem.d.cts +1 -1
  1932. package/dist/generated/model/statsQueryRequestMetricsItem.d.ts +1 -1
  1933. package/dist/generated/model/statsQueryRequestMetricsItemType.d.cts +1 -1
  1934. package/dist/generated/model/statsQueryRequestMetricsItemType.d.ts +1 -1
  1935. package/dist/generated/model/statsQueryRequestOrderByItem.d.cts +1 -1
  1936. package/dist/generated/model/statsQueryRequestOrderByItem.d.ts +1 -1
  1937. package/dist/generated/model/statsQueryRequestOrderByItemDirection.d.cts +1 -1
  1938. package/dist/generated/model/statsQueryRequestOrderByItemDirection.d.ts +1 -1
  1939. package/dist/generated/model/statsQueryRequestTable.d.cts +1 -1
  1940. package/dist/generated/model/statsQueryRequestTable.d.ts +1 -1
  1941. package/dist/generated/model/statsQueryResponse.d.cts +1 -1
  1942. package/dist/generated/model/statsQueryResponse.d.ts +1 -1
  1943. package/dist/generated/model/storeBilling.d.cts +21 -0
  1944. package/dist/generated/model/storeBilling.d.ts +21 -0
  1945. package/dist/generated/model/storeBilling.d.ts.map +1 -0
  1946. package/dist/generated/model/stripeAppAuthorizeResponse.d.cts +1 -1
  1947. package/dist/generated/model/stripeAppAuthorizeResponse.d.ts +1 -1
  1948. package/dist/generated/model/stripeAppConnectBody.d.cts +1 -1
  1949. package/dist/generated/model/stripeAppConnectBody.d.ts +1 -1
  1950. package/dist/generated/model/stripeAppConnection.d.cts +1 -1
  1951. package/dist/generated/model/stripeAppConnection.d.ts +1 -1
  1952. package/dist/generated/model/stripeAppConnectionAutoInvoiceConfig.d.cts +1 -1
  1953. package/dist/generated/model/stripeAppConnectionAutoInvoiceConfig.d.ts +1 -1
  1954. package/dist/generated/model/stripeAppCreateInvoiceBody.d.cts +1 -1
  1955. package/dist/generated/model/stripeAppCreateInvoiceBody.d.ts +1 -1
  1956. package/dist/generated/model/stripeAppDisconnect200.d.cts +1 -1
  1957. package/dist/generated/model/stripeAppDisconnect200.d.ts +1 -1
  1958. package/dist/generated/model/stripeAppEntityDisconnect200.d.cts +1 -1
  1959. package/dist/generated/model/stripeAppEntityDisconnect200.d.ts +1 -1
  1960. package/dist/generated/model/stripeAppEntityUpdateSettingsBody.d.cts +1 -1
  1961. package/dist/generated/model/stripeAppEntityUpdateSettingsBody.d.ts +1 -1
  1962. package/dist/generated/model/stripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem.d.cts +1 -1
  1963. package/dist/generated/model/stripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem.d.ts +1 -1
  1964. package/dist/generated/model/stripeAppInvoice.d.cts +1 -1
  1965. package/dist/generated/model/stripeAppInvoice.d.ts +1 -1
  1966. package/dist/generated/model/stripeAppInvoiceList.d.cts +1 -1
  1967. package/dist/generated/model/stripeAppInvoiceList.d.ts +1 -1
  1968. package/dist/generated/model/stripeAppListInvoicesParams.d.cts +1 -1
  1969. package/dist/generated/model/stripeAppListInvoicesParams.d.ts +1 -1
  1970. package/dist/generated/model/stripeAppLookupInvoiceParams.d.cts +1 -1
  1971. package/dist/generated/model/stripeAppLookupInvoiceParams.d.ts +1 -1
  1972. package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.cts +1 -1
  1973. package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.ts +1 -1
  1974. package/dist/generated/model/stripeAppOAuthCallbackParams.d.cts +1 -1
  1975. package/dist/generated/model/stripeAppOAuthCallbackParams.d.ts +1 -1
  1976. package/dist/generated/model/stripeAppSettings.d.cts +1 -1
  1977. package/dist/generated/model/stripeAppSettings.d.ts +1 -1
  1978. package/dist/generated/model/stripeAppUpdateSettingsBody.d.cts +1 -1
  1979. package/dist/generated/model/stripeAppUpdateSettingsBody.d.ts +1 -1
  1980. package/dist/generated/model/stripeAppUpdateSettingsBodyAutoInvoiceEventsItem.d.cts +1 -1
  1981. package/dist/generated/model/stripeAppUpdateSettingsBodyAutoInvoiceEventsItem.d.ts +1 -1
  1982. package/dist/generated/model/stripeAppWebhookResponse.d.cts +1 -1
  1983. package/dist/generated/model/stripeAppWebhookResponse.d.ts +1 -1
  1984. package/dist/generated/model/supplier.d.cts +13 -0
  1985. package/dist/generated/model/supplier.d.ts +13 -0
  1986. package/dist/generated/model/supplier.d.ts.map +1 -0
  1987. package/dist/generated/model/supplierBase.d.cts +86 -0
  1988. package/dist/generated/model/supplierBase.d.ts +86 -0
  1989. package/dist/generated/model/supplierBase.d.ts.map +1 -0
  1990. package/dist/generated/model/supplierBaseMetadata.d.cts +11 -0
  1991. package/dist/generated/model/supplierBaseMetadata.d.ts +11 -0
  1992. package/dist/generated/model/supplierBaseMetadata.d.ts.map +1 -0
  1993. package/dist/generated/model/supportedCountriesResponse.d.cts +1 -1
  1994. package/dist/generated/model/supportedCountriesResponse.d.ts +1 -1
  1995. package/dist/generated/model/syncShopifyOrdersBody.d.cts +17 -0
  1996. package/dist/generated/model/syncShopifyOrdersBody.d.ts +17 -0
  1997. package/dist/generated/model/syncShopifyOrdersBody.d.ts.map +1 -0
  1998. package/dist/generated/model/syncShopifyOrdersResponse.d.cts +16 -0
  1999. package/dist/generated/model/syncShopifyOrdersResponse.d.ts +16 -0
  2000. package/dist/generated/model/syncShopifyOrdersResponse.d.ts.map +1 -0
  2001. package/dist/generated/model/tax.d.cts +11 -1
  2002. package/dist/generated/model/tax.d.ts +11 -1
  2003. package/dist/generated/model/tax.d.ts.map +1 -1
  2004. package/dist/generated/model/taxMetadata.d.cts +1 -1
  2005. package/dist/generated/model/taxMetadata.d.ts +1 -1
  2006. package/dist/generated/model/taxResponse.d.cts +13 -0
  2007. package/dist/generated/model/taxResponse.d.ts +13 -0
  2008. package/dist/generated/model/taxResponse.d.ts.map +1 -0
  2009. package/dist/generated/model/taxRules.d.cts +1 -1
  2010. package/dist/generated/model/taxRules.d.ts +1 -1
  2011. package/dist/generated/model/taxTaxRatesItem.d.cts +1 -1
  2012. package/dist/generated/model/taxTaxRatesItem.d.ts +1 -1
  2013. package/dist/generated/model/{viesCheckRequest.d.cts → transactionTypeCheckRequest.d.cts} +7 -7
  2014. package/dist/generated/model/{viesCheckRequest.d.ts → transactionTypeCheckRequest.d.ts} +7 -7
  2015. package/dist/generated/model/transactionTypeCheckRequest.d.ts.map +1 -0
  2016. package/dist/generated/model/{viesCheckRequestCustomer.d.cts → transactionTypeCheckRequestCustomer.d.cts} +5 -3
  2017. package/dist/generated/model/{viesCheckRequestCustomer.d.ts → transactionTypeCheckRequestCustomer.d.ts} +5 -3
  2018. package/dist/generated/model/transactionTypeCheckRequestCustomer.d.ts.map +1 -0
  2019. package/dist/generated/model/{viesCheckRequestIssuer.d.cts → transactionTypeCheckRequestIssuer.d.cts} +3 -3
  2020. package/dist/generated/model/{viesCheckRequestIssuer.d.ts → transactionTypeCheckRequestIssuer.d.ts} +3 -3
  2021. package/dist/generated/model/transactionTypeCheckRequestIssuer.d.ts.map +1 -0
  2022. package/dist/generated/model/{viesCheckResponse.d.cts → transactionTypeCheckResponse.d.cts} +6 -6
  2023. package/dist/generated/model/{viesCheckResponse.d.ts → transactionTypeCheckResponse.d.ts} +6 -6
  2024. package/dist/generated/model/transactionTypeCheckResponse.d.ts.map +1 -0
  2025. package/dist/generated/model/{viesCheckResponseTransactionType.d.cts → transactionTypeCheckResponseTransactionType.d.cts} +7 -6
  2026. package/dist/generated/model/{viesCheckResponseTransactionType.d.ts → transactionTypeCheckResponseTransactionType.d.ts} +7 -6
  2027. package/dist/generated/model/transactionTypeCheckResponseTransactionType.d.ts.map +1 -0
  2028. package/dist/generated/model/updateAccountWebhookBody.d.cts +30 -0
  2029. package/dist/generated/model/updateAccountWebhookBody.d.ts +30 -0
  2030. package/dist/generated/model/updateAccountWebhookBody.d.ts.map +1 -0
  2031. package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.cts +20 -0
  2032. package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.ts +20 -0
  2033. package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.ts.map +1 -0
  2034. package/dist/generated/model/updateAccountWebhookBodyMetadata.d.cts +15 -0
  2035. package/dist/generated/model/updateAccountWebhookBodyMetadata.d.ts +15 -0
  2036. package/dist/generated/model/updateAccountWebhookBodyMetadata.d.ts.map +1 -0
  2037. package/dist/generated/model/updateAdvanceInvoice.d.cts +27 -3
  2038. package/dist/generated/model/updateAdvanceInvoice.d.ts +27 -3
  2039. package/dist/generated/model/updateAdvanceInvoice.d.ts.map +1 -1
  2040. package/dist/generated/model/updateAdvanceInvoiceMetadata.d.cts +1 -1
  2041. package/dist/generated/model/updateAdvanceInvoiceMetadata.d.ts +1 -1
  2042. package/dist/generated/model/updateCreditNote.d.cts +39 -3
  2043. package/dist/generated/model/updateCreditNote.d.ts +39 -3
  2044. package/dist/generated/model/updateCreditNote.d.ts.map +1 -1
  2045. package/dist/generated/model/updateCreditNoteMetadata.d.cts +1 -1
  2046. package/dist/generated/model/updateCreditNoteMetadata.d.ts +1 -1
  2047. package/dist/generated/model/updateCustomerBody.d.cts +8 -1
  2048. package/dist/generated/model/updateCustomerBody.d.ts +8 -1
  2049. package/dist/generated/model/updateCustomerBody.d.ts.map +1 -1
  2050. package/dist/generated/model/updateCustomerBodyMetadata.d.cts +1 -1
  2051. package/dist/generated/model/updateCustomerBodyMetadata.d.ts +1 -1
  2052. package/dist/generated/model/updateDeliveryNote.d.cts +27 -3
  2053. package/dist/generated/model/updateDeliveryNote.d.ts +27 -3
  2054. package/dist/generated/model/updateDeliveryNote.d.ts.map +1 -1
  2055. package/dist/generated/model/updateDeliveryNoteMetadata.d.cts +1 -1
  2056. package/dist/generated/model/updateDeliveryNoteMetadata.d.ts +1 -1
  2057. package/dist/generated/model/updateEInvoicingSettingsRequest.d.cts +22 -0
  2058. package/dist/generated/model/updateEInvoicingSettingsRequest.d.ts +22 -0
  2059. package/dist/generated/model/updateEInvoicingSettingsRequest.d.ts.map +1 -0
  2060. package/dist/generated/model/updateEInvoicingSupplierRequest.d.cts +39 -0
  2061. package/dist/generated/model/updateEInvoicingSupplierRequest.d.ts +39 -0
  2062. package/dist/generated/model/updateEInvoicingSupplierRequest.d.ts.map +1 -0
  2063. package/dist/generated/model/updateEntityUserRoleBody.d.cts +1 -1
  2064. package/dist/generated/model/updateEntityUserRoleBody.d.ts +1 -1
  2065. package/dist/generated/model/updateEntityUserRoleBodyRole.d.cts +1 -1
  2066. package/dist/generated/model/updateEntityUserRoleBodyRole.d.ts +1 -1
  2067. package/dist/generated/model/updateEstimate.d.cts +23 -2
  2068. package/dist/generated/model/updateEstimate.d.ts +23 -2
  2069. package/dist/generated/model/updateEstimate.d.ts.map +1 -1
  2070. package/dist/generated/model/updateEstimateMetadata.d.cts +1 -1
  2071. package/dist/generated/model/updateEstimateMetadata.d.ts +1 -1
  2072. package/dist/generated/model/updateEstimateTitleType.d.cts +3 -3
  2073. package/dist/generated/model/updateEstimateTitleType.d.ts +3 -3
  2074. package/dist/generated/model/updateFinaSettings200.d.cts +15 -6
  2075. package/dist/generated/model/updateFinaSettings200.d.ts +15 -6
  2076. package/dist/generated/model/updateFinaSettings200.d.ts.map +1 -1
  2077. package/dist/generated/model/updateFinaSettings200CertificateStatus.d.cts +1 -1
  2078. package/dist/generated/model/updateFinaSettings200CertificateStatus.d.ts +1 -1
  2079. package/dist/generated/model/updateFinaSettings200NumberingSequence.d.cts +1 -1
  2080. package/dist/generated/model/updateFinaSettings200NumberingSequence.d.ts +1 -1
  2081. package/dist/generated/model/updateFinaSettingsBody.d.cts +10 -5
  2082. package/dist/generated/model/updateFinaSettingsBody.d.ts +10 -5
  2083. package/dist/generated/model/updateFinaSettingsBody.d.ts.map +1 -1
  2084. package/dist/generated/model/updateFinaSettingsBodyNumberingSequence.d.cts +1 -1
  2085. package/dist/generated/model/updateFinaSettingsBodyNumberingSequence.d.ts +1 -1
  2086. package/dist/generated/model/updateFursSettings200.d.cts +3 -1
  2087. package/dist/generated/model/updateFursSettings200.d.ts +3 -1
  2088. package/dist/generated/model/updateFursSettings200.d.ts.map +1 -1
  2089. package/dist/generated/model/updateFursSettings200CertificateStatus.d.cts +1 -1
  2090. package/dist/generated/model/updateFursSettings200CertificateStatus.d.ts +1 -1
  2091. package/dist/generated/model/updateFursSettings200NumberingStrategy.d.cts +1 -1
  2092. package/dist/generated/model/updateFursSettings200NumberingStrategy.d.ts +1 -1
  2093. package/dist/generated/model/updateFursSettingsBody.d.cts +3 -1
  2094. package/dist/generated/model/updateFursSettingsBody.d.ts +3 -1
  2095. package/dist/generated/model/updateFursSettingsBody.d.ts.map +1 -1
  2096. package/dist/generated/model/updateFursSettingsBodyNumberingStrategy.d.cts +1 -1
  2097. package/dist/generated/model/updateFursSettingsBodyNumberingStrategy.d.ts +1 -1
  2098. package/dist/generated/model/updateIncomingPurchaseDocumentBody.d.cts +87 -0
  2099. package/dist/generated/model/updateIncomingPurchaseDocumentBody.d.ts +87 -0
  2100. package/dist/generated/model/updateIncomingPurchaseDocumentBody.d.ts.map +1 -0
  2101. package/dist/generated/model/updateIncomingPurchaseDocumentBodyMetadata.d.cts +15 -0
  2102. package/dist/generated/model/updateIncomingPurchaseDocumentBodyMetadata.d.ts +15 -0
  2103. package/dist/generated/model/updateIncomingPurchaseDocumentBodyMetadata.d.ts.map +1 -0
  2104. package/dist/generated/model/updateIncomingPurchaseDocumentBodyTransactionType.d.cts +20 -0
  2105. package/dist/generated/model/updateIncomingPurchaseDocumentBodyTransactionType.d.ts +20 -0
  2106. package/dist/generated/model/updateIncomingPurchaseDocumentBodyTransactionType.d.ts.map +1 -0
  2107. package/dist/generated/model/updateIncomingPurchaseDocumentBodyType.d.cts +14 -0
  2108. package/dist/generated/model/updateIncomingPurchaseDocumentBodyType.d.ts +14 -0
  2109. package/dist/generated/model/updateIncomingPurchaseDocumentBodyType.d.ts.map +1 -0
  2110. package/dist/generated/model/updateInvoice.d.cts +27 -3
  2111. package/dist/generated/model/updateInvoice.d.ts +27 -3
  2112. package/dist/generated/model/updateInvoice.d.ts.map +1 -1
  2113. package/dist/generated/model/updateInvoiceMetadata.d.cts +1 -1
  2114. package/dist/generated/model/updateInvoiceMetadata.d.ts +1 -1
  2115. package/dist/generated/model/updateItem200.d.cts +12 -0
  2116. package/dist/generated/model/updateItem200.d.ts +12 -0
  2117. package/dist/generated/model/updateItem200.d.ts.map +1 -0
  2118. package/dist/generated/model/updateItemBody.d.cts +41 -0
  2119. package/dist/generated/model/updateItemBody.d.ts +41 -0
  2120. package/dist/generated/model/updateItemBody.d.ts.map +1 -0
  2121. package/dist/generated/model/updateItemBodyClassification.d.cts +18 -0
  2122. package/dist/generated/model/updateItemBodyClassification.d.ts +18 -0
  2123. package/dist/generated/model/updateItemBodyClassification.d.ts.map +1 -0
  2124. package/dist/generated/model/updateItemBodyMetadata.d.cts +15 -0
  2125. package/dist/generated/model/updateItemBodyMetadata.d.ts +15 -0
  2126. package/dist/generated/model/updateItemBodyMetadata.d.ts.map +1 -0
  2127. package/dist/generated/model/updateItemBodyTaxesItem.d.cts +21 -0
  2128. package/dist/generated/model/updateItemBodyTaxesItem.d.ts +21 -0
  2129. package/dist/generated/model/updateItemBodyTaxesItem.d.ts.map +1 -0
  2130. package/dist/generated/model/updateOrderBody.d.cts +1 -1
  2131. package/dist/generated/model/updateOrderBody.d.ts +1 -1
  2132. package/dist/generated/model/updateOrderBodyMetadata.d.cts +1 -1
  2133. package/dist/generated/model/updateOrderBodyMetadata.d.ts +1 -1
  2134. package/dist/generated/model/updateOrderBodyPaymentStatus.d.cts +1 -1
  2135. package/dist/generated/model/updateOrderBodyPaymentStatus.d.ts +1 -1
  2136. package/dist/generated/model/updateOrderIntegrationBody.d.cts +11 -8
  2137. package/dist/generated/model/updateOrderIntegrationBody.d.ts +11 -8
  2138. package/dist/generated/model/updateOrderIntegrationBody.d.ts.map +1 -1
  2139. package/dist/generated/model/updateOrderIntegrationBodyAutoProcessOn.d.cts +1 -1
  2140. package/dist/generated/model/updateOrderIntegrationBodyAutoProcessOn.d.ts +1 -1
  2141. package/dist/generated/model/updateOrderIntegrationBodyMetadata.d.cts +1 -1
  2142. package/dist/generated/model/updateOrderIntegrationBodyMetadata.d.ts +1 -1
  2143. package/dist/generated/model/updatePaymentBody.d.cts +1 -1
  2144. package/dist/generated/model/updatePaymentBody.d.ts +1 -1
  2145. package/dist/generated/model/updatePaymentBodyMetadata.d.cts +1 -1
  2146. package/dist/generated/model/updatePaymentBodyMetadata.d.ts +1 -1
  2147. package/dist/generated/model/updatePaymentBodyType.d.cts +1 -1
  2148. package/dist/generated/model/updatePaymentBodyType.d.ts +1 -1
  2149. package/dist/generated/model/updateRecurringInvoiceBody.d.cts +1 -1
  2150. package/dist/generated/model/updateRecurringInvoiceBody.d.ts +1 -1
  2151. package/dist/generated/model/updateRecurringInvoiceBodyFrequency.d.cts +1 -1
  2152. package/dist/generated/model/updateRecurringInvoiceBodyFrequency.d.ts +1 -1
  2153. package/dist/generated/model/updateRecurringInvoiceBodyMetadata.d.cts +1 -1
  2154. package/dist/generated/model/updateRecurringInvoiceBodyMetadata.d.ts +1 -1
  2155. package/dist/generated/model/updateSloveniaTaxProfile200.d.cts +50 -0
  2156. package/dist/generated/model/updateSloveniaTaxProfile200.d.ts +50 -0
  2157. package/dist/generated/model/updateSloveniaTaxProfile200.d.ts.map +1 -0
  2158. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExports.d.cts +18 -0
  2159. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExports.d.ts +18 -0
  2160. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExports.d.ts.map +1 -0
  2161. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExportsPreferredFormat.d.cts +18 -0
  2162. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts +18 -0
  2163. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts.map +1 -0
  2164. package/dist/generated/model/updateSloveniaTaxProfile200BusinessForm.d.cts +19 -0
  2165. package/dist/generated/model/updateSloveniaTaxProfile200BusinessForm.d.ts +19 -0
  2166. package/dist/generated/model/updateSloveniaTaxProfile200BusinessForm.d.ts.map +1 -0
  2167. package/dist/generated/model/updateSloveniaTaxProfile200BusinessFormSource.d.cts +14 -0
  2168. package/dist/generated/model/updateSloveniaTaxProfile200BusinessFormSource.d.ts +14 -0
  2169. package/dist/generated/model/updateSloveniaTaxProfile200BusinessFormSource.d.ts.map +1 -0
  2170. package/dist/generated/model/updateSloveniaTaxProfile200IncomeTaxRegime.d.cts +17 -0
  2171. package/dist/generated/model/updateSloveniaTaxProfile200IncomeTaxRegime.d.ts +17 -0
  2172. package/dist/generated/model/updateSloveniaTaxProfile200IncomeTaxRegime.d.ts.map +1 -0
  2173. package/dist/generated/model/updateSloveniaTaxProfile200InferredBusinessForm.d.cts +19 -0
  2174. package/dist/generated/model/updateSloveniaTaxProfile200InferredBusinessForm.d.ts +19 -0
  2175. package/dist/generated/model/updateSloveniaTaxProfile200InferredBusinessForm.d.ts.map +1 -0
  2176. package/dist/generated/model/updateSloveniaTaxProfile200SupportedExports.d.cts +14 -0
  2177. package/dist/generated/model/updateSloveniaTaxProfile200SupportedExports.d.ts +14 -0
  2178. package/dist/generated/model/updateSloveniaTaxProfile200SupportedExports.d.ts.map +1 -0
  2179. package/dist/generated/model/updateSloveniaTaxProfile200TaxResidency.d.cts +17 -0
  2180. package/dist/generated/model/updateSloveniaTaxProfile200TaxResidency.d.ts +17 -0
  2181. package/dist/generated/model/updateSloveniaTaxProfile200TaxResidency.d.ts.map +1 -0
  2182. package/dist/generated/model/updateSloveniaTaxProfile200VatProfile.d.cts +18 -0
  2183. package/dist/generated/model/updateSloveniaTaxProfile200VatProfile.d.ts +18 -0
  2184. package/dist/generated/model/updateSloveniaTaxProfile200VatProfile.d.ts.map +1 -0
  2185. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReporting.d.cts +44 -0
  2186. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReporting.d.ts +44 -0
  2187. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReporting.d.ts.map +1 -0
  2188. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingAccountingType.d.cts +18 -0
  2189. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingAccountingType.d.ts +18 -0
  2190. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingAccountingType.d.ts.map +1 -0
  2191. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  2192. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  2193. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  2194. package/dist/generated/model/updateSloveniaTaxProfileBody.d.cts +40 -0
  2195. package/dist/generated/model/updateSloveniaTaxProfileBody.d.ts +40 -0
  2196. package/dist/generated/model/updateSloveniaTaxProfileBody.d.ts.map +1 -0
  2197. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExports.d.cts +151 -0
  2198. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExports.d.ts +151 -0
  2199. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExports.d.ts.map +1 -0
  2200. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsKontoMappings.d.cts +140 -0
  2201. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsKontoMappings.d.ts +140 -0
  2202. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsKontoMappings.d.ts.map +1 -0
  2203. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsPreferredFormat.d.cts +18 -0
  2204. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsPreferredFormat.d.ts +18 -0
  2205. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsPreferredFormat.d.ts.map +1 -0
  2206. package/dist/generated/model/updateSloveniaTaxProfileBodyBusinessForm.d.cts +19 -0
  2207. package/dist/generated/model/updateSloveniaTaxProfileBodyBusinessForm.d.ts +19 -0
  2208. package/dist/generated/model/updateSloveniaTaxProfileBodyBusinessForm.d.ts.map +1 -0
  2209. package/dist/generated/model/updateSloveniaTaxProfileBodyIncomeTaxRegime.d.cts +17 -0
  2210. package/dist/generated/model/updateSloveniaTaxProfileBodyIncomeTaxRegime.d.ts +17 -0
  2211. package/dist/generated/model/updateSloveniaTaxProfileBodyIncomeTaxRegime.d.ts.map +1 -0
  2212. package/dist/generated/model/updateSloveniaTaxProfileBodyTaxResidency.d.cts +17 -0
  2213. package/dist/generated/model/updateSloveniaTaxProfileBodyTaxResidency.d.ts +17 -0
  2214. package/dist/generated/model/updateSloveniaTaxProfileBodyTaxResidency.d.ts.map +1 -0
  2215. package/dist/generated/model/updateSloveniaTaxProfileBodyVatProfile.d.cts +18 -0
  2216. package/dist/generated/model/updateSloveniaTaxProfileBodyVatProfile.d.ts +18 -0
  2217. package/dist/generated/model/updateSloveniaTaxProfileBodyVatProfile.d.ts.map +1 -0
  2218. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReporting.d.cts +39 -0
  2219. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReporting.d.ts +39 -0
  2220. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReporting.d.ts.map +1 -0
  2221. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingAccountingType.d.cts +18 -0
  2222. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingAccountingType.d.ts +18 -0
  2223. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingAccountingType.d.ts.map +1 -0
  2224. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  2225. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  2226. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  2227. package/dist/generated/model/updateSupplierBody.d.cts +79 -0
  2228. package/dist/generated/model/updateSupplierBody.d.ts +79 -0
  2229. package/dist/generated/model/updateSupplierBody.d.ts.map +1 -0
  2230. package/dist/generated/model/updateSupplierBodyMetadata.d.cts +15 -0
  2231. package/dist/generated/model/updateSupplierBodyMetadata.d.ts +15 -0
  2232. package/dist/generated/model/updateSupplierBodyMetadata.d.ts.map +1 -0
  2233. package/dist/generated/model/updateTaxBody.d.cts +1 -1
  2234. package/dist/generated/model/updateTaxBody.d.ts +1 -1
  2235. package/dist/generated/model/updateTaxBodyTaxRatesItem.d.cts +1 -1
  2236. package/dist/generated/model/updateTaxBodyTaxRatesItem.d.ts +1 -1
  2237. package/dist/generated/model/updateUserFinaSettingsBody.d.cts +1 -1
  2238. package/dist/generated/model/updateUserFinaSettingsBody.d.ts +1 -1
  2239. package/dist/generated/model/updateUserFursSettingsBody.d.cts +1 -1
  2240. package/dist/generated/model/updateUserFursSettingsBody.d.ts +1 -1
  2241. package/dist/generated/model/updateUserPtSettingsBody.d.cts +25 -0
  2242. package/dist/generated/model/updateUserPtSettingsBody.d.ts +25 -0
  2243. package/dist/generated/model/updateUserPtSettingsBody.d.ts.map +1 -0
  2244. package/dist/generated/model/updateWLSubscriptionBillingEmail200.d.cts +12 -0
  2245. package/dist/generated/model/updateWLSubscriptionBillingEmail200.d.ts +12 -0
  2246. package/dist/generated/model/updateWLSubscriptionBillingEmail200.d.ts.map +1 -0
  2247. package/dist/generated/model/updateWebhookBody.d.cts +1 -1
  2248. package/dist/generated/model/updateWebhookBody.d.ts +1 -1
  2249. package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +7 -1
  2250. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +7 -1
  2251. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts.map +1 -1
  2252. package/dist/generated/model/updateWebhookBodyMetadata.d.cts +1 -1
  2253. package/dist/generated/model/updateWebhookBodyMetadata.d.ts +1 -1
  2254. package/dist/generated/model/uploadFileBody.d.cts +3 -1
  2255. package/dist/generated/model/uploadFileBody.d.ts +3 -1
  2256. package/dist/generated/model/uploadFileBody.d.ts.map +1 -1
  2257. package/dist/generated/model/uploadFileBodyCategory.d.cts +1 -1
  2258. package/dist/generated/model/uploadFileBodyCategory.d.ts +1 -1
  2259. package/dist/generated/model/uploadFinaCertificate200.d.cts +1 -1
  2260. package/dist/generated/model/uploadFinaCertificate200.d.ts +1 -1
  2261. package/dist/generated/model/uploadFinaCertificateBody.d.cts +1 -1
  2262. package/dist/generated/model/uploadFinaCertificateBody.d.ts +1 -1
  2263. package/dist/generated/model/uploadFursCertificate200.d.cts +1 -1
  2264. package/dist/generated/model/uploadFursCertificate200.d.ts +1 -1
  2265. package/dist/generated/model/uploadFursCertificateBody.d.cts +1 -1
  2266. package/dist/generated/model/uploadFursCertificateBody.d.ts +1 -1
  2267. package/dist/generated/model/uploadImage200.d.cts +2 -2
  2268. package/dist/generated/model/uploadImage200.d.ts +2 -2
  2269. package/dist/generated/model/uploadImage200.d.ts.map +1 -1
  2270. package/dist/generated/model/uploadImageBody.d.cts +1 -1
  2271. package/dist/generated/model/uploadImageBody.d.ts +1 -1
  2272. package/dist/generated/model/uploadIncomingPurchaseDocumentAttachmentBody.d.cts +11 -0
  2273. package/dist/generated/model/uploadIncomingPurchaseDocumentAttachmentBody.d.ts +11 -0
  2274. package/dist/generated/model/uploadIncomingPurchaseDocumentAttachmentBody.d.ts.map +1 -0
  2275. package/dist/generated/model/usageStats.d.cts +8 -1
  2276. package/dist/generated/model/usageStats.d.ts +8 -1
  2277. package/dist/generated/model/usageStats.d.ts.map +1 -1
  2278. package/dist/generated/model/user.d.cts +1 -1
  2279. package/dist/generated/model/user.d.ts +1 -1
  2280. package/dist/generated/model/userMetadata.d.cts +1 -1
  2281. package/dist/generated/model/userMetadata.d.ts +1 -1
  2282. package/dist/generated/model/userSettings.d.cts +1 -1
  2283. package/dist/generated/model/userSettings.d.ts +1 -1
  2284. package/dist/generated/model/validationError.d.cts +3 -4
  2285. package/dist/generated/model/validationError.d.ts +3 -4
  2286. package/dist/generated/model/validationError.d.ts.map +1 -1
  2287. package/dist/generated/model/validationErrorCause.d.cts +14 -0
  2288. package/dist/generated/model/validationErrorCause.d.ts +14 -0
  2289. package/dist/generated/model/validationErrorCause.d.ts.map +1 -0
  2290. package/dist/generated/model/versionUser.d.cts +1 -1
  2291. package/dist/generated/model/versionUser.d.ts +1 -1
  2292. package/dist/generated/model/viesDocumentData.d.cts +1 -1
  2293. package/dist/generated/model/viesDocumentData.d.ts +1 -1
  2294. package/dist/generated/model/voidAdvanceInvoiceBody.d.cts +6 -1
  2295. package/dist/generated/model/voidAdvanceInvoiceBody.d.ts +6 -1
  2296. package/dist/generated/model/voidAdvanceInvoiceBody.d.ts.map +1 -1
  2297. package/dist/generated/model/voidCreditNoteBody.d.cts +6 -1
  2298. package/dist/generated/model/voidCreditNoteBody.d.ts +6 -1
  2299. package/dist/generated/model/voidCreditNoteBody.d.ts.map +1 -1
  2300. package/dist/generated/model/voidDeliveryNoteBody.d.cts +1 -1
  2301. package/dist/generated/model/voidDeliveryNoteBody.d.ts +1 -1
  2302. package/dist/generated/model/voidInvoiceBody.d.cts +6 -1
  2303. package/dist/generated/model/voidInvoiceBody.d.ts +6 -1
  2304. package/dist/generated/model/voidInvoiceBody.d.ts.map +1 -1
  2305. package/dist/generated/model/wLUpdateBillingEmailRequest.d.cts +12 -0
  2306. package/dist/generated/model/wLUpdateBillingEmailRequest.d.ts +12 -0
  2307. package/dist/generated/model/wLUpdateBillingEmailRequest.d.ts.map +1 -0
  2308. package/dist/generated/model/webhookDelivery.d.cts +1 -1
  2309. package/dist/generated/model/webhookDelivery.d.ts +1 -1
  2310. package/dist/generated/model/webhookDeliveryRequestBody.d.cts +1 -1
  2311. package/dist/generated/model/webhookDeliveryRequestBody.d.ts +1 -1
  2312. package/dist/generated/model/webhookDeliveryStatus.d.cts +1 -1
  2313. package/dist/generated/model/webhookDeliveryStatus.d.ts +1 -1
  2314. package/dist/generated/model/webhookResponse.d.cts +1 -1
  2315. package/dist/generated/model/webhookResponse.d.ts +1 -1
  2316. package/dist/generated/model/webhookResponseEventsItem.d.cts +7 -1
  2317. package/dist/generated/model/webhookResponseEventsItem.d.ts +7 -1
  2318. package/dist/generated/model/webhookResponseEventsItem.d.ts.map +1 -1
  2319. package/dist/generated/model/webhookResponseMetadata.d.cts +1 -1
  2320. package/dist/generated/model/webhookResponseMetadata.d.ts +1 -1
  2321. package/dist/generated/model/webhookWithSecret.d.cts +1 -1
  2322. package/dist/generated/model/webhookWithSecret.d.ts +1 -1
  2323. package/dist/generated/model/webhookWithSecretEventsItem.d.cts +7 -1
  2324. package/dist/generated/model/webhookWithSecretEventsItem.d.ts +7 -1
  2325. package/dist/generated/model/webhookWithSecretEventsItem.d.ts.map +1 -1
  2326. package/dist/generated/model/webhookWithSecretMetadata.d.cts +1 -1
  2327. package/dist/generated/model/webhookWithSecretMetadata.d.ts +1 -1
  2328. package/dist/generated/model/whiteLabelConfig.d.cts +40 -2
  2329. package/dist/generated/model/whiteLabelConfig.d.ts +40 -2
  2330. package/dist/generated/model/whiteLabelConfig.d.ts.map +1 -1
  2331. package/dist/generated/model/whiteLabelConfigTheme.d.cts +1 -1
  2332. package/dist/generated/model/whiteLabelConfigTheme.d.ts +1 -1
  2333. package/dist/generated/model/whiteLabelPlan.d.cts +1 -1
  2334. package/dist/generated/model/whiteLabelPlan.d.ts +1 -1
  2335. package/dist/generated/order-integrations/order-integrations.d.cts +48 -3
  2336. package/dist/generated/order-integrations/order-integrations.d.ts +48 -3
  2337. package/dist/generated/order-integrations/order-integrations.d.ts.map +1 -1
  2338. package/dist/generated/orders/orders.d.cts +7 -3
  2339. package/dist/generated/orders/orders.d.ts +7 -3
  2340. package/dist/generated/orders/orders.d.ts.map +1 -1
  2341. package/dist/generated/payments/payments.d.cts +22 -10
  2342. package/dist/generated/payments/payments.d.ts +22 -10
  2343. package/dist/generated/payments/payments.d.ts.map +1 -1
  2344. package/dist/generated/pt-atcud-series/pt-atcud-series.d.cts +161 -0
  2345. package/dist/generated/pt-atcud-series/pt-atcud-series.d.ts +161 -0
  2346. package/dist/generated/pt-atcud-series/pt-atcud-series.d.ts.map +1 -0
  2347. package/dist/generated/pt-saf-t/pt-saf-t.d.cts +46 -0
  2348. package/dist/generated/pt-saf-t/pt-saf-t.d.ts +46 -0
  2349. package/dist/generated/pt-saf-t/pt-saf-t.d.ts.map +1 -0
  2350. package/dist/generated/recurring-invoices/recurring-invoices.d.cts +12 -4
  2351. package/dist/generated/recurring-invoices/recurring-invoices.d.ts +12 -4
  2352. package/dist/generated/recurring-invoices/recurring-invoices.d.ts.map +1 -1
  2353. package/dist/generated/stripe-app/stripe-app.d.cts +12 -4
  2354. package/dist/generated/stripe-app/stripe-app.d.ts +12 -4
  2355. package/dist/generated/stripe-app/stripe-app.d.ts.map +1 -1
  2356. package/dist/generated/suppliers/suppliers.d.cts +157 -0
  2357. package/dist/generated/suppliers/suppliers.d.ts +157 -0
  2358. package/dist/generated/suppliers/suppliers.d.ts.map +1 -0
  2359. package/dist/generated/tax-reports/tax-reports.d.cts +187 -2
  2360. package/dist/generated/tax-reports/tax-reports.d.ts +187 -2
  2361. package/dist/generated/tax-reports/tax-reports.d.ts.map +1 -1
  2362. package/dist/generated/taxes/taxes.d.cts +16 -8
  2363. package/dist/generated/taxes/taxes.d.ts +16 -8
  2364. package/dist/generated/taxes/taxes.d.ts.map +1 -1
  2365. package/dist/generated/transaction-type/transaction-type.d.cts +72 -0
  2366. package/dist/generated/transaction-type/transaction-type.d.ts +72 -0
  2367. package/dist/generated/transaction-type/transaction-type.d.ts.map +1 -0
  2368. package/dist/generated/upload/upload.d.cts +2 -2
  2369. package/dist/generated/upload/upload.d.ts +2 -2
  2370. package/dist/generated/upload/upload.d.ts.map +1 -1
  2371. package/dist/generated/users/users.d.cts +43 -2
  2372. package/dist/generated/users/users.d.ts +43 -2
  2373. package/dist/generated/users/users.d.ts.map +1 -1
  2374. package/dist/generated/vies/vies.d.cts +7 -25
  2375. package/dist/generated/vies/vies.d.ts +7 -25
  2376. package/dist/generated/vies/vies.d.ts.map +1 -1
  2377. package/dist/generated/webhooks/webhooks.d.cts +7 -3
  2378. package/dist/generated/webhooks/webhooks.d.ts +7 -3
  2379. package/dist/generated/webhooks/webhooks.d.ts.map +1 -1
  2380. package/dist/generated/white-label-subscriptions/white-label-subscriptions.d.cts +10 -38
  2381. package/dist/generated/white-label-subscriptions/white-label-subscriptions.d.ts +10 -38
  2382. package/dist/generated/white-label-subscriptions/white-label-subscriptions.d.ts.map +1 -1
  2383. package/dist/generated/white-labels/white-labels.d.cts +2 -2
  2384. package/dist/generated/white-labels/white-labels.d.ts +2 -2
  2385. package/dist/generated/white-labels/white-labels.d.ts.map +1 -1
  2386. package/dist/generated-zod/account-webhooks/account-webhooks.d.cts +346 -0
  2387. package/dist/generated-zod/account-webhooks/account-webhooks.d.ts +346 -0
  2388. package/dist/generated-zod/account-webhooks/account-webhooks.d.ts.map +1 -0
  2389. package/dist/generated-zod/activities/activities.d.cts +2 -2
  2390. package/dist/generated-zod/activities/activities.d.ts +2 -2
  2391. package/dist/generated-zod/activities/activities.d.ts.map +1 -1
  2392. package/dist/generated-zod/advance-invoices/advance-invoices.d.cts +880 -589
  2393. package/dist/generated-zod/advance-invoices/advance-invoices.d.ts +880 -589
  2394. package/dist/generated-zod/advance-invoices/advance-invoices.d.ts.map +1 -1
  2395. package/dist/generated-zod/company-registry/company-registry.d.cts +1 -1
  2396. package/dist/generated-zod/company-registry/company-registry.d.ts +1 -1
  2397. package/dist/generated-zod/credit-notes/credit-notes.d.cts +901 -598
  2398. package/dist/generated-zod/credit-notes/credit-notes.d.ts +901 -598
  2399. package/dist/generated-zod/credit-notes/credit-notes.d.ts.map +1 -1
  2400. package/dist/generated-zod/customers/customers.d.cts +48 -30
  2401. package/dist/generated-zod/customers/customers.d.ts +48 -30
  2402. package/dist/generated-zod/customers/customers.d.ts.map +1 -1
  2403. package/dist/generated-zod/delivery-notes/delivery-notes.d.cts +747 -459
  2404. package/dist/generated-zod/delivery-notes/delivery-notes.d.ts +747 -459
  2405. package/dist/generated-zod/delivery-notes/delivery-notes.d.ts.map +1 -1
  2406. package/dist/generated-zod/documents/documents.d.cts +217 -25
  2407. package/dist/generated-zod/documents/documents.d.ts +217 -25
  2408. package/dist/generated-zod/documents/documents.d.ts.map +1 -1
  2409. package/dist/generated-zod/e-invoicing/e-invoicing.d.cts +394 -0
  2410. package/dist/generated-zod/e-invoicing/e-invoicing.d.ts +394 -0
  2411. package/dist/generated-zod/e-invoicing/e-invoicing.d.ts.map +1 -0
  2412. package/dist/generated-zod/email/email.d.cts +49 -5
  2413. package/dist/generated-zod/email/email.d.ts +49 -5
  2414. package/dist/generated-zod/email/email.d.ts.map +1 -1
  2415. package/dist/generated-zod/entities/entities.d.cts +1287 -886
  2416. package/dist/generated-zod/entities/entities.d.ts +1287 -886
  2417. package/dist/generated-zod/entities/entities.d.ts.map +1 -1
  2418. package/dist/generated-zod/entity-api-keys/entity-api-keys.d.cts +5 -2
  2419. package/dist/generated-zod/entity-api-keys/entity-api-keys.d.ts +5 -2
  2420. package/dist/generated-zod/entity-api-keys/entity-api-keys.d.ts.map +1 -1
  2421. package/dist/generated-zod/entity-invitations/entity-invitations.d.cts +11 -11
  2422. package/dist/generated-zod/entity-invitations/entity-invitations.d.ts +11 -11
  2423. package/dist/generated-zod/entity-invitations/entity-invitations.d.ts.map +1 -1
  2424. package/dist/generated-zod/entity-stats/entity-stats.d.cts +60 -20
  2425. package/dist/generated-zod/entity-stats/entity-stats.d.ts +60 -20
  2426. package/dist/generated-zod/entity-stats/entity-stats.d.ts.map +1 -1
  2427. package/dist/generated-zod/entity-users/entity-users.d.cts +10 -10
  2428. package/dist/generated-zod/entity-users/entity-users.d.ts +10 -10
  2429. package/dist/generated-zod/entity-users/entity-users.d.ts.map +1 -1
  2430. package/dist/generated-zod/estimates/estimates.d.cts +712 -433
  2431. package/dist/generated-zod/estimates/estimates.d.ts +712 -433
  2432. package/dist/generated-zod/estimates/estimates.d.ts.map +1 -1
  2433. package/dist/generated-zod/exports/exports.d.cts +109 -20
  2434. package/dist/generated-zod/exports/exports.d.ts +109 -20
  2435. package/dist/generated-zod/exports/exports.d.ts.map +1 -1
  2436. package/dist/generated-zod/files/files.d.cts +17 -11
  2437. package/dist/generated-zod/files/files.d.ts +17 -11
  2438. package/dist/generated-zod/files/files.d.ts.map +1 -1
  2439. package/dist/generated-zod/fina-certificate/fina-certificate.d.cts +2 -2
  2440. package/dist/generated-zod/fina-certificate/fina-certificate.d.ts +2 -2
  2441. package/dist/generated-zod/fina-devices/fina-devices.d.cts +14 -14
  2442. package/dist/generated-zod/fina-devices/fina-devices.d.ts +14 -14
  2443. package/dist/generated-zod/fina-devices/fina-devices.d.ts.map +1 -1
  2444. package/dist/generated-zod/fina-premises/fina-premises.d.cts +29 -29
  2445. package/dist/generated-zod/fina-premises/fina-premises.d.ts +29 -29
  2446. package/dist/generated-zod/fina-premises/fina-premises.d.ts.map +1 -1
  2447. package/dist/generated-zod/fina-settings/fina-settings.d.cts +26 -10
  2448. package/dist/generated-zod/fina-settings/fina-settings.d.ts +26 -10
  2449. package/dist/generated-zod/fina-settings/fina-settings.d.ts.map +1 -1
  2450. package/dist/generated-zod/furs-certificate/furs-certificate.d.cts +2 -2
  2451. package/dist/generated-zod/furs-certificate/furs-certificate.d.ts +2 -2
  2452. package/dist/generated-zod/furs-devices/furs-devices.d.cts +10 -10
  2453. package/dist/generated-zod/furs-devices/furs-devices.d.ts +10 -10
  2454. package/dist/generated-zod/furs-internal-act/furs-internal-act.d.cts +23 -0
  2455. package/dist/generated-zod/furs-internal-act/furs-internal-act.d.ts +23 -0
  2456. package/dist/generated-zod/furs-internal-act/furs-internal-act.d.ts.map +1 -0
  2457. package/dist/generated-zod/furs-premises/furs-premises.d.cts +31 -28
  2458. package/dist/generated-zod/furs-premises/furs-premises.d.ts +31 -28
  2459. package/dist/generated-zod/furs-premises/furs-premises.d.ts.map +1 -1
  2460. package/dist/generated-zod/furs-settings/furs-settings.d.cts +6 -3
  2461. package/dist/generated-zod/furs-settings/furs-settings.d.ts +6 -3
  2462. package/dist/generated-zod/furs-settings/furs-settings.d.ts.map +1 -1
  2463. package/dist/generated-zod/incoming-purchase-documents/incoming-purchase-documents.d.cts +966 -0
  2464. package/dist/generated-zod/incoming-purchase-documents/incoming-purchase-documents.d.ts +966 -0
  2465. package/dist/generated-zod/incoming-purchase-documents/incoming-purchase-documents.d.ts.map +1 -0
  2466. package/dist/generated-zod/index.d.cts +11 -1
  2467. package/dist/generated-zod/index.d.ts +11 -1
  2468. package/dist/generated-zod/index.d.ts.map +1 -1
  2469. package/dist/generated-zod/invoices/invoices.d.cts +1216 -592
  2470. package/dist/generated-zod/invoices/invoices.d.ts +1216 -592
  2471. package/dist/generated-zod/invoices/invoices.d.ts.map +1 -1
  2472. package/dist/generated-zod/items/items.d.cts +69 -54
  2473. package/dist/generated-zod/items/items.d.ts +69 -54
  2474. package/dist/generated-zod/items/items.d.ts.map +1 -1
  2475. package/dist/generated-zod/legacy-migration/legacy-migration.d.cts +111 -0
  2476. package/dist/generated-zod/legacy-migration/legacy-migration.d.ts +111 -0
  2477. package/dist/generated-zod/legacy-migration/legacy-migration.d.ts.map +1 -0
  2478. package/dist/generated-zod/order-integrations/order-integrations.d.cts +57 -25
  2479. package/dist/generated-zod/order-integrations/order-integrations.d.ts +57 -25
  2480. package/dist/generated-zod/order-integrations/order-integrations.d.ts.map +1 -1
  2481. package/dist/generated-zod/orders/orders.d.cts +137 -81
  2482. package/dist/generated-zod/orders/orders.d.ts +137 -81
  2483. package/dist/generated-zod/orders/orders.d.ts.map +1 -1
  2484. package/dist/generated-zod/payments/payments.d.cts +188 -34
  2485. package/dist/generated-zod/payments/payments.d.ts +188 -34
  2486. package/dist/generated-zod/payments/payments.d.ts.map +1 -1
  2487. package/dist/generated-zod/pt-atcud-series/pt-atcud-series.d.cts +170 -0
  2488. package/dist/generated-zod/pt-atcud-series/pt-atcud-series.d.ts +170 -0
  2489. package/dist/generated-zod/pt-atcud-series/pt-atcud-series.d.ts.map +1 -0
  2490. package/dist/generated-zod/pt-saf-t/pt-saf-t.d.cts +20 -0
  2491. package/dist/generated-zod/pt-saf-t/pt-saf-t.d.ts +20 -0
  2492. package/dist/generated-zod/pt-saf-t/pt-saf-t.d.ts.map +1 -0
  2493. package/dist/generated-zod/recurring-invoices/recurring-invoices.d.cts +51 -51
  2494. package/dist/generated-zod/recurring-invoices/recurring-invoices.d.ts +51 -51
  2495. package/dist/generated-zod/recurring-invoices/recurring-invoices.d.ts.map +1 -1
  2496. package/dist/generated-zod/stripe-app/stripe-app.d.cts +11 -11
  2497. package/dist/generated-zod/stripe-app/stripe-app.d.ts +11 -11
  2498. package/dist/generated-zod/suppliers/suppliers.d.cts +227 -0
  2499. package/dist/generated-zod/suppliers/suppliers.d.ts +227 -0
  2500. package/dist/generated-zod/suppliers/suppliers.d.ts.map +1 -0
  2501. package/dist/generated-zod/tax-reports/tax-reports.d.cts +482 -1
  2502. package/dist/generated-zod/tax-reports/tax-reports.d.ts +482 -1
  2503. package/dist/generated-zod/tax-reports/tax-reports.d.ts.map +1 -1
  2504. package/dist/generated-zod/taxes/taxes.d.cts +45 -109
  2505. package/dist/generated-zod/taxes/taxes.d.ts +45 -109
  2506. package/dist/generated-zod/taxes/taxes.d.ts.map +1 -1
  2507. package/dist/generated-zod/transaction-type/transaction-type.d.cts +66 -0
  2508. package/dist/generated-zod/transaction-type/transaction-type.d.ts +66 -0
  2509. package/dist/generated-zod/transaction-type/transaction-type.d.ts.map +1 -0
  2510. package/dist/generated-zod/upload/upload.d.cts +3 -3
  2511. package/dist/generated-zod/upload/upload.d.ts +3 -3
  2512. package/dist/generated-zod/users/users.d.cts +48 -22
  2513. package/dist/generated-zod/users/users.d.ts +48 -22
  2514. package/dist/generated-zod/users/users.d.ts.map +1 -1
  2515. package/dist/generated-zod/vies/vies.d.cts +6 -28
  2516. package/dist/generated-zod/vies/vies.d.ts +6 -28
  2517. package/dist/generated-zod/vies/vies.d.ts.map +1 -1
  2518. package/dist/generated-zod/webhooks/webhooks.d.cts +59 -23
  2519. package/dist/generated-zod/webhooks/webhooks.d.ts +59 -23
  2520. package/dist/generated-zod/webhooks/webhooks.d.ts.map +1 -1
  2521. package/dist/generated-zod/white-label-subscriptions/white-label-subscriptions.d.cts +72 -23
  2522. package/dist/generated-zod/white-label-subscriptions/white-label-subscriptions.d.ts +72 -23
  2523. package/dist/generated-zod/white-label-subscriptions/white-label-subscriptions.d.ts.map +1 -1
  2524. package/dist/generated-zod/white-labels/white-labels.d.cts +11 -1
  2525. package/dist/generated-zod/white-labels/white-labels.d.ts +11 -1
  2526. package/dist/generated-zod/white-labels/white-labels.d.ts.map +1 -1
  2527. package/dist/index.cjs +2 -218
  2528. package/dist/index.cjs.map +353 -232
  2529. package/dist/index.d.cts +3 -0
  2530. package/dist/index.d.ts +3 -0
  2531. package/dist/index.d.ts.map +1 -1
  2532. package/dist/index.js +2 -218
  2533. package/dist/index.js.map +353 -232
  2534. package/dist/mutator/custom-fetch.d.cts +1 -0
  2535. package/dist/mutator/custom-fetch.d.ts +1 -0
  2536. package/dist/mutator/custom-fetch.d.ts.map +1 -1
  2537. package/dist/sdk/account-webhooks.d.cts +25 -0
  2538. package/dist/sdk/account-webhooks.d.ts +25 -0
  2539. package/dist/sdk/account-webhooks.d.ts.map +1 -0
  2540. package/dist/sdk/activities.d.cts +1 -1
  2541. package/dist/sdk/activities.d.ts +1 -1
  2542. package/dist/sdk/advance-invoices.d.cts +5 -1
  2543. package/dist/sdk/advance-invoices.d.ts +5 -1
  2544. package/dist/sdk/advance-invoices.d.ts.map +1 -1
  2545. package/dist/sdk/api-modules.d.cts +10 -0
  2546. package/dist/sdk/api-modules.d.ts +10 -0
  2547. package/dist/sdk/api-modules.d.ts.map +1 -1
  2548. package/dist/sdk/client.d.cts +321 -229
  2549. package/dist/sdk/client.d.ts +321 -229
  2550. package/dist/sdk/client.d.ts.map +1 -1
  2551. package/dist/sdk/credit-notes.d.cts +5 -1
  2552. package/dist/sdk/credit-notes.d.ts +5 -1
  2553. package/dist/sdk/credit-notes.d.ts.map +1 -1
  2554. package/dist/sdk/customers.d.cts +5 -5
  2555. package/dist/sdk/customers.d.ts +5 -5
  2556. package/dist/sdk/delivery-notes.d.cts +5 -1
  2557. package/dist/sdk/delivery-notes.d.ts +5 -1
  2558. package/dist/sdk/delivery-notes.d.ts.map +1 -1
  2559. package/dist/sdk/documents.d.cts +7 -5
  2560. package/dist/sdk/documents.d.ts +7 -5
  2561. package/dist/sdk/documents.d.ts.map +1 -1
  2562. package/dist/sdk/download.d.cts +16 -0
  2563. package/dist/sdk/download.d.ts +16 -0
  2564. package/dist/sdk/download.d.ts.map +1 -0
  2565. package/dist/sdk/e-invoicing.d.cts +29 -0
  2566. package/dist/sdk/e-invoicing.d.ts +29 -0
  2567. package/dist/sdk/e-invoicing.d.ts.map +1 -0
  2568. package/dist/sdk/entities.d.cts +7 -5
  2569. package/dist/sdk/entities.d.ts +7 -5
  2570. package/dist/sdk/entities.d.ts.map +1 -1
  2571. package/dist/sdk/entity-stats.d.cts +1 -1
  2572. package/dist/sdk/entity-stats.d.ts +1 -1
  2573. package/dist/sdk/eslog.d.cts +11 -0
  2574. package/dist/sdk/eslog.d.ts +11 -0
  2575. package/dist/sdk/eslog.d.ts.map +1 -0
  2576. package/dist/sdk/estimates.d.cts +5 -1
  2577. package/dist/sdk/estimates.d.ts +5 -1
  2578. package/dist/sdk/estimates.d.ts.map +1 -1
  2579. package/dist/sdk/exports.d.cts +10 -3
  2580. package/dist/sdk/exports.d.ts +10 -3
  2581. package/dist/sdk/exports.d.ts.map +1 -1
  2582. package/dist/sdk/files.d.cts +3 -3
  2583. package/dist/sdk/files.d.ts +3 -3
  2584. package/dist/sdk/furs-internal-act.d.cts +13 -0
  2585. package/dist/sdk/furs-internal-act.d.ts +13 -0
  2586. package/dist/sdk/furs-internal-act.d.ts.map +1 -0
  2587. package/dist/sdk/health.d.cts +4 -0
  2588. package/dist/sdk/health.d.ts +4 -0
  2589. package/dist/sdk/health.d.ts.map +1 -1
  2590. package/dist/sdk/incoming-purchase-documents.d.cts +25 -0
  2591. package/dist/sdk/incoming-purchase-documents.d.ts +25 -0
  2592. package/dist/sdk/incoming-purchase-documents.d.ts.map +1 -0
  2593. package/dist/sdk/index.d.cts +10 -0
  2594. package/dist/sdk/index.d.ts +10 -0
  2595. package/dist/sdk/index.d.ts.map +1 -1
  2596. package/dist/sdk/init.d.ts.map +1 -1
  2597. package/dist/sdk/invoices.d.cts +28 -15
  2598. package/dist/sdk/invoices.d.ts +28 -15
  2599. package/dist/sdk/invoices.d.ts.map +1 -1
  2600. package/dist/sdk/items.d.cts +5 -3
  2601. package/dist/sdk/items.d.ts +5 -3
  2602. package/dist/sdk/items.d.ts.map +1 -1
  2603. package/dist/sdk/legacy-migration.d.cts +17 -0
  2604. package/dist/sdk/legacy-migration.d.ts +17 -0
  2605. package/dist/sdk/legacy-migration.d.ts.map +1 -0
  2606. package/dist/sdk/order-integrations.d.cts +6 -4
  2607. package/dist/sdk/order-integrations.d.ts +6 -4
  2608. package/dist/sdk/order-integrations.d.ts.map +1 -1
  2609. package/dist/sdk/orders.d.cts +7 -7
  2610. package/dist/sdk/orders.d.ts +7 -7
  2611. package/dist/sdk/payments.d.cts +1 -1
  2612. package/dist/sdk/payments.d.ts +1 -1
  2613. package/dist/sdk/pt-atcud-series.d.cts +19 -0
  2614. package/dist/sdk/pt-atcud-series.d.ts +19 -0
  2615. package/dist/sdk/pt-atcud-series.d.ts.map +1 -0
  2616. package/dist/sdk/pt-saf-t.d.cts +11 -0
  2617. package/dist/sdk/pt-saf-t.d.ts +11 -0
  2618. package/dist/sdk/pt-saf-t.d.ts.map +1 -0
  2619. package/dist/sdk/recurring-invoices.d.cts +8 -8
  2620. package/dist/sdk/recurring-invoices.d.ts +8 -8
  2621. package/dist/sdk/suppliers.d.cts +19 -0
  2622. package/dist/sdk/suppliers.d.ts +19 -0
  2623. package/dist/sdk/suppliers.d.ts.map +1 -0
  2624. package/dist/sdk/tax-reports.d.cts +10 -0
  2625. package/dist/sdk/tax-reports.d.ts +10 -0
  2626. package/dist/sdk/tax-reports.d.ts.map +1 -1
  2627. package/dist/sdk/taxes.d.cts +5 -5
  2628. package/dist/sdk/taxes.d.ts +5 -5
  2629. package/dist/sdk/transaction-type.d.cts +11 -0
  2630. package/dist/sdk/transaction-type.d.ts +11 -0
  2631. package/dist/sdk/transaction-type.d.ts.map +1 -0
  2632. package/dist/sdk/types.d.cts +2 -0
  2633. package/dist/sdk/types.d.ts +2 -0
  2634. package/dist/sdk/types.d.ts.map +1 -1
  2635. package/dist/sdk/utils.d.cts +1 -1
  2636. package/dist/sdk/utils.d.ts +1 -1
  2637. package/dist/sdk/utils.d.ts.map +1 -1
  2638. package/dist/sdk/vies.d.cts +1 -1
  2639. package/dist/sdk/vies.d.ts +1 -1
  2640. package/dist/sdk/webhooks.d.cts +1 -1
  2641. package/dist/sdk/webhooks.d.ts +1 -1
  2642. package/dist/sdk/white-label-subscriptions.d.cts +2 -2
  2643. package/dist/sdk/white-label-subscriptions.d.ts +2 -2
  2644. package/dist/sdk/white-label-subscriptions.d.ts.map +1 -1
  2645. package/package.json +35 -4
  2646. package/dist/generated/model/createEntity201.d.cts +0 -23
  2647. package/dist/generated/model/createEntity201.d.ts +0 -23
  2648. package/dist/generated/model/createEntity201.d.ts.map +0 -1
  2649. package/dist/generated/model/disableEntity200.d.cts +0 -20
  2650. package/dist/generated/model/disableEntity200.d.ts +0 -20
  2651. package/dist/generated/model/disableEntity200.d.ts.map +0 -1
  2652. package/dist/generated/model/enableEntity200.d.cts +0 -20
  2653. package/dist/generated/model/enableEntity200.d.ts +0 -20
  2654. package/dist/generated/model/enableEntity200.d.ts.map +0 -1
  2655. package/dist/generated/model/getEntities200DataItem.d.cts +0 -20
  2656. package/dist/generated/model/getEntities200DataItem.d.ts +0 -20
  2657. package/dist/generated/model/getEntities200DataItem.d.ts.map +0 -1
  2658. package/dist/generated/model/patchEntity200.d.cts +0 -20
  2659. package/dist/generated/model/patchEntity200.d.ts +0 -20
  2660. package/dist/generated/model/patchEntity200.d.ts.map +0 -1
  2661. package/dist/generated/model/pdfExportByDateRangeType.d.ts.map +0 -1
  2662. package/dist/generated/model/pdfExportByDocumentIdsType.d.ts.map +0 -1
  2663. package/dist/generated/model/viesCheckRequest.d.ts.map +0 -1
  2664. package/dist/generated/model/viesCheckRequestCustomer.d.ts.map +0 -1
  2665. package/dist/generated/model/viesCheckRequestIssuer.d.ts.map +0 -1
  2666. package/dist/generated/model/viesCheckResponse.d.ts.map +0 -1
  2667. package/dist/generated/model/viesCheckResponseTransactionType.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -1,219 +1,3 @@
1
- var Lce=Object.defineProperty;var Q=(o,c)=>{for(var n in c)Lce(o,n,{get:c[n],enumerable:!0,configurable:!0,set:(I)=>c[n]=()=>I})};class Hce{basePath;accessToken;constructor(o){this.basePath=o?.basePath,this.accessToken=o?.accessToken}}var eqe={viewer:"viewer",editor:"editor",admin:"admin"};var cqe={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var vqe={estimate:"estimate",quote:"quote"};var Aqe={monthly:"monthly",yearly:"yearly"};var Sqe={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var Pqe={live:"live",sandbox:"sandbox"};var Eqe={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var Oqe={estimate:"estimate",quote:"quote"};var Tqe={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var Nqe={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var uqe={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var tqe={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var Rqe={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var Hqe={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var Qqe={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var Xqe={estimate:"estimate",quote:"quote"};var xqe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var yqe={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var Fqe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var Mqe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var kqe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var mqe={live:"live",sandbox:"sandbox"};var Cqe={iban:"iban",us_domestic:"us_domestic",uk_domestic:"uk_domestic",other:"other"};var pqe={live:"live",sandbox:"sandbox"};var lqe={viewer:"viewer",editor:"editor",admin:"admin"};var iqe={pending:"pending",accepted:"accepted",expired:"expired"};var aqe={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var eNe={viewer:"viewer",editor:"editor",admin:"admin"};var cNe={estimate:"estimate",quote:"quote"};var vNe={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var ANe={xlsx:"xlsx",csv:"csv"};var SNe={en:"en",sl:"sl",de:"de",it:"it",fr:"fr",es:"es"};var PNe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var ENe={xlsx:"xlsx",csv:"csv"};var ONe={en:"en",sl:"sl",de:"de",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr"};var TNe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var NNe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var uNe={test:"test",production:"production"};var tNe={user:"user",api_key:"api_key",system:"system",cron:"cron",webhook:"webhook"};var RNe={live:"live",sandbox:"sandbox"};var HNe={logo:"logo",signature:"signature",attachment:"attachment"};var QNe={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var XNe={N:"N",P:"P"};var xNe={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var yNe={B:"B",C:"C"};var FNe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var MNe={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var kNe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var mNe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var CNe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var pNe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var lNe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var iNe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var aNe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var eGe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var cGe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var vGe={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var AGe={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var SGe={percent:"percent",amount:"amount"};var PGe={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var EGe={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var OGe={pending:"pending",processing:"processing",invoiced:"invoiced",cancelled:"cancelled",failed:"failed"};var TGe={created:"created",paid:"paid",fulfilled:"fulfilled"};var NGe={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var uGe={estimate:"estimate",quote:"quote"};var tGe={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var RGe={en:"en",de:"de",sl:"sl"};var HGe={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var QGe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var XGe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var xGe={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var yGe={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var FGe={active:"active",paused:"paused",completed:"completed"};var MGe={A:"A",B:"B",C:"C"};var kGe={true:"true",false:"false"};var mGe={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var CGe={true:"true",false:"false"};var pGe={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var lGe={true:"true",false:"false"};var iGe={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var aGe={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var e8e={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var c8e={true:"true",false:"false"};var v8e={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var A8e={true:"true",false:"false"};var S8e={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var P8e={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var E8e={sent:"sent",queued:"queued"};var O8e={sent:"sent",queued:"queued"};var T8e={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var N8e={count:"count",sum:"sum",avg:"avg",min:"min",max:"max"};var u8e={asc:"asc",desc:"desc"};var t8e={invoices:"invoices",estimates:"estimates",credit_notes:"credit_notes",advance_invoices:"advance_invoices",payments:"payments",customers:"customers",items:"items",invoice_taxes:"invoice_taxes"};var R8e={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var H8e={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var Q8e={viewer:"viewer",editor:"editor",admin:"admin"};var X8e={estimate:"estimate",quote:"quote"};var x8e={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var y8e={N:"N",P:"P"};var F8e={N:"N",P:"P"};var M8e={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var k8e={B:"B",C:"C"};var m8e={B:"B",C:"C"};var C8e={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var p8e={created:"created",paid:"paid",fulfilled:"fulfilled"};var l8e={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var i8e={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var a8e={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var eue={logo:"logo",signature:"signature",attachment:"attachment"};var cue={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var vue={pending:"pending",success:"success",failed:"failed"};var Aue={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var Sue={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var Wa={};Q(Wa,{whiteLabels:()=>gc,whiteLabelSubscriptions:()=>Sc,webhooks:()=>Ic,vies:()=>Ac,users:()=>nc,upload:()=>vc,taxes:()=>rc,taxReports:()=>cc,stripeApp:()=>oc,recurringInvoices:()=>ec,payments:()=>so,orders:()=>ao,orderIntegrations:()=>io,items:()=>ho,invoices:()=>lo,fursSettings:()=>fo,fursPremises:()=>po,fursDevices:()=>jo,fursCertificate:()=>Co,finaSettings:()=>Zo,finaPremises:()=>mo,finaDevices:()=>Uo,finaCertificate:()=>ko,files:()=>zo,exports:()=>Mo,estimates:()=>$o,entityUsers:()=>Fo,entityStats:()=>Vo,entityInvitations:()=>yo,entityApiKeys:()=>Ko,entities:()=>xo,email:()=>Yo,documents:()=>Xo,deliveryNotes:()=>wo,customers:()=>Qo,creditNotes:()=>Wo,companyRegistry:()=>Ho,advanceInvoices:()=>Lo,activities:()=>Ro});var Ro={};Q(Ro,{getActivitiesQueryLimitMax:()=>ZA,getActivitiesQueryLimitDefault:()=>mA,GetActivitiesResponse:()=>Tve,GetActivitiesQueryParams:()=>Ove,GetActivitiesHeader:()=>bve});var Pue=Object.freeze({status:"aborted"});function G(o,c,n){function I(q,N){if(!q._zod)Object.defineProperty(q,"_zod",{value:{def:N,constr:E,traits:new Set},enumerable:!1});if(q._zod.traits.has(o))return;q._zod.traits.add(o),c(q,N);let J=E.prototype,B=Object.keys(J);for(let R=0;R<B.length;R++){let H=B[R];if(!(H in q))q[H]=J[H].bind(q)}}let S=n?.Parent??Object;class _ extends S{}Object.defineProperty(_,"name",{value:o});function E(q){var N;let J=n?.Parent?new _:this;I(J,q),(N=J._zod).deferred??(N.deferred=[]);for(let B of J._zod.deferred)B();return J}return Object.defineProperty(E,"init",{value:I}),Object.defineProperty(E,Symbol.hasInstance,{value:(q)=>{if(n?.Parent&&q instanceof n.Parent)return!0;return q?._zod?.traits?.has(o)}}),Object.defineProperty(E,"name",{value:o}),E}var _ue=Symbol("zod_brand");class h extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ge extends Error{constructor(o){super(`Encountered unidirectional transform during encode: ${o}`);this.name="ZodEncodeError"}}var Le={};function l(o){if(o)Object.assign(Le,o);return Le}var x={};Q(x,{unwrapMessage:()=>Pe,uint8ArrayToHex:()=>sce,uint8ArrayToBase64url:()=>dce,uint8ArrayToBase64:()=>nr,stringifyPrimitive:()=>or,slugify:()=>fe,shallowClone:()=>sc,safeExtend:()=>Cce,required:()=>fce,randomString:()=>$ce,propertyKeyTypes:()=>he,promiseAllObject:()=>Fce,primitiveTypes:()=>er,prefixIssues:()=>d,pick:()=>Uce,partial:()=>pce,parsedType:()=>lce,optionalKeys:()=>ie,omit:()=>mce,objectClone:()=>Kce,numKeys:()=>Mce,nullish:()=>De,normalizeParams:()=>L,mergeDefs:()=>i,merge:()=>jce,jsonStringifyReplacer:()=>Ae,joinValues:()=>xce,issue:()=>Ie,isPlainObject:()=>s,isObject:()=>ne,hexToUint8Array:()=>ace,getSizableOrigin:()=>rr,getParsedType:()=>zce,getLengthableOrigin:()=>be,getEnumValues:()=>_e,getElementAtPath:()=>Vce,floatSafeRemainder:()=>pe,finalizeIssue:()=>p,extend:()=>Zce,escapeRegex:()=>re,esc:()=>He,defineLazy:()=>Y,createTransparentProxy:()=>kce,cloneDef:()=>yce,clone:()=>j,cleanRegex:()=>Oe,cleanEnum:()=>hce,captureStackTrace:()=>We,cached:()=>Ee,base64urlToUint8Array:()=>ice,base64ToUint8Array:()=>vr,assignProp:()=>a,assertNotEqual:()=>Qce,assertNever:()=>Xce,assertIs:()=>wce,assertEqual:()=>Wce,assert:()=>Yce,allowsEval:()=>le,aborted:()=>ee,NUMBER_FORMAT_RANGES:()=>de,Class:()=>Ar,BIGINT_FORMAT_RANGES:()=>cr});function Wce(o){return o}function Qce(o){return o}function wce(o){}function Xce(o){throw Error("Unexpected value in exhaustive check")}function Yce(o){}function _e(o){let c=Object.values(o).filter((I)=>typeof I==="number");return Object.entries(o).filter(([I,S])=>c.indexOf(+I)===-1).map(([I,S])=>S)}function xce(o,c="|"){return o.map((n)=>or(n)).join(c)}function Ae(o,c){if(typeof c==="bigint")return c.toString();return c}function Ee(o){return{get value(){{let n=o();return Object.defineProperty(this,"value",{value:n}),n}throw Error("cached value already set")}}}function De(o){return o===null||o===void 0}function Oe(o){let c=o.startsWith("^")?1:0,n=o.endsWith("$")?o.length-1:o.length;return o.slice(c,n)}function pe(o,c){let n=(o.toString().split(".")[1]||"").length,I=c.toString(),S=(I.split(".")[1]||"").length;if(S===0&&/\d?e-\d?/.test(I)){let N=I.match(/\d?e-(\d?)/);if(N?.[1])S=Number.parseInt(N[1])}let _=n>S?n:S,E=Number.parseInt(o.toFixed(_).replace(".","")),q=Number.parseInt(c.toFixed(_).replace(".",""));return E%q/10**_}var ac=Symbol("evaluating");function Y(o,c,n){let I=void 0;Object.defineProperty(o,c,{get(){if(I===ac)return;if(I===void 0)I=ac,I=n();return I},set(S){Object.defineProperty(o,c,{value:S})},configurable:!0})}function Kce(o){return Object.create(Object.getPrototypeOf(o),Object.getOwnPropertyDescriptors(o))}function a(o,c,n){Object.defineProperty(o,c,{value:n,writable:!0,enumerable:!0,configurable:!0})}function i(...o){let c={};for(let n of o){let I=Object.getOwnPropertyDescriptors(n);Object.assign(c,I)}return Object.defineProperties({},c)}function yce(o){return i(o._zod.def)}function Vce(o,c){if(!c)return o;return c.reduce((n,I)=>n?.[I],o)}function Fce(o){let c=Object.keys(o),n=c.map((I)=>o[I]);return Promise.all(n).then((I)=>{let S={};for(let _=0;_<c.length;_++)S[c[_]]=I[_];return S})}function $ce(o=10){let n="";for(let I=0;I<o;I++)n+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return n}function He(o){return JSON.stringify(o)}function fe(o){return o.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var We="captureStackTrace"in Error?Error.captureStackTrace:(...o)=>{};function ne(o){return typeof o==="object"&&o!==null&&!Array.isArray(o)}var le=Ee(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(o){return!1}});function s(o){if(ne(o)===!1)return!1;let c=o.constructor;if(c===void 0)return!0;if(typeof c!=="function")return!0;let n=c.prototype;if(ne(n)===!1)return!1;if(Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)return!1;return!0}function sc(o){if(s(o))return{...o};if(Array.isArray(o))return[...o];return o}function Mce(o){let c=0;for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n))c++;return c}var zce=(o)=>{let c=typeof o;switch(c){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(o)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(o))return"array";if(o===null)return"null";if(o.then&&typeof o.then==="function"&&o.catch&&typeof o.catch==="function")return"promise";if(typeof Map<"u"&&o instanceof Map)return"map";if(typeof Set<"u"&&o instanceof Set)return"set";if(typeof Date<"u"&&o instanceof Date)return"date";if(typeof File<"u"&&o instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${c}`)}},he=new Set(["string","number","symbol"]),er=new Set(["string","number","bigint","boolean","symbol","undefined"]);function re(o){return o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j(o,c,n){let I=new o._zod.constr(c??o._zod.def);if(!c||n?.parent)I._zod.parent=o;return I}function L(o){let c=o;if(!c)return{};if(typeof c==="string")return{error:()=>c};if(c?.message!==void 0){if(c?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");c.error=c.message}if(delete c.message,typeof c.error==="string")return{...c,error:()=>c.error};return c}function kce(o){let c;return new Proxy({},{get(n,I,S){return c??(c=o()),Reflect.get(c,I,S)},set(n,I,S,_){return c??(c=o()),Reflect.set(c,I,S,_)},has(n,I){return c??(c=o()),Reflect.has(c,I)},deleteProperty(n,I){return c??(c=o()),Reflect.deleteProperty(c,I)},ownKeys(n){return c??(c=o()),Reflect.ownKeys(c)},getOwnPropertyDescriptor(n,I){return c??(c=o()),Reflect.getOwnPropertyDescriptor(c,I)},defineProperty(n,I,S){return c??(c=o()),Reflect.defineProperty(c,I,S)}})}function or(o){if(typeof o==="bigint")return o.toString()+"n";if(typeof o==="string")return`"${o}"`;return`${o}`}function ie(o){return Object.keys(o).filter((c)=>{return o[c]._zod.optin==="optional"&&o[c]._zod.optout==="optional"})}var de={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},cr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Uce(o,c){let n=o._zod.def,I=n.checks;if(I&&I.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let _=i(o._zod.def,{get shape(){let E={};for(let q in c){if(!(q in n.shape))throw Error(`Unrecognized key: "${q}"`);if(!c[q])continue;E[q]=n.shape[q]}return a(this,"shape",E),E},checks:[]});return j(o,_)}function mce(o,c){let n=o._zod.def,I=n.checks;if(I&&I.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let _=i(o._zod.def,{get shape(){let E={...o._zod.def.shape};for(let q in c){if(!(q in n.shape))throw Error(`Unrecognized key: "${q}"`);if(!c[q])continue;delete E[q]}return a(this,"shape",E),E},checks:[]});return j(o,_)}function Zce(o,c){if(!s(c))throw Error("Invalid input to extend: expected a plain object");let n=o._zod.def.checks;if(n&&n.length>0){let _=o._zod.def.shape;for(let E in c)if(Object.getOwnPropertyDescriptor(_,E)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let S=i(o._zod.def,{get shape(){let _={...o._zod.def.shape,...c};return a(this,"shape",_),_}});return j(o,S)}function Cce(o,c){if(!s(c))throw Error("Invalid input to safeExtend: expected a plain object");let n=i(o._zod.def,{get shape(){let I={...o._zod.def.shape,...c};return a(this,"shape",I),I}});return j(o,n)}function jce(o,c){let n=i(o._zod.def,{get shape(){let I={...o._zod.def.shape,...c._zod.def.shape};return a(this,"shape",I),I},get catchall(){return c._zod.def.catchall},checks:[]});return j(o,n)}function pce(o,c,n){let S=c._zod.def.checks;if(S&&S.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let E=i(c._zod.def,{get shape(){let q=c._zod.def.shape,N={...q};if(n)for(let J in n){if(!(J in q))throw Error(`Unrecognized key: "${J}"`);if(!n[J])continue;N[J]=o?new o({type:"optional",innerType:q[J]}):q[J]}else for(let J in q)N[J]=o?new o({type:"optional",innerType:q[J]}):q[J];return a(this,"shape",N),N},checks:[]});return j(c,E)}function fce(o,c,n){let I=i(c._zod.def,{get shape(){let S=c._zod.def.shape,_={...S};if(n)for(let E in n){if(!(E in _))throw Error(`Unrecognized key: "${E}"`);if(!n[E])continue;_[E]=new o({type:"nonoptional",innerType:S[E]})}else for(let E in S)_[E]=new o({type:"nonoptional",innerType:S[E]});return a(this,"shape",_),_}});return j(c,I)}function ee(o,c=0){if(o.aborted===!0)return!0;for(let n=c;n<o.issues.length;n++)if(o.issues[n]?.continue!==!0)return!0;return!1}function d(o,c){return c.map((n)=>{var I;return(I=n).path??(I.path=[]),n.path.unshift(o),n})}function Pe(o){return typeof o==="string"?o:o?.message}function p(o,c,n){let I={...o,path:o.path??[]};if(!o.message){let S=Pe(o.inst?._zod.def?.error?.(o))??Pe(c?.error?.(o))??Pe(n.customError?.(o))??Pe(n.localeError?.(o))??"Invalid input";I.message=S}if(delete I.inst,delete I.continue,!c?.reportInput)delete I.input;return I}function rr(o){if(o instanceof Set)return"set";if(o instanceof Map)return"map";if(o instanceof File)return"file";return"unknown"}function be(o){if(Array.isArray(o))return"array";if(typeof o==="string")return"string";return"unknown"}function lce(o){let c=typeof o;switch(c){case"number":return Number.isNaN(o)?"nan":"number";case"object":{if(o===null)return"null";if(Array.isArray(o))return"array";let n=o;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return c}function Ie(...o){let[c,n,I]=o;if(typeof c==="string")return{message:c,code:"custom",input:n,inst:I};return{...c}}function hce(o){return Object.entries(o).filter(([c,n])=>{return Number.isNaN(Number.parseInt(c,10))}).map((c)=>c[1])}function vr(o){let c=atob(o),n=new Uint8Array(c.length);for(let I=0;I<c.length;I++)n[I]=c.charCodeAt(I);return n}function nr(o){let c="";for(let n=0;n<o.length;n++)c+=String.fromCharCode(o[n]);return btoa(c)}function ice(o){let c=o.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-c.length%4)%4);return vr(c+n)}function dce(o){return nr(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ace(o){let c=o.replace(/^0x/,"");if(c.length%2!==0)throw Error("Invalid hex string length");let n=new Uint8Array(c.length/2);for(let I=0;I<c.length;I+=2)n[I/2]=Number.parseInt(c.slice(I,I+2),16);return n}function sce(o){return Array.from(o).map((c)=>c.toString(16).padStart(2,"0")).join("")}class Ar{constructor(...o){}}var Ir=(o,c)=>{o.name="$ZodError",Object.defineProperty(o,"_zod",{value:o._zod,enumerable:!1}),Object.defineProperty(o,"issues",{value:c,enumerable:!1}),o.message=JSON.stringify(c,Ae,2),Object.defineProperty(o,"toString",{value:()=>o.message,enumerable:!1})},Qe=G("$ZodError",Ir),ae=G("$ZodError",Ir,{Parent:Error});function Sr(o,c=(n)=>n.message){let n={},I=[];for(let S of o.issues)if(S.path.length>0)n[S.path[0]]=n[S.path[0]]||[],n[S.path[0]].push(c(S));else I.push(c(S));return{formErrors:I,fieldErrors:n}}function gr(o,c=(n)=>n.message){let n={_errors:[]},I=(S)=>{for(let _ of S.issues)if(_.code==="invalid_union"&&_.errors.length)_.errors.map((E)=>I({issues:E}));else if(_.code==="invalid_key")I({issues:_.issues});else if(_.code==="invalid_element")I({issues:_.issues});else if(_.path.length===0)n._errors.push(c(_));else{let E=n,q=0;while(q<_.path.length){let N=_.path[q];if(q!==_.path.length-1)E[N]=E[N]||{_errors:[]};else E[N]=E[N]||{_errors:[]},E[N]._errors.push(c(_));E=E[N],q++}}};return I(o),n}var we=(o)=>(c,n,I,S)=>{let _=I?Object.assign(I,{async:!1}):{async:!1},E=c._zod.run({value:n,issues:[]},_);if(E instanceof Promise)throw new h;if(E.issues.length){let q=new(S?.Err??o)(E.issues.map((N)=>p(N,_,l())));throw We(q,S?.callee),q}return E.value};var Xe=(o)=>async(c,n,I,S)=>{let _=I?Object.assign(I,{async:!0}):{async:!0},E=c._zod.run({value:n,issues:[]},_);if(E instanceof Promise)E=await E;if(E.issues.length){let q=new(S?.Err??o)(E.issues.map((N)=>p(N,_,l())));throw We(q,S?.callee),q}return E.value};var Te=(o)=>(c,n,I)=>{let S=I?{...I,async:!1}:{async:!1},_=c._zod.run({value:n,issues:[]},S);if(_ instanceof Promise)throw new h;return _.issues.length?{success:!1,error:new(o??Qe)(_.issues.map((E)=>p(E,S,l())))}:{success:!0,data:_.value}},Pr=Te(ae),qe=(o)=>async(c,n,I)=>{let S=I?Object.assign(I,{async:!0}):{async:!0},_=c._zod.run({value:n,issues:[]},S);if(_ instanceof Promise)_=await _;return _.issues.length?{success:!1,error:new o(_.issues.map((E)=>p(E,S,l())))}:{success:!0,data:_.value}},_r=qe(ae),Er=(o)=>(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return we(o)(c,n,S)};var Dr=(o)=>(c,n,I)=>{return we(o)(c,n,I)};var Or=(o)=>async(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return Xe(o)(c,n,S)};var br=(o)=>async(c,n,I)=>{return Xe(o)(c,n,I)};var Tr=(o)=>(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return Te(o)(c,n,S)};var qr=(o)=>(c,n,I)=>{return Te(o)(c,n,I)};var Nr=(o)=>async(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return qe(o)(c,n,S)};var Gr=(o)=>async(c,n,I)=>{return qe(o)(c,n,I)};var ur=/^[cC][^\s-]{8,}$/,Jr=/^[0-9a-z]+$/,tr=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Br=/^[0-9a-vA-V]{20}$/,Rr=/^[A-Za-z0-9]{27}$/,Lr=/^[a-zA-Z0-9_-]{21}$/,Hr=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Wr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,se=(o)=>{if(!o)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${o}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var Qr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var ore="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function wr(){return new RegExp(ore,"u")}var Xr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var xr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Kr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,yr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,eo=/^[A-Za-z0-9_-]*$/;var Vr=/^\+[1-9]\d{6,14}$/,Fr="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",$r=new RegExp(`^${Fr}$`);function Mr(o){return typeof o.precision==="number"?o.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":o.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${o.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function zr(o){return new RegExp(`^${Mr(o)}$`)}function kr(o){let c=Mr({precision:o.precision}),n=["Z"];if(o.local)n.push("");if(o.offset)n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let I=`${c}(?:${n.join("|")})`;return new RegExp(`^${Fr}T(?:${I})$`)}var Ur=(o)=>{let c=o?`[\\s\\S]{${o?.minimum??0},${o?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${c}$`)};var mr=/^-?\d+$/,Ye=/^-?\d+(?:\.\d+)?$/,Zr=/^(?:true|false)$/i,Cr=/^null$/i;var jr=/^[^A-Z]*$/,pr=/^[^a-z]*$/;var z=G("$ZodCheck",(o,c)=>{var n;o._zod??(o._zod={}),o._zod.def=c,(n=o._zod).onattach??(n.onattach=[])}),fr={number:"number",bigint:"bigint",object:"date"},oo=G("$ZodCheckLessThan",(o,c)=>{z.init(o,c);let n=fr[typeof c.value];o._zod.onattach.push((I)=>{let S=I._zod.bag,_=(c.inclusive?S.maximum:S.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(c.value<_)if(c.inclusive)S.maximum=c.value;else S.exclusiveMaximum=c.value}),o._zod.check=(I)=>{if(c.inclusive?I.value<=c.value:I.value<c.value)return;I.issues.push({origin:n,code:"too_big",maximum:typeof c.value==="object"?c.value.getTime():c.value,input:I.value,inclusive:c.inclusive,inst:o,continue:!c.abort})}}),co=G("$ZodCheckGreaterThan",(o,c)=>{z.init(o,c);let n=fr[typeof c.value];o._zod.onattach.push((I)=>{let S=I._zod.bag,_=(c.inclusive?S.minimum:S.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(c.value>_)if(c.inclusive)S.minimum=c.value;else S.exclusiveMinimum=c.value}),o._zod.check=(I)=>{if(c.inclusive?I.value>=c.value:I.value>c.value)return;I.issues.push({origin:n,code:"too_small",minimum:typeof c.value==="object"?c.value.getTime():c.value,input:I.value,inclusive:c.inclusive,inst:o,continue:!c.abort})}}),lr=G("$ZodCheckMultipleOf",(o,c)=>{z.init(o,c),o._zod.onattach.push((n)=>{var I;(I=n._zod.bag).multipleOf??(I.multipleOf=c.value)}),o._zod.check=(n)=>{if(typeof n.value!==typeof c.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof n.value==="bigint"?n.value%c.value===BigInt(0):pe(n.value,c.value)===0)return;n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:c.value,input:n.value,inst:o,continue:!c.abort})}}),hr=G("$ZodCheckNumberFormat",(o,c)=>{z.init(o,c),c.format=c.format||"float64";let n=c.format?.includes("int"),I=n?"int":"number",[S,_]=de[c.format];o._zod.onattach.push((E)=>{let q=E._zod.bag;if(q.format=c.format,q.minimum=S,q.maximum=_,n)q.pattern=mr}),o._zod.check=(E)=>{let q=E.value;if(n){if(!Number.isInteger(q)){E.issues.push({expected:I,format:c.format,code:"invalid_type",continue:!1,input:q,inst:o});return}if(!Number.isSafeInteger(q)){if(q>0)E.issues.push({input:q,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:o,origin:I,inclusive:!0,continue:!c.abort});else E.issues.push({input:q,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:o,origin:I,inclusive:!0,continue:!c.abort});return}}if(q<S)E.issues.push({origin:"number",input:q,code:"too_small",minimum:S,inclusive:!0,inst:o,continue:!c.abort});if(q>_)E.issues.push({origin:"number",input:q,code:"too_big",maximum:_,inclusive:!0,inst:o,continue:!c.abort})}});var ir=G("$ZodCheckMaxLength",(o,c)=>{var n;z.init(o,c),(n=o._zod.def).when??(n.when=(I)=>{let S=I.value;return!De(S)&&S.length!==void 0}),o._zod.onattach.push((I)=>{let S=I._zod.bag.maximum??Number.POSITIVE_INFINITY;if(c.maximum<S)I._zod.bag.maximum=c.maximum}),o._zod.check=(I)=>{let S=I.value;if(S.length<=c.maximum)return;let E=be(S);I.issues.push({origin:E,code:"too_big",maximum:c.maximum,inclusive:!0,input:S,inst:o,continue:!c.abort})}}),dr=G("$ZodCheckMinLength",(o,c)=>{var n;z.init(o,c),(n=o._zod.def).when??(n.when=(I)=>{let S=I.value;return!De(S)&&S.length!==void 0}),o._zod.onattach.push((I)=>{let S=I._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(c.minimum>S)I._zod.bag.minimum=c.minimum}),o._zod.check=(I)=>{let S=I.value;if(S.length>=c.minimum)return;let E=be(S);I.issues.push({origin:E,code:"too_small",minimum:c.minimum,inclusive:!0,input:S,inst:o,continue:!c.abort})}}),ar=G("$ZodCheckLengthEquals",(o,c)=>{var n;z.init(o,c),(n=o._zod.def).when??(n.when=(I)=>{let S=I.value;return!De(S)&&S.length!==void 0}),o._zod.onattach.push((I)=>{let S=I._zod.bag;S.minimum=c.length,S.maximum=c.length,S.length=c.length}),o._zod.check=(I)=>{let S=I.value,_=S.length;if(_===c.length)return;let E=be(S),q=_>c.length;I.issues.push({origin:E,...q?{code:"too_big",maximum:c.length}:{code:"too_small",minimum:c.length},inclusive:!0,exact:!0,input:I.value,inst:o,continue:!c.abort})}}),Ne=G("$ZodCheckStringFormat",(o,c)=>{var n,I;if(z.init(o,c),o._zod.onattach.push((S)=>{let _=S._zod.bag;if(_.format=c.format,c.pattern)_.patterns??(_.patterns=new Set),_.patterns.add(c.pattern)}),c.pattern)(n=o._zod).check??(n.check=(S)=>{if(c.pattern.lastIndex=0,c.pattern.test(S.value))return;S.issues.push({origin:"string",code:"invalid_format",format:c.format,input:S.value,...c.pattern?{pattern:c.pattern.toString()}:{},inst:o,continue:!c.abort})});else(I=o._zod).check??(I.check=()=>{})}),sr=G("$ZodCheckRegex",(o,c)=>{Ne.init(o,c),o._zod.check=(n)=>{if(c.pattern.lastIndex=0,c.pattern.test(n.value))return;n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:c.pattern.toString(),inst:o,continue:!c.abort})}}),ev=G("$ZodCheckLowerCase",(o,c)=>{c.pattern??(c.pattern=jr),Ne.init(o,c)}),ov=G("$ZodCheckUpperCase",(o,c)=>{c.pattern??(c.pattern=pr),Ne.init(o,c)}),cv=G("$ZodCheckIncludes",(o,c)=>{z.init(o,c);let n=re(c.includes),I=new RegExp(typeof c.position==="number"?`^.{${c.position}}${n}`:n);c.pattern=I,o._zod.onattach.push((S)=>{let _=S._zod.bag;_.patterns??(_.patterns=new Set),_.patterns.add(I)}),o._zod.check=(S)=>{if(S.value.includes(c.includes,c.position))return;S.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:c.includes,input:S.value,inst:o,continue:!c.abort})}}),rv=G("$ZodCheckStartsWith",(o,c)=>{z.init(o,c);let n=new RegExp(`^${re(c.prefix)}.*`);c.pattern??(c.pattern=n),o._zod.onattach.push((I)=>{let S=I._zod.bag;S.patterns??(S.patterns=new Set),S.patterns.add(n)}),o._zod.check=(I)=>{if(I.value.startsWith(c.prefix))return;I.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:c.prefix,input:I.value,inst:o,continue:!c.abort})}}),vv=G("$ZodCheckEndsWith",(o,c)=>{z.init(o,c);let n=new RegExp(`.*${re(c.suffix)}$`);c.pattern??(c.pattern=n),o._zod.onattach.push((I)=>{let S=I._zod.bag;S.patterns??(S.patterns=new Set),S.patterns.add(n)}),o._zod.check=(I)=>{if(I.value.endsWith(c.suffix))return;I.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:c.suffix,input:I.value,inst:o,continue:!c.abort})}});var nv=G("$ZodCheckOverwrite",(o,c)=>{z.init(o,c),o._zod.check=(n)=>{n.value=c.tx(n.value)}});class ro{constructor(o=[]){if(this.content=[],this.indent=0,this)this.args=o}indented(o){this.indent+=1,o(this),this.indent-=1}write(o){if(typeof o==="function"){o(this,{execution:"sync"}),o(this,{execution:"async"});return}let n=o.split(`
2
- `).filter((_)=>_),I=Math.min(...n.map((_)=>_.length-_.trimStart().length)),S=n.map((_)=>_.slice(I)).map((_)=>" ".repeat(this.indent*2)+_);for(let _ of S)this.content.push(_)}compile(){let o=Function,c=this?.args,I=[...(this?.content??[""]).map((S)=>` ${S}`)];return new o(...c,I.join(`
3
- `))}}var Iv={major:4,minor:3,patch:6};var y=G("$ZodType",(o,c)=>{var n;o??(o={}),o._zod.def=c,o._zod.bag=o._zod.bag||{},o._zod.version=Iv;let I=[...o._zod.def.checks??[]];if(o._zod.traits.has("$ZodCheck"))I.unshift(o);for(let S of I)for(let _ of S._zod.onattach)_(o);if(I.length===0)(n=o._zod).deferred??(n.deferred=[]),o._zod.deferred?.push(()=>{o._zod.run=o._zod.parse});else{let S=(E,q,N)=>{let J=ee(E),B;for(let R of q){if(R._zod.def.when){if(!R._zod.def.when(E))continue}else if(J)continue;let H=E.issues.length,W=R._zod.check(E);if(W instanceof Promise&&N?.async===!1)throw new h;if(B||W instanceof Promise)B=(B??Promise.resolve()).then(async()=>{if(await W,E.issues.length===H)return;if(!J)J=ee(E,H)});else{if(E.issues.length===H)continue;if(!J)J=ee(E,H)}}if(B)return B.then(()=>{return E});return E},_=(E,q,N)=>{if(ee(E))return E.aborted=!0,E;let J=S(q,I,N);if(J instanceof Promise){if(N.async===!1)throw new h;return J.then((B)=>o._zod.parse(B,N))}return o._zod.parse(J,N)};o._zod.run=(E,q)=>{if(q.skipChecks)return o._zod.parse(E,q);if(q.direction==="backward"){let J=o._zod.parse({value:E.value,issues:[]},{...q,skipChecks:!0});if(J instanceof Promise)return J.then((B)=>{return _(B,E,q)});return _(J,E,q)}let N=o._zod.parse(E,q);if(N instanceof Promise){if(q.async===!1)throw new h;return N.then((J)=>S(J,I,q))}return S(N,I,q)}}Y(o,"~standard",()=>({validate:(S)=>{try{let _=Pr(o,S);return _.success?{value:_.data}:{issues:_.error?.issues}}catch(_){return _r(o,S).then((E)=>E.success?{value:E.data}:{issues:E.error?.issues})}},vendor:"zod",version:1}))}),Ve=G("$ZodString",(o,c)=>{y.init(o,c),o._zod.pattern=[...o?._zod.bag?.patterns??[]].pop()??Ur(o._zod.bag),o._zod.parse=(n,I)=>{if(c.coerce)try{n.value=String(n.value)}catch(S){}if(typeof n.value==="string")return n;return n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:o}),n}}),K=G("$ZodStringFormat",(o,c)=>{Ne.init(o,c),Ve.init(o,c)}),Tv=G("$ZodGUID",(o,c)=>{c.pattern??(c.pattern=Wr),K.init(o,c)}),qv=G("$ZodUUID",(o,c)=>{if(c.version){let I={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[c.version];if(I===void 0)throw Error(`Invalid UUID version: "${c.version}"`);c.pattern??(c.pattern=se(I))}else c.pattern??(c.pattern=se());K.init(o,c)}),Nv=G("$ZodEmail",(o,c)=>{c.pattern??(c.pattern=Qr),K.init(o,c)}),Gv=G("$ZodURL",(o,c)=>{K.init(o,c),o._zod.check=(n)=>{try{let I=n.value.trim(),S=new URL(I);if(c.hostname){if(c.hostname.lastIndex=0,!c.hostname.test(S.hostname))n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:c.hostname.source,input:n.value,inst:o,continue:!c.abort})}if(c.protocol){if(c.protocol.lastIndex=0,!c.protocol.test(S.protocol.endsWith(":")?S.protocol.slice(0,-1):S.protocol))n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:c.protocol.source,input:n.value,inst:o,continue:!c.abort})}if(c.normalize)n.value=S.href;else n.value=I;return}catch(I){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:o,continue:!c.abort})}}}),uv=G("$ZodEmoji",(o,c)=>{c.pattern??(c.pattern=wr()),K.init(o,c)}),Jv=G("$ZodNanoID",(o,c)=>{c.pattern??(c.pattern=Lr),K.init(o,c)}),tv=G("$ZodCUID",(o,c)=>{c.pattern??(c.pattern=ur),K.init(o,c)}),Bv=G("$ZodCUID2",(o,c)=>{c.pattern??(c.pattern=Jr),K.init(o,c)}),Rv=G("$ZodULID",(o,c)=>{c.pattern??(c.pattern=tr),K.init(o,c)}),Lv=G("$ZodXID",(o,c)=>{c.pattern??(c.pattern=Br),K.init(o,c)}),Hv=G("$ZodKSUID",(o,c)=>{c.pattern??(c.pattern=Rr),K.init(o,c)}),Wv=G("$ZodISODateTime",(o,c)=>{c.pattern??(c.pattern=kr(c)),K.init(o,c)}),Qv=G("$ZodISODate",(o,c)=>{c.pattern??(c.pattern=$r),K.init(o,c)}),wv=G("$ZodISOTime",(o,c)=>{c.pattern??(c.pattern=zr(c)),K.init(o,c)}),Xv=G("$ZodISODuration",(o,c)=>{c.pattern??(c.pattern=Hr),K.init(o,c)}),Yv=G("$ZodIPv4",(o,c)=>{c.pattern??(c.pattern=Xr),K.init(o,c),o._zod.bag.format="ipv4"}),xv=G("$ZodIPv6",(o,c)=>{c.pattern??(c.pattern=Yr),K.init(o,c),o._zod.bag.format="ipv6",o._zod.check=(n)=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:o,continue:!c.abort})}}});var Kv=G("$ZodCIDRv4",(o,c)=>{c.pattern??(c.pattern=xr),K.init(o,c)}),yv=G("$ZodCIDRv6",(o,c)=>{c.pattern??(c.pattern=Kr),K.init(o,c),o._zod.check=(n)=>{let I=n.value.split("/");try{if(I.length!==2)throw Error();let[S,_]=I;if(!_)throw Error();let E=Number(_);if(`${E}`!==_)throw Error();if(E<0||E>128)throw Error();new URL(`http://[${S}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:o,continue:!c.abort})}}});function Vv(o){if(o==="")return!0;if(o.length%4!==0)return!1;try{return atob(o),!0}catch{return!1}}var Fv=G("$ZodBase64",(o,c)=>{c.pattern??(c.pattern=yr),K.init(o,c),o._zod.bag.contentEncoding="base64",o._zod.check=(n)=>{if(Vv(n.value))return;n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:o,continue:!c.abort})}});function cre(o){if(!eo.test(o))return!1;let c=o.replace(/[-_]/g,(I)=>I==="-"?"+":"/"),n=c.padEnd(Math.ceil(c.length/4)*4,"=");return Vv(n)}var $v=G("$ZodBase64URL",(o,c)=>{c.pattern??(c.pattern=eo),K.init(o,c),o._zod.bag.contentEncoding="base64url",o._zod.check=(n)=>{if(cre(n.value))return;n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:o,continue:!c.abort})}}),Mv=G("$ZodE164",(o,c)=>{c.pattern??(c.pattern=Vr),K.init(o,c)});function rre(o,c=null){try{let n=o.split(".");if(n.length!==3)return!1;let[I]=n;if(!I)return!1;let S=JSON.parse(atob(I));if("typ"in S&&S?.typ!=="JWT")return!1;if(!S.alg)return!1;if(c&&(!("alg"in S)||S.alg!==c))return!1;return!0}catch{return!1}}var zv=G("$ZodJWT",(o,c)=>{K.init(o,c),o._zod.check=(n)=>{if(rre(n.value,c.alg))return;n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:o,continue:!c.abort})}});var no=G("$ZodNumber",(o,c)=>{y.init(o,c),o._zod.pattern=o._zod.bag.pattern??Ye,o._zod.parse=(n,I)=>{if(c.coerce)try{n.value=Number(n.value)}catch(E){}let S=n.value;if(typeof S==="number"&&!Number.isNaN(S)&&Number.isFinite(S))return n;let _=typeof S==="number"?Number.isNaN(S)?"NaN":!Number.isFinite(S)?"Infinity":void 0:void 0;return n.issues.push({expected:"number",code:"invalid_type",input:S,inst:o,..._?{received:_}:{}}),n}}),kv=G("$ZodNumberFormat",(o,c)=>{hr.init(o,c),no.init(o,c)}),Uv=G("$ZodBoolean",(o,c)=>{y.init(o,c),o._zod.pattern=Zr,o._zod.parse=(n,I)=>{if(c.coerce)try{n.value=Boolean(n.value)}catch(_){}let S=n.value;if(typeof S==="boolean")return n;return n.issues.push({expected:"boolean",code:"invalid_type",input:S,inst:o}),n}});var mv=G("$ZodNull",(o,c)=>{y.init(o,c),o._zod.pattern=Cr,o._zod.values=new Set([null]),o._zod.parse=(n,I)=>{let S=n.value;if(S===null)return n;return n.issues.push({expected:"null",code:"invalid_type",input:S,inst:o}),n}});var Zv=G("$ZodUnknown",(o,c)=>{y.init(o,c),o._zod.parse=(n)=>n}),Cv=G("$ZodNever",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{return n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:o}),n}});function Sv(o,c,n){if(o.issues.length)c.issues.push(...d(n,o.issues));c.value[n]=o.value}var jv=G("$ZodArray",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{let S=n.value;if(!Array.isArray(S))return n.issues.push({expected:"array",code:"invalid_type",input:S,inst:o}),n;n.value=Array(S.length);let _=[];for(let E=0;E<S.length;E++){let q=S[E],N=c.element._zod.run({value:q,issues:[]},I);if(N instanceof Promise)_.push(N.then((J)=>Sv(J,n,E)));else Sv(N,n,E)}if(_.length)return Promise.all(_).then(()=>n);return n}});function ye(o,c,n,I,S){if(o.issues.length){if(S&&!(n in I))return;c.issues.push(...d(n,o.issues))}if(o.value===void 0){if(n in I)c.value[n]=void 0}else c.value[n]=o.value}function pv(o){let c=Object.keys(o.shape);for(let I of c)if(!o.shape?.[I]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${I}": expected a Zod schema`);let n=ie(o.shape);return{...o,keys:c,keySet:new Set(c),numKeys:c.length,optionalKeys:new Set(n)}}function fv(o,c,n,I,S,_){let E=[],q=S.keySet,N=S.catchall._zod,J=N.def.type,B=N.optout==="optional";for(let R in c){if(q.has(R))continue;if(J==="never"){E.push(R);continue}let H=N.run({value:c[R],issues:[]},I);if(H instanceof Promise)o.push(H.then((W)=>ye(W,n,R,c,B)));else ye(H,n,R,c,B)}if(E.length)n.issues.push({code:"unrecognized_keys",keys:E,input:c,inst:_});if(!o.length)return n;return Promise.all(o).then(()=>{return n})}var vre=G("$ZodObject",(o,c)=>{if(y.init(o,c),!Object.getOwnPropertyDescriptor(c,"shape")?.get){let q=c.shape;Object.defineProperty(c,"shape",{get:()=>{let N={...q};return Object.defineProperty(c,"shape",{value:N}),N}})}let I=Ee(()=>pv(c));Y(o._zod,"propValues",()=>{let q=c.shape,N={};for(let J in q){let B=q[J]._zod;if(B.values){N[J]??(N[J]=new Set);for(let R of B.values)N[J].add(R)}}return N});let S=ne,_=c.catchall,E;o._zod.parse=(q,N)=>{E??(E=I.value);let J=q.value;if(!S(J))return q.issues.push({expected:"object",code:"invalid_type",input:J,inst:o}),q;q.value={};let B=[],R=E.shape;for(let H of E.keys){let W=R[H],k=W._zod.optout==="optional",M=W._zod.run({value:J[H],issues:[]},N);if(M instanceof Promise)B.push(M.then((Re)=>ye(Re,q,H,J,k)));else ye(M,q,H,J,k)}if(!_)return B.length?Promise.all(B).then(()=>q):q;return fv(B,J,q,N,I.value,o)}}),lv=G("$ZodObjectJIT",(o,c)=>{vre.init(o,c);let n=o._zod.parse,I=Ee(()=>pv(c)),S=(H)=>{let W=new ro(["shape","payload","ctx"]),k=I.value,M=(f)=>{let m=He(f);return`shape[${m}]._zod.run({ value: input[${m}], issues: [] }, ctx)`};W.write("const input = payload.value;");let Re=Object.create(null),tce=0;for(let f of k.keys)Re[f]=`key_${tce++}`;W.write("const newResult = {};");for(let f of k.keys){let m=Re[f],C=He(f),Rce=H[f]?._zod?.optout==="optional";if(W.write(`const ${m} = ${M(f)};`),Rce)W.write(`
4
- if (${m}.issues.length) {
5
- if (${C} in input) {
6
- payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
7
- ...iss,
8
- path: iss.path ? [${C}, ...iss.path] : [${C}]
9
- })));
10
- }
11
- }
12
-
13
- if (${m}.value === undefined) {
14
- if (${C} in input) {
15
- newResult[${C}] = undefined;
16
- }
17
- } else {
18
- newResult[${C}] = ${m}.value;
19
- }
20
-
21
- `);else W.write(`
22
- if (${m}.issues.length) {
23
- payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
24
- ...iss,
25
- path: iss.path ? [${C}, ...iss.path] : [${C}]
26
- })));
27
- }
28
-
29
- if (${m}.value === undefined) {
30
- if (${C} in input) {
31
- newResult[${C}] = undefined;
32
- }
33
- } else {
34
- newResult[${C}] = ${m}.value;
35
- }
36
-
37
- `)}W.write("payload.value = newResult;"),W.write("return payload;");let Bce=W.compile();return(f,m)=>Bce(H,f,m)},_,E=ne,q=!Le.jitless,J=q&&le.value,B=c.catchall,R;o._zod.parse=(H,W)=>{R??(R=I.value);let k=H.value;if(!E(k))return H.issues.push({expected:"object",code:"invalid_type",input:k,inst:o}),H;if(q&&J&&W?.async===!1&&W.jitless!==!0){if(!_)_=S(c.shape);if(H=_(H,W),!B)return H;return fv([],k,H,W,R,o)}return n(H,W)}});function gv(o,c,n,I){for(let _ of o)if(_.issues.length===0)return c.value=_.value,c;let S=o.filter((_)=>!ee(_));if(S.length===1)return c.value=S[0].value,S[0];return c.issues.push({code:"invalid_union",input:c.value,inst:n,errors:o.map((_)=>_.issues.map((E)=>p(E,I,l())))}),c}var hv=G("$ZodUnion",(o,c)=>{y.init(o,c),Y(o._zod,"optin",()=>c.options.some((S)=>S._zod.optin==="optional")?"optional":void 0),Y(o._zod,"optout",()=>c.options.some((S)=>S._zod.optout==="optional")?"optional":void 0),Y(o._zod,"values",()=>{if(c.options.every((S)=>S._zod.values))return new Set(c.options.flatMap((S)=>Array.from(S._zod.values)));return}),Y(o._zod,"pattern",()=>{if(c.options.every((S)=>S._zod.pattern)){let S=c.options.map((_)=>_._zod.pattern);return new RegExp(`^(${S.map((_)=>Oe(_.source)).join("|")})$`)}return});let n=c.options.length===1,I=c.options[0]._zod.run;o._zod.parse=(S,_)=>{if(n)return I(S,_);let E=!1,q=[];for(let N of c.options){let J=N._zod.run({value:S.value,issues:[]},_);if(J instanceof Promise)q.push(J),E=!0;else{if(J.issues.length===0)return J;q.push(J)}}if(!E)return gv(q,S,o,_);return Promise.all(q).then((N)=>{return gv(N,S,o,_)})}});var iv=G("$ZodIntersection",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{let S=n.value,_=c.left._zod.run({value:S,issues:[]},I),E=c.right._zod.run({value:S,issues:[]},I);if(_ instanceof Promise||E instanceof Promise)return Promise.all([_,E]).then(([N,J])=>{return Pv(n,N,J)});return Pv(n,_,E)}});function vo(o,c){if(o===c)return{valid:!0,data:o};if(o instanceof Date&&c instanceof Date&&+o===+c)return{valid:!0,data:o};if(s(o)&&s(c)){let n=Object.keys(c),I=Object.keys(o).filter((_)=>n.indexOf(_)!==-1),S={...o,...c};for(let _ of I){let E=vo(o[_],c[_]);if(!E.valid)return{valid:!1,mergeErrorPath:[_,...E.mergeErrorPath]};S[_]=E.data}return{valid:!0,data:S}}if(Array.isArray(o)&&Array.isArray(c)){if(o.length!==c.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let I=0;I<o.length;I++){let S=o[I],_=c[I],E=vo(S,_);if(!E.valid)return{valid:!1,mergeErrorPath:[I,...E.mergeErrorPath]};n.push(E.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Pv(o,c,n){let I=new Map,S;for(let q of c.issues)if(q.code==="unrecognized_keys"){S??(S=q);for(let N of q.keys){if(!I.has(N))I.set(N,{});I.get(N).l=!0}}else o.issues.push(q);for(let q of n.issues)if(q.code==="unrecognized_keys")for(let N of q.keys){if(!I.has(N))I.set(N,{});I.get(N).r=!0}else o.issues.push(q);let _=[...I].filter(([,q])=>q.l&&q.r).map(([q])=>q);if(_.length&&S)o.issues.push({...S,keys:_});if(ee(o))return o;let E=vo(c.value,n.value);if(!E.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(E.mergeErrorPath)}`);return o.value=E.data,o}var dv=G("$ZodRecord",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{let S=n.value;if(!s(S))return n.issues.push({expected:"record",code:"invalid_type",input:S,inst:o}),n;let _=[],E=c.keyType._zod.values;if(E){n.value={};let q=new Set;for(let J of E)if(typeof J==="string"||typeof J==="number"||typeof J==="symbol"){q.add(typeof J==="number"?J.toString():J);let B=c.valueType._zod.run({value:S[J],issues:[]},I);if(B instanceof Promise)_.push(B.then((R)=>{if(R.issues.length)n.issues.push(...d(J,R.issues));n.value[J]=R.value}));else{if(B.issues.length)n.issues.push(...d(J,B.issues));n.value[J]=B.value}}let N;for(let J in S)if(!q.has(J))N=N??[],N.push(J);if(N&&N.length>0)n.issues.push({code:"unrecognized_keys",input:S,inst:o,keys:N})}else{n.value={};for(let q of Reflect.ownKeys(S)){if(q==="__proto__")continue;let N=c.keyType._zod.run({value:q,issues:[]},I);if(N instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof q==="string"&&Ye.test(q)&&N.issues.length){let R=c.keyType._zod.run({value:Number(q),issues:[]},I);if(R instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(R.issues.length===0)N=R}if(N.issues.length){if(c.mode==="loose")n.value[q]=S[q];else n.issues.push({code:"invalid_key",origin:"record",issues:N.issues.map((R)=>p(R,I,l())),input:q,path:[q],inst:o});continue}let B=c.valueType._zod.run({value:S[q],issues:[]},I);if(B instanceof Promise)_.push(B.then((R)=>{if(R.issues.length)n.issues.push(...d(q,R.issues));n.value[N.value]=R.value}));else{if(B.issues.length)n.issues.push(...d(q,B.issues));n.value[N.value]=B.value}}}if(_.length)return Promise.all(_).then(()=>n);return n}});var av=G("$ZodEnum",(o,c)=>{y.init(o,c);let n=_e(c.entries),I=new Set(n);o._zod.values=I,o._zod.pattern=new RegExp(`^(${n.filter((S)=>he.has(typeof S)).map((S)=>typeof S==="string"?re(S):S.toString()).join("|")})$`),o._zod.parse=(S,_)=>{let E=S.value;if(I.has(E))return S;return S.issues.push({code:"invalid_value",values:n,input:E,inst:o}),S}});var sv=G("$ZodTransform",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{if(I.direction==="backward")throw new ge(o.constructor.name);let S=c.transform(n.value,n);if(I.async)return(S instanceof Promise?S:Promise.resolve(S)).then((E)=>{return n.value=E,n});if(S instanceof Promise)throw new h;return n.value=S,n}});function _v(o,c){if(o.issues.length&&c===void 0)return{issues:[],value:void 0};return o}var Ao=G("$ZodOptional",(o,c)=>{y.init(o,c),o._zod.optin="optional",o._zod.optout="optional",Y(o._zod,"values",()=>{return c.innerType._zod.values?new Set([...c.innerType._zod.values,void 0]):void 0}),Y(o._zod,"pattern",()=>{let n=c.innerType._zod.pattern;return n?new RegExp(`^(${Oe(n.source)})?$`):void 0}),o._zod.parse=(n,I)=>{if(c.innerType._zod.optin==="optional"){let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>_v(_,n.value));return _v(S,n.value)}if(n.value===void 0)return n;return c.innerType._zod.run(n,I)}}),en=G("$ZodExactOptional",(o,c)=>{Ao.init(o,c),Y(o._zod,"values",()=>c.innerType._zod.values),Y(o._zod,"pattern",()=>c.innerType._zod.pattern),o._zod.parse=(n,I)=>{return c.innerType._zod.run(n,I)}}),on=G("$ZodNullable",(o,c)=>{y.init(o,c),Y(o._zod,"optin",()=>c.innerType._zod.optin),Y(o._zod,"optout",()=>c.innerType._zod.optout),Y(o._zod,"pattern",()=>{let n=c.innerType._zod.pattern;return n?new RegExp(`^(${Oe(n.source)}|null)$`):void 0}),Y(o._zod,"values",()=>{return c.innerType._zod.values?new Set([...c.innerType._zod.values,null]):void 0}),o._zod.parse=(n,I)=>{if(n.value===null)return n;return c.innerType._zod.run(n,I)}}),cn=G("$ZodDefault",(o,c)=>{y.init(o,c),o._zod.optin="optional",Y(o._zod,"values",()=>c.innerType._zod.values),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);if(n.value===void 0)return n.value=c.defaultValue,n;let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>Ev(_,c));return Ev(S,c)}});function Ev(o,c){if(o.value===void 0)o.value=c.defaultValue;return o}var rn=G("$ZodPrefault",(o,c)=>{y.init(o,c),o._zod.optin="optional",Y(o._zod,"values",()=>c.innerType._zod.values),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);if(n.value===void 0)n.value=c.defaultValue;return c.innerType._zod.run(n,I)}}),vn=G("$ZodNonOptional",(o,c)=>{y.init(o,c),Y(o._zod,"values",()=>{let n=c.innerType._zod.values;return n?new Set([...n].filter((I)=>I!==void 0)):void 0}),o._zod.parse=(n,I)=>{let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>Dv(_,o));return Dv(S,o)}});function Dv(o,c){if(!o.issues.length&&o.value===void 0)o.issues.push({code:"invalid_type",expected:"nonoptional",input:o.value,inst:c});return o}var nn=G("$ZodCatch",(o,c)=>{y.init(o,c),Y(o._zod,"optin",()=>c.innerType._zod.optin),Y(o._zod,"optout",()=>c.innerType._zod.optout),Y(o._zod,"values",()=>c.innerType._zod.values),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>{if(n.value=_.value,_.issues.length)n.value=c.catchValue({...n,error:{issues:_.issues.map((E)=>p(E,I,l()))},input:n.value}),n.issues=[];return n});if(n.value=S.value,S.issues.length)n.value=c.catchValue({...n,error:{issues:S.issues.map((_)=>p(_,I,l()))},input:n.value}),n.issues=[];return n}});var An=G("$ZodPipe",(o,c)=>{y.init(o,c),Y(o._zod,"values",()=>c.in._zod.values),Y(o._zod,"optin",()=>c.in._zod.optin),Y(o._zod,"optout",()=>c.out._zod.optout),Y(o._zod,"propValues",()=>c.in._zod.propValues),o._zod.parse=(n,I)=>{if(I.direction==="backward"){let _=c.out._zod.run(n,I);if(_ instanceof Promise)return _.then((E)=>Ke(E,c.in,I));return Ke(_,c.in,I)}let S=c.in._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>Ke(_,c.out,I));return Ke(S,c.out,I)}});function Ke(o,c,n){if(o.issues.length)return o.aborted=!0,o;return c._zod.run({value:o.value,issues:o.issues},n)}var In=G("$ZodReadonly",(o,c)=>{y.init(o,c),Y(o._zod,"propValues",()=>c.innerType._zod.propValues),Y(o._zod,"values",()=>c.innerType._zod.values),Y(o._zod,"optin",()=>c.innerType?._zod?.optin),Y(o._zod,"optout",()=>c.innerType?._zod?.optout),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then(Ov);return Ov(S)}});function Ov(o){return o.value=Object.freeze(o.value),o}var Sn=G("$ZodCustom",(o,c)=>{z.init(o,c),y.init(o,c),o._zod.parse=(n,I)=>{return n},o._zod.check=(n)=>{let I=n.value,S=c.fn(I);if(S instanceof Promise)return S.then((_)=>bv(_,n,I,o));bv(S,n,I,o);return}});function bv(o,c,n,I){if(!o){let S={code:"custom",input:n,inst:I,path:[...I._zod.def.path??[]],continue:!I._zod.def.abort};if(I._zod.def.params)S.params=I._zod.def.params;c.issues.push(Ie(S))}}var gn,Wue=Symbol("ZodOutput"),Que=Symbol("ZodInput");class Pn{constructor(){this._map=new WeakMap,this._idmap=new Map}add(o,...c){let n=c[0];if(this._map.set(o,n),n&&typeof n==="object"&&"id"in n)this._idmap.set(n.id,o);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(o){let c=this._map.get(o);if(c&&typeof c==="object"&&"id"in c)this._idmap.delete(c.id);return this._map.delete(o),this}get(o){let c=o._zod.parent;if(c){let n={...this.get(c)??{}};delete n.id;let I={...n,...this._map.get(o)};return Object.keys(I).length?I:void 0}return this._map.get(o)}has(o){return this._map.has(o)}}function nre(){return new Pn}(gn=globalThis).__zod_globalRegistry??(gn.__zod_globalRegistry=nre());var ve=globalThis.__zod_globalRegistry;function _n(o,c){return new o({type:"string",...L(c)})}function En(o,c){return new o({type:"string",format:"email",check:"string_format",abort:!1,...L(c)})}function Io(o,c){return new o({type:"string",format:"guid",check:"string_format",abort:!1,...L(c)})}function Dn(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,...L(c)})}function On(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(c)})}function bn(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(c)})}function Tn(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(c)})}function qn(o,c){return new o({type:"string",format:"url",check:"string_format",abort:!1,...L(c)})}function Nn(o,c){return new o({type:"string",format:"emoji",check:"string_format",abort:!1,...L(c)})}function Gn(o,c){return new o({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(c)})}function un(o,c){return new o({type:"string",format:"cuid",check:"string_format",abort:!1,...L(c)})}function Jn(o,c){return new o({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(c)})}function tn(o,c){return new o({type:"string",format:"ulid",check:"string_format",abort:!1,...L(c)})}function Bn(o,c){return new o({type:"string",format:"xid",check:"string_format",abort:!1,...L(c)})}function Rn(o,c){return new o({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(c)})}function Ln(o,c){return new o({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(c)})}function Hn(o,c){return new o({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(c)})}function Wn(o,c){return new o({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(c)})}function Qn(o,c){return new o({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(c)})}function wn(o,c){return new o({type:"string",format:"base64",check:"string_format",abort:!1,...L(c)})}function Xn(o,c){return new o({type:"string",format:"base64url",check:"string_format",abort:!1,...L(c)})}function Yn(o,c){return new o({type:"string",format:"e164",check:"string_format",abort:!1,...L(c)})}function xn(o,c){return new o({type:"string",format:"jwt",check:"string_format",abort:!1,...L(c)})}function Kn(o,c){return new o({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(c)})}function yn(o,c){return new o({type:"string",format:"date",check:"string_format",...L(c)})}function Vn(o,c){return new o({type:"string",format:"time",check:"string_format",precision:null,...L(c)})}function Fn(o,c){return new o({type:"string",format:"duration",check:"string_format",...L(c)})}function $n(o,c){return new o({type:"number",checks:[],...L(c)})}function Mn(o,c){return new o({type:"number",check:"number_format",abort:!1,format:"safeint",...L(c)})}function zn(o,c){return new o({type:"boolean",...L(c)})}function kn(o,c){return new o({type:"null",...L(c)})}function Un(o){return new o({type:"unknown"})}function mn(o,c){return new o({type:"never",...L(c)})}function Fe(o,c){return new oo({check:"less_than",...L(c),value:o,inclusive:!1})}function Ge(o,c){return new oo({check:"less_than",...L(c),value:o,inclusive:!0})}function $e(o,c){return new co({check:"greater_than",...L(c),value:o,inclusive:!1})}function ue(o,c){return new co({check:"greater_than",...L(c),value:o,inclusive:!0})}function Me(o,c){return new lr({check:"multiple_of",...L(c),value:o})}function ze(o,c){return new ir({check:"max_length",...L(c),maximum:o})}function Se(o,c){return new dr({check:"min_length",...L(c),minimum:o})}function ke(o,c){return new ar({check:"length_equals",...L(c),length:o})}function So(o,c){return new sr({check:"string_format",format:"regex",...L(c),pattern:o})}function go(o){return new ev({check:"string_format",format:"lowercase",...L(o)})}function Po(o){return new ov({check:"string_format",format:"uppercase",...L(o)})}function _o(o,c){return new cv({check:"string_format",format:"includes",...L(c),includes:o})}function Eo(o,c){return new rv({check:"string_format",format:"starts_with",...L(c),prefix:o})}function Do(o,c){return new vv({check:"string_format",format:"ends_with",...L(c),suffix:o})}function oe(o){return new nv({check:"overwrite",tx:o})}function Oo(o){return oe((c)=>c.normalize(o))}function bo(){return oe((o)=>o.trim())}function To(){return oe((o)=>o.toLowerCase())}function qo(){return oe((o)=>o.toUpperCase())}function No(){return oe((o)=>fe(o))}function Zn(o,c,n){return new o({type:"array",element:c,...L(n)})}function Cn(o,c,n){return new o({type:"custom",check:"custom",fn:c,...L(n)})}function jn(o){let c=Are((n)=>{return n.addIssue=(I)=>{if(typeof I==="string")n.issues.push(Ie(I,n.value,c._zod.def));else{let S=I;if(S.fatal)S.continue=!1;S.code??(S.code="custom"),S.input??(S.input=n.value),S.inst??(S.inst=c),S.continue??(S.continue=!c._zod.def.abort),n.issues.push(Ie(S))}},o(n.value,n)});return c}function Are(o,c){let n=new z({check:"custom",...L(c)});return n._zod.check=o,n}function Go(o){let c=o?.target??"draft-2020-12";if(c==="draft-4")c="draft-04";if(c==="draft-7")c="draft-07";return{processors:o.processors??{},metadataRegistry:o?.metadata??ve,target:c,unrepresentable:o?.unrepresentable??"throw",override:o?.override??(()=>{}),io:o?.io??"output",counter:0,seen:new Map,cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0}}function $(o,c,n={path:[],schemaPath:[]}){var I;let S=o._zod.def,_=c.seen.get(o);if(_){if(_.count++,n.schemaPath.includes(o))_.cycle=n.path;return _.schema}let E={schema:{},count:1,cycle:void 0,path:n.path};c.seen.set(o,E);let q=o._zod.toJSONSchema?.();if(q)E.schema=q;else{let B={...n,schemaPath:[...n.schemaPath,o],path:n.path};if(o._zod.processJSONSchema)o._zod.processJSONSchema(c,E.schema,B);else{let H=E.schema,W=c.processors[S.type];if(!W)throw Error(`[toJSONSchema]: Non-representable type encountered: ${S.type}`);W(o,c,H,B)}let R=o._zod.parent;if(R){if(!E.ref)E.ref=R;$(R,c,B),c.seen.get(R).isParent=!0}}let N=c.metadataRegistry.get(o);if(N)Object.assign(E.schema,N);if(c.io==="input"&&U(o))delete E.schema.examples,delete E.schema.default;if(c.io==="input"&&E.schema._prefault)(I=E.schema).default??(I.default=E.schema._prefault);return delete E.schema._prefault,c.seen.get(o).schema}function uo(o,c){let n=o.seen.get(c);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let I=new Map;for(let E of o.seen.entries()){let q=o.metadataRegistry.get(E[0])?.id;if(q){let N=I.get(q);if(N&&N!==E[0])throw Error(`Duplicate schema id "${q}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);I.set(q,E[0])}}let S=(E)=>{let q=o.target==="draft-2020-12"?"$defs":"definitions";if(o.external){let R=o.external.registry.get(E[0])?.id,H=o.external.uri??((k)=>k);if(R)return{ref:H(R)};let W=E[1].defId??E[1].schema.id??`schema${o.counter++}`;return E[1].defId=W,{defId:W,ref:`${H("__shared")}#/${q}/${W}`}}if(E[1]===n)return{ref:"#"};let J=`${"#"}/${q}/`,B=E[1].schema.id??`__schema${o.counter++}`;return{defId:B,ref:J+B}},_=(E)=>{if(E[1].schema.$ref)return;let q=E[1],{ref:N,defId:J}=S(E);if(q.def={...q.schema},J)q.defId=J;let B=q.schema;for(let R in B)delete B[R];B.$ref=N};if(o.cycles==="throw")for(let E of o.seen.entries()){let q=E[1];if(q.cycle)throw Error(`Cycle detected: #/${q.cycle?.join("/")}/<root>
1
+ class Ea{basePath;accessToken;constructor(e){this.basePath=e?.basePath,this.accessToken=e?.accessToken}}var qp={pending:"pending",success:"success",failed:"failed"};var Jp={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var Lp={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var Yp={viewer:"viewer",editor:"editor",admin:"admin"};var Kp={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Up={product:"product",service:"service",advance:"advance"};var jp={separator:"separator"};var $p={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var zp={separator:"separator"};var td={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var od={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var id={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var sd={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var ld={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var dd={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var md={estimate:"estimate",proforma_invoice:"proforma_invoice"};var vd={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var gd={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var bd={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var xd={monthly:"monthly",yearly:"yearly"};var _d={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Td={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Dd={product:"product",service:"service",advance:"advance"};var Rd={separator:"separator"};var kd={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var wd={live:"live",sandbox:"sandbox"};var Bd={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion",timeless_modern_full_data:"timeless_modern_full_data"};var qd={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Jd={estimate:"estimate",proforma_invoice:"proforma_invoice"};var Ld={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Yd={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Kd={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var Ud={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var jd={product:"product",service:"service",advance:"advance"};var $d={live:"live",sandbox:"sandbox"};var zd={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var tu={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var ou={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var iu={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var su={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var lu={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var du={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var mu={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};var vu={standard:"standard",custom:"custom"};var gu={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var bu={product:"product",service:"service",advance:"advance"};var xu={separator:"separator"};var _u={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Tu={stripe:"stripe",paypal:"paypal",bank:"bank",braintree:"braintree"};var Du={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Ru={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var ku={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var wu={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Bu={estimate:"estimate",proforma_invoice:"proforma_invoice"};var qu={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Ju={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Lu={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Yu={product:"product",service:"service",advance:"advance"};var Ku={separator:"separator"};var Uu={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var ju={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var $u={product:"product",service:"service",advance:"advance"};var zu={separator:"separator"};var tm={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var om={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var im={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var sm={estimate:"estimate",proforma_invoice:"proforma_invoice"};var lm={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var dm={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var mm={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var vm={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var gm={live:"live",sandbox:"sandbox"};var bm={iban:"iban",us_domestic:"us_domestic",uk_domestic:"uk_domestic",other:"other"};var xm={live:"live",sandbox:"sandbox"};var _m={viewer:"viewer",editor:"editor",admin:"admin"};var Tm={pending:"pending",accepted:"accepted",expired:"expired"};var Dm={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion",timeless_modern_full_data:"timeless_modern_full_data"};var Rm={viewer:"viewer",editor:"editor",admin:"admin"};var km={invoice:"invoice",estimate:"estimate",credit_note:"credit_note"};var wm={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Bm={product:"product",service:"service",advance:"advance"};var qm={separator:"separator"};var Jm={estimate:"estimate",proforma_invoice:"proforma_invoice"};var Lm={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Ym={xlsx:"xlsx",csv:"csv"};var Km={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var Um={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var jm={xlsx:"xlsx",csv:"csv"};var $m={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var zm={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var tf={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var of={test:"test",production:"production"};var rf={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var cf={user:"user",api_key:"api_key",system:"system",cron:"cron",webhook:"webhook"};var pf={live:"live",sandbox:"sandbox"};var uf={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var ff={logo:"logo",signature:"signature",attachment:"attachment"};var yf={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var If={N:"N",P:"P"};var Sf={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var Pf={B:"B",C:"C"};var Af={true:"true",false:"false"};var hf={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var Ef={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var Of={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Nf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Cf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Gf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Ff={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Mf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Hf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Qf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Wf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Zf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Vf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Xf={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var ev={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var nv={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var av={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var rv={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var cv={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var pv={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var uv={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var fv={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var yv={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var Iv={sp:"sp",doo:"doo",dno:"dno",club:"club"};var Sv={stored:"stored",registry:"registry",unknown:"unknown"};var Pv={normirani:"normirani",dejanski:"dejanski"};var Av={sp:"sp",doo:"doo",dno:"dno",club:"club"};var hv={resident:"resident",non_resident:"non_resident"};var Ev={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var Ov={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var Nv={full_time_self_employed:"full_time_self_employed",other:"other"};var Cv={product:"product",service:"service"};var Gv={goods:"goods",services:"services"};var Fv={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Mv={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Hv={product:"product",service:"service",advance:"advance"};var Qv={separator:"separator"};var Wv={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Zv={product:"product",service:"service",advance:"advance"};var Vv={fiscalization_series:"fiscalization_series",accounting_categories:"accounting_categories",inventory_and_pricing:"inventory_and_pricing",sales_integrations:"sales_integrations",webhooks:"webhooks"};var Xv={percent:"percent",amount:"amount"};var ey={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var ny={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var ay={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var ry={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var cy={pending:"pending",processing:"processing",invoiced:"invoiced",cancelled:"cancelled",failed:"failed"};var py={created:"created",paid:"paid",fulfilled:"fulfilled"};var uy={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var fy={line_item:"line_item",shipping:"shipping"};var yy={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Iy={percent:"percent",amount:"amount"};var Sy={separator:"separator"};var Py={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Ay={percent:"percent",amount:"amount"};var hy={separator:"separator"};var Ey={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Oy={percent:"percent",amount:"amount"};var Ny={separator:"separator"};var Cy={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Gy={percent:"percent",amount:"amount"};var Fy={separator:"separator"};var My={estimate:"estimate",proforma_invoice:"proforma_invoice"};var Hy={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Qy={percent:"percent",amount:"amount"};var Wy={separator:"separator"};var Zy={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion",timeless_modern_full_data:"timeless_modern_full_data"};var Vy={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var Xy={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var eg={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var ng={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var ag={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var rg={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var cg={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var pg={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var ug={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var fg={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var yg={active:"active",paused:"paused",completed:"completed"};var Ig={A:"A",B:"B",C:"C"};var Sg={true:"true",false:"false"};var Pg={true:"true",false:"false"};var Ag={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var hg={qr_only:"qr_only",full_slip:"full_slip"};var Eg={true:"true",false:"false"};var Og={true:"true",false:"false"};var Ng={true:"true",false:"false"};var Cg={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var Gg={qr_only:"qr_only",full_slip:"full_slip"};var Fg={true:"true",false:"false"};var Mg={true:"true",false:"false"};var Hg={true:"true",false:"false"};var Qg={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var Wg={qr_only:"qr_only",full_slip:"full_slip"};var Zg={true:"true",false:"false"};var Vg={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var Xg={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var eI={true:"true",false:"false"};var nI={true:"true",false:"false"};var aI={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var rI={qr_only:"qr_only",full_slip:"full_slip"};var cI={true:"true",false:"false"};var pI={true:"true",false:"false"};var uI={true:"true",false:"false"};var fI={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var yI={qr_only:"qr_only",full_slip:"full_slip"};var II={true:"true",false:"false"};var SI={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var PI={regular_annual:"regular_annual"};var AI={invoice:"invoice",credit_note:"credit_note"};var hI={FURS:"FURS",PISRS:"PISRS"};var EI={info:"info",warning:"warning"};var OI={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var NI={sp:"sp",doo:"doo",dno:"dno",club:"club"};var CI={stored:"stored",registry:"registry",unknown:"unknown"};var GI={normirani:"normirani",dejanski:"dejanski"};var FI={sp:"sp",doo:"doo",dno:"dno",club:"club"};var MI={resident:"resident",non_resident:"non_resident"};var HI={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var QI={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var WI={full_time_self_employed:"full_time_self_employed",other:"other"};var ZI={info:"info",warning:"warning"};var VI={sent:"sent",queued:"queued",skipped:"skipped"};var XI={sent:"sent",queued:"queued",skipped:"skipped"};var eb={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var nb={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var ab={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var rb={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var cb={count:"count",sum:"sum",avg:"avg",min:"min",max:"max"};var pb={asc:"asc",desc:"desc"};var ub={invoices:"invoices",estimates:"estimates",credit_notes:"credit_notes",advance_invoices:"advance_invoices",payments:"payments",customers:"customers",items:"items",invoice_taxes:"invoice_taxes"};var fb={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var yb={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var Ib={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c"};var Sb={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var Pb={viewer:"viewer",editor:"editor",admin:"admin"};var Ab={estimate:"estimate",proforma_invoice:"proforma_invoice"};var hb={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var Eb={N:"N",P:"P"};var Ob={N:"N",P:"P"};var Nb={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var Cb={B:"B",C:"C"};var Gb={B:"B",C:"C"};var Fb={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Mb={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Hb={product:"product",service:"service",advance:"advance"};var Qb={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var Wb={created:"created",paid:"paid",fulfilled:"fulfilled"};var Zb={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var Vb={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var Xb={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var eS={sp:"sp",doo:"doo",dno:"dno",club:"club"};var nS={stored:"stored",registry:"registry",unknown:"unknown"};var aS={normirani:"normirani",dejanski:"dejanski"};var rS={sp:"sp",doo:"doo",dno:"dno",club:"club"};var cS={resident:"resident",non_resident:"non_resident"};var pS={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var uS={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var fS={full_time_self_employed:"full_time_self_employed",other:"other"};var yS={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var IS={sp:"sp",doo:"doo",dno:"dno",club:"club"};var SS={normirani:"normirani",dejanski:"dejanski"};var PS={resident:"resident",non_resident:"non_resident"};var AS={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var hS={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var ES={full_time_self_employed:"full_time_self_employed",other:"other"};var OS={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};var NS={logo:"logo",signature:"signature",attachment:"attachment"};var CS={pending:"pending",success:"success",failed:"failed"};var GS={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};var FS={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};function v(e){return{["x-spaceinvoices-client"]:e}}var f=null,Ra=null,Oa="l.account";function y(e){f=e}function ka(){if(!f)throw Error("SDK not initialized. Call new SpaceInvoices() first.");return f}function Na(e){if(typeof document>"u")return null;let t=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]+)`));if(!t)return null;return decodeURIComponent(t[1])}function wa(e){if(!e)return{};if(e instanceof Headers){let t={};return e.forEach((n,r)=>{t[r]=n}),t}if(Array.isArray(e)){let t={};for(let[n,r]of e)t[n]=r;return t}return e}async function o(e,t){let n=ka(),r=await Promise.resolve(n.getAccessToken()),i=`${n.baseUrl}${e}`,l={...wa(t.headers)};if(n.clientName)Object.assign(l,v(n.clientName));if(r)l.Authorization=`Bearer ${r}`;let d=l["x-account-id"]||l["X-Account-Id"]||Ra||Na(Oa);if(d&&!l["x-account-id"]&&!l["X-Account-Id"])l["x-account-id"]=d;let p=await fetch(i,{...t,headers:l});if(p.status===401&&n.onUnauthorized)n.onUnauthorized(p);let m,Da=p.headers.get("content-length"),u=p.headers.get("content-type");if(Da==="0"||p.status===204)m=void 0;else if(u?.includes("application/pdf")||u?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||u?.includes("application/octet-stream")||u?.includes("application/zip")||u?.includes("application/x-zip-compressed")||u?.includes("image/"))m=await p.blob();else if(u?.includes("application/xml")||u?.includes("text/xml"))m=await p.text();else if(u?.includes("text/html"))m=await p.text();else try{m=await p.json()}catch{m=void 0}return{data:m,status:p.status,headers:p.headers}}var Ca=()=>{return"/account-webhooks"},g=async(e,t)=>{return o(Ca(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ba=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/account-webhooks?${n}`:"/account-webhooks"},I=async(e,t)=>{return o(Ba(e),{...t,method:"GET"})},Ga=(e)=>{return`/account-webhooks/${e}`},b=async(e,t)=>{return o(Ga(e),{...t,method:"GET"})},qa=(e)=>{return`/account-webhooks/${e}`},S=async(e,t,n)=>{return o(qa(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Fa=(e)=>{return`/account-webhooks/${e}`},x=async(e,t)=>{return o(Fa(e),{...t,method:"DELETE"})},Ja=(e)=>{return`/account-webhooks/${e}/test`},P=async(e,t)=>{return o(Ja(e),{...t,method:"POST"})};var Ma=(e)=>{return`/account-webhooks/${e}/rotate-secret`},_=async(e,t)=>{return o(Ma(e),{...t,method:"POST"})};async function La(e,t){return e(...t)}function A(e){if(!e?.entity_id&&!e?.account_id&&!e?.signal)return;let t={};if(e.entity_id||e.account_id)t.headers={...e.entity_id?{"x-entity-id":e.entity_id}:{},...e.account_id?{"x-account-id":e.account_id}:{}};if(e.signal)t.signal=e.signal;return t}function a(e){return async(...t)=>{let n=t[t.length-1],r=n&&typeof n==="object"&&(("entity_id"in n)||("account_id"in n)||("signal"in n)||Object.keys(n).length===0),i,s;if(r)i=t.slice(0,-1),s=A(n);else i=[...t];i.push(s);let l=await La(e,i);if(l.status>=200&&l.status<300)return l.data;let d=Error(`API error: ${l.status}`);throw d.status=l.status,d.data=l.data,d}}function c(e){return async(t)=>{let{entity_id:n,account_id:r,signal:i,...s}=t||{},l=A({entity_id:n,account_id:r,signal:i}),d=await e(s,l);if(d.status===200)return d.data;let p=Error(`API error: ${d.status}`);throw p.status=d.status,p.data=d.data,p}}var Ha={create:a(g),list:c(I),get:a(b),update:a(S),delete:a(x),testAccountWebhook:a(P),rotateAccountWebhookSecret:a(_)};var Ya=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/activities?${n}`:"/activities"},T=async(e,t)=>{return o(Ya(e),{...t,method:"GET"})};var Qa={list:c(T)};var Ka=(e)=>{return`/advance-invoices/shareable/${e}`},h=async(e,t)=>{return o(Ka(e),{...t,method:"GET"})},Wa=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/advance-invoices/shareable/${e}/html?${r}`:`/advance-invoices/shareable/${e}/html`},D=async(e,t,n)=>{return o(Wa(e,t),{...n,method:"GET"})},Ua=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/advance-invoices/shareable/${e}/pdf?${r}`:`/advance-invoices/shareable/${e}/pdf`},E=async(e,t,n)=>{return o(Ua(e,t),{...n,method:"GET"})},Za=()=>{return"/advance-invoices"},R=async(e,t)=>{return o(Za(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},ja=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/advance-invoices?${n}`:"/advance-invoices"},O=async(e,t)=>{return o(ja(e),{...t,method:"GET"})},Va=()=>{return"/advance-invoices/custom"},k=async(e,t)=>{return o(Va(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},$a=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/advance-invoices/${e}?${r}`:`/advance-invoices/${e}`},N=async(e,t,n)=>{return o($a(e,t),{...n,method:"GET"})},Xa=(e)=>{return`/advance-invoices/${e}`},w=async(e,t,n)=>{return o(Xa(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},za=(e)=>{return`/advance-invoices/${e}/versions`},C=async(e,t)=>{return o(za(e),{...t,method:"GET"})},ei=(e,t)=>{return`/advance-invoices/${e}/versions/${t}`},B=async(e,t,n)=>{return o(ei(e,t),{...n,method:"GET"})},ti=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/advance-invoices/render?${n}`:"/advance-invoices/render"},G=async(e,t,n)=>{return o(ti(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},ni=(e)=>{return`/advance-invoices/${e}/void`},q=async(e,t,n)=>{return o(ni(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var oi={getShareableAdvanceInvoice:a(h),getShareableAdvanceInvoiceHtml:a(D),getShareableAdvanceInvoicePdf:a(E),create:a(R),list:c(O),createCustom:a(k),get:a(N),update:a(w),getVersions:a(C),getVersion:a(B),renderAdvanceInvoicePreview:a(G),void:a(q)};var ai=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/company-registry/search?${n}`:"/company-registry/search"},F=async(e,t)=>{return o(ai(e),{...t,method:"GET"})},ii=()=>{return"/company-registry/countries"},J=async(e)=>{return o(ii(),{...e,method:"GET"})};var ri={searchCompanyRegistry:a(F),list:a(J)};var si=(e)=>{return`/credit-notes/shareable/${e}`},M=async(e,t)=>{return o(si(e),{...t,method:"GET"})},ci=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/credit-notes/shareable/${e}/html?${r}`:`/credit-notes/shareable/${e}/html`},L=async(e,t,n)=>{return o(ci(e,t),{...n,method:"GET"})},li=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/credit-notes/shareable/${e}/pdf?${r}`:`/credit-notes/shareable/${e}/pdf`},H=async(e,t,n)=>{return o(li(e,t),{...n,method:"GET"})},pi=(e)=>{return`/credit-notes/shareable/${e}/eslog`},Y=async(e,t)=>{return o(pi(e),{...t,method:"GET"})},di=()=>{return"/credit-notes"},Q=async(e,t)=>{return o(di(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},ui=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/credit-notes?${n}`:"/credit-notes"},K=async(e,t)=>{return o(ui(e),{...t,method:"GET"})},mi=()=>{return"/credit-notes/custom"},W=async(e,t)=>{return o(mi(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},fi=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/credit-notes/${e}?${r}`:`/credit-notes/${e}`},U=async(e,t,n)=>{return o(fi(e,t),{...n,method:"GET"})},vi=(e)=>{return`/credit-notes/${e}`},Z=async(e,t,n)=>{return o(vi(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},yi=(e)=>{return`/credit-notes/${e}/versions`},j=async(e,t)=>{return o(yi(e),{...t,method:"GET"})},gi=(e,t)=>{return`/credit-notes/${e}/versions/${t}`},V=async(e,t,n)=>{return o(gi(e,t),{...n,method:"GET"})},Ii=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/credit-notes/render?${n}`:"/credit-notes/render"},$=async(e,t,n)=>{return o(Ii(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},bi=(e)=>{return`/credit-notes/${e}/void`},X=async(e,t,n)=>{return o(bi(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var Si={getShareableCreditNote:a(M),getShareableCreditNoteHtml:a(L),getShareableCreditNotePdf:a(H),getShareableCreditNoteEslog:a(Y),create:a(Q),list:c(K),createCustom:a(W),get:a(U),update:a(Z),getVersions:a(j),getVersion:a(V),renderCreditNotePreview:a($),void:a(X)};var xi=()=>{return"/customers"},z=async(e,t)=>{return o(xi(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Pi=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/customers?${n}`:"/customers"},ee=async(e,t)=>{return o(Pi(e),{...t,method:"GET"})},_i=(e)=>{return`/customers/${e}`},te=async(e,t)=>{return o(_i(e),{...t,method:"GET"})},Ai=(e)=>{return`/customers/${e}`},ne=async(e,t,n)=>{return o(Ai(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Ti=(e)=>{return`/customers/${e}`},oe=async(e,t)=>{return o(Ti(e),{...t,method:"DELETE"})},hi=(e)=>{return`/customers/${e}/restore`},ae=async(e,t)=>{return o(hi(e),{...t,method:"POST"})},Di=(e)=>{return`/customers/${e}/permanent`},ie=async(e,t)=>{return o(Di(e),{...t,method:"DELETE"})};var Ei={create:a(z),list:c(ee),get:a(te),update:a(ne),delete:a(oe),restoreCustomer:a(ae),permanentDeleteCustomer:a(ie)};var Ri=(e)=>{return`/delivery-notes/shareable/${e}`},re=async(e,t)=>{return o(Ri(e),{...t,method:"GET"})},Oi=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/delivery-notes/shareable/${e}/html?${r}`:`/delivery-notes/shareable/${e}/html`},se=async(e,t,n)=>{return o(Oi(e,t),{...n,method:"GET"})},ki=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/delivery-notes/shareable/${e}/pdf?${r}`:`/delivery-notes/shareable/${e}/pdf`},ce=async(e,t,n)=>{return o(ki(e,t),{...n,method:"GET"})},Ni=()=>{return"/delivery-notes"},le=async(e,t)=>{return o(Ni(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},wi=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/delivery-notes?${n}`:"/delivery-notes"},pe=async(e,t)=>{return o(wi(e),{...t,method:"GET"})},Ci=()=>{return"/delivery-notes/custom"},de=async(e,t)=>{return o(Ci(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Bi=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/delivery-notes/${e}?${r}`:`/delivery-notes/${e}`},ue=async(e,t,n)=>{return o(Bi(e,t),{...n,method:"GET"})},Gi=(e)=>{return`/delivery-notes/${e}`},me=async(e,t,n)=>{return o(Gi(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},qi=(e)=>{return`/delivery-notes/${e}/versions`},fe=async(e,t)=>{return o(qi(e),{...t,method:"GET"})},Fi=(e,t)=>{return`/delivery-notes/${e}/versions/${t}`},ve=async(e,t,n)=>{return o(Fi(e,t),{...n,method:"GET"})},Ji=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/delivery-notes/render?${n}`:"/delivery-notes/render"},ye=async(e,t,n)=>{return o(Ji(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},Mi=(e)=>{return`/delivery-notes/${e}/void`},ge=async(e,t,n)=>{return o(Mi(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var Li={getShareableDeliveryNote:a(re),getShareableDeliveryNoteHtml:a(se),getShareableDeliveryNotePdf:a(ce),create:a(le),list:c(pe),createCustom:a(de),get:a(ue),update:a(me),getVersions:a(fe),getVersion:a(ve),renderDeliveryNotePreview:a(ye),void:a(ge)};var Hi=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/next-number?${n}`:"/documents/next-number"},Ie=async(e,t)=>{return o(Hi(e),{...t,method:"GET"})},Yi=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/calculate?${n}`:"/documents/calculate"},be=async(e,t,n)=>{return o(Yi(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},Qi=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/finalize?${r}`:`/documents/${e}/finalize`},Se=async(e,t,n,r)=>{return o(Qi(e,n),{...r,method:"POST",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(t)})},Ki=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/fiscalize?${r}`:`/documents/${e}/fiscalize`},xe=async(e,t,n)=>{return o(Ki(e,t),{...n,method:"POST"})},Wi=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}?${r}`:`/documents/${e}`},Pe=async(e,t,n)=>{return o(Wi(e,t),{...n,method:"DELETE"})},Ui=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/restore?${r}`:`/documents/${e}/restore`},_e=async(e,t,n)=>{return o(Ui(e,t),{...n,method:"POST"})},Zi=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/permanent?${r}`:`/documents/${e}/permanent`},Ae=async(e,t,n)=>{return o(Zi(e,t),{...n,method:"DELETE"})},ji=(e)=>{return`/documents/${e}/send`},Te=async(e,t,n)=>{return o(ji(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Vi=(e)=>{return`/documents/${e}/share`},he=async(e,t)=>{return o(Vi(e),{...t,method:"POST"})},$i=(e)=>{return`/documents/${e}/share`},De=async(e,t)=>{return o($i(e),{...t,method:"GET"})},Xi=(e)=>{return`/documents/${e}/share`},Ee=async(e,t)=>{return o(Xi(e),{...t,method:"DELETE"})};var zi={getNextNumber:a(Ie),calculateDocumentPreview:a(be),finalizeDocument:a(Se),fiscalizeDocument:a(xe),delete:a(Pe),restoreDocument:a(_e),permanentDeleteDocument:a(Ae),sendDocument:a(Te),shareDocument:a(he),getShareableId:a(De),unshareDocument:a(Ee)};var er=()=>{return"/e-invoicing/settings"},Re=async(e)=>{return o(er(),{...e,method:"GET"})},tr=()=>{return"/e-invoicing/settings"},Oe=async(e,t)=>{return o(tr(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},nr=()=>{return"/e-invoicing/supplier"},ke=async(e,t)=>{return o(nr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},or=()=>{return"/e-invoicing/supplier"},Ne=async(e)=>{return o(or(),{...e,method:"GET"})};var ar=()=>{return"/e-invoicing/customer-search"},we=async(e,t)=>{return o(ar(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},ir=()=>{return"/e-invoicing/send/:documentType/:documentId"},Ce=async(e,t)=>{return o(ir(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},rr=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/e-invoicing/submissions?${n}`:"/e-invoicing/submissions"},Be=async(e,t)=>{return o(rr(e),{...t,method:"GET"})},sr=()=>{return"/e-invoicing/submissions/:id"},Ge=async(e)=>{return o(sr(),{...e,method:"GET"})},cr=()=>{return"/e-invoicing/submissions/:id/retry"},qe=async(e)=>{return o(cr(),{...e,method:"POST"})},lr=()=>{return"/e-invoicing/webhooks/flowin"},Fe=async(e,t)=>{return o(lr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var pr={list:a(Re),update:a(Oe),registerEInvoicingSupplier:a(ke),getEInvoicingSupplier:a(Ne),searchEInvoicingCustomer:a(we),sendEInvoice:a(Ce),listEInvoicingSubmissions:a(Be),getEInvoicingSubmission:a(Ge),retryEInvoicingSubmission:a(qe),handleFlowinWebhook:a(Fe)};var dr=()=>{return"/email/send"},Je=async(e,t)=>{return o(dr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var ur={sendEmail:a(Je)};var mr=()=>{return"/entities"},Me=async(e,t)=>{return o(mr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},fr=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/entities?${n}`:"/entities"},Le=async(e,t)=>{return o(fr(e),{...t,method:"GET"})},vr=(e)=>{return`/entities/${e}`},He=async(e,t)=>{return o(vr(e),{...t,method:"GET"})},yr=(e)=>{return`/entities/${e}`},Ye=async(e,t,n)=>{return o(yr(e),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},gr=(e)=>{return`/entities/${e}/enable`},Qe=async(e,t)=>{return o(gr(e),{...t,method:"POST"})},Ir=(e)=>{return`/entities/${e}/disable`},Ke=async(e,t)=>{return o(Ir(e),{...t,method:"POST"})};var br={create:a(Me),list:c(Le),get:a(He),update:a(Ye),enableEntity:a(Qe),disableEntity:a(Ke)};var Sr=()=>{return"/entities/api-keys"},We=async(e)=>{return o(Sr(),{...e,method:"GET"})},xr=()=>{return"/entities/api-keys"},Ue=async(e,t)=>{return o(xr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Pr=(e)=>{return`/entities/api-keys/${e}`},Ze=async(e,t)=>{return o(Pr(e),{...t,method:"DELETE"})};var _r={listEntityApiKeys:a(We),create:a(Ue),delete:a(Ze)};var Ar=()=>{return"/entities/invitations"},je=async(e)=>{return o(Ar(),{...e,method:"GET"})},Tr=(e)=>{return`/entities/invitations/${e}`},Ve=async(e,t)=>{return o(Tr(e),{...t,method:"GET"})},hr=(e)=>{return`/entities/invitations/${e}`},$e=async(e,t)=>{return o(hr(e),{...t,method:"DELETE"})},Dr=(e)=>{return`/entities/invitations/${e}/resend`},Xe=async(e,t)=>{return o(Dr(e),{...t,method:"POST"})},Er=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/invitations/accept?${n}`:"/invitations/accept"},ze=async(e,t,n)=>{return o(Er(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})};var Rr={listEntityInvitations:a(je),getEntityInvitation:a(Ve),cancelEntityInvitation:a($e),resendEntityInvitation:a(Xe),acceptEntityInvitation:a(ze)};var Or=()=>{return"/stats/query"},et=async(e,t)=>{return o(Or(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var kr={queryEntityStats:a(et)};var Nr=()=>{return"/entities/users"},tt=async(e)=>{return o(Nr(),{...e,method:"GET"})},wr=()=>{return"/entities/users"},nt=async(e,t)=>{return o(wr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Cr=(e)=>{return`/entities/users/${e}`},ot=async(e,t,n)=>{return o(Cr(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Br=(e)=>{return`/entities/users/${e}`},at=async(e,t)=>{return o(Br(e),{...t,method:"DELETE"})},Gr=(e)=>{return`/entities/users/${e}/token`},it=async(e,t)=>{return o(Gr(e),{...t,method:"POST"})};var qr={list:a(tt),addEntityUser:a(nt),update:a(ot),removeEntityUser:a(at),generateEntityUserToken:a(it)};var Fr=(e)=>{return`/estimates/shareable/${e}`},rt=async(e,t)=>{return o(Fr(e),{...t,method:"GET"})},Jr=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/estimates/shareable/${e}/html?${r}`:`/estimates/shareable/${e}/html`},st=async(e,t,n)=>{return o(Jr(e,t),{...n,method:"GET"})},Mr=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/estimates/shareable/${e}/pdf?${r}`:`/estimates/shareable/${e}/pdf`},ct=async(e,t,n)=>{return o(Mr(e,t),{...n,method:"GET"})},Lr=()=>{return"/estimates"},lt=async(e,t)=>{return o(Lr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Hr=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/estimates?${n}`:"/estimates"},pt=async(e,t)=>{return o(Hr(e),{...t,method:"GET"})},Yr=()=>{return"/estimates/custom"},dt=async(e,t)=>{return o(Yr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Qr=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/estimates/${e}?${r}`:`/estimates/${e}`},ut=async(e,t,n)=>{return o(Qr(e,t),{...n,method:"GET"})},Kr=(e)=>{return`/estimates/${e}`},mt=async(e,t,n)=>{return o(Kr(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Wr=(e)=>{return`/estimates/${e}/versions`},ft=async(e,t)=>{return o(Wr(e),{...t,method:"GET"})},Ur=(e,t)=>{return`/estimates/${e}/versions/${t}`},vt=async(e,t,n)=>{return o(Ur(e,t),{...n,method:"GET"})},Zr=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/estimates/render?${n}`:"/estimates/render"},yt=async(e,t,n)=>{return o(Zr(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})};var jr={getShareableEstimate:a(rt),getShareableEstimateHtml:a(st),getShareableEstimatePdf:a(ct),create:a(lt),list:c(pt),createCustom:a(dt),get:a(ut),update:a(mt),getVersions:a(ft),getVersion:a(vt),renderEstimatePreview:a(yt)};var Vr=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/export?${n}`:"/documents/export"},gt=async(e,t)=>{return o(Vr(e),{...t,method:"GET"})},$r=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/export/sales-per-item?${n}`:"/documents/export/sales-per-item"},It=async(e,t)=>{return o($r(e),{...t,method:"GET"})},Xr=()=>{return"/documents/export/pdf"},bt=async(e,t)=>{return o(Xr(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},zr=(e)=>{return`/documents/export/pdf/${e}`},St=async(e,t)=>{return o(zr(e),{...t,method:"GET"})},es=(e)=>{return`/documents/export/pdf/${e}/download`},xt=async(e,t)=>{return o(es(e),{...t,method:"GET"})},ts=()=>{return"/documents/export/eslog"},Pt=async(e,t)=>{return o(ts(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var ns=(e)=>{return`/documents/export/eslog/${e}/download`},_t=async(e,t)=>{return o(ns(e),{...t,method:"GET"})};var os={exportDocuments:a(gt),exportSalesPerItem:a(It),startPdfExport:a(bt),list:c(St),downloadPdfExport:a(xt),startEslogExport:a(Pt),downloadEslogExport:a(_t)};var as=()=>{return"/files"},At=async(e,t)=>{let n=new FormData;if(e.file!==void 0)n.append("file",e.file);if(n.append("category",e.category),e.account_payable_id!==void 0)n.append("account_payable_id",e.account_payable_id);if(e.incoming_purchase_document_id!==void 0)n.append("incoming_purchase_document_id",e.incoming_purchase_document_id);return o(as(),{...t,method:"POST",body:n})},is=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/files?${n}`:"/files"},Tt=async(e,t)=>{return o(is(e),{...t,method:"GET"})},rs=(e)=>{return`/files/${e}`},ht=async(e,t)=>{return o(rs(e),{...t,method:"GET"})},ss=(e)=>{return`/files/${e}`},Dt=async(e,t)=>{return o(ss(e),{...t,method:"DELETE"})};var cs={uploadFile:a(At),list:c(Tt),get:a(ht),delete:a(Dt)};var ls=()=>{return"/fiscalization/fina/settings/certificate"},Et=async(e,t)=>{let n=new FormData;if(e.file!==void 0)n.append("file",e.file);if(e.passphrase!==void 0)n.append("passphrase",e.passphrase);return o(ls(),{...t,method:"POST",body:n})},ps=()=>{return"/fiscalization/fina/settings/certificate"},Rt=async(e)=>{return o(ps(),{...e,method:"GET"})},ds=()=>{return"/fiscalization/fina/settings/certificate"},Ot=async(e)=>{return o(ds(),{...e,method:"DELETE"})};var us={uploadFinaCertificate:a(Et),getFinaCertificate:a(Rt),delete:a(Ot)};var ms=(e)=>{return`/fiscalization/fina/premises/${e}/devices`},kt=async(e,t)=>{return o(ms(e),{...t,method:"GET"})},fs=(e)=>{return`/fiscalization/fina/premises/${e}/devices`},Nt=async(e,t,n)=>{return o(fs(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},vs=(e)=>{return`/fiscalization/fina/devices/${e}`},wt=async(e,t)=>{return o(vs(e),{...t,method:"GET"})},ys=(e)=>{return`/fiscalization/fina/devices/${e}`},Ct=async(e,t)=>{return o(ys(e),{...t,method:"DELETE"})};var gs={listFinaDevices:a(kt),registerFinaDevice:a(Nt),getFinaDevice:a(wt),delete:a(Ct)};var Is=()=>{return"/fiscalization/fina/premises"},Bt=async(e)=>{return o(Is(),{...e,method:"GET"})},bs=()=>{return"/fiscalization/fina/premises"},Gt=async(e,t)=>{return o(bs(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ss=(e)=>{return`/fiscalization/fina/premises/${e}`},qt=async(e,t)=>{return o(Ss(e),{...t,method:"GET"})},xs=(e)=>{return`/fiscalization/fina/premises/${e}`},Ft=async(e,t)=>{return o(xs(e),{...t,method:"DELETE"})};var Ps={listFinaPremises:a(Bt),create:a(Gt),getFinaPremise:a(qt),delete:a(Ft)};var _s=()=>{return"/fiscalization/fina/settings"},Jt=async(e)=>{return o(_s(),{...e,method:"GET"})},As=()=>{return"/fiscalization/fina/settings"},Mt=async(e,t)=>{return o(As(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var Ts={list:a(Jt),update:a(Mt)};var hs=()=>{return"/fiscalization/furs/settings/certificate"},Lt=async(e,t)=>{let n=new FormData;if(e.file!==void 0)n.append("file",e.file);if(e.passphrase!==void 0)n.append("passphrase",e.passphrase);return o(hs(),{...t,method:"POST",body:n})},Ds=()=>{return"/fiscalization/furs/settings/certificate"},Ht=async(e)=>{return o(Ds(),{...e,method:"GET"})},Es=()=>{return"/fiscalization/furs/settings/certificate"},Yt=async(e)=>{return o(Es(),{...e,method:"DELETE"})};var Rs={uploadFursCertificate:a(Lt),getFursCertificate:a(Ht),delete:a(Yt)};var Os=(e)=>{return`/fiscalization/furs/premises/${e}/devices`},Qt=async(e,t)=>{return o(Os(e),{...t,method:"GET"})},ks=(e)=>{return`/fiscalization/furs/premises/${e}/devices`},Kt=async(e,t,n)=>{return o(ks(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Ns=(e)=>{return`/fiscalization/furs/devices/${e}`},Wt=async(e,t)=>{return o(Ns(e),{...t,method:"GET"})};var ws={listFursElectronicDevices:a(Qt),registerFursElectronicDevice:a(Kt),getFursElectronicDevice:a(Wt)};var Cs=()=>{return"/fiscalization/furs/internal-act/report.pdf"},Ut=async(e)=>{return o(Cs(),{...e,method:"GET"})},Bs=()=>{return"/fiscalization/furs/internal-act/report.docx"},Zt=async(e)=>{return o(Bs(),{...e,method:"GET"})};var Gs={generateFursInternalActPdf:a(Ut),generateFursInternalActDocx:a(Zt)};var qs=()=>{return"/fiscalization/furs/premises"},jt=async(e)=>{return o(qs(),{...e,method:"GET"})},Fs=(e)=>{return`/fiscalization/furs/premises/${e}`},Vt=async(e,t)=>{return o(Fs(e),{...t,method:"GET"})},Js=()=>{return"/fiscalization/furs/premises/real-estate"},$t=async(e,t)=>{return o(Js(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ms=()=>{return"/fiscalization/furs/premises/movable"},Xt=async(e,t)=>{return o(Ms(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ls=(e)=>{return`/fiscalization/furs/premises/${e}/close`},zt=async(e,t)=>{return o(Ls(e),{...t,method:"POST"})};var Hs={listFursBusinessPremises:a(jt),getFursBusinessPremise:a(Vt),registerFursRealEstatePremise:a($t),registerFursMovablePremise:a(Xt),closeFursBusinessPremise:a(zt)};var Ys=()=>{return"/fiscalization/furs/settings"},en=async(e)=>{return o(Ys(),{...e,method:"GET"})},Qs=()=>{return"/fiscalization/furs/settings"},tn=async(e,t)=>{return o(Qs(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var Ks={list:a(en),update:a(tn)};var Ws=()=>{return"/health/live"},nn=async(e)=>{return o(Ws(),{...e,method:"GET"})},Us=()=>{return"/health/ready"},on=async(e)=>{return o(Us(),{...e,method:"GET"})},Zs=()=>{return"/health"},an=async(e)=>{return o(Zs(),{...e,method:"GET"})};var js={livenessCheck:a(nn),readinessCheck:a(on),healthCheck:a(an)};var Vs=()=>{return"/incoming-purchase-documents"},rn=async(e,t)=>{return o(Vs(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},$s=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/incoming-purchase-documents?${n}`:"/incoming-purchase-documents"},sn=async(e,t)=>{return o($s(e),{...t,method:"GET"})},Xs=()=>{return"/incoming-purchase-documents/custom"},cn=async(e,t)=>{return o(Xs(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},zs=(e)=>{return`/incoming-purchase-documents/${e}`},ln=async(e,t)=>{return o(zs(e),{...t,method:"GET"})},ec=(e)=>{return`/incoming-purchase-documents/${e}`},pn=async(e,t,n)=>{return o(ec(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},tc=(e)=>{return`/incoming-purchase-documents/${e}/attachments`},dn=async(e,t,n)=>{let r=new FormData;if(t.file!==void 0)r.append("file",t.file);return o(tc(e),{...n,method:"POST",body:r})};var nc=(e,t)=>{return`/incoming-purchase-documents/${e}/attachments/${t}`},un=async(e,t,n)=>{return o(nc(e,t),{...n,method:"DELETE"})};var oc={create:a(rn),list:c(sn),createCustom:a(cn),get:a(ln),update:a(pn),uploadIncomingPurchaseDocumentAttachment:a(dn),delete:a(un)};var mn="https://eu.spaceinvoices.com";function ac(e){let t=typeof e==="string"?{accessToken:e}:e,n=typeof t.accessToken==="function"?t.accessToken:()=>t.accessToken;y({baseUrl:t.basePath??mn,getAccessToken:n,clientName:t.clientName??"js-sdk",onUnauthorized:t.onUnauthorized})}var ic=(e)=>{return`/invoices/shareable/${e}`},fn=async(e,t)=>{return o(ic(e),{...t,method:"GET"})},rc=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/invoices/shareable/${e}/html?${r}`:`/invoices/shareable/${e}/html`},vn=async(e,t,n)=>{return o(rc(e,t),{...n,method:"GET"})},sc=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/invoices/shareable/${e}/pdf?${r}`:`/invoices/shareable/${e}/pdf`},yn=async(e,t,n)=>{return o(sc(e,t),{...n,method:"GET"})},cc=(e)=>{return`/invoices/shareable/${e}/eslog`},gn=async(e,t)=>{return o(cc(e),{...t,method:"GET"})},lc=()=>{return"/invoices"},In=async(e,t)=>{return o(lc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},pc=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/invoices?${n}`:"/invoices"},bn=async(e,t)=>{return o(pc(e),{...t,method:"GET"})},dc=()=>{return"/invoices/custom"},Sn=async(e,t)=>{return o(dc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},uc=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/invoices/${e}?${r}`:`/invoices/${e}`},xn=async(e,t,n)=>{return o(uc(e,t),{...n,method:"GET"})},mc=(e)=>{return`/invoices/${e}`},Pn=async(e,t,n)=>{return o(mc(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},fc=(e)=>{return`/invoices/${e}/versions`},_n=async(e,t)=>{return o(fc(e),{...t,method:"GET"})},vc=(e,t)=>{return`/invoices/${e}/versions/${t}`},An=async(e,t,n)=>{return o(vc(e,t),{...n,method:"GET"})},yc=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/invoices/render?${n}`:"/invoices/render"},Tn=async(e,t,n)=>{return o(yc(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},gc=(e)=>{return`/invoices/${e}/void`},hn=async(e,t,n)=>{return o(gc(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Ic=(e)=>{return`/invoices/${e}/fiscalize`},Dn=async(e,t)=>{return o(Ic(e),{...t,method:"POST"})},bc=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/html?${r}`:`/documents/${e}/html`},En=async(e,t,n)=>{return o(bc(e,t),{...n,method:"GET"})},Sc=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/pdf?${r}`:`/documents/${e}/pdf`},Rn=async(e,t,n)=>{return o(Sc(e,t),{...n,method:"GET"})};function On(e,t){let n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}var kn=a(Rn),xc={getShareableInvoice:a(fn),getShareableInvoiceHtml:a(vn),getShareableInvoicePdf:a(yn),getShareableInvoiceEslog:a(gn),create:a(In),list:c(bn),createCustom:a(Sn),get:a(xn),update:a(Pn),getVersions:a(_n),getVersion:a(An),renderInvoicePreview:a(Tn),void:a(hn),fiscalizeInvoice:a(Dn),renderHtml:a(En),renderPdf:kn,async downloadPdf(e,t,n,r){let i=await kn(e,n,r);On(i,t)}};var Pc=()=>{return"/items"},Nn=async(e,t)=>{return o(Pc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},_c=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/items?${n}`:"/items"},wn=async(e,t)=>{return o(_c(e),{...t,method:"GET"})},Ac=(e)=>{return`/items/${e}`},Cn=async(e,t,n)=>{return o(Ac(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Tc=(e)=>{return`/items/${e}`},Bn=async(e,t)=>{return o(Tc(e),{...t,method:"DELETE"})},hc=(e)=>{return`/items/${e}/restore`},Gn=async(e,t)=>{return o(hc(e),{...t,method:"POST"})},Dc=(e)=>{return`/items/${e}/permanent`},qn=async(e,t)=>{return o(Dc(e),{...t,method:"DELETE"})};var Ec={create:a(Nn),list:c(wn),update:a(Cn),delete:a(Bn),restoreItem:a(Gn),permanentDeleteItem:a(qn)};var Rc=()=>{return"/legacy-migration/auth"},Fn=async(e,t)=>{return o(Rc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Oc=()=>{return"/legacy-migration/jobs"},Jn=async(e,t)=>{return o(Oc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},kc=()=>{return"/legacy-migration/jobs"},Mn=async(e)=>{return o(kc(),{...e,method:"GET"})},Nc=(e)=>{return`/legacy-migration/jobs/${e}`},Ln=async(e,t)=>{return o(Nc(e),{...t,method:"GET"})};var wc={legacyMigrationAuth:a(Fn),create:a(Jn),listMigrationJobs:a(Mn),getMigrationJob:a(Ln)};var Cc=()=>{return"/locale/detect"},Hn=async(e)=>{return o(Cc(),{...e,method:"GET"})};var Bc={detectLocale:a(Hn)};var Gc=()=>{return"/order-integrations/shopify/authorize"},Yn=async(e,t)=>{return o(Gc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},qc=(e)=>{return`/order-integrations/${e}/sync-shopify`},Qn=async(e,t,n)=>{return o(qc(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Fc=()=>{return"/order-integrations"},Kn=async(e,t)=>{return o(Fc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Jc=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/order-integrations?${n}`:"/order-integrations"},Wn=async(e,t)=>{return o(Jc(e),{...t,method:"GET"})},Mc=(e)=>{return`/order-integrations/${e}`},Un=async(e,t)=>{return o(Mc(e),{...t,method:"GET"})},Lc=(e)=>{return`/order-integrations/${e}`},Zn=async(e,t,n)=>{return o(Lc(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Hc=(e)=>{return`/order-integrations/${e}`},jn=async(e,t)=>{return o(Hc(e),{...t,method:"DELETE"})};var Yc={authorizeShopify:a(Yn),syncShopifyOrders:a(Qn),create:a(Kn),list:c(Wn),get:a(Un),update:a(Zn),delete:a(jn)};var Qc=()=>{return"/orders"},Vn=async(e,t)=>{return o(Qc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Kc=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/orders?${n}`:"/orders"},$n=async(e,t)=>{return o(Kc(e),{...t,method:"GET"})},Wc=(e)=>{return`/orders/${e}`},Xn=async(e,t)=>{return o(Wc(e),{...t,method:"GET"})},Uc=(e)=>{return`/orders/${e}`},zn=async(e,t,n)=>{return o(Uc(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Zc=(e)=>{return`/orders/${e}`},eo=async(e,t)=>{return o(Zc(e),{...t,method:"DELETE"})},jc=(e)=>{return`/orders/${e}/process`},to=async(e,t)=>{return o(jc(e),{...t,method:"POST"})},Vc=(e)=>{return`/orders/${e}/cancel`},no=async(e,t)=>{return o(Vc(e),{...t,method:"POST"})},$c=(e)=>{return`/orders/${e}/reissue`},oo=async(e,t)=>{return o($c(e),{...t,method:"POST"})};var Xc={create:a(Vn),list:c($n),get:a(Xn),update:a(zn),delete:a(eo),processOrder:a(to),cancelOrder:a(no),reissueOrder:a(oo)};var zc=()=>{return"/payments"},ao=async(e,t)=>{return o(zc(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},el=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/payments?${n}`:"/payments"},io=async(e,t)=>{return o(el(e),{...t,method:"GET"})},tl=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/payments/${e}?${r}`:`/payments/${e}`},ro=async(e,t,n)=>{return o(tl(e,t),{...n,method:"GET"})},nl=(e)=>{return`/payments/${e}`},so=async(e,t,n)=>{return o(nl(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},ol=(e)=>{return`/payments/${e}`},co=async(e,t)=>{return o(ol(e),{...t,method:"DELETE"})},al=(e)=>{return`/payments/${e}/restore`},lo=async(e,t)=>{return o(al(e),{...t,method:"POST"})},il=(e)=>{return`/payments/${e}/permanent`},po=async(e,t)=>{return o(il(e),{...t,method:"DELETE"})};var rl={create:a(ao),list:c(io),get:a(ro),update:a(so),delete:a(co),restorePayment:a(lo),permanentDeletePayment:a(po)};var sl=()=>{return"/fiscalization/pt/atcud-series"},uo=async(e,t)=>{return o(sl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},cl=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/fiscalization/pt/atcud-series?${n}`:"/fiscalization/pt/atcud-series"},mo=async(e,t)=>{return o(cl(e),{...t,method:"GET"})},ll=(e)=>{return`/fiscalization/pt/atcud-series/${e}`},fo=async(e,t)=>{return o(ll(e),{...t,method:"GET"})},pl=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/fiscalization/pt/atcud-series/active?${n}`:"/fiscalization/pt/atcud-series/active"},vo=async(e,t)=>{return o(pl(e),{...t,method:"POST"})};var dl={create:a(uo),list:c(mo),get:a(fo),getActive:a(vo)};var ul=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/fiscalization/pt/saft/report?${n}`:"/fiscalization/pt/saft/report"},yo=async(e,t)=>{return o(ul(e),{...t,method:"GET"})};var ml={generateReport:a(yo)};var fl=()=>{return"/recurring-invoices"},go=async(e,t)=>{return o(fl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},vl=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/recurring-invoices?${n}`:"/recurring-invoices"},Io=async(e,t)=>{return o(vl(e),{...t,method:"GET"})},yl=(e)=>{return`/recurring-invoices/${e}`},bo=async(e,t)=>{return o(yl(e),{...t,method:"GET"})},gl=(e)=>{return`/recurring-invoices/${e}`},So=async(e,t,n)=>{return o(gl(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Il=(e)=>{return`/recurring-invoices/${e}`},xo=async(e,t)=>{return o(Il(e),{...t,method:"DELETE"})},bl=(e)=>{return`/recurring-invoices/${e}/restore`},Po=async(e,t)=>{return o(bl(e),{...t,method:"POST"})},Sl=(e)=>{return`/recurring-invoices/${e}/permanent`},_o=async(e,t)=>{return o(Sl(e),{...t,method:"DELETE"})},xl=(e)=>{return`/recurring-invoices/${e}/pause`},Ao=async(e,t)=>{return o(xl(e),{...t,method:"POST"})},Pl=(e)=>{return`/recurring-invoices/${e}/resume`},To=async(e,t)=>{return o(Pl(e),{...t,method:"POST"})},_l=(e)=>{return`/recurring-invoices/${e}/trigger`},ho=async(e,t)=>{return o(_l(e),{...t,method:"POST"})};var Al={create:a(go),list:c(Io),get:a(bo),update:a(So),delete:a(xo),restoreRecurringInvoice:a(Po),permanentDeleteRecurringInvoice:a(_o),pauseRecurringInvoice:a(Ao),resumeRecurringInvoice:a(To),triggerRecurringInvoice:a(ho)};var Tl=()=>{return"/stripe-app/authorize"},Do=async(e)=>{return o(Tl(),{...e,method:"GET"})},hl=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/stripe-app/oauth/callback?${n}`:"/stripe-app/oauth/callback"},Eo=async(e,t)=>{return o(hl(e),{...t,method:"GET"})},Dl=()=>{return"/stripe-app/webhooks"},Ro=async(e)=>{return o(Dl(),{...e,method:"POST"})},El=()=>{return"/stripe-app/marketplace-authorize"},Oo=async(e,t)=>{return o(El(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Rl=()=>{return"/stripe-app/connect"},ko=async(e,t)=>{return o(Rl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ol=()=>{return"/stripe-app/connection"},No=async(e)=>{return o(Ol(),{...e,method:"GET"})},kl=()=>{return"/stripe-app/connection"},wo=async(e)=>{return o(kl(),{...e,method:"DELETE"})},Nl=()=>{return"/stripe-app/settings"},Co=async(e)=>{return o(Nl(),{...e,method:"GET"})},wl=()=>{return"/stripe-app/settings"},Bo=async(e,t)=>{return o(wl(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Cl=()=>{return"/stripe-app/invoices"},Go=async(e,t)=>{return o(Cl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Bl=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/stripe-app/invoices?${n}`:"/stripe-app/invoices"},qo=async(e,t)=>{return o(Bl(e),{...t,method:"GET"})},Gl=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/stripe-app/invoices/lookup?${n}`:"/stripe-app/invoices/lookup"},Fo=async(e,t)=>{return o(Gl(e),{...t,method:"GET"})},ql=(e)=>{return`/stripe-app/invoices/${e}`},Jo=async(e,t)=>{return o(ql(e),{...t,method:"GET"})},Fl=()=>{return"/stripe-app/entity-connection"},Mo=async(e)=>{return o(Fl(),{...e,method:"GET"})},Jl=()=>{return"/stripe-app/entity-connection"},Lo=async(e)=>{return o(Jl(),{...e,method:"DELETE"})},Ml=()=>{return"/stripe-app/entity-settings"},Ho=async(e)=>{return o(Ml(),{...e,method:"GET"})},Ll=()=>{return"/stripe-app/entity-settings"},Yo=async(e,t)=>{return o(Ll(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var Hl={stripeAppAuthorize:a(Do),stripeAppOAuthCallback:a(Eo),stripeAppWebhook:a(Ro),stripeAppMarketplaceAuthorize:a(Oo),stripeAppConnect:a(ko),stripeAppGetConnection:a(No),stripeAppDisconnect:a(wo),stripeAppGetSettings:a(Co),stripeAppUpdateSettings:a(Bo),stripeAppCreateInvoice:a(Go),stripeAppListInvoices:a(qo),stripeAppLookupInvoice:a(Fo),stripeAppGetInvoice:a(Jo),stripeAppEntityGetConnection:a(Mo),stripeAppEntityDisconnect:a(Lo),stripeAppEntityGetSettings:a(Ho),stripeAppEntityUpdateSettings:a(Yo)};var Yl=()=>{return"/suppliers"},Qo=async(e,t)=>{return o(Yl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ql=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/suppliers?${n}`:"/suppliers"},Ko=async(e,t)=>{return o(Ql(e),{...t,method:"GET"})},Kl=(e)=>{return`/suppliers/${e}`},Wo=async(e,t)=>{return o(Kl(e),{...t,method:"GET"})},Wl=(e)=>{return`/suppliers/${e}`},Uo=async(e,t,n)=>{return o(Wl(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var Ul={create:a(Qo),list:c(Ko),get:a(Wo),update:a(Uo)};var Zl=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/tax-reports/kir?${n}`:"/tax-reports/kir"},Zo=async(e,t)=>{return o(Zl(e),{...t,method:"POST"})},jl=()=>{return"/tax-reports/si/profile"},jo=async(e)=>{return o(jl(),{...e,method:"GET"})},Vl=()=>{return"/tax-reports/si/profile"},Vo=async(e,t)=>{return o(Vl(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},$l=()=>{return"/tax-reports/si/yearly/normirani/review"},$o=async(e,t)=>{return o($l(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Xl=()=>{return"/tax-reports/si/yearly/normirani/export"},Xo=async(e,t)=>{return o(Xl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},zl=()=>{return"/tax-reports/si/accounting/vod/export"},zo=async(e,t)=>{return o(zl(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var ep={generateKirExport:a(Zo),getSloveniaTaxProfile:a(jo),updateSloveniaTaxProfile:a(Vo),reviewSloveniaYearlyNormiraniReport:a($o),exportSloveniaYearlyNormiraniReport:a(Xo),exportSloveniaVodXml:a(zo)};var tp=()=>{return"/taxes"},ea=async(e,t)=>{return o(tp(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},np=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/taxes?${n}`:"/taxes"},ta=async(e,t)=>{return o(np(e),{...t,method:"GET"})},op=(e)=>{return`/taxes/${e}`},na=async(e,t,n)=>{return o(op(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},ap=(e)=>{return`/taxes/${e}`},oa=async(e,t,n)=>{return o(ap(e),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},ip=(e)=>{return`/taxes/${e}`},aa=async(e,t)=>{return o(ip(e),{...t,method:"DELETE"})},rp=(e)=>{return`/taxes/${e}/restore`},ia=async(e,t)=>{return o(rp(e),{...t,method:"POST"})},sp=(e)=>{return`/taxes/${e}/permanent`},ra=async(e,t)=>{return o(sp(e),{...t,method:"DELETE"})};var cp={create:a(ea),list:c(ta),update:a(na),replaceTax:a(oa),delete:a(aa),restoreTax:a(ia),permanentDeleteTax:a(ra)};var lp=()=>{return"/transaction-type/check"},sa=async(e,t)=>{return o(lp(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var pp={checkTransactionType:a(sa)};var dp=()=>{return"/upload/image"},ca=async(e,t)=>{let n=new FormData;return n.append("file",e.file),o(dp(),{...t,method:"POST",body:n})};var up={uploadImage:a(ca)};var mp=()=>{return"/users/me"},la=async(e)=>{return o(mp(),{...e,method:"GET"})},fp=()=>{return"/users/me"},pa=async(e,t)=>{return o(fp(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},vp=()=>{return"/users/me/settings/furs"},da=async(e,t)=>{return o(vp(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},yp=()=>{return"/users/me/settings/fina"},ua=async(e,t)=>{return o(yp(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var gp={getMe:a(la),update:a(pa),updateFursSettings:a(da),updateFinaSettings:a(ua)};var Ip=()=>{return"/vies/check"},ma=async(e,t)=>{return o(Ip(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var bp={checkVies:a(ma)};var Sp=()=>{return"/webhooks"},fa=async(e,t)=>{return o(Sp(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},xp=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/webhooks?${n}`:"/webhooks"},va=async(e,t)=>{return o(xp(e),{...t,method:"GET"})},Pp=(e)=>{return`/webhooks/${e}`},ya=async(e,t)=>{return o(Pp(e),{...t,method:"GET"})},_p=(e)=>{return`/webhooks/${e}`},ga=async(e,t,n)=>{return o(_p(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Ap=(e)=>{return`/webhooks/${e}`},Ia=async(e,t)=>{return o(Ap(e),{...t,method:"DELETE"})},Tp=(e)=>{return`/webhooks/${e}/test`},ba=async(e,t)=>{return o(Tp(e),{...t,method:"POST"})};var hp=(e)=>{return`/webhooks/${e}/rotate-secret`},Sa=async(e,t)=>{return o(hp(e),{...t,method:"POST"})};var Dp={create:a(fa),list:c(va),get:a(ya),update:a(ga),delete:a(Ia),testWebhook:a(ba),rotateWebhookSecret:a(Sa)};var Ep=()=>{return"/white-label-subscriptions"},xa=async(e)=>{return o(Ep(),{...e,method:"GET"})},Rp=()=>{return"/white-label-subscriptions/plans"},Pa=async(e)=>{return o(Rp(),{...e,method:"GET"})},Op=(e)=>{return`/white-label-subscriptions/check-feature/${e}`},_a=async(e,t)=>{return o(Op(e),{...t,method:"GET"})},kp=(e)=>{return`/white-label-subscriptions/check-limit/${e}`},Aa=async(e,t)=>{return o(kp(e),{...t,method:"GET"})},Np=()=>{return"/white-label-subscriptions/billing-email"},Ta=async(e,t)=>{return o(Np(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var wp={getCurrentWLSubscription:a(xa),list:a(Pa),checkWLFeature:a(_a),checkWLLimit:a(Aa),update:a(Ta)};var Cp=()=>{return"/white-labels/current"},ha=async(e)=>{return o(Cp(),{...e,method:"GET"})};var Bp={getCurrentWhiteLabel:a(ha)};export{CT as zod,Bp as whiteLabels,wp as whiteLabelSubscriptions,Dp as webhooks,bp as vies,gp as users,up as upload,pp as transactionType,cp as taxes,ep as taxReports,Ul as suppliers,Hl as stripeApp,qT as setAccountId,Al as recurringInvoices,ml as ptSafT,dl as ptAtcudSeries,rl as payments,Xc as orders,Yc as orderIntegrations,Bc as locale,wc as legacyMigration,Ec as items,xc as invoices,ac as initSDK,oc as incomingPurchaseDocuments,js as health,kT as getClientHeaders,GT as getAccountId,Ks as fursSettings,Hs as fursPremises,Gs as fursInternalAct,ws as fursDevices,Rs as fursCertificate,Ts as finaSettings,Ps as finaPremises,gs as finaDevices,us as finaCertificate,cs as files,os as exports,jr as estimates,qr as entityUsers,kr as entityStats,Rr as entityInvitations,_r as entityApiKeys,br as entities,ur as email,KT as eSlog,pr as eInvoicing,YT as downloadBlob,zi as documents,Li as deliveryNotes,JT as default,Ei as customers,Si as creditNotes,ri as companyRegistry,oi as advanceInvoices,Qa as activities,Ha as accountWebhooks,FS as WebhookWithSecretEventsItem,GS as WebhookResponseEventsItem,CS as WebhookDeliveryStatus,NS as UploadFileBodyCategory,OS as UpdateWebhookBodyEventsItem,ES as UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis,hS as UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType,AS as UpdateSloveniaTaxProfileBodyVatProfile,PS as UpdateSloveniaTaxProfileBodyTaxResidency,SS as UpdateSloveniaTaxProfileBodyIncomeTaxRegime,IS as UpdateSloveniaTaxProfileBodyBusinessForm,yS as UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat,fS as UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,uS as UpdateSloveniaTaxProfile200YearlyReportingAccountingType,pS as UpdateSloveniaTaxProfile200VatProfile,cS as UpdateSloveniaTaxProfile200TaxResidency,rS as UpdateSloveniaTaxProfile200InferredBusinessForm,aS as UpdateSloveniaTaxProfile200IncomeTaxRegime,nS as UpdateSloveniaTaxProfile200BusinessFormSource,eS as UpdateSloveniaTaxProfile200BusinessForm,Xb as UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat,Vb as UpdateRecurringInvoiceBodyFrequency,Zb as UpdatePaymentBodyType,Wb as UpdateOrderIntegrationBodyAutoProcessOn,Qb as UpdateOrderBodyPaymentStatus,Hb as UpdateItemBodyClassification,Mb as UpdateIncomingPurchaseDocumentBodyType,Fb as UpdateIncomingPurchaseDocumentBodyTransactionType,Gb as UpdateFursSettingsBodyNumberingStrategy,Cb as UpdateFursSettings200NumberingStrategy,Nb as UpdateFursSettings200CertificateStatus,Ob as UpdateFinaSettingsBodyNumberingSequence,Eb as UpdateFinaSettings200NumberingSequence,hb as UpdateFinaSettings200CertificateStatus,Ab as UpdateEstimateTitleType,Pb as UpdateEntityUserRoleBodyRole,Sb as UpdateAccountWebhookBodyEventsItem,Ib as TransactionTypeCheckResponseTransactionType,yb as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,fb as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,ub as StatsQueryRequestTable,pb as StatsQueryRequestOrderByItemDirection,cb as StatsQueryRequestMetricsItemType,rb as StartPdfExport202Status,ab as StartEslogExport202Status,MT as SpaceInvoices,nb as SendEmailBodyLocale,eb as SendEmailBodyLanguage,XI as SendEmail200Status,VI as SendDocument200Status,ZI as ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity,WI as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis,QI as ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType,HI as ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile,MI as ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency,FI as ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm,GI as ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime,CI as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource,NI as ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm,OI as ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat,EI as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity,hI as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer,AI as ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType,PI as ReviewSloveniaYearlyNormiraniReport200FilingKind,SI as RestoreDocumentType,II as RenderInvoicePreviewUpnQrEnabled,yI as RenderInvoicePreviewUpnQrDisplayMode,fI as RenderInvoicePreviewTemplate,uI as RenderInvoicePreviewPartial,pI as RenderInvoicePreviewEpcQrEnabled,cI as RenderEstimatePreviewUpnQrEnabled,rI as RenderEstimatePreviewUpnQrDisplayMode,aI as RenderEstimatePreviewTemplate,nI as RenderEstimatePreviewPartial,eI as RenderEstimatePreviewEpcQrEnabled,Xg as RenderDocumentPdfTemplate,Vg as RenderDocumentHtmlTemplate,Zg as RenderDeliveryNotePreviewUpnQrEnabled,Wg as RenderDeliveryNotePreviewUpnQrDisplayMode,Qg as RenderDeliveryNotePreviewTemplate,Hg as RenderDeliveryNotePreviewPartial,Mg as RenderDeliveryNotePreviewEpcQrEnabled,Fg as RenderCreditNotePreviewUpnQrEnabled,Gg as RenderCreditNotePreviewUpnQrDisplayMode,Cg as RenderCreditNotePreviewTemplate,Ng as RenderCreditNotePreviewPartial,Og as RenderCreditNotePreviewEpcQrEnabled,Eg as RenderAdvanceInvoicePreviewUpnQrEnabled,hg as RenderAdvanceInvoicePreviewUpnQrDisplayMode,Ag as RenderAdvanceInvoicePreviewTemplate,Pg as RenderAdvanceInvoicePreviewPartial,Sg as RenderAdvanceInvoicePreviewEpcQrEnabled,Ig as RegisterFursMovablePremiseBodyMovablePremisePremiseType,yg as RecurringInvoiceBaseStatus,fg as RecurringInvoiceBaseFrequency,ug as PtAtcudSeriesDocumentType,pg as PermanentDeleteDocumentType,cg as PdfExportByDocumentIdsLocale,rg as PdfExportByDocumentIdsLanguage,ag as PdfExportByDateRangeTypesItem,ng as PdfExportByDateRangeLocale,eg as PdfExportByDateRangeLanguage,Xy as PaymentType,Vy as PatchMeBodyLocale,Zy as PatchEntityBodySettingsPdfTemplate,Wy as PartialInvoicePreviewItemsItemType,Qy as PartialInvoicePreviewItemsItemDiscountsItemType,Hy as PartialInvoicePreviewCalculationMode,My as PartialEstimatePreviewTitleType,Fy as PartialEstimatePreviewItemsItemType,Gy as PartialEstimatePreviewItemsItemDiscountsItemType,Cy as PartialEstimatePreviewCalculationMode,Ny as PartialDeliveryNotePreviewItemsItemType,Oy as PartialDeliveryNotePreviewItemsItemDiscountsItemType,Ey as PartialDeliveryNotePreviewCalculationMode,hy as PartialCreditNotePreviewItemsItemType,Ay as PartialCreditNotePreviewItemsItemDiscountsItemType,Py as PartialCreditNotePreviewCalculationMode,Sy as PartialAdvanceInvoicePreviewItemsItemType,Iy as PartialAdvanceInvoicePreviewItemsItemDiscountsItemType,yy as PartialAdvanceInvoicePreviewCalculationMode,fy as OrderItemKind,uy as OrderIntegrationBaseSource,py as OrderIntegrationBaseAutoProcessOn,cy as OrderBaseStatus,ry as OrderBaseSource,ay as OrderBasePaymentStatus,ny as MigrationJobResponseStatus,ey as ListPtAtcudSeriesDocumentType,Xv as LineDiscountType,Vv as LegacyAuthResponseOrganizationsItemUnsupportedItemCode,Zv as ItemClassification,Wv as InvoiceTransactionType,Qv as InvoiceItemType,Hv as InvoiceItemClassification,Mv as InvoiceCalculationMode,Fv as IncomingPurchaseDocumentType,Gv as IncomingPurchaseDocumentSummaryClassification,Cv as IncomingPurchaseDocumentItemClassification,Nv as GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis,Ov as GetSloveniaTaxProfile200YearlyReportingAccountingType,Ev as GetSloveniaTaxProfile200VatProfile,hv as GetSloveniaTaxProfile200TaxResidency,Av as GetSloveniaTaxProfile200InferredBusinessForm,Pv as GetSloveniaTaxProfile200IncomeTaxRegime,Sv as GetSloveniaTaxProfile200BusinessFormSource,Iv as GetSloveniaTaxProfile200BusinessForm,yv as GetSloveniaTaxProfile200AccountingExportsPreferredFormat,fv as GetShareableInvoicePdfLocale,uv as GetShareableInvoicePdfLanguage,pv as GetShareableInvoiceHtmlLocale,cv as GetShareableInvoiceHtmlLanguage,rv as GetShareableEstimatePdfLocale,av as GetShareableEstimatePdfLanguage,nv as GetShareableEstimateHtmlLocale,ev as GetShareableEstimateHtmlLanguage,Xf as GetShareableDeliveryNotePdfLocale,Vf as GetShareableDeliveryNotePdfLanguage,Zf as GetShareableDeliveryNoteHtmlLocale,Wf as GetShareableDeliveryNoteHtmlLanguage,Qf as GetShareableCreditNotePdfLocale,Hf as GetShareableCreditNotePdfLanguage,Mf as GetShareableCreditNoteHtmlLocale,Ff as GetShareableCreditNoteHtmlLanguage,Gf as GetShareableAdvanceInvoicePdfLocale,Cf as GetShareableAdvanceInvoicePdfLanguage,Nf as GetShareableAdvanceInvoiceHtmlLocale,Of as GetShareableAdvanceInvoiceHtmlLanguage,Ef as GetPdfExportStatus200Status,hf as GetNextDocumentNumberType,Af as GetIncomingPurchaseDocumentsIsDraft,Pf as GetFursSettings200NumberingStrategy,Sf as GetFursSettings200CertificateStatus,If as GetFinaSettings200NumberingSequence,yf as GetFinaSettings200CertificateStatus,ff as GetFilesCategory,uf as GetEslogExportStatus200Status,pf as GetEntitiesEnvironment,cf as GetActivities200DataItemActorType,rf as GetActivePtAtcudSeriesDocumentType,of as FursPremiseSuccessResponseEnvironment,tf as FiscalizeDocumentType,zm as FinalizeDocumentType,$m as ExportSalesPerItemLanguage,jm as ExportSalesPerItemFormat,Um as ExportDocumentsType,Km as ExportDocumentsLanguage,Ym as ExportDocumentsFormat,Lm as EstimateTransactionType,Jm as EstimateTitleType,qm as EstimateItemType,Bm as EstimateItemClassification,wm as EstimateCalculationMode,km as EslogExportByDateRangeTypesItem,Rm as EntityUserRole,Dm as EntitySettingsPdfTemplate,Tm as EntityInvitationStatus,_m as EntityInvitationRole,xm as EntityEnvironment,bm as EntityBankAccountType,gm as EntityApiKeyEnvironment,vm as DocumentVersionDocumentType,mm as DocumentRelationTargetType,dm as DocumentRelationSourceType,lm as DocumentRelationRelatedDocumentType,sm as DocumentRelationRelatedDocumentTitleType,im as DocumentCalculationTransactionType,om as DocumentCalculationCalculationMode,tm as DeliveryNoteTransactionType,zu as DeliveryNoteItemType,$u as DeliveryNoteItemClassification,ju as DeliveryNoteCalculationMode,Uu as DeleteDocumentType,UT as DEFAULT_BASE_URL,Ku as CustomDocumentItemType,Yu as CustomDocumentItemClassification,Lu as CustomCreateInvoiceCalculationMode,Ju as CustomCreateIncomingPurchaseDocumentType,qu as CustomCreateIncomingPurchaseDocumentTransactionType,Bu as CustomCreateEstimateTitleType,wu as CustomCreateEstimateCalculationMode,ku as CustomCreateDeliveryNoteCalculationMode,Ru as CustomCreateCreditNoteCalculationMode,Du as CustomCreateAdvanceInvoiceCalculationMode,Tu as CurrentSubscriptionPaymentProvider,_u as CreditNoteTransactionType,xu as CreditNoteItemType,bu as CreditNoteItemClassification,gu as CreditNoteCalculationMode,vu as CreationSource,mu as CreateWebhookBodyEventsItem,du as CreateRecurringInvoiceBodyFrequency,lu as CreatePtAtcudSeriesBodyDocumentType,su as CreatePaymentBodyType,iu as CreateOrderIntegrationBodySource,ou as CreateOrderBodySource,tu as CreateOrderBodyPaymentStatus,zd as CreateMigrationJobResponseStatus,$d as CreateMigrationJobRequestEnvironment,jd as CreateItemBodyClassification,Ud as CreateInvoiceCalculationMode,Kd as CreateIncomingPurchaseDocumentPaymentBodyType,Yd as CreateIncomingPurchaseDocumentBodyType,Ld as CreateIncomingPurchaseDocumentBodyTransactionType,Jd as CreateEstimateTitleType,qd as CreateEstimateCalculationMode,Bd as CreateEntityBodySettingsPdfTemplate,wd as CreateEntityBodyEnvironment,kd as CreateDocumentPaymentType,Rd as CreateDocumentItemType,Dd as CreateDocumentItemClassification,Td as CreateDeliveryNoteCalculationMode,_d as CreateCreditNoteCalculationMode,xd as CreateCheckoutRequestBillingInterval,bd as CreateAdvanceInvoiceCalculationMode,gd as CreateAccountWebhookBodyEventsItem,Ea as Configuration,vd as CompleteInvoicePreviewCalculationMode,md as CompleteEstimatePreviewTitleType,dd as CompleteEstimatePreviewCalculationMode,ld as CompleteDeliveryNotePreviewCalculationMode,sd as CompleteCreditNotePreviewCalculationMode,id as CompleteAdvanceInvoicePreviewCalculationMode,zp as CalculatedItemType,od as CalculateDocumentPreviewType,td as CalculateDocumentPreviewCalculationMode,OT as CLIENT_HEADER_NAME,$p as AdvanceInvoiceTransactionType,jp as AdvanceInvoiceItemType,Up as AdvanceInvoiceItemClassification,Kp as AdvanceInvoiceCalculationMode,Yp as AddEntityUserBodyRole,Lp as AccountWebhookWithSecretEventsItem,Jp as AccountWebhookResponseEventsItem,qp as AccountWebhookDeliveryStatus};
38
2
 
39
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let E of o.seen.entries()){let q=E[1];if(c===E[0]){_(E);continue}if(o.external){let J=o.external.registry.get(E[0])?.id;if(c!==E[0]&&J){_(E);continue}}if(o.metadataRegistry.get(E[0])?.id){_(E);continue}if(q.cycle){_(E);continue}if(q.count>1){if(o.reused==="ref"){_(E);continue}}}}function Jo(o,c){let n=o.seen.get(c);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let I=(E)=>{let q=o.seen.get(E);if(q.ref===null)return;let N=q.def??q.schema,J={...N},B=q.ref;if(q.ref=null,B){I(B);let H=o.seen.get(B),W=H.schema;if(W.$ref&&(o.target==="draft-07"||o.target==="draft-04"||o.target==="openapi-3.0"))N.allOf=N.allOf??[],N.allOf.push(W);else Object.assign(N,W);if(Object.assign(N,J),E._zod.parent===B)for(let M in N){if(M==="$ref"||M==="allOf")continue;if(!(M in J))delete N[M]}if(W.$ref&&H.def)for(let M in N){if(M==="$ref"||M==="allOf")continue;if(M in H.def&&JSON.stringify(N[M])===JSON.stringify(H.def[M]))delete N[M]}}let R=E._zod.parent;if(R&&R!==B){I(R);let H=o.seen.get(R);if(H?.schema.$ref){if(N.$ref=H.schema.$ref,H.def)for(let W in N){if(W==="$ref"||W==="allOf")continue;if(W in H.def&&JSON.stringify(N[W])===JSON.stringify(H.def[W]))delete N[W]}}}o.override({zodSchema:E,jsonSchema:N,path:q.path??[]})};for(let E of[...o.seen.entries()].reverse())I(E[0]);let S={};if(o.target==="draft-2020-12")S.$schema="https://json-schema.org/draft/2020-12/schema";else if(o.target==="draft-07")S.$schema="http://json-schema.org/draft-07/schema#";else if(o.target==="draft-04")S.$schema="http://json-schema.org/draft-04/schema#";else if(o.target==="openapi-3.0");if(o.external?.uri){let E=o.external.registry.get(c)?.id;if(!E)throw Error("Schema is missing an `id` property");S.$id=o.external.uri(E)}Object.assign(S,n.def??n.schema);let _=o.external?.defs??{};for(let E of o.seen.entries()){let q=E[1];if(q.def&&q.defId)_[q.defId]=q.def}if(o.external);else if(Object.keys(_).length>0)if(o.target==="draft-2020-12")S.$defs=_;else S.definitions=_;try{let E=JSON.parse(JSON.stringify(S));return Object.defineProperty(E,"~standard",{value:{...c["~standard"],jsonSchema:{input:Je(c,"input",o.processors),output:Je(c,"output",o.processors)}},enumerable:!1,writable:!1}),E}catch(E){throw Error("Error converting schema to JSON.")}}function U(o,c){let n=c??{seen:new Set};if(n.seen.has(o))return!1;n.seen.add(o);let I=o._zod.def;if(I.type==="transform")return!0;if(I.type==="array")return U(I.element,n);if(I.type==="set")return U(I.valueType,n);if(I.type==="lazy")return U(I.getter(),n);if(I.type==="promise"||I.type==="optional"||I.type==="nonoptional"||I.type==="nullable"||I.type==="readonly"||I.type==="default"||I.type==="prefault")return U(I.innerType,n);if(I.type==="intersection")return U(I.left,n)||U(I.right,n);if(I.type==="record"||I.type==="map")return U(I.keyType,n)||U(I.valueType,n);if(I.type==="pipe")return U(I.in,n)||U(I.out,n);if(I.type==="object"){for(let S in I.shape)if(U(I.shape[S],n))return!0;return!1}if(I.type==="union"){for(let S of I.options)if(U(S,n))return!0;return!1}if(I.type==="tuple"){for(let S of I.items)if(U(S,n))return!0;if(I.rest&&U(I.rest,n))return!0;return!1}return!1}var pn=(o,c={})=>(n)=>{let I=Go({...n,processors:c});return $(o,I),uo(I,o),Jo(I,o)},Je=(o,c,n={})=>(I)=>{let{libraryOptions:S,target:_}=I??{},E=Go({...S??{},target:_,io:c,processors:n});return $(o,E),uo(E,o),Jo(E,o)};var Ire={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},fn=(o,c,n,I)=>{let S=n;S.type="string";let{minimum:_,maximum:E,format:q,patterns:N,contentEncoding:J}=o._zod.bag;if(typeof _==="number")S.minLength=_;if(typeof E==="number")S.maxLength=E;if(q){if(S.format=Ire[q]??q,S.format==="")delete S.format;if(q==="time")delete S.format}if(J)S.contentEncoding=J;if(N&&N.size>0){let B=[...N];if(B.length===1)S.pattern=B[0].source;else if(B.length>1)S.allOf=[...B.map((R)=>({...c.target==="draft-07"||c.target==="draft-04"||c.target==="openapi-3.0"?{type:"string"}:{},pattern:R.source}))]}},ln=(o,c,n,I)=>{let S=n,{minimum:_,maximum:E,format:q,multipleOf:N,exclusiveMaximum:J,exclusiveMinimum:B}=o._zod.bag;if(typeof q==="string"&&q.includes("int"))S.type="integer";else S.type="number";if(typeof B==="number")if(c.target==="draft-04"||c.target==="openapi-3.0")S.minimum=B,S.exclusiveMinimum=!0;else S.exclusiveMinimum=B;if(typeof _==="number"){if(S.minimum=_,typeof B==="number"&&c.target!=="draft-04")if(B>=_)delete S.minimum;else delete S.exclusiveMinimum}if(typeof J==="number")if(c.target==="draft-04"||c.target==="openapi-3.0")S.maximum=J,S.exclusiveMaximum=!0;else S.exclusiveMaximum=J;if(typeof E==="number"){if(S.maximum=E,typeof J==="number"&&c.target!=="draft-04")if(J<=E)delete S.maximum;else delete S.exclusiveMaximum}if(typeof N==="number")S.multipleOf=N},hn=(o,c,n,I)=>{n.type="boolean"};var dn=(o,c,n,I)=>{if(c.target==="openapi-3.0")n.type="string",n.nullable=!0,n.enum=[null];else n.type="null"};var an=(o,c,n,I)=>{n.not={}};var sn=(o,c,n,I)=>{};var eA=(o,c,n,I)=>{let S=o._zod.def,_=_e(S.entries);if(_.every((E)=>typeof E==="number"))n.type="number";if(_.every((E)=>typeof E==="string"))n.type="string";n.enum=_};var oA=(o,c,n,I)=>{if(c.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")};var cA=(o,c,n,I)=>{if(c.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")};var rA=(o,c,n,I)=>{let S=n,_=o._zod.def,{minimum:E,maximum:q}=o._zod.bag;if(typeof E==="number")S.minItems=E;if(typeof q==="number")S.maxItems=q;S.type="array",S.items=$(_.element,c,{...I,path:[...I.path,"items"]})},vA=(o,c,n,I)=>{let S=n,_=o._zod.def;S.type="object",S.properties={};let E=_.shape;for(let J in E)S.properties[J]=$(E[J],c,{...I,path:[...I.path,"properties",J]});let q=new Set(Object.keys(E)),N=new Set([...q].filter((J)=>{let B=_.shape[J]._zod;if(c.io==="input")return B.optin===void 0;else return B.optout===void 0}));if(N.size>0)S.required=Array.from(N);if(_.catchall?._zod.def.type==="never")S.additionalProperties=!1;else if(!_.catchall){if(c.io==="output")S.additionalProperties=!1}else if(_.catchall)S.additionalProperties=$(_.catchall,c,{...I,path:[...I.path,"additionalProperties"]})},nA=(o,c,n,I)=>{let S=o._zod.def,_=S.inclusive===!1,E=S.options.map((q,N)=>$(q,c,{...I,path:[...I.path,_?"oneOf":"anyOf",N]}));if(_)n.oneOf=E;else n.anyOf=E},AA=(o,c,n,I)=>{let S=o._zod.def,_=$(S.left,c,{...I,path:[...I.path,"allOf",0]}),E=$(S.right,c,{...I,path:[...I.path,"allOf",1]}),q=(J)=>("allOf"in J)&&Object.keys(J).length===1,N=[...q(_)?_.allOf:[_],...q(E)?E.allOf:[E]];n.allOf=N};var IA=(o,c,n,I)=>{let S=n,_=o._zod.def;S.type="object";let E=_.keyType,N=E._zod.bag?.patterns;if(_.mode==="loose"&&N&&N.size>0){let B=$(_.valueType,c,{...I,path:[...I.path,"patternProperties","*"]});S.patternProperties={};for(let R of N)S.patternProperties[R.source]=B}else{if(c.target==="draft-07"||c.target==="draft-2020-12")S.propertyNames=$(_.keyType,c,{...I,path:[...I.path,"propertyNames"]});S.additionalProperties=$(_.valueType,c,{...I,path:[...I.path,"additionalProperties"]})}let J=E._zod.values;if(J){let B=[...J].filter((R)=>typeof R==="string"||typeof R==="number");if(B.length>0)S.required=B}},SA=(o,c,n,I)=>{let S=o._zod.def,_=$(S.innerType,c,I),E=c.seen.get(o);if(c.target==="openapi-3.0")E.ref=S.innerType,n.nullable=!0;else n.anyOf=[_,{type:"null"}]},gA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType},PA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType,n.default=JSON.parse(JSON.stringify(S.defaultValue))},_A=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);if(_.ref=S.innerType,c.io==="input")n._prefault=JSON.parse(JSON.stringify(S.defaultValue))},EA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType;let E;try{E=S.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=E},DA=(o,c,n,I)=>{let S=o._zod.def,_=c.io==="input"?S.in._zod.def.type==="transform"?S.out:S.in:S.out;$(_,c,I);let E=c.seen.get(o);E.ref=_},OA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType,n.readOnly=!0};var to=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType};var Ore=G("ZodISODateTime",(o,c)=>{Wv.init(o,c),V.init(o,c)});function bA(o){return Kn(Ore,o)}var bre=G("ZodISODate",(o,c)=>{Qv.init(o,c),V.init(o,c)});function TA(o){return yn(bre,o)}var Tre=G("ZodISOTime",(o,c)=>{wv.init(o,c),V.init(o,c)});function qA(o){return Vn(Tre,o)}var qre=G("ZodISODuration",(o,c)=>{Xv.init(o,c),V.init(o,c)});function NA(o){return Fn(qre,o)}var GA=(o,c)=>{Qe.init(o,c),o.name="ZodError",Object.defineProperties(o,{format:{value:(n)=>gr(o,n)},flatten:{value:(n)=>Sr(o,n)},addIssue:{value:(n)=>{o.issues.push(n),o.message=JSON.stringify(o.issues,Ae,2)}},addIssues:{value:(n)=>{o.issues.push(...n),o.message=JSON.stringify(o.issues,Ae,2)}},isEmpty:{get(){return o.issues.length===0}}})},nJe=G("ZodError",GA),Z=G("ZodError",GA,{Parent:Error});var uA=we(Z),JA=Xe(Z),tA=Te(Z),BA=qe(Z),RA=Er(Z),LA=Dr(Z),HA=Or(Z),WA=br(Z),QA=Tr(Z),wA=qr(Z),XA=Nr(Z),YA=Gr(Z);var F=G("ZodType",(o,c)=>{return y.init(o,c),Object.assign(o["~standard"],{jsonSchema:{input:Je(o,"input"),output:Je(o,"output")}}),o.toJSONSchema=pn(o,{}),o.def=c,o.type=c.type,Object.defineProperty(o,"_def",{value:c}),o.check=(...n)=>{return o.clone(x.mergeDefs(c,{checks:[...c.checks??[],...n.map((I)=>typeof I==="function"?{_zod:{check:I,def:{check:"custom"},onattach:[]}}:I)]}),{parent:!0})},o.with=o.check,o.clone=(n,I)=>j(o,n,I),o.brand=()=>o,o.register=(n,I)=>{return n.add(o,I),o},o.parse=(n,I)=>uA(o,n,I,{callee:o.parse}),o.safeParse=(n,I)=>tA(o,n,I),o.parseAsync=async(n,I)=>JA(o,n,I,{callee:o.parseAsync}),o.safeParseAsync=async(n,I)=>BA(o,n,I),o.spa=o.safeParseAsync,o.encode=(n,I)=>RA(o,n,I),o.decode=(n,I)=>LA(o,n,I),o.encodeAsync=async(n,I)=>HA(o,n,I),o.decodeAsync=async(n,I)=>WA(o,n,I),o.safeEncode=(n,I)=>QA(o,n,I),o.safeDecode=(n,I)=>wA(o,n,I),o.safeEncodeAsync=async(n,I)=>XA(o,n,I),o.safeDecodeAsync=async(n,I)=>YA(o,n,I),o.refine=(n,I)=>o.check(Eve(n,I)),o.superRefine=(n)=>o.check(Dve(n)),o.overwrite=(n)=>o.check(oe(n)),o.optional=()=>yA(o),o.exactOptional=()=>eve(o),o.nullable=()=>VA(o),o.nullish=()=>yA(VA(o)),o.nonoptional=(n)=>Ave(o,n),o.array=()=>P(o),o.or=(n)=>t([o,n]),o.and=(n)=>hre(o,n),o.transform=(n)=>FA(o,are(n)),o.default=(n)=>rve(o,n),o.prefault=(n)=>nve(o,n),o.catch=(n)=>Sve(o,n),o.pipe=(n)=>FA(o,n),o.readonly=()=>_ve(o),o.describe=(n)=>{let I=o.clone();return ve.add(I,{description:n}),I},Object.defineProperty(o,"description",{get(){return ve.get(o)?.description},configurable:!0}),o.meta=(...n)=>{if(n.length===0)return ve.get(o);let I=o.clone();return ve.add(I,n[0]),I},o.isOptional=()=>o.safeParse(void 0).success,o.isNullable=()=>o.safeParse(null).success,o.apply=(n)=>n(o),o}),$A=G("_ZodString",(o,c)=>{Ve.init(o,c),F.init(o,c),o._zod.processJSONSchema=(I,S,_)=>fn(o,I,S,_);let n=o._zod.bag;o.format=n.format??null,o.minLength=n.minimum??null,o.maxLength=n.maximum??null,o.regex=(...I)=>o.check(So(...I)),o.includes=(...I)=>o.check(_o(...I)),o.startsWith=(...I)=>o.check(Eo(...I)),o.endsWith=(...I)=>o.check(Do(...I)),o.min=(...I)=>o.check(Se(...I)),o.max=(...I)=>o.check(ze(...I)),o.length=(...I)=>o.check(ke(...I)),o.nonempty=(...I)=>o.check(Se(1,...I)),o.lowercase=(I)=>o.check(go(I)),o.uppercase=(I)=>o.check(Po(I)),o.trim=()=>o.check(bo()),o.normalize=(...I)=>o.check(Oo(...I)),o.toLowerCase=()=>o.check(To()),o.toUpperCase=()=>o.check(qo()),o.slugify=()=>o.check(No())}),Jre=G("ZodString",(o,c)=>{Ve.init(o,c),$A.init(o,c),o.email=(n)=>o.check(En(tre,n)),o.url=(n)=>o.check(qn(Bre,n)),o.jwt=(n)=>o.check(xn(Mre,n)),o.emoji=(n)=>o.check(Nn(Rre,n)),o.guid=(n)=>o.check(Io(xA,n)),o.uuid=(n)=>o.check(Dn(me,n)),o.uuidv4=(n)=>o.check(On(me,n)),o.uuidv6=(n)=>o.check(bn(me,n)),o.uuidv7=(n)=>o.check(Tn(me,n)),o.nanoid=(n)=>o.check(Gn(Lre,n)),o.guid=(n)=>o.check(Io(xA,n)),o.cuid=(n)=>o.check(un(Hre,n)),o.cuid2=(n)=>o.check(Jn(Wre,n)),o.ulid=(n)=>o.check(tn(Qre,n)),o.base64=(n)=>o.check(wn(Vre,n)),o.base64url=(n)=>o.check(Xn(Fre,n)),o.xid=(n)=>o.check(Bn(wre,n)),o.ksuid=(n)=>o.check(Rn(Xre,n)),o.ipv4=(n)=>o.check(Ln(Yre,n)),o.ipv6=(n)=>o.check(Hn(xre,n)),o.cidrv4=(n)=>o.check(Wn(Kre,n)),o.cidrv6=(n)=>o.check(Qn(yre,n)),o.e164=(n)=>o.check(Yn($re,n)),o.datetime=(n)=>o.check(bA(n)),o.date=(n)=>o.check(TA(n)),o.time=(n)=>o.check(qA(n)),o.duration=(n)=>o.check(NA(n))});function e(o){return _n(Jre,o)}var V=G("ZodStringFormat",(o,c)=>{K.init(o,c),$A.init(o,c)}),tre=G("ZodEmail",(o,c)=>{Nv.init(o,c),V.init(o,c)});var xA=G("ZodGUID",(o,c)=>{Tv.init(o,c),V.init(o,c)});var me=G("ZodUUID",(o,c)=>{qv.init(o,c),V.init(o,c)});var Bre=G("ZodURL",(o,c)=>{Gv.init(o,c),V.init(o,c)});var Rre=G("ZodEmoji",(o,c)=>{uv.init(o,c),V.init(o,c)});var Lre=G("ZodNanoID",(o,c)=>{Jv.init(o,c),V.init(o,c)});var Hre=G("ZodCUID",(o,c)=>{tv.init(o,c),V.init(o,c)});var Wre=G("ZodCUID2",(o,c)=>{Bv.init(o,c),V.init(o,c)});var Qre=G("ZodULID",(o,c)=>{Rv.init(o,c),V.init(o,c)});var wre=G("ZodXID",(o,c)=>{Lv.init(o,c),V.init(o,c)});var Xre=G("ZodKSUID",(o,c)=>{Hv.init(o,c),V.init(o,c)});var Yre=G("ZodIPv4",(o,c)=>{Yv.init(o,c),V.init(o,c)});var xre=G("ZodIPv6",(o,c)=>{xv.init(o,c),V.init(o,c)});var Kre=G("ZodCIDRv4",(o,c)=>{Kv.init(o,c),V.init(o,c)});var yre=G("ZodCIDRv6",(o,c)=>{yv.init(o,c),V.init(o,c)});var Vre=G("ZodBase64",(o,c)=>{Fv.init(o,c),V.init(o,c)});var Fre=G("ZodBase64URL",(o,c)=>{$v.init(o,c),V.init(o,c)});var $re=G("ZodE164",(o,c)=>{Mv.init(o,c),V.init(o,c)});var Mre=G("ZodJWT",(o,c)=>{zv.init(o,c),V.init(o,c)});var MA=G("ZodNumber",(o,c)=>{no.init(o,c),F.init(o,c),o._zod.processJSONSchema=(I,S,_)=>ln(o,I,S,_),o.gt=(I,S)=>o.check($e(I,S)),o.gte=(I,S)=>o.check(ue(I,S)),o.min=(I,S)=>o.check(ue(I,S)),o.lt=(I,S)=>o.check(Fe(I,S)),o.lte=(I,S)=>o.check(Ge(I,S)),o.max=(I,S)=>o.check(Ge(I,S)),o.int=(I)=>o.check(KA(I)),o.safe=(I)=>o.check(KA(I)),o.positive=(I)=>o.check($e(0,I)),o.nonnegative=(I)=>o.check(ue(0,I)),o.negative=(I)=>o.check(Fe(0,I)),o.nonpositive=(I)=>o.check(Ge(0,I)),o.multipleOf=(I,S)=>o.check(Me(I,S)),o.step=(I,S)=>o.check(Me(I,S)),o.finite=()=>o;let n=o._zod.bag;o.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,o.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,o.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??0.5),o.isFinite=!0,o.format=n.format??null});function v(o){return $n(MA,o)}var zre=G("ZodNumberFormat",(o,c)=>{kv.init(o,c),MA.init(o,c)});function KA(o){return Mn(zre,o)}var kre=G("ZodBoolean",(o,c)=>{Uv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>hn(o,n,I,S)});function A(o){return zn(kre,o)}var Ure=G("ZodNull",(o,c)=>{mv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>dn(o,n,I,S)});function u(o){return kn(Ure,o)}var mre=G("ZodUnknown",(o,c)=>{Zv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>sn(o,n,I,S)});function T(){return Un(mre)}var Zre=G("ZodNever",(o,c)=>{Cv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>an(o,n,I,S)});function Cre(o){return mn(Zre,o)}var jre=G("ZodArray",(o,c)=>{jv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>rA(o,n,I,S),o.element=c.element,o.min=(n,I)=>o.check(Se(n,I)),o.nonempty=(n)=>o.check(Se(1,n)),o.max=(n,I)=>o.check(ze(n,I)),o.length=(n,I)=>o.check(ke(n,I)),o.unwrap=()=>o.element});function P(o,c){return Zn(jre,o,c)}var pre=G("ZodObject",(o,c)=>{lv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>vA(o,n,I,S),x.defineLazy(o,"shape",()=>{return c.shape}),o.keyof=()=>g(Object.keys(o._zod.def.shape)),o.catchall=(n)=>o.clone({...o._zod.def,catchall:n}),o.passthrough=()=>o.clone({...o._zod.def,catchall:T()}),o.loose=()=>o.clone({...o._zod.def,catchall:T()}),o.strict=()=>o.clone({...o._zod.def,catchall:Cre()}),o.strip=()=>o.clone({...o._zod.def,catchall:void 0}),o.extend=(n)=>{return x.extend(o,n)},o.safeExtend=(n)=>{return x.safeExtend(o,n)},o.merge=(n)=>x.merge(o,n),o.pick=(n)=>x.pick(o,n),o.omit=(n)=>x.omit(o,n),o.partial=(...n)=>x.partial(zA,o,n[0]),o.required=(...n)=>x.required(kA,o,n[0])});function r(o,c){let n={type:"object",shape:o??{},...x.normalizeParams(c)};return new pre(n)}var fre=G("ZodUnion",(o,c)=>{hv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>nA(o,n,I,S),o.options=c.options});function t(o,c){return new fre({type:"union",options:o,...x.normalizeParams(c)})}var lre=G("ZodIntersection",(o,c)=>{iv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>AA(o,n,I,S)});function hre(o,c){return new lre({type:"intersection",left:o,right:c})}var ire=G("ZodRecord",(o,c)=>{dv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>IA(o,n,I,S),o.keyType=c.keyType,o.valueType=c.valueType});function D(o,c,n){return new ire({type:"record",keyType:o,valueType:c,...x.normalizeParams(n)})}var Bo=G("ZodEnum",(o,c)=>{av.init(o,c),F.init(o,c),o._zod.processJSONSchema=(I,S,_)=>eA(o,I,S,_),o.enum=c.entries,o.options=Object.values(c.entries);let n=new Set(Object.keys(c.entries));o.extract=(I,S)=>{let _={};for(let E of I)if(n.has(E))_[E]=c.entries[E];else throw Error(`Key ${E} not found in enum`);return new Bo({...c,checks:[],...x.normalizeParams(S),entries:_})},o.exclude=(I,S)=>{let _={...c.entries};for(let E of I)if(n.has(E))delete _[E];else throw Error(`Key ${E} not found in enum`);return new Bo({...c,checks:[],...x.normalizeParams(S),entries:_})}});function g(o,c){let n=Array.isArray(o)?Object.fromEntries(o.map((I)=>[I,I])):o;return new Bo({type:"enum",entries:n,...x.normalizeParams(c)})}var dre=G("ZodTransform",(o,c)=>{sv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>cA(o,n,I,S),o._zod.parse=(n,I)=>{if(I.direction==="backward")throw new ge(o.constructor.name);n.addIssue=(_)=>{if(typeof _==="string")n.issues.push(x.issue(_,n.value,c));else{let E=_;if(E.fatal)E.continue=!1;E.code??(E.code="custom"),E.input??(E.input=n.value),E.inst??(E.inst=o),n.issues.push(x.issue(E))}};let S=c.transform(n.value,n);if(S instanceof Promise)return S.then((_)=>{return n.value=_,n});return n.value=S,n}});function are(o){return new dre({type:"transform",transform:o})}var zA=G("ZodOptional",(o,c)=>{Ao.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>to(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function yA(o){return new zA({type:"optional",innerType:o})}var sre=G("ZodExactOptional",(o,c)=>{en.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>to(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function eve(o){return new sre({type:"optional",innerType:o})}var ove=G("ZodNullable",(o,c)=>{on.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>SA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function VA(o){return new ove({type:"nullable",innerType:o})}var cve=G("ZodDefault",(o,c)=>{cn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>PA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType,o.removeDefault=o.unwrap});function rve(o,c){return new cve({type:"default",innerType:o,get defaultValue(){return typeof c==="function"?c():x.shallowClone(c)}})}var vve=G("ZodPrefault",(o,c)=>{rn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>_A(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function nve(o,c){return new vve({type:"prefault",innerType:o,get defaultValue(){return typeof c==="function"?c():x.shallowClone(c)}})}var kA=G("ZodNonOptional",(o,c)=>{vn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>gA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function Ave(o,c){return new kA({type:"nonoptional",innerType:o,...x.normalizeParams(c)})}var Ive=G("ZodCatch",(o,c)=>{nn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>EA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType,o.removeCatch=o.unwrap});function Sve(o,c){return new Ive({type:"catch",innerType:o,catchValue:typeof c==="function"?c:()=>c})}var gve=G("ZodPipe",(o,c)=>{An.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>DA(o,n,I,S),o.in=c.in,o.out=c.out});function FA(o,c){return new gve({type:"pipe",in:o,out:c})}var Pve=G("ZodReadonly",(o,c)=>{In.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>OA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function _ve(o){return new Pve({type:"readonly",innerType:o})}var UA=G("ZodCustom",(o,c)=>{Sn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>oA(o,n,I,S)});function Eve(o,c={}){return Cn(UA,o,c)}function Dve(o){return jn(o)}function ce(o,c={}){let n=new UA({type:"custom",check:"custom",fn:(I)=>I instanceof o,abort:!0,...x.normalizeParams(c)});return n._zod.bag.Class=o,n._zod.check=(I)=>{if(!(I.value instanceof o))I.issues.push({code:"invalid_type",expected:o.name,input:I.value,inst:n,path:[...n._zod.def.path??[]]})},n}var mA=10,ZA=100,Ove=r({limit:v().min(1).max(ZA).default(mA).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","created_at","resource_type","action","-id","-created_at","-resource_type","-action"]),P(g(["id","created_at","resource_type","action","-id","-created_at","-resource_type","-action"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, resource_type, resource_id, action, actor_type, created_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),resource_type:e().optional().describe("Filter by resource type (e.g., Invoice, Customer, Payment)"),resource_id:e().optional().describe("Filter by specific resource ID"),action:e().optional().describe("Filter by action type (e.g., created, updated, deleted, sent)")}),bve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Tve=r({data:P(r({id:e().describe("Unique activity identifier"),entity_id:e().describe("Entity that owns this activity"),resource_type:e().describe("Type of resource (e.g., Invoice, Customer, Payment)"),resource_id:e().describe("ID of the resource"),action:e().describe("Action performed (e.g., created, updated, deleted, voided, sent)"),actor_type:g(["user","api_key","system","cron","webhook"]).describe("Who/what triggered the activity"),actor_id:e().nullable().describe("User ID if actor_type is 'user'"),actor_label:e().nullable().describe("Display label (e.g., user email, 'Scheduled sync')"),details:D(e(),T()).nullable().describe("Additional context about the activity"),created_at:e().datetime({}).describe("When the activity occurred")})),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")});var Lo={};Q(Lo,{voidAdvanceInvoiceResponseTotalWithTaxMin:()=>eE,voidAdvanceInvoiceResponseTotalWithTaxMax:()=>oE,voidAdvanceInvoiceResponseTotalWithTaxConvertedMin:()=>gE,voidAdvanceInvoiceResponseTotalWithTaxConvertedMax:()=>PE,voidAdvanceInvoiceResponseTotalPaidMin:()=>_E,voidAdvanceInvoiceResponseTotalPaidMax:()=>EE,voidAdvanceInvoiceResponseTotalMin:()=>a_,voidAdvanceInvoiceResponseTotalMax:()=>s_,voidAdvanceInvoiceResponseTotalDueMin:()=>DE,voidAdvanceInvoiceResponseTotalDueMax:()=>OE,voidAdvanceInvoiceResponseTotalConvertedMin:()=>IE,voidAdvanceInvoiceResponseTotalConvertedMax:()=>SE,voidAdvanceInvoiceResponseShareableIdMax:()=>AE,voidAdvanceInvoiceResponseNumberMax:()=>C_,voidAdvanceInvoiceResponseItemsItemUnitMax:()=>BE,voidAdvanceInvoiceResponseItemsItemTotalWithTaxMin:()=>wE,voidAdvanceInvoiceResponseItemsItemTotalWithTaxMax:()=>XE,voidAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>KE,voidAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>yE,voidAdvanceInvoiceResponseItemsItemTotalMin:()=>WE,voidAdvanceInvoiceResponseItemsItemTotalMax:()=>QE,voidAdvanceInvoiceResponseItemsItemTotalConvertedMin:()=>YE,voidAdvanceInvoiceResponseItemsItemTotalConvertedMax:()=>xE,voidAdvanceInvoiceResponseItemsItemQuantityMin:()=>JE,voidAdvanceInvoiceResponseItemsItemQuantityMax:()=>tE,voidAdvanceInvoiceResponseItemsItemNameMax:()=>uE,voidAdvanceInvoiceResponseItemsItemItemIdMax:()=>$E,voidAdvanceInvoiceResponseItemsItemIdMax:()=>GE,voidAdvanceInvoiceResponseItemsItemDiscountsMax:()=>HE,voidAdvanceInvoiceResponseItemsItemDiscountsItemValueMin:()=>RE,voidAdvanceInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>LE,voidAdvanceInvoiceResponseItemsItemDeliveryNoteIdMax:()=>FE,voidAdvanceInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>VE,voidAdvanceInvoiceResponseIssuerCountryCodeMin:()=>j_,voidAdvanceInvoiceResponseIssuerCountryCodeMax:()=>p_,voidAdvanceInvoiceResponseIssuerBankAccountTypeDefault:()=>f_,voidAdvanceInvoiceResponseIdMax:()=>Z_,voidAdvanceInvoiceResponseFursDataIterationDefault:()=>bE,voidAdvanceInvoiceResponseEntityIdMax:()=>rE,voidAdvanceInvoiceResponseDateYearMin:()=>vE,voidAdvanceInvoiceResponseDateYearMax:()=>nE,voidAdvanceInvoiceResponseDateServiceToRegExp:()=>NE,voidAdvanceInvoiceResponseDateServiceRegExp:()=>qE,voidAdvanceInvoiceResponseDateDueRegExp:()=>TE,voidAdvanceInvoiceResponseCustomerIdMax:()=>l_,voidAdvanceInvoiceResponseCustomerCountryCodeMin:()=>h_,voidAdvanceInvoiceResponseCustomerCountryCodeMax:()=>i_,voidAdvanceInvoiceResponseCustomerBankAccountTypeDefault:()=>d_,voidAdvanceInvoiceResponseCurrencyCodeMax:()=>cE,voidAdvanceInvoicePathIdRegExp:()=>m_,updateAdvanceInvoiceResponseTotalWithTaxMin:()=>SP,updateAdvanceInvoiceResponseTotalWithTaxMax:()=>gP,updateAdvanceInvoiceResponseTotalWithTaxConvertedMin:()=>qP,updateAdvanceInvoiceResponseTotalWithTaxConvertedMax:()=>NP,updateAdvanceInvoiceResponseTotalPaidMin:()=>GP,updateAdvanceInvoiceResponseTotalPaidMax:()=>uP,updateAdvanceInvoiceResponseTotalMin:()=>AP,updateAdvanceInvoiceResponseTotalMax:()=>IP,updateAdvanceInvoiceResponseTotalDueMin:()=>JP,updateAdvanceInvoiceResponseTotalDueMax:()=>tP,updateAdvanceInvoiceResponseTotalConvertedMin:()=>bP,updateAdvanceInvoiceResponseTotalConvertedMax:()=>TP,updateAdvanceInvoiceResponseShareableIdMax:()=>OP,updateAdvanceInvoiceResponseNumberMax:()=>ag,updateAdvanceInvoiceResponseItemsItemUnitMax:()=>YP,updateAdvanceInvoiceResponseItemsItemTotalWithTaxMin:()=>$P,updateAdvanceInvoiceResponseItemsItemTotalWithTaxMax:()=>MP,updateAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>UP,updateAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>mP,updateAdvanceInvoiceResponseItemsItemTotalMin:()=>VP,updateAdvanceInvoiceResponseItemsItemTotalMax:()=>FP,updateAdvanceInvoiceResponseItemsItemTotalConvertedMin:()=>zP,updateAdvanceInvoiceResponseItemsItemTotalConvertedMax:()=>kP,updateAdvanceInvoiceResponseItemsItemQuantityMin:()=>wP,updateAdvanceInvoiceResponseItemsItemQuantityMax:()=>XP,updateAdvanceInvoiceResponseItemsItemNameMax:()=>QP,updateAdvanceInvoiceResponseItemsItemItemIdMax:()=>jP,updateAdvanceInvoiceResponseItemsItemIdMax:()=>WP,updateAdvanceInvoiceResponseItemsItemDiscountsMax:()=>yP,updateAdvanceInvoiceResponseItemsItemDiscountsItemValueMin:()=>xP,updateAdvanceInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>KP,updateAdvanceInvoiceResponseItemsItemDeliveryNoteIdMax:()=>CP,updateAdvanceInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>ZP,updateAdvanceInvoiceResponseIssuerCountryCodeMin:()=>sg,updateAdvanceInvoiceResponseIssuerCountryCodeMax:()=>eP,updateAdvanceInvoiceResponseIssuerBankAccountTypeDefault:()=>oP,updateAdvanceInvoiceResponseIdMax:()=>dg,updateAdvanceInvoiceResponseFursDataIterationDefault:()=>BP,updateAdvanceInvoiceResponseEntityIdMax:()=>_P,updateAdvanceInvoiceResponseDateYearMin:()=>EP,updateAdvanceInvoiceResponseDateYearMax:()=>DP,updateAdvanceInvoiceResponseDateServiceToRegExp:()=>HP,updateAdvanceInvoiceResponseDateServiceRegExp:()=>LP,updateAdvanceInvoiceResponseDateDueRegExp:()=>RP,updateAdvanceInvoiceResponseCustomerIdMax:()=>cP,updateAdvanceInvoiceResponseCustomerCountryCodeMin:()=>rP,updateAdvanceInvoiceResponseCustomerCountryCodeMax:()=>vP,updateAdvanceInvoiceResponseCustomerBankAccountTypeDefault:()=>nP,updateAdvanceInvoiceResponseCurrencyCodeMax:()=>PP,updateAdvanceInvoicePathIdRegExp:()=>Kg,updateAdvanceInvoiceBodyItemsItemUnitMax:()=>jg,updateAdvanceInvoiceBodyItemsItemSaveItemDefault:()=>hg,updateAdvanceInvoiceBodyItemsItemQuantityMin:()=>Zg,updateAdvanceInvoiceBodyItemsItemQuantityMax:()=>Cg,updateAdvanceInvoiceBodyItemsItemDiscountsMax:()=>lg,updateAdvanceInvoiceBodyItemsItemDiscountsItemValueMin:()=>pg,updateAdvanceInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>fg,updateAdvanceInvoiceBodyItemsItemDescriptionMax:()=>mg,updateAdvanceInvoiceBodyIssuerOneCountryCodeMin:()=>Vg,updateAdvanceInvoiceBodyIssuerOneCountryCodeMax:()=>Fg,updateAdvanceInvoiceBodyIssuerOneBankAccountTypeDefault:()=>$g,updateAdvanceInvoiceBodyDateRegExp:()=>yg,updateAdvanceInvoiceBodyCustomerTwoSaveCustomerDefault:()=>Ug,updateAdvanceInvoiceBodyCustomerOneCountryCodeMin:()=>Mg,updateAdvanceInvoiceBodyCustomerOneCountryCodeMax:()=>zg,updateAdvanceInvoiceBodyCustomerOneBankAccountTypeDefault:()=>kg,updateAdvanceInvoiceBodyChangeReasonMax:()=>ig,renderAdvanceInvoicePreviewQueryPartialDefault:()=>hP,renderAdvanceInvoicePreviewQueryLocaleMin:()=>fP,renderAdvanceInvoicePreviewQueryLocaleMax:()=>lP,renderAdvanceInvoicePreviewBodyTwoItemsItemUnitMax:()=>X_,renderAdvanceInvoicePreviewBodyTwoItemsItemSaveItemDefault:()=>y_,renderAdvanceInvoicePreviewBodyTwoItemsItemQuantityMin:()=>Q_,renderAdvanceInvoicePreviewBodyTwoItemsItemQuantityMax:()=>w_,renderAdvanceInvoicePreviewBodyTwoItemsItemDiscountsMax:()=>K_,renderAdvanceInvoicePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>Y_,renderAdvanceInvoicePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>x_,renderAdvanceInvoicePreviewBodyTwoItemsItemDescriptionMax:()=>W_,renderAdvanceInvoicePreviewBodyTwoIssuerCountryCodeMin:()=>T_,renderAdvanceInvoicePreviewBodyTwoIssuerCountryCodeMax:()=>q_,renderAdvanceInvoicePreviewBodyTwoIssuerBankAccountTypeDefault:()=>N_,renderAdvanceInvoicePreviewBodyTwoFinaPremiseIdRegExp:()=>F_,renderAdvanceInvoicePreviewBodyTwoFinaPremiseIdMax:()=>V_,renderAdvanceInvoicePreviewBodyTwoFinaOperatorOibMin:()=>z_,renderAdvanceInvoicePreviewBodyTwoFinaOperatorOibMax:()=>k_,renderAdvanceInvoicePreviewBodyTwoFinaDeviceIdRegExp:()=>M_,renderAdvanceInvoicePreviewBodyTwoFinaDeviceIdMax:()=>$_,renderAdvanceInvoicePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>U_,renderAdvanceInvoicePreviewBodyTwoDateServiceToRegExp:()=>H_,renderAdvanceInvoicePreviewBodyTwoDateServiceRegExp:()=>L_,renderAdvanceInvoicePreviewBodyTwoDateRegExp:()=>b_,renderAdvanceInvoicePreviewBodyTwoDateDueRegExp:()=>R_,renderAdvanceInvoicePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>t_,renderAdvanceInvoicePreviewBodyTwoCustomerOneCountryCodeMin:()=>G_,renderAdvanceInvoicePreviewBodyTwoCustomerOneCountryCodeMax:()=>u_,renderAdvanceInvoicePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>J_,renderAdvanceInvoicePreviewBodyTwoCurrencyCodeMax:()=>B_,renderAdvanceInvoicePreviewBodyOneIssuerCountryCodeMin:()=>dP,renderAdvanceInvoicePreviewBodyOneIssuerCountryCodeMax:()=>aP,renderAdvanceInvoicePreviewBodyOneIssuerBankAccountTypeDefault:()=>sP,renderAdvanceInvoicePreviewBodyOneFinaPremiseIdRegExp:()=>g_,renderAdvanceInvoicePreviewBodyOneFinaPremiseIdMax:()=>S_,renderAdvanceInvoicePreviewBodyOneFinaOperatorOibMin:()=>E_,renderAdvanceInvoicePreviewBodyOneFinaOperatorOibMax:()=>D_,renderAdvanceInvoicePreviewBodyOneFinaDeviceIdRegExp:()=>__,renderAdvanceInvoicePreviewBodyOneFinaDeviceIdMax:()=>P_,renderAdvanceInvoicePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>O_,renderAdvanceInvoicePreviewBodyOneDateServiceToRegExp:()=>I_,renderAdvanceInvoicePreviewBodyOneDateServiceRegExp:()=>A_,renderAdvanceInvoicePreviewBodyOneDateRegExp:()=>iP,renderAdvanceInvoicePreviewBodyOneDateDueRegExp:()=>n_,renderAdvanceInvoicePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>r_,renderAdvanceInvoicePreviewBodyOneCustomerOneCountryCodeMin:()=>e_,renderAdvanceInvoicePreviewBodyOneCustomerOneCountryCodeMax:()=>o_,renderAdvanceInvoicePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>c_,renderAdvanceInvoicePreviewBodyOneCurrencyCodeMax:()=>v_,getShareableAdvanceInvoiceResponseTotalWithTaxMin:()=>o0,getShareableAdvanceInvoiceResponseTotalWithTaxMax:()=>c0,getShareableAdvanceInvoiceResponseTotalWithTaxConvertedMin:()=>P0,getShareableAdvanceInvoiceResponseTotalWithTaxConvertedMax:()=>_0,getShareableAdvanceInvoiceResponseTotalPaidMin:()=>E0,getShareableAdvanceInvoiceResponseTotalPaidMax:()=>D0,getShareableAdvanceInvoiceResponseTotalMin:()=>sA,getShareableAdvanceInvoiceResponseTotalMax:()=>e0,getShareableAdvanceInvoiceResponseTotalDueMin:()=>O0,getShareableAdvanceInvoiceResponseTotalDueMax:()=>b0,getShareableAdvanceInvoiceResponseTotalConvertedMin:()=>S0,getShareableAdvanceInvoiceResponseTotalConvertedMax:()=>g0,getShareableAdvanceInvoiceResponseShareableIdMax:()=>I0,getShareableAdvanceInvoiceResponseNumberMax:()=>jA,getShareableAdvanceInvoiceResponseItemsItemUnitMax:()=>R0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxMin:()=>X0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxMax:()=>Y0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>y0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>V0,getShareableAdvanceInvoiceResponseItemsItemTotalMin:()=>Q0,getShareableAdvanceInvoiceResponseItemsItemTotalMax:()=>w0,getShareableAdvanceInvoiceResponseItemsItemTotalConvertedMin:()=>x0,getShareableAdvanceInvoiceResponseItemsItemTotalConvertedMax:()=>K0,getShareableAdvanceInvoiceResponseItemsItemQuantityMin:()=>t0,getShareableAdvanceInvoiceResponseItemsItemQuantityMax:()=>B0,getShareableAdvanceInvoiceResponseItemsItemNameMax:()=>J0,getShareableAdvanceInvoiceResponseItemsItemItemIdMax:()=>M0,getShareableAdvanceInvoiceResponseItemsItemIdMax:()=>u0,getShareableAdvanceInvoiceResponseItemsItemDiscountsMax:()=>W0,getShareableAdvanceInvoiceResponseItemsItemDiscountsItemValueMin:()=>L0,getShareableAdvanceInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>H0,getShareableAdvanceInvoiceResponseItemsItemDeliveryNoteIdMax:()=>$0,getShareableAdvanceInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>F0,getShareableAdvanceInvoiceResponseIssuerCountryCodeMin:()=>pA,getShareableAdvanceInvoiceResponseIssuerCountryCodeMax:()=>fA,getShareableAdvanceInvoiceResponseIssuerBankAccountTypeDefault:()=>lA,getShareableAdvanceInvoiceResponseIdMax:()=>CA,getShareableAdvanceInvoiceResponseFursDataIterationDefault:()=>T0,getShareableAdvanceInvoiceResponseEntityIdMax:()=>v0,getShareableAdvanceInvoiceResponseDateYearMin:()=>n0,getShareableAdvanceInvoiceResponseDateYearMax:()=>A0,getShareableAdvanceInvoiceResponseDateServiceToRegExp:()=>G0,getShareableAdvanceInvoiceResponseDateServiceRegExp:()=>N0,getShareableAdvanceInvoiceResponseDateDueRegExp:()=>q0,getShareableAdvanceInvoiceResponseCustomerIdMax:()=>hA,getShareableAdvanceInvoiceResponseCustomerCountryCodeMin:()=>iA,getShareableAdvanceInvoiceResponseCustomerCountryCodeMax:()=>dA,getShareableAdvanceInvoiceResponseCustomerBankAccountTypeDefault:()=>aA,getShareableAdvanceInvoiceResponseCurrencyCodeMax:()=>r0,getAdvanceInvoicesResponseDataItemTotalWithTaxMin:()=>wI,getAdvanceInvoicesResponseDataItemTotalWithTaxMax:()=>XI,getAdvanceInvoicesResponseDataItemTotalWithTaxConvertedMin:()=>MI,getAdvanceInvoicesResponseDataItemTotalWithTaxConvertedMax:()=>zI,getAdvanceInvoicesResponseDataItemTotalPaidMin:()=>kI,getAdvanceInvoicesResponseDataItemTotalPaidMax:()=>UI,getAdvanceInvoicesResponseDataItemTotalMin:()=>WI,getAdvanceInvoicesResponseDataItemTotalMax:()=>QI,getAdvanceInvoicesResponseDataItemTotalDueMin:()=>mI,getAdvanceInvoicesResponseDataItemTotalDueMax:()=>ZI,getAdvanceInvoicesResponseDataItemTotalConvertedMin:()=>FI,getAdvanceInvoicesResponseDataItemTotalConvertedMax:()=>$I,getAdvanceInvoicesResponseDataItemShareableIdMax:()=>VI,getAdvanceInvoicesResponseDataItemNumberMax:()=>GI,getAdvanceInvoicesResponseDataItemItemsItemUnitMax:()=>aI,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxMin:()=>vS,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxMax:()=>nS,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>SS,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>gS,getAdvanceInvoicesResponseDataItemItemsItemTotalMin:()=>cS,getAdvanceInvoicesResponseDataItemItemsItemTotalMax:()=>rS,getAdvanceInvoicesResponseDataItemItemsItemTotalConvertedMin:()=>AS,getAdvanceInvoicesResponseDataItemItemsItemTotalConvertedMax:()=>IS,getAdvanceInvoicesResponseDataItemItemsItemQuantityMin:()=>iI,getAdvanceInvoicesResponseDataItemItemsItemQuantityMax:()=>dI,getAdvanceInvoicesResponseDataItemItemsItemNameMax:()=>hI,getAdvanceInvoicesResponseDataItemItemsItemItemIdMax:()=>ES,getAdvanceInvoicesResponseDataItemItemsItemIdMax:()=>lI,getAdvanceInvoicesResponseDataItemItemsItemDiscountsMax:()=>oS,getAdvanceInvoicesResponseDataItemItemsItemDiscountsItemValueMin:()=>sI,getAdvanceInvoicesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>eS,getAdvanceInvoicesResponseDataItemItemsItemDeliveryNoteIdMax:()=>_S,getAdvanceInvoicesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>PS,getAdvanceInvoicesResponseDataItemIssuerCountryCodeMin:()=>uI,getAdvanceInvoicesResponseDataItemIssuerCountryCodeMax:()=>JI,getAdvanceInvoicesResponseDataItemIssuerBankAccountTypeDefault:()=>tI,getAdvanceInvoicesResponseDataItemIdMax:()=>NI,getAdvanceInvoicesResponseDataItemFursDataIterationDefault:()=>CI,getAdvanceInvoicesResponseDataItemEntityIdMax:()=>xI,getAdvanceInvoicesResponseDataItemDateYearMin:()=>KI,getAdvanceInvoicesResponseDataItemDateYearMax:()=>yI,getAdvanceInvoicesResponseDataItemDateServiceToRegExp:()=>fI,getAdvanceInvoicesResponseDataItemDateServiceRegExp:()=>pI,getAdvanceInvoicesResponseDataItemDateDueRegExp:()=>jI,getAdvanceInvoicesResponseDataItemCustomerIdMax:()=>BI,getAdvanceInvoicesResponseDataItemCustomerCountryCodeMin:()=>RI,getAdvanceInvoicesResponseDataItemCustomerCountryCodeMax:()=>LI,getAdvanceInvoicesResponseDataItemCustomerBankAccountTypeDefault:()=>HI,getAdvanceInvoicesResponseDataItemCurrencyCodeMax:()=>YI,getAdvanceInvoicesQueryLimitMax:()=>qI,getAdvanceInvoicesQueryLimitDefault:()=>TI,getAdvanceInvoiceVersionsPathIdRegExp:()=>pP,getAdvanceInvoiceByIdResponseTotalWithTaxMin:()=>hS,getAdvanceInvoiceByIdResponseTotalWithTaxMax:()=>iS,getAdvanceInvoiceByIdResponseTotalWithTaxConvertedMin:()=>vg,getAdvanceInvoiceByIdResponseTotalWithTaxConvertedMax:()=>ng,getAdvanceInvoiceByIdResponseTotalPaidMin:()=>Ag,getAdvanceInvoiceByIdResponseTotalPaidMax:()=>Ig,getAdvanceInvoiceByIdResponseTotalMin:()=>fS,getAdvanceInvoiceByIdResponseTotalMax:()=>lS,getAdvanceInvoiceByIdResponseTotalDueMin:()=>Sg,getAdvanceInvoiceByIdResponseTotalDueMax:()=>gg,getAdvanceInvoiceByIdResponseTotalConvertedMin:()=>cg,getAdvanceInvoiceByIdResponseTotalConvertedMax:()=>rg,getAdvanceInvoiceByIdResponseShareableIdMax:()=>og,getAdvanceInvoiceByIdResponseNumberMax:()=>zS,getAdvanceInvoiceByIdResponseItemsItemUnitMax:()=>Ng,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxMin:()=>Rg,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxMax:()=>Lg,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxConvertedMin:()=>Qg,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxConvertedMax:()=>wg,getAdvanceInvoiceByIdResponseItemsItemTotalMin:()=>tg,getAdvanceInvoiceByIdResponseItemsItemTotalMax:()=>Bg,getAdvanceInvoiceByIdResponseItemsItemTotalConvertedMin:()=>Hg,getAdvanceInvoiceByIdResponseItemsItemTotalConvertedMax:()=>Wg,getAdvanceInvoiceByIdResponseItemsItemQuantityMin:()=>Tg,getAdvanceInvoiceByIdResponseItemsItemQuantityMax:()=>qg,getAdvanceInvoiceByIdResponseItemsItemNameMax:()=>bg,getAdvanceInvoiceByIdResponseItemsItemItemIdMax:()=>xg,getAdvanceInvoiceByIdResponseItemsItemIdMax:()=>Og,getAdvanceInvoiceByIdResponseItemsItemDiscountsMax:()=>Jg,getAdvanceInvoiceByIdResponseItemsItemDiscountsItemValueMin:()=>Gg,getAdvanceInvoiceByIdResponseItemsItemDiscountsItemTypeDefault:()=>ug,getAdvanceInvoiceByIdResponseItemsItemDeliveryNoteIdMax:()=>Yg,getAdvanceInvoiceByIdResponseItemsItemAdvanceInvoiceIdMax:()=>Xg,getAdvanceInvoiceByIdResponseIssuerCountryCodeMin:()=>kS,getAdvanceInvoiceByIdResponseIssuerCountryCodeMax:()=>US,getAdvanceInvoiceByIdResponseIssuerBankAccountTypeDefault:()=>mS,getAdvanceInvoiceByIdResponseIdMax:()=>MS,getAdvanceInvoiceByIdResponseFursDataIterationDefault:()=>Pg,getAdvanceInvoiceByIdResponseEntityIdMax:()=>aS,getAdvanceInvoiceByIdResponseDateYearMin:()=>sS,getAdvanceInvoiceByIdResponseDateYearMax:()=>eg,getAdvanceInvoiceByIdResponseDateServiceToRegExp:()=>Dg,getAdvanceInvoiceByIdResponseDateServiceRegExp:()=>Eg,getAdvanceInvoiceByIdResponseDateDueRegExp:()=>_g,getAdvanceInvoiceByIdResponseCustomerIdMax:()=>ZS,getAdvanceInvoiceByIdResponseCustomerCountryCodeMin:()=>CS,getAdvanceInvoiceByIdResponseCustomerCountryCodeMax:()=>jS,getAdvanceInvoiceByIdResponseCustomerBankAccountTypeDefault:()=>pS,getAdvanceInvoiceByIdResponseCurrencyCodeMax:()=>dS,getAdvanceInvoiceByIdPathIdRegExp:()=>$S,createCustomAdvanceInvoiceBodyPaymentsItemTagMax:()=>yS,createCustomAdvanceInvoiceBodyPaymentsItemReferenceMax:()=>VS,createCustomAdvanceInvoiceBodyPaymentsItemNoteMax:()=>FS,createCustomAdvanceInvoiceBodyPaymentsItemAmountExclusiveMin:()=>KS,createCustomAdvanceInvoiceBodyItemsItemUnitMax:()=>QS,createCustomAdvanceInvoiceBodyItemsItemSaveItemDefault:()=>xS,createCustomAdvanceInvoiceBodyItemsItemQuantityMin:()=>HS,createCustomAdvanceInvoiceBodyItemsItemQuantityMax:()=>WS,createCustomAdvanceInvoiceBodyItemsItemDiscountsMax:()=>YS,createCustomAdvanceInvoiceBodyItemsItemDiscountsItemValueMin:()=>wS,createCustomAdvanceInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>XS,createCustomAdvanceInvoiceBodyItemsItemDescriptionMax:()=>LS,createCustomAdvanceInvoiceBodyIssuerCountryCodeMin:()=>OS,createCustomAdvanceInvoiceBodyIssuerCountryCodeMax:()=>bS,createCustomAdvanceInvoiceBodyIssuerBankAccountTypeDefault:()=>TS,createCustomAdvanceInvoiceBodyDateServiceToRegExp:()=>RS,createCustomAdvanceInvoiceBodyDateServiceRegExp:()=>BS,createCustomAdvanceInvoiceBodyDateRegExp:()=>DS,createCustomAdvanceInvoiceBodyDateDueRegExp:()=>tS,createCustomAdvanceInvoiceBodyCustomerTwoSaveCustomerDefault:()=>uS,createCustomAdvanceInvoiceBodyCustomerOneCountryCodeMin:()=>qS,createCustomAdvanceInvoiceBodyCustomerOneCountryCodeMax:()=>NS,createCustomAdvanceInvoiceBodyCustomerOneBankAccountTypeDefault:()=>GS,createCustomAdvanceInvoiceBodyCurrencyCodeMax:()=>JS,createAdvanceInvoiceBodyPaymentsItemTagMax:()=>AI,createAdvanceInvoiceBodyPaymentsItemReferenceMax:()=>II,createAdvanceInvoiceBodyPaymentsItemNoteMax:()=>SI,createAdvanceInvoiceBodyPaymentsItemAmountExclusiveMin:()=>nI,createAdvanceInvoiceBodyItemsItemUnitMax:()=>eI,createAdvanceInvoiceBodyItemsItemSaveItemDefault:()=>vI,createAdvanceInvoiceBodyItemsItemQuantityMin:()=>a0,createAdvanceInvoiceBodyItemsItemQuantityMax:()=>s0,createAdvanceInvoiceBodyItemsItemDiscountsMax:()=>rI,createAdvanceInvoiceBodyItemsItemDiscountsItemValueMin:()=>oI,createAdvanceInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>cI,createAdvanceInvoiceBodyItemsItemDescriptionMax:()=>d0,createAdvanceInvoiceBodyIssuerCountryCodeMin:()=>k0,createAdvanceInvoiceBodyIssuerCountryCodeMax:()=>U0,createAdvanceInvoiceBodyIssuerBankAccountTypeDefault:()=>m0,createAdvanceInvoiceBodyFinaPremiseIdRegExp:()=>PI,createAdvanceInvoiceBodyFinaPremiseIdMax:()=>gI,createAdvanceInvoiceBodyFinaOperatorOibMin:()=>DI,createAdvanceInvoiceBodyFinaOperatorOibMax:()=>OI,createAdvanceInvoiceBodyFinaDeviceIdRegExp:()=>EI,createAdvanceInvoiceBodyFinaDeviceIdMax:()=>_I,createAdvanceInvoiceBodyExpectedTotalWithTaxExclusiveMin:()=>bI,createAdvanceInvoiceBodyDateServiceToRegExp:()=>i0,createAdvanceInvoiceBodyDateServiceRegExp:()=>h0,createAdvanceInvoiceBodyDateRegExp:()=>z0,createAdvanceInvoiceBodyDateDueRegExp:()=>l0,createAdvanceInvoiceBodyCustomerTwoSaveCustomerDefault:()=>p0,createAdvanceInvoiceBodyCustomerOneCountryCodeMin:()=>Z0,createAdvanceInvoiceBodyCustomerOneCountryCodeMax:()=>C0,createAdvanceInvoiceBodyCustomerOneBankAccountTypeDefault:()=>j0,createAdvanceInvoiceBodyCurrencyCodeMax:()=>f0,VoidAdvanceInvoiceResponse:()=>ive,VoidAdvanceInvoiceParams:()=>fve,VoidAdvanceInvoiceHeader:()=>lve,VoidAdvanceInvoiceBody:()=>hve,UpdateAdvanceInvoiceResponse:()=>$ve,UpdateAdvanceInvoiceParams:()=>yve,UpdateAdvanceInvoiceHeader:()=>Vve,UpdateAdvanceInvoiceBody:()=>Fve,RenderAdvanceInvoicePreviewQueryParams:()=>Cve,RenderAdvanceInvoicePreviewHeader:()=>jve,RenderAdvanceInvoicePreviewBody:()=>pve,GetShareableAdvanceInvoiceResponse:()=>Nve,GetShareableAdvanceInvoicePdfQueryParams:()=>tve,GetShareableAdvanceInvoicePdfParams:()=>Jve,GetShareableAdvanceInvoiceParams:()=>qve,GetShareableAdvanceInvoiceHtmlQueryParams:()=>uve,GetShareableAdvanceInvoiceHtmlParams:()=>Gve,GetAdvanceInvoicesResponse:()=>Wve,GetAdvanceInvoicesQueryParams:()=>Lve,GetAdvanceInvoicesHeader:()=>Hve,GetAdvanceInvoiceVersionsResponse:()=>kve,GetAdvanceInvoiceVersionsParams:()=>Mve,GetAdvanceInvoiceVersionsHeader:()=>zve,GetAdvanceInvoiceVersionResponse:()=>Zve,GetAdvanceInvoiceVersionParams:()=>Uve,GetAdvanceInvoiceVersionHeader:()=>mve,GetAdvanceInvoiceByIdResponse:()=>Kve,GetAdvanceInvoiceByIdQueryParams:()=>Yve,GetAdvanceInvoiceByIdParams:()=>Xve,GetAdvanceInvoiceByIdHeader:()=>xve,CreateCustomAdvanceInvoiceHeader:()=>Qve,CreateCustomAdvanceInvoiceBody:()=>wve,CreateAdvanceInvoiceHeader:()=>Bve,CreateAdvanceInvoiceBody:()=>Rve});var qve=r({shareableId:e().describe("Shareable document token")}),CA=36,jA=100,pA=2,fA=2,lA="iban",hA=36,iA=2,dA=2,aA="iban",sA=-140737488355328,e0=140737488355327,o0=-140737488355328,c0=140737488355327,r0=3,v0=36,n0=-2147483648,A0=2147483647,I0=64,S0=-140737488355328,g0=140737488355327,P0=-140737488355328,_0=140737488355327,E0=-140737488355328,D0=140737488355327,O0=-140737488355328,b0=140737488355327,T0=0,q0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,N0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,G0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,u0=36,J0=500,t0=-140737488355328,B0=140737488355327,R0=50,L0=0,H0="percent",W0=5,Q0=-140737488355328,w0=140737488355327,X0=-140737488355328,Y0=140737488355327,x0=-140737488355328,K0=140737488355327,y0=-140737488355328,V0=140737488355327,F0=36,$0=36,M0=36,Nve=r({id:e().max(CA),number:e().max(jA),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(pA).max(fA).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(lA).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(hA).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(iA).max(dA).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(aA).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(sA).max(e0),total_with_tax:v().min(o0).max(c0),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(r0),entity_id:e().max(v0),date_year:v().min(n0).max(A0),shareable_id:e().max(I0).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(S0).max(g0).nullish(),total_with_tax_converted:v().min(P0).max(_0).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(E0).max(D0),total_due:v().min(O0).max(b0),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(T0),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(q0).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(N0).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(G0).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(u0),name:e().max(J0),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
40
- Only present if user originally sent gross price.
41
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(t0).max(B0),unit:e().max(R0).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(L0).describe("Discount value"),type:g(["percent","amount"]).default(H0).describe("Discount type: 'percent' (default) or 'amount'")})).max(W0).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Q0).max(w0),total_with_tax:v().min(X0).max(Y0),total_converted:v().min(x0).max(K0).nullish(),total_with_tax_converted:v().min(y0).max(V0).nullish(),advance_invoice_id:e().max(F0).nullish(),delivery_note_id:e().max($0).nullish(),item_id:e().max(M0).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments"),Gve=r({shareableId:e().describe("Shareable document token")}),uve=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),Jve=r({shareableId:e().describe("Shareable document token")}),tve=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),Bve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),z0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,k0=2,U0=2,m0="iban",Z0=2,C0=2,j0="iban",p0=!0,f0=3,l0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,h0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,i0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,d0=2000,a0=-140737488355328,s0=140737488355327,eI=50,oI=0,cI="percent",rI=5,vI=!0,nI=0,AI=100,II=100,SI=500,gI=20,PI=/^[0-9a-zA-Z]{1,20}$/,_I=20,EI=/^\d{1,20}$/,DI=11,OI=11,bI=0,Rve=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(z0).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(k0).max(U0).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(m0).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Z0).max(C0).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(j0).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(p0).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(f0).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(l0).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(h0).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(i0).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(d0).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(a0).max(s0),unit:e().max(eI).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(oI).describe("Discount value"),type:g(["percent","amount"]).default(cI).describe("Discount type: 'percent' (default) or 'amount'")})).max(rI).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
42
- When provided, the item's name, description, price, and taxes are used as defaults.
43
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(vI).describe(`Whether to save this item to the catalog.
44
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
45
- Default: true.`)})).min(1).describe("Line items for the advance invoice. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this advance invoice to other documents. Creates document relations automatically."),payments:P(r({amount:v().gt(nI).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(AI).nullish(),reference:e().max(II).nullish(),note:e().max(SI).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the advance invoice. If amounts are not provided, the advance invoice total is split equally among all payments. Automatically updates payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),fina:r({premise_id:e().min(1).max(gI).regex(PI).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(_I).regex(EI).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(DI).max(OI).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(bI).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),TI=10,qI=100,Lve=r({limit:v().min(1).max(qI).default(TI).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, paid_in_full, voided_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
46
- Searches are case-insensitive and match partial strings.
47
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this advance invoice\n- `document_relations` - Linked documents (invoices, credit notes, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),Hve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),NI=36,GI=100,uI=2,JI=2,tI="iban",BI=36,RI=2,LI=2,HI="iban",WI=-140737488355328,QI=140737488355327,wI=-140737488355328,XI=140737488355327,YI=3,xI=36,KI=-2147483648,yI=2147483647,VI=64,FI=-140737488355328,$I=140737488355327,MI=-140737488355328,zI=140737488355327,kI=-140737488355328,UI=140737488355327,mI=-140737488355328,ZI=140737488355327,CI=0,jI=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,pI=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,fI=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,lI=36,hI=500,iI=-140737488355328,dI=140737488355327,aI=50,sI=0,eS="percent",oS=5,cS=-140737488355328,rS=140737488355327,vS=-140737488355328,nS=140737488355327,AS=-140737488355328,IS=140737488355327,SS=-140737488355328,gS=140737488355327,PS=36,_S=36,ES=36,Wve=r({data:P(r({id:e().max(NI),number:e().max(GI),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(uI).max(JI).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(tI).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(BI).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(RI).max(LI).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(HI).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(WI).max(QI),total_with_tax:v().min(wI).max(XI),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(YI),entity_id:e().max(xI),date_year:v().min(KI).max(yI),shareable_id:e().max(VI).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(FI).max($I).nullish(),total_with_tax_converted:v().min(MI).max(zI).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(kI).max(UI),total_due:v().min(mI).max(ZI),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(CI),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(jI).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(pI).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(fI).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(lI),name:e().max(hI),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
48
- Only present if user originally sent gross price.
49
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(iI).max(dI),unit:e().max(aI).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(sI).describe("Discount value"),type:g(["percent","amount"]).default(eS).describe("Discount type: 'percent' (default) or 'amount'")})).max(oS).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(cS).max(rS),total_with_tax:v().min(vS).max(nS),total_converted:v().min(AS).max(IS).nullish(),total_with_tax_converted:v().min(SS).max(gS).nullish(),advance_invoice_id:e().max(PS).nullish(),delivery_note_id:e().max(_S).nullish(),item_id:e().max(ES).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Qve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),DS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,OS=2,bS=2,TS="iban",qS=2,NS=2,GS="iban",uS=!0,JS=3,tS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,BS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,RS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,LS=2000,HS=-140737488355328,WS=140737488355327,QS=50,wS=0,XS="percent",YS=5,xS=!0,KS=0,yS=100,VS=100,FS=500,wve=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(DS).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(OS).max(bS).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(TS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(qS).max(NS).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(GS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(uS).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(JS).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(tS).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(BS).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(RS).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(LS).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(HS).max(WS),unit:e().max(QS).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(wS).describe("Discount value"),type:g(["percent","amount"]).default(XS).describe("Discount type: 'percent' (default) or 'amount'")})).max(YS).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
50
- When provided, the item's name, description, price, and taxes are used as defaults.
51
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(xS).describe(`Whether to save this item to the catalog.
52
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
53
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this advance invoice to other documents."),payments:P(r({amount:v().gt(KS).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(yS).nullish(),reference:e().max(VS).nullish(),note:e().max(FS).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the advance invoice. If amounts are not provided, the advance invoice total is split equally among all payments. Automatically updates payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish()}),$S=/^[a-z]{3,4}_[0-9a-f]{24}$/,Xve=r({id:e().regex($S).describe("Unique resource identifier")}),Yve=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this advance invoice\n- `document_relations` - Linked documents (invoices, credit notes, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`")}),xve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),MS=36,zS=100,kS=2,US=2,mS="iban",ZS=36,CS=2,jS=2,pS="iban",fS=-140737488355328,lS=140737488355327,hS=-140737488355328,iS=140737488355327,dS=3,aS=36,sS=-2147483648,eg=2147483647,og=64,cg=-140737488355328,rg=140737488355327,vg=-140737488355328,ng=140737488355327,Ag=-140737488355328,Ig=140737488355327,Sg=-140737488355328,gg=140737488355327,Pg=0,_g=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Eg=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Dg=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Og=36,bg=500,Tg=-140737488355328,qg=140737488355327,Ng=50,Gg=0,ug="percent",Jg=5,tg=-140737488355328,Bg=140737488355327,Rg=-140737488355328,Lg=140737488355327,Hg=-140737488355328,Wg=140737488355327,Qg=-140737488355328,wg=140737488355327,Xg=36,Yg=36,xg=36,Kve=r({id:e().max(MS),number:e().max(zS),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(kS).max(US).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(mS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(ZS).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(CS).max(jS).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(pS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(fS).max(lS),total_with_tax:v().min(hS).max(iS),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(dS),entity_id:e().max(aS),date_year:v().min(sS).max(eg),shareable_id:e().max(og).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(cg).max(rg).nullish(),total_with_tax_converted:v().min(vg).max(ng).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(Ag).max(Ig),total_due:v().min(Sg).max(gg),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(Pg),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(_g).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Eg).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Dg).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(Og),name:e().max(bg),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
54
- Only present if user originally sent gross price.
55
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(Tg).max(qg),unit:e().max(Ng).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Gg).describe("Discount value"),type:g(["percent","amount"]).default(ug).describe("Discount type: 'percent' (default) or 'amount'")})).max(Jg).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(tg).max(Bg),total_with_tax:v().min(Rg).max(Lg),total_converted:v().min(Hg).max(Wg).nullish(),total_with_tax_converted:v().min(Qg).max(wg).nullish(),advance_invoice_id:e().max(Xg).nullish(),delivery_note_id:e().max(Yg).nullish(),item_id:e().max(xg).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments"),Kg=/^[a-z]{3,4}_[0-9a-f]{24}$/,yve=r({id:e().regex(Kg).describe("Unique resource identifier")}),Vve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yg=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Vg=2,Fg=2,$g="iban",Mg=2,zg=2,kg="iban",Ug=!0,mg=2000,Zg=-140737488355328,Cg=140737488355327,jg=50,pg=0,fg="percent",lg=5,hg=!0,ig=500,Fve=r({date:e().regex(yg).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Vg).max(Fg).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default($g).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(T().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Mg).max(zg).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(kg).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Ug).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(mg).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(Zg).max(Cg),unit:e().max(jg).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(pg).describe("Discount value"),type:g(["percent","amount"]).default(fg).describe("Discount type: 'percent' (default) or 'amount'")})).max(lg).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
56
- When provided, the item's name, description, price, and taxes are used as defaults.
57
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(hg).describe(`Whether to save this item to the catalog.
58
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
59
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:D(e(),T()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(ig).optional().describe("Reason for the change. Stored in version history for audit trail."),linked_documents:P(e().min(1)).optional().describe("Link this advance invoice to other documents. Replaces existing links. Accepts invoice IDs (inv_xxx).")}),dg=36,ag=100,sg=2,eP=2,oP="iban",cP=36,rP=2,vP=2,nP="iban",AP=-140737488355328,IP=140737488355327,SP=-140737488355328,gP=140737488355327,PP=3,_P=36,EP=-2147483648,DP=2147483647,OP=64,bP=-140737488355328,TP=140737488355327,qP=-140737488355328,NP=140737488355327,GP=-140737488355328,uP=140737488355327,JP=-140737488355328,tP=140737488355327,BP=0,RP=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,LP=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,HP=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,WP=36,QP=500,wP=-140737488355328,XP=140737488355327,YP=50,xP=0,KP="percent",yP=5,VP=-140737488355328,FP=140737488355327,$P=-140737488355328,MP=140737488355327,zP=-140737488355328,kP=140737488355327,UP=-140737488355328,mP=140737488355327,ZP=36,CP=36,jP=36,$ve=r({id:e().max(dg),number:e().max(ag),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(sg).max(eP).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(oP).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(cP).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(rP).max(vP).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(nP).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(AP).max(IP),total_with_tax:v().min(SP).max(gP),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(PP),entity_id:e().max(_P),date_year:v().min(EP).max(DP),shareable_id:e().max(OP).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(bP).max(TP).nullish(),total_with_tax_converted:v().min(qP).max(NP).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(GP).max(uP),total_due:v().min(JP).max(tP),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(BP),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(RP).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(LP).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(HP).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(WP),name:e().max(QP),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
60
- Only present if user originally sent gross price.
61
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(wP).max(XP),unit:e().max(YP).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(xP).describe("Discount value"),type:g(["percent","amount"]).default(KP).describe("Discount type: 'percent' (default) or 'amount'")})).max(yP).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(VP).max(FP),total_with_tax:v().min($P).max(MP),total_converted:v().min(zP).max(kP).nullish(),total_with_tax_converted:v().min(UP).max(mP).nullish(),advance_invoice_id:e().max(ZP).nullish(),delivery_note_id:e().max(CP).nullish(),item_id:e().max(jP).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments"),pP=/^[a-z]{3,4}_[0-9a-f]{24}$/,Mve=r({id:e().regex(pP).describe("Unique resource identifier")}),zve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),kve=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),Uve=r({id:e().describe("Advance Invoice ID"),version:v().min(1).describe("Version number")}),mve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Zve=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),fP=2,lP=5,hP="true",Cve=r({template:g(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e().min(fP).max(lP).nullish(),partial:g(["true","false"]).default(hP).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),jve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),iP=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,dP=2,aP=2,sP="iban",e_=2,o_=2,c_="iban",r_=!0,v_=3,n_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,A_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,I_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,S_=20,g_=/^[0-9a-zA-Z]{1,20}$/,P_=20,__=/^\d{1,20}$/,E_=11,D_=11,O_=0,b_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,T_=2,q_=2,N_="iban",G_=2,u_=2,J_="iban",t_=!0,B_=3,R_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,L_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,H_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,W_=2000,Q_=-140737488355328,w_=140737488355327,X_=50,Y_=0,x_="percent",K_=5,y_=!0,V_=20,F_=/^[0-9a-zA-Z]{1,20}$/,$_=20,M_=/^\d{1,20}$/,z_=11,k_=11,U_=0,pve=t([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(iP).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(dP).max(aP).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(sP).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(e_).max(o_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(c_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(r_).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(v_).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(n_).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(A_).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(I_).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:D(e(),e()).optional()})).min(1),fina:r({premise_id:e().min(1).max(S_).regex(g_).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(P_).regex(__).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(E_).max(D_).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(O_).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(b_).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(T_).max(q_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(N_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(G_).max(u_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(J_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(t_).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(B_).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(R_).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(L_).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(H_).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(W_).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(Q_).max(w_),unit:e().max(X_).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Y_).describe("Discount value"),type:g(["percent","amount"]).default(x_).describe("Discount type: 'percent' (default) or 'amount'")})).max(K_).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
62
- When provided, the item's name, description, price, and taxes are used as defaults.
63
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(y_).describe(`Whether to save this item to the catalog.
64
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
65
- Default: true.`)})).min(1).describe("Line items for the advance invoice. At least one item is required."),fina:r({premise_id:e().min(1).max(V_).regex(F_).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max($_).regex(M_).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(z_).max(k_).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(U_).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]),m_=/^[a-z]{3,4}_[0-9a-f]{24}$/,fve=r({id:e().regex(m_).describe("Unique resource identifier")}),lve=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),hve=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate advance invoice', 'Technical error')")}),Z_=36,C_=100,j_=2,p_=2,f_="iban",l_=36,h_=2,i_=2,d_="iban",a_=-140737488355328,s_=140737488355327,eE=-140737488355328,oE=140737488355327,cE=3,rE=36,vE=-2147483648,nE=2147483647,AE=64,IE=-140737488355328,SE=140737488355327,gE=-140737488355328,PE=140737488355327,_E=-140737488355328,EE=140737488355327,DE=-140737488355328,OE=140737488355327,bE=0,TE=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,qE=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,NE=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,GE=36,uE=500,JE=-140737488355328,tE=140737488355327,BE=50,RE=0,LE="percent",HE=5,WE=-140737488355328,QE=140737488355327,wE=-140737488355328,XE=140737488355327,YE=-140737488355328,xE=140737488355327,KE=-140737488355328,yE=140737488355327,VE=36,FE=36,$E=36,ive=r({id:e().max(Z_),number:e().max(C_),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(j_).max(p_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(f_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(l_).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(h_).max(i_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(d_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(a_).max(s_),total_with_tax:v().min(eE).max(oE),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(cE),entity_id:e().max(rE),date_year:v().min(vE).max(nE),shareable_id:e().max(AE).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(IE).max(SE).nullish(),total_with_tax_converted:v().min(gE).max(PE).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(_E).max(EE),total_due:v().min(DE).max(OE),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(bE),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(TE).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(qE).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(NE).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(GE),name:e().max(uE),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
66
- Only present if user originally sent gross price.
67
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(JE).max(tE),unit:e().max(BE).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(RE).describe("Discount value"),type:g(["percent","amount"]).default(LE).describe("Discount type: 'percent' (default) or 'amount'")})).max(HE).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(WE).max(QE),total_with_tax:v().min(wE).max(XE),total_converted:v().min(YE).max(xE).nullish(),total_with_tax_converted:v().min(KE).max(yE).nullish(),advance_invoice_id:e().max(VE).nullish(),delivery_note_id:e().max(FE).nullish(),item_id:e().max($E).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments");var Ho={};Q(Ho,{searchCompanyRegistryResponseDataItemCountryCodeMin:()=>UE,searchCompanyRegistryResponseDataItemCountryCodeMax:()=>mE,searchCompanyRegistryQueryQMin:()=>kE,searchCompanyRegistryQueryCountryCodeMin:()=>ME,searchCompanyRegistryQueryCountryCodeMax:()=>zE,getSupportedCountriesResponseDataItemMin:()=>ZE,getSupportedCountriesResponseDataItemMax:()=>CE,SearchCompanyRegistryResponse:()=>ave,SearchCompanyRegistryQueryParams:()=>dve,GetSupportedCountriesResponse:()=>sve});var ME=2,zE=2,kE=2,dve=r({country_code:e().min(ME).max(zE).describe("ISO 3166-1 alpha-2 country code to search in (e.g., SI, AT, HR)"),q:e().min(kE).describe("Search query - company name or tax number (min 2 characters)"),limit:e().optional().describe("Maximum number of results (default: 10, max: 50)")}),UE=2,mE=2,ave=r({data:P(r({id:e(),country_code:e().min(UE).max(mE),registration_number:e(),tax_number:e().nullable(),name:e(),address:e().nullable(),post_code:e().nullable(),city:e().nullable(),legal_form:e().nullable(),bank_accounts:P(r({iban:e().describe("IBAN or bank account number"),bank:e().optional().describe("Bank name or code"),is_active:A().optional().describe("Whether this account is currently active")})),status:e()}).describe("Company from public registry for autocomplete"))}),ZE=2,CE=2,sve=r({data:P(e().min(ZE).max(CE))}).describe("List of country codes with registry data available");var Wo={};Q(Wo,{voidCreditNoteResponseTotalWithTaxMin:()=>nN,voidCreditNoteResponseTotalWithTaxMax:()=>AN,voidCreditNoteResponseTotalWithTaxConvertedMin:()=>ON,voidCreditNoteResponseTotalWithTaxConvertedMax:()=>bN,voidCreditNoteResponseTotalPaidMin:()=>TN,voidCreditNoteResponseTotalPaidMax:()=>qN,voidCreditNoteResponseTotalMin:()=>rN,voidCreditNoteResponseTotalMax:()=>vN,voidCreditNoteResponseTotalDueMin:()=>NN,voidCreditNoteResponseTotalDueMax:()=>GN,voidCreditNoteResponseTotalConvertedMin:()=>EN,voidCreditNoteResponseTotalConvertedMax:()=>DN,voidCreditNoteResponseShareableIdMax:()=>_N,voidCreditNoteResponseNumberMax:()=>hq,voidCreditNoteResponseItemsItemUnitMax:()=>QN,voidCreditNoteResponseItemsItemTotalWithTaxMin:()=>yN,voidCreditNoteResponseItemsItemTotalWithTaxMax:()=>VN,voidCreditNoteResponseItemsItemTotalWithTaxConvertedMin:()=>MN,voidCreditNoteResponseItemsItemTotalWithTaxConvertedMax:()=>zN,voidCreditNoteResponseItemsItemTotalMin:()=>xN,voidCreditNoteResponseItemsItemTotalMax:()=>KN,voidCreditNoteResponseItemsItemTotalConvertedMin:()=>FN,voidCreditNoteResponseItemsItemTotalConvertedMax:()=>$N,voidCreditNoteResponseItemsItemQuantityMin:()=>HN,voidCreditNoteResponseItemsItemQuantityMax:()=>WN,voidCreditNoteResponseItemsItemNameMax:()=>LN,voidCreditNoteResponseItemsItemItemIdMax:()=>ZN,voidCreditNoteResponseItemsItemIdMax:()=>RN,voidCreditNoteResponseItemsItemDiscountsMax:()=>YN,voidCreditNoteResponseItemsItemDiscountsItemValueMin:()=>wN,voidCreditNoteResponseItemsItemDiscountsItemTypeDefault:()=>XN,voidCreditNoteResponseItemsItemDeliveryNoteIdMax:()=>mN,voidCreditNoteResponseItemsItemCreditNoteIdMax:()=>kN,voidCreditNoteResponseItemsItemAdvanceInvoiceIdMax:()=>UN,voidCreditNoteResponseIssuerCountryCodeMin:()=>iq,voidCreditNoteResponseIssuerCountryCodeMax:()=>dq,voidCreditNoteResponseIssuerBankAccountTypeDefault:()=>aq,voidCreditNoteResponseIdMax:()=>lq,voidCreditNoteResponseFursDataIterationDefault:()=>uN,voidCreditNoteResponseEntityIdMax:()=>SN,voidCreditNoteResponseDateYearMin:()=>gN,voidCreditNoteResponseDateYearMax:()=>PN,voidCreditNoteResponseDateServiceToRegExp:()=>BN,voidCreditNoteResponseDateServiceRegExp:()=>tN,voidCreditNoteResponseDateDueRegExp:()=>JN,voidCreditNoteResponseCustomerIdMax:()=>sq,voidCreditNoteResponseCustomerCountryCodeMin:()=>eN,voidCreditNoteResponseCustomerCountryCodeMax:()=>oN,voidCreditNoteResponseCustomerBankAccountTypeDefault:()=>cN,voidCreditNoteResponseCurrencyCodeMax:()=>IN,voidCreditNotePathIdRegExp:()=>fq,updateCreditNoteResponseTotalWithTaxMin:()=>ET,updateCreditNoteResponseTotalWithTaxMax:()=>DT,updateCreditNoteResponseTotalWithTaxConvertedMin:()=>JT,updateCreditNoteResponseTotalWithTaxConvertedMax:()=>tT,updateCreditNoteResponseTotalPaidMin:()=>BT,updateCreditNoteResponseTotalPaidMax:()=>RT,updateCreditNoteResponseTotalMin:()=>PT,updateCreditNoteResponseTotalMax:()=>_T,updateCreditNoteResponseTotalDueMin:()=>LT,updateCreditNoteResponseTotalDueMax:()=>HT,updateCreditNoteResponseTotalConvertedMin:()=>GT,updateCreditNoteResponseTotalConvertedMax:()=>uT,updateCreditNoteResponseShareableIdMax:()=>NT,updateCreditNoteResponseNumberMax:()=>cT,updateCreditNoteResponseItemsItemUnitMax:()=>VT,updateCreditNoteResponseItemsItemTotalWithTaxMin:()=>UT,updateCreditNoteResponseItemsItemTotalWithTaxMax:()=>mT,updateCreditNoteResponseItemsItemTotalWithTaxConvertedMin:()=>jT,updateCreditNoteResponseItemsItemTotalWithTaxConvertedMax:()=>pT,updateCreditNoteResponseItemsItemTotalMin:()=>zT,updateCreditNoteResponseItemsItemTotalMax:()=>kT,updateCreditNoteResponseItemsItemTotalConvertedMin:()=>ZT,updateCreditNoteResponseItemsItemTotalConvertedMax:()=>CT,updateCreditNoteResponseItemsItemQuantityMin:()=>KT,updateCreditNoteResponseItemsItemQuantityMax:()=>yT,updateCreditNoteResponseItemsItemNameMax:()=>xT,updateCreditNoteResponseItemsItemItemIdMax:()=>iT,updateCreditNoteResponseItemsItemIdMax:()=>YT,updateCreditNoteResponseItemsItemDiscountsMax:()=>MT,updateCreditNoteResponseItemsItemDiscountsItemValueMin:()=>FT,updateCreditNoteResponseItemsItemDiscountsItemTypeDefault:()=>$T,updateCreditNoteResponseItemsItemDeliveryNoteIdMax:()=>hT,updateCreditNoteResponseItemsItemCreditNoteIdMax:()=>fT,updateCreditNoteResponseItemsItemAdvanceInvoiceIdMax:()=>lT,updateCreditNoteResponseIssuerCountryCodeMin:()=>rT,updateCreditNoteResponseIssuerCountryCodeMax:()=>vT,updateCreditNoteResponseIssuerBankAccountTypeDefault:()=>nT,updateCreditNoteResponseIdMax:()=>oT,updateCreditNoteResponseFursDataIterationDefault:()=>WT,updateCreditNoteResponseEntityIdMax:()=>bT,updateCreditNoteResponseDateYearMin:()=>TT,updateCreditNoteResponseDateYearMax:()=>qT,updateCreditNoteResponseDateServiceToRegExp:()=>XT,updateCreditNoteResponseDateServiceRegExp:()=>wT,updateCreditNoteResponseDateDueRegExp:()=>QT,updateCreditNoteResponseCustomerIdMax:()=>AT,updateCreditNoteResponseCustomerCountryCodeMin:()=>IT,updateCreditNoteResponseCustomerCountryCodeMax:()=>ST,updateCreditNoteResponseCustomerBankAccountTypeDefault:()=>gT,updateCreditNoteResponseCurrencyCodeMax:()=>OT,updateCreditNotePathIdRegExp:()=>$2,updateCreditNoteBodyItemsItemUnitMax:()=>h2,updateCreditNoteBodyItemsItemSaveItemDefault:()=>s2,updateCreditNoteBodyItemsItemQuantityMin:()=>f2,updateCreditNoteBodyItemsItemQuantityMax:()=>l2,updateCreditNoteBodyItemsItemDiscountsMax:()=>a2,updateCreditNoteBodyItemsItemDiscountsItemValueMin:()=>i2,updateCreditNoteBodyItemsItemDiscountsItemTypeDefault:()=>d2,updateCreditNoteBodyItemsItemDescriptionMax:()=>p2,updateCreditNoteBodyIssuerOneCountryCodeMin:()=>z2,updateCreditNoteBodyIssuerOneCountryCodeMax:()=>k2,updateCreditNoteBodyIssuerOneBankAccountTypeDefault:()=>U2,updateCreditNoteBodyDateRegExp:()=>M2,updateCreditNoteBodyCustomerTwoSaveCustomerDefault:()=>j2,updateCreditNoteBodyCustomerOneCountryCodeMin:()=>m2,updateCreditNoteBodyCustomerOneCountryCodeMax:()=>Z2,updateCreditNoteBodyCustomerOneBankAccountTypeDefault:()=>C2,updateCreditNoteBodyChangeReasonMax:()=>eT,renderCreditNotePreviewQueryPartialDefault:()=>eq,renderCreditNotePreviewQueryLocaleMin:()=>aT,renderCreditNotePreviewQueryLocaleMax:()=>sT,renderCreditNotePreviewBodyTwoItemsItemUnitMax:()=>Vq,renderCreditNotePreviewBodyTwoItemsItemSaveItemDefault:()=>zq,renderCreditNotePreviewBodyTwoItemsItemQuantityMin:()=>Kq,renderCreditNotePreviewBodyTwoItemsItemQuantityMax:()=>yq,renderCreditNotePreviewBodyTwoItemsItemDiscountsMax:()=>Mq,renderCreditNotePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>Fq,renderCreditNotePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>$q,renderCreditNotePreviewBodyTwoItemsItemDescriptionMax:()=>xq,renderCreditNotePreviewBodyTwoIssuerCountryCodeMin:()=>Jq,renderCreditNotePreviewBodyTwoIssuerCountryCodeMax:()=>tq,renderCreditNotePreviewBodyTwoIssuerBankAccountTypeDefault:()=>Bq,renderCreditNotePreviewBodyTwoFinaPremiseIdRegExp:()=>Uq,renderCreditNotePreviewBodyTwoFinaPremiseIdMax:()=>kq,renderCreditNotePreviewBodyTwoFinaOperatorOibMin:()=>Cq,renderCreditNotePreviewBodyTwoFinaOperatorOibMax:()=>jq,renderCreditNotePreviewBodyTwoFinaDeviceIdRegExp:()=>Zq,renderCreditNotePreviewBodyTwoFinaDeviceIdMax:()=>mq,renderCreditNotePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>pq,renderCreditNotePreviewBodyTwoDateServiceToRegExp:()=>Yq,renderCreditNotePreviewBodyTwoDateServiceRegExp:()=>Xq,renderCreditNotePreviewBodyTwoDateRegExp:()=>uq,renderCreditNotePreviewBodyTwoDateDueRegExp:()=>wq,renderCreditNotePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>Wq,renderCreditNotePreviewBodyTwoCustomerOneCountryCodeMin:()=>Rq,renderCreditNotePreviewBodyTwoCustomerOneCountryCodeMax:()=>Lq,renderCreditNotePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>Hq,renderCreditNotePreviewBodyTwoCurrencyCodeMax:()=>Qq,renderCreditNotePreviewBodyOneIssuerCountryCodeMin:()=>cq,renderCreditNotePreviewBodyOneIssuerCountryCodeMax:()=>rq,renderCreditNotePreviewBodyOneIssuerBankAccountTypeDefault:()=>vq,renderCreditNotePreviewBodyOneFinaPremiseIdRegExp:()=>Oq,renderCreditNotePreviewBodyOneFinaPremiseIdMax:()=>Dq,renderCreditNotePreviewBodyOneFinaOperatorOibMin:()=>qq,renderCreditNotePreviewBodyOneFinaOperatorOibMax:()=>Nq,renderCreditNotePreviewBodyOneFinaDeviceIdRegExp:()=>Tq,renderCreditNotePreviewBodyOneFinaDeviceIdMax:()=>bq,renderCreditNotePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>Gq,renderCreditNotePreviewBodyOneDateServiceToRegExp:()=>Eq,renderCreditNotePreviewBodyOneDateServiceRegExp:()=>_q,renderCreditNotePreviewBodyOneDateRegExp:()=>oq,renderCreditNotePreviewBodyOneDateDueRegExp:()=>Pq,renderCreditNotePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>Sq,renderCreditNotePreviewBodyOneCustomerOneCountryCodeMin:()=>nq,renderCreditNotePreviewBodyOneCustomerOneCountryCodeMax:()=>Aq,renderCreditNotePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>Iq,renderCreditNotePreviewBodyOneCurrencyCodeMax:()=>gq,getShareableCreditNoteResponseTotalWithTaxMin:()=>cD,getShareableCreditNoteResponseTotalWithTaxMax:()=>rD,getShareableCreditNoteResponseTotalWithTaxConvertedMin:()=>_D,getShareableCreditNoteResponseTotalWithTaxConvertedMax:()=>ED,getShareableCreditNoteResponseTotalPaidMin:()=>DD,getShareableCreditNoteResponseTotalPaidMax:()=>OD,getShareableCreditNoteResponseTotalMin:()=>eD,getShareableCreditNoteResponseTotalMax:()=>oD,getShareableCreditNoteResponseTotalDueMin:()=>bD,getShareableCreditNoteResponseTotalDueMax:()=>TD,getShareableCreditNoteResponseTotalConvertedMin:()=>gD,getShareableCreditNoteResponseTotalConvertedMax:()=>PD,getShareableCreditNoteResponseShareableIdMax:()=>SD,getShareableCreditNoteResponseNumberMax:()=>pE,getShareableCreditNoteResponseItemsItemUnitMax:()=>LD,getShareableCreditNoteResponseItemsItemTotalWithTaxMin:()=>YD,getShareableCreditNoteResponseItemsItemTotalWithTaxMax:()=>xD,getShareableCreditNoteResponseItemsItemTotalWithTaxConvertedMin:()=>VD,getShareableCreditNoteResponseItemsItemTotalWithTaxConvertedMax:()=>FD,getShareableCreditNoteResponseItemsItemTotalMin:()=>wD,getShareableCreditNoteResponseItemsItemTotalMax:()=>XD,getShareableCreditNoteResponseItemsItemTotalConvertedMin:()=>KD,getShareableCreditNoteResponseItemsItemTotalConvertedMax:()=>yD,getShareableCreditNoteResponseItemsItemQuantityMin:()=>BD,getShareableCreditNoteResponseItemsItemQuantityMax:()=>RD,getShareableCreditNoteResponseItemsItemNameMax:()=>tD,getShareableCreditNoteResponseItemsItemItemIdMax:()=>kD,getShareableCreditNoteResponseItemsItemIdMax:()=>JD,getShareableCreditNoteResponseItemsItemDiscountsMax:()=>QD,getShareableCreditNoteResponseItemsItemDiscountsItemValueMin:()=>HD,getShareableCreditNoteResponseItemsItemDiscountsItemTypeDefault:()=>WD,getShareableCreditNoteResponseItemsItemDeliveryNoteIdMax:()=>zD,getShareableCreditNoteResponseItemsItemCreditNoteIdMax:()=>$D,getShareableCreditNoteResponseItemsItemAdvanceInvoiceIdMax:()=>MD,getShareableCreditNoteResponseIssuerCountryCodeMin:()=>fE,getShareableCreditNoteResponseIssuerCountryCodeMax:()=>lE,getShareableCreditNoteResponseIssuerBankAccountTypeDefault:()=>hE,getShareableCreditNoteResponseIdMax:()=>jE,getShareableCreditNoteResponseFursDataIterationDefault:()=>qD,getShareableCreditNoteResponseEntityIdMax:()=>nD,getShareableCreditNoteResponseDateYearMin:()=>AD,getShareableCreditNoteResponseDateYearMax:()=>ID,getShareableCreditNoteResponseDateServiceToRegExp:()=>uD,getShareableCreditNoteResponseDateServiceRegExp:()=>GD,getShareableCreditNoteResponseDateDueRegExp:()=>ND,getShareableCreditNoteResponseCustomerIdMax:()=>iE,getShareableCreditNoteResponseCustomerCountryCodeMin:()=>dE,getShareableCreditNoteResponseCustomerCountryCodeMax:()=>aE,getShareableCreditNoteResponseCustomerBankAccountTypeDefault:()=>sE,getShareableCreditNoteResponseCurrencyCodeMax:()=>vD,getCreditNotesResponseDataItemTotalWithTaxMin:()=>YO,getCreditNotesResponseDataItemTotalWithTaxMax:()=>xO,getCreditNotesResponseDataItemTotalWithTaxConvertedMin:()=>kO,getCreditNotesResponseDataItemTotalWithTaxConvertedMax:()=>UO,getCreditNotesResponseDataItemTotalPaidMin:()=>mO,getCreditNotesResponseDataItemTotalPaidMax:()=>ZO,getCreditNotesResponseDataItemTotalMin:()=>wO,getCreditNotesResponseDataItemTotalMax:()=>XO,getCreditNotesResponseDataItemTotalDueMin:()=>CO,getCreditNotesResponseDataItemTotalDueMax:()=>jO,getCreditNotesResponseDataItemTotalConvertedMin:()=>MO,getCreditNotesResponseDataItemTotalConvertedMax:()=>zO,getCreditNotesResponseDataItemShareableIdMax:()=>$O,getCreditNotesResponseDataItemNumberMax:()=>JO,getCreditNotesResponseDataItemItemsItemUnitMax:()=>eb,getCreditNotesResponseDataItemItemsItemTotalWithTaxMin:()=>Ab,getCreditNotesResponseDataItemItemsItemTotalWithTaxMax:()=>Ib,getCreditNotesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>Pb,getCreditNotesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>_b,getCreditNotesResponseDataItemItemsItemTotalMin:()=>vb,getCreditNotesResponseDataItemItemsItemTotalMax:()=>nb,getCreditNotesResponseDataItemItemsItemTotalConvertedMin:()=>Sb,getCreditNotesResponseDataItemItemsItemTotalConvertedMax:()=>gb,getCreditNotesResponseDataItemItemsItemQuantityMin:()=>aO,getCreditNotesResponseDataItemItemsItemQuantityMax:()=>sO,getCreditNotesResponseDataItemItemsItemNameMax:()=>dO,getCreditNotesResponseDataItemItemsItemItemIdMax:()=>bb,getCreditNotesResponseDataItemItemsItemIdMax:()=>iO,getCreditNotesResponseDataItemItemsItemDiscountsMax:()=>rb,getCreditNotesResponseDataItemItemsItemDiscountsItemValueMin:()=>ob,getCreditNotesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>cb,getCreditNotesResponseDataItemItemsItemDeliveryNoteIdMax:()=>Ob,getCreditNotesResponseDataItemItemsItemCreditNoteIdMax:()=>Eb,getCreditNotesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>Db,getCreditNotesResponseDataItemIssuerCountryCodeMin:()=>tO,getCreditNotesResponseDataItemIssuerCountryCodeMax:()=>BO,getCreditNotesResponseDataItemIssuerBankAccountTypeDefault:()=>RO,getCreditNotesResponseDataItemIdMax:()=>uO,getCreditNotesResponseDataItemFursDataIterationDefault:()=>pO,getCreditNotesResponseDataItemEntityIdMax:()=>yO,getCreditNotesResponseDataItemDateYearMin:()=>VO,getCreditNotesResponseDataItemDateYearMax:()=>FO,getCreditNotesResponseDataItemDateServiceToRegExp:()=>hO,getCreditNotesResponseDataItemDateServiceRegExp:()=>lO,getCreditNotesResponseDataItemDateDueRegExp:()=>fO,getCreditNotesResponseDataItemCustomerIdMax:()=>LO,getCreditNotesResponseDataItemCustomerCountryCodeMin:()=>HO,getCreditNotesResponseDataItemCustomerCountryCodeMax:()=>WO,getCreditNotesResponseDataItemCustomerBankAccountTypeDefault:()=>QO,getCreditNotesResponseDataItemCurrencyCodeMax:()=>KO,getCreditNotesQueryLimitMax:()=>GO,getCreditNotesQueryLimitDefault:()=>NO,getCreditNoteVersionsPathIdRegExp:()=>dT,getCreditNoteByIdResponseTotalWithTaxMin:()=>ab,getCreditNoteByIdResponseTotalWithTaxMax:()=>sb,getCreditNoteByIdResponseTotalWithTaxConvertedMin:()=>I2,getCreditNoteByIdResponseTotalWithTaxConvertedMax:()=>S2,getCreditNoteByIdResponseTotalPaidMin:()=>g2,getCreditNoteByIdResponseTotalPaidMax:()=>P2,getCreditNoteByIdResponseTotalMin:()=>ib,getCreditNoteByIdResponseTotalMax:()=>db,getCreditNoteByIdResponseTotalDueMin:()=>_2,getCreditNoteByIdResponseTotalDueMax:()=>E2,getCreditNoteByIdResponseTotalConvertedMin:()=>n2,getCreditNoteByIdResponseTotalConvertedMax:()=>A2,getCreditNoteByIdResponseShareableIdMax:()=>v2,getCreditNoteByIdResponseNumberMax:()=>mb,getCreditNoteByIdResponseItemsItemUnitMax:()=>J2,getCreditNoteByIdResponseItemsItemTotalWithTaxMin:()=>W2,getCreditNoteByIdResponseItemsItemTotalWithTaxMax:()=>Q2,getCreditNoteByIdResponseItemsItemTotalWithTaxConvertedMin:()=>Y2,getCreditNoteByIdResponseItemsItemTotalWithTaxConvertedMax:()=>x2,getCreditNoteByIdResponseItemsItemTotalMin:()=>L2,getCreditNoteByIdResponseItemsItemTotalMax:()=>H2,getCreditNoteByIdResponseItemsItemTotalConvertedMin:()=>w2,getCreditNoteByIdResponseItemsItemTotalConvertedMax:()=>X2,getCreditNoteByIdResponseItemsItemQuantityMin:()=>G2,getCreditNoteByIdResponseItemsItemQuantityMax:()=>u2,getCreditNoteByIdResponseItemsItemNameMax:()=>N2,getCreditNoteByIdResponseItemsItemItemIdMax:()=>F2,getCreditNoteByIdResponseItemsItemIdMax:()=>q2,getCreditNoteByIdResponseItemsItemDiscountsMax:()=>R2,getCreditNoteByIdResponseItemsItemDiscountsItemValueMin:()=>t2,getCreditNoteByIdResponseItemsItemDiscountsItemTypeDefault:()=>B2,getCreditNoteByIdResponseItemsItemDeliveryNoteIdMax:()=>V2,getCreditNoteByIdResponseItemsItemCreditNoteIdMax:()=>K2,getCreditNoteByIdResponseItemsItemAdvanceInvoiceIdMax:()=>y2,getCreditNoteByIdResponseIssuerCountryCodeMin:()=>Zb,getCreditNoteByIdResponseIssuerCountryCodeMax:()=>Cb,getCreditNoteByIdResponseIssuerBankAccountTypeDefault:()=>jb,getCreditNoteByIdResponseIdMax:()=>Ub,getCreditNoteByIdResponseFursDataIterationDefault:()=>D2,getCreditNoteByIdResponseEntityIdMax:()=>o2,getCreditNoteByIdResponseDateYearMin:()=>c2,getCreditNoteByIdResponseDateYearMax:()=>r2,getCreditNoteByIdResponseDateServiceToRegExp:()=>T2,getCreditNoteByIdResponseDateServiceRegExp:()=>b2,getCreditNoteByIdResponseDateDueRegExp:()=>O2,getCreditNoteByIdResponseCustomerIdMax:()=>pb,getCreditNoteByIdResponseCustomerCountryCodeMin:()=>fb,getCreditNoteByIdResponseCustomerCountryCodeMax:()=>lb,getCreditNoteByIdResponseCustomerBankAccountTypeDefault:()=>hb,getCreditNoteByIdResponseCurrencyCodeMax:()=>e2,getCreditNoteByIdPathIdRegExp:()=>kb,createCustomCreditNoteBodyPaymentsItemTagMax:()=>$b,createCustomCreditNoteBodyPaymentsItemReferenceMax:()=>Mb,createCustomCreditNoteBodyPaymentsItemNoteMax:()=>zb,createCustomCreditNoteBodyPaymentsItemAmountExclusiveMin:()=>Fb,createCustomCreditNoteBodyItemsItemUnitMax:()=>Yb,createCustomCreditNoteBodyItemsItemSaveItemDefault:()=>Vb,createCustomCreditNoteBodyItemsItemQuantityMin:()=>wb,createCustomCreditNoteBodyItemsItemQuantityMax:()=>Xb,createCustomCreditNoteBodyItemsItemDiscountsMax:()=>yb,createCustomCreditNoteBodyItemsItemDiscountsItemValueMin:()=>xb,createCustomCreditNoteBodyItemsItemDiscountsItemTypeDefault:()=>Kb,createCustomCreditNoteBodyItemsItemDescriptionMax:()=>Qb,createCustomCreditNoteBodyIssuerCountryCodeMin:()=>qb,createCustomCreditNoteBodyIssuerCountryCodeMax:()=>Nb,createCustomCreditNoteBodyIssuerBankAccountTypeDefault:()=>Gb,createCustomCreditNoteBodyDateServiceToRegExp:()=>Wb,createCustomCreditNoteBodyDateServiceRegExp:()=>Hb,createCustomCreditNoteBodyDateRegExp:()=>Tb,createCustomCreditNoteBodyDateDueRegExp:()=>Lb,createCustomCreditNoteBodyCustomerTwoSaveCustomerDefault:()=>Bb,createCustomCreditNoteBodyCustomerOneCountryCodeMin:()=>ub,createCustomCreditNoteBodyCustomerOneCountryCodeMax:()=>Jb,createCustomCreditNoteBodyCustomerOneBankAccountTypeDefault:()=>tb,createCustomCreditNoteBodyCurrencyCodeMax:()=>Rb,createCreditNoteBodyPaymentsItemTagMax:()=>SO,createCreditNoteBodyPaymentsItemReferenceMax:()=>gO,createCreditNoteBodyPaymentsItemNoteMax:()=>PO,createCreditNoteBodyPaymentsItemAmountExclusiveMin:()=>IO,createCreditNoteBodyItemsItemUnitMax:()=>cO,createCreditNoteBodyItemsItemSaveItemDefault:()=>AO,createCreditNoteBodyItemsItemQuantityMin:()=>eO,createCreditNoteBodyItemsItemQuantityMax:()=>oO,createCreditNoteBodyItemsItemDiscountsMax:()=>nO,createCreditNoteBodyItemsItemDiscountsItemValueMin:()=>rO,createCreditNoteBodyItemsItemDiscountsItemTypeDefault:()=>vO,createCreditNoteBodyItemsItemDescriptionMax:()=>sD,createCreditNoteBodyIssuerCountryCodeMin:()=>mD,createCreditNoteBodyIssuerCountryCodeMax:()=>ZD,createCreditNoteBodyIssuerBankAccountTypeDefault:()=>CD,createCreditNoteBodyFinaPremiseIdRegExp:()=>EO,createCreditNoteBodyFinaPremiseIdMax:()=>_O,createCreditNoteBodyFinaOperatorOibMin:()=>bO,createCreditNoteBodyFinaOperatorOibMax:()=>TO,createCreditNoteBodyFinaDeviceIdRegExp:()=>OO,createCreditNoteBodyFinaDeviceIdMax:()=>DO,createCreditNoteBodyExpectedTotalWithTaxExclusiveMin:()=>qO,createCreditNoteBodyDateServiceToRegExp:()=>aD,createCreditNoteBodyDateServiceRegExp:()=>dD,createCreditNoteBodyDateRegExp:()=>UD,createCreditNoteBodyDateDueRegExp:()=>iD,createCreditNoteBodyCustomerTwoSaveCustomerDefault:()=>lD,createCreditNoteBodyCustomerOneCountryCodeMin:()=>jD,createCreditNoteBodyCustomerOneCountryCodeMax:()=>pD,createCreditNoteBodyCustomerOneBankAccountTypeDefault:()=>fD,createCreditNoteBodyCurrencyCodeMax:()=>hD,VoidCreditNoteResponse:()=>yne,VoidCreditNoteParams:()=>Yne,VoidCreditNoteHeader:()=>xne,VoidCreditNoteBody:()=>Kne,UpdateCreditNoteResponse:()=>Jne,UpdateCreditNoteParams:()=>Nne,UpdateCreditNoteHeader:()=>Gne,UpdateCreditNoteBody:()=>une,RenderCreditNotePreviewQueryParams:()=>Qne,RenderCreditNotePreviewHeader:()=>wne,RenderCreditNotePreviewBody:()=>Xne,GetShareableCreditNoteResponse:()=>one,GetShareableCreditNotePdfQueryParams:()=>nne,GetShareableCreditNotePdfParams:()=>vne,GetShareableCreditNoteParams:()=>ene,GetShareableCreditNoteHtmlQueryParams:()=>rne,GetShareableCreditNoteHtmlParams:()=>cne,GetShareableCreditNoteEslogParams:()=>Ane,GetCreditNotesResponse:()=>_ne,GetCreditNotesQueryParams:()=>gne,GetCreditNotesHeader:()=>Pne,GetCreditNoteVersionsResponse:()=>Rne,GetCreditNoteVersionsParams:()=>tne,GetCreditNoteVersionsHeader:()=>Bne,GetCreditNoteVersionResponse:()=>Wne,GetCreditNoteVersionParams:()=>Lne,GetCreditNoteVersionHeader:()=>Hne,GetCreditNoteByIdResponse:()=>qne,GetCreditNoteByIdQueryParams:()=>bne,GetCreditNoteByIdParams:()=>One,GetCreditNoteByIdHeader:()=>Tne,CreateCustomCreditNoteHeader:()=>Ene,CreateCustomCreditNoteBody:()=>Dne,CreateCreditNoteHeader:()=>Ine,CreateCreditNoteBody:()=>Sne});var ene=r({shareableId:e().describe("Shareable document token")}),jE=36,pE=100,fE=2,lE=2,hE="iban",iE=36,dE=2,aE=2,sE="iban",eD=-140737488355328,oD=140737488355327,cD=-140737488355328,rD=140737488355327,vD=3,nD=36,AD=-2147483648,ID=2147483647,SD=64,gD=-140737488355328,PD=140737488355327,_D=-140737488355328,ED=140737488355327,DD=-140737488355328,OD=140737488355327,bD=-140737488355328,TD=140737488355327,qD=0,ND=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,GD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,uD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,JD=36,tD=500,BD=-140737488355328,RD=140737488355327,LD=50,HD=0,WD="percent",QD=5,wD=-140737488355328,XD=140737488355327,YD=-140737488355328,xD=140737488355327,KD=-140737488355328,yD=140737488355327,VD=-140737488355328,FD=140737488355327,$D=36,MD=36,zD=36,kD=36,one=r({id:e().max(jE),number:e().max(pE),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(fE).max(lE).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(hE).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(iE).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(dE).max(aE).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(sE).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(eD).max(oD),total_with_tax:v().min(cD).max(rD),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(vD),entity_id:e().max(nD),date_year:v().min(AD).max(ID),shareable_id:e().max(SD).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(gD).max(PD).nullish(),total_with_tax_converted:v().min(_D).max(ED).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(DD).max(OD),total_due:v().min(bD).max(TD),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(qD),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(ND).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(GD).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(uD).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(JD),name:e().max(tD),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
68
- Only present if user originally sent gross price.
69
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(BD).max(RD),unit:e().max(LD).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(HD).describe("Discount value"),type:g(["percent","amount"]).default(WD).describe("Discount type: 'percent' (default) or 'amount'")})).max(QD).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(wD).max(XD),total_with_tax:v().min(YD).max(xD),total_converted:v().min(KD).max(yD).nullish(),total_with_tax_converted:v().min(VD).max(FD).nullish(),credit_note_id:e().max($D).nullish(),advance_invoice_id:e().max(MD).nullish(),delivery_note_id:e().max(zD).nullish(),item_id:e().max(kD).nullish(),metadata:D(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections"),cne=r({shareableId:e().describe("Shareable document token")}),rne=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),vne=r({shareableId:e().describe("Shareable document token")}),nne=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),Ane=r({shareableId:e().describe("Shareable document token")}),Ine=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),UD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,mD=2,ZD=2,CD="iban",jD=2,pD=2,fD="iban",lD=!0,hD=3,iD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,dD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,aD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,sD=2000,eO=-140737488355328,oO=140737488355327,cO=50,rO=0,vO="percent",nO=5,AO=!0,IO=0,SO=100,gO=100,PO=500,_O=20,EO=/^[0-9a-zA-Z]{1,20}$/,DO=20,OO=/^\d{1,20}$/,bO=11,TO=11,qO=0,Sne=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(UD).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(mD).max(ZD).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(CD).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(jD).max(pD).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(fD).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(lD).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(hD).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(iD).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(dD).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(aD).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(sD).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(eO).max(oO),unit:e().max(cO).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(rO).describe("Discount value"),type:g(["percent","amount"]).default(vO).describe("Discount type: 'percent' (default) or 'amount'")})).max(nO).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
70
- When provided, the item's name, description, price, and taxes are used as defaults.
71
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(AO).describe(`Whether to save this item to the catalog.
72
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
73
- Default: true.`)})).min(1).describe("Line items for the credit note. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices."),payments:P(r({amount:v().gt(IO).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(SO).nullish(),reference:e().max(gO).nullish(),note:e().max(PO).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the credit note. If amounts are not provided, the credit note total is split equally among all payments. Automatically updates credit note payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),fina:r({premise_id:e().min(1).max(_O).regex(EO).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(DO).regex(OO).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(bO).max(TO).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),expected_total_with_tax:v().gt(qO).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),NO=10,GO=100,gne=r({limit:v().min(1).max(GO).default(NO).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
74
- Searches are case-insensitive and match partial strings.
75
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this credit note\n- `document_relations` - Linked documents (invoices, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),Pne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uO=36,JO=100,tO=2,BO=2,RO="iban",LO=36,HO=2,WO=2,QO="iban",wO=-140737488355328,XO=140737488355327,YO=-140737488355328,xO=140737488355327,KO=3,yO=36,VO=-2147483648,FO=2147483647,$O=64,MO=-140737488355328,zO=140737488355327,kO=-140737488355328,UO=140737488355327,mO=-140737488355328,ZO=140737488355327,CO=-140737488355328,jO=140737488355327,pO=0,fO=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,lO=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,hO=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,iO=36,dO=500,aO=-140737488355328,sO=140737488355327,eb=50,ob=0,cb="percent",rb=5,vb=-140737488355328,nb=140737488355327,Ab=-140737488355328,Ib=140737488355327,Sb=-140737488355328,gb=140737488355327,Pb=-140737488355328,_b=140737488355327,Eb=36,Db=36,Ob=36,bb=36,_ne=r({data:P(r({id:e().max(uO),number:e().max(JO),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(tO).max(BO).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(RO).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(LO).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(HO).max(WO).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(QO).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(wO).max(XO),total_with_tax:v().min(YO).max(xO),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(KO),entity_id:e().max(yO),date_year:v().min(VO).max(FO),shareable_id:e().max($O).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(MO).max(zO).nullish(),total_with_tax_converted:v().min(kO).max(UO).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(mO).max(ZO),total_due:v().min(CO).max(jO),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(pO),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(fO).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(lO).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(hO).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(iO),name:e().max(dO),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
76
- Only present if user originally sent gross price.
77
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(aO).max(sO),unit:e().max(eb).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(ob).describe("Discount value"),type:g(["percent","amount"]).default(cb).describe("Discount type: 'percent' (default) or 'amount'")})).max(rb).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(vb).max(nb),total_with_tax:v().min(Ab).max(Ib),total_converted:v().min(Sb).max(gb).nullish(),total_with_tax_converted:v().min(Pb).max(_b).nullish(),credit_note_id:e().max(Eb).nullish(),advance_invoice_id:e().max(Db).nullish(),delivery_note_id:e().max(Ob).nullish(),item_id:e().max(bb).nullish(),metadata:D(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Ene=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Tb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,qb=2,Nb=2,Gb="iban",ub=2,Jb=2,tb="iban",Bb=!0,Rb=3,Lb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Hb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Wb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Qb=2000,wb=-140737488355328,Xb=140737488355327,Yb=50,xb=0,Kb="percent",yb=5,Vb=!0,Fb=0,$b=100,Mb=100,zb=500,Dne=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(Tb).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(qb).max(Nb).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Gb).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(ub).max(Jb).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(tb).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Bb).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(Rb).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(Lb).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Hb).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Wb).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(Qb).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(wb).max(Xb),unit:e().max(Yb).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(xb).describe("Discount value"),type:g(["percent","amount"]).default(Kb).describe("Discount type: 'percent' (default) or 'amount'")})).max(yb).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
78
- When provided, the item's name, description, price, and taxes are used as defaults.
79
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(Vb).describe(`Whether to save this item to the catalog.
80
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
81
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this credit note to invoices."),payments:P(r({amount:v().gt(Fb).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max($b).nullish(),reference:e().max(Mb).nullish(),note:e().max(zb).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the credit note. If amounts are not provided, the credit note total is split equally among all payments. Automatically updates credit note payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),kb=/^[a-z]{3,4}_[0-9a-f]{24}$/,One=r({id:e().regex(kb).describe("Unique resource identifier")}),bne=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this credit note\n- `document_relations` - Linked documents (invoices, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`")}),Tne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ub=36,mb=100,Zb=2,Cb=2,jb="iban",pb=36,fb=2,lb=2,hb="iban",ib=-140737488355328,db=140737488355327,ab=-140737488355328,sb=140737488355327,e2=3,o2=36,c2=-2147483648,r2=2147483647,v2=64,n2=-140737488355328,A2=140737488355327,I2=-140737488355328,S2=140737488355327,g2=-140737488355328,P2=140737488355327,_2=-140737488355328,E2=140737488355327,D2=0,O2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,b2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,T2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,q2=36,N2=500,G2=-140737488355328,u2=140737488355327,J2=50,t2=0,B2="percent",R2=5,L2=-140737488355328,H2=140737488355327,W2=-140737488355328,Q2=140737488355327,w2=-140737488355328,X2=140737488355327,Y2=-140737488355328,x2=140737488355327,K2=36,y2=36,V2=36,F2=36,qne=r({id:e().max(Ub),number:e().max(mb),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Zb).max(Cb).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(jb).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(pb).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(fb).max(lb).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(hb).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(ib).max(db),total_with_tax:v().min(ab).max(sb),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(e2),entity_id:e().max(o2),date_year:v().min(c2).max(r2),shareable_id:e().max(v2).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(n2).max(A2).nullish(),total_with_tax_converted:v().min(I2).max(S2).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(g2).max(P2),total_due:v().min(_2).max(E2),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(D2),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(O2).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(b2).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(T2).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(q2),name:e().max(N2),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
82
- Only present if user originally sent gross price.
83
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(G2).max(u2),unit:e().max(J2).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(t2).describe("Discount value"),type:g(["percent","amount"]).default(B2).describe("Discount type: 'percent' (default) or 'amount'")})).max(R2).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(L2).max(H2),total_with_tax:v().min(W2).max(Q2),total_converted:v().min(w2).max(X2).nullish(),total_with_tax_converted:v().min(Y2).max(x2).nullish(),credit_note_id:e().max(K2).nullish(),advance_invoice_id:e().max(y2).nullish(),delivery_note_id:e().max(V2).nullish(),item_id:e().max(F2).nullish(),metadata:D(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections"),$2=/^[a-z]{3,4}_[0-9a-f]{24}$/,Nne=r({id:e().regex($2).describe("Unique resource identifier")}),Gne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),M2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,z2=2,k2=2,U2="iban",m2=2,Z2=2,C2="iban",j2=!0,p2=2000,f2=-140737488355328,l2=140737488355327,h2=50,i2=0,d2="percent",a2=5,s2=!0,eT=500,une=r({date:e().regex(M2).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(z2).max(k2).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(U2).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(T().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(m2).max(Z2).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(C2).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(j2).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(p2).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(f2).max(l2),unit:e().max(h2).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(i2).describe("Discount value"),type:g(["percent","amount"]).default(d2).describe("Discount type: 'percent' (default) or 'amount'")})).max(a2).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
84
- When provided, the item's name, description, price, and taxes are used as defaults.
85
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(s2).describe(`Whether to save this item to the catalog.
86
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
87
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:D(e(),T()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(eT).optional().describe("Reason for the change. Stored in version history for audit trail."),linked_documents:P(e().min(1)).optional().describe("Link this credit note to invoices. Replaces existing links. Accepts invoice IDs (inv_xxx)."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),oT=36,cT=100,rT=2,vT=2,nT="iban",AT=36,IT=2,ST=2,gT="iban",PT=-140737488355328,_T=140737488355327,ET=-140737488355328,DT=140737488355327,OT=3,bT=36,TT=-2147483648,qT=2147483647,NT=64,GT=-140737488355328,uT=140737488355327,JT=-140737488355328,tT=140737488355327,BT=-140737488355328,RT=140737488355327,LT=-140737488355328,HT=140737488355327,WT=0,QT=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,wT=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,XT=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,YT=36,xT=500,KT=-140737488355328,yT=140737488355327,VT=50,FT=0,$T="percent",MT=5,zT=-140737488355328,kT=140737488355327,UT=-140737488355328,mT=140737488355327,ZT=-140737488355328,CT=140737488355327,jT=-140737488355328,pT=140737488355327,fT=36,lT=36,hT=36,iT=36,Jne=r({id:e().max(oT),number:e().max(cT),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(rT).max(vT).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(nT).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(AT).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(IT).max(ST).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(gT).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(PT).max(_T),total_with_tax:v().min(ET).max(DT),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(OT),entity_id:e().max(bT),date_year:v().min(TT).max(qT),shareable_id:e().max(NT).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(GT).max(uT).nullish(),total_with_tax_converted:v().min(JT).max(tT).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(BT).max(RT),total_due:v().min(LT).max(HT),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(WT),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(QT).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(wT).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(XT).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(YT),name:e().max(xT),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
88
- Only present if user originally sent gross price.
89
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(KT).max(yT),unit:e().max(VT).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(FT).describe("Discount value"),type:g(["percent","amount"]).default($T).describe("Discount type: 'percent' (default) or 'amount'")})).max(MT).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(zT).max(kT),total_with_tax:v().min(UT).max(mT),total_converted:v().min(ZT).max(CT).nullish(),total_with_tax_converted:v().min(jT).max(pT).nullish(),credit_note_id:e().max(fT).nullish(),advance_invoice_id:e().max(lT).nullish(),delivery_note_id:e().max(hT).nullish(),item_id:e().max(iT).nullish(),metadata:D(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections"),dT=/^[a-z]{3,4}_[0-9a-f]{24}$/,tne=r({id:e().regex(dT).describe("Unique resource identifier")}),Bne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Rne=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),Lne=r({id:e().describe("Credit Note ID"),version:v().min(1).describe("Version number")}),Hne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Wne=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),aT=2,sT=5,eq="true",Qne=r({template:g(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e().min(aT).max(sT).nullish(),partial:g(["true","false"]).default(eq).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),wne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),oq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,cq=2,rq=2,vq="iban",nq=2,Aq=2,Iq="iban",Sq=!0,gq=3,Pq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_q=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Eq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Dq=20,Oq=/^[0-9a-zA-Z]{1,20}$/,bq=20,Tq=/^\d{1,20}$/,qq=11,Nq=11,Gq=0,uq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Jq=2,tq=2,Bq="iban",Rq=2,Lq=2,Hq="iban",Wq=!0,Qq=3,wq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Xq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Yq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,xq=2000,Kq=-140737488355328,yq=140737488355327,Vq=50,Fq=0,$q="percent",Mq=5,zq=!0,kq=20,Uq=/^[0-9a-zA-Z]{1,20}$/,mq=20,Zq=/^\d{1,20}$/,Cq=11,jq=11,pq=0,Xne=t([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(oq).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(cq).max(rq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(vq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(nq).max(Aq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Iq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Sq).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(gq).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(Pq).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(_q).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Eq).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:D(e(),e()).optional()})).min(1),fina:r({premise_id:e().min(1).max(Dq).regex(Oq).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(bq).regex(Tq).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(qq).max(Nq).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(Gq).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(uq).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Jq).max(tq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Bq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Rq).max(Lq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Hq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Wq).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(Qq).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(wq).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Xq).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Yq).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(xq).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(Kq).max(yq),unit:e().max(Vq).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Fq).describe("Discount value"),type:g(["percent","amount"]).default($q).describe("Discount type: 'percent' (default) or 'amount'")})).max(Mq).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
90
- When provided, the item's name, description, price, and taxes are used as defaults.
91
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(zq).describe(`Whether to save this item to the catalog.
92
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
93
- Default: true.`)})).min(1).describe("Line items for the credit note. At least one item is required."),fina:r({premise_id:e().min(1).max(kq).regex(Uq).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(mq).regex(Zq).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(Cq).max(jq).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(pq).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]),fq=/^[a-z]{3,4}_[0-9a-f]{24}$/,Yne=r({id:e().regex(fq).describe("Unique resource identifier")}),xne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Kne=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate credit note', 'Technical error')")}),lq=36,hq=100,iq=2,dq=2,aq="iban",sq=36,eN=2,oN=2,cN="iban",rN=-140737488355328,vN=140737488355327,nN=-140737488355328,AN=140737488355327,IN=3,SN=36,gN=-2147483648,PN=2147483647,_N=64,EN=-140737488355328,DN=140737488355327,ON=-140737488355328,bN=140737488355327,TN=-140737488355328,qN=140737488355327,NN=-140737488355328,GN=140737488355327,uN=0,JN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,tN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,BN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,RN=36,LN=500,HN=-140737488355328,WN=140737488355327,QN=50,wN=0,XN="percent",YN=5,xN=-140737488355328,KN=140737488355327,yN=-140737488355328,VN=140737488355327,FN=-140737488355328,$N=140737488355327,MN=-140737488355328,zN=140737488355327,kN=36,UN=36,mN=36,ZN=36,yne=r({id:e().max(lq),number:e().max(hq),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(iq).max(dq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(aq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(sq).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(eN).max(oN).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(cN).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(rN).max(vN),total_with_tax:v().min(nN).max(AN),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(IN),entity_id:e().max(SN),date_year:v().min(gN).max(PN),shareable_id:e().max(_N).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(EN).max(DN).nullish(),total_with_tax_converted:v().min(ON).max(bN).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(TN).max(qN),total_due:v().min(NN).max(GN),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(uN),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(JN).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(tN).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(BN).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(RN),name:e().max(LN),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
94
- Only present if user originally sent gross price.
95
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(HN).max(WN),unit:e().max(QN).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(wN).describe("Discount value"),type:g(["percent","amount"]).default(XN).describe("Discount type: 'percent' (default) or 'amount'")})).max(YN).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(xN).max(KN),total_with_tax:v().min(yN).max(VN),total_converted:v().min(FN).max($N).nullish(),total_with_tax_converted:v().min(MN).max(zN).nullish(),credit_note_id:e().max(kN).nullish(),advance_invoice_id:e().max(UN).nullish(),delivery_note_id:e().max(mN).nullish(),item_id:e().max(ZN).nullish(),metadata:D(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections");var Qo={};Q(Qo,{updateCustomerResponseOneTaxNumberMax:()=>hG,updateCustomerResponseOneStateMax:()=>pG,updateCustomerResponseOnePostCodeMax:()=>CG,updateCustomerResponseOneNameMax:()=>UG,updateCustomerResponseOneIdMax:()=>kG,updateCustomerResponseOneEntityIdMax:()=>aG,updateCustomerResponseOneEmailMax:()=>dG,updateCustomerResponseOneCountryMax:()=>fG,updateCustomerResponseOneCountryCodeMax:()=>lG,updateCustomerResponseOneCompanyNumberMax:()=>iG,updateCustomerResponseOneCityMax:()=>jG,updateCustomerResponseOneAddressMax:()=>mG,updateCustomerResponseOneAddress2Max:()=>ZG,updateCustomerPathIdRegExp:()=>wG,updateCustomerBodyTaxNumberMax:()=>$G,updateCustomerBodyStateMax:()=>yG,updateCustomerBodyPostCodeMax:()=>xG,updateCustomerBodyEmailMax:()=>zG,updateCustomerBodyCountryMax:()=>VG,updateCustomerBodyCountryCodeMax:()=>FG,updateCustomerBodyCompanyNumberMax:()=>MG,updateCustomerBodyCityMax:()=>KG,updateCustomerBodyAddressMax:()=>XG,updateCustomerBodyAddress2Max:()=>YG,restoreCustomerResponseOneTaxNumberMax:()=>P8,restoreCustomerResponseOneStateMax:()=>I8,restoreCustomerResponseOnePostCodeMax:()=>n8,restoreCustomerResponseOneNameMax:()=>c8,restoreCustomerResponseOneIdMax:()=>o8,restoreCustomerResponseOneEntityIdMax:()=>D8,restoreCustomerResponseOneEmailMax:()=>E8,restoreCustomerResponseOneCountryMax:()=>S8,restoreCustomerResponseOneCountryCodeMax:()=>g8,restoreCustomerResponseOneCompanyNumberMax:()=>_8,restoreCustomerResponseOneCityMax:()=>A8,restoreCustomerResponseOneAddressMax:()=>r8,restoreCustomerResponseOneAddress2Max:()=>v8,restoreCustomerPathIdRegExp:()=>e8,permanentDeleteCustomerPathIdRegExp:()=>O8,getCustomersResponseDataItemOneTaxNumberMax:()=>_G,getCustomersResponseDataItemOneStateMax:()=>SG,getCustomersResponseDataItemOnePostCodeMax:()=>AG,getCustomersResponseDataItemOneNameMax:()=>rG,getCustomersResponseDataItemOneIdMax:()=>cG,getCustomersResponseDataItemOneEntityIdMax:()=>OG,getCustomersResponseDataItemOneEmailMax:()=>DG,getCustomersResponseDataItemOneCountryMax:()=>gG,getCustomersResponseDataItemOneCountryCodeMax:()=>PG,getCustomersResponseDataItemOneCompanyNumberMax:()=>EG,getCustomersResponseDataItemOneCityMax:()=>IG,getCustomersResponseDataItemOneAddressMax:()=>vG,getCustomersResponseDataItemOneAddress2Max:()=>nG,getCustomersQueryLimitMax:()=>oG,getCustomersQueryLimitDefault:()=>eG,getCustomerByIdResponseOneTaxNumberMax:()=>LG,getCustomerByIdResponseOneStateMax:()=>tG,getCustomerByIdResponseOnePostCodeMax:()=>uG,getCustomerByIdResponseOneNameMax:()=>qG,getCustomerByIdResponseOneIdMax:()=>TG,getCustomerByIdResponseOneEntityIdMax:()=>QG,getCustomerByIdResponseOneEmailMax:()=>WG,getCustomerByIdResponseOneCountryMax:()=>BG,getCustomerByIdResponseOneCountryCodeMax:()=>RG,getCustomerByIdResponseOneCompanyNumberMax:()=>HG,getCustomerByIdResponseOneCityMax:()=>JG,getCustomerByIdResponseOneAddressMax:()=>NG,getCustomerByIdResponseOneAddress2Max:()=>GG,getCustomerByIdPathIdRegExp:()=>bG,deleteCustomerPathIdRegExp:()=>sG,createCustomerBodyTaxNumberMax:()=>dN,createCustomerBodyStateMax:()=>lN,createCustomerBodyPostCodeMax:()=>pN,createCustomerBodyEmailMax:()=>sN,createCustomerBodyCountryMax:()=>hN,createCustomerBodyCountryCodeMax:()=>iN,createCustomerBodyCompanyNumberMax:()=>aN,createCustomerBodyCityMax:()=>fN,createCustomerBodyAddressMax:()=>CN,createCustomerBodyAddress2Max:()=>jN,UpdateCustomerResponse:()=>pne,UpdateCustomerParams:()=>Zne,UpdateCustomerHeader:()=>Cne,UpdateCustomerBody:()=>jne,RestoreCustomerResponse:()=>dne,RestoreCustomerParams:()=>hne,RestoreCustomerHeader:()=>ine,PermanentDeleteCustomerParams:()=>ane,PermanentDeleteCustomerHeader:()=>sne,GetCustomersResponse:()=>zne,GetCustomersQueryParams:()=>$ne,GetCustomersHeader:()=>Mne,GetCustomerByIdResponse:()=>mne,GetCustomerByIdParams:()=>kne,GetCustomerByIdHeader:()=>Une,DeleteCustomerParams:()=>fne,DeleteCustomerHeader:()=>lne,CreateCustomerHeader:()=>Vne,CreateCustomerBody:()=>Fne});var Vne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),CN=500,jN=500,pN=20,fN=100,lN=100,hN=100,iN=2,dN=50,aN=50,sN=255,Fne=r({name:e().min(1),address:e().max(CN).nullish(),address_2:e().max(jN).nullish(),post_code:e().max(pN).nullish(),city:e().max(fN).nullish(),state:e().max(lN).nullish(),country:e().max(hN).nullish(),country_code:e().max(iN).nullish(),tax_number:e().max(dN).nullish(),company_number:e().max(aN).nullish(),email:e().max(sN).nullish(),is_tax_subject:A().optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),eG=10,oG=100,$ne=r({limit:v().min(1).max(oG).default(eG).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","name","email","address","city","country","created_at","updated_at","-id","-name","-email","-address","-city","-country","-created_at","-updated_at"]),P(g(["id","name","email","address","city","country","created_at","updated_at","-id","-name","-email","-address","-city","-country","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, address, city, country, tax_number, email, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
96
- Searches are case-insensitive and match partial strings.
97
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),Mne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),cG=36,rG=255,vG=500,nG=500,AG=20,IG=100,SG=100,gG=100,PG=2,_G=50,EG=50,DG=255,OG=36,zne=r({data:P(r({id:e().max(cG),name:e().max(rG),address:e().max(vG).nullish(),address_2:e().max(nG).nullish(),post_code:e().max(AG).nullish(),city:e().max(IG).nullish(),state:e().max(SG).nullish(),country:e().max(gG).nullish(),country_code:e().max(PG).nullish(),tax_number:e().max(_G).nullish(),company_number:e().max(EG).nullish(),email:e().max(DG).nullish(),is_tax_subject:A(),entity_id:e().max(OG),vies:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]).optional(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),bG=/^[a-z]{3,4}_[0-9a-f]{24}$/,kne=r({id:e().regex(bG).describe("Unique resource identifier")}),Une=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),TG=36,qG=255,NG=500,GG=500,uG=20,JG=100,tG=100,BG=100,RG=2,LG=50,HG=50,WG=255,QG=36,mne=r({id:e().max(TG),name:e().max(qG),address:e().max(NG).nullish(),address_2:e().max(GG).nullish(),post_code:e().max(uG).nullish(),city:e().max(JG).nullish(),state:e().max(tG).nullish(),country:e().max(BG).nullish(),country_code:e().max(RG).nullish(),tax_number:e().max(LG).nullish(),company_number:e().max(HG).nullish(),email:e().max(WG).nullish(),is_tax_subject:A(),entity_id:e().max(QG),vies:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]).optional(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity"),wG=/^[a-z]{3,4}_[0-9a-f]{24}$/,Zne=r({id:e().regex(wG).describe("Unique resource identifier")}),Cne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),XG=500,YG=500,xG=20,KG=100,yG=100,VG=100,FG=2,$G=50,MG=50,zG=255,jne=r({name:e().min(1).optional(),address:e().max(XG).nullish(),address_2:e().max(YG).nullish(),post_code:e().max(xG).nullish(),city:e().max(KG).nullish(),state:e().max(yG).nullish(),country:e().max(VG).nullish(),country_code:e().max(FG).nullish(),tax_number:e().max($G).nullish(),company_number:e().max(MG).nullish(),email:e().max(zG).nullish(),is_tax_subject:A().optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),kG=36,UG=255,mG=500,ZG=500,CG=20,jG=100,pG=100,fG=100,lG=2,hG=50,iG=50,dG=255,aG=36,pne=r({id:e().max(kG),name:e().max(UG),address:e().max(mG).nullish(),address_2:e().max(ZG).nullish(),post_code:e().max(CG).nullish(),city:e().max(jG).nullish(),state:e().max(pG).nullish(),country:e().max(fG).nullish(),country_code:e().max(lG).nullish(),tax_number:e().max(hG).nullish(),company_number:e().max(iG).nullish(),email:e().max(dG).nullish(),is_tax_subject:A(),entity_id:e().max(aG),vies:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]).optional(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity"),sG=/^[a-z]{3,4}_[0-9a-f]{24}$/,fne=r({id:e().regex(sG).describe("Unique resource identifier")}),lne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),e8=/^[a-z]{3,4}_[0-9a-f]{24}$/,hne=r({id:e().regex(e8).describe("Unique resource identifier")}),ine=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),o8=36,c8=255,r8=500,v8=500,n8=20,A8=100,I8=100,S8=100,g8=2,P8=50,_8=50,E8=255,D8=36,dne=r({id:e().max(o8),name:e().max(c8),address:e().max(r8).nullish(),address_2:e().max(v8).nullish(),post_code:e().max(n8).nullish(),city:e().max(A8).nullish(),state:e().max(I8).nullish(),country:e().max(S8).nullish(),country_code:e().max(g8).nullish(),tax_number:e().max(P8).nullish(),company_number:e().max(_8).nullish(),email:e().max(E8).nullish(),is_tax_subject:A(),entity_id:e().max(D8),vies:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]).optional(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity"),O8=/^[a-z]{3,4}_[0-9a-f]{24}$/,ane=r({id:e().regex(O8).describe("Unique resource identifier")}),sne=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var wo={};Q(wo,{voidDeliveryNoteResponseTotalWithTaxMin:()=>wB,voidDeliveryNoteResponseTotalWithTaxMax:()=>XB,voidDeliveryNoteResponseTotalWithTaxConvertedMin:()=>MB,voidDeliveryNoteResponseTotalWithTaxConvertedMax:()=>zB,voidDeliveryNoteResponseTotalMin:()=>WB,voidDeliveryNoteResponseTotalMax:()=>QB,voidDeliveryNoteResponseTotalConvertedMin:()=>FB,voidDeliveryNoteResponseTotalConvertedMax:()=>$B,voidDeliveryNoteResponseShareableIdMax:()=>VB,voidDeliveryNoteResponseNumberMax:()=>GB,voidDeliveryNoteResponseItemsItemUnitMax:()=>fB,voidDeliveryNoteResponseItemsItemTotalWithTaxMin:()=>sB,voidDeliveryNoteResponseItemsItemTotalWithTaxMax:()=>eR,voidDeliveryNoteResponseItemsItemTotalWithTaxConvertedMin:()=>rR,voidDeliveryNoteResponseItemsItemTotalWithTaxConvertedMax:()=>vR,voidDeliveryNoteResponseItemsItemTotalMin:()=>dB,voidDeliveryNoteResponseItemsItemTotalMax:()=>aB,voidDeliveryNoteResponseItemsItemTotalConvertedMin:()=>oR,voidDeliveryNoteResponseItemsItemTotalConvertedMax:()=>cR,voidDeliveryNoteResponseItemsItemQuantityMin:()=>jB,voidDeliveryNoteResponseItemsItemQuantityMax:()=>pB,voidDeliveryNoteResponseItemsItemNameMax:()=>CB,voidDeliveryNoteResponseItemsItemItemIdMax:()=>AR,voidDeliveryNoteResponseItemsItemIdMax:()=>ZB,voidDeliveryNoteResponseItemsItemDiscountsMax:()=>iB,voidDeliveryNoteResponseItemsItemDiscountsItemValueMin:()=>lB,voidDeliveryNoteResponseItemsItemDiscountsItemTypeDefault:()=>hB,voidDeliveryNoteResponseItemsItemDeliveryNoteIdMax:()=>nR,voidDeliveryNoteResponseIssuerCountryCodeMin:()=>uB,voidDeliveryNoteResponseIssuerCountryCodeMax:()=>JB,voidDeliveryNoteResponseIssuerBankAccountTypeDefault:()=>tB,voidDeliveryNoteResponseIdMax:()=>NB,voidDeliveryNoteResponseEntityIdMax:()=>xB,voidDeliveryNoteResponseDateYearMin:()=>KB,voidDeliveryNoteResponseDateYearMax:()=>yB,voidDeliveryNoteResponseDateServiceToRegExp:()=>mB,voidDeliveryNoteResponseDateServiceRegExp:()=>UB,voidDeliveryNoteResponseDateDueRegExp:()=>kB,voidDeliveryNoteResponseCustomerIdMax:()=>BB,voidDeliveryNoteResponseCustomerCountryCodeMin:()=>RB,voidDeliveryNoteResponseCustomerCountryCodeMax:()=>LB,voidDeliveryNoteResponseCustomerBankAccountTypeDefault:()=>HB,voidDeliveryNoteResponseCurrencyCodeMax:()=>YB,voidDeliveryNotePathIdRegExp:()=>qB,updateDeliveryNoteResponseTotalWithTaxMin:()=>ot,updateDeliveryNoteResponseTotalWithTaxMax:()=>ct,updateDeliveryNoteResponseTotalWithTaxConvertedMin:()=>Pt,updateDeliveryNoteResponseTotalWithTaxConvertedMax:()=>_t,updateDeliveryNoteResponseTotalMin:()=>s1,updateDeliveryNoteResponseTotalMax:()=>et,updateDeliveryNoteResponseTotalConvertedMin:()=>St,updateDeliveryNoteResponseTotalConvertedMax:()=>gt,updateDeliveryNoteResponseShareableIdMax:()=>It,updateDeliveryNoteResponseNumberMax:()=>j1,updateDeliveryNoteResponseItemsItemUnitMax:()=>Gt,updateDeliveryNoteResponseItemsItemTotalWithTaxMin:()=>Lt,updateDeliveryNoteResponseItemsItemTotalWithTaxMax:()=>Ht,updateDeliveryNoteResponseItemsItemTotalWithTaxConvertedMin:()=>wt,updateDeliveryNoteResponseItemsItemTotalWithTaxConvertedMax:()=>Xt,updateDeliveryNoteResponseItemsItemTotalMin:()=>Bt,updateDeliveryNoteResponseItemsItemTotalMax:()=>Rt,updateDeliveryNoteResponseItemsItemTotalConvertedMin:()=>Wt,updateDeliveryNoteResponseItemsItemTotalConvertedMax:()=>Qt,updateDeliveryNoteResponseItemsItemQuantityMin:()=>qt,updateDeliveryNoteResponseItemsItemQuantityMax:()=>Nt,updateDeliveryNoteResponseItemsItemNameMax:()=>Tt,updateDeliveryNoteResponseItemsItemItemIdMax:()=>xt,updateDeliveryNoteResponseItemsItemIdMax:()=>bt,updateDeliveryNoteResponseItemsItemDiscountsMax:()=>tt,updateDeliveryNoteResponseItemsItemDiscountsItemValueMin:()=>ut,updateDeliveryNoteResponseItemsItemDiscountsItemTypeDefault:()=>Jt,updateDeliveryNoteResponseItemsItemDeliveryNoteIdMax:()=>Yt,updateDeliveryNoteResponseIssuerCountryCodeMin:()=>p1,updateDeliveryNoteResponseIssuerCountryCodeMax:()=>f1,updateDeliveryNoteResponseIssuerBankAccountTypeDefault:()=>l1,updateDeliveryNoteResponseIdMax:()=>C1,updateDeliveryNoteResponseEntityIdMax:()=>vt,updateDeliveryNoteResponseDateYearMin:()=>nt,updateDeliveryNoteResponseDateYearMax:()=>At,updateDeliveryNoteResponseDateServiceToRegExp:()=>Ot,updateDeliveryNoteResponseDateServiceRegExp:()=>Dt,updateDeliveryNoteResponseDateDueRegExp:()=>Et,updateDeliveryNoteResponseCustomerIdMax:()=>h1,updateDeliveryNoteResponseCustomerCountryCodeMin:()=>i1,updateDeliveryNoteResponseCustomerCountryCodeMax:()=>d1,updateDeliveryNoteResponseCustomerBankAccountTypeDefault:()=>a1,updateDeliveryNoteResponseCurrencyCodeMax:()=>rt,updateDeliveryNotePathIdRegExp:()=>H1,updateDeliveryNoteBodyItemsItemUnitMax:()=>M1,updateDeliveryNoteBodyItemsItemSaveItemDefault:()=>m1,updateDeliveryNoteBodyItemsItemQuantityMin:()=>F1,updateDeliveryNoteBodyItemsItemQuantityMax:()=>$1,updateDeliveryNoteBodyItemsItemDiscountsMax:()=>U1,updateDeliveryNoteBodyItemsItemDiscountsItemValueMin:()=>z1,updateDeliveryNoteBodyItemsItemDiscountsItemTypeDefault:()=>k1,updateDeliveryNoteBodyItemsItemDescriptionMax:()=>V1,updateDeliveryNoteBodyIssuerOneCountryCodeMin:()=>Q1,updateDeliveryNoteBodyIssuerOneCountryCodeMax:()=>w1,updateDeliveryNoteBodyIssuerOneBankAccountTypeDefault:()=>X1,updateDeliveryNoteBodyDateRegExp:()=>W1,updateDeliveryNoteBodyCustomerTwoSaveCustomerDefault:()=>y1,updateDeliveryNoteBodyCustomerOneCountryCodeMin:()=>Y1,updateDeliveryNoteBodyCustomerOneCountryCodeMax:()=>x1,updateDeliveryNoteBodyCustomerOneBankAccountTypeDefault:()=>K1,updateDeliveryNoteBodyChangeReasonMax:()=>Z1,renderDeliveryNotePreviewQueryPartialDefault:()=>Ft,renderDeliveryNotePreviewQueryLocaleMin:()=>yt,renderDeliveryNotePreviewQueryLocaleMax:()=>Vt,renderDeliveryNotePreviewBodyTwoItemsItemUnitMax:()=>_B,renderDeliveryNotePreviewBodyTwoItemsItemSaveItemDefault:()=>bB,renderDeliveryNotePreviewBodyTwoItemsItemQuantityMin:()=>gB,renderDeliveryNotePreviewBodyTwoItemsItemQuantityMax:()=>PB,renderDeliveryNotePreviewBodyTwoItemsItemDiscountsMax:()=>OB,renderDeliveryNotePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>EB,renderDeliveryNotePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>DB,renderDeliveryNotePreviewBodyTwoItemsItemDescriptionMax:()=>SB,renderDeliveryNotePreviewBodyTwoIssuerCountryCodeMin:()=>dt,renderDeliveryNotePreviewBodyTwoIssuerCountryCodeMax:()=>at,renderDeliveryNotePreviewBodyTwoIssuerBankAccountTypeDefault:()=>st,renderDeliveryNotePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>TB,renderDeliveryNotePreviewBodyTwoDateServiceToRegExp:()=>IB,renderDeliveryNotePreviewBodyTwoDateServiceRegExp:()=>AB,renderDeliveryNotePreviewBodyTwoDateRegExp:()=>it,renderDeliveryNotePreviewBodyTwoDateDueRegExp:()=>nB,renderDeliveryNotePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>rB,renderDeliveryNotePreviewBodyTwoCustomerOneCountryCodeMin:()=>eB,renderDeliveryNotePreviewBodyTwoCustomerOneCountryCodeMax:()=>oB,renderDeliveryNotePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>cB,renderDeliveryNotePreviewBodyTwoCurrencyCodeMax:()=>vB,renderDeliveryNotePreviewBodyOneIssuerCountryCodeMin:()=>Mt,renderDeliveryNotePreviewBodyOneIssuerCountryCodeMax:()=>zt,renderDeliveryNotePreviewBodyOneIssuerBankAccountTypeDefault:()=>kt,renderDeliveryNotePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>ht,renderDeliveryNotePreviewBodyOneDateServiceToRegExp:()=>lt,renderDeliveryNotePreviewBodyOneDateServiceRegExp:()=>ft,renderDeliveryNotePreviewBodyOneDateRegExp:()=>$t,renderDeliveryNotePreviewBodyOneDateDueRegExp:()=>pt,renderDeliveryNotePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>Ct,renderDeliveryNotePreviewBodyOneCustomerOneCountryCodeMin:()=>Ut,renderDeliveryNotePreviewBodyOneCustomerOneCountryCodeMax:()=>mt,renderDeliveryNotePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>Zt,renderDeliveryNotePreviewBodyOneCurrencyCodeMax:()=>jt,getShareableDeliveryNoteResponseTotalWithTaxMin:()=>H8,getShareableDeliveryNoteResponseTotalWithTaxMax:()=>W8,getShareableDeliveryNoteResponseTotalWithTaxConvertedMin:()=>V8,getShareableDeliveryNoteResponseTotalWithTaxConvertedMax:()=>F8,getShareableDeliveryNoteResponseTotalMin:()=>R8,getShareableDeliveryNoteResponseTotalMax:()=>L8,getShareableDeliveryNoteResponseTotalConvertedMin:()=>K8,getShareableDeliveryNoteResponseTotalConvertedMax:()=>y8,getShareableDeliveryNoteResponseShareableIdMax:()=>x8,getShareableDeliveryNoteResponseNumberMax:()=>T8,getShareableDeliveryNoteResponseItemsItemUnitMax:()=>C8,getShareableDeliveryNoteResponseItemsItemTotalWithTaxMin:()=>i8,getShareableDeliveryNoteResponseItemsItemTotalWithTaxMax:()=>d8,getShareableDeliveryNoteResponseItemsItemTotalWithTaxConvertedMin:()=>eu,getShareableDeliveryNoteResponseItemsItemTotalWithTaxConvertedMax:()=>ou,getShareableDeliveryNoteResponseItemsItemTotalMin:()=>l8,getShareableDeliveryNoteResponseItemsItemTotalMax:()=>h8,getShareableDeliveryNoteResponseItemsItemTotalConvertedMin:()=>a8,getShareableDeliveryNoteResponseItemsItemTotalConvertedMax:()=>s8,getShareableDeliveryNoteResponseItemsItemQuantityMin:()=>m8,getShareableDeliveryNoteResponseItemsItemQuantityMax:()=>Z8,getShareableDeliveryNoteResponseItemsItemNameMax:()=>U8,getShareableDeliveryNoteResponseItemsItemItemIdMax:()=>ru,getShareableDeliveryNoteResponseItemsItemIdMax:()=>k8,getShareableDeliveryNoteResponseItemsItemDiscountsMax:()=>f8,getShareableDeliveryNoteResponseItemsItemDiscountsItemValueMin:()=>j8,getShareableDeliveryNoteResponseItemsItemDiscountsItemTypeDefault:()=>p8,getShareableDeliveryNoteResponseItemsItemDeliveryNoteIdMax:()=>cu,getShareableDeliveryNoteResponseIssuerCountryCodeMin:()=>q8,getShareableDeliveryNoteResponseIssuerCountryCodeMax:()=>N8,getShareableDeliveryNoteResponseIssuerBankAccountTypeDefault:()=>G8,getShareableDeliveryNoteResponseIdMax:()=>b8,getShareableDeliveryNoteResponseEntityIdMax:()=>w8,getShareableDeliveryNoteResponseDateYearMin:()=>X8,getShareableDeliveryNoteResponseDateYearMax:()=>Y8,getShareableDeliveryNoteResponseDateServiceToRegExp:()=>z8,getShareableDeliveryNoteResponseDateServiceRegExp:()=>M8,getShareableDeliveryNoteResponseDateDueRegExp:()=>$8,getShareableDeliveryNoteResponseCustomerIdMax:()=>u8,getShareableDeliveryNoteResponseCustomerCountryCodeMin:()=>J8,getShareableDeliveryNoteResponseCustomerCountryCodeMax:()=>t8,getShareableDeliveryNoteResponseCustomerBankAccountTypeDefault:()=>B8,getShareableDeliveryNoteResponseCurrencyCodeMax:()=>Q8,getDeliveryNotesResponseDataItemTotalWithTaxMin:()=>Mu,getDeliveryNotesResponseDataItemTotalWithTaxMax:()=>zu,getDeliveryNotesResponseDataItemTotalWithTaxConvertedMin:()=>fu,getDeliveryNotesResponseDataItemTotalWithTaxConvertedMax:()=>lu,getDeliveryNotesResponseDataItemTotalMin:()=>Fu,getDeliveryNotesResponseDataItemTotalMax:()=>$u,getDeliveryNotesResponseDataItemTotalConvertedMin:()=>ju,getDeliveryNotesResponseDataItemTotalConvertedMax:()=>pu,getDeliveryNotesResponseDataItemShareableIdMax:()=>Cu,getDeliveryNotesResponseDataItemNumberMax:()=>Qu,getDeliveryNotesResponseDataItemItemsItemUnitMax:()=>cJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxMin:()=>SJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxMax:()=>gJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>EJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>DJ,getDeliveryNotesResponseDataItemItemsItemTotalMin:()=>AJ,getDeliveryNotesResponseDataItemItemsItemTotalMax:()=>IJ,getDeliveryNotesResponseDataItemItemsItemTotalConvertedMin:()=>PJ,getDeliveryNotesResponseDataItemItemsItemTotalConvertedMax:()=>_J,getDeliveryNotesResponseDataItemItemsItemQuantityMin:()=>eJ,getDeliveryNotesResponseDataItemItemsItemQuantityMax:()=>oJ,getDeliveryNotesResponseDataItemItemsItemNameMax:()=>su,getDeliveryNotesResponseDataItemItemsItemItemIdMax:()=>bJ,getDeliveryNotesResponseDataItemItemsItemIdMax:()=>au,getDeliveryNotesResponseDataItemItemsItemDiscountsMax:()=>nJ,getDeliveryNotesResponseDataItemItemsItemDiscountsItemValueMin:()=>rJ,getDeliveryNotesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>vJ,getDeliveryNotesResponseDataItemItemsItemDeliveryNoteIdMax:()=>OJ,getDeliveryNotesResponseDataItemIssuerCountryCodeMin:()=>wu,getDeliveryNotesResponseDataItemIssuerCountryCodeMax:()=>Xu,getDeliveryNotesResponseDataItemIssuerBankAccountTypeDefault:()=>Yu,getDeliveryNotesResponseDataItemIdMax:()=>Wu,getDeliveryNotesResponseDataItemEntityIdMax:()=>Uu,getDeliveryNotesResponseDataItemDateYearMin:()=>mu,getDeliveryNotesResponseDataItemDateYearMax:()=>Zu,getDeliveryNotesResponseDataItemDateServiceToRegExp:()=>du,getDeliveryNotesResponseDataItemDateServiceRegExp:()=>iu,getDeliveryNotesResponseDataItemDateDueRegExp:()=>hu,getDeliveryNotesResponseDataItemCustomerIdMax:()=>xu,getDeliveryNotesResponseDataItemCustomerCountryCodeMin:()=>Ku,getDeliveryNotesResponseDataItemCustomerCountryCodeMax:()=>yu,getDeliveryNotesResponseDataItemCustomerBankAccountTypeDefault:()=>Vu,getDeliveryNotesResponseDataItemCurrencyCodeMax:()=>ku,getDeliveryNotesQueryLimitMax:()=>Hu,getDeliveryNotesQueryLimitDefault:()=>Lu,getDeliveryNoteVersionsPathIdRegExp:()=>Kt,getDeliveryNoteByIdResponseTotalWithTaxMin:()=>lJ,getDeliveryNoteByIdResponseTotalWithTaxMax:()=>hJ,getDeliveryNoteByIdResponseTotalWithTaxConvertedMin:()=>r1,getDeliveryNoteByIdResponseTotalWithTaxConvertedMax:()=>v1,getDeliveryNoteByIdResponseTotalMin:()=>pJ,getDeliveryNoteByIdResponseTotalMax:()=>fJ,getDeliveryNoteByIdResponseTotalConvertedMin:()=>o1,getDeliveryNoteByIdResponseTotalConvertedMax:()=>c1,getDeliveryNoteByIdResponseShareableIdMax:()=>e1,getDeliveryNoteByIdResponseNumberMax:()=>MJ,getDeliveryNoteByIdResponseItemsItemUnitMax:()=>E1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxMin:()=>N1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxMax:()=>G1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxConvertedMin:()=>t1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxConvertedMax:()=>B1,getDeliveryNoteByIdResponseItemsItemTotalMin:()=>T1,getDeliveryNoteByIdResponseItemsItemTotalMax:()=>q1,getDeliveryNoteByIdResponseItemsItemTotalConvertedMin:()=>u1,getDeliveryNoteByIdResponseItemsItemTotalConvertedMax:()=>J1,getDeliveryNoteByIdResponseItemsItemQuantityMin:()=>P1,getDeliveryNoteByIdResponseItemsItemQuantityMax:()=>_1,getDeliveryNoteByIdResponseItemsItemNameMax:()=>g1,getDeliveryNoteByIdResponseItemsItemItemIdMax:()=>L1,getDeliveryNoteByIdResponseItemsItemIdMax:()=>S1,getDeliveryNoteByIdResponseItemsItemDiscountsMax:()=>b1,getDeliveryNoteByIdResponseItemsItemDiscountsItemValueMin:()=>D1,getDeliveryNoteByIdResponseItemsItemDiscountsItemTypeDefault:()=>O1,getDeliveryNoteByIdResponseItemsItemDeliveryNoteIdMax:()=>R1,getDeliveryNoteByIdResponseIssuerCountryCodeMin:()=>zJ,getDeliveryNoteByIdResponseIssuerCountryCodeMax:()=>kJ,getDeliveryNoteByIdResponseIssuerBankAccountTypeDefault:()=>UJ,getDeliveryNoteByIdResponseIdMax:()=>$J,getDeliveryNoteByIdResponseEntityIdMax:()=>dJ,getDeliveryNoteByIdResponseDateYearMin:()=>aJ,getDeliveryNoteByIdResponseDateYearMax:()=>sJ,getDeliveryNoteByIdResponseDateServiceToRegExp:()=>I1,getDeliveryNoteByIdResponseDateServiceRegExp:()=>A1,getDeliveryNoteByIdResponseDateDueRegExp:()=>n1,getDeliveryNoteByIdResponseCustomerIdMax:()=>mJ,getDeliveryNoteByIdResponseCustomerCountryCodeMin:()=>ZJ,getDeliveryNoteByIdResponseCustomerCountryCodeMax:()=>CJ,getDeliveryNoteByIdResponseCustomerBankAccountTypeDefault:()=>jJ,getDeliveryNoteByIdResponseCurrencyCodeMax:()=>iJ,getDeliveryNoteByIdPathIdRegExp:()=>FJ,createDeliveryNoteBodyItemsItemUnitMax:()=>Gu,createDeliveryNoteBodyItemsItemSaveItemDefault:()=>Bu,createDeliveryNoteBodyItemsItemQuantityMin:()=>qu,createDeliveryNoteBodyItemsItemQuantityMax:()=>Nu,createDeliveryNoteBodyItemsItemDiscountsMax:()=>tu,createDeliveryNoteBodyItemsItemDiscountsItemValueMin:()=>uu,createDeliveryNoteBodyItemsItemDiscountsItemTypeDefault:()=>Ju,createDeliveryNoteBodyItemsItemDescriptionMax:()=>Tu,createDeliveryNoteBodyIssuerCountryCodeMin:()=>nu,createDeliveryNoteBodyIssuerCountryCodeMax:()=>Au,createDeliveryNoteBodyIssuerBankAccountTypeDefault:()=>Iu,createDeliveryNoteBodyExpectedTotalWithTaxExclusiveMin:()=>Ru,createDeliveryNoteBodyDateServiceToRegExp:()=>bu,createDeliveryNoteBodyDateServiceRegExp:()=>Ou,createDeliveryNoteBodyDateRegExp:()=>vu,createDeliveryNoteBodyDateDueRegExp:()=>Du,createDeliveryNoteBodyCustomerTwoSaveCustomerDefault:()=>_u,createDeliveryNoteBodyCustomerOneCountryCodeMin:()=>Su,createDeliveryNoteBodyCustomerOneCountryCodeMax:()=>gu,createDeliveryNoteBodyCustomerOneBankAccountTypeDefault:()=>Pu,createDeliveryNoteBodyCurrencyCodeMax:()=>Eu,createCustomDeliveryNoteBodyItemsItemUnitMax:()=>YJ,createCustomDeliveryNoteBodyItemsItemSaveItemDefault:()=>VJ,createCustomDeliveryNoteBodyItemsItemQuantityMin:()=>wJ,createCustomDeliveryNoteBodyItemsItemQuantityMax:()=>XJ,createCustomDeliveryNoteBodyItemsItemDiscountsMax:()=>yJ,createCustomDeliveryNoteBodyItemsItemDiscountsItemValueMin:()=>xJ,createCustomDeliveryNoteBodyItemsItemDiscountsItemTypeDefault:()=>KJ,createCustomDeliveryNoteBodyItemsItemDescriptionMax:()=>QJ,createCustomDeliveryNoteBodyIssuerCountryCodeMin:()=>qJ,createCustomDeliveryNoteBodyIssuerCountryCodeMax:()=>NJ,createCustomDeliveryNoteBodyIssuerBankAccountTypeDefault:()=>GJ,createCustomDeliveryNoteBodyDateServiceToRegExp:()=>WJ,createCustomDeliveryNoteBodyDateServiceRegExp:()=>HJ,createCustomDeliveryNoteBodyDateRegExp:()=>TJ,createCustomDeliveryNoteBodyDateDueRegExp:()=>LJ,createCustomDeliveryNoteBodyCustomerTwoSaveCustomerDefault:()=>BJ,createCustomDeliveryNoteBodyCustomerOneCountryCodeMin:()=>uJ,createCustomDeliveryNoteBodyCustomerOneCountryCodeMax:()=>JJ,createCustomDeliveryNoteBodyCustomerOneBankAccountTypeDefault:()=>tJ,createCustomDeliveryNoteBodyCurrencyCodeMax:()=>RJ,VoidDeliveryNoteResponse:()=>KAe,VoidDeliveryNoteParams:()=>XAe,VoidDeliveryNoteHeader:()=>YAe,VoidDeliveryNoteBody:()=>xAe,UpdateDeliveryNoteResponse:()=>uAe,UpdateDeliveryNoteParams:()=>qAe,UpdateDeliveryNoteHeader:()=>NAe,UpdateDeliveryNoteBody:()=>GAe,RenderDeliveryNotePreviewQueryParams:()=>WAe,RenderDeliveryNotePreviewHeader:()=>QAe,RenderDeliveryNotePreviewBody:()=>wAe,GetShareableDeliveryNoteResponse:()=>oAe,GetShareableDeliveryNotePdfQueryParams:()=>nAe,GetShareableDeliveryNotePdfParams:()=>vAe,GetShareableDeliveryNoteParams:()=>eAe,GetShareableDeliveryNoteHtmlQueryParams:()=>rAe,GetShareableDeliveryNoteHtmlParams:()=>cAe,GetDeliveryNotesResponse:()=>PAe,GetDeliveryNotesQueryParams:()=>SAe,GetDeliveryNotesHeader:()=>gAe,GetDeliveryNoteVersionsResponse:()=>BAe,GetDeliveryNoteVersionsParams:()=>JAe,GetDeliveryNoteVersionsHeader:()=>tAe,GetDeliveryNoteVersionResponse:()=>HAe,GetDeliveryNoteVersionParams:()=>RAe,GetDeliveryNoteVersionHeader:()=>LAe,GetDeliveryNoteByIdResponse:()=>TAe,GetDeliveryNoteByIdQueryParams:()=>OAe,GetDeliveryNoteByIdParams:()=>DAe,GetDeliveryNoteByIdHeader:()=>bAe,CreateDeliveryNoteHeader:()=>AAe,CreateDeliveryNoteBody:()=>IAe,CreateCustomDeliveryNoteHeader:()=>_Ae,CreateCustomDeliveryNoteBody:()=>EAe});var eAe=r({shareableId:e().describe("Shareable document token")}),b8=36,T8=100,q8=2,N8=2,G8="iban",u8=36,J8=2,t8=2,B8="iban",R8=-140737488355328,L8=140737488355327,H8=-140737488355328,W8=140737488355327,Q8=3,w8=36,X8=-2147483648,Y8=2147483647,x8=64,K8=-140737488355328,y8=140737488355327,V8=-140737488355328,F8=140737488355327,$8=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,M8=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,z8=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,k8=36,U8=500,m8=-140737488355328,Z8=140737488355327,C8=50,j8=0,p8="percent",f8=5,l8=-140737488355328,h8=140737488355327,i8=-140737488355328,d8=140737488355327,a8=-140737488355328,s8=140737488355327,eu=-140737488355328,ou=140737488355327,cu=36,ru=36,oAe=r({id:e().max(b8),number:e().max(T8),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(q8).max(N8).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(G8).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(u8).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(J8).max(t8).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(B8).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(R8).max(L8),total_with_tax:v().min(H8).max(W8),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(Q8),entity_id:e().max(w8),date_year:v().min(X8).max(Y8),shareable_id:e().max(x8).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(K8).max(y8).nullish(),total_with_tax_converted:v().min(V8).max(F8).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex($8).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(M8).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(z8).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(k8),name:e().max(U8),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
98
- Only present if user originally sent gross price.
99
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(m8).max(Z8),unit:e().max(C8).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(j8).describe("Discount value"),type:g(["percent","amount"]).default(p8).describe("Discount type: 'percent' (default) or 'amount'")})).max(f8).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(l8).max(h8),total_with_tax:v().min(i8).max(d8),total_converted:v().min(a8).max(s8).nullish(),total_with_tax_converted:v().min(eu).max(ou).nullish(),delivery_note_id:e().max(cu).nullish(),item_id:e().max(ru).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document"),cAe=r({shareableId:e().describe("Shareable document token")}),rAe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),vAe=r({shareableId:e().describe("Shareable document token")}),nAe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),AAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vu=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,nu=2,Au=2,Iu="iban",Su=2,gu=2,Pu="iban",_u=!0,Eu=3,Du=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Ou=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,bu=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Tu=2000,qu=-140737488355328,Nu=140737488355327,Gu=50,uu=0,Ju="percent",tu=5,Bu=!0,Ru=0,IAe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(vu).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(nu).max(Au).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Iu).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Su).max(gu).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Pu).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(_u).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(Eu).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(Du).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Ou).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(bu).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(Tu).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(qu).max(Nu),unit:e().max(Gu).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(uu).describe("Discount value"),type:g(["percent","amount"]).default(Ju).describe("Discount type: 'percent' (default) or 'amount'")})).max(tu).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
100
- When provided, the item's name, description, price, and taxes are used as defaults.
101
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(Bu).describe(`Whether to save this item to the catalog.
102
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
103
- Default: true.`)})).min(1).describe("Line items for the delivery note. At least one item is required."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),expected_total_with_tax:v().gt(Ru).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),Lu=10,Hu=100,SAe=r({limit:v().min(1).max(Hu).default(Lu).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
104
- Searches are case-insensitive and match partial strings.
105
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe(`Comma-separated list of relations to include in the response.
106
-
107
- **Available relations:**
108
- - \`document_relations\` - Linked documents (invoices, etc.)
109
-
110
- **Usage:**
111
- \`?include=document_relations\``),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),gAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Wu=36,Qu=100,wu=2,Xu=2,Yu="iban",xu=36,Ku=2,yu=2,Vu="iban",Fu=-140737488355328,$u=140737488355327,Mu=-140737488355328,zu=140737488355327,ku=3,Uu=36,mu=-2147483648,Zu=2147483647,Cu=64,ju=-140737488355328,pu=140737488355327,fu=-140737488355328,lu=140737488355327,hu=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,iu=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,du=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,au=36,su=500,eJ=-140737488355328,oJ=140737488355327,cJ=50,rJ=0,vJ="percent",nJ=5,AJ=-140737488355328,IJ=140737488355327,SJ=-140737488355328,gJ=140737488355327,PJ=-140737488355328,_J=140737488355327,EJ=-140737488355328,DJ=140737488355327,OJ=36,bJ=36,PAe=r({data:P(r({id:e().max(Wu),number:e().max(Qu),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(wu).max(Xu).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Yu).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(xu).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Ku).max(yu).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Vu).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(Fu).max($u),total_with_tax:v().min(Mu).max(zu),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(ku),entity_id:e().max(Uu),date_year:v().min(mu).max(Zu),shareable_id:e().max(Cu).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(ju).max(pu).nullish(),total_with_tax_converted:v().min(fu).max(lu).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(hu).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(iu).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(du).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(au),name:e().max(su),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
112
- Only present if user originally sent gross price.
113
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(eJ).max(oJ),unit:e().max(cJ).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(rJ).describe("Discount value"),type:g(["percent","amount"]).default(vJ).describe("Discount type: 'percent' (default) or 'amount'")})).max(nJ).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(AJ).max(IJ),total_with_tax:v().min(SJ).max(gJ),total_converted:v().min(PJ).max(_J).nullish(),total_with_tax_converted:v().min(EJ).max(DJ).nullish(),delivery_note_id:e().max(OJ).nullish(),item_id:e().max(bJ).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),_Ae=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),TJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,qJ=2,NJ=2,GJ="iban",uJ=2,JJ=2,tJ="iban",BJ=!0,RJ=3,LJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,HJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,WJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,QJ=2000,wJ=-140737488355328,XJ=140737488355327,YJ=50,xJ=0,KJ="percent",yJ=5,VJ=!0,EAe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(TJ).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(qJ).max(NJ).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(GJ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(uJ).max(JJ).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(tJ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(BJ).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(RJ).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(LJ).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(HJ).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(WJ).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(QJ).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(wJ).max(XJ),unit:e().max(YJ).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(xJ).describe("Discount value"),type:g(["percent","amount"]).default(KJ).describe("Discount type: 'percent' (default) or 'amount'")})).max(yJ).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
114
- When provided, the item's name, description, price, and taxes are used as defaults.
115
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(VJ).describe(`Whether to save this item to the catalog.
116
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
117
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),FJ=/^[a-z]{3,4}_[0-9a-f]{24}$/,DAe=r({id:e().regex(FJ).describe("Unique resource identifier")}),OAe=r({include:e().optional().describe(`Comma-separated list of relations to include in the response.
118
-
119
- **Available relations:**
120
- - \`document_relations\` - Linked documents (invoices, etc.)
121
-
122
- **Usage:**
123
- \`?include=document_relations\``)}),bAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),$J=36,MJ=100,zJ=2,kJ=2,UJ="iban",mJ=36,ZJ=2,CJ=2,jJ="iban",pJ=-140737488355328,fJ=140737488355327,lJ=-140737488355328,hJ=140737488355327,iJ=3,dJ=36,aJ=-2147483648,sJ=2147483647,e1=64,o1=-140737488355328,c1=140737488355327,r1=-140737488355328,v1=140737488355327,n1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,A1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,I1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,S1=36,g1=500,P1=-140737488355328,_1=140737488355327,E1=50,D1=0,O1="percent",b1=5,T1=-140737488355328,q1=140737488355327,N1=-140737488355328,G1=140737488355327,u1=-140737488355328,J1=140737488355327,t1=-140737488355328,B1=140737488355327,R1=36,L1=36,TAe=r({id:e().max($J),number:e().max(MJ),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(zJ).max(kJ).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(UJ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(mJ).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(ZJ).max(CJ).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(jJ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(pJ).max(fJ),total_with_tax:v().min(lJ).max(hJ),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(iJ),entity_id:e().max(dJ),date_year:v().min(aJ).max(sJ),shareable_id:e().max(e1).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(o1).max(c1).nullish(),total_with_tax_converted:v().min(r1).max(v1).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(n1).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(A1).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(I1).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(S1),name:e().max(g1),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
124
- Only present if user originally sent gross price.
125
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(P1).max(_1),unit:e().max(E1).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(D1).describe("Discount value"),type:g(["percent","amount"]).default(O1).describe("Discount type: 'percent' (default) or 'amount'")})).max(b1).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(T1).max(q1),total_with_tax:v().min(N1).max(G1),total_converted:v().min(u1).max(J1).nullish(),total_with_tax_converted:v().min(t1).max(B1).nullish(),delivery_note_id:e().max(R1).nullish(),item_id:e().max(L1).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document"),H1=/^[a-z]{3,4}_[0-9a-f]{24}$/,qAe=r({id:e().regex(H1).describe("Unique resource identifier")}),NAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),W1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Q1=2,w1=2,X1="iban",Y1=2,x1=2,K1="iban",y1=!0,V1=2000,F1=-140737488355328,$1=140737488355327,M1=50,z1=0,k1="percent",U1=5,m1=!0,Z1=500,GAe=r({date:e().regex(W1).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Q1).max(w1).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(X1).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(T().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Y1).max(x1).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(K1).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(y1).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(V1).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(F1).max($1),unit:e().max(M1).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(z1).describe("Discount value"),type:g(["percent","amount"]).default(k1).describe("Discount type: 'percent' (default) or 'amount'")})).max(U1).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
126
- When provided, the item's name, description, price, and taxes are used as defaults.
127
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(m1).describe(`Whether to save this item to the catalog.
128
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
129
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:D(e(),T()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(Z1).optional().describe("Reason for the change. Stored in version history for audit trail."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Replaces existing links. Accepts invoice IDs (inv_xxx).")}),C1=36,j1=100,p1=2,f1=2,l1="iban",h1=36,i1=2,d1=2,a1="iban",s1=-140737488355328,et=140737488355327,ot=-140737488355328,ct=140737488355327,rt=3,vt=36,nt=-2147483648,At=2147483647,It=64,St=-140737488355328,gt=140737488355327,Pt=-140737488355328,_t=140737488355327,Et=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Dt=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Ot=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,bt=36,Tt=500,qt=-140737488355328,Nt=140737488355327,Gt=50,ut=0,Jt="percent",tt=5,Bt=-140737488355328,Rt=140737488355327,Lt=-140737488355328,Ht=140737488355327,Wt=-140737488355328,Qt=140737488355327,wt=-140737488355328,Xt=140737488355327,Yt=36,xt=36,uAe=r({id:e().max(C1),number:e().max(j1),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(p1).max(f1).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(l1).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(h1).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(i1).max(d1).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(a1).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(s1).max(et),total_with_tax:v().min(ot).max(ct),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(rt),entity_id:e().max(vt),date_year:v().min(nt).max(At),shareable_id:e().max(It).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(St).max(gt).nullish(),total_with_tax_converted:v().min(Pt).max(_t).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(Et).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Dt).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Ot).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(bt),name:e().max(Tt),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
130
- Only present if user originally sent gross price.
131
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(qt).max(Nt),unit:e().max(Gt).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(ut).describe("Discount value"),type:g(["percent","amount"]).default(Jt).describe("Discount type: 'percent' (default) or 'amount'")})).max(tt).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Bt).max(Rt),total_with_tax:v().min(Lt).max(Ht),total_converted:v().min(Wt).max(Qt).nullish(),total_with_tax_converted:v().min(wt).max(Xt).nullish(),delivery_note_id:e().max(Yt).nullish(),item_id:e().max(xt).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document"),Kt=/^[a-z]{3,4}_[0-9a-f]{24}$/,JAe=r({id:e().regex(Kt).describe("Unique resource identifier")}),tAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),BAe=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),RAe=r({id:e().describe("Delivery Note ID"),version:v().min(1).describe("Version number")}),LAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),HAe=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),yt=2,Vt=5,Ft="true",WAe=r({template:g(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e().min(yt).max(Vt).nullish(),partial:g(["true","false"]).default(Ft).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),QAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),$t=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Mt=2,zt=2,kt="iban",Ut=2,mt=2,Zt="iban",Ct=!0,jt=3,pt=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,ft=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,lt=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,ht=0,it=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,dt=2,at=2,st="iban",eB=2,oB=2,cB="iban",rB=!0,vB=3,nB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,AB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,IB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,SB=2000,gB=-140737488355328,PB=140737488355327,_B=50,EB=0,DB="percent",OB=5,bB=!0,TB=0,wAe=t([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex($t).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Mt).max(zt).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(kt).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Ut).max(mt).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Zt).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Ct).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(jt).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(pt).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(ft).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(lt).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:D(e(),e()).optional()})).min(1),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),expected_total_with_tax:v().gt(ht).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(it).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(dt).max(at).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(st).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(eB).max(oB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(cB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(rB).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(vB).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(nB).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(AB).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(IB).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(SB).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(gB).max(PB),unit:e().max(_B).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(EB).describe("Discount value"),type:g(["percent","amount"]).default(DB).describe("Discount type: 'percent' (default) or 'amount'")})).max(OB).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
132
- When provided, the item's name, description, price, and taxes are used as defaults.
133
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(bB).describe(`Whether to save this item to the catalog.
134
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
135
- Default: true.`)})).min(1).describe("Line items for the delivery note. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),expected_total_with_tax:v().gt(TB).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]),qB=/^[a-z]{3,4}_[0-9a-f]{24}$/,XAe=r({id:e().regex(qB).describe("Unique resource identifier")}),YAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xAe=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate delivery note', 'Technical error')")}),NB=36,GB=100,uB=2,JB=2,tB="iban",BB=36,RB=2,LB=2,HB="iban",WB=-140737488355328,QB=140737488355327,wB=-140737488355328,XB=140737488355327,YB=3,xB=36,KB=-2147483648,yB=2147483647,VB=64,FB=-140737488355328,$B=140737488355327,MB=-140737488355328,zB=140737488355327,kB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,UB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,mB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,ZB=36,CB=500,jB=-140737488355328,pB=140737488355327,fB=50,lB=0,hB="percent",iB=5,dB=-140737488355328,aB=140737488355327,sB=-140737488355328,eR=140737488355327,oR=-140737488355328,cR=140737488355327,rR=-140737488355328,vR=140737488355327,nR=36,AR=36,KAe=r({id:e().max(NB),number:e().max(GB),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(uB).max(JB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(tB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(BB).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(RB).max(LB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(HB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(WB).max(QB),total_with_tax:v().min(wB).max(XB),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(YB),entity_id:e().max(xB),date_year:v().min(KB).max(yB),shareable_id:e().max(VB).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(FB).max($B).nullish(),total_with_tax_converted:v().min(MB).max(zB).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(kB).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(UB).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(mB).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(ZB),name:e().max(CB),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
136
- Only present if user originally sent gross price.
137
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(jB).max(pB),unit:e().max(fB).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(lB).describe("Discount value"),type:g(["percent","amount"]).default(hB).describe("Discount type: 'percent' (default) or 'amount'")})).max(iB).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(dB).max(aB),total_with_tax:v().min(sB).max(eR),total_converted:v().min(oR).max(cR).nullish(),total_with_tax_converted:v().min(rR).max(vR).nullish(),delivery_note_id:e().max(nR).nullish(),item_id:e().max(AR).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document");var Xo={};Q(Xo,{unshareDocumentPathIdRegExp:()=>ER,shareDocumentPathIdRegExp:()=>PR,sendDocumentBodySubjectMax:()=>IR,sendDocumentBodyAttachPdfDefault:()=>SR,sendDocumentBodyAttachEslogDefault:()=>gR,getShareableIdPathIdRegExp:()=>_R,UnshareDocumentParams:()=>_0e,UnshareDocumentHeader:()=>E0e,ShareDocumentResponse:()=>I0e,ShareDocumentParams:()=>n0e,ShareDocumentHeader:()=>A0e,SendDocumentResponse:()=>v0e,SendDocumentParams:()=>o0e,SendDocumentHeader:()=>c0e,SendDocumentBody:()=>r0e,RestoreDocumentResponse:()=>dAe,RestoreDocumentQueryParams:()=>hAe,RestoreDocumentParams:()=>lAe,RestoreDocumentHeader:()=>iAe,PermanentDeleteDocumentQueryParams:()=>sAe,PermanentDeleteDocumentParams:()=>aAe,PermanentDeleteDocumentHeader:()=>e0e,GetShareableIdResponse:()=>P0e,GetShareableIdParams:()=>S0e,GetShareableIdHeader:()=>g0e,GetNextDocumentNumberResponse:()=>FAe,GetNextDocumentNumberQueryParams:()=>yAe,GetNextDocumentNumberHeader:()=>VAe,FiscalizeDocumentResponse:()=>CAe,FiscalizeDocumentQueryParams:()=>mAe,FiscalizeDocumentParams:()=>UAe,FiscalizeDocumentHeader:()=>ZAe,FinalizeDocumentResponse:()=>kAe,FinalizeDocumentQueryParams:()=>MAe,FinalizeDocumentParams:()=>$Ae,FinalizeDocumentHeader:()=>zAe,DeleteDocumentQueryParams:()=>pAe,DeleteDocumentParams:()=>jAe,DeleteDocumentHeader:()=>fAe});var yAe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type"),business_premise_name:e().optional().describe("Business premise name (Slovenia FURS). If provided with electronic_device_name, returns fiscalization-format number."),electronic_device_name:e().optional().describe("Electronic device name (Slovenia FURS). Required if business_premise_name is provided.")}),VAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),FAe=r({number:e().nullable().describe("Preview of the next document number. Null if cannot be determined."),furs:r({business_premise_name:e().describe("Business premise name used for this preview (Slovenia FURS)"),electronic_device_name:e().describe("Electronic device name used for this preview (Slovenia FURS)")}).nullish().describe("FURS (Slovenia) fiscalization info if FURS numbering was used. Null for standard numbering."),fina:r({premise_id:e().describe("Business premise ID used for this preview (Croatia CIS)"),device_id:e().describe("Electronic device ID used for this preview (Croatia CIS)")}).nullish().describe("FINA (Croatia) CIS fiscalization info if FINA is enabled. Null for standard numbering.")}),$Ae=r({id:e().describe("Document ID")}),MAe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),zAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),kAe=T(),UAe=r({id:e().describe("Document ID")}),mAe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),ZAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),CAe=T(),jAe=r({id:e().describe("Document ID")}),pAe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),fAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),lAe=r({id:e().describe("Document ID")}),hAe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),iAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),dAe=T(),aAe=r({id:e().describe("Document ID")}),sAe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),e0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),o0e=r({id:e().describe("Document ID")}),c0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),IR=255,SR=!1,gR=!1,r0e=r({to:e().email().describe("Recipient email address"),subject:e().min(1).max(IR).optional().describe("Email subject line. If not provided, uses default from entity settings."),body_text:e().min(1).optional().describe("Email body text with optional markdown formatting and template variables ({document_number}, {customer_name}, {entity_name}, {invoice_link})."),attach_pdf:A().default(SR).describe("Whether to attach the document as a PDF."),attach_eslog:A().default(gR).describe("Whether to attach the document as e-SLOG 2.0 XML (Slovenian only).")}),v0e=r({message_id:e().describe("AWS SES message ID for tracking"),status:g(["sent","queued"]).describe("Email send status"),to:e().email().describe("Recipient email address"),subject:e().describe("Email subject"),shareable_link:e().url().optional().describe("Public URL for viewing the invoice online (if document_id was provided)")}),PR=/^[a-z]{3,4}_[0-9a-f]{24}$/,n0e=r({id:e().regex(PR).describe("Unique resource identifier")}),A0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),I0e=r({shareable_id:e().describe("Unique shareable token for public document access")}).describe("Response containing a shareable ID token"),_R=/^[a-z]{3,4}_[0-9a-f]{24}$/,S0e=r({id:e().regex(_R).describe("Unique resource identifier")}),g0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),P0e=r({shareable_id:e().describe("Unique shareable token for public document access")}).describe("Response containing a shareable ID token"),ER=/^[a-z]{3,4}_[0-9a-f]{24}$/,_0e=r({id:e().regex(ER).describe("Unique resource identifier")}),E0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var Yo={};Q(Yo,{sendEmailBodySubjectMax:()=>DR,sendEmailBodyAttachPdfDefault:()=>OR,sendEmailBodyAttachEslogDefault:()=>bR,SendEmailResponse:()=>b0e,SendEmailHeader:()=>D0e,SendEmailBody:()=>O0e});var D0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),DR=255,OR=!1,bR=!1,O0e=r({to:e().email().describe("Recipient email address"),subject:e().min(1).max(DR).optional().describe("Email subject line. If not provided, uses default from entity settings or a generated subject."),body_text:e().min(1).optional().describe("Email body. Supports markdown formatting (**bold**, *italic*, `code`, [links](url), lists, headers). Plain text works fine too! Images and HTML tags are skipped for security. Supports template variables like {document_number}, {customer_name}, {entity_name}, and {invoice_link} for the public invoice URL. If {invoice_link} is not present, defaults to appending 'View your invoice online: {url}' at the bottom."),document_id:e().optional().describe("ID of the document (invoice, etc.) to reference for sharing. Generates a public shareable link."),attach_pdf:A().default(OR).describe("Whether to attach the invoice as a PDF. By default, only the public link is included in the email body. Set to true to also attach the PDF file."),attach_eslog:A().default(bR).describe("Whether to attach the document as e-SLOG 2.0 XML (Slovenian electronic invoice format). Only available for Slovenian entities when eslog.validation_status = 'valid'. Can be combined with attach_pdf to attach both formats.")}),b0e=r({message_id:e().describe("AWS SES message ID for tracking"),status:g(["sent","queued"]).describe("Email send status"),to:e().email().describe("Recipient email address"),subject:e().describe("Email subject"),shareable_link:e().url().optional().describe("Public URL for viewing the invoice online (if document_id was provided)")});var xo={};Q(xo,{patchEntityResponseTwoOneTaxNumberMax:()=>oQ,patchEntityResponseTwoOneTaxNumber2Max:()=>cQ,patchEntityResponseTwoOneStateMax:()=>iW,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeRegExp:()=>HQ,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeMin:()=>RQ,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeMax:()=>LQ,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeDefault:()=>BQ,patchEntityResponseTwoOneSettingsUpnQrDisplayModeDefault:()=>tQ,patchEntityResponseTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>bQ,patchEntityResponseTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>NQ,patchEntityResponseTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>TQ,patchEntityResponseTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>qQ,patchEntityResponseTwoOneSettingsPrimaryColorRegExp:()=>AQ,patchEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>uQ,patchEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>JQ,patchEntityResponseTwoOneSettingsOverdueNotificationsEnabledDefault:()=>GQ,patchEntityResponseTwoOneSettingsFursEnabledDefault:()=>gQ,patchEntityResponseTwoOneSettingsFinaUSustPdvDefault:()=>DQ,patchEntityResponseTwoOneSettingsFinaOperatorOibMin:()=>_Q,patchEntityResponseTwoOneSettingsFinaOperatorOibMax:()=>EQ,patchEntityResponseTwoOneSettingsFinaNumberingSequenceDefault:()=>OQ,patchEntityResponseTwoOneSettingsFinaEnabledDefault:()=>PQ,patchEntityResponseTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>IQ,patchEntityResponseTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>SQ,patchEntityResponseTwoOneSettingsBankAccountsItemTypeDefault:()=>WQ,patchEntityResponseTwoOnePostCodeMax:()=>lW,patchEntityResponseTwoOneNameMax:()=>jW,patchEntityResponseTwoOneLocaleMax:()=>eQ,patchEntityResponseTwoOneIdMax:()=>CW,patchEntityResponseTwoOneEmailMax:()=>vQ,patchEntityResponseTwoOneCurrencyCodeMax:()=>sW,patchEntityResponseTwoOneCountryMax:()=>dW,patchEntityResponseTwoOneCountryCodeMax:()=>aW,patchEntityResponseTwoOneCompanyNumberMax:()=>rQ,patchEntityResponseTwoOneCityMax:()=>hW,patchEntityResponseTwoOneAddressMax:()=>pW,patchEntityResponseTwoOneAddress2Max:()=>fW,patchEntityResponseTwoOneAccountIdMax:()=>nQ,patchEntityResponseOneTaxNumberMax:()=>qW,patchEntityResponseOneTaxNumber2Max:()=>NW,patchEntityResponseOneStateMax:()=>EW,patchEntityResponseOneSettingsUpnQrPurposeCodeRegExp:()=>mW,patchEntityResponseOneSettingsUpnQrPurposeCodeMin:()=>kW,patchEntityResponseOneSettingsUpnQrPurposeCodeMax:()=>UW,patchEntityResponseOneSettingsUpnQrPurposeCodeDefault:()=>zW,patchEntityResponseOneSettingsUpnQrDisplayModeDefault:()=>MW,patchEntityResponseOneSettingsTaxRulesEuViesValidateVatDefault:()=>YW,patchEntityResponseOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>yW,patchEntityResponseOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>xW,patchEntityResponseOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>KW,patchEntityResponseOneSettingsPrimaryColorRegExp:()=>tW,patchEntityResponseOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>FW,patchEntityResponseOneSettingsOverdueNotificationsThresholdDaysDefault:()=>$W,patchEntityResponseOneSettingsOverdueNotificationsEnabledDefault:()=>VW,patchEntityResponseOneSettingsFursEnabledDefault:()=>LW,patchEntityResponseOneSettingsFinaUSustPdvDefault:()=>wW,patchEntityResponseOneSettingsFinaOperatorOibMin:()=>WW,patchEntityResponseOneSettingsFinaOperatorOibMax:()=>QW,patchEntityResponseOneSettingsFinaNumberingSequenceDefault:()=>XW,patchEntityResponseOneSettingsFinaEnabledDefault:()=>HW,patchEntityResponseOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>BW,patchEntityResponseOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>RW,patchEntityResponseOneSettingsBankAccountsItemTypeDefault:()=>ZW,patchEntityResponseOnePostCodeMax:()=>PW,patchEntityResponseOneNameMax:()=>IW,patchEntityResponseOneLocaleMax:()=>TW,patchEntityResponseOneIdMax:()=>AW,patchEntityResponseOneEmailMax:()=>uW,patchEntityResponseOneCurrencyCodeMax:()=>bW,patchEntityResponseOneCountryMax:()=>DW,patchEntityResponseOneCountryCodeMax:()=>OW,patchEntityResponseOneCompanyNumberMax:()=>GW,patchEntityResponseOneCityMax:()=>_W,patchEntityResponseOneAddressMax:()=>SW,patchEntityResponseOneAddress2Max:()=>gW,patchEntityResponseOneAccountIdMax:()=>JW,patchEntityPathIdRegExp:()=>LH,patchEntityHeaderXAccountIdRegExp:()=>HH,patchEntityBodyTaxNumberMax:()=>yH,patchEntityBodyTaxNumber2Max:()=>VH,patchEntityBodyStateMax:()=>YH,patchEntityBodySettingsUpnQrPurposeCodeRegExp:()=>vW,patchEntityBodySettingsUpnQrPurposeCodeMin:()=>cW,patchEntityBodySettingsUpnQrPurposeCodeMax:()=>rW,patchEntityBodySettingsUpnQrPurposeCodeDefault:()=>oW,patchEntityBodySettingsUpnQrDisplayModeDefault:()=>eW,patchEntityBodySettingsTaxRulesEuViesValidateVatDefault:()=>fH,patchEntityBodySettingsTaxRulesEuRequireGrossPricesDefault:()=>iH,patchEntityBodySettingsTaxRulesEuAutoReverseChargeDefault:()=>lH,patchEntityBodySettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>hH,patchEntityBodySettingsPrimaryColorRegExp:()=>MH,patchEntityBodySettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>aH,patchEntityBodySettingsOverdueNotificationsThresholdDaysDefault:()=>sH,patchEntityBodySettingsOverdueNotificationsEnabledDefault:()=>dH,patchEntityBodySettingsFursEnabledDefault:()=>UH,patchEntityBodySettingsFinaUSustPdvDefault:()=>jH,patchEntityBodySettingsFinaOperatorOibMin:()=>ZH,patchEntityBodySettingsFinaOperatorOibMax:()=>CH,patchEntityBodySettingsFinaNumberingSequenceDefault:()=>pH,patchEntityBodySettingsFinaEnabledDefault:()=>mH,patchEntityBodySettingsDefaultInvoiceDueDaysExclusiveMin:()=>zH,patchEntityBodySettingsDefaultEstimateValidDaysExclusiveMin:()=>kH,patchEntityBodySettingsBankAccountsItemTypeDefault:()=>nW,patchEntityBodyPostCodeMax:()=>wH,patchEntityBodyLocaleMax:()=>KH,patchEntityBodyEmailMax:()=>$H,patchEntityBodyCurrencyCodeMax:()=>xH,patchEntityBodyCompanyNumberMax:()=>FH,patchEntityBodyCityMax:()=>XH,patchEntityBodyAddressMax:()=>WH,patchEntityBodyAddress2Max:()=>QH,getEntitiesResponseDataItemTwoOneTaxNumberMax:()=>aL,getEntitiesResponseDataItemTwoOneTaxNumber2Max:()=>sL,getEntitiesResponseDataItemTwoOneStateMax:()=>fL,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeRegExp:()=>BH,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeMin:()=>JH,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeMax:()=>tH,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeDefault:()=>uH,getEntitiesResponseDataItemTwoOneSettingsUpnQrDisplayModeDefault:()=>GH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>EH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>bH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>DH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>OH,getEntitiesResponseDataItemTwoOneSettingsPrimaryColorRegExp:()=>rH,getEntitiesResponseDataItemTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>qH,getEntitiesResponseDataItemTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>NH,getEntitiesResponseDataItemTwoOneSettingsOverdueNotificationsEnabledDefault:()=>TH,getEntitiesResponseDataItemTwoOneSettingsFursEnabledDefault:()=>AH,getEntitiesResponseDataItemTwoOneSettingsFinaUSustPdvDefault:()=>PH,getEntitiesResponseDataItemTwoOneSettingsFinaOperatorOibMin:()=>SH,getEntitiesResponseDataItemTwoOneSettingsFinaOperatorOibMax:()=>gH,getEntitiesResponseDataItemTwoOneSettingsFinaNumberingSequenceDefault:()=>_H,getEntitiesResponseDataItemTwoOneSettingsFinaEnabledDefault:()=>IH,getEntitiesResponseDataItemTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>vH,getEntitiesResponseDataItemTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>nH,getEntitiesResponseDataItemTwoOneSettingsBankAccountsItemTypeDefault:()=>RH,getEntitiesResponseDataItemTwoOnePostCodeMax:()=>jL,getEntitiesResponseDataItemTwoOneNameMax:()=>mL,getEntitiesResponseDataItemTwoOneLocaleMax:()=>dL,getEntitiesResponseDataItemTwoOneIdMax:()=>UL,getEntitiesResponseDataItemTwoOneEmailMax:()=>oH,getEntitiesResponseDataItemTwoOneCurrencyCodeMax:()=>iL,getEntitiesResponseDataItemTwoOneCountryMax:()=>lL,getEntitiesResponseDataItemTwoOneCountryCodeMax:()=>hL,getEntitiesResponseDataItemTwoOneCompanyNumberMax:()=>eH,getEntitiesResponseDataItemTwoOneCityMax:()=>pL,getEntitiesResponseDataItemTwoOneAddressMax:()=>ZL,getEntitiesResponseDataItemTwoOneAddress2Max:()=>CL,getEntitiesResponseDataItemTwoOneAccountIdMax:()=>cH,getEntitiesResponseDataItemOneTaxNumberMax:()=>OL,getEntitiesResponseDataItemOneTaxNumber2Max:()=>bL,getEntitiesResponseDataItemOneStateMax:()=>gL,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeRegExp:()=>zL,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeMin:()=>$L,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeMax:()=>ML,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeDefault:()=>FL,getEntitiesResponseDataItemOneSettingsUpnQrDisplayModeDefault:()=>VL,getEntitiesResponseDataItemOneSettingsTaxRulesEuViesValidateVatDefault:()=>QL,getEntitiesResponseDataItemOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>YL,getEntitiesResponseDataItemOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>wL,getEntitiesResponseDataItemOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>XL,getEntitiesResponseDataItemOneSettingsPrimaryColorRegExp:()=>GL,getEntitiesResponseDataItemOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>KL,getEntitiesResponseDataItemOneSettingsOverdueNotificationsThresholdDaysDefault:()=>yL,getEntitiesResponseDataItemOneSettingsOverdueNotificationsEnabledDefault:()=>xL,getEntitiesResponseDataItemOneSettingsFursEnabledDefault:()=>tL,getEntitiesResponseDataItemOneSettingsFinaUSustPdvDefault:()=>HL,getEntitiesResponseDataItemOneSettingsFinaOperatorOibMin:()=>RL,getEntitiesResponseDataItemOneSettingsFinaOperatorOibMax:()=>LL,getEntitiesResponseDataItemOneSettingsFinaNumberingSequenceDefault:()=>WL,getEntitiesResponseDataItemOneSettingsFinaEnabledDefault:()=>BL,getEntitiesResponseDataItemOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>uL,getEntitiesResponseDataItemOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>JL,getEntitiesResponseDataItemOneSettingsBankAccountsItemTypeDefault:()=>kL,getEntitiesResponseDataItemOnePostCodeMax:()=>IL,getEntitiesResponseDataItemOneNameMax:()=>vL,getEntitiesResponseDataItemOneLocaleMax:()=>DL,getEntitiesResponseDataItemOneIdMax:()=>rL,getEntitiesResponseDataItemOneEmailMax:()=>qL,getEntitiesResponseDataItemOneCurrencyCodeMax:()=>EL,getEntitiesResponseDataItemOneCountryMax:()=>PL,getEntitiesResponseDataItemOneCountryCodeMax:()=>_L,getEntitiesResponseDataItemOneCompanyNumberMax:()=>TL,getEntitiesResponseDataItemOneCityMax:()=>SL,getEntitiesResponseDataItemOneAddressMax:()=>nL,getEntitiesResponseDataItemOneAddress2Max:()=>AL,getEntitiesResponseDataItemOneAccountIdMax:()=>NL,getEntitiesQueryLimitMax:()=>eL,getEntitiesQueryLimitDefault:()=>sR,getEntitiesQueryEnvironmentDefault:()=>oL,getEntitiesHeaderXAccountIdRegExp:()=>cL,enableEntityResponseTwoOneTaxNumberMax:()=>L3,enableEntityResponseTwoOneTaxNumber2Max:()=>H3,enableEntityResponseTwoOneStateMax:()=>u3,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeRegExp:()=>i3,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeMin:()=>l3,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeMax:()=>h3,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeDefault:()=>f3,enableEntityResponseTwoOneSettingsUpnQrDisplayModeDefault:()=>p3,enableEntityResponseTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>z3,enableEntityResponseTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>m3,enableEntityResponseTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>k3,enableEntityResponseTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>U3,enableEntityResponseTwoOneSettingsPrimaryColorRegExp:()=>X3,enableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>C3,enableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>j3,enableEntityResponseTwoOneSettingsOverdueNotificationsEnabledDefault:()=>Z3,enableEntityResponseTwoOneSettingsFursEnabledDefault:()=>K3,enableEntityResponseTwoOneSettingsFinaUSustPdvDefault:()=>$3,enableEntityResponseTwoOneSettingsFinaOperatorOibMin:()=>V3,enableEntityResponseTwoOneSettingsFinaOperatorOibMax:()=>F3,enableEntityResponseTwoOneSettingsFinaNumberingSequenceDefault:()=>M3,enableEntityResponseTwoOneSettingsFinaEnabledDefault:()=>y3,enableEntityResponseTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>Y3,enableEntityResponseTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>x3,enableEntityResponseTwoOneSettingsBankAccountsItemTypeDefault:()=>d3,enableEntityResponseTwoOnePostCodeMax:()=>N3,enableEntityResponseTwoOneNameMax:()=>b3,enableEntityResponseTwoOneLocaleMax:()=>R3,enableEntityResponseTwoOneIdMax:()=>O3,enableEntityResponseTwoOneEmailMax:()=>Q3,enableEntityResponseTwoOneCurrencyCodeMax:()=>B3,enableEntityResponseTwoOneCountryMax:()=>J3,enableEntityResponseTwoOneCountryCodeMax:()=>t3,enableEntityResponseTwoOneCompanyNumberMax:()=>W3,enableEntityResponseTwoOneCityMax:()=>G3,enableEntityResponseTwoOneAddressMax:()=>T3,enableEntityResponseTwoOneAddress2Max:()=>q3,enableEntityResponseTwoOneAccountIdMax:()=>w3,enableEntityResponseOneTaxNumberMax:()=>UQ,enableEntityResponseOneTaxNumber2Max:()=>mQ,enableEntityResponseOneStateMax:()=>FQ,enableEntityResponseOneSettingsUpnQrPurposeCodeRegExp:()=>E3,enableEntityResponseOneSettingsUpnQrPurposeCodeMin:()=>P3,enableEntityResponseOneSettingsUpnQrPurposeCodeMax:()=>_3,enableEntityResponseOneSettingsUpnQrPurposeCodeDefault:()=>g3,enableEntityResponseOneSettingsUpnQrDisplayModeDefault:()=>S3,enableEntityResponseOneSettingsTaxRulesEuViesValidateVatDefault:()=>o3,enableEntityResponseOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>v3,enableEntityResponseOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>c3,enableEntityResponseOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>r3,enableEntityResponseOneSettingsPrimaryColorRegExp:()=>pQ,enableEntityResponseOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>A3,enableEntityResponseOneSettingsOverdueNotificationsThresholdDaysDefault:()=>I3,enableEntityResponseOneSettingsOverdueNotificationsEnabledDefault:()=>n3,enableEntityResponseOneSettingsFursEnabledDefault:()=>hQ,enableEntityResponseOneSettingsFinaUSustPdvDefault:()=>sQ,enableEntityResponseOneSettingsFinaOperatorOibMin:()=>dQ,enableEntityResponseOneSettingsFinaOperatorOibMax:()=>aQ,enableEntityResponseOneSettingsFinaNumberingSequenceDefault:()=>e3,enableEntityResponseOneSettingsFinaEnabledDefault:()=>iQ,enableEntityResponseOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>fQ,enableEntityResponseOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>lQ,enableEntityResponseOneSettingsBankAccountsItemTypeDefault:()=>D3,enableEntityResponseOnePostCodeMax:()=>yQ,enableEntityResponseOneNameMax:()=>YQ,enableEntityResponseOneLocaleMax:()=>kQ,enableEntityResponseOneIdMax:()=>XQ,enableEntityResponseOneEmailMax:()=>CQ,enableEntityResponseOneCurrencyCodeMax:()=>zQ,enableEntityResponseOneCountryMax:()=>$Q,enableEntityResponseOneCountryCodeMax:()=>MQ,enableEntityResponseOneCompanyNumberMax:()=>ZQ,enableEntityResponseOneCityMax:()=>VQ,enableEntityResponseOneAddressMax:()=>xQ,enableEntityResponseOneAddress2Max:()=>KQ,enableEntityResponseOneAccountIdMax:()=>jQ,enableEntityPathIdRegExp:()=>QQ,enableEntityHeaderXAccountIdRegExp:()=>wQ,disableEntityResponseTwoOneTaxNumberMax:()=>hw,disableEntityResponseTwoOneTaxNumber2Max:()=>iw,disableEntityResponseTwoOneStateMax:()=>Cw,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeRegExp:()=>uX,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeMin:()=>NX,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeMax:()=>GX,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeDefault:()=>qX,disableEntityResponseTwoOneSettingsUpnQrDisplayModeDefault:()=>TX,disableEntityResponseTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>gX,disableEntityResponseTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>EX,disableEntityResponseTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>PX,disableEntityResponseTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>_X,disableEntityResponseTwoOneSettingsPrimaryColorRegExp:()=>eX,disableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>OX,disableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>bX,disableEntityResponseTwoOneSettingsOverdueNotificationsEnabledDefault:()=>DX,disableEntityResponseTwoOneSettingsFursEnabledDefault:()=>rX,disableEntityResponseTwoOneSettingsFinaUSustPdvDefault:()=>IX,disableEntityResponseTwoOneSettingsFinaOperatorOibMin:()=>nX,disableEntityResponseTwoOneSettingsFinaOperatorOibMax:()=>AX,disableEntityResponseTwoOneSettingsFinaNumberingSequenceDefault:()=>SX,disableEntityResponseTwoOneSettingsFinaEnabledDefault:()=>vX,disableEntityResponseTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>oX,disableEntityResponseTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>cX,disableEntityResponseTwoOneSettingsBankAccountsItemTypeDefault:()=>JX,disableEntityResponseTwoOnePostCodeMax:()=>mw,disableEntityResponseTwoOneNameMax:()=>zw,disableEntityResponseTwoOneLocaleMax:()=>lw,disableEntityResponseTwoOneIdMax:()=>Mw,disableEntityResponseTwoOneEmailMax:()=>aw,disableEntityResponseTwoOneCurrencyCodeMax:()=>fw,disableEntityResponseTwoOneCountryMax:()=>jw,disableEntityResponseTwoOneCountryCodeMax:()=>pw,disableEntityResponseTwoOneCompanyNumberMax:()=>dw,disableEntityResponseTwoOneCityMax:()=>Zw,disableEntityResponseTwoOneAddressMax:()=>kw,disableEntityResponseTwoOneAddress2Max:()=>Uw,disableEntityResponseTwoOneAccountIdMax:()=>sw,disableEntityResponseOneTaxNumberMax:()=>_w,disableEntityResponseOneTaxNumber2Max:()=>Ew,disableEntityResponseOneStateMax:()=>Aw,disableEntityResponseOneSettingsUpnQrPurposeCodeRegExp:()=>Fw,disableEntityResponseOneSettingsUpnQrPurposeCodeMin:()=>yw,disableEntityResponseOneSettingsUpnQrPurposeCodeMax:()=>Vw,disableEntityResponseOneSettingsUpnQrPurposeCodeDefault:()=>Kw,disableEntityResponseOneSettingsUpnQrDisplayModeDefault:()=>xw,disableEntityResponseOneSettingsTaxRulesEuViesValidateVatDefault:()=>Lw,disableEntityResponseOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>Qw,disableEntityResponseOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>Hw,disableEntityResponseOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>Ww,disableEntityResponseOneSettingsPrimaryColorRegExp:()=>Tw,disableEntityResponseOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>Xw,disableEntityResponseOneSettingsOverdueNotificationsThresholdDaysDefault:()=>Yw,disableEntityResponseOneSettingsOverdueNotificationsEnabledDefault:()=>ww,disableEntityResponseOneSettingsFursEnabledDefault:()=>Gw,disableEntityResponseOneSettingsFinaUSustPdvDefault:()=>Bw,disableEntityResponseOneSettingsFinaOperatorOibMin:()=>Jw,disableEntityResponseOneSettingsFinaOperatorOibMax:()=>tw,disableEntityResponseOneSettingsFinaNumberingSequenceDefault:()=>Rw,disableEntityResponseOneSettingsFinaEnabledDefault:()=>uw,disableEntityResponseOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>qw,disableEntityResponseOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>Nw,disableEntityResponseOneSettingsBankAccountsItemTypeDefault:()=>$w,disableEntityResponseOnePostCodeMax:()=>vw,disableEntityResponseOneNameMax:()=>ow,disableEntityResponseOneLocaleMax:()=>Pw,disableEntityResponseOneIdMax:()=>ew,disableEntityResponseOneEmailMax:()=>Ow,disableEntityResponseOneCurrencyCodeMax:()=>gw,disableEntityResponseOneCountryMax:()=>Iw,disableEntityResponseOneCountryCodeMax:()=>Sw,disableEntityResponseOneCompanyNumberMax:()=>Dw,disableEntityResponseOneCityMax:()=>nw,disableEntityResponseOneAddressMax:()=>cw,disableEntityResponseOneAddress2Max:()=>rw,disableEntityResponseOneAccountIdMax:()=>bw,disableEntityPathIdRegExp:()=>a3,disableEntityHeaderXAccountIdRegExp:()=>s3,createEntityHeaderXAccountIdRegExp:()=>TR,createEntityBodyTaxNumberMax:()=>WR,createEntityBodyTaxNumber2Max:()=>QR,createEntityBodyStateMax:()=>JR,createEntityBodySettingsUpnQrPurposeCodeRegExp:()=>dR,createEntityBodySettingsUpnQrPurposeCodeMin:()=>hR,createEntityBodySettingsUpnQrPurposeCodeMax:()=>iR,createEntityBodySettingsUpnQrPurposeCodeDefault:()=>lR,createEntityBodySettingsUpnQrDisplayModeDefault:()=>fR,createEntityBodySettingsTaxRulesEuViesValidateVatDefault:()=>kR,createEntityBodySettingsTaxRulesEuRequireGrossPricesDefault:()=>ZR,createEntityBodySettingsTaxRulesEuAutoReverseChargeDefault:()=>UR,createEntityBodySettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>mR,createEntityBodySettingsPrimaryColorRegExp:()=>YR,createEntityBodySettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>jR,createEntityBodySettingsOverdueNotificationsThresholdDaysDefault:()=>pR,createEntityBodySettingsOverdueNotificationsEnabledDefault:()=>CR,createEntityBodySettingsFursEnabledDefault:()=>yR,createEntityBodySettingsFinaUSustPdvDefault:()=>MR,createEntityBodySettingsFinaOperatorOibMin:()=>FR,createEntityBodySettingsFinaOperatorOibMax:()=>$R,createEntityBodySettingsFinaNumberingSequenceDefault:()=>zR,createEntityBodySettingsFinaEnabledDefault:()=>VR,createEntityBodySettingsDefaultInvoiceDueDaysExclusiveMin:()=>xR,createEntityBodySettingsDefaultEstimateValidDaysExclusiveMin:()=>KR,createEntityBodySettingsBankAccountsItemTypeDefault:()=>aR,createEntityBodyPostCodeMax:()=>GR,createEntityBodyLocaleMax:()=>HR,createEntityBodyEmailMax:()=>XR,createEntityBodyCurrencyCodeMax:()=>LR,createEntityBodyCountryMax:()=>tR,createEntityBodyCountryCodeMin:()=>BR,createEntityBodyCountryCodeMax:()=>RR,createEntityBodyCompanyNumberMax:()=>wR,createEntityBodyCityMax:()=>uR,createEntityBodyAddressMax:()=>qR,createEntityBodyAddress2Max:()=>NR,PatchEntityResponse:()=>R0e,PatchEntityParams:()=>J0e,PatchEntityHeader:()=>t0e,PatchEntityBody:()=>B0e,GetEntitiesResponse:()=>u0e,GetEntitiesQueryParams:()=>N0e,GetEntitiesHeader:()=>G0e,EnableEntityResponse:()=>W0e,EnableEntityParams:()=>L0e,EnableEntityHeader:()=>H0e,DisableEntityResponse:()=>X0e,DisableEntityParams:()=>Q0e,DisableEntityHeader:()=>w0e,CreateEntityHeader:()=>T0e,CreateEntityBody:()=>q0e});var TR=/^acc_[0-9a-fA-F]{24}$/,T0e=r({"x-account-id":e().regex(TR).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),qR=500,NR=500,GR=20,uR=100,JR=100,tR=100,BR=2,RR=2,LR=3,HR=20,WR=50,QR=50,wR=50,XR=255,YR=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,xR=0,KR=0,yR=!1,VR=!1,FR=11,$R=11,MR=!0,zR="P",kR=!0,UR=!1,mR=!1,ZR=!1,CR=!1,jR=0,pR=[7,14,30],fR="qr_only",lR="OTHR",hR=4,iR=4,dR=/^[A-Z]{4}$/,aR="iban",q0e=r({name:e().min(1),address:e().max(qR).nullish(),address_2:e().max(NR).nullish(),post_code:e().max(GR).nullish(),city:e().max(uR).nullish(),state:e().max(JR).nullish(),country:e().max(tR),country_code:e().min(BR).max(RR).nullish(),currency_code:e().max(LR).nullish(),locale:e().max(HR).optional(),tax_number:e().max(WR).nullish(),tax_number_2:e().max(QR).nullish(),company_number:e().max(wR).nullish(),email:e().max(XR).nullish(),environment:g(["live","sandbox"]).optional(),is_tax_subject:A().optional(),is_enabled:A().optional().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(YR).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(xR).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(KR).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(yR).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(VR).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(FR).max($R).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(MR).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(zR).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(kR).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(UR).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(mR).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(ZR).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(CR).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(jR)).default(pR).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(fR).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(hR).max(iR).regex(dR).default(lR).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(aR).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).optional().describe("Entity settings"),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),sR=10,eL=100,oL="live",N0e=r({limit:v().min(1).max(eL).default(sR).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","name","country","created_at","updated_at","-id","-name","-country","-created_at","-updated_at"]),P(g(["id","name","country","created_at","updated_at","-id","-name","-country","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, country, currency_code, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
138
- Searches are case-insensitive and match partial strings.
139
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),environment:g(["live","sandbox"]).default(oL).describe('Environment making queries on. Defaults to "live".')}),cL=/^acc_[0-9a-fA-F]{24}$/,G0e=r({"x-account-id":e().regex(cL).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),rL=36,vL=255,nL=500,AL=500,IL=20,SL=100,gL=100,PL=100,_L=2,EL=3,DL=20,OL=50,bL=50,TL=50,qL=255,NL=36,GL=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,uL=0,JL=0,tL=!1,BL=!1,RL=11,LL=11,HL=!0,WL="P",QL=!0,wL=!1,XL=!1,YL=!1,xL=!1,KL=0,yL=[7,14,30],VL="qr_only",FL="OTHR",$L=4,ML=4,zL=/^[A-Z]{4}$/,kL="iban",UL=36,mL=255,ZL=500,CL=500,jL=20,pL=100,fL=100,lL=100,hL=2,iL=3,dL=20,aL=50,sL=50,eH=50,oH=255,cH=36,rH=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,vH=0,nH=0,AH=!1,IH=!1,SH=11,gH=11,PH=!0,_H="P",EH=!0,DH=!1,OH=!1,bH=!1,TH=!1,qH=0,NH=[7,14,30],GH="qr_only",uH="OTHR",JH=4,tH=4,BH=/^[A-Z]{4}$/,RH="iban",u0e=r({data:P(r({id:e().max(rL),name:e().max(vL),address:e().max(nL).nullish(),address_2:e().max(AL).nullish(),post_code:e().max(IL).nullish(),city:e().max(SL).nullish(),state:e().max(gL).nullish(),country:e().max(PL),country_code:e().max(_L),currency_code:e().max(EL).nullish(),locale:e().max(DL),tax_number:e().max(OL).nullish(),tax_number_2:e().max(bL).nullish(),company_number:e().max(TL).nullish(),email:e().max(qL).nullish(),account_id:e().max(NL),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(GL).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(uL).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(JL).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(tL).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(BL).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(RL).max(LL).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(HL).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(WL).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(QL).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(wL).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(XL).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(YL).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(xL).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(KL)).default(yL).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(VL).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min($L).max(ML).regex(zL).default(FL).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(kL).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(UL),name:e().max(mL),address:e().max(ZL).nullish(),address_2:e().max(CL).nullish(),post_code:e().max(jL).nullish(),city:e().max(pL).nullish(),state:e().max(fL).nullish(),country:e().max(lL),country_code:e().max(hL),currency_code:e().max(iL).nullish(),locale:e().max(dL),tax_number:e().max(aL).nullish(),tax_number_2:e().max(sL).nullish(),company_number:e().max(eH).nullish(),email:e().max(oH).nullish(),account_id:e().max(cH),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(rH).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(vH).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(nH).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(AH).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(IH).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(SH).max(gH).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(PH).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(_H).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(EH).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(DH).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(OH).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(bH).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(TH).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(qH)).default(NH).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(GH).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(JH).max(tH).regex(BH).default(uH).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(RH).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created."))),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),LH=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,J0e=r({id:e().regex(LH).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),HH=/^acc_[0-9a-fA-F]{24}$/,t0e=r({"x-account-id":e().regex(HH).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),WH=500,QH=500,wH=20,XH=100,YH=100,xH=3,KH=20,yH=50,VH=50,FH=50,$H=255,MH=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,zH=0,kH=0,UH=!1,mH=!1,ZH=11,CH=11,jH=!0,pH="P",fH=!0,lH=!1,hH=!1,iH=!1,dH=!1,aH=0,sH=[7,14,30],eW="qr_only",oW="OTHR",cW=4,rW=4,vW=/^[A-Z]{4}$/,nW="iban",B0e=r({name:e().min(1).optional(),address:e().max(WH).nullish(),address_2:e().max(QH).nullish(),post_code:e().max(wH).nullish(),city:e().max(XH).nullish(),state:e().max(YH).nullish(),currency_code:e().max(xH).nullish(),locale:e().max(KH).optional(),tax_number:e().max(yH).nullish(),tax_number_2:e().max(VH).nullish(),company_number:e().max(FH).nullish(),email:e().max($H).nullish(),is_tax_subject:A().optional(),is_enabled:A().optional().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(MH).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(zH).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(kH).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(UH).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(mH).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(ZH).max(CH).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(jH).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(pH).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(fH).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(lH).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(hH).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(iH).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(dH).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(aH)).default(sH).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(eW).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(cW).max(rW).regex(vW).default(oW).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(nW).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).optional().describe("Entity settings"),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),AW=36,IW=255,SW=500,gW=500,PW=20,_W=100,EW=100,DW=100,OW=2,bW=3,TW=20,qW=50,NW=50,GW=50,uW=255,JW=36,tW=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,BW=0,RW=0,LW=!1,HW=!1,WW=11,QW=11,wW=!0,XW="P",YW=!0,xW=!1,KW=!1,yW=!1,VW=!1,FW=0,$W=[7,14,30],MW="qr_only",zW="OTHR",kW=4,UW=4,mW=/^[A-Z]{4}$/,ZW="iban",CW=36,jW=255,pW=500,fW=500,lW=20,hW=100,iW=100,dW=100,aW=2,sW=3,eQ=20,oQ=50,cQ=50,rQ=50,vQ=255,nQ=36,AQ=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,IQ=0,SQ=0,gQ=!1,PQ=!1,_Q=11,EQ=11,DQ=!0,OQ="P",bQ=!0,TQ=!1,qQ=!1,NQ=!1,GQ=!1,uQ=0,JQ=[7,14,30],tQ="qr_only",BQ="OTHR",RQ=4,LQ=4,HQ=/^[A-Z]{4}$/,WQ="iban",R0e=r({id:e().max(AW),name:e().max(IW),address:e().max(SW).nullish(),address_2:e().max(gW).nullish(),post_code:e().max(PW).nullish(),city:e().max(_W).nullish(),state:e().max(EW).nullish(),country:e().max(DW),country_code:e().max(OW),currency_code:e().max(bW).nullish(),locale:e().max(TW),tax_number:e().max(qW).nullish(),tax_number_2:e().max(NW).nullish(),company_number:e().max(GW).nullish(),email:e().max(uW).nullish(),account_id:e().max(JW),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(tW).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(BW).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(RW).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(LW).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(HW).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(WW).max(QW).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(wW).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(XW).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(YW).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(xW).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(KW).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(yW).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(VW).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(FW)).default($W).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(MW).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(kW).max(UW).regex(mW).default(zW).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(ZW).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(CW),name:e().max(jW),address:e().max(pW).nullish(),address_2:e().max(fW).nullish(),post_code:e().max(lW).nullish(),city:e().max(hW).nullish(),state:e().max(iW).nullish(),country:e().max(dW),country_code:e().max(aW),currency_code:e().max(sW).nullish(),locale:e().max(eQ),tax_number:e().max(oQ).nullish(),tax_number_2:e().max(cQ).nullish(),company_number:e().max(rQ).nullish(),email:e().max(vQ).nullish(),account_id:e().max(nQ),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(AQ).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(IQ).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(SQ).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(gQ).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(PQ).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(_Q).max(EQ).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(DQ).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(OQ).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(bQ).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(TQ).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(qQ).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(NQ).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(GQ).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(uQ)).default(JQ).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(tQ).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(RQ).max(LQ).regex(HQ).default(BQ).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(WQ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created.")),QQ=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,L0e=r({id:e().regex(QQ).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),wQ=/^acc_[0-9a-fA-F]{24}$/,H0e=r({"x-account-id":e().regex(wQ).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),XQ=36,YQ=255,xQ=500,KQ=500,yQ=20,VQ=100,FQ=100,$Q=100,MQ=2,zQ=3,kQ=20,UQ=50,mQ=50,ZQ=50,CQ=255,jQ=36,pQ=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,fQ=0,lQ=0,hQ=!1,iQ=!1,dQ=11,aQ=11,sQ=!0,e3="P",o3=!0,c3=!1,r3=!1,v3=!1,n3=!1,A3=0,I3=[7,14,30],S3="qr_only",g3="OTHR",P3=4,_3=4,E3=/^[A-Z]{4}$/,D3="iban",O3=36,b3=255,T3=500,q3=500,N3=20,G3=100,u3=100,J3=100,t3=2,B3=3,R3=20,L3=50,H3=50,W3=50,Q3=255,w3=36,X3=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Y3=0,x3=0,K3=!1,y3=!1,V3=11,F3=11,$3=!0,M3="P",z3=!0,k3=!1,U3=!1,m3=!1,Z3=!1,C3=0,j3=[7,14,30],p3="qr_only",f3="OTHR",l3=4,h3=4,i3=/^[A-Z]{4}$/,d3="iban",W0e=r({id:e().max(XQ),name:e().max(YQ),address:e().max(xQ).nullish(),address_2:e().max(KQ).nullish(),post_code:e().max(yQ).nullish(),city:e().max(VQ).nullish(),state:e().max(FQ).nullish(),country:e().max($Q),country_code:e().max(MQ),currency_code:e().max(zQ).nullish(),locale:e().max(kQ),tax_number:e().max(UQ).nullish(),tax_number_2:e().max(mQ).nullish(),company_number:e().max(ZQ).nullish(),email:e().max(CQ).nullish(),account_id:e().max(jQ),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(pQ).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(fQ).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(lQ).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(hQ).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(iQ).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(dQ).max(aQ).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(sQ).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(e3).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(o3).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(c3).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(r3).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(v3).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(n3).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(A3)).default(I3).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(S3).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(P3).max(_3).regex(E3).default(g3).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(D3).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(O3),name:e().max(b3),address:e().max(T3).nullish(),address_2:e().max(q3).nullish(),post_code:e().max(N3).nullish(),city:e().max(G3).nullish(),state:e().max(u3).nullish(),country:e().max(J3),country_code:e().max(t3),currency_code:e().max(B3).nullish(),locale:e().max(R3),tax_number:e().max(L3).nullish(),tax_number_2:e().max(H3).nullish(),company_number:e().max(W3).nullish(),email:e().max(Q3).nullish(),account_id:e().max(w3),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(X3).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(Y3).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(x3).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(K3).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(y3).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(V3).max(F3).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default($3).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(M3).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(z3).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(k3).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(U3).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(m3).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(Z3).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(C3)).default(j3).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(p3).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(l3).max(h3).regex(i3).default(f3).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(d3).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created.")),a3=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,Q0e=r({id:e().regex(a3).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),s3=/^acc_[0-9a-fA-F]{24}$/,w0e=r({"x-account-id":e().regex(s3).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),ew=36,ow=255,cw=500,rw=500,vw=20,nw=100,Aw=100,Iw=100,Sw=2,gw=3,Pw=20,_w=50,Ew=50,Dw=50,Ow=255,bw=36,Tw=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,qw=0,Nw=0,Gw=!1,uw=!1,Jw=11,tw=11,Bw=!0,Rw="P",Lw=!0,Hw=!1,Ww=!1,Qw=!1,ww=!1,Xw=0,Yw=[7,14,30],xw="qr_only",Kw="OTHR",yw=4,Vw=4,Fw=/^[A-Z]{4}$/,$w="iban",Mw=36,zw=255,kw=500,Uw=500,mw=20,Zw=100,Cw=100,jw=100,pw=2,fw=3,lw=20,hw=50,iw=50,dw=50,aw=255,sw=36,eX=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,oX=0,cX=0,rX=!1,vX=!1,nX=11,AX=11,IX=!0,SX="P",gX=!0,PX=!1,_X=!1,EX=!1,DX=!1,OX=0,bX=[7,14,30],TX="qr_only",qX="OTHR",NX=4,GX=4,uX=/^[A-Z]{4}$/,JX="iban",X0e=r({id:e().max(ew),name:e().max(ow),address:e().max(cw).nullish(),address_2:e().max(rw).nullish(),post_code:e().max(vw).nullish(),city:e().max(nw).nullish(),state:e().max(Aw).nullish(),country:e().max(Iw),country_code:e().max(Sw),currency_code:e().max(gw).nullish(),locale:e().max(Pw),tax_number:e().max(_w).nullish(),tax_number_2:e().max(Ew).nullish(),company_number:e().max(Dw).nullish(),email:e().max(Ow).nullish(),account_id:e().max(bw),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(Tw).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(qw).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(Nw).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(Gw).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(uw).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(Jw).max(tw).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(Bw).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(Rw).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(Lw).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(Hw).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(Ww).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(Qw).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(ww).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(Xw)).default(Yw).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(xw).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(yw).max(Vw).regex(Fw).default(Kw).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default($w).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(Mw),name:e().max(zw),address:e().max(kw).nullish(),address_2:e().max(Uw).nullish(),post_code:e().max(mw).nullish(),city:e().max(Zw).nullish(),state:e().max(Cw).nullish(),country:e().max(jw),country_code:e().max(pw),currency_code:e().max(fw).nullish(),locale:e().max(lw),tax_number:e().max(hw).nullish(),tax_number_2:e().max(iw).nullish(),company_number:e().max(dw).nullish(),email:e().max(aw).nullish(),account_id:e().max(sw),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","condensed","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(eX).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(oX).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(cX).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(rX).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(vX).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(nX).max(AX).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(IX).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(SX).describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(gX).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(PX).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(_X).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(EX).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(DX).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(OX)).default(bX).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(TX).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(NX).max(GX).regex(uX).default(qX).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(JX).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created."));var Ko={};Q(Ko,{deleteEntityApiKeyPathIdRegExp:()=>BX,createEntityApiKeyBodyNameMax:()=>tX,ListEntityApiKeysResponse:()=>x0e,ListEntityApiKeysHeader:()=>Y0e,DeleteEntityApiKeyResponse:()=>$0e,DeleteEntityApiKeyParams:()=>V0e,DeleteEntityApiKeyHeader:()=>F0e,CreateEntityApiKeyHeader:()=>K0e,CreateEntityApiKeyBody:()=>y0e});var Y0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),x0e=r({data:P(r({id:e().describe("API key (ek_* prefix for entity-scoped keys)"),entity_id:e().describe("Entity ID this key is scoped to"),name:e().nullable().describe("Friendly name for the API key"),environment:g(["live","sandbox"]).describe("Environment the key is valid for"),created_at:e().datetime({}).describe("When the key was created")}).and(r({prefix_hint:e().describe("Masked version of the key for display")})))}),K0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),tX=255,y0e=r({name:e().max(tX).optional().describe("Friendly name for the API key")}),BX=/^ek_(live|sandbox)_[0-9a-fA-F]{32}$/,V0e=r({id:e().regex(BX).describe("Entity API key ID (format: ek_{environment}_{hex32})")}),F0e=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),$0e=r({message:e()});var yo={};Q(yo,{resendEntityInvitationPathIdRegExp:()=>HX,getEntityInvitationPathIdRegExp:()=>RX,cancelEntityInvitationPathIdRegExp:()=>LX,acceptEntityInvitationBodyPasswordMin:()=>QX,acceptEntityInvitationBodyNameMax:()=>WX,ResendEntityInvitationResponse:()=>l0e,ResendEntityInvitationParams:()=>p0e,ResendEntityInvitationHeader:()=>f0e,ListEntityInvitationsResponse:()=>z0e,ListEntityInvitationsHeader:()=>M0e,GetEntityInvitationResponse:()=>m0e,GetEntityInvitationParams:()=>k0e,GetEntityInvitationHeader:()=>U0e,CancelEntityInvitationResponse:()=>j0e,CancelEntityInvitationParams:()=>Z0e,CancelEntityInvitationHeader:()=>C0e,AcceptEntityInvitationResponse:()=>d0e,AcceptEntityInvitationQueryParams:()=>h0e,AcceptEntityInvitationBody:()=>i0e});var M0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),z0e=r({data:P(r({id:e().describe("Invitation ID"),entity_id:e().describe("Entity ID"),email:e().describe("Invitee email"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),invited_by_user_id:e().describe("ID of user who sent the invitation"),expires_at:e().datetime({}).describe("When the invitation expires"),accepted_at:e().datetime({}).nullable().describe("When the invitation was accepted (null if pending)"),status:g(["pending","accepted","expired"]).describe("Current status of the invitation"),created_at:e().datetime({}).describe("When the invitation was created")}))}),RX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,k0e=r({id:e().regex(RX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),U0e=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),m0e=r({id:e().describe("Invitation ID"),entity_id:e().describe("Entity ID"),email:e().describe("Invitee email"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),invited_by_user_id:e().describe("ID of user who sent the invitation"),expires_at:e().datetime({}).describe("When the invitation expires"),accepted_at:e().datetime({}).nullable().describe("When the invitation was accepted (null if pending)"),status:g(["pending","accepted","expired"]).describe("Current status of the invitation"),created_at:e().datetime({}).describe("When the invitation was created")}),LX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,Z0e=r({id:e().regex(LX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),C0e=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),j0e=r({message:e()}),HX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,p0e=r({id:e().regex(HX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),f0e=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),l0e=r({message:e(),expires_at:e().datetime({})}),h0e=r({token:e().min(1).describe("Invitation token from the invitation email")}),WX=255,QX=8,i0e=r({name:e().min(1).max(WX).describe("Name of the user accepting the invitation"),password:e().min(QX).describe("Password for the new user account")}),d0e=r({message:e(),user_id:e(),entity_id:e(),access_token:e().describe("Access token to use for authenticated requests")});var Vo={};Q(Vo,{queryEntityStatsBodyOrderByMax:()=>xX,queryEntityStatsBodyOrderByItemDirectionDefault:()=>YX,queryEntityStatsBodyMetricsMax:()=>wX,queryEntityStatsBodyLimitMax:()=>KX,queryEntityStatsBodyGroupByMax:()=>XX,QueryEntityStatsResponse:()=>eIe,QueryEntityStatsHeader:()=>a0e,QueryEntityStatsBody:()=>s0e});var a0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),wX=10,XX=5,YX="asc",xX=3,KX=1000,s0e=r({metrics:P(r({type:g(["count","sum","avg","min","max"]).describe("Aggregation type"),field:e().optional().describe("Field to aggregate (required for sum/avg/min/max)"),alias:e().optional().describe("Custom name for this metric in the response")})).min(1).max(wX).describe("Metrics to compute"),table:g(["invoices","estimates","credit_notes","advance_invoices","payments","customers","items","invoice_taxes"]).describe("Table to query"),date_from:e().optional().describe("Start date (ISO format YYYY-MM-DD)"),date_to:e().optional().describe("End date (ISO format YYYY-MM-DD)"),filters:D(e(),T()).optional().describe("Additional filters (field: value pairs)"),group_by:P(e()).max(XX).optional().describe("Fields to group by"),order_by:P(r({field:e().describe("Field to order by"),direction:g(["asc","desc"]).default(YX).describe("Sort direction")})).max(xX).optional().describe("Ordering for results"),limit:v().min(1).max(KX).optional().describe("Maximum number of rows to return")}).describe("Stats query request specification"),eIe=r({query:r({table:e(),date_from:e().nullable(),date_to:e().nullable(),group_by:P(e()).nullable()}).describe("Echo of query parameters"),data:P(D(e(),T())).describe("Query results - shape depends on metrics and group_by"),row_count:v().describe("Number of rows returned")}).describe("Stats query response with aggregated data");var Fo={};Q(Fo,{updateEntityUserRolePathUserIdRegExp:()=>FX,removeEntityUserPathUserIdRegExp:()=>$X,generateEntityUserTokenResponseOneUserIdMax:()=>kX,generateEntityUserTokenResponseOneTtlDefault:()=>OIe,generateEntityUserTokenResponseOneScopeMax:()=>UX,generateEntityUserTokenResponseOneImpersonatorUserIdMax:()=>mX,generateEntityUserTokenResponseOneIdMax:()=>zX,generateEntityUserTokenPathUserIdRegExp:()=>MX,addEntityUserBodySendInviteDefault:()=>VX,addEntityUserBodyRoleDefault:()=>yX,UpdateEntityUserRoleResponse:()=>SIe,UpdateEntityUserRoleParams:()=>nIe,UpdateEntityUserRoleHeader:()=>AIe,UpdateEntityUserRoleBody:()=>IIe,RemoveEntityUserResponse:()=>_Ie,RemoveEntityUserParams:()=>gIe,RemoveEntityUserHeader:()=>PIe,GetEntityUsersResponse:()=>cIe,GetEntityUsersHeader:()=>oIe,GenerateEntityUserTokenResponse:()=>bIe,GenerateEntityUserTokenParams:()=>EIe,GenerateEntityUserTokenHeader:()=>DIe,AddEntityUserHeader:()=>rIe,AddEntityUserBody:()=>vIe});var oIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),cIe=r({data:P(r({user_id:e().describe("User ID"),entity_id:e().describe("Entity ID"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),email:e().describe("User email"),name:e().nullable().describe("User name"),invited_by_user_id:e().nullable().describe("ID of user who invited this user"),created_at:e().datetime({}).describe("When the user was added to the entity")}))}),rIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yX="editor",VX=!0,vIe=r({email:e().email().describe("Email address of the user to add or invite"),role:g(["viewer","editor","admin"]).default(yX).describe("Role to assign to the user"),send_invite:A().default(VX).describe("Whether to send an invitation email (only applies to new users)")}),FX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,nIe=r({user_id:e().regex(FX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),AIe=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),IIe=r({role:g(["viewer","editor","admin"]).describe("New role to assign to the user")}),SIe=r({user_id:e().describe("User ID"),entity_id:e().describe("Entity ID"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),email:e().describe("User email"),name:e().nullable().describe("User name"),invited_by_user_id:e().nullable().describe("ID of user who invited this user"),created_at:e().datetime({}).describe("When the user was added to the entity")}),$X=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,gIe=r({user_id:e().regex($X).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),PIe=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),_Ie=r({message:e()}),MX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,EIe=r({user_id:e().regex(MX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),DIe=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),zX=100,kX=36,OIe=31536000,UX=50,mX=36,bIe=r({id:e().max(zX),user_id:e().max(kX),ttl:v().describe("Token time-to-live in seconds"),scope:e().max(UX).nullish(),created_at:e().datetime({}),impersonator_user_id:e().max(mX).nullish(),updated_at:e().datetime({})}).describe("Access token for authentication").and(r({entity_id:e().describe("Entity ID the token is scoped to")})).describe("Access token for authentication");var $o={};Q($o,{updateEstimateResponseTotalWithTaxMin:()=>FY,updateEstimateResponseTotalWithTaxMax:()=>$Y,updateEstimateResponseTotalWithTaxConvertedMin:()=>jY,updateEstimateResponseTotalWithTaxConvertedMax:()=>pY,updateEstimateResponseTotalMin:()=>yY,updateEstimateResponseTotalMax:()=>VY,updateEstimateResponseTotalConvertedMin:()=>ZY,updateEstimateResponseTotalConvertedMax:()=>CY,updateEstimateResponseShareableIdMax:()=>mY,updateEstimateResponseNumberMax:()=>HY,updateEstimateResponseItemsItemUnitMax:()=>ex,updateEstimateResponseItemsItemTotalWithTaxMin:()=>Ax,updateEstimateResponseItemsItemTotalWithTaxMax:()=>Ix,updateEstimateResponseItemsItemTotalWithTaxConvertedMin:()=>Px,updateEstimateResponseItemsItemTotalWithTaxConvertedMax:()=>_x,updateEstimateResponseItemsItemTotalMin:()=>vx,updateEstimateResponseItemsItemTotalMax:()=>nx,updateEstimateResponseItemsItemTotalConvertedMin:()=>Sx,updateEstimateResponseItemsItemTotalConvertedMax:()=>gx,updateEstimateResponseItemsItemQuantityMin:()=>aY,updateEstimateResponseItemsItemQuantityMax:()=>sY,updateEstimateResponseItemsItemNameMax:()=>dY,updateEstimateResponseItemsItemItemIdMax:()=>bx,updateEstimateResponseItemsItemIdMax:()=>iY,updateEstimateResponseItemsItemEstimateIdMax:()=>Ex,updateEstimateResponseItemsItemDiscountsMax:()=>rx,updateEstimateResponseItemsItemDiscountsItemValueMin:()=>ox,updateEstimateResponseItemsItemDiscountsItemTypeDefault:()=>cx,updateEstimateResponseItemsItemDeliveryNoteIdMax:()=>Ox,updateEstimateResponseItemsItemAdvanceInvoiceIdMax:()=>Dx,updateEstimateResponseIssuerCountryCodeMin:()=>WY,updateEstimateResponseIssuerCountryCodeMax:()=>QY,updateEstimateResponseIssuerBankAccountTypeDefault:()=>wY,updateEstimateResponseIdMax:()=>LY,updateEstimateResponseEntityIdMax:()=>zY,updateEstimateResponseDateYearMin:()=>kY,updateEstimateResponseDateYearMax:()=>UY,updateEstimateResponseDateServiceToRegExp:()=>hY,updateEstimateResponseDateServiceRegExp:()=>lY,updateEstimateResponseDateDueRegExp:()=>fY,updateEstimateResponseCustomerIdMax:()=>XY,updateEstimateResponseCustomerCountryCodeMin:()=>YY,updateEstimateResponseCustomerCountryCodeMax:()=>xY,updateEstimateResponseCustomerBankAccountTypeDefault:()=>KY,updateEstimateResponseCurrencyCodeMax:()=>MY,updateEstimatePathIdRegExp:()=>AY,updateEstimateBodyItemsItemUnitMax:()=>NY,updateEstimateBodyItemsItemSaveItemDefault:()=>tY,updateEstimateBodyItemsItemQuantityMin:()=>TY,updateEstimateBodyItemsItemQuantityMax:()=>qY,updateEstimateBodyItemsItemDiscountsMax:()=>JY,updateEstimateBodyItemsItemDiscountsItemValueMin:()=>GY,updateEstimateBodyItemsItemDiscountsItemTypeDefault:()=>uY,updateEstimateBodyItemsItemDescriptionMax:()=>bY,updateEstimateBodyIssuerOneCountryCodeMin:()=>SY,updateEstimateBodyIssuerOneCountryCodeMax:()=>gY,updateEstimateBodyIssuerOneBankAccountTypeDefault:()=>PY,updateEstimateBodyDateValidTillRegExp:()=>RY,updateEstimateBodyDateRegExp:()=>IY,updateEstimateBodyCustomerTwoSaveCustomerDefault:()=>OY,updateEstimateBodyCustomerOneCountryCodeMin:()=>_Y,updateEstimateBodyCustomerOneCountryCodeMax:()=>EY,updateEstimateBodyCustomerOneBankAccountTypeDefault:()=>DY,updateEstimateBodyChangeReasonMax:()=>BY,renderEstimatePreviewQueryPartialDefault:()=>Gx,renderEstimatePreviewQueryLocaleMin:()=>qx,renderEstimatePreviewQueryLocaleMax:()=>Nx,renderEstimatePreviewBodyTwoItemsItemUnitMax:()=>lx,renderEstimatePreviewBodyTwoItemsItemSaveItemDefault:()=>ax,renderEstimatePreviewBodyTwoItemsItemQuantityMin:()=>px,renderEstimatePreviewBodyTwoItemsItemQuantityMax:()=>fx,renderEstimatePreviewBodyTwoItemsItemDiscountsMax:()=>dx,renderEstimatePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>hx,renderEstimatePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>ix,renderEstimatePreviewBodyTwoItemsItemDescriptionMax:()=>jx,renderEstimatePreviewBodyTwoIssuerCountryCodeMin:()=>yx,renderEstimatePreviewBodyTwoIssuerCountryCodeMax:()=>Vx,renderEstimatePreviewBodyTwoIssuerBankAccountTypeDefault:()=>Fx,renderEstimatePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>sx,renderEstimatePreviewBodyTwoDateServiceToRegExp:()=>Cx,renderEstimatePreviewBodyTwoDateServiceRegExp:()=>Zx,renderEstimatePreviewBodyTwoDateRegExp:()=>Kx,renderEstimatePreviewBodyTwoDateDueRegExp:()=>mx,renderEstimatePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>kx,renderEstimatePreviewBodyTwoCustomerOneCountryCodeMin:()=>$x,renderEstimatePreviewBodyTwoCustomerOneCountryCodeMax:()=>Mx,renderEstimatePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>zx,renderEstimatePreviewBodyTwoCurrencyCodeMax:()=>Ux,renderEstimatePreviewBodyOneIssuerCountryCodeMin:()=>Jx,renderEstimatePreviewBodyOneIssuerCountryCodeMax:()=>tx,renderEstimatePreviewBodyOneIssuerBankAccountTypeDefault:()=>Bx,renderEstimatePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>xx,renderEstimatePreviewBodyOneDateServiceToRegExp:()=>Yx,renderEstimatePreviewBodyOneDateServiceRegExp:()=>Xx,renderEstimatePreviewBodyOneDateRegExp:()=>ux,renderEstimatePreviewBodyOneDateDueRegExp:()=>wx,renderEstimatePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>Wx,renderEstimatePreviewBodyOneCustomerOneCountryCodeMin:()=>Rx,renderEstimatePreviewBodyOneCustomerOneCountryCodeMax:()=>Lx,renderEstimatePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>Hx,renderEstimatePreviewBodyOneCurrencyCodeMax:()=>Qx,getShareableEstimateResponseTotalWithTaxMin:()=>e4,getShareableEstimateResponseTotalWithTaxMax:()=>o4,getShareableEstimateResponseTotalWithTaxConvertedMin:()=>g4,getShareableEstimateResponseTotalWithTaxConvertedMax:()=>P4,getShareableEstimateResponseTotalMin:()=>aX,getShareableEstimateResponseTotalMax:()=>sX,getShareableEstimateResponseTotalConvertedMin:()=>I4,getShareableEstimateResponseTotalConvertedMax:()=>S4,getShareableEstimateResponseShareableIdMax:()=>A4,getShareableEstimateResponseNumberMax:()=>CX,getShareableEstimateResponseItemsItemUnitMax:()=>N4,getShareableEstimateResponseItemsItemTotalWithTaxMin:()=>R4,getShareableEstimateResponseItemsItemTotalWithTaxMax:()=>L4,getShareableEstimateResponseItemsItemTotalWithTaxConvertedMin:()=>Q4,getShareableEstimateResponseItemsItemTotalWithTaxConvertedMax:()=>w4,getShareableEstimateResponseItemsItemTotalMin:()=>t4,getShareableEstimateResponseItemsItemTotalMax:()=>B4,getShareableEstimateResponseItemsItemTotalConvertedMin:()=>H4,getShareableEstimateResponseItemsItemTotalConvertedMax:()=>W4,getShareableEstimateResponseItemsItemQuantityMin:()=>T4,getShareableEstimateResponseItemsItemQuantityMax:()=>q4,getShareableEstimateResponseItemsItemNameMax:()=>b4,getShareableEstimateResponseItemsItemItemIdMax:()=>K4,getShareableEstimateResponseItemsItemIdMax:()=>O4,getShareableEstimateResponseItemsItemEstimateIdMax:()=>X4,getShareableEstimateResponseItemsItemDiscountsMax:()=>J4,getShareableEstimateResponseItemsItemDiscountsItemValueMin:()=>G4,getShareableEstimateResponseItemsItemDiscountsItemTypeDefault:()=>u4,getShareableEstimateResponseItemsItemDeliveryNoteIdMax:()=>x4,getShareableEstimateResponseItemsItemAdvanceInvoiceIdMax:()=>Y4,getShareableEstimateResponseIssuerCountryCodeMin:()=>jX,getShareableEstimateResponseIssuerCountryCodeMax:()=>pX,getShareableEstimateResponseIssuerBankAccountTypeDefault:()=>fX,getShareableEstimateResponseIdMax:()=>ZX,getShareableEstimateResponseEntityIdMax:()=>r4,getShareableEstimateResponseDateYearMin:()=>v4,getShareableEstimateResponseDateYearMax:()=>n4,getShareableEstimateResponseDateServiceToRegExp:()=>D4,getShareableEstimateResponseDateServiceRegExp:()=>E4,getShareableEstimateResponseDateDueRegExp:()=>_4,getShareableEstimateResponseCustomerIdMax:()=>lX,getShareableEstimateResponseCustomerCountryCodeMin:()=>hX,getShareableEstimateResponseCustomerCountryCodeMax:()=>iX,getShareableEstimateResponseCustomerBankAccountTypeDefault:()=>dX,getShareableEstimateResponseCurrencyCodeMax:()=>c4,getEstimatesResponseDataItemTotalWithTaxMin:()=>O9,getEstimatesResponseDataItemTotalWithTaxMax:()=>b9,getEstimatesResponseDataItemTotalWithTaxConvertedMin:()=>B9,getEstimatesResponseDataItemTotalWithTaxConvertedMax:()=>R9,getEstimatesResponseDataItemTotalMin:()=>E9,getEstimatesResponseDataItemTotalMax:()=>D9,getEstimatesResponseDataItemTotalConvertedMin:()=>J9,getEstimatesResponseDataItemTotalConvertedMax:()=>t9,getEstimatesResponseDataItemShareableIdMax:()=>u9,getEstimatesResponseDataItemNumberMax:()=>v9,getEstimatesResponseDataItemItemsItemUnitMax:()=>x9,getEstimatesResponseDataItemItemsItemTotalWithTaxMin:()=>M9,getEstimatesResponseDataItemItemsItemTotalWithTaxMax:()=>z9,getEstimatesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>m9,getEstimatesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>Z9,getEstimatesResponseDataItemItemsItemTotalMin:()=>F9,getEstimatesResponseDataItemItemsItemTotalMax:()=>$9,getEstimatesResponseDataItemItemsItemTotalConvertedMin:()=>k9,getEstimatesResponseDataItemItemsItemTotalConvertedMax:()=>U9,getEstimatesResponseDataItemItemsItemQuantityMin:()=>X9,getEstimatesResponseDataItemItemsItemQuantityMax:()=>Y9,getEstimatesResponseDataItemItemsItemNameMax:()=>w9,getEstimatesResponseDataItemItemsItemItemIdMax:()=>f9,getEstimatesResponseDataItemItemsItemIdMax:()=>Q9,getEstimatesResponseDataItemItemsItemEstimateIdMax:()=>C9,getEstimatesResponseDataItemItemsItemDiscountsMax:()=>V9,getEstimatesResponseDataItemItemsItemDiscountsItemValueMin:()=>K9,getEstimatesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>y9,getEstimatesResponseDataItemItemsItemDeliveryNoteIdMax:()=>p9,getEstimatesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>j9,getEstimatesResponseDataItemIssuerCountryCodeMin:()=>n9,getEstimatesResponseDataItemIssuerCountryCodeMax:()=>A9,getEstimatesResponseDataItemIssuerBankAccountTypeDefault:()=>I9,getEstimatesResponseDataItemIdMax:()=>r9,getEstimatesResponseDataItemEntityIdMax:()=>q9,getEstimatesResponseDataItemDateYearMin:()=>N9,getEstimatesResponseDataItemDateYearMax:()=>G9,getEstimatesResponseDataItemDateServiceToRegExp:()=>W9,getEstimatesResponseDataItemDateServiceRegExp:()=>H9,getEstimatesResponseDataItemDateDueRegExp:()=>L9,getEstimatesResponseDataItemCustomerIdMax:()=>S9,getEstimatesResponseDataItemCustomerCountryCodeMin:()=>g9,getEstimatesResponseDataItemCustomerCountryCodeMax:()=>P9,getEstimatesResponseDataItemCustomerBankAccountTypeDefault:()=>_9,getEstimatesResponseDataItemCurrencyCodeMax:()=>T9,getEstimatesQueryLimitMax:()=>c9,getEstimatesQueryLimitDefault:()=>o9,getEstimateVersionsPathIdRegExp:()=>Tx,getEstimateByIdResponseTotalWithTaxMin:()=>H6,getEstimateByIdResponseTotalWithTaxMax:()=>W6,getEstimateByIdResponseTotalWithTaxConvertedMin:()=>V6,getEstimateByIdResponseTotalWithTaxConvertedMax:()=>F6,getEstimateByIdResponseTotalMin:()=>R6,getEstimateByIdResponseTotalMax:()=>L6,getEstimateByIdResponseTotalConvertedMin:()=>K6,getEstimateByIdResponseTotalConvertedMax:()=>y6,getEstimateByIdResponseShareableIdMax:()=>x6,getEstimateByIdResponseNumberMax:()=>T6,getEstimateByIdResponseItemsItemUnitMax:()=>C6,getEstimateByIdResponseItemsItemTotalWithTaxMin:()=>i6,getEstimateByIdResponseItemsItemTotalWithTaxMax:()=>d6,getEstimateByIdResponseItemsItemTotalWithTaxConvertedMin:()=>eY,getEstimateByIdResponseItemsItemTotalWithTaxConvertedMax:()=>oY,getEstimateByIdResponseItemsItemTotalMin:()=>l6,getEstimateByIdResponseItemsItemTotalMax:()=>h6,getEstimateByIdResponseItemsItemTotalConvertedMin:()=>a6,getEstimateByIdResponseItemsItemTotalConvertedMax:()=>s6,getEstimateByIdResponseItemsItemQuantityMin:()=>m6,getEstimateByIdResponseItemsItemQuantityMax:()=>Z6,getEstimateByIdResponseItemsItemNameMax:()=>U6,getEstimateByIdResponseItemsItemItemIdMax:()=>nY,getEstimateByIdResponseItemsItemIdMax:()=>k6,getEstimateByIdResponseItemsItemEstimateIdMax:()=>cY,getEstimateByIdResponseItemsItemDiscountsMax:()=>f6,getEstimateByIdResponseItemsItemDiscountsItemValueMin:()=>j6,getEstimateByIdResponseItemsItemDiscountsItemTypeDefault:()=>p6,getEstimateByIdResponseItemsItemDeliveryNoteIdMax:()=>vY,getEstimateByIdResponseItemsItemAdvanceInvoiceIdMax:()=>rY,getEstimateByIdResponseIssuerCountryCodeMin:()=>q6,getEstimateByIdResponseIssuerCountryCodeMax:()=>N6,getEstimateByIdResponseIssuerBankAccountTypeDefault:()=>G6,getEstimateByIdResponseIdMax:()=>b6,getEstimateByIdResponseEntityIdMax:()=>w6,getEstimateByIdResponseDateYearMin:()=>X6,getEstimateByIdResponseDateYearMax:()=>Y6,getEstimateByIdResponseDateServiceToRegExp:()=>z6,getEstimateByIdResponseDateServiceRegExp:()=>M6,getEstimateByIdResponseDateDueRegExp:()=>$6,getEstimateByIdResponseCustomerIdMax:()=>u6,getEstimateByIdResponseCustomerCountryCodeMin:()=>J6,getEstimateByIdResponseCustomerCountryCodeMax:()=>t6,getEstimateByIdResponseCustomerBankAccountTypeDefault:()=>B6,getEstimateByIdResponseCurrencyCodeMax:()=>Q6,getEstimateByIdPathIdRegExp:()=>O6,createEstimateBodyItemsItemUnitMax:()=>h4,createEstimateBodyItemsItemSaveItemDefault:()=>s4,createEstimateBodyItemsItemQuantityMin:()=>f4,createEstimateBodyItemsItemQuantityMax:()=>l4,createEstimateBodyItemsItemDiscountsMax:()=>a4,createEstimateBodyItemsItemDiscountsItemValueMin:()=>i4,createEstimateBodyItemsItemDiscountsItemTypeDefault:()=>d4,createEstimateBodyItemsItemDescriptionMax:()=>p4,createEstimateBodyIssuerCountryCodeMin:()=>V4,createEstimateBodyIssuerCountryCodeMax:()=>F4,createEstimateBodyIssuerBankAccountTypeDefault:()=>$4,createEstimateBodyExpectedTotalWithTaxExclusiveMin:()=>e9,createEstimateBodyDateServiceToRegExp:()=>j4,createEstimateBodyDateServiceRegExp:()=>C4,createEstimateBodyDateRegExp:()=>y4,createEstimateBodyDateDueRegExp:()=>Z4,createEstimateBodyCustomerTwoSaveCustomerDefault:()=>U4,createEstimateBodyCustomerOneCountryCodeMin:()=>M4,createEstimateBodyCustomerOneCountryCodeMax:()=>z4,createEstimateBodyCustomerOneBankAccountTypeDefault:()=>k4,createEstimateBodyCurrencyCodeMax:()=>m4,createCustomEstimateBodyItemsItemUnitMax:()=>g6,createCustomEstimateBodyItemsItemSaveItemDefault:()=>D6,createCustomEstimateBodyItemsItemQuantityMin:()=>I6,createCustomEstimateBodyItemsItemQuantityMax:()=>S6,createCustomEstimateBodyItemsItemDiscountsMax:()=>E6,createCustomEstimateBodyItemsItemDiscountsItemValueMin:()=>P6,createCustomEstimateBodyItemsItemDiscountsItemTypeDefault:()=>_6,createCustomEstimateBodyItemsItemDescriptionMax:()=>A6,createCustomEstimateBodyIssuerCountryCodeMin:()=>h9,createCustomEstimateBodyIssuerCountryCodeMax:()=>i9,createCustomEstimateBodyIssuerBankAccountTypeDefault:()=>d9,createCustomEstimateBodyDateServiceToRegExp:()=>n6,createCustomEstimateBodyDateServiceRegExp:()=>v6,createCustomEstimateBodyDateRegExp:()=>l9,createCustomEstimateBodyDateDueRegExp:()=>r6,createCustomEstimateBodyCustomerTwoSaveCustomerDefault:()=>o6,createCustomEstimateBodyCustomerOneCountryCodeMin:()=>a9,createCustomEstimateBodyCustomerOneCountryCodeMax:()=>s9,createCustomEstimateBodyCustomerOneBankAccountTypeDefault:()=>e6,createCustomEstimateBodyCurrencyCodeMax:()=>c6,UpdateEstimateResponse:()=>FIe,UpdateEstimateParams:()=>KIe,UpdateEstimateHeader:()=>yIe,UpdateEstimateBody:()=>VIe,RenderEstimatePreviewQueryParams:()=>ZIe,RenderEstimatePreviewHeader:()=>CIe,RenderEstimatePreviewBody:()=>jIe,GetShareableEstimateResponse:()=>qIe,GetShareableEstimatePdfQueryParams:()=>JIe,GetShareableEstimatePdfParams:()=>uIe,GetShareableEstimateParams:()=>TIe,GetShareableEstimateHtmlQueryParams:()=>GIe,GetShareableEstimateHtmlParams:()=>NIe,GetEstimatesResponse:()=>HIe,GetEstimatesQueryParams:()=>RIe,GetEstimatesHeader:()=>LIe,GetEstimateVersionsResponse:()=>zIe,GetEstimateVersionsParams:()=>$Ie,GetEstimateVersionsHeader:()=>MIe,GetEstimateVersionResponse:()=>mIe,GetEstimateVersionParams:()=>kIe,GetEstimateVersionHeader:()=>UIe,GetEstimateByIdResponse:()=>xIe,GetEstimateByIdQueryParams:()=>XIe,GetEstimateByIdParams:()=>wIe,GetEstimateByIdHeader:()=>YIe,CreateEstimateHeader:()=>tIe,CreateEstimateBody:()=>BIe,CreateCustomEstimateHeader:()=>WIe,CreateCustomEstimateBody:()=>QIe});var TIe=r({shareableId:e().describe("Shareable document token")}),ZX=36,CX=100,jX=2,pX=2,fX="iban",lX=36,hX=2,iX=2,dX="iban",aX=-140737488355328,sX=140737488355327,e4=-140737488355328,o4=140737488355327,c4=3,r4=36,v4=-2147483648,n4=2147483647,A4=64,I4=-140737488355328,S4=140737488355327,g4=-140737488355328,P4=140737488355327,_4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,E4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,D4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,O4=36,b4=500,T4=-140737488355328,q4=140737488355327,N4=50,G4=0,u4="percent",J4=5,t4=-140737488355328,B4=140737488355327,R4=-140737488355328,L4=140737488355327,H4=-140737488355328,W4=140737488355327,Q4=-140737488355328,w4=140737488355327,X4=36,Y4=36,x4=36,K4=36,qIe=r({id:e().max(ZX),number:e().max(CX),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(jX).max(pX).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(fX).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(lX).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(hX).max(iX).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(dX).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(aX).max(sX),total_with_tax:v().min(e4).max(o4),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(c4),entity_id:e().max(r4),date_year:v().min(v4).max(n4),shareable_id:e().max(A4).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(I4).max(S4).nullish(),total_with_tax_converted:v().min(g4).max(P4).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(_4).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(E4).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(D4).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(O4),name:e().max(b4),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
140
- Only present if user originally sent gross price.
141
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(T4).max(q4),unit:e().max(N4).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(G4).describe("Discount value"),type:g(["percent","amount"]).default(u4).describe("Discount type: 'percent' (default) or 'amount'")})).max(J4).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(t4).max(B4),total_with_tax:v().min(R4).max(L4),total_converted:v().min(H4).max(W4).nullish(),total_with_tax_converted:v().min(Q4).max(w4).nullish(),estimate_id:e().max(X4).nullish(),advance_invoice_id:e().max(Y4).nullish(),delivery_note_id:e().max(x4).nullish(),item_id:e().max(K4).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document"),NIe=r({shareableId:e().describe("Shareable document token")}),GIe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),uIe=r({shareableId:e().describe("Shareable document token")}),JIe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),tIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),y4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,V4=2,F4=2,$4="iban",M4=2,z4=2,k4="iban",U4=!0,m4=3,Z4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,C4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,j4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,p4=2000,f4=-140737488355328,l4=140737488355327,h4=50,i4=0,d4="percent",a4=5,s4=!0,e9=0,BIe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(y4).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(V4).max(F4).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default($4).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(M4).max(z4).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(k4).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(U4).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(m4).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(Z4).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(C4).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(j4).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(p4).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(f4).max(l4),unit:e().max(h4).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(i4).describe("Discount value"),type:g(["percent","amount"]).default(d4).describe("Discount type: 'percent' (default) or 'amount'")})).max(a4).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
142
- When provided, the item's name, description, price, and taxes are used as defaults.
143
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(s4).describe(`Whether to save this item to the catalog.
144
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
145
- Default: true.`)})).min(1).describe("Line items for the estimate. At least one item is required."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),expected_total_with_tax:v().gt(e9).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),o9=10,c9=100,RIe=r({limit:v().min(1).max(c9).default(o9).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","number","date","total","total_with_tax","created_at","updated_at","date_valid_till","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_valid_till"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","date_valid_till","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_valid_till"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, date_valid_till\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
146
- Searches are case-insensitive and match partial strings.
147
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe(`Comma-separated list of relations to include in the response.
148
-
149
- **Available relations:**
150
- - \`document_relations\` - Linked documents (invoices, etc.)
151
-
152
- **Usage:**
153
- \`?include=document_relations\``),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),LIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),r9=36,v9=100,n9=2,A9=2,I9="iban",S9=36,g9=2,P9=2,_9="iban",E9=-140737488355328,D9=140737488355327,O9=-140737488355328,b9=140737488355327,T9=3,q9=36,N9=-2147483648,G9=2147483647,u9=64,J9=-140737488355328,t9=140737488355327,B9=-140737488355328,R9=140737488355327,L9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,H9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,W9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Q9=36,w9=500,X9=-140737488355328,Y9=140737488355327,x9=50,K9=0,y9="percent",V9=5,F9=-140737488355328,$9=140737488355327,M9=-140737488355328,z9=140737488355327,k9=-140737488355328,U9=140737488355327,m9=-140737488355328,Z9=140737488355327,C9=36,j9=36,p9=36,f9=36,HIe=r({data:P(r({id:e().max(r9),number:e().max(v9),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(n9).max(A9).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(I9).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(S9).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(g9).max(P9).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(_9).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(E9).max(D9),total_with_tax:v().min(O9).max(b9),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(T9),entity_id:e().max(q9),date_year:v().min(N9).max(G9),shareable_id:e().max(u9).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(J9).max(t9).nullish(),total_with_tax_converted:v().min(B9).max(R9).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(L9).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(H9).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(W9).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(Q9),name:e().max(w9),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
154
- Only present if user originally sent gross price.
155
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(X9).max(Y9),unit:e().max(x9).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(K9).describe("Discount value"),type:g(["percent","amount"]).default(y9).describe("Discount type: 'percent' (default) or 'amount'")})).max(V9).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(F9).max($9),total_with_tax:v().min(M9).max(z9),total_converted:v().min(k9).max(U9).nullish(),total_with_tax_converted:v().min(m9).max(Z9).nullish(),estimate_id:e().max(C9).nullish(),advance_invoice_id:e().max(j9).nullish(),delivery_note_id:e().max(p9).nullish(),item_id:e().max(f9).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),WIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),l9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,h9=2,i9=2,d9="iban",a9=2,s9=2,e6="iban",o6=!0,c6=3,r6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,v6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,n6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,A6=2000,I6=-140737488355328,S6=140737488355327,g6=50,P6=0,_6="percent",E6=5,D6=!0,QIe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(l9).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(h9).max(i9).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(d9).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(a9).max(s9).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(e6).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(o6).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(c6).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(r6).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(v6).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(n6).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(A6).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(I6).max(S6),unit:e().max(g6).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(P6).describe("Discount value"),type:g(["percent","amount"]).default(_6).describe("Discount type: 'percent' (default) or 'amount'")})).max(E6).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
156
- When provided, the item's name, description, price, and taxes are used as defaults.
157
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(D6).describe(`Whether to save this item to the catalog.
158
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
159
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),O6=/^[a-z]{3,4}_[0-9a-f]{24}$/,wIe=r({id:e().regex(O6).describe("Unique resource identifier")}),XIe=r({include:e().optional().describe(`Comma-separated list of relations to include in the response.
160
-
161
- **Available relations:**
162
- - \`document_relations\` - Linked documents (invoices, etc.)
163
-
164
- **Usage:**
165
- \`?include=document_relations\``)}),YIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),b6=36,T6=100,q6=2,N6=2,G6="iban",u6=36,J6=2,t6=2,B6="iban",R6=-140737488355328,L6=140737488355327,H6=-140737488355328,W6=140737488355327,Q6=3,w6=36,X6=-2147483648,Y6=2147483647,x6=64,K6=-140737488355328,y6=140737488355327,V6=-140737488355328,F6=140737488355327,$6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,M6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,z6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,k6=36,U6=500,m6=-140737488355328,Z6=140737488355327,C6=50,j6=0,p6="percent",f6=5,l6=-140737488355328,h6=140737488355327,i6=-140737488355328,d6=140737488355327,a6=-140737488355328,s6=140737488355327,eY=-140737488355328,oY=140737488355327,cY=36,rY=36,vY=36,nY=36,xIe=r({id:e().max(b6),number:e().max(T6),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(q6).max(N6).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(G6).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(u6).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(J6).max(t6).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(B6).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(R6).max(L6),total_with_tax:v().min(H6).max(W6),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(Q6),entity_id:e().max(w6),date_year:v().min(X6).max(Y6),shareable_id:e().max(x6).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(K6).max(y6).nullish(),total_with_tax_converted:v().min(V6).max(F6).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex($6).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(M6).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(z6).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(k6),name:e().max(U6),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
166
- Only present if user originally sent gross price.
167
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(m6).max(Z6),unit:e().max(C6).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(j6).describe("Discount value"),type:g(["percent","amount"]).default(p6).describe("Discount type: 'percent' (default) or 'amount'")})).max(f6).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(l6).max(h6),total_with_tax:v().min(i6).max(d6),total_converted:v().min(a6).max(s6).nullish(),total_with_tax_converted:v().min(eY).max(oY).nullish(),estimate_id:e().max(cY).nullish(),advance_invoice_id:e().max(rY).nullish(),delivery_note_id:e().max(vY).nullish(),item_id:e().max(nY).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document"),AY=/^[a-z]{3,4}_[0-9a-f]{24}$/,KIe=r({id:e().regex(AY).describe("Unique resource identifier")}),yIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),IY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,SY=2,gY=2,PY="iban",_Y=2,EY=2,DY="iban",OY=!0,bY=2000,TY=-140737488355328,qY=140737488355327,NY=50,GY=0,uY="percent",JY=5,tY=!0,BY=500,RY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,VIe=r({date:e().regex(IY).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(SY).max(gY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(PY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(T().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(_Y).max(EY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(DY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(OY).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(bY).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(TY).max(qY),unit:e().max(NY).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(GY).describe("Discount value"),type:g(["percent","amount"]).default(uY).describe("Discount type: 'percent' (default) or 'amount'")})).max(JY).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
168
- When provided, the item's name, description, price, and taxes are used as defaults.
169
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(tY).describe(`Whether to save this item to the catalog.
170
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
171
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:D(e(),T()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(BY).optional().describe("Reason for the change. Stored in version history for audit trail."),date_valid_till:e().regex(RY).nullish().describe("Estimate validity date (YYYY-MM-DD or ISO datetime format). Set to null to clear."),title_type:g(["estimate","quote"]).optional().describe('Document title type. "estimate" or "quote".'),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),LY=36,HY=100,WY=2,QY=2,wY="iban",XY=36,YY=2,xY=2,KY="iban",yY=-140737488355328,VY=140737488355327,FY=-140737488355328,$Y=140737488355327,MY=3,zY=36,kY=-2147483648,UY=2147483647,mY=64,ZY=-140737488355328,CY=140737488355327,jY=-140737488355328,pY=140737488355327,fY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,lY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,hY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,iY=36,dY=500,aY=-140737488355328,sY=140737488355327,ex=50,ox=0,cx="percent",rx=5,vx=-140737488355328,nx=140737488355327,Ax=-140737488355328,Ix=140737488355327,Sx=-140737488355328,gx=140737488355327,Px=-140737488355328,_x=140737488355327,Ex=36,Dx=36,Ox=36,bx=36,FIe=r({id:e().max(LY),number:e().max(HY),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(WY).max(QY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(wY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(XY).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(YY).max(xY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(KY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(yY).max(VY),total_with_tax:v().min(FY).max($Y),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(MY),entity_id:e().max(zY),date_year:v().min(kY).max(UY),shareable_id:e().max(mY).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(ZY).max(CY).nullish(),total_with_tax_converted:v().min(jY).max(pY).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(fY).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(lY).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(hY).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(iY),name:e().max(dY),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
172
- Only present if user originally sent gross price.
173
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(aY).max(sY),unit:e().max(ex).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(ox).describe("Discount value"),type:g(["percent","amount"]).default(cx).describe("Discount type: 'percent' (default) or 'amount'")})).max(rx).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(vx).max(nx),total_with_tax:v().min(Ax).max(Ix),total_converted:v().min(Sx).max(gx).nullish(),total_with_tax_converted:v().min(Px).max(_x).nullish(),estimate_id:e().max(Ex).nullish(),advance_invoice_id:e().max(Dx).nullish(),delivery_note_id:e().max(Ox).nullish(),item_id:e().max(bx).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document"),Tx=/^[a-z]{3,4}_[0-9a-f]{24}$/,$Ie=r({id:e().regex(Tx).describe("Unique resource identifier")}),MIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),zIe=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),kIe=r({id:e().describe("Estimate ID"),version:v().min(1).describe("Version number")}),UIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),mIe=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),qx=2,Nx=5,Gx="true",ZIe=r({template:g(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e().min(qx).max(Nx).nullish(),partial:g(["true","false"]).default(Gx).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),CIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ux=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Jx=2,tx=2,Bx="iban",Rx=2,Lx=2,Hx="iban",Wx=!0,Qx=3,wx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Xx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Yx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,xx=0,Kx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,yx=2,Vx=2,Fx="iban",$x=2,Mx=2,zx="iban",kx=!0,Ux=3,mx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Zx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Cx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,jx=2000,px=-140737488355328,fx=140737488355327,lx=50,hx=0,ix="percent",dx=5,ax=!0,sx=0,jIe=t([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(ux).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Jx).max(tx).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Bx).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Rx).max(Lx).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Hx).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Wx).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(Qx).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(wx).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Xx).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Yx).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:D(e(),e()).optional()})).min(1),expected_total_with_tax:v().gt(xx).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(Kx).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(yx).max(Vx).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Fx).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min($x).max(Mx).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(zx).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(kx).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(Ux).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(mx).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Zx).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Cx).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(jx).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(px).max(fx),unit:e().max(lx).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(hx).describe("Discount value"),type:g(["percent","amount"]).default(ix).describe("Discount type: 'percent' (default) or 'amount'")})).max(dx).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
174
- When provided, the item's name, description, price, and taxes are used as defaults.
175
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(ax).describe(`Whether to save this item to the catalog.
176
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
177
- Default: true.`)})).min(1).describe("Line items for the estimate. At least one item is required."),expected_total_with_tax:v().gt(sx).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]);var Mo={};Q(Mo,{exportSalesPerItemQueryLanguageDefault:()=>oK,exportDocumentsQueryLanguageDefault:()=>eK,StartPdfExportHeader:()=>iIe,StartPdfExportBody:()=>dIe,GetPdfExportStatusResponse:()=>eSe,GetPdfExportStatusParams:()=>aIe,GetPdfExportStatusHeader:()=>sIe,ExportSalesPerItemQueryParams:()=>lIe,ExportSalesPerItemHeader:()=>hIe,ExportDocumentsQueryParams:()=>pIe,ExportDocumentsHeader:()=>fIe});var eK="en",pIe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type to export"),format:g(["xlsx","csv"]).describe("Export format"),date_from:e().optional().describe("Start date filter (ISO 8601 date). Date range cannot exceed 1 year."),date_to:e().optional().describe("End date filter (ISO 8601 date). Date range cannot exceed 1 year."),language:g(["en","sl","de","it","fr","es"]).default(eK).describe("Language for column headers. Default: en."),query:e().optional().describe("JSON query filter (same as list endpoints)"),search:e().optional().describe("Full-text search")}),fIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),oK="en",lIe=r({format:g(["xlsx","csv"]).describe("Export format"),date_from:e().describe("Start date filter (ISO 8601 date). Required. Date range cannot exceed 1 year."),date_to:e().describe("End date filter (ISO 8601 date). Required. Date range cannot exceed 1 year."),language:g(["en","sl","de","it","fr","es","pt","nl","pl","hr"]).default(oK).describe("Language for column headers. Default: en.")}),hIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),iIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),dIe=t([r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type to export"),document_ids:P(e()).min(1).describe("Specific document IDs to export")}),r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type to export"),date_from:e().optional().describe("Start date filter (ISO 8601 date). Date range cannot exceed 1 year."),date_to:e().optional().describe("End date filter (ISO 8601 date). Date range cannot exceed 1 year.")})]),aIe=r({jobId:e().describe("Export job ID")}),sIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),eSe=r({id:e().describe("Export job ID"),status:g(["pending","processing","completed","failed"]).describe("Export job status"),progress:v().describe("Export progress percentage (0-100)"),total_docs:v().nullable().describe("Total number of documents to export"),file_url:e().nullable().describe("Download URL for the completed export"),error:e().nullable().describe("Error message if the export failed")});var zo={};Q(zo,{getFilesResponseDataItemOneWidthMin:()=>bK,getFilesResponseDataItemOneWidthMax:()=>TK,getFilesResponseDataItemOneUrlMax:()=>_K,getFilesResponseDataItemOneSecureUrlMax:()=>EK,getFilesResponseDataItemOnePublicIdMax:()=>DK,getFilesResponseDataItemOneMimeTypeMax:()=>tK,getFilesResponseDataItemOneInvoiceIdMax:()=>AK,getFilesResponseDataItemOneIdMax:()=>vK,getFilesResponseDataItemOneHeightMin:()=>qK,getFilesResponseDataItemOneHeightMax:()=>NK,getFilesResponseDataItemOneFormatMax:()=>OK,getFilesResponseDataItemOneFilenameMax:()=>JK,getFilesResponseDataItemOneEstimateIdMax:()=>IK,getFilesResponseDataItemOneEntityIdMax:()=>nK,getFilesResponseDataItemOneCreditNoteIdMax:()=>SK,getFilesResponseDataItemOneCategoryMax:()=>PK,getFilesResponseDataItemOneCacheKeyMax:()=>BK,getFilesResponseDataItemOneBytesMin:()=>GK,getFilesResponseDataItemOneBytesMax:()=>uK,getFilesResponseDataItemOneAdvanceInvoiceIdMax:()=>gK,getFilesQueryLimitMax:()=>rK,getFilesQueryLimitDefault:()=>cK,getFileByIdResponseOneWidthMin:()=>FK,getFileByIdResponseOneWidthMax:()=>$K,getFileByIdResponseOneUrlMax:()=>xK,getFileByIdResponseOneSecureUrlMax:()=>KK,getFileByIdResponseOnePublicIdMax:()=>yK,getFileByIdResponseOneMimeTypeMax:()=>ZK,getFileByIdResponseOneInvoiceIdMax:()=>WK,getFileByIdResponseOneIdMax:()=>LK,getFileByIdResponseOneHeightMin:()=>MK,getFileByIdResponseOneHeightMax:()=>zK,getFileByIdResponseOneFormatMax:()=>VK,getFileByIdResponseOneFilenameMax:()=>mK,getFileByIdResponseOneEstimateIdMax:()=>QK,getFileByIdResponseOneEntityIdMax:()=>HK,getFileByIdResponseOneCreditNoteIdMax:()=>wK,getFileByIdResponseOneCategoryMax:()=>YK,getFileByIdResponseOneCacheKeyMax:()=>CK,getFileByIdResponseOneBytesMin:()=>kK,getFileByIdResponseOneBytesMax:()=>UK,getFileByIdResponseOneAdvanceInvoiceIdMax:()=>XK,getFileByIdPathIdRegExp:()=>RK,deleteFilePathIdRegExp:()=>jK,UploadFileHeader:()=>oSe,UploadFileBody:()=>cSe,GetFilesResponse:()=>nSe,GetFilesQueryParams:()=>rSe,GetFilesHeader:()=>vSe,GetFileByIdResponse:()=>SSe,GetFileByIdParams:()=>ASe,GetFileByIdHeader:()=>ISe,DeleteFileParams:()=>gSe,DeleteFileHeader:()=>PSe});var oSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),cSe=r({file:ce(File).optional().describe("File to upload"),category:g(["logo","signature","attachment"]).describe("File category (logo, signature, or attachment)"),account_payable_id:e().optional().describe("Account payable ID for attachments (optional, only for attachment category)")}),cK=10,rK=100,rSe=r({limit:v().min(1).max(rK).default(cK).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),category:g(["logo","signature","attachment"]).optional().describe("Filter by file category"),account_payable_id:e().optional().describe("Filter by account payable ID (for attachments)")}),vSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vK=36,nK=36,AK=36,IK=36,SK=36,gK=36,PK=20,_K=500,EK=500,DK=200,OK=20,bK=-2147483648,TK=2147483647,qK=-2147483648,NK=2147483647,GK=-2147483648,uK=2147483647,JK=255,tK=100,BK=255,nSe=r({data:P(r({id:e().max(vK),entity_id:e().max(nK),invoice_id:e().max(AK).nullish(),estimate_id:e().max(IK).nullish(),credit_note_id:e().max(SK).nullish(),advance_invoice_id:e().max(gK).nullish(),category:e().max(PK),url:e().max(_K),secureUrl:e().max(EK),publicId:e().max(DK),format:e().max(OK),width:v().min(bK).max(TK).nullish(),height:v().min(qK).max(NK).nullish(),bytes:v().min(GK).max(uK),filename:e().max(JK).nullish(),mime_type:e().max(tK),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),cache_key:e().max(BK).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("File metadata record with upload information").and(r({})).describe("File metadata record with upload information")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),RK=/^[a-z]{3,4}_[0-9a-f]{24}$/,ASe=r({id:e().regex(RK).describe("Unique resource identifier")}),ISe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),LK=36,HK=36,WK=36,QK=36,wK=36,XK=36,YK=20,xK=500,KK=500,yK=200,VK=20,FK=-2147483648,$K=2147483647,MK=-2147483648,zK=2147483647,kK=-2147483648,UK=2147483647,mK=255,ZK=100,CK=255,SSe=r({id:e().max(LK),entity_id:e().max(HK),invoice_id:e().max(WK).nullish(),estimate_id:e().max(QK).nullish(),credit_note_id:e().max(wK).nullish(),advance_invoice_id:e().max(XK).nullish(),category:e().max(YK),url:e().max(xK),secureUrl:e().max(KK),publicId:e().max(yK),format:e().max(VK),width:v().min(FK).max($K).nullish(),height:v().min(MK).max(zK).nullish(),bytes:v().min(kK).max(UK),filename:e().max(mK).nullish(),mime_type:e().max(ZK),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),cache_key:e().max(CK).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("File metadata record with upload information").and(r({})).describe("File metadata record with upload information"),jK=/^[a-z]{3,4}_[0-9a-f]{24}$/,gSe=r({id:e().regex(jK).describe("Unique resource identifier")}),PSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var ko={};Q(ko,{UploadFinaCertificateResponse:()=>DSe,UploadFinaCertificateHeader:()=>_Se,UploadFinaCertificateBody:()=>ESe,GetFinaCertificateResponse:()=>bSe,GetFinaCertificateHeader:()=>OSe,DeleteFinaCertificateHeader:()=>TSe});var _Se=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ESe=r({file:ce(File).optional().describe("P12/PFX certificate file"),passphrase:e().optional().describe("Certificate passphrase (will be encrypted before storage)")}),DSe=r({certificate_expiry:e().datetime({}).describe("Certificate expiration date (ISO 8601 format)"),message:e().describe("Success message")}),OSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),bSe=r({certificate_expiry:e(),certificate_cn:e().nullable(),certificate_issuer:e().nullable(),uploaded_at:e(),message:e()}),TSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var Uo={};Q(Uo,{registerFinaDeviceBodyDeviceIdRegExp:()=>lK,registerFinaDeviceBodyDeviceIdMax:()=>fK,RegisterFinaDeviceParams:()=>uSe,RegisterFinaDeviceHeader:()=>JSe,RegisterFinaDeviceBody:()=>tSe,ListFinaDevicesResponseItem:()=>pK,ListFinaDevicesResponse:()=>GSe,ListFinaDevicesParams:()=>qSe,ListFinaDevicesHeader:()=>NSe,GetFinaDeviceResponse:()=>LSe,GetFinaDeviceParams:()=>BSe,GetFinaDeviceHeader:()=>RSe,DeleteFinaDeviceResponse:()=>QSe,DeleteFinaDeviceParams:()=>HSe,DeleteFinaDeviceHeader:()=>WSe});var qSe=r({id:e().describe("Premise ID")}),NSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),pK=r({id:e(),premise_id:e(),device_id:e(),is_active:A(),created_at:e().datetime({}),updated_at:e().datetime({})}),GSe=P(pK),uSe=r({id:e().describe("Premise ID")}),JSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),fK=20,lK=/^\d{1,20}$/,tSe=r({device_id:e().min(1).max(fK).regex(lK).describe("Electronic device ID (OznNapUr), digits only, 1-20 chars")}),BSe=r({id:e().describe("Device ID")}),RSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),LSe=r({id:e(),premise_id:e(),device_id:e(),is_active:A(),created_at:e().datetime({}),updated_at:e().datetime({})}),HSe=r({id:e().describe("Device ID")}),WSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),QSe=r({success:A().describe("Operation success status"),message:e().describe("Success message"),device_id:e().describe("ID of the registered electronic device")});var mo={};Q(mo,{createFinaPremiseBodyPremiseIdRegExp:()=>dK,createFinaPremiseBodyPremiseIdMax:()=>iK,ListFinaPremisesResponseItem:()=>hK,ListFinaPremisesResponse:()=>XSe,ListFinaPremisesHeader:()=>wSe,GetFinaPremiseResponse:()=>VSe,GetFinaPremiseParams:()=>KSe,GetFinaPremiseHeader:()=>ySe,DeleteFinaPremiseResponse:()=>MSe,DeleteFinaPremiseParams:()=>FSe,DeleteFinaPremiseHeader:()=>$Se,CreateFinaPremiseHeader:()=>YSe,CreateFinaPremiseBody:()=>xSe});var wSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),hK=r({id:e(),entity_id:e(),premise_id:e(),type:e(),real_estate:r({cadastral_municipality:e(),land_registry_number:e(),building_number:e().nullable(),sub_building_number:e().nullable(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),settlement:e().nullable(),city:e().nullable(),postal_code:e().nullable()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),registered_at:e().datetime({}).nullable(),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),premise_id:e(),device_id:e(),is_active:A(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),XSe=P(hK),YSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),iK=20,dK=/^[0-9a-zA-Z]{1,20}$/,xSe=r({premise_id:e().min(1).max(iK).regex(dK).describe("Business premise ID (OznPosPr), alphanumeric, 1-20 chars. Must match the ID registered on ePorezna.")}),KSe=r({id:e().describe("Premise ID")}),ySe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),VSe=r({id:e(),entity_id:e(),premise_id:e(),type:e(),real_estate:r({cadastral_municipality:e(),land_registry_number:e(),building_number:e().nullable(),sub_building_number:e().nullable(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),settlement:e().nullable(),city:e().nullable(),postal_code:e().nullable()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),registered_at:e().datetime({}).nullable(),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),premise_id:e(),device_id:e(),is_active:A(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),FSe=r({id:e().describe("Premise ID")}),$Se=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),MSe=r({success:A().describe("Operation success status"),message:e().describe("Success message"),premise_id:e().describe("Business premise ID")});var Zo={};Q(Zo,{updateFinaSettingsBodyOperatorOibMin:()=>aK,updateFinaSettingsBodyOperatorOibMax:()=>sK,UpdateFinaSettingsResponse:()=>ZSe,UpdateFinaSettingsHeader:()=>USe,UpdateFinaSettingsBody:()=>mSe,GetFinaSettingsResponse:()=>kSe,GetFinaSettingsHeader:()=>zSe});var zSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),kSe=r({enabled:A().describe("Whether CIS fiscalization is enabled"),operator_oib:e().optional().describe("Operator OIB"),operator_label:e().optional().describe("Operator label"),u_sust_pdv:A().optional().describe("Whether entity is in PDV system"),numbering_sequence:g(["N","P"]).optional().describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")}),USe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),aK=11,sK=11,mSe=r({enabled:A().optional().describe("Enable/disable CIS fiscalization"),operator_oib:e().min(aK).max(sK).optional().describe("Operator OIB (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name"),u_sust_pdv:A().optional().describe("Whether the entity is in the PDV (VAT) system"),numbering_sequence:g(["N","P"]).optional().describe("Numbering sequence: P (per premise) or N (per device)")}),ZSe=r({enabled:A().describe("Whether CIS fiscalization is enabled"),operator_oib:e().optional().describe("Operator OIB"),operator_label:e().optional().describe("Operator label"),u_sust_pdv:A().optional().describe("Whether entity is in PDV system"),numbering_sequence:g(["N","P"]).optional().describe("Numbering sequence: P (per premise) or N (per device)"),certificate_expiry:e().optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")});var Co={};Q(Co,{UploadFursCertificateResponse:()=>pSe,UploadFursCertificateHeader:()=>CSe,UploadFursCertificateBody:()=>jSe,GetFursCertificateResponse:()=>lSe,GetFursCertificateHeader:()=>fSe,DeleteFursCertificateHeader:()=>hSe});var CSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),jSe=r({file:ce(File).optional().describe("P12/PFX certificate file"),passphrase:e().optional().describe("Certificate passphrase (will be encrypted before storage)")}),pSe=r({certificate_expiry:e().datetime({}).describe("Certificate expiration date (ISO 8601 format)"),message:e().describe("Success message")}),fSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),lSe=r({certificate_expiry:e(),certificate_cn:e().nullable(),certificate_issuer:e().nullable(),uploaded_at:e(),message:e()}),hSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var jo={};Q(jo,{registerFursElectronicDeviceBodyNameMax:()=>oy,RegisterFursElectronicDeviceParams:()=>sSe,RegisterFursElectronicDeviceHeader:()=>ege,RegisterFursElectronicDeviceBody:()=>oge,ListFursElectronicDevicesResponseItem:()=>ey,ListFursElectronicDevicesResponse:()=>aSe,ListFursElectronicDevicesParams:()=>iSe,ListFursElectronicDevicesHeader:()=>dSe,GetFursElectronicDeviceResponse:()=>vge,GetFursElectronicDeviceParams:()=>cge,GetFursElectronicDeviceHeader:()=>rge});var iSe=r({id:e().describe("Business premise ID")}),dSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ey=r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})}),aSe=P(ey),sSe=r({id:e().describe("Business premise ID")}),ege=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),oy=20,oge=r({name:e().min(1).max(oy).describe("Electronic device name/identifier (e.g., 'E1', 'POS1', 'DEVICE1')")}),cge=r({id:e().describe("Electronic device ID")}),rge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vge=r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})});var po={};Q(po,{registerFursRealEstatePremiseBodyRealEstateStreetMax:()=>Iy,registerFursRealEstatePremiseBodyRealEstatePostalCodeRegExp:()=>Oy,registerFursRealEstatePremiseBodyRealEstatePostalCodeMin:()=>Ey,registerFursRealEstatePremiseBodyRealEstatePostalCodeMax:()=>Dy,registerFursRealEstatePremiseBodyRealEstateHouseNumberMax:()=>Sy,registerFursRealEstatePremiseBodyRealEstateHouseNumberAdditionalMax:()=>gy,registerFursRealEstatePremiseBodyRealEstateCommunityMax:()=>Py,registerFursRealEstatePremiseBodyRealEstateCityMax:()=>_y,registerFursRealEstatePremiseBodyRealEstateCadastralNumberRegExp:()=>vy,registerFursRealEstatePremiseBodyRealEstateBuildingSectionRegExp:()=>Ay,registerFursRealEstatePremiseBodyRealEstateBuildingNumberRegExp:()=>ny,registerFursRealEstatePremiseBodyBusinessPremiseNameMax:()=>ry,registerFursMovablePremiseBodyBusinessPremiseNameMax:()=>by,RegisterFursRealEstatePremiseResponse:()=>Ege,RegisterFursRealEstatePremiseHeader:()=>Pge,RegisterFursRealEstatePremiseBody:()=>_ge,RegisterFursMovablePremiseResponse:()=>bge,RegisterFursMovablePremiseHeader:()=>Dge,RegisterFursMovablePremiseBody:()=>Oge,ListFursBusinessPremisesResponseItem:()=>cy,ListFursBusinessPremisesResponse:()=>Age,ListFursBusinessPremisesHeader:()=>nge,GetFursBusinessPremiseResponse:()=>gge,GetFursBusinessPremiseParams:()=>Ige,GetFursBusinessPremiseHeader:()=>Sge,CloseFursBusinessPremiseResponse:()=>Nge,CloseFursBusinessPremiseParams:()=>Tge,CloseFursBusinessPremiseHeader:()=>qge});var nge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),cy=r({id:e(),entity_id:e(),business_premise_name:e(),type:e(),real_estate:r({property_id:e(),building_number:e().nullable(),building_section:e().nullable(),community:e(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),cadastral_number:e()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),registered_at:e().datetime({}),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),Age=P(cy),Ige=r({id:e().describe("Business premise ID")}),Sge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),gge=r({id:e(),entity_id:e(),business_premise_name:e(),type:e(),real_estate:r({property_id:e(),building_number:e().nullable(),building_section:e().nullable(),community:e(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),cadastral_number:e()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),registered_at:e().datetime({}),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),Pge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ry=20,vy=/^\d+$/,ny=/^\d+$/,Ay=/^\d+$/,Iy=100,Sy=10,gy=10,Py=100,_y=100,Ey=4,Dy=4,Oy=/^\d{4}$/,_ge=r({business_premise_name:e().min(1).max(ry).describe("Business premise name/identifier (e.g., 'P1', 'TRGOVINA1')"),real_estate:r({cadastral_number:e().min(1).regex(vy).describe("Cadastral number of the property (required, numeric, max 9999)"),building_number:e().min(1).regex(ny).describe("Building number (required, numeric, max 99999)"),building_section:e().min(1).regex(Ay).describe("Building section number (required, numeric, max 9999)"),street:e().min(1).max(Iy).describe("Street name (required, max 100 chars)"),house_number:e().min(1).max(Sy).describe("House number (required, max 10 chars)"),house_number_additional:e().max(gy).nullish().describe("Additional house number suffix (optional, max 10 chars)"),community:e().min(1).max(Py).describe("Community / občina name (required, max 100 chars)"),city:e().min(1).max(_y).describe("City name (required, max 100 chars)"),postal_code:e().min(Ey).max(Dy).regex(Oy).describe("Postal code (required, exactly 4 digits)")}).describe("Real estate (physical location) details")}),Ege=r({success:A().describe("Operation success status"),message:e().describe("Success message"),business_premise_name:e().describe("Registered business premise name"),environment:g(["test","production"]).describe("FURS environment used")}),Dge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),by=20,Oge=r({business_premise_name:e().min(1).max(by).describe("Business premise name/identifier (e.g., 'VEHICLE1', 'STALL2')"),movable_premise:r({premise_type:g(["A","B","C"]).describe("Type of movable premise: A=vehicle, B=market stall, C=vending machine")}).describe("Movable premise details")}),bge=r({success:A().describe("Operation success status"),message:e().describe("Success message"),business_premise_name:e().describe("Registered business premise name"),environment:g(["test","production"]).describe("FURS environment used")}),Tge=r({id:e().describe("Business premise ID")}),qge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Nge=r({success:A().describe("Operation success status"),message:e().describe("Success message"),business_premise_name:e().describe("Registered business premise name"),environment:g(["test","production"]).describe("FURS environment used")});var fo={};Q(fo,{UpdateFursSettingsResponse:()=>Bge,UpdateFursSettingsHeader:()=>Jge,UpdateFursSettingsBody:()=>tge,GetFursSettingsResponse:()=>uge,GetFursSettingsHeader:()=>Gge});var Gge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uge=r({enabled:A().describe("Whether FURS fiscalization is enabled"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy"),operator_tax_number:e().optional().describe("Operator tax number"),operator_label:e().optional().describe("Operator label"),certificate_expiry:e().datetime({}).optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")}),Jge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),tge=r({enabled:A().optional().describe("Enable/disable FURS fiscalization"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized)"),operator_tax_number:e().optional().describe("Operator tax number for API key usage"),operator_label:e().optional().describe("Operator label/name")}),Bge=r({enabled:A().describe("Whether FURS fiscalization is enabled"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy"),operator_tax_number:e().optional().describe("Operator tax number"),operator_label:e().optional().describe("Operator label"),certificate_expiry:e().datetime({}).optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")});var lo={};Q(lo,{voidInvoiceResponseTotalWithTaxMin:()=>wM,voidInvoiceResponseTotalWithTaxMax:()=>XM,voidInvoiceResponseTotalWithTaxConvertedMin:()=>MM,voidInvoiceResponseTotalWithTaxConvertedMax:()=>zM,voidInvoiceResponseTotalPaidMin:()=>kM,voidInvoiceResponseTotalPaidMax:()=>UM,voidInvoiceResponseTotalMin:()=>WM,voidInvoiceResponseTotalMax:()=>QM,voidInvoiceResponseTotalDueMin:()=>mM,voidInvoiceResponseTotalDueMax:()=>ZM,voidInvoiceResponseTotalConvertedMin:()=>FM,voidInvoiceResponseTotalConvertedMax:()=>$M,voidInvoiceResponseShareableIdMax:()=>VM,voidInvoiceResponseNumberMax:()=>GM,voidInvoiceResponseItemsItemUnitMax:()=>dM,voidInvoiceResponseItemsItemTotalWithTaxMin:()=>rz,voidInvoiceResponseItemsItemTotalWithTaxMax:()=>vz,voidInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>Iz,voidInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>Sz,voidInvoiceResponseItemsItemTotalMin:()=>oz,voidInvoiceResponseItemsItemTotalMax:()=>cz,voidInvoiceResponseItemsItemTotalConvertedMin:()=>nz,voidInvoiceResponseItemsItemTotalConvertedMax:()=>Az,voidInvoiceResponseItemsItemQuantityMin:()=>hM,voidInvoiceResponseItemsItemQuantityMax:()=>iM,voidInvoiceResponseItemsItemNameMax:()=>lM,voidInvoiceResponseItemsItemItemIdMax:()=>Ez,voidInvoiceResponseItemsItemInvoiceIdMax:()=>gz,voidInvoiceResponseItemsItemIdMax:()=>fM,voidInvoiceResponseItemsItemDiscountsMax:()=>ez,voidInvoiceResponseItemsItemDiscountsItemValueMin:()=>aM,voidInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>sM,voidInvoiceResponseItemsItemDeliveryNoteIdMax:()=>_z,voidInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>Pz,voidInvoiceResponseIssuerCountryCodeMin:()=>uM,voidInvoiceResponseIssuerCountryCodeMax:()=>JM,voidInvoiceResponseIssuerBankAccountTypeDefault:()=>tM,voidInvoiceResponseIdMax:()=>NM,voidInvoiceResponseFursDataIterationDefault:()=>CM,voidInvoiceResponseEntityIdMax:()=>xM,voidInvoiceResponseDateYearMin:()=>KM,voidInvoiceResponseDateYearMax:()=>yM,voidInvoiceResponseDateServiceToRegExp:()=>pM,voidInvoiceResponseDateServiceRegExp:()=>jM,voidInvoiceResponseCustomerIdMax:()=>BM,voidInvoiceResponseCustomerCountryCodeMin:()=>RM,voidInvoiceResponseCustomerCountryCodeMax:()=>LM,voidInvoiceResponseCustomerBankAccountTypeDefault:()=>HM,voidInvoiceResponseCurrencyCodeMax:()=>YM,voidInvoicePathIdRegExp:()=>qM,updateInvoiceResponseTotalWithTaxMin:()=>$F,updateInvoiceResponseTotalWithTaxMax:()=>MF,updateInvoiceResponseTotalWithTaxConvertedMin:()=>pF,updateInvoiceResponseTotalWithTaxConvertedMax:()=>fF,updateInvoiceResponseTotalPaidMin:()=>lF,updateInvoiceResponseTotalPaidMax:()=>hF,updateInvoiceResponseTotalMin:()=>VF,updateInvoiceResponseTotalMax:()=>FF,updateInvoiceResponseTotalDueMin:()=>iF,updateInvoiceResponseTotalDueMax:()=>dF,updateInvoiceResponseTotalConvertedMin:()=>CF,updateInvoiceResponseTotalConvertedMax:()=>jF,updateInvoiceResponseShareableIdMax:()=>ZF,updateInvoiceResponseNumberMax:()=>WF,updateInvoiceResponseItemsItemUnitMax:()=>n$,updateInvoiceResponseItemsItemTotalWithTaxMin:()=>_$,updateInvoiceResponseItemsItemTotalWithTaxMax:()=>E$,updateInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>b$,updateInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>T$,updateInvoiceResponseItemsItemTotalMin:()=>g$,updateInvoiceResponseItemsItemTotalMax:()=>P$,updateInvoiceResponseItemsItemTotalConvertedMin:()=>D$,updateInvoiceResponseItemsItemTotalConvertedMax:()=>O$,updateInvoiceResponseItemsItemQuantityMin:()=>r$,updateInvoiceResponseItemsItemQuantityMax:()=>v$,updateInvoiceResponseItemsItemNameMax:()=>c$,updateInvoiceResponseItemsItemItemIdMax:()=>u$,updateInvoiceResponseItemsItemInvoiceIdMax:()=>q$,updateInvoiceResponseItemsItemIdMax:()=>o$,updateInvoiceResponseItemsItemDiscountsMax:()=>S$,updateInvoiceResponseItemsItemDiscountsItemValueMin:()=>A$,updateInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>I$,updateInvoiceResponseItemsItemDeliveryNoteIdMax:()=>G$,updateInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>N$,updateInvoiceResponseIssuerCountryCodeMin:()=>QF,updateInvoiceResponseIssuerCountryCodeMax:()=>wF,updateInvoiceResponseIssuerBankAccountTypeDefault:()=>XF,updateInvoiceResponseIdMax:()=>HF,updateInvoiceResponseFursDataIterationDefault:()=>aF,updateInvoiceResponseEntityIdMax:()=>kF,updateInvoiceResponseDateYearMin:()=>UF,updateInvoiceResponseDateYearMax:()=>mF,updateInvoiceResponseDateServiceToRegExp:()=>e$,updateInvoiceResponseDateServiceRegExp:()=>sF,updateInvoiceResponseCustomerIdMax:()=>YF,updateInvoiceResponseCustomerCountryCodeMin:()=>xF,updateInvoiceResponseCustomerCountryCodeMax:()=>KF,updateInvoiceResponseCustomerBankAccountTypeDefault:()=>yF,updateInvoiceResponseCurrencyCodeMax:()=>zF,updateInvoicePathIdRegExp:()=>nF,updateInvoiceBodyItemsItemUnitMax:()=>qF,updateInvoiceBodyItemsItemSaveItemDefault:()=>JF,updateInvoiceBodyItemsItemQuantityMin:()=>bF,updateInvoiceBodyItemsItemQuantityMax:()=>TF,updateInvoiceBodyItemsItemDiscountsMax:()=>uF,updateInvoiceBodyItemsItemDiscountsItemValueMin:()=>NF,updateInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>GF,updateInvoiceBodyItemsItemDescriptionMax:()=>OF,updateInvoiceBodyIssuerOneCountryCodeMin:()=>IF,updateInvoiceBodyIssuerOneCountryCodeMax:()=>SF,updateInvoiceBodyIssuerOneBankAccountTypeDefault:()=>gF,updateInvoiceBodyDateServiceToRegExp:()=>LF,updateInvoiceBodyDateServiceRegExp:()=>RF,updateInvoiceBodyDateRegExp:()=>AF,updateInvoiceBodyDateDueRegExp:()=>BF,updateInvoiceBodyCustomerTwoSaveCustomerDefault:()=>DF,updateInvoiceBodyCustomerOneCountryCodeMin:()=>PF,updateInvoiceBodyCustomerOneCountryCodeMax:()=>_F,updateInvoiceBodyCustomerOneBankAccountTypeDefault:()=>EF,updateInvoiceBodyChangeReasonMax:()=>tF,renderInvoicePreviewQueryPartialDefault:()=>R$,renderInvoicePreviewQueryLocaleMin:()=>t$,renderInvoicePreviewQueryLocaleMax:()=>B$,renderInvoicePreviewBodyTwoItemsItemUnitMax:()=>nM,renderInvoicePreviewBodyTwoItemsItemSaveItemDefault:()=>gM,renderInvoicePreviewBodyTwoItemsItemQuantityMin:()=>rM,renderInvoicePreviewBodyTwoItemsItemQuantityMax:()=>vM,renderInvoicePreviewBodyTwoItemsItemDiscountsMax:()=>SM,renderInvoicePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>AM,renderInvoicePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>IM,renderInvoicePreviewBodyTwoItemsItemDescriptionMax:()=>cM,renderInvoicePreviewBodyTwoIssuerCountryCodeMin:()=>j$,renderInvoicePreviewBodyTwoIssuerCountryCodeMax:()=>p$,renderInvoicePreviewBodyTwoIssuerBankAccountTypeDefault:()=>f$,renderInvoicePreviewBodyTwoFinaPremiseIdRegExp:()=>_M,renderInvoicePreviewBodyTwoFinaPremiseIdMax:()=>PM,renderInvoicePreviewBodyTwoFinaOperatorOibMin:()=>OM,renderInvoicePreviewBodyTwoFinaOperatorOibMax:()=>bM,renderInvoicePreviewBodyTwoFinaDeviceIdRegExp:()=>DM,renderInvoicePreviewBodyTwoFinaDeviceIdMax:()=>EM,renderInvoicePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>TM,renderInvoicePreviewBodyTwoDateServiceToRegExp:()=>oM,renderInvoicePreviewBodyTwoDateServiceRegExp:()=>eM,renderInvoicePreviewBodyTwoDateRegExp:()=>C$,renderInvoicePreviewBodyTwoDateDueRegExp:()=>s$,renderInvoicePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>d$,renderInvoicePreviewBodyTwoCustomerOneCountryCodeMin:()=>l$,renderInvoicePreviewBodyTwoCustomerOneCountryCodeMax:()=>h$,renderInvoicePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>i$,renderInvoicePreviewBodyTwoCurrencyCodeMax:()=>a$,renderInvoicePreviewBodyOneIssuerCountryCodeMin:()=>H$,renderInvoicePreviewBodyOneIssuerCountryCodeMax:()=>W$,renderInvoicePreviewBodyOneIssuerBankAccountTypeDefault:()=>Q$,renderInvoicePreviewBodyOneFinaPremiseIdRegExp:()=>M$,renderInvoicePreviewBodyOneFinaPremiseIdMax:()=>$$,renderInvoicePreviewBodyOneFinaOperatorOibMin:()=>U$,renderInvoicePreviewBodyOneFinaOperatorOibMax:()=>m$,renderInvoicePreviewBodyOneFinaDeviceIdRegExp:()=>k$,renderInvoicePreviewBodyOneFinaDeviceIdMax:()=>z$,renderInvoicePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>Z$,renderInvoicePreviewBodyOneDateServiceToRegExp:()=>F$,renderInvoicePreviewBodyOneDateServiceRegExp:()=>V$,renderInvoicePreviewBodyOneDateRegExp:()=>L$,renderInvoicePreviewBodyOneDateDueRegExp:()=>y$,renderInvoicePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>x$,renderInvoicePreviewBodyOneCustomerOneCountryCodeMin:()=>w$,renderInvoicePreviewBodyOneCustomerOneCountryCodeMax:()=>X$,renderInvoicePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>Y$,renderInvoicePreviewBodyOneCurrencyCodeMax:()=>K$,renderDocumentPdfQueryLocaleMin:()=>qz,renderDocumentPdfQueryLocaleMax:()=>Nz,renderDocumentPdfPathIdRegExp:()=>Tz,renderDocumentHtmlQueryLocaleMin:()=>Oz,renderDocumentHtmlQueryLocaleMax:()=>bz,renderDocumentHtmlPathIdRegExp:()=>Dz,getShareableInvoiceResponseTotalWithTaxMin:()=>Wy,getShareableInvoiceResponseTotalWithTaxMax:()=>Qy,getShareableInvoiceResponseTotalWithTaxConvertedMin:()=>Fy,getShareableInvoiceResponseTotalWithTaxConvertedMax:()=>$y,getShareableInvoiceResponseTotalPaidMin:()=>My,getShareableInvoiceResponseTotalPaidMax:()=>zy,getShareableInvoiceResponseTotalMin:()=>Ly,getShareableInvoiceResponseTotalMax:()=>Hy,getShareableInvoiceResponseTotalDueMin:()=>ky,getShareableInvoiceResponseTotalDueMax:()=>Uy,getShareableInvoiceResponseTotalConvertedMin:()=>yy,getShareableInvoiceResponseTotalConvertedMax:()=>Vy,getShareableInvoiceResponseShareableIdMax:()=>Ky,getShareableInvoiceResponseNumberMax:()=>qy,getShareableInvoiceResponseItemsItemUnitMax:()=>hy,getShareableInvoiceResponseItemsItemTotalWithTaxMin:()=>o5,getShareableInvoiceResponseItemsItemTotalWithTaxMax:()=>c5,getShareableInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>n5,getShareableInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>A5,getShareableInvoiceResponseItemsItemTotalMin:()=>sy,getShareableInvoiceResponseItemsItemTotalMax:()=>e5,getShareableInvoiceResponseItemsItemTotalConvertedMin:()=>r5,getShareableInvoiceResponseItemsItemTotalConvertedMax:()=>v5,getShareableInvoiceResponseItemsItemQuantityMin:()=>fy,getShareableInvoiceResponseItemsItemQuantityMax:()=>ly,getShareableInvoiceResponseItemsItemNameMax:()=>py,getShareableInvoiceResponseItemsItemItemIdMax:()=>P5,getShareableInvoiceResponseItemsItemInvoiceIdMax:()=>I5,getShareableInvoiceResponseItemsItemIdMax:()=>jy,getShareableInvoiceResponseItemsItemDiscountsMax:()=>ay,getShareableInvoiceResponseItemsItemDiscountsItemValueMin:()=>iy,getShareableInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>dy,getShareableInvoiceResponseItemsItemDeliveryNoteIdMax:()=>g5,getShareableInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>S5,getShareableInvoiceResponseIssuerCountryCodeMin:()=>Ny,getShareableInvoiceResponseIssuerCountryCodeMax:()=>Gy,getShareableInvoiceResponseIssuerBankAccountTypeDefault:()=>uy,getShareableInvoiceResponseIdMax:()=>Ty,getShareableInvoiceResponseFursDataIterationDefault:()=>my,getShareableInvoiceResponseEntityIdMax:()=>Xy,getShareableInvoiceResponseDateYearMin:()=>Yy,getShareableInvoiceResponseDateYearMax:()=>xy,getShareableInvoiceResponseDateServiceToRegExp:()=>Cy,getShareableInvoiceResponseDateServiceRegExp:()=>Zy,getShareableInvoiceResponseCustomerIdMax:()=>Jy,getShareableInvoiceResponseCustomerCountryCodeMin:()=>ty,getShareableInvoiceResponseCustomerCountryCodeMax:()=>By,getShareableInvoiceResponseCustomerBankAccountTypeDefault:()=>Ry,getShareableInvoiceResponseCurrencyCodeMax:()=>wy,getInvoicesResponseDataItemTotalWithTaxMin:()=>o7,getInvoicesResponseDataItemTotalWithTaxMax:()=>c7,getInvoicesResponseDataItemTotalWithTaxConvertedMin:()=>P7,getInvoicesResponseDataItemTotalWithTaxConvertedMax:()=>_7,getInvoicesResponseDataItemTotalPaidMin:()=>E7,getInvoicesResponseDataItemTotalPaidMax:()=>D7,getInvoicesResponseDataItemTotalMin:()=>s5,getInvoicesResponseDataItemTotalMax:()=>e7,getInvoicesResponseDataItemTotalDueMin:()=>O7,getInvoicesResponseDataItemTotalDueMax:()=>b7,getInvoicesResponseDataItemTotalConvertedMin:()=>S7,getInvoicesResponseDataItemTotalConvertedMax:()=>g7,getInvoicesResponseDataItemShareableIdMax:()=>I7,getInvoicesResponseDataItemNumberMax:()=>j5,getInvoicesResponseDataItemItemsItemUnitMax:()=>B7,getInvoicesResponseDataItemItemsItemTotalWithTaxMin:()=>w7,getInvoicesResponseDataItemItemsItemTotalWithTaxMax:()=>X7,getInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>K7,getInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>y7,getInvoicesResponseDataItemItemsItemTotalMin:()=>W7,getInvoicesResponseDataItemItemsItemTotalMax:()=>Q7,getInvoicesResponseDataItemItemsItemTotalConvertedMin:()=>Y7,getInvoicesResponseDataItemItemsItemTotalConvertedMax:()=>x7,getInvoicesResponseDataItemItemsItemQuantityMin:()=>J7,getInvoicesResponseDataItemItemsItemQuantityMax:()=>t7,getInvoicesResponseDataItemItemsItemNameMax:()=>u7,getInvoicesResponseDataItemItemsItemItemIdMax:()=>M7,getInvoicesResponseDataItemItemsItemInvoiceIdMax:()=>V7,getInvoicesResponseDataItemItemsItemIdMax:()=>G7,getInvoicesResponseDataItemItemsItemDiscountsMax:()=>H7,getInvoicesResponseDataItemItemsItemDiscountsItemValueMin:()=>R7,getInvoicesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>L7,getInvoicesResponseDataItemItemsItemDeliveryNoteIdMax:()=>$7,getInvoicesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>F7,getInvoicesResponseDataItemIssuerCountryCodeMin:()=>p5,getInvoicesResponseDataItemIssuerCountryCodeMax:()=>f5,getInvoicesResponseDataItemIssuerBankAccountTypeDefault:()=>l5,getInvoicesResponseDataItemIdMax:()=>C5,getInvoicesResponseDataItemFursDataIterationDefault:()=>T7,getInvoicesResponseDataItemEntityIdMax:()=>v7,getInvoicesResponseDataItemDateYearMin:()=>n7,getInvoicesResponseDataItemDateYearMax:()=>A7,getInvoicesResponseDataItemDateServiceToRegExp:()=>N7,getInvoicesResponseDataItemDateServiceRegExp:()=>q7,getInvoicesResponseDataItemCustomerIdMax:()=>h5,getInvoicesResponseDataItemCustomerCountryCodeMin:()=>i5,getInvoicesResponseDataItemCustomerCountryCodeMax:()=>d5,getInvoicesResponseDataItemCustomerBankAccountTypeDefault:()=>a5,getInvoicesResponseDataItemCurrencyCodeMax:()=>r7,getInvoicesQueryLimitMax:()=>Z5,getInvoicesQueryLimitDefault:()=>m5,getInvoiceVersionsPathIdRegExp:()=>J$,getInvoiceByIdResponseTotalWithTaxMin:()=>JV,getInvoiceByIdResponseTotalWithTaxMax:()=>tV,getInvoiceByIdResponseTotalWithTaxConvertedMin:()=>XV,getInvoiceByIdResponseTotalWithTaxConvertedMax:()=>YV,getInvoiceByIdResponseTotalPaidMin:()=>xV,getInvoiceByIdResponseTotalPaidMax:()=>KV,getInvoiceByIdResponseTotalMin:()=>GV,getInvoiceByIdResponseTotalMax:()=>uV,getInvoiceByIdResponseTotalDueMin:()=>yV,getInvoiceByIdResponseTotalDueMax:()=>VV,getInvoiceByIdResponseTotalConvertedMin:()=>QV,getInvoiceByIdResponseTotalConvertedMax:()=>wV,getInvoiceByIdResponseShareableIdMax:()=>WV,getInvoiceByIdResponseNumberMax:()=>_V,getInvoiceByIdResponseItemsItemUnitMax:()=>ZV,getInvoiceByIdResponseItemsItemTotalWithTaxMin:()=>hV,getInvoiceByIdResponseItemsItemTotalWithTaxMax:()=>iV,getInvoiceByIdResponseItemsItemTotalWithTaxConvertedMin:()=>sV,getInvoiceByIdResponseItemsItemTotalWithTaxConvertedMax:()=>eF,getInvoiceByIdResponseItemsItemTotalMin:()=>fV,getInvoiceByIdResponseItemsItemTotalMax:()=>lV,getInvoiceByIdResponseItemsItemTotalConvertedMin:()=>dV,getInvoiceByIdResponseItemsItemTotalConvertedMax:()=>aV,getInvoiceByIdResponseItemsItemQuantityMin:()=>UV,getInvoiceByIdResponseItemsItemQuantityMax:()=>mV,getInvoiceByIdResponseItemsItemNameMax:()=>kV,getInvoiceByIdResponseItemsItemItemIdMax:()=>vF,getInvoiceByIdResponseItemsItemInvoiceIdMax:()=>oF,getInvoiceByIdResponseItemsItemIdMax:()=>zV,getInvoiceByIdResponseItemsItemDiscountsMax:()=>pV,getInvoiceByIdResponseItemsItemDiscountsItemValueMin:()=>CV,getInvoiceByIdResponseItemsItemDiscountsItemTypeDefault:()=>jV,getInvoiceByIdResponseItemsItemDeliveryNoteIdMax:()=>rF,getInvoiceByIdResponseItemsItemAdvanceInvoiceIdMax:()=>cF,getInvoiceByIdResponseIssuerCountryCodeMin:()=>EV,getInvoiceByIdResponseIssuerCountryCodeMax:()=>DV,getInvoiceByIdResponseIssuerBankAccountTypeDefault:()=>OV,getInvoiceByIdResponseIdMax:()=>PV,getInvoiceByIdResponseFursDataIterationDefault:()=>FV,getInvoiceByIdResponseEntityIdMax:()=>RV,getInvoiceByIdResponseDateYearMin:()=>LV,getInvoiceByIdResponseDateYearMax:()=>HV,getInvoiceByIdResponseDateServiceToRegExp:()=>MV,getInvoiceByIdResponseDateServiceRegExp:()=>$V,getInvoiceByIdResponseCustomerIdMax:()=>bV,getInvoiceByIdResponseCustomerCountryCodeMin:()=>TV,getInvoiceByIdResponseCustomerCountryCodeMax:()=>qV,getInvoiceByIdResponseCustomerBankAccountTypeDefault:()=>NV,getInvoiceByIdResponseCurrencyCodeMax:()=>BV,getInvoiceByIdPathIdRegExp:()=>gV,createInvoiceBodyPaymentsItemTagMax:()=>x5,createInvoiceBodyPaymentsItemReferenceMax:()=>K5,createInvoiceBodyPaymentsItemNoteMax:()=>y5,createInvoiceBodyPaymentsItemAmountExclusiveMin:()=>Y5,createInvoiceBodyItemsItemUnitMax:()=>H5,createInvoiceBodyItemsItemSaveItemDefault:()=>X5,createInvoiceBodyItemsItemQuantityMin:()=>R5,createInvoiceBodyItemsItemQuantityMax:()=>L5,createInvoiceBodyItemsItemDiscountsMax:()=>w5,createInvoiceBodyItemsItemDiscountsItemValueMin:()=>W5,createInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>Q5,createInvoiceBodyItemsItemDescriptionMax:()=>B5,createInvoiceBodyIssuerCountryCodeMin:()=>E5,createInvoiceBodyIssuerCountryCodeMax:()=>D5,createInvoiceBodyIssuerBankAccountTypeDefault:()=>O5,createInvoiceBodyFinaPremiseIdRegExp:()=>F5,createInvoiceBodyFinaPremiseIdMax:()=>V5,createInvoiceBodyFinaOperatorOibMin:()=>z5,createInvoiceBodyFinaOperatorOibMax:()=>k5,createInvoiceBodyFinaDeviceIdRegExp:()=>M5,createInvoiceBodyFinaDeviceIdMax:()=>$5,createInvoiceBodyExpectedTotalWithTaxExclusiveMin:()=>U5,createInvoiceBodyDateServiceToRegExp:()=>t5,createInvoiceBodyDateServiceRegExp:()=>J5,createInvoiceBodyDateRegExp:()=>_5,createInvoiceBodyDateDueRegExp:()=>u5,createInvoiceBodyCustomerTwoSaveCustomerDefault:()=>N5,createInvoiceBodyCustomerOneCountryCodeMin:()=>b5,createInvoiceBodyCustomerOneCountryCodeMax:()=>T5,createInvoiceBodyCustomerOneBankAccountTypeDefault:()=>q5,createInvoiceBodyCurrencyCodeMax:()=>G5,createCustomInvoiceBodyPaymentsItemTagMax:()=>AV,createCustomInvoiceBodyPaymentsItemReferenceMax:()=>IV,createCustomInvoiceBodyPaymentsItemNoteMax:()=>SV,createCustomInvoiceBodyPaymentsItemAmountExclusiveMin:()=>nV,createCustomInvoiceBodyItemsItemUnitMax:()=>eV,createCustomInvoiceBodyItemsItemSaveItemDefault:()=>vV,createCustomInvoiceBodyItemsItemQuantityMin:()=>a7,createCustomInvoiceBodyItemsItemQuantityMax:()=>s7,createCustomInvoiceBodyItemsItemDiscountsMax:()=>rV,createCustomInvoiceBodyItemsItemDiscountsItemValueMin:()=>oV,createCustomInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>cV,createCustomInvoiceBodyItemsItemDescriptionMax:()=>d7,createCustomInvoiceBodyIssuerCountryCodeMin:()=>k7,createCustomInvoiceBodyIssuerCountryCodeMax:()=>U7,createCustomInvoiceBodyIssuerBankAccountTypeDefault:()=>m7,createCustomInvoiceBodyDateServiceToRegExp:()=>i7,createCustomInvoiceBodyDateServiceRegExp:()=>h7,createCustomInvoiceBodyDateRegExp:()=>z7,createCustomInvoiceBodyDateDueRegExp:()=>l7,createCustomInvoiceBodyCustomerTwoSaveCustomerDefault:()=>p7,createCustomInvoiceBodyCustomerOneCountryCodeMin:()=>Z7,createCustomInvoiceBodyCustomerOneCountryCodeMax:()=>C7,createCustomInvoiceBodyCustomerOneBankAccountTypeDefault:()=>j7,createCustomInvoiceBodyCurrencyCodeMax:()=>f7,VoidInvoiceResponse:()=>vPe,VoidInvoiceParams:()=>oPe,VoidInvoiceHeader:()=>cPe,VoidInvoiceBody:()=>rPe,UpdateInvoiceResponse:()=>jge,UpdateInvoiceParams:()=>mge,UpdateInvoiceHeader:()=>Zge,UpdateInvoiceBody:()=>Cge,RenderInvoicePreviewQueryParams:()=>age,RenderInvoicePreviewHeader:()=>sge,RenderInvoicePreviewBody:()=>ePe,RenderDocumentPdfQueryParams:()=>gPe,RenderDocumentPdfParams:()=>SPe,RenderDocumentPdfHeader:()=>PPe,RenderDocumentHtmlQueryParams:()=>APe,RenderDocumentHtmlParams:()=>nPe,RenderDocumentHtmlHeader:()=>IPe,GetShareableInvoiceResponse:()=>Lge,GetShareableInvoicePdfQueryParams:()=>wge,GetShareableInvoicePdfParams:()=>Qge,GetShareableInvoiceParams:()=>Rge,GetShareableInvoiceHtmlQueryParams:()=>Wge,GetShareableInvoiceHtmlParams:()=>Hge,GetShareableInvoiceEslogParams:()=>Xge,GetInvoicesResponse:()=>Vge,GetInvoicesQueryParams:()=>Kge,GetInvoicesHeader:()=>yge,GetInvoiceVersionsResponse:()=>lge,GetInvoiceVersionsParams:()=>pge,GetInvoiceVersionsHeader:()=>fge,GetInvoiceVersionResponse:()=>dge,GetInvoiceVersionParams:()=>hge,GetInvoiceVersionHeader:()=>ige,GetInvoiceByIdResponse:()=>Uge,GetInvoiceByIdQueryParams:()=>zge,GetInvoiceByIdParams:()=>Mge,GetInvoiceByIdHeader:()=>kge,CreateInvoiceHeader:()=>Yge,CreateInvoiceBody:()=>xge,CreateCustomInvoiceHeader:()=>Fge,CreateCustomInvoiceBody:()=>$ge});var Rge=r({shareableId:e().describe("Shareable document token")}),Ty=36,qy=100,Ny=2,Gy=2,uy="iban",Jy=36,ty=2,By=2,Ry="iban",Ly=-140737488355328,Hy=140737488355327,Wy=-140737488355328,Qy=140737488355327,wy=3,Xy=36,Yy=-2147483648,xy=2147483647,Ky=64,yy=-140737488355328,Vy=140737488355327,Fy=-140737488355328,$y=140737488355327,My=-140737488355328,zy=140737488355327,ky=-140737488355328,Uy=140737488355327,my=0,Zy=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Cy=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,jy=36,py=500,fy=-140737488355328,ly=140737488355327,hy=50,iy=0,dy="percent",ay=5,sy=-140737488355328,e5=140737488355327,o5=-140737488355328,c5=140737488355327,r5=-140737488355328,v5=140737488355327,n5=-140737488355328,A5=140737488355327,I5=36,S5=36,g5=36,P5=36,Lge=r({id:e().max(Ty),number:e().max(qy),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Ny).max(Gy).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(uy).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(Jy).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(ty).max(By).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Ry).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(Ly).max(Hy),total_with_tax:v().min(Wy).max(Qy),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(wy),entity_id:e().max(Xy),date_year:v().min(Yy).max(xy),shareable_id:e().max(Ky).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(yy).max(Vy).nullish(),total_with_tax_converted:v().min(Fy).max($y).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(My).max(zy),total_due:v().min(ky).max(Uy),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(my),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(Zy).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Cy).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(jy),name:e().max(py),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
178
- Only present if user originally sent gross price.
179
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(fy).max(ly),unit:e().max(hy).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(iy).describe("Discount value"),type:g(["percent","amount"]).default(dy).describe("Discount type: 'percent' (default) or 'amount'")})).max(ay).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(sy).max(e5),total_with_tax:v().min(o5).max(c5),total_converted:v().min(r5).max(v5).nullish(),total_with_tax_converted:v().min(n5).max(A5).nullish(),invoice_id:e().max(I5).nullish(),advance_invoice_id:e().max(S5).nullish(),delivery_note_id:e().max(g5).nullish(),item_id:e().max(P5).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),Hge=r({shareableId:e().describe("Shareable document token")}),Wge=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),Qge=r({shareableId:e().describe("Shareable document token")}),wge=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),Xge=r({shareableId:e().describe("Shareable document token")}),Yge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),_5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,E5=2,D5=2,O5="iban",b5=2,T5=2,q5="iban",N5=!0,G5=3,u5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,J5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,t5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,B5=2000,R5=-140737488355328,L5=140737488355327,H5=50,W5=0,Q5="percent",w5=5,X5=!0,Y5=0,x5=100,K5=100,y5=500,V5=20,F5=/^[0-9a-zA-Z]{1,20}$/,$5=20,M5=/^\d{1,20}$/,z5=11,k5=11,U5=0,xge=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(_5).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(E5).max(D5).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(O5).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(b5).max(T5).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(q5).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(N5).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(G5).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(u5).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(J5).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(t5).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(B5).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(R5).max(L5),unit:e().max(H5).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(W5).describe("Discount value"),type:g(["percent","amount"]).default(Q5).describe("Discount type: 'percent' (default) or 'amount'")})).max(w5).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
180
- When provided, the item's name, description, price, and taxes are used as defaults.
181
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(X5).describe(`Whether to save this item to the catalog.
182
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
183
- Default: true.`)})).min(1).describe("Line items for the invoice. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this invoice to other documents. Accepts estimate IDs (est_xxx) for converted estimates or credit note IDs (cre_xxx). Creates document relations automatically."),payments:P(r({amount:v().gt(Y5).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(x5).nullish(),reference:e().max(K5).nullish(),note:e().max(y5).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the invoice. If amounts are not provided, the invoice total is split equally among all payments. Automatically updates invoice payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),fina:r({premise_id:e().min(1).max(V5).regex(F5).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max($5).regex(M5).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(z5).max(k5).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),expected_total_with_tax:v().gt(U5).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules."),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")}),m5=10,Z5=100,Kge=r({limit:v().min(1).max(Z5).default(m5).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","number","date","total","total_with_tax","created_at","updated_at","date_due","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_due"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","date_due","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_due"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, date_due, paid_in_full, voided_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
184
- Searches are case-insensitive and match partial strings.
185
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this invoice\n- `document_relations` - Linked documents (credit notes, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),yge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),C5=36,j5=100,p5=2,f5=2,l5="iban",h5=36,i5=2,d5=2,a5="iban",s5=-140737488355328,e7=140737488355327,o7=-140737488355328,c7=140737488355327,r7=3,v7=36,n7=-2147483648,A7=2147483647,I7=64,S7=-140737488355328,g7=140737488355327,P7=-140737488355328,_7=140737488355327,E7=-140737488355328,D7=140737488355327,O7=-140737488355328,b7=140737488355327,T7=0,q7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,N7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,G7=36,u7=500,J7=-140737488355328,t7=140737488355327,B7=50,R7=0,L7="percent",H7=5,W7=-140737488355328,Q7=140737488355327,w7=-140737488355328,X7=140737488355327,Y7=-140737488355328,x7=140737488355327,K7=-140737488355328,y7=140737488355327,V7=36,F7=36,$7=36,M7=36,Vge=r({data:P(r({id:e().max(C5),number:e().max(j5),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(p5).max(f5).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(l5).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(h5).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(i5).max(d5).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(a5).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(s5).max(e7),total_with_tax:v().min(o7).max(c7),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(r7),entity_id:e().max(v7),date_year:v().min(n7).max(A7),shareable_id:e().max(I7).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(S7).max(g7).nullish(),total_with_tax_converted:v().min(P7).max(_7).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(E7).max(D7),total_due:v().min(O7).max(b7),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(T7),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(q7).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(N7).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(G7),name:e().max(u7),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
186
- Only present if user originally sent gross price.
187
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(J7).max(t7),unit:e().max(B7).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(R7).describe("Discount value"),type:g(["percent","amount"]).default(L7).describe("Discount type: 'percent' (default) or 'amount'")})).max(H7).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(W7).max(Q7),total_with_tax:v().min(w7).max(X7),total_converted:v().min(Y7).max(x7).nullish(),total_with_tax_converted:v().min(K7).max(y7).nullish(),invoice_id:e().max(V7).nullish(),advance_invoice_id:e().max(F7).nullish(),delivery_note_id:e().max($7).nullish(),item_id:e().max(M7).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Fge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),z7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,k7=2,U7=2,m7="iban",Z7=2,C7=2,j7="iban",p7=!0,f7=3,l7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,h7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,i7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,d7=2000,a7=-140737488355328,s7=140737488355327,eV=50,oV=0,cV="percent",rV=5,vV=!0,nV=0,AV=100,IV=100,SV=500,$ge=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(z7).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(k7).max(U7).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(m7).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Z7).max(C7).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(j7).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(p7).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(f7).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(l7).nullish().describe("Document due date in YYYY-MM-DD format"),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(h7).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(i7).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(d7).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(a7).max(s7),unit:e().max(eV).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(oV).describe("Discount value"),type:g(["percent","amount"]).default(cV).describe("Discount type: 'percent' (default) or 'amount'")})).max(rV).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
188
- When provided, the item's name, description, price, and taxes are used as defaults.
189
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(vV).describe(`Whether to save this item to the catalog.
190
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
191
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this invoice to other documents."),payments:P(r({amount:v().gt(nV).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(AV).nullish(),reference:e().max(IV).nullish(),note:e().max(SV).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the invoice. If amounts are not provided, the invoice total is split equally among all payments. Automatically updates invoice payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")}),gV=/^[a-z]{3,4}_[0-9a-f]{24}$/,Mge=r({id:e().regex(gV).describe("Unique resource identifier")}),zge=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this invoice\n- `document_relations` - Linked documents (credit notes, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`")}),kge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),PV=36,_V=100,EV=2,DV=2,OV="iban",bV=36,TV=2,qV=2,NV="iban",GV=-140737488355328,uV=140737488355327,JV=-140737488355328,tV=140737488355327,BV=3,RV=36,LV=-2147483648,HV=2147483647,WV=64,QV=-140737488355328,wV=140737488355327,XV=-140737488355328,YV=140737488355327,xV=-140737488355328,KV=140737488355327,yV=-140737488355328,VV=140737488355327,FV=0,$V=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,MV=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,zV=36,kV=500,UV=-140737488355328,mV=140737488355327,ZV=50,CV=0,jV="percent",pV=5,fV=-140737488355328,lV=140737488355327,hV=-140737488355328,iV=140737488355327,dV=-140737488355328,aV=140737488355327,sV=-140737488355328,eF=140737488355327,oF=36,cF=36,rF=36,vF=36,Uge=r({id:e().max(PV),number:e().max(_V),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(EV).max(DV).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(OV).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(bV).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(TV).max(qV).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(NV).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(GV).max(uV),total_with_tax:v().min(JV).max(tV),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(BV),entity_id:e().max(RV),date_year:v().min(LV).max(HV),shareable_id:e().max(WV).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(QV).max(wV).nullish(),total_with_tax_converted:v().min(XV).max(YV).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(xV).max(KV),total_due:v().min(yV).max(VV),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(FV),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex($V).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(MV).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(zV),name:e().max(kV),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
192
- Only present if user originally sent gross price.
193
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(UV).max(mV),unit:e().max(ZV).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(CV).describe("Discount value"),type:g(["percent","amount"]).default(jV).describe("Discount type: 'percent' (default) or 'amount'")})).max(pV).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(fV).max(lV),total_with_tax:v().min(hV).max(iV),total_converted:v().min(dV).max(aV).nullish(),total_with_tax_converted:v().min(sV).max(eF).nullish(),invoice_id:e().max(oF).nullish(),advance_invoice_id:e().max(cF).nullish(),delivery_note_id:e().max(rF).nullish(),item_id:e().max(vF).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),nF=/^[a-z]{3,4}_[0-9a-f]{24}$/,mge=r({id:e().regex(nF).describe("Unique resource identifier")}),Zge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),AF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,IF=2,SF=2,gF="iban",PF=2,_F=2,EF="iban",DF=!0,OF=2000,bF=-140737488355328,TF=140737488355327,qF=50,NF=0,GF="percent",uF=5,JF=!0,tF=500,BF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,RF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,LF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Cge=r({date:e().regex(AF).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(IF).max(SF).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(gF).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(T().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(PF).max(_F).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(EF).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(DF).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(OF).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(bF).max(TF),unit:e().max(qF).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(NF).describe("Discount value"),type:g(["percent","amount"]).default(GF).describe("Discount type: 'percent' (default) or 'amount'")})).max(uF).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
194
- When provided, the item's name, description, price, and taxes are used as defaults.
195
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(JF).describe(`Whether to save this item to the catalog.
196
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
197
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:D(e(),T()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(tF).optional().describe("Reason for the change. Stored in version history for audit trail."),date_due:e().regex(BF).nullish().describe("Payment due date (YYYY-MM-DD or ISO datetime format). Set to null to clear."),date_service:e().regex(RF).nullish().describe("Service/work date or start of service period. Set to null to clear."),date_service_to:e().regex(LF).nullish().describe("End of service period (if different from date_service). Set to null to clear."),linked_documents:P(e().min(1)).optional().describe("Link this invoice to other documents. Replaces existing links. Accepts estimate IDs (est_xxx) or credit note IDs (cre_xxx)."),force_linked_documents:A().optional().describe("Force linking documents even if a target document is already linked to another invoice. Defaults to false."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),HF=36,WF=100,QF=2,wF=2,XF="iban",YF=36,xF=2,KF=2,yF="iban",VF=-140737488355328,FF=140737488355327,$F=-140737488355328,MF=140737488355327,zF=3,kF=36,UF=-2147483648,mF=2147483647,ZF=64,CF=-140737488355328,jF=140737488355327,pF=-140737488355328,fF=140737488355327,lF=-140737488355328,hF=140737488355327,iF=-140737488355328,dF=140737488355327,aF=0,sF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,e$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,o$=36,c$=500,r$=-140737488355328,v$=140737488355327,n$=50,A$=0,I$="percent",S$=5,g$=-140737488355328,P$=140737488355327,_$=-140737488355328,E$=140737488355327,D$=-140737488355328,O$=140737488355327,b$=-140737488355328,T$=140737488355327,q$=36,N$=36,G$=36,u$=36,jge=r({id:e().max(HF),number:e().max(WF),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(QF).max(wF).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(XF).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(YF).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(xF).max(KF).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(yF).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(VF).max(FF),total_with_tax:v().min($F).max(MF),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(zF),entity_id:e().max(kF),date_year:v().min(UF).max(mF),shareable_id:e().max(ZF).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(CF).max(jF).nullish(),total_with_tax_converted:v().min(pF).max(fF).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(lF).max(hF),total_due:v().min(iF).max(dF),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(aF),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(sF).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(e$).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(o$),name:e().max(c$),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
198
- Only present if user originally sent gross price.
199
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(r$).max(v$),unit:e().max(n$).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(A$).describe("Discount value"),type:g(["percent","amount"]).default(I$).describe("Discount type: 'percent' (default) or 'amount'")})).max(S$).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(g$).max(P$),total_with_tax:v().min(_$).max(E$),total_converted:v().min(D$).max(O$).nullish(),total_with_tax_converted:v().min(b$).max(T$).nullish(),invoice_id:e().max(q$).nullish(),advance_invoice_id:e().max(N$).nullish(),delivery_note_id:e().max(G$).nullish(),item_id:e().max(u$).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),J$=/^[a-z]{3,4}_[0-9a-f]{24}$/,pge=r({id:e().regex(J$).describe("Unique resource identifier")}),fge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),lge=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),hge=r({id:e().describe("Invoice ID"),version:v().min(1).describe("Version number")}),ige=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),dge=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:D(e(),T()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),t$=2,B$=5,R$="true",age=r({template:g(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e().min(t$).max(B$).nullish(),partial:g(["true","false"]).default(R$).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),sge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),L$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,H$=2,W$=2,Q$="iban",w$=2,X$=2,Y$="iban",x$=!0,K$=3,y$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,V$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,F$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,$$=20,M$=/^[0-9a-zA-Z]{1,20}$/,z$=20,k$=/^\d{1,20}$/,U$=11,m$=11,Z$=0,C$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,j$=2,p$=2,f$="iban",l$=2,h$=2,i$="iban",d$=!0,a$=3,s$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,eM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,oM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,cM=2000,rM=-140737488355328,vM=140737488355327,nM=50,AM=0,IM="percent",SM=5,gM=!0,PM=20,_M=/^[0-9a-zA-Z]{1,20}$/,EM=20,DM=/^\d{1,20}$/,OM=11,bM=11,TM=0,ePe=t([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(L$).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(H$).max(W$).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Q$).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(w$).max(X$).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Y$).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(x$).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(K$).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(y$).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(V$).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(F$).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:D(e(),e()).optional()})).min(1),fina:r({premise_id:e().min(1).max($$).regex(M$).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(z$).regex(k$).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(U$).max(m$).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(Z$).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules."),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(C$).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(j$).max(p$).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(f$).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(l$).max(h$).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(i$).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(d$).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(a$).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(s$).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(eM).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(oM).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(cM).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(rM).max(vM),unit:e().max(nM).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(AM).describe("Discount value"),type:g(["percent","amount"]).default(IM).describe("Discount type: 'percent' (default) or 'amount'")})).max(SM).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),item_id:e().optional().describe(`ID of a catalog item to prefill from.
200
- When provided, the item's name, description, price, and taxes are used as defaults.
201
- Any field you provide will override the catalog item's value.`),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),save_item:A().default(gM).describe(`Whether to save this item to the catalog.
202
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
203
- Default: true.`)})).min(1).describe("Line items for the invoice. At least one item is required."),fina:r({premise_id:e().min(1).max(PM).regex(_M).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(EM).regex(DM).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(OM).max(bM).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(TM).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules."),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")})]),qM=/^[a-z]{3,4}_[0-9a-f]{24}$/,oPe=r({id:e().regex(qM).describe("Unique resource identifier")}),cPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),rPe=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate invoice', 'Technical error')")}),NM=36,GM=100,uM=2,JM=2,tM="iban",BM=36,RM=2,LM=2,HM="iban",WM=-140737488355328,QM=140737488355327,wM=-140737488355328,XM=140737488355327,YM=3,xM=36,KM=-2147483648,yM=2147483647,VM=64,FM=-140737488355328,$M=140737488355327,MM=-140737488355328,zM=140737488355327,kM=-140737488355328,UM=140737488355327,mM=-140737488355328,ZM=140737488355327,CM=0,jM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,pM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,fM=36,lM=500,hM=-140737488355328,iM=140737488355327,dM=50,aM=0,sM="percent",ez=5,oz=-140737488355328,cz=140737488355327,rz=-140737488355328,vz=140737488355327,nz=-140737488355328,Az=140737488355327,Iz=-140737488355328,Sz=140737488355327,gz=36,Pz=36,_z=36,Ez=36,vPe=r({id:e().max(NM),number:e().max(GM),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(uM).max(JM).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(tM).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(BM).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(RM).max(LM).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(HM).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(WM).max(QM),total_with_tax:v().min(wM).max(XM),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(YM),entity_id:e().max(xM),date_year:v().min(KM).max(yM),shareable_id:e().max(VM).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(FM).max($M).nullish(),total_with_tax_converted:v().min(MM).max(zM).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(kM).max(UM),total_due:v().min(mM).max(ZM),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(CM),payload:D(e(),T()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:D(e(),T()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:D(e(),T()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(jM).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(pM).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(fM),name:e().max(lM),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
204
- Only present if user originally sent gross price.
205
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(hM).max(iM),unit:e().max(dM).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(aM).describe("Discount value"),type:g(["percent","amount"]).default(sM).describe("Discount type: 'percent' (default) or 'amount'")})).max(ez).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(oz).max(cz),total_with_tax:v().min(rz).max(vz),total_converted:v().min(nz).max(Az).nullish(),total_with_tax_converted:v().min(Iz).max(Sz).nullish(),invoice_id:e().max(gz).nullish(),advance_invoice_id:e().max(Pz).nullish(),delivery_note_id:e().max(_z).nullish(),item_id:e().max(Ez).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),Dz=/^[a-z]{3,4}_[0-9a-f]{24}$/,nPe=r({id:e().regex(Dz).describe("Unique resource identifier")}),Oz=2,bz=5,APe=r({template:g(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e().min(Oz).max(bz).nullish()}),IPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Tz=/^[a-z]{3,4}_[0-9a-f]{24}$/,SPe=r({id:e().regex(Tz).describe("Unique resource identifier")}),qz=2,Nz=5,gPe=r({template:g(["modern","classic","condensed","minimal","fashion"]).optional().describe("Document template design to use. When not specified, uses the entity's configured template."),locale:e().min(qz).max(Nz).nullish()}),PPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var ho={};Q(ho,{restoreItemResponseTwoOneTotalTaxMin:()=>ek,restoreItemResponseTwoOneTotalTaxMax:()=>ok,restoreItemResponseTwoOneTaxIdsItemMax:()=>sz,restoreItemResponseTwoOneNameMax:()=>dz,restoreItemResponseTwoOneIdMax:()=>iz,restoreItemResponseTwoOneEntityIdMax:()=>ck,restoreItemResponseTwoOneDescriptionMax:()=>az,restoreItemResponseOneTotalTaxMin:()=>fz,restoreItemResponseOneTotalTaxMax:()=>lz,restoreItemResponseOneTaxIdsItemMax:()=>pz,restoreItemResponseOneNameMax:()=>Cz,restoreItemResponseOneIdMax:()=>Zz,restoreItemResponseOneEntityIdMax:()=>hz,restoreItemResponseOneDescriptionMax:()=>jz,restoreItemPathIdRegExp:()=>mz,permanentDeleteItemPathIdRegExp:()=>rk,getItemsResponseDataItemTwoOneTotalTaxMin:()=>Mz,getItemsResponseDataItemTwoOneTotalTaxMax:()=>zz,getItemsResponseDataItemTwoOneTaxIdsItemMax:()=>$z,getItemsResponseDataItemTwoOneNameMax:()=>Vz,getItemsResponseDataItemTwoOneIdMax:()=>yz,getItemsResponseDataItemTwoOneEntityIdMax:()=>kz,getItemsResponseDataItemTwoOneDescriptionMax:()=>Fz,getItemsResponseDataItemOneTotalTaxMin:()=>Yz,getItemsResponseDataItemOneTotalTaxMax:()=>xz,getItemsResponseDataItemOneTaxIdsItemMax:()=>Xz,getItemsResponseDataItemOneNameMax:()=>Qz,getItemsResponseDataItemOneIdMax:()=>Wz,getItemsResponseDataItemOneEntityIdMax:()=>Kz,getItemsResponseDataItemOneDescriptionMax:()=>wz,getItemsQueryLimitMax:()=>Hz,getItemsQueryLimitDefault:()=>Lz,deleteItemPathIdRegExp:()=>Uz,createItemBodyTaxesMax:()=>Rz,createItemBodyTaxesItemRateMin:()=>Jz,createItemBodyTaxesItemRateMax:()=>tz,createItemBodyTaxesItemClassificationMax:()=>Bz,createItemBodyTaxIdsItemMax:()=>uz,createItemBodyDescriptionMax:()=>Gz,RestoreItemResponse:()=>uPe,RestoreItemParams:()=>NPe,RestoreItemHeader:()=>GPe,PermanentDeleteItemParams:()=>JPe,PermanentDeleteItemHeader:()=>tPe,GetItemsResponse:()=>bPe,GetItemsQueryParams:()=>DPe,GetItemsHeader:()=>OPe,DeleteItemParams:()=>TPe,DeleteItemHeader:()=>qPe,CreateItemHeader:()=>_Pe,CreateItemBody:()=>EPe});var _Pe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Gz=2000,uz=36,Jz=0,tz=100,Bz=50,Rz=2,EPe=r({name:e().min(1),description:e().max(Gz).nullish(),price:v().optional().describe("Net price per unit (before tax). Provide either price OR gross_price, not both."),gross_price:v().optional().describe("Gross price per unit (includes tax). If provided, net price is calculated. Provide either price OR gross_price, not both."),tax_ids:P(e().max(uz)).optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),taxes:P(r({rate:v().min(Jz).max(tz).optional().describe("Tax rate percentage. Either rate or classification must be provided."),classification:e().max(Bz).optional().describe("Tax classification to lookup existing tax. Either rate or classification must be provided.")})).max(Rz).nullish().describe("Taxes for the item. Provide rate to auto-create, or classification to lookup existing tax.")}),Lz=10,Hz=100,DPe=r({limit:v().min(1).max(Hz).default(Lz).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","name","price","created_at","updated_at","-id","-name","-price","-created_at","-updated_at"]),P(g(["id","name","price","created_at","updated_at","-id","-name","-price","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, description, price, unit, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
206
- Searches are case-insensitive and match partial strings.
207
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),OPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Wz=36,Qz=500,wz=2000,Xz=36,Yz=-140737488355328,xz=140737488355327,Kz=36,yz=36,Vz=500,Fz=2000,$z=36,Mz=-140737488355328,zz=140737488355327,kz=36,bPe=r({data:P(r({id:e().max(Wz),name:e().max(Qz),description:e().max(wz).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max(Xz)),total_tax:v().min(Yz).max(xz),entity_id:e().max(Kz),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({id:e().max(yz),name:e().max(Vz),description:e().max(Fz).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max($z)),total_tax:v().min(Mz).max(zz),entity_id:e().max(kz),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({})).describe("Item or Service provided to customers by the Entity"))),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Uz=/^[a-z]{3,4}_[0-9a-f]{24}$/,TPe=r({id:e().regex(Uz).describe("Unique resource identifier")}),qPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),mz=/^[a-z]{3,4}_[0-9a-f]{24}$/,NPe=r({id:e().regex(mz).describe("Unique resource identifier")}),GPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Zz=36,Cz=500,jz=2000,pz=36,fz=-140737488355328,lz=140737488355327,hz=36,iz=36,dz=500,az=2000,sz=36,ek=-140737488355328,ok=140737488355327,ck=36,uPe=r({id:e().max(Zz),name:e().max(Cz),description:e().max(jz).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max(pz)),total_tax:v().min(fz).max(lz),entity_id:e().max(hz),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({id:e().max(iz),name:e().max(dz),description:e().max(az).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max(sz)),total_tax:v().min(ek).max(ok),entity_id:e().max(ck),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({})).describe("Item or Service provided to customers by the Entity")),rk=/^[a-z]{3,4}_[0-9a-f]{24}$/,JPe=r({id:e().regex(rk).describe("Unique resource identifier")}),tPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var io={};Q(io,{updateOrderIntegrationResponseOneShopDomainMax:()=>zk,updateOrderIntegrationResponseOneScopesMax:()=>kk,updateOrderIntegrationResponseOneNameMax:()=>Mk,updateOrderIntegrationResponseOneLocaleMax:()=>Ck,updateOrderIntegrationResponseOneIdMax:()=>Fk,updateOrderIntegrationResponseOneEntityIdMax:()=>$k,updateOrderIntegrationResponseOneElectronicDeviceIdMax:()=>pk,updateOrderIntegrationResponseOneDefaultPaymentTypeMax:()=>Uk,updateOrderIntegrationResponseOneBusinessPremiseIdMax:()=>jk,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMin:()=>mk,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMax:()=>Zk,updateOrderIntegrationPathIdRegExp:()=>Yk,updateOrderIntegrationBodyLocaleMax:()=>Kk,updateOrderIntegrationBodyElectronicDeviceIdMax:()=>Vk,updateOrderIntegrationBodyBusinessPremiseIdMax:()=>yk,updateOrderIntegrationBodyAutoProcessDelaySecondsMin:()=>xk,getOrderIntegrationsResponseDataItemOneShopDomainMax:()=>_k,getOrderIntegrationsResponseDataItemOneScopesMax:()=>Ek,getOrderIntegrationsResponseDataItemOneNameMax:()=>Pk,getOrderIntegrationsResponseDataItemOneLocaleMax:()=>Tk,getOrderIntegrationsResponseDataItemOneIdMax:()=>Sk,getOrderIntegrationsResponseDataItemOneEntityIdMax:()=>gk,getOrderIntegrationsResponseDataItemOneElectronicDeviceIdMax:()=>Nk,getOrderIntegrationsResponseDataItemOneDefaultPaymentTypeMax:()=>Dk,getOrderIntegrationsResponseDataItemOneBusinessPremiseIdMax:()=>qk,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMin:()=>Ok,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMax:()=>bk,getOrderIntegrationsQueryLimitMax:()=>Ik,getOrderIntegrationsQueryLimitDefault:()=>Ak,getOrderIntegrationByIdResponseOneShopDomainMax:()=>Bk,getOrderIntegrationByIdResponseOneScopesMax:()=>Rk,getOrderIntegrationByIdResponseOneNameMax:()=>tk,getOrderIntegrationByIdResponseOneLocaleMax:()=>Qk,getOrderIntegrationByIdResponseOneIdMax:()=>uk,getOrderIntegrationByIdResponseOneEntityIdMax:()=>Jk,getOrderIntegrationByIdResponseOneElectronicDeviceIdMax:()=>Xk,getOrderIntegrationByIdResponseOneDefaultPaymentTypeMax:()=>Lk,getOrderIntegrationByIdResponseOneBusinessPremiseIdMax:()=>wk,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMin:()=>Hk,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMax:()=>Wk,getOrderIntegrationByIdPathIdRegExp:()=>Gk,deleteOrderIntegrationPathIdRegExp:()=>fk,createOrderIntegrationBodySourceDefault:()=>nk,authorizeShopifyBodyAutoProcessDelaySecondsMin:()=>vk,UpdateOrderIntegrationResponse:()=>$Pe,UpdateOrderIntegrationParams:()=>yPe,UpdateOrderIntegrationHeader:()=>VPe,UpdateOrderIntegrationBody:()=>FPe,GetOrderIntegrationsResponse:()=>XPe,GetOrderIntegrationsQueryParams:()=>QPe,GetOrderIntegrationsHeader:()=>wPe,GetOrderIntegrationByIdResponse:()=>KPe,GetOrderIntegrationByIdParams:()=>YPe,GetOrderIntegrationByIdHeader:()=>xPe,DeleteOrderIntegrationParams:()=>MPe,DeleteOrderIntegrationHeader:()=>zPe,CreateOrderIntegrationHeader:()=>HPe,CreateOrderIntegrationBody:()=>WPe,AuthorizeShopifyResponse:()=>LPe,AuthorizeShopifyHeader:()=>BPe,AuthorizeShopifyBody:()=>RPe});var BPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vk=0,RPe=r({shop_domain:e().min(1).describe("Shopify shop domain, e.g. myshop.myshopify.com"),name:e().optional().describe("Integration name"),auto_process:A().optional().describe("Auto-create invoices on order receipt"),send_invoice_email:A().optional().describe("Auto-send invoice email"),issue_invoice_for_bank:A().optional().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:A().optional().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:v().min(vk).optional().describe("Seconds to wait before processing (0 = immediate)")}),LPe=r({redirect_url:e().url()}),HPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),nk="manual",WPe=r({name:e().min(1),source:g(["shopify","woocommerce","manual"]).default(nk),auto_process:A().optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Ak=10,Ik=100,QPe=r({limit:v().min(1).max(Ik).default(Ak).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]),P(g(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, source, is_active, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
208
- Searches are case-insensitive and match partial strings.
209
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),wPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Sk=36,gk=36,Pk=255,_k=255,Ek=1000,Dk=20,Ok=-2147483648,bk=2147483647,Tk=10,qk=36,Nk=36,XPe=r({data:P(r({id:e().max(Sk),entity_id:e().max(gk),name:e().max(Pk),source:g(["shopify","woocommerce","manual"]).describe("Integration source platform"),is_active:A(),shop_domain:e().max(_k).nullish(),scopes:e().max(Ek).nullish(),auto_process:A(),auto_process_on:g(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e().max(Dk).nullish(),send_invoice_email:A(),send_estimate_email:A(),issue_invoice_for_bank:A(),issue_invoice_on_complete:A(),auto_process_delay_seconds:v().min(Ok).max(bk),auto_reissue_on_update:A(),locale:e().max(Tk).nullish(),business_premise_id:e().max(qk).nullish(),electronic_device_id:e().max(Nk).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order integration connection information").and(r({})).describe("Order Integration")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Gk=/^[a-z]{3,4}_[0-9a-f]{24}$/,YPe=r({id:e().regex(Gk).describe("Unique resource identifier")}),xPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uk=36,Jk=36,tk=255,Bk=255,Rk=1000,Lk=20,Hk=-2147483648,Wk=2147483647,Qk=10,wk=36,Xk=36,KPe=r({id:e().max(uk),entity_id:e().max(Jk),name:e().max(tk),source:g(["shopify","woocommerce","manual"]).describe("Integration source platform"),is_active:A(),shop_domain:e().max(Bk).nullish(),scopes:e().max(Rk).nullish(),auto_process:A(),auto_process_on:g(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e().max(Lk).nullish(),send_invoice_email:A(),send_estimate_email:A(),issue_invoice_for_bank:A(),issue_invoice_on_complete:A(),auto_process_delay_seconds:v().min(Hk).max(Wk),auto_reissue_on_update:A(),locale:e().max(Qk).nullish(),business_premise_id:e().max(wk).nullish(),electronic_device_id:e().max(Xk).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order integration connection information").and(r({})).describe("Order Integration"),Yk=/^[a-z]{3,4}_[0-9a-f]{24}$/,yPe=r({id:e().regex(Yk).describe("Unique resource identifier")}),VPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xk=0,Kk=10,yk=36,Vk=36,FPe=r({name:e().min(1).optional(),auto_process:A().optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),is_active:A().optional(),auto_process_on:g(["created","paid","fulfilled"]).optional(),default_payment_type:e().optional(),send_invoice_email:A().optional(),send_estimate_email:A().optional(),issue_invoice_for_bank:A().optional(),issue_invoice_on_complete:A().optional(),auto_process_delay_seconds:v().min(xk).optional(),auto_reissue_on_update:A().optional(),locale:e().max(Kk).optional(),business_premise_id:e().max(yk).optional(),electronic_device_id:e().max(Vk).optional()}),Fk=36,$k=36,Mk=255,zk=255,kk=1000,Uk=20,mk=-2147483648,Zk=2147483647,Ck=10,jk=36,pk=36,$Pe=r({id:e().max(Fk),entity_id:e().max($k),name:e().max(Mk),source:g(["shopify","woocommerce","manual"]).describe("Integration source platform"),is_active:A(),shop_domain:e().max(zk).nullish(),scopes:e().max(kk).nullish(),auto_process:A(),auto_process_on:g(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e().max(Uk).nullish(),send_invoice_email:A(),send_estimate_email:A(),issue_invoice_for_bank:A(),issue_invoice_on_complete:A(),auto_process_delay_seconds:v().min(mk).max(Zk),auto_reissue_on_update:A(),locale:e().max(Ck).nullish(),business_premise_id:e().max(jk).nullish(),electronic_device_id:e().max(pk).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order integration connection information").and(r({})).describe("Order Integration"),fk=/^[a-z]{3,4}_[0-9a-f]{24}$/,MPe=r({id:e().regex(fk).describe("Unique resource identifier")}),zPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var ao={};Q(ao,{updateOrderResponseOneTotalWithTaxMin:()=>Ym,updateOrderResponseOneTotalWithTaxMax:()=>xm,updateOrderResponseOneTotalShippingMin:()=>Vm,updateOrderResponseOneTotalShippingMax:()=>Fm,updateOrderResponseOneTotalMin:()=>wm,updateOrderResponseOneTotalMax:()=>Xm,updateOrderResponseOneTotalDiscountMin:()=>Km,updateOrderResponseOneTotalDiscountMax:()=>ym,updateOrderResponseOneSourceOrderNumberMax:()=>Rm,updateOrderResponseOneSourceIdMax:()=>Bm,updateOrderResponseOneSourceEventIdMax:()=>Um,updateOrderResponseOnePaymentMethodMax:()=>$m,updateOrderResponseOnePaymentGatewayMax:()=>Mm,updateOrderResponseOneOrderIntegrationIdMax:()=>tm,updateOrderResponseOneInvoiceIdMax:()=>zm,updateOrderResponseOneIdMax:()=>um,updateOrderResponseOneEstimateIdMax:()=>km,updateOrderResponseOneErrorMax:()=>mm,updateOrderResponseOneEntityIdMax:()=>Jm,updateOrderResponseOneCustomerNameMax:()=>Lm,updateOrderResponseOneCustomerIdMax:()=>Wm,updateOrderResponseOneCustomerEmailMax:()=>Hm,updateOrderResponseOneCurrencyCodeMax:()=>Qm,updateOrderPathIdRegExp:()=>nm,updateOrderBodyTotalWithTaxMin:()=>Em,updateOrderBodyTotalWithTaxMax:()=>Dm,updateOrderBodyTotalShippingMin:()=>Tm,updateOrderBodyTotalShippingMax:()=>qm,updateOrderBodyTotalMin:()=>Pm,updateOrderBodyTotalMax:()=>_m,updateOrderBodyTotalDiscountMin:()=>Om,updateOrderBodyTotalDiscountMax:()=>bm,updateOrderBodySourceOrderNumberMax:()=>Am,updateOrderBodyPaymentMethodMax:()=>Nm,updateOrderBodyPaymentGatewayMax:()=>Gm,updateOrderBodyCustomerNameMax:()=>Im,updateOrderBodyCustomerEmailMax:()=>Sm,updateOrderBodyCurrencyCodeMax:()=>gm,reissueOrderResponseOneTotalWithTaxMin:()=>iZ,reissueOrderResponseOneTotalWithTaxMax:()=>dZ,reissueOrderResponseOneTotalShippingMin:()=>eC,reissueOrderResponseOneTotalShippingMax:()=>oC,reissueOrderResponseOneTotalMin:()=>lZ,reissueOrderResponseOneTotalMax:()=>hZ,reissueOrderResponseOneTotalDiscountMin:()=>aZ,reissueOrderResponseOneTotalDiscountMax:()=>sZ,reissueOrderResponseOneSourceOrderNumberMax:()=>ZZ,reissueOrderResponseOneSourceIdMax:()=>mZ,reissueOrderResponseOneSourceEventIdMax:()=>AC,reissueOrderResponseOnePaymentMethodMax:()=>cC,reissueOrderResponseOnePaymentGatewayMax:()=>rC,reissueOrderResponseOneOrderIntegrationIdMax:()=>UZ,reissueOrderResponseOneInvoiceIdMax:()=>vC,reissueOrderResponseOneIdMax:()=>zZ,reissueOrderResponseOneEstimateIdMax:()=>nC,reissueOrderResponseOneErrorMax:()=>IC,reissueOrderResponseOneEntityIdMax:()=>kZ,reissueOrderResponseOneCustomerNameMax:()=>CZ,reissueOrderResponseOneCustomerIdMax:()=>pZ,reissueOrderResponseOneCustomerEmailMax:()=>jZ,reissueOrderResponseOneCurrencyCodeMax:()=>fZ,reissueOrderPathIdRegExp:()=>MZ,processOrderResponseOneTotalWithTaxMin:()=>cZ,processOrderResponseOneTotalWithTaxMax:()=>rZ,processOrderResponseOneTotalShippingMin:()=>AZ,processOrderResponseOneTotalShippingMax:()=>IZ,processOrderResponseOneTotalMin:()=>eZ,processOrderResponseOneTotalMax:()=>oZ,processOrderResponseOneTotalDiscountMin:()=>vZ,processOrderResponseOneTotalDiscountMax:()=>nZ,processOrderResponseOneSourceOrderNumberMax:()=>hm,processOrderResponseOneSourceIdMax:()=>lm,processOrderResponseOneSourceEventIdMax:()=>EZ,processOrderResponseOnePaymentMethodMax:()=>SZ,processOrderResponseOnePaymentGatewayMax:()=>gZ,processOrderResponseOneOrderIntegrationIdMax:()=>fm,processOrderResponseOneInvoiceIdMax:()=>PZ,processOrderResponseOneIdMax:()=>jm,processOrderResponseOneEstimateIdMax:()=>_Z,processOrderResponseOneErrorMax:()=>DZ,processOrderResponseOneEntityIdMax:()=>pm,processOrderResponseOneCustomerNameMax:()=>im,processOrderResponseOneCustomerIdMax:()=>am,processOrderResponseOneCustomerEmailMax:()=>dm,processOrderResponseOneCurrencyCodeMax:()=>sm,processOrderPathIdRegExp:()=>Cm,getOrdersResponseDataItemOneTotalWithTaxMin:()=>BU,getOrdersResponseDataItemOneTotalWithTaxMax:()=>RU,getOrdersResponseDataItemOneTotalShippingMin:()=>WU,getOrdersResponseDataItemOneTotalShippingMax:()=>QU,getOrdersResponseDataItemOneTotalMin:()=>JU,getOrdersResponseDataItemOneTotalMax:()=>tU,getOrdersResponseDataItemOneTotalDiscountMin:()=>LU,getOrdersResponseDataItemOneTotalDiscountMax:()=>HU,getOrdersResponseDataItemOneSourceOrderNumberMax:()=>TU,getOrdersResponseDataItemOneSourceIdMax:()=>bU,getOrdersResponseDataItemOneSourceEventIdMax:()=>KU,getOrdersResponseDataItemOnePaymentMethodMax:()=>wU,getOrdersResponseDataItemOnePaymentGatewayMax:()=>XU,getOrdersResponseDataItemOneOrderIntegrationIdMax:()=>OU,getOrdersResponseDataItemOneInvoiceIdMax:()=>YU,getOrdersResponseDataItemOneIdMax:()=>EU,getOrdersResponseDataItemOneEstimateIdMax:()=>xU,getOrdersResponseDataItemOneErrorMax:()=>yU,getOrdersResponseDataItemOneEntityIdMax:()=>DU,getOrdersResponseDataItemOneCustomerNameMax:()=>qU,getOrdersResponseDataItemOneCustomerIdMax:()=>GU,getOrdersResponseDataItemOneCustomerEmailMax:()=>NU,getOrdersResponseDataItemOneCurrencyCodeMax:()=>uU,getOrdersQueryLimitMax:()=>_U,getOrdersQueryLimitDefault:()=>PU,getOrderByIdResponseOneTotalWithTaxMin:()=>fU,getOrderByIdResponseOneTotalWithTaxMax:()=>lU,getOrderByIdResponseOneTotalShippingMin:()=>dU,getOrderByIdResponseOneTotalShippingMax:()=>aU,getOrderByIdResponseOneTotalMin:()=>jU,getOrderByIdResponseOneTotalMax:()=>pU,getOrderByIdResponseOneTotalDiscountMin:()=>hU,getOrderByIdResponseOneTotalDiscountMax:()=>iU,getOrderByIdResponseOneSourceOrderNumberMax:()=>kU,getOrderByIdResponseOneSourceIdMax:()=>zU,getOrderByIdResponseOneSourceEventIdMax:()=>rm,getOrderByIdResponseOnePaymentMethodMax:()=>sU,getOrderByIdResponseOnePaymentGatewayMax:()=>em,getOrderByIdResponseOneOrderIntegrationIdMax:()=>MU,getOrderByIdResponseOneInvoiceIdMax:()=>om,getOrderByIdResponseOneIdMax:()=>FU,getOrderByIdResponseOneEstimateIdMax:()=>cm,getOrderByIdResponseOneErrorMax:()=>vm,getOrderByIdResponseOneEntityIdMax:()=>$U,getOrderByIdResponseOneCustomerNameMax:()=>UU,getOrderByIdResponseOneCustomerIdMax:()=>ZU,getOrderByIdResponseOneCustomerEmailMax:()=>mU,getOrderByIdResponseOneCurrencyCodeMax:()=>CU,getOrderByIdPathIdRegExp:()=>VU,deleteOrderPathIdRegExp:()=>Zm,createOrderBodyTotalWithTaxMin:()=>cU,createOrderBodyTotalWithTaxMax:()=>rU,createOrderBodyTotalShippingMin:()=>AU,createOrderBodyTotalShippingMax:()=>IU,createOrderBodyTotalMin:()=>eU,createOrderBodyTotalMax:()=>oU,createOrderBodyTotalDiscountMin:()=>vU,createOrderBodyTotalDiscountMax:()=>nU,createOrderBodySourceOrderNumberMax:()=>ik,createOrderBodySourceIdMax:()=>hk,createOrderBodyPaymentMethodMax:()=>SU,createOrderBodyPaymentGatewayMax:()=>gU,createOrderBodyOrderIntegrationIdMax:()=>lk,createOrderBodyCustomerNameMax:()=>dk,createOrderBodyCustomerEmailMax:()=>ak,createOrderBodyCurrencyCodeMax:()=>sk,cancelOrderResponseOneTotalWithTaxMin:()=>HZ,cancelOrderResponseOneTotalWithTaxMax:()=>WZ,cancelOrderResponseOneTotalShippingMin:()=>XZ,cancelOrderResponseOneTotalShippingMax:()=>YZ,cancelOrderResponseOneTotalMin:()=>RZ,cancelOrderResponseOneTotalMax:()=>LZ,cancelOrderResponseOneTotalDiscountMin:()=>QZ,cancelOrderResponseOneTotalDiscountMax:()=>wZ,cancelOrderResponseOneSourceOrderNumberMax:()=>GZ,cancelOrderResponseOneSourceIdMax:()=>NZ,cancelOrderResponseOneSourceEventIdMax:()=>FZ,cancelOrderResponseOnePaymentMethodMax:()=>xZ,cancelOrderResponseOnePaymentGatewayMax:()=>KZ,cancelOrderResponseOneOrderIntegrationIdMax:()=>qZ,cancelOrderResponseOneInvoiceIdMax:()=>yZ,cancelOrderResponseOneIdMax:()=>bZ,cancelOrderResponseOneEstimateIdMax:()=>VZ,cancelOrderResponseOneErrorMax:()=>$Z,cancelOrderResponseOneEntityIdMax:()=>TZ,cancelOrderResponseOneCustomerNameMax:()=>uZ,cancelOrderResponseOneCustomerIdMax:()=>tZ,cancelOrderResponseOneCustomerEmailMax:()=>JZ,cancelOrderResponseOneCurrencyCodeMax:()=>BZ,cancelOrderPathIdRegExp:()=>OZ,UpdateOrderResponse:()=>dPe,UpdateOrderParams:()=>lPe,UpdateOrderHeader:()=>hPe,UpdateOrderBody:()=>iPe,ReissueOrderResponse:()=>S_e,ReissueOrderParams:()=>A_e,ReissueOrderHeader:()=>I_e,ProcessOrderResponse:()=>c_e,ProcessOrderParams:()=>e_e,ProcessOrderHeader:()=>o_e,GetOrdersResponse:()=>CPe,GetOrdersQueryParams:()=>mPe,GetOrdersHeader:()=>ZPe,GetOrderByIdResponse:()=>fPe,GetOrderByIdParams:()=>jPe,GetOrderByIdHeader:()=>pPe,DeleteOrderParams:()=>aPe,DeleteOrderHeader:()=>sPe,CreateOrderHeader:()=>kPe,CreateOrderBody:()=>UPe,CancelOrderResponse:()=>n_e,CancelOrderParams:()=>r_e,CancelOrderHeader:()=>v_e});var kPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),lk=36,hk=255,ik=100,dk=255,ak=255,sk=3,eU=-140737488355328,oU=140737488355327,cU=-140737488355328,rU=140737488355327,vU=-140737488355328,nU=140737488355327,AU=-140737488355328,IU=140737488355327,SU=50,gU=100,UPe=r({order_integration_id:e().max(lk),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(hk),source_order_number:e().max(ik).nullish(),customer_name:e().max(dk).nullish(),customer_email:e().max(ak).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),currency_code:e().max(sk),total:v().min(eU).max(oU),total_with_tax:v().min(cU).max(rU),total_discount:v().min(vU).max(nU).optional(),total_shipping:v().min(AU).max(IU).optional(),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})).min(1),payment_status:g(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e().max(SU).nullish(),payment_gateway:e().max(gU).nullish(),ordered_at:e().datetime({}).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),PU=10,_U=100,mPe=r({limit:v().min(1).max(_U).default(PU).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]),P(g(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, status, source, source_id, customer_name, customer_email, payment_status, order_integration_id, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
210
- Searches are case-insensitive and match partial strings.
211
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),ZPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),EU=36,DU=36,OU=36,bU=255,TU=100,qU=255,NU=255,GU=36,uU=3,JU=-140737488355328,tU=140737488355327,BU=-140737488355328,RU=140737488355327,LU=-140737488355328,HU=140737488355327,WU=-140737488355328,QU=140737488355327,wU=50,XU=100,YU=36,xU=36,KU=255,yU=2000,CPe=r({data:P(r({id:e().max(EU),entity_id:e().max(DU),order_integration_id:e().max(OU),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(bU),source_order_number:e().max(TU).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(qU).nullish(),customer_email:e().max(NU).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(GU).nullish(),currency_code:e().max(uU),total:v().min(JU).max(tU),total_with_tax:v().min(BU).max(RU),total_discount:v().min(LU).max(HU),total_shipping:v().min(WU).max(QU),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(wU).nullish(),payment_gateway:e().max(XU).nullish(),invoice_id:e().max(YU).nullish(),estimate_id:e().max(xU).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:D(e(),T()).nullish(),source_event_id:e().max(KU).nullish(),error:e().max(yU).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),VU=/^[a-z]{3,4}_[0-9a-f]{24}$/,jPe=r({id:e().regex(VU).describe("Unique resource identifier")}),pPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),FU=36,$U=36,MU=36,zU=255,kU=100,UU=255,mU=255,ZU=36,CU=3,jU=-140737488355328,pU=140737488355327,fU=-140737488355328,lU=140737488355327,hU=-140737488355328,iU=140737488355327,dU=-140737488355328,aU=140737488355327,sU=50,em=100,om=36,cm=36,rm=255,vm=2000,fPe=r({id:e().max(FU),entity_id:e().max($U),order_integration_id:e().max(MU),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(zU),source_order_number:e().max(kU).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(UU).nullish(),customer_email:e().max(mU).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(ZU).nullish(),currency_code:e().max(CU),total:v().min(jU).max(pU),total_with_tax:v().min(fU).max(lU),total_discount:v().min(hU).max(iU),total_shipping:v().min(dU).max(aU),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(sU).nullish(),payment_gateway:e().max(em).nullish(),invoice_id:e().max(om).nullish(),estimate_id:e().max(cm).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:D(e(),T()).nullish(),source_event_id:e().max(rm).nullish(),error:e().max(vm).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),nm=/^[a-z]{3,4}_[0-9a-f]{24}$/,lPe=r({id:e().regex(nm).describe("Unique resource identifier")}),hPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Am=100,Im=255,Sm=255,gm=3,Pm=-140737488355328,_m=140737488355327,Em=-140737488355328,Dm=140737488355327,Om=-140737488355328,bm=140737488355327,Tm=-140737488355328,qm=140737488355327,Nm=50,Gm=100,iPe=r({source_order_number:e().max(Am).nullish(),customer_name:e().max(Im).nullish(),customer_email:e().max(Sm).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),currency_code:e().max(gm).optional(),total:v().min(Pm).max(_m).optional(),total_with_tax:v().min(Em).max(Dm).optional(),total_discount:v().min(Om).max(bm).optional(),total_shipping:v().min(Tm).max(qm).optional(),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})).min(1).optional(),payment_status:g(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e().max(Nm).nullish(),payment_gateway:e().max(Gm).nullish(),ordered_at:e().datetime({}).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),um=36,Jm=36,tm=36,Bm=255,Rm=100,Lm=255,Hm=255,Wm=36,Qm=3,wm=-140737488355328,Xm=140737488355327,Ym=-140737488355328,xm=140737488355327,Km=-140737488355328,ym=140737488355327,Vm=-140737488355328,Fm=140737488355327,$m=50,Mm=100,zm=36,km=36,Um=255,mm=2000,dPe=r({id:e().max(um),entity_id:e().max(Jm),order_integration_id:e().max(tm),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(Bm),source_order_number:e().max(Rm).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(Lm).nullish(),customer_email:e().max(Hm).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(Wm).nullish(),currency_code:e().max(Qm),total:v().min(wm).max(Xm),total_with_tax:v().min(Ym).max(xm),total_discount:v().min(Km).max(ym),total_shipping:v().min(Vm).max(Fm),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max($m).nullish(),payment_gateway:e().max(Mm).nullish(),invoice_id:e().max(zm).nullish(),estimate_id:e().max(km).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:D(e(),T()).nullish(),source_event_id:e().max(Um).nullish(),error:e().max(mm).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),Zm=/^[a-z]{3,4}_[0-9a-f]{24}$/,aPe=r({id:e().regex(Zm).describe("Unique resource identifier")}),sPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Cm=/^[a-z]{3,4}_[0-9a-f]{24}$/,e_e=r({id:e().regex(Cm).describe("Unique resource identifier")}),o_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),jm=36,pm=36,fm=36,lm=255,hm=100,im=255,dm=255,am=36,sm=3,eZ=-140737488355328,oZ=140737488355327,cZ=-140737488355328,rZ=140737488355327,vZ=-140737488355328,nZ=140737488355327,AZ=-140737488355328,IZ=140737488355327,SZ=50,gZ=100,PZ=36,_Z=36,EZ=255,DZ=2000,c_e=r({id:e().max(jm),entity_id:e().max(pm),order_integration_id:e().max(fm),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(lm),source_order_number:e().max(hm).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(im).nullish(),customer_email:e().max(dm).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(am).nullish(),currency_code:e().max(sm),total:v().min(eZ).max(oZ),total_with_tax:v().min(cZ).max(rZ),total_discount:v().min(vZ).max(nZ),total_shipping:v().min(AZ).max(IZ),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(SZ).nullish(),payment_gateway:e().max(gZ).nullish(),invoice_id:e().max(PZ).nullish(),estimate_id:e().max(_Z).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:D(e(),T()).nullish(),source_event_id:e().max(EZ).nullish(),error:e().max(DZ).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),OZ=/^[a-z]{3,4}_[0-9a-f]{24}$/,r_e=r({id:e().regex(OZ).describe("Unique resource identifier")}),v_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),bZ=36,TZ=36,qZ=36,NZ=255,GZ=100,uZ=255,JZ=255,tZ=36,BZ=3,RZ=-140737488355328,LZ=140737488355327,HZ=-140737488355328,WZ=140737488355327,QZ=-140737488355328,wZ=140737488355327,XZ=-140737488355328,YZ=140737488355327,xZ=50,KZ=100,yZ=36,VZ=36,FZ=255,$Z=2000,n_e=r({id:e().max(bZ),entity_id:e().max(TZ),order_integration_id:e().max(qZ),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(NZ),source_order_number:e().max(GZ).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(uZ).nullish(),customer_email:e().max(JZ).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(tZ).nullish(),currency_code:e().max(BZ),total:v().min(RZ).max(LZ),total_with_tax:v().min(HZ).max(WZ),total_discount:v().min(QZ).max(wZ),total_shipping:v().min(XZ).max(YZ),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(xZ).nullish(),payment_gateway:e().max(KZ).nullish(),invoice_id:e().max(yZ).nullish(),estimate_id:e().max(VZ).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:D(e(),T()).nullish(),source_event_id:e().max(FZ).nullish(),error:e().max($Z).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),MZ=/^[a-z]{3,4}_[0-9a-f]{24}$/,A_e=r({id:e().regex(MZ).describe("Unique resource identifier")}),I_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),zZ=36,kZ=36,UZ=36,mZ=255,ZZ=100,CZ=255,jZ=255,pZ=36,fZ=3,lZ=-140737488355328,hZ=140737488355327,iZ=-140737488355328,dZ=140737488355327,aZ=-140737488355328,sZ=140737488355327,eC=-140737488355328,oC=140737488355327,cC=50,rC=100,vC=36,nC=36,AC=255,IC=2000,S_e=r({id:e().max(zZ),entity_id:e().max(kZ),order_integration_id:e().max(UZ),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(mZ),source_order_number:e().max(ZZ).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(CZ).nullish(),customer_email:e().max(jZ).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(pZ).nullish(),currency_code:e().max(fZ),total:v().min(lZ).max(hZ),total_with_tax:v().min(iZ).max(dZ),total_discount:v().min(aZ).max(sZ),total_shipping:v().min(eC).max(oC),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(cC).nullish(),payment_gateway:e().max(rC).nullish(),invoice_id:e().max(vC).nullish(),estimate_id:e().max(nC).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:D(e(),T()).nullish(),source_event_id:e().max(AC).nullish(),error:e().max(IC).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order");var so={};Q(so,{updatePaymentResponseTagMax:()=>Tj,updatePaymentResponseReferenceMax:()=>qj,updatePaymentResponseNoteMax:()=>Nj,updatePaymentResponseInvoiceNumberMax:()=>Jj,updatePaymentResponseInvoiceIdMaxOne:()=>uj,updatePaymentResponseInvoiceIdMax:()=>Sj,updatePaymentResponseIdMax:()=>Ij,updatePaymentResponseEntityIdMax:()=>Gj,updatePaymentResponseCurrencyCodeMax:()=>Dj,updatePaymentResponseCreditNoteNumberMax:()=>Bj,updatePaymentResponseCreditNoteIdMaxOne:()=>tj,updatePaymentResponseCreditNoteIdMax:()=>gj,updatePaymentResponseAmountMin:()=>_j,updatePaymentResponseAmountMax:()=>Ej,updatePaymentResponseAmountConvertedMin:()=>Oj,updatePaymentResponseAmountConvertedMax:()=>bj,updatePaymentResponseAdvanceInvoiceNumberMax:()=>Lj,updatePaymentResponseAdvanceInvoiceIdMaxOne:()=>Rj,updatePaymentResponseAdvanceInvoiceIdMax:()=>Pj,updatePaymentPathIdRegExp:()=>cj,updatePaymentBodyTagMax:()=>vj,updatePaymentBodyReferenceMax:()=>nj,updatePaymentBodyNoteMax:()=>Aj,updatePaymentBodyAmountExclusiveMin:()=>rj,restorePaymentResponseTagMax:()=>$j,restorePaymentResponseReferenceMax:()=>Mj,restorePaymentResponseNoteMax:()=>zj,restorePaymentResponseInvoiceNumberMax:()=>mj,restorePaymentResponseInvoiceIdMaxOne:()=>Uj,restorePaymentResponseInvoiceIdMax:()=>wj,restorePaymentResponseIdMax:()=>Qj,restorePaymentResponseEntityIdMax:()=>kj,restorePaymentResponseCurrencyCodeMax:()=>yj,restorePaymentResponseCreditNoteNumberMax:()=>Cj,restorePaymentResponseCreditNoteIdMaxOne:()=>Zj,restorePaymentResponseCreditNoteIdMax:()=>Xj,restorePaymentResponseAmountMin:()=>xj,restorePaymentResponseAmountMax:()=>Kj,restorePaymentResponseAmountConvertedMin:()=>Vj,restorePaymentResponseAmountConvertedMax:()=>Fj,restorePaymentResponseAdvanceInvoiceNumberMax:()=>pj,restorePaymentResponseAdvanceInvoiceIdMaxOne:()=>jj,restorePaymentResponseAdvanceInvoiceIdMax:()=>Yj,restorePaymentPathIdRegExp:()=>Wj,permanentDeletePaymentPathIdRegExp:()=>fj,getPaymentsResponseDataItemTagMax:()=>HC,getPaymentsResponseDataItemReferenceMax:()=>WC,getPaymentsResponseDataItemNoteMax:()=>QC,getPaymentsResponseDataItemInvoiceNumberMax:()=>YC,getPaymentsResponseDataItemInvoiceIdMaxOne:()=>XC,getPaymentsResponseDataItemInvoiceIdMax:()=>NC,getPaymentsResponseDataItemIdMax:()=>qC,getPaymentsResponseDataItemEntityIdMax:()=>wC,getPaymentsResponseDataItemCurrencyCodeMax:()=>BC,getPaymentsResponseDataItemCreditNoteNumberMax:()=>KC,getPaymentsResponseDataItemCreditNoteIdMaxOne:()=>xC,getPaymentsResponseDataItemCreditNoteIdMax:()=>GC,getPaymentsResponseDataItemAmountMin:()=>JC,getPaymentsResponseDataItemAmountMax:()=>tC,getPaymentsResponseDataItemAmountConvertedMin:()=>RC,getPaymentsResponseDataItemAmountConvertedMax:()=>LC,getPaymentsResponseDataItemAdvanceInvoiceNumberMax:()=>VC,getPaymentsResponseDataItemAdvanceInvoiceIdMaxOne:()=>yC,getPaymentsResponseDataItemAdvanceInvoiceIdMax:()=>uC,getPaymentsQueryLimitMax:()=>TC,getPaymentsQueryLimitDefault:()=>bC,getPaymentByIdResponseTagMax:()=>pC,getPaymentByIdResponseReferenceMax:()=>fC,getPaymentByIdResponseNoteMax:()=>lC,getPaymentByIdResponseInvoiceNumberMax:()=>dC,getPaymentByIdResponseInvoiceIdMaxOne:()=>iC,getPaymentByIdResponseInvoiceIdMax:()=>MC,getPaymentByIdResponseIdMax:()=>$C,getPaymentByIdResponseEntityIdMax:()=>hC,getPaymentByIdResponseCurrencyCodeMax:()=>ZC,getPaymentByIdResponseCreditNoteNumberMax:()=>sC,getPaymentByIdResponseCreditNoteIdMaxOne:()=>aC,getPaymentByIdResponseCreditNoteIdMax:()=>zC,getPaymentByIdResponseAmountMin:()=>UC,getPaymentByIdResponseAmountMax:()=>mC,getPaymentByIdResponseAmountConvertedMin:()=>CC,getPaymentByIdResponseAmountConvertedMax:()=>jC,getPaymentByIdResponseAdvanceInvoiceNumberMax:()=>oj,getPaymentByIdResponseAdvanceInvoiceIdMaxOne:()=>ej,getPaymentByIdResponseAdvanceInvoiceIdMax:()=>kC,getPaymentByIdPathIdRegExp:()=>FC,deletePaymentPathIdRegExp:()=>Hj,createPaymentBodyTagMax:()=>EC,createPaymentBodyReferenceMax:()=>DC,createPaymentBodyNoteMax:()=>OC,createPaymentBodyInvoiceIdMax:()=>SC,createPaymentBodyCreditNoteIdMax:()=>gC,createPaymentBodyAmountExclusiveMin:()=>_C,createPaymentBodyAdvanceInvoiceIdMax:()=>PC,UpdatePaymentResponse:()=>J_e,UpdatePaymentParams:()=>N_e,UpdatePaymentHeader:()=>G_e,UpdatePaymentBody:()=>u_e,RestorePaymentResponse:()=>H_e,RestorePaymentParams:()=>R_e,RestorePaymentHeader:()=>L_e,PermanentDeletePaymentParams:()=>W_e,PermanentDeletePaymentHeader:()=>Q_e,GetPaymentsResponse:()=>D_e,GetPaymentsQueryParams:()=>__e,GetPaymentsHeader:()=>E_e,GetPaymentByIdResponse:()=>q_e,GetPaymentByIdQueryParams:()=>b_e,GetPaymentByIdParams:()=>O_e,GetPaymentByIdHeader:()=>T_e,DeletePaymentParams:()=>t_e,DeletePaymentHeader:()=>B_e,CreatePaymentHeader:()=>g_e,CreatePaymentBody:()=>P_e});var g_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),SC=36,gC=36,PC=36,_C=0,EC=100,DC=100,OC=500,P_e=r({invoice_id:e().max(SC).nullish(),credit_note_id:e().max(gC).nullish(),advance_invoice_id:e().max(PC).nullish(),amount:v().gt(_C),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(EC).nullish(),reference:e().max(DC).nullish(),note:e().max(OC).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),bC=10,TC=100,__e=r({limit:v().min(1).max(TC).default(bC).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","amount","type","date","created_at","updated_at","-id","-amount","-type","-date","-created_at","-updated_at"]),P(g(["id","amount","type","date","created_at","updated_at","-id","-amount","-type","-date","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, invoice_id, credit_note_id, advance_invoice_id, amount, type, date, reference, note, metadata, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
212
- Searches are case-insensitive and match partial strings.
213
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `Invoice` - The invoice this payment is linked to\n- `CreditNote` - The credit note this payment is linked to\n- `AdvanceInvoice` - The advance invoice this payment is linked to\n\n**Usage:**\n`?include=Invoice`\n`?include=Invoice,CreditNote,AdvanceInvoice`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),E_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),qC=36,NC=36,GC=36,uC=36,JC=-140737488355328,tC=140737488355327,BC=3,RC=-140737488355328,LC=140737488355327,HC=100,WC=100,QC=500,wC=36,XC=36,YC=100,xC=36,KC=100,yC=36,VC=100,D_e=r({data:P(r({id:e().max(qC),invoice_id:e().max(NC).nullish(),credit_note_id:e().max(GC).nullish(),advance_invoice_id:e().max(uC).nullish(),amount:v().min(JC).max(tC),currency_code:e().max(BC),amount_converted:v().min(RC).max(LC),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().datetime({}).describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),tag:e().max(HC).nullish(),reference:e().max(WC).nullish(),note:e().max(QC).nullish(),entity_id:e().max(wC),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({}),Invoice:r({id:e().max(XC),number:e().max(YC)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(xC),number:e().max(KC)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(yC),number:e().max(VC)}).nullish().describe("Related advance invoice")}).describe("Payment record for an invoice, credit note, or advance invoice")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),FC=/^[a-z]{3,4}_[0-9a-f]{24}$/,O_e=r({id:e().regex(FC).describe("Unique resource identifier")}),b_e=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `Invoice` - The invoice this payment is linked to\n- `CreditNote` - The credit note this payment is linked to\n- `AdvanceInvoice` - The advance invoice this payment is linked to\n\n**Usage:**\n`?include=Invoice`\n`?include=Invoice,CreditNote,AdvanceInvoice`")}),T_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),$C=36,MC=36,zC=36,kC=36,UC=-140737488355328,mC=140737488355327,ZC=3,CC=-140737488355328,jC=140737488355327,pC=100,fC=100,lC=500,hC=36,iC=36,dC=100,aC=36,sC=100,ej=36,oj=100,q_e=r({id:e().max($C),invoice_id:e().max(MC).nullish(),credit_note_id:e().max(zC).nullish(),advance_invoice_id:e().max(kC).nullish(),amount:v().min(UC).max(mC),currency_code:e().max(ZC),amount_converted:v().min(CC).max(jC),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().datetime({}).describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),tag:e().max(pC).nullish(),reference:e().max(fC).nullish(),note:e().max(lC).nullish(),entity_id:e().max(hC),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({}),Invoice:r({id:e().max(iC),number:e().max(dC)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(aC),number:e().max(sC)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(ej),number:e().max(oj)}).nullish().describe("Related advance invoice")}).describe("Payment record for an invoice, credit note, or advance invoice"),cj=/^[a-z]{3,4}_[0-9a-f]{24}$/,N_e=r({id:e().regex(cj).describe("Unique resource identifier")}),G_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),rj=0,vj=100,nj=100,Aj=500,u_e=r({amount:v().gt(rj).optional(),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).optional().describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(vj).nullish(),reference:e().max(nj).nullish(),note:e().max(Aj).nullish(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Ij=36,Sj=36,gj=36,Pj=36,_j=-140737488355328,Ej=140737488355327,Dj=3,Oj=-140737488355328,bj=140737488355327,Tj=100,qj=100,Nj=500,Gj=36,uj=36,Jj=100,tj=36,Bj=100,Rj=36,Lj=100,J_e=r({id:e().max(Ij),invoice_id:e().max(Sj).nullish(),credit_note_id:e().max(gj).nullish(),advance_invoice_id:e().max(Pj).nullish(),amount:v().min(_j).max(Ej),currency_code:e().max(Dj),amount_converted:v().min(Oj).max(bj),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().datetime({}).describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),tag:e().max(Tj).nullish(),reference:e().max(qj).nullish(),note:e().max(Nj).nullish(),entity_id:e().max(Gj),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({}),Invoice:r({id:e().max(uj),number:e().max(Jj)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(tj),number:e().max(Bj)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(Rj),number:e().max(Lj)}).nullish().describe("Related advance invoice")}).describe("Payment record for an invoice, credit note, or advance invoice"),Hj=/^[a-z]{3,4}_[0-9a-f]{24}$/,t_e=r({id:e().regex(Hj).describe("Unique resource identifier")}),B_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Wj=/^[a-z]{3,4}_[0-9a-f]{24}$/,R_e=r({id:e().regex(Wj).describe("Unique resource identifier")}),L_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Qj=36,wj=36,Xj=36,Yj=36,xj=-140737488355328,Kj=140737488355327,yj=3,Vj=-140737488355328,Fj=140737488355327,$j=100,Mj=100,zj=500,kj=36,Uj=36,mj=100,Zj=36,Cj=100,jj=36,pj=100,H_e=r({id:e().max(Qj),invoice_id:e().max(wj).nullish(),credit_note_id:e().max(Xj).nullish(),advance_invoice_id:e().max(Yj).nullish(),amount:v().min(xj).max(Kj),currency_code:e().max(yj),amount_converted:v().min(Vj).max(Fj),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().datetime({}).describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),tag:e().max($j).nullish(),reference:e().max(Mj).nullish(),note:e().max(zj).nullish(),entity_id:e().max(kj),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({}),Invoice:r({id:e().max(Uj),number:e().max(mj)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(Zj),number:e().max(Cj)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(jj),number:e().max(pj)}).nullish().describe("Related advance invoice")}).describe("Payment record for an invoice, credit note, or advance invoice"),fj=/^[a-z]{3,4}_[0-9a-f]{24}$/,W_e=r({id:e().regex(fj).describe("Unique resource identifier")}),Q_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var ec={};Q(ec,{updateRecurringInvoiceResponseOneStartDateMax:()=>Xf,updateRecurringInvoiceResponseOneSendToMax:()=>yf,updateRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>Vf,updateRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>Ff,updateRecurringInvoiceResponseOneNextRunDateMax:()=>xf,updateRecurringInvoiceResponseOneNameMax:()=>Jf,updateRecurringInvoiceResponseOneMonthOfYearMin:()=>Qf,updateRecurringInvoiceResponseOneMonthOfYearMax:()=>wf,updateRecurringInvoiceResponseOneLastRunDateMax:()=>Kf,updateRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>zf,updateRecurringInvoiceResponseOneLastErrorMax:()=>kf,updateRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>$f,updateRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>Mf,updateRecurringInvoiceResponseOneIntervalMin:()=>tf,updateRecurringInvoiceResponseOneIntervalMax:()=>Bf,updateRecurringInvoiceResponseOneIdMax:()=>Nf,updateRecurringInvoiceResponseOneEntityIdMax:()=>Gf,updateRecurringInvoiceResponseOneEndDateMax:()=>Yf,updateRecurringInvoiceResponseOneDocumentIdMax:()=>uf,updateRecurringInvoiceResponseOneDayOfWeekMin:()=>Rf,updateRecurringInvoiceResponseOneDayOfWeekMax:()=>Lf,updateRecurringInvoiceResponseOneDayOfMonthMin:()=>Hf,updateRecurringInvoiceResponseOneDayOfMonthMax:()=>Wf,updateRecurringInvoicePathIdRegExp:()=>rf,updateRecurringInvoiceBodyStartDateRegExp:()=>Df,updateRecurringInvoiceBodySendToMax:()=>bf,updateRecurringInvoiceBodyPaymentTermsDaysMin:()=>Tf,updateRecurringInvoiceBodyPaymentTermsDaysMax:()=>qf,updateRecurringInvoiceBodyNameMax:()=>vf,updateRecurringInvoiceBodyMonthOfYearMin:()=>_f,updateRecurringInvoiceBodyMonthOfYearMax:()=>Ef,updateRecurringInvoiceBodyIntervalMin:()=>nf,updateRecurringInvoiceBodyIntervalMax:()=>Af,updateRecurringInvoiceBodyEndDateRegExp:()=>Of,updateRecurringInvoiceBodyDayOfWeekMin:()=>If,updateRecurringInvoiceBodyDayOfWeekMax:()=>Sf,updateRecurringInvoiceBodyDayOfMonthMin:()=>gf,updateRecurringInvoiceBodyDayOfMonthMax:()=>Pf,triggerRecurringInvoiceResponseOneStartDateMax:()=>Jh,triggerRecurringInvoiceResponseOneSendToMax:()=>Lh,triggerRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>Hh,triggerRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>Wh,triggerRecurringInvoiceResponseOneNextRunDateMax:()=>Bh,triggerRecurringInvoiceResponseOneNameMax:()=>Eh,triggerRecurringInvoiceResponseOneMonthOfYearMin:()=>Gh,triggerRecurringInvoiceResponseOneMonthOfYearMax:()=>uh,triggerRecurringInvoiceResponseOneLastRunDateMax:()=>Rh,triggerRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>Xh,triggerRecurringInvoiceResponseOneLastErrorMax:()=>Yh,triggerRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>Qh,triggerRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>wh,triggerRecurringInvoiceResponseOneIntervalMin:()=>Dh,triggerRecurringInvoiceResponseOneIntervalMax:()=>Oh,triggerRecurringInvoiceResponseOneIdMax:()=>gh,triggerRecurringInvoiceResponseOneEntityIdMax:()=>Ph,triggerRecurringInvoiceResponseOneEndDateMax:()=>th,triggerRecurringInvoiceResponseOneDocumentIdMax:()=>_h,triggerRecurringInvoiceResponseOneDayOfWeekMin:()=>bh,triggerRecurringInvoiceResponseOneDayOfWeekMax:()=>Th,triggerRecurringInvoiceResponseOneDayOfMonthMin:()=>qh,triggerRecurringInvoiceResponseOneDayOfMonthMax:()=>Nh,triggerRecurringInvoicePathIdRegExp:()=>Sh,resumeRecurringInvoiceResponseOneStartDateMax:()=>dl,resumeRecurringInvoiceResponseOneSendToMax:()=>oh,resumeRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>ch,resumeRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>rh,resumeRecurringInvoiceResponseOneNextRunDateMax:()=>sl,resumeRecurringInvoiceResponseOneNameMax:()=>ml,resumeRecurringInvoiceResponseOneMonthOfYearMin:()=>hl,resumeRecurringInvoiceResponseOneMonthOfYearMax:()=>il,resumeRecurringInvoiceResponseOneLastRunDateMax:()=>eh,resumeRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>Ah,resumeRecurringInvoiceResponseOneLastErrorMax:()=>Ih,resumeRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>vh,resumeRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>nh,resumeRecurringInvoiceResponseOneIntervalMin:()=>Zl,resumeRecurringInvoiceResponseOneIntervalMax:()=>Cl,resumeRecurringInvoiceResponseOneIdMax:()=>zl,resumeRecurringInvoiceResponseOneEntityIdMax:()=>kl,resumeRecurringInvoiceResponseOneEndDateMax:()=>al,resumeRecurringInvoiceResponseOneDocumentIdMax:()=>Ul,resumeRecurringInvoiceResponseOneDayOfWeekMin:()=>jl,resumeRecurringInvoiceResponseOneDayOfWeekMax:()=>pl,resumeRecurringInvoiceResponseOneDayOfMonthMin:()=>fl,resumeRecurringInvoiceResponseOneDayOfMonthMax:()=>ll,resumeRecurringInvoicePathIdRegExp:()=>Ml,restoreRecurringInvoiceResponseOneStartDateMax:()=>cl,restoreRecurringInvoiceResponseOneSendToMax:()=>Al,restoreRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>Il,restoreRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>Sl,restoreRecurringInvoiceResponseOneNextRunDateMax:()=>vl,restoreRecurringInvoiceResponseOneNameMax:()=>pf,restoreRecurringInvoiceResponseOneMonthOfYearMin:()=>el,restoreRecurringInvoiceResponseOneMonthOfYearMax:()=>ol,restoreRecurringInvoiceResponseOneLastRunDateMax:()=>nl,restoreRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>_l,restoreRecurringInvoiceResponseOneLastErrorMax:()=>El,restoreRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>gl,restoreRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>Pl,restoreRecurringInvoiceResponseOneIntervalMin:()=>ff,restoreRecurringInvoiceResponseOneIntervalMax:()=>lf,restoreRecurringInvoiceResponseOneIdMax:()=>Zf,restoreRecurringInvoiceResponseOneEntityIdMax:()=>Cf,restoreRecurringInvoiceResponseOneEndDateMax:()=>rl,restoreRecurringInvoiceResponseOneDocumentIdMax:()=>jf,restoreRecurringInvoiceResponseOneDayOfWeekMin:()=>hf,restoreRecurringInvoiceResponseOneDayOfWeekMax:()=>df,restoreRecurringInvoiceResponseOneDayOfMonthMin:()=>af,restoreRecurringInvoiceResponseOneDayOfMonthMax:()=>sf,restoreRecurringInvoicePathIdRegExp:()=>mf,permanentDeleteRecurringInvoicePathIdRegExp:()=>Dl,pauseRecurringInvoiceResponseOneStartDateMax:()=>Wl,pauseRecurringInvoiceResponseOneSendToMax:()=>Yl,pauseRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>xl,pauseRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>Kl,pauseRecurringInvoiceResponseOneNextRunDateMax:()=>wl,pauseRecurringInvoiceResponseOneNameMax:()=>Nl,pauseRecurringInvoiceResponseOneMonthOfYearMin:()=>Ll,pauseRecurringInvoiceResponseOneMonthOfYearMax:()=>Hl,pauseRecurringInvoiceResponseOneLastRunDateMax:()=>Xl,pauseRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>Fl,pauseRecurringInvoiceResponseOneLastErrorMax:()=>$l,pauseRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>yl,pauseRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>Vl,pauseRecurringInvoiceResponseOneIntervalMin:()=>Gl,pauseRecurringInvoiceResponseOneIntervalMax:()=>ul,pauseRecurringInvoiceResponseOneIdMax:()=>bl,pauseRecurringInvoiceResponseOneEntityIdMax:()=>Tl,pauseRecurringInvoiceResponseOneEndDateMax:()=>Ql,pauseRecurringInvoiceResponseOneDocumentIdMax:()=>ql,pauseRecurringInvoiceResponseOneDayOfWeekMin:()=>Jl,pauseRecurringInvoiceResponseOneDayOfWeekMax:()=>tl,pauseRecurringInvoiceResponseOneDayOfMonthMin:()=>Bl,pauseRecurringInvoiceResponseOneDayOfMonthMax:()=>Rl,pauseRecurringInvoicePathIdRegExp:()=>Ol,getRecurringInvoicesResponseDataItemOneStartDateMax:()=>tp,getRecurringInvoicesResponseDataItemOneSendToMax:()=>Hp,getRecurringInvoicesResponseDataItemOnePaymentTermsDaysMin:()=>Wp,getRecurringInvoicesResponseDataItemOnePaymentTermsDaysMax:()=>Qp,getRecurringInvoicesResponseDataItemOneNextRunDateMax:()=>Rp,getRecurringInvoicesResponseDataItemOneNameMax:()=>Dp,getRecurringInvoicesResponseDataItemOneMonthOfYearMin:()=>up,getRecurringInvoicesResponseDataItemOneMonthOfYearMax:()=>Jp,getRecurringInvoicesResponseDataItemOneLastRunDateMax:()=>Lp,getRecurringInvoicesResponseDataItemOneLastGeneratedInvoiceIdMax:()=>Yp,getRecurringInvoicesResponseDataItemOneLastErrorMax:()=>xp,getRecurringInvoicesResponseDataItemOneInvoicesGeneratedMin:()=>wp,getRecurringInvoicesResponseDataItemOneInvoicesGeneratedMax:()=>Xp,getRecurringInvoicesResponseDataItemOneIntervalMin:()=>Op,getRecurringInvoicesResponseDataItemOneIntervalMax:()=>bp,getRecurringInvoicesResponseDataItemOneIdMax:()=>Pp,getRecurringInvoicesResponseDataItemOneEntityIdMax:()=>_p,getRecurringInvoicesResponseDataItemOneEndDateMax:()=>Bp,getRecurringInvoicesResponseDataItemOneDocumentIdMax:()=>Ep,getRecurringInvoicesResponseDataItemOneDayOfWeekMin:()=>Tp,getRecurringInvoicesResponseDataItemOneDayOfWeekMax:()=>qp,getRecurringInvoicesResponseDataItemOneDayOfMonthMin:()=>Np,getRecurringInvoicesResponseDataItemOneDayOfMonthMax:()=>Gp,getRecurringInvoicesQueryLimitMax:()=>gp,getRecurringInvoicesQueryLimitDefault:()=>Sp,getRecurringInvoiceByIdResponseOneStartDateMax:()=>pp,getRecurringInvoiceByIdResponseOneSendToMax:()=>ip,getRecurringInvoiceByIdResponseOnePaymentTermsDaysMin:()=>dp,getRecurringInvoiceByIdResponseOnePaymentTermsDaysMax:()=>ap,getRecurringInvoiceByIdResponseOneNextRunDateMax:()=>lp,getRecurringInvoiceByIdResponseOneNameMax:()=>$p,getRecurringInvoiceByIdResponseOneMonthOfYearMin:()=>Cp,getRecurringInvoiceByIdResponseOneMonthOfYearMax:()=>jp,getRecurringInvoiceByIdResponseOneLastRunDateMax:()=>hp,getRecurringInvoiceByIdResponseOneLastGeneratedInvoiceIdMax:()=>of,getRecurringInvoiceByIdResponseOneLastErrorMax:()=>cf,getRecurringInvoiceByIdResponseOneInvoicesGeneratedMin:()=>sp,getRecurringInvoiceByIdResponseOneInvoicesGeneratedMax:()=>ef,getRecurringInvoiceByIdResponseOneIntervalMin:()=>Mp,getRecurringInvoiceByIdResponseOneIntervalMax:()=>zp,getRecurringInvoiceByIdResponseOneIdMax:()=>yp,getRecurringInvoiceByIdResponseOneEntityIdMax:()=>Vp,getRecurringInvoiceByIdResponseOneEndDateMax:()=>fp,getRecurringInvoiceByIdResponseOneDocumentIdMax:()=>Fp,getRecurringInvoiceByIdResponseOneDayOfWeekMin:()=>kp,getRecurringInvoiceByIdResponseOneDayOfWeekMax:()=>Up,getRecurringInvoiceByIdResponseOneDayOfMonthMin:()=>mp,getRecurringInvoiceByIdResponseOneDayOfMonthMax:()=>Zp,getRecurringInvoiceByIdPathIdRegExp:()=>Kp,deleteRecurringInvoicePathIdRegExp:()=>Uf,createRecurringInvoiceBodyStartDateRegExp:()=>rp,createRecurringInvoiceBodySendToMax:()=>np,createRecurringInvoiceBodyPaymentTermsDaysMin:()=>Ap,createRecurringInvoiceBodyPaymentTermsDaysMax:()=>Ip,createRecurringInvoiceBodyMonthOfYearMin:()=>op,createRecurringInvoiceBodyMonthOfYearMax:()=>cp,createRecurringInvoiceBodyIntervalMin:()=>hj,createRecurringInvoiceBodyIntervalMax:()=>ij,createRecurringInvoiceBodyEndDateRegExp:()=>vp,createRecurringInvoiceBodyDocumentIdMax:()=>lj,createRecurringInvoiceBodyDayOfWeekMin:()=>dj,createRecurringInvoiceBodyDayOfWeekMax:()=>aj,createRecurringInvoiceBodyDayOfMonthMin:()=>sj,createRecurringInvoiceBodyDayOfMonthMax:()=>ep,UpdateRecurringInvoiceResponse:()=>k_e,UpdateRecurringInvoiceParams:()=>$_e,UpdateRecurringInvoiceHeader:()=>M_e,UpdateRecurringInvoiceBody:()=>z_e,TriggerRecurringInvoiceResponse:()=>cEe,TriggerRecurringInvoiceParams:()=>eEe,TriggerRecurringInvoiceHeader:()=>oEe,ResumeRecurringInvoiceResponse:()=>s_e,ResumeRecurringInvoiceParams:()=>d_e,ResumeRecurringInvoiceHeader:()=>a_e,RestoreRecurringInvoiceResponse:()=>j_e,RestoreRecurringInvoiceParams:()=>Z_e,RestoreRecurringInvoiceHeader:()=>C_e,PermanentDeleteRecurringInvoiceParams:()=>p_e,PermanentDeleteRecurringInvoiceHeader:()=>f_e,PauseRecurringInvoiceResponse:()=>i_e,PauseRecurringInvoiceParams:()=>l_e,PauseRecurringInvoiceHeader:()=>h_e,GetRecurringInvoicesResponse:()=>K_e,GetRecurringInvoicesQueryParams:()=>Y_e,GetRecurringInvoicesHeader:()=>x_e,GetRecurringInvoiceByIdResponse:()=>F_e,GetRecurringInvoiceByIdParams:()=>y_e,GetRecurringInvoiceByIdHeader:()=>V_e,DeleteRecurringInvoiceParams:()=>U_e,DeleteRecurringInvoiceHeader:()=>m_e,CreateRecurringInvoiceHeader:()=>w_e,CreateRecurringInvoiceBody:()=>X_e});var w_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),lj=36,hj=-2147483648,ij=2147483647,dj=-2147483648,aj=2147483647,sj=-2147483648,ep=2147483647,op=-2147483648,cp=2147483647,rp=/^\d{4}-\d{2}-\d{2}$/,vp=/^\d{4}-\d{2}-\d{2}$/,np=255,Ap=-2147483648,Ip=2147483647,X_e=r({document_id:e().max(lj),name:e().min(1),frequency:g(["daily","weekly","monthly","yearly"]),interval:v().min(hj).max(ij).optional(),day_of_week:v().min(dj).max(aj).nullish(),day_of_month:v().min(sj).max(ep).nullish(),month_of_year:v().min(op).max(cp).nullish(),start_date:e().regex(rp).describe("Start date in YYYY-MM-DD format"),end_date:e().regex(vp).optional().describe("End date in YYYY-MM-DD format (null = no end)"),auto_send:A().optional(),create_as_draft:A().optional(),send_to:e().max(np).nullish(),payment_terms_days:v().min(Ap).max(Ip).nullish(),notify_owner:A().optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Sp=10,gp=100,Y_e=r({limit:v().min(1).max(gp).default(Sp).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","name","status","next_run_date","created_at","-id","-name","-status","-next_run_date","-created_at"]),P(g(["id","name","status","next_run_date","created_at","-id","-name","-status","-next_run_date","-created_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, status, frequency, document_id\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
214
- Searches are case-insensitive and match partial strings.
215
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),x_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Pp=36,_p=36,Ep=36,Dp=255,Op=-2147483648,bp=2147483647,Tp=-2147483648,qp=2147483647,Np=-2147483648,Gp=2147483647,up=-2147483648,Jp=2147483647,tp=10,Bp=10,Rp=10,Lp=10,Hp=255,Wp=-2147483648,Qp=2147483647,wp=-2147483648,Xp=2147483647,Yp=36,xp=1000,K_e=r({data:P(r({id:e().max(Pp),entity_id:e().max(_p),document_id:e().max(Ep),name:e().max(Dp),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(Op).max(bp),day_of_week:v().min(Tp).max(qp).nullish(),day_of_month:v().min(Np).max(Gp).nullish(),month_of_year:v().min(up).max(Jp).nullish(),start_date:e().max(tp),end_date:e().max(Bp).nullish(),next_run_date:e().max(Rp).nullish(),last_run_date:e().max(Lp).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(Hp).nullish(),payment_terms_days:v().min(Wp).max(Qp).nullish(),notify_owner:A(),invoices_generated:v().min(wp).max(Xp),last_generated_invoice_id:e().max(Yp).nullish(),last_error:e().max(xp).nullish(),last_error_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Kp=/^[a-z]{3,4}_[0-9a-f]{24}$/,y_e=r({id:e().regex(Kp).describe("Unique resource identifier")}),V_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yp=36,Vp=36,Fp=36,$p=255,Mp=-2147483648,zp=2147483647,kp=-2147483648,Up=2147483647,mp=-2147483648,Zp=2147483647,Cp=-2147483648,jp=2147483647,pp=10,fp=10,lp=10,hp=10,ip=255,dp=-2147483648,ap=2147483647,sp=-2147483648,ef=2147483647,of=36,cf=1000,F_e=r({id:e().max(yp),entity_id:e().max(Vp),document_id:e().max(Fp),name:e().max($p),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(Mp).max(zp),day_of_week:v().min(kp).max(Up).nullish(),day_of_month:v().min(mp).max(Zp).nullish(),month_of_year:v().min(Cp).max(jp).nullish(),start_date:e().max(pp),end_date:e().max(fp).nullish(),next_run_date:e().max(lp).nullish(),last_run_date:e().max(hp).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(ip).nullish(),payment_terms_days:v().min(dp).max(ap).nullish(),notify_owner:A(),invoices_generated:v().min(sp).max(ef),last_generated_invoice_id:e().max(of).nullish(),last_error:e().max(cf).nullish(),last_error_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),rf=/^[a-z]{3,4}_[0-9a-f]{24}$/,$_e=r({id:e().regex(rf).describe("Unique resource identifier")}),M_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vf=255,nf=-2147483648,Af=2147483647,If=-2147483648,Sf=2147483647,gf=-2147483648,Pf=2147483647,_f=-2147483648,Ef=2147483647,Df=/^\d{4}-\d{2}-\d{2}$/,Of=/^\d{4}-\d{2}-\d{2}$/,bf=255,Tf=-2147483648,qf=2147483647,z_e=r({name:e().max(vf).optional(),frequency:g(["daily","weekly","monthly","yearly"]).optional(),interval:v().min(nf).max(Af).optional(),day_of_week:v().min(If).max(Sf).nullish(),day_of_month:v().min(gf).max(Pf).nullish(),month_of_year:v().min(_f).max(Ef).nullish(),start_date:e().regex(Df).optional(),end_date:e().regex(Of).nullish(),auto_send:A().optional(),create_as_draft:A().optional(),send_to:e().max(bf).nullish(),payment_terms_days:v().min(Tf).max(qf).nullish(),notify_owner:A().optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Nf=36,Gf=36,uf=36,Jf=255,tf=-2147483648,Bf=2147483647,Rf=-2147483648,Lf=2147483647,Hf=-2147483648,Wf=2147483647,Qf=-2147483648,wf=2147483647,Xf=10,Yf=10,xf=10,Kf=10,yf=255,Vf=-2147483648,Ff=2147483647,$f=-2147483648,Mf=2147483647,zf=36,kf=1000,k_e=r({id:e().max(Nf),entity_id:e().max(Gf),document_id:e().max(uf),name:e().max(Jf),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(tf).max(Bf),day_of_week:v().min(Rf).max(Lf).nullish(),day_of_month:v().min(Hf).max(Wf).nullish(),month_of_year:v().min(Qf).max(wf).nullish(),start_date:e().max(Xf),end_date:e().max(Yf).nullish(),next_run_date:e().max(xf).nullish(),last_run_date:e().max(Kf).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(yf).nullish(),payment_terms_days:v().min(Vf).max(Ff).nullish(),notify_owner:A(),invoices_generated:v().min($f).max(Mf),last_generated_invoice_id:e().max(zf).nullish(),last_error:e().max(kf).nullish(),last_error_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),Uf=/^[a-z]{3,4}_[0-9a-f]{24}$/,U_e=r({id:e().regex(Uf).describe("Unique resource identifier")}),m_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),mf=/^[a-z]{3,4}_[0-9a-f]{24}$/,Z_e=r({id:e().regex(mf).describe("Unique resource identifier")}),C_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Zf=36,Cf=36,jf=36,pf=255,ff=-2147483648,lf=2147483647,hf=-2147483648,df=2147483647,af=-2147483648,sf=2147483647,el=-2147483648,ol=2147483647,cl=10,rl=10,vl=10,nl=10,Al=255,Il=-2147483648,Sl=2147483647,gl=-2147483648,Pl=2147483647,_l=36,El=1000,j_e=r({id:e().max(Zf),entity_id:e().max(Cf),document_id:e().max(jf),name:e().max(pf),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(ff).max(lf),day_of_week:v().min(hf).max(df).nullish(),day_of_month:v().min(af).max(sf).nullish(),month_of_year:v().min(el).max(ol).nullish(),start_date:e().max(cl),end_date:e().max(rl).nullish(),next_run_date:e().max(vl).nullish(),last_run_date:e().max(nl).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(Al).nullish(),payment_terms_days:v().min(Il).max(Sl).nullish(),notify_owner:A(),invoices_generated:v().min(gl).max(Pl),last_generated_invoice_id:e().max(_l).nullish(),last_error:e().max(El).nullish(),last_error_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),Dl=/^[a-z]{3,4}_[0-9a-f]{24}$/,p_e=r({id:e().regex(Dl).describe("Unique resource identifier")}),f_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ol=/^[a-z]{3,4}_[0-9a-f]{24}$/,l_e=r({id:e().regex(Ol).describe("Unique resource identifier")}),h_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),bl=36,Tl=36,ql=36,Nl=255,Gl=-2147483648,ul=2147483647,Jl=-2147483648,tl=2147483647,Bl=-2147483648,Rl=2147483647,Ll=-2147483648,Hl=2147483647,Wl=10,Ql=10,wl=10,Xl=10,Yl=255,xl=-2147483648,Kl=2147483647,yl=-2147483648,Vl=2147483647,Fl=36,$l=1000,i_e=r({id:e().max(bl),entity_id:e().max(Tl),document_id:e().max(ql),name:e().max(Nl),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(Gl).max(ul),day_of_week:v().min(Jl).max(tl).nullish(),day_of_month:v().min(Bl).max(Rl).nullish(),month_of_year:v().min(Ll).max(Hl).nullish(),start_date:e().max(Wl),end_date:e().max(Ql).nullish(),next_run_date:e().max(wl).nullish(),last_run_date:e().max(Xl).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(Yl).nullish(),payment_terms_days:v().min(xl).max(Kl).nullish(),notify_owner:A(),invoices_generated:v().min(yl).max(Vl),last_generated_invoice_id:e().max(Fl).nullish(),last_error:e().max($l).nullish(),last_error_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),Ml=/^[a-z]{3,4}_[0-9a-f]{24}$/,d_e=r({id:e().regex(Ml).describe("Unique resource identifier")}),a_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),zl=36,kl=36,Ul=36,ml=255,Zl=-2147483648,Cl=2147483647,jl=-2147483648,pl=2147483647,fl=-2147483648,ll=2147483647,hl=-2147483648,il=2147483647,dl=10,al=10,sl=10,eh=10,oh=255,ch=-2147483648,rh=2147483647,vh=-2147483648,nh=2147483647,Ah=36,Ih=1000,s_e=r({id:e().max(zl),entity_id:e().max(kl),document_id:e().max(Ul),name:e().max(ml),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(Zl).max(Cl),day_of_week:v().min(jl).max(pl).nullish(),day_of_month:v().min(fl).max(ll).nullish(),month_of_year:v().min(hl).max(il).nullish(),start_date:e().max(dl),end_date:e().max(al).nullish(),next_run_date:e().max(sl).nullish(),last_run_date:e().max(eh).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(oh).nullish(),payment_terms_days:v().min(ch).max(rh).nullish(),notify_owner:A(),invoices_generated:v().min(vh).max(nh),last_generated_invoice_id:e().max(Ah).nullish(),last_error:e().max(Ih).nullish(),last_error_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),Sh=/^[a-z]{3,4}_[0-9a-f]{24}$/,eEe=r({id:e().regex(Sh).describe("Unique resource identifier")}),oEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),gh=36,Ph=36,_h=36,Eh=255,Dh=-2147483648,Oh=2147483647,bh=-2147483648,Th=2147483647,qh=-2147483648,Nh=2147483647,Gh=-2147483648,uh=2147483647,Jh=10,th=10,Bh=10,Rh=10,Lh=255,Hh=-2147483648,Wh=2147483647,Qh=-2147483648,wh=2147483647,Xh=36,Yh=1000,cEe=r({id:e().max(gh),entity_id:e().max(Ph),document_id:e().max(_h),name:e().max(Eh),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(Dh).max(Oh),day_of_week:v().min(bh).max(Th).nullish(),day_of_month:v().min(qh).max(Nh).nullish(),month_of_year:v().min(Gh).max(uh).nullish(),start_date:e().max(Jh),end_date:e().max(th).nullish(),next_run_date:e().max(Bh).nullish(),last_run_date:e().max(Rh).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(Lh).nullish(),payment_terms_days:v().min(Hh).max(Wh).nullish(),notify_owner:A(),invoices_generated:v().min(Qh).max(wh),last_generated_invoice_id:e().max(Xh).nullish(),last_error:e().max(Yh).nullish(),last_error_at:e().datetime({}).nullish(),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule");var oc={};Q(oc,{stripeAppUpdateSettingsBodyDefaultTaxRateMin:()=>Kh,stripeAppUpdateSettingsBodyDefaultTaxRateMax:()=>yh,stripeAppUpdateSettingsBodyDefaultNoteMax:()=>xh,stripeAppListInvoicesQueryLimitMax:()=>$h,stripeAppListInvoicesQueryLimitDefault:()=>Fh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>zh,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>kh,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>Mh,stripeAppCreateInvoiceBodyNoteMax:()=>Vh,StripeAppWebhookResponse:()=>AEe,StripeAppUpdateSettingsResponse:()=>NEe,StripeAppUpdateSettingsHeader:()=>TEe,StripeAppUpdateSettingsBody:()=>qEe,StripeAppOAuthCallbackQueryParams:()=>nEe,StripeAppMarketplaceAuthorizeResponse:()=>SEe,StripeAppMarketplaceAuthorizeBody:()=>IEe,StripeAppLookupInvoiceResponse:()=>HEe,StripeAppLookupInvoiceQueryParams:()=>REe,StripeAppLookupInvoiceHeader:()=>LEe,StripeAppListInvoicesResponse:()=>BEe,StripeAppListInvoicesQueryParams:()=>JEe,StripeAppListInvoicesHeader:()=>tEe,StripeAppGetSettingsResponse:()=>bEe,StripeAppGetSettingsHeader:()=>OEe,StripeAppGetInvoiceResponse:()=>wEe,StripeAppGetInvoiceParams:()=>WEe,StripeAppGetInvoiceHeader:()=>QEe,StripeAppGetConnectionResponse:()=>_Ee,StripeAppGetConnectionHeader:()=>PEe,StripeAppEntityUpdateSettingsResponse:()=>yEe,StripeAppEntityUpdateSettingsBody:()=>KEe,StripeAppEntityGetSettingsResponse:()=>xEe,StripeAppEntityGetConnectionResponse:()=>XEe,StripeAppEntityDisconnectResponse:()=>YEe,StripeAppDisconnectResponse:()=>DEe,StripeAppDisconnectHeader:()=>EEe,StripeAppCreateInvoiceHeader:()=>GEe,StripeAppCreateInvoiceBody:()=>uEe,StripeAppConnectBody:()=>gEe,StripeAppAuthorizeResponse:()=>vEe,StripeAppAuthorizeHeader:()=>rEe});var rEe=r({"stripe-user-account-id":e().describe("Stripe account ID from the Stripe App context")}),vEe=r({redirect_url:e().url().describe("URL to redirect the user to for authentication")}),nEe=r({code:e().min(1).describe("OAuth authorization code from Stripe"),state:e().min(1).describe("Encrypted state token from the authorize step")}),AEe=r({received:A().describe("Whether the webhook was received successfully")}),IEe=r({entity_id:e().min(1).describe("Entity ID to connect to the Stripe account")}),SEe=r({redirect_url:e().url().describe("URL to redirect the user to for authentication")}),gEe=r({state:e().min(1).describe("State token from the authorize step"),entity_id:e().min(1).describe("Entity ID to connect to the Stripe account"),force:A().optional().describe("If true, disconnects any existing connection for this Stripe account before connecting")}),PEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),_Ee=r({id:e().describe("Connection ID"),stripe_account_id:e().describe("Connected Stripe account ID"),entity_id:e().describe("Connected Space Invoices entity ID"),white_label_id:e().describe("White-label context for this connection"),auto_invoice_config:r({enabled:A(),events:P(e()),default_note:e().optional()}).describe("Auto-invoice configuration"),created_at:e().datetime({}).describe("When the connection was created")}),EEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),DEe=r({message:e()}),OEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),bEe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),TEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),xh=500,Kh=0,yh=100,qEe=r({auto_invoice_enabled:A().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:P(g(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e().max(xh).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:v().min(Kh).max(yh).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),NEe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),GEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),Vh=2000,uEe=r({stripe_object_id:e().min(1).describe("Stripe object ID (pi_xxx for payment intents, in_xxx for invoices). Type is auto-detected from prefix."),note:e().max(Vh).optional().describe("Optional note to include on the invoice")}),Fh=10,$h=50,JEe=r({limit:v().min(1).max($h).default(Fh).describe("Number of invoices to return")}),tEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),BEe=r({data:P(r({id:e().describe("Space Invoices invoice ID"),number:e().nullable().describe("Invoice number"),status:e().describe("Invoice status"),total:v().describe("Invoice total amount"),currency:e().describe("Currency code"),public_url:e().url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e().datetime({}).describe("When the invoice was created")}))}),REe=r({stripe_object_id:e().min(1).describe("Stripe object ID (e.g. in_xxx for invoices, pi_xxx for payment intents)")}),LEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),HEe=r({id:e().describe("Space Invoices invoice ID"),number:e().nullable().describe("Invoice number"),status:e().describe("Invoice status"),total:v().describe("Invoice total amount"),currency:e().describe("Currency code"),public_url:e().url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e().datetime({}).describe("When the invoice was created")}),WEe=r({id:e().describe("Invoice ID")}),QEe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),wEe=r({id:e().describe("Space Invoices invoice ID"),number:e().nullable().describe("Invoice number"),status:e().describe("Invoice status"),total:v().describe("Invoice total amount"),currency:e().describe("Currency code"),public_url:e().url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e().datetime({}).describe("When the invoice was created")}),XEe=r({id:e().describe("Connection ID"),stripe_account_id:e().describe("Connected Stripe account ID"),entity_id:e().describe("Connected Space Invoices entity ID"),white_label_id:e().describe("White-label context for this connection"),auto_invoice_config:r({enabled:A(),events:P(e()),default_note:e().optional()}).describe("Auto-invoice configuration"),created_at:e().datetime({}).describe("When the connection was created")}),YEe=r({message:e()}),xEe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),Mh=500,zh=0,kh=100,KEe=r({auto_invoice_enabled:A().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:P(g(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e().max(Mh).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:v().min(zh).max(kh).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),yEe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")});var cc={};Q(cc,{generateKirExportQueryYearRegExp:()=>Uh,generateKirExportQueryQuarterRegExp:()=>Zh,generateKirExportQueryMonthRegExp:()=>mh,GenerateKirExportQueryParams:()=>VEe,GenerateKirExportHeader:()=>FEe});var Uh=/^\d{4}$/,mh=/^(1[0-2]|[1-9])$/,Zh=/^[1-4]$/,VEe=r({year:e().regex(Uh).describe("Year for KIR export (e.g., 2025)"),month:e().regex(mh).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e().regex(Zh).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),FEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var rc={};Q(rc,{updateTaxResponseTwoOneTaxRatesItemRateMin:()=>bi,updateTaxResponseTwoOneTaxRatesItemRateMax:()=>Ti,updateTaxResponseTwoOneNameMax:()=>Oi,updateTaxResponseTwoOneIdMax:()=>Di,updateTaxResponseTwoOneEntityIdMax:()=>qi,updateTaxResponseOneTaxRatesItemRateMin:()=>Pi,updateTaxResponseOneTaxRatesItemRateMax:()=>_i,updateTaxResponseOneNameMax:()=>gi,updateTaxResponseOneIdMax:()=>Si,updateTaxResponseOneEntityIdMax:()=>Ei,updateTaxPathIdRegExp:()=>ni,updateTaxBodyTaxRatesItemRateMin:()=>Ai,updateTaxBodyTaxRatesItemRateMax:()=>Ii,restoreTaxResponseTwoOneTaxRatesItemRateMin:()=>Ui,restoreTaxResponseTwoOneTaxRatesItemRateMax:()=>mi,restoreTaxResponseTwoOneNameMax:()=>ki,restoreTaxResponseTwoOneIdMax:()=>zi,restoreTaxResponseTwoOneEntityIdMax:()=>Zi,restoreTaxResponseOneTaxRatesItemRateMin:()=>Fi,restoreTaxResponseOneTaxRatesItemRateMax:()=>$i,restoreTaxResponseOneNameMax:()=>Vi,restoreTaxResponseOneIdMax:()=>yi,restoreTaxResponseOneEntityIdMax:()=>Mi,restoreTaxPathIdRegExp:()=>Ki,replaceTaxResponseTwoOneTaxRatesItemRateMin:()=>wi,replaceTaxResponseTwoOneTaxRatesItemRateMax:()=>Xi,replaceTaxResponseTwoOneNameMax:()=>Qi,replaceTaxResponseTwoOneIdMax:()=>Wi,replaceTaxResponseTwoOneEntityIdMax:()=>Yi,replaceTaxResponseOneTaxRatesItemRateMin:()=>Ri,replaceTaxResponseOneTaxRatesItemRateMax:()=>Li,replaceTaxResponseOneNameMax:()=>Bi,replaceTaxResponseOneIdMax:()=>ti,replaceTaxResponseOneEntityIdMax:()=>Hi,replaceTaxPathIdRegExp:()=>Ni,replaceTaxBodyTaxRatesItemRateMin:()=>ui,replaceTaxBodyTaxRatesItemRateMax:()=>Ji,replaceTaxBodyNameMax:()=>Gi,permanentDeleteTaxPathIdRegExp:()=>Ci,getTaxesResponseDataItemTwoOneTaxRatesItemRateMin:()=>ci,getTaxesResponseDataItemTwoOneTaxRatesItemRateMax:()=>ri,getTaxesResponseDataItemTwoOneNameMax:()=>oi,getTaxesResponseDataItemTwoOneIdMax:()=>ei,getTaxesResponseDataItemTwoOneEntityIdMax:()=>vi,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>dh,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>ah,getTaxesResponseDataItemOneNameMax:()=>ih,getTaxesResponseDataItemOneIdMax:()=>hh,getTaxesResponseDataItemOneEntityIdMax:()=>sh,getTaxesQueryLimitMax:()=>lh,getTaxesQueryLimitDefault:()=>fh,deleteTaxPathIdRegExp:()=>xi,createTaxBodyTaxRatesItemRateMin:()=>jh,createTaxBodyTaxRatesItemRateMax:()=>ph,createTaxBodyNameMax:()=>Ch,UpdateTaxResponse:()=>jEe,UpdateTaxParams:()=>mEe,UpdateTaxHeader:()=>ZEe,UpdateTaxBody:()=>CEe,RestoreTaxResponse:()=>eDe,RestoreTaxParams:()=>aEe,RestoreTaxHeader:()=>sEe,ReplaceTaxResponse:()=>hEe,ReplaceTaxParams:()=>pEe,ReplaceTaxHeader:()=>fEe,ReplaceTaxBody:()=>lEe,PermanentDeleteTaxParams:()=>oDe,PermanentDeleteTaxHeader:()=>cDe,GetTaxesResponse:()=>UEe,GetTaxesQueryParams:()=>zEe,GetTaxesHeader:()=>kEe,DeleteTaxParams:()=>iEe,DeleteTaxHeader:()=>dEe,CreateTaxHeader:()=>$Ee,CreateTaxBody:()=>MEe});var $Ee=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ch=100,jh=0,ph=100,MEe=r({name:e().max(Ch).optional(),tax_rates:P(r({rate:v().min(jh).max(ph),valid_from:e().date().nullish()})).min(1),is_default:A().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),fh=10,lh=100,zEe=r({limit:v().min(1).max(lh).default(fh).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:t([g(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]),P(g(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, is_default, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e().optional().describe(`Full-text search query to filter results across multiple fields.
216
- Searches are case-insensitive and match partial strings.
217
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),kEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),hh=36,ih=100,dh=0,ah=100,sh=36,ei=36,oi=100,ci=0,ri=100,vi=36,UEe=r({data:P(r({id:e().max(hh),name:e().max(ih),tax_rates:P(r({rate:v().min(dh).max(ah),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(sh),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(ei),name:e().max(oi),tax_rates:P(r({rate:v().min(ci).max(ri),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(vi),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"))),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ni=/^[a-z]{3,4}_[0-9a-f]{24}$/,mEe=r({id:e().regex(ni).describe("Unique resource identifier")}),ZEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ai=0,Ii=100,CEe=r({tax_rates:P(r({rate:v().min(Ai).max(Ii),valid_from:e().date().nullish()})).min(1),is_default:A().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),Si=36,gi=100,Pi=0,_i=100,Ei=36,Di=36,Oi=100,bi=0,Ti=100,qi=36,jEe=r({id:e().max(Si),name:e().max(gi),tax_rates:P(r({rate:v().min(Pi).max(_i),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Ei),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(Di),name:e().max(Oi),tax_rates:P(r({rate:v().min(bi).max(Ti),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(qi),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),Ni=/^[a-z]{3,4}_[0-9a-f]{24}$/,pEe=r({id:e().regex(Ni).describe("Unique resource identifier")}),fEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Gi=100,ui=0,Ji=100,lEe=r({name:e().max(Gi).optional(),tax_rates:P(r({rate:v().min(ui).max(Ji),valid_from:e().date().nullish()})).min(1),is_default:A().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),ti=36,Bi=100,Ri=0,Li=100,Hi=36,Wi=36,Qi=100,wi=0,Xi=100,Yi=36,hEe=r({id:e().max(ti),name:e().max(Bi),tax_rates:P(r({rate:v().min(Ri).max(Li),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Hi),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(Wi),name:e().max(Qi),tax_rates:P(r({rate:v().min(wi).max(Xi),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Yi),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),xi=/^[a-z]{3,4}_[0-9a-f]{24}$/,iEe=r({id:e().regex(xi).describe("Unique resource identifier")}),dEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ki=/^[a-z]{3,4}_[0-9a-f]{24}$/,aEe=r({id:e().regex(Ki).describe("Unique resource identifier")}),sEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yi=36,Vi=100,Fi=0,$i=100,Mi=36,zi=36,ki=100,Ui=0,mi=100,Zi=36,eDe=r({id:e().max(yi),name:e().max(Vi),tax_rates:P(r({rate:v().min(Fi).max($i),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Mi),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(zi),name:e().max(ki),tax_rates:P(r({rate:v().min(Ui).max(mi),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Zi),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),Ci=/^[a-z]{3,4}_[0-9a-f]{24}$/,oDe=r({id:e().regex(Ci).describe("Unique resource identifier")}),cDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var vc={};Q(vc,{UploadImageResponse:()=>nDe,UploadImageHeader:()=>rDe,UploadImageBody:()=>vDe});var rDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vDe=r({file:ce(File).describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),nDe=r({url:e().url().describe("Public URL of the uploaded image"),secureUrl:e().url().describe("Secure HTTPS URL of the uploaded image"),publicId:e().describe("Cloudinary public ID for future reference/deletion"),format:e().describe("Image format (jpg, png, webp, etc.)"),width:v().describe("Image width in pixels"),height:v().describe("Image height in pixels"),bytes:v().describe("File size in bytes"),entity_id:e().describe("Entity ID that the image belongs to")});var nc={};Q(nc,{updateUserFursSettingsResponseNameMax:()=>cd,updateUserFursSettingsResponseIdMax:()=>ed,updateUserFursSettingsResponseEmailMax:()=>od,updateUserFursSettingsResponseAccountIdMax:()=>rd,updateUserFinaSettingsResponseNameMax:()=>Ad,updateUserFinaSettingsResponseIdMax:()=>vd,updateUserFinaSettingsResponseEmailMax:()=>nd,updateUserFinaSettingsResponseAccountIdMax:()=>Id,patchMeResponseNameMax:()=>ai,patchMeResponseIdMax:()=>ii,patchMeResponseEmailMax:()=>di,patchMeResponseAccountIdMax:()=>si,patchMeBodyNameMin:()=>hi,getMeResponseNameMax:()=>fi,getMeResponseIdMax:()=>ji,getMeResponseEmailMax:()=>pi,getMeResponseAccountIdMax:()=>li,UpdateUserFursSettingsResponse:()=>_De,UpdateUserFursSettingsHeader:()=>gDe,UpdateUserFursSettingsBody:()=>PDe,UpdateUserFinaSettingsResponse:()=>ODe,UpdateUserFinaSettingsHeader:()=>EDe,UpdateUserFinaSettingsBody:()=>DDe,PatchMeResponse:()=>SDe,PatchMeBody:()=>IDe,GetMeResponse:()=>ADe});var ji=36,pi=255,fi=255,li=36,ADe=r({id:e().max(ji),email:e().max(pi),name:e().max(fi).nullish(),email_verified:A(),account_id:e().max(li).nullish(),settings:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}),hi=2,IDe=r({name:e().min(hi).nullish().describe("User display name"),locale:g(["en","de","sl"]).optional().describe("Preferred UI language")}),ii=36,di=255,ai=255,si=36,SDe=r({id:e().max(ii),email:e().max(di),name:e().max(ai).nullish(),email_verified:A(),account_id:e().max(si).nullish(),settings:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}),gDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),PDe=r({operator_tax_number:e().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),ed=36,od=255,cd=255,rd=36,_De=r({id:e().max(ed),email:e().max(od),name:e().max(cd).nullish(),email_verified:A(),account_id:e().max(rd).nullish(),settings:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})}),EDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),DDe=r({operator_oib:e().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),vd=36,nd=255,Ad=255,Id=36,ODe=r({id:e().max(vd),email:e().max(nd),name:e().max(Ad).nullish(),email_verified:A(),account_id:e().max(Id).nullish(),settings:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),metadata:t([e(),v(),A(),u(),D(e(),T()),P(T()),u()]),created_at:e().datetime({}),updated_at:e().datetime({})});var Ac={};Q(Ac,{checkViesResponseIssuerCountryCodeMin:()=>Dd,checkViesResponseIssuerCountryCodeMax:()=>Od,checkViesResponseCustomerCountryCodeMin:()=>bd,checkViesResponseCustomerCountryCodeMax:()=>Td,checkViesBodyIssuerIsTaxSubjectDefault:()=>Pd,checkViesBodyIssuerCountryCodeMin:()=>Sd,checkViesBodyIssuerCountryCodeMax:()=>gd,checkViesBodyCustomerCountryCodeMin:()=>_d,checkViesBodyCustomerCountryCodeMax:()=>Ed,CheckViesResponse:()=>TDe,CheckViesBody:()=>bDe});var Sd=2,gd=2,Pd=!0,_d=2,Ed=2,bDe=r({issuer:r({country:e().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e().min(Sd).max(gd).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:A().default(Pd).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).describe("Issuer (seller) information"),customer:r({country:e().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e().min(_d).max(Ed).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e().optional().describe("Customer tax number (with or without country prefix)")}).describe("Customer (buyer) information")}),Dd=2,Od=2,bd=2,Td=2,TDe=r({transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullable().describe("Determined transaction type based on geography and tax status"),reverse_charge_applies:A().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e().min(Dd).max(Od).nullable().describe("Resolved issuer country code"),customer_country_code:e().min(bd).max(Td).nullable().describe("Resolved customer country code"),vies_valid:A().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:A().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var Ic={};Q(Ic,{updateWebhookResponseUrlMax:()=>Md,updateWebhookResponseMetadataDefault:()=>kd,updateWebhookResponseIdMax:()=>Fd,updateWebhookResponseEntityIdMax:()=>$d,updateWebhookResponseDescriptionMax:()=>zd,updateWebhookPathIdRegExp:()=>Kd,updateWebhookBodyUrlMax:()=>yd,updateWebhookBodyDescriptionMax:()=>Vd,testWebhookResponseWebhookIdMax:()=>Cd,testWebhookResponseResponseStatusMin:()=>fd,testWebhookResponseResponseStatusMax:()=>ld,testWebhookResponseResponseBodyMax:()=>hd,testWebhookResponseMaxAttemptsMin:()=>sd,testWebhookResponseMaxAttemptsMax:()=>ea,testWebhookResponseIdMax:()=>Zd,testWebhookResponseEventTypeMax:()=>pd,testWebhookResponseErrorMessageMax:()=>id,testWebhookResponseEntityIdMax:()=>jd,testWebhookResponseDurationMsMin:()=>oa,testWebhookResponseDurationMsMax:()=>ca,testWebhookResponseAttemptMin:()=>dd,testWebhookResponseAttemptMax:()=>ad,testWebhookPathIdRegExp:()=>md,rotateWebhookSecretResponseUrlMax:()=>Ba,rotateWebhookSecretResponseSecretMax:()=>La,rotateWebhookSecretResponseMetadataDefault:()=>Ha,rotateWebhookSecretResponseIdMax:()=>Ja,rotateWebhookSecretResponseEntityIdMax:()=>ta,rotateWebhookSecretResponseDescriptionMax:()=>Ra,rotateWebhookSecretPathIdRegExp:()=>ua,getWebhooksResponseDataItemUrlMax:()=>Rd,getWebhooksResponseDataItemMetadataDefault:()=>Hd,getWebhooksResponseDataItemIdMax:()=>td,getWebhooksResponseDataItemEntityIdMax:()=>Bd,getWebhooksResponseDataItemDescriptionMax:()=>Ld,getWebhooksQueryLimitMax:()=>Jd,getWebhooksQueryLimitDefault:()=>ud,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Ia,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>Pa,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>_a,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>Ea,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>Ta,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>qa,getWebhookDeliveriesResponseDataItemIdMax:()=>Aa,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>ga,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>Da,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>Sa,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>Na,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>Ga,getWebhookDeliveriesResponseDataItemAttemptMin:()=>Oa,getWebhookDeliveriesResponseDataItemAttemptMax:()=>ba,getWebhookDeliveriesQueryLimitMax:()=>na,getWebhookDeliveriesQueryLimitDefault:()=>va,getWebhookDeliveriesPathIdRegExp:()=>ra,getWebhookByIdResponseUrlMax:()=>Xd,getWebhookByIdResponseMetadataDefault:()=>xd,getWebhookByIdResponseIdMax:()=>Qd,getWebhookByIdResponseEntityIdMax:()=>wd,getWebhookByIdResponseDescriptionMax:()=>Yd,getWebhookByIdPathIdRegExp:()=>Wd,deleteWebhookPathIdRegExp:()=>Ud,createWebhookBodyUrlMax:()=>qd,createWebhookBodyDescriptionMax:()=>Nd,createWebhookBodyActiveDefault:()=>Gd,UpdateWebhookResponse:()=>QDe,UpdateWebhookParams:()=>LDe,UpdateWebhookHeader:()=>HDe,UpdateWebhookBody:()=>WDe,TestWebhookResponse:()=>yDe,TestWebhookParams:()=>xDe,TestWebhookHeader:()=>KDe,RotateWebhookSecretResponse:()=>UDe,RotateWebhookSecretParams:()=>zDe,RotateWebhookSecretHeader:()=>kDe,GetWebhooksResponse:()=>JDe,GetWebhooksQueryParams:()=>GDe,GetWebhooksHeader:()=>uDe,GetWebhookDeliveriesResponse:()=>MDe,GetWebhookDeliveriesQueryParams:()=>FDe,GetWebhookDeliveriesParams:()=>VDe,GetWebhookDeliveriesHeader:()=>$De,GetWebhookByIdResponse:()=>RDe,GetWebhookByIdParams:()=>tDe,GetWebhookByIdHeader:()=>BDe,DeleteWebhookResponse:()=>YDe,DeleteWebhookParams:()=>wDe,DeleteWebhookHeader:()=>XDe,CreateWebhookHeader:()=>qDe,CreateWebhookBody:()=>NDe});var qDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),qd=2048,Nd=500,Gd=!0,NDe=r({url:e().url().max(qd).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e().max(Nd).optional().describe("Optional description for this webhook"),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])).min(1).describe("Events that trigger this webhook"),active:A().default(Gd).describe("Whether webhook is active"),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),ud=10,Jd=100,GDe=r({limit:v().min(1).max(Jd).default(ud).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),uDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),td=36,Bd=36,Rd=2048,Ld=500,Hd={},JDe=r({data:P(r({id:e().max(td),entity_id:e().max(Bd),url:e().max(Rd),description:e().max(Ld).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:D(e(),e()).default(Hd),created_at:e().datetime({}),updated_at:e().datetime({}),secret:e().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Wd=/^[a-z]{3,4}_[0-9a-f]{24}$/,tDe=r({id:e().regex(Wd).describe("Unique resource identifier")}),BDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Qd=36,wd=36,Xd=2048,Yd=500,xd={},RDe=r({id:e().max(Qd),entity_id:e().max(wd),url:e().max(Xd),description:e().max(Yd).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:D(e(),e()).default(xd),created_at:e().datetime({}),updated_at:e().datetime({}),secret:e().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Kd=/^[a-z]{3,4}_[0-9a-f]{24}$/,LDe=r({id:e().regex(Kd).describe("Unique resource identifier")}),HDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yd=2048,Vd=500,WDe=r({url:e().url().max(yd).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e().max(Vd).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])).min(1).optional(),active:A().optional(),metadata:D(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Fd=36,$d=36,Md=2048,zd=500,kd={},QDe=r({id:e().max(Fd),entity_id:e().max($d),url:e().max(Md),description:e().max(zd).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:D(e(),e()).default(kd),created_at:e().datetime({}),updated_at:e().datetime({}),secret:e().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Ud=/^[a-z]{3,4}_[0-9a-f]{24}$/,wDe=r({id:e().regex(Ud).describe("Unique resource identifier")}),XDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),YDe=r({success:A()}),md=/^[a-z]{3,4}_[0-9a-f]{24}$/,xDe=r({id:e().regex(md).describe("Unique resource identifier")}),KDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Zd=36,Cd=36,jd=36,pd=100,fd=-2147483648,ld=2147483647,hd=1e4,id=2000,dd=-2147483648,ad=2147483647,sd=-2147483648,ea=2147483647,oa=-2147483648,ca=2147483647,yDe=r({id:e().max(Zd),webhook_id:e().max(Cd),entity_id:e().max(jd),event_type:e().max(pd),status:g(["pending","success","failed"]),request_body:D(e(),T()),response_status:v().min(fd).max(ld).nullish(),response_body:e().max(hd).nullish(),error_message:e().max(id).nullish(),attempt:v().min(dd).max(ad),max_attempts:v().min(sd).max(ea),next_retry_at:e().datetime({}).nullish(),duration_ms:v().min(oa).max(ca).nullish(),created_at:e().datetime({}),completed_at:e().datetime({}).nullish()}).describe("Webhook delivery attempt record"),ra=/^[a-z]{3,4}_[0-9a-f]{24}$/,VDe=r({id:e().regex(ra).describe("Unique resource identifier")}),va=10,na=100,FDe=r({limit:v().min(1).max(na).default(va).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance.")}),$De=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Aa=36,Ia=36,Sa=36,ga=100,Pa=-2147483648,_a=2147483647,Ea=1e4,Da=2000,Oa=-2147483648,ba=2147483647,Ta=-2147483648,qa=2147483647,Na=-2147483648,Ga=2147483647,MDe=r({data:P(r({id:e().max(Aa),webhook_id:e().max(Ia),entity_id:e().max(Sa),event_type:e().max(ga),status:g(["pending","success","failed"]),request_body:D(e(),T()),response_status:v().min(Pa).max(_a).nullish(),response_body:e().max(Ea).nullish(),error_message:e().max(Da).nullish(),attempt:v().min(Oa).max(ba),max_attempts:v().min(Ta).max(qa),next_retry_at:e().datetime({}).nullish(),duration_ms:v().min(Na).max(Ga).nullish(),created_at:e().datetime({}),completed_at:e().datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ua=/^[a-z]{3,4}_[0-9a-f]{24}$/,zDe=r({id:e().regex(ua).describe("Unique resource identifier")}),kDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ja=36,ta=36,Ba=2048,Ra=500,La=64,Ha={},UDe=r({id:e().max(Ja),entity_id:e().max(ta),url:e().max(Ba),description:e().max(Ra).nullish(),secret:e().max(La),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.voided","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:D(e(),e()).default(Ha),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Webhook endpoint with full secret visible");var Sc={};Q(Sc,{GetWLSubscriptionPlansResponse:()=>ZDe,GetCurrentWLSubscriptionResponse:()=>mDe,CreateWLPortalResponse:()=>dDe,CreateWLPortalBody:()=>iDe,CreateWLCheckoutResponse:()=>hDe,CreateWLCheckoutBody:()=>lDe,CheckWLLimitResponse:()=>fDe,CheckWLLimitParams:()=>pDe,CheckWLFeatureResponse:()=>jDe,CheckWLFeatureParams:()=>CDe});var mDe=r({plan:r({id:e().describe("Unique plan ID"),slug:e().describe("Plan slug"),name:e().describe("Display name"),billing_interval:e().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:v().nullable().describe("Price in cents. Null for free plans."),limits:r({documents_per_month:v().nullable().describe("Maximum documents per month. Null means unlimited.")}).nullable(),features:P(e()).describe("List of features included. Empty array means all features."),is_free:A().describe("Whether this is a free plan"),display_order:v().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e().describe("Subscription status"),billing_interval:e().nullable().describe("Current billing interval"),current_period_start:e().describe("Current period start date (ISO 8601)"),current_period_end:e().describe("Current period end date (ISO 8601)"),usage:r({documents_count:v().describe("Documents created this period"),documents_limit:v().nullable().describe("Documents limit for current plan. Null means unlimited."),period_start:e().describe("Current period start date (ISO 8601)"),period_end:e().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),ZDe=r({plans:P(r({id:e().describe("Unique plan ID"),slug:e().describe("Plan slug"),name:e().describe("Display name"),billing_interval:e().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:v().nullable().describe("Price in cents. Null for free plans."),limits:r({documents_per_month:v().nullable().describe("Maximum documents per month. Null means unlimited.")}).nullable(),features:P(e()).describe("List of features included. Empty array means all features."),is_free:A().describe("Whether this is a free plan"),display_order:v().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e().nullable().describe("Current plan slug (null if no subscription)")}).describe("Available subscription plans for the current white-label"),CDe=r({feature:e().describe("Feature slug to check")}),jDe=r({feature:e().describe("Feature being checked"),allowed:A().describe("Whether the feature is allowed on the current plan"),requires_upgrade:A().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),pDe=r({resource:e().describe("Resource type to check (e.g., 'documents')")}),fDe=r({resource:e().describe("Resource being checked"),allowed:A().describe("Whether creating more of this resource is allowed"),usage:v().describe("Current usage count"),limit:v().nullable().describe("Current limit. Null means unlimited."),percentage:v().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),lDe=r({plan_slug:e().describe("Plan slug to subscribe to"),billing_interval:g(["monthly","yearly"]).describe("Billing interval"),success_url:e().url().describe("URL to redirect to after successful checkout"),cancel_url:e().url().describe("URL to redirect to if checkout is cancelled")}).describe("Request to create a Stripe checkout session"),hDe=r({checkout_url:e().describe("URL to redirect user to Stripe Checkout")}).describe("Stripe checkout session URL"),iDe=r({return_url:e().url().describe("URL to redirect to after leaving the portal")}).describe("Request to create a Stripe customer portal session"),dDe=r({portal_url:e().describe("URL to redirect user to Stripe Customer Portal")}).describe("Stripe customer portal URL");var gc={};Q(gc,{GetCurrentWhiteLabelResponse:()=>aDe});var aDe=r({slug:e().describe("Unique identifier for the white-label"),name:e().describe("Display name of the white-label"),hidden_features:P(e()).describe('Features hidden from UI for this white-label (still available via API). Empty array means all features visible. Possible values: "developer_tools"'),theme:r({primary:e().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),hal_app_id:e().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration.")}).describe("White-label configuration for the current domain");var Pc=null,Ze=null;function Ce(o){Pc=o}function sDe(o){Ze=o}function eOe(){return Ze}function oOe(){if(!Pc)throw Error("SDK not initialized. Call new SpaceInvoices() first.");return Pc}function cOe(o){if(!o)return{};if(o instanceof Headers){let c={};return o.forEach((n,I)=>{c[I]=n}),c}if(Array.isArray(o)){let c={};for(let[n,I]of o)c[n]=I;return c}return o}async function O(o,c){let n=oOe(),I=await Promise.resolve(n.getAccessToken()),S=`${n.baseUrl}${o}`,E={...cOe(c.headers)};if(I)E.Authorization=`Bearer ${I}`;if(Ze)E["x-account-id"]=Ze;let q=await fetch(S,{...c,headers:E});if(q.status===401&&n.onUnauthorized)n.onUnauthorized(q);let N,J=q.headers.get("content-length"),B=q.headers.get("content-type");if(J==="0"||q.status===204)N=void 0;else if(B?.includes("application/pdf")||B?.includes("image/"))N=await q.blob();else if(B?.includes("text/html"))N=await q.text();else try{N=await q.json()}catch{N=void 0}return{data:N,status:q.status,headers:q.headers}}var rOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/activities?${n}`:"/activities"},Qa=async(o,c)=>{return O(rOe(o),{...c,method:"GET"})};function wa(o){if(!o?.entity_id&&!o?.signal)return;let c={};if(o.entity_id)c.headers={"x-entity-id":o.entity_id};if(o.signal)c.signal=o.signal;return c}function b(o){return async(...c)=>{let n=c[c.length-1],I=n&&typeof n==="object"&&(("entity_id"in n)||("signal"in n)||Object.keys(n).length===0),S,_;if(I)S=c.slice(0,-1),_=wa(n);else S=[...c];S.push(_);let E=await o(...S);if(E.status>=200&&E.status<300)return E.data;let q=Error(`API error: ${E.status}`);throw q.status=E.status,q.data=E.data,q}}function X(o){return async(c)=>{let{entity_id:n,signal:I,...S}=c||{},_=wa({entity_id:n,signal:I}),E=await o(S,_);if(E.status===200)return E.data;let q=Error(`API error: ${E.status}`);throw q.status=E.status,q.data=E.data,q}}var _c={list:X(Qa)};var vOe=(o)=>{return`/advance-invoices/shareable/${o}`},Xa=async(o,c)=>{return O(vOe(o),{...c,method:"GET"})},nOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/advance-invoices/shareable/${o}/html?${I}`:`/advance-invoices/shareable/${o}/html`},Ya=async(o,c,n)=>{return O(nOe(o,c),{...n,method:"GET"})},AOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/advance-invoices/shareable/${o}/pdf?${I}`:`/advance-invoices/shareable/${o}/pdf`},xa=async(o,c,n)=>{return O(AOe(o,c),{...n,method:"GET"})},IOe=()=>{return"/advance-invoices"},Ka=async(o,c)=>{return O(IOe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},SOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/advance-invoices?${n}`:"/advance-invoices"},ya=async(o,c)=>{return O(SOe(o),{...c,method:"GET"})};var gOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/advance-invoices/${o}?${I}`:`/advance-invoices/${o}`},Va=async(o,c,n)=>{return O(gOe(o,c),{...n,method:"GET"})},POe=(o)=>{return`/advance-invoices/${o}`},Fa=async(o,c,n)=>{return O(POe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var _Oe=(o,c)=>{return`/advance-invoices/${o}/versions/${c}`},$a=async(o,c,n)=>{return O(_Oe(o,c),{...n,method:"GET"})},EOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/advance-invoices/render?${n}`:"/advance-invoices/render"},Ma=async(o,c,n)=>{return O(EOe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},DOe=(o)=>{return`/advance-invoices/${o}/void`},za=async(o,c,n)=>{return O(DOe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var Ec={getShareableAdvanceInvoice:b(Xa),getShareableAdvanceInvoiceHtml:b(Ya),getShareableAdvanceInvoicePdf:b(xa),create:b(Ka),list:X(ya),get:b(Va),update:b(Fa),getVersion:b($a),renderAdvanceInvoicePreview:b(Ma),void:b(za)};var OOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/company-registry/search?${n}`:"/company-registry/search"},ka=async(o,c)=>{return O(OOe(o),{...c,method:"GET"})},bOe=()=>{return"/company-registry/countries"},Ua=async(o)=>{return O(bOe(),{...o,method:"GET"})};var Dc={searchCompanyRegistry:b(ka),list:b(Ua)};var TOe=(o)=>{return`/credit-notes/shareable/${o}`},ma=async(o,c)=>{return O(TOe(o),{...c,method:"GET"})},qOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/credit-notes/shareable/${o}/html?${I}`:`/credit-notes/shareable/${o}/html`},Za=async(o,c,n)=>{return O(qOe(o,c),{...n,method:"GET"})},NOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/credit-notes/shareable/${o}/pdf?${I}`:`/credit-notes/shareable/${o}/pdf`},Ca=async(o,c,n)=>{return O(NOe(o,c),{...n,method:"GET"})},GOe=(o)=>{return`/credit-notes/shareable/${o}/eslog`},ja=async(o,c)=>{return O(GOe(o),{...c,method:"GET"})},uOe=()=>{return"/credit-notes"},pa=async(o,c)=>{return O(uOe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},JOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/credit-notes?${n}`:"/credit-notes"},fa=async(o,c)=>{return O(JOe(o),{...c,method:"GET"})};var tOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/credit-notes/${o}?${I}`:`/credit-notes/${o}`},la=async(o,c,n)=>{return O(tOe(o,c),{...n,method:"GET"})},BOe=(o)=>{return`/credit-notes/${o}`},ha=async(o,c,n)=>{return O(BOe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var ROe=(o,c)=>{return`/credit-notes/${o}/versions/${c}`},ia=async(o,c,n)=>{return O(ROe(o,c),{...n,method:"GET"})},LOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/credit-notes/render?${n}`:"/credit-notes/render"},da=async(o,c,n)=>{return O(LOe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},HOe=(o)=>{return`/credit-notes/${o}/void`},aa=async(o,c,n)=>{return O(HOe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var Oc={getShareableCreditNote:b(ma),getShareableCreditNoteHtml:b(Za),getShareableCreditNotePdf:b(Ca),getShareableCreditNoteEslog:b(ja),create:b(pa),list:X(fa),get:b(la),update:b(ha),getVersion:b(ia),renderCreditNotePreview:b(da),void:b(aa)};var WOe=()=>{return"/customers"},sa=async(o,c)=>{return O(WOe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},QOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/customers?${n}`:"/customers"},es=async(o,c)=>{return O(QOe(o),{...c,method:"GET"})},wOe=(o)=>{return`/customers/${o}`},os=async(o,c)=>{return O(wOe(o),{...c,method:"GET"})},XOe=(o)=>{return`/customers/${o}`},cs=async(o,c,n)=>{return O(XOe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},YOe=(o)=>{return`/customers/${o}`},rs=async(o,c)=>{return O(YOe(o),{...c,method:"DELETE"})},xOe=(o)=>{return`/customers/${o}/restore`},vs=async(o,c)=>{return O(xOe(o),{...c,method:"POST"})},KOe=(o)=>{return`/customers/${o}/permanent`},ns=async(o,c)=>{return O(KOe(o),{...c,method:"DELETE"})};var bc={create:b(sa),list:X(es),get:b(os),update:b(cs),delete:b(rs),restoreCustomer:b(vs),permanentDeleteCustomer:b(ns)};var yOe=(o)=>{return`/delivery-notes/shareable/${o}`},As=async(o,c)=>{return O(yOe(o),{...c,method:"GET"})},VOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/delivery-notes/shareable/${o}/html?${I}`:`/delivery-notes/shareable/${o}/html`},Is=async(o,c,n)=>{return O(VOe(o,c),{...n,method:"GET"})},FOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/delivery-notes/shareable/${o}/pdf?${I}`:`/delivery-notes/shareable/${o}/pdf`},Ss=async(o,c,n)=>{return O(FOe(o,c),{...n,method:"GET"})},$Oe=()=>{return"/delivery-notes"},gs=async(o,c)=>{return O($Oe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},MOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/delivery-notes?${n}`:"/delivery-notes"},Ps=async(o,c)=>{return O(MOe(o),{...c,method:"GET"})};var zOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/delivery-notes/${o}?${I}`:`/delivery-notes/${o}`},_s=async(o,c,n)=>{return O(zOe(o,c),{...n,method:"GET"})},kOe=(o)=>{return`/delivery-notes/${o}`},Es=async(o,c,n)=>{return O(kOe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var UOe=(o,c)=>{return`/delivery-notes/${o}/versions/${c}`},Ds=async(o,c,n)=>{return O(UOe(o,c),{...n,method:"GET"})},mOe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/delivery-notes/render?${n}`:"/delivery-notes/render"},Os=async(o,c,n)=>{return O(mOe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},ZOe=(o)=>{return`/delivery-notes/${o}/void`},bs=async(o,c,n)=>{return O(ZOe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var Tc={getShareableDeliveryNote:b(As),getShareableDeliveryNoteHtml:b(Is),getShareableDeliveryNotePdf:b(Ss),create:b(gs),list:X(Ps),get:b(_s),update:b(Es),getVersion:b(Ds),renderDeliveryNotePreview:b(Os),void:b(bs)};var COe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/documents/next-number?${n}`:"/documents/next-number"},Ts=async(o,c)=>{return O(COe(o),{...c,method:"GET"})},jOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/finalize?${I}`:`/documents/${o}/finalize`},qs=async(o,c,n)=>{return O(jOe(o,c),{...n,method:"POST"})},pOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/fiscalize?${I}`:`/documents/${o}/fiscalize`},Ns=async(o,c,n)=>{return O(pOe(o,c),{...n,method:"POST"})},fOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}?${I}`:`/documents/${o}`},Gs=async(o,c,n)=>{return O(fOe(o,c),{...n,method:"DELETE"})},lOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/restore?${I}`:`/documents/${o}/restore`},us=async(o,c,n)=>{return O(lOe(o,c),{...n,method:"POST"})},hOe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/permanent?${I}`:`/documents/${o}/permanent`},Js=async(o,c,n)=>{return O(hOe(o,c),{...n,method:"DELETE"})},iOe=(o)=>{return`/documents/${o}/send`},ts=async(o,c,n)=>{return O(iOe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},dOe=(o)=>{return`/documents/${o}/share`},Bs=async(o,c)=>{return O(dOe(o),{...c,method:"POST"})},aOe=(o)=>{return`/documents/${o}/share`},Rs=async(o,c)=>{return O(aOe(o),{...c,method:"GET"})},sOe=(o)=>{return`/documents/${o}/share`},Ls=async(o,c)=>{return O(sOe(o),{...c,method:"DELETE"})};var qc={getNextNumber:b(Ts),finalizeDocument:b(qs),fiscalizeDocument:b(Ns),delete:b(Gs),restoreDocument:b(us),permanentDeleteDocument:b(Js),sendDocument:b(ts),shareDocument:b(Bs),getShareableId:b(Rs),unshareDocument:b(Ls)};var ebe=()=>{return"/email/send"},Hs=async(o,c)=>{return O(ebe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Nc={sendEmail:b(Hs)};var obe=()=>{return"/entities"},Ws=async(o,c)=>{return O(obe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},cbe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/entities?${n}`:"/entities"},Qs=async(o,c)=>{return O(cbe(o),{...c,method:"GET"})},rbe=(o)=>{return`/entities/${o}`},ws=async(o,c,n)=>{return O(rbe(o),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},vbe=(o)=>{return`/entities/${o}/enable`},Xs=async(o,c)=>{return O(vbe(o),{...c,method:"POST"})},nbe=(o)=>{return`/entities/${o}/disable`},Ys=async(o,c)=>{return O(nbe(o),{...c,method:"POST"})};var Gc={create:b(Ws),list:X(Qs),update:b(ws),enableEntity:b(Xs),disableEntity:b(Ys)};var Abe=()=>{return"/entities/api-keys"},xs=async(o)=>{return O(Abe(),{...o,method:"GET"})},Ibe=()=>{return"/entities/api-keys"},Ks=async(o,c)=>{return O(Ibe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},Sbe=(o)=>{return`/entities/api-keys/${o}`},ys=async(o,c)=>{return O(Sbe(o),{...c,method:"DELETE"})};var uc={listEntityApiKeys:b(xs),create:b(Ks),delete:b(ys)};var gbe=()=>{return"/entities/invitations"},Vs=async(o)=>{return O(gbe(),{...o,method:"GET"})},Pbe=(o)=>{return`/entities/invitations/${o}`},Fs=async(o,c)=>{return O(Pbe(o),{...c,method:"GET"})},_be=(o)=>{return`/entities/invitations/${o}`},$s=async(o,c)=>{return O(_be(o),{...c,method:"DELETE"})},Ebe=(o)=>{return`/entities/invitations/${o}/resend`},Ms=async(o,c)=>{return O(Ebe(o),{...c,method:"POST"})},Dbe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/invitations/accept?${n}`:"/invitations/accept"},zs=async(o,c,n)=>{return O(Dbe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})};var Jc={listEntityInvitations:b(Vs),getEntityInvitation:b(Fs),cancelEntityInvitation:b($s),resendEntityInvitation:b(Ms),acceptEntityInvitation:b(zs)};var Obe=()=>{return"/stats/query"},ks=async(o,c)=>{return O(Obe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var tc={queryEntityStats:b(ks)};var bbe=()=>{return"/entities/users"},Us=async(o)=>{return O(bbe(),{...o,method:"GET"})},Tbe=()=>{return"/entities/users"},ms=async(o,c)=>{return O(Tbe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},qbe=(o)=>{return`/entities/users/${o}`},Zs=async(o,c,n)=>{return O(qbe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},Nbe=(o)=>{return`/entities/users/${o}`},Cs=async(o,c)=>{return O(Nbe(o),{...c,method:"DELETE"})},Gbe=(o)=>{return`/entities/users/${o}/token`},js=async(o,c)=>{return O(Gbe(o),{...c,method:"POST"})};var Bc={list:b(Us),addEntityUser:b(ms),update:b(Zs),removeEntityUser:b(Cs),generateEntityUserToken:b(js)};var ube=(o)=>{return`/estimates/shareable/${o}`},ps=async(o,c)=>{return O(ube(o),{...c,method:"GET"})},Jbe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/estimates/shareable/${o}/html?${I}`:`/estimates/shareable/${o}/html`},fs=async(o,c,n)=>{return O(Jbe(o,c),{...n,method:"GET"})},tbe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/estimates/shareable/${o}/pdf?${I}`:`/estimates/shareable/${o}/pdf`},ls=async(o,c,n)=>{return O(tbe(o,c),{...n,method:"GET"})},Bbe=()=>{return"/estimates"},hs=async(o,c)=>{return O(Bbe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},Rbe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/estimates?${n}`:"/estimates"},is=async(o,c)=>{return O(Rbe(o),{...c,method:"GET"})};var Lbe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/estimates/${o}?${I}`:`/estimates/${o}`},ds=async(o,c,n)=>{return O(Lbe(o,c),{...n,method:"GET"})},Hbe=(o)=>{return`/estimates/${o}`},as=async(o,c,n)=>{return O(Hbe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var Wbe=(o,c)=>{return`/estimates/${o}/versions/${c}`},ss=async(o,c,n)=>{return O(Wbe(o,c),{...n,method:"GET"})},Qbe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/estimates/render?${n}`:"/estimates/render"},eee=async(o,c,n)=>{return O(Qbe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})};var Rc={getShareableEstimate:b(ps),getShareableEstimateHtml:b(fs),getShareableEstimatePdf:b(ls),create:b(hs),list:X(is),get:b(ds),update:b(as),getVersion:b(ss),renderEstimatePreview:b(eee)};var wbe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/documents/export?${n}`:"/documents/export"},oee=async(o,c)=>{return O(wbe(o),{...c,method:"GET"})},Xbe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/documents/export/sales-per-item?${n}`:"/documents/export/sales-per-item"},cee=async(o,c)=>{return O(Xbe(o),{...c,method:"GET"})},Ybe=()=>{return"/documents/export/pdf"},ree=async(o,c)=>{return O(Ybe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},xbe=(o)=>{return`/documents/export/pdf/${o}`},vee=async(o,c)=>{return O(xbe(o),{...c,method:"GET"})};var Lc={exportDocuments:b(oee),exportSalesPerItem:b(cee),startPdfExport:b(ree),list:X(vee)};var Kbe=()=>{return"/files"},nee=async(o,c)=>{let n=new FormData;if(o.file!==void 0)n.append("file",o.file);if(n.append("category",o.category),o.account_payable_id!==void 0)n.append("account_payable_id",o.account_payable_id);return O(Kbe(),{...c,method:"POST",body:n})},ybe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/files?${n}`:"/files"},Aee=async(o,c)=>{return O(ybe(o),{...c,method:"GET"})},Vbe=(o)=>{return`/files/${o}`},Iee=async(o,c)=>{return O(Vbe(o),{...c,method:"GET"})},Fbe=(o)=>{return`/files/${o}`},See=async(o,c)=>{return O(Fbe(o),{...c,method:"DELETE"})};var Hc={uploadFile:b(nee),list:X(Aee),get:b(Iee),delete:b(See)};var $be=()=>{return"/fiscalization/fina/settings/certificate"},gee=async(o,c)=>{let n=new FormData;if(o.file!==void 0)n.append("file",o.file);if(o.passphrase!==void 0)n.append("passphrase",o.passphrase);return O($be(),{...c,method:"POST",body:n})},Mbe=()=>{return"/fiscalization/fina/settings/certificate"},Pee=async(o)=>{return O(Mbe(),{...o,method:"GET"})},zbe=()=>{return"/fiscalization/fina/settings/certificate"},_ee=async(o)=>{return O(zbe(),{...o,method:"DELETE"})};var Wc={uploadFinaCertificate:b(gee),getFinaCertificate:b(Pee),delete:b(_ee)};var kbe=(o)=>{return`/fiscalization/fina/premises/${o}/devices`},Eee=async(o,c)=>{return O(kbe(o),{...c,method:"GET"})},Ube=(o)=>{return`/fiscalization/fina/premises/${o}/devices`},Dee=async(o,c,n)=>{return O(Ube(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},mbe=(o)=>{return`/fiscalization/fina/devices/${o}`},Oee=async(o,c)=>{return O(mbe(o),{...c,method:"GET"})},Zbe=(o)=>{return`/fiscalization/fina/devices/${o}`},bee=async(o,c)=>{return O(Zbe(o),{...c,method:"DELETE"})};var Qc={listFinaDevices:b(Eee),registerFinaDevice:b(Dee),getFinaDevice:b(Oee),delete:b(bee)};var Cbe=()=>{return"/fiscalization/fina/premises"},Tee=async(o)=>{return O(Cbe(),{...o,method:"GET"})},jbe=()=>{return"/fiscalization/fina/premises"},qee=async(o,c)=>{return O(jbe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},pbe=(o)=>{return`/fiscalization/fina/premises/${o}`},Nee=async(o,c)=>{return O(pbe(o),{...c,method:"GET"})},fbe=(o)=>{return`/fiscalization/fina/premises/${o}`},Gee=async(o,c)=>{return O(fbe(o),{...c,method:"DELETE"})};var wc={listFinaPremises:b(Tee),create:b(qee),getFinaPremise:b(Nee),delete:b(Gee)};var lbe=()=>{return"/fiscalization/fina/settings"},uee=async(o)=>{return O(lbe(),{...o,method:"GET"})},hbe=()=>{return"/fiscalization/fina/settings"},Jee=async(o,c)=>{return O(hbe(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Xc={list:b(uee),update:b(Jee)};var ibe=()=>{return"/fiscalization/furs/settings/certificate"},tee=async(o,c)=>{let n=new FormData;if(o.file!==void 0)n.append("file",o.file);if(o.passphrase!==void 0)n.append("passphrase",o.passphrase);return O(ibe(),{...c,method:"POST",body:n})},dbe=()=>{return"/fiscalization/furs/settings/certificate"},Bee=async(o)=>{return O(dbe(),{...o,method:"GET"})},abe=()=>{return"/fiscalization/furs/settings/certificate"},Ree=async(o)=>{return O(abe(),{...o,method:"DELETE"})};var Yc={uploadFursCertificate:b(tee),getFursCertificate:b(Bee),delete:b(Ree)};var sbe=(o)=>{return`/fiscalization/furs/premises/${o}/devices`},Lee=async(o,c)=>{return O(sbe(o),{...c,method:"GET"})},e2e=(o)=>{return`/fiscalization/furs/premises/${o}/devices`},Hee=async(o,c,n)=>{return O(e2e(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},o2e=(o)=>{return`/fiscalization/furs/devices/${o}`},Wee=async(o,c)=>{return O(o2e(o),{...c,method:"GET"})};var xc={listFursElectronicDevices:b(Lee),registerFursElectronicDevice:b(Hee),getFursElectronicDevice:b(Wee)};var c2e=()=>{return"/fiscalization/furs/premises"},Qee=async(o)=>{return O(c2e(),{...o,method:"GET"})},r2e=(o)=>{return`/fiscalization/furs/premises/${o}`},wee=async(o,c)=>{return O(r2e(o),{...c,method:"GET"})},v2e=()=>{return"/fiscalization/furs/premises/real-estate"},Xee=async(o,c)=>{return O(v2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},n2e=()=>{return"/fiscalization/furs/premises/movable"},Yee=async(o,c)=>{return O(n2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},A2e=(o)=>{return`/fiscalization/furs/premises/${o}/close`},xee=async(o,c)=>{return O(A2e(o),{...c,method:"POST"})};var Kc={listFursBusinessPremises:b(Qee),getFursBusinessPremise:b(wee),registerFursRealEstatePremise:b(Xee),registerFursMovablePremise:b(Yee),closeFursBusinessPremise:b(xee)};var I2e=()=>{return"/fiscalization/furs/settings"},Kee=async(o)=>{return O(I2e(),{...o,method:"GET"})},S2e=()=>{return"/fiscalization/furs/settings"},yee=async(o,c)=>{return O(S2e(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var yc={list:b(Kee),update:b(yee)};var g2e=()=>{return"/health"},Vee=async(o)=>{return O(g2e(),{...o,method:"GET"})};var Vc={healthCheck:b(Vee)};var P2e=(o)=>{return`/invoices/shareable/${o}`},Fee=async(o,c)=>{return O(P2e(o),{...c,method:"GET"})},_2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/invoices/shareable/${o}/html?${I}`:`/invoices/shareable/${o}/html`},$ee=async(o,c,n)=>{return O(_2e(o,c),{...n,method:"GET"})},E2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/invoices/shareable/${o}/pdf?${I}`:`/invoices/shareable/${o}/pdf`},Mee=async(o,c,n)=>{return O(E2e(o,c),{...n,method:"GET"})},D2e=(o)=>{return`/invoices/shareable/${o}/eslog`},zee=async(o,c)=>{return O(D2e(o),{...c,method:"GET"})},O2e=()=>{return"/invoices"},kee=async(o,c)=>{return O(O2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},b2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/invoices?${n}`:"/invoices"},Uee=async(o,c)=>{return O(b2e(o),{...c,method:"GET"})};var T2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/invoices/${o}?${I}`:`/invoices/${o}`},mee=async(o,c,n)=>{return O(T2e(o,c),{...n,method:"GET"})},q2e=(o)=>{return`/invoices/${o}`},Zee=async(o,c,n)=>{return O(q2e(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var N2e=(o,c)=>{return`/invoices/${o}/versions/${c}`},Cee=async(o,c,n)=>{return O(N2e(o,c),{...n,method:"GET"})},G2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/invoices/render?${n}`:"/invoices/render"},jee=async(o,c,n)=>{return O(G2e(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},u2e=(o)=>{return`/invoices/${o}/void`},pee=async(o,c,n)=>{return O(u2e(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},J2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/html?${I}`:`/documents/${o}/html`},fee=async(o,c,n)=>{return O(J2e(o,c),{...n,method:"GET"})},t2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/pdf?${I}`:`/documents/${o}/pdf`},lee=async(o,c,n)=>{return O(t2e(o,c),{...n,method:"GET"})};var Fc={getShareableInvoice:b(Fee),getShareableInvoiceHtml:b($ee),getShareableInvoicePdf:b(Mee),getShareableInvoiceEslog:b(zee),create:b(kee),list:X(Uee),get:b(mee),update:b(Zee),getVersion:b(Cee),renderInvoicePreview:b(jee),void:b(pee),renderHtml:b(fee),renderPdf:b(lee)};var B2e=()=>{return"/items"},hee=async(o,c)=>{return O(B2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},R2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/items?${n}`:"/items"},iee=async(o,c)=>{return O(R2e(o),{...c,method:"GET"})},L2e=(o)=>{return`/items/${o}`},dee=async(o,c)=>{return O(L2e(o),{...c,method:"DELETE"})},H2e=(o)=>{return`/items/${o}/restore`},aee=async(o,c)=>{return O(H2e(o),{...c,method:"POST"})},W2e=(o)=>{return`/items/${o}/permanent`},see=async(o,c)=>{return O(W2e(o),{...c,method:"DELETE"})};var $c={create:b(hee),list:X(iee),delete:b(dee),restoreItem:b(aee),permanentDeleteItem:b(see)};var Q2e=()=>{return"/locale/detect"},eoe=async(o)=>{return O(Q2e(),{...o,method:"GET"})};var Mc={detectLocale:b(eoe)};var w2e=()=>{return"/order-integrations/shopify/authorize"},ooe=async(o,c)=>{return O(w2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},X2e=()=>{return"/order-integrations"},coe=async(o,c)=>{return O(X2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},Y2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/order-integrations?${n}`:"/order-integrations"},roe=async(o,c)=>{return O(Y2e(o),{...c,method:"GET"})},x2e=(o)=>{return`/order-integrations/${o}`},voe=async(o,c)=>{return O(x2e(o),{...c,method:"GET"})},K2e=(o)=>{return`/order-integrations/${o}`},noe=async(o,c,n)=>{return O(K2e(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},y2e=(o)=>{return`/order-integrations/${o}`},Aoe=async(o,c)=>{return O(y2e(o),{...c,method:"DELETE"})};var zc={authorizeShopify:b(ooe),create:b(coe),list:X(roe),get:b(voe),update:b(noe),delete:b(Aoe)};var V2e=()=>{return"/orders"},Ioe=async(o,c)=>{return O(V2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},F2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/orders?${n}`:"/orders"},Soe=async(o,c)=>{return O(F2e(o),{...c,method:"GET"})},$2e=(o)=>{return`/orders/${o}`},goe=async(o,c)=>{return O($2e(o),{...c,method:"GET"})},M2e=(o)=>{return`/orders/${o}`},Poe=async(o,c,n)=>{return O(M2e(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},z2e=(o)=>{return`/orders/${o}`},_oe=async(o,c)=>{return O(z2e(o),{...c,method:"DELETE"})},k2e=(o)=>{return`/orders/${o}/process`},Eoe=async(o,c)=>{return O(k2e(o),{...c,method:"POST"})},U2e=(o)=>{return`/orders/${o}/cancel`},Doe=async(o,c)=>{return O(U2e(o),{...c,method:"POST"})},m2e=(o)=>{return`/orders/${o}/reissue`},Ooe=async(o,c)=>{return O(m2e(o),{...c,method:"POST"})};var kc={create:b(Ioe),list:X(Soe),get:b(goe),update:b(Poe),delete:b(_oe),processOrder:b(Eoe),cancelOrder:b(Doe),reissueOrder:b(Ooe)};var Z2e=()=>{return"/payments"},boe=async(o,c)=>{return O(Z2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},C2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/payments?${n}`:"/payments"},Toe=async(o,c)=>{return O(C2e(o),{...c,method:"GET"})},j2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/payments/${o}?${I}`:`/payments/${o}`},qoe=async(o,c,n)=>{return O(j2e(o,c),{...n,method:"GET"})},p2e=(o)=>{return`/payments/${o}`},Noe=async(o,c,n)=>{return O(p2e(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},f2e=(o)=>{return`/payments/${o}`},Goe=async(o,c)=>{return O(f2e(o),{...c,method:"DELETE"})},l2e=(o)=>{return`/payments/${o}/restore`},uoe=async(o,c)=>{return O(l2e(o),{...c,method:"POST"})},h2e=(o)=>{return`/payments/${o}/permanent`},Joe=async(o,c)=>{return O(h2e(o),{...c,method:"DELETE"})};var Uc={create:b(boe),list:X(Toe),get:b(qoe),update:b(Noe),delete:b(Goe),restorePayment:b(uoe),permanentDeletePayment:b(Joe)};var i2e=()=>{return"/recurring-invoices"},toe=async(o,c)=>{return O(i2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},d2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/recurring-invoices?${n}`:"/recurring-invoices"},Boe=async(o,c)=>{return O(d2e(o),{...c,method:"GET"})},a2e=(o)=>{return`/recurring-invoices/${o}`},Roe=async(o,c)=>{return O(a2e(o),{...c,method:"GET"})},s2e=(o)=>{return`/recurring-invoices/${o}`},Loe=async(o,c,n)=>{return O(s2e(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},eTe=(o)=>{return`/recurring-invoices/${o}`},Hoe=async(o,c)=>{return O(eTe(o),{...c,method:"DELETE"})},oTe=(o)=>{return`/recurring-invoices/${o}/restore`},Woe=async(o,c)=>{return O(oTe(o),{...c,method:"POST"})},cTe=(o)=>{return`/recurring-invoices/${o}/permanent`},Qoe=async(o,c)=>{return O(cTe(o),{...c,method:"DELETE"})},rTe=(o)=>{return`/recurring-invoices/${o}/pause`},woe=async(o,c)=>{return O(rTe(o),{...c,method:"POST"})},vTe=(o)=>{return`/recurring-invoices/${o}/resume`},Xoe=async(o,c)=>{return O(vTe(o),{...c,method:"POST"})},nTe=(o)=>{return`/recurring-invoices/${o}/trigger`},Yoe=async(o,c)=>{return O(nTe(o),{...c,method:"POST"})};var mc={create:b(toe),list:X(Boe),get:b(Roe),update:b(Loe),delete:b(Hoe),restoreRecurringInvoice:b(Woe),permanentDeleteRecurringInvoice:b(Qoe),pauseRecurringInvoice:b(woe),resumeRecurringInvoice:b(Xoe),triggerRecurringInvoice:b(Yoe)};var ATe=()=>{return"/stripe-app/authorize"},xoe=async(o)=>{return O(ATe(),{...o,method:"GET"})},ITe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/stripe-app/oauth/callback?${n}`:"/stripe-app/oauth/callback"},Koe=async(o,c)=>{return O(ITe(o),{...c,method:"GET"})},STe=()=>{return"/stripe-app/webhooks"},yoe=async(o)=>{return O(STe(),{...o,method:"POST"})},gTe=()=>{return"/stripe-app/marketplace-authorize"},Voe=async(o,c)=>{return O(gTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},PTe=()=>{return"/stripe-app/connect"},Foe=async(o,c)=>{return O(PTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},_Te=()=>{return"/stripe-app/connection"},$oe=async(o)=>{return O(_Te(),{...o,method:"GET"})},ETe=()=>{return"/stripe-app/connection"},Moe=async(o)=>{return O(ETe(),{...o,method:"DELETE"})},DTe=()=>{return"/stripe-app/settings"},zoe=async(o)=>{return O(DTe(),{...o,method:"GET"})},OTe=()=>{return"/stripe-app/settings"},koe=async(o,c)=>{return O(OTe(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},bTe=()=>{return"/stripe-app/invoices"},Uoe=async(o,c)=>{return O(bTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},TTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/stripe-app/invoices?${n}`:"/stripe-app/invoices"},moe=async(o,c)=>{return O(TTe(o),{...c,method:"GET"})},qTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/stripe-app/invoices/lookup?${n}`:"/stripe-app/invoices/lookup"},Zoe=async(o,c)=>{return O(qTe(o),{...c,method:"GET"})},NTe=(o)=>{return`/stripe-app/invoices/${o}`},Coe=async(o,c)=>{return O(NTe(o),{...c,method:"GET"})},GTe=()=>{return"/stripe-app/entity-connection"},joe=async(o)=>{return O(GTe(),{...o,method:"GET"})},uTe=()=>{return"/stripe-app/entity-connection"},poe=async(o)=>{return O(uTe(),{...o,method:"DELETE"})},JTe=()=>{return"/stripe-app/entity-settings"},foe=async(o)=>{return O(JTe(),{...o,method:"GET"})},tTe=()=>{return"/stripe-app/entity-settings"},loe=async(o,c)=>{return O(tTe(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Zc={stripeAppAuthorize:b(xoe),stripeAppOAuthCallback:b(Koe),stripeAppWebhook:b(yoe),stripeAppMarketplaceAuthorize:b(Voe),stripeAppConnect:b(Foe),stripeAppGetConnection:b($oe),stripeAppDisconnect:b(Moe),stripeAppGetSettings:b(zoe),stripeAppUpdateSettings:b(koe),stripeAppCreateInvoice:b(Uoe),stripeAppListInvoices:b(moe),stripeAppLookupInvoice:b(Zoe),stripeAppGetInvoice:b(Coe),stripeAppEntityGetConnection:b(joe),stripeAppEntityDisconnect:b(poe),stripeAppEntityGetSettings:b(foe),stripeAppEntityUpdateSettings:b(loe)};var BTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/tax-reports/kir?${n}`:"/tax-reports/kir"},hoe=async(o,c)=>{return O(BTe(o),{...c,method:"POST"})};var Cc={generateKirExport:b(hoe)};var RTe=()=>{return"/taxes"},ioe=async(o,c)=>{return O(RTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},LTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/taxes?${n}`:"/taxes"},doe=async(o,c)=>{return O(LTe(o),{...c,method:"GET"})},HTe=(o)=>{return`/taxes/${o}`},aoe=async(o,c,n)=>{return O(HTe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},WTe=(o)=>{return`/taxes/${o}`},soe=async(o,c,n)=>{return O(WTe(o),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},QTe=(o)=>{return`/taxes/${o}`},ece=async(o,c)=>{return O(QTe(o),{...c,method:"DELETE"})},wTe=(o)=>{return`/taxes/${o}/restore`},oce=async(o,c)=>{return O(wTe(o),{...c,method:"POST"})},XTe=(o)=>{return`/taxes/${o}/permanent`},cce=async(o,c)=>{return O(XTe(o),{...c,method:"DELETE"})};var jc={create:b(ioe),list:X(doe),update:b(aoe),replaceTax:b(soe),delete:b(ece),restoreTax:b(oce),permanentDeleteTax:b(cce)};var te="https://eu.spaceinvoices.com";var YTe=()=>{return"/upload/image"},rce=async(o,c)=>{let n=new FormData;return n.append("file",o.file),O(YTe(),{...c,method:"POST",body:n})};var pc={uploadImage:b(rce)};var xTe=()=>{return"/users/me"},vce=async(o)=>{return O(xTe(),{...o,method:"GET"})},KTe=()=>{return"/users/me"},nce=async(o,c)=>{return O(KTe(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},yTe=()=>{return"/users/me/settings/furs"},Ace=async(o,c)=>{return O(yTe(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},VTe=()=>{return"/users/me/settings/fina"},Ice=async(o,c)=>{return O(VTe(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var fc={getMe:b(vce),update:b(nce),updateFursSettings:b(Ace),updateFinaSettings:b(Ice)};var FTe=()=>{return"/vies/check"},Sce=async(o,c)=>{return O(FTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var lc={checkVies:b(Sce)};var $Te=()=>{return"/webhooks"},gce=async(o,c)=>{return O($Te(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},MTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/webhooks?${n}`:"/webhooks"},Pce=async(o,c)=>{return O(MTe(o),{...c,method:"GET"})},zTe=(o)=>{return`/webhooks/${o}`},_ce=async(o,c)=>{return O(zTe(o),{...c,method:"GET"})},kTe=(o)=>{return`/webhooks/${o}`},Ece=async(o,c,n)=>{return O(kTe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},UTe=(o)=>{return`/webhooks/${o}`},Dce=async(o,c)=>{return O(UTe(o),{...c,method:"DELETE"})},mTe=(o)=>{return`/webhooks/${o}/test`},Oce=async(o,c)=>{return O(mTe(o),{...c,method:"POST"})};var ZTe=(o)=>{return`/webhooks/${o}/rotate-secret`},bce=async(o,c)=>{return O(ZTe(o),{...c,method:"POST"})};var hc={create:b(gce),list:X(Pce),get:b(_ce),update:b(Ece),delete:b(Dce),testWebhook:b(Oce),rotateWebhookSecret:b(bce)};var CTe=()=>{return"/white-label-subscriptions"},Tce=async(o)=>{return O(CTe(),{...o,method:"GET"})},jTe=()=>{return"/white-label-subscriptions/plans"},qce=async(o)=>{return O(jTe(),{...o,method:"GET"})},pTe=(o)=>{return`/white-label-subscriptions/check-feature/${o}`},Nce=async(o,c)=>{return O(pTe(o),{...c,method:"GET"})},fTe=(o)=>{return`/white-label-subscriptions/check-limit/${o}`},Gce=async(o,c)=>{return O(fTe(o),{...c,method:"GET"})},lTe=()=>{return"/white-label-subscriptions/checkout"},uce=async(o,c)=>{return O(lTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var ic={getCurrentWLSubscription:b(Tce),list:b(qce),checkWLFeature:b(Nce),checkWLLimit:b(Gce),create:b(uce)};var hTe=()=>{return"/white-labels/current"},Jce=async(o)=>{return O(hTe(),{...o,method:"GET"})};var dc={getCurrentWhiteLabel:b(Jce)};class Be{advanceInvoices=Ec;customers=bc;taxReports=Cc;payments=Uc;locale=Mc;invoices=Fc;vies=lc;estimates=Rc;fursSettings=yc;health=Vc;orderIntegrations=zc;fursDevices=xc;stripeApp=Zc;fursCertificate=Yc;fursPremises=Kc;finaCertificate=Wc;whiteLabels=dc;recurringInvoices=mc;exports=Lc;companyRegistry=Dc;entityStats=tc;taxes=jc;users=fc;files=Hc;activities=_c;entityUsers=Bc;documents=qc;finaDevices=Qc;deliveryNotes=Tc;orders=kc;entityApiKeys=uc;whiteLabelSubscriptions=ic;items=$c;finaPremises=wc;webhooks=hc;finaSettings=Xc;creditNotes=Oc;entityInvitations=Jc;email=Nc;entities=Gc;upload=pc;constructor(o){let c=typeof o==="string"?{accessToken:o}:o,n=typeof c.accessToken==="function"?c.accessToken:()=>c.accessToken;Ce({baseUrl:c.basePath??te,getAccessToken:n,onUnauthorized:c.onUnauthorized})}}function iTe(o){let c=typeof o==="string"?{accessToken:o}:o,n=typeof c.accessToken==="function"?c.accessToken:()=>c.accessToken;Ce({baseUrl:c.basePath??te,getAccessToken:n,onUnauthorized:c.onUnauthorized})}export{Wa as zod,dc as whiteLabels,ic as whiteLabelSubscriptions,hc as webhooks,lc as vies,fc as users,pc as upload,jc as taxes,Cc as taxReports,Zc as stripeApp,sDe as setAccountId,mc as recurringInvoices,Uc as payments,kc as orders,zc as orderIntegrations,Mc as locale,$c as items,Fc as invoices,iTe as initSDK,Vc as health,eOe as getAccountId,yc as fursSettings,Kc as fursPremises,xc as fursDevices,Yc as fursCertificate,Xc as finaSettings,wc as finaPremises,Qc as finaDevices,Wc as finaCertificate,Hc as files,Lc as exports,Rc as estimates,Bc as entityUsers,tc as entityStats,Jc as entityInvitations,uc as entityApiKeys,Gc as entities,Nc as email,qc as documents,Tc as deliveryNotes,Be as default,bc as customers,Oc as creditNotes,Dc as companyRegistry,Ec as advanceInvoices,_c as activities,Sue as WebhookWithSecretEventsItem,Aue as WebhookResponseEventsItem,vue as WebhookDeliveryStatus,cue as ViesCheckResponseTransactionType,eue as UploadFileBodyCategory,a8e as UpdateWebhookBodyEventsItem,i8e as UpdateRecurringInvoiceBodyFrequency,l8e as UpdatePaymentBodyType,p8e as UpdateOrderIntegrationBodyAutoProcessOn,C8e as UpdateOrderBodyPaymentStatus,m8e as UpdateFursSettingsBodyNumberingStrategy,k8e as UpdateFursSettings200NumberingStrategy,M8e as UpdateFursSettings200CertificateStatus,F8e as UpdateFinaSettingsBodyNumberingSequence,y8e as UpdateFinaSettings200NumberingSequence,x8e as UpdateFinaSettings200CertificateStatus,X8e as UpdateEstimateTitleType,Q8e as UpdateEntityUserRoleBodyRole,H8e as StripeAppUpdateSettingsBodyAutoInvoiceEventsItem,R8e as StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem,t8e as StatsQueryRequestTable,u8e as StatsQueryRequestOrderByItemDirection,N8e as StatsQueryRequestMetricsItemType,T8e as StartPdfExport202Status,Be as SpaceInvoices,O8e as SendEmail200Status,E8e as SendDocument200Status,P8e as RestoreDocumentType,S8e as RenderInvoicePreviewTemplate,A8e as RenderInvoicePreviewPartial,v8e as RenderEstimatePreviewTemplate,c8e as RenderEstimatePreviewPartial,e8e as RenderDocumentPdfTemplate,aGe as RenderDocumentHtmlTemplate,iGe as RenderDeliveryNotePreviewTemplate,lGe as RenderDeliveryNotePreviewPartial,pGe as RenderCreditNotePreviewTemplate,CGe as RenderCreditNotePreviewPartial,mGe as RenderAdvanceInvoicePreviewTemplate,kGe as RenderAdvanceInvoicePreviewPartial,MGe as RegisterFursMovablePremiseBodyMovablePremisePremiseType,FGe as RecurringInvoiceBaseStatus,yGe as RecurringInvoiceBaseFrequency,xGe as PermanentDeleteDocumentType,XGe as PdfExportByDocumentIdsType,QGe as PdfExportByDateRangeType,HGe as PaymentType,RGe as PatchMeBodyLocale,tGe as PatchEntityBodySettingsPdfTemplate,uGe as PartialEstimatePreviewTitleType,NGe as OrderIntegrationBaseSource,TGe as OrderIntegrationBaseAutoProcessOn,OGe as OrderBaseStatus,EGe as OrderBaseSource,PGe as OrderBasePaymentStatus,SGe as LineDiscountType,AGe as InvoiceTransactionType,vGe as GetShareableInvoicePdfLocale,cGe as GetShareableInvoiceHtmlLocale,eGe as GetShareableEstimatePdfLocale,aNe as GetShareableEstimateHtmlLocale,iNe as GetShareableDeliveryNotePdfLocale,lNe as GetShareableDeliveryNoteHtmlLocale,pNe as GetShareableCreditNotePdfLocale,CNe as GetShareableCreditNoteHtmlLocale,mNe as GetShareableAdvanceInvoicePdfLocale,kNe as GetShareableAdvanceInvoiceHtmlLocale,MNe as GetPdfExportStatus200Status,FNe as GetNextDocumentNumberType,yNe as GetFursSettings200NumberingStrategy,xNe as GetFursSettings200CertificateStatus,XNe as GetFinaSettings200NumberingSequence,QNe as GetFinaSettings200CertificateStatus,HNe as GetFilesCategory,RNe as GetEntitiesEnvironment,tNe as GetActivities200DataItemActorType,uNe as FursPremiseSuccessResponseEnvironment,NNe as FiscalizeDocumentType,TNe as FinalizeDocumentType,ONe as ExportSalesPerItemLanguage,ENe as ExportSalesPerItemFormat,PNe as ExportDocumentsType,SNe as ExportDocumentsLanguage,ANe as ExportDocumentsFormat,vNe as EstimateTransactionType,cNe as EstimateTitleType,eNe as EntityUserRole,aqe as EntitySettingsPdfTemplate,iqe as EntityInvitationStatus,lqe as EntityInvitationRole,pqe as EntityEnvironment,Cqe as EntityBankAccountType,mqe as EntityApiKeyEnvironment,kqe as DocumentVersionDocumentType,Mqe as DocumentRelationTargetType,Fqe as DocumentRelationSourceType,yqe as DeliveryNoteTransactionType,xqe as DeleteDocumentType,te as DEFAULT_BASE_URL,Xqe as CustomCreateEstimateTitleType,Qqe as CreditNoteTransactionType,Hqe as CreateWebhookBodyEventsItem,Rqe as CreateRecurringInvoiceBodyFrequency,tqe as CreatePaymentBodyType,uqe as CreateOrderIntegrationBodySource,Nqe as CreateOrderBodySource,Tqe as CreateOrderBodyPaymentStatus,Oqe as CreateEstimateTitleType,Eqe as CreateEntityBodySettingsPdfTemplate,Pqe as CreateEntityBodyEnvironment,Sqe as CreateDocumentPaymentType,Aqe as CreateCheckoutRequestBillingInterval,Hce as Configuration,vqe as CompleteEstimatePreviewTitleType,cqe as AdvanceInvoiceTransactionType,eqe as AddEntityUserBodyRole};
218
-
219
- //# debugId=E81F6A3E9D6DD68A64756E2164756E21
3
+ //# debugId=D9377A80BE40763764756E2164756E21