@aurora-interactive/fankare-api-sdk 0.1.0 → 0.1.2

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 (233) hide show
  1. package/README.md +37 -1
  2. package/esm/funcs/creators-discovery-get-featured-creators.d.ts +14 -0
  3. package/esm/funcs/creators-discovery-get-featured-creators.d.ts.map +1 -0
  4. package/esm/funcs/creators-discovery-get-featured-creators.js +85 -0
  5. package/esm/funcs/creators-discovery-get-featured-creators.js.map +1 -0
  6. package/esm/funcs/creators-discovery-get-trending-creators.d.ts +14 -0
  7. package/esm/funcs/creators-discovery-get-trending-creators.d.ts.map +1 -0
  8. package/esm/funcs/creators-discovery-get-trending-creators.js +85 -0
  9. package/esm/funcs/creators-discovery-get-trending-creators.js.map +1 -0
  10. package/esm/funcs/notifications-get-notifications.d.ts +14 -0
  11. package/esm/funcs/notifications-get-notifications.d.ts.map +1 -0
  12. package/esm/funcs/notifications-get-notifications.js +87 -0
  13. package/esm/funcs/notifications-get-notifications.js.map +1 -0
  14. package/esm/funcs/notifications-get-unread-notification-count.d.ts +14 -0
  15. package/esm/funcs/notifications-get-unread-notification-count.d.ts.map +1 -0
  16. package/esm/funcs/notifications-get-unread-notification-count.js +67 -0
  17. package/esm/funcs/notifications-get-unread-notification-count.js.map +1 -0
  18. package/esm/funcs/notifications-mark-notifications-as-read.d.ts +14 -0
  19. package/esm/funcs/notifications-mark-notifications-as-read.d.ts.map +1 -0
  20. package/esm/funcs/notifications-mark-notifications-as-read.js +78 -0
  21. package/esm/funcs/notifications-mark-notifications-as-read.js.map +1 -0
  22. package/esm/funcs/posts-create-comment.d.ts +14 -0
  23. package/esm/funcs/posts-create-comment.d.ts.map +1 -0
  24. package/esm/funcs/posts-create-comment.js +89 -0
  25. package/esm/funcs/posts-create-comment.js.map +1 -0
  26. package/esm/funcs/posts-delete-comment.d.ts +13 -0
  27. package/esm/funcs/posts-delete-comment.d.ts.map +1 -0
  28. package/esm/funcs/posts-delete-comment.js +91 -0
  29. package/esm/funcs/posts-delete-comment.js.map +1 -0
  30. package/esm/funcs/posts-get-post-comments.d.ts +14 -0
  31. package/esm/funcs/posts-get-post-comments.d.ts.map +1 -0
  32. package/esm/funcs/posts-get-post-comments.js +94 -0
  33. package/esm/funcs/posts-get-post-comments.js.map +1 -0
  34. package/esm/funcs/posts-get-post-likes.d.ts +14 -0
  35. package/esm/funcs/posts-get-post-likes.d.ts.map +1 -0
  36. package/esm/funcs/posts-get-post-likes.js +94 -0
  37. package/esm/funcs/posts-get-post-likes.js.map +1 -0
  38. package/esm/funcs/posts-like-post.d.ts +13 -0
  39. package/esm/funcs/posts-like-post.d.ts.map +1 -0
  40. package/esm/funcs/posts-like-post.js +86 -0
  41. package/esm/funcs/posts-like-post.js.map +1 -0
  42. package/esm/funcs/posts-unlike-post.d.ts +13 -0
  43. package/esm/funcs/posts-unlike-post.d.ts.map +1 -0
  44. package/esm/funcs/posts-unlike-post.js +86 -0
  45. package/esm/funcs/posts-unlike-post.js.map +1 -0
  46. package/esm/funcs/user-discovery-get-follower-count.d.ts +14 -0
  47. package/esm/funcs/user-discovery-get-follower-count.d.ts.map +1 -0
  48. package/esm/funcs/user-discovery-get-follower-count.js +67 -0
  49. package/esm/funcs/user-discovery-get-follower-count.js.map +1 -0
  50. package/esm/funcs/user-discovery-get-followers.d.ts +14 -0
  51. package/esm/funcs/user-discovery-get-followers.d.ts.map +1 -0
  52. package/esm/funcs/user-discovery-get-followers.js +87 -0
  53. package/esm/funcs/user-discovery-get-followers.js.map +1 -0
  54. package/esm/funcs/user-discovery-get-user-follower-count.d.ts +14 -0
  55. package/esm/funcs/user-discovery-get-user-follower-count.d.ts.map +1 -0
  56. package/esm/funcs/user-discovery-get-user-follower-count.js +87 -0
  57. package/esm/funcs/user-discovery-get-user-follower-count.js.map +1 -0
  58. package/esm/funcs/user-discovery-get-user-followers.d.ts +14 -0
  59. package/esm/funcs/user-discovery-get-user-followers.d.ts.map +1 -0
  60. package/esm/funcs/user-discovery-get-user-followers.js +94 -0
  61. package/esm/funcs/user-discovery-get-user-followers.js.map +1 -0
  62. package/esm/lib/config.d.ts +3 -3
  63. package/esm/lib/config.d.ts.map +1 -1
  64. package/esm/lib/config.js +3 -3
  65. package/esm/lib/config.js.map +1 -1
  66. package/esm/models/comment.d.ts +15 -0
  67. package/esm/models/comment.d.ts.map +1 -0
  68. package/esm/models/comment.js +20 -0
  69. package/esm/models/comment.js.map +1 -0
  70. package/esm/models/create-comment-request.d.ts +15 -0
  71. package/esm/models/create-comment-request.d.ts.map +1 -0
  72. package/esm/models/create-comment-request.js +13 -0
  73. package/esm/models/create-comment-request.js.map +1 -0
  74. package/esm/models/follower-count-response.d.ts +10 -0
  75. package/esm/models/follower-count-response.d.ts.map +1 -0
  76. package/esm/models/follower-count-response.js +15 -0
  77. package/esm/models/follower-count-response.js.map +1 -0
  78. package/esm/models/index.d.ts +10 -0
  79. package/esm/models/index.d.ts.map +1 -1
  80. package/esm/models/index.js +10 -0
  81. package/esm/models/index.js.map +1 -1
  82. package/esm/models/mark-notifications-read-request.d.ts +20 -0
  83. package/esm/models/mark-notifications-read-request.d.ts.map +1 -0
  84. package/esm/models/mark-notifications-read-request.js +14 -0
  85. package/esm/models/mark-notifications-read-request.js.map +1 -0
  86. package/esm/models/notification.d.ts +30 -0
  87. package/esm/models/notification.d.ts.map +1 -0
  88. package/esm/models/notification.js +31 -0
  89. package/esm/models/notification.js.map +1 -0
  90. package/esm/models/operations/create-comment.d.ts +15 -0
  91. package/esm/models/operations/create-comment.d.ts.map +1 -0
  92. package/esm/models/operations/create-comment.js +15 -0
  93. package/esm/models/operations/create-comment.js.map +1 -0
  94. package/esm/models/operations/delete-comment.d.ts +14 -0
  95. package/esm/models/operations/delete-comment.d.ts.map +1 -0
  96. package/esm/models/operations/delete-comment.js +14 -0
  97. package/esm/models/operations/delete-comment.js.map +1 -0
  98. package/esm/models/operations/get-featured-creators.d.ts +12 -0
  99. package/esm/models/operations/get-featured-creators.d.ts.map +1 -0
  100. package/esm/models/operations/get-featured-creators.js +13 -0
  101. package/esm/models/operations/get-featured-creators.js.map +1 -0
  102. package/esm/models/operations/get-followers.d.ts +17 -0
  103. package/esm/models/operations/get-followers.d.ts.map +1 -0
  104. package/esm/models/operations/get-followers.js +14 -0
  105. package/esm/models/operations/get-followers.js.map +1 -0
  106. package/esm/models/operations/get-notifications.d.ts +17 -0
  107. package/esm/models/operations/get-notifications.d.ts.map +1 -0
  108. package/esm/models/operations/get-notifications.js +14 -0
  109. package/esm/models/operations/get-notifications.js.map +1 -0
  110. package/esm/models/operations/get-post-comments.d.ts +19 -0
  111. package/esm/models/operations/get-post-comments.d.ts.map +1 -0
  112. package/esm/models/operations/get-post-comments.js +15 -0
  113. package/esm/models/operations/get-post-comments.js.map +1 -0
  114. package/esm/models/operations/get-post-likes.d.ts +19 -0
  115. package/esm/models/operations/get-post-likes.d.ts.map +1 -0
  116. package/esm/models/operations/get-post-likes.js +15 -0
  117. package/esm/models/operations/get-post-likes.js.map +1 -0
  118. package/esm/models/operations/get-trending-creators.d.ts +12 -0
  119. package/esm/models/operations/get-trending-creators.d.ts.map +1 -0
  120. package/esm/models/operations/get-trending-creators.js +13 -0
  121. package/esm/models/operations/get-trending-creators.js.map +1 -0
  122. package/esm/models/operations/get-user-follower-count.d.ts +12 -0
  123. package/esm/models/operations/get-user-follower-count.d.ts.map +1 -0
  124. package/esm/models/operations/get-user-follower-count.js +13 -0
  125. package/esm/models/operations/get-user-follower-count.js.map +1 -0
  126. package/esm/models/operations/get-user-followers.d.ts +19 -0
  127. package/esm/models/operations/get-user-followers.d.ts.map +1 -0
  128. package/esm/models/operations/get-user-followers.js +15 -0
  129. package/esm/models/operations/get-user-followers.js.map +1 -0
  130. package/esm/models/operations/index.d.ts +12 -0
  131. package/esm/models/operations/index.d.ts.map +1 -1
  132. package/esm/models/operations/index.js +12 -0
  133. package/esm/models/operations/index.js.map +1 -1
  134. package/esm/models/operations/like-post.d.ts +12 -0
  135. package/esm/models/operations/like-post.d.ts.map +1 -0
  136. package/esm/models/operations/like-post.js +13 -0
  137. package/esm/models/operations/like-post.js.map +1 -0
  138. package/esm/models/operations/unlike-post.d.ts +12 -0
  139. package/esm/models/operations/unlike-post.d.ts.map +1 -0
  140. package/esm/models/operations/unlike-post.js +13 -0
  141. package/esm/models/operations/unlike-post.js.map +1 -0
  142. package/esm/models/paginated-comments-response.d.ts +15 -0
  143. package/esm/models/paginated-comments-response.d.ts.map +1 -0
  144. package/esm/models/paginated-comments-response.js +17 -0
  145. package/esm/models/paginated-comments-response.js.map +1 -0
  146. package/esm/models/paginated-followers-response.d.ts +15 -0
  147. package/esm/models/paginated-followers-response.d.ts.map +1 -0
  148. package/esm/models/paginated-followers-response.js +17 -0
  149. package/esm/models/paginated-followers-response.js.map +1 -0
  150. package/esm/models/paginated-likes-response.d.ts +15 -0
  151. package/esm/models/paginated-likes-response.d.ts.map +1 -0
  152. package/esm/models/paginated-likes-response.js +17 -0
  153. package/esm/models/paginated-likes-response.js.map +1 -0
  154. package/esm/models/paginated-notifications-response.d.ts +15 -0
  155. package/esm/models/paginated-notifications-response.d.ts.map +1 -0
  156. package/esm/models/paginated-notifications-response.js +17 -0
  157. package/esm/models/paginated-notifications-response.js.map +1 -0
  158. package/esm/models/unread-count-response.d.ts +10 -0
  159. package/esm/models/unread-count-response.d.ts.map +1 -0
  160. package/esm/models/unread-count-response.js +15 -0
  161. package/esm/models/unread-count-response.js.map +1 -0
  162. package/esm/models/user.d.ts +4 -0
  163. package/esm/models/user.d.ts.map +1 -1
  164. package/esm/models/user.js +1 -0
  165. package/esm/models/user.js.map +1 -1
  166. package/esm/sdk/creators-discovery.d.ts +13 -0
  167. package/esm/sdk/creators-discovery.d.ts.map +1 -0
  168. package/esm/sdk/creators-discovery.js +23 -0
  169. package/esm/sdk/creators-discovery.js.map +1 -0
  170. package/esm/sdk/notifications.d.ts +17 -0
  171. package/esm/sdk/notifications.d.ts.map +1 -0
  172. package/esm/sdk/notifications.js +30 -0
  173. package/esm/sdk/notifications.js.map +1 -0
  174. package/esm/sdk/posts.d.ts +24 -0
  175. package/esm/sdk/posts.d.ts.map +1 -1
  176. package/esm/sdk/posts.js +42 -0
  177. package/esm/sdk/posts.js.map +1 -1
  178. package/esm/sdk/sdk.d.ts +6 -0
  179. package/esm/sdk/sdk.d.ts.map +1 -1
  180. package/esm/sdk/sdk.js +10 -0
  181. package/esm/sdk/sdk.js.map +1 -1
  182. package/esm/sdk/user-discovery.d.ts +16 -0
  183. package/esm/sdk/user-discovery.d.ts.map +1 -1
  184. package/esm/sdk/user-discovery.js +28 -0
  185. package/esm/sdk/user-discovery.js.map +1 -1
  186. package/jsr.json +1 -1
  187. package/package.json +1 -1
  188. package/src/funcs/creators-discovery-get-featured-creators.ts +174 -0
  189. package/src/funcs/creators-discovery-get-trending-creators.ts +174 -0
  190. package/src/funcs/notifications-get-notifications.ts +179 -0
  191. package/src/funcs/notifications-get-unread-notification-count.ts +142 -0
  192. package/src/funcs/notifications-mark-notifications-as-read.ts +162 -0
  193. package/src/funcs/posts-create-comment.ts +176 -0
  194. package/src/funcs/posts-delete-comment.ts +178 -0
  195. package/src/funcs/posts-get-post-comments.ts +185 -0
  196. package/src/funcs/posts-get-post-likes.ts +185 -0
  197. package/src/funcs/posts-like-post.ts +170 -0
  198. package/src/funcs/posts-unlike-post.ts +170 -0
  199. package/src/funcs/user-discovery-get-follower-count.ts +142 -0
  200. package/src/funcs/user-discovery-get-followers.ts +176 -0
  201. package/src/funcs/user-discovery-get-user-follower-count.ts +172 -0
  202. package/src/funcs/user-discovery-get-user-followers.ts +186 -0
  203. package/src/lib/config.ts +3 -3
  204. package/src/models/comment.ts +38 -0
  205. package/src/models/create-comment-request.ts +34 -0
  206. package/src/models/follower-count-response.ts +32 -0
  207. package/src/models/index.ts +10 -0
  208. package/src/models/mark-notifications-read-request.ts +42 -0
  209. package/src/models/notification.ts +60 -0
  210. package/src/models/operations/create-comment.ts +35 -0
  211. package/src/models/operations/delete-comment.ts +34 -0
  212. package/src/models/operations/get-featured-creators.ts +31 -0
  213. package/src/models/operations/get-followers.ts +37 -0
  214. package/src/models/operations/get-notifications.ts +37 -0
  215. package/src/models/operations/get-post-comments.ts +40 -0
  216. package/src/models/operations/get-post-likes.ts +40 -0
  217. package/src/models/operations/get-trending-creators.ts +31 -0
  218. package/src/models/operations/get-user-follower-count.ts +33 -0
  219. package/src/models/operations/get-user-followers.ts +40 -0
  220. package/src/models/operations/index.ts +12 -0
  221. package/src/models/operations/like-post.ts +29 -0
  222. package/src/models/operations/unlike-post.ts +31 -0
  223. package/src/models/paginated-comments-response.ts +38 -0
  224. package/src/models/paginated-followers-response.ts +38 -0
  225. package/src/models/paginated-likes-response.ts +38 -0
  226. package/src/models/paginated-notifications-response.ts +38 -0
  227. package/src/models/unread-count-response.ts +32 -0
  228. package/src/models/user.ts +5 -0
  229. package/src/sdk/creators-discovery.ts +40 -0
  230. package/src/sdk/notifications.ts +55 -0
  231. package/src/sdk/posts.ts +102 -0
  232. package/src/sdk/sdk.ts +12 -0
  233. package/src/sdk/user-discovery.ts +64 -0
