@polar-sh/sdk 0.17.4 → 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 (284) 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/hooks/hooks.d.ts.map +1 -1
  6. package/hooks/hooks.js +18 -0
  7. package/hooks/hooks.js.map +1 -1
  8. package/hooks/types.d.ts +3 -0
  9. package/hooks/types.d.ts.map +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/lib/config.js.map +1 -1
  13. package/models/components/benefit.d.ts +2 -3
  14. package/models/components/benefit.d.ts.map +1 -1
  15. package/models/components/benefit.js +0 -3
  16. package/models/components/benefit.js.map +1 -1
  17. package/models/components/benefitadssubscriber.d.ts +7 -7
  18. package/models/components/benefitadssubscriber.d.ts.map +1 -1
  19. package/models/components/benefitadssubscriber.js +11 -11
  20. package/models/components/benefitadssubscriber.js.map +1 -1
  21. package/models/components/benefitgrant.d.ts +4 -5
  22. package/models/components/benefitgrant.d.ts.map +1 -1
  23. package/models/components/benefitgrant.js +0 -5
  24. package/models/components/benefitgrant.js.map +1 -1
  25. package/models/components/benefitgrantwebhook.d.ts +8 -9
  26. package/models/components/benefitgrantwebhook.d.ts.map +1 -1
  27. package/models/components/benefitgrantwebhook.js +0 -9
  28. package/models/components/benefitgrantwebhook.js.map +1 -1
  29. package/models/components/benefittype.d.ts +0 -3
  30. package/models/components/benefittype.d.ts.map +1 -1
  31. package/models/components/benefittype.js +0 -1
  32. package/models/components/benefittype.js.map +1 -1
  33. package/models/components/checkoutlinkproduct.d.ts +2 -24
  34. package/models/components/checkoutlinkproduct.d.ts.map +1 -1
  35. package/models/components/checkoutlinkproduct.js +3 -27
  36. package/models/components/checkoutlinkproduct.js.map +1 -1
  37. package/models/components/checkoutproduct.d.ts +2 -24
  38. package/models/components/checkoutproduct.d.ts.map +1 -1
  39. package/models/components/checkoutproduct.js +3 -27
  40. package/models/components/checkoutproduct.js.map +1 -1
  41. package/models/components/index.d.ts +0 -15
  42. package/models/components/index.d.ts.map +1 -1
  43. package/models/components/index.js +0 -15
  44. package/models/components/index.js.map +1 -1
  45. package/models/components/listresourceuserbenefit.d.ts +0 -9
  46. package/models/components/listresourceuserbenefit.d.ts.map +1 -1
  47. package/models/components/listresourceuserbenefit.js +0 -13
  48. package/models/components/listresourceuserbenefit.js.map +1 -1
  49. package/models/components/oauth2client.js +2 -2
  50. package/models/components/oauth2client.js.map +1 -1
  51. package/models/components/oauth2clientconfiguration.js +2 -2
  52. package/models/components/oauth2clientconfiguration.js.map +1 -1
  53. package/models/components/oauth2clientconfigurationupdate.js +2 -2
  54. package/models/components/oauth2clientconfigurationupdate.js.map +1 -1
  55. package/models/components/organizationfeaturesettings.d.ts +0 -5
  56. package/models/components/organizationfeaturesettings.d.ts.map +1 -1
  57. package/models/components/organizationfeaturesettings.js +0 -4
  58. package/models/components/organizationfeaturesettings.js.map +1 -1
  59. package/models/components/scope.d.ts +0 -6
  60. package/models/components/scope.d.ts.map +1 -1
  61. package/models/components/scope.js +0 -2
  62. package/models/components/scope.js.map +1 -1
  63. package/models/components/userorderproduct.d.ts +2 -24
  64. package/models/components/userorderproduct.d.ts.map +1 -1
  65. package/models/components/userorderproduct.js +3 -27
  66. package/models/components/userorderproduct.js.map +1 -1
  67. package/models/components/usersubscriptionproduct.d.ts +2 -24
  68. package/models/components/usersubscriptionproduct.d.ts.map +1 -1
  69. package/models/components/usersubscriptionproduct.js +3 -27
  70. package/models/components/usersubscriptionproduct.js.map +1 -1
  71. package/models/operations/benefitsupdate.d.ts +4 -4
  72. package/models/operations/benefitsupdate.d.ts.map +1 -1
  73. package/models/operations/benefitsupdate.js +0 -4
  74. package/models/operations/benefitsupdate.js.map +1 -1
  75. package/models/operations/index.d.ts +0 -8
  76. package/models/operations/index.d.ts.map +1 -1
  77. package/models/operations/index.js +0 -8
  78. package/models/operations/index.js.map +1 -1
  79. package/models/operations/usersbenefitsget.d.ts +2 -6
  80. package/models/operations/usersbenefitsget.d.ts.map +1 -1
  81. package/models/operations/usersbenefitsget.js +0 -6
  82. package/models/operations/usersbenefitsget.js.map +1 -1
  83. package/package.json +1 -3
  84. package/sdk/sdk.d.ts +0 -3
  85. package/sdk/sdk.d.ts.map +1 -1
  86. package/sdk/sdk.js +0 -5
  87. package/sdk/sdk.js.map +1 -1
  88. package/src/hooks/hooks.ts +20 -0
  89. package/src/hooks/types.ts +9 -0
  90. package/src/lib/config.ts +3 -3
  91. package/src/models/components/benefit.ts +0 -10
  92. package/src/models/components/benefitadssubscriber.ts +12 -15
  93. package/src/models/components/benefitgrant.ts +0 -14
  94. package/src/models/components/benefitgrantwebhook.ts +0 -22
  95. package/src/models/components/benefittype.ts +0 -1
  96. package/src/models/components/checkoutlinkproduct.ts +4 -68
  97. package/src/models/components/checkoutproduct.ts +4 -66
  98. package/src/models/components/index.ts +0 -15
  99. package/src/models/components/listresourceuserbenefit.ts +0 -30
  100. package/src/models/components/oauth2client.ts +2 -2
  101. package/src/models/components/oauth2clientconfiguration.ts +2 -2
  102. package/src/models/components/oauth2clientconfigurationupdate.ts +2 -2
  103. package/src/models/components/organizationfeaturesettings.ts +0 -9
  104. package/src/models/components/scope.ts +0 -2
  105. package/src/models/components/userorderproduct.ts +4 -60
  106. package/src/models/components/usersubscriptionproduct.ts +4 -68
  107. package/src/models/operations/benefitsupdate.ts +0 -8
  108. package/src/models/operations/index.ts +0 -8
  109. package/src/models/operations/usersbenefitsget.ts +0 -12
  110. package/src/sdk/sdk.ts +0 -6
  111. package/src/types/index.ts +1 -0
  112. package/src/types/webhooks.ts +7 -0
  113. package/types/index.d.ts +1 -0
  114. package/types/index.d.ts.map +1 -1
  115. package/types/webhooks.d.ts +4 -0
  116. package/types/webhooks.d.ts.map +1 -0
  117. package/types/webhooks.js +6 -0
  118. package/types/webhooks.js.map +1 -0
  119. package/docs/sdks/articles/README.md +0 -724
  120. package/funcs/articlesCreate.d.ts +0 -16
  121. package/funcs/articlesCreate.d.ts.map +0 -1
  122. package/funcs/articlesCreate.js +0 -99
  123. package/funcs/articlesCreate.js.map +0 -1
  124. package/funcs/articlesDelete.d.ts +0 -16
  125. package/funcs/articlesDelete.d.ts.map +0 -1
  126. package/funcs/articlesDelete.js +0 -105
  127. package/funcs/articlesDelete.js.map +0 -1
  128. package/funcs/articlesExport.d.ts +0 -16
  129. package/funcs/articlesExport.d.ts.map +0 -1
  130. package/funcs/articlesExport.js +0 -103
  131. package/funcs/articlesExport.js.map +0 -1
  132. package/funcs/articlesGet.d.ts +0 -17
  133. package/funcs/articlesGet.d.ts.map +0 -1
  134. package/funcs/articlesGet.js +0 -105
  135. package/funcs/articlesGet.js.map +0 -1
  136. package/funcs/articlesList.d.ts +0 -19
  137. package/funcs/articlesList.d.ts.map +0 -1
  138. package/funcs/articlesList.js +0 -138
  139. package/funcs/articlesList.js.map +0 -1
  140. package/funcs/articlesPreview.d.ts +0 -16
  141. package/funcs/articlesPreview.d.ts.map +0 -1
  142. package/funcs/articlesPreview.js +0 -106
  143. package/funcs/articlesPreview.js.map +0 -1
  144. package/funcs/articlesReceivers.d.ts +0 -17
  145. package/funcs/articlesReceivers.d.ts.map +0 -1
  146. package/funcs/articlesReceivers.js +0 -105
  147. package/funcs/articlesReceivers.js.map +0 -1
  148. package/funcs/articlesSend.d.ts +0 -16
  149. package/funcs/articlesSend.d.ts.map +0 -1
  150. package/funcs/articlesSend.js +0 -105
  151. package/funcs/articlesSend.js.map +0 -1
  152. package/funcs/articlesUpdate.d.ts +0 -17
  153. package/funcs/articlesUpdate.d.ts.map +0 -1
  154. package/funcs/articlesUpdate.js +0 -106
  155. package/funcs/articlesUpdate.js.map +0 -1
  156. package/models/components/article.d.ts +0 -68
  157. package/models/components/article.d.ts.map +0 -1
  158. package/models/components/article.js +0 -129
  159. package/models/components/article.js.map +0 -1
  160. package/models/components/articlebyline.d.ts +0 -28
  161. package/models/components/articlebyline.d.ts.map +0 -1
  162. package/models/components/articlebyline.js +0 -50
  163. package/models/components/articlebyline.js.map +0 -1
  164. package/models/components/articlecreate.d.ts +0 -93
  165. package/models/components/articlecreate.d.ts.map +0 -1
  166. package/models/components/articlecreate.js +0 -112
  167. package/models/components/articlecreate.js.map +0 -1
  168. package/models/components/articlepreview.d.ts +0 -32
  169. package/models/components/articlepreview.d.ts.map +0 -1
  170. package/models/components/articlepreview.js +0 -59
  171. package/models/components/articlepreview.js.map +0 -1
  172. package/models/components/articlereceivers.d.ts +0 -33
  173. package/models/components/articlereceivers.d.ts.map +0 -1
  174. package/models/components/articlereceivers.js +0 -76
  175. package/models/components/articlereceivers.js.map +0 -1
  176. package/models/components/articleupdate.d.ts +0 -85
  177. package/models/components/articleupdate.d.ts.map +0 -1
  178. package/models/components/articleupdate.js +0 -108
  179. package/models/components/articleupdate.js.map +0 -1
  180. package/models/components/articlevisibility.d.ts +0 -31
  181. package/models/components/articlevisibility.d.ts.map +0 -1
  182. package/models/components/articlevisibility.js +0 -51
  183. package/models/components/articlevisibility.js.map +0 -1
  184. package/models/components/benefitarticles.d.ts +0 -100
  185. package/models/components/benefitarticles.d.ts.map +0 -1
  186. package/models/components/benefitarticles.js +0 -107
  187. package/models/components/benefitarticles.js.map +0 -1
  188. package/models/components/benefitarticlesproperties.d.ts +0 -35
  189. package/models/components/benefitarticlesproperties.d.ts.map +0 -1
  190. package/models/components/benefitarticlesproperties.js +0 -68
  191. package/models/components/benefitarticlesproperties.js.map +0 -1
  192. package/models/components/benefitarticlessubscriber.d.ts +0 -99
  193. package/models/components/benefitarticlessubscriber.d.ts.map +0 -1
  194. package/models/components/benefitarticlessubscriber.js +0 -113
  195. package/models/components/benefitarticlessubscriber.js.map +0 -1
  196. package/models/components/benefitarticlessubscriberproperties.d.ts +0 -35
  197. package/models/components/benefitarticlessubscriberproperties.d.ts.map +0 -1
  198. package/models/components/benefitarticlessubscriberproperties.js +0 -68
  199. package/models/components/benefitarticlessubscriberproperties.js.map +0 -1
  200. package/models/components/benefitarticlesupdate.d.ts +0 -57
  201. package/models/components/benefitarticlesupdate.d.ts.map +0 -1
  202. package/models/components/benefitarticlesupdate.js +0 -79
  203. package/models/components/benefitarticlesupdate.js.map +0 -1
  204. package/models/components/benefitgrantarticlesproperties.d.ts +0 -25
  205. package/models/components/benefitgrantarticlesproperties.d.ts.map +0 -1
  206. package/models/components/benefitgrantarticlesproperties.js +0 -55
  207. package/models/components/benefitgrantarticlesproperties.js.map +0 -1
  208. package/models/components/bylineprofile.d.ts +0 -31
  209. package/models/components/bylineprofile.d.ts.map +0 -1
  210. package/models/components/bylineprofile.js +0 -70
  211. package/models/components/bylineprofile.js.map +0 -1
  212. package/models/components/listresourcearticle.d.ts +0 -33
  213. package/models/components/listresourcearticle.d.ts.map +0 -1
  214. package/models/components/listresourcearticle.js +0 -63
  215. package/models/components/listresourcearticle.js.map +0 -1
  216. package/models/operations/articlesdelete.d.ts +0 -29
  217. package/models/operations/articlesdelete.d.ts.map +0 -1
  218. package/models/operations/articlesdelete.js +0 -59
  219. package/models/operations/articlesdelete.js.map +0 -1
  220. package/models/operations/articlesexport.d.ts +0 -29
  221. package/models/operations/articlesexport.d.ts.map +0 -1
  222. package/models/operations/articlesexport.js +0 -68
  223. package/models/operations/articlesexport.js.map +0 -1
  224. package/models/operations/articlesget.d.ts +0 -29
  225. package/models/operations/articlesget.d.ts.map +0 -1
  226. package/models/operations/articlesget.js +0 -59
  227. package/models/operations/articlesget.js.map +0 -1
  228. package/models/operations/articleslist.d.ts +0 -141
  229. package/models/operations/articleslist.d.ts.map +0 -1
  230. package/models/operations/articleslist.js +0 -184
  231. package/models/operations/articleslist.js.map +0 -1
  232. package/models/operations/articlespreview.d.ts +0 -32
  233. package/models/operations/articlespreview.d.ts.map +0 -1
  234. package/models/operations/articlespreview.js +0 -71
  235. package/models/operations/articlespreview.js.map +0 -1
  236. package/models/operations/articlesreceivers.d.ts +0 -29
  237. package/models/operations/articlesreceivers.d.ts.map +0 -1
  238. package/models/operations/articlesreceivers.js +0 -59
  239. package/models/operations/articlesreceivers.js.map +0 -1
  240. package/models/operations/articlessend.d.ts +0 -29
  241. package/models/operations/articlessend.d.ts.map +0 -1
  242. package/models/operations/articlessend.js +0 -59
  243. package/models/operations/articlessend.js.map +0 -1
  244. package/models/operations/articlesupdate.d.ts +0 -32
  245. package/models/operations/articlesupdate.d.ts.map +0 -1
  246. package/models/operations/articlesupdate.js +0 -71
  247. package/models/operations/articlesupdate.js.map +0 -1
  248. package/sdk/articles.d.ts +0 -72
  249. package/sdk/articles.d.ts.map +0 -1
  250. package/sdk/articles.js +0 -103
  251. package/sdk/articles.js.map +0 -1
  252. package/src/funcs/articlesCreate.ts +0 -131
  253. package/src/funcs/articlesDelete.ts +0 -144
  254. package/src/funcs/articlesExport.ts +0 -136
  255. package/src/funcs/articlesGet.ts +0 -141
  256. package/src/funcs/articlesList.ts +0 -205
  257. package/src/funcs/articlesPreview.ts +0 -145
  258. package/src/funcs/articlesReceivers.ts +0 -138
  259. package/src/funcs/articlesSend.ts +0 -144
  260. package/src/funcs/articlesUpdate.ts +0 -145
  261. package/src/models/components/article.ts +0 -187
  262. package/src/models/components/articlebyline.ts +0 -33
  263. package/src/models/components/articlecreate.ts +0 -191
  264. package/src/models/components/articlepreview.ts +0 -65
  265. package/src/models/components/articlereceivers.ts +0 -87
  266. package/src/models/components/articleupdate.ts +0 -179
  267. package/src/models/components/articlevisibility.ts +0 -34
  268. package/src/models/components/benefitarticles.ts +0 -175
  269. package/src/models/components/benefitarticlesproperties.ts +0 -81
  270. package/src/models/components/benefitarticlessubscriber.ts +0 -189
  271. package/src/models/components/benefitarticlessubscriberproperties.ts +0 -86
  272. package/src/models/components/benefitarticlesupdate.ts +0 -102
  273. package/src/models/components/benefitgrantarticlesproperties.ts +0 -60
  274. package/src/models/components/bylineprofile.ts +0 -75
  275. package/src/models/components/listresourcearticle.ts +0 -82
  276. package/src/models/operations/articlesdelete.ts +0 -66
  277. package/src/models/operations/articlesexport.ts +0 -75
  278. package/src/models/operations/articlesget.ts +0 -66
  279. package/src/models/operations/articleslist.ts +0 -342
  280. package/src/models/operations/articlespreview.ts +0 -80
  281. package/src/models/operations/articlesreceivers.ts +0 -66
  282. package/src/models/operations/articlessend.ts +0 -66
  283. package/src/models/operations/articlesupdate.ts +0 -80
  284. package/src/sdk/articles.ts +0 -173
