@maesn/typescript-sdk 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (424) hide show
  1. package/README.md +38 -116
  2. package/esm/funcs/webhooks-get-webhooks.js +1 -1
  3. package/esm/funcs/webhooks-get-webhooks.js.map +1 -1
  4. package/esm/lib/config.d.ts +3 -3
  5. package/esm/lib/config.js +3 -3
  6. package/esm/models/errors/index.d.ts +0 -1
  7. package/esm/models/errors/index.d.ts.map +1 -1
  8. package/esm/models/errors/index.js +0 -1
  9. package/esm/models/errors/index.js.map +1 -1
  10. package/esm/models/index.d.ts +0 -7
  11. package/esm/models/index.d.ts.map +1 -1
  12. package/esm/models/index.js +0 -7
  13. package/esm/models/index.js.map +1 -1
  14. package/esm/models/operations/index.d.ts +0 -29
  15. package/esm/models/operations/index.d.ts.map +1 -1
  16. package/esm/models/operations/index.js +0 -29
  17. package/esm/models/operations/index.js.map +1 -1
  18. package/esm/sdk/accounting.d.ts +0 -7
  19. package/esm/sdk/accounting.d.ts.map +1 -1
  20. package/esm/sdk/accounting.js +0 -24
  21. package/esm/sdk/accounting.js.map +1 -1
  22. package/esm/sdk/auth.d.ts +0 -9
  23. package/esm/sdk/auth.d.ts.map +1 -1
  24. package/esm/sdk/auth.js +0 -36
  25. package/esm/sdk/auth.js.map +1 -1
  26. package/esm/sdk/sdk.d.ts +0 -6
  27. package/esm/sdk/sdk.d.ts.map +1 -1
  28. package/esm/sdk/sdk.js +0 -10
  29. package/esm/sdk/sdk.js.map +1 -1
  30. package/esm/sdk/tenants.d.ts +0 -11
  31. package/esm/sdk/tenants.d.ts.map +1 -1
  32. package/esm/sdk/tenants.js +0 -44
  33. package/esm/sdk/tenants.js.map +1 -1
  34. package/esm/sdk/webhooks.d.ts +1 -7
  35. package/esm/sdk/webhooks.d.ts.map +1 -1
  36. package/esm/sdk/webhooks.js +3 -23
  37. package/esm/sdk/webhooks.js.map +1 -1
  38. package/jsr.json +1 -1
  39. package/package.json +1 -1
  40. package/src/funcs/webhooks-get-webhooks.ts +1 -1
  41. package/src/lib/config.ts +3 -3
  42. package/src/models/errors/index.ts +0 -1
  43. package/src/models/index.ts +0 -7
  44. package/src/models/operations/index.ts +0 -29
  45. package/src/sdk/accounting.ts +0 -71
  46. package/src/sdk/auth.ts +0 -104
  47. package/src/sdk/sdk.ts +0 -12
  48. package/src/sdk/tenants.ts +0 -116
  49. package/src/sdk/webhooks.ts +8 -69
  50. package/esm/funcs/accounting-create-bookings.d.ts +0 -11
  51. package/esm/funcs/accounting-create-bookings.d.ts.map +0 -1
  52. package/esm/funcs/accounting-create-bookings.js +0 -76
  53. package/esm/funcs/accounting-create-bookings.js.map +0 -1
  54. package/esm/funcs/accounting-create-contacts-v1.d.ts +0 -11
  55. package/esm/funcs/accounting-create-contacts-v1.d.ts.map +0 -1
  56. package/esm/funcs/accounting-create-contacts-v1.js +0 -76
  57. package/esm/funcs/accounting-create-contacts-v1.js.map +0 -1
  58. package/esm/funcs/accounting-create-event-subscriptions.d.ts +0 -12
  59. package/esm/funcs/accounting-create-event-subscriptions.d.ts.map +0 -1
  60. package/esm/funcs/accounting-create-event-subscriptions.js +0 -77
  61. package/esm/funcs/accounting-create-event-subscriptions.js.map +0 -1
  62. package/esm/funcs/accounting-delete-event-subscriptions.d.ts +0 -12
  63. package/esm/funcs/accounting-delete-event-subscriptions.d.ts.map +0 -1
  64. package/esm/funcs/accounting-delete-event-subscriptions.js +0 -79
  65. package/esm/funcs/accounting-delete-event-subscriptions.js.map +0 -1
  66. package/esm/funcs/accounting-get-profile.d.ts +0 -11
  67. package/esm/funcs/accounting-get-profile.d.ts.map +0 -1
  68. package/esm/funcs/accounting-get-profile.js +0 -71
  69. package/esm/funcs/accounting-get-profile.js.map +0 -1
  70. package/esm/funcs/accounting-patch-line-item.d.ts +0 -11
  71. package/esm/funcs/accounting-patch-line-item.d.ts.map +0 -1
  72. package/esm/funcs/accounting-patch-line-item.js +0 -87
  73. package/esm/funcs/accounting-patch-line-item.js.map +0 -1
  74. package/esm/funcs/auth-api-key-confirmation.d.ts +0 -11
  75. package/esm/funcs/auth-api-key-confirmation.d.ts.map +0 -1
  76. package/esm/funcs/auth-api-key-confirmation.js +0 -61
  77. package/esm/funcs/auth-api-key-confirmation.js.map +0 -1
  78. package/esm/funcs/auth-callback.d.ts +0 -11
  79. package/esm/funcs/auth-callback.d.ts.map +0 -1
  80. package/esm/funcs/auth-callback.js +0 -94
  81. package/esm/funcs/auth-callback.js.map +0 -1
  82. package/esm/funcs/auth-cancel.d.ts +0 -11
  83. package/esm/funcs/auth-cancel.d.ts.map +0 -1
  84. package/esm/funcs/auth-cancel.js +0 -61
  85. package/esm/funcs/auth-cancel.js.map +0 -1
  86. package/esm/funcs/auth-get-companies-flow.d.ts +0 -11
  87. package/esm/funcs/auth-get-companies-flow.d.ts.map +0 -1
  88. package/esm/funcs/auth-get-companies-flow.js +0 -85
  89. package/esm/funcs/auth-get-companies-flow.js.map +0 -1
  90. package/esm/funcs/auth-get-environment-page.d.ts +0 -11
  91. package/esm/funcs/auth-get-environment-page.d.ts.map +0 -1
  92. package/esm/funcs/auth-get-environment-page.js +0 -86
  93. package/esm/funcs/auth-get-environment-page.js.map +0 -1
  94. package/esm/funcs/auth-get-submit-page.d.ts +0 -11
  95. package/esm/funcs/auth-get-submit-page.d.ts.map +0 -1
  96. package/esm/funcs/auth-get-submit-page.js +0 -85
  97. package/esm/funcs/auth-get-submit-page.js.map +0 -1
  98. package/esm/funcs/auth-long-token.d.ts +0 -11
  99. package/esm/funcs/auth-long-token.d.ts.map +0 -1
  100. package/esm/funcs/auth-long-token.js +0 -88
  101. package/esm/funcs/auth-long-token.js.map +0 -1
  102. package/esm/funcs/auth-set-end-user-selections.d.ts +0 -11
  103. package/esm/funcs/auth-set-end-user-selections.d.ts.map +0 -1
  104. package/esm/funcs/auth-set-end-user-selections.js +0 -77
  105. package/esm/funcs/auth-set-end-user-selections.js.map +0 -1
  106. package/esm/funcs/auth-test.d.ts +0 -11
  107. package/esm/funcs/auth-test.d.ts.map +0 -1
  108. package/esm/funcs/auth-test.js +0 -85
  109. package/esm/funcs/auth-test.js.map +0 -1
  110. package/esm/funcs/events-get-code.d.ts +0 -11
  111. package/esm/funcs/events-get-code.d.ts.map +0 -1
  112. package/esm/funcs/events-get-code.js +0 -77
  113. package/esm/funcs/events-get-code.js.map +0 -1
  114. package/esm/funcs/events-handle-callback.d.ts +0 -11
  115. package/esm/funcs/events-handle-callback.d.ts.map +0 -1
  116. package/esm/funcs/events-handle-callback.js +0 -77
  117. package/esm/funcs/events-handle-callback.js.map +0 -1
  118. package/esm/funcs/events-handle-configuration-callback.d.ts +0 -11
  119. package/esm/funcs/events-handle-configuration-callback.d.ts.map +0 -1
  120. package/esm/funcs/events-handle-configuration-callback.js +0 -77
  121. package/esm/funcs/events-handle-configuration-callback.js.map +0 -1
  122. package/esm/funcs/health-check.d.ts +0 -17
  123. package/esm/funcs/health-check.d.ts.map +0 -1
  124. package/esm/funcs/health-check.js +0 -77
  125. package/esm/funcs/health-check.js.map +0 -1
  126. package/esm/funcs/health-details.d.ts +0 -18
  127. package/esm/funcs/health-details.d.ts.map +0 -1
  128. package/esm/funcs/health-details.js +0 -81
  129. package/esm/funcs/health-details.js.map +0 -1
  130. package/esm/funcs/tenants-count-end-users-by-system.d.ts +0 -11
  131. package/esm/funcs/tenants-count-end-users-by-system.d.ts.map +0 -1
  132. package/esm/funcs/tenants-count-end-users-by-system.js +0 -71
  133. package/esm/funcs/tenants-count-end-users-by-system.js.map +0 -1
  134. package/esm/funcs/tenants-delete-registered-system.d.ts +0 -11
  135. package/esm/funcs/tenants-delete-registered-system.d.ts.map +0 -1
  136. package/esm/funcs/tenants-delete-registered-system.js +0 -78
  137. package/esm/funcs/tenants-delete-registered-system.js.map +0 -1
  138. package/esm/funcs/tenants-get-all-active-end-users.d.ts +0 -11
  139. package/esm/funcs/tenants-get-all-active-end-users.d.ts.map +0 -1
  140. package/esm/funcs/tenants-get-all-active-end-users.js +0 -71
  141. package/esm/funcs/tenants-get-all-active-end-users.js.map +0 -1
  142. package/esm/funcs/tenants-get-callback-url.d.ts +0 -11
  143. package/esm/funcs/tenants-get-callback-url.d.ts.map +0 -1
  144. package/esm/funcs/tenants-get-callback-url.js +0 -71
  145. package/esm/funcs/tenants-get-callback-url.js.map +0 -1
  146. package/esm/funcs/tenants-get-registered-systems-masked.d.ts +0 -11
  147. package/esm/funcs/tenants-get-registered-systems-masked.d.ts.map +0 -1
  148. package/esm/funcs/tenants-get-registered-systems-masked.js +0 -71
  149. package/esm/funcs/tenants-get-registered-systems-masked.js.map +0 -1
  150. package/esm/funcs/tenants-get-registered-systems.d.ts +0 -11
  151. package/esm/funcs/tenants-get-registered-systems.d.ts.map +0 -1
  152. package/esm/funcs/tenants-get-registered-systems.js +0 -71
  153. package/esm/funcs/tenants-get-registered-systems.js.map +0 -1
  154. package/esm/funcs/tenants-get-submission-page-style-by-key.d.ts +0 -11
  155. package/esm/funcs/tenants-get-submission-page-style-by-key.d.ts.map +0 -1
  156. package/esm/funcs/tenants-get-submission-page-style-by-key.js +0 -71
  157. package/esm/funcs/tenants-get-submission-page-style-by-key.js.map +0 -1
  158. package/esm/funcs/tenants-get-submission-page-style.d.ts +0 -11
  159. package/esm/funcs/tenants-get-submission-page-style.d.ts.map +0 -1
  160. package/esm/funcs/tenants-get-submission-page-style.js +0 -85
  161. package/esm/funcs/tenants-get-submission-page-style.js.map +0 -1
  162. package/esm/funcs/tenants-get-target-system-requirements.d.ts +0 -11
  163. package/esm/funcs/tenants-get-target-system-requirements.d.ts.map +0 -1
  164. package/esm/funcs/tenants-get-target-system-requirements.js +0 -71
  165. package/esm/funcs/tenants-get-target-system-requirements.js.map +0 -1
  166. package/esm/funcs/tenants-get-target-system-values.d.ts +0 -11
  167. package/esm/funcs/tenants-get-target-system-values.d.ts.map +0 -1
  168. package/esm/funcs/tenants-get-target-system-values.js +0 -71
  169. package/esm/funcs/tenants-get-target-system-values.js.map +0 -1
  170. package/esm/funcs/tenants-update-submission-page-style.d.ts +0 -12
  171. package/esm/funcs/tenants-update-submission-page-style.d.ts.map +0 -1
  172. package/esm/funcs/tenants-update-submission-page-style.js +0 -73
  173. package/esm/funcs/tenants-update-submission-page-style.js.map +0 -1
  174. package/esm/funcs/webhooks-create-web-hook-tenant.d.ts +0 -12
  175. package/esm/funcs/webhooks-create-web-hook-tenant.d.ts.map +0 -1
  176. package/esm/funcs/webhooks-create-web-hook-tenant.js +0 -73
  177. package/esm/funcs/webhooks-create-web-hook-tenant.js.map +0 -1
  178. package/esm/funcs/webhooks-create-webhook-config.d.ts +0 -12
  179. package/esm/funcs/webhooks-create-webhook-config.d.ts.map +0 -1
  180. package/esm/funcs/webhooks-create-webhook-config.js +0 -73
  181. package/esm/funcs/webhooks-create-webhook-config.js.map +0 -1
  182. package/esm/funcs/webhooks-create-webhook-end-user.d.ts +0 -11
  183. package/esm/funcs/webhooks-create-webhook-end-user.d.ts.map +0 -1
  184. package/esm/funcs/webhooks-create-webhook-end-user.js +0 -77
  185. package/esm/funcs/webhooks-create-webhook-end-user.js.map +0 -1
  186. package/esm/funcs/webhooks-delete-webhook-end-user.d.ts +0 -11
  187. package/esm/funcs/webhooks-delete-webhook-end-user.d.ts.map +0 -1
  188. package/esm/funcs/webhooks-delete-webhook-end-user.js +0 -82
  189. package/esm/funcs/webhooks-delete-webhook-end-user.js.map +0 -1
  190. package/esm/funcs/webhooks-delete-webhook-tenant.d.ts +0 -11
  191. package/esm/funcs/webhooks-delete-webhook-tenant.d.ts.map +0 -1
  192. package/esm/funcs/webhooks-delete-webhook-tenant.js +0 -78
  193. package/esm/funcs/webhooks-delete-webhook-tenant.js.map +0 -1
  194. package/esm/models/booking-entry-request-dto.d.ts +0 -216
  195. package/esm/models/booking-entry-request-dto.d.ts.map +0 -1
  196. package/esm/models/booking-entry-request-dto.js +0 -199
  197. package/esm/models/booking-entry-request-dto.js.map +0 -1
  198. package/esm/models/booking-entry-response-dto.d.ts +0 -202
  199. package/esm/models/booking-entry-response-dto.d.ts.map +0 -1
  200. package/esm/models/booking-entry-response-dto.js +0 -203
  201. package/esm/models/booking-entry-response-dto.js.map +0 -1
  202. package/esm/models/bookings-response-dto.d.ts +0 -28
  203. package/esm/models/bookings-response-dto.d.ts.map +0 -1
  204. package/esm/models/bookings-response-dto.js +0 -31
  205. package/esm/models/bookings-response-dto.js.map +0 -1
  206. package/esm/models/create-bookings-request-dto.d.ts +0 -30
  207. package/esm/models/create-bookings-request-dto.d.ts.map +0 -1
  208. package/esm/models/create-bookings-request-dto.js +0 -25
  209. package/esm/models/create-bookings-request-dto.js.map +0 -1
  210. package/esm/models/create-event-subscription-request-dto.d.ts +0 -14
  211. package/esm/models/create-event-subscription-request-dto.d.ts.map +0 -1
  212. package/esm/models/create-event-subscription-request-dto.js +0 -13
  213. package/esm/models/create-event-subscription-request-dto.js.map +0 -1
  214. package/esm/models/errors/details.d.ts +0 -43
  215. package/esm/models/errors/details.d.ts.map +0 -1
  216. package/esm/models/errors/details.js +0 -51
  217. package/esm/models/errors/details.js.map +0 -1
  218. package/esm/models/operations/api-key-confirmation.d.ts +0 -13
  219. package/esm/models/operations/api-key-confirmation.d.ts.map +0 -1
  220. package/esm/models/operations/api-key-confirmation.js +0 -14
  221. package/esm/models/operations/api-key-confirmation.js.map +0 -1
  222. package/esm/models/operations/callback.d.ts +0 -43
  223. package/esm/models/operations/callback.d.ts.map +0 -1
  224. package/esm/models/operations/callback.js +0 -30
  225. package/esm/models/operations/callback.js.map +0 -1
  226. package/esm/models/operations/cancel.d.ts +0 -13
  227. package/esm/models/operations/cancel.d.ts.map +0 -1
  228. package/esm/models/operations/cancel.js +0 -14
  229. package/esm/models/operations/cancel.js.map +0 -1
  230. package/esm/models/operations/check.d.ts +0 -11
  231. package/esm/models/operations/check.d.ts.map +0 -1
  232. package/esm/models/operations/check.js +0 -11
  233. package/esm/models/operations/check.js.map +0 -1
  234. package/esm/models/operations/create-bookings.d.ts +0 -56
  235. package/esm/models/operations/create-bookings.d.ts.map +0 -1
  236. package/esm/models/operations/create-bookings.js +0 -54
  237. package/esm/models/operations/create-bookings.js.map +0 -1
  238. package/esm/models/operations/create-contacts-v1.d.ts +0 -56
  239. package/esm/models/operations/create-contacts-v1.d.ts.map +0 -1
  240. package/esm/models/operations/create-contacts-v1.js +0 -54
  241. package/esm/models/operations/create-contacts-v1.js.map +0 -1
  242. package/esm/models/operations/create-event-subscriptions.d.ts +0 -18
  243. package/esm/models/operations/create-event-subscriptions.d.ts.map +0 -1
  244. package/esm/models/operations/create-event-subscriptions.js +0 -14
  245. package/esm/models/operations/create-event-subscriptions.js.map +0 -1
  246. package/esm/models/operations/create-web-hook-tenant.d.ts +0 -41
  247. package/esm/models/operations/create-web-hook-tenant.d.ts.map +0 -1
  248. package/esm/models/operations/create-web-hook-tenant.js +0 -46
  249. package/esm/models/operations/create-web-hook-tenant.js.map +0 -1
  250. package/esm/models/operations/create-webhook-config.d.ts +0 -41
  251. package/esm/models/operations/create-webhook-config.d.ts.map +0 -1
  252. package/esm/models/operations/create-webhook-config.js +0 -46
  253. package/esm/models/operations/create-webhook-config.js.map +0 -1
  254. package/esm/models/operations/create-webhook-end-user.d.ts +0 -61
  255. package/esm/models/operations/create-webhook-end-user.d.ts.map +0 -1
  256. package/esm/models/operations/create-webhook-end-user.js +0 -55
  257. package/esm/models/operations/create-webhook-end-user.js.map +0 -1
  258. package/esm/models/operations/delete-event-subscriptions.d.ts +0 -17
  259. package/esm/models/operations/delete-event-subscriptions.d.ts.map +0 -1
  260. package/esm/models/operations/delete-event-subscriptions.js +0 -13
  261. package/esm/models/operations/delete-event-subscriptions.js.map +0 -1
  262. package/esm/models/operations/delete-registered-system.d.ts +0 -12
  263. package/esm/models/operations/delete-registered-system.d.ts.map +0 -1
  264. package/esm/models/operations/delete-registered-system.js +0 -12
  265. package/esm/models/operations/delete-registered-system.js.map +0 -1
  266. package/esm/models/operations/delete-webhook-end-user.d.ts +0 -31
  267. package/esm/models/operations/delete-webhook-end-user.d.ts.map +0 -1
  268. package/esm/models/operations/delete-webhook-end-user.js +0 -20
  269. package/esm/models/operations/delete-webhook-end-user.js.map +0 -1
  270. package/esm/models/operations/delete-webhook-tenant.d.ts +0 -12
  271. package/esm/models/operations/delete-webhook-tenant.d.ts.map +0 -1
  272. package/esm/models/operations/delete-webhook-tenant.js +0 -12
  273. package/esm/models/operations/delete-webhook-tenant.js.map +0 -1
  274. package/esm/models/operations/details.d.ts +0 -32
  275. package/esm/models/operations/details.d.ts.map +0 -1
  276. package/esm/models/operations/details.js +0 -34
  277. package/esm/models/operations/details.js.map +0 -1
  278. package/esm/models/operations/get-all-active-end-users.d.ts +0 -11
  279. package/esm/models/operations/get-all-active-end-users.d.ts.map +0 -1
  280. package/esm/models/operations/get-all-active-end-users.js +0 -11
  281. package/esm/models/operations/get-all-active-end-users.js.map +0 -1
  282. package/esm/models/operations/get-code.d.ts +0 -21
  283. package/esm/models/operations/get-code.d.ts.map +0 -1
  284. package/esm/models/operations/get-code.js +0 -18
  285. package/esm/models/operations/get-code.js.map +0 -1
  286. package/esm/models/operations/get-companies-flow.d.ts +0 -54
  287. package/esm/models/operations/get-companies-flow.d.ts.map +0 -1
  288. package/esm/models/operations/get-companies-flow.js +0 -53
  289. package/esm/models/operations/get-companies-flow.js.map +0 -1
  290. package/esm/models/operations/get-environment-page.d.ts +0 -29
  291. package/esm/models/operations/get-environment-page.d.ts.map +0 -1
  292. package/esm/models/operations/get-environment-page.js +0 -19
  293. package/esm/models/operations/get-environment-page.js.map +0 -1
  294. package/esm/models/operations/get-submission-page-style-by-key.d.ts +0 -11
  295. package/esm/models/operations/get-submission-page-style-by-key.d.ts.map +0 -1
  296. package/esm/models/operations/get-submission-page-style-by-key.js +0 -11
  297. package/esm/models/operations/get-submission-page-style-by-key.js.map +0 -1
  298. package/esm/models/operations/get-submission-page-style.d.ts +0 -24
  299. package/esm/models/operations/get-submission-page-style.d.ts.map +0 -1
  300. package/esm/models/operations/get-submission-page-style.js +0 -18
  301. package/esm/models/operations/get-submission-page-style.js.map +0 -1
  302. package/esm/models/operations/get-submit-page.d.ts +0 -26
  303. package/esm/models/operations/get-submit-page.d.ts.map +0 -1
  304. package/esm/models/operations/get-submit-page.js +0 -21
  305. package/esm/models/operations/get-submit-page.js.map +0 -1
  306. package/esm/models/operations/handle-callback.d.ts +0 -21
  307. package/esm/models/operations/handle-callback.d.ts.map +0 -1
  308. package/esm/models/operations/handle-callback.js +0 -18
  309. package/esm/models/operations/handle-callback.js.map +0 -1
  310. package/esm/models/operations/handle-configuration-callback.d.ts +0 -21
  311. package/esm/models/operations/handle-configuration-callback.d.ts.map +0 -1
  312. package/esm/models/operations/handle-configuration-callback.js +0 -18
  313. package/esm/models/operations/handle-configuration-callback.js.map +0 -1
  314. package/esm/models/operations/long-token.d.ts +0 -25
  315. package/esm/models/operations/long-token.d.ts.map +0 -1
  316. package/esm/models/operations/long-token.js +0 -14
  317. package/esm/models/operations/long-token.js.map +0 -1
  318. package/esm/models/operations/patch-line-item.d.ts +0 -65
  319. package/esm/models/operations/patch-line-item.d.ts.map +0 -1
  320. package/esm/models/operations/patch-line-item.js +0 -57
  321. package/esm/models/operations/patch-line-item.js.map +0 -1
  322. package/esm/models/operations/set-end-user-selections.d.ts +0 -36
  323. package/esm/models/operations/set-end-user-selections.d.ts.map +0 -1
  324. package/esm/models/operations/set-end-user-selections.js +0 -23
  325. package/esm/models/operations/set-end-user-selections.js.map +0 -1
  326. package/esm/models/operations/test.d.ts +0 -26
  327. package/esm/models/operations/test.d.ts.map +0 -1
  328. package/esm/models/operations/test.js +0 -21
  329. package/esm/models/operations/test.js.map +0 -1
  330. package/esm/models/operations/update-submission-page-style.d.ts +0 -11
  331. package/esm/models/operations/update-submission-page-style.d.ts.map +0 -1
  332. package/esm/models/operations/update-submission-page-style.js +0 -11
  333. package/esm/models/operations/update-submission-page-style.js.map +0 -1
  334. package/esm/models/patch-line-item-request-dto.d.ts +0 -46
  335. package/esm/models/patch-line-item-request-dto.d.ts.map +0 -1
  336. package/esm/models/patch-line-item-request-dto.js +0 -32
  337. package/esm/models/patch-line-item-request-dto.js.map +0 -1
  338. package/esm/models/submission-page-style-dto.d.ts +0 -28
  339. package/esm/models/submission-page-style-dto.d.ts.map +0 -1
  340. package/esm/models/submission-page-style-dto.js +0 -20
  341. package/esm/models/submission-page-style-dto.js.map +0 -1
  342. package/esm/sdk/events.d.ts +0 -8
  343. package/esm/sdk/events.d.ts.map +0 -1
  344. package/esm/sdk/events.js +0 -20
  345. package/esm/sdk/events.js.map +0 -1
  346. package/esm/sdk/health.d.ts +0 -19
  347. package/esm/sdk/health.d.ts.map +0 -1
  348. package/esm/sdk/health.js +0 -28
  349. package/esm/sdk/health.js.map +0 -1
  350. package/src/funcs/accounting-create-bookings.ts +0 -159
  351. package/src/funcs/accounting-create-contacts-v1.ts +0 -160
  352. package/src/funcs/accounting-create-event-subscriptions.ts +0 -161
  353. package/src/funcs/accounting-delete-event-subscriptions.ts +0 -169
  354. package/src/funcs/accounting-get-profile.ts +0 -145
  355. package/src/funcs/accounting-patch-line-item.ts +0 -172
  356. package/src/funcs/auth-api-key-confirmation.ts +0 -135
  357. package/src/funcs/auth-callback.ts +0 -177
  358. package/src/funcs/auth-cancel.ts +0 -135
  359. package/src/funcs/auth-get-companies-flow.ts +0 -172
  360. package/src/funcs/auth-get-environment-page.ts +0 -170
  361. package/src/funcs/auth-get-submit-page.ts +0 -168
  362. package/src/funcs/auth-long-token.ts +0 -171
  363. package/src/funcs/auth-set-end-user-selections.ts +0 -161
  364. package/src/funcs/auth-test.ts +0 -168
  365. package/src/funcs/events-get-code.ts +0 -159
  366. package/src/funcs/events-handle-callback.ts +0 -159
  367. package/src/funcs/events-handle-configuration-callback.ts +0 -163
  368. package/src/funcs/health-check.ts +0 -151
  369. package/src/funcs/health-details.ts +0 -160
  370. package/src/funcs/tenants-count-end-users-by-system.ts +0 -145
  371. package/src/funcs/tenants-delete-registered-system.ts +0 -163
  372. package/src/funcs/tenants-get-all-active-end-users.ts +0 -145
  373. package/src/funcs/tenants-get-callback-url.ts +0 -145
  374. package/src/funcs/tenants-get-registered-systems-masked.ts +0 -145
  375. package/src/funcs/tenants-get-registered-systems.ts +0 -145
  376. package/src/funcs/tenants-get-submission-page-style-by-key.ts +0 -145
  377. package/src/funcs/tenants-get-submission-page-style.ts +0 -169
  378. package/src/funcs/tenants-get-target-system-requirements.ts +0 -145
  379. package/src/funcs/tenants-get-target-system-values.ts +0 -145
  380. package/src/funcs/tenants-update-submission-page-style.ts +0 -155
  381. package/src/funcs/webhooks-create-web-hook-tenant.ts +0 -156
  382. package/src/funcs/webhooks-create-webhook-config.ts +0 -156
  383. package/src/funcs/webhooks-create-webhook-end-user.ts +0 -161
  384. package/src/funcs/webhooks-delete-webhook-end-user.ts +0 -166
  385. package/src/funcs/webhooks-delete-webhook-tenant.ts +0 -161
  386. package/src/models/booking-entry-request-dto.ts +0 -268
  387. package/src/models/booking-entry-response-dto.ts +0 -260
  388. package/src/models/bookings-response-dto.ts +0 -68
  389. package/src/models/create-bookings-request-dto.ts +0 -64
  390. package/src/models/create-event-subscription-request-dto.ts +0 -35
  391. package/src/models/errors/details.ts +0 -82
  392. package/src/models/operations/api-key-confirmation.ts +0 -34
  393. package/src/models/operations/callback.ts +0 -89
  394. package/src/models/operations/cancel.ts +0 -34
  395. package/src/models/operations/check.ts +0 -29
  396. package/src/models/operations/create-bookings.ts +0 -162
  397. package/src/models/operations/create-contacts-v1.ts +0 -164
  398. package/src/models/operations/create-event-subscriptions.ts +0 -39
  399. package/src/models/operations/create-web-hook-tenant.ts +0 -135
  400. package/src/models/operations/create-webhook-config.ts +0 -135
  401. package/src/models/operations/create-webhook-end-user.ts +0 -176
  402. package/src/models/operations/delete-event-subscriptions.ts +0 -38
  403. package/src/models/operations/delete-registered-system.ts +0 -32
  404. package/src/models/operations/delete-webhook-end-user.ts +0 -68
  405. package/src/models/operations/delete-webhook-tenant.ts +0 -30
  406. package/src/models/operations/details.ts +0 -100
  407. package/src/models/operations/get-all-active-end-users.ts +0 -29
  408. package/src/models/operations/get-code.ts +0 -50
  409. package/src/models/operations/get-companies-flow.ts +0 -161
  410. package/src/models/operations/get-environment-page.ts +0 -63
  411. package/src/models/operations/get-submission-page-style-by-key.ts +0 -30
  412. package/src/models/operations/get-submission-page-style.ts +0 -59
  413. package/src/models/operations/get-submit-page.ts +0 -62
  414. package/src/models/operations/handle-callback.ts +0 -54
  415. package/src/models/operations/handle-configuration-callback.ts +0 -57
  416. package/src/models/operations/long-token.ts +0 -45
  417. package/src/models/operations/patch-line-item.ts +0 -174
  418. package/src/models/operations/set-end-user-selections.ts +0 -76
  419. package/src/models/operations/test.ts +0 -56
  420. package/src/models/operations/update-submission-page-style.ts +0 -29
  421. package/src/models/patch-line-item-request-dto.ts +0 -82
  422. package/src/models/submission-page-style-dto.ts +0 -54
  423. package/src/sdk/events.ts +0 -45
  424. package/src/sdk/health.ts +0 -41
