@aurora-interactive/fankare-api-sdk 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -3
- package/esm/core.d.ts.map +1 -1
- package/esm/core.js +1 -0
- package/esm/core.js.map +1 -1
- package/esm/funcs/authentication-login-user.d.ts.map +1 -1
- package/esm/funcs/authentication-login-user.js +1 -0
- package/esm/funcs/authentication-login-user.js.map +1 -1
- package/esm/funcs/authentication-register-user.d.ts.map +1 -1
- package/esm/funcs/authentication-register-user.js +1 -0
- package/esm/funcs/authentication-register-user.js.map +1 -1
- package/esm/funcs/creator-timelines-get-creator-posts.d.ts +17 -0
- package/esm/funcs/creator-timelines-get-creator-posts.d.ts.map +1 -0
- package/esm/funcs/creator-timelines-get-creator-posts.js +95 -0
- package/esm/funcs/creator-timelines-get-creator-posts.js.map +1 -0
- package/esm/funcs/custom-lists-add-list-member.d.ts.map +1 -1
- package/esm/funcs/custom-lists-add-list-member.js +2 -1
- package/esm/funcs/custom-lists-add-list-member.js.map +1 -1
- package/esm/funcs/custom-lists-create-list.d.ts.map +1 -1
- package/esm/funcs/custom-lists-create-list.js +2 -1
- package/esm/funcs/custom-lists-create-list.js.map +1 -1
- package/esm/funcs/custom-lists-get-list-members.d.ts.map +1 -1
- package/esm/funcs/custom-lists-get-list-members.js +2 -1
- package/esm/funcs/custom-lists-get-list-members.js.map +1 -1
- package/esm/funcs/custom-lists-get-lists.d.ts.map +1 -1
- package/esm/funcs/custom-lists-get-lists.js +2 -1
- package/esm/funcs/custom-lists-get-lists.js.map +1 -1
- package/esm/funcs/custom-lists-remove-list-member.d.ts.map +1 -1
- package/esm/funcs/custom-lists-remove-list-member.js +1 -0
- package/esm/funcs/custom-lists-remove-list-member.js.map +1 -1
- package/esm/funcs/direct-messaging-get-conversations.d.ts +17 -0
- package/esm/funcs/direct-messaging-get-conversations.d.ts.map +1 -0
- package/esm/funcs/direct-messaging-get-conversations.js +71 -0
- package/esm/funcs/direct-messaging-get-conversations.js.map +1 -0
- package/esm/funcs/direct-messaging-get-message-history.d.ts +14 -0
- package/esm/funcs/direct-messaging-get-message-history.d.ts.map +1 -0
- package/esm/funcs/direct-messaging-get-message-history.js +87 -0
- package/esm/funcs/direct-messaging-get-message-history.js.map +1 -0
- package/esm/funcs/direct-messaging-send-message.d.ts +14 -0
- package/esm/funcs/direct-messaging-send-message.d.ts.map +1 -0
- package/esm/funcs/direct-messaging-send-message.js +89 -0
- package/esm/funcs/direct-messaging-send-message.js.map +1 -0
- package/esm/funcs/posts-create-post.d.ts +2 -2
- package/esm/funcs/posts-create-post.d.ts.map +1 -1
- package/esm/funcs/posts-create-post.js +4 -3
- package/esm/funcs/posts-create-post.js.map +1 -1
- package/esm/funcs/posts-get-feed.d.ts.map +1 -1
- package/esm/funcs/posts-get-feed.js +2 -1
- package/esm/funcs/posts-get-feed.js.map +1 -1
- package/esm/funcs/posts-get-list-feed.d.ts.map +1 -1
- package/esm/funcs/posts-get-list-feed.js +1 -0
- package/esm/funcs/posts-get-list-feed.js.map +1 -1
- package/esm/funcs/subscriptions-subscribe-to-user.d.ts.map +1 -1
- package/esm/funcs/subscriptions-subscribe-to-user.js +2 -1
- package/esm/funcs/subscriptions-subscribe-to-user.js.map +1 -1
- package/esm/funcs/subscriptions-unsubscribe-from-user.d.ts.map +1 -1
- package/esm/funcs/subscriptions-unsubscribe-from-user.js +2 -1
- package/esm/funcs/subscriptions-unsubscribe-from-user.js.map +1 -1
- package/esm/funcs/user-discovery-get-following.d.ts +17 -0
- package/esm/funcs/user-discovery-get-following.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-following.js +71 -0
- package/esm/funcs/user-discovery-get-following.js.map +1 -0
- package/esm/funcs/user-discovery-get-user-profile.d.ts +17 -0
- package/esm/funcs/user-discovery-get-user-profile.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-user-profile.js +90 -0
- package/esm/funcs/user-discovery-get-user-profile.js.map +1 -0
- package/esm/funcs/user-discovery-search-users.d.ts +17 -0
- package/esm/funcs/user-discovery-search-users.d.ts.map +1 -0
- package/esm/funcs/user-discovery-search-users.js +88 -0
- package/esm/funcs/user-discovery-search-users.js.map +1 -0
- package/esm/hooks/hooks.d.ts.map +1 -1
- package/esm/hooks/hooks.js +1 -0
- package/esm/hooks/hooks.js.map +1 -1
- package/esm/hooks/index.d.ts.map +1 -1
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/index.js.map +1 -1
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/hooks/types.js +1 -0
- package/esm/hooks/types.js.map +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/lib/base64.d.ts.map +1 -1
- package/esm/lib/base64.js +1 -0
- package/esm/lib/base64.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +1 -0
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +1 -0
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/http.d.ts.map +1 -1
- package/esm/lib/http.js +1 -0
- package/esm/lib/http.js.map +1 -1
- package/esm/lib/logger.d.ts.map +1 -1
- package/esm/lib/logger.js +1 -0
- package/esm/lib/logger.js.map +1 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +1 -0
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +1 -0
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/retries.d.ts.map +1 -1
- package/esm/lib/retries.js +1 -0
- package/esm/lib/retries.js.map +1 -1
- package/esm/lib/schemas.d.ts.map +1 -1
- package/esm/lib/schemas.js +1 -0
- package/esm/lib/schemas.js.map +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +1 -0
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +1 -0
- package/esm/lib/security.js.map +1 -1
- package/esm/lib/url.d.ts.map +1 -1
- package/esm/lib/url.js +1 -0
- package/esm/lib/url.js.map +1 -1
- package/esm/models/conversation.d.ts +17 -0
- package/esm/models/conversation.d.ts.map +1 -0
- package/esm/models/conversation.js +19 -0
- package/esm/models/conversation.js.map +1 -0
- package/esm/models/create-post-request.d.ts +12 -2
- package/esm/models/create-post-request.d.ts.map +1 -1
- package/esm/models/create-post-request.js +10 -1
- package/esm/models/create-post-request.js.map +1 -1
- package/esm/models/custom-list.d.ts.map +1 -1
- package/esm/models/custom-list.js +1 -0
- package/esm/models/custom-list.js.map +1 -1
- package/esm/models/errors/fankare-sdk-default-error.d.ts.map +1 -1
- package/esm/models/errors/fankare-sdk-default-error.js +1 -0
- package/esm/models/errors/fankare-sdk-default-error.js.map +1 -1
- package/esm/models/errors/fankare-sdk-error.d.ts.map +1 -1
- package/esm/models/errors/fankare-sdk-error.js +1 -0
- package/esm/models/errors/fankare-sdk-error.js.map +1 -1
- package/esm/models/errors/http-client-errors.d.ts.map +1 -1
- package/esm/models/errors/http-client-errors.js +1 -0
- package/esm/models/errors/http-client-errors.js.map +1 -1
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -0
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/errors/response-validation-error.d.ts.map +1 -1
- package/esm/models/errors/response-validation-error.js +1 -0
- package/esm/models/errors/response-validation-error.js.map +1 -1
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -1
- package/esm/models/errors/sdk-validation-error.js +1 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -1
- package/esm/models/index.d.ts +5 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +6 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/login-request.d.ts.map +1 -1
- package/esm/models/login-request.js +1 -0
- package/esm/models/login-request.js.map +1 -1
- package/esm/models/media-asset.d.ts +30 -0
- package/esm/models/media-asset.d.ts.map +1 -0
- package/esm/models/media-asset.js +35 -0
- package/esm/models/media-asset.js.map +1 -0
- package/esm/models/message.d.ts +14 -0
- package/esm/models/message.d.ts.map +1 -0
- package/esm/models/message.js +19 -0
- package/esm/models/message.js.map +1 -0
- package/esm/models/operations/add-list-member.d.ts.map +1 -1
- package/esm/models/operations/add-list-member.js +1 -0
- package/esm/models/operations/add-list-member.js.map +1 -1
- package/esm/models/operations/create-list.d.ts.map +1 -1
- package/esm/models/operations/create-list.js +1 -0
- package/esm/models/operations/create-list.js.map +1 -1
- package/esm/models/operations/create-post.d.ts +12 -5
- package/esm/models/operations/create-post.d.ts.map +1 -1
- package/esm/models/operations/create-post.js +11 -1
- package/esm/models/operations/create-post.js.map +1 -1
- package/esm/models/operations/get-creator-posts.d.ts +14 -0
- package/esm/models/operations/get-creator-posts.d.ts.map +1 -0
- package/esm/models/operations/get-creator-posts.js +14 -0
- package/esm/models/operations/get-creator-posts.js.map +1 -0
- package/esm/models/operations/get-feed.d.ts +0 -3
- package/esm/models/operations/get-feed.d.ts.map +1 -1
- package/esm/models/operations/get-feed.js +1 -0
- package/esm/models/operations/get-feed.js.map +1 -1
- package/esm/models/operations/get-list-feed.d.ts.map +1 -1
- package/esm/models/operations/get-list-feed.js +1 -0
- package/esm/models/operations/get-list-feed.js.map +1 -1
- package/esm/models/operations/get-list-members.d.ts.map +1 -1
- package/esm/models/operations/get-list-members.js +1 -0
- package/esm/models/operations/get-list-members.js.map +1 -1
- package/esm/models/operations/get-message-history.d.ts +12 -0
- package/esm/models/operations/get-message-history.d.ts.map +1 -0
- package/esm/models/operations/get-message-history.js +13 -0
- package/esm/models/operations/get-message-history.js.map +1 -0
- package/esm/models/operations/get-user-profile.d.ts +12 -0
- package/esm/models/operations/get-user-profile.d.ts.map +1 -0
- package/esm/models/operations/get-user-profile.js +13 -0
- package/esm/models/operations/get-user-profile.js.map +1 -0
- package/esm/models/operations/index.d.ts +5 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +6 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/login-user.d.ts.map +1 -1
- package/esm/models/operations/login-user.js +1 -0
- package/esm/models/operations/login-user.js.map +1 -1
- package/esm/models/operations/remove-list-member.d.ts +0 -3
- package/esm/models/operations/remove-list-member.d.ts.map +1 -1
- package/esm/models/operations/remove-list-member.js +1 -0
- package/esm/models/operations/remove-list-member.js.map +1 -1
- package/esm/models/operations/search-users.d.ts +15 -0
- package/esm/models/operations/search-users.d.ts.map +1 -0
- package/esm/models/operations/search-users.js +13 -0
- package/esm/models/operations/search-users.js.map +1 -0
- package/esm/models/operations/send-message.d.ts +15 -0
- package/esm/models/operations/send-message.d.ts.map +1 -0
- package/esm/models/operations/send-message.js +15 -0
- package/esm/models/operations/send-message.js.map +1 -0
- package/esm/models/operations/subscribe-to-user.d.ts +0 -3
- package/esm/models/operations/subscribe-to-user.d.ts.map +1 -1
- package/esm/models/operations/subscribe-to-user.js +1 -0
- package/esm/models/operations/subscribe-to-user.js.map +1 -1
- package/esm/models/operations/unsubscribe-from-user.d.ts +0 -3
- package/esm/models/operations/unsubscribe-from-user.d.ts.map +1 -1
- package/esm/models/operations/unsubscribe-from-user.js +1 -0
- package/esm/models/operations/unsubscribe-from-user.js.map +1 -1
- package/esm/models/post.d.ts +2 -31
- package/esm/models/post.d.ts.map +1 -1
- package/esm/models/post.js +3 -21
- package/esm/models/post.js.map +1 -1
- package/esm/models/register-request.d.ts.map +1 -1
- package/esm/models/register-request.js +1 -0
- package/esm/models/register-request.js.map +1 -1
- package/esm/models/security.d.ts.map +1 -1
- package/esm/models/security.js +1 -0
- package/esm/models/security.js.map +1 -1
- package/esm/models/send-message-request.d.ts +12 -0
- package/esm/models/send-message-request.d.ts.map +1 -0
- package/esm/models/send-message-request.js +13 -0
- package/esm/models/send-message-request.js.map +1 -0
- package/esm/models/user-profile.d.ts +14 -0
- package/esm/models/user-profile.d.ts.map +1 -0
- package/esm/models/user-profile.js +20 -0
- package/esm/models/user-profile.js.map +1 -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/authentication.d.ts.map +1 -1
- package/esm/sdk/authentication.js +1 -0
- package/esm/sdk/authentication.js.map +1 -1
- package/esm/sdk/creator-timelines.d.ts +12 -0
- package/esm/sdk/creator-timelines.d.ts.map +1 -0
- package/esm/sdk/creator-timelines.js +19 -0
- package/esm/sdk/creator-timelines.js.map +1 -0
- package/esm/sdk/custom-lists.d.ts.map +1 -1
- package/esm/sdk/custom-lists.js +1 -0
- package/esm/sdk/custom-lists.js.map +1 -1
- package/esm/sdk/direct-messaging.d.ts +20 -0
- package/esm/sdk/direct-messaging.d.ts.map +1 -0
- package/esm/sdk/direct-messaging.js +33 -0
- package/esm/sdk/direct-messaging.js.map +1 -0
- package/esm/sdk/index.d.ts.map +1 -1
- package/esm/sdk/index.js +1 -0
- package/esm/sdk/index.js.map +1 -1
- package/esm/sdk/posts.d.ts +2 -2
- package/esm/sdk/posts.d.ts.map +1 -1
- package/esm/sdk/posts.js +3 -2
- package/esm/sdk/posts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +9 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +16 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/subscriptions.d.ts.map +1 -1
- package/esm/sdk/subscriptions.js +1 -0
- package/esm/sdk/subscriptions.js.map +1 -1
- package/esm/sdk/user-discovery.d.ts +26 -0
- package/esm/sdk/user-discovery.d.ts.map +1 -0
- package/esm/sdk/user-discovery.js +39 -0
- package/esm/sdk/user-discovery.js.map +1 -0
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +1 -0
- package/esm/types/async.js.map +1 -1
- package/esm/types/blobs.d.ts.map +1 -1
- package/esm/types/blobs.js +1 -0
- package/esm/types/blobs.js.map +1 -1
- package/esm/types/const-date-time.d.ts.map +1 -1
- package/esm/types/const-date-time.js +1 -0
- package/esm/types/const-date-time.js.map +1 -1
- package/esm/types/default-to-zero-value.d.ts.map +1 -1
- package/esm/types/default-to-zero-value.js +1 -0
- package/esm/types/default-to-zero-value.js.map +1 -1
- package/esm/types/enums.d.ts.map +1 -1
- package/esm/types/enums.js +1 -0
- package/esm/types/enums.js.map +1 -1
- package/esm/types/fp.d.ts.map +1 -1
- package/esm/types/fp.js +1 -0
- package/esm/types/fp.js.map +1 -1
- package/esm/types/index.d.ts.map +1 -1
- package/esm/types/index.js +1 -0
- package/esm/types/index.js.map +1 -1
- package/esm/types/operations.d.ts.map +1 -1
- package/esm/types/operations.js +1 -0
- package/esm/types/operations.js.map +1 -1
- package/esm/types/primitives.d.ts.map +1 -1
- package/esm/types/primitives.js +1 -0
- package/esm/types/primitives.js.map +1 -1
- package/esm/types/rfcdate.d.ts.map +1 -1
- package/esm/types/rfcdate.js +1 -0
- package/esm/types/rfcdate.js.map +1 -1
- package/esm/types/smart-union.d.ts.map +1 -1
- package/esm/types/smart-union.js +1 -0
- package/esm/types/smart-union.js.map +1 -1
- package/esm/types/streams.d.ts.map +1 -1
- package/esm/types/streams.js +1 -0
- package/esm/types/streams.js.map +1 -1
- package/esm/types/unrecognized.d.ts.map +1 -1
- package/esm/types/unrecognized.js +1 -0
- package/esm/types/unrecognized.js.map +1 -1
- package/examples/authenticationRegisterUser.example.ts +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/core.ts +1 -0
- package/src/funcs/authentication-login-user.ts +1 -0
- package/src/funcs/authentication-register-user.ts +1 -0
- package/src/funcs/creator-timelines-get-creator-posts.ts +183 -0
- package/src/funcs/custom-lists-add-list-member.ts +2 -1
- package/src/funcs/custom-lists-create-list.ts +2 -1
- package/src/funcs/custom-lists-get-list-members.ts +2 -1
- package/src/funcs/custom-lists-get-lists.ts +2 -1
- package/src/funcs/custom-lists-remove-list-member.ts +1 -0
- package/src/funcs/direct-messaging-get-conversations.ts +146 -0
- package/src/funcs/direct-messaging-get-message-history.ts +172 -0
- package/src/funcs/direct-messaging-send-message.ts +176 -0
- package/src/funcs/posts-create-post.ts +4 -3
- package/src/funcs/posts-get-feed.ts +2 -1
- package/src/funcs/posts-get-list-feed.ts +1 -0
- package/src/funcs/subscriptions-subscribe-to-user.ts +2 -1
- package/src/funcs/subscriptions-unsubscribe-from-user.ts +2 -1
- package/src/funcs/user-discovery-get-following.ts +146 -0
- package/src/funcs/user-discovery-get-user-profile.ts +174 -0
- package/src/funcs/user-discovery-search-users.ts +173 -0
- package/src/hooks/hooks.ts +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/types.ts +1 -0
- package/src/index.ts +1 -0
- package/src/lib/base64.ts +1 -0
- package/src/lib/config.ts +3 -2
- package/src/lib/encodings.ts +1 -0
- package/src/lib/files.ts +1 -0
- package/src/lib/http.ts +1 -0
- package/src/lib/logger.ts +1 -0
- package/src/lib/matchers.ts +1 -0
- package/src/lib/primitives.ts +1 -0
- package/src/lib/retries.ts +1 -0
- package/src/lib/schemas.ts +1 -0
- package/src/lib/sdks.ts +1 -0
- package/src/lib/security.ts +1 -0
- package/src/lib/url.ts +1 -0
- package/src/models/conversation.ts +39 -0
- package/src/models/create-post-request.ts +23 -3
- package/src/models/custom-list.ts +1 -0
- package/src/models/errors/fankare-sdk-default-error.ts +1 -0
- package/src/models/errors/fankare-sdk-error.ts +1 -0
- package/src/models/errors/http-client-errors.ts +1 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/response-validation-error.ts +1 -0
- package/src/models/errors/sdk-validation-error.ts +1 -0
- package/src/models/index.ts +6 -0
- package/src/models/login-request.ts +1 -0
- package/src/models/media-asset.ts +63 -0
- package/src/models/message.ts +37 -0
- package/src/models/operations/add-list-member.ts +1 -0
- package/src/models/operations/create-list.ts +1 -0
- package/src/models/operations/create-post.ts +29 -6
- package/src/models/operations/get-creator-posts.ts +34 -0
- package/src/models/operations/get-feed.ts +1 -3
- package/src/models/operations/get-list-feed.ts +1 -0
- package/src/models/operations/get-list-members.ts +1 -0
- package/src/models/operations/get-message-history.ts +31 -0
- package/src/models/operations/get-user-profile.ts +31 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/login-user.ts +1 -0
- package/src/models/operations/remove-list-member.ts +1 -3
- package/src/models/operations/search-users.ts +34 -0
- package/src/models/operations/send-message.ts +35 -0
- package/src/models/operations/subscribe-to-user.ts +1 -3
- package/src/models/operations/unsubscribe-from-user.ts +1 -3
- package/src/models/post.ts +4 -43
- package/src/models/register-request.ts +1 -0
- package/src/models/security.ts +1 -0
- package/src/models/send-message-request.ts +31 -0
- package/src/models/user-profile.ts +37 -0
- package/src/models/user.ts +1 -0
- package/src/sdk/authentication.ts +1 -0
- package/src/sdk/creator-timelines.ts +30 -0
- package/src/sdk/custom-lists.ts +1 -0
- package/src/sdk/direct-messaging.ts +58 -0
- package/src/sdk/index.ts +1 -0
- package/src/sdk/posts.ts +3 -2
- package/src/sdk/sdk.ts +19 -0
- package/src/sdk/subscriptions.ts +1 -0
- package/src/sdk/user-discovery.ts +62 -0
- package/src/types/async.ts +1 -0
- package/src/types/blobs.ts +1 -0
- package/src/types/const-date-time.ts +1 -0
- package/src/types/default-to-zero-value.ts +1 -0
- package/src/types/enums.ts +1 -0
- package/src/types/fp.ts +1 -0
- package/src/types/index.ts +1 -0
- package/src/types/operations.ts +1 -0
- package/src/types/primitives.ts +1 -0
- package/src/types/rfcdate.ts +1 -0
- package/src/types/smart-union.ts +1 -0
- package/src/types/streams.ts +1 -0
- package/src/types/unrecognized.ts +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4f6befd7db07
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetCreatorPostsRequest = {
|
|
9
|
+
userId: number;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type GetCreatorPostsRequest$Outbound = {
|
|
15
|
+
userId: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetCreatorPostsRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
GetCreatorPostsRequest$Outbound,
|
|
22
|
+
GetCreatorPostsRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
userId: z.int(),
|
|
25
|
+
limit: z._default(z.int(), 20),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getCreatorPostsRequestToJSON(
|
|
29
|
+
getCreatorPostsRequest: GetCreatorPostsRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
GetCreatorPostsRequest$outboundSchema.parse(getCreatorPostsRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a45a85027828
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
@@ -11,9 +12,6 @@ import * as models from "../index.js";
|
|
|
11
12
|
|
|
12
13
|
export type GetFeedRequest = {
|
|
13
14
|
limit?: number | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Opaque cursor for pagination (typically a timestamp or offset)
|
|
16
|
-
*/
|
|
17
15
|
cursor?: string | undefined;
|
|
18
16
|
};
|
|
19
17
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 372fe0ffd58a
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetMessageHistoryRequest = {
|
|
9
|
+
userId: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetMessageHistoryRequest$Outbound = {
|
|
14
|
+
userId: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetMessageHistoryRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
GetMessageHistoryRequest$Outbound,
|
|
20
|
+
GetMessageHistoryRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
userId: z.int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function getMessageHistoryRequestToJSON(
|
|
26
|
+
getMessageHistoryRequest: GetMessageHistoryRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
GetMessageHistoryRequest$outboundSchema.parse(getMessageHistoryRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ee45f30e92eb
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type GetUserProfileRequest = {
|
|
9
|
+
userId: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetUserProfileRequest$Outbound = {
|
|
14
|
+
userId: number;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetUserProfileRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
GetUserProfileRequest$Outbound,
|
|
20
|
+
GetUserProfileRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
userId: z.int(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function getUserProfileRequestToJSON(
|
|
26
|
+
getUserProfileRequest: GetUserProfileRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
GetUserProfileRequest$outboundSchema.parse(getUserProfileRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 0d9ffaf774d2
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
export * from "./add-list-member.js";
|
|
6
7
|
export * from "./create-list.js";
|
|
7
8
|
export * from "./create-post.js";
|
|
9
|
+
export * from "./get-creator-posts.js";
|
|
8
10
|
export * from "./get-feed.js";
|
|
9
11
|
export * from "./get-list-feed.js";
|
|
10
12
|
export * from "./get-list-members.js";
|
|
13
|
+
export * from "./get-message-history.js";
|
|
14
|
+
export * from "./get-user-profile.js";
|
|
11
15
|
export * from "./login-user.js";
|
|
12
16
|
export * from "./remove-list-member.js";
|
|
17
|
+
export * from "./search-users.js";
|
|
18
|
+
export * from "./send-message.js";
|
|
13
19
|
export * from "./subscribe-to-user.js";
|
|
14
20
|
export * from "./unsubscribe-from-user.js";
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 336b9cad4543
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
6
7
|
|
|
7
8
|
export type RemoveListMemberRequest = {
|
|
8
9
|
listId: number;
|
|
9
|
-
/**
|
|
10
|
-
* The ID of the member user to drop from the grouping
|
|
11
|
-
*/
|
|
12
10
|
userId: number;
|
|
13
11
|
};
|
|
14
12
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 686177a216b9
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type SearchUsersRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The search term matching usernames or display names
|
|
11
|
+
*/
|
|
12
|
+
query: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type SearchUsersRequest$Outbound = {
|
|
17
|
+
query: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SearchUsersRequest$outboundSchema: z.ZodMiniType<
|
|
22
|
+
SearchUsersRequest$Outbound,
|
|
23
|
+
SearchUsersRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
query: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function searchUsersRequestToJSON(
|
|
29
|
+
searchUsersRequest: SearchUsersRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
SearchUsersRequest$outboundSchema.parse(searchUsersRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 858b6bbbaa9f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type SendMessageRequest = {
|
|
10
|
+
userId: number;
|
|
11
|
+
body: models.SendMessageRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type SendMessageRequest$Outbound = {
|
|
16
|
+
userId: number;
|
|
17
|
+
body: models.SendMessageRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SendMessageRequest$outboundSchema: z.ZodMiniType<
|
|
22
|
+
SendMessageRequest$Outbound,
|
|
23
|
+
SendMessageRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
userId: z.int(),
|
|
26
|
+
body: models.SendMessageRequest$outboundSchema,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function sendMessageRequestToJSON(
|
|
30
|
+
sendMessageRequest: SendMessageRequest,
|
|
31
|
+
): string {
|
|
32
|
+
return JSON.stringify(
|
|
33
|
+
SendMessageRequest$outboundSchema.parse(sendMessageRequest),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1dfb324ab46b
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
6
7
|
|
|
7
8
|
export type SubscribeToUserRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* The ID of the user to subscribe to
|
|
10
|
-
*/
|
|
11
9
|
userId: number;
|
|
12
10
|
};
|
|
13
11
|
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: a56e5fdb14eb
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
6
7
|
|
|
7
8
|
export type UnsubscribeFromUserRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* The ID of the user to unsubscribe from
|
|
10
|
-
*/
|
|
11
9
|
userId: number;
|
|
12
10
|
};
|
|
13
11
|
|
package/src/models/post.ts
CHANGED
|
@@ -1,68 +1,29 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b3a3adebd438
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
6
7
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import * as openEnums from "../types/enums.js";
|
|
8
|
-
import { OpenEnum } from "../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
9
|
import * as types from "../types/primitives.js";
|
|
11
10
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
12
|
-
|
|
13
|
-
export const PostMediaType = {
|
|
14
|
-
Image: "IMAGE",
|
|
15
|
-
Video: "VIDEO",
|
|
16
|
-
} as const;
|
|
17
|
-
export type PostMediaType = OpenEnum<typeof PostMediaType>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The processing lifecycle phase managed by the Python transcoder workers.
|
|
21
|
-
*/
|
|
22
|
-
export const Status = {
|
|
23
|
-
Processing: "PROCESSING",
|
|
24
|
-
Ready: "READY",
|
|
25
|
-
Failed: "FAILED",
|
|
26
|
-
} as const;
|
|
27
|
-
/**
|
|
28
|
-
* The processing lifecycle phase managed by the Python transcoder workers.
|
|
29
|
-
*/
|
|
30
|
-
export type Status = OpenEnum<typeof Status>;
|
|
11
|
+
import { MediaAsset, MediaAsset$inboundSchema } from "./media-asset.js";
|
|
31
12
|
|
|
32
13
|
export type Post = {
|
|
33
14
|
id?: number | undefined;
|
|
34
15
|
userId?: number | undefined;
|
|
35
16
|
caption?: string | undefined;
|
|
36
|
-
|
|
37
|
-
* Fully resolved asset URI served out of SeaweedFS mapping
|
|
38
|
-
*/
|
|
39
|
-
mediaUrl?: string | undefined;
|
|
40
|
-
mediaType?: PostMediaType | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* The processing lifecycle phase managed by the Python transcoder workers.
|
|
43
|
-
*/
|
|
44
|
-
status?: Status | undefined;
|
|
17
|
+
assets?: Array<MediaAsset> | undefined;
|
|
45
18
|
createdAt?: Date | undefined;
|
|
46
19
|
};
|
|
47
20
|
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const PostMediaType$inboundSchema: z.ZodMiniType<
|
|
50
|
-
PostMediaType,
|
|
51
|
-
unknown
|
|
52
|
-
> = openEnums.inboundSchema(PostMediaType);
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const Status$inboundSchema: z.ZodMiniType<Status, unknown> = openEnums
|
|
56
|
-
.inboundSchema(Status);
|
|
57
|
-
|
|
58
21
|
/** @internal */
|
|
59
22
|
export const Post$inboundSchema: z.ZodMiniType<Post, unknown> = z.object({
|
|
60
23
|
id: types.optional(types.number()),
|
|
61
24
|
userId: types.optional(types.number()),
|
|
62
25
|
caption: types.optional(types.string()),
|
|
63
|
-
|
|
64
|
-
mediaType: types.optional(PostMediaType$inboundSchema),
|
|
65
|
-
status: types.optional(Status$inboundSchema),
|
|
26
|
+
assets: types.optional(z.array(MediaAsset$inboundSchema)),
|
|
66
27
|
createdAt: types.optional(types.date()),
|
|
67
28
|
});
|
|
68
29
|
|
package/src/models/security.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 39994808b4cd
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
|
|
8
|
+
export type SendMessageRequest = {
|
|
9
|
+
text: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type SendMessageRequest$Outbound = {
|
|
14
|
+
text: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const SendMessageRequest$outboundSchema: z.ZodMiniType<
|
|
19
|
+
SendMessageRequest$Outbound,
|
|
20
|
+
SendMessageRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
text: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function sendMessageRequestToJSON(
|
|
26
|
+
sendMessageRequest: SendMessageRequest,
|
|
27
|
+
): string {
|
|
28
|
+
return JSON.stringify(
|
|
29
|
+
SendMessageRequest$outboundSchema.parse(sendMessageRequest),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 130fd0e0af70
|
|
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 UserProfile = {
|
|
14
|
+
user?: User | undefined;
|
|
15
|
+
avatarUrl?: string | null | undefined;
|
|
16
|
+
followersCount?: number | undefined;
|
|
17
|
+
followingCount?: number | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UserProfile$inboundSchema: z.ZodMiniType<UserProfile, unknown> = z
|
|
22
|
+
.object({
|
|
23
|
+
user: types.optional(User$inboundSchema),
|
|
24
|
+
avatarUrl: z.optional(z.nullable(types.string())),
|
|
25
|
+
followersCount: types.optional(types.number()),
|
|
26
|
+
followingCount: types.optional(types.number()),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function userProfileFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<UserProfile, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => UserProfile$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'UserProfile' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
package/src/models/user.ts
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7c21a9a85a64
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { creatorTimelinesGetCreatorPosts } from "../funcs/creator-timelines-get-creator-posts.js";
|
|
7
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
+
import * as models from "../models/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class CreatorTimelines extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Get a specific creator's timeline
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Retrieves individual posts uploaded strictly by the requested user account.
|
|
17
|
+
*/
|
|
18
|
+
async getCreatorPosts(
|
|
19
|
+
userId: number,
|
|
20
|
+
limit?: number | undefined,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<Array<models.Post>> {
|
|
23
|
+
return unwrapAsync(creatorTimelinesGetCreatorPosts(
|
|
24
|
+
this,
|
|
25
|
+
userId,
|
|
26
|
+
limit,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/sdk/custom-lists.ts
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8ea0930ba3c7
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { directMessagingGetConversations } from "../funcs/direct-messaging-get-conversations.js";
|
|
7
|
+
import { directMessagingGetMessageHistory } from "../funcs/direct-messaging-get-message-history.js";
|
|
8
|
+
import { directMessagingSendMessage } from "../funcs/direct-messaging-send-message.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as models from "../models/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class DirectMessaging extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Fetch active DM threads
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Gets recent conversation summary records containing index context of opposing communication profiles.
|
|
19
|
+
*/
|
|
20
|
+
async getConversations(
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<Array<models.Conversation>> {
|
|
23
|
+
return unwrapAsync(directMessagingGetConversations(
|
|
24
|
+
this,
|
|
25
|
+
options,
|
|
26
|
+
));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Load message history with a specific creator
|
|
31
|
+
*/
|
|
32
|
+
async getMessageHistory(
|
|
33
|
+
userId: number,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<Array<models.Message>> {
|
|
36
|
+
return unwrapAsync(directMessagingGetMessageHistory(
|
|
37
|
+
this,
|
|
38
|
+
userId,
|
|
39
|
+
options,
|
|
40
|
+
));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Send a direct text message
|
|
45
|
+
*/
|
|
46
|
+
async sendMessage(
|
|
47
|
+
userId: number,
|
|
48
|
+
body: models.SendMessageRequest,
|
|
49
|
+
options?: RequestOptions,
|
|
50
|
+
): Promise<models.Message> {
|
|
51
|
+
return unwrapAsync(directMessagingSendMessage(
|
|
52
|
+
this,
|
|
53
|
+
userId,
|
|
54
|
+
body,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
}
|
package/src/sdk/index.ts
CHANGED
package/src/sdk/posts.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 6787631da7f6
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import { postsCreatePost } from "../funcs/posts-create-post.js";
|
|
@@ -31,10 +32,10 @@ export class Posts extends ClientSDK {
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
/**
|
|
34
|
-
* Create a
|
|
35
|
+
* Create a post blueprint requesting batch upload slots
|
|
35
36
|
*
|
|
36
37
|
* @remarks
|
|
37
|
-
*
|
|
38
|
+
* Accepts a list of metadata parts for grids/carousels and responds with multiple presigned destination configurations mapped out of SeaweedFS routing rules.
|
|
38
39
|
*/
|
|
39
40
|
async createPost(
|
|
40
41
|
request: models.CreatePostRequest,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 784571af2f69
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
7
|
import { Authentication } from "./authentication.js";
|
|
8
|
+
import { CreatorTimelines } from "./creator-timelines.js";
|
|
7
9
|
import { CustomLists } from "./custom-lists.js";
|
|
10
|
+
import { DirectMessaging } from "./direct-messaging.js";
|
|
8
11
|
import { Posts } from "./posts.js";
|
|
9
12
|
import { Subscriptions } from "./subscriptions.js";
|
|
13
|
+
import { UserDiscovery } from "./user-discovery.js";
|
|
10
14
|
|
|
11
15
|
export class FankareSDK extends ClientSDK {
|
|
12
16
|
private _authentication?: Authentication;
|
|
@@ -14,16 +18,31 @@ export class FankareSDK extends ClientSDK {
|
|
|
14
18
|
return (this._authentication ??= new Authentication(this._options));
|
|
15
19
|
}
|
|
16
20
|
|
|
21
|
+
private _userDiscovery?: UserDiscovery;
|
|
22
|
+
get userDiscovery(): UserDiscovery {
|
|
23
|
+
return (this._userDiscovery ??= new UserDiscovery(this._options));
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
private _subscriptions?: Subscriptions;
|
|
18
27
|
get subscriptions(): Subscriptions {
|
|
19
28
|
return (this._subscriptions ??= new Subscriptions(this._options));
|
|
20
29
|
}
|
|
21
30
|
|
|
31
|
+
private _creatorTimelines?: CreatorTimelines;
|
|
32
|
+
get creatorTimelines(): CreatorTimelines {
|
|
33
|
+
return (this._creatorTimelines ??= new CreatorTimelines(this._options));
|
|
34
|
+
}
|
|
35
|
+
|
|
22
36
|
private _posts?: Posts;
|
|
23
37
|
get posts(): Posts {
|
|
24
38
|
return (this._posts ??= new Posts(this._options));
|
|
25
39
|
}
|
|
26
40
|
|
|
41
|
+
private _directMessaging?: DirectMessaging;
|
|
42
|
+
get directMessaging(): DirectMessaging {
|
|
43
|
+
return (this._directMessaging ??= new DirectMessaging(this._options));
|
|
44
|
+
}
|
|
45
|
+
|
|
27
46
|
private _customLists?: CustomLists;
|
|
28
47
|
get customLists(): CustomLists {
|
|
29
48
|
return (this._customLists ??= new CustomLists(this._options));
|