@polar-sh/sdk 0.13.0 → 0.13.2

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 (332) hide show
  1. package/README.md +15 -0
  2. package/docs/sdks/articles/README.md +78 -0
  3. package/docs/sdks/benefits/README.md +3 -3
  4. package/docs/sdks/checkoutlinks/README.md +400 -0
  5. package/funcs/articlesExport.d.ts +16 -0
  6. package/funcs/articlesExport.d.ts.map +1 -0
  7. package/funcs/articlesExport.js +99 -0
  8. package/funcs/articlesExport.js.map +1 -0
  9. package/funcs/benefitsCreate.d.ts +2 -1
  10. package/funcs/benefitsCreate.d.ts.map +1 -1
  11. package/funcs/benefitsCreate.js +2 -1
  12. package/funcs/benefitsCreate.js.map +1 -1
  13. package/funcs/benefitsGet.d.ts +2 -1
  14. package/funcs/benefitsGet.d.ts.map +1 -1
  15. package/funcs/benefitsGet.js +2 -1
  16. package/funcs/benefitsGet.js.map +1 -1
  17. package/funcs/benefitsUpdate.d.ts +2 -1
  18. package/funcs/benefitsUpdate.d.ts.map +1 -1
  19. package/funcs/benefitsUpdate.js +2 -1
  20. package/funcs/benefitsUpdate.js.map +1 -1
  21. package/funcs/checkoutLinksCreate.d.ts +16 -0
  22. package/funcs/checkoutLinksCreate.d.ts.map +1 -0
  23. package/funcs/checkoutLinksCreate.js +95 -0
  24. package/funcs/checkoutLinksCreate.js.map +1 -0
  25. package/funcs/checkoutLinksDelete.d.ts +16 -0
  26. package/funcs/checkoutLinksDelete.d.ts.map +1 -0
  27. package/funcs/checkoutLinksDelete.js +101 -0
  28. package/funcs/checkoutLinksDelete.js.map +1 -0
  29. package/funcs/checkoutLinksGet.d.ts +17 -0
  30. package/funcs/checkoutLinksGet.d.ts.map +1 -0
  31. package/funcs/checkoutLinksGet.js +101 -0
  32. package/funcs/checkoutLinksGet.js.map +1 -0
  33. package/funcs/checkoutLinksList.d.ts +17 -0
  34. package/funcs/checkoutLinksList.d.ts.map +1 -0
  35. package/funcs/checkoutLinksList.js +130 -0
  36. package/funcs/checkoutLinksList.js.map +1 -0
  37. package/funcs/checkoutLinksUpdate.d.ts +17 -0
  38. package/funcs/checkoutLinksUpdate.d.ts.map +1 -0
  39. package/funcs/checkoutLinksUpdate.js +104 -0
  40. package/funcs/checkoutLinksUpdate.js.map +1 -0
  41. package/lib/config.d.ts +3 -3
  42. package/lib/config.js +3 -3
  43. package/models/components/articlecreate.d.ts +6 -67
  44. package/models/components/articlecreate.d.ts.map +1 -1
  45. package/models/components/articlecreate.js +7 -47
  46. package/models/components/articlecreate.js.map +1 -1
  47. package/models/components/benefit.d.ts +28 -0
  48. package/models/components/benefit.d.ts.map +1 -0
  49. package/models/components/benefit.js +69 -0
  50. package/models/components/benefit.js.map +1 -0
  51. package/models/components/benefitbase.d.ts +0 -3
  52. package/models/components/benefitbase.d.ts.map +1 -1
  53. package/models/components/benefitbase.js.map +1 -1
  54. package/models/components/benefitgrantwebhook.d.ts +3 -28
  55. package/models/components/benefitgrantwebhook.d.ts.map +1 -1
  56. package/models/components/benefitgrantwebhook.js +4 -57
  57. package/models/components/benefitgrantwebhook.js.map +1 -1
  58. package/models/components/benefitinput.d.ts +28 -0
  59. package/models/components/benefitinput.d.ts.map +1 -0
  60. package/models/components/benefitinput.js +69 -0
  61. package/models/components/benefitinput.js.map +1 -0
  62. package/models/components/checkoutlink.d.ts +69 -0
  63. package/models/components/checkoutlink.d.ts.map +1 -0
  64. package/models/components/checkoutlink.js +90 -0
  65. package/models/components/checkoutlink.js.map +1 -0
  66. package/models/components/checkoutlinkcreate.d.ts +85 -0
  67. package/models/components/checkoutlinkcreate.d.ts.map +1 -0
  68. package/models/components/checkoutlinkcreate.js +90 -0
  69. package/models/components/checkoutlinkcreate.js.map +1 -0
  70. package/models/components/checkoutlinksortproperty.d.ts +28 -0
  71. package/models/components/checkoutlinksortproperty.d.ts.map +1 -0
  72. package/models/components/checkoutlinksortproperty.js +50 -0
  73. package/models/components/checkoutlinksortproperty.js.map +1 -0
  74. package/models/components/checkoutlinkupdate.d.ts +46 -0
  75. package/models/components/checkoutlinkupdate.d.ts.map +1 -0
  76. package/models/components/checkoutlinkupdate.js +61 -0
  77. package/models/components/checkoutlinkupdate.js.map +1 -0
  78. package/models/components/checkoutpublic.d.ts +5 -8
  79. package/models/components/checkoutpublic.d.ts.map +1 -1
  80. package/models/components/checkoutpublic.js +2 -2
  81. package/models/components/checkoutpublic.js.map +1 -1
  82. package/models/components/index.d.ts +13 -0
  83. package/models/components/index.d.ts.map +1 -1
  84. package/models/components/index.js +13 -0
  85. package/models/components/index.js.map +1 -1
  86. package/models/components/interval.d.ts +37 -0
  87. package/models/components/interval.d.ts.map +1 -0
  88. package/models/components/interval.js +54 -0
  89. package/models/components/interval.js.map +1 -0
  90. package/models/components/issue.d.ts +0 -6
  91. package/models/components/issue.d.ts.map +1 -1
  92. package/models/components/issue.js.map +1 -1
  93. package/models/components/licensekeyread.d.ts +3 -0
  94. package/models/components/licensekeyread.d.ts.map +1 -1
  95. package/models/components/licensekeyread.js +3 -0
  96. package/models/components/licensekeyread.js.map +1 -1
  97. package/models/components/licensekeyuser.d.ts +31 -0
  98. package/models/components/licensekeyuser.d.ts.map +1 -0
  99. package/models/components/licensekeyuser.js +67 -0
  100. package/models/components/licensekeyuser.js.map +1 -0
  101. package/models/components/licensekeywithactivations.d.ts +3 -0
  102. package/models/components/licensekeywithactivations.d.ts.map +1 -1
  103. package/models/components/licensekeywithactivations.js +3 -0
  104. package/models/components/licensekeywithactivations.js.map +1 -1
  105. package/models/components/listresourcebenefit.d.ts +3 -28
  106. package/models/components/listresourcebenefit.d.ts.map +1 -1
  107. package/models/components/listresourcebenefit.js +4 -57
  108. package/models/components/listresourcebenefit.js.map +1 -1
  109. package/models/components/listresourcecheckoutlink.d.ts +29 -0
  110. package/models/components/listresourcecheckoutlink.d.ts.map +1 -0
  111. package/models/components/listresourcecheckoutlink.js +54 -0
  112. package/models/components/listresourcecheckoutlink.js.map +1 -0
  113. package/models/components/metric.d.ts +0 -3
  114. package/models/components/metric.d.ts.map +1 -1
  115. package/models/components/metric.js.map +1 -1
  116. package/models/components/metricsintervalslimits.d.ts +5 -5
  117. package/models/components/metricslimits.d.ts +1 -1
  118. package/models/components/metricsresponse.d.ts +0 -3
  119. package/models/components/metricsresponse.d.ts.map +1 -1
  120. package/models/components/metricsresponse.js.map +1 -1
  121. package/models/components/oauth2client.js +2 -2
  122. package/models/components/oauth2client.js.map +1 -1
  123. package/models/components/oauth2clientconfiguration.js +2 -2
  124. package/models/components/oauth2clientconfiguration.js.map +1 -1
  125. package/models/components/oauth2clientconfigurationupdate.js +2 -2
  126. package/models/components/oauth2clientconfigurationupdate.js.map +1 -1
  127. package/models/components/order.d.ts +3 -0
  128. package/models/components/order.d.ts.map +1 -1
  129. package/models/components/order.js +5 -0
  130. package/models/components/order.js.map +1 -1
  131. package/models/components/orderbillingreason.d.ts +34 -0
  132. package/models/components/orderbillingreason.d.ts.map +1 -0
  133. package/models/components/orderbillingreason.js +52 -0
  134. package/models/components/orderbillingreason.js.map +1 -0
  135. package/models/components/pledge.d.ts +0 -9
  136. package/models/components/pledge.d.ts.map +1 -1
  137. package/models/components/pledge.js.map +1 -1
  138. package/models/components/polarcheckoutschemascheckout.d.ts +2 -121
  139. package/models/components/polarcheckoutschemascheckout.d.ts.map +1 -1
  140. package/models/components/polarcheckoutschemascheckout.js +3 -108
  141. package/models/components/polarcheckoutschemascheckout.js.map +1 -1
  142. package/models/components/productpriceonetimecustom.d.ts +5 -0
  143. package/models/components/productpriceonetimecustom.d.ts.map +1 -1
  144. package/models/components/productpriceonetimecustom.js +4 -0
  145. package/models/components/productpriceonetimecustom.js.map +1 -1
  146. package/models/components/productpriceonetimefixed.d.ts +5 -0
  147. package/models/components/productpriceonetimefixed.d.ts.map +1 -1
  148. package/models/components/productpriceonetimefixed.js +4 -0
  149. package/models/components/productpriceonetimefixed.js.map +1 -1
  150. package/models/components/productpriceonetimefree.d.ts +5 -0
  151. package/models/components/productpriceonetimefree.d.ts.map +1 -1
  152. package/models/components/productpriceonetimefree.js +4 -0
  153. package/models/components/productpriceonetimefree.js.map +1 -1
  154. package/models/components/productpricerecurringcustom.d.ts +5 -3
  155. package/models/components/productpricerecurringcustom.d.ts.map +1 -1
  156. package/models/components/productpricerecurringcustom.js +4 -0
  157. package/models/components/productpricerecurringcustom.js.map +1 -1
  158. package/models/components/productpricerecurringfixed.d.ts +5 -3
  159. package/models/components/productpricerecurringfixed.d.ts.map +1 -1
  160. package/models/components/productpricerecurringfixed.js +4 -0
  161. package/models/components/productpricerecurringfixed.js.map +1 -1
  162. package/models/components/productpricerecurringfixedcreate.d.ts +0 -3
  163. package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -1
  164. package/models/components/productpricerecurringfixedcreate.js.map +1 -1
  165. package/models/components/productpricerecurringfree.d.ts +5 -3
  166. package/models/components/productpricerecurringfree.d.ts.map +1 -1
  167. package/models/components/productpricerecurringfree.js +4 -0
  168. package/models/components/productpricerecurringfree.js.map +1 -1
  169. package/models/components/productpricerecurringfreecreate.d.ts +0 -3
  170. package/models/components/productpricerecurringfreecreate.d.ts.map +1 -1
  171. package/models/components/productpricerecurringfreecreate.js.map +1 -1
  172. package/models/components/validatedlicensekey.d.ts +3 -0
  173. package/models/components/validatedlicensekey.d.ts.map +1 -1
  174. package/models/components/validatedlicensekey.js +3 -0
  175. package/models/components/validatedlicensekey.js.map +1 -1
  176. package/models/components/webhookbenefitcreatedpayload.d.ts +3 -28
  177. package/models/components/webhookbenefitcreatedpayload.d.ts.map +1 -1
  178. package/models/components/webhookbenefitcreatedpayload.js +4 -57
  179. package/models/components/webhookbenefitcreatedpayload.js.map +1 -1
  180. package/models/components/webhookbenefitupdatedpayload.d.ts +3 -28
  181. package/models/components/webhookbenefitupdatedpayload.d.ts.map +1 -1
  182. package/models/components/webhookbenefitupdatedpayload.js +4 -57
  183. package/models/components/webhookbenefitupdatedpayload.js.map +1 -1
  184. package/models/components/webhookcheckoutcreatedpayload.d.ts +3 -3
  185. package/models/components/webhookcheckoutcreatedpayload.d.ts.map +1 -1
  186. package/models/components/webhookcheckoutcreatedpayload.js +2 -2
  187. package/models/components/webhookcheckoutcreatedpayload.js.map +1 -1
  188. package/models/components/webhookcheckoutupdatedpayload.d.ts +3 -3
  189. package/models/components/webhookcheckoutupdatedpayload.d.ts.map +1 -1
  190. package/models/components/webhookcheckoutupdatedpayload.js +2 -2
  191. package/models/components/webhookcheckoutupdatedpayload.js.map +1 -1
  192. package/models/components/webhooksubscriptionactivepayload.d.ts +59 -0
  193. package/models/components/webhooksubscriptionactivepayload.d.ts.map +1 -0
  194. package/models/components/webhooksubscriptionactivepayload.js +71 -0
  195. package/models/components/webhooksubscriptionactivepayload.js.map +1 -0
  196. package/models/components/webhooksubscriptioncanceledpayload.d.ts +59 -0
  197. package/models/components/webhooksubscriptioncanceledpayload.d.ts.map +1 -0
  198. package/models/components/webhooksubscriptioncanceledpayload.js +71 -0
  199. package/models/components/webhooksubscriptioncanceledpayload.js.map +1 -0
  200. package/models/components/webhooksubscriptionrevokedpayload.d.ts +59 -0
  201. package/models/components/webhooksubscriptionrevokedpayload.d.ts.map +1 -0
  202. package/models/components/webhooksubscriptionrevokedpayload.js +71 -0
  203. package/models/components/webhooksubscriptionrevokedpayload.js.map +1 -0
  204. package/models/components/webhooksubscriptionupdatedpayload.d.ts +6 -2
  205. package/models/components/webhooksubscriptionupdatedpayload.d.ts.map +1 -1
  206. package/models/components/webhooksubscriptionupdatedpayload.js.map +1 -1
  207. package/models/operations/articlesexport.d.ts +25 -0
  208. package/models/operations/articlesexport.d.ts.map +1 -0
  209. package/models/operations/articlesexport.js +59 -0
  210. package/models/operations/articlesexport.js.map +1 -0
  211. package/models/operations/benefitscreate.d.ts +0 -22
  212. package/models/operations/benefitscreate.d.ts.map +1 -1
  213. package/models/operations/benefitscreate.js +1 -32
  214. package/models/operations/benefitscreate.js.map +1 -1
  215. package/models/operations/benefitsget.d.ts +0 -23
  216. package/models/operations/benefitsget.d.ts.map +1 -1
  217. package/models/operations/benefitsget.js +1 -33
  218. package/models/operations/benefitsget.js.map +1 -1
  219. package/models/operations/benefitsupdate.d.ts +0 -22
  220. package/models/operations/benefitsupdate.d.ts.map +1 -1
  221. package/models/operations/benefitsupdate.js +1 -32
  222. package/models/operations/benefitsupdate.js.map +1 -1
  223. package/models/operations/checkoutlinksdelete.d.ts +28 -0
  224. package/models/operations/checkoutlinksdelete.d.ts.map +1 -0
  225. package/models/operations/checkoutlinksdelete.js +50 -0
  226. package/models/operations/checkoutlinksdelete.js.map +1 -0
  227. package/models/operations/checkoutlinksget.d.ts +28 -0
  228. package/models/operations/checkoutlinksget.d.ts.map +1 -0
  229. package/models/operations/checkoutlinksget.js +50 -0
  230. package/models/operations/checkoutlinksget.js.map +1 -0
  231. package/models/operations/checkoutlinkslist.d.ts +116 -0
  232. package/models/operations/checkoutlinkslist.d.ts.map +1 -0
  233. package/models/operations/checkoutlinkslist.js +129 -0
  234. package/models/operations/checkoutlinkslist.js.map +1 -0
  235. package/models/operations/checkoutlinksupdate.d.ts +31 -0
  236. package/models/operations/checkoutlinksupdate.d.ts.map +1 -0
  237. package/models/operations/checkoutlinksupdate.js +62 -0
  238. package/models/operations/checkoutlinksupdate.js.map +1 -0
  239. package/models/operations/index.d.ts +5 -0
  240. package/models/operations/index.d.ts.map +1 -1
  241. package/models/operations/index.js +5 -0
  242. package/models/operations/index.js.map +1 -1
  243. package/models/operations/metricsget.d.ts +1 -42
  244. package/models/operations/metricsget.d.ts.map +1 -1
  245. package/models/operations/metricsget.js +3 -29
  246. package/models/operations/metricsget.js.map +1 -1
  247. package/package.json +1 -1
  248. package/sdk/articles.d.ts +7 -0
  249. package/sdk/articles.d.ts.map +1 -1
  250. package/sdk/articles.js +10 -0
  251. package/sdk/articles.js.map +1 -1
  252. package/sdk/benefits.d.ts +4 -3
  253. package/sdk/benefits.d.ts.map +1 -1
  254. package/sdk/benefits.js.map +1 -1
  255. package/sdk/checkoutlinks.d.ts +42 -0
  256. package/sdk/checkoutlinks.d.ts.map +1 -0
  257. package/sdk/checkoutlinks.js +63 -0
  258. package/sdk/checkoutlinks.js.map +1 -0
  259. package/sdk/sdk.d.ts +3 -0
  260. package/sdk/sdk.d.ts.map +1 -1
  261. package/sdk/sdk.js +5 -0
  262. package/sdk/sdk.js.map +1 -1
  263. package/src/funcs/articlesExport.ts +129 -0
  264. package/src/funcs/benefitsCreate.ts +4 -3
  265. package/src/funcs/benefitsGet.ts +4 -3
  266. package/src/funcs/benefitsUpdate.ts +4 -3
  267. package/src/funcs/checkoutLinksCreate.ts +124 -0
  268. package/src/funcs/checkoutLinksDelete.ts +135 -0
  269. package/src/funcs/checkoutLinksGet.ts +134 -0
  270. package/src/funcs/checkoutLinksList.ts +189 -0
  271. package/src/funcs/checkoutLinksUpdate.ts +138 -0
  272. package/src/lib/config.ts +3 -3
  273. package/src/models/components/articlecreate.ts +18 -77
  274. package/src/models/components/benefit.ts +106 -0
  275. package/src/models/components/benefitbase.ts +0 -3
  276. package/src/models/components/benefitgrantwebhook.ts +9 -137
  277. package/src/models/components/benefitinput.ts +109 -0
  278. package/src/models/components/checkoutlink.ts +131 -0
  279. package/src/models/components/checkoutlinkcreate.ts +127 -0
  280. package/src/models/components/checkoutlinksortproperty.ts +35 -0
  281. package/src/models/components/checkoutlinkupdate.ts +73 -0
  282. package/src/models/components/checkoutpublic.ts +7 -10
  283. package/src/models/components/index.ts +13 -0
  284. package/src/models/components/interval.ts +34 -0
  285. package/src/models/components/issue.ts +0 -6
  286. package/src/models/components/licensekeyread.ts +10 -0
  287. package/src/models/components/licensekeyuser.ts +68 -0
  288. package/src/models/components/licensekeywithactivations.ts +10 -0
  289. package/src/models/components/listresourcebenefit.ts +9 -140
  290. package/src/models/components/listresourcecheckoutlink.ts +61 -0
  291. package/src/models/components/metric.ts +0 -3
  292. package/src/models/components/metricsintervalslimits.ts +5 -5
  293. package/src/models/components/metricslimits.ts +1 -1
  294. package/src/models/components/metricsresponse.ts +0 -3
  295. package/src/models/components/oauth2client.ts +2 -2
  296. package/src/models/components/oauth2clientconfiguration.ts +2 -2
  297. package/src/models/components/oauth2clientconfigurationupdate.ts +2 -2
  298. package/src/models/components/order.ts +11 -0
  299. package/src/models/components/orderbillingreason.ts +35 -0
  300. package/src/models/components/pledge.ts +0 -9
  301. package/src/models/components/polarcheckoutschemascheckout.ts +4 -229
  302. package/src/models/components/productpriceonetimecustom.ts +9 -0
  303. package/src/models/components/productpriceonetimefixed.ts +9 -0
  304. package/src/models/components/productpriceonetimefree.ts +9 -0
  305. package/src/models/components/productpricerecurringcustom.ts +9 -3
  306. package/src/models/components/productpricerecurringfixed.ts +9 -3
  307. package/src/models/components/productpricerecurringfixedcreate.ts +0 -3
  308. package/src/models/components/productpricerecurringfree.ts +9 -3
  309. package/src/models/components/productpricerecurringfreecreate.ts +0 -3
  310. package/src/models/components/validatedlicensekey.ts +10 -0
  311. package/src/models/components/webhookbenefitcreatedpayload.ts +9 -139
  312. package/src/models/components/webhookbenefitupdatedpayload.ts +9 -139
  313. package/src/models/components/webhookcheckoutcreatedpayload.ts +8 -8
  314. package/src/models/components/webhookcheckoutupdatedpayload.ts +8 -8
  315. package/src/models/components/webhooksubscriptionactivepayload.ts +95 -0
  316. package/src/models/components/webhooksubscriptioncanceledpayload.ts +96 -0
  317. package/src/models/components/webhooksubscriptionrevokedpayload.ts +96 -0
  318. package/src/models/components/webhooksubscriptionupdatedpayload.ts +6 -2
  319. package/src/models/operations/articlesexport.ts +54 -0
  320. package/src/models/operations/benefitscreate.ts +0 -67
  321. package/src/models/operations/benefitsget.ts +0 -66
  322. package/src/models/operations/benefitsupdate.ts +0 -67
  323. package/src/models/operations/checkoutlinksdelete.ts +48 -0
  324. package/src/models/operations/checkoutlinksget.ts +48 -0
  325. package/src/models/operations/checkoutlinkslist.ts +224 -0
  326. package/src/models/operations/checkoutlinksupdate.ts +62 -0
  327. package/src/models/operations/index.ts +5 -0
  328. package/src/models/operations/metricsget.ts +3 -38
  329. package/src/sdk/articles.ts +18 -0
  330. package/src/sdk/benefits.ts +4 -3
  331. package/src/sdk/checkoutlinks.ts +101 -0
  332. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,109 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ BenefitAds,
