@crevio/sdk 0.4.7 → 0.4.10

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 (414) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/funcs/blogPostsGet.d.ts +1 -1
  3. package/dist/commonjs/funcs/blogPostsGet.js +3 -3
  4. package/dist/commonjs/funcs/blogPostsGet.js.map +1 -1
  5. package/dist/commonjs/funcs/blogPostsList.d.ts +1 -1
  6. package/dist/commonjs/funcs/blogPostsList.js +2 -1
  7. package/dist/commonjs/funcs/blogPostsList.js.map +1 -1
  8. package/dist/commonjs/funcs/cartsDelete.js.map +1 -1
  9. package/dist/commonjs/funcs/cartsGet.js.map +1 -1
  10. package/dist/commonjs/funcs/cartsUpdate.js.map +1 -1
  11. package/dist/commonjs/funcs/checkoutLinksDelete.js.map +1 -1
  12. package/dist/commonjs/funcs/checkoutLinksGet.js.map +1 -1
  13. package/dist/commonjs/funcs/checkoutLinksUpdate.js.map +1 -1
  14. package/dist/commonjs/funcs/checkoutsGet.js.map +1 -1
  15. package/dist/commonjs/funcs/checkoutsUpdate.js.map +1 -1
  16. package/dist/commonjs/funcs/customersGet.js.map +1 -1
  17. package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
  18. package/dist/commonjs/funcs/discountsDelete.js.map +1 -1
  19. package/dist/commonjs/funcs/discountsGet.js.map +1 -1
  20. package/dist/commonjs/funcs/discountsUpdate.js.map +1 -1
  21. package/dist/commonjs/funcs/experiencesGet.js +2 -2
  22. package/dist/commonjs/funcs/experiencesGet.js.map +1 -1
  23. package/dist/commonjs/funcs/filesDelete.js.map +1 -1
  24. package/dist/commonjs/funcs/filesGet.d.ts +1 -1
  25. package/dist/commonjs/funcs/filesGet.js +1 -1
  26. package/dist/commonjs/funcs/filesGet.js.map +1 -1
  27. package/dist/commonjs/funcs/invoicesGet.js.map +1 -1
  28. package/dist/commonjs/funcs/invoicesPay.js.map +1 -1
  29. package/dist/commonjs/funcs/invoicesVoid.js.map +1 -1
  30. package/dist/commonjs/funcs/orderItemsGet.js.map +1 -1
  31. package/dist/commonjs/funcs/ordersGet.js.map +1 -1
  32. package/dist/commonjs/funcs/priceVariantsGet.js.map +1 -1
  33. package/dist/commonjs/funcs/priceVariantsUpdate.js.map +1 -1
  34. package/dist/commonjs/funcs/productsDelete.js +2 -2
  35. package/dist/commonjs/funcs/productsDelete.js.map +1 -1
  36. package/dist/commonjs/funcs/productsGet.js +2 -2
  37. package/dist/commonjs/funcs/productsGet.js.map +1 -1
  38. package/dist/commonjs/funcs/productsRequestX402Access.js +2 -2
  39. package/dist/commonjs/funcs/productsRequestX402Access.js.map +1 -1
  40. package/dist/commonjs/funcs/productsUpdate.js +2 -2
  41. package/dist/commonjs/funcs/productsUpdate.js.map +1 -1
  42. package/dist/commonjs/funcs/reviewsGet.js.map +1 -1
  43. package/dist/commonjs/funcs/subscriptionsCancel.js.map +1 -1
  44. package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
  45. package/dist/commonjs/funcs/subscriptionsPause.js.map +1 -1
  46. package/dist/commonjs/funcs/subscriptionsResume.js.map +1 -1
  47. package/dist/commonjs/funcs/webhookEndpointsDelete.js.map +1 -1
  48. package/dist/commonjs/funcs/webhookEndpointsGet.js.map +1 -1
  49. package/dist/commonjs/funcs/webhookEndpointsTest.js.map +1 -1
  50. package/dist/commonjs/funcs/webhookEndpointsUpdate.js.map +1 -1
  51. package/dist/commonjs/lib/config.d.ts +3 -3
  52. package/dist/commonjs/lib/config.js +3 -3
  53. package/dist/commonjs/lib/config.js.map +1 -1
  54. package/dist/commonjs/lib/files.d.ts +13 -0
  55. package/dist/commonjs/lib/files.d.ts.map +1 -1
  56. package/dist/commonjs/lib/files.js +19 -0
  57. package/dist/commonjs/lib/files.js.map +1 -1
  58. package/dist/commonjs/lib/sdks.d.ts.map +1 -1
  59. package/dist/commonjs/lib/sdks.js +8 -4
  60. package/dist/commonjs/lib/sdks.js.map +1 -1
  61. package/dist/commonjs/lib/url.d.ts.map +1 -1
  62. package/dist/commonjs/lib/url.js +4 -2
  63. package/dist/commonjs/lib/url.js.map +1 -1
  64. package/dist/commonjs/models/cartcreaterequest.d.ts +1 -1
  65. package/dist/commonjs/models/checkoutcreaterequest.d.ts +1 -1
  66. package/dist/commonjs/models/checkoutlink.d.ts +2 -2
  67. package/dist/commonjs/models/checkoutlinkrequest.d.ts +1 -1
  68. package/dist/commonjs/models/invoice.d.ts +6 -6
  69. package/dist/commonjs/models/invoicerequest.d.ts +2 -2
  70. package/dist/commonjs/models/operations/cancelsubscription.d.ts +1 -1
  71. package/dist/commonjs/models/operations/deletecart.d.ts +1 -1
  72. package/dist/commonjs/models/operations/deletecheckoutlink.d.ts +1 -1
  73. package/dist/commonjs/models/operations/deletediscount.d.ts +1 -1
  74. package/dist/commonjs/models/operations/deletefile.d.ts +1 -1
  75. package/dist/commonjs/models/operations/deleteproduct.d.ts +3 -3
  76. package/dist/commonjs/models/operations/deleteproduct.d.ts.map +1 -1
  77. package/dist/commonjs/models/operations/deleteproduct.js +6 -1
  78. package/dist/commonjs/models/operations/deleteproduct.js.map +1 -1
  79. package/dist/commonjs/models/operations/deletewebhookendpoint.d.ts +1 -1
  80. package/dist/commonjs/models/operations/getblogpost.d.ts +3 -3
  81. package/dist/commonjs/models/operations/getblogpost.d.ts.map +1 -1
  82. package/dist/commonjs/models/operations/getblogpost.js +6 -1
  83. package/dist/commonjs/models/operations/getblogpost.js.map +1 -1
  84. package/dist/commonjs/models/operations/getcart.d.ts +1 -1
  85. package/dist/commonjs/models/operations/getcheckout.d.ts +1 -1
  86. package/dist/commonjs/models/operations/getcheckoutlink.d.ts +1 -1
  87. package/dist/commonjs/models/operations/getcustomer.d.ts +1 -1
  88. package/dist/commonjs/models/operations/getdiscount.d.ts +1 -1
  89. package/dist/commonjs/models/operations/getexperience.d.ts +3 -3
  90. package/dist/commonjs/models/operations/getexperience.d.ts.map +1 -1
  91. package/dist/commonjs/models/operations/getexperience.js +6 -1
  92. package/dist/commonjs/models/operations/getexperience.js.map +1 -1
  93. package/dist/commonjs/models/operations/getfile.d.ts +1 -1
  94. package/dist/commonjs/models/operations/getinvoice.d.ts +1 -1
  95. package/dist/commonjs/models/operations/getorder.d.ts +1 -1
  96. package/dist/commonjs/models/operations/getorderitem.d.ts +1 -1
  97. package/dist/commonjs/models/operations/getpricevariant.d.ts +1 -1
  98. package/dist/commonjs/models/operations/getproduct.d.ts +3 -3
  99. package/dist/commonjs/models/operations/getproduct.d.ts.map +1 -1
  100. package/dist/commonjs/models/operations/getproduct.js +6 -1
  101. package/dist/commonjs/models/operations/getproduct.js.map +1 -1
  102. package/dist/commonjs/models/operations/getreview.d.ts +1 -1
  103. package/dist/commonjs/models/operations/getsubscription.d.ts +1 -1
  104. package/dist/commonjs/models/operations/getwebhookendpoint.d.ts +1 -1
  105. package/dist/commonjs/models/operations/listblogposts.d.ts +22 -1
  106. package/dist/commonjs/models/operations/listblogposts.d.ts.map +1 -1
  107. package/dist/commonjs/models/operations/listblogposts.js +13 -1
  108. package/dist/commonjs/models/operations/listblogposts.js.map +1 -1
  109. package/dist/commonjs/models/operations/listcheckoutlinks.d.ts +1 -1
  110. package/dist/commonjs/models/operations/listcustomers.d.ts +1 -1
  111. package/dist/commonjs/models/operations/listdiscounts.d.ts +1 -1
  112. package/dist/commonjs/models/operations/listexperiences.d.ts +1 -1
  113. package/dist/commonjs/models/operations/listfiles.d.ts +1 -1
  114. package/dist/commonjs/models/operations/listinvoices.d.ts +2 -2
  115. package/dist/commonjs/models/operations/listorders.d.ts +2 -2
  116. package/dist/commonjs/models/operations/listpricevariants.d.ts +2 -2
  117. package/dist/commonjs/models/operations/listproducts.d.ts +1 -1
  118. package/dist/commonjs/models/operations/listreviews.d.ts +2 -2
  119. package/dist/commonjs/models/operations/listsubscriptions.d.ts +1 -1
  120. package/dist/commonjs/models/operations/listwebhookendpoints.d.ts +1 -1
  121. package/dist/commonjs/models/operations/pausesubscription.d.ts +1 -1
  122. package/dist/commonjs/models/operations/payinvoice.d.ts +1 -1
  123. package/dist/commonjs/models/operations/requestx402access.d.ts +4 -4
  124. package/dist/commonjs/models/operations/requestx402access.d.ts.map +1 -1
  125. package/dist/commonjs/models/operations/requestx402access.js +2 -1
  126. package/dist/commonjs/models/operations/requestx402access.js.map +1 -1
  127. package/dist/commonjs/models/operations/resumesubscription.d.ts +1 -1
  128. package/dist/commonjs/models/operations/testwebhookendpoint.d.ts +1 -1
  129. package/dist/commonjs/models/operations/updatecart.d.ts +1 -1
  130. package/dist/commonjs/models/operations/updatecheckout.d.ts +1 -1
  131. package/dist/commonjs/models/operations/updatecheckoutlink.d.ts +1 -1
  132. package/dist/commonjs/models/operations/updatecustomer.d.ts +1 -1
  133. package/dist/commonjs/models/operations/updatediscount.d.ts +1 -1
  134. package/dist/commonjs/models/operations/updatepricevariant.d.ts +1 -1
  135. package/dist/commonjs/models/operations/updateproduct.d.ts +3 -3
  136. package/dist/commonjs/models/operations/updateproduct.d.ts.map +1 -1
  137. package/dist/commonjs/models/operations/updateproduct.js +2 -1
  138. package/dist/commonjs/models/operations/updateproduct.js.map +1 -1
  139. package/dist/commonjs/models/operations/updatewebhookendpoint.d.ts +1 -1
  140. package/dist/commonjs/models/operations/voidinvoice.d.ts +1 -1
  141. package/dist/commonjs/models/order.d.ts +2 -2
  142. package/dist/commonjs/models/orderitem.d.ts +6 -6
  143. package/dist/commonjs/models/pricevariant.d.ts +1 -0
  144. package/dist/commonjs/models/pricevariant.d.ts.map +1 -1
  145. package/dist/commonjs/models/pricevariant.js +2 -0
  146. package/dist/commonjs/models/pricevariant.js.map +1 -1
  147. package/dist/commonjs/models/product.d.ts +2 -3
  148. package/dist/commonjs/models/product.d.ts.map +1 -1
  149. package/dist/commonjs/models/product.js +0 -2
  150. package/dist/commonjs/models/product.js.map +1 -1
  151. package/dist/commonjs/sdk/blogposts.d.ts +2 -2
  152. package/dist/commonjs/sdk/blogposts.js +2 -2
  153. package/dist/commonjs/sdk/files.d.ts +1 -1
  154. package/dist/commonjs/sdk/files.js +1 -1
  155. package/dist/esm/funcs/blogPostsGet.d.ts +1 -1
  156. package/dist/esm/funcs/blogPostsGet.js +3 -3
  157. package/dist/esm/funcs/blogPostsGet.js.map +1 -1
  158. package/dist/esm/funcs/blogPostsList.d.ts +1 -1
  159. package/dist/esm/funcs/blogPostsList.js +2 -1
  160. package/dist/esm/funcs/blogPostsList.js.map +1 -1
  161. package/dist/esm/funcs/cartsDelete.js.map +1 -1
  162. package/dist/esm/funcs/cartsGet.js.map +1 -1
  163. package/dist/esm/funcs/cartsUpdate.js.map +1 -1
  164. package/dist/esm/funcs/checkoutLinksDelete.js.map +1 -1
  165. package/dist/esm/funcs/checkoutLinksGet.js.map +1 -1
  166. package/dist/esm/funcs/checkoutLinksUpdate.js.map +1 -1
  167. package/dist/esm/funcs/checkoutsGet.js.map +1 -1
  168. package/dist/esm/funcs/checkoutsUpdate.js.map +1 -1
  169. package/dist/esm/funcs/customersGet.js.map +1 -1
  170. package/dist/esm/funcs/customersUpdate.js.map +1 -1
  171. package/dist/esm/funcs/discountsDelete.js.map +1 -1
  172. package/dist/esm/funcs/discountsGet.js.map +1 -1
  173. package/dist/esm/funcs/discountsUpdate.js.map +1 -1
  174. package/dist/esm/funcs/experiencesGet.js +2 -2
  175. package/dist/esm/funcs/experiencesGet.js.map +1 -1
  176. package/dist/esm/funcs/filesDelete.js.map +1 -1
  177. package/dist/esm/funcs/filesGet.d.ts +1 -1
  178. package/dist/esm/funcs/filesGet.js +1 -1
  179. package/dist/esm/funcs/filesGet.js.map +1 -1
  180. package/dist/esm/funcs/invoicesGet.js.map +1 -1
  181. package/dist/esm/funcs/invoicesPay.js.map +1 -1
  182. package/dist/esm/funcs/invoicesVoid.js.map +1 -1
  183. package/dist/esm/funcs/orderItemsGet.js.map +1 -1
  184. package/dist/esm/funcs/ordersGet.js.map +1 -1
  185. package/dist/esm/funcs/priceVariantsGet.js.map +1 -1
  186. package/dist/esm/funcs/priceVariantsUpdate.js.map +1 -1
  187. package/dist/esm/funcs/productsDelete.js +2 -2
  188. package/dist/esm/funcs/productsDelete.js.map +1 -1
  189. package/dist/esm/funcs/productsGet.js +2 -2
  190. package/dist/esm/funcs/productsGet.js.map +1 -1
  191. package/dist/esm/funcs/productsRequestX402Access.js +2 -2
  192. package/dist/esm/funcs/productsRequestX402Access.js.map +1 -1
  193. package/dist/esm/funcs/productsUpdate.js +2 -2
  194. package/dist/esm/funcs/productsUpdate.js.map +1 -1
  195. package/dist/esm/funcs/reviewsGet.js.map +1 -1
  196. package/dist/esm/funcs/subscriptionsCancel.js.map +1 -1
  197. package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
  198. package/dist/esm/funcs/subscriptionsPause.js.map +1 -1
  199. package/dist/esm/funcs/subscriptionsResume.js.map +1 -1
  200. package/dist/esm/funcs/webhookEndpointsDelete.js.map +1 -1
  201. package/dist/esm/funcs/webhookEndpointsGet.js.map +1 -1
  202. package/dist/esm/funcs/webhookEndpointsTest.js.map +1 -1
  203. package/dist/esm/funcs/webhookEndpointsUpdate.js.map +1 -1
  204. package/dist/esm/lib/config.d.ts +3 -3
  205. package/dist/esm/lib/config.js +3 -3
  206. package/dist/esm/lib/config.js.map +1 -1
  207. package/dist/esm/lib/files.d.ts +13 -0
  208. package/dist/esm/lib/files.d.ts.map +1 -1
  209. package/dist/esm/lib/files.js +18 -0
  210. package/dist/esm/lib/files.js.map +1 -1
  211. package/dist/esm/lib/sdks.d.ts.map +1 -1
  212. package/dist/esm/lib/sdks.js +8 -4
  213. package/dist/esm/lib/sdks.js.map +1 -1
  214. package/dist/esm/lib/url.d.ts.map +1 -1
  215. package/dist/esm/lib/url.js +4 -2
  216. package/dist/esm/lib/url.js.map +1 -1
  217. package/dist/esm/models/cartcreaterequest.d.ts +1 -1
  218. package/dist/esm/models/checkoutcreaterequest.d.ts +1 -1
  219. package/dist/esm/models/checkoutlink.d.ts +2 -2
  220. package/dist/esm/models/checkoutlinkrequest.d.ts +1 -1
  221. package/dist/esm/models/invoice.d.ts +6 -6
  222. package/dist/esm/models/invoicerequest.d.ts +2 -2
  223. package/dist/esm/models/operations/cancelsubscription.d.ts +1 -1
  224. package/dist/esm/models/operations/deletecart.d.ts +1 -1
  225. package/dist/esm/models/operations/deletecheckoutlink.d.ts +1 -1
  226. package/dist/esm/models/operations/deletediscount.d.ts +1 -1
  227. package/dist/esm/models/operations/deletefile.d.ts +1 -1
  228. package/dist/esm/models/operations/deleteproduct.d.ts +3 -3
  229. package/dist/esm/models/operations/deleteproduct.d.ts.map +1 -1
  230. package/dist/esm/models/operations/deleteproduct.js +6 -1
  231. package/dist/esm/models/operations/deleteproduct.js.map +1 -1
  232. package/dist/esm/models/operations/deletewebhookendpoint.d.ts +1 -1
  233. package/dist/esm/models/operations/getblogpost.d.ts +3 -3
  234. package/dist/esm/models/operations/getblogpost.d.ts.map +1 -1
  235. package/dist/esm/models/operations/getblogpost.js +6 -1
  236. package/dist/esm/models/operations/getblogpost.js.map +1 -1
  237. package/dist/esm/models/operations/getcart.d.ts +1 -1
  238. package/dist/esm/models/operations/getcheckout.d.ts +1 -1
  239. package/dist/esm/models/operations/getcheckoutlink.d.ts +1 -1
  240. package/dist/esm/models/operations/getcustomer.d.ts +1 -1
  241. package/dist/esm/models/operations/getdiscount.d.ts +1 -1
  242. package/dist/esm/models/operations/getexperience.d.ts +3 -3
  243. package/dist/esm/models/operations/getexperience.d.ts.map +1 -1
  244. package/dist/esm/models/operations/getexperience.js +6 -1
  245. package/dist/esm/models/operations/getexperience.js.map +1 -1
  246. package/dist/esm/models/operations/getfile.d.ts +1 -1
  247. package/dist/esm/models/operations/getinvoice.d.ts +1 -1
  248. package/dist/esm/models/operations/getorder.d.ts +1 -1
  249. package/dist/esm/models/operations/getorderitem.d.ts +1 -1
  250. package/dist/esm/models/operations/getpricevariant.d.ts +1 -1
  251. package/dist/esm/models/operations/getproduct.d.ts +3 -3
  252. package/dist/esm/models/operations/getproduct.d.ts.map +1 -1
  253. package/dist/esm/models/operations/getproduct.js +6 -1
  254. package/dist/esm/models/operations/getproduct.js.map +1 -1
  255. package/dist/esm/models/operations/getreview.d.ts +1 -1
  256. package/dist/esm/models/operations/getsubscription.d.ts +1 -1
  257. package/dist/esm/models/operations/getwebhookendpoint.d.ts +1 -1
  258. package/dist/esm/models/operations/listblogposts.d.ts +22 -1
  259. package/dist/esm/models/operations/listblogposts.d.ts.map +1 -1
  260. package/dist/esm/models/operations/listblogposts.js +12 -0
  261. package/dist/esm/models/operations/listblogposts.js.map +1 -1
  262. package/dist/esm/models/operations/listcheckoutlinks.d.ts +1 -1
  263. package/dist/esm/models/operations/listcustomers.d.ts +1 -1
  264. package/dist/esm/models/operations/listdiscounts.d.ts +1 -1
  265. package/dist/esm/models/operations/listexperiences.d.ts +1 -1
  266. package/dist/esm/models/operations/listfiles.d.ts +1 -1
  267. package/dist/esm/models/operations/listinvoices.d.ts +2 -2
  268. package/dist/esm/models/operations/listorders.d.ts +2 -2
  269. package/dist/esm/models/operations/listpricevariants.d.ts +2 -2
  270. package/dist/esm/models/operations/listproducts.d.ts +1 -1
  271. package/dist/esm/models/operations/listreviews.d.ts +2 -2
  272. package/dist/esm/models/operations/listsubscriptions.d.ts +1 -1
  273. package/dist/esm/models/operations/listwebhookendpoints.d.ts +1 -1
  274. package/dist/esm/models/operations/pausesubscription.d.ts +1 -1
  275. package/dist/esm/models/operations/payinvoice.d.ts +1 -1
  276. package/dist/esm/models/operations/requestx402access.d.ts +4 -4
  277. package/dist/esm/models/operations/requestx402access.d.ts.map +1 -1
  278. package/dist/esm/models/operations/requestx402access.js +2 -1
  279. package/dist/esm/models/operations/requestx402access.js.map +1 -1
  280. package/dist/esm/models/operations/resumesubscription.d.ts +1 -1
  281. package/dist/esm/models/operations/testwebhookendpoint.d.ts +1 -1
  282. package/dist/esm/models/operations/updatecart.d.ts +1 -1
  283. package/dist/esm/models/operations/updatecheckout.d.ts +1 -1
  284. package/dist/esm/models/operations/updatecheckoutlink.d.ts +1 -1
  285. package/dist/esm/models/operations/updatecustomer.d.ts +1 -1
  286. package/dist/esm/models/operations/updatediscount.d.ts +1 -1
  287. package/dist/esm/models/operations/updatepricevariant.d.ts +1 -1
  288. package/dist/esm/models/operations/updateproduct.d.ts +3 -3
  289. package/dist/esm/models/operations/updateproduct.d.ts.map +1 -1
  290. package/dist/esm/models/operations/updateproduct.js +2 -1
  291. package/dist/esm/models/operations/updateproduct.js.map +1 -1
  292. package/dist/esm/models/operations/updatewebhookendpoint.d.ts +1 -1
  293. package/dist/esm/models/operations/voidinvoice.d.ts +1 -1
  294. package/dist/esm/models/order.d.ts +2 -2
  295. package/dist/esm/models/orderitem.d.ts +6 -6
  296. package/dist/esm/models/pricevariant.d.ts +1 -0
  297. package/dist/esm/models/pricevariant.d.ts.map +1 -1
  298. package/dist/esm/models/pricevariant.js +2 -0
  299. package/dist/esm/models/pricevariant.js.map +1 -1
  300. package/dist/esm/models/product.d.ts +2 -3
  301. package/dist/esm/models/product.d.ts.map +1 -1
  302. package/dist/esm/models/product.js +0 -2
  303. package/dist/esm/models/product.js.map +1 -1
  304. package/dist/esm/sdk/blogposts.d.ts +2 -2
  305. package/dist/esm/sdk/blogposts.js +2 -2
  306. package/dist/esm/sdk/files.d.ts +1 -1
  307. package/dist/esm/sdk/files.js +1 -1
  308. package/jsr.json +1 -1
  309. package/package.json +2 -2
  310. package/src/funcs/blogPostsGet.ts +3 -4
  311. package/src/funcs/blogPostsList.ts +2 -1
  312. package/src/funcs/cartsDelete.ts +0 -1
  313. package/src/funcs/cartsGet.ts +0 -1
  314. package/src/funcs/cartsUpdate.ts +0 -1
  315. package/src/funcs/checkoutLinksDelete.ts +0 -1
  316. package/src/funcs/checkoutLinksGet.ts +0 -1
  317. package/src/funcs/checkoutLinksUpdate.ts +0 -1
  318. package/src/funcs/checkoutsGet.ts +0 -1
  319. package/src/funcs/checkoutsUpdate.ts +0 -1
  320. package/src/funcs/customersGet.ts +0 -1
  321. package/src/funcs/customersUpdate.ts +0 -1
  322. package/src/funcs/discountsDelete.ts +0 -1
  323. package/src/funcs/discountsGet.ts +0 -1
  324. package/src/funcs/discountsUpdate.ts +0 -1
  325. package/src/funcs/experiencesGet.ts +2 -3
  326. package/src/funcs/filesDelete.ts +0 -1
  327. package/src/funcs/filesGet.ts +1 -2
  328. package/src/funcs/invoicesGet.ts +0 -1
  329. package/src/funcs/invoicesPay.ts +0 -1
  330. package/src/funcs/invoicesVoid.ts +0 -1
  331. package/src/funcs/orderItemsGet.ts +0 -1
  332. package/src/funcs/ordersGet.ts +0 -1
  333. package/src/funcs/priceVariantsGet.ts +0 -1
  334. package/src/funcs/priceVariantsUpdate.ts +0 -1
  335. package/src/funcs/productsDelete.ts +2 -3
  336. package/src/funcs/productsGet.ts +2 -3
  337. package/src/funcs/productsRequestX402Access.ts +2 -3
  338. package/src/funcs/productsUpdate.ts +2 -3
  339. package/src/funcs/reviewsGet.ts +0 -1
  340. package/src/funcs/subscriptionsCancel.ts +0 -1
  341. package/src/funcs/subscriptionsGet.ts +0 -1
  342. package/src/funcs/subscriptionsPause.ts +0 -1
  343. package/src/funcs/subscriptionsResume.ts +0 -1
  344. package/src/funcs/webhookEndpointsDelete.ts +0 -1
  345. package/src/funcs/webhookEndpointsGet.ts +0 -1
  346. package/src/funcs/webhookEndpointsTest.ts +0 -1
  347. package/src/funcs/webhookEndpointsUpdate.ts +0 -1
  348. package/src/lib/config.ts +3 -3
  349. package/src/lib/files.ts +22 -0
  350. package/src/lib/sdks.ts +7 -5
  351. package/src/lib/url.ts +16 -14
  352. package/src/models/cartcreaterequest.ts +1 -1
  353. package/src/models/checkoutcreaterequest.ts +1 -1
  354. package/src/models/checkoutlink.ts +2 -2
  355. package/src/models/checkoutlinkrequest.ts +1 -1
  356. package/src/models/invoice.ts +6 -6
  357. package/src/models/invoicerequest.ts +2 -2
  358. package/src/models/operations/cancelsubscription.ts +1 -1
  359. package/src/models/operations/deletecart.ts +1 -1
  360. package/src/models/operations/deletecheckoutlink.ts +1 -1
  361. package/src/models/operations/deletediscount.ts +1 -1
  362. package/src/models/operations/deletefile.ts +1 -1
  363. package/src/models/operations/deleteproduct.ts +9 -4
  364. package/src/models/operations/deletewebhookendpoint.ts +1 -1
  365. package/src/models/operations/getblogpost.ts +9 -4
  366. package/src/models/operations/getcart.ts +1 -1
  367. package/src/models/operations/getcheckout.ts +1 -1
  368. package/src/models/operations/getcheckoutlink.ts +1 -1
  369. package/src/models/operations/getcustomer.ts +1 -1
  370. package/src/models/operations/getdiscount.ts +1 -1
  371. package/src/models/operations/getexperience.ts +9 -4
  372. package/src/models/operations/getfile.ts +1 -1
  373. package/src/models/operations/getinvoice.ts +1 -1
  374. package/src/models/operations/getorder.ts +1 -1
  375. package/src/models/operations/getorderitem.ts +1 -1
  376. package/src/models/operations/getpricevariant.ts +1 -1
  377. package/src/models/operations/getproduct.ts +9 -4
  378. package/src/models/operations/getreview.ts +1 -1
  379. package/src/models/operations/getsubscription.ts +1 -1
  380. package/src/models/operations/getwebhookendpoint.ts +1 -1
  381. package/src/models/operations/listblogposts.ts +27 -1
  382. package/src/models/operations/listcheckoutlinks.ts +1 -1
  383. package/src/models/operations/listcustomers.ts +1 -1
  384. package/src/models/operations/listdiscounts.ts +1 -1
  385. package/src/models/operations/listexperiences.ts +1 -1
  386. package/src/models/operations/listfiles.ts +1 -1
  387. package/src/models/operations/listinvoices.ts +2 -2
  388. package/src/models/operations/listorders.ts +2 -2
  389. package/src/models/operations/listpricevariants.ts +2 -2
  390. package/src/models/operations/listproducts.ts +1 -1
  391. package/src/models/operations/listreviews.ts +2 -2
  392. package/src/models/operations/listsubscriptions.ts +1 -1
  393. package/src/models/operations/listwebhookendpoints.ts +1 -1
  394. package/src/models/operations/pausesubscription.ts +1 -1
  395. package/src/models/operations/payinvoice.ts +1 -1
  396. package/src/models/operations/requestx402access.ts +6 -5
  397. package/src/models/operations/resumesubscription.ts +1 -1
  398. package/src/models/operations/testwebhookendpoint.ts +1 -1
  399. package/src/models/operations/updatecart.ts +1 -1
  400. package/src/models/operations/updatecheckout.ts +1 -1
  401. package/src/models/operations/updatecheckoutlink.ts +1 -1
  402. package/src/models/operations/updatecustomer.ts +1 -1
  403. package/src/models/operations/updatediscount.ts +1 -1
  404. package/src/models/operations/updatepricevariant.ts +1 -1
  405. package/src/models/operations/updateproduct.ts +5 -4
  406. package/src/models/operations/updatewebhookendpoint.ts +1 -1
  407. package/src/models/operations/voidinvoice.ts +1 -1
  408. package/src/models/order.ts +2 -2
  409. package/src/models/orderitem.ts +6 -6
  410. package/src/models/pricevariant.ts +3 -0
  411. package/src/models/product.ts +2 -5
  412. package/src/sdk/blogposts.ts +2 -2
  413. package/src/sdk/files.ts +1 -1
  414. package/test-sdk.ts +0 -74
