@aurora-interactive/fankare-api-sdk 0.0.5 → 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/FUNCTIONS.md +0 -1
- package/README.md +64 -8
- 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/internal-asset-processing-callback.d.ts +17 -0
- package/esm/funcs/internal-asset-processing-callback.d.ts.map +1 -0
- package/esm/funcs/internal-asset-processing-callback.js +96 -0
- package/esm/funcs/internal-asset-processing-callback.js.map +1 -0
- package/esm/funcs/me-confirm-avatar-upload.d.ts +14 -0
- package/esm/funcs/me-confirm-avatar-upload.d.ts.map +1 -0
- package/esm/funcs/me-confirm-avatar-upload.js +78 -0
- package/esm/funcs/me-confirm-avatar-upload.js.map +1 -0
- package/esm/funcs/me-confirm-banner-upload.d.ts +14 -0
- package/esm/funcs/me-confirm-banner-upload.d.ts.map +1 -0
- package/esm/funcs/me-confirm-banner-upload.js +78 -0
- package/esm/funcs/me-confirm-banner-upload.js.map +1 -0
- package/esm/funcs/me-get-me.d.ts +14 -0
- package/esm/funcs/me-get-me.d.ts.map +1 -0
- package/esm/funcs/me-get-me.js +67 -0
- package/esm/funcs/me-get-me.js.map +1 -0
- package/esm/funcs/me-request-avatar-upload-url.d.ts +14 -0
- package/esm/funcs/me-request-avatar-upload-url.d.ts.map +1 -0
- package/esm/funcs/me-request-avatar-upload-url.js +78 -0
- package/esm/funcs/me-request-avatar-upload-url.js.map +1 -0
- package/esm/funcs/me-request-banner-upload-url.d.ts +14 -0
- package/esm/funcs/me-request-banner-upload-url.d.ts.map +1 -0
- package/esm/funcs/me-request-banner-upload-url.js +78 -0
- package/esm/funcs/me-request-banner-upload-url.js.map +1 -0
- package/esm/funcs/me-update-me.d.ts +14 -0
- package/esm/funcs/me-update-me.d.ts.map +1 -0
- package/esm/funcs/me-update-me.js +78 -0
- package/esm/funcs/me-update-me.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-create-post.d.ts +5 -3
- package/esm/funcs/posts-create-post.d.ts.map +1 -1
- package/esm/funcs/posts-create-post.js +5 -3
- package/esm/funcs/posts-create-post.js.map +1 -1
- 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-delete-post.d.ts +13 -0
- package/esm/funcs/posts-delete-post.d.ts.map +1 -0
- package/esm/funcs/posts-delete-post.js +86 -0
- package/esm/funcs/posts-delete-post.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-get-post.d.ts +14 -0
- package/esm/funcs/posts-get-post.d.ts.map +1 -0
- package/esm/funcs/posts-get-post.js +87 -0
- package/esm/funcs/posts-get-post.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/posts-update-post.d.ts +17 -0
- package/esm/funcs/posts-update-post.d.ts.map +1 -0
- package/esm/funcs/posts-update-post.js +92 -0
- package/esm/funcs/posts-update-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 +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/asset-declaration.d.ts +52 -0
- package/esm/models/asset-declaration.d.ts.map +1 -0
- package/esm/models/asset-declaration.js +37 -0
- package/esm/models/asset-declaration.js.map +1 -0
- package/esm/models/asset-processing-callback-request.d.ts +39 -0
- package/esm/models/asset-processing-callback-request.d.ts.map +1 -0
- package/esm/models/asset-processing-callback-request.js +24 -0
- package/esm/models/asset-processing-callback-request.js.map +1 -0
- 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/create-post-request.d.ts +11 -22
- package/esm/models/create-post-request.d.ts.map +1 -1
- package/esm/models/create-post-request.js +3 -16
- package/esm/models/create-post-request.js.map +1 -1
- package/esm/models/create-post-response.d.ts +18 -0
- package/esm/models/create-post-response.d.ts.map +1 -0
- package/esm/models/create-post-response.js +17 -0
- package/esm/models/create-post-response.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 +19 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +19 -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/media-asset.d.ts +11 -5
- package/esm/models/media-asset.d.ts.map +1 -1
- package/esm/models/media-asset.js +4 -5
- package/esm/models/media-asset.js.map +1 -1
- 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/asset-processing-callback.d.ts +17 -0
- package/esm/models/operations/asset-processing-callback.d.ts.map +1 -0
- package/esm/models/operations/asset-processing-callback.js +16 -0
- package/esm/models/operations/asset-processing-callback.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/delete-post.d.ts +12 -0
- package/esm/models/operations/delete-post.d.ts.map +1 -0
- package/esm/models/operations/delete-post.js +13 -0
- package/esm/models/operations/delete-post.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-post.d.ts +12 -0
- package/esm/models/operations/get-post.d.ts.map +1 -0
- package/esm/models/operations/get-post.js +13 -0
- package/esm/models/operations/get-post.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 +16 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +16 -1
- 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/operations/update-post.d.ts +15 -0
- package/esm/models/operations/update-post.d.ts.map +1 -0
- package/esm/models/operations/update-post.js +15 -0
- package/esm/models/operations/update-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/post.d.ts +20 -1
- package/esm/models/post.d.ts.map +1 -1
- package/esm/models/post.js +13 -1
- package/esm/models/post.js.map +1 -1
- package/esm/models/profile-media-confirm-request.d.ts +15 -0
- package/esm/models/profile-media-confirm-request.d.ts.map +1 -0
- package/esm/models/profile-media-confirm-request.js +13 -0
- package/esm/models/profile-media-confirm-request.js.map +1 -0
- package/esm/models/profile-media-upload-request.d.ts +30 -0
- package/esm/models/profile-media-upload-request.d.ts.map +1 -0
- package/esm/models/profile-media-upload-request.js +23 -0
- package/esm/models/profile-media-upload-request.js.map +1 -0
- package/esm/models/profile-media-upload-response.d.ts +21 -0
- package/esm/models/profile-media-upload-response.d.ts.map +1 -0
- package/esm/models/profile-media-upload-response.js +17 -0
- package/esm/models/profile-media-upload-response.js.map +1 -0
- package/esm/models/register-request.d.ts +2 -2
- package/esm/models/register-request.d.ts.map +1 -1
- package/esm/models/register-request.js +1 -1
- package/esm/models/register-request.js.map +1 -1
- 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/update-post-request.d.ts +30 -0
- package/esm/models/update-post-request.d.ts.map +1 -0
- package/esm/models/update-post-request.js +22 -0
- package/esm/models/update-post-request.js.map +1 -0
- package/esm/models/update-profile-request.d.ts +17 -0
- package/esm/models/update-profile-request.d.ts.map +1 -0
- package/esm/models/update-profile-request.js +14 -0
- package/esm/models/update-profile-request.js.map +1 -0
- package/esm/models/upload-slot.d.ts +29 -0
- package/esm/models/upload-slot.d.ts.map +1 -0
- package/esm/models/upload-slot.js +20 -0
- package/esm/models/upload-slot.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/internal.d.ts +12 -0
- package/esm/sdk/internal.d.ts.map +1 -0
- package/esm/sdk/internal.js +19 -0
- package/esm/sdk/internal.js.map +1 -0
- package/esm/sdk/me.d.ts +29 -0
- package/esm/sdk/me.d.ts.map +1 -0
- package/esm/sdk/me.js +51 -0
- package/esm/sdk/me.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 +44 -3
- package/esm/sdk/posts.d.ts.map +1 -1
- package/esm/sdk/posts.js +70 -1
- package/esm/sdk/posts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +12 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +20 -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/examples/authenticationRegisterUser.example.ts +0 -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/internal-asset-processing-callback.ts +190 -0
- package/src/funcs/me-confirm-avatar-upload.ts +161 -0
- package/src/funcs/me-confirm-banner-upload.ts +161 -0
- package/src/funcs/me-get-me.ts +142 -0
- package/src/funcs/me-request-avatar-upload-url.ts +161 -0
- package/src/funcs/me-request-banner-upload-url.ts +161 -0
- package/src/funcs/me-update-me.ts +161 -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-create-post.ts +9 -7
- package/src/funcs/posts-delete-comment.ts +178 -0
- package/src/funcs/posts-delete-post.ts +170 -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-get-post.ts +171 -0
- package/src/funcs/posts-like-post.ts +170 -0
- package/src/funcs/posts-unlike-post.ts +170 -0
- package/src/funcs/posts-update-post.ts +179 -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 +3 -3
- package/src/models/asset-declaration.ts +84 -0
- package/src/models/asset-processing-callback-request.ts +68 -0
- package/src/models/comment.ts +38 -0
- package/src/models/create-comment-request.ts +34 -0
- package/src/models/create-post-request.ts +17 -39
- package/src/models/create-post-response.ts +41 -0
- package/src/models/follower-count-response.ts +32 -0
- package/src/models/index.ts +19 -0
- package/src/models/mark-notifications-read-request.ts +42 -0
- package/src/models/media-asset.ts +16 -8
- package/src/models/notification.ts +60 -0
- package/src/models/operations/asset-processing-callback.ts +40 -0
- package/src/models/operations/create-comment.ts +35 -0
- package/src/models/operations/delete-comment.ts +34 -0
- package/src/models/operations/delete-post.ts +31 -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-post.ts +27 -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 +16 -1
- package/src/models/operations/like-post.ts +29 -0
- package/src/models/operations/unlike-post.ts +31 -0
- package/src/models/operations/update-post.ts +35 -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/post.ts +27 -2
- package/src/models/profile-media-confirm-request.ts +34 -0
- package/src/models/profile-media-upload-request.ts +55 -0
- package/src/models/profile-media-upload-response.ts +45 -0
- package/src/models/register-request.ts +3 -3
- package/src/models/unread-count-response.ts +32 -0
- package/src/models/update-post-request.ts +56 -0
- package/src/models/update-profile-request.ts +37 -0
- package/src/models/upload-slot.ts +53 -0
- package/src/models/user.ts +5 -0
- package/src/sdk/creators-discovery.ts +40 -0
- package/src/sdk/internal.ts +32 -0
- package/src/sdk/me.ts +98 -0
- package/src/sdk/notifications.ts +55 -0
- package/src/sdk/posts.ts +157 -3
- package/src/sdk/sdk.ts +24 -0
- package/src/sdk/user-discovery.ts +64 -0
- package/src/models/operations/create-post.ts +0 -62
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dd751a66d133
|
|
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 { UploadSlot, UploadSlot$inboundSchema } from "./upload-slot.js";
|
|
12
|
+
|
|
13
|
+
export type CreatePostResponse = {
|
|
14
|
+
/**
|
|
15
|
+
* ID of the newly created DRAFT post.
|
|
16
|
+
*/
|
|
17
|
+
postId?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* One entry per declared asset, in the same order as the request.
|
|
20
|
+
*/
|
|
21
|
+
uploadSlots?: Array<UploadSlot> | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const CreatePostResponse$inboundSchema: z.ZodMiniType<
|
|
26
|
+
CreatePostResponse,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
postId: types.optional(types.number()),
|
|
30
|
+
uploadSlots: types.optional(z.array(UploadSlot$inboundSchema)),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function createPostResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<CreatePostResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => CreatePostResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'CreatePostResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b61cb4711504
|
|
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 FollowerCountResponse = {
|
|
13
|
+
count: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const FollowerCountResponse$inboundSchema: z.ZodMiniType<
|
|
18
|
+
FollowerCountResponse,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
count: types.number(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function followerCountResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<FollowerCountResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => FollowerCountResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'FollowerCountResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
package/src/models/index.ts
CHANGED
|
@@ -3,16 +3,35 @@
|
|
|
3
3
|
* @generated-id: f93644b0f37e
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
export * from "./asset-declaration.js";
|
|
7
|
+
export * from "./asset-processing-callback-request.js";
|
|
6
8
|
export * from "./collection.js";
|
|
9
|
+
export * from "./comment.js";
|
|
7
10
|
export * from "./conversation.js";
|
|
11
|
+
export * from "./create-comment-request.js";
|
|
8
12
|
export * from "./create-post-request.js";
|
|
13
|
+
export * from "./create-post-response.js";
|
|
14
|
+
export * from "./follower-count-response.js";
|
|
9
15
|
export * from "./login-request.js";
|
|
16
|
+
export * from "./mark-notifications-read-request.js";
|
|
10
17
|
export * from "./media-asset.js";
|
|
11
18
|
export * from "./message.js";
|
|
19
|
+
export * from "./notification.js";
|
|
20
|
+
export * from "./paginated-comments-response.js";
|
|
21
|
+
export * from "./paginated-followers-response.js";
|
|
22
|
+
export * from "./paginated-likes-response.js";
|
|
23
|
+
export * from "./paginated-notifications-response.js";
|
|
12
24
|
export * from "./paginated-posts-response.js";
|
|
13
25
|
export * from "./post.js";
|
|
26
|
+
export * from "./profile-media-confirm-request.js";
|
|
27
|
+
export * from "./profile-media-upload-request.js";
|
|
28
|
+
export * from "./profile-media-upload-response.js";
|
|
14
29
|
export * from "./register-request.js";
|
|
15
30
|
export * from "./security.js";
|
|
16
31
|
export * from "./send-message-request.js";
|
|
32
|
+
export * from "./unread-count-response.js";
|
|
33
|
+
export * from "./update-post-request.js";
|
|
34
|
+
export * from "./update-profile-request.js";
|
|
35
|
+
export * from "./upload-slot.js";
|
|
17
36
|
export * from "./user-profile.js";
|
|
18
37
|
export * from "./user.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b985d3fe8187
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type MarkNotificationsReadRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Specific notification IDs to mark as read. If empty/omitted and markAll is true, marks all as read.
|
|
11
|
+
*/
|
|
12
|
+
notificationIds?: Array<number> | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* If true, marks all notifications for the user as read. If false, only marks the specified notificationIds.
|
|
15
|
+
*/
|
|
16
|
+
markAll?: boolean | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type MarkNotificationsReadRequest$Outbound = {
|
|
21
|
+
notificationIds?: Array<number> | undefined;
|
|
22
|
+
markAll: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const MarkNotificationsReadRequest$outboundSchema: z.ZodMiniType<
|
|
27
|
+
MarkNotificationsReadRequest$Outbound,
|
|
28
|
+
MarkNotificationsReadRequest
|
|
29
|
+
> = z.object({
|
|
30
|
+
notificationIds: z.optional(z.array(z.int())),
|
|
31
|
+
markAll: z._default(z.boolean(), false),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function markNotificationsReadRequestToJSON(
|
|
35
|
+
markNotificationsReadRequest: MarkNotificationsReadRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
MarkNotificationsReadRequest$outboundSchema.parse(
|
|
39
|
+
markNotificationsReadRequest,
|
|
40
|
+
),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -17,18 +17,24 @@ export const MediaAssetMediaType = {
|
|
|
17
17
|
} as const;
|
|
18
18
|
export type MediaAssetMediaType = OpenEnum<typeof MediaAssetMediaType>;
|
|
19
19
|
|
|
20
|
-
export const
|
|
20
|
+
export const MediaAssetStatus = {
|
|
21
21
|
Processing: "PROCESSING",
|
|
22
22
|
Ready: "READY",
|
|
23
23
|
Failed: "FAILED",
|
|
24
24
|
} as const;
|
|
25
|
-
export type
|
|
25
|
+
export type MediaAssetStatus = OpenEnum<typeof MediaAssetStatus>;
|
|
26
26
|
|
|
27
27
|
export type MediaAsset = {
|
|
28
28
|
id?: number | undefined;
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Fully qualified URL to the processed output file in SeaweedFS. Null while the asset is still PROCESSING.
|
|
31
|
+
*/
|
|
32
|
+
mediaUrl?: string | null | undefined;
|
|
30
33
|
mediaType?: MediaAssetMediaType | undefined;
|
|
31
|
-
status?:
|
|
34
|
+
status?: MediaAssetStatus | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Zero-based display order of the asset within the post carousel.
|
|
37
|
+
*/
|
|
32
38
|
sortOrder?: number | undefined;
|
|
33
39
|
};
|
|
34
40
|
|
|
@@ -39,16 +45,18 @@ export const MediaAssetMediaType$inboundSchema: z.ZodMiniType<
|
|
|
39
45
|
> = openEnums.inboundSchema(MediaAssetMediaType);
|
|
40
46
|
|
|
41
47
|
/** @internal */
|
|
42
|
-
export const
|
|
43
|
-
|
|
48
|
+
export const MediaAssetStatus$inboundSchema: z.ZodMiniType<
|
|
49
|
+
MediaAssetStatus,
|
|
50
|
+
unknown
|
|
51
|
+
> = openEnums.inboundSchema(MediaAssetStatus);
|
|
44
52
|
|
|
45
53
|
/** @internal */
|
|
46
54
|
export const MediaAsset$inboundSchema: z.ZodMiniType<MediaAsset, unknown> = z
|
|
47
55
|
.object({
|
|
48
56
|
id: types.optional(types.number()),
|
|
49
|
-
mediaUrl:
|
|
57
|
+
mediaUrl: z.optional(z.nullable(types.string())),
|
|
50
58
|
mediaType: types.optional(MediaAssetMediaType$inboundSchema),
|
|
51
|
-
status: types.optional(
|
|
59
|
+
status: types.optional(MediaAssetStatus$inboundSchema),
|
|
52
60
|
sortOrder: types.optional(types.number()),
|
|
53
61
|
});
|
|
54
62
|
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e9cd3c32fa84
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
11
|
+
import * as types from "../types/primitives.js";
|
|
12
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
13
|
+
import { User, User$inboundSchema } from "./user.js";
|
|
14
|
+
|
|
15
|
+
export const ActivityType = {
|
|
16
|
+
Like: "LIKE",
|
|
17
|
+
Comment: "COMMENT",
|
|
18
|
+
ListAddition: "LIST_ADDITION",
|
|
19
|
+
NewFollower: "NEW_FOLLOWER",
|
|
20
|
+
} as const;
|
|
21
|
+
export type ActivityType = OpenEnum<typeof ActivityType>;
|
|
22
|
+
|
|
23
|
+
export type Notification = {
|
|
24
|
+
id: number;
|
|
25
|
+
recipientId: number;
|
|
26
|
+
sender: User;
|
|
27
|
+
activityType: ActivityType;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the post, comment, list, or subscription associated with the activity.
|
|
30
|
+
*/
|
|
31
|
+
sourceId?: number | null | undefined;
|
|
32
|
+
isRead: boolean;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const ActivityType$inboundSchema: z.ZodMiniType<ActivityType, unknown> =
|
|
38
|
+
openEnums.inboundSchema(ActivityType);
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const Notification$inboundSchema: z.ZodMiniType<Notification, unknown> =
|
|
42
|
+
z.object({
|
|
43
|
+
id: types.number(),
|
|
44
|
+
recipientId: types.number(),
|
|
45
|
+
sender: User$inboundSchema,
|
|
46
|
+
activityType: ActivityType$inboundSchema,
|
|
47
|
+
sourceId: z.optional(z.nullable(types.number())),
|
|
48
|
+
isRead: types.boolean(),
|
|
49
|
+
createdAt: types.date(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function notificationFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<Notification, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => Notification$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'Notification' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f56cb37b1a71
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type AssetProcessingCallbackRequest = {
|
|
10
|
+
postId: number;
|
|
11
|
+
assetId: number;
|
|
12
|
+
body: models.AssetProcessingCallbackRequest;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type AssetProcessingCallbackRequest$Outbound = {
|
|
17
|
+
postId: number;
|
|
18
|
+
assetId: number;
|
|
19
|
+
body: models.AssetProcessingCallbackRequest$Outbound;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const AssetProcessingCallbackRequest$outboundSchema: z.ZodMiniType<
|
|
24
|
+
AssetProcessingCallbackRequest$Outbound,
|
|
25
|
+
AssetProcessingCallbackRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
postId: z.int(),
|
|
28
|
+
assetId: z.int(),
|
|
29
|
+
body: models.AssetProcessingCallbackRequest$outboundSchema,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export function assetProcessingCallbackRequestToJSON(
|
|
33
|
+
assetProcessingCallbackRequest: AssetProcessingCallbackRequest,
|
|
34
|
+
): string {
|
|
35
|
+
return JSON.stringify(
|
|
36
|
+
AssetProcessingCallbackRequest$outboundSchema.parse(
|
|
37
|
+
assetProcessingCallbackRequest,
|
|
38
|
+
),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fcbe666d71bb
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type CreateCommentRequest = {
|
|
10
|
+
postId: number;
|
|
11
|
+
body: models.CreateCommentRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type CreateCommentRequest$Outbound = {
|
|
16
|
+
postId: number;
|
|
17
|
+
body: models.CreateCommentRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CreateCommentRequest$outboundSchema: z.ZodMiniType<
|
|
22
|
+
CreateCommentRequest$Outbound,
|
|
23
|
+
CreateCommentRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
postId: z.int(),
|
|
26
|
+
body: models.CreateCommentRequest$outboundSchema,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function createCommentRequestToJSON(
|
|
30
|
+
createCommentRequest: CreateCommentRequest,
|
|
31
|
+
): string {
|
|
32
|
+
return JSON.stringify(
|
|
33
|
+
CreateCommentRequest$outboundSchema.parse(createCommentRequest),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b335b32bc098
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type DeleteCommentRequest = {
|
|
9
|
+
postId: number;
|
|
10
|
+
commentId: number;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type DeleteCommentRequest$Outbound = {
|
|
15
|
+
postId: number;
|
|
16
|
+
commentId: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DeleteCommentRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
DeleteCommentRequest$Outbound,
|
|
22
|
+
DeleteCommentRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
postId: z.int(),
|
|
25
|
+
commentId: z.int(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function deleteCommentRequestToJSON(
|
|
29
|
+
deleteCommentRequest: DeleteCommentRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
DeleteCommentRequest$outboundSchema.parse(deleteCommentRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2d3c4c4d46f8
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type DeletePostRequest = {
|
|
9
|
+
postId: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type DeletePostRequest$Outbound = {
|
|
14
|
+
postId: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const DeletePostRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
DeletePostRequest$Outbound,
|
|
20
|
+
DeletePostRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
postId: z.int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function deletePostRequestToJSON(
|
|
26
|
+
deletePostRequest: DeletePostRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
DeletePostRequest$outboundSchema.parse(deletePostRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f8f0efa3bb43
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetFeaturedCreatorsRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetFeaturedCreatorsRequest$Outbound = {
|
|
14
|
+
limit: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetFeaturedCreatorsRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
GetFeaturedCreatorsRequest$Outbound,
|
|
20
|
+
GetFeaturedCreatorsRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
limit: z._default(z.int(), 10),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function getFeaturedCreatorsRequestToJSON(
|
|
26
|
+
getFeaturedCreatorsRequest: GetFeaturedCreatorsRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
GetFeaturedCreatorsRequest$outboundSchema.parse(getFeaturedCreatorsRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: db9352f64d27
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetFollowersRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Opaque cursor pointing to the last subscription timestamp/ID for pagination
|
|
12
|
+
*/
|
|
13
|
+
cursor?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type GetFollowersRequest$Outbound = {
|
|
18
|
+
limit: number;
|
|
19
|
+
cursor?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const GetFollowersRequest$outboundSchema: z.ZodMiniType<
|
|
24
|
+
GetFollowersRequest$Outbound,
|
|
25
|
+
GetFollowersRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
limit: z._default(z.int(), 20),
|
|
28
|
+
cursor: z.optional(z.string()),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function getFollowersRequestToJSON(
|
|
32
|
+
getFollowersRequest: GetFollowersRequest,
|
|
33
|
+
): string {
|
|
34
|
+
return JSON.stringify(
|
|
35
|
+
GetFollowersRequest$outboundSchema.parse(getFollowersRequest),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3e8e19ae40a5
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetNotificationsRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Opaque cursor pointing to the last notification ID/timestamp for pagination
|
|
12
|
+
*/
|
|
13
|
+
cursor?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type GetNotificationsRequest$Outbound = {
|
|
18
|
+
limit: number;
|
|
19
|
+
cursor?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const GetNotificationsRequest$outboundSchema: z.ZodMiniType<
|
|
24
|
+
GetNotificationsRequest$Outbound,
|
|
25
|
+
GetNotificationsRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
limit: z._default(z.int(), 20),
|
|
28
|
+
cursor: z.optional(z.string()),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function getNotificationsRequestToJSON(
|
|
32
|
+
getNotificationsRequest: GetNotificationsRequest,
|
|
33
|
+
): string {
|
|
34
|
+
return JSON.stringify(
|
|
35
|
+
GetNotificationsRequest$outboundSchema.parse(getNotificationsRequest),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0e3fef778bb2
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetPostCommentsRequest = {
|
|
9
|
+
postId: number;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Opaque cursor pointing to the last comment ID/timestamp for pagination
|
|
13
|
+
*/
|
|
14
|
+
cursor?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type GetPostCommentsRequest$Outbound = {
|
|
19
|
+
postId: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
cursor?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const GetPostCommentsRequest$outboundSchema: z.ZodMiniType<
|
|
26
|
+
GetPostCommentsRequest$Outbound,
|
|
27
|
+
GetPostCommentsRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
postId: z.int(),
|
|
30
|
+
limit: z._default(z.int(), 20),
|
|
31
|
+
cursor: z.optional(z.string()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function getPostCommentsRequestToJSON(
|
|
35
|
+
getPostCommentsRequest: GetPostCommentsRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
GetPostCommentsRequest$outboundSchema.parse(getPostCommentsRequest),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e1e75b984469
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetPostLikesRequest = {
|
|
9
|
+
postId: number;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Opaque cursor pointing to the last like entry for pagination
|
|
13
|
+
*/
|
|
14
|
+
cursor?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type GetPostLikesRequest$Outbound = {
|
|
19
|
+
postId: number;
|
|
20
|
+
limit: number;
|
|
21
|
+
cursor?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const GetPostLikesRequest$outboundSchema: z.ZodMiniType<
|
|
26
|
+
GetPostLikesRequest$Outbound,
|
|
27
|
+
GetPostLikesRequest
|
|
28
|
+
> = z.object({
|
|
29
|
+
postId: z.int(),
|
|
30
|
+
limit: z._default(z.int(), 20),
|
|
31
|
+
cursor: z.optional(z.string()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function getPostLikesRequestToJSON(
|
|
35
|
+
getPostLikesRequest: GetPostLikesRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
GetPostLikesRequest$outboundSchema.parse(getPostLikesRequest),
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e9168f4e2a0d
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetPostRequest = {
|
|
9
|
+
postId: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetPostRequest$Outbound = {
|
|
14
|
+
postId: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetPostRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
GetPostRequest$Outbound,
|
|
20
|
+
GetPostRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
postId: z.int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function getPostRequestToJSON(getPostRequest: GetPostRequest): string {
|
|
26
|
+
return JSON.stringify(GetPostRequest$outboundSchema.parse(getPostRequest));
|
|
27
|
+
}
|
|
@@ -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
|
+
}
|