@polar-sh/sdk 0.17.3 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/FUNCTIONS.md +106 -0
  2. package/README.md +181 -30
  3. package/RUNTIMES.md +22 -0
  4. package/docs/sdks/checkouts/README.md +1 -1
  5. package/docs/sdks/files/README.md +5 -1
  6. package/funcs/filesCreate.js +1 -1
  7. package/funcs/filesDelete.d.ts +1 -1
  8. package/funcs/filesDelete.d.ts.map +1 -1
  9. package/funcs/filesDelete.js +1 -1
  10. package/funcs/filesDelete.js.map +1 -1
  11. package/funcs/filesUpdate.d.ts +1 -1
  12. package/funcs/filesUpdate.d.ts.map +1 -1
  13. package/funcs/filesUpdate.js +2 -2
  14. package/funcs/filesUpdate.js.map +1 -1
  15. package/funcs/filesUploaded.d.ts +1 -1
  16. package/funcs/filesUploaded.d.ts.map +1 -1
  17. package/funcs/filesUploaded.js +2 -2
  18. package/funcs/filesUploaded.js.map +1 -1
  19. package/hooks/hooks.d.ts.map +1 -1
  20. package/hooks/hooks.js +18 -0
  21. package/hooks/hooks.js.map +1 -1
  22. package/hooks/types.d.ts +3 -0
  23. package/hooks/types.d.ts.map +1 -1
  24. package/lib/config.d.ts +3 -3
  25. package/lib/config.js +3 -3
  26. package/lib/config.js.map +1 -1
  27. package/models/components/benefit.d.ts +2 -3
  28. package/models/components/benefit.d.ts.map +1 -1
  29. package/models/components/benefit.js +0 -3
  30. package/models/components/benefit.js.map +1 -1
  31. package/models/components/benefitadssubscriber.d.ts +7 -7
  32. package/models/components/benefitadssubscriber.d.ts.map +1 -1
  33. package/models/components/benefitadssubscriber.js +11 -11
  34. package/models/components/benefitadssubscriber.js.map +1 -1
  35. package/models/components/benefitgrant.d.ts +4 -5
  36. package/models/components/benefitgrant.d.ts.map +1 -1
  37. package/models/components/benefitgrant.js +0 -5
  38. package/models/components/benefitgrant.js.map +1 -1
  39. package/models/components/benefitgrantwebhook.d.ts +8 -9
  40. package/models/components/benefitgrantwebhook.d.ts.map +1 -1
  41. package/models/components/benefitgrantwebhook.js +0 -9
  42. package/models/components/benefitgrantwebhook.js.map +1 -1
  43. package/models/components/benefittype.d.ts +0 -3
  44. package/models/components/benefittype.d.ts.map +1 -1
  45. package/models/components/benefittype.js +0 -1
  46. package/models/components/benefittype.js.map +1 -1
  47. package/models/components/checkoutlinkproduct.d.ts +2 -24
  48. package/models/components/checkoutlinkproduct.d.ts.map +1 -1
  49. package/models/components/checkoutlinkproduct.js +3 -27
  50. package/models/components/checkoutlinkproduct.js.map +1 -1
  51. package/models/components/checkoutproduct.d.ts +2 -24
  52. package/models/components/checkoutproduct.d.ts.map +1 -1
  53. package/models/components/checkoutproduct.js +3 -27
  54. package/models/components/checkoutproduct.js.map +1 -1
  55. package/models/components/index.d.ts +0 -15
  56. package/models/components/index.d.ts.map +1 -1
  57. package/models/components/index.js +0 -15
  58. package/models/components/index.js.map +1 -1
  59. package/models/components/listresourceuserbenefit.d.ts +0 -9
  60. package/models/components/listresourceuserbenefit.d.ts.map +1 -1
  61. package/models/components/listresourceuserbenefit.js +0 -13
  62. package/models/components/listresourceuserbenefit.js.map +1 -1
  63. package/models/components/oauth2client.js +2 -2
  64. package/models/components/oauth2client.js.map +1 -1
  65. package/models/components/oauth2clientconfiguration.js +2 -2
  66. package/models/components/oauth2clientconfiguration.js.map +1 -1
  67. package/models/components/oauth2clientconfigurationupdate.js +2 -2
  68. package/models/components/oauth2clientconfigurationupdate.js.map +1 -1
  69. package/models/components/organizationfeaturesettings.d.ts +0 -5
  70. package/models/components/organizationfeaturesettings.d.ts.map +1 -1
  71. package/models/components/organizationfeaturesettings.js +0 -4
  72. package/models/components/organizationfeaturesettings.js.map +1 -1
  73. package/models/components/scope.d.ts +0 -6
  74. package/models/components/scope.d.ts.map +1 -1
  75. package/models/components/scope.js +0 -2
  76. package/models/components/scope.js.map +1 -1
  77. package/models/components/userorderproduct.d.ts +2 -24
  78. package/models/components/userorderproduct.d.ts.map +1 -1
  79. package/models/components/userorderproduct.js +3 -27
  80. package/models/components/userorderproduct.js.map +1 -1
  81. package/models/components/usersubscriptionproduct.d.ts +2 -24
  82. package/models/components/usersubscriptionproduct.d.ts.map +1 -1
  83. package/models/components/usersubscriptionproduct.js +3 -27
  84. package/models/components/usersubscriptionproduct.js.map +1 -1
  85. package/models/errors/index.d.ts +0 -1
  86. package/models/errors/index.d.ts.map +1 -1
  87. package/models/errors/index.js +0 -1
  88. package/models/errors/index.js.map +1 -1
  89. package/models/operations/benefitsupdate.d.ts +4 -4
  90. package/models/operations/benefitsupdate.d.ts.map +1 -1
  91. package/models/operations/benefitsupdate.js +0 -4
  92. package/models/operations/benefitsupdate.js.map +1 -1
  93. package/models/operations/filesupdate.d.ts +1 -1
  94. package/models/operations/filesuploaded.d.ts +1 -1
  95. package/models/operations/index.d.ts +0 -8
  96. package/models/operations/index.d.ts.map +1 -1
  97. package/models/operations/index.js +0 -8
  98. package/models/operations/index.js.map +1 -1
  99. package/models/operations/usersbenefitsget.d.ts +2 -6
  100. package/models/operations/usersbenefitsget.d.ts.map +1 -1
  101. package/models/operations/usersbenefitsget.js +0 -6
  102. package/models/operations/usersbenefitsget.js.map +1 -1
  103. package/package.json +1 -3
  104. package/sdk/sdk.d.ts +0 -3
  105. package/sdk/sdk.d.ts.map +1 -1
  106. package/sdk/sdk.js +0 -5
  107. package/sdk/sdk.js.map +1 -1
  108. package/src/funcs/filesCreate.ts +1 -1
  109. package/src/funcs/filesDelete.ts +3 -3
  110. package/src/funcs/filesUpdate.ts +7 -1
  111. package/src/funcs/filesUploaded.ts +7 -1
  112. package/src/hooks/hooks.ts +20 -0
  113. package/src/hooks/types.ts +9 -0
  114. package/src/lib/config.ts +3 -3
  115. package/src/models/components/benefit.ts +0 -10
  116. package/src/models/components/benefitadssubscriber.ts +12 -15
  117. package/src/models/components/benefitgrant.ts +0 -14
  118. package/src/models/components/benefitgrantwebhook.ts +0 -22
  119. package/src/models/components/benefittype.ts +0 -1
  120. package/src/models/components/checkoutlinkproduct.ts +4 -68
  121. package/src/models/components/checkoutproduct.ts +4 -66
  122. package/src/models/components/index.ts +0 -15
  123. package/src/models/components/listresourceuserbenefit.ts +0 -30
  124. package/src/models/components/oauth2client.ts +2 -2
  125. package/src/models/components/oauth2clientconfiguration.ts +2 -2
  126. package/src/models/components/oauth2clientconfigurationupdate.ts +2 -2
  127. package/src/models/components/organizationfeaturesettings.ts +0 -9
  128. package/src/models/components/scope.ts +0 -2
  129. package/src/models/components/userorderproduct.ts +4 -60
  130. package/src/models/components/usersubscriptionproduct.ts +4 -68
  131. package/src/models/errors/index.ts +0 -1
  132. package/src/models/operations/benefitsupdate.ts +0 -8
  133. package/src/models/operations/filesupdate.ts +1 -1
  134. package/src/models/operations/filesuploaded.ts +1 -1
  135. package/src/models/operations/index.ts +0 -8
  136. package/src/models/operations/usersbenefitsget.ts +0 -12
  137. package/src/sdk/sdk.ts +0 -6
  138. package/src/types/index.ts +1 -0
  139. package/src/types/webhooks.ts +7 -0
  140. package/types/index.d.ts +1 -0
  141. package/types/index.d.ts.map +1 -1
  142. package/types/webhooks.d.ts +4 -0
  143. package/types/webhooks.d.ts.map +1 -0
  144. package/types/webhooks.js +6 -0
  145. package/types/webhooks.js.map +1 -0
  146. package/docs/sdks/articles/README.md +0 -724
  147. package/funcs/articlesCreate.d.ts +0 -16
  148. package/funcs/articlesCreate.d.ts.map +0 -1
  149. package/funcs/articlesCreate.js +0 -99
  150. package/funcs/articlesCreate.js.map +0 -1
  151. package/funcs/articlesDelete.d.ts +0 -16
  152. package/funcs/articlesDelete.d.ts.map +0 -1
  153. package/funcs/articlesDelete.js +0 -105
  154. package/funcs/articlesDelete.js.map +0 -1
  155. package/funcs/articlesExport.d.ts +0 -16
  156. package/funcs/articlesExport.d.ts.map +0 -1
  157. package/funcs/articlesExport.js +0 -103
  158. package/funcs/articlesExport.js.map +0 -1
  159. package/funcs/articlesGet.d.ts +0 -17
  160. package/funcs/articlesGet.d.ts.map +0 -1
  161. package/funcs/articlesGet.js +0 -105
  162. package/funcs/articlesGet.js.map +0 -1
  163. package/funcs/articlesList.d.ts +0 -19
  164. package/funcs/articlesList.d.ts.map +0 -1
  165. package/funcs/articlesList.js +0 -138
  166. package/funcs/articlesList.js.map +0 -1
  167. package/funcs/articlesPreview.d.ts +0 -16
  168. package/funcs/articlesPreview.d.ts.map +0 -1
  169. package/funcs/articlesPreview.js +0 -106
  170. package/funcs/articlesPreview.js.map +0 -1
  171. package/funcs/articlesReceivers.d.ts +0 -17
  172. package/funcs/articlesReceivers.d.ts.map +0 -1
  173. package/funcs/articlesReceivers.js +0 -105
  174. package/funcs/articlesReceivers.js.map +0 -1
  175. package/funcs/articlesSend.d.ts +0 -16
  176. package/funcs/articlesSend.d.ts.map +0 -1
  177. package/funcs/articlesSend.js +0 -105
  178. package/funcs/articlesSend.js.map +0 -1
  179. package/funcs/articlesUpdate.d.ts +0 -17
  180. package/funcs/articlesUpdate.d.ts.map +0 -1
  181. package/funcs/articlesUpdate.js +0 -106
  182. package/funcs/articlesUpdate.js.map +0 -1
  183. package/models/components/article.d.ts +0 -68
  184. package/models/components/article.d.ts.map +0 -1
  185. package/models/components/article.js +0 -129
  186. package/models/components/article.js.map +0 -1
  187. package/models/components/articlebyline.d.ts +0 -28
  188. package/models/components/articlebyline.d.ts.map +0 -1
  189. package/models/components/articlebyline.js +0 -50
  190. package/models/components/articlebyline.js.map +0 -1
  191. package/models/components/articlecreate.d.ts +0 -93
  192. package/models/components/articlecreate.d.ts.map +0 -1
  193. package/models/components/articlecreate.js +0 -112
  194. package/models/components/articlecreate.js.map +0 -1
  195. package/models/components/articlepreview.d.ts +0 -32
  196. package/models/components/articlepreview.d.ts.map +0 -1
  197. package/models/components/articlepreview.js +0 -59
  198. package/models/components/articlepreview.js.map +0 -1
  199. package/models/components/articlereceivers.d.ts +0 -33
  200. package/models/components/articlereceivers.d.ts.map +0 -1
  201. package/models/components/articlereceivers.js +0 -76
  202. package/models/components/articlereceivers.js.map +0 -1
  203. package/models/components/articleupdate.d.ts +0 -85
  204. package/models/components/articleupdate.d.ts.map +0 -1
  205. package/models/components/articleupdate.js +0 -108
  206. package/models/components/articleupdate.js.map +0 -1
  207. package/models/components/articlevisibility.d.ts +0 -31
  208. package/models/components/articlevisibility.d.ts.map +0 -1
  209. package/models/components/articlevisibility.js +0 -51
  210. package/models/components/articlevisibility.js.map +0 -1
  211. package/models/components/benefitarticles.d.ts +0 -100
  212. package/models/components/benefitarticles.d.ts.map +0 -1
  213. package/models/components/benefitarticles.js +0 -107
  214. package/models/components/benefitarticles.js.map +0 -1
  215. package/models/components/benefitarticlesproperties.d.ts +0 -35
  216. package/models/components/benefitarticlesproperties.d.ts.map +0 -1
  217. package/models/components/benefitarticlesproperties.js +0 -68
  218. package/models/components/benefitarticlesproperties.js.map +0 -1
  219. package/models/components/benefitarticlessubscriber.d.ts +0 -99
  220. package/models/components/benefitarticlessubscriber.d.ts.map +0 -1
  221. package/models/components/benefitarticlessubscriber.js +0 -113
  222. package/models/components/benefitarticlessubscriber.js.map +0 -1
  223. package/models/components/benefitarticlessubscriberproperties.d.ts +0 -35
  224. package/models/components/benefitarticlessubscriberproperties.d.ts.map +0 -1
  225. package/models/components/benefitarticlessubscriberproperties.js +0 -68
  226. package/models/components/benefitarticlessubscriberproperties.js.map +0 -1
  227. package/models/components/benefitarticlesupdate.d.ts +0 -57
  228. package/models/components/benefitarticlesupdate.d.ts.map +0 -1
  229. package/models/components/benefitarticlesupdate.js +0 -79
  230. package/models/components/benefitarticlesupdate.js.map +0 -1
  231. package/models/components/benefitgrantarticlesproperties.d.ts +0 -25
  232. package/models/components/benefitgrantarticlesproperties.d.ts.map +0 -1
  233. package/models/components/benefitgrantarticlesproperties.js +0 -55
  234. package/models/components/benefitgrantarticlesproperties.js.map +0 -1
  235. package/models/components/bylineprofile.d.ts +0 -31
  236. package/models/components/bylineprofile.d.ts.map +0 -1
  237. package/models/components/bylineprofile.js +0 -70
  238. package/models/components/bylineprofile.js.map +0 -1
  239. package/models/components/listresourcearticle.d.ts +0 -33
  240. package/models/components/listresourcearticle.d.ts.map +0 -1
  241. package/models/components/listresourcearticle.js +0 -63
  242. package/models/components/listresourcearticle.js.map +0 -1
  243. package/models/errors/filenotfound.d.ts +0 -57
  244. package/models/errors/filenotfound.d.ts.map +0 -1
  245. package/models/errors/filenotfound.js +0 -88
  246. package/models/errors/filenotfound.js.map +0 -1
  247. package/models/operations/articlesdelete.d.ts +0 -29
  248. package/models/operations/articlesdelete.d.ts.map +0 -1
  249. package/models/operations/articlesdelete.js +0 -59
  250. package/models/operations/articlesdelete.js.map +0 -1
  251. package/models/operations/articlesexport.d.ts +0 -29
  252. package/models/operations/articlesexport.d.ts.map +0 -1
  253. package/models/operations/articlesexport.js +0 -68
  254. package/models/operations/articlesexport.js.map +0 -1
  255. package/models/operations/articlesget.d.ts +0 -29
  256. package/models/operations/articlesget.d.ts.map +0 -1
  257. package/models/operations/articlesget.js +0 -59
  258. package/models/operations/articlesget.js.map +0 -1
  259. package/models/operations/articleslist.d.ts +0 -141
  260. package/models/operations/articleslist.d.ts.map +0 -1
  261. package/models/operations/articleslist.js +0 -184
  262. package/models/operations/articleslist.js.map +0 -1
  263. package/models/operations/articlespreview.d.ts +0 -32
  264. package/models/operations/articlespreview.d.ts.map +0 -1
  265. package/models/operations/articlespreview.js +0 -71
  266. package/models/operations/articlespreview.js.map +0 -1
  267. package/models/operations/articlesreceivers.d.ts +0 -29
  268. package/models/operations/articlesreceivers.d.ts.map +0 -1
  269. package/models/operations/articlesreceivers.js +0 -59
  270. package/models/operations/articlesreceivers.js.map +0 -1
  271. package/models/operations/articlessend.d.ts +0 -29
  272. package/models/operations/articlessend.d.ts.map +0 -1
  273. package/models/operations/articlessend.js +0 -59
  274. package/models/operations/articlessend.js.map +0 -1
  275. package/models/operations/articlesupdate.d.ts +0 -32
  276. package/models/operations/articlesupdate.d.ts.map +0 -1
  277. package/models/operations/articlesupdate.js +0 -71
  278. package/models/operations/articlesupdate.js.map +0 -1
  279. package/sdk/articles.d.ts +0 -72
  280. package/sdk/articles.d.ts.map +0 -1
  281. package/sdk/articles.js +0 -103
  282. package/sdk/articles.js.map +0 -1
  283. package/src/funcs/articlesCreate.ts +0 -131
  284. package/src/funcs/articlesDelete.ts +0 -144
  285. package/src/funcs/articlesExport.ts +0 -136
  286. package/src/funcs/articlesGet.ts +0 -141
  287. package/src/funcs/articlesList.ts +0 -205
  288. package/src/funcs/articlesPreview.ts +0 -145
  289. package/src/funcs/articlesReceivers.ts +0 -138
  290. package/src/funcs/articlesSend.ts +0 -144
  291. package/src/funcs/articlesUpdate.ts +0 -145
  292. package/src/models/components/article.ts +0 -187
  293. package/src/models/components/articlebyline.ts +0 -33
  294. package/src/models/components/articlecreate.ts +0 -191
  295. package/src/models/components/articlepreview.ts +0 -65
  296. package/src/models/components/articlereceivers.ts +0 -87
  297. package/src/models/components/articleupdate.ts +0 -179
  298. package/src/models/components/articlevisibility.ts +0 -34
  299. package/src/models/components/benefitarticles.ts +0 -175
  300. package/src/models/components/benefitarticlesproperties.ts +0 -81
  301. package/src/models/components/benefitarticlessubscriber.ts +0 -189
  302. package/src/models/components/benefitarticlessubscriberproperties.ts +0 -86
  303. package/src/models/components/benefitarticlesupdate.ts +0 -102
  304. package/src/models/components/benefitgrantarticlesproperties.ts +0 -60
  305. package/src/models/components/bylineprofile.ts +0 -75
  306. package/src/models/components/listresourcearticle.ts +0 -82
  307. package/src/models/errors/filenotfound.ts +0 -102
  308. package/src/models/operations/articlesdelete.ts +0 -66
  309. package/src/models/operations/articlesexport.ts +0 -75
  310. package/src/models/operations/articlesget.ts +0 -66
  311. package/src/models/operations/articleslist.ts +0 -342
  312. package/src/models/operations/articlespreview.ts +0 -80
  313. package/src/models/operations/articlesreceivers.ts +0 -66
  314. package/src/models/operations/articlessend.ts +0 -66
  315. package/src/models/operations/articlesupdate.ts +0 -80
  316. package/src/sdk/articles.ts +0 -173
