@aurora-interactive/fankare-api-sdk 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/esm/funcs/creators-discovery-get-featured-creators.d.ts +14 -0
- package/esm/funcs/creators-discovery-get-featured-creators.d.ts.map +1 -0
- package/esm/funcs/creators-discovery-get-featured-creators.js +85 -0
- package/esm/funcs/creators-discovery-get-featured-creators.js.map +1 -0
- package/esm/funcs/creators-discovery-get-trending-creators.d.ts +14 -0
- package/esm/funcs/creators-discovery-get-trending-creators.d.ts.map +1 -0
- package/esm/funcs/creators-discovery-get-trending-creators.js +85 -0
- package/esm/funcs/creators-discovery-get-trending-creators.js.map +1 -0
- package/esm/funcs/notifications-get-notifications.d.ts +14 -0
- package/esm/funcs/notifications-get-notifications.d.ts.map +1 -0
- package/esm/funcs/notifications-get-notifications.js +87 -0
- package/esm/funcs/notifications-get-notifications.js.map +1 -0
- package/esm/funcs/notifications-get-unread-notification-count.d.ts +14 -0
- package/esm/funcs/notifications-get-unread-notification-count.d.ts.map +1 -0
- package/esm/funcs/notifications-get-unread-notification-count.js +67 -0
- package/esm/funcs/notifications-get-unread-notification-count.js.map +1 -0
- package/esm/funcs/notifications-mark-notifications-as-read.d.ts +14 -0
- package/esm/funcs/notifications-mark-notifications-as-read.d.ts.map +1 -0
- package/esm/funcs/notifications-mark-notifications-as-read.js +78 -0
- package/esm/funcs/notifications-mark-notifications-as-read.js.map +1 -0
- package/esm/funcs/posts-create-comment.d.ts +14 -0
- package/esm/funcs/posts-create-comment.d.ts.map +1 -0
- package/esm/funcs/posts-create-comment.js +89 -0
- package/esm/funcs/posts-create-comment.js.map +1 -0
- package/esm/funcs/posts-delete-comment.d.ts +13 -0
- package/esm/funcs/posts-delete-comment.d.ts.map +1 -0
- package/esm/funcs/posts-delete-comment.js +91 -0
- package/esm/funcs/posts-delete-comment.js.map +1 -0
- package/esm/funcs/posts-get-post-comments.d.ts +14 -0
- package/esm/funcs/posts-get-post-comments.d.ts.map +1 -0
- package/esm/funcs/posts-get-post-comments.js +94 -0
- package/esm/funcs/posts-get-post-comments.js.map +1 -0
- package/esm/funcs/posts-get-post-likes.d.ts +14 -0
- package/esm/funcs/posts-get-post-likes.d.ts.map +1 -0
- package/esm/funcs/posts-get-post-likes.js +94 -0
- package/esm/funcs/posts-get-post-likes.js.map +1 -0
- package/esm/funcs/posts-like-post.d.ts +13 -0
- package/esm/funcs/posts-like-post.d.ts.map +1 -0
- package/esm/funcs/posts-like-post.js +86 -0
- package/esm/funcs/posts-like-post.js.map +1 -0
- package/esm/funcs/posts-unlike-post.d.ts +13 -0
- package/esm/funcs/posts-unlike-post.d.ts.map +1 -0
- package/esm/funcs/posts-unlike-post.js +86 -0
- package/esm/funcs/posts-unlike-post.js.map +1 -0
- package/esm/funcs/user-discovery-get-follower-count.d.ts +14 -0
- package/esm/funcs/user-discovery-get-follower-count.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-follower-count.js +67 -0
- package/esm/funcs/user-discovery-get-follower-count.js.map +1 -0
- package/esm/funcs/user-discovery-get-followers.d.ts +14 -0
- package/esm/funcs/user-discovery-get-followers.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-followers.js +87 -0
- package/esm/funcs/user-discovery-get-followers.js.map +1 -0
- package/esm/funcs/user-discovery-get-user-follower-count.d.ts +14 -0
- package/esm/funcs/user-discovery-get-user-follower-count.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-user-follower-count.js +87 -0
- package/esm/funcs/user-discovery-get-user-follower-count.js.map +1 -0
- package/esm/funcs/user-discovery-get-user-followers.d.ts +14 -0
- package/esm/funcs/user-discovery-get-user-followers.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-user-followers.js +94 -0
- package/esm/funcs/user-discovery-get-user-followers.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/comment.d.ts +15 -0
- package/esm/models/comment.d.ts.map +1 -0
- package/esm/models/comment.js +20 -0
- package/esm/models/comment.js.map +1 -0
- package/esm/models/create-comment-request.d.ts +15 -0
- package/esm/models/create-comment-request.d.ts.map +1 -0
- package/esm/models/create-comment-request.js +13 -0
- package/esm/models/create-comment-request.js.map +1 -0
- package/esm/models/follower-count-response.d.ts +10 -0
- package/esm/models/follower-count-response.d.ts.map +1 -0
- package/esm/models/follower-count-response.js +15 -0
- package/esm/models/follower-count-response.js.map +1 -0
- package/esm/models/index.d.ts +10 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +10 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/mark-notifications-read-request.d.ts +20 -0
- package/esm/models/mark-notifications-read-request.d.ts.map +1 -0
- package/esm/models/mark-notifications-read-request.js +14 -0
- package/esm/models/mark-notifications-read-request.js.map +1 -0
- package/esm/models/notification.d.ts +30 -0
- package/esm/models/notification.d.ts.map +1 -0
- package/esm/models/notification.js +31 -0
- package/esm/models/notification.js.map +1 -0
- package/esm/models/operations/create-comment.d.ts +15 -0
- package/esm/models/operations/create-comment.d.ts.map +1 -0
- package/esm/models/operations/create-comment.js +15 -0
- package/esm/models/operations/create-comment.js.map +1 -0
- package/esm/models/operations/delete-comment.d.ts +14 -0
- package/esm/models/operations/delete-comment.d.ts.map +1 -0
- package/esm/models/operations/delete-comment.js +14 -0
- package/esm/models/operations/delete-comment.js.map +1 -0
- package/esm/models/operations/get-featured-creators.d.ts +12 -0
- package/esm/models/operations/get-featured-creators.d.ts.map +1 -0
- package/esm/models/operations/get-featured-creators.js +13 -0
- package/esm/models/operations/get-featured-creators.js.map +1 -0
- package/esm/models/operations/get-followers.d.ts +17 -0
- package/esm/models/operations/get-followers.d.ts.map +1 -0
- package/esm/models/operations/get-followers.js +14 -0
- package/esm/models/operations/get-followers.js.map +1 -0
- package/esm/models/operations/get-notifications.d.ts +17 -0
- package/esm/models/operations/get-notifications.d.ts.map +1 -0
- package/esm/models/operations/get-notifications.js +14 -0
- package/esm/models/operations/get-notifications.js.map +1 -0
- package/esm/models/operations/get-post-comments.d.ts +19 -0
- package/esm/models/operations/get-post-comments.d.ts.map +1 -0
- package/esm/models/operations/get-post-comments.js +15 -0
- package/esm/models/operations/get-post-comments.js.map +1 -0
- package/esm/models/operations/get-post-likes.d.ts +19 -0
- package/esm/models/operations/get-post-likes.d.ts.map +1 -0
- package/esm/models/operations/get-post-likes.js +15 -0
- package/esm/models/operations/get-post-likes.js.map +1 -0
- package/esm/models/operations/get-trending-creators.d.ts +12 -0
- package/esm/models/operations/get-trending-creators.d.ts.map +1 -0
- package/esm/models/operations/get-trending-creators.js +13 -0
- package/esm/models/operations/get-trending-creators.js.map +1 -0
- package/esm/models/operations/get-user-follower-count.d.ts +12 -0
- package/esm/models/operations/get-user-follower-count.d.ts.map +1 -0
- package/esm/models/operations/get-user-follower-count.js +13 -0
- package/esm/models/operations/get-user-follower-count.js.map +1 -0
- package/esm/models/operations/get-user-followers.d.ts +19 -0
- package/esm/models/operations/get-user-followers.d.ts.map +1 -0
- package/esm/models/operations/get-user-followers.js +15 -0
- package/esm/models/operations/get-user-followers.js.map +1 -0
- package/esm/models/operations/index.d.ts +12 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +12 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/like-post.d.ts +12 -0
- package/esm/models/operations/like-post.d.ts.map +1 -0
- package/esm/models/operations/like-post.js +13 -0
- package/esm/models/operations/like-post.js.map +1 -0
- package/esm/models/operations/unlike-post.d.ts +12 -0
- package/esm/models/operations/unlike-post.d.ts.map +1 -0
- package/esm/models/operations/unlike-post.js +13 -0
- package/esm/models/operations/unlike-post.js.map +1 -0
- package/esm/models/paginated-comments-response.d.ts +15 -0
- package/esm/models/paginated-comments-response.d.ts.map +1 -0
- package/esm/models/paginated-comments-response.js +17 -0
- package/esm/models/paginated-comments-response.js.map +1 -0
- package/esm/models/paginated-followers-response.d.ts +15 -0
- package/esm/models/paginated-followers-response.d.ts.map +1 -0
- package/esm/models/paginated-followers-response.js +17 -0
- package/esm/models/paginated-followers-response.js.map +1 -0
- package/esm/models/paginated-likes-response.d.ts +15 -0
- package/esm/models/paginated-likes-response.d.ts.map +1 -0
- package/esm/models/paginated-likes-response.js +17 -0
- package/esm/models/paginated-likes-response.js.map +1 -0
- package/esm/models/paginated-notifications-response.d.ts +15 -0
- package/esm/models/paginated-notifications-response.d.ts.map +1 -0
- package/esm/models/paginated-notifications-response.js +17 -0
- package/esm/models/paginated-notifications-response.js.map +1 -0
- package/esm/models/unread-count-response.d.ts +10 -0
- package/esm/models/unread-count-response.d.ts.map +1 -0
- package/esm/models/unread-count-response.js +15 -0
- package/esm/models/unread-count-response.js.map +1 -0
- package/esm/models/user.d.ts +4 -0
- package/esm/models/user.d.ts.map +1 -1
- package/esm/models/user.js +1 -0
- package/esm/models/user.js.map +1 -1
- package/esm/sdk/creators-discovery.d.ts +13 -0
- package/esm/sdk/creators-discovery.d.ts.map +1 -0
- package/esm/sdk/creators-discovery.js +23 -0
- package/esm/sdk/creators-discovery.js.map +1 -0
- package/esm/sdk/notifications.d.ts +17 -0
- package/esm/sdk/notifications.d.ts.map +1 -0
- package/esm/sdk/notifications.js +30 -0
- package/esm/sdk/notifications.js.map +1 -0
- package/esm/sdk/posts.d.ts +24 -0
- package/esm/sdk/posts.d.ts.map +1 -1
- package/esm/sdk/posts.js +42 -0
- package/esm/sdk/posts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +6 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +10 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/user-discovery.d.ts +16 -0
- package/esm/sdk/user-discovery.d.ts.map +1 -1
- package/esm/sdk/user-discovery.js +28 -0
- package/esm/sdk/user-discovery.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/creators-discovery-get-featured-creators.ts +174 -0
- package/src/funcs/creators-discovery-get-trending-creators.ts +174 -0
- package/src/funcs/notifications-get-notifications.ts +179 -0
- package/src/funcs/notifications-get-unread-notification-count.ts +142 -0
- package/src/funcs/notifications-mark-notifications-as-read.ts +162 -0
- package/src/funcs/posts-create-comment.ts +176 -0
- package/src/funcs/posts-delete-comment.ts +178 -0
- package/src/funcs/posts-get-post-comments.ts +185 -0
- package/src/funcs/posts-get-post-likes.ts +185 -0
- package/src/funcs/posts-like-post.ts +170 -0
- package/src/funcs/posts-unlike-post.ts +170 -0
- package/src/funcs/user-discovery-get-follower-count.ts +142 -0
- package/src/funcs/user-discovery-get-followers.ts +176 -0
- package/src/funcs/user-discovery-get-user-follower-count.ts +172 -0
- package/src/funcs/user-discovery-get-user-followers.ts +186 -0
- package/src/lib/config.ts +2 -2
- package/src/models/comment.ts +38 -0
- package/src/models/create-comment-request.ts +34 -0
- package/src/models/follower-count-response.ts +32 -0
- package/src/models/index.ts +10 -0
- package/src/models/mark-notifications-read-request.ts +42 -0
- package/src/models/notification.ts +60 -0
- package/src/models/operations/create-comment.ts +35 -0
- package/src/models/operations/delete-comment.ts +34 -0
- package/src/models/operations/get-featured-creators.ts +31 -0
- package/src/models/operations/get-followers.ts +37 -0
- package/src/models/operations/get-notifications.ts +37 -0
- package/src/models/operations/get-post-comments.ts +40 -0
- package/src/models/operations/get-post-likes.ts +40 -0
- package/src/models/operations/get-trending-creators.ts +31 -0
- package/src/models/operations/get-user-follower-count.ts +33 -0
- package/src/models/operations/get-user-followers.ts +40 -0
- package/src/models/operations/index.ts +12 -0
- package/src/models/operations/like-post.ts +29 -0
- package/src/models/operations/unlike-post.ts +31 -0
- package/src/models/paginated-comments-response.ts +38 -0
- package/src/models/paginated-followers-response.ts +38 -0
- package/src/models/paginated-likes-response.ts +38 -0
- package/src/models/paginated-notifications-response.ts +38 -0
- package/src/models/unread-count-response.ts +32 -0
- package/src/models/user.ts +5 -0
- package/src/sdk/creators-discovery.ts +40 -0
- package/src/sdk/notifications.ts +55 -0
- package/src/sdk/posts.ts +102 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/user-discovery.ts +64 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e06a8733f9f8
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetTrendingCreatorsRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetTrendingCreatorsRequest$Outbound = {
|
|
14
|
+
limit: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetTrendingCreatorsRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
GetTrendingCreatorsRequest$Outbound,
|
|
20
|
+
GetTrendingCreatorsRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
limit: z._default(z.int(), 10),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function getTrendingCreatorsRequestToJSON(
|
|
26
|
+
getTrendingCreatorsRequest: GetTrendingCreatorsRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
GetTrendingCreatorsRequest$outboundSchema.parse(getTrendingCreatorsRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5bb213ee5b8e
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetUserFollowerCountRequest = {
|
|
9
|
+
userId: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetUserFollowerCountRequest$Outbound = {
|
|
14
|
+
userId: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetUserFollowerCountRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
GetUserFollowerCountRequest$Outbound,
|
|
20
|
+
GetUserFollowerCountRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
userId: z.int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function getUserFollowerCountRequestToJSON(
|
|
26
|
+
getUserFollowerCountRequest: GetUserFollowerCountRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
GetUserFollowerCountRequest$outboundSchema.parse(
|
|
30
|
+
getUserFollowerCountRequest,
|
|
31
|
+
),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: acccc5e14739
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetUserFollowersRequest = {
|
|
9
|
+
userId: number;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Opaque cursor pointing to the last subscription timestamp/ID for pagination
|
|
13
|
+
*/
|
|
14
|
+
cursor?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type GetUserFollowersRequest$Outbound = {
|
|
19
|
+
userId: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
cursor?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const GetUserFollowersRequest$outboundSchema: z.ZodMiniType<
|
|
26
|
+
GetUserFollowersRequest$Outbound,
|
|
27
|
+
GetUserFollowersRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
userId: z.int(),
|
|
30
|
+
limit: z._default(z.int(), 20),
|
|
31
|
+
cursor: z.optional(z.string()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function getUserFollowersRequestToJSON(
|
|
35
|
+
getUserFollowersRequest: GetUserFollowersRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
GetUserFollowersRequest$outboundSchema.parse(getUserFollowersRequest),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -6,18 +6,30 @@
|
|
|
6
6
|
export * from "./add-collection-member.js";
|
|
7
7
|
export * from "./asset-processing-callback.js";
|
|
8
8
|
export * from "./create-collection.js";
|
|
9
|
+
export * from "./create-comment.js";
|
|
10
|
+
export * from "./delete-comment.js";
|
|
9
11
|
export * from "./delete-post.js";
|
|
10
12
|
export * from "./get-collection-feed.js";
|
|
11
13
|
export * from "./get-collection-members.js";
|
|
12
14
|
export * from "./get-creator-posts.js";
|
|
15
|
+
export * from "./get-featured-creators.js";
|
|
13
16
|
export * from "./get-feed.js";
|
|
17
|
+
export * from "./get-followers.js";
|
|
14
18
|
export * from "./get-message-history.js";
|
|
19
|
+
export * from "./get-notifications.js";
|
|
20
|
+
export * from "./get-post-comments.js";
|
|
21
|
+
export * from "./get-post-likes.js";
|
|
15
22
|
export * from "./get-post.js";
|
|
23
|
+
export * from "./get-trending-creators.js";
|
|
24
|
+
export * from "./get-user-follower-count.js";
|
|
25
|
+
export * from "./get-user-followers.js";
|
|
16
26
|
export * from "./get-user-profile.js";
|
|
27
|
+
export * from "./like-post.js";
|
|
17
28
|
export * from "./login-user.js";
|
|
18
29
|
export * from "./remove-collection-member.js";
|
|
19
30
|
export * from "./search-users.js";
|
|
20
31
|
export * from "./send-message.js";
|
|
21
32
|
export * from "./subscribe-to-user.js";
|
|
33
|
+
export * from "./unlike-post.js";
|
|
22
34
|
export * from "./unsubscribe-from-user.js";
|
|
23
35
|
export * from "./update-post.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 11acb87198d5
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type LikePostRequest = {
|
|
9
|
+
postId: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type LikePostRequest$Outbound = {
|
|
14
|
+
postId: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const LikePostRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
LikePostRequest$Outbound,
|
|
20
|
+
LikePostRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
postId: z.int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function likePostRequestToJSON(
|
|
26
|
+
likePostRequest: LikePostRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(LikePostRequest$outboundSchema.parse(likePostRequest));
|
|
29
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3cc4356423f3
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type UnlikePostRequest = {
|
|
9
|
+
postId: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type UnlikePostRequest$Outbound = {
|
|
14
|
+
postId: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const UnlikePostRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
UnlikePostRequest$Outbound,
|
|
20
|
+
UnlikePostRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
postId: z.int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function unlikePostRequestToJSON(
|
|
26
|
+
unlikePostRequest: UnlikePostRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
UnlikePostRequest$outboundSchema.parse(unlikePostRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 13655bb3a778
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import * as types from "../types/primitives.js";
|
|
10
|
+
import { Comment, Comment$inboundSchema } from "./comment.js";
|
|
11
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
|
+
|
|
13
|
+
export type PaginatedCommentsResponse = {
|
|
14
|
+
items: Array<Comment>;
|
|
15
|
+
/**
|
|
16
|
+
* Provide this value to the next request's cursor query parameter to fetch the next block.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const PaginatedCommentsResponse$inboundSchema: z.ZodMiniType<
|
|
23
|
+
PaginatedCommentsResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.array(Comment$inboundSchema),
|
|
27
|
+
nextCursor: z.optional(z.nullable(types.string())),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function paginatedCommentsResponseFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<PaginatedCommentsResponse, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => PaginatedCommentsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'PaginatedCommentsResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: bcf641cda580
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import * as types from "../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
+
import { User, User$inboundSchema } from "./user.js";
|
|
12
|
+
|
|
13
|
+
export type PaginatedFollowersResponse = {
|
|
14
|
+
items: Array<User>;
|
|
15
|
+
/**
|
|
16
|
+
* Provide this value to the next request's cursor query parameter to fetch the next block.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const PaginatedFollowersResponse$inboundSchema: z.ZodMiniType<
|
|
23
|
+
PaginatedFollowersResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.array(User$inboundSchema),
|
|
27
|
+
nextCursor: z.optional(z.nullable(types.string())),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function paginatedFollowersResponseFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<PaginatedFollowersResponse, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => PaginatedFollowersResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'PaginatedFollowersResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8971c979aa1a
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import * as types from "../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
+
import { User, User$inboundSchema } from "./user.js";
|
|
12
|
+
|
|
13
|
+
export type PaginatedLikesResponse = {
|
|
14
|
+
items: Array<User>;
|
|
15
|
+
/**
|
|
16
|
+
* Provide this value to the next request's cursor query parameter to fetch the next block.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const PaginatedLikesResponse$inboundSchema: z.ZodMiniType<
|
|
23
|
+
PaginatedLikesResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.array(User$inboundSchema),
|
|
27
|
+
nextCursor: z.optional(z.nullable(types.string())),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function paginatedLikesResponseFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<PaginatedLikesResponse, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => PaginatedLikesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'PaginatedLikesResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c3c325de7446
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import * as types from "../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
+
import { Notification, Notification$inboundSchema } from "./notification.js";
|
|
12
|
+
|
|
13
|
+
export type PaginatedNotificationsResponse = {
|
|
14
|
+
items: Array<Notification>;
|
|
15
|
+
/**
|
|
16
|
+
* Provide this value to the next request's cursor query parameter to fetch the next block.
|
|
17
|
+
*/
|
|
18
|
+
nextCursor?: string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const PaginatedNotificationsResponse$inboundSchema: z.ZodMiniType<
|
|
23
|
+
PaginatedNotificationsResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
items: z.array(Notification$inboundSchema),
|
|
27
|
+
nextCursor: z.optional(z.nullable(types.string())),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function paginatedNotificationsResponseFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<PaginatedNotificationsResponse, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => PaginatedNotificationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'PaginatedNotificationsResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e3c5050cae0f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import * as types from "../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
|
+
|
|
12
|
+
export type UnreadCountResponse = {
|
|
13
|
+
count: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const UnreadCountResponse$inboundSchema: z.ZodMiniType<
|
|
18
|
+
UnreadCountResponse,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
count: types.number(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function unreadCountResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UnreadCountResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UnreadCountResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UnreadCountResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
package/src/models/user.ts
CHANGED
|
@@ -40,6 +40,10 @@ export type User = {
|
|
|
40
40
|
* System verified identity indicator badge validation toggle
|
|
41
41
|
*/
|
|
42
42
|
isVerified?: boolean | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates if the user is a curated/featured creator showcased on guest pages
|
|
45
|
+
*/
|
|
46
|
+
isFeatured?: boolean | undefined;
|
|
43
47
|
/**
|
|
44
48
|
* Monthly paywall gate pricing valuation tier for premium feed access
|
|
45
49
|
*/
|
|
@@ -65,6 +69,7 @@ export const User$inboundSchema: z.ZodMiniType<User, unknown> = z.object({
|
|
|
65
69
|
bannerUrl: z.optional(z.nullable(types.string())),
|
|
66
70
|
isCreator: types.optional(types.boolean()),
|
|
67
71
|
isVerified: types.optional(types.boolean()),
|
|
72
|
+
isFeatured: types.optional(types.boolean()),
|
|
68
73
|
subscriptionPrice: types.optional(types.number()),
|
|
69
74
|
accountStatus: types.optional(AccountStatus$inboundSchema),
|
|
70
75
|
createdAt: types.optional(types.date()),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fd5248f58055
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { creatorsDiscoveryGetFeaturedCreators } from "../funcs/creators-discovery-get-featured-creators.js";
|
|
7
|
+
import { creatorsDiscoveryGetTrendingCreators } from "../funcs/creators-discovery-get-trending-creators.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as models from "../models/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class CreatorsDiscovery extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Fetch a curated list of featured creators for the Guest Landing page
|
|
15
|
+
*/
|
|
16
|
+
async getFeaturedCreators(
|
|
17
|
+
limit?: number | undefined,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<Array<models.User>> {
|
|
20
|
+
return unwrapAsync(creatorsDiscoveryGetFeaturedCreators(
|
|
21
|
+
this,
|
|
22
|
+
limit,
|
|
23
|
+
options,
|
|
24
|
+
));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Fetch popular creators to discover in the sidebar
|
|
29
|
+
*/
|
|
30
|
+
async getTrendingCreators(
|
|
31
|
+
limit?: number | undefined,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): Promise<Array<models.User>> {
|
|
34
|
+
return unwrapAsync(creatorsDiscoveryGetTrendingCreators(
|
|
35
|
+
this,
|
|
36
|
+
limit,
|
|
37
|
+
options,
|
|
38
|
+
));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3d0b195b882f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { notificationsGetNotifications } from "../funcs/notifications-get-notifications.js";
|
|
7
|
+
import { notificationsGetUnreadNotificationCount } from "../funcs/notifications-get-unread-notification-count.js";
|
|
8
|
+
import { notificationsMarkNotificationsAsRead } from "../funcs/notifications-mark-notifications-as-read.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as models from "../models/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class Notifications extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Fetch a paginated feed of notifications for the authenticated user
|
|
16
|
+
*/
|
|
17
|
+
async getNotifications(
|
|
18
|
+
limit?: number | undefined,
|
|
19
|
+
cursor?: string | undefined,
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): Promise<models.PaginatedNotificationsResponse> {
|
|
22
|
+
return unwrapAsync(notificationsGetNotifications(
|
|
23
|
+
this,
|
|
24
|
+
limit,
|
|
25
|
+
cursor,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Fetch the count of unread notifications for the authenticated user
|
|
32
|
+
*/
|
|
33
|
+
async getUnreadNotificationCount(
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<models.UnreadCountResponse> {
|
|
36
|
+
return unwrapAsync(notificationsGetUnreadNotificationCount(
|
|
37
|
+
this,
|
|
38
|
+
options,
|
|
39
|
+
));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Mark notifications as read
|
|
44
|
+
*/
|
|
45
|
+
async markNotificationsAsRead(
|
|
46
|
+
request: models.MarkNotificationsReadRequest,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): Promise<void> {
|
|
49
|
+
return unwrapAsync(notificationsMarkNotificationsAsRead(
|
|
50
|
+
this,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
}
|
package/src/sdk/posts.ts
CHANGED
|
@@ -3,11 +3,17 @@
|
|
|
3
3
|
* @generated-id: 6787631da7f6
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { postsCreateComment } from "../funcs/posts-create-comment.js";
|
|
6
7
|
import { postsCreatePost } from "../funcs/posts-create-post.js";
|
|
8
|
+
import { postsDeleteComment } from "../funcs/posts-delete-comment.js";
|
|
7
9
|
import { postsDeletePost } from "../funcs/posts-delete-post.js";
|
|
8
10
|
import { postsGetCollectionFeed } from "../funcs/posts-get-collection-feed.js";
|
|
9
11
|
import { postsGetFeed } from "../funcs/posts-get-feed.js";
|
|
12
|
+
import { postsGetPostComments } from "../funcs/posts-get-post-comments.js";
|
|
13
|
+
import { postsGetPostLikes } from "../funcs/posts-get-post-likes.js";
|
|
10
14
|
import { postsGetPost } from "../funcs/posts-get-post.js";
|
|
15
|
+
import { postsLikePost } from "../funcs/posts-like-post.js";
|
|
16
|
+
import { postsUnlikePost } from "../funcs/posts-unlike-post.js";
|
|
11
17
|
import { postsUpdatePost } from "../funcs/posts-update-post.js";
|
|
12
18
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
13
19
|
import * as models from "../models/index.js";
|
|
@@ -94,6 +100,102 @@ export class Posts extends ClientSDK {
|
|
|
94
100
|
));
|
|
95
101
|
}
|
|
96
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Fetch the list of users who liked a post
|
|
105
|
+
*/
|
|
106
|
+
async getPostLikes(
|
|
107
|
+
postId: number,
|
|
108
|
+
limit?: number | undefined,
|
|
109
|
+
cursor?: string | undefined,
|
|
110
|
+
options?: RequestOptions,
|
|
111
|
+
): Promise<models.PaginatedLikesResponse> {
|
|
112
|
+
return unwrapAsync(postsGetPostLikes(
|
|
113
|
+
this,
|
|
114
|
+
postId,
|
|
115
|
+
limit,
|
|
116
|
+
cursor,
|
|
117
|
+
options,
|
|
118
|
+
));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Like a post
|
|
123
|
+
*/
|
|
124
|
+
async likePost(
|
|
125
|
+
postId: number,
|
|
126
|
+
options?: RequestOptions,
|
|
127
|
+
): Promise<void> {
|
|
128
|
+
return unwrapAsync(postsLikePost(
|
|
129
|
+
this,
|
|
130
|
+
postId,
|
|
131
|
+
options,
|
|
132
|
+
));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Unlike a post
|
|
137
|
+
*/
|
|
138
|
+
async unlikePost(
|
|
139
|
+
postId: number,
|
|
140
|
+
options?: RequestOptions,
|
|
141
|
+
): Promise<void> {
|
|
142
|
+
return unwrapAsync(postsUnlikePost(
|
|
143
|
+
this,
|
|
144
|
+
postId,
|
|
145
|
+
options,
|
|
146
|
+
));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Fetch paginated comments for a post
|
|
151
|
+
*/
|
|
152
|
+
async getPostComments(
|
|
153
|
+
postId: number,
|
|
154
|
+
limit?: number | undefined,
|
|
155
|
+
cursor?: string | undefined,
|
|
156
|
+
options?: RequestOptions,
|
|
157
|
+
): Promise<models.PaginatedCommentsResponse> {
|
|
158
|
+
return unwrapAsync(postsGetPostComments(
|
|
159
|
+
this,
|
|
160
|
+
postId,
|
|
161
|
+
limit,
|
|
162
|
+
cursor,
|
|
163
|
+
options,
|
|
164
|
+
));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Add a comment to a post
|
|
169
|
+
*/
|
|
170
|
+
async createComment(
|
|
171
|
+
postId: number,
|
|
172
|
+
body: models.CreateCommentRequest,
|
|
173
|
+
options?: RequestOptions,
|
|
174
|
+
): Promise<models.Comment> {
|
|
175
|
+
return unwrapAsync(postsCreateComment(
|
|
176
|
+
this,
|
|
177
|
+
postId,
|
|
178
|
+
body,
|
|
179
|
+
options,
|
|
180
|
+
));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Delete a comment from a post
|
|
185
|
+
*/
|
|
186
|
+
async deleteComment(
|
|
187
|
+
postId: number,
|
|
188
|
+
commentId: number,
|
|
189
|
+
options?: RequestOptions,
|
|
190
|
+
): Promise<void> {
|
|
191
|
+
return unwrapAsync(postsDeleteComment(
|
|
192
|
+
this,
|
|
193
|
+
postId,
|
|
194
|
+
commentId,
|
|
195
|
+
options,
|
|
196
|
+
));
|
|
197
|
+
}
|
|
198
|
+
|
|
97
199
|
/**
|
|
98
200
|
* Get a timeline filtered strictly by members of this collection with pagination
|
|
99
201
|
*/
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
import { ClientSDK } from "../lib/sdks.js";
|
|
7
7
|
import { Authentication } from "./authentication.js";
|
|
8
8
|
import { CreatorTimelines } from "./creator-timelines.js";
|
|
9
|
+
import { CreatorsDiscovery } from "./creators-discovery.js";
|
|
9
10
|
import { CustomCollections } from "./custom-collections.js";
|
|
10
11
|
import { DirectMessaging } from "./direct-messaging.js";
|
|
11
12
|
import { Internal } from "./internal.js";
|
|
12
13
|
import { Me } from "./me.js";
|
|
14
|
+
import { Notifications } from "./notifications.js";
|
|
13
15
|
import { Posts } from "./posts.js";
|
|
14
16
|
import { Subscriptions } from "./subscriptions.js";
|
|
15
17
|
import { UserDiscovery } from "./user-discovery.js";
|
|
@@ -59,4 +61,14 @@ export class FankareSDK extends ClientSDK {
|
|
|
59
61
|
get customCollections(): CustomCollections {
|
|
60
62
|
return (this._customCollections ??= new CustomCollections(this._options));
|
|
61
63
|
}
|
|
64
|
+
|
|
65
|
+
private _notifications?: Notifications;
|
|
66
|
+
get notifications(): Notifications {
|
|
67
|
+
return (this._notifications ??= new Notifications(this._options));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private _creatorsDiscovery?: CreatorsDiscovery;
|
|
71
|
+
get creatorsDiscovery(): CreatorsDiscovery {
|
|
72
|
+
return (this._creatorsDiscovery ??= new CreatorsDiscovery(this._options));
|
|
73
|
+
}
|
|
62
74
|
}
|