@@ -1,82 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as types from "../../types/primitives.js";
7
- import * as operations from "../operations/index.js";
8
- import { MaesnError } from "./maesn-error.js";
9
-
10
- /**
11
- * The Health Check is not successful
12
- */
13
- export type ServiceUnavailableErrorData = {
14
- status?: string | undefined;
15
- info?: { [k: string]: operations.Info } | null | undefined;
16
- error?: { [k: string]: operations.ErrorT } | null | undefined;
17
- details?: { [k: string]: operations.Details } | undefined;
18
- };
19
-
20
- /**
21
- * The Health Check is not successful
22
- */
23
- export class ServiceUnavailableError extends MaesnError {
24
- status?: string | undefined;
25
- info?: { [k: string]: operations.Info } | null | undefined;
26
- error?: { [k: string]: operations.ErrorT } | null | undefined;
27
- details?: { [k: string]: operations.Details } | undefined;
28
-
29
- /** The original data that was passed to this error instance. */
30
- data$: ServiceUnavailableErrorData;
31
-
32
- constructor(
33
- err: ServiceUnavailableErrorData,
34
- httpMeta: { response: Response; request: Request; body: string },
35
- ) {
36
- const message = "message" in err && typeof err.message === "string"
37
- ? err.message
38
- : `API error occurred: ${JSON.stringify(err)}`;
39
- super(message, httpMeta);
40
- this.data$ = err;
41
- if (err.status != null) this.status = err.status;
42
- if (err.info != null) this.info = err.info;
43
- if (err.error != null) this.error = err.error;
44
- if (err.details != null) this.details = err.details;
45
-
46
- this.name = "ServiceUnavailableError";
47
- }
48
- }
49
-
50
- /** @internal */
51
- export const ServiceUnavailableError$inboundSchema: z.ZodMiniType<
52
- ServiceUnavailableError,
53
- unknown
54
- > = z.pipe(
55
- z.object({
56
- status: types.optional(types.string()),
57
- info: z.optional(z.nullable(z.record(
58
- z.string(),
59
- z.lazy(() => operations.Info$inboundSchema),
60
- ))),
61
- error: z.optional(z.nullable(z.record(
62
- z.string(),
63
- z.lazy(() => operations.ErrorT$inboundSchema),
64
- ))),
65
- details: types.optional(z.record(
66
- z.string(),
67
- z.lazy(() => operations.Details$inboundSchema),
68
- )),
69
- request$: z.custom<Request>(x =>
70
- x instanceof Request
71
- ),
72
- response$: z.custom<Response>(x => x instanceof Response),
73
- body$: z.string(),
74
- }),
75
- z.transform((v) => {
76
- return new ServiceUnavailableError(v, {
77
- request: v.request$,
78
- response: v.response$,
79
- body: v.body$,
80
- });
81
- }),
82
- );
@@ -1,34 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as types from "../../types/primitives.js";
9
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
-
11
- /**
12
- * API key confirmed and redirect URL returned successfully
13
- */
14
- export type ApiKeyConfirmationResponse = {
15
- url?: string | undefined;
16
- };
17
-
18
- /** @internal */
19
- export const ApiKeyConfirmationResponse$inboundSchema: z.ZodMiniType<
20
- ApiKeyConfirmationResponse,
21
- unknown
22
- > = z.object({
23
- url: types.optional(types.string()),
24
- });
25
-
26
- export function apiKeyConfirmationResponseFromJSON(
27
- jsonString: string,
28
- ): SafeParseResult<ApiKeyConfirmationResponse, SDKValidationError> {
29
- return safeParse(
30
- jsonString,
31
- (x) => ApiKeyConfirmationResponse$inboundSchema.parse(JSON.parse(x)),
32
- `Failed to parse 'ApiKeyConfirmationResponse' from JSON`,
33
- );
34
- }
@@ -1,89 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import * as types from "../../types/primitives.js";
10
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
-
12
- export type CallbackRequest = {
13
- targetSystem: string;
14
- /**
15
- * OAuth state parameter returned by the target system, encoding tenant and user context
16
- */
17
- state: string;
18
- /**
19
- * Authorization code returned by the target system after successful OAuth consent
20
- */
21
- code?: string | undefined;
22
- /**
23
- * Realm ID returned by QuickBooks Online after OAuth consent
24
- */
25
- realmId?: string | undefined;
26
- /**
27
- * Access token returned directly by some target systems that do not use an authorization code flow
28
- */
29
- token?: string | undefined;
30
- };
31
-
32
- /**
33
- * OAuth callback processed and redirect URL returned successfully
34
- */
35
- export type CallbackResponse = {
36
- url?: string | undefined;
37
- };
38
-
39
- /** @internal */
40
- export type CallbackRequest$Outbound = {
41
- TARGET_SYSTEM: string;
42
- state: string;
43
- code?: string | undefined;
44
- realmId?: string | undefined;
45
- token?: string | undefined;
46
- };
47
-
48
- /** @internal */
49
- export const CallbackRequest$outboundSchema: z.ZodMiniType<
50
- CallbackRequest$Outbound,
51
- CallbackRequest
52
- > = z.pipe(
53
- z.object({
54
- targetSystem: z.string(),
55
- state: z.string(),
56
- code: z.optional(z.string()),
57
- realmId: z.optional(z.string()),
58
- token: z.optional(z.string()),
59
- }),
60
- z.transform((v) => {
61
- return remap$(v, {
62
- targetSystem: "TARGET_SYSTEM",
63
- });
64
- }),
65
- );
66
-
67
- export function callbackRequestToJSON(
68
- callbackRequest: CallbackRequest,
69
- ): string {
70
- return JSON.stringify(CallbackRequest$outboundSchema.parse(callbackRequest));
71
- }
72
-
73
- /** @internal */
74
- export const CallbackResponse$inboundSchema: z.ZodMiniType<
75
- CallbackResponse,
76
- unknown
77
- > = z.object({
78
- url: types.optional(types.string()),
79
- });
80
-
81
- export function callbackResponseFromJSON(
82
- jsonString: string,
83
- ): SafeParseResult<CallbackResponse, SDKValidationError> {
84
- return safeParse(
85
- jsonString,
86
- (x) => CallbackResponse$inboundSchema.parse(JSON.parse(x)),
87
- `Failed to parse 'CallbackResponse' from JSON`,
88
- );
89
- }
@@ -1,34 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as types from "../../types/primitives.js";
9
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
-
11
- /**
12
- * Cancellation redirect URL returned successfully
13
- */
14
- export type CancelResponse = {
15
- url?: string | undefined;
16
- };
17
-
18
- /** @internal */
19
- export const CancelResponse$inboundSchema: z.ZodMiniType<
20
- CancelResponse,
21
- unknown
22
- > = z.object({
23
- url: types.optional(types.string()),
24
- });
25
-
26
- export function cancelResponseFromJSON(
27
- jsonString: string,
28
- ): SafeParseResult<CancelResponse, SDKValidationError> {
29
- return safeParse(
30
- jsonString,
31
- (x) => CancelResponse$inboundSchema.parse(JSON.parse(x)),
32
- `Failed to parse 'CancelResponse' from JSON`,
33
- );
34
- }
@@ -1,29 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
9
-
10
- /**
11
- * Service is healthy.
12
- */
13
- export type CheckResponse = {};
14
-
15
- /** @internal */
16
- export const CheckResponse$inboundSchema: z.ZodMiniType<
17
- CheckResponse,
18
- unknown
19
- > = z.object({});
20
-
21
- export function checkResponseFromJSON(
22
- jsonString: string,
23
- ): SafeParseResult<CheckResponse, SDKValidationError> {
24
- return safeParse(
25
- jsonString,
26
- (x) => CheckResponse$inboundSchema.parse(JSON.parse(x)),
27
- `Failed to parse 'CheckResponse' from JSON`,
28
- );
29
- }
@@ -1,162 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as types from "../../types/primitives.js";
9
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
- import * as models from "../index.js";
11
-
12
- export type CreateBookingsRequest = {
13
- /**
14
- * ID of the company (required for multi-company target systems)
15
- */
16
- companyId?: string | undefined;
17
- body: models.CreateBookingsRequestDto;
18
- };
19
-
20
- export type CreateBookingsPagination = {
21
- total: number;
22
- perPage: number;
23
- currentPage: number;
24
- totalPages: number;
25
- };
26
-
27
- export type CreateBookingsMeta = {
28
- warnings?: Array<string> | null | undefined;
29
- pagination?: CreateBookingsPagination | null | undefined;
30
- };
31
-
32
- export type CreateBookingsErrors = {};
33
-
34
- export type CreateBookingsRawData = {};
35
-
36
- /**
37
- * Booking created successfully
38
- */
39
- export type CreateBookingsResponse = {
40
- meta?: CreateBookingsMeta | null | undefined;
41
- data: models.BookingsResponseDto;
42
- errors: CreateBookingsErrors | null;
43
- rawData: CreateBookingsRawData | null;
44
- };
45
-
46
- /** @internal */
47
- export type CreateBookingsRequest$Outbound = {
48
- companyId?: string | undefined;
49
- body: models.CreateBookingsRequestDto$Outbound;
50
- };
51
-
52
- /** @internal */
53
- export const CreateBookingsRequest$outboundSchema: z.ZodMiniType<
54
- CreateBookingsRequest$Outbound,
55
- CreateBookingsRequest
56
- > = z.object({
57
- companyId: z.optional(z.string()),
58
- body: models.CreateBookingsRequestDto$outboundSchema,
59
- });
60
-
61
- export function createBookingsRequestToJSON(
62
- createBookingsRequest: CreateBookingsRequest,
63
- ): string {
64
- return JSON.stringify(
65
- CreateBookingsRequest$outboundSchema.parse(createBookingsRequest),
66
- );
67
- }
68
-
69
- /** @internal */
70
- export const CreateBookingsPagination$inboundSchema: z.ZodMiniType<
71
- CreateBookingsPagination,
72
- unknown
73
- > = z.object({
74
- total: types.number(),
75
- perPage: types.number(),
76
- currentPage: types.number(),
77
- totalPages: types.number(),
78
- });
79
-
80
- export function createBookingsPaginationFromJSON(
81
- jsonString: string,
82
- ): SafeParseResult<CreateBookingsPagination, SDKValidationError> {
83
- return safeParse(
84
- jsonString,
85
- (x) => CreateBookingsPagination$inboundSchema.parse(JSON.parse(x)),
86
- `Failed to parse 'CreateBookingsPagination' from JSON`,
87
- );
88
- }
89
-
90
- /** @internal */
91
- export const CreateBookingsMeta$inboundSchema: z.ZodMiniType<
92
- CreateBookingsMeta,
93
- unknown
94
- > = z.object({
95
- warnings: z.optional(z.nullable(z.array(types.string()))),
96
- pagination: z.optional(
97
- z.nullable(z.lazy(() => CreateBookingsPagination$inboundSchema)),
98
- ),
99
- });
100
-
101
- export function createBookingsMetaFromJSON(
102
- jsonString: string,
103
- ): SafeParseResult<CreateBookingsMeta, SDKValidationError> {
104
- return safeParse(
105
- jsonString,
106
- (x) => CreateBookingsMeta$inboundSchema.parse(JSON.parse(x)),
107
- `Failed to parse 'CreateBookingsMeta' from JSON`,
108
- );
109
- }
110
-
111
- /** @internal */
112
- export const CreateBookingsErrors$inboundSchema: z.ZodMiniType<
113
- CreateBookingsErrors,
114
- unknown
115
- > = z.object({});
116
-
117
- export function createBookingsErrorsFromJSON(
118
- jsonString: string,
119
- ): SafeParseResult<CreateBookingsErrors, SDKValidationError> {
120
- return safeParse(
121
- jsonString,
122
- (x) => CreateBookingsErrors$inboundSchema.parse(JSON.parse(x)),
123
- `Failed to parse 'CreateBookingsErrors' from JSON`,
124
- );
125
- }
126
-
127
- /** @internal */
128
- export const CreateBookingsRawData$inboundSchema: z.ZodMiniType<
129
- CreateBookingsRawData,
130
- unknown
131
- > = z.object({});
132
-
133
- export function createBookingsRawDataFromJSON(
134
- jsonString: string,
135
- ): SafeParseResult<CreateBookingsRawData, SDKValidationError> {
136
- return safeParse(
137
- jsonString,
138
- (x) => CreateBookingsRawData$inboundSchema.parse(JSON.parse(x)),
139
- `Failed to parse 'CreateBookingsRawData' from JSON`,
140
- );
141
- }
142
-
143
- /** @internal */
144
- export const CreateBookingsResponse$inboundSchema: z.ZodMiniType<
145
- CreateBookingsResponse,
146
- unknown
147
- > = z.object({
148
- meta: z.optional(z.nullable(z.lazy(() => CreateBookingsMeta$inboundSchema))),
149
- data: models.BookingsResponseDto$inboundSchema,
150
- errors: types.nullable(z.lazy(() => CreateBookingsErrors$inboundSchema)),
151
- rawData: types.nullable(z.lazy(() => CreateBookingsRawData$inboundSchema)),
152
- });
153
-
154
- export function createBookingsResponseFromJSON(
155
- jsonString: string,
156
- ): SafeParseResult<CreateBookingsResponse, SDKValidationError> {
157
- return safeParse(
158
- jsonString,
159
- (x) => CreateBookingsResponse$inboundSchema.parse(JSON.parse(x)),
160
- `Failed to parse 'CreateBookingsResponse' from JSON`,
161
- );
162
- }
@@ -1,164 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as types from "../../types/primitives.js";
9
- import { SDKValidationError } from "../errors/sdk-validation-error.js";
10
- import * as models from "../index.js";
11
-
12
- export type CreateContactsV1Request = {
13
- /**
14
- * ID of the company (required for multi-company target systems)
15
- */
16
- companyId?: string | undefined;
17
- body: models.CreateContactByBatchMetaDataDto;
18
- };
19
-
20
- export type CreateContactsV1Pagination = {
21
- total: number;
22
- perPage: number;
23
- currentPage: number;
24
- totalPages: number;
25
- };
26
-
27
- export type CreateContactsV1Meta = {
28
- warnings?: Array<string> | null | undefined;
29
- pagination?: CreateContactsV1Pagination | null | undefined;
30
- };
31
-
32
- export type CreateContactsV1Errors = {};
33
-
34
- export type CreateContactsV1RawData = {};
35
-
36
- /**
37
- * Contacts created successfully in bulk
38
- */
39
- export type CreateContactsV1Response = {
40
- meta?: CreateContactsV1Meta | null | undefined;
41
- data: models.ContactByBatchMetaDataResponseDto;
42
- errors: CreateContactsV1Errors | null;
43
- rawData: CreateContactsV1RawData | null;
44
- };
45
-
46
- /** @internal */
47
- export type CreateContactsV1Request$Outbound = {
48
- companyId?: string | undefined;
49
- body: models.CreateContactByBatchMetaDataDto$Outbound;
50
- };
51
-
52
- /** @internal */
53
- export const CreateContactsV1Request$outboundSchema: z.ZodMiniType<
54
- CreateContactsV1Request$Outbound,
55
- CreateContactsV1Request
56
- > = z.object({
57
- companyId: z.optional(z.string()),
58
- body: models.CreateContactByBatchMetaDataDto$outboundSchema,
59
- });
60
-
61
- export function createContactsV1RequestToJSON(
62
- createContactsV1Request: CreateContactsV1Request,
63
- ): string {
64
- return JSON.stringify(
65
- CreateContactsV1Request$outboundSchema.parse(createContactsV1Request),
66
- );
67
- }
68
-
69
- /** @internal */
70
- export const CreateContactsV1Pagination$inboundSchema: z.ZodMiniType<
71
- CreateContactsV1Pagination,
72
- unknown
73
- > = z.object({
74
- total: types.number(),
75
- perPage: types.number(),
76
- currentPage: types.number(),
77
- totalPages: types.number(),
78
- });
79
-
80
- export function createContactsV1PaginationFromJSON(
81
- jsonString: string,
82
- ): SafeParseResult<CreateContactsV1Pagination, SDKValidationError> {
83
- return safeParse(
84
- jsonString,
85
- (x) => CreateContactsV1Pagination$inboundSchema.parse(JSON.parse(x)),
86
- `Failed to parse 'CreateContactsV1Pagination' from JSON`,
87
- );
88
- }
89
-
90
- /** @internal */
91
- export const CreateContactsV1Meta$inboundSchema: z.ZodMiniType<
92
- CreateContactsV1Meta,
93
- unknown
94
- > = z.object({
95
- warnings: z.optional(z.nullable(z.array(types.string()))),
96
- pagination: z.optional(
97
- z.nullable(z.lazy(() => CreateContactsV1Pagination$inboundSchema)),
98
- ),
99
- });
100
-
101
- export function createContactsV1MetaFromJSON(
102
- jsonString: string,
103
- ): SafeParseResult<CreateContactsV1Meta, SDKValidationError> {
104
- return safeParse(
105
- jsonString,
106
- (x) => CreateContactsV1Meta$inboundSchema.parse(JSON.parse(x)),
107
- `Failed to parse 'CreateContactsV1Meta' from JSON`,
108
- );
109
- }
110
-
111
- /** @internal */
112
- export const CreateContactsV1Errors$inboundSchema: z.ZodMiniType<
113
- CreateContactsV1Errors,
114
- unknown
115
- > = z.object({});
116
-
117
- export function createContactsV1ErrorsFromJSON(
118
- jsonString: string,
119
- ): SafeParseResult<CreateContactsV1Errors, SDKValidationError> {
120
- return safeParse(
121
- jsonString,
122
- (x) => CreateContactsV1Errors$inboundSchema.parse(JSON.parse(x)),
123
- `Failed to parse 'CreateContactsV1Errors' from JSON`,
124
- );
125
- }
126
-
127
- /** @internal */
128
- export const CreateContactsV1RawData$inboundSchema: z.ZodMiniType<
129
- CreateContactsV1RawData,
130
- unknown
131
- > = z.object({});
132
-
133
- export function createContactsV1RawDataFromJSON(
134
- jsonString: string,
135
- ): SafeParseResult<CreateContactsV1RawData, SDKValidationError> {
136
- return safeParse(
137
- jsonString,
138
- (x) => CreateContactsV1RawData$inboundSchema.parse(JSON.parse(x)),
139
- `Failed to parse 'CreateContactsV1RawData' from JSON`,
140
- );
141
- }
142
-
143
- /** @internal */
144
- export const CreateContactsV1Response$inboundSchema: z.ZodMiniType<
145
- CreateContactsV1Response,
146
- unknown
147
- > = z.object({
148
- meta: z.optional(
149
- z.nullable(z.lazy(() => CreateContactsV1Meta$inboundSchema)),
150
- ),
151
- data: models.ContactByBatchMetaDataResponseDto$inboundSchema,
152
- errors: types.nullable(z.lazy(() => CreateContactsV1Errors$inboundSchema)),
153
- rawData: types.nullable(z.lazy(() => CreateContactsV1RawData$inboundSchema)),
154
- });
155
-
156
- export function createContactsV1ResponseFromJSON(
157
- jsonString: string,
158
- ): SafeParseResult<CreateContactsV1Response, SDKValidationError> {
159
- return safeParse(
160
- jsonString,
161
- (x) => CreateContactsV1Response$inboundSchema.parse(JSON.parse(x)),
162
- `Failed to parse 'CreateContactsV1Response' from JSON`,
163
- );
164
- }
@@ -1,39 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import * as models from "../index.js";
7
-
8
- export type CreateEventSubscriptionsRequest = {
9
- /**
10
- * ID of the company (required for multi-company target systems)
11
- */
12
- companyId?: string | undefined;
13
- body: models.CreateEventSubscriptionRequestDto;
14
- };
15
-
16
- /** @internal */
17
- export type CreateEventSubscriptionsRequest$Outbound = {
18
- companyId?: string | undefined;
19
- body: models.CreateEventSubscriptionRequestDto$Outbound;
20
- };
21
-
22
- /** @internal */
23
- export const CreateEventSubscriptionsRequest$outboundSchema: z.ZodMiniType<
24
- CreateEventSubscriptionsRequest$Outbound,
25
- CreateEventSubscriptionsRequest
26
- > = z.object({
27
- companyId: z.optional(z.string()),
28
- body: models.CreateEventSubscriptionRequestDto$outboundSchema,
29
- });
30
-
31
- export function createEventSubscriptionsRequestToJSON(
32
- createEventSubscriptionsRequest: CreateEventSubscriptionsRequest,
33
- ): string {
34
- return JSON.stringify(
35
- CreateEventSubscriptionsRequest$outboundSchema.parse(
36
- createEventSubscriptionsRequest,
37
- ),
38
- );
39
- }