@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.
- package/README.md +20 -20
- package/esm/funcs/creator-timelines-get-creator-posts.d.ts +2 -5
- package/esm/funcs/creator-timelines-get-creator-posts.d.ts.map +1 -1
- package/esm/funcs/creator-timelines-get-creator-posts.js +7 -8
- package/esm/funcs/creator-timelines-get-creator-posts.js.map +1 -1
- package/esm/funcs/custom-collections-add-collection-member.d.ts +14 -0
- package/esm/funcs/custom-collections-add-collection-member.d.ts.map +1 -0
- package/esm/funcs/custom-collections-add-collection-member.js +88 -0
- package/esm/funcs/custom-collections-add-collection-member.js.map +1 -0
- package/esm/funcs/custom-collections-create-collection.d.ts +15 -0
- package/esm/funcs/custom-collections-create-collection.d.ts.map +1 -0
- package/esm/funcs/custom-collections-create-collection.js +79 -0
- package/esm/funcs/custom-collections-create-collection.js.map +1 -0
- package/esm/funcs/custom-collections-get-collection-members.d.ts +14 -0
- package/esm/funcs/custom-collections-get-collection-members.d.ts.map +1 -0
- package/esm/funcs/custom-collections-get-collection-members.js +87 -0
- package/esm/funcs/custom-collections-get-collection-members.js.map +1 -0
- package/esm/funcs/custom-collections-get-collections.d.ts +14 -0
- package/esm/funcs/custom-collections-get-collections.d.ts.map +1 -0
- package/esm/funcs/custom-collections-get-collections.js +68 -0
- package/esm/funcs/custom-collections-get-collections.js.map +1 -0
- package/esm/funcs/custom-collections-remove-collection-member.d.ts +13 -0
- package/esm/funcs/custom-collections-remove-collection-member.d.ts.map +1 -0
- package/esm/funcs/custom-collections-remove-collection-member.js +91 -0
- package/esm/funcs/custom-collections-remove-collection-member.js.map +1 -0
- package/esm/funcs/direct-messaging-get-conversations.d.ts +0 -3
- package/esm/funcs/direct-messaging-get-conversations.d.ts.map +1 -1
- package/esm/funcs/direct-messaging-get-conversations.js +0 -3
- package/esm/funcs/direct-messaging-get-conversations.js.map +1 -1
- package/esm/funcs/direct-messaging-get-message-history.d.ts +3 -3
- package/esm/funcs/direct-messaging-get-message-history.d.ts.map +1 -1
- package/esm/funcs/direct-messaging-get-message-history.js +13 -7
- package/esm/funcs/direct-messaging-get-message-history.js.map +1 -1
- package/esm/funcs/posts-create-post.d.ts +0 -3
- package/esm/funcs/posts-create-post.d.ts.map +1 -1
- package/esm/funcs/posts-create-post.js +0 -3
- package/esm/funcs/posts-create-post.js.map +1 -1
- package/esm/funcs/posts-get-collection-feed.d.ts +14 -0
- package/esm/funcs/posts-get-collection-feed.d.ts.map +1 -0
- package/esm/funcs/posts-get-collection-feed.js +94 -0
- package/esm/funcs/posts-get-collection-feed.js.map +1 -0
- package/esm/funcs/posts-get-feed.d.ts +3 -6
- package/esm/funcs/posts-get-feed.d.ts.map +1 -1
- package/esm/funcs/posts-get-feed.js +3 -5
- package/esm/funcs/posts-get-feed.js.map +1 -1
- package/esm/funcs/user-discovery-get-following.d.ts +0 -3
- package/esm/funcs/user-discovery-get-following.d.ts.map +1 -1
- package/esm/funcs/user-discovery-get-following.js +0 -3
- package/esm/funcs/user-discovery-get-following.js.map +1 -1
- package/esm/funcs/user-discovery-get-user-profile.d.ts +0 -3
- package/esm/funcs/user-discovery-get-user-profile.d.ts.map +1 -1
- package/esm/funcs/user-discovery-get-user-profile.js +0 -3
- package/esm/funcs/user-discovery-get-user-profile.js.map +1 -1
- package/esm/funcs/user-discovery-search-users.d.ts +0 -3
- package/esm/funcs/user-discovery-search-users.d.ts.map +1 -1
- package/esm/funcs/user-discovery-search-users.js +0 -3
- package/esm/funcs/user-discovery-search-users.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/collection.d.ts +12 -0
- package/esm/models/collection.d.ts.map +1 -0
- package/esm/models/collection.js +18 -0
- package/esm/models/collection.js.map +1 -0
- package/esm/models/conversation.d.ts +0 -3
- package/esm/models/conversation.d.ts.map +1 -1
- package/esm/models/conversation.js.map +1 -1
- package/esm/models/index.d.ts +2 -1
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +2 -1
- package/esm/models/index.js.map +1 -1
- package/esm/models/operations/add-collection-member.d.ts +24 -0
- package/esm/models/operations/add-collection-member.d.ts.map +1 -0
- package/esm/models/operations/add-collection-member.js +21 -0
- package/esm/models/operations/add-collection-member.js.map +1 -0
- package/esm/models/operations/create-collection.d.ts +12 -0
- package/esm/models/operations/create-collection.d.ts.map +1 -0
- package/esm/models/operations/create-collection.js +13 -0
- package/esm/models/operations/create-collection.js.map +1 -0
- package/esm/models/operations/create-post.d.ts +1 -1
- package/esm/models/operations/get-collection-feed.d.ts +19 -0
- package/esm/models/operations/get-collection-feed.d.ts.map +1 -0
- package/esm/models/operations/get-collection-feed.js +15 -0
- package/esm/models/operations/get-collection-feed.js.map +1 -0
- package/esm/models/operations/get-collection-members.d.ts +12 -0
- package/esm/models/operations/get-collection-members.d.ts.map +1 -0
- package/esm/models/operations/get-collection-members.js +13 -0
- package/esm/models/operations/get-collection-members.js.map +1 -0
- package/esm/models/operations/get-creator-posts.d.ts +5 -0
- package/esm/models/operations/get-creator-posts.d.ts.map +1 -1
- package/esm/models/operations/get-creator-posts.js +1 -0
- package/esm/models/operations/get-creator-posts.js.map +1 -1
- package/esm/models/operations/get-feed.d.ts +3 -13
- package/esm/models/operations/get-feed.d.ts.map +1 -1
- package/esm/models/operations/get-feed.js +0 -11
- package/esm/models/operations/get-feed.js.map +1 -1
- package/esm/models/operations/get-message-history.d.ts +20 -0
- package/esm/models/operations/get-message-history.d.ts.map +1 -1
- package/esm/models/operations/get-message-history.js +13 -0
- package/esm/models/operations/get-message-history.js.map +1 -1
- package/esm/models/operations/index.d.ts +5 -5
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +5 -5
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/remove-collection-member.d.ts +14 -0
- package/esm/models/operations/remove-collection-member.d.ts.map +1 -0
- package/esm/models/operations/remove-collection-member.js +14 -0
- package/esm/models/operations/remove-collection-member.js.map +1 -0
- package/esm/models/paginated-posts-response.d.ts +15 -0
- package/esm/models/paginated-posts-response.d.ts.map +1 -0
- package/esm/models/paginated-posts-response.js +17 -0
- package/esm/models/paginated-posts-response.js.map +1 -0
- package/esm/sdk/creator-timelines.d.ts +2 -5
- package/esm/sdk/creator-timelines.d.ts.map +1 -1
- package/esm/sdk/creator-timelines.js +3 -6
- package/esm/sdk/creator-timelines.js.map +1 -1
- package/esm/sdk/custom-collections.d.ts +26 -0
- package/esm/sdk/custom-collections.d.ts.map +1 -0
- package/esm/sdk/custom-collections.js +44 -0
- package/esm/sdk/custom-collections.js.map +1 -0
- package/esm/sdk/direct-messaging.d.ts +3 -5
- package/esm/sdk/direct-messaging.d.ts.map +1 -1
- package/esm/sdk/direct-messaging.js +3 -6
- package/esm/sdk/direct-messaging.js.map +1 -1
- package/esm/sdk/posts.d.ts +4 -10
- package/esm/sdk/posts.d.ts.map +1 -1
- package/esm/sdk/posts.js +5 -11
- package/esm/sdk/posts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/user-discovery.d.ts +0 -9
- package/esm/sdk/user-discovery.d.ts.map +1 -1
- package/esm/sdk/user-discovery.js +0 -9
- package/esm/sdk/user-discovery.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/creator-timelines-get-creator-posts.ts +10 -8
- package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts} +15 -14
- package/src/funcs/{custom-lists-create-list.ts → custom-collections-create-collection.ts} +13 -12
- package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts} +13 -12
- package/src/funcs/{custom-lists-get-lists.ts → custom-collections-get-collections.ts} +9 -9
- package/src/funcs/{custom-lists-remove-list-member.ts → custom-collections-remove-collection-member.ts} +12 -12
- package/src/funcs/direct-messaging-get-conversations.ts +0 -3
- package/src/funcs/direct-messaging-get-message-history.ts +20 -7
- package/src/funcs/posts-create-post.ts +0 -3
- package/src/funcs/{posts-get-list-feed.ts → posts-get-collection-feed.ts} +22 -16
- package/src/funcs/posts-get-feed.ts +6 -8
- package/src/funcs/user-discovery-get-following.ts +0 -3
- package/src/funcs/user-discovery-get-user-profile.ts +0 -3
- package/src/funcs/user-discovery-search-users.ts +0 -3
- package/src/lib/config.ts +2 -2
- package/src/models/{custom-list.ts → collection.ts} +7 -7
- package/src/models/conversation.ts +0 -3
- package/src/models/index.ts +2 -1
- package/src/models/operations/add-collection-member.ts +61 -0
- package/src/models/operations/create-collection.ts +31 -0
- package/src/models/operations/create-post.ts +1 -1
- package/src/models/operations/get-collection-feed.ts +40 -0
- package/src/models/operations/get-collection-members.ts +33 -0
- package/src/models/operations/get-creator-posts.ts +6 -0
- package/src/models/operations/get-feed.ts +3 -32
- package/src/models/operations/get-message-history.ts +41 -0
- package/src/models/operations/index.ts +5 -5
- package/src/models/operations/remove-collection-member.ts +36 -0
- package/src/models/paginated-posts-response.ts +38 -0
- package/src/sdk/creator-timelines.ts +4 -5
- package/src/sdk/custom-collections.ts +88 -0
- package/src/sdk/direct-messaging.ts +7 -5
- package/src/sdk/posts.ts +11 -15
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/user-discovery.ts +0 -9
- package/src/models/operations/add-list-member.ts +0 -59
- package/src/models/operations/create-list.ts +0 -31
- package/src/models/operations/get-list-feed.ts +0 -34
- package/src/models/operations/get-list-members.ts +0 -31
- package/src/models/operations/remove-list-member.ts +0 -34
- package/src/sdk/custom-lists.ts +0 -88
package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
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
|
|
31
|
+
* Add a user to a custom collection
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function customCollectionsAddCollectionMember(
|
|
34
34
|
client: FankareSDKCore,
|
|
35
|
-
|
|
36
|
-
body: operations.
|
|
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
|
-
|
|
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
|
-
|
|
62
|
-
body: operations.
|
|
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.
|
|
81
|
-
|
|
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) =>
|
|
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
|
-
|
|
98
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
98
99
|
explode: false,
|
|
99
100
|
charEncoding: "percent",
|
|
100
101
|
}),
|
|
101
102
|
};
|
|
102
|
-
const path = pathToFunc("/
|
|
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: "
|
|
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:
|
|
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
|
|
32
|
+
* Create a new custom grouping collection
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function customCollectionsCreateCollection(
|
|
35
35
|
client: FankareSDKCore,
|
|
36
|
-
request: operations.
|
|
36
|
+
request: operations.CreateCollectionRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
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.
|
|
60
|
+
request: operations.CreateCollectionRequest,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
models.
|
|
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) =>
|
|
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("/
|
|
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: "
|
|
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.
|
|
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.
|
|
154
|
+
M.json(201, models.Collection$inboundSchema),
|
|
154
155
|
M.fail("4XX"),
|
|
155
156
|
M.fail("5XX"),
|
|
156
157
|
)(response, req);
|
package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
* @generated-id:
|
|
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
|
|
32
|
+
* Get all members belonging to a custom collection
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function customCollectionsGetCollectionMembers(
|
|
35
35
|
client: FankareSDKCore,
|
|
36
|
-
|
|
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
|
-
|
|
53
|
+
collectionId,
|
|
54
54
|
options,
|
|
55
55
|
));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: FankareSDKCore,
|
|
60
|
-
|
|
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.
|
|
79
|
-
|
|
78
|
+
const input: operations.GetCollectionMembersRequest = {
|
|
79
|
+
collectionId: collectionId,
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
const parsed = safeParse(
|
|
83
83
|
input,
|
|
84
|
-
(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
|
-
|
|
95
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
95
96
|
explode: false,
|
|
96
97
|
charEncoding: "percent",
|
|
97
98
|
}),
|
|
98
99
|
};
|
|
99
|
-
const path = pathToFunc("/
|
|
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: "
|
|
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:
|
|
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
|
|
29
|
+
* Get all collections created by the user
|
|
30
30
|
*/
|
|
31
|
-
export function
|
|
31
|
+
export function customCollectionsGetCollections(
|
|
32
32
|
client: FankareSDKCore,
|
|
33
33
|
options?: RequestOptions,
|
|
34
34
|
): APIPromise<
|
|
35
35
|
Result<
|
|
36
|
-
Array<models.
|
|
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.
|
|
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("/
|
|
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: "
|
|
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.
|
|
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.
|
|
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:
|
|
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
|
|
31
|
+
* Remove a user from a custom collection
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function customCollectionsRemoveCollectionMember(
|
|
34
34
|
client: FankareSDKCore,
|
|
35
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
81
|
-
|
|
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.
|
|
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
|
-
|
|
98
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
99
99
|
explode: false,
|
|
100
100
|
charEncoding: "percent",
|
|
101
101
|
}),
|
|
102
102
|
};
|
|
103
|
-
const path = pathToFunc("/
|
|
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: "
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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:
|
|
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
|
|
32
|
+
* Get a timeline filtered strictly by members of this collection with pagination
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function postsGetCollectionFeed(
|
|
35
35
|
client: FankareSDKCore,
|
|
36
|
-
|
|
36
|
+
collectionId: number,
|
|
37
37
|
limit?: number | undefined,
|
|
38
|
+
cursor?: string | undefined,
|
|
38
39
|
options?: RequestOptions,
|
|
39
40
|
): APIPromise<
|
|
40
41
|
Result<
|
|
41
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
82
|
-
|
|
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) =>
|
|
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
|
-
|
|
103
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
99
104
|
explode: false,
|
|
100
105
|
charEncoding: "percent",
|
|
101
106
|
}),
|
|
102
107
|
};
|
|
103
|
-
const path = pathToFunc("/
|
|
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: "
|
|
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
|
-
|
|
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,
|
|
177
|
+
M.json(200, models.PaginatedPostsResponse$inboundSchema),
|
|
172
178
|
M.fail("4XX"),
|
|
173
179
|
M.fail("5XX"),
|
|
174
180
|
)(response, req);
|