@@ -1,32 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type ArticlePreview = {
5
- /**
6
- * Email address to send the preview to. The user must be registered on Polar.
7
- */
8
- email: string;
9
- };
10
- /** @internal */
11
- export declare const ArticlePreview$inboundSchema: z.ZodType<ArticlePreview, z.ZodTypeDef, unknown>;
12
- /** @internal */
13
- export type ArticlePreview$Outbound = {
14
- email: string;
15
- };
16
- /** @internal */
17
- export declare const ArticlePreview$outboundSchema: z.ZodType<ArticlePreview$Outbound, z.ZodTypeDef, ArticlePreview>;
18
- /**
19
- * @internal
20
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
- */
22
- export declare namespace ArticlePreview$ {
23
- /** @deprecated use `ArticlePreview$inboundSchema` instead. */
24
- const inboundSchema: z.ZodType<ArticlePreview, z.ZodTypeDef, unknown>;
25
- /** @deprecated use `ArticlePreview$outboundSchema` instead. */
26
- const outboundSchema: z.ZodType<ArticlePreview$Outbound, z.ZodTypeDef, ArticlePreview>;
27
- /** @deprecated use `ArticlePreview$Outbound` instead. */
28
- type Outbound = ArticlePreview$Outbound;
29
- }
30
- export declare function articlePreviewToJSON(articlePreview: ArticlePreview): string;
31
- export declare function articlePreviewFromJSON(jsonString: string): SafeParseResult<ArticlePreview, SDKValidationError>;
32
- //# sourceMappingURL=articlepreview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articlepreview.d.ts","sourceRoot":"","sources":["../../src/models/components/articlepreview.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAGd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ArticlePreview$ = exports.ArticlePreview$outboundSchema = exports.ArticlePreview$inboundSchema = void 0;
30
- exports.articlePreviewToJSON = articlePreviewToJSON;
31
- exports.articlePreviewFromJSON = articlePreviewFromJSON;
32
- const z = __importStar(require("zod"));
33
- const schemas_js_1 = require("../../lib/schemas.js");
34
- /** @internal */
35
- exports.ArticlePreview$inboundSchema = z.object({
36
- email: z.string(),
37
- });
38
- /** @internal */
39
- exports.ArticlePreview$outboundSchema = z.object({
40
- email: z.string(),
41
- });
42
- /**
43
- * @internal
44
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
- */
46
- var ArticlePreview$;
47
- (function (ArticlePreview$) {
48
- /** @deprecated use `ArticlePreview$inboundSchema` instead. */
49
- ArticlePreview$.inboundSchema = exports.ArticlePreview$inboundSchema;
50
- /** @deprecated use `ArticlePreview$outboundSchema` instead. */
51
- ArticlePreview$.outboundSchema = exports.ArticlePreview$outboundSchema;
52
- })(ArticlePreview$ || (exports.ArticlePreview$ = ArticlePreview$ = {}));
53
- function articlePreviewToJSON(articlePreview) {
54
- return JSON.stringify(exports.ArticlePreview$outboundSchema.parse(articlePreview));
55
- }
56
- function articlePreviewFromJSON(jsonString) {
57
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ArticlePreview$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArticlePreview' from JSON`);
58
- }
59
- //# sourceMappingURL=articlepreview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articlepreview.js","sourceRoot":"","sources":["../../src/models/components/articlepreview.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,oDAEC;AAED,wDAQC;AA5DD,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -1,33 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type ArticleReceivers = {
5
- freeSubscribers: number;
6
- premiumSubscribers: number;
7
- organizationMembers: number;
8
- };
9
- /** @internal */
10
- export declare const ArticleReceivers$inboundSchema: z.ZodType<ArticleReceivers, z.ZodTypeDef, unknown>;
11
- /** @internal */
12
- export type ArticleReceivers$Outbound = {
13
- free_subscribers: number;
14
- premium_subscribers: number;
15
- organization_members: number;
16
- };
17
- /** @internal */
18
- export declare const ArticleReceivers$outboundSchema: z.ZodType<ArticleReceivers$Outbound, z.ZodTypeDef, ArticleReceivers>;
19
- /**
20
- * @internal
21
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
- */
23
- export declare namespace ArticleReceivers$ {
24
- /** @deprecated use `ArticleReceivers$inboundSchema` instead. */
25
- const inboundSchema: z.ZodType<ArticleReceivers, z.ZodTypeDef, unknown>;
26
- /** @deprecated use `ArticleReceivers$outboundSchema` instead. */
27
- const outboundSchema: z.ZodType<ArticleReceivers$Outbound, z.ZodTypeDef, ArticleReceivers>;
28
- /** @deprecated use `ArticleReceivers$Outbound` instead. */
29
- type Outbound = ArticleReceivers$Outbound;
30
- }
31
- export declare function articleReceiversToJSON(articleReceivers: ArticleReceivers): string;
32
- export declare function articleReceiversFromJSON(jsonString: string): SafeParseResult<ArticleReceivers, SDKValidationError>;
33
- //# sourceMappingURL=articlereceivers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articlereceivers.d.ts","sourceRoot":"","sources":["../../src/models/components/articlereceivers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAWhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -1,76 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ArticleReceivers$ = exports.ArticleReceivers$outboundSchema = exports.ArticleReceivers$inboundSchema = void 0;
30
- exports.articleReceiversToJSON = articleReceiversToJSON;
31
- exports.articleReceiversFromJSON = articleReceiversFromJSON;
32
- const z = __importStar(require("zod"));
33
- const primitives_js_1 = require("../../lib/primitives.js");
34
- const schemas_js_1 = require("../../lib/schemas.js");
35
- /** @internal */
36
- exports.ArticleReceivers$inboundSchema = z.object({
37
- free_subscribers: z.number().int(),
38
- premium_subscribers: z.number().int(),
39
- organization_members: z.number().int(),
40
- }).transform((v) => {
41
- return (0, primitives_js_1.remap)(v, {
42
- "free_subscribers": "freeSubscribers",
43
- "premium_subscribers": "premiumSubscribers",
44
- "organization_members": "organizationMembers",
45
- });
46
- });
47
- /** @internal */
48
- exports.ArticleReceivers$outboundSchema = z.object({
49
- freeSubscribers: z.number().int(),
50
- premiumSubscribers: z.number().int(),
51
- organizationMembers: z.number().int(),
52
- }).transform((v) => {
53
- return (0, primitives_js_1.remap)(v, {
54
- freeSubscribers: "free_subscribers",
55
- premiumSubscribers: "premium_subscribers",
56
- organizationMembers: "organization_members",
57
- });
58
- });
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- var ArticleReceivers$;
64
- (function (ArticleReceivers$) {
65
- /** @deprecated use `ArticleReceivers$inboundSchema` instead. */
66
- ArticleReceivers$.inboundSchema = exports.ArticleReceivers$inboundSchema;
67
- /** @deprecated use `ArticleReceivers$outboundSchema` instead. */
68
- ArticleReceivers$.outboundSchema = exports.ArticleReceivers$outboundSchema;
69
- })(ArticleReceivers$ || (exports.ArticleReceivers$ = ArticleReceivers$ = {}));
70
- function articleReceiversToJSON(articleReceivers) {
71
- return JSON.stringify(exports.ArticleReceivers$outboundSchema.parse(articleReceivers));
72
- }
73
- function articleReceiversFromJSON(jsonString) {
74
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ArticleReceivers$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArticleReceivers' from JSON`);
75
- }
76
- //# sourceMappingURL=articlereceivers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articlereceivers.js","sourceRoot":"","sources":["../../src/models/components/articlereceivers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,wDAMC;AAED,4DAQC;AAlFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAUjD,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,iBAAiB;QACrC,qBAAqB,EAAE,oBAAoB;QAC3C,sBAAsB,EAAE,qBAAqB;KAC9C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACtC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,kBAAkB;QACnC,kBAAkB,EAAE,qBAAqB;QACzC,mBAAmB,EAAE,sBAAsB;KAC5C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,iCAAjB,iBAAiB,QAOjC;AAED,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
@@ -1,85 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { ArticleByline } from "./articlebyline.js";
5
- import { ArticleVisibility } from "./articlevisibility.js";
6
- export type ArticleUpdate = {
7
- title?: string | null | undefined;
8
- /**
9
- * Body in string format. body and body_base64 are mutually exclusive.
10
- */
11
- body?: string | null | undefined;
12
- /**
13
- * Body in base64-encoded format. Can be helpful to bypass Web Application Firewalls (WAF). body and body_base64 are mutually exclusive.
14
- */
15
- bodyBase64?: string | null | undefined;
16
- slug?: string | null | undefined;
17
- /**
18
- * If the user or organization should be credited in the byline.
19
- */
20
- byline?: ArticleByline | null | undefined;
21
- visibility?: ArticleVisibility | null | undefined;
22
- /**
23
- * Set to true to only make this article available for subscribers to a paid subscription tier in the organization.
24
- */
25
- paidSubscribersOnly?: boolean | null | undefined;
26
- /**
27
- * If specified, time at which the article should no longer be restricted to paid subscribers. Only relevant if `paid_subscribers_only` is true.
28
- */
29
- paidSubscribersOnlyEndsAt?: Date | null | undefined;
30
- /**
31
- * Time of publishing. If this date is in the future, the post will be scheduled to publish at this time.
32
- */
33
- publishedAt?: Date | null | undefined;
34
- /**
35
- * Set to true to deliver this article via email and/or notifications to subscribers.
36
- */
37
- notifySubscribers?: boolean | null | undefined;
38
- /**
39
- * If the article should be pinned
40
- */
41
- isPinned?: boolean | null | undefined;
42
- /**
43
- * Custom og:image URL value
44
- */
45
- ogImageUrl?: string | null | undefined;
46
- /**
47
- * Custom og:description value
48
- */
49
- ogDescription?: string | null | undefined;
50
- };
51
- /** @internal */
52
- export declare const ArticleUpdate$inboundSchema: z.ZodType<ArticleUpdate, z.ZodTypeDef, unknown>;
53
- /** @internal */
54
- export type ArticleUpdate$Outbound = {
55
- title?: string | null | undefined;
56
- body?: string | null | undefined;
57
- body_base64?: string | null | undefined;
58
- slug?: string | null | undefined;
59
- byline?: string | null | undefined;
60
- visibility?: string | null | undefined;
61
- paid_subscribers_only?: boolean | null | undefined;
62
- paid_subscribers_only_ends_at?: string | null | undefined;
63
- published_at?: string | null | undefined;
64
- notify_subscribers?: boolean | null | undefined;
65
- is_pinned?: boolean | null | undefined;
66
- og_image_url?: string | null | undefined;
67
- og_description?: string | null | undefined;
68
- };
69
- /** @internal */
70
- export declare const ArticleUpdate$outboundSchema: z.ZodType<ArticleUpdate$Outbound, z.ZodTypeDef, ArticleUpdate>;
71
- /**
72
- * @internal
73
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
- */
75
- export declare namespace ArticleUpdate$ {
76
- /** @deprecated use `ArticleUpdate$inboundSchema` instead. */
77
- const inboundSchema: z.ZodType<ArticleUpdate, z.ZodTypeDef, unknown>;
78
- /** @deprecated use `ArticleUpdate$outboundSchema` instead. */
79
- const outboundSchema: z.ZodType<ArticleUpdate$Outbound, z.ZodTypeDef, ArticleUpdate>;
80
- /** @deprecated use `ArticleUpdate$Outbound` instead. */
81
- type Outbound = ArticleUpdate$Outbound;
82
- }
83
- export declare function articleUpdateToJSON(articleUpdate: ArticleUpdate): string;
84
- export declare function articleUpdateFromJSON(jsonString: string): SafeParseResult<ArticleUpdate, SDKValidationError>;
85
- //# sourceMappingURL=articleupdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articleupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/articleupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EAGlB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,UAAU,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;IAClD;;OAEG;IACH,m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C,kBAAkB,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CA4Bb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
@@ -1,108 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ArticleUpdate$ = exports.ArticleUpdate$outboundSchema = exports.ArticleUpdate$inboundSchema = void 0;
30
- exports.articleUpdateToJSON = articleUpdateToJSON;
31
- exports.articleUpdateFromJSON = articleUpdateFromJSON;
32
- const z = __importStar(require("zod"));
33
- const primitives_js_1 = require("../../lib/primitives.js");
34
- const schemas_js_1 = require("../../lib/schemas.js");
35
- const articlebyline_js_1 = require("./articlebyline.js");
36
- const articlevisibility_js_1 = require("./articlevisibility.js");
37
- /** @internal */
38
- exports.ArticleUpdate$inboundSchema = z.object({
39
- title: z.nullable(z.string()).optional(),
40
- body: z.nullable(z.string()).optional(),
41
- body_base64: z.nullable(z.string()).optional(),
42
- slug: z.nullable(z.string()).optional(),
43
- byline: z.nullable(articlebyline_js_1.ArticleByline$inboundSchema).optional(),
44
- visibility: z.nullable(articlevisibility_js_1.ArticleVisibility$inboundSchema).optional(),
45
- paid_subscribers_only: z.nullable(z.boolean()).optional(),
46
- paid_subscribers_only_ends_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
47
- published_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
48
- notify_subscribers: z.nullable(z.boolean()).optional(),
49
- is_pinned: z.nullable(z.boolean()).optional(),
50
- og_image_url: z.nullable(z.string()).optional(),
51
- og_description: z.nullable(z.string()).optional(),
52
- }).transform((v) => {
53
- return (0, primitives_js_1.remap)(v, {
54
- "body_base64": "bodyBase64",
55
- "paid_subscribers_only": "paidSubscribersOnly",
56
- "paid_subscribers_only_ends_at": "paidSubscribersOnlyEndsAt",
57
- "published_at": "publishedAt",
58
- "notify_subscribers": "notifySubscribers",
59
- "is_pinned": "isPinned",
60
- "og_image_url": "ogImageUrl",
61
- "og_description": "ogDescription",
62
- });
63
- });
64
- /** @internal */
65
- exports.ArticleUpdate$outboundSchema = z.object({
66
- title: z.nullable(z.string()).optional(),
67
- body: z.nullable(z.string()).optional(),
68
- bodyBase64: z.nullable(z.string()).optional(),
69
- slug: z.nullable(z.string()).optional(),
70
- byline: z.nullable(articlebyline_js_1.ArticleByline$outboundSchema).optional(),
71
- visibility: z.nullable(articlevisibility_js_1.ArticleVisibility$outboundSchema).optional(),
72
- paidSubscribersOnly: z.nullable(z.boolean()).optional(),
73
- paidSubscribersOnlyEndsAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
74
- publishedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
75
- notifySubscribers: z.nullable(z.boolean()).optional(),
76
- isPinned: z.nullable(z.boolean()).optional(),
77
- ogImageUrl: z.nullable(z.string()).optional(),
78
- ogDescription: z.nullable(z.string()).optional(),
79
- }).transform((v) => {
80
- return (0, primitives_js_1.remap)(v, {
81
- bodyBase64: "body_base64",
82
- paidSubscribersOnly: "paid_subscribers_only",
83
- paidSubscribersOnlyEndsAt: "paid_subscribers_only_ends_at",
84
- publishedAt: "published_at",
85
- notifySubscribers: "notify_subscribers",
86
- isPinned: "is_pinned",
87
- ogImageUrl: "og_image_url",
88
- ogDescription: "og_description",
89
- });
90
- });
91
- /**
92
- * @internal
93
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
- */
95
- var ArticleUpdate$;
96
- (function (ArticleUpdate$) {
97
- /** @deprecated use `ArticleUpdate$inboundSchema` instead. */
98
- ArticleUpdate$.inboundSchema = exports.ArticleUpdate$inboundSchema;
99
- /** @deprecated use `ArticleUpdate$outboundSchema` instead. */
100
- ArticleUpdate$.outboundSchema = exports.ArticleUpdate$outboundSchema;
101
- })(ArticleUpdate$ || (exports.ArticleUpdate$ = ArticleUpdate$ = {}));
102
- function articleUpdateToJSON(articleUpdate) {
103
- return JSON.stringify(exports.ArticleUpdate$outboundSchema.parse(articleUpdate));
104
- }
105
- function articleUpdateFromJSON(jsonString) {
106
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ArticleUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ArticleUpdate' from JSON`);
107
- }
108
- //# sourceMappingURL=articleupdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articleupdate.js","sourceRoot":"","sources":["../../src/models/components/articleupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoKH,kDAEC;AAED,sDAQC;AA9KD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,yDAI4B;AAC5B,iEAIgC;AAgDhC,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,8CAA2B,CAAC,CAAC,QAAQ,EAAE;IAC1D,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,sDAA+B,CAAC,CAAC,QAAQ,EAAE;IAClE,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzD,6BAA6B,EAAE,CAAC,CAAC,QAAQ,CACvC,CAAC,C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QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,mBAAmB,EAAE,uBAAuB;QAC5C,yBAAyB,EAAE,+BAA+B;QAC1D,WAAW,EAAE,cAAc;QAC3B,iBAAiB,EAAE,oBAAoB;QACvC,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,cAAc;QAC1B,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B;AAED,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- export declare const ArticleVisibility: {
4
- readonly Public: "public";
5
- readonly Hidden: "hidden";
6
- readonly Private: "private";
7
- };
8
- export type ArticleVisibility = ClosedEnum<typeof ArticleVisibility>;
9
- /** @internal */
10
- export declare const ArticleVisibility$inboundSchema: z.ZodNativeEnum<typeof ArticleVisibility>;
11
- /** @internal */
12
- export declare const ArticleVisibility$outboundSchema: z.ZodNativeEnum<typeof ArticleVisibility>;
13
- /**
14
- * @internal
15
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
16
- */
17
- export declare namespace ArticleVisibility$ {
18
- /** @deprecated use `ArticleVisibility$inboundSchema` instead. */
19
- const inboundSchema: z.ZodNativeEnum<{
20
- readonly Public: "public";
21
- readonly Hidden: "hidden";
22
- readonly Private: "private";
23
- }>;
24
- /** @deprecated use `ArticleVisibility$outboundSchema` instead. */
25
- const outboundSchema: z.ZodNativeEnum<{
26
- readonly Public: "public";
27
- readonly Hidden: "hidden";
28
- readonly Private: "private";
29
- }>;
30
- }
31
- //# sourceMappingURL=articlevisibility.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articlevisibility.d.ts","sourceRoot":"","sources":["../../src/models/components/articlevisibility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,iBAAiB,CACS,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,iBAAiB,CACS,CAAC;AAEpC;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa;;;;MAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc;;;;MAAmC,CAAC;CAChE"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ArticleVisibility$ = exports.ArticleVisibility$outboundSchema = exports.ArticleVisibility$inboundSchema = exports.ArticleVisibility = void 0;
30
- const z = __importStar(require("zod"));
31
- exports.ArticleVisibility = {
32
- Public: "public",
33
- Hidden: "hidden",
34
- Private: "private",
35
- };
36
- /** @internal */
37
- exports.ArticleVisibility$inboundSchema = z.nativeEnum(exports.ArticleVisibility);
38
- /** @internal */
39
- exports.ArticleVisibility$outboundSchema = exports.ArticleVisibility$inboundSchema;
40
- /**
41
- * @internal
42
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
- */
44
- var ArticleVisibility$;
45
- (function (ArticleVisibility$) {
46
- /** @deprecated use `ArticleVisibility$inboundSchema` instead. */
47
- ArticleVisibility$.inboundSchema = exports.ArticleVisibility$inboundSchema;
48
- /** @deprecated use `ArticleVisibility$outboundSchema` instead. */
49
- ArticleVisibility$.outboundSchema = exports.ArticleVisibility$outboundSchema;
50
- })(ArticleVisibility$ || (exports.ArticleVisibility$ = ArticleVisibility$ = {}));
51
- //# sourceMappingURL=articlevisibility.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"articlevisibility.js","sourceRoot":"","sources":["../../src/models/components/articlevisibility.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AAGX,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;AAEpC,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,uCAA+B,CAAC;AAEpC;;;GAGG;AACH,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AACjE,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC"}
@@ -1,100 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- import { BenefitArticlesProperties, BenefitArticlesProperties$Outbound } from "./benefitarticlesproperties.js";
6
- export declare const BenefitArticlesType: {
7
- readonly Articles: "articles";
8
- };
9
- export type BenefitArticlesType = ClosedEnum<typeof BenefitArticlesType>;
10
- /**
11
- * A benefit of type `articles`.
12
- *
13
- * @remarks
14
- *
15
- * Use it to grant access to posts.
16
- */
17
- export type BenefitArticles = {
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 benefit.
28
- */
29
- id: string;
30
- type?: "articles" | undefined;
31
- /**
32
- * The description of the benefit.
33
- */
34
- description: string;
35
- /**
36
- * Whether the benefit is selectable when creating a product.
37
- */
38
- selectable: boolean;
39
- /**
40
- * Whether the benefit is deletable.
41
- */
42
- deletable: boolean;
43
- /**
44
- * The ID of the organization owning the benefit.
45
- */
46
- organizationId: string;
47
- /**
48
- * Properties for a benefit of type `articles`.
49
- */
50
- properties: BenefitArticlesProperties;
51
- };
52
- /** @internal */
53
- export declare const BenefitArticlesType$inboundSchema: z.ZodNativeEnum<typeof BenefitArticlesType>;
54
- /** @internal */
55
- export declare const BenefitArticlesType$outboundSchema: z.ZodNativeEnum<typeof BenefitArticlesType>;
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- export declare namespace BenefitArticlesType$ {
61
- /** @deprecated use `BenefitArticlesType$inboundSchema` instead. */
62
- const inboundSchema: z.ZodNativeEnum<{
63
- readonly Articles: "articles";
64
- }>;
65
- /** @deprecated use `BenefitArticlesType$outboundSchema` instead. */
66
- const outboundSchema: z.ZodNativeEnum<{
67
- readonly Articles: "articles";
68
- }>;
69
- }
70
- /** @internal */
71
- export declare const BenefitArticles$inboundSchema: z.ZodType<BenefitArticles, z.ZodTypeDef, unknown>;
72
- /** @internal */
73
- export type BenefitArticles$Outbound = {
74
- created_at: string;
75
- modified_at: string | null;
76
- id: string;
77
- type: "articles";
78
- description: string;
79
- selectable: boolean;
80
- deletable: boolean;
81
- organization_id: string;
82
- properties: BenefitArticlesProperties$Outbound;
83
- };
84
- /** @internal */
85
- export declare const BenefitArticles$outboundSchema: z.ZodType<BenefitArticles$Outbound, z.ZodTypeDef, BenefitArticles>;
86
- /**
87
- * @internal
88
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
- */
90
- export declare namespace BenefitArticles$ {
91
- /** @deprecated use `BenefitArticles$inboundSchema` instead. */
92
- const inboundSchema: z.ZodType<BenefitArticles, z.ZodTypeDef, unknown>;
93
- /** @deprecated use `BenefitArticles$outboundSchema` instead. */
94
- const outboundSchema: z.ZodType<BenefitArticles$Outbound, z.ZodTypeDef, BenefitArticles>;
95
- /** @deprecated use `BenefitArticles$Outbound` instead. */
96
- type Outbound = BenefitArticles$Outbound;
97
- }
98
- export declare function benefitArticlesToJSON(benefitArticles: BenefitArticles): string;
99
- export declare function benefitArticlesFromJSON(jsonString: string): SafeParseResult<BenefitArticles, SDKValidationError>;
100
- //# sourceMappingURL=benefitarticles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"benefitarticles.d.ts","sourceRoot":"","sources":["../../src/models/components/benefitarticles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,mBAAmB;;CAEtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,yBAAyB,CAAC;CAC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