@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,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4085e9ab1118
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as models from "../models/index.js";
|
|
14
|
+
import * as operations from "../models/operations/index.js";
|
|
15
|
+
import { APIPromise } from "../types/async.js";
|
|
16
|
+
/**
|
|
17
|
+
* Fetch a specific user's paginated list of followers
|
|
18
|
+
*/
|
|
19
|
+
export function userDiscoveryGetUserFollowers(client, userId, limit, cursor, options) {
|
|
20
|
+
return new APIPromise($do(client, userId, limit, cursor, options));
|
|
21
|
+
}
|
|
22
|
+
async function $do(client, userId, limit, cursor, options) {
|
|
23
|
+
const input = {
|
|
24
|
+
userId: userId,
|
|
25
|
+
limit: limit,
|
|
26
|
+
cursor: cursor,
|
|
27
|
+
};
|
|
28
|
+
const parsed = safeParse(input, (value) => z.parse(operations.GetUserFollowersRequest$outboundSchema, value), "Input validation failed");
|
|
29
|
+
if (!parsed.ok) {
|
|
30
|
+
return [parsed, { status: "invalid" }];
|
|
31
|
+
}
|
|
32
|
+
const payload = parsed.value;
|
|
33
|
+
const body = null;
|
|
34
|
+
const pathParams = {
|
|
35
|
+
userId: encodeSimple("userId", payload.userId, {
|
|
36
|
+
explode: false,
|
|
37
|
+
charEncoding: "percent",
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
const path = pathToFunc("/users/{userId}/followers")(pathParams);
|
|
41
|
+
const query = encodeFormQuery({
|
|
42
|
+
"cursor": payload.cursor,
|
|
43
|
+
"limit": payload.limit,
|
|
44
|
+
});
|
|
45
|
+
const headers = new Headers(compactMap({
|
|
46
|
+
Accept: "application/json",
|
|
47
|
+
}));
|
|
48
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
49
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
50
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
51
|
+
const context = {
|
|
52
|
+
options: client._options,
|
|
53
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
54
|
+
operationID: "getUserFollowers",
|
|
55
|
+
oAuth2Scopes: null,
|
|
56
|
+
resolvedSecurity: requestSecurity,
|
|
57
|
+
securitySource: client._options.bearerAuth,
|
|
58
|
+
retryConfig: options?.retries
|
|
59
|
+
|| client._options.retryConfig
|
|
60
|
+
|| { strategy: "none" },
|
|
61
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
62
|
+
};
|
|
63
|
+
const requestRes = client._createRequest(context, {
|
|
64
|
+
security: requestSecurity,
|
|
65
|
+
method: "GET",
|
|
66
|
+
baseURL: options?.serverURL,
|
|
67
|
+
path: path,
|
|
68
|
+
headers: headers,
|
|
69
|
+
query: query,
|
|
70
|
+
body: body,
|
|
71
|
+
userAgent: client._options.userAgent,
|
|
72
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
73
|
+
}, options);
|
|
74
|
+
if (!requestRes.ok) {
|
|
75
|
+
return [requestRes, { status: "invalid" }];
|
|
76
|
+
}
|
|
77
|
+
const req = requestRes.value;
|
|
78
|
+
const doResult = await client._do(req, {
|
|
79
|
+
context,
|
|
80
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
81
|
+
retryConfig: context.retryConfig,
|
|
82
|
+
retryCodes: context.retryCodes,
|
|
83
|
+
});
|
|
84
|
+
if (!doResult.ok) {
|
|
85
|
+
return [doResult, { status: "request-error", request: req }];
|
|
86
|
+
}
|
|
87
|
+
const response = doResult.value;
|
|
88
|
+
const [result] = await M.match(M.json(200, models.PaginatedFollowersResponse$inboundSchema), M.fail([401, 404, "4XX"]), M.fail("5XX"))(response, req);
|
|
89
|
+
if (!result.ok) {
|
|
90
|
+
return [result, { status: "complete", request: req, response }];
|
|
91
|
+
}
|
|
92
|
+
return [result, { status: "complete", request: req, response }];
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=user-discovery-get-user-followers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-discovery-get-user-followers.js","sourceRoot":"","sources":["../../src/funcs/user-discovery-get-user-followers.ts"],"names":[],"mappings":"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"}
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ export type SDKOptions = {
|
|
|
30
30
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
|
-
readonly openapiDocVersion: "1.
|
|
34
|
-
readonly sdkVersion: "0.
|
|
33
|
+
readonly openapiDocVersion: "1.1.0";
|
|
34
|
+
readonly sdkVersion: "0.1.1";
|
|
35
35
|
readonly genVersion: "2.911.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.1 2.911.0 1.1.0 openapi";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -27,9 +27,9 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
}
|
|
28
28
|
export const SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
|
-
openapiDocVersion: "1.
|
|
31
|
-
sdkVersion: "0.
|
|
30
|
+
openapiDocVersion: "1.1.0",
|
|
31
|
+
sdkVersion: "0.1.1",
|
|
32
32
|
genVersion: "2.911.0",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.1.1 2.911.0 1.1.0 openapi",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Logical media category used to route the Celery processing task.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AssetDeclarationMediaType: {
|
|
7
|
+
readonly Image: "IMAGE";
|
|
8
|
+
readonly Video: "VIDEO";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Logical media category used to route the Celery processing task.
|
|
12
|
+
*/
|
|
13
|
+
export type AssetDeclarationMediaType = ClosedEnum<typeof AssetDeclarationMediaType>;
|
|
14
|
+
/**
|
|
15
|
+
* MIME type of the file to be uploaded. Must match the mediaType category.
|
|
16
|
+
*/
|
|
17
|
+
export declare const AssetDeclarationContentType: {
|
|
18
|
+
readonly ImageJpeg: "image/jpeg";
|
|
19
|
+
readonly ImagePng: "image/png";
|
|
20
|
+
readonly ImageWebp: "image/webp";
|
|
21
|
+
readonly ImageGif: "image/gif";
|
|
22
|
+
readonly VideoMp4: "video/mp4";
|
|
23
|
+
readonly VideoQuicktime: "video/quicktime";
|
|
24
|
+
readonly VideoXMatroska: "video/x-matroska";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* MIME type of the file to be uploaded. Must match the mediaType category.
|
|
28
|
+
*/
|
|
29
|
+
export type AssetDeclarationContentType = ClosedEnum<typeof AssetDeclarationContentType>;
|
|
30
|
+
export type AssetDeclaration = {
|
|
31
|
+
/**
|
|
32
|
+
* Logical media category used to route the Celery processing task.
|
|
33
|
+
*/
|
|
34
|
+
mediaType: AssetDeclarationMediaType;
|
|
35
|
+
/**
|
|
36
|
+
* MIME type of the file to be uploaded. Must match the mediaType category.
|
|
37
|
+
*/
|
|
38
|
+
contentType: AssetDeclarationContentType;
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
export declare const AssetDeclarationMediaType$outboundSchema: z.ZodMiniEnum<typeof AssetDeclarationMediaType>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const AssetDeclarationContentType$outboundSchema: z.ZodMiniEnum<typeof AssetDeclarationContentType>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type AssetDeclaration$Outbound = {
|
|
46
|
+
mediaType: string;
|
|
47
|
+
contentType: string;
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
export declare const AssetDeclaration$outboundSchema: z.ZodMiniType<AssetDeclaration$Outbound, AssetDeclaration>;
|
|
51
|
+
export declare function assetDeclarationToJSON(assetDeclaration: AssetDeclaration): string;
|
|
52
|
+
//# sourceMappingURL=asset-declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-declaration.d.ts","sourceRoot":"","sources":["../../src/models/asset-declaration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;CAQ9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,yBAAyB,CAAC;IACrC;;OAEG;IACH,WAAW,EAAE,2BAA2B,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,OAAO,yBAAyB,CACG,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,WAAW,CACpE,OAAO,2BAA2B,CACG,CAAC;AAExC,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,yBAAyB,EACzB,gBAAgB,CAIhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 382ff0659e0a
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/**
|
|
7
|
+
* Logical media category used to route the Celery processing task.
|
|
8
|
+
*/
|
|
9
|
+
export const AssetDeclarationMediaType = {
|
|
10
|
+
Image: "IMAGE",
|
|
11
|
+
Video: "VIDEO",
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* MIME type of the file to be uploaded. Must match the mediaType category.
|
|
15
|
+
*/
|
|
16
|
+
export const AssetDeclarationContentType = {
|
|
17
|
+
ImageJpeg: "image/jpeg",
|
|
18
|
+
ImagePng: "image/png",
|
|
19
|
+
ImageWebp: "image/webp",
|
|
20
|
+
ImageGif: "image/gif",
|
|
21
|
+
VideoMp4: "video/mp4",
|
|
22
|
+
VideoQuicktime: "video/quicktime",
|
|
23
|
+
VideoXMatroska: "video/x-matroska",
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const AssetDeclarationMediaType$outboundSchema = z.enum(AssetDeclarationMediaType);
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const AssetDeclarationContentType$outboundSchema = z.enum(AssetDeclarationContentType);
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const AssetDeclaration$outboundSchema = z.object({
|
|
31
|
+
mediaType: AssetDeclarationMediaType$outboundSchema,
|
|
32
|
+
contentType: AssetDeclarationContentType$outboundSchema,
|
|
33
|
+
});
|
|
34
|
+
export function assetDeclarationToJSON(assetDeclaration) {
|
|
35
|
+
return JSON.stringify(AssetDeclaration$outboundSchema.parse(assetDeclaration));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=asset-declaration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-declaration.js","sourceRoot":"","sources":["../../src/models/asset-declaration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACN,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,kBAAkB;CAC1B,CAAC;AAmBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAEjD,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;AAEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAEnD,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;AAQxC,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAGxC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,wCAAwC;IACnD,WAAW,EAAE,0CAA0C;CACxD,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,gBAAkC,EAC1B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The terminal processing outcome reported by the Celery worker.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AssetProcessingCallbackRequestStatus: {
|
|
7
|
+
readonly Ready: "READY";
|
|
8
|
+
readonly Failed: "FAILED";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The terminal processing outcome reported by the Celery worker.
|
|
12
|
+
*/
|
|
13
|
+
export type AssetProcessingCallbackRequestStatus = ClosedEnum<typeof AssetProcessingCallbackRequestStatus>;
|
|
14
|
+
export type AssetProcessingCallbackRequest = {
|
|
15
|
+
/**
|
|
16
|
+
* The terminal processing outcome reported by the Celery worker.
|
|
17
|
+
*/
|
|
18
|
+
status: AssetProcessingCallbackRequestStatus;
|
|
19
|
+
/**
|
|
20
|
+
* The canonical SeaweedFS path of the transcoded/optimised output file. Required when status is READY. The gateway overwrites post_assets.media_key with this value so that mediaUrl is derived from the processed file, not the raw upload.
|
|
21
|
+
*/
|
|
22
|
+
finalMediaKey?: string | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Human-readable failure reason for logging and observability. Only meaningful when status is FAILED.
|
|
25
|
+
*/
|
|
26
|
+
errorReason?: string | null | undefined;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const AssetProcessingCallbackRequestStatus$outboundSchema: z.ZodMiniEnum<typeof AssetProcessingCallbackRequestStatus>;
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type AssetProcessingCallbackRequest$Outbound = {
|
|
32
|
+
status: string;
|
|
33
|
+
finalMediaKey?: string | null | undefined;
|
|
34
|
+
errorReason?: string | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const AssetProcessingCallbackRequest$outboundSchema: z.ZodMiniType<AssetProcessingCallbackRequest$Outbound, AssetProcessingCallbackRequest>;
|
|
38
|
+
export declare function assetProcessingCallbackRequestToJSON(assetProcessingCallbackRequest: AssetProcessingCallbackRequest): string;
|
|
39
|
+
//# sourceMappingURL=asset-processing-callback-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-processing-callback-request.d.ts","sourceRoot":"","sources":["../../src/models/asset-processing-callback-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;CAGvC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;OAEG;IACH,MAAM,EAAE,oCAAoC,CAAC;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,WAAW,CAC7E,OAAO,oCAAoC,CACG,CAAC;AAEjD,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,WAAW,CACvE,uCAAuC,EACvC,8BAA8B,CAK9B,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b75d6ac67429
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/**
|
|
7
|
+
* The terminal processing outcome reported by the Celery worker.
|
|
8
|
+
*/
|
|
9
|
+
export const AssetProcessingCallbackRequestStatus = {
|
|
10
|
+
Ready: "READY",
|
|
11
|
+
Failed: "FAILED",
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const AssetProcessingCallbackRequestStatus$outboundSchema = z.enum(AssetProcessingCallbackRequestStatus);
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const AssetProcessingCallbackRequest$outboundSchema = z.object({
|
|
17
|
+
status: AssetProcessingCallbackRequestStatus$outboundSchema,
|
|
18
|
+
finalMediaKey: z.optional(z.nullable(z.string())),
|
|
19
|
+
errorReason: z.optional(z.nullable(z.string())),
|
|
20
|
+
});
|
|
21
|
+
export function assetProcessingCallbackRequestToJSON(assetProcessingCallbackRequest) {
|
|
22
|
+
return JSON.stringify(AssetProcessingCallbackRequest$outboundSchema.parse(assetProcessingCallbackRequest));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=asset-processing-callback-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-processing-callback-request.js","sourceRoot":"","sources":["../../src/models/asset-processing-callback-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;CACR,CAAC;AAuBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mDAAmD,GAE5D,CAAC,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;AASjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6CAA6C,GAGtD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,mDAAmD;IAC3D,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAChD,CAAC,CAAC;AAEH,MAAM,UAAU,oCAAoC,CAClD,8BAA8D,EACtD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,6CAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { User } from "./user.js";
|
|
5
|
+
export type Comment = {
|
|
6
|
+
id: number;
|
|
7
|
+
postId: number;
|
|
8
|
+
user: User;
|
|
9
|
+
content: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const Comment$inboundSchema: z.ZodMiniType<Comment, unknown>;
|
|
14
|
+
export declare function commentFromJSON(jsonString: string): SafeParseResult<Comment, SDKValidationError>;
|
|
15
|
+
//# sourceMappingURL=comment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/models/comment.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AAErD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAMhE,CAAC;AAEH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 31da50e38c51
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { User$inboundSchema } from "./user.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const Comment$inboundSchema = z.object({
|
|
11
|
+
id: types.number(),
|
|
12
|
+
postId: types.number(),
|
|
13
|
+
user: User$inboundSchema,
|
|
14
|
+
content: types.string(),
|
|
15
|
+
createdAt: types.date(),
|
|
16
|
+
});
|
|
17
|
+
export function commentFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => Comment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Comment' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=comment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment.js","sourceRoot":"","sources":["../../src/models/comment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAQ,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qBAAqB,GAAoC,CAAC,CAAC,MAAM,CAAC;IAC7E,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,KAAK,CAAC,IAAI,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,eAAe,CAC7B,UAAkB,EAC4B;IAC9C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
export type CreateCommentRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* The textual content of the comment.
|
|
5
|
+
*/
|
|
6
|
+
content: string;
|
|
7
|
+
};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export type CreateCommentRequest$Outbound = {
|
|
10
|
+
content: string;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const CreateCommentRequest$outboundSchema: z.ZodMiniType<CreateCommentRequest$Outbound, CreateCommentRequest>;
|
|
14
|
+
export declare function createCommentRequestToJSON(createCommentRequest: CreateCommentRequest): string;
|
|
15
|
+
//# sourceMappingURL=create-comment-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment-request.d.ts","sourceRoot":"","sources":["../../src/models/create-comment-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CAGpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1281f847c1db
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const CreateCommentRequest$outboundSchema = z.object({
|
|
8
|
+
content: z.string(),
|
|
9
|
+
});
|
|
10
|
+
export function createCommentRequestToJSON(createCommentRequest) {
|
|
11
|
+
return JSON.stringify(CreateCommentRequest$outboundSchema.parse(createCommentRequest));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=create-comment-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-comment-request.js","sourceRoot":"","sources":["../../src/models/create-comment-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAcjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH"}
|
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
|
-
import {
|
|
3
|
-
export declare const CreatePostRequestMediaType: {
|
|
4
|
-
readonly Image: "IMAGE";
|
|
5
|
-
readonly Video: "VIDEO";
|
|
6
|
-
};
|
|
7
|
-
export type CreatePostRequestMediaType = ClosedEnum<typeof CreatePostRequestMediaType>;
|
|
8
|
-
export type Asset = {
|
|
9
|
-
mediaType: CreatePostRequestMediaType;
|
|
10
|
-
};
|
|
2
|
+
import { AssetDeclaration, AssetDeclaration$Outbound } from "./asset-declaration.js";
|
|
11
3
|
export type CreatePostRequest = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Optional caption for the post. May be set now or supplied later via PATCH.
|
|
6
|
+
*/
|
|
7
|
+
caption?: string | null | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Ordered list of media assets to attach to this post. The array index determines sort_order.
|
|
10
|
+
*/
|
|
11
|
+
assets: Array<AssetDeclaration>;
|
|
20
12
|
};
|
|
21
13
|
/** @internal */
|
|
22
|
-
export declare const Asset$outboundSchema: z.ZodMiniType<Asset$Outbound, Asset>;
|
|
23
|
-
export declare function assetToJSON(asset: Asset): string;
|
|
24
|
-
/** @internal */
|
|
25
14
|
export type CreatePostRequest$Outbound = {
|
|
26
|
-
caption
|
|
27
|
-
assets: Array<
|
|
15
|
+
caption?: string | null | undefined;
|
|
16
|
+
assets: Array<AssetDeclaration$Outbound>;
|
|
28
17
|
};
|
|
29
18
|
/** @internal */
|
|
30
19
|
export declare const CreatePostRequest$outboundSchema: z.ZodMiniType<CreatePostRequest$Outbound, CreatePostRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-post-request.d.ts","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"create-post-request.d.ts","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAE1B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAIjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
|
|
@@ -3,24 +3,11 @@
|
|
|
3
3
|
* @generated-id: a730750b0c9a
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
-
|
|
7
|
-
Image: "IMAGE",
|
|
8
|
-
Video: "VIDEO",
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export const CreatePostRequestMediaType$outboundSchema = z.enum(CreatePostRequestMediaType);
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const Asset$outboundSchema = z
|
|
14
|
-
.object({
|
|
15
|
-
mediaType: CreatePostRequestMediaType$outboundSchema,
|
|
16
|
-
});
|
|
17
|
-
export function assetToJSON(asset) {
|
|
18
|
-
return JSON.stringify(Asset$outboundSchema.parse(asset));
|
|
19
|
-
}
|
|
6
|
+
import { AssetDeclaration$outboundSchema, } from "./asset-declaration.js";
|
|
20
7
|
/** @internal */
|
|
21
8
|
export const CreatePostRequest$outboundSchema = z.object({
|
|
22
|
-
caption: z.string(),
|
|
23
|
-
assets: z.array(
|
|
9
|
+
caption: z.optional(z.nullable(z.string())),
|
|
10
|
+
assets: z.array(AssetDeclaration$outboundSchema),
|
|
24
11
|
});
|
|
25
12
|
export function createPostRequestToJSON(createPostRequest) {
|
|
26
13
|
return JSON.stringify(CreatePostRequest$outboundSchema.parse(createPostRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-post-request.js","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"create-post-request.js","sourceRoot":"","sources":["../../src/models/create-post-request.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAGL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAmBhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC3C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC;CACjD,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { UploadSlot } from "./upload-slot.js";
|
|
5
|
+
export type CreatePostResponse = {
|
|
6
|
+
/**
|
|
7
|
+
* ID of the newly created DRAFT post.
|
|
8
|
+
*/
|
|
9
|
+
postId?: number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* One entry per declared asset, in the same order as the request.
|
|
12
|
+
*/
|
|
13
|
+
uploadSlots?: Array<UploadSlot> | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const CreatePostResponse$inboundSchema: z.ZodMiniType<CreatePostResponse, unknown>;
|
|
17
|
+
export declare function createPostResponseFromJSON(jsonString: string): SafeParseResult<CreatePostResponse, SDKValidationError>;
|
|
18
|
+
//# sourceMappingURL=create-post-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-post-response.d.ts","sourceRoot":"","sources":["../../src/models/create-post-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AAExE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CAIP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: dd751a66d133
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { UploadSlot$inboundSchema } from "./upload-slot.js";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export const CreatePostResponse$inboundSchema = z.object({
|
|
11
|
+
postId: types.optional(types.number()),
|
|
12
|
+
uploadSlots: types.optional(z.array(UploadSlot$inboundSchema)),
|
|
13
|
+
});
|
|
14
|
+
export function createPostResponseFromJSON(jsonString) {
|
|
15
|
+
return safeParse(jsonString, (x) => CreatePostResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePostResponse' from JSON`);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=create-post-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-post-response.js","sourceRoot":"","sources":["../../src/models/create-post-response.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAc,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAaxE,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACtC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC/D,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,UAAkB,EACuC;IACzD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
export type FollowerCountResponse = {
|
|
5
|
+
count: number;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const FollowerCountResponse$inboundSchema: z.ZodMiniType<FollowerCountResponse, unknown>;
|
|
9
|
+
export declare function followerCountResponseFromJSON(jsonString: string): SafeParseResult<FollowerCountResponse, SDKValidationError>;
|
|
10
|
+
//# sourceMappingURL=follower-count-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follower-count-response.d.ts","sourceRoot":"","sources":["../../src/models/follower-count-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,qBAAqB,EACrB,OAAO,CAGP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b61cb4711504
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const FollowerCountResponse$inboundSchema = z.object({
|
|
10
|
+
count: types.number(),
|
|
11
|
+
});
|
|
12
|
+
export function followerCountResponseFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => FollowerCountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FollowerCountResponse' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=follower-count-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"follower-count-response.js","sourceRoot":"","sources":["../../src/models/follower-count-response.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAOhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB,EAC0C;IAC5D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AAAA,CACH"}
|
package/esm/models/index.d.ts
CHANGED
|
@@ -1,14 +1,33 @@
|
|
|
1
|
+
export * from "./asset-declaration.js";
|
|
2
|
+
export * from "./asset-processing-callback-request.js";
|
|
1
3
|
export * from "./collection.js";
|
|
4
|
+
export * from "./comment.js";
|
|
2
5
|
export * from "./conversation.js";
|
|
6
|
+
export * from "./create-comment-request.js";
|
|
3
7
|
export * from "./create-post-request.js";
|
|
8
|
+
export * from "./create-post-response.js";
|
|
9
|
+
export * from "./follower-count-response.js";
|
|
4
10
|
export * from "./login-request.js";
|
|
11
|
+
export * from "./mark-notifications-read-request.js";
|
|
5
12
|
export * from "./media-asset.js";
|
|
6
13
|
export * from "./message.js";
|
|
14
|
+
export * from "./notification.js";
|
|
15
|
+
export * from "./paginated-comments-response.js";
|
|
16
|
+
export * from "./paginated-followers-response.js";
|
|
17
|
+
export * from "./paginated-likes-response.js";
|
|
18
|
+
export * from "./paginated-notifications-response.js";
|
|
7
19
|
export * from "./paginated-posts-response.js";
|
|
8
20
|
export * from "./post.js";
|
|
21
|
+
export * from "./profile-media-confirm-request.js";
|
|
22
|
+
export * from "./profile-media-upload-request.js";
|
|
23
|
+
export * from "./profile-media-upload-response.js";
|
|
9
24
|
export * from "./register-request.js";
|
|
10
25
|
export * from "./security.js";
|
|
11
26
|
export * from "./send-message-request.js";
|
|
27
|
+
export * from "./unread-count-response.js";
|
|
28
|
+
export * from "./update-post-request.js";
|
|
29
|
+
export * from "./update-profile-request.js";
|
|
30
|
+
export * from "./upload-slot.js";
|
|
12
31
|
export * from "./user-profile.js";
|
|
13
32
|
export * from "./user.js";
|
|
14
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAKA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAKA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC;AACrD,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|