@woopsocial/typescript-sdk 0.0.7
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 +87 -0
- package/README.md +474 -0
- package/RUNTIMES.md +48 -0
- package/esm/core.d.ts +10 -0
- package/esm/core.d.ts.map +1 -0
- package/esm/core.js +13 -0
- package/esm/core.js.map +1 -0
- package/esm/funcs/health-get-health.d.ts +17 -0
- package/esm/funcs/health-get-health.d.ts.map +1 -0
- package/esm/funcs/health-get-health.js +68 -0
- package/esm/funcs/health-get-health.js.map +1 -0
- package/esm/funcs/media-complete-upload-session.d.ts +15 -0
- package/esm/funcs/media-complete-upload-session.d.ts.map +1 -0
- package/esm/funcs/media-complete-upload-session.js +82 -0
- package/esm/funcs/media-complete-upload-session.js.map +1 -0
- package/esm/funcs/media-create-media.d.ts +25 -0
- package/esm/funcs/media-create-media.d.ts.map +1 -0
- package/esm/funcs/media-create-media.js +93 -0
- package/esm/funcs/media-create-media.js.map +1 -0
- package/esm/funcs/media-create-upload-session.d.ts +27 -0
- package/esm/funcs/media-create-upload-session.d.ts.map +1 -0
- package/esm/funcs/media-create-upload-session.js +89 -0
- package/esm/funcs/media-create-upload-session.js.map +1 -0
- package/esm/funcs/media-get-upload-session.d.ts +15 -0
- package/esm/funcs/media-get-upload-session.d.ts.map +1 -0
- package/esm/funcs/media-get-upload-session.js +82 -0
- package/esm/funcs/media-get-upload-session.js.map +1 -0
- package/esm/funcs/posts-create-posts.d.ts +23 -0
- package/esm/funcs/posts-create-posts.d.ts.map +1 -0
- package/esm/funcs/posts-create-posts.js +85 -0
- package/esm/funcs/posts-create-posts.js.map +1 -0
- package/esm/funcs/posts-delete-posts.d.ts +21 -0
- package/esm/funcs/posts-delete-posts.d.ts.map +1 -0
- package/esm/funcs/posts-delete-posts.js +83 -0
- package/esm/funcs/posts-delete-posts.js.map +1 -0
- package/esm/funcs/posts-list-posts.d.ts +17 -0
- package/esm/funcs/posts-list-posts.d.ts.map +1 -0
- package/esm/funcs/posts-list-posts.js +81 -0
- package/esm/funcs/posts-list-posts.js.map +1 -0
- package/esm/funcs/posts-update-posts.d.ts +21 -0
- package/esm/funcs/posts-update-posts.d.ts.map +1 -0
- package/esm/funcs/posts-update-posts.js +83 -0
- package/esm/funcs/posts-update-posts.js.map +1 -0
- package/esm/funcs/projects-list-projects.d.ts +17 -0
- package/esm/funcs/projects-list-projects.d.ts.map +1 -0
- package/esm/funcs/projects-list-projects.js +69 -0
- package/esm/funcs/projects-list-projects.js.map +1 -0
- package/esm/funcs/social-accounts-create-o-auth-authorization.d.ts +17 -0
- package/esm/funcs/social-accounts-create-o-auth-authorization.d.ts.map +1 -0
- package/esm/funcs/social-accounts-create-o-auth-authorization.js +79 -0
- package/esm/funcs/social-accounts-create-o-auth-authorization.js.map +1 -0
- package/esm/funcs/social-accounts-get-social-account-platform-inputs.d.ts +20 -0
- package/esm/funcs/social-accounts-get-social-account-platform-inputs.d.ts.map +1 -0
- package/esm/funcs/social-accounts-get-social-account-platform-inputs.js +87 -0
- package/esm/funcs/social-accounts-get-social-account-platform-inputs.js.map +1 -0
- package/esm/funcs/social-accounts-list-social-accounts.d.ts +20 -0
- package/esm/funcs/social-accounts-list-social-accounts.d.ts.map +1 -0
- package/esm/funcs/social-accounts-list-social-accounts.js +85 -0
- package/esm/funcs/social-accounts-list-social-accounts.js.map +1 -0
- package/esm/hooks/hooks.d.ts +25 -0
- package/esm/hooks/hooks.d.ts.map +1 -0
- package/esm/hooks/hooks.js +80 -0
- package/esm/hooks/hooks.js.map +1 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.d.ts.map +1 -0
- package/esm/hooks/index.js +6 -0
- package/esm/hooks/index.js.map +1 -0
- package/esm/hooks/types.d.ts +76 -0
- package/esm/hooks/types.d.ts.map +1 -0
- package/esm/hooks/types.js +5 -0
- package/esm/hooks/types.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/lib/base64.d.ts +10 -0
- package/esm/lib/base64.d.ts.map +1 -0
- package/esm/lib/base64.js +31 -0
- package/esm/lib/base64.js.map +1 -0
- package/esm/lib/config.d.ts +38 -0
- package/esm/lib/config.d.ts.map +1 -0
- package/esm/lib/config.js +34 -0
- package/esm/lib/config.js.map +1 -0
- package/esm/lib/dlv.d.ts +14 -0
- package/esm/lib/dlv.d.ts.map +1 -0
- package/esm/lib/dlv.js +46 -0
- package/esm/lib/dlv.js.map +1 -0
- package/esm/lib/encodings.d.ts +53 -0
- package/esm/lib/encodings.d.ts.map +1 -0
- package/esm/lib/encodings.js +385 -0
- package/esm/lib/encodings.js.map +1 -0
- package/esm/lib/env.d.ts +15 -0
- package/esm/lib/env.d.ts.map +1 -0
- package/esm/lib/env.js +44 -0
- package/esm/lib/env.js.map +1 -0
- package/esm/lib/files.d.ts +26 -0
- package/esm/lib/files.d.ts.map +1 -0
- package/esm/lib/files.js +91 -0
- package/esm/lib/files.js.map +1 -0
- package/esm/lib/http.d.ts +67 -0
- package/esm/lib/http.d.ts.map +1 -0
- package/esm/lib/http.js +209 -0
- package/esm/lib/http.js.map +1 -0
- package/esm/lib/is-plain-object.d.ts +2 -0
- package/esm/lib/is-plain-object.d.ts.map +1 -0
- package/esm/lib/is-plain-object.js +38 -0
- package/esm/lib/is-plain-object.js.map +1 -0
- package/esm/lib/logger.d.ts +6 -0
- package/esm/lib/logger.d.ts.map +1 -0
- package/esm/lib/logger.js +5 -0
- package/esm/lib/logger.js.map +1 -0
- package/esm/lib/matchers.d.ts +59 -0
- package/esm/lib/matchers.d.ts.map +1 -0
- package/esm/lib/matchers.js +202 -0
- package/esm/lib/matchers.js.map +1 -0
- package/esm/lib/primitives.d.ts +26 -0
- package/esm/lib/primitives.d.ts.map +1 -0
- package/esm/lib/primitives.js +103 -0
- package/esm/lib/primitives.js.map +1 -0
- package/esm/lib/retries.d.ts +38 -0
- package/esm/lib/retries.d.ts.map +1 -0
- package/esm/lib/retries.js +150 -0
- package/esm/lib/retries.js.map +1 -0
- package/esm/lib/schemas.d.ts +21 -0
- package/esm/lib/schemas.d.ts.map +1 -0
- package/esm/lib/schemas.js +57 -0
- package/esm/lib/schemas.js.map +1 -0
- package/esm/lib/sdks.d.ts +63 -0
- package/esm/lib/sdks.d.ts.map +1 -0
- package/esm/lib/sdks.js +262 -0
- package/esm/lib/sdks.js.map +1 -0
- package/esm/lib/security.d.ts +83 -0
- package/esm/lib/security.d.ts.map +1 -0
- package/esm/lib/security.js +149 -0
- package/esm/lib/security.js.map +1 -0
- package/esm/lib/url.d.ts +5 -0
- package/esm/lib/url.d.ts.map +1 -0
- package/esm/lib/url.js +24 -0
- package/esm/lib/url.js.map +1 -0
- package/esm/models/create-media-response.d.ts +13 -0
- package/esm/models/create-media-response.d.ts.map +1 -0
- package/esm/models/create-media-response.js +14 -0
- package/esm/models/create-media-response.js.map +1 -0
- package/esm/models/create-o-auth-authorization-request.d.ts +21 -0
- package/esm/models/create-o-auth-authorization-request.d.ts.map +1 -0
- package/esm/models/create-o-auth-authorization-request.js +14 -0
- package/esm/models/create-o-auth-authorization-request.js.map +1 -0
- package/esm/models/create-o-auth-authorization-response.d.ts +13 -0
- package/esm/models/create-o-auth-authorization-response.d.ts.map +1 -0
- package/esm/models/create-o-auth-authorization-response.js +14 -0
- package/esm/models/create-o-auth-authorization-response.js.map +1 -0
- package/esm/models/create-post-failure-code.d.ts +16 -0
- package/esm/models/create-post-failure-code.d.ts.map +1 -0
- package/esm/models/create-post-failure-code.js +17 -0
- package/esm/models/create-post-failure-code.js.map +1 -0
- package/esm/models/create-post-failure-result.d.ts +33 -0
- package/esm/models/create-post-failure-result.d.ts.map +1 -0
- package/esm/models/create-post-failure-result.js +22 -0
- package/esm/models/create-post-failure-result.js.map +1 -0
- package/esm/models/create-post-item.d.ts +47 -0
- package/esm/models/create-post-item.d.ts.map +1 -0
- package/esm/models/create-post-item.js +21 -0
- package/esm/models/create-post-item.js.map +1 -0
- package/esm/models/create-post-result.d.ts +11 -0
- package/esm/models/create-post-result.d.ts.map +1 -0
- package/esm/models/create-post-result.js +16 -0
- package/esm/models/create-post-result.js.map +1 -0
- package/esm/models/create-post-success-result.d.ts +23 -0
- package/esm/models/create-post-success-result.d.ts.map +1 -0
- package/esm/models/create-post-success-result.js +18 -0
- package/esm/models/create-post-success-result.js.map +1 -0
- package/esm/models/create-posts-response.d.ts +14 -0
- package/esm/models/create-posts-response.d.ts.map +1 -0
- package/esm/models/create-posts-response.js +14 -0
- package/esm/models/create-posts-response.js.map +1 -0
- package/esm/models/create-upload-session-request.d.ts +20 -0
- package/esm/models/create-upload-session-request.d.ts.map +1 -0
- package/esm/models/create-upload-session-request.js +13 -0
- package/esm/models/create-upload-session-request.js.map +1 -0
- package/esm/models/delete-post-failure-code.d.ts +11 -0
- package/esm/models/delete-post-failure-code.d.ts.map +1 -0
- package/esm/models/delete-post-failure-code.js +12 -0
- package/esm/models/delete-post-failure-code.js.map +1 -0
- package/esm/models/delete-post-failure-result.d.ts +17 -0
- package/esm/models/delete-post-failure-result.d.ts.map +1 -0
- package/esm/models/delete-post-failure-result.js +18 -0
- package/esm/models/delete-post-failure-result.js.map +1 -0
- package/esm/models/delete-post-result.d.ts +11 -0
- package/esm/models/delete-post-result.d.ts.map +1 -0
- package/esm/models/delete-post-result.js +16 -0
- package/esm/models/delete-post-result.js.map +1 -0
- package/esm/models/delete-post-success-result.d.ts +14 -0
- package/esm/models/delete-post-success-result.d.ts.map +1 -0
- package/esm/models/delete-post-success-result.js +15 -0
- package/esm/models/delete-post-success-result.js.map +1 -0
- package/esm/models/delete-posts-response.d.ts +14 -0
- package/esm/models/delete-posts-response.d.ts.map +1 -0
- package/esm/models/delete-posts-response.js +14 -0
- package/esm/models/delete-posts-response.js.map +1 -0
- package/esm/models/delivery-status.d.ts +34 -0
- package/esm/models/delivery-status.d.ts.map +1 -0
- package/esm/models/delivery-status.js +25 -0
- package/esm/models/delivery-status.js.map +1 -0
- package/esm/models/errors/http-client-errors.d.ts +44 -0
- package/esm/models/errors/http-client-errors.d.ts.map +1 -0
- package/esm/models/errors/http-client-errors.js +56 -0
- package/esm/models/errors/http-client-errors.js.map +1 -0
- package/esm/models/errors/index.d.ts +6 -0
- package/esm/models/errors/index.d.ts.map +1 -0
- package/esm/models/errors/index.js +9 -0
- package/esm/models/errors/index.js.map +1 -0
- package/esm/models/errors/response-validation-error.d.ts +26 -0
- package/esm/models/errors/response-validation-error.d.ts.map +1 -0
- package/esm/models/errors/response-validation-error.js +37 -0
- package/esm/models/errors/response-validation-error.js.map +1 -0
- package/esm/models/errors/sdk-validation-error.d.ts +21 -0
- package/esm/models/errors/sdk-validation-error.d.ts.map +1 -0
- package/esm/models/errors/sdk-validation-error.js +52 -0
- package/esm/models/errors/sdk-validation-error.js.map +1 -0
- package/esm/models/errors/woop-social-default-error.d.ts +10 -0
- package/esm/models/errors/woop-social-default-error.d.ts.map +1 -0
- package/esm/models/errors/woop-social-default-error.js +30 -0
- package/esm/models/errors/woop-social-default-error.js.map +1 -0
- package/esm/models/errors/woop-social-error.d.ts +19 -0
- package/esm/models/errors/woop-social-error.d.ts.map +1 -0
- package/esm/models/errors/woop-social-error.js +26 -0
- package/esm/models/errors/woop-social-error.js.map +1 -0
- package/esm/models/facebook-post-type.d.ts +14 -0
- package/esm/models/facebook-post-type.d.ts.map +1 -0
- package/esm/models/facebook-post-type.js +15 -0
- package/esm/models/facebook-post-type.js.map +1 -0
- package/esm/models/facebook-specifics.d.ts +22 -0
- package/esm/models/facebook-specifics.d.ts.map +1 -0
- package/esm/models/facebook-specifics.js +26 -0
- package/esm/models/facebook-specifics.js.map +1 -0
- package/esm/models/health-response.d.ts +21 -0
- package/esm/models/health-response.d.ts.map +1 -0
- package/esm/models/health-response.js +16 -0
- package/esm/models/health-response.js.map +1 -0
- package/esm/models/index.d.ts +61 -0
- package/esm/models/index.d.ts.map +1 -0
- package/esm/models/index.js +64 -0
- package/esm/models/index.js.map +1 -0
- package/esm/models/instagram-post-type.d.ts +13 -0
- package/esm/models/instagram-post-type.d.ts.map +1 -0
- package/esm/models/instagram-post-type.js +14 -0
- package/esm/models/instagram-post-type.js.map +1 -0
- package/esm/models/instagram-specifics.d.ts +20 -0
- package/esm/models/instagram-specifics.d.ts.map +1 -0
- package/esm/models/instagram-specifics.js +24 -0
- package/esm/models/instagram-specifics.js.map +1 -0
- package/esm/models/linked-in-pages-specifics.d.ts +17 -0
- package/esm/models/linked-in-pages-specifics.d.ts.map +1 -0
- package/esm/models/linked-in-pages-specifics.js +21 -0
- package/esm/models/linked-in-pages-specifics.js.map +1 -0
- package/esm/models/linked-in-specifics.d.ts +17 -0
- package/esm/models/linked-in-specifics.d.ts.map +1 -0
- package/esm/models/linked-in-specifics.js +21 -0
- package/esm/models/linked-in-specifics.js.map +1 -0
- package/esm/models/list-posts-request.d.ts +43 -0
- package/esm/models/list-posts-request.d.ts.map +1 -0
- package/esm/models/list-posts-request.js +17 -0
- package/esm/models/list-posts-request.js.map +1 -0
- package/esm/models/list-posts-response.d.ts +15 -0
- package/esm/models/list-posts-response.d.ts.map +1 -0
- package/esm/models/list-posts-response.js +16 -0
- package/esm/models/list-posts-response.js.map +1 -0
- package/esm/models/operations/complete-upload-session.d.ts +15 -0
- package/esm/models/operations/complete-upload-session.d.ts.map +1 -0
- package/esm/models/operations/complete-upload-session.js +12 -0
- package/esm/models/operations/complete-upload-session.js.map +1 -0
- package/esm/models/operations/create-media.d.ts +17 -0
- package/esm/models/operations/create-media.d.ts.map +1 -0
- package/esm/models/operations/create-media.js +18 -0
- package/esm/models/operations/create-media.js.map +1 -0
- package/esm/models/operations/get-social-account-platform-inputs.d.ts +15 -0
- package/esm/models/operations/get-social-account-platform-inputs.d.ts.map +1 -0
- package/esm/models/operations/get-social-account-platform-inputs.js +12 -0
- package/esm/models/operations/get-social-account-platform-inputs.js.map +1 -0
- package/esm/models/operations/get-upload-session.d.ts +15 -0
- package/esm/models/operations/get-upload-session.d.ts.map +1 -0
- package/esm/models/operations/get-upload-session.js +12 -0
- package/esm/models/operations/get-upload-session.js.map +1 -0
- package/esm/models/operations/index.d.ts +6 -0
- package/esm/models/operations/index.d.ts.map +1 -0
- package/esm/models/operations/index.js +9 -0
- package/esm/models/operations/index.js.map +1 -0
- package/esm/models/operations/list-social-accounts.d.ts +15 -0
- package/esm/models/operations/list-social-accounts.d.ts.map +1 -0
- package/esm/models/operations/list-social-accounts.js +12 -0
- package/esm/models/operations/list-social-accounts.js.map +1 -0
- package/esm/models/pinterest-account-platform-inputs.d.ts +19 -0
- package/esm/models/pinterest-account-platform-inputs.d.ts.map +1 -0
- package/esm/models/pinterest-account-platform-inputs.js +14 -0
- package/esm/models/pinterest-account-platform-inputs.js.map +1 -0
- package/esm/models/pinterest-board-option.d.ts +17 -0
- package/esm/models/pinterest-board-option.d.ts.map +1 -0
- package/esm/models/pinterest-board-option.js +15 -0
- package/esm/models/pinterest-board-option.js.map +1 -0
- package/esm/models/pinterest-social-account-platform-specific-inputs.d.ts +12 -0
- package/esm/models/pinterest-social-account-platform-specific-inputs.d.ts.map +1 -0
- package/esm/models/pinterest-social-account-platform-specific-inputs.js +17 -0
- package/esm/models/pinterest-social-account-platform-specific-inputs.js.map +1 -0
- package/esm/models/pinterest-specifics.d.ts +19 -0
- package/esm/models/pinterest-specifics.d.ts.map +1 -0
- package/esm/models/pinterest-specifics.js +23 -0
- package/esm/models/pinterest-specifics.js.map +1 -0
- package/esm/models/platform-specifics.d.ts +25 -0
- package/esm/models/platform-specifics.d.ts.map +1 -0
- package/esm/models/platform-specifics.js +43 -0
- package/esm/models/platform-specifics.js.map +1 -0
- package/esm/models/post-media.d.ts +30 -0
- package/esm/models/post-media.d.ts.map +1 -0
- package/esm/models/post-media.js +26 -0
- package/esm/models/post-media.js.map +1 -0
- package/esm/models/post.d.ts +69 -0
- package/esm/models/post.d.ts.map +1 -0
- package/esm/models/post.js +33 -0
- package/esm/models/post.js.map +1 -0
- package/esm/models/project.d.ts +17 -0
- package/esm/models/project.d.ts.map +1 -0
- package/esm/models/project.js +15 -0
- package/esm/models/project.js.map +1 -0
- package/esm/models/security.d.ts +12 -0
- package/esm/models/security.d.ts.map +1 -0
- package/esm/models/security.js +17 -0
- package/esm/models/security.js.map +1 -0
- package/esm/models/social-account-platform-inputs.d.ts +20 -0
- package/esm/models/social-account-platform-inputs.d.ts.map +1 -0
- package/esm/models/social-account-platform-inputs.js +18 -0
- package/esm/models/social-account-platform-inputs.js.map +1 -0
- package/esm/models/social-account-platform-specific-inputs.d.ts +11 -0
- package/esm/models/social-account-platform-specific-inputs.d.ts.map +1 -0
- package/esm/models/social-account-platform-specific-inputs.js +16 -0
- package/esm/models/social-account-platform-specific-inputs.js.map +1 -0
- package/esm/models/social-account-status.d.ts +10 -0
- package/esm/models/social-account-status.d.ts.map +1 -0
- package/esm/models/social-account-status.js +11 -0
- package/esm/models/social-account-status.js.map +1 -0
- package/esm/models/social-account.d.ts +28 -0
- package/esm/models/social-account.d.ts.map +1 -0
- package/esm/models/social-account.js +20 -0
- package/esm/models/social-account.js.map +1 -0
- package/esm/models/social-platform.d.ts +24 -0
- package/esm/models/social-platform.d.ts.map +1 -0
- package/esm/models/social-platform.js +22 -0
- package/esm/models/social-platform.js.map +1 -0
- package/esm/models/tik-tok-account-platform-inputs.d.ts +35 -0
- package/esm/models/tik-tok-account-platform-inputs.d.ts.map +1 -0
- package/esm/models/tik-tok-account-platform-inputs.js +19 -0
- package/esm/models/tik-tok-account-platform-inputs.js.map +1 -0
- package/esm/models/tik-tok-post-type.d.ts +12 -0
- package/esm/models/tik-tok-post-type.d.ts.map +1 -0
- package/esm/models/tik-tok-post-type.js +13 -0
- package/esm/models/tik-tok-post-type.js.map +1 -0
- package/esm/models/tik-tok-privacy-level.d.ts +14 -0
- package/esm/models/tik-tok-privacy-level.d.ts.map +1 -0
- package/esm/models/tik-tok-privacy-level.js +15 -0
- package/esm/models/tik-tok-privacy-level.js.map +1 -0
- package/esm/models/tik-tok-social-account-platform-specific-inputs.d.ts +12 -0
- package/esm/models/tik-tok-social-account-platform-specific-inputs.d.ts.map +1 -0
- package/esm/models/tik-tok-social-account-platform-specific-inputs.js +16 -0
- package/esm/models/tik-tok-social-account-platform-specific-inputs.js.map +1 -0
- package/esm/models/tik-tok-specifics.d.ts +37 -0
- package/esm/models/tik-tok-specifics.d.ts.map +1 -0
- package/esm/models/tik-tok-specifics.js +41 -0
- package/esm/models/tik-tok-specifics.js.map +1 -0
- package/esm/models/update-post-failure-code.d.ts +14 -0
- package/esm/models/update-post-failure-code.d.ts.map +1 -0
- package/esm/models/update-post-failure-code.js +15 -0
- package/esm/models/update-post-failure-code.js.map +1 -0
- package/esm/models/update-post-failure-result.d.ts +33 -0
- package/esm/models/update-post-failure-result.d.ts.map +1 -0
- package/esm/models/update-post-failure-result.js +22 -0
- package/esm/models/update-post-failure-result.js.map +1 -0
- package/esm/models/update-post-item.d.ts +37 -0
- package/esm/models/update-post-item.d.ts.map +1 -0
- package/esm/models/update-post-item.js +19 -0
- package/esm/models/update-post-item.js.map +1 -0
- package/esm/models/update-post-result.d.ts +11 -0
- package/esm/models/update-post-result.d.ts.map +1 -0
- package/esm/models/update-post-result.js +16 -0
- package/esm/models/update-post-result.js.map +1 -0
- package/esm/models/update-post-success-result.d.ts +19 -0
- package/esm/models/update-post-success-result.d.ts.map +1 -0
- package/esm/models/update-post-success-result.js +17 -0
- package/esm/models/update-post-success-result.js.map +1 -0
- package/esm/models/update-posts-response.d.ts +14 -0
- package/esm/models/update-posts-response.d.ts.map +1 -0
- package/esm/models/update-posts-response.js +14 -0
- package/esm/models/update-posts-response.js.map +1 -0
- package/esm/models/upload-session-part.d.ts +17 -0
- package/esm/models/upload-session-part.d.ts.map +1 -0
- package/esm/models/upload-session-part.js +15 -0
- package/esm/models/upload-session-part.js.map +1 -0
- package/esm/models/upload-session-status-value.d.ts +13 -0
- package/esm/models/upload-session-status-value.d.ts.map +1 -0
- package/esm/models/upload-session-status-value.js +14 -0
- package/esm/models/upload-session-status-value.js.map +1 -0
- package/esm/models/upload-session-status.d.ts +18 -0
- package/esm/models/upload-session-status.d.ts.map +1 -0
- package/esm/models/upload-session-status.js +19 -0
- package/esm/models/upload-session-status.js.map +1 -0
- package/esm/models/upload-session.d.ts +36 -0
- package/esm/models/upload-session.d.ts.map +1 -0
- package/esm/models/upload-session.js +19 -0
- package/esm/models/upload-session.js.map +1 -0
- package/esm/models/validation-error.d.ts +12 -0
- package/esm/models/validation-error.d.ts.map +1 -0
- package/esm/models/validation-error.js +16 -0
- package/esm/models/validation-error.js.map +1 -0
- package/esm/models/validation-field.d.ts +20 -0
- package/esm/models/validation-field.d.ts.map +1 -0
- package/esm/models/validation-field.js +21 -0
- package/esm/models/validation-field.js.map +1 -0
- package/esm/models/validation-warning.d.ts +12 -0
- package/esm/models/validation-warning.d.ts.map +1 -0
- package/esm/models/validation-warning.js +16 -0
- package/esm/models/validation-warning.js.map +1 -0
- package/esm/models/x-specifics.d.ts +17 -0
- package/esm/models/x-specifics.d.ts.map +1 -0
- package/esm/models/x-specifics.js +22 -0
- package/esm/models/x-specifics.js.map +1 -0
- package/esm/models/you-tube-privacy.d.ts +13 -0
- package/esm/models/you-tube-privacy.d.ts.map +1 -0
- package/esm/models/you-tube-privacy.js +14 -0
- package/esm/models/you-tube-privacy.js.map +1 -0
- package/esm/models/you-tube-specifics.d.ts +26 -0
- package/esm/models/you-tube-specifics.d.ts.map +1 -0
- package/esm/models/you-tube-specifics.js +30 -0
- package/esm/models/you-tube-specifics.js.map +1 -0
- package/esm/sdk/health.d.ts +12 -0
- package/esm/sdk/health.d.ts.map +1 -0
- package/esm/sdk/health.js +18 -0
- package/esm/sdk/health.js.map +1 -0
- package/esm/sdk/index.d.ts +2 -0
- package/esm/sdk/index.d.ts.map +1 -0
- package/esm/sdk/index.js +5 -0
- package/esm/sdk/index.js.map +1 -0
- package/esm/sdk/media.d.ts +45 -0
- package/esm/sdk/media.d.ts.map +1 -0
- package/esm/sdk/media.js +59 -0
- package/esm/sdk/media.js.map +1 -0
- package/esm/sdk/posts.d.ts +47 -0
- package/esm/sdk/posts.d.ts.map +1 -0
- package/esm/sdk/posts.js +62 -0
- package/esm/sdk/posts.js.map +1 -0
- package/esm/sdk/projects.d.ts +12 -0
- package/esm/sdk/projects.d.ts.map +1 -0
- package/esm/sdk/projects.js +18 -0
- package/esm/sdk/projects.js.map +1 -0
- package/esm/sdk/sdk.d.ts +19 -0
- package/esm/sdk/sdk.d.ts.map +1 -0
- package/esm/sdk/sdk.js +32 -0
- package/esm/sdk/sdk.js.map +1 -0
- package/esm/sdk/social-accounts.d.ts +31 -0
- package/esm/sdk/social-accounts.d.ts.map +1 -0
- package/esm/sdk/social-accounts.js +42 -0
- package/esm/sdk/social-accounts.js.map +1 -0
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +28 -0
- package/esm/types/async.js.map +1 -0
- package/esm/types/blobs.d.ts +4 -0
- package/esm/types/blobs.d.ts.map +1 -0
- package/esm/types/blobs.js +25 -0
- package/esm/types/blobs.js.map +1 -0
- package/esm/types/const-date-time.d.ts +3 -0
- package/esm/types/const-date-time.d.ts.map +1 -0
- package/esm/types/const-date-time.js +10 -0
- package/esm/types/const-date-time.js.map +1 -0
- package/esm/types/default-to-zero-value.d.ts +12 -0
- package/esm/types/default-to-zero-value.d.ts.map +1 -0
- package/esm/types/default-to-zero-value.js +31 -0
- package/esm/types/default-to-zero-value.js.map +1 -0
- package/esm/types/discriminated-union.d.ts +25 -0
- package/esm/types/discriminated-union.d.ts.map +1 -0
- package/esm/types/discriminated-union.js +61 -0
- package/esm/types/discriminated-union.js.map +1 -0
- package/esm/types/enums.d.ts +9 -0
- package/esm/types/enums.d.ts.map +1 -0
- package/esm/types/enums.js +27 -0
- package/esm/types/enums.js.map +1 -0
- package/esm/types/fp.d.ts +31 -0
- package/esm/types/fp.d.ts.map +1 -0
- package/esm/types/fp.js +31 -0
- package/esm/types/fp.js.map +1 -0
- package/esm/types/index.d.ts +10 -0
- package/esm/types/index.d.ts.map +1 -0
- package/esm/types/index.js +10 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/operations.d.ts +27 -0
- package/esm/types/operations.d.ts.map +1 -0
- package/esm/types/operations.js +77 -0
- package/esm/types/operations.js.map +1 -0
- package/esm/types/primitives.d.ts +11 -0
- package/esm/types/primitives.d.ts.map +1 -0
- package/esm/types/primitives.js +132 -0
- package/esm/types/primitives.js.map +1 -0
- package/esm/types/rfcdate.d.ts +21 -0
- package/esm/types/rfcdate.d.ts.map +1 -0
- package/esm/types/rfcdate.js +43 -0
- package/esm/types/rfcdate.js.map +1 -0
- package/esm/types/smart-union.d.ts +7 -0
- package/esm/types/smart-union.d.ts.map +1 -0
- package/esm/types/smart-union.js +118 -0
- package/esm/types/smart-union.js.map +1 -0
- package/esm/types/streams.d.ts +2 -0
- package/esm/types/streams.d.ts.map +1 -0
- package/esm/types/streams.js +15 -0
- package/esm/types/streams.js.map +1 -0
- package/esm/types/unrecognized.d.ts +16 -0
- package/esm/types/unrecognized.d.ts.map +1 -0
- package/esm/types/unrecognized.js +31 -0
- package/esm/types/unrecognized.js.map +1 -0
- package/jsr.json +27 -0
- package/package.json +75 -0
- package/src/core.ts +13 -0
- package/src/funcs/health-get-health.ts +142 -0
- package/src/funcs/media-complete-upload-session.ts +167 -0
- package/src/funcs/media-create-media.ts +176 -0
- package/src/funcs/media-create-upload-session.ts +171 -0
- package/src/funcs/media-get-upload-session.ts +167 -0
- package/src/funcs/posts-create-posts.ts +167 -0
- package/src/funcs/posts-delete-posts.ts +165 -0
- package/src/funcs/posts-list-posts.ts +164 -0
- package/src/funcs/posts-update-posts.ts +165 -0
- package/src/funcs/projects-list-projects.ts +143 -0
- package/src/funcs/social-accounts-create-o-auth-authorization.ts +162 -0
- package/src/funcs/social-accounts-get-social-account-platform-inputs.ts +175 -0
- package/src/funcs/social-accounts-list-social-accounts.ts +172 -0
- package/src/hooks/hooks.ts +129 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +39 -0
- package/src/lib/config.ts +68 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +520 -0
- package/src/lib/env.ts +57 -0
- package/src/lib/files.ts +104 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +353 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +94 -0
- package/src/lib/sdks.ts +408 -0
- package/src/lib/security.ts +275 -0
- package/src/lib/url.ts +35 -0
- package/src/models/create-media-response.ts +34 -0
- package/src/models/create-o-auth-authorization-request.ts +45 -0
- package/src/models/create-o-auth-authorization-response.ts +34 -0
- package/src/models/create-post-failure-code.ts +25 -0
- package/src/models/create-post-failure-result.ts +68 -0
- package/src/models/create-post-item.ts +73 -0
- package/src/models/create-post-result.ts +42 -0
- package/src/models/create-post-success-result.ts +50 -0
- package/src/models/create-posts-response.ts +37 -0
- package/src/models/create-upload-session-request.ts +39 -0
- package/src/models/delete-post-failure-code.ts +20 -0
- package/src/models/delete-post-failure-result.ts +44 -0
- package/src/models/delete-post-result.ts +42 -0
- package/src/models/delete-post-success-result.ts +36 -0
- package/src/models/delete-posts-response.ts +37 -0
- package/src/models/delivery-status.ts +46 -0
- package/src/models/errors/http-client-errors.ts +62 -0
- package/src/models/errors/index.ts +9 -0
- package/src/models/errors/response-validation-error.ts +50 -0
- package/src/models/errors/sdk-validation-error.ts +54 -0
- package/src/models/errors/woop-social-default-error.ts +40 -0
- package/src/models/errors/woop-social-error.ts +35 -0
- package/src/models/facebook-post-type.ts +26 -0
- package/src/models/facebook-specifics.ts +63 -0
- package/src/models/health-response.ts +44 -0
- package/src/models/index.ts +64 -0
- package/src/models/instagram-post-type.ts +25 -0
- package/src/models/instagram-specifics.ts +59 -0
- package/src/models/linked-in-pages-specifics.ts +50 -0
- package/src/models/linked-in-specifics.ts +50 -0
- package/src/models/list-posts-request.ts +68 -0
- package/src/models/list-posts-response.ts +37 -0
- package/src/models/operations/complete-upload-session.ts +35 -0
- package/src/models/operations/create-media.ts +41 -0
- package/src/models/operations/get-social-account-platform-inputs.ts +36 -0
- package/src/models/operations/get-upload-session.ts +33 -0
- package/src/models/operations/index.ts +9 -0
- package/src/models/operations/list-social-accounts.ts +33 -0
- package/src/models/pinterest-account-platform-inputs.ts +42 -0
- package/src/models/pinterest-board-option.ts +39 -0
- package/src/models/pinterest-social-account-platform-specific-inputs.ts +42 -0
- package/src/models/pinterest-specifics.ts +54 -0
- package/src/models/platform-specifics.ts +129 -0
- package/src/models/post-media.ts +56 -0
- package/src/models/post.ts +111 -0
- package/src/models/project.ts +36 -0
- package/src/models/security.ts +34 -0
- package/src/models/social-account-platform-inputs.ts +49 -0
- package/src/models/social-account-platform-specific-inputs.ts +43 -0
- package/src/models/social-account-status.ts +19 -0
- package/src/models/social-account.ts +59 -0
- package/src/models/social-platform.ts +36 -0
- package/src/models/tik-tok-account-platform-inputs.ts +63 -0
- package/src/models/tik-tok-post-type.ts +24 -0
- package/src/models/tik-tok-privacy-level.ts +26 -0
- package/src/models/tik-tok-social-account-platform-specific-inputs.ts +41 -0
- package/src/models/tik-tok-specifics.ts +94 -0
- package/src/models/update-post-failure-code.ts +23 -0
- package/src/models/update-post-failure-result.ts +68 -0
- package/src/models/update-post-item.ts +61 -0
- package/src/models/update-post-result.ts +42 -0
- package/src/models/update-post-success-result.ts +45 -0
- package/src/models/update-posts-response.ts +37 -0
- package/src/models/upload-session-part.ts +39 -0
- package/src/models/upload-session-status-value.ts +24 -0
- package/src/models/upload-session-status.ts +46 -0
- package/src/models/upload-session.ts +64 -0
- package/src/models/validation-error.ts +37 -0
- package/src/models/validation-field.ts +29 -0
- package/src/models/validation-warning.ts +37 -0
- package/src/models/x-specifics.ts +44 -0
- package/src/models/you-tube-privacy.ts +25 -0
- package/src/models/you-tube-specifics.ts +71 -0
- package/src/sdk/health.ts +25 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/media.ts +93 -0
- package/src/sdk/posts.ts +95 -0
- package/src/sdk/projects.ts +25 -0
- package/src/sdk/sdk.ts +37 -0
- package/src/sdk/social-accounts.ts +68 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +33 -0
- package/src/types/const-date-time.ts +15 -0
- package/src/types/default-to-zero-value.ts +33 -0
- package/src/types/discriminated-union.ts +101 -0
- package/src/types/enums.ts +45 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +13 -0
- package/src/types/operations.ts +105 -0
- package/src/types/primitives.ts +168 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/smart-union.ts +154 -0
- package/src/types/streams.ts +21 -0
- package/src/types/unrecognized.ts +35 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
UploadSessionPart,
|
|
12
|
+
UploadSessionPart$inboundSchema,
|
|
13
|
+
} from "./upload-session-part.js";
|
|
14
|
+
|
|
15
|
+
export type UploadSession = {
|
|
16
|
+
/**
|
|
17
|
+
* Media upload session identifier.
|
|
18
|
+
*/
|
|
19
|
+
uploadSessionId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum chunk size to use when slicing the file into parts.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
*
|
|
25
|
+
* For uploads with more than one part, every part except the last must
|
|
26
|
+
* be exactly this size. The last part may be smaller. For a single-part
|
|
27
|
+
* upload, the only part may be smaller than this size.
|
|
28
|
+
*/
|
|
29
|
+
partSizeInBytes: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of parts that must be uploaded before completion.
|
|
32
|
+
*/
|
|
33
|
+
partCount: number;
|
|
34
|
+
/**
|
|
35
|
+
* Time when the presigned part upload URLs expire.
|
|
36
|
+
*/
|
|
37
|
+
expiresAt: Date;
|
|
38
|
+
/**
|
|
39
|
+
* Presigned upload targets, in part-number order.
|
|
40
|
+
*/
|
|
41
|
+
parts: Array<UploadSessionPart>;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const UploadSession$inboundSchema: z.ZodMiniType<
|
|
46
|
+
UploadSession,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
uploadSessionId: types.string(),
|
|
50
|
+
partSizeInBytes: types.number(),
|
|
51
|
+
partCount: types.number(),
|
|
52
|
+
expiresAt: types.date(),
|
|
53
|
+
parts: z.array(UploadSessionPart$inboundSchema),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function uploadSessionFromJSON(
|
|
57
|
+
jsonString: string,
|
|
58
|
+
): SafeParseResult<UploadSession, SDKValidationError> {
|
|
59
|
+
return safeParse(
|
|
60
|
+
jsonString,
|
|
61
|
+
(x) => UploadSession$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'UploadSession' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
ValidationField,
|
|
12
|
+
ValidationField$inboundSchema,
|
|
13
|
+
} from "./validation-field.js";
|
|
14
|
+
|
|
15
|
+
export type ValidationError = {
|
|
16
|
+
field: ValidationField;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ValidationError$inboundSchema: z.ZodMiniType<
|
|
22
|
+
ValidationError,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
field: ValidationField$inboundSchema,
|
|
26
|
+
message: types.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function validationErrorFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<ValidationError, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => ValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'ValidationError' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const ValidationField = {
|
|
10
|
+
Description: "DESCRIPTION",
|
|
11
|
+
Media: "MEDIA",
|
|
12
|
+
PinterestBoard: "PINTEREST_BOARD",
|
|
13
|
+
Content: "CONTENT",
|
|
14
|
+
Title: "TITLE",
|
|
15
|
+
FirstComment: "FIRST_COMMENT",
|
|
16
|
+
TiktokPrivacyLevel: "TIKTOK_PRIVACY_LEVEL",
|
|
17
|
+
TiktokContentDisclosure: "TIKTOK_CONTENT_DISCLOSURE",
|
|
18
|
+
YoutubePrivacy: "YOUTUBE_PRIVACY",
|
|
19
|
+
YoutubeCategory: "YOUTUBE_CATEGORY",
|
|
20
|
+
YoutubeTags: "YOUTUBE_TAGS",
|
|
21
|
+
Schedule: "SCHEDULE",
|
|
22
|
+
} as const;
|
|
23
|
+
export type ValidationField = OpenEnum<typeof ValidationField>;
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ValidationField$inboundSchema: z.ZodMiniType<
|
|
27
|
+
ValidationField,
|
|
28
|
+
unknown
|
|
29
|
+
> = openEnums.inboundSchema(ValidationField);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
ValidationField,
|
|
12
|
+
ValidationField$inboundSchema,
|
|
13
|
+
} from "./validation-field.js";
|
|
14
|
+
|
|
15
|
+
export type ValidationWarning = {
|
|
16
|
+
field: ValidationField;
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ValidationWarning$inboundSchema: z.ZodMiniType<
|
|
22
|
+
ValidationWarning,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
field: ValidationField$inboundSchema,
|
|
26
|
+
message: types.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function validationWarningFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<ValidationWarning, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => ValidationWarning$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'ValidationWarning' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type XSpecifics = {
|
|
12
|
+
platform: "X";
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const XSpecifics$inboundSchema: z.ZodMiniType<XSpecifics, unknown> = z
|
|
17
|
+
.object({
|
|
18
|
+
platform: types.literal("X"),
|
|
19
|
+
});
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type XSpecifics$Outbound = {
|
|
22
|
+
platform: "X";
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const XSpecifics$outboundSchema: z.ZodMiniType<
|
|
27
|
+
XSpecifics$Outbound,
|
|
28
|
+
XSpecifics
|
|
29
|
+
> = z.object({
|
|
30
|
+
platform: z.literal("X"),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function xSpecificsToJSON(xSpecifics: XSpecifics): string {
|
|
34
|
+
return JSON.stringify(XSpecifics$outboundSchema.parse(xSpecifics));
|
|
35
|
+
}
|
|
36
|
+
export function xSpecificsFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<XSpecifics, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => XSpecifics$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'XSpecifics' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const YouTubePrivacy = {
|
|
10
|
+
Public: "public",
|
|
11
|
+
Private: "private",
|
|
12
|
+
Unlisted: "unlisted",
|
|
13
|
+
} as const;
|
|
14
|
+
export type YouTubePrivacy = OpenEnum<typeof YouTubePrivacy>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const YouTubePrivacy$inboundSchema: z.ZodMiniType<
|
|
18
|
+
YouTubePrivacy,
|
|
19
|
+
unknown
|
|
20
|
+
> = openEnums.inboundSchema(YouTubePrivacy);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const YouTubePrivacy$outboundSchema: z.ZodMiniType<
|
|
23
|
+
string,
|
|
24
|
+
YouTubePrivacy
|
|
25
|
+
> = openEnums.outboundSchema(YouTubePrivacy);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import * as types from "../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
10
|
+
import {
|
|
11
|
+
YouTubePrivacy,
|
|
12
|
+
YouTubePrivacy$inboundSchema,
|
|
13
|
+
YouTubePrivacy$outboundSchema,
|
|
14
|
+
} from "./you-tube-privacy.js";
|
|
15
|
+
|
|
16
|
+
export type YouTubeSpecifics = {
|
|
17
|
+
platform: "YOUTUBE";
|
|
18
|
+
privacy?: YouTubePrivacy | undefined;
|
|
19
|
+
category?: string | undefined;
|
|
20
|
+
tags?: Array<string> | undefined;
|
|
21
|
+
madeForKids?: boolean | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const YouTubeSpecifics$inboundSchema: z.ZodMiniType<
|
|
26
|
+
YouTubeSpecifics,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
platform: types.literal("YOUTUBE"),
|
|
30
|
+
privacy: types.optional(YouTubePrivacy$inboundSchema),
|
|
31
|
+
category: types.optional(types.string()),
|
|
32
|
+
tags: types.optional(z.array(types.string())),
|
|
33
|
+
madeForKids: types.optional(types.boolean()),
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type YouTubeSpecifics$Outbound = {
|
|
37
|
+
platform: "YOUTUBE";
|
|
38
|
+
privacy?: string | undefined;
|
|
39
|
+
category?: string | undefined;
|
|
40
|
+
tags?: Array<string> | undefined;
|
|
41
|
+
madeForKids?: boolean | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const YouTubeSpecifics$outboundSchema: z.ZodMiniType<
|
|
46
|
+
YouTubeSpecifics$Outbound,
|
|
47
|
+
YouTubeSpecifics
|
|
48
|
+
> = z.object({
|
|
49
|
+
platform: z.literal("YOUTUBE"),
|
|
50
|
+
privacy: z.optional(YouTubePrivacy$outboundSchema),
|
|
51
|
+
category: z.optional(z.string()),
|
|
52
|
+
tags: z.optional(z.array(z.string())),
|
|
53
|
+
madeForKids: z.optional(z.boolean()),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function youTubeSpecificsToJSON(
|
|
57
|
+
youTubeSpecifics: YouTubeSpecifics,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
YouTubeSpecifics$outboundSchema.parse(youTubeSpecifics),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export function youTubeSpecificsFromJSON(
|
|
64
|
+
jsonString: string,
|
|
65
|
+
): SafeParseResult<YouTubeSpecifics, SDKValidationError> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) => YouTubeSpecifics$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
+
`Failed to parse 'YouTubeSpecifics' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { healthGetHealth } from "../funcs/health-get-health.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as models from "../models/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Health extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Health check
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Returns a minimal response proving the WoopSocial API is reachable.
|
|
16
|
+
*/
|
|
17
|
+
async getHealth(
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<models.HealthResponse> {
|
|
20
|
+
return unwrapAsync(healthGetHealth(
|
|
21
|
+
this,
|
|
22
|
+
options,
|
|
23
|
+
));
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/sdk/index.ts
ADDED
package/src/sdk/media.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { mediaCompleteUploadSession } from "../funcs/media-complete-upload-session.js";
|
|
6
|
+
import { mediaCreateMedia } from "../funcs/media-create-media.js";
|
|
7
|
+
import { mediaCreateUploadSession } from "../funcs/media-create-upload-session.js";
|
|
8
|
+
import { mediaGetUploadSession } from "../funcs/media-get-upload-session.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as models from "../models/index.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
13
|
+
|
|
14
|
+
export class Media extends ClientSDK {
|
|
15
|
+
/**
|
|
16
|
+
* Upload media
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Uploads a media file in a single request and creates a media item.
|
|
20
|
+
*
|
|
21
|
+
* The server determines the media MIME type from the uploaded file.
|
|
22
|
+
*
|
|
23
|
+
* Use this endpoint for straightforward uploads up to 600 MB.
|
|
24
|
+
*
|
|
25
|
+
* For larger files, or when you need presigned part URLs, use the upload
|
|
26
|
+
* session flow under `/media/upload-sessions`.
|
|
27
|
+
*/
|
|
28
|
+
async createMedia(
|
|
29
|
+
request: operations.CreateMediaRequest,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<models.CreateMediaResponse> {
|
|
32
|
+
return unwrapAsync(mediaCreateMedia(
|
|
33
|
+
this,
|
|
34
|
+
request,
|
|
35
|
+
options,
|
|
36
|
+
));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Start media upload session
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* Creates an upload session and returns presigned URLs for uploading the file in parts.
|
|
44
|
+
*
|
|
45
|
+
* This flow is intended for larger files where a single-request upload via the simpler `/media` endpoint is less practical.
|
|
46
|
+
*
|
|
47
|
+
* Upload the file in `partCount` parts, using the matching
|
|
48
|
+
* `parts[n].uploadUrl` for each part number.
|
|
49
|
+
*
|
|
50
|
+
* Every part except the last must be exactly `partSizeInBytes` bytes. The
|
|
51
|
+
* last part may be smaller. After all parts have been uploaded, call
|
|
52
|
+
* `/media/upload-sessions/{uploadSessionId}/complete` to finalize the upload
|
|
53
|
+
* and create the media item.
|
|
54
|
+
*/
|
|
55
|
+
async createUploadSession(
|
|
56
|
+
request: models.CreateUploadSessionRequest,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<models.UploadSession> {
|
|
59
|
+
return unwrapAsync(mediaCreateUploadSession(
|
|
60
|
+
this,
|
|
61
|
+
request,
|
|
62
|
+
options,
|
|
63
|
+
));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Get media upload session status
|
|
68
|
+
*/
|
|
69
|
+
async getUploadSession(
|
|
70
|
+
request: operations.GetUploadSessionRequest,
|
|
71
|
+
options?: RequestOptions,
|
|
72
|
+
): Promise<models.UploadSessionStatus> {
|
|
73
|
+
return unwrapAsync(mediaGetUploadSession(
|
|
74
|
+
this,
|
|
75
|
+
request,
|
|
76
|
+
options,
|
|
77
|
+
));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Complete media upload session
|
|
82
|
+
*/
|
|
83
|
+
async completeUploadSession(
|
|
84
|
+
request: operations.CompleteUploadSessionRequest,
|
|
85
|
+
options?: RequestOptions,
|
|
86
|
+
): Promise<models.UploadSessionStatus> {
|
|
87
|
+
return unwrapAsync(mediaCompleteUploadSession(
|
|
88
|
+
this,
|
|
89
|
+
request,
|
|
90
|
+
options,
|
|
91
|
+
));
|
|
92
|
+
}
|
|
93
|
+
}
|
package/src/sdk/posts.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { postsCreatePosts } from "../funcs/posts-create-posts.js";
|
|
6
|
+
import { postsDeletePosts } from "../funcs/posts-delete-posts.js";
|
|
7
|
+
import { postsListPosts } from "../funcs/posts-list-posts.js";
|
|
8
|
+
import { postsUpdatePosts } from "../funcs/posts-update-posts.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 Posts extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* List posts
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Returns outbound posts that were scheduled within various projects.
|
|
19
|
+
*/
|
|
20
|
+
async listPosts(
|
|
21
|
+
request?: models.ListPostsRequest | undefined,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<models.ListPostsResponse> {
|
|
24
|
+
return unwrapAsync(postsListPosts(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Delete posts
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Deletes one or more scheduled posts by post ID.
|
|
36
|
+
*
|
|
37
|
+
* Only posts with `deliveryStatus` `NOT_STARTED` can be deleted.
|
|
38
|
+
*
|
|
39
|
+
* Results are returned in the same order as the provided `ids`.
|
|
40
|
+
*/
|
|
41
|
+
async deletePosts(
|
|
42
|
+
request: Array<string>,
|
|
43
|
+
options?: RequestOptions,
|
|
44
|
+
): Promise<models.DeletePostsResponse> {
|
|
45
|
+
return unwrapAsync(postsDeletePosts(
|
|
46
|
+
this,
|
|
47
|
+
request,
|
|
48
|
+
options,
|
|
49
|
+
));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Create posts
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* Creates one or more scheduled posts.
|
|
57
|
+
*
|
|
58
|
+
* Each item in the request body creates one scheduled post for a single connected social account. Each item must target a specific project.
|
|
59
|
+
*
|
|
60
|
+
* Each item must provide an `idempotencyKey`. Reusing the same `idempotencyKey` for the same API key replays the original result for that item. This is to help you prevent accidentally publishing the same post multiple times, in case you need to retry due to network failures.
|
|
61
|
+
*
|
|
62
|
+
* Results are returned in the same order as the input array.
|
|
63
|
+
*/
|
|
64
|
+
async createPosts(
|
|
65
|
+
request: Array<models.CreatePostItem>,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): Promise<models.CreatePostsResponse> {
|
|
68
|
+
return unwrapAsync(postsCreatePosts(
|
|
69
|
+
this,
|
|
70
|
+
request,
|
|
71
|
+
options,
|
|
72
|
+
));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Update posts
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* Updates one or more scheduled posts by post ID.
|
|
80
|
+
*
|
|
81
|
+
* Only posts with `deliveryStatus` `NOT_STARTED` can be updated. It performs a full replacement of the specified posts, so omitted properties are cleared.
|
|
82
|
+
*
|
|
83
|
+
* Results are returned in the same order as the input array.
|
|
84
|
+
*/
|
|
85
|
+
async updatePosts(
|
|
86
|
+
request: Array<models.UpdatePostItem>,
|
|
87
|
+
options?: RequestOptions,
|
|
88
|
+
): Promise<models.UpdatePostsResponse> {
|
|
89
|
+
return unwrapAsync(postsUpdatePosts(
|
|
90
|
+
this,
|
|
91
|
+
request,
|
|
92
|
+
options,
|
|
93
|
+
));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { projectsListProjects } from "../funcs/projects-list-projects.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as models from "../models/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class Projects extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* List projects
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Returns projects that belong to the same organization as the API key. A project corresponds to a "Business Profile" in the UI.
|
|
16
|
+
*/
|
|
17
|
+
async listProjects(
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): Promise<Array<models.Project>> {
|
|
20
|
+
return unwrapAsync(projectsListProjects(
|
|
21
|
+
this,
|
|
22
|
+
options,
|
|
23
|
+
));
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/sdk/sdk.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { Health } from "./health.js";
|
|
7
|
+
import { Media } from "./media.js";
|
|
8
|
+
import { Posts } from "./posts.js";
|
|
9
|
+
import { Projects } from "./projects.js";
|
|
10
|
+
import { SocialAccounts } from "./social-accounts.js";
|
|
11
|
+
|
|
12
|
+
export class WoopSocial extends ClientSDK {
|
|
13
|
+
private _posts?: Posts;
|
|
14
|
+
get posts(): Posts {
|
|
15
|
+
return (this._posts ??= new Posts(this._options));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
private _projects?: Projects;
|
|
19
|
+
get projects(): Projects {
|
|
20
|
+
return (this._projects ??= new Projects(this._options));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
private _socialAccounts?: SocialAccounts;
|
|
24
|
+
get socialAccounts(): SocialAccounts {
|
|
25
|
+
return (this._socialAccounts ??= new SocialAccounts(this._options));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
private _media?: Media;
|
|
29
|
+
get media(): Media {
|
|
30
|
+
return (this._media ??= new Media(this._options));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
private _health?: Health;
|
|
34
|
+
get health(): Health {
|
|
35
|
+
return (this._health ??= new Health(this._options));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { socialAccountsCreateOAuthAuthorization } from "../funcs/social-accounts-create-o-auth-authorization.js";
|
|
6
|
+
import { socialAccountsGetSocialAccountPlatformInputs } from "../funcs/social-accounts-get-social-account-platform-inputs.js";
|
|
7
|
+
import { socialAccountsListSocialAccounts } from "../funcs/social-accounts-list-social-accounts.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as models from "../models/index.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class SocialAccounts extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Generate OAuth URL
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Generates a browser authorization URL for connecting a new social account to a project. Open the returned `url` in a browser to complete the platform-specific OAuth flow.
|
|
19
|
+
*/
|
|
20
|
+
async createOAuthAuthorization(
|
|
21
|
+
request: models.CreateOAuthAuthorizationRequest,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<models.CreateOAuthAuthorizationResponse> {
|
|
24
|
+
return unwrapAsync(socialAccountsCreateOAuthAuthorization(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* List social accounts
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Returns social accounts that can currently be used for publishing.
|
|
36
|
+
*
|
|
37
|
+
* When `projectId` is provided, only social accounts usable within that project are returned.
|
|
38
|
+
*/
|
|
39
|
+
async listSocialAccounts(
|
|
40
|
+
request?: operations.ListSocialAccountsRequest | undefined,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<Array<models.SocialAccount>> {
|
|
43
|
+
return unwrapAsync(socialAccountsListSocialAccounts(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Get platform-specific input options
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Returns platform-specific input options for a connected social account.
|
|
55
|
+
*
|
|
56
|
+
* Use this endpoint to discover valid values for fields inside `platformSpecifics` when creating posts for Pinterest and TikTok.
|
|
57
|
+
*/
|
|
58
|
+
async getSocialAccountPlatformInputs(
|
|
59
|
+
request: operations.GetSocialAccountPlatformInputsRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<models.SocialAccountPlatformInputs> {
|
|
62
|
+
return unwrapAsync(socialAccountsGetSocialAccountPlatformInputs(
|
|
63
|
+
this,
|
|
64
|
+
request,
|
|
65
|
+
options,
|
|
66
|
+
));
|
|
67
|
+
}
|
|
68
|
+
}
|