@crevio/sdk 0.4.8 → 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 (283) 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/experiencesGet.js +2 -2
  9. package/dist/commonjs/funcs/experiencesGet.js.map +1 -1
  10. package/dist/commonjs/funcs/filesGet.d.ts +1 -1
  11. package/dist/commonjs/funcs/filesGet.js +1 -1
  12. package/dist/commonjs/funcs/productsDelete.js +2 -2
  13. package/dist/commonjs/funcs/productsDelete.js.map +1 -1
  14. package/dist/commonjs/funcs/productsGet.js +2 -2
  15. package/dist/commonjs/funcs/productsGet.js.map +1 -1
  16. package/dist/commonjs/funcs/productsRequestX402Access.js +2 -2
  17. package/dist/commonjs/funcs/productsRequestX402Access.js.map +1 -1
  18. package/dist/commonjs/funcs/productsUpdate.js +2 -2
  19. package/dist/commonjs/funcs/productsUpdate.js.map +1 -1
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/lib/config.js.map +1 -1
  23. package/dist/commonjs/models/cartcreaterequest.d.ts +1 -1
  24. package/dist/commonjs/models/checkoutcreaterequest.d.ts +1 -1
  25. package/dist/commonjs/models/checkoutlink.d.ts +2 -2
  26. package/dist/commonjs/models/checkoutlinkrequest.d.ts +1 -1
  27. package/dist/commonjs/models/invoice.d.ts +6 -6
  28. package/dist/commonjs/models/invoicerequest.d.ts +2 -2
  29. package/dist/commonjs/models/operations/cancelsubscription.d.ts +1 -1
  30. package/dist/commonjs/models/operations/deletecart.d.ts +1 -1
  31. package/dist/commonjs/models/operations/deletecheckoutlink.d.ts +1 -1
  32. package/dist/commonjs/models/operations/deletediscount.d.ts +1 -1
  33. package/dist/commonjs/models/operations/deletefile.d.ts +1 -1
  34. package/dist/commonjs/models/operations/deleteproduct.d.ts +3 -3
  35. package/dist/commonjs/models/operations/deleteproduct.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/deleteproduct.js +6 -1
  37. package/dist/commonjs/models/operations/deleteproduct.js.map +1 -1
  38. package/dist/commonjs/models/operations/deletewebhookendpoint.d.ts +1 -1
  39. package/dist/commonjs/models/operations/getblogpost.d.ts +3 -3
  40. package/dist/commonjs/models/operations/getblogpost.d.ts.map +1 -1
  41. package/dist/commonjs/models/operations/getblogpost.js +6 -1
  42. package/dist/commonjs/models/operations/getblogpost.js.map +1 -1
  43. package/dist/commonjs/models/operations/getcart.d.ts +1 -1
  44. package/dist/commonjs/models/operations/getcheckout.d.ts +1 -1
  45. package/dist/commonjs/models/operations/getcheckoutlink.d.ts +1 -1
  46. package/dist/commonjs/models/operations/getcustomer.d.ts +1 -1
  47. package/dist/commonjs/models/operations/getdiscount.d.ts +1 -1
  48. package/dist/commonjs/models/operations/getexperience.d.ts +3 -3
  49. package/dist/commonjs/models/operations/getexperience.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/getexperience.js +6 -1
  51. package/dist/commonjs/models/operations/getexperience.js.map +1 -1
  52. package/dist/commonjs/models/operations/getfile.d.ts +1 -1
  53. package/dist/commonjs/models/operations/getinvoice.d.ts +1 -1
  54. package/dist/commonjs/models/operations/getorder.d.ts +1 -1
  55. package/dist/commonjs/models/operations/getorderitem.d.ts +1 -1
  56. package/dist/commonjs/models/operations/getpricevariant.d.ts +1 -1
  57. package/dist/commonjs/models/operations/getproduct.d.ts +3 -3
  58. package/dist/commonjs/models/operations/getproduct.d.ts.map +1 -1
  59. package/dist/commonjs/models/operations/getproduct.js +6 -1
  60. package/dist/commonjs/models/operations/getproduct.js.map +1 -1
  61. package/dist/commonjs/models/operations/getreview.d.ts +1 -1
  62. package/dist/commonjs/models/operations/getsubscription.d.ts +1 -1
  63. package/dist/commonjs/models/operations/getwebhookendpoint.d.ts +1 -1
  64. package/dist/commonjs/models/operations/listblogposts.d.ts +22 -1
  65. package/dist/commonjs/models/operations/listblogposts.d.ts.map +1 -1
  66. package/dist/commonjs/models/operations/listblogposts.js +13 -1
  67. package/dist/commonjs/models/operations/listblogposts.js.map +1 -1
  68. package/dist/commonjs/models/operations/listcheckoutlinks.d.ts +1 -1
  69. package/dist/commonjs/models/operations/listcustomers.d.ts +1 -1
  70. package/dist/commonjs/models/operations/listdiscounts.d.ts +1 -1
  71. package/dist/commonjs/models/operations/listexperiences.d.ts +1 -1
  72. package/dist/commonjs/models/operations/listfiles.d.ts +1 -1
  73. package/dist/commonjs/models/operations/listinvoices.d.ts +2 -2
  74. package/dist/commonjs/models/operations/listorders.d.ts +2 -2
  75. package/dist/commonjs/models/operations/listpricevariants.d.ts +2 -2
  76. package/dist/commonjs/models/operations/listproducts.d.ts +1 -1
  77. package/dist/commonjs/models/operations/listreviews.d.ts +2 -2
  78. package/dist/commonjs/models/operations/listsubscriptions.d.ts +1 -1
  79. package/dist/commonjs/models/operations/listwebhookendpoints.d.ts +1 -1
  80. package/dist/commonjs/models/operations/pausesubscription.d.ts +1 -1
  81. package/dist/commonjs/models/operations/payinvoice.d.ts +1 -1
  82. package/dist/commonjs/models/operations/requestx402access.d.ts +4 -4
  83. package/dist/commonjs/models/operations/requestx402access.d.ts.map +1 -1
  84. package/dist/commonjs/models/operations/requestx402access.js +2 -1
  85. package/dist/commonjs/models/operations/requestx402access.js.map +1 -1
  86. package/dist/commonjs/models/operations/resumesubscription.d.ts +1 -1
  87. package/dist/commonjs/models/operations/testwebhookendpoint.d.ts +1 -1
  88. package/dist/commonjs/models/operations/updatecart.d.ts +1 -1
  89. package/dist/commonjs/models/operations/updatecheckout.d.ts +1 -1
  90. package/dist/commonjs/models/operations/updatecheckoutlink.d.ts +1 -1
  91. package/dist/commonjs/models/operations/updatecustomer.d.ts +1 -1
  92. package/dist/commonjs/models/operations/updatediscount.d.ts +1 -1
  93. package/dist/commonjs/models/operations/updatepricevariant.d.ts +1 -1
  94. package/dist/commonjs/models/operations/updateproduct.d.ts +3 -3
  95. package/dist/commonjs/models/operations/updateproduct.d.ts.map +1 -1
  96. package/dist/commonjs/models/operations/updateproduct.js +2 -1
  97. package/dist/commonjs/models/operations/updateproduct.js.map +1 -1
  98. package/dist/commonjs/models/operations/updatewebhookendpoint.d.ts +1 -1
  99. package/dist/commonjs/models/operations/voidinvoice.d.ts +1 -1
  100. package/dist/commonjs/models/order.d.ts +2 -2
  101. package/dist/commonjs/models/orderitem.d.ts +6 -6
  102. package/dist/commonjs/models/product.d.ts +2 -2
  103. package/dist/commonjs/sdk/blogposts.d.ts +2 -2
  104. package/dist/commonjs/sdk/blogposts.js +2 -2
  105. package/dist/commonjs/sdk/files.d.ts +1 -1
  106. package/dist/commonjs/sdk/files.js +1 -1
  107. package/dist/esm/funcs/blogPostsGet.d.ts +1 -1
  108. package/dist/esm/funcs/blogPostsGet.js +3 -3
  109. package/dist/esm/funcs/blogPostsGet.js.map +1 -1
  110. package/dist/esm/funcs/blogPostsList.d.ts +1 -1
  111. package/dist/esm/funcs/blogPostsList.js +2 -1
  112. package/dist/esm/funcs/blogPostsList.js.map +1 -1
  113. package/dist/esm/funcs/experiencesGet.js +2 -2
  114. package/dist/esm/funcs/experiencesGet.js.map +1 -1
  115. package/dist/esm/funcs/filesGet.d.ts +1 -1
  116. package/dist/esm/funcs/filesGet.js +1 -1
  117. package/dist/esm/funcs/productsDelete.js +2 -2
  118. package/dist/esm/funcs/productsDelete.js.map +1 -1
  119. package/dist/esm/funcs/productsGet.js +2 -2
  120. package/dist/esm/funcs/productsGet.js.map +1 -1
  121. package/dist/esm/funcs/productsRequestX402Access.js +2 -2
  122. package/dist/esm/funcs/productsRequestX402Access.js.map +1 -1
  123. package/dist/esm/funcs/productsUpdate.js +2 -2
  124. package/dist/esm/funcs/productsUpdate.js.map +1 -1
  125. package/dist/esm/lib/config.d.ts +2 -2
  126. package/dist/esm/lib/config.js +2 -2
  127. package/dist/esm/lib/config.js.map +1 -1
  128. package/dist/esm/models/cartcreaterequest.d.ts +1 -1
  129. package/dist/esm/models/checkoutcreaterequest.d.ts +1 -1
  130. package/dist/esm/models/checkoutlink.d.ts +2 -2
  131. package/dist/esm/models/checkoutlinkrequest.d.ts +1 -1
  132. package/dist/esm/models/invoice.d.ts +6 -6
  133. package/dist/esm/models/invoicerequest.d.ts +2 -2
  134. package/dist/esm/models/operations/cancelsubscription.d.ts +1 -1
  135. package/dist/esm/models/operations/deletecart.d.ts +1 -1
  136. package/dist/esm/models/operations/deletecheckoutlink.d.ts +1 -1
  137. package/dist/esm/models/operations/deletediscount.d.ts +1 -1
  138. package/dist/esm/models/operations/deletefile.d.ts +1 -1
  139. package/dist/esm/models/operations/deleteproduct.d.ts +3 -3
  140. package/dist/esm/models/operations/deleteproduct.d.ts.map +1 -1
  141. package/dist/esm/models/operations/deleteproduct.js +6 -1
  142. package/dist/esm/models/operations/deleteproduct.js.map +1 -1
  143. package/dist/esm/models/operations/deletewebhookendpoint.d.ts +1 -1
  144. package/dist/esm/models/operations/getblogpost.d.ts +3 -3
  145. package/dist/esm/models/operations/getblogpost.d.ts.map +1 -1
  146. package/dist/esm/models/operations/getblogpost.js +6 -1
  147. package/dist/esm/models/operations/getblogpost.js.map +1 -1
  148. package/dist/esm/models/operations/getcart.d.ts +1 -1
  149. package/dist/esm/models/operations/getcheckout.d.ts +1 -1
  150. package/dist/esm/models/operations/getcheckoutlink.d.ts +1 -1
  151. package/dist/esm/models/operations/getcustomer.d.ts +1 -1
  152. package/dist/esm/models/operations/getdiscount.d.ts +1 -1
  153. package/dist/esm/models/operations/getexperience.d.ts +3 -3
  154. package/dist/esm/models/operations/getexperience.d.ts.map +1 -1
  155. package/dist/esm/models/operations/getexperience.js +6 -1
  156. package/dist/esm/models/operations/getexperience.js.map +1 -1
  157. package/dist/esm/models/operations/getfile.d.ts +1 -1
  158. package/dist/esm/models/operations/getinvoice.d.ts +1 -1
  159. package/dist/esm/models/operations/getorder.d.ts +1 -1
  160. package/dist/esm/models/operations/getorderitem.d.ts +1 -1
  161. package/dist/esm/models/operations/getpricevariant.d.ts +1 -1
  162. package/dist/esm/models/operations/getproduct.d.ts +3 -3
  163. package/dist/esm/models/operations/getproduct.d.ts.map +1 -1
  164. package/dist/esm/models/operations/getproduct.js +6 -1
  165. package/dist/esm/models/operations/getproduct.js.map +1 -1
  166. package/dist/esm/models/operations/getreview.d.ts +1 -1
  167. package/dist/esm/models/operations/getsubscription.d.ts +1 -1
  168. package/dist/esm/models/operations/getwebhookendpoint.d.ts +1 -1
  169. package/dist/esm/models/operations/listblogposts.d.ts +22 -1
  170. package/dist/esm/models/operations/listblogposts.d.ts.map +1 -1
  171. package/dist/esm/models/operations/listblogposts.js +12 -0
  172. package/dist/esm/models/operations/listblogposts.js.map +1 -1
  173. package/dist/esm/models/operations/listcheckoutlinks.d.ts +1 -1
  174. package/dist/esm/models/operations/listcustomers.d.ts +1 -1
  175. package/dist/esm/models/operations/listdiscounts.d.ts +1 -1
  176. package/dist/esm/models/operations/listexperiences.d.ts +1 -1
  177. package/dist/esm/models/operations/listfiles.d.ts +1 -1
  178. package/dist/esm/models/operations/listinvoices.d.ts +2 -2
  179. package/dist/esm/models/operations/listorders.d.ts +2 -2
  180. package/dist/esm/models/operations/listpricevariants.d.ts +2 -2
  181. package/dist/esm/models/operations/listproducts.d.ts +1 -1
  182. package/dist/esm/models/operations/listreviews.d.ts +2 -2
  183. package/dist/esm/models/operations/listsubscriptions.d.ts +1 -1
  184. package/dist/esm/models/operations/listwebhookendpoints.d.ts +1 -1
  185. package/dist/esm/models/operations/pausesubscription.d.ts +1 -1
  186. package/dist/esm/models/operations/payinvoice.d.ts +1 -1
  187. package/dist/esm/models/operations/requestx402access.d.ts +4 -4
  188. package/dist/esm/models/operations/requestx402access.d.ts.map +1 -1
  189. package/dist/esm/models/operations/requestx402access.js +2 -1
  190. package/dist/esm/models/operations/requestx402access.js.map +1 -1
  191. package/dist/esm/models/operations/resumesubscription.d.ts +1 -1
  192. package/dist/esm/models/operations/testwebhookendpoint.d.ts +1 -1
  193. package/dist/esm/models/operations/updatecart.d.ts +1 -1
  194. package/dist/esm/models/operations/updatecheckout.d.ts +1 -1
  195. package/dist/esm/models/operations/updatecheckoutlink.d.ts +1 -1
  196. package/dist/esm/models/operations/updatecustomer.d.ts +1 -1
  197. package/dist/esm/models/operations/updatediscount.d.ts +1 -1
  198. package/dist/esm/models/operations/updatepricevariant.d.ts +1 -1
  199. package/dist/esm/models/operations/updateproduct.d.ts +3 -3
  200. package/dist/esm/models/operations/updateproduct.d.ts.map +1 -1
  201. package/dist/esm/models/operations/updateproduct.js +2 -1
  202. package/dist/esm/models/operations/updateproduct.js.map +1 -1
  203. package/dist/esm/models/operations/updatewebhookendpoint.d.ts +1 -1
  204. package/dist/esm/models/operations/voidinvoice.d.ts +1 -1
  205. package/dist/esm/models/order.d.ts +2 -2
  206. package/dist/esm/models/orderitem.d.ts +6 -6
  207. package/dist/esm/models/product.d.ts +2 -2
  208. package/dist/esm/sdk/blogposts.d.ts +2 -2
  209. package/dist/esm/sdk/blogposts.js +2 -2
  210. package/dist/esm/sdk/files.d.ts +1 -1
  211. package/dist/esm/sdk/files.js +1 -1
  212. package/jsr.json +1 -1
  213. package/package.json +2 -2
  214. package/src/funcs/blogPostsGet.ts +3 -3
  215. package/src/funcs/blogPostsList.ts +2 -1
  216. package/src/funcs/experiencesGet.ts +2 -2
  217. package/src/funcs/filesGet.ts +1 -1
  218. package/src/funcs/productsDelete.ts +2 -2
  219. package/src/funcs/productsGet.ts +2 -2
  220. package/src/funcs/productsRequestX402Access.ts +2 -2
  221. package/src/funcs/productsUpdate.ts +2 -2
  222. package/src/lib/config.ts +2 -2
  223. package/src/models/cartcreaterequest.ts +1 -1
  224. package/src/models/checkoutcreaterequest.ts +1 -1
  225. package/src/models/checkoutlink.ts +2 -2
  226. package/src/models/checkoutlinkrequest.ts +1 -1
  227. package/src/models/invoice.ts +6 -6
  228. package/src/models/invoicerequest.ts +2 -2
  229. package/src/models/operations/cancelsubscription.ts +1 -1
  230. package/src/models/operations/deletecart.ts +1 -1
  231. package/src/models/operations/deletecheckoutlink.ts +1 -1
  232. package/src/models/operations/deletediscount.ts +1 -1
  233. package/src/models/operations/deletefile.ts +1 -1
  234. package/src/models/operations/deleteproduct.ts +9 -4
  235. package/src/models/operations/deletewebhookendpoint.ts +1 -1
  236. package/src/models/operations/getblogpost.ts +9 -4
  237. package/src/models/operations/getcart.ts +1 -1
  238. package/src/models/operations/getcheckout.ts +1 -1
  239. package/src/models/operations/getcheckoutlink.ts +1 -1
  240. package/src/models/operations/getcustomer.ts +1 -1
  241. package/src/models/operations/getdiscount.ts +1 -1
  242. package/src/models/operations/getexperience.ts +9 -4
  243. package/src/models/operations/getfile.ts +1 -1
  244. package/src/models/operations/getinvoice.ts +1 -1
  245. package/src/models/operations/getorder.ts +1 -1
  246. package/src/models/operations/getorderitem.ts +1 -1
  247. package/src/models/operations/getpricevariant.ts +1 -1
  248. package/src/models/operations/getproduct.ts +9 -4
  249. package/src/models/operations/getreview.ts +1 -1
  250. package/src/models/operations/getsubscription.ts +1 -1
  251. package/src/models/operations/getwebhookendpoint.ts +1 -1
  252. package/src/models/operations/listblogposts.ts +27 -1
  253. package/src/models/operations/listcheckoutlinks.ts +1 -1
  254. package/src/models/operations/listcustomers.ts +1 -1
  255. package/src/models/operations/listdiscounts.ts +1 -1
  256. package/src/models/operations/listexperiences.ts +1 -1
  257. package/src/models/operations/listfiles.ts +1 -1
  258. package/src/models/operations/listinvoices.ts +2 -2
  259. package/src/models/operations/listorders.ts +2 -2
  260. package/src/models/operations/listpricevariants.ts +2 -2
  261. package/src/models/operations/listproducts.ts +1 -1
  262. package/src/models/operations/listreviews.ts +2 -2
  263. package/src/models/operations/listsubscriptions.ts +1 -1
  264. package/src/models/operations/listwebhookendpoints.ts +1 -1
  265. package/src/models/operations/pausesubscription.ts +1 -1
  266. package/src/models/operations/payinvoice.ts +1 -1
  267. package/src/models/operations/requestx402access.ts +6 -5
  268. package/src/models/operations/resumesubscription.ts +1 -1
  269. package/src/models/operations/testwebhookendpoint.ts +1 -1
  270. package/src/models/operations/updatecart.ts +1 -1
  271. package/src/models/operations/updatecheckout.ts +1 -1
  272. package/src/models/operations/updatecheckoutlink.ts +1 -1
  273. package/src/models/operations/updatecustomer.ts +1 -1
  274. package/src/models/operations/updatediscount.ts +1 -1
  275. package/src/models/operations/updatepricevariant.ts +1 -1
  276. package/src/models/operations/updateproduct.ts +5 -4
  277. package/src/models/operations/updatewebhookendpoint.ts +1 -1
  278. package/src/models/operations/voidinvoice.ts +1 -1
  279. package/src/models/order.ts +2 -2
  280. package/src/models/orderitem.ts +6 -6
  281. package/src/models/product.ts +2 -2
  282. package/src/sdk/blogposts.ts +2 -2
  283. package/src/sdk/files.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetCartRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetCheckoutRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetCheckoutLinkRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetCustomerRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetDiscountRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,13 +1,13 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetExperienceRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