package/README.md CHANGED
@@ -159,6 +159,11 @@ run();
159
159
 
160
160
  * [getCreatorPosts](docs/sdks/creatortimelines/README.md#getcreatorposts) - Get a specific creator's timeline with pagination
161
161
 
162
+ ### [CreatorsDiscovery](docs/sdks/creatorsdiscovery/README.md)
163
+
164
+ * [getFeaturedCreators](docs/sdks/creatorsdiscovery/README.md#getfeaturedcreators) - Fetch a curated list of featured creators for the Guest Landing page
165
+ * [getTrendingCreators](docs/sdks/creatorsdiscovery/README.md#gettrendingcreators) - Fetch popular creators to discover in the sidebar
166
+
162
167
  ### [CustomCollections](docs/sdks/customcollections/README.md)
163
168
 
164
169
  * [getCollections](docs/sdks/customcollections/README.md#getcollections) - Get all collections created by the user
@@ -186,6 +191,12 @@ run();
186
191
  * [requestBannerUploadUrl](docs/sdks/me/README.md#requestbanneruploadurl) - Request a presigned URL to upload or replace the authenticated user's profile banner image
187
192
  * [confirmBannerUpload](docs/sdks/me/README.md#confirmbannerupload) - Confirm a completed banner upload and atomically update the user record
188
193
 
194
+ ### [Notifications](docs/sdks/notifications/README.md)
195
+
196
+ * [getNotifications](docs/sdks/notifications/README.md#getnotifications) - Fetch a paginated feed of notifications for the authenticated user
197
+ * [getUnreadNotificationCount](docs/sdks/notifications/README.md#getunreadnotificationcount) - Fetch the count of unread notifications for the authenticated user
198
+ * [markNotificationsAsRead](docs/sdks/notifications/README.md#marknotificationsasread) - Mark notifications as read
199
+
189
200
  ### [Posts](docs/sdks/posts/README.md)
190
201
 
191
202
  * [getFeed](docs/sdks/posts/README.md#getfeed) - Get the consolidated timeline feed with pagination
@@ -193,6 +204,12 @@ run();
193
204
  * [getPost](docs/sdks/posts/README.md#getpost) - Fetch a single post by ID, including all asset statuses
194
205
  * [updatePost](docs/sdks/posts/README.md#updatepost) - Publish or update a post
195
206
  * [deletePost](docs/sdks/posts/README.md#deletepost) - Delete a post and cascade-delete all associated assets from object storage
207
+ * [getPostLikes](docs/sdks/posts/README.md#getpostlikes) - Fetch the list of users who liked a post
208
+ * [likePost](docs/sdks/posts/README.md#likepost) - Like a post
209
+ * [unlikePost](docs/sdks/posts/README.md#unlikepost) - Unlike a post
210
+ * [getPostComments](docs/sdks/posts/README.md#getpostcomments) - Fetch paginated comments for a post
211
+ * [createComment](docs/sdks/posts/README.md#createcomment) - Add a comment to a post
212
+ * [deleteComment](docs/sdks/posts/README.md#deletecomment) - Delete a comment from a post
196
213
  * [getCollectionFeed](docs/sdks/posts/README.md#getcollectionfeed) - Get a timeline filtered strictly by members of this collection with pagination
197
214
 
198
215
  ### [Subscriptions](docs/sdks/subscriptions/README.md)
@@ -205,6 +222,10 @@ run();
205
222
  * [searchUsers](docs/sdks/userdiscovery/README.md#searchusers) - Search global user profiles
206
223
  * [getUserProfile](docs/sdks/userdiscovery/README.md#getuserprofile) - Retrieve user profile metadata
207
224
  * [getFollowing](docs/sdks/userdiscovery/README.md#getfollowing) - Get subscriptions list
225
+ * [getFollowers](docs/sdks/userdiscovery/README.md#getfollowers) - Fetch the authenticated user's paginated list of followers
226
+ * [getFollowerCount](docs/sdks/userdiscovery/README.md#getfollowercount) - Fetch the authenticated user's follower count
227
+ * [getUserFollowers](docs/sdks/userdiscovery/README.md#getuserfollowers) - Fetch a specific user's paginated list of followers
228
+ * [getUserFollowerCount](docs/sdks/userdiscovery/README.md#getuserfollowercount) - Fetch a specific user's follower count
208
229
 
209
230
  </details>
210
231
  <!-- End Available Resources and Operations [operations] -->
@@ -226,6 +247,8 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
226
247
 
227
248
  - [`authenticationLoginUser`](docs/sdks/authentication/README.md#loginuser) - Authenticate user and receive a token
228
249
  - [`authenticationRegisterUser`](docs/sdks/authentication/README.md#registeruser) - Register a new user
250
+ - [`creatorsDiscoveryGetFeaturedCreators`](docs/sdks/creatorsdiscovery/README.md#getfeaturedcreators) - Fetch a curated list of featured creators for the Guest Landing page
251
+ - [`creatorsDiscoveryGetTrendingCreators`](docs/sdks/creatorsdiscovery/README.md#gettrendingcreators) - Fetch popular creators to discover in the sidebar
229
252
  - [`creatorTimelinesGetCreatorPosts`](docs/sdks/creatortimelines/README.md#getcreatorposts) - Get a specific creator's timeline with pagination
230
253
  - [`customCollectionsAddCollectionMember`](docs/sdks/customcollections/README.md#addcollectionmember) - Add a user to a custom collection
231
254
  - [`customCollectionsCreateCollection`](docs/sdks/customcollections/README.md#createcollection) - Create a new custom grouping collection
@@ -242,15 +265,28 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
242
265
  - [`meRequestAvatarUploadUrl`](docs/sdks/me/README.md#requestavataruploadurl) - Request a presigned URL to upload or replace the authenticated user's avatar image
243
266
  - [`meRequestBannerUploadUrl`](docs/sdks/me/README.md#requestbanneruploadurl) - Request a presigned URL to upload or replace the authenticated user's profile banner image
244
267
  - [`meUpdateMe`](docs/sdks/me/README.md#updateme) - Update the authenticated user's profile text fields
268
+ - [`notificationsGetNotifications`](docs/sdks/notifications/README.md#getnotifications) - Fetch a paginated feed of notifications for the authenticated user
269
+ - [`notificationsGetUnreadNotificationCount`](docs/sdks/notifications/README.md#getunreadnotificationcount) - Fetch the count of unread notifications for the authenticated user
270
+ - [`notificationsMarkNotificationsAsRead`](docs/sdks/notifications/README.md#marknotificationsasread) - Mark notifications as read
271
+ - [`postsCreateComment`](docs/sdks/posts/README.md#createcomment) - Add a comment to a post
245
272
  - [`postsCreatePost`](docs/sdks/posts/README.md#createpost) - Initiate a new post: reserve asset slots and receive presigned upload URLs
273
+ - [`postsDeleteComment`](docs/sdks/posts/README.md#deletecomment) - Delete a comment from a post
246
274
  - [`postsDeletePost`](docs/sdks/posts/README.md#deletepost) - Delete a post and cascade-delete all associated assets from object storage
247
275
  - [`postsGetCollectionFeed`](docs/sdks/posts/README.md#getcollectionfeed) - Get a timeline filtered strictly by members of this collection with pagination
248
276
  - [`postsGetFeed`](docs/sdks/posts/README.md#getfeed) - Get the consolidated timeline feed with pagination
249
277
  - [`postsGetPost`](docs/sdks/posts/README.md#getpost) - Fetch a single post by ID, including all asset statuses
278
+ - [`postsGetPostComments`](docs/sdks/posts/README.md#getpostcomments) - Fetch paginated comments for a post
279
+ - [`postsGetPostLikes`](docs/sdks/posts/README.md#getpostlikes) - Fetch the list of users who liked a post
280
+ - [`postsLikePost`](docs/sdks/posts/README.md#likepost) - Like a post
281
+ - [`postsUnlikePost`](docs/sdks/posts/README.md#unlikepost) - Unlike a post
250
282
  - [`postsUpdatePost`](docs/sdks/posts/README.md#updatepost) - Publish or update a post
251
283
  - [`subscriptionsSubscribeToUser`](docs/sdks/subscriptions/README.md#subscribetouser) - Subscribe to a user's feed
252
284
  - [`subscriptionsUnsubscribeFromUser`](docs/sdks/subscriptions/README.md#unsubscribefromuser) - Unsubscribe from a user's feed
285
+ - [`userDiscoveryGetFollowerCount`](docs/sdks/userdiscovery/README.md#getfollowercount) - Fetch the authenticated user's follower count
286
+ - [`userDiscoveryGetFollowers`](docs/sdks/userdiscovery/README.md#getfollowers) - Fetch the authenticated user's paginated list of followers
253
287
  - [`userDiscoveryGetFollowing`](docs/sdks/userdiscovery/README.md#getfollowing) - Get subscriptions list
288
+ - [`userDiscoveryGetUserFollowerCount`](docs/sdks/userdiscovery/README.md#getuserfollowercount) - Fetch a specific user's follower count
289
+ - [`userDiscoveryGetUserFollowers`](docs/sdks/userdiscovery/README.md#getuserfollowers) - Fetch a specific user's paginated list of followers
254
290
  - [`userDiscoveryGetUserProfile`](docs/sdks/userdiscovery/README.md#getuserprofile) - Retrieve user profile metadata
255
291
  - [`userDiscoverySearchUsers`](docs/sdks/userdiscovery/README.md#searchusers) - Search global user profiles
256
292
 
@@ -408,7 +444,7 @@ The default server can be overridden globally by passing a URL to the `serverURL
408
444
  import { FankareSDK } from "openapi";
409
445
 
410
446
  const fankareSDK = new FankareSDK({
411
- serverURL: "http://localhost:5000/api/v1",
447
+ serverURL: "https://api.fankare.vip/api/v1",
412
448
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
413
449
  });
414
450
 
@@ -0,0 +1,14 @@
1
+ import { FankareSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FankareSDKError } from "../models/errors/fankare-sdk-error.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
5
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
+ import * as models from "../models/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Fetch a curated list of featured creators for the Guest Landing page
12
+ */
13
+ export declare function creatorsDiscoveryGetFeaturedCreators(client: FankareSDKCore, limit?: number | undefined, options?: RequestOptions): APIPromise<Result<Array<models.User>, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=creators-discovery-get-featured-creators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creators-discovery-get-featured-creators.d.ts","sourceRoot":"","sources":["../../src/funcs/creators-discovery-get-featured-creators.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,cAAc,EACtB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAChB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 5df7ef70b4ea
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { encodeFormQuery } 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 curated list of featured creators for the Guest Landing page
18
+ */
19
+ export function creatorsDiscoveryGetFeaturedCreators(client, limit, options) {
20
+ return new APIPromise($do(client, limit, options));
21
+ }
22
+ async function $do(client, limit, options) {
23
+ const input = {
24
+ limit: limit,
25
+ };
26
+ const parsed = safeParse(input, (value) => z.parse(z.optional(operations.GetFeaturedCreatorsRequest$outboundSchema), value), "Input validation failed");
27
+ if (!parsed.ok) {
28
+ return [parsed, { status: "invalid" }];
29
+ }
30
+ const payload = parsed.value;
31
+ const body = null;
32
+ const path = pathToFunc("/creators/featured")();
33
+ const query = encodeFormQuery({
34
+ "limit": payload?.limit,
35
+ });
36
+ const headers = new Headers(compactMap({
37
+ Accept: "application/json",
38
+ }));
39
+ const secConfig = await extractSecurity(client._options.bearerAuth);
40
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
41
+ const requestSecurity = resolveGlobalSecurity(securityInput);
42
+ const context = {
43
+ options: client._options,
44
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45
+ operationID: "getFeaturedCreators",
46
+ oAuth2Scopes: null,
47
+ resolvedSecurity: requestSecurity,
48
+ securitySource: client._options.bearerAuth,
49
+ retryConfig: options?.retries
50
+ || client._options.retryConfig
51
+ || { strategy: "none" },
52
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
53
+ };
54
+ const requestRes = client._createRequest(context, {
55
+ security: requestSecurity,
56
+ method: "GET",
57
+ baseURL: options?.serverURL,
58
+ path: path,
59
+ headers: headers,
60
+ query: query,
61
+ body: body,
62
+ userAgent: client._options.userAgent,
63
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
64
+ }, options);
65
+ if (!requestRes.ok) {
66
+ return [requestRes, { status: "invalid" }];
67
+ }
68
+ const req = requestRes.value;
69
+ const doResult = await client._do(req, {
70
+ context,
71
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
72
+ retryConfig: context.retryConfig,
73
+ retryCodes: context.retryCodes,
74
+ });
75
+ if (!doResult.ok) {
76
+ return [doResult, { status: "request-error", request: req }];
77
+ }
78
+ const response = doResult.value;
79
+ const [result] = await M.match(M.json(200, z.array(models.User$inboundSchema)), M.fail("4XX"), M.fail("5XX"))(response, req);
80
+ if (!result.ok) {
81
+ return [result, { status: "complete", request: req, response }];
82
+ }
83
+ return [result, { status: "complete", request: req, response }];
84
+ }
85
+ //# sourceMappingURL=creators-discovery-get-featured-creators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creators-discovery-get-featured-creators.js","sourceRoot":"","sources":["../../src/funcs/creators-discovery-get-featured-creators.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD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Ae,CAAC,EAAE,MAAM,EAAE,UAAU,EAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACrE,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAC/C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -0,0 +1,14 @@
1
+ import { FankareSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FankareSDKError } from "../models/errors/fankare-sdk-error.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
5
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
+ import * as models from "../models/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Fetch popular creators to discover in the sidebar
12
+ */
13
+ export declare function creatorsDiscoveryGetTrendingCreators(client: FankareSDKCore, limit?: number | undefined, options?: RequestOptions): APIPromise<Result<Array<models.User>, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=creators-discovery-get-trending-creators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creators-discovery-get-trending-creators.d.ts","sourceRoot":"","sources":["../../src/funcs/creators-discovery-get-trending-creators.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,cAAc,EACtB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAChB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,85 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 14624243179a
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { encodeFormQuery } 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 popular creators to discover in the sidebar
18
+ */
19
+ export function creatorsDiscoveryGetTrendingCreators(client, limit, options) {
20
+ return new APIPromise($do(client, limit, options));
21
+ }
22
+ async function $do(client, limit, options) {
23
+ const input = {
24
+ limit: limit,
25
+ };
26
+ const parsed = safeParse(input, (value) => z.parse(z.optional(operations.GetTrendingCreatorsRequest$outboundSchema), value), "Input validation failed");
27
+ if (!parsed.ok) {
28
+ return [parsed, { status: "invalid" }];
29
+ }
30
+ const payload = parsed.value;
31
+ const body = null;
32
+ const path = pathToFunc("/creators/trending")();
33
+ const query = encodeFormQuery({
34
+ "limit": payload?.limit,
35
+ });
36
+ const headers = new Headers(compactMap({
37
+ Accept: "application/json",
38
+ }));
39
+ const secConfig = await extractSecurity(client._options.bearerAuth);
40
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
41
+ const requestSecurity = resolveGlobalSecurity(securityInput);
42
+ const context = {
43
+ options: client._options,
44
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45
+ operationID: "getTrendingCreators",
46
+ oAuth2Scopes: null,
47
+ resolvedSecurity: requestSecurity,
48
+ securitySource: client._options.bearerAuth,
49
+ retryConfig: options?.retries
50
+ || client._options.retryConfig
51
+ || { strategy: "none" },
52
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
53
+ };
54
+ const requestRes = client._createRequest(context, {
55
+ security: requestSecurity,
56
+ method: "GET",
57
+ baseURL: options?.serverURL,
58
+ path: path,
59
+ headers: headers,
60
+ query: query,
61
+ body: body,
62
+ userAgent: client._options.userAgent,
63
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
64
+ }, options);
65
+ if (!requestRes.ok) {
66
+ return [requestRes, { status: "invalid" }];
67
+ }
68
+ const req = requestRes.value;
69
+ const doResult = await client._do(req, {
70
+ context,
71
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
72
+ retryConfig: context.retryConfig,
73
+ retryCodes: context.retryCodes,
74
+ });
75
+ if (!doResult.ok) {
76
+ return [doResult, { status: "request-error", request: req }];
77
+ }
78
+ const response = doResult.value;
79
+ const [result] = await M.match(M.json(200, z.array(models.User$inboundSchema)), M.fail([401, "4XX"]), M.fail("5XX"))(response, req);
80
+ if (!result.ok) {
81
+ return [result, { status: "complete", request: req, response }];
82
+ }
83
+ return [result, { status: "complete", request: req, response }];
84
+ }
85
+ //# sourceMappingURL=creators-discovery-get-trending-creators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"creators-discovery-get-trending-creators.js","sourceRoot":"","sources":["../../src/funcs/creators-discovery-get-trending-creators.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,e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 -0,0 +1,14 @@
1
+ import { FankareSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FankareSDKError } from "../models/errors/fankare-sdk-error.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
5
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
+ import * as models from "../models/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Fetch a paginated feed of notifications for the authenticated user
12
+ */
13
+ export declare function notificationsGetNotifications(client: FankareSDKCore, limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): APIPromise<Result<models.PaginatedNotificationsResponse, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=notifications-get-notifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications-get-notifications.d.ts","sourceRoot":"","sources":["../../src/funcs/notifications-get-notifications.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,cAAc,EACtB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,8BAA8B,EACnC,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
@@ -0,0 +1,87 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: b2173f24802d
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { encodeFormQuery } 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 paginated feed of notifications for the authenticated user
18
+ */
19
+ export function notificationsGetNotifications(client, limit, cursor, options) {
20
+ return new APIPromise($do(client, limit, cursor, options));
21
+ }
22
+ async function $do(client, limit, cursor, options) {
23
+ const input = {
24
+ limit: limit,
25
+ cursor: cursor,
26
+ };
27
+ const parsed = safeParse(input, (value) => z.parse(z.optional(operations.GetNotificationsRequest$outboundSchema), value), "Input validation failed");
28
+ if (!parsed.ok) {
29
+ return [parsed, { status: "invalid" }];
30
+ }
31
+ const payload = parsed.value;
32
+ const body = null;
33
+ const path = pathToFunc("/notifications")();
34
+ const query = encodeFormQuery({
35
+ "cursor": payload?.cursor,
36
+ "limit": payload?.limit,
37
+ });
38
+ const headers = new Headers(compactMap({
39
+ Accept: "application/json",
40
+ }));
41
+ const secConfig = await extractSecurity(client._options.bearerAuth);
42
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
43
+ const requestSecurity = resolveGlobalSecurity(securityInput);
44
+ const context = {
45
+ options: client._options,
46
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
47
+ operationID: "getNotifications",
48
+ oAuth2Scopes: null,
49
+ resolvedSecurity: requestSecurity,
50
+ securitySource: client._options.bearerAuth,
51
+ retryConfig: options?.retries
52
+ || client._options.retryConfig
53
+ || { strategy: "none" },
54
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
55
+ };
56
+ const requestRes = client._createRequest(context, {
57
+ security: requestSecurity,
58
+ method: "GET",
59
+ baseURL: options?.serverURL,
60
+ path: path,
61
+ headers: headers,
62
+ query: query,
63
+ body: body,
64
+ userAgent: client._options.userAgent,
65
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
66
+ }, options);
67
+ if (!requestRes.ok) {
68
+ return [requestRes, { status: "invalid" }];
69
+ }
70
+ const req = requestRes.value;
71
+ const doResult = await client._do(req, {
72
+ context,
73
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
74
+ retryConfig: context.retryConfig,
75
+ retryCodes: context.retryCodes,
76
+ });
77
+ if (!doResult.ok) {
78
+ return [doResult, { status: "request-error", request: req }];
79
+ }
80
+ const response = doResult.value;
81
+ const [result] = await M.match(M.json(200, models.PaginatedNotificationsResponse$inboundSchema), M.fail([401, "4XX"]), M.fail("5XX"))(response, req);
82
+ if (!result.ok) {
83
+ return [result, { status: "complete", request: req, response }];
84
+ }
85
+ return [result, { status: "complete", request: req, response }];
86
+ }
87
+ //# sourceMappingURL=notifications-get-notifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications-get-notifications.js","sourceRoot":"","sources":["../../src/funcs/notifications-get-notifications.ts"],"names":[],"mappings":"A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,KAAK,CAAC,CAAC,EACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -0,0 +1,14 @@
1
+ import { FankareSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FankareSDKError } from "../models/errors/fankare-sdk-error.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
5
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
+ import * as models from "../models/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Fetch the count of unread notifications for the authenticated user
12
+ */
13
+ export declare function notificationsGetUnreadNotificationCount(client: FankareSDKCore, options?: RequestOptions): APIPromise<Result<models.UnreadCountResponse, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=notifications-get-unread-notification-count.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications-get-unread-notification-count.d.ts","sourceRoot":"","sources":["../../src/funcs/notifications-get-unread-notification-count.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAI5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,mBAAmB,EACxB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7c2db9b8f95f
4
+ */
5
+ import { matchStatusCode } from "../lib/http.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
9
+ import { pathToFunc } from "../lib/url.js";
10
+ import * as models from "../models/index.js";
11
+ import { APIPromise } from "../types/async.js";
12
+ /**
13
+ * Fetch the count of unread notifications for the authenticated user
14
+ */
15
+ export function notificationsGetUnreadNotificationCount(client, options) {
16
+ return new APIPromise($do(client, options));
17
+ }
18
+ async function $do(client, options) {
19
+ const path = pathToFunc("/notifications/unread-count")();
20
+ const headers = new Headers(compactMap({
21
+ Accept: "application/json",
22
+ }));
23
+ const secConfig = await extractSecurity(client._options.bearerAuth);
24
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
25
+ const requestSecurity = resolveGlobalSecurity(securityInput);
26
+ const context = {
27
+ options: client._options,
28
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
29
+ operationID: "getUnreadNotificationCount",
30
+ oAuth2Scopes: null,
31
+ resolvedSecurity: requestSecurity,
32
+ securitySource: client._options.bearerAuth,
33
+ retryConfig: options?.retries
34
+ || client._options.retryConfig
35
+ || { strategy: "none" },
36
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
37
+ };
38
+ const requestRes = client._createRequest(context, {
39
+ security: requestSecurity,
40
+ method: "GET",
41
+ baseURL: options?.serverURL,
42
+ path: path,
43
+ headers: headers,
44
+ userAgent: client._options.userAgent,
45
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
46
+ }, options);
47
+ if (!requestRes.ok) {
48
+ return [requestRes, { status: "invalid" }];
49
+ }
50
+ const req = requestRes.value;
51
+ const doResult = await client._do(req, {
52
+ context,
53
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
54
+ retryConfig: context.retryConfig,
55
+ retryCodes: context.retryCodes,
56
+ });
57
+ if (!doResult.ok) {
58
+ return [doResult, { status: "request-error", request: req }];
59
+ }
60
+ const response = doResult.value;
61
+ const [result] = await M.match(M.json(200, models.UnreadCountResponse$inboundSchema), M.fail([401, "4XX"]), M.fail("5XX"))(response, req);
62
+ if (!result.ok) {
63
+ return [result, { status: "complete", request: req, response }];
64
+ }
65
+ return [result, { status: "complete", request: req, response }];
66
+ }
67
+ //# sourceMappingURL=notifications-get-unread-notification-count.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications-get-unread-notification-count.js","sourceRoot":"","sources":["../../src/funcs/notifications-get-unread-notification-count.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB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AK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACrD,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,EACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -0,0 +1,14 @@
1
+ import { FankareSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { FankareSDKError } from "../models/errors/fankare-sdk-error.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
5
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
6
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
7
+ import * as models from "../models/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Mark notifications as read
12
+ */
13
+ export declare function notificationsMarkNotificationsAsRead(client: FankareSDKCore, request: models.MarkNotificationsReadRequest, options?: RequestOptions): APIPromise<Result<void, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=notifications-mark-notifications-as-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications-mark-notifications-as-read.d.ts","sourceRoot":"","sources":["../../src/funcs/notifications-mark-notifications-as-read.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,MAAM,CAAC,4BAA4B,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,IAAI,EACF,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}