@maesn/typescript-sdk 0.4.0 → 0.5.1

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 (761) hide show
  1. package/FUNCTIONS.md +4 -2
  2. package/README.md +103 -10
  3. package/esm/funcs/accounting-create-account.d.ts.map +1 -1
  4. package/esm/funcs/accounting-create-account.js +2 -1
  5. package/esm/funcs/accounting-create-account.js.map +1 -1
  6. package/esm/funcs/accounting-create-bank-account.d.ts.map +1 -1
  7. package/esm/funcs/accounting-create-bank-account.js +2 -1
  8. package/esm/funcs/accounting-create-bank-account.js.map +1 -1
  9. package/esm/funcs/accounting-create-bill-line-item.d.ts.map +1 -1
  10. package/esm/funcs/accounting-create-bill-line-item.js +2 -1
  11. package/esm/funcs/accounting-create-bill-line-item.js.map +1 -1
  12. package/esm/funcs/accounting-create-bill.d.ts.map +1 -1
  13. package/esm/funcs/accounting-create-bill.js +2 -1
  14. package/esm/funcs/accounting-create-bill.js.map +1 -1
  15. package/esm/funcs/accounting-create-booking-proposal.d.ts.map +1 -1
  16. package/esm/funcs/accounting-create-booking-proposal.js +6 -4
  17. package/esm/funcs/accounting-create-booking-proposal.js.map +1 -1
  18. package/esm/funcs/accounting-create-contact.d.ts.map +1 -1
  19. package/esm/funcs/accounting-create-contact.js +2 -1
  20. package/esm/funcs/accounting-create-contact.js.map +1 -1
  21. package/esm/funcs/accounting-create-contacts-v1.d.ts +11 -0
  22. package/esm/funcs/accounting-create-contacts-v1.d.ts.map +1 -0
  23. package/esm/funcs/accounting-create-contacts-v1.js +77 -0
  24. package/esm/funcs/accounting-create-contacts-v1.js.map +1 -0
  25. package/esm/funcs/accounting-create-contacts.d.ts.map +1 -1
  26. package/esm/funcs/accounting-create-contacts.js +2 -1
  27. package/esm/funcs/accounting-create-contacts.js.map +1 -1
  28. package/esm/funcs/accounting-create-customer.d.ts.map +1 -1
  29. package/esm/funcs/accounting-create-customer.js +2 -1
  30. package/esm/funcs/accounting-create-customer.js.map +1 -1
  31. package/esm/funcs/accounting-create-event-subscriptions.d.ts +12 -0
  32. package/esm/funcs/accounting-create-event-subscriptions.d.ts.map +1 -0
  33. package/esm/funcs/accounting-create-event-subscriptions.js +78 -0
  34. package/esm/funcs/accounting-create-event-subscriptions.js.map +1 -0
  35. package/esm/funcs/accounting-create-expense.d.ts.map +1 -1
  36. package/esm/funcs/accounting-create-expense.js +6 -4
  37. package/esm/funcs/accounting-create-expense.js.map +1 -1
  38. package/esm/funcs/accounting-create-invoice.d.ts.map +1 -1
  39. package/esm/funcs/accounting-create-invoice.js +2 -1
  40. package/esm/funcs/accounting-create-invoice.js.map +1 -1
  41. package/esm/funcs/accounting-create-item.d.ts.map +1 -1
  42. package/esm/funcs/accounting-create-item.js +2 -1
  43. package/esm/funcs/accounting-create-item.js.map +1 -1
  44. package/esm/funcs/accounting-create-journal-entries.d.ts.map +1 -1
  45. package/esm/funcs/accounting-create-journal-entries.js +2 -1
  46. package/esm/funcs/accounting-create-journal-entries.js.map +1 -1
  47. package/esm/funcs/accounting-create-journal-entry-attachments.d.ts.map +1 -1
  48. package/esm/funcs/accounting-create-journal-entry-attachments.js +6 -4
  49. package/esm/funcs/accounting-create-journal-entry-attachments.js.map +1 -1
  50. package/esm/funcs/accounting-create-journal-entry.d.ts.map +1 -1
  51. package/esm/funcs/accounting-create-journal-entry.js +6 -4
  52. package/esm/funcs/accounting-create-journal-entry.js.map +1 -1
  53. package/esm/funcs/accounting-create-line-item.d.ts.map +1 -1
  54. package/esm/funcs/accounting-create-line-item.js +2 -1
  55. package/esm/funcs/accounting-create-line-item.js.map +1 -1
  56. package/esm/funcs/accounting-create-offer.d.ts.map +1 -1
  57. package/esm/funcs/accounting-create-offer.js +2 -1
  58. package/esm/funcs/accounting-create-offer.js.map +1 -1
  59. package/esm/funcs/accounting-create-pass-through-request.d.ts.map +1 -1
  60. package/esm/funcs/accounting-create-pass-through-request.js +2 -1
  61. package/esm/funcs/accounting-create-pass-through-request.js.map +1 -1
  62. package/esm/funcs/accounting-create-payment-term.d.ts.map +1 -1
  63. package/esm/funcs/accounting-create-payment-term.js +2 -1
  64. package/esm/funcs/accounting-create-payment-term.js.map +1 -1
  65. package/esm/funcs/accounting-create-payment.d.ts.map +1 -1
  66. package/esm/funcs/accounting-create-payment.js +2 -1
  67. package/esm/funcs/accounting-create-payment.js.map +1 -1
  68. package/esm/funcs/accounting-create-project.d.ts.map +1 -1
  69. package/esm/funcs/accounting-create-project.js +2 -1
  70. package/esm/funcs/accounting-create-project.js.map +1 -1
  71. package/esm/funcs/accounting-create-sales-order.d.ts.map +1 -1
  72. package/esm/funcs/accounting-create-sales-order.js +2 -1
  73. package/esm/funcs/accounting-create-sales-order.js.map +1 -1
  74. package/esm/funcs/accounting-create-supplier.d.ts.map +1 -1
  75. package/esm/funcs/accounting-create-supplier.js +2 -1
  76. package/esm/funcs/accounting-create-supplier.js.map +1 -1
  77. package/esm/funcs/accounting-create-transaction.d.ts.map +1 -1
  78. package/esm/funcs/accounting-create-transaction.js +6 -4
  79. package/esm/funcs/accounting-create-transaction.js.map +1 -1
  80. package/esm/funcs/accounting-create-vendor-credit.d.ts.map +1 -1
  81. package/esm/funcs/accounting-create-vendor-credit.js +2 -1
  82. package/esm/funcs/accounting-create-vendor-credit.js.map +1 -1
  83. package/esm/funcs/accounting-delete-bill.d.ts.map +1 -1
  84. package/esm/funcs/accounting-delete-bill.js +2 -1
  85. package/esm/funcs/accounting-delete-bill.js.map +1 -1
  86. package/esm/funcs/accounting-delete-event-subscriptions.d.ts +12 -0
  87. package/esm/funcs/accounting-delete-event-subscriptions.d.ts.map +1 -0
  88. package/esm/funcs/accounting-delete-event-subscriptions.js +80 -0
  89. package/esm/funcs/accounting-delete-event-subscriptions.js.map +1 -0
  90. package/esm/funcs/accounting-delete-payment.d.ts.map +1 -1
  91. package/esm/funcs/accounting-delete-payment.js +2 -1
  92. package/esm/funcs/accounting-delete-payment.js.map +1 -1
  93. package/esm/funcs/accounting-delete-vendor-credit.d.ts.map +1 -1
  94. package/esm/funcs/accounting-delete-vendor-credit.js +2 -1
  95. package/esm/funcs/accounting-delete-vendor-credit.js.map +1 -1
  96. package/esm/funcs/accounting-get-account.d.ts.map +1 -1
  97. package/esm/funcs/accounting-get-account.js +2 -1
  98. package/esm/funcs/accounting-get-account.js.map +1 -1
  99. package/esm/funcs/accounting-get-accounts.d.ts.map +1 -1
  100. package/esm/funcs/accounting-get-accounts.js +2 -1
  101. package/esm/funcs/accounting-get-accounts.js.map +1 -1
  102. package/esm/funcs/accounting-get-async-task-info.d.ts.map +1 -1
  103. package/esm/funcs/accounting-get-async-task-info.js +2 -1
  104. package/esm/funcs/accounting-get-async-task-info.js.map +1 -1
  105. package/esm/funcs/accounting-get-bank-account.d.ts.map +1 -1
  106. package/esm/funcs/accounting-get-bank-account.js +2 -1
  107. package/esm/funcs/accounting-get-bank-account.js.map +1 -1
  108. package/esm/funcs/accounting-get-bank-accounts.d.ts.map +1 -1
  109. package/esm/funcs/accounting-get-bank-accounts.js +2 -1
  110. package/esm/funcs/accounting-get-bank-accounts.js.map +1 -1
  111. package/esm/funcs/accounting-get-bill-document.d.ts.map +1 -1
  112. package/esm/funcs/accounting-get-bill-document.js +2 -1
  113. package/esm/funcs/accounting-get-bill-document.js.map +1 -1
  114. package/esm/funcs/accounting-get-bill-line-items.d.ts.map +1 -1
  115. package/esm/funcs/accounting-get-bill-line-items.js +2 -1
  116. package/esm/funcs/accounting-get-bill-line-items.js.map +1 -1
  117. package/esm/funcs/accounting-get-bill.d.ts.map +1 -1
  118. package/esm/funcs/accounting-get-bill.js +2 -1
  119. package/esm/funcs/accounting-get-bill.js.map +1 -1
  120. package/esm/funcs/accounting-get-bills.d.ts.map +1 -1
  121. package/esm/funcs/accounting-get-bills.js +2 -1
  122. package/esm/funcs/accounting-get-bills.js.map +1 -1
  123. package/esm/funcs/accounting-get-booking-proposal-document.d.ts.map +1 -1
  124. package/esm/funcs/accounting-get-booking-proposal-document.js +2 -1
  125. package/esm/funcs/accounting-get-booking-proposal-document.js.map +1 -1
  126. package/esm/funcs/accounting-get-booking-proposal.d.ts.map +1 -1
  127. package/esm/funcs/accounting-get-booking-proposal.js +2 -1
  128. package/esm/funcs/accounting-get-booking-proposal.js.map +1 -1
  129. package/esm/funcs/accounting-get-booking-proposals.d.ts.map +1 -1
  130. package/esm/funcs/accounting-get-booking-proposals.js +2 -1
  131. package/esm/funcs/accounting-get-booking-proposals.js.map +1 -1
  132. package/esm/funcs/accounting-get-contact.d.ts.map +1 -1
  133. package/esm/funcs/accounting-get-contact.js +2 -1
  134. package/esm/funcs/accounting-get-contact.js.map +1 -1
  135. package/esm/funcs/accounting-get-contacts.d.ts.map +1 -1
  136. package/esm/funcs/accounting-get-contacts.js +2 -1
  137. package/esm/funcs/accounting-get-contacts.js.map +1 -1
  138. package/esm/funcs/accounting-get-credit-note.d.ts.map +1 -1
  139. package/esm/funcs/accounting-get-credit-note.js +2 -1
  140. package/esm/funcs/accounting-get-credit-note.js.map +1 -1
  141. package/esm/funcs/accounting-get-credit-notes.d.ts.map +1 -1
  142. package/esm/funcs/accounting-get-credit-notes.js +2 -1
  143. package/esm/funcs/accounting-get-credit-notes.js.map +1 -1
  144. package/esm/funcs/accounting-get-customer.d.ts.map +1 -1
  145. package/esm/funcs/accounting-get-customer.js +2 -1
  146. package/esm/funcs/accounting-get-customer.js.map +1 -1
  147. package/esm/funcs/accounting-get-customers.d.ts.map +1 -1
  148. package/esm/funcs/accounting-get-customers.js +2 -1
  149. package/esm/funcs/accounting-get-customers.js.map +1 -1
  150. package/esm/funcs/accounting-get-dimensions.d.ts.map +1 -1
  151. package/esm/funcs/accounting-get-dimensions.js +2 -1
  152. package/esm/funcs/accounting-get-dimensions.js.map +1 -1
  153. package/esm/funcs/accounting-get-document-extensions.d.ts.map +1 -1
  154. package/esm/funcs/accounting-get-document-extensions.js +2 -1
  155. package/esm/funcs/accounting-get-document-extensions.js.map +1 -1
  156. package/esm/funcs/accounting-get-document-types.d.ts.map +1 -1
  157. package/esm/funcs/accounting-get-document-types.js +2 -1
  158. package/esm/funcs/accounting-get-document-types.js.map +1 -1
  159. package/esm/funcs/accounting-get-expense.d.ts.map +1 -1
  160. package/esm/funcs/accounting-get-expense.js +2 -1
  161. package/esm/funcs/accounting-get-expense.js.map +1 -1
  162. package/esm/funcs/accounting-get-expenses.d.ts.map +1 -1
  163. package/esm/funcs/accounting-get-expenses.js +2 -1
  164. package/esm/funcs/accounting-get-expenses.js.map +1 -1
  165. package/esm/funcs/accounting-get-fiscal-year.d.ts.map +1 -1
  166. package/esm/funcs/accounting-get-fiscal-year.js +2 -1
  167. package/esm/funcs/accounting-get-fiscal-year.js.map +1 -1
  168. package/esm/funcs/accounting-get-fiscal-years.d.ts.map +1 -1
  169. package/esm/funcs/accounting-get-fiscal-years.js +2 -1
  170. package/esm/funcs/accounting-get-fiscal-years.js.map +1 -1
  171. package/esm/funcs/accounting-get-goods-receipt-line-item.d.ts.map +1 -1
  172. package/esm/funcs/accounting-get-goods-receipt-line-item.js +2 -1
  173. package/esm/funcs/accounting-get-goods-receipt-line-item.js.map +1 -1
  174. package/esm/funcs/accounting-get-goods-receipt-line-items.d.ts.map +1 -1
  175. package/esm/funcs/accounting-get-goods-receipt-line-items.js +2 -1
  176. package/esm/funcs/accounting-get-goods-receipt-line-items.js.map +1 -1
  177. package/esm/funcs/accounting-get-goods-receipt.d.ts.map +1 -1
  178. package/esm/funcs/accounting-get-goods-receipt.js +2 -1
  179. package/esm/funcs/accounting-get-goods-receipt.js.map +1 -1
  180. package/esm/funcs/accounting-get-goods-receipts.d.ts.map +1 -1
  181. package/esm/funcs/accounting-get-goods-receipts.js +2 -1
  182. package/esm/funcs/accounting-get-goods-receipts.js.map +1 -1
  183. package/esm/funcs/accounting-get-invoice-document.d.ts.map +1 -1
  184. package/esm/funcs/accounting-get-invoice-document.js +2 -1
  185. package/esm/funcs/accounting-get-invoice-document.js.map +1 -1
  186. package/esm/funcs/accounting-get-invoice.d.ts.map +1 -1
  187. package/esm/funcs/accounting-get-invoice.js +2 -1
  188. package/esm/funcs/accounting-get-invoice.js.map +1 -1
  189. package/esm/funcs/accounting-get-invoices.d.ts.map +1 -1
  190. package/esm/funcs/accounting-get-invoices.js +2 -1
  191. package/esm/funcs/accounting-get-invoices.js.map +1 -1
  192. package/esm/funcs/accounting-get-item.d.ts.map +1 -1
  193. package/esm/funcs/accounting-get-item.js +2 -1
  194. package/esm/funcs/accounting-get-item.js.map +1 -1
  195. package/esm/funcs/accounting-get-items.d.ts.map +1 -1
  196. package/esm/funcs/accounting-get-items.js +2 -1
  197. package/esm/funcs/accounting-get-items.js.map +1 -1
  198. package/esm/funcs/accounting-get-journal-entries.d.ts.map +1 -1
  199. package/esm/funcs/accounting-get-journal-entries.js +2 -1
  200. package/esm/funcs/accounting-get-journal-entries.js.map +1 -1
  201. package/esm/funcs/accounting-get-journal-entry-attachment-by-id.d.ts.map +1 -1
  202. package/esm/funcs/accounting-get-journal-entry-attachment-by-id.js +2 -1
  203. package/esm/funcs/accounting-get-journal-entry-attachment-by-id.js.map +1 -1
  204. package/esm/funcs/accounting-get-journal-entry-attachments.d.ts.map +1 -1
  205. package/esm/funcs/accounting-get-journal-entry-attachments.js +2 -1
  206. package/esm/funcs/accounting-get-journal-entry-attachments.js.map +1 -1
  207. package/esm/funcs/accounting-get-journal-entry.d.ts.map +1 -1
  208. package/esm/funcs/accounting-get-journal-entry.js +2 -1
  209. package/esm/funcs/accounting-get-journal-entry.js.map +1 -1
  210. package/esm/funcs/accounting-get-journals.d.ts.map +1 -1
  211. package/esm/funcs/accounting-get-journals.js +2 -1
  212. package/esm/funcs/accounting-get-journals.js.map +1 -1
  213. package/esm/funcs/accounting-get-line-item.d.ts.map +1 -1
  214. package/esm/funcs/accounting-get-line-item.js +2 -1
  215. package/esm/funcs/accounting-get-line-item.js.map +1 -1
  216. package/esm/funcs/accounting-get-line-items.d.ts.map +1 -1
  217. package/esm/funcs/accounting-get-line-items.js +2 -1
  218. package/esm/funcs/accounting-get-line-items.js.map +1 -1
  219. package/esm/funcs/accounting-get-offer-document.d.ts.map +1 -1
  220. package/esm/funcs/accounting-get-offer-document.js +2 -1
  221. package/esm/funcs/accounting-get-offer-document.js.map +1 -1
  222. package/esm/funcs/accounting-get-offer-line-item.d.ts.map +1 -1
  223. package/esm/funcs/accounting-get-offer-line-item.js +2 -1
  224. package/esm/funcs/accounting-get-offer-line-item.js.map +1 -1
  225. package/esm/funcs/accounting-get-offer-line-items.d.ts.map +1 -1
  226. package/esm/funcs/accounting-get-offer-line-items.js +2 -1
  227. package/esm/funcs/accounting-get-offer-line-items.js.map +1 -1
  228. package/esm/funcs/accounting-get-offer.d.ts.map +1 -1
  229. package/esm/funcs/accounting-get-offer.js +2 -1
  230. package/esm/funcs/accounting-get-offer.js.map +1 -1
  231. package/esm/funcs/accounting-get-offers.d.ts.map +1 -1
  232. package/esm/funcs/accounting-get-offers.js +2 -1
  233. package/esm/funcs/accounting-get-offers.js.map +1 -1
  234. package/esm/funcs/accounting-get-open-items.d.ts.map +1 -1
  235. package/esm/funcs/accounting-get-open-items.js +2 -1
  236. package/esm/funcs/accounting-get-open-items.js.map +1 -1
  237. package/esm/funcs/accounting-get-payment-term.d.ts.map +1 -1
  238. package/esm/funcs/accounting-get-payment-term.js +2 -1
  239. package/esm/funcs/accounting-get-payment-term.js.map +1 -1
  240. package/esm/funcs/accounting-get-payment-terms.d.ts.map +1 -1
  241. package/esm/funcs/accounting-get-payment-terms.js +2 -1
  242. package/esm/funcs/accounting-get-payment-terms.js.map +1 -1
  243. package/esm/funcs/accounting-get-payment.d.ts.map +1 -1
  244. package/esm/funcs/accounting-get-payment.js +2 -1
  245. package/esm/funcs/accounting-get-payment.js.map +1 -1
  246. package/esm/funcs/accounting-get-payments.d.ts.map +1 -1
  247. package/esm/funcs/accounting-get-payments.js +2 -1
  248. package/esm/funcs/accounting-get-payments.js.map +1 -1
  249. package/esm/funcs/accounting-get-profile.d.ts +11 -0
  250. package/esm/funcs/accounting-get-profile.d.ts.map +1 -0
  251. package/esm/funcs/accounting-get-profile.js +72 -0
  252. package/esm/funcs/accounting-get-profile.js.map +1 -0
  253. package/esm/funcs/accounting-get-project.d.ts.map +1 -1
  254. package/esm/funcs/accounting-get-project.js +2 -1
  255. package/esm/funcs/accounting-get-project.js.map +1 -1
  256. package/esm/funcs/accounting-get-projects.d.ts.map +1 -1
  257. package/esm/funcs/accounting-get-projects.js +2 -1
  258. package/esm/funcs/accounting-get-projects.js.map +1 -1
  259. package/esm/funcs/accounting-get-purchase-order-line-item.d.ts.map +1 -1
  260. package/esm/funcs/accounting-get-purchase-order-line-item.js +2 -1
  261. package/esm/funcs/accounting-get-purchase-order-line-item.js.map +1 -1
  262. package/esm/funcs/accounting-get-purchase-order-line-items.d.ts.map +1 -1
  263. package/esm/funcs/accounting-get-purchase-order-line-items.js +2 -1
  264. package/esm/funcs/accounting-get-purchase-order-line-items.js.map +1 -1
  265. package/esm/funcs/accounting-get-purchase-order.d.ts.map +1 -1
  266. package/esm/funcs/accounting-get-purchase-order.js +2 -1
  267. package/esm/funcs/accounting-get-purchase-order.js.map +1 -1
  268. package/esm/funcs/accounting-get-purchase-orders.d.ts.map +1 -1
  269. package/esm/funcs/accounting-get-purchase-orders.js +2 -1
  270. package/esm/funcs/accounting-get-purchase-orders.js.map +1 -1
  271. package/esm/funcs/accounting-get-sales-order-lines.d.ts.map +1 -1
  272. package/esm/funcs/accounting-get-sales-order-lines.js +2 -1
  273. package/esm/funcs/accounting-get-sales-order-lines.js.map +1 -1
  274. package/esm/funcs/accounting-get-sales-order.d.ts.map +1 -1
  275. package/esm/funcs/accounting-get-sales-order.js +2 -1
  276. package/esm/funcs/accounting-get-sales-order.js.map +1 -1
  277. package/esm/funcs/accounting-get-sales-orders.d.ts.map +1 -1
  278. package/esm/funcs/accounting-get-sales-orders.js +2 -1
  279. package/esm/funcs/accounting-get-sales-orders.js.map +1 -1
  280. package/esm/funcs/accounting-get-supplier.d.ts.map +1 -1
  281. package/esm/funcs/accounting-get-supplier.js +2 -1
  282. package/esm/funcs/accounting-get-supplier.js.map +1 -1
  283. package/esm/funcs/accounting-get-suppliers.d.ts.map +1 -1
  284. package/esm/funcs/accounting-get-suppliers.js +2 -1
  285. package/esm/funcs/accounting-get-suppliers.js.map +1 -1
  286. package/esm/funcs/accounting-get-tax-rate.d.ts.map +1 -1
  287. package/esm/funcs/accounting-get-tax-rate.js +2 -1
  288. package/esm/funcs/accounting-get-tax-rate.js.map +1 -1
  289. package/esm/funcs/accounting-get-tax-rates.d.ts.map +1 -1
  290. package/esm/funcs/accounting-get-tax-rates.js +2 -1
  291. package/esm/funcs/accounting-get-tax-rates.js.map +1 -1
  292. package/esm/funcs/accounting-get-trial-balance.d.ts.map +1 -1
  293. package/esm/funcs/accounting-get-trial-balance.js +2 -1
  294. package/esm/funcs/accounting-get-trial-balance.js.map +1 -1
  295. package/esm/funcs/accounting-get-units.d.ts.map +1 -1
  296. package/esm/funcs/accounting-get-units.js +2 -1
  297. package/esm/funcs/accounting-get-units.js.map +1 -1
  298. package/esm/funcs/accounting-get-vendor-credits.d.ts.map +1 -1
  299. package/esm/funcs/accounting-get-vendor-credits.js +2 -1
  300. package/esm/funcs/accounting-get-vendor-credits.js.map +1 -1
  301. package/esm/funcs/accounting-patch-contact.d.ts.map +1 -1
  302. package/esm/funcs/accounting-patch-contact.js +2 -1
  303. package/esm/funcs/accounting-patch-contact.js.map +1 -1
  304. package/esm/funcs/accounting-patch-customers.d.ts.map +1 -1
  305. package/esm/funcs/accounting-patch-customers.js +2 -1
  306. package/esm/funcs/accounting-patch-customers.js.map +1 -1
  307. package/esm/funcs/accounting-patch-invoice.d.ts.map +1 -1
  308. package/esm/funcs/accounting-patch-invoice.js +2 -1
  309. package/esm/funcs/accounting-patch-invoice.js.map +1 -1
  310. package/esm/funcs/accounting-patch-item.d.ts.map +1 -1
  311. package/esm/funcs/accounting-patch-item.js +2 -1
  312. package/esm/funcs/accounting-patch-item.js.map +1 -1
  313. package/esm/funcs/accounting-patch-line-item.d.ts +11 -0
  314. package/esm/funcs/accounting-patch-line-item.d.ts.map +1 -0
  315. package/esm/funcs/accounting-patch-line-item.js +88 -0
  316. package/esm/funcs/accounting-patch-line-item.js.map +1 -0
  317. package/esm/funcs/accounting-patch-supplier.d.ts.map +1 -1
  318. package/esm/funcs/accounting-patch-supplier.js +2 -1
  319. package/esm/funcs/accounting-patch-supplier.js.map +1 -1
  320. package/esm/funcs/accounting-post-file.d.ts.map +1 -1
  321. package/esm/funcs/accounting-post-file.js +6 -4
  322. package/esm/funcs/accounting-post-file.js.map +1 -1
  323. package/esm/funcs/accounting-put-contact.d.ts.map +1 -1
  324. package/esm/funcs/accounting-put-contact.js +2 -1
  325. package/esm/funcs/accounting-put-contact.js.map +1 -1
  326. package/esm/funcs/accounting-update-bill-line-item.d.ts.map +1 -1
  327. package/esm/funcs/accounting-update-bill-line-item.js +2 -1
  328. package/esm/funcs/accounting-update-bill-line-item.js.map +1 -1
  329. package/esm/funcs/accounting-update-bill.d.ts.map +1 -1
  330. package/esm/funcs/accounting-update-bill.js +2 -1
  331. package/esm/funcs/accounting-update-bill.js.map +1 -1
  332. package/esm/funcs/accounting-update-customer.d.ts.map +1 -1
  333. package/esm/funcs/accounting-update-customer.js +2 -1
  334. package/esm/funcs/accounting-update-customer.js.map +1 -1
  335. package/esm/funcs/accounting-update-supplier.d.ts.map +1 -1
  336. package/esm/funcs/accounting-update-supplier.js +2 -1
  337. package/esm/funcs/accounting-update-supplier.js.map +1 -1
  338. package/esm/funcs/accounting-update-vendor-credit.d.ts.map +1 -1
  339. package/esm/funcs/accounting-update-vendor-credit.js +2 -1
  340. package/esm/funcs/accounting-update-vendor-credit.js.map +1 -1
  341. package/esm/funcs/accounting-v2-create-booking-proposal-v2.d.ts.map +1 -1
  342. package/esm/funcs/accounting-v2-create-booking-proposal-v2.js +6 -4
  343. package/esm/funcs/accounting-v2-create-booking-proposal-v2.js.map +1 -1
  344. package/esm/funcs/accounting-v2-create-contact-v2.d.ts.map +1 -1
  345. package/esm/funcs/accounting-v2-create-contact-v2.js +2 -1
  346. package/esm/funcs/accounting-v2-create-contact-v2.js.map +1 -1
  347. package/esm/funcs/accounting-v2-get-contact-v2.d.ts.map +1 -1
  348. package/esm/funcs/accounting-v2-get-contact-v2.js +2 -1
  349. package/esm/funcs/accounting-v2-get-contact-v2.js.map +1 -1
  350. package/esm/funcs/accounting-v2-get-contacts-v2.d.ts.map +1 -1
  351. package/esm/funcs/accounting-v2-get-contacts-v2.js +2 -1
  352. package/esm/funcs/accounting-v2-get-contacts-v2.js.map +1 -1
  353. package/esm/funcs/accounting-v2-get-dimensions-by-dimension.d.ts.map +1 -1
  354. package/esm/funcs/accounting-v2-get-dimensions-by-dimension.js +2 -1
  355. package/esm/funcs/accounting-v2-get-dimensions-by-dimension.js.map +1 -1
  356. package/esm/funcs/accounting-v2-get-dimensions-v2.d.ts.map +1 -1
  357. package/esm/funcs/accounting-v2-get-dimensions-v2.js +2 -1
  358. package/esm/funcs/accounting-v2-get-dimensions-v2.js.map +1 -1
  359. package/esm/funcs/accounting-v2-patch-contact-v2.d.ts.map +1 -1
  360. package/esm/funcs/accounting-v2-patch-contact-v2.js +2 -1
  361. package/esm/funcs/accounting-v2-patch-contact-v2.js.map +1 -1
  362. package/esm/funcs/accounting-v2-put-contact-v2.d.ts.map +1 -1
  363. package/esm/funcs/accounting-v2-put-contact-v2.js +2 -1
  364. package/esm/funcs/accounting-v2-put-contact-v2.js.map +1 -1
  365. package/esm/funcs/auth-create-end-user-account.d.ts.map +1 -1
  366. package/esm/funcs/auth-create-end-user-account.js +3 -2
  367. package/esm/funcs/auth-create-end-user-account.js.map +1 -1
  368. package/esm/funcs/auth-get-companies.d.ts.map +1 -1
  369. package/esm/funcs/auth-get-companies.js +3 -2
  370. package/esm/funcs/auth-get-companies.js.map +1 -1
  371. package/esm/funcs/auth-get-environments.d.ts.map +1 -1
  372. package/esm/funcs/auth-get-environments.js +3 -2
  373. package/esm/funcs/auth-get-environments.js.map +1 -1
  374. package/esm/funcs/auth-system-login-url.d.ts.map +1 -1
  375. package/esm/funcs/auth-system-login-url.js +3 -2
  376. package/esm/funcs/auth-system-login-url.js.map +1 -1
  377. package/esm/funcs/events-get-code.d.ts +11 -0
  378. package/esm/funcs/events-get-code.d.ts.map +1 -0
  379. package/esm/funcs/events-get-code.js +78 -0
  380. package/esm/funcs/events-get-code.js.map +1 -0
  381. package/esm/funcs/events-handle-callback.d.ts +11 -0
  382. package/esm/funcs/events-handle-callback.d.ts.map +1 -0
  383. package/esm/funcs/events-handle-callback.js +78 -0
  384. package/esm/funcs/events-handle-callback.js.map +1 -0
  385. package/esm/funcs/events-handle-configuration-callback.d.ts +11 -0
  386. package/esm/funcs/events-handle-configuration-callback.d.ts.map +1 -0
  387. package/esm/funcs/events-handle-configuration-callback.js +78 -0
  388. package/esm/funcs/events-handle-configuration-callback.js.map +1 -0
  389. package/esm/funcs/health-check.d.ts +17 -0
  390. package/esm/funcs/health-check.d.ts.map +1 -0
  391. package/esm/funcs/health-check.js +78 -0
  392. package/esm/funcs/health-check.js.map +1 -0
  393. package/esm/funcs/tenants-add-callback-url.d.ts.map +1 -1
  394. package/esm/funcs/tenants-add-callback-url.js +3 -2
  395. package/esm/funcs/tenants-add-callback-url.js.map +1 -1
  396. package/esm/funcs/tenants-count-end-users-by-system.d.ts +11 -0
  397. package/esm/funcs/tenants-count-end-users-by-system.d.ts.map +1 -0
  398. package/esm/funcs/tenants-count-end-users-by-system.js +72 -0
  399. package/esm/funcs/tenants-count-end-users-by-system.js.map +1 -0
  400. package/esm/funcs/tenants-delete-end-user.d.ts.map +1 -1
  401. package/esm/funcs/tenants-delete-end-user.js +3 -2
  402. package/esm/funcs/tenants-delete-end-user.js.map +1 -1
  403. package/esm/funcs/tenants-delete-registered-system.d.ts +11 -0
  404. package/esm/funcs/tenants-delete-registered-system.d.ts.map +1 -0
  405. package/esm/funcs/tenants-delete-registered-system.js +79 -0
  406. package/esm/funcs/tenants-delete-registered-system.js.map +1 -0
  407. package/esm/funcs/tenants-get-callback-url.d.ts +11 -0
  408. package/esm/funcs/tenants-get-callback-url.d.ts.map +1 -0
  409. package/esm/funcs/tenants-get-callback-url.js +72 -0
  410. package/esm/funcs/tenants-get-callback-url.js.map +1 -0
  411. package/esm/funcs/tenants-get-end-user-list.d.ts.map +1 -1
  412. package/esm/funcs/tenants-get-end-user-list.js +3 -2
  413. package/esm/funcs/tenants-get-end-user-list.js.map +1 -1
  414. package/esm/funcs/tenants-get-registered-systems-masked.d.ts +11 -0
  415. package/esm/funcs/tenants-get-registered-systems-masked.d.ts.map +1 -0
  416. package/esm/funcs/tenants-get-registered-systems-masked.js +72 -0
  417. package/esm/funcs/tenants-get-registered-systems-masked.js.map +1 -0
  418. package/esm/funcs/tenants-get-registered-systems.d.ts +11 -0
  419. package/esm/funcs/tenants-get-registered-systems.d.ts.map +1 -0
  420. package/esm/funcs/tenants-get-registered-systems.js +72 -0
  421. package/esm/funcs/tenants-get-registered-systems.js.map +1 -0
  422. package/esm/funcs/tenants-get-submission-page-style-by-key.d.ts +11 -0
  423. package/esm/funcs/tenants-get-submission-page-style-by-key.d.ts.map +1 -0
  424. package/esm/funcs/tenants-get-submission-page-style-by-key.js +72 -0
  425. package/esm/funcs/tenants-get-submission-page-style-by-key.js.map +1 -0
  426. package/esm/funcs/tenants-get-submission-page-style.d.ts +11 -0
  427. package/esm/funcs/tenants-get-submission-page-style.d.ts.map +1 -0
  428. package/esm/funcs/tenants-get-submission-page-style.js +86 -0
  429. package/esm/funcs/tenants-get-submission-page-style.js.map +1 -0
  430. package/esm/funcs/tenants-get-target-system-requirements.d.ts +11 -0
  431. package/esm/funcs/tenants-get-target-system-requirements.d.ts.map +1 -0
  432. package/esm/funcs/tenants-get-target-system-requirements.js +72 -0
  433. package/esm/funcs/tenants-get-target-system-requirements.js.map +1 -0
  434. package/esm/funcs/tenants-get-target-system-values.d.ts +11 -0
  435. package/esm/funcs/tenants-get-target-system-values.d.ts.map +1 -0
  436. package/esm/funcs/tenants-get-target-system-values.js +72 -0
  437. package/esm/funcs/tenants-get-target-system-values.js.map +1 -0
  438. package/esm/funcs/tenants-system-registration.d.ts.map +1 -1
  439. package/esm/funcs/tenants-system-registration.js +3 -2
  440. package/esm/funcs/tenants-system-registration.js.map +1 -1
  441. package/esm/funcs/tenants-update-submission-page-style.d.ts +12 -0
  442. package/esm/funcs/tenants-update-submission-page-style.d.ts.map +1 -0
  443. package/esm/funcs/tenants-update-submission-page-style.js +74 -0
  444. package/esm/funcs/tenants-update-submission-page-style.js.map +1 -0
  445. package/esm/funcs/user-get-user-info.d.ts.map +1 -1
  446. package/esm/funcs/user-get-user-info.js +2 -1
  447. package/esm/funcs/user-get-user-info.js.map +1 -1
  448. package/esm/funcs/webhooks-create-webhook-end-user.d.ts +11 -0
  449. package/esm/funcs/webhooks-create-webhook-end-user.d.ts.map +1 -0
  450. package/esm/funcs/webhooks-create-webhook-end-user.js +78 -0
  451. package/esm/funcs/webhooks-create-webhook-end-user.js.map +1 -0
  452. package/esm/funcs/webhooks-create-webhook.d.ts.map +1 -1
  453. package/esm/funcs/webhooks-create-webhook.js +3 -2
  454. package/esm/funcs/webhooks-create-webhook.js.map +1 -1
  455. package/esm/funcs/webhooks-delete-webhook-end-user.d.ts +11 -0
  456. package/esm/funcs/webhooks-delete-webhook-end-user.d.ts.map +1 -0
  457. package/esm/funcs/webhooks-delete-webhook-end-user.js +83 -0
  458. package/esm/funcs/webhooks-delete-webhook-end-user.js.map +1 -0
  459. package/esm/funcs/webhooks-delete-webhook.d.ts.map +1 -1
  460. package/esm/funcs/webhooks-delete-webhook.js +3 -2
  461. package/esm/funcs/webhooks-delete-webhook.js.map +1 -1
  462. package/esm/funcs/webhooks-get-webhooks.d.ts.map +1 -1
  463. package/esm/funcs/webhooks-get-webhooks.js +3 -2
  464. package/esm/funcs/webhooks-get-webhooks.js.map +1 -1
  465. package/esm/lib/config.d.ts +3 -3
  466. package/esm/lib/config.js +3 -3
  467. package/esm/lib/encodings.d.ts +1 -0
  468. package/esm/lib/encodings.d.ts.map +1 -1
  469. package/esm/lib/encodings.js +6 -0
  470. package/esm/lib/encodings.js.map +1 -1
  471. package/esm/lib/sdks.d.ts +1 -1
  472. package/esm/lib/sdks.d.ts.map +1 -1
  473. package/esm/lib/sdks.js +3 -3
  474. package/esm/lib/sdks.js.map +1 -1
  475. package/esm/lib/security.d.ts.map +1 -1
  476. package/esm/lib/security.js +9 -2
  477. package/esm/lib/security.js.map +1 -1
  478. package/esm/models/create-event-subscription-request-dto.d.ts +14 -0
  479. package/esm/models/create-event-subscription-request-dto.d.ts.map +1 -0
  480. package/esm/models/create-event-subscription-request-dto.js +13 -0
  481. package/esm/models/create-event-subscription-request-dto.js.map +1 -0
  482. package/esm/models/index.d.ts +3 -0
  483. package/esm/models/index.d.ts.map +1 -1
  484. package/esm/models/index.js +3 -0
  485. package/esm/models/index.js.map +1 -1
  486. package/esm/models/operations/check.d.ts +11 -0
  487. package/esm/models/operations/check.d.ts.map +1 -0
  488. package/esm/models/operations/check.js +11 -0
  489. package/esm/models/operations/check.js.map +1 -0
  490. package/esm/models/operations/create-contacts-v1.d.ts +56 -0
  491. package/esm/models/operations/create-contacts-v1.d.ts.map +1 -0
  492. package/esm/models/operations/create-contacts-v1.js +54 -0
  493. package/esm/models/operations/create-contacts-v1.js.map +1 -0
  494. package/esm/models/operations/create-event-subscriptions.d.ts +18 -0
  495. package/esm/models/operations/create-event-subscriptions.d.ts.map +1 -0
  496. package/esm/models/operations/create-event-subscriptions.js +14 -0
  497. package/esm/models/operations/create-event-subscriptions.js.map +1 -0
  498. package/esm/models/operations/create-webhook-end-user.d.ts +61 -0
  499. package/esm/models/operations/create-webhook-end-user.d.ts.map +1 -0
  500. package/esm/models/operations/create-webhook-end-user.js +55 -0
  501. package/esm/models/operations/create-webhook-end-user.js.map +1 -0
  502. package/esm/models/operations/delete-event-subscriptions.d.ts +17 -0
  503. package/esm/models/operations/delete-event-subscriptions.d.ts.map +1 -0
  504. package/esm/models/operations/delete-event-subscriptions.js +13 -0
  505. package/esm/models/operations/delete-event-subscriptions.js.map +1 -0
  506. package/esm/models/operations/delete-registered-system.d.ts +12 -0
  507. package/esm/models/operations/delete-registered-system.d.ts.map +1 -0
  508. package/esm/models/operations/delete-registered-system.js +12 -0
  509. package/esm/models/operations/delete-registered-system.js.map +1 -0
  510. package/esm/models/operations/delete-webhook-end-user.d.ts +31 -0
  511. package/esm/models/operations/delete-webhook-end-user.d.ts.map +1 -0
  512. package/esm/models/operations/delete-webhook-end-user.js +20 -0
  513. package/esm/models/operations/delete-webhook-end-user.js.map +1 -0
  514. package/esm/models/operations/get-code.d.ts +21 -0
  515. package/esm/models/operations/get-code.d.ts.map +1 -0
  516. package/esm/models/operations/get-code.js +18 -0
  517. package/esm/models/operations/get-code.js.map +1 -0
  518. package/esm/models/operations/get-submission-page-style-by-key.d.ts +11 -0
  519. package/esm/models/operations/get-submission-page-style-by-key.d.ts.map +1 -0
  520. package/esm/models/operations/get-submission-page-style-by-key.js +11 -0
  521. package/esm/models/operations/get-submission-page-style-by-key.js.map +1 -0
  522. package/esm/models/operations/get-submission-page-style.d.ts +24 -0
  523. package/esm/models/operations/get-submission-page-style.d.ts.map +1 -0
  524. package/esm/models/operations/get-submission-page-style.js +18 -0
  525. package/esm/models/operations/get-submission-page-style.js.map +1 -0
  526. package/esm/models/operations/handle-callback.d.ts +21 -0
  527. package/esm/models/operations/handle-callback.d.ts.map +1 -0
  528. package/esm/models/operations/handle-callback.js +18 -0
  529. package/esm/models/operations/handle-callback.js.map +1 -0
  530. package/esm/models/operations/handle-configuration-callback.d.ts +21 -0
  531. package/esm/models/operations/handle-configuration-callback.d.ts.map +1 -0
  532. package/esm/models/operations/handle-configuration-callback.js +18 -0
  533. package/esm/models/operations/handle-configuration-callback.js.map +1 -0
  534. package/esm/models/operations/index.d.ts +14 -0
  535. package/esm/models/operations/index.d.ts.map +1 -1
  536. package/esm/models/operations/index.js +14 -0
  537. package/esm/models/operations/index.js.map +1 -1
  538. package/esm/models/operations/patch-line-item.d.ts +65 -0
  539. package/esm/models/operations/patch-line-item.d.ts.map +1 -0
  540. package/esm/models/operations/patch-line-item.js +57 -0
  541. package/esm/models/operations/patch-line-item.js.map +1 -0
  542. package/esm/models/operations/update-submission-page-style.d.ts +11 -0
  543. package/esm/models/operations/update-submission-page-style.d.ts.map +1 -0
  544. package/esm/models/operations/update-submission-page-style.js +11 -0
  545. package/esm/models/operations/update-submission-page-style.js.map +1 -0
  546. package/esm/models/patch-line-item-request-dto.d.ts +46 -0
  547. package/esm/models/patch-line-item-request-dto.d.ts.map +1 -0
  548. package/esm/models/patch-line-item-request-dto.js +32 -0
  549. package/esm/models/patch-line-item-request-dto.js.map +1 -0
  550. package/esm/models/security.d.ts +26 -4
  551. package/esm/models/security.d.ts.map +1 -1
  552. package/esm/models/security.js +24 -3
  553. package/esm/models/security.js.map +1 -1
  554. package/esm/models/submission-page-style-dto.d.ts +28 -0
  555. package/esm/models/submission-page-style-dto.d.ts.map +1 -0
  556. package/esm/models/submission-page-style-dto.js +20 -0
  557. package/esm/models/submission-page-style-dto.js.map +1 -0
  558. package/esm/sdk/accounting.d.ts +6 -0
  559. package/esm/sdk/accounting.d.ts.map +1 -1
  560. package/esm/sdk/accounting.js +20 -0
  561. package/esm/sdk/accounting.js.map +1 -1
  562. package/esm/sdk/events.d.ts +8 -0
  563. package/esm/sdk/events.d.ts.map +1 -0
  564. package/esm/sdk/events.js +20 -0
  565. package/esm/sdk/events.js.map +1 -0
  566. package/esm/sdk/health.d.ts +12 -0
  567. package/esm/sdk/health.d.ts.map +1 -0
  568. package/esm/sdk/health.js +18 -0
  569. package/esm/sdk/health.js.map +1 -0
  570. package/esm/sdk/sdk.d.ts +8 -2
  571. package/esm/sdk/sdk.d.ts.map +1 -1
  572. package/esm/sdk/sdk.js +13 -3
  573. package/esm/sdk/sdk.js.map +1 -1
  574. package/esm/sdk/tenants.d.ts +10 -0
  575. package/esm/sdk/tenants.d.ts.map +1 -1
  576. package/esm/sdk/tenants.js +40 -0
  577. package/esm/sdk/tenants.js.map +1 -1
  578. package/esm/sdk/webhooks.d.ts +2 -0
  579. package/esm/sdk/webhooks.d.ts.map +1 -1
  580. package/esm/sdk/webhooks.js +8 -0
  581. package/esm/sdk/webhooks.js.map +1 -1
  582. package/examples/accountingGetAccount.example.ts +4 -2
  583. package/jsr.json +1 -1
  584. package/package.json +3 -3
  585. package/src/funcs/accounting-create-account.ts +3 -1
  586. package/src/funcs/accounting-create-bank-account.ts +3 -1
  587. package/src/funcs/accounting-create-bill-line-item.ts +3 -1
  588. package/src/funcs/accounting-create-bill.ts +3 -1
  589. package/src/funcs/accounting-create-booking-proposal.ts +12 -4
  590. package/src/funcs/accounting-create-contact.ts +3 -1
  591. package/src/funcs/accounting-create-contacts-v1.ts +162 -0
  592. package/src/funcs/accounting-create-contacts.ts +3 -1
  593. package/src/funcs/accounting-create-customer.ts +3 -1
  594. package/src/funcs/accounting-create-event-subscriptions.ts +163 -0
  595. package/src/funcs/accounting-create-expense.ts +12 -4
  596. package/src/funcs/accounting-create-invoice.ts +3 -1
  597. package/src/funcs/accounting-create-item.ts +3 -1
  598. package/src/funcs/accounting-create-journal-entries.ts +3 -1
  599. package/src/funcs/accounting-create-journal-entry-attachments.ts +7 -4
  600. package/src/funcs/accounting-create-journal-entry.ts +12 -4
  601. package/src/funcs/accounting-create-line-item.ts +3 -1
  602. package/src/funcs/accounting-create-offer.ts +3 -1
  603. package/src/funcs/accounting-create-pass-through-request.ts +3 -1
  604. package/src/funcs/accounting-create-payment-term.ts +3 -1
  605. package/src/funcs/accounting-create-payment.ts +3 -1
  606. package/src/funcs/accounting-create-project.ts +3 -1
  607. package/src/funcs/accounting-create-sales-order.ts +3 -1
  608. package/src/funcs/accounting-create-supplier.ts +3 -1
  609. package/src/funcs/accounting-create-transaction.ts +12 -4
  610. package/src/funcs/accounting-create-vendor-credit.ts +3 -1
  611. package/src/funcs/accounting-delete-bill.ts +3 -1
  612. package/src/funcs/accounting-delete-event-subscriptions.ts +171 -0
  613. package/src/funcs/accounting-delete-payment.ts +3 -1
  614. package/src/funcs/accounting-delete-vendor-credit.ts +3 -1
  615. package/src/funcs/accounting-get-account.ts +3 -1
  616. package/src/funcs/accounting-get-accounts.ts +3 -1
  617. package/src/funcs/accounting-get-async-task-info.ts +3 -1
  618. package/src/funcs/accounting-get-bank-account.ts +3 -1
  619. package/src/funcs/accounting-get-bank-accounts.ts +3 -1
  620. package/src/funcs/accounting-get-bill-document.ts +3 -1
  621. package/src/funcs/accounting-get-bill-line-items.ts +3 -1
  622. package/src/funcs/accounting-get-bill.ts +3 -1
  623. package/src/funcs/accounting-get-bills.ts +3 -1
  624. package/src/funcs/accounting-get-booking-proposal-document.ts +3 -1
  625. package/src/funcs/accounting-get-booking-proposal.ts +3 -1
  626. package/src/funcs/accounting-get-booking-proposals.ts +3 -1
  627. package/src/funcs/accounting-get-contact.ts +3 -1
  628. package/src/funcs/accounting-get-contacts.ts +3 -1
  629. package/src/funcs/accounting-get-credit-note.ts +3 -1
  630. package/src/funcs/accounting-get-credit-notes.ts +3 -1
  631. package/src/funcs/accounting-get-customer.ts +3 -1
  632. package/src/funcs/accounting-get-customers.ts +3 -1
  633. package/src/funcs/accounting-get-dimensions.ts +3 -1
  634. package/src/funcs/accounting-get-document-extensions.ts +3 -1
  635. package/src/funcs/accounting-get-document-types.ts +3 -1
  636. package/src/funcs/accounting-get-expense.ts +3 -1
  637. package/src/funcs/accounting-get-expenses.ts +3 -1
  638. package/src/funcs/accounting-get-fiscal-year.ts +3 -1
  639. package/src/funcs/accounting-get-fiscal-years.ts +3 -1
  640. package/src/funcs/accounting-get-goods-receipt-line-item.ts +3 -1
  641. package/src/funcs/accounting-get-goods-receipt-line-items.ts +3 -1
  642. package/src/funcs/accounting-get-goods-receipt.ts +3 -1
  643. package/src/funcs/accounting-get-goods-receipts.ts +3 -1
  644. package/src/funcs/accounting-get-invoice-document.ts +3 -1
  645. package/src/funcs/accounting-get-invoice.ts +3 -1
  646. package/src/funcs/accounting-get-invoices.ts +3 -1
  647. package/src/funcs/accounting-get-item.ts +3 -1
  648. package/src/funcs/accounting-get-items.ts +3 -1
  649. package/src/funcs/accounting-get-journal-entries.ts +3 -1
  650. package/src/funcs/accounting-get-journal-entry-attachment-by-id.ts +3 -1
  651. package/src/funcs/accounting-get-journal-entry-attachments.ts +3 -1
  652. package/src/funcs/accounting-get-journal-entry.ts +3 -1
  653. package/src/funcs/accounting-get-journals.ts +3 -1
  654. package/src/funcs/accounting-get-line-item.ts +3 -1
  655. package/src/funcs/accounting-get-line-items.ts +3 -1
  656. package/src/funcs/accounting-get-offer-document.ts +3 -1
  657. package/src/funcs/accounting-get-offer-line-item.ts +3 -1
  658. package/src/funcs/accounting-get-offer-line-items.ts +3 -1
  659. package/src/funcs/accounting-get-offer.ts +3 -1
  660. package/src/funcs/accounting-get-offers.ts +3 -1
  661. package/src/funcs/accounting-get-open-items.ts +3 -1
  662. package/src/funcs/accounting-get-payment-term.ts +3 -1
  663. package/src/funcs/accounting-get-payment-terms.ts +3 -1
  664. package/src/funcs/accounting-get-payment.ts +3 -1
  665. package/src/funcs/accounting-get-payments.ts +3 -1
  666. package/src/funcs/accounting-get-profile.ts +147 -0
  667. package/src/funcs/accounting-get-project.ts +3 -1
  668. package/src/funcs/accounting-get-projects.ts +3 -1
  669. package/src/funcs/accounting-get-purchase-order-line-item.ts +3 -1
  670. package/src/funcs/accounting-get-purchase-order-line-items.ts +3 -1
  671. package/src/funcs/accounting-get-purchase-order.ts +3 -1
  672. package/src/funcs/accounting-get-purchase-orders.ts +3 -1
  673. package/src/funcs/accounting-get-sales-order-lines.ts +3 -1
  674. package/src/funcs/accounting-get-sales-order.ts +3 -1
  675. package/src/funcs/accounting-get-sales-orders.ts +3 -1
  676. package/src/funcs/accounting-get-supplier.ts +3 -1
  677. package/src/funcs/accounting-get-suppliers.ts +3 -1
  678. package/src/funcs/accounting-get-tax-rate.ts +3 -1
  679. package/src/funcs/accounting-get-tax-rates.ts +3 -1
  680. package/src/funcs/accounting-get-trial-balance.ts +3 -1
  681. package/src/funcs/accounting-get-units.ts +3 -1
  682. package/src/funcs/accounting-get-vendor-credits.ts +3 -1
  683. package/src/funcs/accounting-patch-contact.ts +3 -1
  684. package/src/funcs/accounting-patch-customers.ts +3 -1
  685. package/src/funcs/accounting-patch-invoice.ts +3 -1
  686. package/src/funcs/accounting-patch-item.ts +3 -1
  687. package/src/funcs/accounting-patch-line-item.ts +174 -0
  688. package/src/funcs/accounting-patch-supplier.ts +3 -1
  689. package/src/funcs/accounting-post-file.ts +11 -4
  690. package/src/funcs/accounting-put-contact.ts +3 -1
  691. package/src/funcs/accounting-update-bill-line-item.ts +3 -1
  692. package/src/funcs/accounting-update-bill.ts +3 -1
  693. package/src/funcs/accounting-update-customer.ts +3 -1
  694. package/src/funcs/accounting-update-supplier.ts +3 -1
  695. package/src/funcs/accounting-update-vendor-credit.ts +3 -1
  696. package/src/funcs/accounting-v2-create-booking-proposal-v2.ts +12 -4
  697. package/src/funcs/accounting-v2-create-contact-v2.ts +3 -1
  698. package/src/funcs/accounting-v2-get-contact-v2.ts +3 -1
  699. package/src/funcs/accounting-v2-get-contacts-v2.ts +3 -1
  700. package/src/funcs/accounting-v2-get-dimensions-by-dimension.ts +3 -1
  701. package/src/funcs/accounting-v2-get-dimensions-v2.ts +3 -1
  702. package/src/funcs/accounting-v2-patch-contact-v2.ts +3 -1
  703. package/src/funcs/accounting-v2-put-contact-v2.ts +3 -1
  704. package/src/funcs/auth-create-end-user-account.ts +4 -2
  705. package/src/funcs/auth-get-companies.ts +4 -2
  706. package/src/funcs/auth-get-environments.ts +4 -2
  707. package/src/funcs/auth-system-login-url.ts +4 -2
  708. package/src/funcs/events-get-code.ts +161 -0
  709. package/src/funcs/events-handle-callback.ts +161 -0
  710. package/src/funcs/events-handle-configuration-callback.ts +165 -0
  711. package/src/funcs/health-check.ts +153 -0
  712. package/src/funcs/tenants-add-callback-url.ts +4 -2
  713. package/src/funcs/tenants-count-end-users-by-system.ts +147 -0
  714. package/src/funcs/tenants-delete-end-user.ts +4 -2
  715. package/src/funcs/tenants-delete-registered-system.ts +165 -0
  716. package/src/funcs/tenants-get-callback-url.ts +147 -0
  717. package/src/funcs/tenants-get-end-user-list.ts +4 -2
  718. package/src/funcs/tenants-get-registered-systems-masked.ts +147 -0
  719. package/src/funcs/tenants-get-registered-systems.ts +147 -0
  720. package/src/funcs/tenants-get-submission-page-style-by-key.ts +147 -0
  721. package/src/funcs/tenants-get-submission-page-style.ts +171 -0
  722. package/src/funcs/tenants-get-target-system-requirements.ts +147 -0
  723. package/src/funcs/tenants-get-target-system-values.ts +147 -0
  724. package/src/funcs/tenants-system-registration.ts +4 -2
  725. package/src/funcs/tenants-update-submission-page-style.ts +157 -0
  726. package/src/funcs/user-get-user-info.ts +3 -1
  727. package/src/funcs/webhooks-create-webhook-end-user.ts +163 -0
  728. package/src/funcs/webhooks-create-webhook.ts +4 -2
  729. package/src/funcs/webhooks-delete-webhook-end-user.ts +168 -0
  730. package/src/funcs/webhooks-delete-webhook.ts +4 -2
  731. package/src/funcs/webhooks-get-webhooks.ts +4 -2
  732. package/src/lib/config.ts +3 -3
  733. package/src/lib/encodings.ts +9 -0
  734. package/src/lib/sdks.ts +3 -4
  735. package/src/lib/security.ts +9 -2
  736. package/src/models/create-event-subscription-request-dto.ts +35 -0
  737. package/src/models/index.ts +3 -0
  738. package/src/models/operations/check.ts +29 -0
  739. package/src/models/operations/create-contacts-v1.ts +164 -0
  740. package/src/models/operations/create-event-subscriptions.ts +39 -0
  741. package/src/models/operations/create-webhook-end-user.ts +176 -0
  742. package/src/models/operations/delete-event-subscriptions.ts +38 -0
  743. package/src/models/operations/delete-registered-system.ts +32 -0
  744. package/src/models/operations/delete-webhook-end-user.ts +68 -0
  745. package/src/models/operations/get-code.ts +50 -0
  746. package/src/models/operations/get-submission-page-style-by-key.ts +30 -0
  747. package/src/models/operations/get-submission-page-style.ts +59 -0
  748. package/src/models/operations/handle-callback.ts +54 -0
  749. package/src/models/operations/handle-configuration-callback.ts +57 -0
  750. package/src/models/operations/index.ts +14 -0
  751. package/src/models/operations/patch-line-item.ts +174 -0
  752. package/src/models/operations/update-submission-page-style.ts +29 -0
  753. package/src/models/patch-line-item-request-dto.ts +82 -0
  754. package/src/models/security.ts +66 -8
  755. package/src/models/submission-page-style-dto.ts +54 -0
  756. package/src/sdk/accounting.ts +59 -0
  757. package/src/sdk/events.ts +45 -0
  758. package/src/sdk/health.ts +25 -0
  759. package/src/sdk/sdk.ts +15 -3
  760. package/src/sdk/tenants.ts +106 -0
  761. package/src/sdk/webhooks.ts +24 -0