@@ -13,12 +13,6 @@ import {
13
13
  BenefitGrantAdsProperties$Outbound,
14
14
  BenefitGrantAdsProperties$outboundSchema,
15
15
  } from "./benefitgrantadsproperties.js";
16
- import {
17
- BenefitGrantArticlesProperties,
18
- BenefitGrantArticlesProperties$inboundSchema,
19
- BenefitGrantArticlesProperties$Outbound,
20
- BenefitGrantArticlesProperties$outboundSchema,
21
- } from "./benefitgrantarticlesproperties.js";
22
16
  import {
23
17
  BenefitGrantCustomProperties,
24
18
  BenefitGrantCustomProperties$inboundSchema,
@@ -52,7 +46,6 @@ import {
52
46
 
53
47
  export type Properties =
54
48
  | BenefitGrantCustomProperties
55
- | BenefitGrantArticlesProperties
56
49
  | BenefitGrantDownloadablesProperties
57
50
  | BenefitGrantAdsProperties
58
51
  | BenefitGrantLicenseKeysProperties
@@ -106,7 +99,6 @@ export type BenefitGrant = {
106
99
  benefitId: string;
107
100
  properties:
108
101
  | BenefitGrantCustomProperties
109
- | BenefitGrantArticlesProperties
110
102
  | BenefitGrantDownloadablesProperties
111
103
  | BenefitGrantAdsProperties
112
104
  | BenefitGrantLicenseKeysProperties
@@ -121,7 +113,6 @@ export const Properties$inboundSchema: z.ZodType<
121
113
  unknown
122
114
  > = z.union([
123
115
  BenefitGrantCustomProperties$inboundSchema,
124
- BenefitGrantArticlesProperties$inboundSchema,
125
116
  BenefitGrantDownloadablesProperties$inboundSchema,
126
117
  BenefitGrantAdsProperties$inboundSchema,
127
118
  BenefitGrantLicenseKeysProperties$inboundSchema,
@@ -132,7 +123,6 @@ export const Properties$inboundSchema: z.ZodType<
132
123
  /** @internal */
133
124
  export type Properties$Outbound =
134
125
  | BenefitGrantCustomProperties$Outbound
135
- | BenefitGrantArticlesProperties$Outbound
136
126
  | BenefitGrantDownloadablesProperties$Outbound
137
127
  | BenefitGrantAdsProperties$Outbound
138
128
  | BenefitGrantLicenseKeysProperties$Outbound
@@ -146,7 +136,6 @@ export const Properties$outboundSchema: z.ZodType<
146
136
  Properties
147
137
  > = z.union([
148
138
  BenefitGrantCustomProperties$outboundSchema,
149
- BenefitGrantArticlesProperties$outboundSchema,
150
139
  BenefitGrantDownloadablesProperties$outboundSchema,
151
140
  BenefitGrantAdsProperties$outboundSchema,
152
141
  BenefitGrantLicenseKeysProperties$outboundSchema,
@@ -206,7 +195,6 @@ export const BenefitGrant$inboundSchema: z.ZodType<
206
195
  benefit_id: z.string(),
207
196
  properties: z.union([
208
197
  BenefitGrantCustomProperties$inboundSchema,
209
- BenefitGrantArticlesProperties$inboundSchema,
210
198
  BenefitGrantDownloadablesProperties$inboundSchema,
211
199
  BenefitGrantAdsProperties$inboundSchema,
212
200
  BenefitGrantLicenseKeysProperties$inboundSchema,
@@ -243,7 +231,6 @@ export type BenefitGrant$Outbound = {
243
231
  benefit_id: string;
244
232
  properties:
245
233
  | BenefitGrantCustomProperties$Outbound
246
- | BenefitGrantArticlesProperties$Outbound
247
234
  | BenefitGrantDownloadablesProperties$Outbound
248
235
  | BenefitGrantAdsProperties$Outbound
249
236
  | BenefitGrantLicenseKeysProperties$Outbound
@@ -270,7 +257,6 @@ export const BenefitGrant$outboundSchema: z.ZodType<
270
257
  benefitId: z.string(),
271
258
  properties: z.union([
272
259
  BenefitGrantCustomProperties$outboundSchema,
273
- BenefitGrantArticlesProperties$outboundSchema,
274
260
  BenefitGrantDownloadablesProperties$outboundSchema,
275
261
  BenefitGrantAdsProperties$outboundSchema,
276
262
  BenefitGrantLicenseKeysProperties$outboundSchema,
@@ -19,12 +19,6 @@ import {
19
19
  BenefitGrantAdsProperties$Outbound,
20
20
  BenefitGrantAdsProperties$outboundSchema,
21
21
  } from "./benefitgrantadsproperties.js";
22
- import {
23
- BenefitGrantArticlesProperties,
24
- BenefitGrantArticlesProperties$inboundSchema,
25
- BenefitGrantArticlesProperties$Outbound,
26
- BenefitGrantArticlesProperties$outboundSchema,
27
- } from "./benefitgrantarticlesproperties.js";
28
22
  import {
29
23
  BenefitGrantCustomProperties,
30
24
  BenefitGrantCustomProperties$inboundSchema,
@@ -58,7 +52,6 @@ import {
58
52
 
59
53
  export type BenefitGrantWebhookProperties =
60
54
  | BenefitGrantCustomProperties
61
- | BenefitGrantArticlesProperties
62
55
  | BenefitGrantDownloadablesProperties
63
56
  | BenefitGrantAdsProperties
64
57
  | BenefitGrantLicenseKeysProperties
@@ -67,7 +60,6 @@ export type BenefitGrantWebhookProperties =
67
60
 
68
61
  export type PreviousProperties =
69
62
  | BenefitGrantCustomProperties
70
- | BenefitGrantArticlesProperties
71
63
  | BenefitGrantDownloadablesProperties
72
64
  | BenefitGrantAdsProperties
73
65
  | BenefitGrantLicenseKeysProperties
@@ -121,7 +113,6 @@ export type BenefitGrantWebhook = {
121
113
  benefitId: string;
122
114
  properties:
123
115
  | BenefitGrantCustomProperties
124
- | BenefitGrantArticlesProperties
125
116
  | BenefitGrantDownloadablesProperties
126
117
  | BenefitGrantAdsProperties
127
118
  | BenefitGrantLicenseKeysProperties
@@ -130,7 +121,6 @@ export type BenefitGrantWebhook = {
130
121
  benefit: Benefit;
131
122
  previousProperties?:
132
123
  | BenefitGrantCustomProperties
133
- | BenefitGrantArticlesProperties
134
124
  | BenefitGrantDownloadablesProperties
135
125
  | BenefitGrantAdsProperties
136
126
  | BenefitGrantLicenseKeysProperties
@@ -147,7 +137,6 @@ export const BenefitGrantWebhookProperties$inboundSchema: z.ZodType<
147
137
  unknown
148
138
  > = z.union([
149
139
  BenefitGrantCustomProperties$inboundSchema,
150
- BenefitGrantArticlesProperties$inboundSchema,
151
140
  BenefitGrantDownloadablesProperties$inboundSchema,
152
141
  BenefitGrantAdsProperties$inboundSchema,
153
142
  BenefitGrantLicenseKeysProperties$inboundSchema,
@@ -158,7 +147,6 @@ export const BenefitGrantWebhookProperties$inboundSchema: z.ZodType<
158
147
  /** @internal */
159
148
  export type BenefitGrantWebhookProperties$Outbound =
160
149
  | BenefitGrantCustomProperties$Outbound
161
- | BenefitGrantArticlesProperties$Outbound
162
150
  | BenefitGrantDownloadablesProperties$Outbound
163
151
  | BenefitGrantAdsProperties$Outbound
164
152
  | BenefitGrantLicenseKeysProperties$Outbound
@@ -172,7 +160,6 @@ export const BenefitGrantWebhookProperties$outboundSchema: z.ZodType<
172
160
  BenefitGrantWebhookProperties
173
161
  > = z.union([
174
162
  BenefitGrantCustomProperties$outboundSchema,
175
- BenefitGrantArticlesProperties$outboundSchema,
176
163
  BenefitGrantDownloadablesProperties$outboundSchema,
177
164
  BenefitGrantAdsProperties$outboundSchema,
178
165
  BenefitGrantLicenseKeysProperties$outboundSchema,
@@ -220,7 +207,6 @@ export const PreviousProperties$inboundSchema: z.ZodType<
220
207
  unknown
221
208
  > = z.union([
222
209
  BenefitGrantCustomProperties$inboundSchema,
223
- BenefitGrantArticlesProperties$inboundSchema,
224
210
  BenefitGrantDownloadablesProperties$inboundSchema,
225
211
  BenefitGrantAdsProperties$inboundSchema,
226
212
  BenefitGrantLicenseKeysProperties$inboundSchema,
@@ -231,7 +217,6 @@ export const PreviousProperties$inboundSchema: z.ZodType<
231
217
  /** @internal */
232
218
  export type PreviousProperties$Outbound =
233
219
  | BenefitGrantCustomProperties$Outbound
234
- | BenefitGrantArticlesProperties$Outbound
235
220
  | BenefitGrantDownloadablesProperties$Outbound
236
221
  | BenefitGrantAdsProperties$Outbound
237
222
  | BenefitGrantLicenseKeysProperties$Outbound
@@ -245,7 +230,6 @@ export const PreviousProperties$outboundSchema: z.ZodType<
245
230
  PreviousProperties
246
231
  > = z.union([
247
232
  BenefitGrantCustomProperties$outboundSchema,
248
- BenefitGrantArticlesProperties$outboundSchema,
249
233
  BenefitGrantDownloadablesProperties$outboundSchema,
250
234
  BenefitGrantAdsProperties$outboundSchema,
251
235
  BenefitGrantLicenseKeysProperties$outboundSchema,
@@ -309,7 +293,6 @@ export const BenefitGrantWebhook$inboundSchema: z.ZodType<
309
293
  benefit_id: z.string(),
310
294
  properties: z.union([
311
295
  BenefitGrantCustomProperties$inboundSchema,
312
- BenefitGrantArticlesProperties$inboundSchema,
313
296
  BenefitGrantDownloadablesProperties$inboundSchema,
314
297
  BenefitGrantAdsProperties$inboundSchema,
315
298
  BenefitGrantLicenseKeysProperties$inboundSchema,
@@ -320,7 +303,6 @@ export const BenefitGrantWebhook$inboundSchema: z.ZodType<
320
303
  previous_properties: z.nullable(
321
304
  z.union([
322
305
  BenefitGrantCustomProperties$inboundSchema,
323
- BenefitGrantArticlesProperties$inboundSchema,
324
306
  BenefitGrantDownloadablesProperties$inboundSchema,
325
307
  BenefitGrantAdsProperties$inboundSchema,
326
308
  BenefitGrantLicenseKeysProperties$inboundSchema,
@@ -359,7 +341,6 @@ export type BenefitGrantWebhook$Outbound = {
359
341
  benefit_id: string;
360
342
  properties:
361
343
  | BenefitGrantCustomProperties$Outbound
362
- | BenefitGrantArticlesProperties$Outbound
363
344
  | BenefitGrantDownloadablesProperties$Outbound
364
345
  | BenefitGrantAdsProperties$Outbound
365
346
  | BenefitGrantLicenseKeysProperties$Outbound
@@ -368,7 +349,6 @@ export type BenefitGrantWebhook$Outbound = {
368
349
  benefit: Benefit$Outbound;
369
350
  previous_properties?:
370
351
  | BenefitGrantCustomProperties$Outbound
371
- | BenefitGrantArticlesProperties$Outbound
372
352
  | BenefitGrantDownloadablesProperties$Outbound
373
353
  | BenefitGrantAdsProperties$Outbound
374
354
  | BenefitGrantLicenseKeysProperties$Outbound
@@ -397,7 +377,6 @@ export const BenefitGrantWebhook$outboundSchema: z.ZodType<
397
377
  benefitId: z.string(),
398
378
  properties: z.union([
399
379
  BenefitGrantCustomProperties$outboundSchema,
400
- BenefitGrantArticlesProperties$outboundSchema,
401
380
  BenefitGrantDownloadablesProperties$outboundSchema,
402
381
  BenefitGrantAdsProperties$outboundSchema,
403
382
  BenefitGrantLicenseKeysProperties$outboundSchema,
@@ -408,7 +387,6 @@ export const BenefitGrantWebhook$outboundSchema: z.ZodType<
408
387
  previousProperties: z.nullable(
409
388
  z.union([
410
389
  BenefitGrantCustomProperties$outboundSchema,
411
- BenefitGrantArticlesProperties$outboundSchema,
412
390
  BenefitGrantDownloadablesProperties$outboundSchema,
413
391
  BenefitGrantAdsProperties$outboundSchema,
414
392
  BenefitGrantLicenseKeysProperties$outboundSchema,
@@ -7,7 +7,6 @@ import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const BenefitType = {
9
9
  Custom: "custom",
10
- Articles: "articles",
11
10
  Ads: "ads",
12
11
  Discord: "discord",
13
12
  GithubRepository: "github_repository",
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- BenefitArticles,
12
- BenefitArticles$inboundSchema,
13
- BenefitArticles$Outbound,
14
- BenefitArticles$outboundSchema,
15
- } from "./benefitarticles.js";
16
10
  import {
17
11
  BenefitBase,
18
12
  BenefitBase$inboundSchema,
@@ -32,8 +26,6 @@ import {
32
26
  ProductPrice$outboundSchema,
33
27
  } from "./productprice.js";
34
28
 
35
- export type CheckoutLinkProductBenefits = BenefitBase | BenefitArticles;
36
-
37
29
  /**
38
30
  * Product data for a checkout link.
39
31
  */
@@ -77,65 +69,13 @@ export type CheckoutLinkProduct = {
77
69
  /**
78
70
  * List of benefits granted by the product.
79
71
  */
80
- benefits: Array<BenefitBase | BenefitArticles>;
72
+ benefits: Array<BenefitBase>;
81
73
  /**
82
74
  * List of medias associated to the product.
83
75
  */
84
76
  medias: Array<ProductMediaFileRead>;
85
77
  };
86
78
 
87
- /** @internal */
88
- export const CheckoutLinkProductBenefits$inboundSchema: z.ZodType<
89
- CheckoutLinkProductBenefits,
90
- z.ZodTypeDef,
91
- unknown
92
- > = z.union([BenefitBase$inboundSchema, BenefitArticles$inboundSchema]);
93
-
94
- /** @internal */
95
- export type CheckoutLinkProductBenefits$Outbound =
96
- | BenefitBase$Outbound
97
- | BenefitArticles$Outbound;
98
-
99
- /** @internal */
100
- export const CheckoutLinkProductBenefits$outboundSchema: z.ZodType<
101
- CheckoutLinkProductBenefits$Outbound,
102
- z.ZodTypeDef,
103
- CheckoutLinkProductBenefits
104
- > = z.union([BenefitBase$outboundSchema, BenefitArticles$outboundSchema]);
105
-
106
- /**
107
- * @internal
108
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
- */
110
- export namespace CheckoutLinkProductBenefits$ {
111
- /** @deprecated use `CheckoutLinkProductBenefits$inboundSchema` instead. */
112
- export const inboundSchema = CheckoutLinkProductBenefits$inboundSchema;
113
- /** @deprecated use `CheckoutLinkProductBenefits$outboundSchema` instead. */
114
- export const outboundSchema = CheckoutLinkProductBenefits$outboundSchema;
115
- /** @deprecated use `CheckoutLinkProductBenefits$Outbound` instead. */
116
- export type Outbound = CheckoutLinkProductBenefits$Outbound;
117
- }
118
-
119
- export function checkoutLinkProductBenefitsToJSON(
120
- checkoutLinkProductBenefits: CheckoutLinkProductBenefits,
121
- ): string {
122
- return JSON.stringify(
123
- CheckoutLinkProductBenefits$outboundSchema.parse(
124
- checkoutLinkProductBenefits,
125
- ),
126
- );
127
- }
128
-
129
- export function checkoutLinkProductBenefitsFromJSON(
130
- jsonString: string,
131
- ): SafeParseResult<CheckoutLinkProductBenefits, SDKValidationError> {
132
- return safeParse(
133
- jsonString,
134
- (x) => CheckoutLinkProductBenefits$inboundSchema.parse(JSON.parse(x)),
135
- `Failed to parse 'CheckoutLinkProductBenefits' from JSON`,
136
- );
137
- }
138
-
139
79
  /** @internal */
140
80
  export const CheckoutLinkProduct$inboundSchema: z.ZodType<
141
81
  CheckoutLinkProduct,
@@ -153,9 +93,7 @@ export const CheckoutLinkProduct$inboundSchema: z.ZodType<
153
93
  is_archived: z.boolean(),
154
94
  organization_id: z.string(),
155
95
  prices: z.array(ProductPrice$inboundSchema),
156
- benefits: z.array(
157
- z.union([BenefitBase$inboundSchema, BenefitArticles$inboundSchema]),
158
- ),
96
+ benefits: z.array(BenefitBase$inboundSchema),
159
97
  medias: z.array(ProductMediaFileRead$inboundSchema),
160
98
  }).transform((v) => {
161
99
  return remap$(v, {
@@ -178,7 +116,7 @@ export type CheckoutLinkProduct$Outbound = {
178
116
  is_archived: boolean;
179
117
  organization_id: string;
180
118
  prices: Array<ProductPrice$Outbound>;
181
- benefits: Array<BenefitBase$Outbound | BenefitArticles$Outbound>;
119
+ benefits: Array<BenefitBase$Outbound>;
182
120
  medias: Array<ProductMediaFileRead$Outbound>;
183
121
  };
184
122
 
@@ -197,9 +135,7 @@ export const CheckoutLinkProduct$outboundSchema: z.ZodType<
197
135
  isArchived: z.boolean(),
198
136
  organizationId: z.string(),
199
137
  prices: z.array(ProductPrice$outboundSchema),
200
- benefits: z.array(
201
- z.union([BenefitBase$outboundSchema, BenefitArticles$outboundSchema]),
202
- ),
138
+ benefits: z.array(BenefitBase$outboundSchema),
203
139
  medias: z.array(ProductMediaFileRead$outboundSchema),
204
140
  }).transform((v) => {
205
141
  return remap$(v, {
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- BenefitArticles,
12
- BenefitArticles$inboundSchema,
13
- BenefitArticles$Outbound,
14
- BenefitArticles$outboundSchema,
15
- } from "./benefitarticles.js";
16
10
  import {
17
11
  BenefitBase,
18
12
  BenefitBase$inboundSchema,
@@ -32,8 +26,6 @@ import {
32
26
  ProductPrice$outboundSchema,
33
27
  } from "./productprice.js";
34
28
 
35
- export type CheckoutProductBenefits = BenefitBase | BenefitArticles;
36
-
37
29
  /**
38
30
  * Product data for a checkout session.
39
31
  */
@@ -77,63 +69,13 @@ export type CheckoutProduct = {
77
69
  /**
78
70
  * List of benefits granted by the product.
79
71
  */
80
- benefits: Array<BenefitBase | BenefitArticles>;
72
+ benefits: Array<BenefitBase>;
81
73
  /**
82
74
  * List of medias associated to the product.
83
75
  */
84
76
  medias: Array<ProductMediaFileRead>;
85
77
  };
86
78
 
87
- /** @internal */
88
- export const CheckoutProductBenefits$inboundSchema: z.ZodType<
89
- CheckoutProductBenefits,
90
- z.ZodTypeDef,
91
- unknown
92
- > = z.union([BenefitBase$inboundSchema, BenefitArticles$inboundSchema]);
93
-
94
- /** @internal */
95
- export type CheckoutProductBenefits$Outbound =
96
- | BenefitBase$Outbound
97
- | BenefitArticles$Outbound;
98
-
99
- /** @internal */
100
- export const CheckoutProductBenefits$outboundSchema: z.ZodType<
101
- CheckoutProductBenefits$Outbound,
102
- z.ZodTypeDef,
103
- CheckoutProductBenefits
104
- > = z.union([BenefitBase$outboundSchema, BenefitArticles$outboundSchema]);
105
-
106
- /**
107
- * @internal
108
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
- */
110
- export namespace CheckoutProductBenefits$ {
111
- /** @deprecated use `CheckoutProductBenefits$inboundSchema` instead. */
112
- export const inboundSchema = CheckoutProductBenefits$inboundSchema;
113
- /** @deprecated use `CheckoutProductBenefits$outboundSchema` instead. */
114
- export const outboundSchema = CheckoutProductBenefits$outboundSchema;
115
- /** @deprecated use `CheckoutProductBenefits$Outbound` instead. */
116
- export type Outbound = CheckoutProductBenefits$Outbound;
117
- }
118
-
119
- export function checkoutProductBenefitsToJSON(
120
- checkoutProductBenefits: CheckoutProductBenefits,
121
- ): string {
122
- return JSON.stringify(
123
- CheckoutProductBenefits$outboundSchema.parse(checkoutProductBenefits),
124
- );
125
- }
126
-
127
- export function checkoutProductBenefitsFromJSON(
128
- jsonString: string,
129
- ): SafeParseResult<CheckoutProductBenefits, SDKValidationError> {
130
- return safeParse(
131
- jsonString,
132
- (x) => CheckoutProductBenefits$inboundSchema.parse(JSON.parse(x)),
133
- `Failed to parse 'CheckoutProductBenefits' from JSON`,
134
- );
135
- }
136
-
137
79
  /** @internal */
138
80
  export const CheckoutProduct$inboundSchema: z.ZodType<
139
81
  CheckoutProduct,
@@ -151,9 +93,7 @@ export const CheckoutProduct$inboundSchema: z.ZodType<
151
93
  is_archived: z.boolean(),
152
94
  organization_id: z.string(),
153
95
  prices: z.array(ProductPrice$inboundSchema),
154
- benefits: z.array(
155
- z.union([BenefitBase$inboundSchema, BenefitArticles$inboundSchema]),
156
- ),
96
+ benefits: z.array(BenefitBase$inboundSchema),
157
97
  medias: z.array(ProductMediaFileRead$inboundSchema),
158
98
  }).transform((v) => {
159
99
  return remap$(v, {
@@ -176,7 +116,7 @@ export type CheckoutProduct$Outbound = {
176
116
  is_archived: boolean;
177
117
  organization_id: string;
178
118
  prices: Array<ProductPrice$Outbound>;
179
- benefits: Array<BenefitBase$Outbound | BenefitArticles$Outbound>;
119
+ benefits: Array<BenefitBase$Outbound>;
180
120
  medias: Array<ProductMediaFileRead$Outbound>;
181
121
  };
182
122
 
@@ -195,9 +135,7 @@ export const CheckoutProduct$outboundSchema: z.ZodType<
195
135
  isArchived: z.boolean(),
196
136
  organizationId: z.string(),
197
137
  prices: z.array(ProductPrice$outboundSchema),
198
- benefits: z.array(
199
- z.union([BenefitBase$outboundSchema, BenefitArticles$outboundSchema]),
200
- ),
138
+ benefits: z.array(BenefitBase$outboundSchema),
201
139
  medias: z.array(ProductMediaFileRead$outboundSchema),
202
140
  }).transform((v) => {
203
141
  return remap$(v, {
@@ -6,13 +6,6 @@ export * from "./address.js";
6
6
  export * from "./advertisementcampaign.js";
7
7
  export * from "./advertisementcampaignlistresource.js";
8
8
  export * from "./advertisementsortproperty.js";
9
- export * from "./article.js";
10
- export * from "./articlebyline.js";
11
- export * from "./articlecreate.js";
12
- export * from "./articlepreview.js";
13
- export * from "./articlereceivers.js";
14
- export * from "./articleupdate.js";
15
- export * from "./articlevisibility.js";
16
9
  export * from "./assignee.js";
17
10
  export * from "./attachedcustomfield.js";
18
11
  export * from "./attachedcustomfieldcreate.js";
@@ -27,11 +20,6 @@ export * from "./benefitadscreate.js";
27
20
  export * from "./benefitadsproperties.js";
28
21
  export * from "./benefitadssubscriber.js";
29
22
  export * from "./benefitadsupdate.js";
30
- export * from "./benefitarticles.js";
31
- export * from "./benefitarticlesproperties.js";
32
- export * from "./benefitarticlessubscriber.js";
33
- export * from "./benefitarticlessubscriberproperties.js";
34
- export * from "./benefitarticlesupdate.js";
35
23
  export * from "./benefitbase.js";
36
24
  export * from "./benefitcreate.js";
37
25
  export * from "./benefitcustom.js";
@@ -66,7 +54,6 @@ export * from "./benefitgrant.js";
66
54
  export * from "./benefitgrantads.js";
67
55
  export * from "./benefitgrantadsproperties.js";
68
56
  export * from "./benefitgrantadssubscriberproperties.js";
69
- export * from "./benefitgrantarticlesproperties.js";
70
57
  export * from "./benefitgrantcustomproperties.js";
71
58
  export * from "./benefitgrantdiscordproperties.js";
72
59
  export * from "./benefitgrantdownloadablesproperties.js";
@@ -85,7 +72,6 @@ export * from "./benefitlicensekeyssubscriber.js";
85
72
  export * from "./benefitlicensekeyssubscriberproperties.js";
86
73
  export * from "./benefitlicensekeysupdate.js";
87
74
  export * from "./benefittype.js";
88
- export * from "./bylineprofile.js";
89
75
  export * from "./checkout.js";
90
76
  export * from "./checkoutconfirmstripe.js";
91
77
  export * from "./checkoutcreate.js";
@@ -183,7 +169,6 @@ export * from "./licensekeyupdate.js";
183
169
  export * from "./licensekeyuser.js";
184
170
  export * from "./licensekeyvalidate.js";
185
171
  export * from "./licensekeywithactivations.js";
186
- export * from "./listresourcearticle.js";
187
172
  export * from "./listresourcebenefit.js";
188
173
  export * from "./listresourcebenefitgrant.js";
189
174
  export * from "./listresourcecheckout.js";
@@ -12,12 +12,6 @@ import {
12
12
  BenefitAdsSubscriber$Outbound,
13
13
  BenefitAdsSubscriber$outboundSchema,
14
14
  } from "./benefitadssubscriber.js";
15
- import {
16
- BenefitArticlesSubscriber,
17
- BenefitArticlesSubscriber$inboundSchema,
18
- BenefitArticlesSubscriber$Outbound,
19
- BenefitArticlesSubscriber$outboundSchema,
20
- } from "./benefitarticlessubscriber.js";
21
15
  import {
22
16
  BenefitCustomSubscriber,
23
17
  BenefitCustomSubscriber$inboundSchema,
@@ -57,7 +51,6 @@ import {
57
51
 
58
52
  export type UserBenefit =
59
53
  | (BenefitAdsSubscriber & { type: "ads" })
60
- | (BenefitArticlesSubscriber & { type: "articles" })
61
54
  | (BenefitCustomSubscriber & { type: "custom" })
62
55
  | (BenefitDiscordSubscriber & { type: "discord" })
63
56
  | (BenefitDownloadablesSubscriber & { type: "downloadables" })
@@ -67,7 +60,6 @@ export type UserBenefit =
67
60
  export type ListResourceUserBenefit = {
68
61
  items: Array<
69
62
  | (BenefitAdsSubscriber & { type: "ads" })
70
- | (BenefitArticlesSubscriber & { type: "articles" })
71
63
  | (BenefitCustomSubscriber & { type: "custom" })
72
64
  | (BenefitDiscordSubscriber & { type: "discord" })
73
65
  | (BenefitDownloadablesSubscriber & { type: "downloadables" })
@@ -86,11 +78,6 @@ export const UserBenefit$inboundSchema: z.ZodType<
86
78
  BenefitAdsSubscriber$inboundSchema.and(
87
79
  z.object({ type: z.literal("ads") }).transform((v) => ({ type: v.type })),
88
80
  ),
89
- BenefitArticlesSubscriber$inboundSchema.and(
90
- z.object({ type: z.literal("articles") }).transform((v) => ({
91
- type: v.type,
92
- })),
93
- ),
94
81
  BenefitCustomSubscriber$inboundSchema.and(
95
82
  z.object({ type: z.literal("custom") }).transform((v) => ({
96
83
  type: v.type,
@@ -121,7 +108,6 @@ export const UserBenefit$inboundSchema: z.ZodType<
121
108
  /** @internal */
122
109
  export type UserBenefit$Outbound =
123
110
  | (BenefitAdsSubscriber$Outbound & { type: "ads" })
124
- | (BenefitArticlesSubscriber$Outbound & { type: "articles" })
125
111
  | (BenefitCustomSubscriber$Outbound & { type: "custom" })
126
112
  | (BenefitDiscordSubscriber$Outbound & { type: "discord" })
127
113
  | (BenefitDownloadablesSubscriber$Outbound & { type: "downloadables" })
@@ -137,11 +123,6 @@ export const UserBenefit$outboundSchema: z.ZodType<
137
123
  BenefitAdsSubscriber$outboundSchema.and(
138
124
  z.object({ type: z.literal("ads") }).transform((v) => ({ type: v.type })),
139
125
  ),
140
- BenefitArticlesSubscriber$outboundSchema.and(
141
- z.object({ type: z.literal("articles") }).transform((v) => ({
142
- type: v.type,
143
- })),
144
- ),
145
126
  BenefitCustomSubscriber$outboundSchema.and(
146
127
  z.object({ type: z.literal("custom") }).transform((v) => ({
147
128
  type: v.type,
@@ -209,11 +190,6 @@ export const ListResourceUserBenefit$inboundSchema: z.ZodType<
209
190
  type: v.type,
210
191
  })),
211
192
  ),
212
- BenefitArticlesSubscriber$inboundSchema.and(
213
- z.object({ type: z.literal("articles") }).transform((v) => ({
214
- type: v.type,
215
- })),
216
- ),
217
193
  BenefitCustomSubscriber$inboundSchema.and(
218
194
  z.object({ type: z.literal("custom") }).transform((v) => ({
219
195
  type: v.type,
@@ -248,7 +224,6 @@ export const ListResourceUserBenefit$inboundSchema: z.ZodType<
248
224
  export type ListResourceUserBenefit$Outbound = {
249
225
  items: Array<
250
226
  | (BenefitAdsSubscriber$Outbound & { type: "ads" })
251
- | (BenefitArticlesSubscriber$Outbound & { type: "articles" })
252
227
  | (BenefitCustomSubscriber$Outbound & { type: "custom" })
253
228
  | (BenefitDiscordSubscriber$Outbound & { type: "discord" })
254
229
  | (BenefitDownloadablesSubscriber$Outbound & { type: "downloadables" })
@@ -273,11 +248,6 @@ export const ListResourceUserBenefit$outboundSchema: z.ZodType<
273
248
  type: v.type,
274
249
  })),
275
250
  ),
276
- BenefitArticlesSubscriber$outboundSchema.and(
277
- z.object({ type: z.literal("articles") }).transform((v) => ({
278
- type: v.type,
279
- })),
280
- ),
281
251
  BenefitCustomSubscriber$outboundSchema.and(
282
252
  z.object({ type: z.literal("custom") }).transform((v) => ({
283
253
  type: v.type,
@@ -128,7 +128,7 @@ export const OAuth2Client$inboundSchema: z.ZodType<
128
128
  grant_types: z.array(GrantTypes$inboundSchema).optional(),
129
129
  response_types: z.array(ResponseTypes$inboundSchema).optional(),
130
130
  scope: z.string().default(
131
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read articles:read articles:write webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
131
+ "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
132
132
  ),
133
133
  client_name: z.string(),
134
134
  client_uri: z.nullable(z.string()).optional(),
@@ -196,7 +196,7 @@ export const OAuth2Client$outboundSchema: z.ZodType<
196
196
  grantTypes: z.array(GrantTypes$outboundSchema).optional(),
197
197
  responseTypes: z.array(ResponseTypes$outboundSchema).optional(),
198
198
  scope: z.string().default(
199
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read articles:read articles:write webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
199
+ "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
200
200
  ),
201
201
  clientName: z.string(),
202
202
  clientUri: z.nullable(z.string()).optional(),
@@ -134,7 +134,7 @@ export const OAuth2ClientConfiguration$inboundSchema: z.ZodType<
134
134
  response_types: z.array(OAuth2ClientConfigurationResponseTypes$inboundSchema)
135
135
  .optional(),
136
136
  scope: z.string().default(
137
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read articles:read articles:write webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
137
+ "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
138
138
  ),
139
139
  client_name: z.string(),
140
140
  client_uri: z.nullable(z.string()).optional(),
@@ -185,7 +185,7 @@ export const OAuth2ClientConfiguration$outboundSchema: z.ZodType<
185
185
  responseTypes: z.array(OAuth2ClientConfigurationResponseTypes$outboundSchema)
186
186
  .optional(),
187
187
  scope: z.string().default(
188
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read articles:read articles:write webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
188
+ "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
189
189
  ),
190
190
  clientName: z.string(),
191
191
  clientUri: z.nullable(z.string()).optional(),
@@ -138,7 +138,7 @@ export const OAuth2ClientConfigurationUpdate$inboundSchema: z.ZodType<
138
138
  OAuth2ClientConfigurationUpdateResponseTypes$inboundSchema,
139
139
  ).optional(),
140
140
  scope: z.string().default(
141
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read articles:read articles:write webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
141
+ "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
142
142
  ),
143
143
  client_name: z.string(),
144
144
  client_uri: z.nullable(z.string()).optional(),
@@ -192,7 +192,7 @@ export const OAuth2ClientConfigurationUpdate$outboundSchema: z.ZodType<
192
192
  OAuth2ClientConfigurationUpdateResponseTypes$outboundSchema,
193
193
  ).optional(),
194
194
  scope: z.string().default(
195
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read articles:read articles:write webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
195
+ "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write products:read products:write benefits:read benefits:write files:read files:write subscriptions:read subscriptions:write orders:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write user:benefits:read user:orders:read user:subscriptions:read user:subscriptions:write user:downloadables:read user:license_keys:read user:advertisement_campaigns:read user:advertisement_campaigns:write",
196
196
  ),
197
197
  clientName: z.string(),
198
198
  clientUri: z.nullable(z.string()).optional(),