@aurora-interactive/fankare-api-sdk 0.0.1 → 0.0.3
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 +41 -18
- 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 +14 -0
- package/esm/funcs/creator-timelines-get-creator-posts.d.ts.map +1 -0
- package/esm/funcs/creator-timelines-get-creator-posts.js +94 -0
- package/esm/funcs/creator-timelines-get-creator-posts.js.map +1 -0
- package/esm/funcs/custom-collections-add-collection-member.d.ts +14 -0
- package/esm/funcs/custom-collections-add-collection-member.d.ts.map +1 -0
- package/esm/funcs/custom-collections-add-collection-member.js +88 -0
- package/esm/funcs/custom-collections-add-collection-member.js.map +1 -0
- package/esm/funcs/custom-collections-create-collection.d.ts +15 -0
- package/esm/funcs/custom-collections-create-collection.d.ts.map +1 -0
- package/esm/funcs/custom-collections-create-collection.js +79 -0
- package/esm/funcs/custom-collections-create-collection.js.map +1 -0
- package/esm/funcs/custom-collections-get-collection-members.d.ts +14 -0
- package/esm/funcs/custom-collections-get-collection-members.d.ts.map +1 -0
- package/esm/funcs/custom-collections-get-collection-members.js +87 -0
- package/esm/funcs/custom-collections-get-collection-members.js.map +1 -0
- package/esm/funcs/custom-collections-get-collections.d.ts +14 -0
- package/esm/funcs/custom-collections-get-collections.d.ts.map +1 -0
- package/esm/funcs/custom-collections-get-collections.js +68 -0
- package/esm/funcs/custom-collections-get-collections.js.map +1 -0
- package/esm/funcs/custom-collections-remove-collection-member.d.ts +13 -0
- package/esm/funcs/custom-collections-remove-collection-member.d.ts.map +1 -0
- package/esm/funcs/custom-collections-remove-collection-member.js +91 -0
- package/esm/funcs/custom-collections-remove-collection-member.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 +14 -0
- package/esm/funcs/direct-messaging-get-conversations.d.ts.map +1 -0
- package/esm/funcs/direct-messaging-get-conversations.js +68 -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 +93 -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 +1 -4
- package/esm/funcs/posts-create-post.d.ts.map +1 -1
- package/esm/funcs/posts-create-post.js +3 -5
- package/esm/funcs/posts-create-post.js.map +1 -1
- package/esm/funcs/posts-get-collection-feed.d.ts +14 -0
- package/esm/funcs/posts-get-collection-feed.d.ts.map +1 -0
- package/esm/funcs/posts-get-collection-feed.js +94 -0
- package/esm/funcs/posts-get-collection-feed.js.map +1 -0
- package/esm/funcs/posts-get-feed.d.ts +3 -6
- package/esm/funcs/posts-get-feed.d.ts.map +1 -1
- package/esm/funcs/posts-get-feed.js +4 -5
- 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 +14 -0
- package/esm/funcs/user-discovery-get-following.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-following.js +68 -0
- package/esm/funcs/user-discovery-get-following.js.map +1 -0
- package/esm/funcs/user-discovery-get-user-profile.d.ts +14 -0
- package/esm/funcs/user-discovery-get-user-profile.d.ts.map +1 -0
- package/esm/funcs/user-discovery-get-user-profile.js +87 -0
- package/esm/funcs/user-discovery-get-user-profile.js.map +1 -0
- package/esm/funcs/user-discovery-search-users.d.ts +14 -0
- package/esm/funcs/user-discovery-search-users.d.ts.map +1 -0
- package/esm/funcs/user-discovery-search-users.js +85 -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/collection.d.ts +12 -0
- package/esm/models/collection.d.ts.map +1 -0
- package/esm/models/collection.js +18 -0
- package/esm/models/collection.js.map +1 -0
- package/esm/models/conversation.d.ts +14 -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 +7 -1
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +8 -1
- 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-collection-member.d.ts +24 -0
- package/esm/models/operations/add-collection-member.d.ts.map +1 -0
- package/esm/models/operations/add-collection-member.js +21 -0
- package/esm/models/operations/add-collection-member.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-collection.d.ts +12 -0
- package/esm/models/operations/create-collection.d.ts.map +1 -0
- package/esm/models/operations/create-collection.js +13 -0
- package/esm/models/operations/create-collection.js.map +1 -0
- 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-collection-feed.d.ts +19 -0
- package/esm/models/operations/get-collection-feed.d.ts.map +1 -0
- package/esm/models/operations/get-collection-feed.js +15 -0
- package/esm/models/operations/get-collection-feed.js.map +1 -0
- package/esm/models/operations/get-collection-members.d.ts +12 -0
- package/esm/models/operations/get-collection-members.d.ts.map +1 -0
- package/esm/models/operations/get-collection-members.js +13 -0
- package/esm/models/operations/get-collection-members.js.map +1 -0
- package/esm/models/operations/get-creator-posts.d.ts +19 -0
- package/esm/models/operations/get-creator-posts.d.ts.map +1 -0
- package/esm/models/operations/get-creator-posts.js +15 -0
- package/esm/models/operations/get-creator-posts.js.map +1 -0
- package/esm/models/operations/get-feed.d.ts +1 -14
- package/esm/models/operations/get-feed.d.ts.map +1 -1
- package/esm/models/operations/get-feed.js +1 -11
- 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 +32 -0
- package/esm/models/operations/get-message-history.d.ts.map +1 -0
- package/esm/models/operations/get-message-history.js +26 -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 +10 -5
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +11 -5
- 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-collection-member.d.ts +14 -0
- package/esm/models/operations/remove-collection-member.d.ts.map +1 -0
- package/esm/models/operations/remove-collection-member.js +14 -0
- package/esm/models/operations/remove-collection-member.js.map +1 -0
- 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/paginated-posts-response.d.ts +15 -0
- package/esm/models/paginated-posts-response.d.ts.map +1 -0
- package/esm/models/paginated-posts-response.js +17 -0
- package/esm/models/paginated-posts-response.js.map +1 -0
- 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 +9 -0
- package/esm/sdk/creator-timelines.d.ts.map +1 -0
- package/esm/sdk/creator-timelines.js +16 -0
- package/esm/sdk/creator-timelines.js.map +1 -0
- package/esm/sdk/custom-collections.d.ts +26 -0
- package/esm/sdk/custom-collections.d.ts.map +1 -0
- package/esm/sdk/custom-collections.js +44 -0
- package/esm/sdk/custom-collections.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 +18 -0
- package/esm/sdk/direct-messaging.d.ts.map +1 -0
- package/esm/sdk/direct-messaging.js +30 -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 +5 -11
- package/esm/sdk/posts.d.ts.map +1 -1
- package/esm/sdk/posts.js +7 -12
- package/esm/sdk/posts.js.map +1 -1
- package/esm/sdk/sdk.d.ts +12 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +20 -4
- 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 +17 -0
- package/esm/sdk/user-discovery.d.ts.map +1 -0
- package/esm/sdk/user-discovery.js +30 -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/{posts-get-list-feed.ts → creator-timelines-get-creator-posts.ts} +21 -15
- package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts} +16 -14
- package/src/funcs/{custom-lists-create-list.ts → custom-collections-create-collection.ts} +14 -12
- package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts} +14 -12
- package/src/funcs/custom-collections-get-collections.ts +143 -0
- package/src/funcs/{custom-lists-remove-list-member.ts → custom-collections-remove-collection-member.ts} +12 -11
- package/src/funcs/direct-messaging-get-conversations.ts +143 -0
- package/src/funcs/direct-messaging-get-message-history.ts +185 -0
- package/src/funcs/direct-messaging-send-message.ts +176 -0
- package/src/funcs/posts-create-post.ts +3 -5
- package/src/funcs/posts-get-collection-feed.ts +186 -0
- package/src/funcs/posts-get-feed.ts +8 -9
- package/src/funcs/subscriptions-subscribe-to-user.ts +2 -1
- package/src/funcs/subscriptions-unsubscribe-from-user.ts +2 -1
- package/src/funcs/{custom-lists-get-lists.ts → user-discovery-get-following.ts} +10 -9
- package/src/funcs/user-discovery-get-user-profile.ts +171 -0
- package/src/funcs/user-discovery-search-users.ts +170 -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/{custom-list.ts → collection.ts} +7 -6
- package/src/models/conversation.ts +36 -0
- package/src/models/create-post-request.ts +23 -3
- 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 +8 -1
- 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-collection-member.ts +61 -0
- package/src/models/operations/create-collection.ts +31 -0
- package/src/models/operations/create-post.ts +29 -6
- package/src/models/operations/get-collection-feed.ts +40 -0
- package/src/models/operations/get-collection-members.ts +33 -0
- package/src/models/operations/get-creator-posts.ts +40 -0
- package/src/models/operations/get-feed.ts +2 -33
- package/src/models/operations/get-message-history.ts +72 -0
- package/src/models/operations/get-user-profile.ts +31 -0
- package/src/models/operations/index.ts +11 -5
- package/src/models/operations/login-user.ts +1 -0
- package/src/models/operations/remove-collection-member.ts +36 -0
- 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/paginated-posts-response.ts +38 -0
- 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 +29 -0
- package/src/sdk/custom-collections.ts +88 -0
- package/src/sdk/direct-messaging.ts +60 -0
- package/src/sdk/index.ts +1 -0
- package/src/sdk/posts.ts +13 -16
- package/src/sdk/sdk.ts +23 -4
- package/src/sdk/subscriptions.ts +1 -0
- package/src/sdk/user-discovery.ts +53 -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
- package/src/models/operations/add-list-member.ts +0 -58
- package/src/models/operations/create-list.ts +0 -30
- package/src/models/operations/get-list-feed.ts +0 -33
- package/src/models/operations/get-list-members.ts +0 -30
- package/src/models/operations/remove-list-member.ts +0 -36
- package/src/sdk/custom-lists.ts +0 -87
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../../src/types/unrecognized.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"unrecognized.js","sourceRoot":"","sources":["../../src/types/unrecognized.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,SAAS,YAAY,CAAI,KAAQ,EAAmB;IAClD,WAAW,EAAE,CAAC;IACd,OAAO,KAAwB,CAAC;AAAA,CACjC;AAED,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,QAAQ,GAAG,CAAC,CAAC;AACjB,MAAM,UAAU,yBAAyB,GAAG;IAC1C,QAAQ,EAAE,CAAC;IACX,MAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,OAAO;QACL;;;;;WAKG;QACH,GAAG,EAAE,CAAC,KAAc,EAAE,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,WAAW,GAAG,KAAK,CAAC;YAClC,qEAAqE;YACrE,WAAW,GAAG,KAAK,GAAG,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;YACvC,IAAI,EAAE,QAAQ,KAAK,CAAC;gBAAE,WAAW,GAAG,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QAAA,CACd;KACF,CAAC;AAAA,CACH;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/core.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 69b8bb59a6b6
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
@@ -28,16 +29,17 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
29
|
import { Result } from "../types/fp.js";
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
* Get a
|
|
32
|
+
* Get a specific creator's timeline with pagination
|
|
32
33
|
*/
|
|
33
|
-
export function
|
|
34
|
+
export function creatorTimelinesGetCreatorPosts(
|
|
34
35
|
client: FankareSDKCore,
|
|
35
|
-
|
|
36
|
+
userId: number,
|
|
36
37
|
limit?: number | undefined,
|
|
38
|
+
cursor?: string | undefined,
|
|
37
39
|
options?: RequestOptions,
|
|
38
40
|
): APIPromise<
|
|
39
41
|
Result<
|
|
40
|
-
|
|
42
|
+
models.PaginatedPostsResponse,
|
|
41
43
|
| FankareSDKError
|
|
42
44
|
| ResponseValidationError
|
|
43
45
|
| ConnectionError
|
|
@@ -50,21 +52,23 @@ export function postsGetListFeed(
|
|
|
50
52
|
> {
|
|
51
53
|
return new APIPromise($do(
|
|
52
54
|
client,
|
|
53
|
-
|
|
55
|
+
userId,
|
|
54
56
|
limit,
|
|
57
|
+
cursor,
|
|
55
58
|
options,
|
|
56
59
|
));
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
async function $do(
|
|
60
63
|
client: FankareSDKCore,
|
|
61
|
-
|
|
64
|
+
userId: number,
|
|
62
65
|
limit?: number | undefined,
|
|
66
|
+
cursor?: string | undefined,
|
|
63
67
|
options?: RequestOptions,
|
|
64
68
|
): Promise<
|
|
65
69
|
[
|
|
66
70
|
Result<
|
|
67
|
-
|
|
71
|
+
models.PaginatedPostsResponse,
|
|
68
72
|
| FankareSDKError
|
|
69
73
|
| ResponseValidationError
|
|
70
74
|
| ConnectionError
|
|
@@ -77,14 +81,15 @@ async function $do(
|
|
|
77
81
|
APICall,
|
|
78
82
|
]
|
|
79
83
|
> {
|
|
80
|
-
const input: operations.
|
|
81
|
-
|
|
84
|
+
const input: operations.GetCreatorPostsRequest = {
|
|
85
|
+
userId: userId,
|
|
82
86
|
limit: limit,
|
|
87
|
+
cursor: cursor,
|
|
83
88
|
};
|
|
84
89
|
|
|
85
90
|
const parsed = safeParse(
|
|
86
91
|
input,
|
|
87
|
-
(value) => z.parse(operations.
|
|
92
|
+
(value) => z.parse(operations.GetCreatorPostsRequest$outboundSchema, value),
|
|
88
93
|
"Input validation failed",
|
|
89
94
|
);
|
|
90
95
|
if (!parsed.ok) {
|
|
@@ -94,14 +99,15 @@ async function $do(
|
|
|
94
99
|
const body = null;
|
|
95
100
|
|
|
96
101
|
const pathParams = {
|
|
97
|
-
|
|
102
|
+
userId: encodeSimple("userId", payload.userId, {
|
|
98
103
|
explode: false,
|
|
99
104
|
charEncoding: "percent",
|
|
100
105
|
}),
|
|
101
106
|
};
|
|
102
|
-
const path = pathToFunc("/
|
|
107
|
+
const path = pathToFunc("/users/{userId}/posts")(pathParams);
|
|
103
108
|
|
|
104
109
|
const query = encodeFormQuery({
|
|
110
|
+
"cursor": payload.cursor,
|
|
105
111
|
"limit": payload.limit,
|
|
106
112
|
});
|
|
107
113
|
|
|
@@ -116,7 +122,7 @@ async function $do(
|
|
|
116
122
|
const context = {
|
|
117
123
|
options: client._options,
|
|
118
124
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
|
-
operationID: "
|
|
125
|
+
operationID: "getCreatorPosts",
|
|
120
126
|
oAuth2Scopes: null,
|
|
121
127
|
|
|
122
128
|
resolvedSecurity: requestSecurity,
|
|
@@ -157,7 +163,7 @@ async function $do(
|
|
|
157
163
|
const response = doResult.value;
|
|
158
164
|
|
|
159
165
|
const [result] = await M.match<
|
|
160
|
-
|
|
166
|
+
models.PaginatedPostsResponse,
|
|
161
167
|
| FankareSDKError
|
|
162
168
|
| ResponseValidationError
|
|
163
169
|
| ConnectionError
|
|
@@ -167,7 +173,7 @@ async function $do(
|
|
|
167
173
|
| UnexpectedClientError
|
|
168
174
|
| SDKValidationError
|
|
169
175
|
>(
|
|
170
|
-
M.json(200,
|
|
176
|
+
M.json(200, models.PaginatedPostsResponse$inboundSchema),
|
|
171
177
|
M.fail("4XX"),
|
|
172
178
|
M.fail("5XX"),
|
|
173
179
|
)(response, req);
|
package/src/funcs/{custom-lists-add-list-member.ts → custom-collections-add-collection-member.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 09f25f5f8a76
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
@@ -27,12 +28,12 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
28
|
import { Result } from "../types/fp.js";
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
|
-
* Add a user to a custom
|
|
31
|
+
* Add a user to a custom collection
|
|
31
32
|
*/
|
|
32
|
-
export function
|
|
33
|
+
export function customCollectionsAddCollectionMember(
|
|
33
34
|
client: FankareSDKCore,
|
|
34
|
-
|
|
35
|
-
body: operations.
|
|
35
|
+
collectionId: number,
|
|
36
|
+
body: operations.AddCollectionMemberRequestBody,
|
|
36
37
|
options?: RequestOptions,
|
|
37
38
|
): APIPromise<
|
|
38
39
|
Result<
|
|
@@ -49,7 +50,7 @@ export function customListsAddListMember(
|
|
|
49
50
|
> {
|
|
50
51
|
return new APIPromise($do(
|
|
51
52
|
client,
|
|
52
|
-
|
|
53
|
+
collectionId,
|
|
53
54
|
body,
|
|
54
55
|
options,
|
|
55
56
|
));
|
|
@@ -57,8 +58,8 @@ export function customListsAddListMember(
|
|
|
57
58
|
|
|
58
59
|
async function $do(
|
|
59
60
|
client: FankareSDKCore,
|
|
60
|
-
|
|
61
|
-
body: operations.
|
|
61
|
+
collectionId: number,
|
|
62
|
+
body: operations.AddCollectionMemberRequestBody,
|
|
62
63
|
options?: RequestOptions,
|
|
63
64
|
): Promise<
|
|
64
65
|
[
|
|
@@ -76,14 +77,15 @@ async function $do(
|
|
|
76
77
|
APICall,
|
|
77
78
|
]
|
|
78
79
|
> {
|
|
79
|
-
const input: operations.
|
|
80
|
-
|
|
80
|
+
const input: operations.AddCollectionMemberRequest = {
|
|
81
|
+
collectionId: collectionId,
|
|
81
82
|
body: body,
|
|
82
83
|
};
|
|
83
84
|
|
|
84
85
|
const parsed = safeParse(
|
|
85
86
|
input,
|
|
86
|
-
(value) =>
|
|
87
|
+
(value) =>
|
|
88
|
+
z.parse(operations.AddCollectionMemberRequest$outboundSchema, value),
|
|
87
89
|
"Input validation failed",
|
|
88
90
|
);
|
|
89
91
|
if (!parsed.ok) {
|
|
@@ -93,12 +95,12 @@ async function $do(
|
|
|
93
95
|
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
94
96
|
|
|
95
97
|
const pathParams = {
|
|
96
|
-
|
|
98
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
97
99
|
explode: false,
|
|
98
100
|
charEncoding: "percent",
|
|
99
101
|
}),
|
|
100
102
|
};
|
|
101
|
-
const path = pathToFunc("/
|
|
103
|
+
const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
|
|
102
104
|
|
|
103
105
|
const headers = new Headers(compactMap({
|
|
104
106
|
"Content-Type": "application/json",
|
|
@@ -112,7 +114,7 @@ async function $do(
|
|
|
112
114
|
const context = {
|
|
113
115
|
options: client._options,
|
|
114
116
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
-
operationID: "
|
|
117
|
+
operationID: "addCollectionMember",
|
|
116
118
|
oAuth2Scopes: null,
|
|
117
119
|
|
|
118
120
|
resolvedSecurity: requestSecurity,
|
|
@@ -163,7 +165,7 @@ async function $do(
|
|
|
163
165
|
| SDKValidationError
|
|
164
166
|
>(
|
|
165
167
|
M.nil(204, z.void()),
|
|
166
|
-
M.fail(
|
|
168
|
+
M.fail("4XX"),
|
|
167
169
|
M.fail("5XX"),
|
|
168
170
|
)(response, req);
|
|
169
171
|
if (!result.ok) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 802a176f4643
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
@@ -28,15 +29,15 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
29
|
import { Result } from "../types/fp.js";
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
* Create a new custom grouping
|
|
32
|
+
* Create a new custom grouping collection
|
|
32
33
|
*/
|
|
33
|
-
export function
|
|
34
|
+
export function customCollectionsCreateCollection(
|
|
34
35
|
client: FankareSDKCore,
|
|
35
|
-
request: operations.
|
|
36
|
+
request: operations.CreateCollectionRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
38
|
): APIPromise<
|
|
38
39
|
Result<
|
|
39
|
-
models.
|
|
40
|
+
models.Collection,
|
|
40
41
|
| FankareSDKError
|
|
41
42
|
| ResponseValidationError
|
|
42
43
|
| ConnectionError
|
|
@@ -56,12 +57,12 @@ export function customListsCreateList(
|
|
|
56
57
|
|
|
57
58
|
async function $do(
|
|
58
59
|
client: FankareSDKCore,
|
|
59
|
-
request: operations.
|
|
60
|
+
request: operations.CreateCollectionRequest,
|
|
60
61
|
options?: RequestOptions,
|
|
61
62
|
): Promise<
|
|
62
63
|
[
|
|
63
64
|
Result<
|
|
64
|
-
models.
|
|
65
|
+
models.Collection,
|
|
65
66
|
| FankareSDKError
|
|
66
67
|
| ResponseValidationError
|
|
67
68
|
| ConnectionError
|
|
@@ -76,7 +77,8 @@ async function $do(
|
|
|
76
77
|
> {
|
|
77
78
|
const parsed = safeParse(
|
|
78
79
|
request,
|
|
79
|
-
(value) =>
|
|
80
|
+
(value) =>
|
|
81
|
+
z.parse(operations.CreateCollectionRequest$outboundSchema, value),
|
|
80
82
|
"Input validation failed",
|
|
81
83
|
);
|
|
82
84
|
if (!parsed.ok) {
|
|
@@ -85,7 +87,7 @@ async function $do(
|
|
|
85
87
|
const payload = parsed.value;
|
|
86
88
|
const body = encodeJSON("body", payload, { explode: true });
|
|
87
89
|
|
|
88
|
-
const path = pathToFunc("/
|
|
90
|
+
const path = pathToFunc("/collections")();
|
|
89
91
|
|
|
90
92
|
const headers = new Headers(compactMap({
|
|
91
93
|
"Content-Type": "application/json",
|
|
@@ -99,7 +101,7 @@ async function $do(
|
|
|
99
101
|
const context = {
|
|
100
102
|
options: client._options,
|
|
101
103
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
102
|
-
operationID: "
|
|
104
|
+
operationID: "createCollection",
|
|
103
105
|
oAuth2Scopes: null,
|
|
104
106
|
|
|
105
107
|
resolvedSecurity: requestSecurity,
|
|
@@ -139,7 +141,7 @@ async function $do(
|
|
|
139
141
|
const response = doResult.value;
|
|
140
142
|
|
|
141
143
|
const [result] = await M.match<
|
|
142
|
-
models.
|
|
144
|
+
models.Collection,
|
|
143
145
|
| FankareSDKError
|
|
144
146
|
| ResponseValidationError
|
|
145
147
|
| ConnectionError
|
|
@@ -149,8 +151,8 @@ async function $do(
|
|
|
149
151
|
| UnexpectedClientError
|
|
150
152
|
| SDKValidationError
|
|
151
153
|
>(
|
|
152
|
-
M.json(201, models.
|
|
153
|
-
M.fail(
|
|
154
|
+
M.json(201, models.Collection$inboundSchema),
|
|
155
|
+
M.fail("4XX"),
|
|
154
156
|
M.fail("5XX"),
|
|
155
157
|
)(response, req);
|
|
156
158
|
if (!result.ok) {
|
package/src/funcs/{custom-lists-get-list-members.ts → custom-collections-get-collection-members.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7beb0dd706f2
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
@@ -28,11 +29,11 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
28
29
|
import { Result } from "../types/fp.js";
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
|
-
* Get all members belonging to a custom
|
|
32
|
+
* Get all members belonging to a custom collection
|
|
32
33
|
*/
|
|
33
|
-
export function
|
|
34
|
+
export function customCollectionsGetCollectionMembers(
|
|
34
35
|
client: FankareSDKCore,
|
|
35
|
-
|
|
36
|
+
collectionId: number,
|
|
36
37
|
options?: RequestOptions,
|
|
37
38
|
): APIPromise<
|
|
38
39
|
Result<
|
|
@@ -49,14 +50,14 @@ export function customListsGetListMembers(
|
|
|
49
50
|
> {
|
|
50
51
|
return new APIPromise($do(
|
|
51
52
|
client,
|
|
52
|
-
|
|
53
|
+
collectionId,
|
|
53
54
|
options,
|
|
54
55
|
));
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
async function $do(
|
|
58
59
|
client: FankareSDKCore,
|
|
59
|
-
|
|
60
|
+
collectionId: number,
|
|
60
61
|
options?: RequestOptions,
|
|
61
62
|
): Promise<
|
|
62
63
|
[
|
|
@@ -74,13 +75,14 @@ async function $do(
|
|
|
74
75
|
APICall,
|
|
75
76
|
]
|
|
76
77
|
> {
|
|
77
|
-
const input: operations.
|
|
78
|
-
|
|
78
|
+
const input: operations.GetCollectionMembersRequest = {
|
|
79
|
+
collectionId: collectionId,
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
const parsed = safeParse(
|
|
82
83
|
input,
|
|
83
|
-
(value) =>
|
|
84
|
+
(value) =>
|
|
85
|
+
z.parse(operations.GetCollectionMembersRequest$outboundSchema, value),
|
|
84
86
|
"Input validation failed",
|
|
85
87
|
);
|
|
86
88
|
if (!parsed.ok) {
|
|
@@ -90,12 +92,12 @@ async function $do(
|
|
|
90
92
|
const body = null;
|
|
91
93
|
|
|
92
94
|
const pathParams = {
|
|
93
|
-
|
|
95
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
94
96
|
explode: false,
|
|
95
97
|
charEncoding: "percent",
|
|
96
98
|
}),
|
|
97
99
|
};
|
|
98
|
-
const path = pathToFunc("/
|
|
100
|
+
const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
|
|
99
101
|
|
|
100
102
|
const headers = new Headers(compactMap({
|
|
101
103
|
Accept: "application/json",
|
|
@@ -108,7 +110,7 @@ async function $do(
|
|
|
108
110
|
const context = {
|
|
109
111
|
options: client._options,
|
|
110
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
|
-
operationID: "
|
|
113
|
+
operationID: "getCollectionMembers",
|
|
112
114
|
oAuth2Scopes: null,
|
|
113
115
|
|
|
114
116
|
resolvedSecurity: requestSecurity,
|
|
@@ -159,7 +161,7 @@ async function $do(
|
|
|
159
161
|
| SDKValidationError
|
|
160
162
|
>(
|
|
161
163
|
M.json(200, z.array(models.User$inboundSchema)),
|
|
162
|
-
M.fail(
|
|
164
|
+
M.fail("4XX"),
|
|
163
165
|
M.fail("5XX"),
|
|
164
166
|
)(response, req);
|
|
165
167
|
if (!result.ok) {
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: ac4ed76cf26d
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v4-mini";
|
|
7
|
+
import { FankareSDKCore } from "../core.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import { FankareSDKError } from "../models/errors/fankare-sdk-error.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/http-client-errors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/response-validation-error.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
|
|
24
|
+
import * as models from "../models/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get all collections created by the user
|
|
30
|
+
*/
|
|
31
|
+
export function customCollectionsGetCollections(
|
|
32
|
+
client: FankareSDKCore,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<
|
|
35
|
+
Result<
|
|
36
|
+
Array<models.Collection>,
|
|
37
|
+
| FankareSDKError
|
|
38
|
+
| ResponseValidationError
|
|
39
|
+
| ConnectionError
|
|
40
|
+
| RequestAbortedError
|
|
41
|
+
| RequestTimeoutError
|
|
42
|
+
| InvalidRequestError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
return new APIPromise($do(
|
|
48
|
+
client,
|
|
49
|
+
options,
|
|
50
|
+
));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
async function $do(
|
|
54
|
+
client: FankareSDKCore,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): Promise<
|
|
57
|
+
[
|
|
58
|
+
Result<
|
|
59
|
+
Array<models.Collection>,
|
|
60
|
+
| FankareSDKError
|
|
61
|
+
| ResponseValidationError
|
|
62
|
+
| ConnectionError
|
|
63
|
+
| RequestAbortedError
|
|
64
|
+
| RequestTimeoutError
|
|
65
|
+
| InvalidRequestError
|
|
66
|
+
| UnexpectedClientError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
>,
|
|
69
|
+
APICall,
|
|
70
|
+
]
|
|
71
|
+
> {
|
|
72
|
+
const path = pathToFunc("/collections")();
|
|
73
|
+
|
|
74
|
+
const headers = new Headers(compactMap({
|
|
75
|
+
Accept: "application/json",
|
|
76
|
+
}));
|
|
77
|
+
|
|
78
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
79
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
80
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81
|
+
|
|
82
|
+
const context = {
|
|
83
|
+
options: client._options,
|
|
84
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
|
+
operationID: "getCollections",
|
|
86
|
+
oAuth2Scopes: null,
|
|
87
|
+
|
|
88
|
+
resolvedSecurity: requestSecurity,
|
|
89
|
+
|
|
90
|
+
securitySource: client._options.bearerAuth,
|
|
91
|
+
retryConfig: options?.retries
|
|
92
|
+
|| client._options.retryConfig
|
|
93
|
+
|| { strategy: "none" },
|
|
94
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const requestRes = client._createRequest(context, {
|
|
98
|
+
security: requestSecurity,
|
|
99
|
+
method: "GET",
|
|
100
|
+
baseURL: options?.serverURL,
|
|
101
|
+
path: path,
|
|
102
|
+
headers: headers,
|
|
103
|
+
userAgent: client._options.userAgent,
|
|
104
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
105
|
+
}, options);
|
|
106
|
+
if (!requestRes.ok) {
|
|
107
|
+
return [requestRes, { status: "invalid" }];
|
|
108
|
+
}
|
|
109
|
+
const req = requestRes.value;
|
|
110
|
+
|
|
111
|
+
const doResult = await client._do(req, {
|
|
112
|
+
context,
|
|
113
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
114
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
115
|
+
retryConfig: context.retryConfig,
|
|
116
|
+
retryCodes: context.retryCodes,
|
|
117
|
+
});
|
|
118
|
+
if (!doResult.ok) {
|
|
119
|
+
return [doResult, { status: "request-error", request: req }];
|
|
120
|
+
}
|
|
121
|
+
const response = doResult.value;
|
|
122
|
+
|
|
123
|
+
const [result] = await M.match<
|
|
124
|
+
Array<models.Collection>,
|
|
125
|
+
| FankareSDKError
|
|
126
|
+
| ResponseValidationError
|
|
127
|
+
| ConnectionError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| InvalidRequestError
|
|
131
|
+
| UnexpectedClientError
|
|
132
|
+
| SDKValidationError
|
|
133
|
+
>(
|
|
134
|
+
M.json(200, z.array(models.Collection$inboundSchema)),
|
|
135
|
+
M.fail("4XX"),
|
|
136
|
+
M.fail("5XX"),
|
|
137
|
+
)(response, req);
|
|
138
|
+
if (!result.ok) {
|
|
139
|
+
return [result, { status: "complete", request: req, response }];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return [result, { status: "complete", request: req, response }];
|
|
143
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: afd181fdd5a7
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
6
|
import * as z from "zod/v4-mini";
|
|
@@ -27,11 +28,11 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
27
28
|
import { Result } from "../types/fp.js";
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
|
-
* Remove a user from a custom
|
|
31
|
+
* Remove a user from a custom collection
|
|
31
32
|
*/
|
|
32
|
-
export function
|
|
33
|
+
export function customCollectionsRemoveCollectionMember(
|
|
33
34
|
client: FankareSDKCore,
|
|
34
|
-
|
|
35
|
+
collectionId: number,
|
|
35
36
|
userId: number,
|
|
36
37
|
options?: RequestOptions,
|
|
37
38
|
): APIPromise<
|
|
@@ -49,7 +50,7 @@ export function customListsRemoveListMember(
|
|
|
49
50
|
> {
|
|
50
51
|
return new APIPromise($do(
|
|
51
52
|
client,
|
|
52
|
-
|
|
53
|
+
collectionId,
|
|
53
54
|
userId,
|
|
54
55
|
options,
|
|
55
56
|
));
|
|
@@ -57,7 +58,7 @@ export function customListsRemoveListMember(
|
|
|
57
58
|
|
|
58
59
|
async function $do(
|
|
59
60
|
client: FankareSDKCore,
|
|
60
|
-
|
|
61
|
+
collectionId: number,
|
|
61
62
|
userId: number,
|
|
62
63
|
options?: RequestOptions,
|
|
63
64
|
): Promise<
|
|
@@ -76,15 +77,15 @@ async function $do(
|
|
|
76
77
|
APICall,
|
|
77
78
|
]
|
|
78
79
|
> {
|
|
79
|
-
const input: operations.
|
|
80
|
-
|
|
80
|
+
const input: operations.RemoveCollectionMemberRequest = {
|
|
81
|
+
collectionId: collectionId,
|
|
81
82
|
userId: userId,
|
|
82
83
|
};
|
|
83
84
|
|
|
84
85
|
const parsed = safeParse(
|
|
85
86
|
input,
|
|
86
87
|
(value) =>
|
|
87
|
-
z.parse(operations.
|
|
88
|
+
z.parse(operations.RemoveCollectionMemberRequest$outboundSchema, value),
|
|
88
89
|
"Input validation failed",
|
|
89
90
|
);
|
|
90
91
|
if (!parsed.ok) {
|
|
@@ -94,12 +95,12 @@ async function $do(
|
|
|
94
95
|
const body = null;
|
|
95
96
|
|
|
96
97
|
const pathParams = {
|
|
97
|
-
|
|
98
|
+
collectionId: encodeSimple("collectionId", payload.collectionId, {
|
|
98
99
|
explode: false,
|
|
99
100
|
charEncoding: "percent",
|
|
100
101
|
}),
|
|
101
102
|
};
|
|
102
|
-
const path = pathToFunc("/
|
|
103
|
+
const path = pathToFunc("/collections/{collectionId}/members")(pathParams);
|
|
103
104
|
|
|
104
105
|
const query = encodeFormQuery({
|
|
105
106
|
"userId": payload.userId,
|
|
@@ -116,7 +117,7 @@ async function $do(
|
|
|
116
117
|
const context = {
|
|
117
118
|
options: client._options,
|
|
118
119
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
|
-
operationID: "
|
|
120
|
+
operationID: "removeCollectionMember",
|
|
120
121
|
oAuth2Scopes: null,
|
|
121
122
|
|
|
122
123
|
resolvedSecurity: requestSecurity,
|