@@ -3,17 +3,18 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
 
7
8
  export type GetBlogPostRequest = {
8
9
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
10
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
11
  */
11
- id: string;
12
+ idOrSlug: string;
12
13
  };
13
14
 
14
15
  /** @internal */
15
16
  export type GetBlogPostRequest$Outbound = {
16
- id: string;
17
+ id_or_slug: string;
17
18
  };
18
19
 
19
20
  /** @internal */
@@ -22,7 +23,11 @@ export const GetBlogPostRequest$outboundSchema: z.ZodType<
22
23
  z.ZodTypeDef,
23
24
  GetBlogPostRequest
24
25
  > = z.object({
25
- id: z.string(),
26
+ idOrSlug: z.string(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ idOrSlug: "id_or_slug",
30
+ });
26
31
  });
27
32
 
28
33
  export function getBlogPostRequestToJSON(
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetCartRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetCheckoutRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetCheckoutLinkRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  /**
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetCustomerRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetDiscountRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -3,17 +3,18 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
 
7
8
  export type GetExperienceRequest = {
8
9
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
10
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
11
  */
11
- id: string;
12
+ idOrSlug: string;
12
13
  };
13
14
 
14
15
  /** @internal */
15
16
  export type GetExperienceRequest$Outbound = {
16
- id: string;
17
+ id_or_slug: string;
17
18
  };
