@aurora-interactive/fankare-api-sdk 0.0.5 → 0.1.1

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 (384) hide show
  1. package/FUNCTIONS.md +0 -1
  2. package/README.md +64 -8
  3. package/esm/funcs/creators-discovery-get-featured-creators.d.ts +14 -0
  4. package/esm/funcs/creators-discovery-get-featured-creators.d.ts.map +1 -0
  5. package/esm/funcs/creators-discovery-get-featured-creators.js +85 -0
  6. package/esm/funcs/creators-discovery-get-featured-creators.js.map +1 -0
  7. package/esm/funcs/creators-discovery-get-trending-creators.d.ts +14 -0
  8. package/esm/funcs/creators-discovery-get-trending-creators.d.ts.map +1 -0
  9. package/esm/funcs/creators-discovery-get-trending-creators.js +85 -0
  10. package/esm/funcs/creators-discovery-get-trending-creators.js.map +1 -0
  11. package/esm/funcs/internal-asset-processing-callback.d.ts +17 -0
  12. package/esm/funcs/internal-asset-processing-callback.d.ts.map +1 -0
  13. package/esm/funcs/internal-asset-processing-callback.js +96 -0
  14. package/esm/funcs/internal-asset-processing-callback.js.map +1 -0
  15. package/esm/funcs/me-confirm-avatar-upload.d.ts +14 -0
  16. package/esm/funcs/me-confirm-avatar-upload.d.ts.map +1 -0
  17. package/esm/funcs/me-confirm-avatar-upload.js +78 -0
  18. package/esm/funcs/me-confirm-avatar-upload.js.map +1 -0
  19. package/esm/funcs/me-confirm-banner-upload.d.ts +14 -0
  20. package/esm/funcs/me-confirm-banner-upload.d.ts.map +1 -0
  21. package/esm/funcs/me-confirm-banner-upload.js +78 -0
  22. package/esm/funcs/me-confirm-banner-upload.js.map +1 -0
  23. package/esm/funcs/me-get-me.d.ts +14 -0
  24. package/esm/funcs/me-get-me.d.ts.map +1 -0
  25. package/esm/funcs/me-get-me.js +67 -0
  26. package/esm/funcs/me-get-me.js.map +1 -0
  27. package/esm/funcs/me-request-avatar-upload-url.d.ts +14 -0
  28. package/esm/funcs/me-request-avatar-upload-url.d.ts.map +1 -0
  29. package/esm/funcs/me-request-avatar-upload-url.js +78 -0
  30. package/esm/funcs/me-request-avatar-upload-url.js.map +1 -0
  31. package/esm/funcs/me-request-banner-upload-url.d.ts +14 -0
  32. package/esm/funcs/me-request-banner-upload-url.d.ts.map +1 -0
  33. package/esm/funcs/me-request-banner-upload-url.js +78 -0
  34. package/esm/funcs/me-request-banner-upload-url.js.map +1 -0
  35. package/esm/funcs/me-update-me.d.ts +14 -0
  36. package/esm/funcs/me-update-me.d.ts.map +1 -0
  37. package/esm/funcs/me-update-me.js +78 -0
  38. package/esm/funcs/me-update-me.js.map +1 -0
  39. package/esm/funcs/notifications-get-notifications.d.ts +14 -0
  40. package/esm/funcs/notifications-get-notifications.d.ts.map +1 -0
  41. package/esm/funcs/notifications-get-notifications.js +87 -0
  42. package/esm/funcs/notifications-get-notifications.js.map +1 -0
  43. package/esm/funcs/notifications-get-unread-notification-count.d.ts +14 -0
  44. package/esm/funcs/notifications-get-unread-notification-count.d.ts.map +1 -0
  45. package/esm/funcs/notifications-get-unread-notification-count.js +67 -0
  46. package/esm/funcs/notifications-get-unread-notification-count.js.map +1 -0
  47. package/esm/funcs/notifications-mark-notifications-as-read.d.ts +14 -0
  48. package/esm/funcs/notifications-mark-notifications-as-read.d.ts.map +1 -0
  49. package/esm/funcs/notifications-mark-notifications-as-read.js +78 -0
  50. package/esm/funcs/notifications-mark-notifications-as-read.js.map +1 -0
  51. package/esm/funcs/posts-create-comment.d.ts +14 -0
  52. package/esm/funcs/posts-create-comment.d.ts.map +1 -0
  53. package/esm/funcs/posts-create-comment.js +89 -0
  54. package/esm/funcs/posts-create-comment.js.map +1 -0
  55. package/esm/funcs/posts-create-post.d.ts +5 -3
  56. package/esm/funcs/posts-create-post.d.ts.map +1 -1
  57. package/esm/funcs/posts-create-post.js +5 -3
  58. package/esm/funcs/posts-create-post.js.map +1 -1
  59. package/esm/funcs/posts-delete-comment.d.ts +13 -0
  60. package/esm/funcs/posts-delete-comment.d.ts.map +1 -0
  61. package/esm/funcs/posts-delete-comment.js +91 -0
  62. package/esm/funcs/posts-delete-comment.js.map +1 -0
  63. package/esm/funcs/posts-delete-post.d.ts +13 -0
  64. package/esm/funcs/posts-delete-post.d.ts.map +1 -0
  65. package/esm/funcs/posts-delete-post.js +86 -0
  66. package/esm/funcs/posts-delete-post.js.map +1 -0
  67. package/esm/funcs/posts-get-post-comments.d.ts +14 -0
  68. package/esm/funcs/posts-get-post-comments.d.ts.map +1 -0
  69. package/esm/funcs/posts-get-post-comments.js +94 -0
  70. package/esm/funcs/posts-get-post-comments.js.map +1 -0
  71. package/esm/funcs/posts-get-post-likes.d.ts +14 -0
  72. package/esm/funcs/posts-get-post-likes.d.ts.map +1 -0
  73. package/esm/funcs/posts-get-post-likes.js +94 -0
  74. package/esm/funcs/posts-get-post-likes.js.map +1 -0
  75. package/esm/funcs/posts-get-post.d.ts +14 -0
  76. package/esm/funcs/posts-get-post.d.ts.map +1 -0
  77. package/esm/funcs/posts-get-post.js +87 -0
  78. package/esm/funcs/posts-get-post.js.map +1 -0
  79. package/esm/funcs/posts-like-post.d.ts +13 -0
  80. package/esm/funcs/posts-like-post.d.ts.map +1 -0
  81. package/esm/funcs/posts-like-post.js +86 -0
  82. package/esm/funcs/posts-like-post.js.map +1 -0
  83. package/esm/funcs/posts-unlike-post.d.ts +13 -0
  84. package/esm/funcs/posts-unlike-post.d.ts.map +1 -0
  85. package/esm/funcs/posts-unlike-post.js +86 -0
  86. package/esm/funcs/posts-unlike-post.js.map +1 -0
  87. package/esm/funcs/posts-update-post.d.ts +17 -0
  88. package/esm/funcs/posts-update-post.d.ts.map +1 -0
  89. package/esm/funcs/posts-update-post.js +92 -0
  90. package/esm/funcs/posts-update-post.js.map +1 -0
  91. package/esm/funcs/user-discovery-get-follower-count.d.ts +14 -0
  92. package/esm/funcs/user-discovery-get-follower-count.d.ts.map +1 -0
  93. package/esm/funcs/user-discovery-get-follower-count.js +67 -0
  94. package/esm/funcs/user-discovery-get-follower-count.js.map +1 -0
  95. package/esm/funcs/user-discovery-get-followers.d.ts +14 -0
  96. package/esm/funcs/user-discovery-get-followers.d.ts.map +1 -0
  97. package/esm/funcs/user-discovery-get-followers.js +87 -0
  98. package/esm/funcs/user-discovery-get-followers.js.map +1 -0
  99. package/esm/funcs/user-discovery-get-user-follower-count.d.ts +14 -0
  100. package/esm/funcs/user-discovery-get-user-follower-count.d.ts.map +1 -0
  101. package/esm/funcs/user-discovery-get-user-follower-count.js +87 -0
  102. package/esm/funcs/user-discovery-get-user-follower-count.js.map +1 -0
  103. package/esm/funcs/user-discovery-get-user-followers.d.ts +14 -0
  104. package/esm/funcs/user-discovery-get-user-followers.d.ts.map +1 -0
  105. package/esm/funcs/user-discovery-get-user-followers.js +94 -0
  106. package/esm/funcs/user-discovery-get-user-followers.js.map +1 -0
  107. package/esm/lib/config.d.ts +3 -3
  108. package/esm/lib/config.js +3 -3
  109. package/esm/models/asset-declaration.d.ts +52 -0
  110. package/esm/models/asset-declaration.d.ts.map +1 -0
  111. package/esm/models/asset-declaration.js +37 -0
  112. package/esm/models/asset-declaration.js.map +1 -0
  113. package/esm/models/asset-processing-callback-request.d.ts +39 -0
  114. package/esm/models/asset-processing-callback-request.d.ts.map +1 -0
  115. package/esm/models/asset-processing-callback-request.js +24 -0
  116. package/esm/models/asset-processing-callback-request.js.map +1 -0
  117. package/esm/models/comment.d.ts +15 -0
  118. package/esm/models/comment.d.ts.map +1 -0
  119. package/esm/models/comment.js +20 -0
  120. package/esm/models/comment.js.map +1 -0
  121. package/esm/models/create-comment-request.d.ts +15 -0
  122. package/esm/models/create-comment-request.d.ts.map +1 -0
  123. package/esm/models/create-comment-request.js +13 -0
  124. package/esm/models/create-comment-request.js.map +1 -0
  125. package/esm/models/create-post-request.d.ts +11 -22
  126. package/esm/models/create-post-request.d.ts.map +1 -1
  127. package/esm/models/create-post-request.js +3 -16
  128. package/esm/models/create-post-request.js.map +1 -1
  129. package/esm/models/create-post-response.d.ts +18 -0
  130. package/esm/models/create-post-response.d.ts.map +1 -0
  131. package/esm/models/create-post-response.js +17 -0
  132. package/esm/models/create-post-response.js.map +1 -0
  133. package/esm/models/follower-count-response.d.ts +10 -0
  134. package/esm/models/follower-count-response.d.ts.map +1 -0
  135. package/esm/models/follower-count-response.js +15 -0
  136. package/esm/models/follower-count-response.js.map +1 -0
  137. package/esm/models/index.d.ts +19 -0
  138. package/esm/models/index.d.ts.map +1 -1
  139. package/esm/models/index.js +19 -0
  140. package/esm/models/index.js.map +1 -1
  141. package/esm/models/mark-notifications-read-request.d.ts +20 -0
  142. package/esm/models/mark-notifications-read-request.d.ts.map +1 -0
  143. package/esm/models/mark-notifications-read-request.js +14 -0
  144. package/esm/models/mark-notifications-read-request.js.map +1 -0
  145. package/esm/models/media-asset.d.ts +11 -5
  146. package/esm/models/media-asset.d.ts.map +1 -1
  147. package/esm/models/media-asset.js +4 -5
  148. package/esm/models/media-asset.js.map +1 -1
  149. package/esm/models/notification.d.ts +30 -0
  150. package/esm/models/notification.d.ts.map +1 -0
  151. package/esm/models/notification.js +31 -0
  152. package/esm/models/notification.js.map +1 -0
  153. package/esm/models/operations/asset-processing-callback.d.ts +17 -0
  154. package/esm/models/operations/asset-processing-callback.d.ts.map +1 -0
  155. package/esm/models/operations/asset-processing-callback.js +16 -0
  156. package/esm/models/operations/asset-processing-callback.js.map +1 -0
  157. package/esm/models/operations/create-comment.d.ts +15 -0
  158. package/esm/models/operations/create-comment.d.ts.map +1 -0
  159. package/esm/models/operations/create-comment.js +15 -0
  160. package/esm/models/operations/create-comment.js.map +1 -0
  161. package/esm/models/operations/delete-comment.d.ts +14 -0
  162. package/esm/models/operations/delete-comment.d.ts.map +1 -0
  163. package/esm/models/operations/delete-comment.js +14 -0
  164. package/esm/models/operations/delete-comment.js.map +1 -0
  165. package/esm/models/operations/delete-post.d.ts +12 -0
  166. package/esm/models/operations/delete-post.d.ts.map +1 -0
  167. package/esm/models/operations/delete-post.js +13 -0
  168. package/esm/models/operations/delete-post.js.map +1 -0
  169. package/esm/models/operations/get-featured-creators.d.ts +12 -0
  170. package/esm/models/operations/get-featured-creators.d.ts.map +1 -0
  171. package/esm/models/operations/get-featured-creators.js +13 -0
  172. package/esm/models/operations/get-featured-creators.js.map +1 -0
  173. package/esm/models/operations/get-followers.d.ts +17 -0
  174. package/esm/models/operations/get-followers.d.ts.map +1 -0
  175. package/esm/models/operations/get-followers.js +14 -0
  176. package/esm/models/operations/get-followers.js.map +1 -0
  177. package/esm/models/operations/get-notifications.d.ts +17 -0
  178. package/esm/models/operations/get-notifications.d.ts.map +1 -0
  179. package/esm/models/operations/get-notifications.js +14 -0
  180. package/esm/models/operations/get-notifications.js.map +1 -0
  181. package/esm/models/operations/get-post-comments.d.ts +19 -0
  182. package/esm/models/operations/get-post-comments.d.ts.map +1 -0
  183. package/esm/models/operations/get-post-comments.js +15 -0
  184. package/esm/models/operations/get-post-comments.js.map +1 -0
  185. package/esm/models/operations/get-post-likes.d.ts +19 -0
  186. package/esm/models/operations/get-post-likes.d.ts.map +1 -0
  187. package/esm/models/operations/get-post-likes.js +15 -0
  188. package/esm/models/operations/get-post-likes.js.map +1 -0
  189. package/esm/models/operations/get-post.d.ts +12 -0
  190. package/esm/models/operations/get-post.d.ts.map +1 -0
  191. package/esm/models/operations/get-post.js +13 -0
  192. package/esm/models/operations/get-post.js.map +1 -0
  193. package/esm/models/operations/get-trending-creators.d.ts +12 -0
  194. package/esm/models/operations/get-trending-creators.d.ts.map +1 -0
  195. package/esm/models/operations/get-trending-creators.js +13 -0
  196. package/esm/models/operations/get-trending-creators.js.map +1 -0
  197. package/esm/models/operations/get-user-follower-count.d.ts +12 -0
  198. package/esm/models/operations/get-user-follower-count.d.ts.map +1 -0
  199. package/esm/models/operations/get-user-follower-count.js +13 -0
  200. package/esm/models/operations/get-user-follower-count.js.map +1 -0
  201. package/esm/models/operations/get-user-followers.d.ts +19 -0
  202. package/esm/models/operations/get-user-followers.d.ts.map +1 -0
  203. package/esm/models/operations/get-user-followers.js +15 -0
  204. package/esm/models/operations/get-user-followers.js.map +1 -0
  205. package/esm/models/operations/index.d.ts +16 -1
  206. package/esm/models/operations/index.d.ts.map +1 -1
  207. package/esm/models/operations/index.js +16 -1
  208. package/esm/models/operations/index.js.map +1 -1
  209. package/esm/models/operations/like-post.d.ts +12 -0
  210. package/esm/models/operations/like-post.d.ts.map +1 -0
  211. package/esm/models/operations/like-post.js +13 -0
  212. package/esm/models/operations/like-post.js.map +1 -0
  213. package/esm/models/operations/unlike-post.d.ts +12 -0
  214. package/esm/models/operations/unlike-post.d.ts.map +1 -0
  215. package/esm/models/operations/unlike-post.js +13 -0
  216. package/esm/models/operations/unlike-post.js.map +1 -0
  217. package/esm/models/operations/update-post.d.ts +15 -0
  218. package/esm/models/operations/update-post.d.ts.map +1 -0
  219. package/esm/models/operations/update-post.js +15 -0
  220. package/esm/models/operations/update-post.js.map +1 -0
  221. package/esm/models/paginated-comments-response.d.ts +15 -0
  222. package/esm/models/paginated-comments-response.d.ts.map +1 -0
  223. package/esm/models/paginated-comments-response.js +17 -0
  224. package/esm/models/paginated-comments-response.js.map +1 -0
  225. package/esm/models/paginated-followers-response.d.ts +15 -0
  226. package/esm/models/paginated-followers-response.d.ts.map +1 -0
  227. package/esm/models/paginated-followers-response.js +17 -0
  228. package/esm/models/paginated-followers-response.js.map +1 -0
  229. package/esm/models/paginated-likes-response.d.ts +15 -0
  230. package/esm/models/paginated-likes-response.d.ts.map +1 -0
  231. package/esm/models/paginated-likes-response.js +17 -0
  232. package/esm/models/paginated-likes-response.js.map +1 -0
  233. package/esm/models/paginated-notifications-response.d.ts +15 -0
  234. package/esm/models/paginated-notifications-response.d.ts.map +1 -0
  235. package/esm/models/paginated-notifications-response.js +17 -0
  236. package/esm/models/paginated-notifications-response.js.map +1 -0
  237. package/esm/models/post.d.ts +20 -1
  238. package/esm/models/post.d.ts.map +1 -1
  239. package/esm/models/post.js +13 -1
  240. package/esm/models/post.js.map +1 -1
  241. package/esm/models/profile-media-confirm-request.d.ts +15 -0
  242. package/esm/models/profile-media-confirm-request.d.ts.map +1 -0
  243. package/esm/models/profile-media-confirm-request.js +13 -0
  244. package/esm/models/profile-media-confirm-request.js.map +1 -0
  245. package/esm/models/profile-media-upload-request.d.ts +30 -0
  246. package/esm/models/profile-media-upload-request.d.ts.map +1 -0
  247. package/esm/models/profile-media-upload-request.js +23 -0
  248. package/esm/models/profile-media-upload-request.js.map +1 -0
  249. package/esm/models/profile-media-upload-response.d.ts +21 -0
  250. package/esm/models/profile-media-upload-response.d.ts.map +1 -0
  251. package/esm/models/profile-media-upload-response.js +17 -0
  252. package/esm/models/profile-media-upload-response.js.map +1 -0
  253. package/esm/models/register-request.d.ts +2 -2
  254. package/esm/models/register-request.d.ts.map +1 -1
  255. package/esm/models/register-request.js +1 -1
  256. package/esm/models/register-request.js.map +1 -1
  257. package/esm/models/unread-count-response.d.ts +10 -0
  258. package/esm/models/unread-count-response.d.ts.map +1 -0
  259. package/esm/models/unread-count-response.js +15 -0
  260. package/esm/models/unread-count-response.js.map +1 -0
  261. package/esm/models/update-post-request.d.ts +30 -0
  262. package/esm/models/update-post-request.d.ts.map +1 -0
  263. package/esm/models/update-post-request.js +22 -0
  264. package/esm/models/update-post-request.js.map +1 -0
  265. package/esm/models/update-profile-request.d.ts +17 -0
  266. package/esm/models/update-profile-request.d.ts.map +1 -0
  267. package/esm/models/update-profile-request.js +14 -0
  268. package/esm/models/update-profile-request.js.map +1 -0
  269. package/esm/models/upload-slot.d.ts +29 -0
  270. package/esm/models/upload-slot.d.ts.map +1 -0
  271. package/esm/models/upload-slot.js +20 -0
  272. package/esm/models/upload-slot.js.map +1 -0
  273. package/esm/models/user.d.ts +4 -0
  274. package/esm/models/user.d.ts.map +1 -1
  275. package/esm/models/user.js +1 -0
  276. package/esm/models/user.js.map +1 -1
  277. package/esm/sdk/creators-discovery.d.ts +13 -0
  278. package/esm/sdk/creators-discovery.d.ts.map +1 -0
  279. package/esm/sdk/creators-discovery.js +23 -0
  280. package/esm/sdk/creators-discovery.js.map +1 -0
  281. package/esm/sdk/internal.d.ts +12 -0
  282. package/esm/sdk/internal.d.ts.map +1 -0
  283. package/esm/sdk/internal.js +19 -0
  284. package/esm/sdk/internal.js.map +1 -0
  285. package/esm/sdk/me.d.ts +29 -0
  286. package/esm/sdk/me.d.ts.map +1 -0
  287. package/esm/sdk/me.js +51 -0
  288. package/esm/sdk/me.js.map +1 -0
  289. package/esm/sdk/notifications.d.ts +17 -0
  290. package/esm/sdk/notifications.d.ts.map +1 -0
  291. package/esm/sdk/notifications.js +30 -0
  292. package/esm/sdk/notifications.js.map +1 -0
  293. package/esm/sdk/posts.d.ts +44 -3
  294. package/esm/sdk/posts.d.ts.map +1 -1
  295. package/esm/sdk/posts.js +70 -1
  296. package/esm/sdk/posts.js.map +1 -1
  297. package/esm/sdk/sdk.d.ts +12 -0
  298. package/esm/sdk/sdk.d.ts.map +1 -1
  299. package/esm/sdk/sdk.js +20 -0
  300. package/esm/sdk/sdk.js.map +1 -1
  301. package/esm/sdk/user-discovery.d.ts +16 -0
  302. package/esm/sdk/user-discovery.d.ts.map +1 -1
  303. package/esm/sdk/user-discovery.js +28 -0
  304. package/esm/sdk/user-discovery.js.map +1 -1
  305. package/examples/authenticationRegisterUser.example.ts +0 -1
  306. package/jsr.json +1 -1
  307. package/package.json +1 -1
  308. package/src/funcs/creators-discovery-get-featured-creators.ts +174 -0
  309. package/src/funcs/creators-discovery-get-trending-creators.ts +174 -0
  310. package/src/funcs/internal-asset-processing-callback.ts +190 -0
  311. package/src/funcs/me-confirm-avatar-upload.ts +161 -0
  312. package/src/funcs/me-confirm-banner-upload.ts +161 -0
  313. package/src/funcs/me-get-me.ts +142 -0
  314. package/src/funcs/me-request-avatar-upload-url.ts +161 -0
  315. package/src/funcs/me-request-banner-upload-url.ts +161 -0
  316. package/src/funcs/me-update-me.ts +161 -0
  317. package/src/funcs/notifications-get-notifications.ts +179 -0
  318. package/src/funcs/notifications-get-unread-notification-count.ts +142 -0
  319. package/src/funcs/notifications-mark-notifications-as-read.ts +162 -0
  320. package/src/funcs/posts-create-comment.ts +176 -0
  321. package/src/funcs/posts-create-post.ts +9 -7
  322. package/src/funcs/posts-delete-comment.ts +178 -0
  323. package/src/funcs/posts-delete-post.ts +170 -0
  324. package/src/funcs/posts-get-post-comments.ts +185 -0
  325. package/src/funcs/posts-get-post-likes.ts +185 -0
  326. package/src/funcs/posts-get-post.ts +171 -0
  327. package/src/funcs/posts-like-post.ts +170 -0
  328. package/src/funcs/posts-unlike-post.ts +170 -0
  329. package/src/funcs/posts-update-post.ts +179 -0
  330. package/src/funcs/user-discovery-get-follower-count.ts +142 -0
  331. package/src/funcs/user-discovery-get-followers.ts +176 -0
  332. package/src/funcs/user-discovery-get-user-follower-count.ts +172 -0
  333. package/src/funcs/user-discovery-get-user-followers.ts +186 -0
  334. package/src/lib/config.ts +3 -3
  335. package/src/models/asset-declaration.ts +84 -0
  336. package/src/models/asset-processing-callback-request.ts +68 -0
  337. package/src/models/comment.ts +38 -0
  338. package/src/models/create-comment-request.ts +34 -0
  339. package/src/models/create-post-request.ts +17 -39
  340. package/src/models/create-post-response.ts +41 -0
  341. package/src/models/follower-count-response.ts +32 -0
  342. package/src/models/index.ts +19 -0
  343. package/src/models/mark-notifications-read-request.ts +42 -0
  344. package/src/models/media-asset.ts +16 -8
  345. package/src/models/notification.ts +60 -0
  346. package/src/models/operations/asset-processing-callback.ts +40 -0
  347. package/src/models/operations/create-comment.ts +35 -0
  348. package/src/models/operations/delete-comment.ts +34 -0
  349. package/src/models/operations/delete-post.ts +31 -0
  350. package/src/models/operations/get-featured-creators.ts +31 -0
  351. package/src/models/operations/get-followers.ts +37 -0
  352. package/src/models/operations/get-notifications.ts +37 -0
  353. package/src/models/operations/get-post-comments.ts +40 -0
  354. package/src/models/operations/get-post-likes.ts +40 -0
  355. package/src/models/operations/get-post.ts +27 -0
  356. package/src/models/operations/get-trending-creators.ts +31 -0
  357. package/src/models/operations/get-user-follower-count.ts +33 -0
  358. package/src/models/operations/get-user-followers.ts +40 -0
  359. package/src/models/operations/index.ts +16 -1
  360. package/src/models/operations/like-post.ts +29 -0
  361. package/src/models/operations/unlike-post.ts +31 -0
  362. package/src/models/operations/update-post.ts +35 -0
  363. package/src/models/paginated-comments-response.ts +38 -0
  364. package/src/models/paginated-followers-response.ts +38 -0
  365. package/src/models/paginated-likes-response.ts +38 -0
  366. package/src/models/paginated-notifications-response.ts +38 -0
  367. package/src/models/post.ts +27 -2
  368. package/src/models/profile-media-confirm-request.ts +34 -0
  369. package/src/models/profile-media-upload-request.ts +55 -0
  370. package/src/models/profile-media-upload-response.ts +45 -0
  371. package/src/models/register-request.ts +3 -3
  372. package/src/models/unread-count-response.ts +32 -0
  373. package/src/models/update-post-request.ts +56 -0
  374. package/src/models/update-profile-request.ts +37 -0
  375. package/src/models/upload-slot.ts +53 -0
  376. package/src/models/user.ts +5 -0
  377. package/src/sdk/creators-discovery.ts +40 -0
  378. package/src/sdk/internal.ts +32 -0
  379. package/src/sdk/me.ts +98 -0
  380. package/src/sdk/notifications.ts +55 -0
  381. package/src/sdk/posts.ts +157 -3
  382. package/src/sdk/sdk.ts +24 -0
  383. package/src/sdk/user-discovery.ts +64 -0
  384. package/src/models/operations/create-post.ts +0 -62
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: dd751a66d133
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import * as types from "../types/primitives.js";
10
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
11
+ import { UploadSlot, UploadSlot$inboundSchema } from "./upload-slot.js";
12
+
13
+ export type CreatePostResponse = {
14
+ /**
15
+ * ID of the newly created DRAFT post.
16
+ */
17
+ postId?: number | undefined;
18
+ /**
19
+ * One entry per declared asset, in the same order as the request.
20
+ */
21
+ uploadSlots?: Array<UploadSlot> | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const CreatePostResponse$inboundSchema: z.ZodMiniType<
26
+ CreatePostResponse,
27
+ unknown
28
+ > = z.object({
29
+ postId: types.optional(types.number()),
30
+ uploadSlots: types.optional(z.array(UploadSlot$inboundSchema)),
31
+ });
32
+
33
+ export function createPostResponseFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<CreatePostResponse, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => CreatePostResponse$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'CreatePostResponse' from JSON`,
40
+ );
41
+ }
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b61cb4711504
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import * as types from "../types/primitives.js";
10
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
11
+
12
+ export type FollowerCountResponse = {
13
+ count: number;
14
+ };
15
+
16
+ /** @internal */
17
+ export const FollowerCountResponse$inboundSchema: z.ZodMiniType<
18
+ FollowerCountResponse,
19
+ unknown
20
+ > = z.object({
21
+ count: types.number(),
22
+ });
23
+
24
+ export function followerCountResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<FollowerCountResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => FollowerCountResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'FollowerCountResponse' from JSON`,
31
+ );
32
+ }
@@ -3,16 +3,35 @@
3
3
  * @generated-id: f93644b0f37e