- id: string;
6
+ idOrSlug: string;
7
7
  };
8
8
  /** @internal */
9
9
  export type GetExperienceRequest$Outbound = {
10
- id: string;
10
+ id_or_slug: string;
11
11
  };
12
12
  /** @internal */
13
13
  export declare const GetExperienceRequest$outboundSchema: z.ZodType<GetExperienceRequest$Outbound, z.ZodTypeDef, GetExperienceRequest>;
@@ -1 +1 @@
1
- {"version":3,"file":"getexperience.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getexperience.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAGpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
1
+ {"version":3,"file":"getexperience.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getexperience.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAOpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
@@ -39,9 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.GetExperienceRequest$outboundSchema = void 0;
40
40
  exports.getExperienceRequestToJSON = getExperienceRequestToJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
+ const primitives_js_1 = require("../../lib/primitives.js");
42
43
  /** @internal */
43
44
  exports.GetExperienceRequest$outboundSchema = z.object({
44
- id: z.string(),
45
+ idOrSlug: z.string(),
46
+ }).transform((v) => {
47
+ return (0, primitives_js_1.remap)(v, {
48
+ idOrSlug: "id_or_slug",
49
+ });
45
50
  });
46
51
  function getExperienceRequestToJSON(getExperienceRequest) {
47
52
  return JSON.stringify(exports.GetExperienceRequest$outboundSchema.parse(getExperienceRequest));
@@ -1 +1 @@
1
- {"version":3,"file":"getexperience.js","sourceRoot":"","sources":["../../../../src/models/operations/getexperience.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,gEAMC;AA7BD,0CAA4B;AAc5B,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"getexperience.js","sourceRoot":"","sources":["../../../../src/models/operations/getexperience.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,gEAMC;AAlCD,0CAA4B;AAC5B,2DAA0D;AAc1D,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,YAAY;KACvB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetFileRequest = {
3
3
  /**
4
- * File prefix ID (e.g., "file_abc123")
4
+ * File ID (e.g., "file_abc123")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetInvoiceRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetOrderRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetOrderItemRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetPriceVariantRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetProductRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
- id: string;
6
+ idOrSlug: string;
7
7
  /**
8
8
  * Comma-separated relations to expand: reviews
9
9
  */
@@ -11,7 +11,7 @@ export type GetProductRequest = {
11
11
  };
12
12
  /** @internal */
13
13
  export type GetProductRequest$Outbound = {
14
- id: string;
14
+ id_or_slug: string;
15
15
  expand?: string | undefined;
16
16
  };
17
17
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"getproduct.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getproduct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAIjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
1
+ {"version":3,"file":"getproduct.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/getproduct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAQjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
@@ -39,10 +39,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.GetProductRequest$outboundSchema = void 0;
40
40
  exports.getProductRequestToJSON = getProductRequestToJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
+ const primitives_js_1 = require("../../lib/primitives.js");
42
43
  /** @internal */
43
44
  exports.GetProductRequest$outboundSchema = z.object({
44
- id: z.string(),
45
+ idOrSlug: z.string(),
45
46
  expand: z.string().optional(),
47
+ }).transform((v) => {
48
+ return (0, primitives_js_1.remap)(v, {
49
+ idOrSlug: "id_or_slug",
50
+ });
46
51
  });
47
52
  function getProductRequestToJSON(getProductRequest) {
48
53
  return JSON.stringify(exports.GetProductRequest$outboundSchema.parse(getProductRequest));
@@ -1 +1 @@
1
- {"version":3,"file":"getproduct.js","sourceRoot":"","sources":["../../../../src/models/operations/getproduct.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,0DAMC;AAnCD,0CAA4B;AAmB5B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"getproduct.js","sourceRoot":"","sources":["../../../../src/models/operations/getproduct.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,0DAMC;AAxCD,0CAA4B;AAC5B,2DAA0D;AAmB1D,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,YAAY;KACvB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetReviewRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetSubscriptionRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type GetWebhookEndpointRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,5 +1,23 @@
1
1
  import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ /**
4
+ * Filter by status: draft, published, scheduled, archived
5
+ */
6
+ export declare const ListBlogPostsStatus: {
7
+ readonly Draft: "draft";
8
+ readonly Published: "published";
9
+ readonly Scheduled: "scheduled";
10
+ readonly Archived: "archived";
11
+ };
12
+ /**
13
+ * Filter by status: draft, published, scheduled, archived
14
+ */
15
+ export type ListBlogPostsStatus = ClosedEnum<typeof ListBlogPostsStatus>;
2
16
  export type ListBlogPostsRequest = {
17
+ /**
18
+ * Filter by status: draft, published, scheduled, archived
19
+ */
20
+ status?: ListBlogPostsStatus | undefined;
3
21
  /**
4
22
  * Filter by category slug
5
23
  */
@@ -9,7 +27,7 @@ export type ListBlogPostsRequest = {
9
27
  */
10
28
  query?: string | undefined;
11
29
  /**
12
- * Cursor for pagination — the prefix ID of the last item in the previous page
30
+ * Cursor for pagination — the ID of the last item in the previous page
13
31
  */
14
32
  startingAfter?: string | undefined;
15
33
  /**
@@ -18,7 +36,10 @@ export type ListBlogPostsRequest = {
18
36
  limit?: number | undefined;
19
37
  };
20
38
  /** @internal */
39
+ export declare const ListBlogPostsStatus$outboundSchema: z.ZodNativeEnum<typeof ListBlogPostsStatus>;
40
+ /** @internal */
21
41
  export type ListBlogPostsRequest$Outbound = {
42
+ status?: string | undefined;
22
43
  category?: string | undefined;
23
44
  query?: string | undefined;
24
45
  starting_after?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"listblogposts.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listblogposts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAUpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
1
+ {"version":3,"file":"listblogposts.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listblogposts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,mBAAmB,CACS,CAAC;AAEtC,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAWpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
@@ -36,12 +36,24 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ListBlogPostsRequest$outboundSchema = void 0;
39
+ exports.ListBlogPostsRequest$outboundSchema = exports.ListBlogPostsStatus$outboundSchema = exports.ListBlogPostsStatus = void 0;
40
40
  exports.listBlogPostsRequestToJSON = listBlogPostsRequestToJSON;
41
41
  const z = __importStar(require("zod/v3"));
42
42
  const primitives_js_1 = require("../../lib/primitives.js");
43
+ /**
44
+ * Filter by status: draft, published, scheduled, archived
45
+ */
46
+ exports.ListBlogPostsStatus = {
47
+ Draft: "draft",
48
+ Published: "published",
49
+ Scheduled: "scheduled",
50
+ Archived: "archived",
51
+ };
52
+ /** @internal */
53
+ exports.ListBlogPostsStatus$outboundSchema = z.nativeEnum(exports.ListBlogPostsStatus);
43
54
  /** @internal */
44
55
  exports.ListBlogPostsRequest$outboundSchema = z.object({
56
+ status: exports.ListBlogPostsStatus$outboundSchema.optional(),
45
57
  category: z.string().optional(),
46
58
  query: z.string().optional(),
47
59
  startingAfter: z.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"listblogposts.js","sourceRoot":"","sources":["../../../../src/models/operations/listblogposts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDH,gEAMC;AApDD,0CAA4B;AAC5B,2DAA0D;AA6B1D,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"listblogposts.js","sourceRoot":"","sources":["../../../../src/models/operations/listblogposts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0EH,gEAMC;AA9ED,0CAA4B;AAC5B,2DAA0D;AAG1D;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC;AA6BX,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,CAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC;AAWtC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,0CAAkC,CAAC,QAAQ,EAAE;IACrD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
@@ -5,7 +5,7 @@ export type ListCheckoutLinksRequest = {
5
5
  */
6
6
  expand?: string | undefined;
7
7
  /**
8
- * Cursor for pagination — the prefix ID of the last item in the previous page
8
+ * Cursor for pagination — the ID of the last item in the previous page
9
9
  */
10
10
  startingAfter?: string | undefined;
11
11
  /**
@@ -22,7 +22,7 @@ export type ListCustomersRequest = {
22
22
  */
23
23
  query?: string | undefined;
24
24
  /**
25
- * Cursor for pagination — the prefix ID of the last item in the previous page
25
+ * Cursor for pagination — the ID of the last item in the previous page
26
26
  */
27
27
  startingAfter?: string | undefined;
28
28
  /**
@@ -22,7 +22,7 @@ export type ListDiscountsRequest = {
22
22
  */
23
23
  query?: string | undefined;
24
24
  /**
25
- * Cursor for pagination — the prefix ID of the last item in the previous page
25
+ * Cursor for pagination — the ID of the last item in the previous page
26
26
  */
27
27
  startingAfter?: string | undefined;
28
28
  /**
@@ -5,7 +5,7 @@ export type ListExperiencesRequest = {
5
5
  */
6
6
  itemType?: string | undefined;
7
7
  /**
8
- * Cursor for pagination — the prefix ID of the last item in the previous page
8
+ * Cursor for pagination — the ID of the last item in the previous page
9
9
  */
10
10
  startingAfter?: string | undefined;
11
11
  /**
@@ -13,7 +13,7 @@ export declare const ListFilesSourceType: {
13
13
  export type ListFilesSourceType = ClosedEnum<typeof ListFilesSourceType>;
14
14
  export type ListFilesRequest = {
15
15
  /**
16
- * Cursor for pagination — the prefix ID of the last item in the previous page
16
+ * Cursor for pagination — the ID of the last item in the previous page
17
17
  */
18
18
  startingAfter?: string | undefined;
19
19
  /**
@@ -19,7 +19,7 @@ export type ListInvoicesRequest = {
19
19
  */
20
20
  status?: ListInvoicesStatus | undefined;
21
21
  /**
22
- * Filter by customer prefix ID
22
+ * Filter by customer ID
23
23
  */
24
24
  customer?: string | undefined;
25
25
  /**
@@ -27,7 +27,7 @@ export type ListInvoicesRequest = {
27
27
  */
28
28
  expand?: string | undefined;
29
29
  /**
30
- * Cursor for pagination — the prefix ID of the last item in the previous page
30
+ * Cursor for pagination — the ID of the last item in the previous page
31
31
  */
32
32
  startingAfter?: string | undefined;
33
33
  /**
@@ -20,7 +20,7 @@ export type ListOrdersRequest = {
20
20
  */
21
21
  status?: ListOrdersStatus | undefined;
22
22
  /**
23
- * Filter by customer prefix ID
23
+ * Filter by customer ID
24
24
  */
25
25
  customer?: string | undefined;
26
26
  /**
@@ -32,7 +32,7 @@ export type ListOrdersRequest = {
32
32
  */
33
33
  expand?: string | undefined;
34
34
  /**
35
- * Cursor for pagination — the prefix ID of the last item in the previous page
35
+ * Cursor for pagination — the ID of the last item in the previous page
36
36
  */
37
37
  startingAfter?: string | undefined;
38
38
  /**
@@ -1,11 +1,11 @@
1
1
  import * as z from "zod/v3";
2
2
  export type ListPriceVariantsRequest = {
3
3
  /**
4
- * Filter by product prefix ID
4
+ * Filter by product ID
5
5
  */
6
6
  product?: string | undefined;
7
7
  /**
8
- * Cursor for pagination — the prefix ID of the last item in the previous page
8
+ * Cursor for pagination — the ID of the last item in the previous page
9
9
  */
10
10
  startingAfter?: string | undefined;
11
11
  /**
@@ -26,7 +26,7 @@ export type ListProductsRequest = {
26
26
  */
27
27
  expand?: string | 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
  /**
@@ -1,11 +1,11 @@
1
1
  import * as z from "zod/v3";
2
2
  export type ListReviewsRequest = {
3
3
  /**
4
- * Filter by product prefix ID
4
+ * Filter by product ID
5
5
  */
6
6
  product?: string | undefined;
7
7
  /**
8
- * Cursor for pagination — the prefix ID of the last item in the previous page
8
+ * Cursor for pagination — the ID of the last item in the previous page
9
9
  */
10
10
  startingAfter?: string | undefined;
11
11
  /**
@@ -22,7 +22,7 @@ export type ListSubscriptionsRequest = {
22
22
  */
23
23
  status?: ListSubscriptionsStatus | undefined;
24
24
  /**
25
- * Cursor for pagination — the prefix ID of the last item in the previous page
25
+ * Cursor for pagination — the ID of the last item in the previous page
26
26
  */
27
27
  startingAfter?: string | undefined;
28
28
  /**
@@ -17,7 +17,7 @@ export type ListWebhookEndpointsRequest = {
17
17
  */
18
18
  status?: ListWebhookEndpointsStatus | undefined;
19
19
  /**
20
- * Cursor for pagination — the prefix ID of the last item in the previous page
20
+ * Cursor for pagination — the ID of the last item in the previous page
21
21
  */
22
22
  startingAfter?: string | undefined;
23
23
  /**
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type PauseSubscriptionRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type PayInvoiceRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,17 +1,17 @@
1
1
  import * as z from "zod/v3";
2
2
  export type RequestX402AccessRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource prefix ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
- id: string;
6
+ idOrSlug: string;
7
7
  /**
8
- * Price variant prefix ID to use for payment
8
+ * Price variant ID to use for payment
9
9
  */
10
10
  priceVariant?: string | undefined;
11
11
  };
12
12
  /** @internal */
13
13
  export type RequestX402AccessRequest$Outbound = {
14
- id: string;
14
+ id_or_slug: string;
15
15
  price_variant?: string | undefined;
16
16
  };
17
17
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"requestx402access.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/requestx402access.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAQxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR"}
1
+ {"version":3,"file":"requestx402access.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/requestx402access.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CASxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR"}
@@ -42,10 +42,11 @@ const z = __importStar(require("zod/v3"));
42
42
  const primitives_js_1 = require("../../lib/primitives.js");
43
43
  /** @internal */
44
44
  exports.RequestX402AccessRequest$outboundSchema = z.object({
45
- id: z.string(),
45
+ idOrSlug: z.string(),
46
46
  priceVariant: z.string().optional(),
47
47
  }).transform((v) => {
48
48
  return (0, primitives_js_1.remap)(v, {
49
+ idOrSlug: "id_or_slug",
49
50
  priceVariant: "price_variant",
50
51
  });
51
52
  });
@@ -1 +1 @@
1
- {"version":3,"file":"requestx402access.js","sourceRoot":"","sources":["../../../../src/models/operations/requestx402access.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,wEAMC;AAxCD,0CAA4B;AAC5B,2DAA0D;AAmB1D,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"requestx402access.js","sourceRoot":"","sources":["../../../../src/models/operations/requestx402access.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCH,wEAMC;AAzCD,0CAA4B;AAC5B,2DAA0D;AAmB1D,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v3";
2
2
  export type ResumeSubscriptionRequest = {
3
3
  /**
4
- * The resource prefix ID (e.g., "prod_abc123")
4
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
5
5
  */
6
6
  id: string;
7
7
  };
@@ -3,7 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export type TestWebhookEndpointRequest = {
5
5
  /**
6
- * The resource prefix ID (e.g., "prod_abc123")
6
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
7
7
  */
8
8
  id: string;
9
9
  /**
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
2
2
  import * as models from "../index.js";
3
3
  export type UpdateCartRequest = {
4
4
  /**
5
- * The resource prefix ID (e.g., "prod_abc123")
5
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
6
6
  */
7
7
  id: string;
8
8
  cartUpdateRequest: models.CartUpdateRequest;
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
2
2
  import * as models from "../index.js";
3
3
  export type UpdateCheckoutRequest = {
4
4
  /**
5
- * The resource prefix ID (e.g., "prod_abc123")
5
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
6
6
  */
7
7
  id: string;
8
8
  checkoutUpdateRequest: models.CheckoutUpdateRequest;
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
2
2
  import * as models from "../index.js";
3
3
  export type UpdateCheckoutLinkRequest = {
4
4
  /**
5
- * The resource prefix ID (e.g., "prod_abc123")
5
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
6
6
  */
7
7
  id: string;
8
8
  checkoutLinkRequest: models.CheckoutLinkRequest;
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
2
2
  import * as models from "../index.js";
3
3
  export type UpdateCustomerRequest = {
4
4
  /**
5
- * The resource prefix ID (e.g., "prod_abc123")
5
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
6
6
  */
7
7
  id: string;
8
8
  customerRequest: models.CustomerRequest;
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
2
2
  import * as models from "../index.js";
3
3
  export type UpdateDiscountRequest = {
4
4
  /**
5
- * The resource prefix ID (e.g., "prod_abc123")
5
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
6
6
  */
7
7
  id: string;
8
8
  discountRequest: models.DiscountRequest;
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
2
2
  import * as models from "../index.js";
3
3
  export type UpdatePriceVariantRequest = {
4
4
  /**
5
- * The resource prefix ID (e.g., "prod_abc123")
5
+ * The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
6
6
  */
7
7
  id: string;
8
8
  priceVariantUpdateRequest: models.PriceVariantUpdateRequest;