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

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 (178) hide show
  1. package/README.md +20 -20
  2. package/esm/funcs/creator-timelines-get-creator-posts.d.ts +2 -5
  3. package/esm/funcs/creator-timelines-get-creator-posts.d.ts.map +1 -1
  4. package/esm/funcs/creator-timelines-get-creator-posts.js +7 -8
  5. package/esm/funcs/creator-timelines-get-creator-posts.js.map +1 -1
  6. package/esm/funcs/custom-collections-add-collection-member.d.ts +14 -0
  7. package/esm/funcs/custom-collections-add-collection-member.d.ts.map +1 -0
  8. package/esm/funcs/custom-collections-add-collection-member.js +88 -0
  9. package/esm/funcs/custom-collections-add-collection-member.js.map +1 -0
  10. package/esm/funcs/custom-collections-create-collection.d.ts +15 -0
  11. package/esm/funcs/custom-collections-create-collection.d.ts.map +1 -0
  12. package/esm/funcs/custom-collections-create-collection.js +79 -0
  13. package/esm/funcs/custom-collections-create-collection.js.map +1 -0
  14. package/esm/funcs/custom-collections-get-collection-members.d.ts +14 -0
  15. package/esm/funcs/custom-collections-get-collection-members.d.ts.map +1 -0
  16. package/esm/funcs/custom-collections-get-collection-members.js +87 -0
  17. package/esm/funcs/custom-collections-get-collection-members.js.map +1 -0
  18. package/esm/funcs/custom-collections-get-collections.d.ts +14 -0
  19. package/esm/funcs/custom-collections-get-collections.d.ts.map +1 -0
  20. package/esm/funcs/custom-collections-get-collections.js +68 -0
  21. package/esm/funcs/custom-collections-get-collections.js.map +1 -0
  22. package/esm/funcs/custom-collections-remove-collection-member.d.ts +13 -0
  23. package/esm/funcs/custom-collections-remove-collection-member.d.ts.map +1 -0
  24. package/esm/funcs/custom-collections-remove-collection-member.js +91 -0
  25. package/esm/funcs/custom-collections-remove-collection-member.js.map +1 -0
  26. package/esm/funcs/direct-messaging-get-conversations.d.ts +0 -3
  27. package/esm/funcs/direct-messaging-get-conversations.d.ts.map +1 -1
  28. package/esm/funcs/direct-messaging-get-conversations.js +0 -3
  29. package/esm/funcs/direct-messaging-get-conversations.js.map +1 -1
  30. package/esm/funcs/direct-messaging-get-message-history.d.ts +3 -3
  31. package/esm/funcs/direct-messaging-get-message-history.d.ts.map +1 -1
  32. package/esm/funcs/direct-messaging-get-message-history.js +13 -7
  33. package/esm/funcs/direct-messaging-get-message-history.js.map +1 -1
  34. package/esm/funcs/posts-create-post.d.ts +0 -3
  35. package/esm/funcs/posts-create-post.d.ts.map +1 -1
  36. package/esm/funcs/posts-create-post.js +0 -3
  37. package/esm/funcs/posts-create-post.js.map +1 -1
  38. package/esm/funcs/posts-get-collection-feed.d.ts +14 -0
  39. package/esm/funcs/posts-get-collection-feed.d.ts.map +1 -0
  40. package/esm/funcs/posts-get-collection-feed.js +94 -0
  41. package/esm/funcs/posts-get-collection-feed.js.map +1 -0
  42. package/esm/funcs/posts-get-feed.d.ts +3 -6
  43. package/esm/funcs/posts-get-feed.d.ts.map +1 -1
  44. package/esm/funcs/posts-get-feed.js +3 -5
  45. package/esm/funcs/posts-get-feed.js.map +1 -1
  46. package/esm/funcs/user-discovery-get-following.d.ts +0 -3
  47. package/esm/funcs/user-discovery-get-following.d.ts.map +1 -1
  48. package/esm/funcs/user-discovery-get-following.js +0 -3
  49. package/esm/funcs/user-discovery-get-following.js.map +1 -1
  50. package/esm/funcs/user-discovery-get-user-profile.d.ts +0 -3
  51. package/esm/funcs/user-discovery-get-user-profile.d.ts.map +1 -1
  52. package/esm/funcs/user-discovery-get-user-profile.js +0 -3
  53. package/esm/funcs/user-discovery-get-user-profile.js.map +1 -1
  54. package/esm/funcs/user-discovery-search-users.d.ts +0 -3
  55. package/esm/funcs/user-discovery-search-users.d.ts.map +1 -1
  56. package/esm/funcs/user-discovery-search-users.js +0 -3
  57. package/esm/funcs/user-discovery-search-users.js.map +1 -1
  58. package/esm/lib/config.d.ts +2 -2
  59. package/esm/lib/config.js +2 -2
  60. package/esm/models/collection.d.ts +12 -0
  61. package/esm/models/collection.d.ts.map +1 -0
  62. package/esm/models/collection.js +18 -0
  63. package/esm/models/collection.js.map +1 -0
  64. package/esm/models/conversation.d.ts +0 -3
  65. package/esm/models/conversation.d.ts.map +1 -1
  66. package/esm/models/conversation.js.map +1 -1
  67. package/esm/models/index.d.ts +2 -1
  68. package/esm/models/index.d.ts.map +1 -1
  69. package/esm/models/index.js +2 -1
  70. package/esm/models/index.js.map +1 -1
  71. package/esm/models/operations/add-collection-member.d.ts +24 -0
  72. package/esm/models/operations/add-collection-member.d.ts.map +1 -0
  73. package/esm/models/operations/add-collection-member.js +21 -0
  74. package/esm/models/operations/add-collection-member.js.map +1 -0
  75. package/esm/models/operations/create-collection.d.ts +12 -0
  76. package/esm/models/operations/create-collection.d.ts.map +1 -0
  77. package/esm/models/operations/create-collection.js +13 -0
  78. package/esm/models/operations/create-collection.js.map +1 -0
  79. package/esm/models/operations/create-post.d.ts +1 -1
  80. package/esm/models/operations/get-collection-feed.d.ts +19 -0
  81. package/esm/models/operations/get-collection-feed.d.ts.map +1 -0
  82. package/esm/models/operations/get-collection-feed.js +15 -0
  83. package/esm/models/operations/get-collection-feed.js.map +1 -0
  84. package/esm/models/operations/get-collection-members.d.ts +12 -0
  85. package/esm/models/operations/get-collection-members.d.ts.map +1 -0
  86. package/esm/models/operations/get-collection-members.js +13 -0
  87. package/esm/models/operations/get-collection-members.js.map +1 -0
  88. package/esm/models/operations/get-creator-posts.d.ts +5 -0
  89. package/esm/models/operations/get-creator-posts.d.ts.map +1 -1
  90. package/esm/models/operations/get-creator-posts.js +1 -0
  91. package/esm/models/operations/get-creator-posts.js.map +1 -1
  92. package/esm/models/operations/get-feed.d.ts +3 -13
  93. package/esm/models/operations/get-feed.d.ts.map +1 -1
  94. package/esm/models/operations/get-feed.js +0 -11
  95. package/esm/models/operations/get-feed.js.map +1 -1
  96. package/esm/models/operations/get-message-history.d.ts +20 -0
  97. package/esm/models/operations/get-message-history.d.ts.map +1 -1
  98. package/esm/models/operations/get-message-history.js +13 -0
  99. package/esm/models/operations/get-message-history.js.map +1 -1
  100. package/esm/models/operations/index.d.ts +5 -5
  101. package/esm/models/operations/index.d.ts.map +1 -1
  102. package/esm/models/operations/index.js +5 -5
  103. package/esm/models/operations/index.js.map +1 -1
  104. package/esm/models/operations/remove-collection-member.d.ts +14 -0
  105. package/esm/models/operations/remove-collection-member.d.ts.map +1 -0
  106. package/esm/models/operations/remove-collection-member.js +14 -0
  107. package/esm/models/operations/remove-collection-member.js.map +1 -0
  108. package/esm/models/paginated-posts-response.d.ts +15 -0
  109. package/esm/models/paginated-posts-response.d.ts.map +1 -0
  110. package/esm/models/paginated-posts-response.js +17 -0
  111. package/esm/models/paginated-posts-response.js.map +1 -0
  112. package/esm/sdk/creator-timelines.d.ts +2 -5
  113. package/esm/sdk/creator-timelines.d.ts.map +1 -1
  114. package/esm/sdk/creator-timelines.js +3 -6
  115. package/esm/sdk/creator-timelines.js.map +1 -1
  116. package/esm/sdk/custom-collections.d.ts +26 -0
  117. package/esm/sdk/custom-collections.d.ts.map +1 -0
  118. package/esm/sdk/custom-collections.js +44 -0
  119. package/esm/sdk/custom-collections.js.map +1 -0
  120. package/esm/sdk/direct-messaging.d.ts +3 -5
  121. package/esm/sdk/direct-messaging.d.ts.map +1 -1
  122. package/esm/sdk/direct-messaging.js +3 -6
  123. package/esm/sdk/direct-messaging.js.map +1 -1
  124. package/esm/sdk/posts.d.ts +4 -10
  125. package/esm/sdk/posts.d.ts.map +1 -1
  126. package/esm/sdk/posts.js +5 -11
  127. package/esm/sdk/posts.js.map +1 -1
  128. package/esm/sdk/sdk.d.ts +3 -3
  129. package/esm/sdk/sdk.d.ts.map +1 -1
  130. package/esm/sdk/sdk.js +4 -4
  131. package/esm/sdk/sdk.js.map +1 -1
  132. package/esm/sdk/user-discovery.d.ts +0 -9
  133. package/esm/sdk/user-discovery.d.ts.map +1 -1
  134. package/esm/sdk/user-discovery.js +0 -9
  135. package/esm/sdk/user-discovery.js.map +1 -1
  136. package/jsr.json +1 -1
  137. package/package.json +1 -1
  138. package/src/funcs/creator-timelines-get-creator-posts.ts +10 -8
  139. package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts} +15 -14
  140. package/src/funcs/{custom-lists-create-list.ts → custom-collections-create-collection.ts} +13 -12
  141. package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts} +13 -12
  142. package/src/funcs/{custom-lists-get-lists.ts → custom-collections-get-collections.ts} +9 -9
  143. package/src/funcs/{custom-lists-remove-list-member.ts → custom-collections-remove-collection-member.ts} +12 -12
  144. package/src/funcs/direct-messaging-get-conversations.ts +0 -3
  145. package/src/funcs/direct-messaging-get-message-history.ts +20 -7
  146. package/src/funcs/posts-create-post.ts +0 -3
  147. package/src/funcs/{posts-get-list-feed.ts → posts-get-collection-feed.ts} +22 -16
  148. package/src/funcs/posts-get-feed.ts +6 -8
  149. package/src/funcs/user-discovery-get-following.ts +0 -3
  150. package/src/funcs/user-discovery-get-user-profile.ts +0 -3
  151. package/src/funcs/user-discovery-search-users.ts +0 -3
  152. package/src/lib/config.ts +2 -2
  153. package/src/models/{custom-list.ts → collection.ts} +7 -7
  154. package/src/models/conversation.ts +0 -3
  155. package/src/models/index.ts +2 -1
  156. package/src/models/operations/add-collection-member.ts +61 -0
  157. package/src/models/operations/create-collection.ts +31 -0
  158. package/src/models/operations/create-post.ts +1 -1
  159. package/src/models/operations/get-collection-feed.ts +40 -0
  160. package/src/models/operations/get-collection-members.ts +33 -0
  161. package/src/models/operations/get-creator-posts.ts +6 -0
  162. package/src/models/operations/get-feed.ts +3 -32
  163. package/src/models/operations/get-message-history.ts +41 -0
  164. package/src/models/operations/index.ts +5 -5
  165. package/src/models/operations/remove-collection-member.ts +36 -0
  166. package/src/models/paginated-posts-response.ts +38 -0
  167. package/src/sdk/creator-timelines.ts +4 -5
  168. package/src/sdk/custom-collections.ts +88 -0
  169. package/src/sdk/direct-messaging.ts +7 -5
  170. package/src/sdk/posts.ts +11 -15
  171. package/src/sdk/sdk.ts +4 -4
  172. package/src/sdk/user-discovery.ts +0 -9
  173. package/src/models/operations/add-list-member.ts +0 -59
  174. package/src/models/operations/create-list.ts +0 -31
  175. package/src/models/operations/get-list-feed.ts +0 -34
  176. package/src/models/operations/get-list-members.ts +0 -31
  177. package/src/models/operations/remove-list-member.ts +0 -34
  178. package/src/sdk/custom-lists.ts +0 -88
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: e529857a5527
3
+ * @generated-id: 09f25f5f8a76
4
4
  */