@@ -0,0 +1,165 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { MaesnCore } from "../core.js";
7
+ import { encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/http-client-errors.js";
22
+ import { MaesnError } from "../models/errors/maesn-error.js";
23
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
24
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ export function eventsHandleConfigurationCallback(
30
+ client: MaesnCore,
31
+ request: operations.HandleConfigurationCallbackRequest,
32
+ options?: RequestOptions,
33
+ ): APIPromise<
34
+ Result<
35
+ operations.HandleConfigurationCallbackResponse,
36
+ | MaesnError
37
+ | ResponseValidationError
38
+ | ConnectionError
39
+ | RequestAbortedError
40
+ | RequestTimeoutError
41
+ | InvalidRequestError
42
+ | UnexpectedClientError
43
+ | SDKValidationError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: MaesnCore,
55
+ request: operations.HandleConfigurationCallbackRequest,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ operations.HandleConfigurationCallbackResponse,
61
+ | MaesnError
62
+ | ResponseValidationError
63
+ | ConnectionError
64
+ | RequestAbortedError
65
+ | RequestTimeoutError
66
+ | InvalidRequestError
67
+ | UnexpectedClientError
68
+ | SDKValidationError
69
+ >,
70
+ APICall,
71
+ ]
72
+ > {
73
+ const parsed = safeParse(
74
+ request,
75
+ (value) =>
76
+ z.parse(
77
+ operations.HandleConfigurationCallbackRequest$outboundSchema,
78
+ value,
79
+ ),
80
+ "Input validation failed",
81
+ );
82
+ if (!parsed.ok) {
83
+ return [parsed, { status: "invalid" }];
84
+ }
85
+ const payload = parsed.value;
86
+ const body = null;
87
+
88
+ const pathParams = {
89
+ code: encodeSimple("code", payload.code, {
90
+ explode: false,
91
+ charEncoding: "percent",
92
+ }),
93
+ };
94
+ const path = pathToFunc("/events/configuration/callback/{code}")(pathParams);
95
+
96
+ const headers = new Headers(compactMap({
97
+ Accept: "application/json",
98
+ }));
99
+
100
+ const securityInput = await extractSecurity(client._options.security);
101
+ const requestSecurity = resolveGlobalSecurity(securityInput);
102
+
103
+ const context = {
104
+ options: client._options,
105
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
106
+ operationID: "handleConfigurationCallback",
107
+ oAuth2Scopes: null,
108
+
109
+ resolvedSecurity: requestSecurity,
110
+
111
+ securitySource: client._options.security,
112
+ retryConfig: options?.retries
113
+ || client._options.retryConfig
114
+ || { strategy: "none" },
115
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
116
+ };
117
+
118
+ const requestRes = client._createRequest(context, {
119
+ security: requestSecurity,
120
+ method: "POST",
121
+ baseURL: options?.serverURL,
122
+ path: path,
123
+ headers: headers,
124
+ body: body,
125
+ userAgent: client._options.userAgent,
126
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
127
+ }, options);
128
+ if (!requestRes.ok) {
129
+ return [requestRes, { status: "invalid" }];
130
+ }
131
+ const req = requestRes.value;
132
+
133
+ const doResult = await client._do(req, {
134
+ context,
135
+ isErrorStatusCode: (statusCode: number) =>
136
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
137
+ retryConfig: context.retryConfig,
138
+ retryCodes: context.retryCodes,
139
+ });
140
+ if (!doResult.ok) {
141
+ return [doResult, { status: "request-error", request: req }];
142
+ }
143
+ const response = doResult.value;
144
+
145
+ const [result] = await M.match<
146
+ operations.HandleConfigurationCallbackResponse,
147
+ | MaesnError
148
+ | ResponseValidationError
149
+ | ConnectionError
150
+ | RequestAbortedError
151
+ | RequestTimeoutError
152
+ | InvalidRequestError
153
+ | UnexpectedClientError
154
+ | SDKValidationError
155
+ >(
156
+ M.json(202, operations.HandleConfigurationCallbackResponse$inboundSchema),
157
+ M.fail("4XX"),
158
+ M.fail("5XX"),
159
+ )(response, req);
160
+ if (!result.ok) {
161
+ return [result, { status: "complete", request: req, response }];
162
+ }
163
+
164
+ return [result, { status: "complete", request: req, response }];
165
+ }
@@ -0,0 +1,153 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MaesnCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/http-client-errors.js";
19
+ import { MaesnError } from "../models/errors/maesn-error.js";
20
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
21
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
22
+ import * as operations from "../models/operations/index.js";
23
+ import { APICall, APIPromise } from "../types/async.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ /**
27
+ * Health check
28
+ *
29
+ * @remarks
30
+ * Returns 200 if the service is up.
31
+ */
32
+ export function healthCheck(
33
+ client: MaesnCore,
34
+ options?: RequestOptions,
35
+ ): APIPromise<
36
+ Result<
37
+ operations.CheckResponse,
38
+ | MaesnError
39
+ | ResponseValidationError
40
+ | ConnectionError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | InvalidRequestError
44
+ | UnexpectedClientError
45
+ | SDKValidationError
46
+ >
47
+ > {
48
+ return new APIPromise($do(
49
+ client,
50
+ options,
51
+ ));
52
+ }
53
+
54
+ async function $do(
55
+ client: MaesnCore,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ operations.CheckResponse,
61
+ | MaesnError
62
+ | ResponseValidationError
63
+ | ConnectionError
64
+ | RequestAbortedError
65
+ | RequestTimeoutError
66
+ | InvalidRequestError
67
+ | UnexpectedClientError
68
+ | SDKValidationError
69
+ >,
70
+ APICall,
71
+ ]
72
+ > {
73
+ const path = pathToFunc("/health")();
74
+
75
+ const headers = new Headers(compactMap({
76
+ Accept: "application/json",
77
+ }));
78
+
79
+ const securityInput = await extractSecurity(client._options.security);
80
+ const requestSecurity = resolveGlobalSecurity(securityInput);
81
+
82
+ const context = {
83
+ options: client._options,
84
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
85
+ operationID: "check",
86
+ oAuth2Scopes: null,
87
+
88
+ resolvedSecurity: requestSecurity,
89
+
90
+ securitySource: client._options.security,
91
+ retryConfig: options?.retries
92
+ || client._options.retryConfig
93
+ || {
94
+ strategy: "backoff",
95
+ backoff: {
96
+ initialInterval: 500,
97
+ maxInterval: 60000,
98
+ exponent: 1.5,
99
+ maxElapsedTime: 3600000,
100
+ },
101
+ retryConnectionErrors: true,
102
+ }
103
+ || { strategy: "none" },
104
+ retryCodes: options?.retryCodes || ["5XX"],
105
+ };
106
+
107
+ const requestRes = client._createRequest(context, {
108
+ security: requestSecurity,
109
+ method: "GET",
110
+ baseURL: options?.serverURL,
111
+ path: path,
112
+ headers: headers,
113
+ userAgent: client._options.userAgent,
114
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
115
+ }, options);
116
+ if (!requestRes.ok) {
117
+ return [requestRes, { status: "invalid" }];
118
+ }
119
+ const req = requestRes.value;
120
+
121
+ const doResult = await client._do(req, {
122
+ context,
123
+ isErrorStatusCode: (statusCode: number) =>
124
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
125
+ retryConfig: context.retryConfig,
126
+ retryCodes: context.retryCodes,
127
+ });
128
+ if (!doResult.ok) {
129
+ return [doResult, { status: "request-error", request: req }];
130
+ }
131
+ const response = doResult.value;
132
+
133
+ const [result] = await M.match<
134
+ operations.CheckResponse,
135
+ | MaesnError
136
+ | ResponseValidationError
137
+ | ConnectionError
138
+ | RequestAbortedError
139
+ | RequestTimeoutError
140
+ | InvalidRequestError
141
+ | UnexpectedClientError
142
+ | SDKValidationError
143
+ >(
144
+ M.json(200, operations.CheckResponse$inboundSchema),
145
+ M.fail("4XX"),
146
+ M.fail("5XX"),
147
+ )(response, req);
148
+ if (!result.ok) {
149
+ return [result, { status: "complete", request: req, response }];
150
+ }
151
+
152
+ return [result, { status: "complete", request: req, response }];
153
+ }
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v4-mini";
6
6
  import { MaesnCore } from "../core.js";