4
4
  */
5
5
 
6
+ export * from "./asset-declaration.js";
7
+ export * from "./asset-processing-callback-request.js";
6
8
  export * from "./collection.js";
9
+ export * from "./comment.js";
7
10
  export * from "./conversation.js";
11
+ export * from "./create-comment-request.js";
8
12
  export * from "./create-post-request.js";
13
+ export * from "./create-post-response.js";
14
+ export * from "./follower-count-response.js";
9
15
  export * from "./login-request.js";
16
+ export * from "./mark-notifications-read-request.js";
10
17
  export * from "./media-asset.js";
11
18
  export * from "./message.js";
19
+ export * from "./notification.js";
20
+ export * from "./paginated-comments-response.js";
21
+ export * from "./paginated-followers-response.js";
22
+ export * from "./paginated-likes-response.js";
23
+ export * from "./paginated-notifications-response.js";
12
24
  export * from "./paginated-posts-response.js";
13
25
  export * from "./post.js";
26
+ export * from "./profile-media-confirm-request.js";
27
+ export * from "./profile-media-upload-request.js";
28
+ export * from "./profile-media-upload-response.js";
14
29
  export * from "./register-request.js";
15
30
  export * from "./security.js";
16
31
  export * from "./send-message-request.js";
32
+ export * from "./unread-count-response.js";
33
+ export * from "./update-post-request.js";
34
+ export * from "./update-profile-request.js";
35
+ export * from "./upload-slot.js";
17
36
  export * from "./user-profile.js";