18
19
 
19
20
  /** @internal */
@@ -22,7 +23,11 @@ export const GetExperienceRequest$outboundSchema: z.ZodType<
22
23
  z.ZodTypeDef,
23
24
  GetExperienceRequest
24
25
  > = z.object({
25
- id: z.string(),
26
+ idOrSlug: z.string(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ idOrSlug: "id_or_slug",
30
+ });
26
31
  });
27
32
 
28
33
  export function getExperienceRequestToJSON(
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetFileRequest = {
8
8
  /**
9
- * File prefix ID (e.g., "file_abc123")
9
+ * File ID (e.g., "file_abc123")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetInvoiceRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  /**
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetOrderRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  /**
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetOrderItemRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  /**
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetPriceVariantRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -3,12 +3,13 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
 
7
8
  export type GetProductRequest = {
8
9
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
10
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
11
  */
11
- id: string;
12
+ idOrSlug: string;
12
13
  /**
13
14
  * Comma-separated relations to expand: reviews
14
15
  */
@@ -17,7 +18,7 @@ export type GetProductRequest = {
17
18
 
18
19
  /** @internal */
19
20
  export type GetProductRequest$Outbound = {
20
- id: string;
21
+ id_or_slug: string;
21
22
  expand?: string | undefined;
22
23
  };
23
24
 
@@ -27,8 +28,12 @@ export const GetProductRequest$outboundSchema: z.ZodType<
27
28
  z.ZodTypeDef,
28
29
  GetProductRequest
29
30
  > = z.object({
30
- id: z.string(),
31
+ idOrSlug: z.string(),
31
32
  expand: z.string().optional(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ idOrSlug: "id_or_slug",
36
+ });
32
37
  });
33
38
 
34
39
  export function getProductRequestToJSON(
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetReviewRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetSubscriptionRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type GetWebhookEndpointRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -4,8 +4,27 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Filter by status: draft, published, scheduled, archived
11
+ */
12
+ export const ListBlogPostsStatus = {
13
+ Draft: "draft",
14
+ Published: "published",
15
+ Scheduled: "scheduled",
16
+ Archived: "archived",
17
+ } as const;
18
+ /**
19
+ * Filter by status: draft, published, scheduled, archived
20
+ */
21
+ export type ListBlogPostsStatus = ClosedEnum<typeof ListBlogPostsStatus>;
7
22
 
8
23
  export type ListBlogPostsRequest = {
24
+ /**
25
+ * Filter by status: draft, published, scheduled, archived
26
+ */
27
+ status?: ListBlogPostsStatus | undefined;
9
28
  /**
10
29
  * Filter by category slug
11
30
  */
@@ -15,7 +34,7 @@ export type ListBlogPostsRequest = {
15
34
  */
16
35
  query?: string | undefined;
17
36
  /**
18
- * Cursor for pagination — the prefix ID of the last item in the previous page
37
+ * Cursor for pagination — the ID of the last item in the previous page
19
38
  */
20
39
  startingAfter?: string | undefined;
21
40
  /**
@@ -24,8 +43,14 @@ export type ListBlogPostsRequest = {
24
43
  limit?: number | undefined;
25
44
  };
26
45
 
46
+ /** @internal */
47
+ export const ListBlogPostsStatus$outboundSchema: z.ZodNativeEnum<
48
+ typeof ListBlogPostsStatus
49
+ > = z.nativeEnum(ListBlogPostsStatus);
50
+
27
51
  /** @internal */
28
52
  export type ListBlogPostsRequest$Outbound = {
53
+ status?: string | undefined;
29
54
  category?: string | undefined;
30
55
  query?: string | undefined;
31
56
  starting_after?: string | undefined;
@@ -38,6 +63,7 @@ export const ListBlogPostsRequest$outboundSchema: z.ZodType<
38
63
  z.ZodTypeDef,
39
64
  ListBlogPostsRequest
40
65
  > = z.object({
66
+ status: ListBlogPostsStatus$outboundSchema.optional(),
41
67
  category: z.string().optional(),
42
68
  query: z.string().optional(),
43
69
  startingAfter: z.string().optional(),
@@ -11,7 +11,7 @@ export type ListCheckoutLinksRequest = {
11
11
  */
12
12
  expand?: string | undefined;
13
13
  /**
14
- * Cursor for pagination — the prefix ID of the last item in the previous page
14
+ * Cursor for pagination — the ID of the last item in the previous page
15
15
  */
16
16
  startingAfter?: string | undefined;
17
17
  /**
@@ -29,7 +29,7 @@ export type ListCustomersRequest = {
29
29
  */
30
30
  query?: string | undefined;
31
31
  /**
32
- * Cursor for pagination — the prefix ID of the last item in the previous page
32
+ * Cursor for pagination — the ID of the last item in the previous page
33
33
  */
34
34
  startingAfter?: string | undefined;
35
35
  /**
@@ -29,7 +29,7 @@ export type ListDiscountsRequest = {
29
29
  */
30
30
  query?: string | undefined;
31
31
  /**
32
- * Cursor for pagination — the prefix ID of the last item in the previous page
32
+ * Cursor for pagination — the ID of the last item in the previous page
33
33
  */
34
34
  startingAfter?: string | undefined;
35
35
  /**
@@ -11,7 +11,7 @@ export type ListExperiencesRequest = {
11
11
  */
12
12
  itemType?: string | undefined;
13
13
  /**
14
- * Cursor for pagination — the prefix ID of the last item in the previous page
14
+ * Cursor for pagination — the ID of the last item in the previous page
15
15
  */
16
16
  startingAfter?: string | undefined;
17
17
  /**
@@ -20,7 +20,7 @@ export type ListFilesSourceType = ClosedEnum<typeof ListFilesSourceType>;
20
20
 
21
21
  export type ListFilesRequest = {
22
22
  /**
23
- * Cursor for pagination — the prefix ID of the last item in the previous page
23
+ * Cursor for pagination — the ID of the last item in the previous page
24
24
  */
25
25
  startingAfter?: string | undefined;
26
26
  /**
@@ -26,7 +26,7 @@ export type ListInvoicesRequest = {
26
26
  */
27
27
  status?: ListInvoicesStatus | undefined;
28
28
  /**
29
- * Filter by customer prefix ID
29
+ * Filter by customer ID
30
30
  */
31
31
  customer?: string | undefined;
32
32
  /**
@@ -34,7 +34,7 @@ export type ListInvoicesRequest = {
34
34
  */
35
35
  expand?: string | undefined;
36
36
  /**
37
- * Cursor for pagination — the prefix ID of the last item in the previous page
37
+ * Cursor for pagination — the ID of the last item in the previous page
38
38
  */
39
39
  startingAfter?: string | undefined;
40
40
  /**
@@ -27,7 +27,7 @@ export type ListOrdersRequest = {
27
27
  */
28
28
  status?: ListOrdersStatus | undefined;
29
29
  /**
30
- * Filter by customer prefix ID
30
+ * Filter by customer ID
31
31
  */
32
32
  customer?: string | undefined;
33
33
  /**
@@ -39,7 +39,7 @@ export type ListOrdersRequest = {
39
39
  */
40
40
  expand?: string | undefined;
41
41
  /**
42
- * Cursor for pagination — the prefix ID of the last item in the previous page
42
+ * Cursor for pagination — the ID of the last item in the previous page
43
43
  */
44
44
  startingAfter?: string | undefined;
45
45
  /**
@@ -7,11 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type ListPriceVariantsRequest = {
9
9
  /**
10
- * Filter by product prefix ID
10
+ * Filter by product ID
11
11
  */
12
12
  product?: string | undefined;
13
13
  /**
14
- * Cursor for pagination — the prefix ID of the last item in the previous page
14
+ * Cursor for pagination — the ID of the last item in the previous page
15
15
  */
16
16
  startingAfter?: string | undefined;
17
17
  /**
@@ -33,7 +33,7 @@ export type ListProductsRequest = {
33
33
  */
34
34
  expand?: string | undefined;
35
35
  /**
36
- * Cursor for pagination — the prefix ID of the last item in the previous page
36
+ * Cursor for pagination — the ID of the last item in the previous page
37
37
  */
38
38
  startingAfter?: string | undefined;
39
39
  /**
@@ -7,11 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type ListReviewsRequest = {
9
9
  /**
10
- * Filter by product prefix ID
10
+ * Filter by product ID
11
11
  */
12
12
  product?: string | undefined;
13
13
  /**
14
- * Cursor for pagination — the prefix ID of the last item in the previous page
14
+ * Cursor for pagination — the ID of the last item in the previous page
15
15
  */
16
16
  startingAfter?: string | undefined;
17
17
  /**
@@ -31,7 +31,7 @@ export type ListSubscriptionsRequest = {
31
31
  */
32
32
  status?: ListSubscriptionsStatus | undefined;
33
33
  /**
34
- * Cursor for pagination — the prefix ID of the last item in the previous page
34
+ * Cursor for pagination — the ID of the last item in the previous page
35
35
  */
36
36
  startingAfter?: string | undefined;
37
37
  /**
@@ -26,7 +26,7 @@ export type ListWebhookEndpointsRequest = {
26
26
  */
27
27
  status?: ListWebhookEndpointsStatus | undefined;
28
28
  /**
29
- * Cursor for pagination — the prefix ID of the last item in the previous page
29
+ * Cursor for pagination — the ID of the last item in the previous page
30
30
  */
31
31
  startingAfter?: string | undefined;
32
32
  /**
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type PauseSubscriptionRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type PayInvoiceRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -7,18 +7,18 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
 
8
8
  export type RequestX402AccessRequest = {
9
9
  /**
10
- * The resource prefix ID (e.g., "prod_abc123")
10
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
11
11
  */
12
- id: string;
12
+ idOrSlug: string;
13
13
  /**
14
- * Price variant prefix ID to use for payment
14
+ * Price variant ID to use for payment
15
15
  */
16
16
  priceVariant?: string | undefined;
17
17
  };
18
18
 
19
19
  /** @internal */
20
20
  export type RequestX402AccessRequest$Outbound = {
21
- id: string;
21
+ id_or_slug: string;
22
22
  price_variant?: string | undefined;
23
23
  };
24
24
 
@@ -28,10 +28,11 @@ export const RequestX402AccessRequest$outboundSchema: z.ZodType<
28
28
  z.ZodTypeDef,
29
29
  RequestX402AccessRequest
30
30
  > = z.object({
31
- id: z.string(),
31
+ idOrSlug: z.string(),
32
32
  priceVariant: z.string().optional(),
33
33
  }).transform((v) => {
34
34
  return remap$(v, {
35
+ idOrSlug: "id_or_slug",
35
36
  priceVariant: "price_variant",
36
37
  });
37
38
  });
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type ResumeSubscriptionRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -10,7 +10,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type TestWebhookEndpointRequest = {
12
12
  /**
13
- * The resource prefix ID (e.g., "prod_abc123")
13
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
14
14
  */
15
15
  id: string;
16
16
  /**
@@ -8,7 +8,7 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdateCartRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
13
  id: string;
14
14
  cartUpdateRequest: models.CartUpdateRequest;
@@ -8,7 +8,7 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdateCheckoutRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
13
  id: string;
14
14
  checkoutUpdateRequest: models.CheckoutUpdateRequest;
@@ -8,7 +8,7 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdateCheckoutLinkRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
13
  id: string;
14
14
  checkoutLinkRequest: models.CheckoutLinkRequest;
@@ -8,7 +8,7 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdateCustomerRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
13
  id: string;
14
14
  customerRequest: models.CustomerRequest;
@@ -8,7 +8,7 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdateDiscountRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
13
  id: string;
14
14
  discountRequest: models.DiscountRequest;
@@ -8,7 +8,7 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdatePriceVariantRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
13
  id: string;
14
14
  priceVariantUpdateRequest: models.PriceVariantUpdateRequest;
@@ -8,15 +8,15 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdateProductRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
- id: string;
13
+ idOrSlug: string;
14
14
  productRequest: models.ProductRequest;
15
15
  };
16
16
 
17
17
  /** @internal */
18
18
  export type UpdateProductRequest$Outbound = {
19
- id: string;
19
+ id_or_slug: string;
20
20
  ProductRequest: models.ProductRequest$Outbound;
21
21
  };
22
22
 
@@ -26,10 +26,11 @@ export const UpdateProductRequest$outboundSchema: z.ZodType<
26
26
  z.ZodTypeDef,
27
27
  UpdateProductRequest
28
28
  > = z.object({
29
- id: z.string(),
29
+ idOrSlug: z.string(),
30
30
  productRequest: models.ProductRequest$outboundSchema,
31
31
  }).transform((v) => {
32
32
  return remap$(v, {
33
+ idOrSlug: "id_or_slug",
33
34
  productRequest: "ProductRequest",
34
35
  });
35
36
  });
@@ -8,7 +8,7 @@ import * as models from "../index.js";
8
8
 
9
9
  export type UpdateWebhookEndpointRequest = {
10
10
  /**
11
- * The resource prefix ID (e.g., "prod_abc123")
11
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
12
12
  */
13
13
  id: string;
14
14
  webhookEndpointRequest: models.WebhookEndpointRequest;
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
6
6
 
7
7
  export type VoidInvoiceRequest = {
8
8
  /**
9
- * The resource prefix ID (e.g., "prod_abc123")
9
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
10
10
  */
11
11
  id: string;
12
12
  };
@@ -22,7 +22,7 @@ export const OrderStatus = {
22
22
  export type OrderStatus = ClosedEnum<typeof OrderStatus>;
23
23
 
24
24
  /**
25
- * Prefix ID by default, full object when expanded
25
+ * ID by default, full object when expanded
26
26
  */
27
27
  export type OrderCustomer = Customer | string;
28
28
 
@@ -36,7 +36,7 @@ export type Order = {
36
36
  currency: string;
37
37
  amountRefunded: number;
38
38
  /**
39
- * Prefix ID by default, full object when expanded
39
+ * ID by default, full object when expanded
40
40
  */
41
41
  customer: Customer | string | null;
42
42
  lineItems?: Array<OrderItem> | undefined;