8
+ BenefitAds$inboundSchema,
9
+ BenefitAds$Outbound,
10
+ BenefitAds$outboundSchema,
11
+ } from "./benefitads.js";
12
+ import {
13
+ BenefitArticles,
14
+ BenefitArticles$inboundSchema,
15
+ BenefitArticles$Outbound,
16
+ BenefitArticles$outboundSchema,
17
+ } from "./benefitarticles.js";
18
+ import {
19
+ BenefitCustom,
20
+ BenefitCustom$inboundSchema,
21
+ BenefitCustom$Outbound,
22
+ BenefitCustom$outboundSchema,
23
+ } from "./benefitcustom.js";
24
+ import {
25
+ BenefitDiscordInput,
26
+ BenefitDiscordInput$inboundSchema,
27
+ BenefitDiscordInput$Outbound,
28
+ BenefitDiscordInput$outboundSchema,
29
+ } from "./benefitdiscord.js";
30
+ import {
31
+ BenefitDownloadables,
32
+ BenefitDownloadables$inboundSchema,
33
+ BenefitDownloadables$Outbound,
34
+ BenefitDownloadables$outboundSchema,
35
+ } from "./benefitdownloadables.js";
36
+ import {
37
+ BenefitGitHubRepository,
38
+ BenefitGitHubRepository$inboundSchema,
39
+ BenefitGitHubRepository$Outbound,
40
+ BenefitGitHubRepository$outboundSchema,
41
+ } from "./benefitgithubrepository.js";
42
+ import {
43
+ BenefitLicenseKeys,
44
+ BenefitLicenseKeys$inboundSchema,
45
+ BenefitLicenseKeys$Outbound,
46
+ BenefitLicenseKeys$outboundSchema,
47
+ } from "./benefitlicensekeys.js";
48
+
49
+ export type BenefitInput =
50
+ | BenefitArticles
51
+ | BenefitAds
52
+ | BenefitDiscordInput
53
+ | BenefitGitHubRepository
54
+ | BenefitDownloadables
55
+ | BenefitLicenseKeys
56
+ | BenefitCustom;
57
+
58
+ /** @internal */
59
+ export const BenefitInput$inboundSchema: z.ZodType<
60
+ BenefitInput,
61
+ z.ZodTypeDef,
62
+ unknown
63
+ > = z.union([
64
+ BenefitArticles$inboundSchema,
65
+ BenefitAds$inboundSchema,
66
+ BenefitDiscordInput$inboundSchema,
67
+ BenefitGitHubRepository$inboundSchema,
68
+ BenefitDownloadables$inboundSchema,
69
+ BenefitLicenseKeys$inboundSchema,
70
+ BenefitCustom$inboundSchema,
71
+ ]);
72
+
73
+ /** @internal */
74
+ export type BenefitInput$Outbound =
75
+ | BenefitArticles$Outbound
76
+ | BenefitAds$Outbound
77
+ | BenefitDiscordInput$Outbound
78
+ | BenefitGitHubRepository$Outbound
79
+ | BenefitDownloadables$Outbound
80
+ | BenefitLicenseKeys$Outbound
81
+ | BenefitCustom$Outbound;
82
+
83
+ /** @internal */
84
+ export const BenefitInput$outboundSchema: z.ZodType<
85
+ BenefitInput$Outbound,
86
+ z.ZodTypeDef,
87
+ BenefitInput
88
+ > = z.union([
89
+ BenefitArticles$outboundSchema,
90
+ BenefitAds$outboundSchema,
91
+ BenefitDiscordInput$outboundSchema,
92
+ BenefitGitHubRepository$outboundSchema,
93
+ BenefitDownloadables$outboundSchema,
94
+ BenefitLicenseKeys$outboundSchema,
95
+ BenefitCustom$outboundSchema,
96
+ ]);
97
+
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export namespace BenefitInput$ {
103
+ /** @deprecated use `BenefitInput$inboundSchema` instead. */
104
+ export const inboundSchema = BenefitInput$inboundSchema;
105
+ /** @deprecated use `BenefitInput$outboundSchema` instead. */
106
+ export const outboundSchema = BenefitInput$outboundSchema;
107
+ /** @deprecated use `BenefitInput$Outbound` instead. */
108
+ export type Outbound = BenefitInput$Outbound;
109
+ }
@@ -0,0 +1,131 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ ProductPrice,
9
+ ProductPrice$inboundSchema,
10
+ ProductPrice$Outbound,
11
+ ProductPrice$outboundSchema,
12
+ } from "./productprice.js";
13
+
14
+ /**
15
+ * Checkout link data.
16
+ */
17
+ export type CheckoutLink = {
18
+ /**
19
+ * Creation timestamp of the object.
20
+ */
21
+ createdAt: Date;
22
+ /**
23
+ * Last modification timestamp of the object.
24
+ */
25
+ modifiedAt: Date | null;
26
+ /**
27
+ * The ID of the object.
28
+ */
29
+ id: string;
30
+ metadata: { [k: string]: string };
31
+ paymentProcessor?: "stripe" | undefined;
32
+ /**
33
+ * Client secret used to access the checkout link.
34
+ */
35
+ clientSecret: string;
36
+ /**
37
+ * URL where the customer will be redirected after a successful payment.
38
+ */
39
+ successUrl: string | null;
40
+ /**
41
+ * ID of the product price to checkout.
42
+ */
43
+ productPriceId: string;
44
+ productPrice: ProductPrice;
45
+ url: string;
46
+ };
47
+
48
+ /** @internal */
49
+ export const CheckoutLink$inboundSchema: z.ZodType<
50
+ CheckoutLink,
51
+ z.ZodTypeDef,
52
+ unknown
53
+ > = z.object({
54
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
55
+ modified_at: z.nullable(
56
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
57
+ ),
58
+ id: z.string(),
59
+ metadata: z.record(z.string()),
60
+ payment_processor: z.literal("stripe").optional(),
61
+ client_secret: z.string(),
62
+ success_url: z.nullable(z.string()),
63
+ product_price_id: z.string(),
64
+ product_price: ProductPrice$inboundSchema,
65
+ url: z.string(),
66
+ }).transform((v) => {
67
+ return remap$(v, {
68
+ "created_at": "createdAt",
69
+ "modified_at": "modifiedAt",
70
+ "payment_processor": "paymentProcessor",
71
+ "client_secret": "clientSecret",
72
+ "success_url": "successUrl",
73
+ "product_price_id": "productPriceId",
74
+ "product_price": "productPrice",
75
+ });
76
+ });
77
+
78
+ /** @internal */
79
+ export type CheckoutLink$Outbound = {
80
+ created_at: string;
81
+ modified_at: string | null;
82
+ id: string;
83
+ metadata: { [k: string]: string };
84
+ payment_processor: "stripe";
85
+ client_secret: string;
86
+ success_url: string | null;
87
+ product_price_id: string;
88
+ product_price: ProductPrice$Outbound;
89
+ url: string;
90
+ };
91
+
92
+ /** @internal */
93
+ export const CheckoutLink$outboundSchema: z.ZodType<
94
+ CheckoutLink$Outbound,
95
+ z.ZodTypeDef,
96
+ CheckoutLink
97
+ > = z.object({
98
+ createdAt: z.date().transform(v => v.toISOString()),
99
+ modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
100
+ id: z.string(),
101
+ metadata: z.record(z.string()),
102
+ paymentProcessor: z.literal("stripe").default("stripe"),
103
+ clientSecret: z.string(),
104
+ successUrl: z.nullable(z.string()),
105
+ productPriceId: z.string(),
106
+ productPrice: ProductPrice$outboundSchema,
107
+ url: z.string(),
108
+ }).transform((v) => {
109
+ return remap$(v, {
110
+ createdAt: "created_at",
111
+ modifiedAt: "modified_at",
112
+ paymentProcessor: "payment_processor",
113
+ clientSecret: "client_secret",
114
+ successUrl: "success_url",
115
+ productPriceId: "product_price_id",
116
+ productPrice: "product_price",
117
+ });
118
+ });
119
+
120
+ /**
121
+ * @internal
122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
123
+ */
124
+ export namespace CheckoutLink$ {
125
+ /** @deprecated use `CheckoutLink$inboundSchema` instead. */
126
+ export const inboundSchema = CheckoutLink$inboundSchema;
127
+ /** @deprecated use `CheckoutLink$outboundSchema` instead. */
128
+ export const outboundSchema = CheckoutLink$outboundSchema;
129
+ /** @deprecated use `CheckoutLink$Outbound` instead. */
130
+ export type Outbound = CheckoutLink$Outbound;
131
+ }
@@ -0,0 +1,127 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Payment processor to use. Currently only Stripe is supported.
11
+ */
12
+ export const CheckoutLinkCreatePaymentProcessor = {
13
+ Stripe: "stripe",
14
+ } as const;
15
+ /**
16
+ * Payment processor to use. Currently only Stripe is supported.
17
+ */
18
+ export type CheckoutLinkCreatePaymentProcessor = ClosedEnum<
19
+ typeof CheckoutLinkCreatePaymentProcessor
20
+ >;
21
+
22
+ /**
23
+ * Schema to create a new checkout link.
24
+ */
25
+ export type CheckoutLinkCreate = {
26
+ /**
27
+ * Key-value object allowing you to store additional information.
28
+ *
29
+ * @remarks
30
+ *
31
+ * The key must be a string with a maximum length of **40 characters**.
32
+ * The value must be a string with a maximum length of **500 characters**.
33
+ * You can store up to **50 key-value pairs**.
34
+ */
35
+ metadata?: { [k: string]: string } | undefined;
36
+ /**
37
+ * Payment processor to use. Currently only Stripe is supported.
38
+ */
39
+ paymentProcessor?: "stripe" | undefined;
40
+ /**
41
+ * ID of the product price to checkout.
42
+ */
43
+ productPriceId: string;
44
+ /**
45
+ * URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id.
46
+ */
47
+ successUrl?: string | null | undefined;
48
+ };
49
+
50
+ /** @internal */
51
+ export const CheckoutLinkCreatePaymentProcessor$inboundSchema: z.ZodNativeEnum<
52
+ typeof CheckoutLinkCreatePaymentProcessor
53
+ > = z.nativeEnum(CheckoutLinkCreatePaymentProcessor);
54
+
55
+ /** @internal */
56
+ export const CheckoutLinkCreatePaymentProcessor$outboundSchema: z.ZodNativeEnum<
57
+ typeof CheckoutLinkCreatePaymentProcessor
58
+ > = CheckoutLinkCreatePaymentProcessor$inboundSchema;
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace CheckoutLinkCreatePaymentProcessor$ {
65
+ /** @deprecated use `CheckoutLinkCreatePaymentProcessor$inboundSchema` instead. */
66
+ export const inboundSchema = CheckoutLinkCreatePaymentProcessor$inboundSchema;
67
+ /** @deprecated use `CheckoutLinkCreatePaymentProcessor$outboundSchema` instead. */
68
+ export const outboundSchema =
69
+ CheckoutLinkCreatePaymentProcessor$outboundSchema;
70
+ }
71
+
72
+ /** @internal */
73
+ export const CheckoutLinkCreate$inboundSchema: z.ZodType<
74
+ CheckoutLinkCreate,
75
+ z.ZodTypeDef,
76
+ unknown
77
+ > = z.object({
78
+ metadata: z.record(z.string()).optional(),
79
+ payment_processor: z.literal("stripe").optional(),
80
+ product_price_id: z.string(),
81
+ success_url: z.nullable(z.string()).optional(),
82
+ }).transform((v) => {
83
+ return remap$(v, {
84
+ "payment_processor": "paymentProcessor",
85
+ "product_price_id": "productPriceId",
86
+ "success_url": "successUrl",
87
+ });
88
+ });
89
+
90
+ /** @internal */
91
+ export type CheckoutLinkCreate$Outbound = {
92
+ metadata?: { [k: string]: string } | undefined;
93
+ payment_processor: "stripe";
94
+ product_price_id: string;
95
+ success_url?: string | null | undefined;
96
+ };
97
+
98
+ /** @internal */
99
+ export const CheckoutLinkCreate$outboundSchema: z.ZodType<
100
+ CheckoutLinkCreate$Outbound,
101
+ z.ZodTypeDef,
102
+ CheckoutLinkCreate
103
+ > = z.object({
104
+ metadata: z.record(z.string()).optional(),
105
+ paymentProcessor: z.literal("stripe").default("stripe"),
106
+ productPriceId: z.string(),
107
+ successUrl: z.nullable(z.string()).optional(),
108
+ }).transform((v) => {
109
+ return remap$(v, {
110
+ paymentProcessor: "payment_processor",
111
+ productPriceId: "product_price_id",
112
+ successUrl: "success_url",
113
+ });
114
+ });
115
+
116
+ /**
117
+ * @internal
118
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
119
+ */
120
+ export namespace CheckoutLinkCreate$ {
121
+ /** @deprecated use `CheckoutLinkCreate$inboundSchema` instead. */
122
+ export const inboundSchema = CheckoutLinkCreate$inboundSchema;
123
+ /** @deprecated use `CheckoutLinkCreate$outboundSchema` instead. */
124
+ export const outboundSchema = CheckoutLinkCreate$outboundSchema;
125
+ /** @deprecated use `CheckoutLinkCreate$Outbound` instead. */
126
+ export type Outbound = CheckoutLinkCreate$Outbound;
127
+ }
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const CheckoutLinkSortProperty = {
9
+ CreatedAt: "created_at",
10
+ MinusCreatedAt: "-created_at",
11
+ } as const;
12
+ export type CheckoutLinkSortProperty = ClosedEnum<
13
+ typeof CheckoutLinkSortProperty
14
+ >;
15
+
16
+ /** @internal */
17
+ export const CheckoutLinkSortProperty$inboundSchema: z.ZodNativeEnum<
18
+ typeof CheckoutLinkSortProperty
19
+ > = z.nativeEnum(CheckoutLinkSortProperty);
20
+
21
+ /** @internal */
22
+ export const CheckoutLinkSortProperty$outboundSchema: z.ZodNativeEnum<
23
+ typeof CheckoutLinkSortProperty
24
+ > = CheckoutLinkSortProperty$inboundSchema;
25
+
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export namespace CheckoutLinkSortProperty$ {
31
+ /** @deprecated use `CheckoutLinkSortProperty$inboundSchema` instead. */
32
+ export const inboundSchema = CheckoutLinkSortProperty$inboundSchema;
33
+ /** @deprecated use `CheckoutLinkSortProperty$outboundSchema` instead. */
34
+ export const outboundSchema = CheckoutLinkSortProperty$outboundSchema;
35
+ }
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ /**
9
+ * Schema to update an existing checkout link.
10
+ */
11
+ export type CheckoutLinkUpdate = {
12
+ /**
13
+ * Key-value object allowing you to store additional information.
14
+ *
15
+ * @remarks
16
+ *
17
+ * The key must be a string with a maximum length of **40 characters**.
18
+ * The value must be a string with a maximum length of **500 characters**.
19
+ * You can store up to **50 key-value pairs**.
20
+ */
21
+ metadata?: { [k: string]: string } | null | undefined;
22
+ /**
23
+ * URL where the customer will be redirected after a successful payment.You can add the `checkout_id={CHECKOUT_ID}` query parameter to retrieve the checkout session id.
24
+ */
25
+ successUrl?: string | null | undefined;
26
+ };
27
+
28
+ /** @internal */
29
+ export const CheckoutLinkUpdate$inboundSchema: z.ZodType<
30
+ CheckoutLinkUpdate,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ metadata: z.nullable(z.record(z.string())).optional(),
35
+ success_url: z.nullable(z.string()).optional(),
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "success_url": "successUrl",
39
+ });
40
+ });
41
+
42
+ /** @internal */
43
+ export type CheckoutLinkUpdate$Outbound = {
44
+ metadata?: { [k: string]: string } | null | undefined;
45
+ success_url?: string | null | undefined;
46
+ };
47
+
48
+ /** @internal */
49
+ export const CheckoutLinkUpdate$outboundSchema: z.ZodType<
50
+ CheckoutLinkUpdate$Outbound,
51
+ z.ZodTypeDef,
52
+ CheckoutLinkUpdate
53
+ > = z.object({
54
+ metadata: z.nullable(z.record(z.string())).optional(),
55
+ successUrl: z.nullable(z.string()).optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ successUrl: "success_url",
59
+ });
60
+ });
61
+
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ export namespace CheckoutLinkUpdate$ {
67
+ /** @deprecated use `CheckoutLinkUpdate$inboundSchema` instead. */
68
+ export const inboundSchema = CheckoutLinkUpdate$inboundSchema;
69
+ /** @deprecated use `CheckoutLinkUpdate$outboundSchema` instead. */
70
+ export const outboundSchema = CheckoutLinkUpdate$outboundSchema;
71
+ /** @deprecated use `CheckoutLinkUpdate$Outbound` instead. */
72
+ export type Outbound = CheckoutLinkUpdate$Outbound;
73
+ }
@@ -46,18 +46,16 @@ export type CheckoutPublic = {
46
46
  * The ID of the object.
47
47
  */
48
48
  id: string;
49
- /**
50
- * Payment processor used.
51
- */
52
49
  paymentProcessor?: "stripe" | undefined;
53
- /**
54
- * Status of the checkout session.
55
- */
56
50
  status: CheckoutStatus;
57
51
  /**
58
52
  * Client secret used to update and complete the checkout session from the client.
59
53
  */
60
54
  clientSecret: string;
55
+ /**
56
+ * URL where the customer can access the checkout session.
57
+ */
58
+ url: string;
61
59
  /**
62
60
  * Expiration date and time of the checkout session.
63
61
  */
@@ -103,7 +101,6 @@ export type CheckoutPublic = {
103
101
  */
104
102
  product: Product;
105
103
  productPrice: ProductPrice;
106
- url: string;
107
104
  };
108
105
 
109
106
  /** @internal */
@@ -152,6 +149,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
152
149
  payment_processor: z.literal("stripe").optional(),
153
150
  status: CheckoutStatus$inboundSchema,
154
151
  client_secret: z.string(),
152
+ url: z.string(),
155
153
  expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
156
154
  success_url: z.string(),
157
155
  amount: z.nullable(z.number().int()),
@@ -172,7 +170,6 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
172
170
  ),
