@aurora-interactive/fankare-api-sdk 0.0.2 → 0.0.4

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 (195) hide show
  1. package/FUNCTIONS.md +2 -0
  2. package/README.md +32 -20
  3. package/esm/funcs/creator-timelines-get-creator-posts.d.ts +2 -5
  4. package/esm/funcs/creator-timelines-get-creator-posts.d.ts.map +1 -1
  5. package/esm/funcs/creator-timelines-get-creator-posts.js +7 -8
  6. package/esm/funcs/creator-timelines-get-creator-posts.js.map +1 -1
  7. package/esm/funcs/custom-collections-add-collection-member.d.ts +14 -0
  8. package/esm/funcs/custom-collections-add-collection-member.d.ts.map +1 -0
  9. package/esm/funcs/custom-collections-add-collection-member.js +88 -0
  10. package/esm/funcs/custom-collections-add-collection-member.js.map +1 -0
  11. package/esm/funcs/custom-collections-create-collection.d.ts +15 -0
  12. package/esm/funcs/custom-collections-create-collection.d.ts.map +1 -0
  13. package/esm/funcs/custom-collections-create-collection.js +79 -0
  14. package/esm/funcs/custom-collections-create-collection.js.map +1 -0
  15. package/esm/funcs/custom-collections-get-collection-members.d.ts +14 -0
  16. package/esm/funcs/custom-collections-get-collection-members.d.ts.map +1 -0
  17. package/esm/funcs/custom-collections-get-collection-members.js +87 -0
  18. package/esm/funcs/custom-collections-get-collection-members.js.map +1 -0
  19. package/esm/funcs/custom-collections-get-collections.d.ts +14 -0
  20. package/esm/funcs/custom-collections-get-collections.d.ts.map +1 -0
  21. package/esm/funcs/custom-collections-get-collections.js +68 -0
  22. package/esm/funcs/custom-collections-get-collections.js.map +1 -0
  23. package/esm/funcs/custom-collections-remove-collection-member.d.ts +13 -0
  24. package/esm/funcs/custom-collections-remove-collection-member.d.ts.map +1 -0
  25. package/esm/funcs/custom-collections-remove-collection-member.js +91 -0
  26. package/esm/funcs/custom-collections-remove-collection-member.js.map +1 -0
  27. package/esm/funcs/direct-messaging-get-conversations.d.ts +0 -3
  28. package/esm/funcs/direct-messaging-get-conversations.d.ts.map +1 -1
  29. package/esm/funcs/direct-messaging-get-conversations.js +0 -3
  30. package/esm/funcs/direct-messaging-get-conversations.js.map +1 -1
  31. package/esm/funcs/direct-messaging-get-message-history.d.ts +3 -3
  32. package/esm/funcs/direct-messaging-get-message-history.d.ts.map +1 -1
  33. package/esm/funcs/direct-messaging-get-message-history.js +13 -7
  34. package/esm/funcs/direct-messaging-get-message-history.js.map +1 -1
  35. package/esm/funcs/posts-create-post.d.ts +0 -3
  36. package/esm/funcs/posts-create-post.d.ts.map +1 -1
  37. package/esm/funcs/posts-create-post.js +0 -3
  38. package/esm/funcs/posts-create-post.js.map +1 -1
  39. package/esm/funcs/posts-get-collection-feed.d.ts +14 -0
  40. package/esm/funcs/posts-get-collection-feed.d.ts.map +1 -0
  41. package/esm/funcs/posts-get-collection-feed.js +94 -0
  42. package/esm/funcs/posts-get-collection-feed.js.map +1 -0
  43. package/esm/funcs/posts-get-feed.d.ts +3 -6
  44. package/esm/funcs/posts-get-feed.d.ts.map +1 -1
  45. package/esm/funcs/posts-get-feed.js +3 -5
  46. package/esm/funcs/posts-get-feed.js.map +1 -1
  47. package/esm/funcs/user-discovery-get-following.d.ts +0 -3
  48. package/esm/funcs/user-discovery-get-following.d.ts.map +1 -1
  49. package/esm/funcs/user-discovery-get-following.js +0 -3
  50. package/esm/funcs/user-discovery-get-following.js.map +1 -1
  51. package/esm/funcs/user-discovery-get-user-profile.d.ts +0 -3
  52. package/esm/funcs/user-discovery-get-user-profile.d.ts.map +1 -1
  53. package/esm/funcs/user-discovery-get-user-profile.js +0 -3
  54. package/esm/funcs/user-discovery-get-user-profile.js.map +1 -1
  55. package/esm/funcs/user-discovery-search-users.d.ts +0 -3
  56. package/esm/funcs/user-discovery-search-users.d.ts.map +1 -1
  57. package/esm/funcs/user-discovery-search-users.js +0 -3
  58. package/esm/funcs/user-discovery-search-users.js.map +1 -1
  59. package/esm/lib/config.d.ts +2 -2
  60. package/esm/lib/config.js +2 -2
  61. package/esm/models/collection.d.ts +12 -0
  62. package/esm/models/collection.d.ts.map +1 -0
  63. package/esm/models/collection.js +18 -0
  64. package/esm/models/collection.js.map +1 -0
  65. package/esm/models/conversation.d.ts +0 -3
  66. package/esm/models/conversation.d.ts.map +1 -1
  67. package/esm/models/conversation.js.map +1 -1
  68. package/esm/models/index.d.ts +2 -1
  69. package/esm/models/index.d.ts.map +1 -1
  70. package/esm/models/index.js +2 -1
  71. package/esm/models/index.js.map +1 -1
  72. package/esm/models/operations/add-collection-member.d.ts +24 -0
  73. package/esm/models/operations/add-collection-member.d.ts.map +1 -0
  74. package/esm/models/operations/add-collection-member.js +21 -0
  75. package/esm/models/operations/add-collection-member.js.map +1 -0
  76. package/esm/models/operations/create-collection.d.ts +12 -0
  77. package/esm/models/operations/create-collection.d.ts.map +1 -0
  78. package/esm/models/operations/create-collection.js +13 -0
  79. package/esm/models/operations/create-collection.js.map +1 -0
  80. package/esm/models/operations/create-post.d.ts +1 -1
  81. package/esm/models/operations/get-collection-feed.d.ts +19 -0
  82. package/esm/models/operations/get-collection-feed.d.ts.map +1 -0
  83. package/esm/models/operations/get-collection-feed.js +15 -0
  84. package/esm/models/operations/get-collection-feed.js.map +1 -0
  85. package/esm/models/operations/get-collection-members.d.ts +12 -0
  86. package/esm/models/operations/get-collection-members.d.ts.map +1 -0
  87. package/esm/models/operations/get-collection-members.js +13 -0
  88. package/esm/models/operations/get-collection-members.js.map +1 -0
  89. package/esm/models/operations/get-creator-posts.d.ts +5 -0
  90. package/esm/models/operations/get-creator-posts.d.ts.map +1 -1
  91. package/esm/models/operations/get-creator-posts.js +1 -0
  92. package/esm/models/operations/get-creator-posts.js.map +1 -1
  93. package/esm/models/operations/get-feed.d.ts +3 -13
  94. package/esm/models/operations/get-feed.d.ts.map +1 -1
  95. package/esm/models/operations/get-feed.js +0 -11
  96. package/esm/models/operations/get-feed.js.map +1 -1
  97. package/esm/models/operations/get-message-history.d.ts +20 -0
  98. package/esm/models/operations/get-message-history.d.ts.map +1 -1
  99. package/esm/models/operations/get-message-history.js +13 -0
  100. package/esm/models/operations/get-message-history.js.map +1 -1
  101. package/esm/models/operations/index.d.ts +5 -5
  102. package/esm/models/operations/index.d.ts.map +1 -1
  103. package/esm/models/operations/index.js +5 -5
  104. package/esm/models/operations/index.js.map +1 -1
  105. package/esm/models/operations/remove-collection-member.d.ts +14 -0
  106. package/esm/models/operations/remove-collection-member.d.ts.map +1 -0
  107. package/esm/models/operations/remove-collection-member.js +14 -0
  108. package/esm/models/operations/remove-collection-member.js.map +1 -0
  109. package/esm/models/paginated-posts-response.d.ts +15 -0
  110. package/esm/models/paginated-posts-response.d.ts.map +1 -0
  111. package/esm/models/paginated-posts-response.js +17 -0
  112. package/esm/models/paginated-posts-response.js.map +1 -0
  113. package/esm/models/register-request.d.ts +4 -2
  114. package/esm/models/register-request.d.ts.map +1 -1
  115. package/esm/models/register-request.js +2 -1
  116. package/esm/models/register-request.js.map +1 -1
  117. package/esm/models/user-profile.d.ts +0 -1
  118. package/esm/models/user-profile.d.ts.map +1 -1
  119. package/esm/models/user-profile.js +0 -1
  120. package/esm/models/user-profile.js.map +1 -1
  121. package/esm/models/user.d.ts +32 -0
  122. package/esm/models/user.d.ts.map +1 -1
  123. package/esm/models/user.js +16 -0
  124. package/esm/models/user.js.map +1 -1
  125. package/esm/sdk/creator-timelines.d.ts +2 -5
  126. package/esm/sdk/creator-timelines.d.ts.map +1 -1
  127. package/esm/sdk/creator-timelines.js +3 -6
  128. package/esm/sdk/creator-timelines.js.map +1 -1
  129. package/esm/sdk/custom-collections.d.ts +26 -0
  130. package/esm/sdk/custom-collections.d.ts.map +1 -0
  131. package/esm/sdk/custom-collections.js +44 -0
  132. package/esm/sdk/custom-collections.js.map +1 -0
  133. package/esm/sdk/direct-messaging.d.ts +3 -5
  134. package/esm/sdk/direct-messaging.d.ts.map +1 -1
  135. package/esm/sdk/direct-messaging.js +3 -6
  136. package/esm/sdk/direct-messaging.js.map +1 -1
  137. package/esm/sdk/posts.d.ts +4 -10
  138. package/esm/sdk/posts.d.ts.map +1 -1
  139. package/esm/sdk/posts.js +5 -11
  140. package/esm/sdk/posts.js.map +1 -1
  141. package/esm/sdk/sdk.d.ts +3 -3
  142. package/esm/sdk/sdk.d.ts.map +1 -1
  143. package/esm/sdk/sdk.js +4 -4
  144. package/esm/sdk/sdk.js.map +1 -1
  145. package/esm/sdk/user-discovery.d.ts +0 -9
  146. package/esm/sdk/user-discovery.d.ts.map +1 -1
  147. package/esm/sdk/user-discovery.js +0 -9
  148. package/esm/sdk/user-discovery.js.map +1 -1
  149. package/examples/authenticationRegisterUser.example.ts +2 -0
  150. package/jsr.json +1 -1
  151. package/package.json +1 -1
  152. package/src/funcs/creator-timelines-get-creator-posts.ts +10 -8
  153. package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts} +15 -14
  154. package/src/funcs/{custom-lists-create-list.ts → custom-collections-create-collection.ts} +13 -12
  155. package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts} +13 -12
  156. package/src/funcs/{custom-lists-get-lists.ts → custom-collections-get-collections.ts} +9 -9
  157. package/src/funcs/{custom-lists-remove-list-member.ts → custom-collections-remove-collection-member.ts} +12 -12
  158. package/src/funcs/direct-messaging-get-conversations.ts +0 -3
  159. package/src/funcs/direct-messaging-get-message-history.ts +20 -7
  160. package/src/funcs/posts-create-post.ts +0 -3
  161. package/src/funcs/{posts-get-list-feed.ts → posts-get-collection-feed.ts} +22 -16
  162. package/src/funcs/posts-get-feed.ts +6 -8
  163. package/src/funcs/user-discovery-get-following.ts +0 -3
  164. package/src/funcs/user-discovery-get-user-profile.ts +0 -3
  165. package/src/funcs/user-discovery-search-users.ts +0 -3
  166. package/src/lib/config.ts +2 -2
  167. package/src/models/{custom-list.ts → collection.ts} +7 -7
  168. package/src/models/conversation.ts +0 -3
  169. package/src/models/index.ts +2 -1
  170. package/src/models/operations/add-collection-member.ts +61 -0
  171. package/src/models/operations/create-collection.ts +31 -0
  172. package/src/models/operations/create-post.ts +1 -1
  173. package/src/models/operations/get-collection-feed.ts +40 -0
  174. package/src/models/operations/get-collection-members.ts +33 -0
  175. package/src/models/operations/get-creator-posts.ts +6 -0
  176. package/src/models/operations/get-feed.ts +3 -32
  177. package/src/models/operations/get-message-history.ts +41 -0
  178. package/src/models/operations/index.ts +5 -5
  179. package/src/models/operations/remove-collection-member.ts +36 -0
  180. package/src/models/paginated-posts-response.ts +38 -0
  181. package/src/models/register-request.ts +6 -3
  182. package/src/models/user-profile.ts +0 -2
  183. package/src/models/user.ts +46 -0
  184. package/src/sdk/creator-timelines.ts +4 -5
  185. package/src/sdk/custom-collections.ts +88 -0
  186. package/src/sdk/direct-messaging.ts +7 -5
  187. package/src/sdk/posts.ts +11 -15
  188. package/src/sdk/sdk.ts +4 -4
  189. package/src/sdk/user-discovery.ts +0 -9
  190. package/src/models/operations/add-list-member.ts +0 -59
  191. package/src/models/operations/create-list.ts +0 -31
  192. package/src/models/operations/get-list-feed.ts +0 -34
  193. package/src/models/operations/get-list-members.ts +0 -31
  194. package/src/models/operations/remove-list-member.ts +0 -34
  195. package/src/sdk/custom-lists.ts +0 -88