5
5
 
6
6
  import * as z from "zod/v4-mini";
@@ -28,12 +28,12 @@ import { APICall, APIPromise } from "../types/async.js";
28
28
  import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
- * Add a user to a custom list
31
+ * Add a user to a custom collection
32
32
  */
33
- export function customListsAddListMember(
33
+ export function customCollectionsAddCollectionMember(
34
34
  client: FankareSDKCore,
35
- listId: number,
36
- body: operations.AddListMemberRequestBody,
35
+ collectionId: number,
36
+ body: operations.AddCollectionMemberRequestBody,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
@@ -50,7 +50,7 @@ export function customListsAddListMember(
50
50
  > {
51
51
  return new APIPromise($do(
52
52
  client,
53
- listId,
53
+ collectionId,
54
54
  body,
55
55
  options,
56
56
  ));
@@ -58,8 +58,8 @@ export function customListsAddListMember(
58
58
 
59
59
  async function $do(
60
60
  client: FankareSDKCore,
61
- listId: number,
62
- body: operations.AddListMemberRequestBody,
61
+ collectionId: number,
62
+ body: operations.AddCollectionMemberRequestBody,
63
63
  options?: RequestOptions,
64
64
  ): Promise<
65
65
  [
@@ -77,14 +77,15 @@ async function $do(
77
77
  APICall,
78
78
  ]
79
79
  > {
80
- const input: operations.AddListMemberRequest = {
81
- listId: listId,
80
+ const input: operations.AddCollectionMemberRequest = {
81
+ collectionId: collectionId,
82
82
  body: body,
83
83
  };
84
84
 
85
85
  const parsed = safeParse(
86
86
  input,
87
- (value) => z.parse(operations.AddListMemberRequest$outboundSchema, value),
87
+ (value) =>
88
+ z.parse(operations.AddCollectionMemberRequest$outboundSchema, value),
88
89
  "Input validation failed",
89
90
  );
90
91
  if (!parsed.ok) {
@@ -94,12 +95,12 @@ async function $do(
94
95
  const body$ = encodeJSON("body", payload.body, { explode: true });
95
96
 
96
97
  const pathParams = {
97
- listId: encodeSimple("listId", payload.listId, {
98
+ collectionId: encodeSimple("collectionId", payload.collectionId, {
98
99
  explode: false,
99
100
  charEncoding: "percent",
100
101
  }),
101
102
  };
102
- const path = pathToFunc("/lists/{listId}/members")(pathParams);
103
+ const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
103
104
 
104
105
  const headers = new Headers(compactMap({
105
106
  "Content-Type": "application/json",
@@ -113,7 +114,7 @@ async function $do(
113
114
  const context = {
114
115
  options: client._options,
115
116
  baseURL: options?.serverURL ?? client._baseURL ?? "",
116
- operationID: "addListMember",
117
+ operationID: "addCollectionMember",
117
118
  oAuth2Scopes: null,
118
119
 
119
120
  resolvedSecurity: requestSecurity,
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 5194d9d90891
3
+ * @generated-id: 802a176f4643
4
4
  */
5
5
 
6
6
  import * as z from "zod/v4-mini";
@@ -29,15 +29,15 @@ import { APICall, APIPromise } from "../types/async.js";
29
29
  import { Result } from "../types/fp.js";
30
30
 
31
31
  /**
32
- * Create a new custom grouping list
32
+ * Create a new custom grouping collection
33
33
  */
34
- export function customListsCreateList(
34
+ export function customCollectionsCreateCollection(
35
35
  client: FankareSDKCore,
36
- request: operations.CreateListRequest,
36
+ request: operations.CreateCollectionRequest,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
40
- models.CustomList,
40
+ models.Collection,
41
41
  | FankareSDKError
42
42
  | ResponseValidationError
43
43
  | ConnectionError
@@ -57,12 +57,12 @@ export function customListsCreateList(
57
57
 
58
58
  async function $do(
59
59
  client: FankareSDKCore,
60
- request: operations.CreateListRequest,
60
+ request: operations.CreateCollectionRequest,
61
61
  options?: RequestOptions,
62
62
  ): Promise<
63
63
  [
64
64
  Result<
65
- models.CustomList,
65
+ models.Collection,
66
66
  | FankareSDKError
67
67
  | ResponseValidationError
68
68
  | ConnectionError
@@ -77,7 +77,8 @@ async function $do(
77
77
  > {
78
78
  const parsed = safeParse(
79
79
  request,
80
- (value) => z.parse(operations.CreateListRequest$outboundSchema, value),
80
+ (value) =>
81
+ z.parse(operations.CreateCollectionRequest$outboundSchema, value),
81
82
  "Input validation failed",
82
83
  );
83
84
  if (!parsed.ok) {
@@ -86,7 +87,7 @@ async function $do(
86
87
  const payload = parsed.value;
87
88
  const body = encodeJSON("body", payload, { explode: true });
88
89
 
89
- const path = pathToFunc("/lists")();
90
+ const path = pathToFunc("/collections")();
90
91
 
91
92
  const headers = new Headers(compactMap({
92
93
  "Content-Type": "application/json",
@@ -100,7 +101,7 @@ async function $do(
100
101
  const context = {
101
102
  options: client._options,
102
103
  baseURL: options?.serverURL ?? client._baseURL ?? "",
103
- operationID: "createList",
104
+ operationID: "createCollection",
104
105
  oAuth2Scopes: null,
105
106
 
106
107
  resolvedSecurity: requestSecurity,
@@ -140,7 +141,7 @@ async function $do(
140
141
  const response = doResult.value;
141
142
 
142
143
  const [result] = await M.match<
143
- models.CustomList,
144
+ models.Collection,
144
145
  | FankareSDKError
145
146
  | ResponseValidationError
146
147
  | ConnectionError
@@ -150,7 +151,7 @@ async function $do(
150
151
  | UnexpectedClientError
151
152
  | SDKValidationError
152
153
  >(
153
- M.json(201, models.CustomList$inboundSchema),
154
+ M.json(201, models.Collection$inboundSchema),
154
155
  M.fail("4XX"),
155
156
  M.fail("5XX"),
156
157
  )(response, req);
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: cf3d1c8686d6
3
+ * @generated-id: 7beb0dd706f2
4
4
  */
5
5
 
6
6
  import * as z from "zod/v4-mini";
@@ -29,11 +29,11 @@ import { APICall, APIPromise } from "../types/async.js";
29
29
  import { Result } from "../types/fp.js";
30
30
 
31
31
  /**
32
- * Get all members belonging to a custom list
32
+ * Get all members belonging to a custom collection
33
33
  */
34
- export function customListsGetListMembers(
34
+ export function customCollectionsGetCollectionMembers(
35
35
  client: FankareSDKCore,
36
- listId: number,
36
+ collectionId: number,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
39
39
  Result<
@@ -50,14 +50,14 @@ export function customListsGetListMembers(
50
50
  > {
51
51
  return new APIPromise($do(
52
52
  client,
53
- listId,
53
+ collectionId,
54
54
  options,
55
55
  ));
56
56
  }
57
57
 
58
58
  async function $do(
59
59
  client: FankareSDKCore,
60
- listId: number,
60
+ collectionId: number,
61
61
  options?: RequestOptions,
62
62
  ): Promise<
63
63
  [
@@ -75,13 +75,14 @@ async function $do(
75
75
  APICall,
76
76
  ]
77
77
  > {
78
- const input: operations.GetListMembersRequest = {
79
- listId: listId,
78
+ const input: operations.GetCollectionMembersRequest = {
79
+ collectionId: collectionId,
80
80
  };
81
81
 
82
82
  const parsed = safeParse(
83
83
  input,
84
- (value) => z.parse(operations.GetListMembersRequest$outboundSchema, value),
84
+ (value) =>
85
+ z.parse(operations.GetCollectionMembersRequest$outboundSchema, value),
85
86
  "Input validation failed",
86
87
  );
87
88
  if (!parsed.ok) {
@@ -91,12 +92,12 @@ async function $do(
91
92
  const body = null;
92
93
 
93
94
  const pathParams = {
94
- listId: encodeSimple("listId", payload.listId, {
95
+ collectionId: encodeSimple("collectionId", payload.collectionId, {
95
96
  explode: false,
96
97
  charEncoding: "percent",
97
98
  }),
98
99
  };
99
- const path = pathToFunc("/lists/{listId}/members")(pathParams);
100
+ const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
100
101
 
101
102
  const headers = new Headers(compactMap({
102
103
  Accept: "application/json",
@@ -109,7 +110,7 @@ async function $do(
109
110
  const context = {
110
111
  options: client._options,
111
112
  baseURL: options?.serverURL ?? client._baseURL ?? "",
112
- operationID: "getListMembers",
113
+ operationID: "getCollectionMembers",
113
114
  oAuth2Scopes: null,
114
115
 
115
116
  resolvedSecurity: requestSecurity,
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: cd08936dfbdf
3
+ * @generated-id: ac4ed76cf26d
4
4
  */
5
5
 
6
6
  import * as z from "zod/v4-mini";
@@ -26,14 +26,14 @@ import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
- * Get all custom lists created by the user
29
+ * Get all collections created by the user
30
30
  */
31
- export function customListsGetLists(
31
+ export function customCollectionsGetCollections(
32
32
  client: FankareSDKCore,
33
33
  options?: RequestOptions,
34
34
  ): APIPromise<
35
35
  Result<
36
- Array<models.CustomList>,
36
+ Array<models.Collection>,
37
37
  | FankareSDKError
38
38
  | ResponseValidationError
39
39
  | ConnectionError
@@ -56,7 +56,7 @@ async function $do(
56
56
  ): Promise<
57
57
  [
58
58
  Result<
59
- Array<models.CustomList>,
59
+ Array<models.Collection>,
60
60
  | FankareSDKError
61
61
  | ResponseValidationError
62
62
  | ConnectionError
@@ -69,7 +69,7 @@ async function $do(
69
69
  APICall,
70
70
  ]
71
71
  > {
72
- const path = pathToFunc("/lists")();
72
+ const path = pathToFunc("/collections")();
73
73
 
74
74
  const headers = new Headers(compactMap({
75
75
  Accept: "application/json",
@@ -82,7 +82,7 @@ async function $do(
82
82
  const context = {
83
83
  options: client._options,
84
84
  baseURL: options?.serverURL ?? client._baseURL ?? "",
85
- operationID: "getLists",
85
+ operationID: "getCollections",
86
86
  oAuth2Scopes: null,
87
87
 
88
88
  resolvedSecurity: requestSecurity,
@@ -121,7 +121,7 @@ async function $do(
121
121
  const response = doResult.value;
122
122
 
123
123
  const [result] = await M.match<
124
- Array<models.CustomList>,
124
+ Array<models.Collection>,
125
125
  | FankareSDKError
126
126
  | ResponseValidationError
127
127
  | ConnectionError
@@ -131,7 +131,7 @@ async function $do(
131
131
  | UnexpectedClientError
132
132
  | SDKValidationError
133
133
  >(
134
- M.json(200, z.array(models.CustomList$inboundSchema)),
134
+ M.json(200, z.array(models.Collection$inboundSchema)),
135
135
  M.fail("4XX"),
136
136
  M.fail("5XX"),
137
137
  )(response, req);
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: f9d5468b6abd
3
+ * @generated-id: afd181fdd5a7
4
4
  */
5
5
 
6
6
  import * as z from "zod/v4-mini";
@@ -28,11 +28,11 @@ import { APICall, APIPromise } from "../types/async.js";
28
28
  import { Result } from "../types/fp.js";
29
29
 
30
30
  /**
31
- * Remove a user from a custom list
31
+ * Remove a user from a custom collection
32
32
  */
33
- export function customListsRemoveListMember(
33
+ export function customCollectionsRemoveCollectionMember(
34
34
  client: FankareSDKCore,
35
- listId: number,
35
+ collectionId: number,
36
36
  userId: number,
37
37
  options?: RequestOptions,
38
38
  ): APIPromise<
@@ -50,7 +50,7 @@ export function customListsRemoveListMember(
50
50
  > {
51
51
  return new APIPromise($do(
52
52
  client,
53
- listId,
53
+ collectionId,
54
54
  userId,
55
55
  options,
56
56
  ));
@@ -58,7 +58,7 @@ export function customListsRemoveListMember(
58
58
 
59
59
  async function $do(
60
60
  client: FankareSDKCore,
61
- listId: number,
61
+ collectionId: number,
62
62
  userId: number,
63
63
  options?: RequestOptions,
64
64
  ): Promise<
@@ -77,15 +77,15 @@ async function $do(
77
77
  APICall,
78
78
  ]
79
79
  > {
80
- const input: operations.RemoveListMemberRequest = {
81
- listId: listId,
80
+ const input: operations.RemoveCollectionMemberRequest = {
81
+ collectionId: collectionId,
82
82
  userId: userId,
83
83
  };
84
84
 
85
85
  const parsed = safeParse(
86
86
  input,
87
87
  (value) =>
88
- z.parse(operations.RemoveListMemberRequest$outboundSchema, value),
88
+ z.parse(operations.RemoveCollectionMemberRequest$outboundSchema, value),
89
89
  "Input validation failed",
90
90
  );
91
91
  if (!parsed.ok) {
@@ -95,12 +95,12 @@ async function $do(
95
95
  const body = null;
96
96
 
97
97
  const pathParams = {
98
- listId: encodeSimple("listId", payload.listId, {
98
+ collectionId: encodeSimple("collectionId", payload.collectionId, {
99
99
  explode: false,
100
100
  charEncoding: "percent",
101
101
  }),
102
102
  };
103
- const path = pathToFunc("/lists/{listId}/members")(pathParams);
103
+ const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
104
104
 
105
105
  const query = encodeFormQuery({
106
106
  "userId": payload.userId,
@@ -117,7 +117,7 @@ async function $do(
117
117
  const context = {
118
118
  options: client._options,
119
119
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
- operationID: "removeListMember",
120
+ operationID: "removeCollectionMember",
121
121
  oAuth2Scopes: null,
122
122
 
123
123
  resolvedSecurity: requestSecurity,
@@ -27,9 +27,6 @@ import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
29
  * Fetch active DM threads
30
- *
31
- * @remarks
32
- * Gets recent conversation summary records containing index context of opposing communication profiles.
33
30
  */
34
31
  export function directMessagingGetConversations(
35
32
  client: FankareSDKCore,
@@ -5,7 +5,7 @@
5
5
 
6
6
  import * as z from "zod/v4-mini";
7
7
  import { FankareSDKCore } from "../core.js";
8
- import { encodeSimple } from "../lib/encodings.js";
8
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
9
9
  import { matchStatusCode } from "../lib/http.js";
10
10
  import * as M from "../lib/matchers.js";
11
11
  import { compactMap } from "../lib/primitives.js";
@@ -23,21 +23,22 @@ import {
23
23
  } from "../models/errors/http-client-errors.js";
24
24
  import { ResponseValidationError } from "../models/errors/response-validation-error.js";
25
25
  import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
26
- import * as models from "../models/index.js";
27
26
  import * as operations from "../models/operations/index.js";
28
27
  import { APICall, APIPromise } from "../types/async.js";
29
28
  import { Result } from "../types/fp.js";
30
29
 
31
30
  /**
32
- * Load message history with a specific creator
31
+ * Load message history with a specific user with pagination
33
32
  */
34
33
  export function directMessagingGetMessageHistory(
35
34
  client: FankareSDKCore,
36
35
  userId: number,
36
+ limit?: number | undefined,
37
+ cursor?: string | undefined,
37
38
  options?: RequestOptions,
38
39
  ): APIPromise<
39
40
  Result<
40
- Array<models.Message>,
41
+ operations.GetMessageHistoryResponse,
41
42
  | FankareSDKError
42
43
  | ResponseValidationError
43
44
  | ConnectionError
@@ -51,6 +52,8 @@ export function directMessagingGetMessageHistory(
51
52
  return new APIPromise($do(
52
53
  client,
53
54
  userId,
55
+ limit,
56
+ cursor,
54
57
  options,
55
58
  ));
56
59
  }
@@ -58,11 +61,13 @@ export function directMessagingGetMessageHistory(
58
61
  async function $do(
59
62
  client: FankareSDKCore,
60
63
  userId: number,
64
+ limit?: number | undefined,
65
+ cursor?: string | undefined,
61
66
  options?: RequestOptions,
62
67
  ): Promise<
63
68
  [
64
69
  Result<
65
- Array<models.Message>,
70
+ operations.GetMessageHistoryResponse,
66
71
  | FankareSDKError
67
72
  | ResponseValidationError
68
73
  | ConnectionError
@@ -77,6 +82,8 @@ async function $do(
77
82
  > {
78
83
  const input: operations.GetMessageHistoryRequest = {
79
84
  userId: userId,
85
+ limit: limit,
86
+ cursor: cursor,
80
87
  };
81
88
 
82
89
  const parsed = safeParse(
@@ -99,6 +106,11 @@ async function $do(
99
106
  };
100
107
  const path = pathToFunc("/messages/user/{userId}")(pathParams);
101
108
 
109
+ const query = encodeFormQuery({
110
+ "cursor": payload.cursor,
111
+ "limit": payload.limit,
112
+ });
113
+
102
114
  const headers = new Headers(compactMap({
103
115
  Accept: "application/json",
104
116
  }));
@@ -128,6 +140,7 @@ async function $do(
128
140
  baseURL: options?.serverURL,
129
141
  path: path,
130
142
  headers: headers,
143
+ query: query,
131
144
  body: body,
132
145
  userAgent: client._options.userAgent,
133
146
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
@@ -150,7 +163,7 @@ async function $do(
150
163
  const response = doResult.value;
151
164
 
152
165
  const [result] = await M.match<
153
- Array<models.Message>,
166
+ operations.GetMessageHistoryResponse,
154
167
  | FankareSDKError
155
168
  | ResponseValidationError
156
169
  | ConnectionError
@@ -160,7 +173,7 @@ async function $do(
160
173
  | UnexpectedClientError
161
174
  | SDKValidationError
162
175
  >(
163
- M.json(200, z.array(models.Message$inboundSchema)),
176
+ M.json(200, operations.GetMessageHistoryResponse$inboundSchema),
164
177
  M.fail("4XX"),
165
178
  M.fail("5XX"),
166
179
  )(response, req);
@@ -30,9 +30,6 @@ import { Result } from "../types/fp.js";
30
30
 
31
31
  /**
32
32
  * Create a post blueprint requesting batch upload slots
33
- *
34
- * @remarks
35
- * Accepts a list of metadata parts for grids/carousels and responds with multiple presigned destination configurations mapped out of SeaweedFS routing rules.
36
33
  */
37
34
  export function postsCreatePost(
38
35
  client: FankareSDKCore,
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- * @generated-id: 739bfe3ba6a7
3
+ * @generated-id: ba2331639991
4
4
  */
5
5
 
6
6
  import * as z from "zod/v4-mini";
@@ -29,16 +29,17 @@ import { APICall, APIPromise } from "../types/async.js";
29
29
  import { Result } from "../types/fp.js";
30
30
 
31
31
  /**
32
- * Get a timeline filtered strictly by members of this list
32
+ * Get a timeline filtered strictly by members of this collection with pagination
33
33
  */
34
- export function postsGetListFeed(
34
+ export function postsGetCollectionFeed(
35
35
  client: FankareSDKCore,
36
- listId: number,
36
+ collectionId: number,
37
37
  limit?: number | undefined,
38
+ cursor?: string | undefined,
38
39
  options?: RequestOptions,
39
40
  ): APIPromise<
40
41
  Result<
41
- Array<models.Post>,
42
+ models.PaginatedPostsResponse,
42
43
  | FankareSDKError
43
44
  | ResponseValidationError
44
45
  | ConnectionError
@@ -51,21 +52,23 @@ export function postsGetListFeed(
51
52
  > {
52
53
  return new APIPromise($do(
53
54
  client,
54
- listId,
55
+ collectionId,
55
56
  limit,
57
+ cursor,
56
58
  options,
57
59
  ));
58
60
  }
59
61
 
60
62
  async function $do(
61
63
  client: FankareSDKCore,
62
- listId: number,
64
+ collectionId: number,
63
65
  limit?: number | undefined,
66
+ cursor?: string | undefined,
64
67
  options?: RequestOptions,
65
68
  ): Promise<
66
69
  [
67
70
  Result<
68
- Array<models.Post>,
71
+ models.PaginatedPostsResponse,
69
72
  | FankareSDKError
70
73
  | ResponseValidationError
71
74
  | ConnectionError
@@ -78,14 +81,16 @@ async function $do(
78
81
  APICall,
79
82
  ]
80
83
  > {
81
- const input: operations.GetListFeedRequest = {
82
- listId: listId,
84
+ const input: operations.GetCollectionFeedRequest = {
85
+ collectionId: collectionId,
83
86
  limit: limit,
87
+ cursor: cursor,
84
88
  };
85
89
 
86
90
  const parsed = safeParse(
87
91
  input,
88
- (value) => z.parse(operations.GetListFeedRequest$outboundSchema, value),
92
+ (value) =>
93
+ z.parse(operations.GetCollectionFeedRequest$outboundSchema, value),
89
94
  "Input validation failed",
90
95
  );
91
96
  if (!parsed.ok) {
@@ -95,14 +100,15 @@ async function $do(
95
100
  const body = null;
96
101
 
97
102
  const pathParams = {
98
- listId: encodeSimple("listId", payload.listId, {
103
+ collectionId: encodeSimple("collectionId", payload.collectionId, {
99
104
  explode: false,
100
105
  charEncoding: "percent",
101
106
  }),
102
107
  };
103
- const path = pathToFunc("/lists/{listId}/feed")(pathParams);
108
+ const path = pathToFunc("/collections/{collectionId}/feed")(pathParams);
104
109
 
105
110
  const query = encodeFormQuery({
111
+ "cursor": payload.cursor,
106
112
  "limit": payload.limit,
107
113
  });
108
114
 
@@ -117,7 +123,7 @@ async function $do(
117
123
  const context = {
118
124
  options: client._options,
119
125
  baseURL: options?.serverURL ?? client._baseURL ?? "",
120
- operationID: "getListFeed",
126
+ operationID: "getCollectionFeed",
121
127
  oAuth2Scopes: null,
122
128
 
123
129
  resolvedSecurity: requestSecurity,
@@ -158,7 +164,7 @@ async function $do(
158
164
  const response = doResult.value;
159
165
 
160
166
  const [result] = await M.match<
161
- Array<models.Post>,
167
+ models.PaginatedPostsResponse,
162
168
  | FankareSDKError
163
169
  | ResponseValidationError
164
170
  | ConnectionError
@@ -168,7 +174,7 @@ async function $do(
168
174
  | UnexpectedClientError
169
175
  | SDKValidationError
170
176
  >(
171
- M.json(200, z.array(models.Post$inboundSchema)),
177
+ M.json(200, models.PaginatedPostsResponse$inboundSchema),
172
178
  M.fail("4XX"),
173
179
  M.fail("5XX"),
174
180
  )(response, req);