173
171
  product: Product$inboundSchema,
174
172
  product_price: ProductPrice$inboundSchema,
175
- url: z.string(),
176
173
  }).transform((v) => {
177
174
  return remap$(v, {
178
175
  "created_at": "createdAt",
@@ -205,6 +202,7 @@ export type CheckoutPublic$Outbound = {
205
202
  payment_processor: "stripe";
206
203
  status: string;
207
204
  client_secret: string;
205
+ url: string;
208
206
  expires_at: string;
209
207
  success_url: string;
210
208
  amount: number | null;
@@ -223,7 +221,6 @@ export type CheckoutPublic$Outbound = {
223
221
  payment_processor_metadata: CheckoutPublicPaymentProcessorMetadata$Outbound;
224
222
  product: Product$Outbound;
225
223
  product_price: ProductPrice$Outbound;
226
- url: string;
227
224
  };
228
225
 
229
226
  /** @internal */
@@ -238,6 +235,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
238
235
  paymentProcessor: z.literal("stripe").default("stripe"),
239
236
  status: CheckoutStatus$outboundSchema,
240
237
  clientSecret: z.string(),
238
+ url: z.string(),
241
239
  expiresAt: z.date().transform(v => v.toISOString()),
242
240
  successUrl: z.string(),
243
241
  amount: z.nullable(z.number().int()),
@@ -258,7 +256,6 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
258
256
  ),
259
257
  product: Product$outboundSchema,
260
258
  productPrice: ProductPrice$outboundSchema,
261
- url: z.string(),
262
259
  }).transform((v) => {
263
260
  return remap$(v, {
264
261
  createdAt: "created_at",
@@ -15,6 +15,7 @@ export * from "./articleupdate.js";
15
15
  export * from "./articlevisibility.js";
16
16
  export * from "./assignee.js";
17
17
  export * from "./author.js";
18
+ export * from "./benefit.js";
18
19
  export * from "./benefitads.js";
19
20
  export * from "./benefitadscreate.js";
20
21
  export * from "./benefitadsproperties.js";
@@ -68,6 +69,7 @@ export * from "./benefitgrantlicensekeys.js";
68
69
  export * from "./benefitgrantlicensekeysproperties.js";
69
70
  export * from "./benefitgrantsubscriber.js";
70
71
  export * from "./benefitgrantwebhook.js";
72
+ export * from "./benefitinput.js";
71
73
  export * from "./benefitlicensekeyactivationproperties.js";
72
74
  export * from "./benefitlicensekeyexpirationproperties.js";
73
75
  export * from "./benefitlicensekeys.js";
@@ -80,6 +82,10 @@ export * from "./benefitlicensekeysupdate.js";
80
82
  export * from "./benefittype.js";
81
83
  export * from "./bylineprofile.js";
82
84
  export * from "./checkoutconfirmstripe.js";
85
+ export * from "./checkoutlink.js";
86
+ export * from "./checkoutlinkcreate.js";
87
+ export * from "./checkoutlinksortproperty.js";
88
+ export * from "./checkoutlinkupdate.js";
83
89
  export * from "./checkoutpublic.js";
84
90
  export * from "./checkoutsortproperty.js";
85
91
  export * from "./checkoutstatus.js";
@@ -101,6 +107,7 @@ export * from "./fileservicetypes.js";
101
107
  export * from "./fileupload.js";
102
108
  export * from "./fileuploadcompleted.js";
103
109
  export * from "./funding.js";
110
+ export * from "./interval.js";
104
111
  export * from "./introspecttokenresponse.js";
105
112
  export * from "./issue.js";
106
113
  export * from "./label.js";
@@ -111,12 +118,14 @@ export * from "./licensekeydeactivate.js";
111
118
  export * from "./licensekeyread.js";
112
119
  export * from "./licensekeystatus.js";
113
120
  export * from "./licensekeyupdate.js";
121
+ export * from "./licensekeyuser.js";
114
122
  export * from "./licensekeyvalidate.js";
115
123
  export * from "./licensekeywithactivations.js";
116
124
  export * from "./listresourcearticle.js";
117
125
  export * from "./listresourcebenefit.js";
118
126
  export * from "./listresourcebenefitgrant.js";
119
127
  export * from "./listresourcecheckout.js";
128
+ export * from "./listresourcecheckoutlink.js";
120
129
  export * from "./listresourcedownloadableread.js";
121
130
  export * from "./listresourceexternalorganization.js";
122
131
  export * from "./listresourcefileread.js";
@@ -145,6 +154,7 @@ export * from "./oauth2clientconfigurationupdate.js";
145
154
  export * from "./onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.js";
146
155
  export * from "./onev11oauth21tokenpostxcomponentsrefreshtokenrequest.js";
147
156
  export * from "./order.js";
157
+ export * from "./orderbillingreason.js";
148
158
  export * from "./orderinvoice.js";
149
159
  export * from "./orderproduct.js";
150
160
  export * from "./ordersortproperty.js";
@@ -249,5 +259,8 @@ export * from "./webhookpledgecreatedpayload.js";
249
259
  export * from "./webhookpledgeupdatedpayload.js";
250
260
  export * from "./webhookproductcreatedpayload.js";
251
261
  export * from "./webhookproductupdatedpayload.js";
262
+ export * from "./webhooksubscriptionactivepayload.js";
263
+ export * from "./webhooksubscriptioncanceledpayload.js";
252
264
  export * from "./webhooksubscriptioncreatedpayload.js";
265
+ export * from "./webhooksubscriptionrevokedpayload.js";
253
266
  export * from "./webhooksubscriptionupdatedpayload.js";
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const Interval = {
9
+ Year: "year",
10
+ Month: "month",
11
+ Week: "week",
12
+ Day: "day",
13
+ Hour: "hour",
14
+ } as const;
15
+ export type Interval = ClosedEnum<typeof Interval>;
16
+
17
+ /** @internal */
18
+ export const Interval$inboundSchema: z.ZodNativeEnum<typeof Interval> = z
19
+ .nativeEnum(Interval);
20
+
21
+ /** @internal */
22
+ export const Interval$outboundSchema: z.ZodNativeEnum<typeof Interval> =
23
+ Interval$inboundSchema;
24
+
25
+ /**
26
+ * @internal
27
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
+ */
29
+ export namespace Interval$ {
30
+ /** @deprecated use `Interval$inboundSchema` instead. */
31
+ export const inboundSchema = Interval$inboundSchema;
32
+ /** @deprecated use `Interval$outboundSchema` instead. */
33
+ export const outboundSchema = Interval$outboundSchema;
34
+ }
@@ -44,9 +44,6 @@ import { State, State$inboundSchema, State$outboundSchema } from "./state.js";
44
44
 
45
45
  export type Issue = {
46
46
  id: string;
47
- /**
48
- * Issue platform (currently always GitHub)
49
- */
50
47
  platform?: "github" | undefined;
51
48
  /**
52
49
  * GitHub #number
@@ -90,9 +87,6 @@ export type Issue = {
90
87
  */
91
88
  confirmedSolvedAt?: Date | null | undefined;
92
89
  funding: Funding;
93
- /**
94
- * The repository that the issue is in
95
- */
96
90
  repository: RepositoryInput;
97
91
  /**
98
92
  * Share of rewrads that will be rewarded to contributors of this issue. A number between 0 and 100 (inclusive).