package/FUNCTIONS.md CHANGED
@@ -31,7 +31,9 @@ const fankareSDK = new FankareSDKCore({
31
31
  async function run() {
32
32
  const res = await authenticationRegisterUser(fankareSDK, {
33
33
  username: "Nicklaus67",
34
+ email: "Erick_McClure81@hotmail.com",
34
35
  password: "4rmpu4fcbiqyYPN",
36
+ displayName: "Abbey80",
35
37
  });
36
38
  if (res.ok) {
37
39
  const { value: result } = res;
package/README.md CHANGED
@@ -13,7 +13,7 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
13
13
  <!-- Start Summary [summary] -->
14
14
  ## Summary
15
15
 
16
- Multimedia Social Platform API: REST API for a self-hosted, multimedia-focused social platform with flat user groupings, subscription-based feeds, direct messaging, and carousel posts.
16
+ Fankare Multimedia Social Platform API: The inner circle for creators and their biggest fans.
17
17
  <!-- End Summary [summary] -->
18
18
 
19
19
  <!-- Start Table of Contents [toc] -->
@@ -96,7 +96,9 @@ const fankareSDK = new FankareSDK({
96
96
  async function run() {
97
97
  const result = await fankareSDK.authentication.registerUser({
98
98
  username: "Nicklaus67",
99
+ email: "Erick_McClure81@hotmail.com",
99
100
  password: "4rmpu4fcbiqyYPN",
101
+ displayName: "Abbey80",
100
102
  });
101
103
 
102
104
  console.log(result);
@@ -129,7 +131,9 @@ const fankareSDK = new FankareSDK({
129
131
  async function run() {
130
132
  const result = await fankareSDK.authentication.registerUser({
131
133
  username: "Nicklaus67",
134
+ email: "Erick_McClure81@hotmail.com",
132
135
  password: "4rmpu4fcbiqyYPN",
136
+ displayName: "Abbey80",
133
137
  });
134
138
 
135
139
  console.log(result);
@@ -153,27 +157,27 @@ run();
153
157
 
154
158
  ### [CreatorTimelines](docs/sdks/creatortimelines/README.md)
155
159
 
156
- * [getCreatorPosts](docs/sdks/creatortimelines/README.md#getcreatorposts) - Get a specific creator's timeline
160
+ * [getCreatorPosts](docs/sdks/creatortimelines/README.md#getcreatorposts) - Get a specific creator's timeline with pagination
157
161
 
158
- ### [CustomLists](docs/sdks/customlists/README.md)
162
+ ### [CustomCollections](docs/sdks/customcollections/README.md)
159
163
 
160
- * [getLists](docs/sdks/customlists/README.md#getlists) - Get all custom lists created by the user
161
- * [createList](docs/sdks/customlists/README.md#createlist) - Create a new custom grouping list
162
- * [getListMembers](docs/sdks/customlists/README.md#getlistmembers) - Get all members belonging to a custom list
163
- * [addListMember](docs/sdks/customlists/README.md#addlistmember) - Add a user to a custom list
164
- * [removeListMember](docs/sdks/customlists/README.md#removelistmember) - Remove a user from a custom list
164
+ * [getCollections](docs/sdks/customcollections/README.md#getcollections) - Get all collections created by the user
165
+ * [createCollection](docs/sdks/customcollections/README.md#createcollection) - Create a new custom grouping collection
166
+ * [getCollectionMembers](docs/sdks/customcollections/README.md#getcollectionmembers) - Get all members belonging to a custom collection
167
+ * [addCollectionMember](docs/sdks/customcollections/README.md#addcollectionmember) - Add a user to a custom collection
168
+ * [removeCollectionMember](docs/sdks/customcollections/README.md#removecollectionmember) - Remove a user from a custom collection
165
169
 
166
170
  ### [DirectMessaging](docs/sdks/directmessaging/README.md)
167
171
 
168
172
  * [getConversations](docs/sdks/directmessaging/README.md#getconversations) - Fetch active DM threads
169
- * [getMessageHistory](docs/sdks/directmessaging/README.md#getmessagehistory) - Load message history with a specific creator
173
+ * [getMessageHistory](docs/sdks/directmessaging/README.md#getmessagehistory) - Load message history with a specific user with pagination
170
174
  * [sendMessage](docs/sdks/directmessaging/README.md#sendmessage) - Send a direct text message
171
175
 
172
176
  ### [Posts](docs/sdks/posts/README.md)
173
177
 
174
- * [getFeed](docs/sdks/posts/README.md#getfeed) - Get the consolidated timeline feed
178
+ * [getFeed](docs/sdks/posts/README.md#getfeed) - Get the consolidated timeline feed with pagination
175
179
  * [createPost](docs/sdks/posts/README.md#createpost) - Create a post blueprint requesting batch upload slots
176
- * [getListFeed](docs/sdks/posts/README.md#getlistfeed) - Get a timeline filtered strictly by members of this list
180
+ * [getCollectionFeed](docs/sdks/posts/README.md#getcollectionfeed) - Get a timeline filtered strictly by members of this collection with pagination
177
181
 
178
182
  ### [Subscriptions](docs/sdks/subscriptions/README.md)
179
183
 
@@ -206,18 +210,18 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
206
210
 
207
211
  - [`authenticationLoginUser`](docs/sdks/authentication/README.md#loginuser) - Authenticate user and receive a token
208
212
  - [`authenticationRegisterUser`](docs/sdks/authentication/README.md#registeruser) - Register a new user
209
- - [`creatorTimelinesGetCreatorPosts`](docs/sdks/creatortimelines/README.md#getcreatorposts) - Get a specific creator's timeline
210
- - [`customListsAddListMember`](docs/sdks/customlists/README.md#addlistmember) - Add a user to a custom list
211
- - [`customListsCreateList`](docs/sdks/customlists/README.md#createlist) - Create a new custom grouping list
212
- - [`customListsGetListMembers`](docs/sdks/customlists/README.md#getlistmembers) - Get all members belonging to a custom list
213
- - [`customListsGetLists`](docs/sdks/customlists/README.md#getlists) - Get all custom lists created by the user
214
- - [`customListsRemoveListMember`](docs/sdks/customlists/README.md#removelistmember) - Remove a user from a custom list
213
+ - [`creatorTimelinesGetCreatorPosts`](docs/sdks/creatortimelines/README.md#getcreatorposts) - Get a specific creator's timeline with pagination
214
+ - [`customCollectionsAddCollectionMember`](docs/sdks/customcollections/README.md#addcollectionmember) - Add a user to a custom collection
215
+ - [`customCollectionsCreateCollection`](docs/sdks/customcollections/README.md#createcollection) - Create a new custom grouping collection
216
+ - [`customCollectionsGetCollectionMembers`](docs/sdks/customcollections/README.md#getcollectionmembers) - Get all members belonging to a custom collection
217
+ - [`customCollectionsGetCollections`](docs/sdks/customcollections/README.md#getcollections) - Get all collections created by the user
218
+ - [`customCollectionsRemoveCollectionMember`](docs/sdks/customcollections/README.md#removecollectionmember) - Remove a user from a custom collection
215
219
  - [`directMessagingGetConversations`](docs/sdks/directmessaging/README.md#getconversations) - Fetch active DM threads
216
- - [`directMessagingGetMessageHistory`](docs/sdks/directmessaging/README.md#getmessagehistory) - Load message history with a specific creator
220
+ - [`directMessagingGetMessageHistory`](docs/sdks/directmessaging/README.md#getmessagehistory) - Load message history with a specific user with pagination
217
221
  - [`directMessagingSendMessage`](docs/sdks/directmessaging/README.md#sendmessage) - Send a direct text message
218
222
  - [`postsCreatePost`](docs/sdks/posts/README.md#createpost) - Create a post blueprint requesting batch upload slots
219
- - [`postsGetFeed`](docs/sdks/posts/README.md#getfeed) - Get the consolidated timeline feed
220
- - [`postsGetListFeed`](docs/sdks/posts/README.md#getlistfeed) - Get a timeline filtered strictly by members of this list
223
+ - [`postsGetCollectionFeed`](docs/sdks/posts/README.md#getcollectionfeed) - Get a timeline filtered strictly by members of this collection with pagination
224
+ - [`postsGetFeed`](docs/sdks/posts/README.md#getfeed) - Get the consolidated timeline feed with pagination
221
225
  - [`subscriptionsSubscribeToUser`](docs/sdks/subscriptions/README.md#subscribetouser) - Subscribe to a user's feed
222
226
  - [`subscriptionsUnsubscribeFromUser`](docs/sdks/subscriptions/README.md#unsubscribefromuser) - Unsubscribe from a user's feed
223
227
  - [`userDiscoveryGetFollowing`](docs/sdks/userdiscovery/README.md#getfollowing) - Get subscriptions list
@@ -243,7 +247,9 @@ const fankareSDK = new FankareSDK({
243
247
  async function run() {
244
248
  const result = await fankareSDK.authentication.registerUser({
245
249
  username: "Nicklaus67",
250
+ email: "Erick_McClure81@hotmail.com",
246
251
  password: "4rmpu4fcbiqyYPN",
252
+ displayName: "Abbey80",
247
253
  }, {
248
254
  retries: {
249
255
  strategy: "backoff",
@@ -285,7 +291,9 @@ const fankareSDK = new FankareSDK({
285
291
  async function run() {
286
292
  const result = await fankareSDK.authentication.registerUser({
287
293
  username: "Nicklaus67",
294
+ email: "Erick_McClure81@hotmail.com",
288
295
  password: "4rmpu4fcbiqyYPN",
296
+ displayName: "Abbey80",
289
297
  });
290
298
 
291
299
  console.log(result);
@@ -322,7 +330,9 @@ async function run() {
322
330
  try {
323
331
  const result = await fankareSDK.authentication.registerUser({
324
332
  username: "Nicklaus67",
333
+ email: "Erick_McClure81@hotmail.com",
325
334
  password: "4rmpu4fcbiqyYPN",
335
+ displayName: "Abbey80",
326
336
  });
327
337
 
328
338
  console.log(result);
@@ -379,7 +389,9 @@ const fankareSDK = new FankareSDK({
379
389
  async function run() {
380
390
  const result = await fankareSDK.authentication.registerUser({
381
391
  username: "Nicklaus67",
392
+ email: "Erick_McClure81@hotmail.com",
382
393
  password: "4rmpu4fcbiqyYPN",
394
+ displayName: "Abbey80",
383
395
  });
384
396
 
385
397
  console.log(result);
@@ -8,10 +8,7 @@ import * as models from "../models/index.js";
8
8
  import { APIPromise } from "../types/async.js";
9
9
  import { Result } from "../types/fp.js";
10
10
  /**
11
- * Get a specific creator's timeline
12
- *
13
- * @remarks
14
- * Retrieves individual posts uploaded strictly by the requested user account.
11
+ * Get a specific creator's timeline with pagination
15
12
  */
16
- export declare function creatorTimelinesGetCreatorPosts(client: FankareSDKCore, userId: number, limit?: number | undefined, options?: RequestOptions): APIPromise<Result<Array<models.Post>, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
13
+ export declare function creatorTimelinesGetCreatorPosts(client: FankareSDKCore, userId: number, limit?: number | undefined, cursor?: string | undefined, options?: RequestOptions): APIPromise<Result<models.PaginatedPostsResponse, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
17
14
  //# sourceMappingURL=creator-timelines-get-creator-posts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"creator-timelines-get-creator-posts.d.ts","sourceRoot":"","sources":["../../src/funcs/creator-timelines-get-creator-posts.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;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,MAAM,EACd,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,CAOA"}
1
+ {"version":3,"file":"creator-timelines-get-creator-posts.d.ts","sourceRoot":"","sources":["../../src/funcs/creator-timelines-get-creator-posts.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,+BAA+B,CAC7C,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,MAAM,EACd,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,sBAAsB,EAC3B,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
@@ -14,18 +14,16 @@ import * as models from "../models/index.js";
14
14
  import * as operations from "../models/operations/index.js";
15
15
  import { APIPromise } from "../types/async.js";
16
16
  /**
17
- * Get a specific creator's timeline
18
- *
19
- * @remarks
20
- * Retrieves individual posts uploaded strictly by the requested user account.
17
+ * Get a specific creator's timeline with pagination
21
18
  */
22
- export function creatorTimelinesGetCreatorPosts(client, userId, limit, options) {
23
- return new APIPromise($do(client, userId, limit, options));
19
+ export function creatorTimelinesGetCreatorPosts(client, userId, limit, cursor, options) {
20
+ return new APIPromise($do(client, userId, limit, cursor, options));
24
21
  }
25
- async function $do(client, userId, limit, options) {
22
+ async function $do(client, userId, limit, cursor, options) {
26
23
  const input = {
27
24
  userId: userId,
28
25
  limit: limit,
26
+ cursor: cursor,
29
27
  };
30
28
  const parsed = safeParse(input, (value) => z.parse(operations.GetCreatorPostsRequest$outboundSchema, value), "Input validation failed");
31
29
  if (!parsed.ok) {
@@ -41,6 +39,7 @@ async function $do(client, userId, limit, options) {
41
39
  };
42
40
  const path = pathToFunc("/users/{userId}/posts")(pathParams);
43
41
  const query = encodeFormQuery({
42
+ "cursor": payload.cursor,
44
43
  "limit": payload.limit,
45
44
  });
46
45
  const headers = new Headers(compactMap({
@@ -86,7 +85,7 @@ async function $do(client, userId, limit, options) {
86
85
  return [doResult, { status: "request-error", request: req }];
87
86
  }
88
87
  const response = doResult.value;
89
- const [result] = await M.match(M.json(200, z.array(models.Post$inboundSchema)), M.fail("4XX"), M.fail("5XX"))(response, req);
88
+ const [result] = await M.match(M.json(200, models.PaginatedPostsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
90
89
  if (!result.ok) {
91
90
  return [result, { status: "complete", request: req, response }];
92
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"creator-timelines-get-creator-posts.js","sourceRoot":"","sources":["../../src/funcs/creator-timelines-get-creator-posts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gB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C,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"}
1
+ {"version":3,"file":"creator-timelines-get-creator-posts.js","sourceRoot":"","sources":["../../src/funcs/creator-timelines-get-creator-posts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACpE,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;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAC7C,MAAsB,EACtB,MAAc,EACd,KAA0B,EAC1B,MAA2B,EAC3B,OAAwB,EAaxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,MAAM,EACN,KAAK,EACL,MAAM,EACN,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,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,iBAAiB,EAAE,CAAC,UAAkB,EAAE,EAAE,CACxC,eAAe,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,MAAM,CAAC,oCAAoC,CAAC,EACxD,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 operations from "../models/operations/index.js";
8
+ import { APIPromise } from "../types/async.js";
9
+ import { Result } from "../types/fp.js";
10
+ /**
11
+ * Add a user to a custom collection
12
+ */
13
+ export declare function customCollectionsAddCollectionMember(client: FankareSDKCore, collectionId: number, body: operations.AddCollectionMemberRequestBody, options?: RequestOptions): APIPromise<Result<void, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=custom-collections-add-collection-member.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-collections-add-collection-member.d.ts","sourceRoot":"","sources":["../../src/funcs/custom-collections-add-collection-member.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,UAAU,MAAM,+BAA+B,CAAC;AAC5D,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,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,CAAC,8BAA8B,EAC/C,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,CAOA"}
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 09f25f5f8a76
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { APIPromise } from "../types/async.js";
15
+ /**
16
+ * Add a user to a custom collection
17
+ */
18
+ export function customCollectionsAddCollectionMember(client, collectionId, body, options) {
19
+ return new APIPromise($do(client, collectionId, body, options));
20
+ }
21
+ async function $do(client, collectionId, body, options) {
22
+ const input = {
23
+ collectionId: collectionId,
24
+ body: body,
25
+ };
26
+ const parsed = safeParse(input, (value) => z.parse(operations.AddCollectionMemberRequest$outboundSchema, value), "Input validation failed");
27
+ if (!parsed.ok) {
28
+ return [parsed, { status: "invalid" }];
29
+ }
30
+ const payload = parsed.value;
31
+ const body$ = encodeJSON("body", payload.body, { explode: true });
32
+ const pathParams = {
33
+ collectionId: encodeSimple("collectionId", payload.collectionId, {
34
+ explode: false,
35
+ charEncoding: "percent",
36
+ }),
37
+ };
38
+ const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
39
+ const headers = new Headers(compactMap({
40
+ "Content-Type": "application/json",
41
+ Accept: "*/*",
42
+ }));
43
+ const secConfig = await extractSecurity(client._options.bearerAuth);
44
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
45
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46
+ const context = {
47
+ options: client._options,
48
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
49
+ operationID: "addCollectionMember",
50
+ oAuth2Scopes: null,
51
+ resolvedSecurity: requestSecurity,
52
+ securitySource: client._options.bearerAuth,
53
+ retryConfig: options?.retries
54
+ || client._options.retryConfig
55
+ || { strategy: "none" },
56
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
57
+ };
58
+ const requestRes = client._createRequest(context, {
59
+ security: requestSecurity,
60
+ method: "POST",
61
+ baseURL: options?.serverURL,
62
+ path: path,
63
+ headers: headers,
64
+ body: body$,
65
+ userAgent: client._options.userAgent,
66
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
67
+ }, options);
68
+ if (!requestRes.ok) {
69
+ return [requestRes, { status: "invalid" }];
70
+ }
71
+ const req = requestRes.value;
72
+ const doResult = await client._do(req, {
73
+ context,
74
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
75
+ retryConfig: context.retryConfig,
76
+ retryCodes: context.retryCodes,
77
+ });
78
+ if (!doResult.ok) {
79
+ return [doResult, { status: "request-error", request: req }];
80
+ }
81
+ const response = doResult.value;
82
+ const [result] = await M.match(M.nil(204, z.void()), M.fail("4XX"), M.fail("5XX"))(response, req);
83
+ if (!result.ok) {
84
+ return [result, { status: "complete", request: req, response }];
85
+ }
86
+ return [result, { status: "complete", request: req, response }];
87
+ }
88
+ //# sourceMappingURL=custom-collections-add-collection-member.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-collections-add-collection-member.js","sourceRoot":"","sources":["../../src/funcs/custom-collections-add-collection-member.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KA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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,15 @@
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 * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Create a new custom grouping collection
13
+ */
14
+ export declare function customCollectionsCreateCollection(client: FankareSDKCore, request: operations.CreateCollectionRequest, options?: RequestOptions): APIPromise<Result<models.Collection, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
15
+ //# sourceMappingURL=custom-collections-create-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-collections-create-collection.d.ts","sourceRoot":"","sources":["../../src/funcs/custom-collections-create-collection.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,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,UAAU,EACf,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 802a176f4643
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { encodeJSON } 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
+ * Create a new custom grouping collection
18
+ */
19
+ export function customCollectionsCreateCollection(client, request, options) {
20
+ return new APIPromise($do(client, request, options));
21
+ }
22
+ async function $do(client, request, options) {
23
+ const parsed = safeParse(request, (value) => z.parse(operations.CreateCollectionRequest$outboundSchema, value), "Input validation failed");
24
+ if (!parsed.ok) {
25
+ return [parsed, { status: "invalid" }];
26
+ }
27
+ const payload = parsed.value;
28
+ const body = encodeJSON("body", payload, { explode: true });
29
+ const path = pathToFunc("/collections")();
30
+ const headers = new Headers(compactMap({
31
+ "Content-Type": "application/json",
32
+ Accept: "application/json",
33
+ }));
34
+ const secConfig = await extractSecurity(client._options.bearerAuth);
35
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
36
+ const requestSecurity = resolveGlobalSecurity(securityInput);
37
+ const context = {
38
+ options: client._options,
39
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40
+ operationID: "createCollection",
41
+ oAuth2Scopes: null,
42
+ resolvedSecurity: requestSecurity,
43
+ securitySource: client._options.bearerAuth,
44
+ retryConfig: options?.retries
45
+ || client._options.retryConfig
46
+ || { strategy: "none" },
47
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
48
+ };
49
+ const requestRes = client._createRequest(context, {
50
+ security: requestSecurity,
51
+ method: "POST",
52
+ baseURL: options?.serverURL,
53
+ path: path,
54
+ headers: headers,
55
+ body: body,
56
+ userAgent: client._options.userAgent,
57
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
58
+ }, options);
59
+ if (!requestRes.ok) {
60
+ return [requestRes, { status: "invalid" }];
61
+ }
62
+ const req = requestRes.value;
63
+ const doResult = await client._do(req, {
64
+ context,
65
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
66
+ retryConfig: context.retryConfig,
67
+ retryCodes: context.retryCodes,
68
+ });
69
+ if (!doResult.ok) {
70
+ return [doResult, { status: "request-error", request: req }];
71
+ }
72
+ const response = doResult.value;
73
+ const [result] = await M.match(M.json(201, models.Collection$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
74
+ if (!result.ok) {
75
+ return [result, { status: "complete", request: req, response }];
76
+ }
77
+ return [result, { status: "complete", request: req, response }];
78
+ }
79
+ //# sourceMappingURL=custom-collections-create-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-collections-create-collection.js","sourceRoot":"","sources":["../../src/funcs/custom-collections-create-collection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,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;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAC/C,MAAsB,EACtB,OAA2C,EAC3C,OAAwB,EAaxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAsB,EACtB,OAA2C,EAC3C,OAAwB,EAgBxB;IACA,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,sCAAsC,EAAE,KAAK,CAAC,EACnE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,O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AAE,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
+ * Get all members belonging to a custom collection
12
+ */
13
+ export declare function customCollectionsGetCollectionMembers(client: FankareSDKCore, collectionId: number, options?: RequestOptions): APIPromise<Result<Array<models.User>, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=custom-collections-get-collection-members.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-collections-get-collection-members.d.ts","sourceRoot":"","sources":["../../src/funcs/custom-collections-get-collection-members.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,qCAAqC,CACnD,MAAM,EAAE,cAAc,EACtB,YAAY,EAAE,MAAM,EACpB,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,87 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 7beb0dd706f2
4
+ */
5
+ import * as z from "zod/v4-mini";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as models from "../models/index.js";
14
+ import * as operations from "../models/operations/index.js";
15
+ import { APIPromise } from "../types/async.js";
16
+ /**
17
+ * Get all members belonging to a custom collection
18
+ */
19
+ export function customCollectionsGetCollectionMembers(client, collectionId, options) {
20
+ return new APIPromise($do(client, collectionId, options));
21
+ }
22
+ async function $do(client, collectionId, options) {
23
+ const input = {
24
+ collectionId: collectionId,
25
+ };
26
+ const parsed = safeParse(input, (value) => z.parse(operations.GetCollectionMembersRequest$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 pathParams = {
33
+ collectionId: encodeSimple("collectionId", payload.collectionId, {
34
+ explode: false,
35
+ charEncoding: "percent",
36
+ }),
37
+ };
38
+ const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
39
+ const headers = new Headers(compactMap({
40
+ Accept: "application/json",
41
+ }));
42
+ const secConfig = await extractSecurity(client._options.bearerAuth);
43
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
44
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45
+ const context = {
46
+ options: client._options,
47
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48
+ operationID: "getCollectionMembers",
49
+ oAuth2Scopes: null,
50
+ resolvedSecurity: requestSecurity,
51
+ securitySource: client._options.bearerAuth,
52
+ retryConfig: options?.retries
53
+ || client._options.retryConfig
54
+ || { strategy: "none" },
55
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
56
+ };
57
+ const requestRes = client._createRequest(context, {
58
+ security: requestSecurity,
59
+ method: "GET",
60
+ baseURL: options?.serverURL,
61
+ path: path,
62
+ headers: headers,
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, z.array(models.User$inboundSchema)), M.fail("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=custom-collections-get-collection-members.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-collections-get-collection-members.js","sourceRoot":"","sources":["../../src/funcs/custom-collections-get-collection-members.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,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;;GAEG;AACH,MAAM,UAAU,qCAAqC,CACnD,MAAsB,EACtB,YAAoB,EACpB,OAAwB,EAaxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,YAAY,EACZ,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAsB,EACtB,YAAoB,EACpB,OAAwB,EAgBxB;IACA,MAAM,KAAK,GAA2C;QACpD,YAAY,EAAE,YAAY;KAC3B,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CACtB,KAAK,EACL,CAAC,KAAK,EAAE,EAAE,CACR,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,0CAA0C,EAAE,KAAK,CAAC,EACvE,yB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,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
+ * Get all collections created by the user
12
+ */
13
+ export declare function customCollectionsGetCollections(client: FankareSDKCore, options?: RequestOptions): APIPromise<Result<Array<models.Collection>, FankareSDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
14
+ //# sourceMappingURL=custom-collections-get-collections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-collections-get-collections.d.ts","sourceRoot":"","sources":["../../src/funcs/custom-collections-get-collections.ts"],"names":[],"mappings":"AAMA,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,+BAA+B,CAC7C,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,EACtB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAKA"}