@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,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
|
+
}
|
|
@@ -4,17 +4,32 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export * from "./add-collection-member.js";
|
|
7
|
+
export * from "./asset-processing-callback.js";
|
|
7
8
|
export * from "./create-collection.js";
|
|
8
|
-
export * from "./create-
|
|
9
|
+
export * from "./create-comment.js";
|
|
10
|
+
export * from "./delete-comment.js";
|
|
11
|
+
export * from "./delete-post.js";
|
|
9
12
|
export * from "./get-collection-feed.js";
|
|
10
13
|
export * from "./get-collection-members.js";
|
|
11
14
|
export * from "./get-creator-posts.js";
|
|
15
|
+
export * from "./get-featured-creators.js";
|
|
12
16
|
export * from "./get-feed.js";
|
|
17
|
+
export * from "./get-followers.js";
|
|
13
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";
|
|
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";
|
|
14
26
|
export * from "./get-user-profile.js";
|
|
27
|
+
export * from "./like-post.js";
|
|
15
28
|
export * from "./login-user.js";
|
|
16
29
|
export * from "./remove-collection-member.js";
|
|
17
30
|
export * from "./search-users.js";
|
|
18
31
|
export * from "./send-message.js";
|
|
19
32
|
export * from "./subscribe-to-user.js";
|
|
33
|
+
export * from "./unlike-post.js";
|
|
20
34
|
export * from "./unsubscribe-from-user.js";
|
|
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,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ca5a5edf4af7
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type UpdatePostRequest = {
|
|
10
|
+
postId: number;
|
|
11
|
+
body: models.UpdatePostRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type UpdatePostRequest$Outbound = {
|
|
16
|
+
postId: number;
|
|
17
|
+
body: models.UpdatePostRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UpdatePostRequest$outboundSchema: z.ZodMiniType<
|
|
22
|
+
UpdatePostRequest$Outbound,
|
|
23
|
+
UpdatePostRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
postId: z.int(),
|
|
26
|
+
body: models.UpdatePostRequest$outboundSchema,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function updatePostRequestToJSON(
|
|
30
|
+
updatePostRequest: UpdatePostRequest,
|
|
31
|
+
): string {
|
|
32
|
+
return JSON.stringify(
|
|
33
|
+
UpdatePostRequest$outboundSchema.parse(updatePostRequest),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -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
|
+
}
|
package/src/models/post.ts
CHANGED
|
@@ -5,26 +5,51 @@
|
|
|
5
5
|
|
|
6
6
|
import * as z from "zod/v4-mini";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
11
|
import * as types from "../types/primitives.js";
|
|
10
12
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
11
13
|
import { MediaAsset, MediaAsset$inboundSchema } from "./media-asset.js";
|
|
12
14
|
|
|
15
|
+
/**
|
|
16
|
+
* DRAFT posts are only visible to the owning creator. PUBLISHED posts appear in subscriber feeds.
|
|
17
|
+
*/
|
|
18
|
+
export const PostStatus = {
|
|
19
|
+
Draft: "DRAFT",
|
|
20
|
+
Published: "PUBLISHED",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* DRAFT posts are only visible to the owning creator. PUBLISHED posts appear in subscriber feeds.
|
|
24
|
+
*/
|
|
25
|
+
export type PostStatus = OpenEnum<typeof PostStatus>;
|
|
26
|
+
|
|
13
27
|
export type Post = {
|
|
14
28
|
id?: number | undefined;
|
|
15
29
|
userId?: number | undefined;
|
|
16
|
-
caption?: string | undefined;
|
|
30
|
+
caption?: string | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* DRAFT posts are only visible to the owning creator. PUBLISHED posts appear in subscriber feeds.
|
|
33
|
+
*/
|
|
34
|
+
status?: PostStatus | undefined;
|
|
17
35
|
assets?: Array<MediaAsset> | undefined;
|
|
18
36
|
createdAt?: Date | undefined;
|
|
37
|
+
updatedAt?: Date | undefined;
|
|
19
38
|
};
|
|
20
39
|
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const PostStatus$inboundSchema: z.ZodMiniType<PostStatus, unknown> =
|
|
42
|
+
openEnums.inboundSchema(PostStatus);
|
|
43
|
+
|
|
21
44
|
/** @internal */
|
|
22
45
|
export const Post$inboundSchema: z.ZodMiniType<Post, unknown> = z.object({
|
|
23
46
|
id: types.optional(types.number()),
|
|
24
47
|
userId: types.optional(types.number()),
|
|
25
|
-
caption:
|
|
48
|
+
caption: z.optional(z.nullable(types.string())),
|
|
49
|
+
status: types.optional(PostStatus$inboundSchema),
|
|
26
50
|
assets: types.optional(z.array(MediaAsset$inboundSchema)),
|
|
27
51
|
createdAt: types.optional(types.date()),
|
|
52
|
+
updatedAt: types.optional(types.date()),
|
|
28
53
|
});
|
|
29
54
|
|
|
30
55
|
export function postFromJSON(
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 798bece0ede8
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type ProfileMediaConfirmRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The mediaKey value returned by the corresponding upload-url response. The gateway verifies a HMAC signature embedded in the key to prevent clients from supplying arbitrary paths.
|
|
11
|
+
*/
|
|
12
|
+
mediaKey: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ProfileMediaConfirmRequest$Outbound = {
|
|
17
|
+
mediaKey: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ProfileMediaConfirmRequest$outboundSchema: z.ZodMiniType<
|
|
22
|
+
ProfileMediaConfirmRequest$Outbound,
|
|
23
|
+
ProfileMediaConfirmRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
mediaKey: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function profileMediaConfirmRequestToJSON(
|
|
29
|
+
profileMediaConfirmRequest: ProfileMediaConfirmRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
ProfileMediaConfirmRequest$outboundSchema.parse(profileMediaConfirmRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a4c6edf5ee58
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* MIME type of the file to be uploaded. Must be an accepted image type.
|
|
11
|
+
*/
|
|
12
|
+
export const ProfileMediaUploadRequestContentType = {
|
|
13
|
+
ImageJpeg: "image/jpeg",
|
|
14
|
+
ImagePng: "image/png",
|
|
15
|
+
ImageWebp: "image/webp",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* MIME type of the file to be uploaded. Must be an accepted image type.
|
|
19
|
+
*/
|
|
20
|
+
export type ProfileMediaUploadRequestContentType = ClosedEnum<
|
|
21
|
+
typeof ProfileMediaUploadRequestContentType
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type ProfileMediaUploadRequest = {
|
|
25
|
+
/**
|
|
26
|
+
* MIME type of the file to be uploaded. Must be an accepted image type.
|
|
27
|
+
*/
|
|
28
|
+
contentType: ProfileMediaUploadRequestContentType;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ProfileMediaUploadRequestContentType$outboundSchema: z.ZodMiniEnum<
|
|
33
|
+
typeof ProfileMediaUploadRequestContentType
|
|
34
|
+
> = z.enum(ProfileMediaUploadRequestContentType);
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type ProfileMediaUploadRequest$Outbound = {
|
|
38
|
+
contentType: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const ProfileMediaUploadRequest$outboundSchema: z.ZodMiniType<
|
|
43
|
+
ProfileMediaUploadRequest$Outbound,
|
|
44
|
+
ProfileMediaUploadRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
contentType: ProfileMediaUploadRequestContentType$outboundSchema,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function profileMediaUploadRequestToJSON(
|
|
50
|
+
profileMediaUploadRequest: ProfileMediaUploadRequest,
|
|
51
|
+
): string {
|
|
52
|
+
return JSON.stringify(
|
|
53
|
+
ProfileMediaUploadRequest$outboundSchema.parse(profileMediaUploadRequest),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1829b849d292
|
|
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 ProfileMediaUploadResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Presigned HTTP PUT URL targeting the SeaweedFS volume. The client must issue a single PUT request with the binary file body and the matching Content-Type header. The URL is valid for the duration indicated by expiresInSeconds.
|
|
15
|
+
*/
|
|
16
|
+
uploadUrl?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The canonical SeaweedFS object key that will be persisted to the user record upon confirm. The client does not need to parse or store this value; it is echoed back in the confirm request body.
|
|
19
|
+
*/
|
|
20
|
+
mediaKey?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Number of seconds from now until the presigned URL expires.
|
|
23
|
+
*/
|
|
24
|
+
expiresInSeconds?: number | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const ProfileMediaUploadResponse$inboundSchema: z.ZodMiniType<
|
|
29
|
+
ProfileMediaUploadResponse,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
uploadUrl: types.optional(types.string()),
|
|
33
|
+
mediaKey: types.optional(types.string()),
|
|
34
|
+
expiresInSeconds: types.optional(types.number()),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function profileMediaUploadResponseFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<ProfileMediaUploadResponse, SDKValidationError> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) => ProfileMediaUploadResponse$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'ProfileMediaUploadResponse' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -10,7 +10,7 @@ export type RegisterRequest = {
|
|
|
10
10
|
email: string;
|
|
11
11
|
password: string;
|
|
12
12
|
displayName: string;
|
|
13
|
-
bio
|
|
13
|
+
bio?: string | null | undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
/** @internal */
|
|
@@ -19,7 +19,7 @@ export type RegisterRequest$Outbound = {
|
|
|
19
19
|
email: string;
|
|
20
20
|
password: string;
|
|
21
21
|
displayName: string;
|
|
22
|
-
bio
|
|
22
|
+
bio?: string | null | undefined;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
@@ -31,7 +31,7 @@ export const RegisterRequest$outboundSchema: z.ZodMiniType<
|
|
|
31
31
|
email: z.string(),
|
|
32
32
|
password: z.string(),
|
|
33
33
|
displayName: z.string(),
|
|
34
|
-
bio: z.string(),
|
|
34
|
+
bio: z.optional(z.nullable(z.string())),
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
export function registerRequestToJSON(
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 718707107a86
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Set to PUBLISHED to make the post visible to subscribers. The server validates that all asset slots are in READY status before allowing the transition. Cannot be used to revert a published post to DRAFT.
|
|
11
|
+
*/
|
|
12
|
+
export const UpdatePostRequestStatus = {
|
|
13
|
+
Published: "PUBLISHED",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Set to PUBLISHED to make the post visible to subscribers. The server validates that all asset slots are in READY status before allowing the transition. Cannot be used to revert a published post to DRAFT.
|
|
17
|
+
*/
|
|
18
|
+
export type UpdatePostRequestStatus = ClosedEnum<
|
|
19
|
+
typeof UpdatePostRequestStatus
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type UpdatePostRequest = {
|
|
23
|
+
caption?: string | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Set to PUBLISHED to make the post visible to subscribers. The server validates that all asset slots are in READY status before allowing the transition. Cannot be used to revert a published post to DRAFT.
|
|
26
|
+
*/
|
|
27
|
+
status?: UpdatePostRequestStatus | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const UpdatePostRequestStatus$outboundSchema: z.ZodMiniEnum<
|
|
32
|
+
typeof UpdatePostRequestStatus
|
|
33
|
+
> = z.enum(UpdatePostRequestStatus);
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type UpdatePostRequest$Outbound = {
|
|
37
|
+
caption?: string | null | undefined;
|
|
38
|
+
status?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const UpdatePostRequest$outboundSchema: z.ZodMiniType<
|
|
43
|
+
UpdatePostRequest$Outbound,
|
|
44
|
+
UpdatePostRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
caption: z.optional(z.nullable(z.string())),
|
|
47
|
+
status: z.optional(UpdatePostRequestStatus$outboundSchema),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function updatePostRequestToJSON(
|
|
51
|
+
updatePostRequest: UpdatePostRequest,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
UpdatePostRequest$outboundSchema.parse(updatePostRequest),
|
|
55
|
+
);
|
|
56
|
+
}
|