7
7
  import { encodeJSON } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -81,7 +82,7 @@ async function $do(
81
82
  const payload = parsed.value;
82
83
  const body = encodeJSON("body", payload, { explode: true });
83
84
 
84
- const path = pathToFunc("/add-callback-urls")();
85
+ const path = pathToFunc("/tenants/add-callback-urls")();
85
86
 
86
87
  const headers = new Headers(compactMap({
87
88
  "Content-Type": "application/json",
@@ -123,7 +124,8 @@ async function $do(
123
124
 
124
125
  const doResult = await client._do(req, {
125
126
  context,
126
- errorCodes: ["4XX", "5XX"],
127
+ isErrorStatusCode: (statusCode: number) =>
128
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
127
129
  retryConfig: context.retryConfig,
128
130
  retryCodes: context.retryCodes,
129
131
  });
@@ -0,0 +1,147 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { MaesnCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ ConnectionError,
14
+ InvalidRequestError,
15
+ RequestAbortedError,
16
+ RequestTimeoutError,
17
+ UnexpectedClientError,
18
+ } from "../models/errors/http-client-errors.js";
19
+ import { MaesnError } from "../models/errors/maesn-error.js";
20
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
21
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
22
+ import * as models from "../models/index.js";
23
+ import { APICall, APIPromise } from "../types/async.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ export function tenantsCountEndUsersBySystem(
27
+ client: MaesnCore,
28
+ options?: RequestOptions,
29
+ ): APIPromise<
30
+ Result<
31
+ models.BaseResponseDto,
32
+ | MaesnError
33
+ | ResponseValidationError
34
+ | ConnectionError
35
+ | RequestAbortedError
36
+ | RequestTimeoutError
37
+ | InvalidRequestError
38
+ | UnexpectedClientError
39
+ | SDKValidationError
40
+ >
41
+ > {
42
+ return new APIPromise($do(
43
+ client,
44
+ options,
45
+ ));
46
+ }
47
+
48
+ async function $do(
49
+ client: MaesnCore,
50
+ options?: RequestOptions,
51
+ ): Promise<
52
+ [
53
+ Result<
54
+ models.BaseResponseDto,
55
+ | MaesnError
56
+ | ResponseValidationError
57
+ | ConnectionError
58
+ | RequestAbortedError
59
+ | RequestTimeoutError
60
+ | InvalidRequestError
61
+ | UnexpectedClientError
62
+ | SDKValidationError
63
+ >,
64
+ APICall,
65
+ ]
66
+ > {
67
+ const path = pathToFunc("/tenants/count-end-users-by-system")();
68
+
69
+ const headers = new Headers(compactMap({
70
+ Accept: "application/json",
71
+ }));
72
+
73
+ const securityInput = await extractSecurity(client._options.security);
74
+ const requestSecurity = resolveGlobalSecurity(securityInput);
75
+
76
+ const context = {
77
+ options: client._options,
78
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
79
+ operationID: "countEndUsersBySystem",
80
+ oAuth2Scopes: null,
81
+
82
+ resolvedSecurity: requestSecurity,
83
+
84
+ securitySource: client._options.security,
85
+ retryConfig: options?.retries
86
+ || client._options.retryConfig
87
+ || {
88
+ strategy: "backoff",
89
+ backoff: {
90
+ initialInterval: 500,
91
+ maxInterval: 60000,
92
+ exponent: 1.5,
93
+ maxElapsedTime: 3600000,
94
+ },
95
+ retryConnectionErrors: true,
96
+ }
97
+ || { strategy: "none" },
98
+ retryCodes: options?.retryCodes || ["5XX"],
99
+ };
100
+
101
+ const requestRes = client._createRequest(context, {
102
+ security: requestSecurity,
103
+ method: "GET",
104
+ baseURL: options?.serverURL,
105
+ path: path,
106
+ headers: headers,
107
+ userAgent: client._options.userAgent,
108
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
109
+ }, options);
110
+ if (!requestRes.ok) {
111
+ return [requestRes, { status: "invalid" }];
112
+ }
113
+ const req = requestRes.value;
114
+
115
+ const doResult = await client._do(req, {
116
+ context,
117
+ isErrorStatusCode: (statusCode: number) =>
118
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
119
+ retryConfig: context.retryConfig,
120
+ retryCodes: context.retryCodes,
121
+ });
122
+ if (!doResult.ok) {
123
+ return [doResult, { status: "request-error", request: req }];
124
+ }
125
+ const response = doResult.value;
126
+
127
+ const [result] = await M.match<
128
+ models.BaseResponseDto,
129
+ | MaesnError
130
+ | ResponseValidationError
131
+ | ConnectionError
132
+ | RequestAbortedError
133
+ | RequestTimeoutError
134
+ | InvalidRequestError
135
+ | UnexpectedClientError
136
+ | SDKValidationError
137
+ >(
138
+ M.json(200, models.BaseResponseDto$inboundSchema),
139
+ M.fail("4XX"),
140
+ M.fail("5XX"),
141
+ )(response, req);
142
+ if (!result.ok) {
143
+ return [result, { status: "complete", request: req, response }];
144
+ }
145
+
146
+ return [result, { status: "complete", request: req, response }];
147
+ }
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import { MaesnCore } from "../core.js";
6
+ import { matchStatusCode } from "../lib/http.js";
6
7
  import * as M from "../lib/matchers.js";
7
8
  import { compactMap } from "../lib/primitives.js";
8
9
  import { RequestOptions } from "../lib/sdks.js";
@@ -63,7 +64,7 @@ async function $do(
63
64
  APICall,
64
65
  ]
65
66
  > {
66
- const path = pathToFunc("/delete-end-user")();
67
+ const path = pathToFunc("/tenants/delete-end-user")();
67
68
 
68
69
  const headers = new Headers(compactMap({
69
70
  Accept: "application/json",
@@ -103,7 +104,8 @@ async function $do(
103
104
 
104
105
  const doResult = await client._do(req, {
105
106
  context,
106
- errorCodes: ["4XX", "5XX"],
107
+ isErrorStatusCode: (statusCode: number) =>
108
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
107
109
  retryConfig: context.retryConfig,
108
110
  retryCodes: context.retryCodes,
109
111
  });
@@ -0,0 +1,165 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { MaesnCore } from "../core.js";
7
+ import { encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
9
+ import * as M from "../lib/matchers.js";
10
+ import { compactMap } from "../lib/primitives.js";
11
+ import { safeParse } from "../lib/schemas.js";
12
+ import { RequestOptions } from "../lib/sdks.js";
13
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
14
+ import { pathToFunc } from "../lib/url.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/http-client-errors.js";
22
+ import { MaesnError } from "../models/errors/maesn-error.js";
23
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
24
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+ import * as types$ from "../types/primitives.js";
29
+
30
+ export function tenantsDeleteRegisteredSystem(
31
+ client: MaesnCore,
32
+ request: operations.DeleteRegisteredSystemRequest,
33
+ options?: RequestOptions,
34
+ ): APIPromise<
35
+ Result<
36
+ string,
37
+ | MaesnError
38
+ | ResponseValidationError
39
+ | ConnectionError
40
+ | RequestAbortedError
41
+ | RequestTimeoutError
42
+ | InvalidRequestError
43
+ | UnexpectedClientError
44
+ | SDKValidationError
45
+ >
46
+ > {
47
+ return new APIPromise($do(
48
+ client,
49
+ request,
50
+ options,
51
+ ));
52
+ }
53
+
54
+ async function $do(
55
+ client: MaesnCore,
56
+ request: operations.DeleteRegisteredSystemRequest,
57
+ options?: RequestOptions,
58
+ ): Promise<
59
+ [
60
+ Result<
61
+ string,
62
+ | MaesnError
63
+ | ResponseValidationError
64
+ | ConnectionError
65
+ | RequestAbortedError
66
+ | RequestTimeoutError
67
+ | InvalidRequestError
68
+ | UnexpectedClientError
69
+ | SDKValidationError
70
+ >,
71
+ APICall,
72
+ ]
73
+ > {
74
+ const parsed = safeParse(
75
+ request,
76
+ (value) =>
77
+ z.parse(operations.DeleteRegisteredSystemRequest$outboundSchema, value),
78
+ "Input validation failed",
79
+ );
80
+ if (!parsed.ok) {
81
+ return [parsed, { status: "invalid" }];
82
+ }
83
+ const payload = parsed.value;
84
+ const body = null;
85
+
86
+ const pathParams = {
87
+ targetSystem: encodeSimple("targetSystem", payload.targetSystem, {
88
+ explode: false,
89
+ charEncoding: "percent",
90
+ }),
91
+ };
92
+ const path = pathToFunc("/tenants/delete-registered-system/{targetSystem}")(
93
+ pathParams,
94
+ );
95
+
96
+ const headers = new Headers(compactMap({
97
+ Accept: "application/json",
98
+ }));
99
+
100
+ const securityInput = await extractSecurity(client._options.security);
101
+ const requestSecurity = resolveGlobalSecurity(securityInput);
102
+
103
+ const context = {
104
+ options: client._options,
105
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
106
+ operationID: "deleteRegisteredSystem",
107
+ oAuth2Scopes: null,
108
+
109
+ resolvedSecurity: requestSecurity,
110
+
111
+ securitySource: client._options.security,
112
+ retryConfig: options?.retries
113
+ || client._options.retryConfig
114
+ || { strategy: "none" },
115
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
116
+ };
117
+
118
+ const requestRes = client._createRequest(context, {
119
+ security: requestSecurity,
120
+ method: "DELETE",
121
+ baseURL: options?.serverURL,
122
+ path: path,
123
+ headers: headers,
124
+ body: body,
125
+ userAgent: client._options.userAgent,
126
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
127
+ }, options);
128
+ if (!requestRes.ok) {
129
+ return [requestRes, { status: "invalid" }];
130
+ }
131
+ const req = requestRes.value;
132
+
133
+ const doResult = await client._do(req, {
134
+ context,
135
+ isErrorStatusCode: (statusCode: number) =>
136
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
137
+ retryConfig: context.retryConfig,
138
+ retryCodes: context.retryCodes,
139
+ });
140
+ if (!doResult.ok) {
141
+ return [doResult, { status: "request-error", request: req }];
142
+ }
143
+ const response = doResult.value;
144
+
145
+ const [result] = await M.match<
146
+ string,
147
+ | MaesnError
148
+ | ResponseValidationError
149
+ | ConnectionError
150
+ | RequestAbortedError
151
+ | RequestTimeoutError
152
+ | InvalidRequestError
153
+ | UnexpectedClientError
154
+ | SDKValidationError
155
+ >(
156
+ M.json(200, types$.string()),
157
+ M.fail("4XX"),
158
+ M.fail("5XX"),
159
+ )(response, req);
160
+ if (!result.ok) {
161
+ return [result, { status: "complete", request: req, response }];
162
+ }
163
+
164
+ return [result, { status: "complete", request: req, response }];
165
+ }