@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,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 689ebe29e921
4
+ */
5
+
6
+ import * as z from "zod/v4-mini";
7
+
8
+ /**
9
+ * All fields are optional; only supplied fields are updated.
10
+ */
11
+ export type UpdateProfileRequest = {
12
+ displayName?: string | undefined;
13
+ bio?: string | null | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export type UpdateProfileRequest$Outbound = {
18
+ displayName?: string | undefined;
19
+ bio?: string | null | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const UpdateProfileRequest$outboundSchema: z.ZodMiniType<
24
+ UpdateProfileRequest$Outbound,
25
+ UpdateProfileRequest
26
+ > = z.object({
27
+ displayName: z.optional(z.string()),
28
+ bio: z.optional(z.nullable(z.string())),
29
+ });
30
+
31
+ export function updateProfileRequestToJSON(
32
+ updateProfileRequest: UpdateProfileRequest,
33
+ ): string {
34
+ return JSON.stringify(
35
+ UpdateProfileRequest$outboundSchema.parse(updateProfileRequest),
36
+ );
37
+ }
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: e1f3fc29096e
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 UploadSlot = {
13
+ /**
14
+ * ID of the post_assets row created for this slot.
15
+ */
16
+ assetId?: number | undefined;
17
+ /**
18
+ * Zero-based index matching the position in the original assets array.
19
+ */
20
+ sortOrder?: number | undefined;
21
+ /**
22
+ * Presigned HTTP PUT URL pointing directly at a SeaweedFS volume node. The client must PUT the raw binary file body with the Content-Type header matching the declared contentType. No additional form fields are required.
23
+ */
24
+ uploadUrl?: string | undefined;
25
+ /**
26
+ * The SeaweedFS object key pre-allocated for this asset (e.g. posts/42/0_a1b2c3.jpg). Stored in post_assets.media_key immediately; Celery uses this as the source path.
27
+ */
28
+ mediaKey?: string | undefined;
29
+ /**
30
+ * UTC datetime after which the presigned URL is no longer valid. Typically 15 minutes from issuance.
31
+ */
32
+ expiresAt?: Date | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const UploadSlot$inboundSchema: z.ZodMiniType<UploadSlot, unknown> = z
37
+ .object({
38
+ assetId: types.optional(types.number()),
39
+ sortOrder: types.optional(types.number()),
40
+ uploadUrl: types.optional(types.string()),
41
+ mediaKey: types.optional(types.string()),
42
+ expiresAt: types.optional(types.date()),
43
+ });
44
+
45
+ export function uploadSlotFromJSON(
46
+ jsonString: string,
47
+ ): SafeParseResult<UploadSlot, SDKValidationError> {
48
+ return safeParse(
49
+ jsonString,
50
+ (x) => UploadSlot$inboundSchema.parse(JSON.parse(x)),
51
+ `Failed to parse 'UploadSlot' from JSON`,
52
+ );
53
+ }
@@ -40,6 +40,10 @@ export type User = {
40
40
  * System verified identity indicator badge validation toggle
41
41
  */
42
42
  isVerified?: boolean | undefined;
43
+ /**
44
+ * Indicates if the user is a curated/featured creator showcased on guest pages
45
+ */
46
+ isFeatured?: boolean | undefined;
43
47
  /**
44
48
  * Monthly paywall gate pricing valuation tier for premium feed access
45
49
  */
@@ -65,6 +69,7 @@ export const User$inboundSchema: z.ZodMiniType<User, unknown> = z.object({
65
69
  bannerUrl: z.optional(z.nullable(types.string())),
66
70
  isCreator: types.optional(types.boolean()),
67
71
  isVerified: types.optional(types.boolean()),
72
+ isFeatured: types.optional(types.boolean()),
68
73
  subscriptionPrice: types.optional(types.number()),
69
74
  accountStatus: types.optional(AccountStatus$inboundSchema),
70
75
  createdAt: types.optional(types.date()),
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: fd5248f58055
4
+ */
5
+
6
+ import { creatorsDiscoveryGetFeaturedCreators } from "../funcs/creators-discovery-get-featured-creators.js";
7
+ import { creatorsDiscoveryGetTrendingCreators } from "../funcs/creators-discovery-get-trending-creators.js";
8
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
+ import * as models from "../models/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class CreatorsDiscovery extends ClientSDK {
13
+ /**
14
+ * Fetch a curated list of featured creators for the Guest Landing page
15
+ */
16
+ async getFeaturedCreators(
17
+ limit?: number | undefined,
18
+ options?: RequestOptions,
19
+ ): Promise<Array<models.User>> {
20
+ return unwrapAsync(creatorsDiscoveryGetFeaturedCreators(
21
+ this,
22
+ limit,
23
+ options,
24
+ ));
25
+ }
26
+
27
+ /**
28
+ * Fetch popular creators to discover in the sidebar
29
+ */
30
+ async getTrendingCreators(
31
+ limit?: number | undefined,
32
+ options?: RequestOptions,
33
+ ): Promise<Array<models.User>> {
34
+ return unwrapAsync(creatorsDiscoveryGetTrendingCreators(
35
+ this,
36
+ limit,
37
+ options,
38
+ ));
39
+ }
40
+ }
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 479f87bfe8ae
4
+ */
5
+
6
+ import { internalAssetProcessingCallback } from "../funcs/internal-asset-processing-callback.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as models from "../models/index.js";
9
+ import { unwrapAsync } from "../types/fp.js";
10
+
11
+ export class Internal extends ClientSDK {
12
+ /**
13
+ * [Internal] Celery worker callback to update the processing status of a single post asset
14
+ *
15
+ * @remarks
16
+ * This endpoint is called exclusively by the internal Python/Celery media processing service after a transcoding or image optimisation job completes or fails. It is not intended to be called by external clients. The endpoint MUST be protected by a shared-secret header (X-Internal-Token) validated against an environment variable. On a READY transition the worker also supplies the finalised media_key (the canonical SeaweedFS path of the processed output file). On FAILED the worker may optionally supply a human-readable error reason for observability logging.
17
+ */
18
+ async assetProcessingCallback(
19
+ postId: number,
20
+ assetId: number,
21
+ body: models.AssetProcessingCallbackRequest,
22
+ options?: RequestOptions,
23
+ ): Promise<void> {
24
+ return unwrapAsync(internalAssetProcessingCallback(
25
+ this,
26
+ postId,
27
+ assetId,
28
+ body,
29
+ options,
30
+ ));
31
+ }
32
+ }
package/src/sdk/me.ts ADDED
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: eeeab1031f91
4
+ */
5
+
6
+ import { meConfirmAvatarUpload } from "../funcs/me-confirm-avatar-upload.js";
7
+ import { meConfirmBannerUpload } from "../funcs/me-confirm-banner-upload.js";
8
+ import { meGetMe } from "../funcs/me-get-me.js";
9
+ import { meRequestAvatarUploadUrl } from "../funcs/me-request-avatar-upload-url.js";
10
+ import { meRequestBannerUploadUrl } from "../funcs/me-request-banner-upload-url.js";
11
+ import { meUpdateMe } from "../funcs/me-update-me.js";
12
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
13
+ import * as models from "../models/index.js";
14
+ import { unwrapAsync } from "../types/fp.js";
15
+
16
+ export class Me extends ClientSDK {
17
+ /**
18
+ * Get the authenticated user's own profile
19
+ */
20
+ async getMe(
21
+ options?: RequestOptions,
22
+ ): Promise<models.User> {
23
+ return unwrapAsync(meGetMe(
24
+ this,
25
+ options,
26
+ ));
27
+ }
28
+
29
+ /**
30
+ * Update the authenticated user's profile text fields
31
+ */
32
+ async updateMe(
33
+ request: models.UpdateProfileRequest,
34
+ options?: RequestOptions,
35
+ ): Promise<models.User> {
36
+ return unwrapAsync(meUpdateMe(
37
+ this,
38
+ request,
39
+ options,
40
+ ));
41
+ }
42
+
43
+ /**
44
+ * Request a presigned URL to upload or replace the authenticated user's avatar image
45
+ */
46
+ async requestAvatarUploadUrl(
47
+ request: models.ProfileMediaUploadRequest,
48
+ options?: RequestOptions,
49
+ ): Promise<models.ProfileMediaUploadResponse> {
50
+ return unwrapAsync(meRequestAvatarUploadUrl(
51
+ this,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ /**
58
+ * Confirm a completed avatar upload and atomically update the user record
59
+ */
60
+ async confirmAvatarUpload(
61
+ request: models.ProfileMediaConfirmRequest,
62
+ options?: RequestOptions,
63
+ ): Promise<models.User> {
64
+ return unwrapAsync(meConfirmAvatarUpload(
65
+ this,
66
+ request,
67
+ options,
68
+ ));
69
+ }
70
+
71
+ /**
72
+ * Request a presigned URL to upload or replace the authenticated user's profile banner image
73
+ */
74
+ async requestBannerUploadUrl(
75
+ request: models.ProfileMediaUploadRequest,
76
+ options?: RequestOptions,
77
+ ): Promise<models.ProfileMediaUploadResponse> {
78
+ return unwrapAsync(meRequestBannerUploadUrl(
79
+ this,
80
+ request,
81
+ options,
82
+ ));
83
+ }
84
+
85
+ /**
86
+ * Confirm a completed banner upload and atomically update the user record
87
+ */
88
+ async confirmBannerUpload(
89
+ request: models.ProfileMediaConfirmRequest,
90
+ options?: RequestOptions,
91
+ ): Promise<models.User> {
92
+ return unwrapAsync(meConfirmBannerUpload(
93
+ this,
94
+ request,
95
+ options,
96
+ ));
97
+ }
98
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 3d0b195b882f
4
+ */
5
+
6
+ import { notificationsGetNotifications } from "../funcs/notifications-get-notifications.js";
7
+ import { notificationsGetUnreadNotificationCount } from "../funcs/notifications-get-unread-notification-count.js";
8
+ import { notificationsMarkNotificationsAsRead } from "../funcs/notifications-mark-notifications-as-read.js";
9
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
10
+ import * as models from "../models/index.js";
11
+ import { unwrapAsync } from "../types/fp.js";
12
+
13
+ export class Notifications extends ClientSDK {
14
+ /**
15
+ * Fetch a paginated feed of notifications for the authenticated user
16
+ */
17
+ async getNotifications(
18
+ limit?: number | undefined,
19
+ cursor?: string | undefined,
20
+ options?: RequestOptions,
21
+ ): Promise<models.PaginatedNotificationsResponse> {
22
+ return unwrapAsync(notificationsGetNotifications(
23
+ this,
24
+ limit,
25
+ cursor,
26
+ options,
27
+ ));
28
+ }
29
+
30
+ /**
31
+ * Fetch the count of unread notifications for the authenticated user
32
+ */
33
+ async getUnreadNotificationCount(
34
+ options?: RequestOptions,
35
+ ): Promise<models.UnreadCountResponse> {
36
+ return unwrapAsync(notificationsGetUnreadNotificationCount(
37
+ this,
38
+ options,
39
+ ));
40
+ }
41
+
42
+ /**
43
+ * Mark notifications as read
44
+ */
45
+ async markNotificationsAsRead(
46
+ request: models.MarkNotificationsReadRequest,
47
+ options?: RequestOptions,
48
+ ): Promise<void> {
49
+ return unwrapAsync(notificationsMarkNotificationsAsRead(
50
+ this,
51
+ request,
52
+ options,
53
+ ));
54
+ }
55
+ }
package/src/sdk/posts.ts CHANGED
@@ -3,12 +3,20 @@
3
3
  * @generated-id: 6787631da7f6
4
4
  */
5
5
 
6
+ import { postsCreateComment } from "../funcs/posts-create-comment.js";
6
7
  import { postsCreatePost } from "../funcs/posts-create-post.js";
8
+ import { postsDeleteComment } from "../funcs/posts-delete-comment.js";
9
+ import { postsDeletePost } from "../funcs/posts-delete-post.js";
7
10
  import { postsGetCollectionFeed } from "../funcs/posts-get-collection-feed.js";
8
11
  import { postsGetFeed } from "../funcs/posts-get-feed.js";
12
+ import { postsGetPostComments } from "../funcs/posts-get-post-comments.js";
13
+ import { postsGetPostLikes } from "../funcs/posts-get-post-likes.js";
14
+ import { postsGetPost } from "../funcs/posts-get-post.js";
15
+ import { postsLikePost } from "../funcs/posts-like-post.js";
16
+ import { postsUnlikePost } from "../funcs/posts-unlike-post.js";
17
+ import { postsUpdatePost } from "../funcs/posts-update-post.js";
9
18
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
10
19
  import * as models from "../models/index.js";
11
- import * as operations from "../models/operations/index.js";
12
20
  import { unwrapAsync } from "../types/fp.js";
13
21
 
14
22
  export class Posts extends ClientSDK {
@@ -29,12 +37,15 @@ export class Posts extends ClientSDK {
29
37
  }
30
38
 
31
39
  /**
32
- * Create a post blueprint requesting batch upload slots
40
+ * Initiate a new post: reserve asset slots and receive presigned upload URLs
41
+ *
42
+ * @remarks
43
+ * Creates a post record in DRAFT status and reserves one upload slot per declared asset, returning a presigned PUT URL for each. The client uploads each file directly to SeaweedFS using the provided URL. After all uploads are complete the client calls PATCH /posts/{postId} to publish the post. The post is not visible in any feed until it reaches the PUBLISHED status.
33
44
  */
34
45
  async createPost(
35
46
  request: models.CreatePostRequest,
36
47
  options?: RequestOptions,
37
- ): Promise<operations.CreatePostResponse> {
48
+ ): Promise<models.CreatePostResponse> {
38
49
  return unwrapAsync(postsCreatePost(
39
50
  this,
40
51
  request,
@@ -42,6 +53,149 @@ export class Posts extends ClientSDK {
42
53
  ));
43
54
  }
44
55
 
56
+ /**
57
+ * Fetch a single post by ID, including all asset statuses
58
+ */
59
+ async getPost(
60
+ postId: number,
61
+ options?: RequestOptions,
62
+ ): Promise<models.Post> {
63
+ return unwrapAsync(postsGetPost(
64
+ this,
65
+ postId,
66
+ options,
67
+ ));
68
+ }
69
+
70
+ /**
71
+ * Publish or update a post
72
+ *
73
+ * @remarks
74
+ * Used to publish a DRAFT post once all asset uploads are complete, or to update the caption of an already-published post. Setting status to PUBLISHED triggers a server-side check that all required assets have been received by the object store before making the post visible in feeds. A post with assets still in PROCESSING state cannot be published.
75
+ */
76
+ async updatePost(
77
+ postId: number,
78
+ body: models.UpdatePostRequest,
79
+ options?: RequestOptions,
80
+ ): Promise<models.Post> {
81
+ return unwrapAsync(postsUpdatePost(
82
+ this,
83
+ postId,
84
+ body,
85
+ options,
86
+ ));
87
+ }
88
+
89
+ /**
90
+ * Delete a post and cascade-delete all associated assets from object storage
91
+ */
92
+ async deletePost(
93
+ postId: number,
94
+ options?: RequestOptions,
95
+ ): Promise<void> {
96
+ return unwrapAsync(postsDeletePost(
97
+ this,
98
+ postId,
99
+ options,
100
+ ));
101
+ }
102
+
103
+ /**
104
+ * Fetch the list of users who liked a post
105
+ */
106
+ async getPostLikes(
107
+ postId: number,
108
+ limit?: number | undefined,
109
+ cursor?: string | undefined,
110
+ options?: RequestOptions,
111
+ ): Promise<models.PaginatedLikesResponse> {
112
+ return unwrapAsync(postsGetPostLikes(
113
+ this,
114
+ postId,
115
+ limit,
116
+ cursor,
117
+ options,
118
+ ));
119
+ }
120
+
121
+ /**
122
+ * Like a post
123
+ */
124
+ async likePost(
125
+ postId: number,
126
+ options?: RequestOptions,
127
+ ): Promise<void> {
128
+ return unwrapAsync(postsLikePost(
129
+ this,
130
+ postId,
131
+ options,
132
+ ));
133
+ }
134
+
135
+ /**
136
+ * Unlike a post
137
+ */
138
+ async unlikePost(
139
+ postId: number,
140
+ options?: RequestOptions,
141
+ ): Promise<void> {
142
+ return unwrapAsync(postsUnlikePost(
143
+ this,
144
+ postId,
145
+ options,
146
+ ));
147
+ }
148
+
149
+ /**
150
+ * Fetch paginated comments for a post
151
+ */
152
+ async getPostComments(
153
+ postId: number,
154
+ limit?: number | undefined,
155
+ cursor?: string | undefined,
156
+ options?: RequestOptions,
157
+ ): Promise<models.PaginatedCommentsResponse> {
158
+ return unwrapAsync(postsGetPostComments(
159
+ this,
160
+ postId,
161
+ limit,
162
+ cursor,
163
+ options,
164
+ ));
165
+ }
166
+
167
+ /**
168
+ * Add a comment to a post
169
+ */
170
+ async createComment(
171
+ postId: number,
172
+ body: models.CreateCommentRequest,
173
+ options?: RequestOptions,
174
+ ): Promise<models.Comment> {
175
+ return unwrapAsync(postsCreateComment(
176
+ this,
177
+ postId,
178
+ body,
179
+ options,
180
+ ));
181
+ }
182
+
183
+ /**
184
+ * Delete a comment from a post
185
+ */
186
+ async deleteComment(
187
+ postId: number,
188
+ commentId: number,
189
+ options?: RequestOptions,
190
+ ): Promise<void> {
191
+ return unwrapAsync(postsDeleteComment(
192
+ this,
193
+ postId,
194
+ commentId,
195
+ options,
196
+ ));
197
+ }
198
+
45
199
  /**
46
200
  * Get a timeline filtered strictly by members of this collection with pagination
47
201
  */
package/src/sdk/sdk.ts CHANGED
@@ -6,8 +6,12 @@
6
6
  import { ClientSDK } from "../lib/sdks.js";
7
7
  import { Authentication } from "./authentication.js";
8
8
  import { CreatorTimelines } from "./creator-timelines.js";
9
+ import { CreatorsDiscovery } from "./creators-discovery.js";
9
10
  import { CustomCollections } from "./custom-collections.js";
10
11
  import { DirectMessaging } from "./direct-messaging.js";
12
+ import { Internal } from "./internal.js";
13
+ import { Me } from "./me.js";
14
+ import { Notifications } from "./notifications.js";
11
15
  import { Posts } from "./posts.js";
12
16
  import { Subscriptions } from "./subscriptions.js";
13
17
  import { UserDiscovery } from "./user-discovery.js";
@@ -18,6 +22,11 @@ export class FankareSDK extends ClientSDK {
18
22
  return (this._authentication ??= new Authentication(this._options));
19
23
  }
20
24
 
25
+ private _me?: Me;
26
+ get me(): Me {
27
+ return (this._me ??= new Me(this._options));
28
+ }
29
+
21
30
  private _userDiscovery?: UserDiscovery;
22
31
  get userDiscovery(): UserDiscovery {
23
32
  return (this._userDiscovery ??= new UserDiscovery(this._options));
@@ -38,6 +47,11 @@ export class FankareSDK extends ClientSDK {
38
47
  return (this._posts ??= new Posts(this._options));
39
48
  }
40
49
 
50
+ private _internal?: Internal;
51
+ get internal(): Internal {
52
+ return (this._internal ??= new Internal(this._options));
53
+ }
54
+
41
55
  private _directMessaging?: DirectMessaging;
42
56
  get directMessaging(): DirectMessaging {
43
57
  return (this._directMessaging ??= new DirectMessaging(this._options));
@@ -47,4 +61,14 @@ export class FankareSDK extends ClientSDK {
47
61
  get customCollections(): CustomCollections {
48
62
  return (this._customCollections ??= new CustomCollections(this._options));
49
63
  }
64
+
65
+ private _notifications?: Notifications;
66
+ get notifications(): Notifications {
67
+ return (this._notifications ??= new Notifications(this._options));
68
+ }
69
+
70
+ private _creatorsDiscovery?: CreatorsDiscovery;
71
+ get creatorsDiscovery(): CreatorsDiscovery {
72
+ return (this._creatorsDiscovery ??= new CreatorsDiscovery(this._options));
73
+ }
50
74
  }
@@ -3,7 +3,11 @@
3
3
  * @generated-id: 7746ccedcc95
4
4
  */
5
5
 
6
+ import { userDiscoveryGetFollowerCount } from "../funcs/user-discovery-get-follower-count.js";
7
+ import { userDiscoveryGetFollowers } from "../funcs/user-discovery-get-followers.js";
6
8
  import { userDiscoveryGetFollowing } from "../funcs/user-discovery-get-following.js";
9
+ import { userDiscoveryGetUserFollowerCount } from "../funcs/user-discovery-get-user-follower-count.js";
10
+ import { userDiscoveryGetUserFollowers } from "../funcs/user-discovery-get-user-followers.js";
7
11
  import { userDiscoveryGetUserProfile } from "../funcs/user-discovery-get-user-profile.js";
8
12
  import { userDiscoverySearchUsers } from "../funcs/user-discovery-search-users.js";
9
13
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -50,4 +54,64 @@ export class UserDiscovery extends ClientSDK {
50
54
  options,
51
55
  ));
52
56
  }
57
+
58
+ /**
59
+ * Fetch the authenticated user's paginated list of followers
60
+ */
61
+ async getFollowers(
62
+ limit?: number | undefined,
63
+ cursor?: string | undefined,
64
+ options?: RequestOptions,
65
+ ): Promise<models.PaginatedFollowersResponse> {
66
+ return unwrapAsync(userDiscoveryGetFollowers(
67
+ this,
68
+ limit,
69
+ cursor,
70
+ options,
71
+ ));
72
+ }
73
+
74
+ /**
75
+ * Fetch the authenticated user's follower count
76
+ */
77
+ async getFollowerCount(
78
+ options?: RequestOptions,
79
+ ): Promise<models.FollowerCountResponse> {
80
+ return unwrapAsync(userDiscoveryGetFollowerCount(
81
+ this,
82
+ options,
83
+ ));
84
+ }
85
+
86
+ /**
87
+ * Fetch a specific user's paginated list of followers
88
+ */
89
+ async getUserFollowers(
90
+ userId: number,
91
+ limit?: number | undefined,
92
+ cursor?: string | undefined,
93
+ options?: RequestOptions,
94
+ ): Promise<models.PaginatedFollowersResponse> {
95
+ return unwrapAsync(userDiscoveryGetUserFollowers(
96
+ this,
97
+ userId,
98
+ limit,
99
+ cursor,
100
+ options,
101
+ ));
102
+ }
103
+
104
+ /**
105
+ * Fetch a specific user's follower count
106
+ */
107
+ async getUserFollowerCount(
108
+ userId: number,
109
+ options?: RequestOptions,
110
+ ): Promise<models.FollowerCountResponse> {
111
+ return unwrapAsync(userDiscoveryGetUserFollowerCount(
112
+ this,
113
+ userId,
114
+ options,
115
+ ));
116
+ }
53
117
  }