@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,94 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 4085e9ab1118
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as models from "../models/index.js";
14
+ import * as operations from "../models/operations/index.js";
15
+ import { APIPromise } from "../types/async.js";
16
+ /**
17
+ * Fetch a specific user's paginated list of followers
18
+ */
19
+ export function userDiscoveryGetUserFollowers(client, userId, limit, cursor, options) {
20
+ return new APIPromise($do(client, userId, limit, cursor, options));
21
+ }
22
+ async function $do(client, userId, limit, cursor, options) {
23
+ const input = {
24
+ userId: userId,
25
+ limit: limit,
26
+ cursor: cursor,
27
+ };
28
+ const parsed = safeParse(input, (value) => z.parse(operations.GetUserFollowersRequest$outboundSchema, value), "Input validation failed");
29
+ if (!parsed.ok) {
30
+ return [parsed, { status: "invalid" }];
31
+ }
32
+ const payload = parsed.value;
33
+ const body = null;
34
+ const pathParams = {
35
+ userId: encodeSimple("userId", payload.userId, {
36
+ explode: false,
37
+ charEncoding: "percent",
38
+ }),
39
+ };
40
+ const path = pathToFunc("/users/{userId}/followers")(pathParams);
41
+ const query = encodeFormQuery({
42
+ "cursor": payload.cursor,
43
+ "limit": payload.limit,
44
+ });
45
+ const headers = new Headers(compactMap({
46
+ Accept: "application/json",
47
+ }));
48
+ const secConfig = await extractSecurity(client._options.bearerAuth);
49
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
50
+ const requestSecurity = resolveGlobalSecurity(securityInput);
51
+ const context = {
52
+ options: client._options,
53
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
54
+ operationID: "getUserFollowers",
55
+ oAuth2Scopes: null,
56
+ resolvedSecurity: requestSecurity,
57
+ securitySource: client._options.bearerAuth,
58
+ retryConfig: options?.retries
59
+ || client._options.retryConfig
60
+ || { strategy: "none" },
61
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
62
+ };
63
+ const requestRes = client._createRequest(context, {
64
+ security: requestSecurity,
65
+ method: "GET",
66
+ baseURL: options?.serverURL,
67
+ path: path,
68
+ headers: headers,
69
+ query: query,
70
+ body: body,
71
+ userAgent: client._options.userAgent,
72
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
73
+ }, options);
74
+ if (!requestRes.ok) {
75
+ return [requestRes, { status: "invalid" }];
76
+ }
77
+ const req = requestRes.value;
78
+ const doResult = await client._do(req, {
79
+ context,
80
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
81
+ retryConfig: context.retryConfig,
82
+ retryCodes: context.retryCodes,
83
+ });
84
+ if (!doResult.ok) {
85
+ return [doResult, { status: "request-error", request: req }];
86
+ }
87
+ const response = doResult.value;
88
+ const [result] = await M.match(M.json(200, models.PaginatedFollowersResponse$inboundSchema), M.fail([401, 404, "4XX"]), M.fail("5XX"))(response, req);
89
+ if (!result.ok) {
90
+ return [result, { status: "complete", request: req, response }];
91
+ }
92
+ return [result, { status: "complete", request: req, response }];
93
+ }
94
+ //# sourceMappingURL=user-discovery-get-user-followers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-discovery-get-user-followers.js","sourceRoot":"","sources":["../../src/funcs/user-discovery-get-user-followers.ts"],"names":[],"mappings":"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"}
@@ -30,9 +30,9 @@ export type SDKOptions = {
30
30
  export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
- readonly openapiDocVersion: "1.0.0";
34
- readonly sdkVersion: "0.0.5";
33
+ readonly openapiDocVersion: "1.1.0";
34
+ readonly sdkVersion: "0.1.1";
35
35
  readonly genVersion: "2.911.0";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.0.5 2.911.0 1.0.0 openapi";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.1.1 2.911.0 1.1.0 openapi";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -27,9 +27,9 @@ export function serverURLFromOptions(options) {
27
27
  }
28
28
  export const SDK_METADATA = {
29
29
  language: "typescript",
30
- openapiDocVersion: "1.0.0",
31
- sdkVersion: "0.0.5",
30
+ openapiDocVersion: "1.1.0",
31
+ sdkVersion: "0.1.1",
32
32
  genVersion: "2.911.0",
33
- userAgent: "speakeasy-sdk/typescript 0.0.5 2.911.0 1.0.0 openapi",
33
+ userAgent: "speakeasy-sdk/typescript 0.1.1 2.911.0 1.1.0 openapi",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,52 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ /**
4
+ * Logical media category used to route the Celery processing task.
5
+ */
6
+ export declare const AssetDeclarationMediaType: {
7
+ readonly Image: "IMAGE";
8
+ readonly Video: "VIDEO";
9
+ };
10
+ /**
11
+ * Logical media category used to route the Celery processing task.
12
+ */
13
+ export type AssetDeclarationMediaType = ClosedEnum<typeof AssetDeclarationMediaType>;
14
+ /**
15
+ * MIME type of the file to be uploaded. Must match the mediaType category.
16
+ */
17
+ export declare const AssetDeclarationContentType: {
18
+ readonly ImageJpeg: "image/jpeg";
19
+ readonly ImagePng: "image/png";
20
+ readonly ImageWebp: "image/webp";
21
+ readonly ImageGif: "image/gif";
22
+ readonly VideoMp4: "video/mp4";
23
+ readonly VideoQuicktime: "video/quicktime";
24
+ readonly VideoXMatroska: "video/x-matroska";
25
+ };
26
+ /**
27
+ * MIME type of the file to be uploaded. Must match the mediaType category.
28
+ */
29
+ export type AssetDeclarationContentType = ClosedEnum<typeof AssetDeclarationContentType>;
30
+ export type AssetDeclaration = {
31
+ /**
32
+ * Logical media category used to route the Celery processing task.
33
+ */
34
+ mediaType: AssetDeclarationMediaType;
35
+ /**
36
+ * MIME type of the file to be uploaded. Must match the mediaType category.
37
+ */
38
+ contentType: AssetDeclarationContentType;
39
+ };
40
+ /** @internal */
41
+ export declare const AssetDeclarationMediaType$outboundSchema: z.ZodMiniEnum<typeof AssetDeclarationMediaType>;
42
+ /** @internal */
43
+ export declare const AssetDeclarationContentType$outboundSchema: z.ZodMiniEnum<typeof AssetDeclarationContentType>;
44
+ /** @internal */
45
+ export type AssetDeclaration$Outbound = {
46
+ mediaType: string;
47
+ contentType: string;
48
+ };
49
+ /** @internal */
50
+ export declare const AssetDeclaration$outboundSchema: z.ZodMiniType<AssetDeclaration$Outbound, AssetDeclaration>;
51
+ export declare function assetDeclarationToJSON(assetDeclaration: AssetDeclaration): string;
52
+ //# sourceMappingURL=asset-declaration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-declaration.d.ts","sourceRoot":"","sources":["../../src/models/asset-declaration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;CAQ9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,yBAAyB,CAAC;IACrC;;OAEG;IACH,WAAW,EAAE,2BAA2B,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,OAAO,yBAAyB,CACG,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,OAAO,2BAA2B,CACG,CAAC;AAExC,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,yBAAyB,EACzB,gBAAgB,CAIhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR"}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 382ff0659e0a
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ /**
7
+ * Logical media category used to route the Celery processing task.
8
+ */
9
+ export const AssetDeclarationMediaType = {
10
+ Image: "IMAGE",
11
+ Video: "VIDEO",
12
+ };
13
+ /**
14
+ * MIME type of the file to be uploaded. Must match the mediaType category.
15
+ */
16
+ export const AssetDeclarationContentType = {
17
+ ImageJpeg: "image/jpeg",
18
+ ImagePng: "image/png",
19
+ ImageWebp: "image/webp",
20
+ ImageGif: "image/gif",
21
+ VideoMp4: "video/mp4",
22
+ VideoQuicktime: "video/quicktime",
23
+ VideoXMatroska: "video/x-matroska",
24
+ };
25
+ /** @internal */
26
+ export const AssetDeclarationMediaType$outboundSchema = z.enum(AssetDeclarationMediaType);
27
+ /** @internal */
28
+ export const AssetDeclarationContentType$outboundSchema = z.enum(AssetDeclarationContentType);
29
+ /** @internal */
30
+ export const AssetDeclaration$outboundSchema = z.object({
31
+ mediaType: AssetDeclarationMediaType$outboundSchema,
32
+ contentType: AssetDeclarationContentType$outboundSchema,
33
+ });
34
+ export function assetDeclarationToJSON(assetDeclaration) {
35
+ return JSON.stringify(AssetDeclaration$outboundSchema.parse(assetDeclaration));
36
+ }
37
+ //# sourceMappingURL=asset-declaration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-declaration.js","sourceRoot":"","sources":["../../src/models/asset-declaration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,kBAAkB;CAC1B,CAAC;AAmBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAEjD,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;AAEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAEnD,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;AAQxC,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAGxC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,wCAAwC;IACnD,WAAW,EAAE,0CAA0C;CACxD,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,gBAAkC,EAC1B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AAAA,CACH"}
@@ -0,0 +1,39 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ /**
4
+ * The terminal processing outcome reported by the Celery worker.
5
+ */
6
+ export declare const AssetProcessingCallbackRequestStatus: {
7
+ readonly Ready: "READY";
8
+ readonly Failed: "FAILED";
9
+ };
10
+ /**
11
+ * The terminal processing outcome reported by the Celery worker.
12
+ */
13
+ export type AssetProcessingCallbackRequestStatus = ClosedEnum<typeof AssetProcessingCallbackRequestStatus>;
14
+ export type AssetProcessingCallbackRequest = {
15
+ /**
16
+ * The terminal processing outcome reported by the Celery worker.
17
+ */
18
+ status: AssetProcessingCallbackRequestStatus;
19
+ /**
20
+ * The canonical SeaweedFS path of the transcoded/optimised output file. Required when status is READY. The gateway overwrites post_assets.media_key with this value so that mediaUrl is derived from the processed file, not the raw upload.
21
+ */
22
+ finalMediaKey?: string | null | undefined;
23
+ /**
24
+ * Human-readable failure reason for logging and observability. Only meaningful when status is FAILED.
25
+ */
26
+ errorReason?: string | null | undefined;
27
+ };
28
+ /** @internal */
29
+ export declare const AssetProcessingCallbackRequestStatus$outboundSchema: z.ZodMiniEnum<typeof AssetProcessingCallbackRequestStatus>;
30
+ /** @internal */
31
+ export type AssetProcessingCallbackRequest$Outbound = {
32
+ status: string;
33
+ finalMediaKey?: string | null | undefined;
34
+ errorReason?: string | null | undefined;
35
+ };
36
+ /** @internal */
37
+ export declare const AssetProcessingCallbackRequest$outboundSchema: z.ZodMiniType<AssetProcessingCallbackRequest$Outbound, AssetProcessingCallbackRequest>;
38
+ export declare function assetProcessingCallbackRequestToJSON(assetProcessingCallbackRequest: AssetProcessingCallbackRequest): string;
39
+ //# sourceMappingURL=asset-processing-callback-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-processing-callback-request.d.ts","sourceRoot":"","sources":["../../src/models/asset-processing-callback-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;CAGvC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;OAEG;IACH,MAAM,EAAE,oCAAoC,CAAC;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,WAAW,CAC7E,OAAO,oCAAoC,CACG,CAAC;AAEjD,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,WAAW,CACvE,uCAAuC,EACvC,8BAA8B,CAK9B,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR"}
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b75d6ac67429
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ /**
7
+ * The terminal processing outcome reported by the Celery worker.
8
+ */
9
+ export const AssetProcessingCallbackRequestStatus = {
10
+ Ready: "READY",
11
+ Failed: "FAILED",
12
+ };
13
+ /** @internal */
14
+ export const AssetProcessingCallbackRequestStatus$outboundSchema = z.enum(AssetProcessingCallbackRequestStatus);
15
+ /** @internal */
16
+ export const AssetProcessingCallbackRequest$outboundSchema = z.object({
17
+ status: AssetProcessingCallbackRequestStatus$outboundSchema,
18
+ finalMediaKey: z.optional(z.nullable(z.string())),
19
+ errorReason: z.optional(z.nullable(z.string())),
20
+ });
21
+ export function assetProcessingCallbackRequestToJSON(assetProcessingCallbackRequest) {
22
+ return JSON.stringify(AssetProcessingCallbackRequest$outboundSchema.parse(assetProcessingCallbackRequest));
23
+ }
24
+ //# sourceMappingURL=asset-processing-callback-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-processing-callback-request.js","sourceRoot":"","sources":["../../src/models/asset-processing-callback-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAuBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mDAAmD,GAE5D,CAAC,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;AASjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6CAA6C,GAGtD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,mDAAmD;IAC3D,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,UAAU,oCAAoC,CAClD,8BAA8D,EACtD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,6CAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AAAA,CACH"}
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ import { User } from "./user.js";
5
+ export type Comment = {
6
+ id: number;
7
+ postId: number;
8
+ user: User;
9
+ content: string;
10
+ createdAt: Date;
11
+ };
12
+ /** @internal */
13
+ export declare const Comment$inboundSchema: z.ZodMiniType<Comment, unknown>;
14
+ export declare function commentFromJSON(jsonString: string): SafeParseResult<Comment, SDKValidationError>;
15
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/models/comment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAMhE,CAAC;AAEH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 31da50e38c51
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as types from "../types/primitives.js";
8
+ import { User$inboundSchema } from "./user.js";
9
+ /** @internal */
10
+ export const Comment$inboundSchema = z.object({
11
+ id: types.number(),
12
+ postId: types.number(),
13
+ user: User$inboundSchema,
14
+ content: types.string(),
15
+ createdAt: types.date(),
16
+ });
17
+ export function commentFromJSON(jsonString) {
18
+ return safeParse(jsonString, (x) => Comment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Comment' from JSON`);
19
+ }
20
+ //# sourceMappingURL=comment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.js","sourceRoot":"","sources":["../../src/models/comment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAoC,CAAC,CAAC,MAAM,CAAC;IAC7E,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,eAAe,CAC7B,UAAkB,EAC4B;IAC9C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AAAA,CACH"}
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4-mini";
2
+ export type CreateCommentRequest = {
3
+ /**
4
+ * The textual content of the comment.
5
+ */
6
+ content: string;
7
+ };
8
+ /** @internal */
9
+ export type CreateCommentRequest$Outbound = {
10
+ content: string;
11
+ };
12
+ /** @internal */
13
+ export declare const CreateCommentRequest$outboundSchema: z.ZodMiniType<CreateCommentRequest$Outbound, CreateCommentRequest>;
14
+ export declare function createCommentRequestToJSON(createCommentRequest: CreateCommentRequest): string;
15
+ //# sourceMappingURL=create-comment-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment-request.d.ts","sourceRoot":"","sources":["../../src/models/create-comment-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAGpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 1281f847c1db
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ /** @internal */
7
+ export const CreateCommentRequest$outboundSchema = z.object({
8
+ content: z.string(),
9
+ });
10
+ export function createCommentRequestToJSON(createCommentRequest) {
11
+ return JSON.stringify(CreateCommentRequest$outboundSchema.parse(createCommentRequest));
12
+ }
13
+ //# sourceMappingURL=create-comment-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-comment-request.js","sourceRoot":"","sources":["../../src/models/create-comment-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAcjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH"}
@@ -1,30 +1,19 @@
1
1
  import * as z from "zod/v4-mini";
2
- import { ClosedEnum } from "../types/enums.js";
3
- export declare const CreatePostRequestMediaType: {
4
- readonly Image: "IMAGE";
5
- readonly Video: "VIDEO";
6
- };
7
- export type CreatePostRequestMediaType = ClosedEnum<typeof CreatePostRequestMediaType>;
8
- export type Asset = {
9
- mediaType: CreatePostRequestMediaType;
10
- };
2
+ import { AssetDeclaration, AssetDeclaration$Outbound } from "./asset-declaration.js";
11
3
  export type CreatePostRequest = {
12
- caption: string;
13
- assets: Array<Asset>;
14
- };
15
- /** @internal */
16
- export declare const CreatePostRequestMediaType$outboundSchema: z.ZodMiniEnum<typeof CreatePostRequestMediaType>;
17
- /** @internal */
18
- export type Asset$Outbound = {
19
- mediaType: string;
4
+ /**
5
+ * Optional caption for the post. May be set now or supplied later via PATCH.
6
+ */
7
+ caption?: string | null | undefined;
8
+ /**
9
+ * Ordered list of media assets to attach to this post. The array index determines sort_order.
10
+ */
11
+ assets: Array<AssetDeclaration>;
20
12
  };
21
13
  /** @internal */
22
- export declare const Asset$outboundSchema: z.ZodMiniType<Asset$Outbound, Asset>;
23
- export declare function assetToJSON(asset: Asset): string;
24
- /** @internal */
25
14
  export type CreatePostRequest$Outbound = {
26
- caption: string;
27
- assets: Array<Asset$Outbound>;
15
+ caption?: string | null | undefined;
16
+ assets: Array<AssetDeclaration$Outbound>;
28
17
  };
29
18
  /** @internal */
30
19
  export declare const CreatePostRequest$outboundSchema: z.ZodMiniType<CreatePostRequest$Outbound, CreatePostRequest>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-post-request.d.ts","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,SAAS,EAAE,0BAA0B,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,WAAW,CACnE,OAAO,0BAA0B,CACG,CAAC;AAEvC,gBAAgB;AAChB,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,cAAc,EAAE,KAAK,CAGlE,CAAC;AAEL,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEhD;AAED,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAIjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
1
+ {"version":3,"file":"create-post-request.d.ts","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAE1B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAIjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
@@ -3,24 +3,11 @@
3
3
  * @generated-id: a730750b0c9a
4
4
  */
5
5
  import * as z from "zod/v4-mini";
6
- export const CreatePostRequestMediaType = {
7
- Image: "IMAGE",
8
- Video: "VIDEO",
9
- };
10
- /** @internal */
11
- export const CreatePostRequestMediaType$outboundSchema = z.enum(CreatePostRequestMediaType);
12
- /** @internal */
13
- export const Asset$outboundSchema = z
14
- .object({
15
- mediaType: CreatePostRequestMediaType$outboundSchema,
16
- });
17
- export function assetToJSON(asset) {
18
- return JSON.stringify(Asset$outboundSchema.parse(asset));
19
- }
6
+ import { AssetDeclaration$outboundSchema, } from "./asset-declaration.js";
20
7
  /** @internal */
21
8
  export const CreatePostRequest$outboundSchema = z.object({
22
- caption: z.string(),
23
- assets: z.array(z.lazy(() => Asset$outboundSchema)),
9
+ caption: z.optional(z.nullable(z.string())),
10
+ assets: z.array(AssetDeclaration$outboundSchema),
24
11
  });
25
12
  export function createPostRequestToJSON(createPostRequest) {
26
13
  return JSON.stringify(CreatePostRequest$outboundSchema.parse(createPostRequest));
@@ -1 +1 @@
1
- {"version":3,"file":"create-post-request.js","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAcX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yCAAyC,GAElD,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;AAOvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAyC,CAAC;KACxE,MAAM,CAAC;IACN,SAAS,EAAE,yCAAyC;CACrD,CAAC,CAAC;AAEL,MAAM,UAAU,WAAW,CAAC,KAAY,EAAU;IAChD,OAAO,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAAA,CAC1D;AAQD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC;CACpD,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AAAA,CACH"}
1
+ {"version":3,"file":"create-post-request.js","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAmBhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC;CACjD,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AAAA,CACH"}
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ import { UploadSlot } from "./upload-slot.js";
5
+ export type CreatePostResponse = {
6
+ /**
7
+ * ID of the newly created DRAFT post.
8
+ */
9
+ postId?: number | undefined;
10
+ /**
11
+ * One entry per declared asset, in the same order as the request.
12
+ */
13
+ uploadSlots?: Array<UploadSlot> | undefined;
14
+ };
15
+ /** @internal */
16
+ export declare const CreatePostResponse$inboundSchema: z.ZodMiniType<CreatePostResponse, unknown>;
17
+ export declare function createPostResponseFromJSON(jsonString: string): SafeParseResult<CreatePostResponse, SDKValidationError>;
18
+ //# sourceMappingURL=create-post-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-post-response.d.ts","sourceRoot":"","sources":["../../src/models/create-post-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CAIP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: dd751a66d133
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as types from "../types/primitives.js";
8
+ import { UploadSlot$inboundSchema } from "./upload-slot.js";
9
+ /** @internal */
10
+ export const CreatePostResponse$inboundSchema = z.object({
11
+ postId: types.optional(types.number()),
12
+ uploadSlots: types.optional(z.array(UploadSlot$inboundSchema)),
13
+ });
14
+ export function createPostResponseFromJSON(jsonString) {
15
+ return safeParse(jsonString, (x) => CreatePostResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePostResponse' from JSON`);
16
+ }
17
+ //# sourceMappingURL=create-post-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-post-response.js","sourceRoot":"","sources":["../../src/models/create-post-response.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAc,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAaxE,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACtC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC/D,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB,EACuC;IACzD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AAAA,CACH"}
@@ -0,0 +1,10 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ export type FollowerCountResponse = {
5
+ count: number;
6
+ };
7
+ /** @internal */
8
+ export declare const FollowerCountResponse$inboundSchema: z.ZodMiniType<FollowerCountResponse, unknown>;
9
+ export declare function followerCountResponseFromJSON(jsonString: string): SafeParseResult<FollowerCountResponse, SDKValidationError>;
10
+ //# sourceMappingURL=follower-count-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"follower-count-response.d.ts","sourceRoot":"","sources":["../../src/models/follower-count-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,qBAAqB,EACrB,OAAO,CAGP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b61cb4711504
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as types from "../types/primitives.js";
8
+ /** @internal */
9
+ export const FollowerCountResponse$inboundSchema = z.object({
10
+ count: types.number(),
11
+ });
12
+ export function followerCountResponseFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => FollowerCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FollowerCountResponse' from JSON`);
14
+ }
15
+ //# sourceMappingURL=follower-count-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"follower-count-response.js","sourceRoot":"","sources":["../../src/models/follower-count-response.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAOhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB,EAC0C;IAC5D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AAAA,CACH"}
@@ -1,14 +1,33 @@
1
+ export * from "./asset-declaration.js";
2
+ export * from "./asset-processing-callback-request.js";
1
3
  export * from "./collection.js";
4
+ export * from "./comment.js";
2
5
  export * from "./conversation.js";
6
+ export * from "./create-comment-request.js";
3
7
  export * from "./create-post-request.js";
8
+ export * from "./create-post-response.js";
9
+ export * from "./follower-count-response.js";
4
10
  export * from "./login-request.js";
11
+ export * from "./mark-notifications-read-request.js";
5
12
  export * from "./media-asset.js";
6
13
  export * from "./message.js";
14
+ export * from "./notification.js";
15
+ export * from "./paginated-comments-response.js";
16
+ export * from "./paginated-followers-response.js";
17
+ export * from "./paginated-likes-response.js";
18
+ export * from "./paginated-notifications-response.js";
7
19
  export * from "./paginated-posts-response.js";
8
20
  export * from "./post.js";
21
+ export * from "./profile-media-confirm-request.js";
22
+ export * from "./profile-media-upload-request.js";
23
+ export * from "./profile-media-upload-response.js";
9
24
  export * from "./register-request.js";
10
25
  export * from "./security.js";
11
26
  export * from "./send-message-request.js";
27
+ export * from "./unread-count-response.js";
28
+ export * from "./update-post-request.js";
29
+ export * from "./update-profile-request.js";
30
+ export * from "./upload-slot.js";
12
31
  export * from "./user-profile.js";
13
32
  export * from "./user.js";
14
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAKA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAKA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC;AACrD,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}