18
37
  export * from "./user.js";
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b985d3fe8187
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type MarkNotificationsReadRequest = {
9
+ /**
10
+ * Specific notification IDs to mark as read. If empty/omitted and markAll is true, marks all as read.
11
+ */
12
+ notificationIds?: Array<number> | undefined;
13
+ /**
14
+ * If true, marks all notifications for the user as read. If false, only marks the specified notificationIds.
15
+ */
16
+ markAll?: boolean | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export type MarkNotificationsReadRequest$Outbound = {
21
+ notificationIds?: Array<number> | undefined;
22
+ markAll: boolean;
23
+ };
24
+
25
+ /** @internal */
26
+ export const MarkNotificationsReadRequest$outboundSchema: z.ZodMiniType<
27
+ MarkNotificationsReadRequest$Outbound,
28
+ MarkNotificationsReadRequest
29
+ > = z.object({
30
+ notificationIds: z.optional(z.array(z.int())),
31
+ markAll: z._default(z.boolean(), false),
32
+ });
33
+
34
+ export function markNotificationsReadRequestToJSON(
35
+ markNotificationsReadRequest: MarkNotificationsReadRequest,
36
+ ): string {
37
+ return JSON.stringify(
38
+ MarkNotificationsReadRequest$outboundSchema.parse(
39
+ markNotificationsReadRequest,
40
+ ),
41
+ );
42
+ }
@@ -17,18 +17,24 @@ export const MediaAssetMediaType = {
17
17
  } as const;
18
18
  export type MediaAssetMediaType = OpenEnum<typeof MediaAssetMediaType>;
19
19
 
20
- export const Status = {
20
+ export const MediaAssetStatus = {
21
21
  Processing: "PROCESSING",
22
22
  Ready: "READY",
23
23
  Failed: "FAILED",
24
24
  } as const;
25
- export type Status = OpenEnum<typeof Status>;
25
+ export type MediaAssetStatus = OpenEnum<typeof MediaAssetStatus>;
26
26
 
27
27
  export type MediaAsset = {
28
28
  id?: number | undefined;
29
- mediaUrl?: string | undefined;
29
+ /**
30
+ * Fully qualified URL to the processed output file in SeaweedFS. Null while the asset is still PROCESSING.
31
+ */
32
+ mediaUrl?: string | null | undefined;
30
33
  mediaType?: MediaAssetMediaType | undefined;
31
- status?: Status | undefined;
34
+ status?: MediaAssetStatus | undefined;
35
+ /**
36
+ * Zero-based display order of the asset within the post carousel.
37
+ */
32
38
  sortOrder?: number | undefined;
33
39
  };
34
40
 
@@ -39,16 +45,18 @@ export const MediaAssetMediaType$inboundSchema: z.ZodMiniType<
39
45
  > = openEnums.inboundSchema(MediaAssetMediaType);
40
46
 
41
47
  /** @internal */
42
- export const Status$inboundSchema: z.ZodMiniType<Status, unknown> = openEnums
43
- .inboundSchema(Status);
48
+ export const MediaAssetStatus$inboundSchema: z.ZodMiniType<
49
+ MediaAssetStatus,
50
+ unknown
51
+ > = openEnums.inboundSchema(MediaAssetStatus);
44
52
 
45
53
  /** @internal */
46
54
  export const MediaAsset$inboundSchema: z.ZodMiniType<MediaAsset, unknown> = z
47
55
  .object({
48
56
  id: types.optional(types.number()),
49
- mediaUrl: types.optional(types.string()),
57
+ mediaUrl: z.optional(z.nullable(types.string())),
50
58
  mediaType: types.optional(MediaAssetMediaType$inboundSchema),
51
- status: types.optional(Status$inboundSchema),
59
+ status: types.optional(MediaAssetStatus$inboundSchema),
52
60
  sortOrder: types.optional(types.number()),
53
61
  });
54
62
 
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e9cd3c32fa84
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ import { OpenEnum } from "../types/enums.js";
10
+ import { Result as SafeParseResult } from "../types/fp.js";
11
+ import * as types from "../types/primitives.js";
12
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
13
+ import { User, User$inboundSchema } from "./user.js";
14
+
15
+ export const ActivityType = {
16
+ Like: "LIKE",
17
+ Comment: "COMMENT",
18
+ ListAddition: "LIST_ADDITION",
19
+ NewFollower: "NEW_FOLLOWER",
20
+ } as const;
21
+ export type ActivityType = OpenEnum<typeof ActivityType>;
22
+
23
+ export type Notification = {
24
+ id: number;
25
+ recipientId: number;
26
+ sender: User;
27
+ activityType: ActivityType;
28
+ /**
29
+ * The ID of the post, comment, list, or subscription associated with the activity.
30
+ */
31
+ sourceId?: number | null | undefined;
32
+ isRead: boolean;
33
+ createdAt: Date;
34
+ };
35
+
36
+ /** @internal */
37
+ export const ActivityType$inboundSchema: z.ZodMiniType<ActivityType, unknown> =
38
+ openEnums.inboundSchema(ActivityType);
39
+
40
+ /** @internal */
41
+ export const Notification$inboundSchema: z.ZodMiniType<Notification, unknown> =
42
+ z.object({
43
+ id: types.number(),
44
+ recipientId: types.number(),
45
+ sender: User$inboundSchema,
46
+ activityType: ActivityType$inboundSchema,
47
+ sourceId: z.optional(z.nullable(types.number())),
48
+ isRead: types.boolean(),
49
+ createdAt: types.date(),
50
+ });
51
+
52
+ export function notificationFromJSON(
53
+ jsonString: string,
54
+ ): SafeParseResult<Notification, SDKValidationError> {
55
+ return safeParse(
56
+ jsonString,
57
+ (x) => Notification$inboundSchema.parse(JSON.parse(x)),
58
+ `Failed to parse 'Notification' from JSON`,
59
+ );
60
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f56cb37b1a71
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+ import * as models from "../index.js";
8
+
9
+ export type AssetProcessingCallbackRequest = {
10
+ postId: number;
11
+ assetId: number;
12
+ body: models.AssetProcessingCallbackRequest;
13
+ };
14
+
15
+ /** @internal */
16
+ export type AssetProcessingCallbackRequest$Outbound = {
17
+ postId: number;
18
+ assetId: number;
19
+ body: models.AssetProcessingCallbackRequest$Outbound;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AssetProcessingCallbackRequest$outboundSchema: z.ZodMiniType<
24
+ AssetProcessingCallbackRequest$Outbound,
25
+ AssetProcessingCallbackRequest
26
+ > = z.object({
27
+ postId: z.int(),
28
+ assetId: z.int(),
29
+ body: models.AssetProcessingCallbackRequest$outboundSchema,
30
+ });
31
+
32
+ export function assetProcessingCallbackRequestToJSON(
33
+ assetProcessingCallbackRequest: AssetProcessingCallbackRequest,
34
+ ): string {
35
+ return JSON.stringify(
36
+ AssetProcessingCallbackRequest$outboundSchema.parse(
37
+ assetProcessingCallbackRequest,
38
+ ),
39
+ );
40
+ }
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: fcbe666d71bb
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+ import * as models from "../index.js";
8
+
9
+ export type CreateCommentRequest = {
10
+ postId: number;
11
+ body: models.CreateCommentRequest;
12
+ };
13
+
14
+ /** @internal */
15
+ export type CreateCommentRequest$Outbound = {
16
+ postId: number;
17
+ body: models.CreateCommentRequest$Outbound;
18
+ };
19
+
20
+ /** @internal */
21
+ export const CreateCommentRequest$outboundSchema: z.ZodMiniType<
22
+ CreateCommentRequest$Outbound,
23
+ CreateCommentRequest
24
+ > = z.object({
25
+ postId: z.int(),
26
+ body: models.CreateCommentRequest$outboundSchema,
27
+ });
28
+
29
+ export function createCommentRequestToJSON(
30
+ createCommentRequest: CreateCommentRequest,
31
+ ): string {
32
+ return JSON.stringify(
33
+ CreateCommentRequest$outboundSchema.parse(createCommentRequest),
34
+ );
35
+ }
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b335b32bc098
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type DeleteCommentRequest = {
9
+ postId: number;
10
+ commentId: number;
11
+ };
12
+
13
+ /** @internal */
14
+ export type DeleteCommentRequest$Outbound = {
15
+ postId: number;
16
+ commentId: number;
17
+ };
18
+
19
+ /** @internal */
20
+ export const DeleteCommentRequest$outboundSchema: z.ZodMiniType<
21
+ DeleteCommentRequest$Outbound,
22
+ DeleteCommentRequest
23
+ > = z.object({
24
+ postId: z.int(),
25
+ commentId: z.int(),
26
+ });
27
+
28
+ export function deleteCommentRequestToJSON(
29
+ deleteCommentRequest: DeleteCommentRequest,
30
+ ): string {
31
+ return JSON.stringify(
32
+ DeleteCommentRequest$outboundSchema.parse(deleteCommentRequest),
33
+ );
34
+ }
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 2d3c4c4d46f8
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type DeletePostRequest = {
9
+ postId: number;
10
+ };
11
+
12
+ /** @internal */
13
+ export type DeletePostRequest$Outbound = {
14
+ postId: number;
15
+ };
16
+
17
+ /** @internal */
18
+ export const DeletePostRequest$outboundSchema: z.ZodMiniType<
19
+ DeletePostRequest$Outbound,
20
+ DeletePostRequest
21
+ > = z.object({
22
+ postId: z.int(),
23
+ });
24
+
25
+ export function deletePostRequestToJSON(
26
+ deletePostRequest: DeletePostRequest,
27
+ ): string {
28
+ return JSON.stringify(
29
+ DeletePostRequest$outboundSchema.parse(deletePostRequest),
30
+ );
31
+ }
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: f8f0efa3bb43
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type GetFeaturedCreatorsRequest = {
9
+ limit?: number | undefined;
10
+ };
11
+
12
+ /** @internal */
13
+ export type GetFeaturedCreatorsRequest$Outbound = {
14
+ limit: number;
15
+ };
16
+
17
+ /** @internal */
18
+ export const GetFeaturedCreatorsRequest$outboundSchema: z.ZodMiniType<
19
+ GetFeaturedCreatorsRequest$Outbound,
20
+ GetFeaturedCreatorsRequest
21
+ > = z.object({
22
+ limit: z._default(z.int(), 10),
23
+ });
24
+
25
+ export function getFeaturedCreatorsRequestToJSON(
26
+ getFeaturedCreatorsRequest: GetFeaturedCreatorsRequest,
27
+ ): string {
28
+ return JSON.stringify(
29
+ GetFeaturedCreatorsRequest$outboundSchema.parse(getFeaturedCreatorsRequest),
30
+ );
31
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: db9352f64d27
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type GetFollowersRequest = {
9
+ limit?: number | undefined;
10
+ /**
11
+ * Opaque cursor pointing to the last subscription timestamp/ID for pagination
12
+ */
13
+ cursor?: string | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export type GetFollowersRequest$Outbound = {
18
+ limit: number;
19
+ cursor?: string | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const GetFollowersRequest$outboundSchema: z.ZodMiniType<
24
+ GetFollowersRequest$Outbound,
25
+ GetFollowersRequest
26
+ > = z.object({
27
+ limit: z._default(z.int(), 20),
28
+ cursor: z.optional(z.string()),
29
+ });
30
+
31
+ export function getFollowersRequestToJSON(
32
+ getFollowersRequest: GetFollowersRequest,
33
+ ): string {
34
+ return JSON.stringify(
35
+ GetFollowersRequest$outboundSchema.parse(getFollowersRequest),
36
+ );
37
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3e8e19ae40a5
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type GetNotificationsRequest = {
9
+ limit?: number | undefined;
10
+ /**
11
+ * Opaque cursor pointing to the last notification ID/timestamp for pagination
12
+ */
13
+ cursor?: string | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export type GetNotificationsRequest$Outbound = {
18
+ limit: number;
19
+ cursor?: string | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const GetNotificationsRequest$outboundSchema: z.ZodMiniType<
24
+ GetNotificationsRequest$Outbound,
25
+ GetNotificationsRequest
26
+ > = z.object({
27
+ limit: z._default(z.int(), 20),
28
+ cursor: z.optional(z.string()),
29
+ });
30
+
31
+ export function getNotificationsRequestToJSON(
32
+ getNotificationsRequest: GetNotificationsRequest,
33
+ ): string {
34
+ return JSON.stringify(
35
+ GetNotificationsRequest$outboundSchema.parse(getNotificationsRequest),
36
+ );
37
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0e3fef778bb2
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type GetPostCommentsRequest = {
9
+ postId: number;
10
+ limit?: number | undefined;
11
+ /**
12
+ * Opaque cursor pointing to the last comment ID/timestamp for pagination
13
+ */
14
+ cursor?: string | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export type GetPostCommentsRequest$Outbound = {
19
+ postId: number;
20
+ limit: number;
21
+ cursor?: string | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const GetPostCommentsRequest$outboundSchema: z.ZodMiniType<
26
+ GetPostCommentsRequest$Outbound,
27
+ GetPostCommentsRequest
28
+ > = z.object({
29
+ postId: z.int(),
30
+ limit: z._default(z.int(), 20),
31
+ cursor: z.optional(z.string()),
32
+ });
33
+
34
+ export function getPostCommentsRequestToJSON(
35
+ getPostCommentsRequest: GetPostCommentsRequest,
36
+ ): string {
37
+ return JSON.stringify(
38
+ GetPostCommentsRequest$outboundSchema.parse(getPostCommentsRequest),
39
+ );
40
+ }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e1e75b984469
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type GetPostLikesRequest = {
9
+ postId: number;
10
+ limit?: number | undefined;
11
+ /**
12
+ * Opaque cursor pointing to the last like entry for pagination
13
+ */
14
+ cursor?: string | undefined;
15
+ };
16
+
17
+ /** @internal */
18
+ export type GetPostLikesRequest$Outbound = {
19
+ postId: number;
20
+ limit: number;
21
+ cursor?: string | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const GetPostLikesRequest$outboundSchema: z.ZodMiniType<
26
+ GetPostLikesRequest$Outbound,
27
+ GetPostLikesRequest
28
+ > = z.object({
29
+ postId: z.int(),
30
+ limit: z._default(z.int(), 20),
31
+ cursor: z.optional(z.string()),
32
+ });
33
+
34
+ export function getPostLikesRequestToJSON(
35
+ getPostLikesRequest: GetPostLikesRequest,
36
+ ): string {
37
+ return JSON.stringify(
38
+ GetPostLikesRequest$outboundSchema.parse(getPostLikesRequest),
39
+ );
40
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e9168f4e2a0d
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type GetPostRequest = {
9
+ postId: number;
10
+ };
11
+
12
+ /** @internal */
13
+ export type GetPostRequest$Outbound = {
14
+ postId: number;
15
+ };
16
+
17
+ /** @internal */
18
+ export const GetPostRequest$outboundSchema: z.ZodMiniType<
19
+ GetPostRequest$Outbound,
20
+ GetPostRequest
21
+ > = z.object({
22
+ postId: z.int(),
23
+ });
24
+
25
+ export function getPostRequestToJSON(getPostRequest: GetPostRequest): string {
26
+ return JSON.stringify(GetPostRequest$outboundSchema.parse(getPostRequest));
27
+ }
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e06a8733f9f8
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ export type GetTrendingCreatorsRequest = {
9
+ limit?: number | undefined;
10
+ };
11
+
12
+ /** @internal */
13
+ export type GetTrendingCreatorsRequest$Outbound = {
14
+ limit: number;
15
+ };
16
+
17
+ /** @internal */
18
+ export const GetTrendingCreatorsRequest$outboundSchema: z.ZodMiniType<
19
+ GetTrendingCreatorsRequest$Outbound,
20
+ GetTrendingCreatorsRequest
21
+ > = z.object({
22
+ limit: z._default(z.int(), 10),
23
+ });
24
+
25
+ export function getTrendingCreatorsRequestToJSON(
26
+ getTrendingCreatorsRequest: GetTrendingCreatorsRequest,
27
+ ): string {
28
+ return JSON.stringify(
29
+ GetTrendingCreatorsRequest$outboundSchema.parse(getTrendingCreatorsRequest),
30
+ );
31
+ }