@postrun/react 3.2.0 → 4.0.0

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/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, CSSProperties } from 'react';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
- import { QueryClient, QueryKey, UseQueryResult, UseMutationOptions, UseMutationResult, UseQueryOptions } from '@tanstack/react-query';
4
+ import { QueryClient, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
5
5
  import * as _postrun_js from '@postrun/js';
6
- import { PostrunClient, ListProfilesQuery, DiscoverableAccountList, Connection, ConnectionKind, ConnectionStatus, ListMediaQuery, ListPostsQuery, ConnectablePlatform, MediaResource, MediaTarget, Metadata, ComposePostInput, PostValidation, GoogleGetAdTreeData, GoogleGetAdTreeResponse, GoogleGetAdTreeError, AdTreeNode, MediaKind, InstagramPostVariant, PostVariant, LinkedInPostVariant, TikTokPostVariant, XPostVariant, PostVariantInput, XPoll as XPoll$1, TikTokCreatorInfo, PostType, TikTokOptionsValue } from '@postrun/js';
6
+ import { PostrunClient, ListProfilesQuery, DiscoverableAccountList, Connection, ConnectionKind, ConnectionStatus, ListMediaQuery, ListPostsQuery, ConnectablePlatform, MediaResource, MediaTarget, Metadata, ComposePostInput, PostValidation, MediaKind, InstagramPostVariant, PostVariant, LinkedInPostVariant, TikTokPostVariant, XPostVariant, PostVariantInput, XPoll as XPoll$1, TikTokCreatorInfo, PostType, TikTokOptionsValue } from '@postrun/js';
7
7
  export { PostValidation, PostVariant, PostVariantError, TIKTOK_CAPTION_MAX, TikTokCreatorInfo, UploadError, ValidationIssue, captionMaxFor } from '@postrun/js';
8
8
  import { TwitterComponents } from 'react-tweet';
9
9
  export * from '@postrun/js/query';
@@ -684,7 +684,7 @@ declare function useUpdateMedia(): _tanstack_react_query.UseMutationResult<_post
684
684
  metadata?: {
685
685
  [key: string]: string | number | boolean;
686
686
  };
687
- targets?: Array<"x" | "linkedin" | "facebook_page" | "instagram" | "tiktok" | "google_ads">;
687
+ targets?: Array<"tiktok" | "x" | "linkedin" | "facebook_page" | "instagram">;
688
688
  }, unknown>;
689
689
  /** Delete a media asset and its stored renditions. */
690
690
  declare function useDeleteMedia(): _tanstack_react_query.UseMutationResult<{
@@ -746,6 +746,13 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
746
746
  };
747
747
  card_uri?: string;
748
748
  media_tagged_user_ids?: Array<string>;
749
+ thread_items?: Array<{
750
+ body?: string;
751
+ media?: Array<{
752
+ media_id: string;
753
+ alt_text_override?: string | null;
754
+ }>;
755
+ }>;
749
756
  };
750
757
  id: string;
751
758
  object: "post_variant";
@@ -760,8 +767,9 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
760
767
  published_at: string;
761
768
  } | null;
762
769
  error: {
763
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
770
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
764
771
  message: string;
772
+ source?: _postrun_js.ErrorSource;
765
773
  display_error: string;
766
774
  } | null;
767
775
  media: Array<{
@@ -808,8 +816,9 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
808
816
  published_at: string;
809
817
  } | null;
810
818
  error: {
811
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
819
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
812
820
  message: string;
821
+ source?: _postrun_js.ErrorSource;
813
822
  display_error: string;
814
823
  } | null;
815
824
  media: Array<{
@@ -823,6 +832,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
823
832
  platform: "facebook_page";
824
833
  settings: {
825
834
  link?: string;
835
+ first_comment?: string;
826
836
  };
827
837
  id: string;
828
838
  object: "post_variant";
@@ -837,8 +847,9 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
837
847
  published_at: string;
838
848
  } | null;
839
849
  error: {
840
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
850
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
841
851
  message: string;
852
+ source?: _postrun_js.ErrorSource;
842
853
  display_error: string;
843
854
  } | null;
844
855
  media: Array<{
@@ -861,6 +872,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
861
872
  thumb_offset?: number;
862
873
  cover_url?: string;
863
874
  audio_name?: string;
875
+ first_comment?: string;
864
876
  };
865
877
  id: string;
866
878
  object: "post_variant";
@@ -875,8 +887,9 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
875
887
  published_at: string;
876
888
  } | null;
877
889
  error: {
878
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
890
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
879
891
  message: string;
892
+ source?: _postrun_js.ErrorSource;
880
893
  display_error: string;
881
894
  } | null;
882
895
  media: Array<{
@@ -893,12 +906,13 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
893
906
  disable_comment?: boolean;
894
907
  disable_duet?: boolean;
895
908
  disable_stitch?: boolean;
896
- video_cover_timestamp_ms?: number;
909
+ thumbnail_offset?: number;
897
910
  photo_cover_index?: number;
898
911
  auto_add_music?: boolean;
899
- brand_content_toggle?: boolean;
900
- brand_organic_toggle?: boolean;
901
- is_aigc?: boolean;
912
+ is_branded_content?: boolean;
913
+ is_brand_organic?: boolean;
914
+ is_ai_generated?: boolean;
915
+ is_ads_only?: boolean;
902
916
  };
903
917
  id: string;
904
918
  object: "post_variant";
@@ -913,8 +927,9 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
913
927
  published_at: string;
914
928
  } | null;
915
929
  error: {
916
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
930
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
917
931
  message: string;
932
+ source?: _postrun_js.ErrorSource;
918
933
  display_error: string;
919
934
  } | null;
920
935
  media: Array<{
@@ -976,6 +991,13 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
976
991
  };
977
992
  card_uri?: string;
978
993
  media_tagged_user_ids?: Array<string>;
994
+ thread_items?: Array<{
995
+ body?: string;
996
+ media?: Array<{
997
+ media_id: string;
998
+ alt_text_override?: string | null;
999
+ }>;
1000
+ }>;
979
1001
  };
980
1002
  id: string;
981
1003
  object: "post_variant";
@@ -990,8 +1012,9 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
990
1012
  published_at: string;
991
1013
  } | null;
992
1014
  error: {
993
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1015
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
994
1016
  message: string;
1017
+ source?: _postrun_js.ErrorSource;
995
1018
  display_error: string;
996
1019
  } | null;
997
1020
  media: Array<{
@@ -1038,8 +1061,9 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1038
1061
  published_at: string;
1039
1062
  } | null;
1040
1063
  error: {
1041
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1064
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1042
1065
  message: string;
1066
+ source?: _postrun_js.ErrorSource;
1043
1067
  display_error: string;
1044
1068
  } | null;
1045
1069
  media: Array<{
@@ -1053,6 +1077,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1053
1077
  platform: "facebook_page";
1054
1078
  settings: {
1055
1079
  link?: string;
1080
+ first_comment?: string;
1056
1081
  };
1057
1082
  id: string;
1058
1083
  object: "post_variant";
@@ -1067,8 +1092,9 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1067
1092
  published_at: string;
1068
1093
  } | null;
1069
1094
  error: {
1070
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1095
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1071
1096
  message: string;
1097
+ source?: _postrun_js.ErrorSource;
1072
1098
  display_error: string;
1073
1099
  } | null;
1074
1100
  media: Array<{
@@ -1080,785 +1106,102 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1080
1106
  } | {
1081
1107
  platform: "instagram";
1082
1108
  settings: {
1083
- location_id?: string;
1084
- user_tags?: Array<{
1085
- username: string;
1086
- x: number;
1087
- y: number;
1088
- }>;
1089
- collaborators?: Array<string>;
1090
- share_to_feed?: boolean;
1091
- thumb_offset?: number;
1092
- cover_url?: string;
1093
- audio_name?: string;
1094
- };
1095
- id: string;
1096
- object: "post_variant";
1097
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1098
- connection_id: string | null;
1099
- body: string | null;
1100
- status: _postrun_js.PostVariantStatus;
1101
- schedule_at: string | null;
1102
- result: {
1103
- platform_post_id: string;
1104
- permalink: string | null;
1105
- published_at: string;
1106
- } | null;
1107
- error: {
1108
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1109
- message: string;
1110
- display_error: string;
1111
- } | null;
1112
- media: Array<{
1113
- media_id: string;
1114
- position: number;
1115
- alt_text_override: string | null;
1116
- media: _postrun_js.Media;
1117
- }>;
1118
- media_type: "IMAGE" | "CAROUSEL" | "REELS" | null;
1119
- } | {
1120
- platform: "tiktok";
1121
- settings: {
1122
- privacy_level?: "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
1123
- disable_comment?: boolean;
1124
- disable_duet?: boolean;
1125
- disable_stitch?: boolean;
1126
- video_cover_timestamp_ms?: number;
1127
- photo_cover_index?: number;
1128
- auto_add_music?: boolean;
1129
- brand_content_toggle?: boolean;
1130
- brand_organic_toggle?: boolean;
1131
- is_aigc?: boolean;
1132
- };
1133
- id: string;
1134
- object: "post_variant";
1135
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1136
- connection_id: string | null;
1137
- body: string | null;
1138
- status: _postrun_js.PostVariantStatus;
1139
- schedule_at: string | null;
1140
- result: {
1141
- platform_post_id: string;
1142
- permalink: string | null;
1143
- published_at: string;
1144
- } | null;
1145
- error: {
1146
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1147
- message: string;
1148
- display_error: string;
1149
- } | null;
1150
- media: Array<{
1151
- media_id: string;
1152
- position: number;
1153
- alt_text_override: string | null;
1154
- media: _postrun_js.Media;
1155
- }>;
1156
- }>;
1157
- created_at: string;
1158
- updated_at: string;
1159
- }>;
1160
- /**
1161
- * Calendar/queue view — list posts in a `schedule_at` date window, optionally
1162
- * narrowed to a profile and to one or more derived statuses (e.g. only
1163
- * `scheduled` + `failed`). Forwards the date-range + multi-status filters (and
1164
- * any `limit`/`offset`) to the generated `postsList` and returns the same typed
1165
- * `PostList` envelope. It shares the `postKeys.list(filters)` cache identity with
1166
- * `usePosts` but owns its own self-terminating poll: while ANY post in the
1167
- * window is in-flight it refetches (5s — a list is heavier than one detail), and
1168
- * stops once every item is terminal (or the window is empty). `live` is a
1169
- * separate option, never mixed into the API filter object; default-on, opt out
1170
- * with `{ live: false }`.
1171
- */
1172
- declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'limit' | 'offset'>, options?: LiveOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
1173
- object: "list";
1174
- data: Array<{
1175
- id: string;
1176
- object: "post";
1177
- profile_id: string;
1178
- external_id: string | null;
1179
- status: "draft" | "scheduled" | "publishing" | "partially_published" | "published" | "failed";
1180
- schedule_at: string | null;
1181
- tags: Array<string>;
1182
- notes: string | null;
1183
- metadata: {
1184
- [key: string]: string | number | boolean;
1185
- };
1186
- variants: Array<{
1187
- platform: "x";
1188
- settings: {
1189
- reply_settings?: "everyone" | "following" | "mentionedUsers" | "subscribers" | "verified";
1190
- quote_tweet_id?: string;
1191
- poll?: {
1192
- options: Array<string>;
1193
- duration_minutes: number;
1194
- reply_settings?: "following" | "mentionedUsers" | "subscribers" | "verified";
1195
- };
1196
- reply?: {
1197
- in_reply_to_tweet_id: string;
1198
- exclude_reply_user_ids?: Array<string>;
1199
- auto_populate_reply_metadata?: boolean;
1200
- };
1201
- community_id?: string;
1202
- for_super_followers_only?: boolean;
1203
- geo?: {
1204
- place_id: string;
1205
- };
1206
- card_uri?: string;
1207
- media_tagged_user_ids?: Array<string>;
1208
- };
1209
- id: string;
1210
- object: "post_variant";
1211
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1212
- connection_id: string | null;
1213
- body: string | null;
1214
- status: _postrun_js.PostVariantStatus;
1215
- schedule_at: string | null;
1216
- result: {
1217
- platform_post_id: string;
1218
- permalink: string | null;
1219
- published_at: string;
1220
- } | null;
1221
- error: {
1222
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1223
- message: string;
1224
- display_error: string;
1225
- } | null;
1226
- media: Array<{
1227
- media_id: string;
1228
- position: number;
1229
- alt_text_override: string | null;
1230
- media: _postrun_js.Media;
1231
- }>;
1232
- } | {
1233
- platform: "linkedin";
1234
- settings: {
1235
- visibility: "PUBLIC" | "CONNECTIONS";
1236
- article?: {
1237
- source: string;
1238
- title?: string;
1239
- description?: string;
1240
- thumbnail_media_id?: string;
1241
- };
1242
- poll?: {
1243
- question: string;
1244
- options: Array<string>;
1245
- duration: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS";
1246
- };
1247
- document?: {
1248
- title: string;
1249
- };
1250
- disable_reshare?: boolean;
1251
- mentions?: Array<{
1252
- type: "person" | "organization";
1253
- name: string;
1254
- urn: string;
1255
- }>;
1256
- };
1257
- id: string;
1258
- object: "post_variant";
1259
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1260
- connection_id: string | null;
1261
- body: string | null;
1262
- status: _postrun_js.PostVariantStatus;
1263
- schedule_at: string | null;
1264
- result: {
1265
- platform_post_id: string;
1266
- permalink: string | null;
1267
- published_at: string;
1268
- } | null;
1269
- error: {
1270
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1271
- message: string;
1272
- display_error: string;
1273
- } | null;
1274
- media: Array<{
1275
- media_id: string;
1276
- position: number;
1277
- alt_text_override: string | null;
1278
- media: _postrun_js.Media;
1279
- }>;
1280
- content_kind: "text" | "single_image" | "video" | "multi_image" | "document" | "article" | "poll" | null;
1281
- } | {
1282
- platform: "facebook_page";
1283
- settings: {
1284
- link?: string;
1285
- };
1286
- id: string;
1287
- object: "post_variant";
1288
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1289
- connection_id: string | null;
1290
- body: string | null;
1291
- status: _postrun_js.PostVariantStatus;
1292
- schedule_at: string | null;
1293
- result: {
1294
- platform_post_id: string;
1295
- permalink: string | null;
1296
- published_at: string;
1297
- } | null;
1298
- error: {
1299
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1300
- message: string;
1301
- display_error: string;
1302
- } | null;
1303
- media: Array<{
1304
- media_id: string;
1305
- position: number;
1306
- alt_text_override: string | null;
1307
- media: _postrun_js.Media;
1308
- }>;
1309
- } | {
1310
- platform: "instagram";
1311
- settings: {
1312
- location_id?: string;
1313
- user_tags?: Array<{
1314
- username: string;
1315
- x: number;
1316
- y: number;
1317
- }>;
1318
- collaborators?: Array<string>;
1319
- share_to_feed?: boolean;
1320
- thumb_offset?: number;
1321
- cover_url?: string;
1322
- audio_name?: string;
1323
- };
1324
- id: string;
1325
- object: "post_variant";
1326
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1327
- connection_id: string | null;
1328
- body: string | null;
1329
- status: _postrun_js.PostVariantStatus;
1330
- schedule_at: string | null;
1331
- result: {
1332
- platform_post_id: string;
1333
- permalink: string | null;
1334
- published_at: string;
1335
- } | null;
1336
- error: {
1337
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1338
- message: string;
1339
- display_error: string;
1340
- } | null;
1341
- media: Array<{
1342
- media_id: string;
1343
- position: number;
1344
- alt_text_override: string | null;
1345
- media: _postrun_js.Media;
1346
- }>;
1347
- media_type: "IMAGE" | "CAROUSEL" | "REELS" | null;
1348
- } | {
1349
- platform: "tiktok";
1350
- settings: {
1351
- privacy_level?: "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
1352
- disable_comment?: boolean;
1353
- disable_duet?: boolean;
1354
- disable_stitch?: boolean;
1355
- video_cover_timestamp_ms?: number;
1356
- photo_cover_index?: number;
1357
- auto_add_music?: boolean;
1358
- brand_content_toggle?: boolean;
1359
- brand_organic_toggle?: boolean;
1360
- is_aigc?: boolean;
1361
- };
1362
- id: string;
1363
- object: "post_variant";
1364
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1365
- connection_id: string | null;
1366
- body: string | null;
1367
- status: _postrun_js.PostVariantStatus;
1368
- schedule_at: string | null;
1369
- result: {
1370
- platform_post_id: string;
1371
- permalink: string | null;
1372
- published_at: string;
1373
- } | null;
1374
- error: {
1375
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1376
- message: string;
1377
- display_error: string;
1378
- } | null;
1379
- media: Array<{
1380
- media_id: string;
1381
- position: number;
1382
- alt_text_override: string | null;
1383
- media: _postrun_js.Media;
1384
- }>;
1385
- }>;
1386
- created_at: string;
1387
- updated_at: string;
1388
- }>;
1389
- total: number;
1390
- limit: number;
1391
- offset: number;
1392
- has_more: boolean;
1393
- }>, Error>;
1394
- /**
1395
- * Retrieve a single post by id (its variants, schedule, and derived status).
1396
- * Auto-polls (2s) while the post is in-flight (`scheduled` / `publishing`) and
1397
- * stops once it reaches a terminal status — so a scheduled post visibly
1398
- * transitions with no manual refetch. `live` is on by default; pass
1399
- * `{ live: false }` to force a one-shot.
1400
- */
1401
- declare function usePost(id: string, options?: LiveOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
1402
- id: string;
1403
- object: "post";
1404
- profile_id: string;
1405
- external_id: string | null;
1406
- status: "draft" | "scheduled" | "publishing" | "partially_published" | "published" | "failed";
1407
- schedule_at: string | null;
1408
- tags: Array<string>;
1409
- notes: string | null;
1410
- metadata: {
1411
- [key: string]: string | number | boolean;
1412
- };
1413
- variants: Array<{
1414
- platform: "x";
1415
- settings: {
1416
- reply_settings?: "everyone" | "following" | "mentionedUsers" | "subscribers" | "verified";
1417
- quote_tweet_id?: string;
1418
- poll?: {
1419
- options: Array<string>;
1420
- duration_minutes: number;
1421
- reply_settings?: "following" | "mentionedUsers" | "subscribers" | "verified";
1422
- };
1423
- reply?: {
1424
- in_reply_to_tweet_id: string;
1425
- exclude_reply_user_ids?: Array<string>;
1426
- auto_populate_reply_metadata?: boolean;
1427
- };
1428
- community_id?: string;
1429
- for_super_followers_only?: boolean;
1430
- geo?: {
1431
- place_id: string;
1432
- };
1433
- card_uri?: string;
1434
- media_tagged_user_ids?: Array<string>;
1435
- };
1436
- id: string;
1437
- object: "post_variant";
1438
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1439
- connection_id: string | null;
1440
- body: string | null;
1441
- status: _postrun_js.PostVariantStatus;
1442
- schedule_at: string | null;
1443
- result: {
1444
- platform_post_id: string;
1445
- permalink: string | null;
1446
- published_at: string;
1447
- } | null;
1448
- error: {
1449
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1450
- message: string;
1451
- display_error: string;
1452
- } | null;
1453
- media: Array<{
1454
- media_id: string;
1455
- position: number;
1456
- alt_text_override: string | null;
1457
- media: _postrun_js.Media;
1458
- }>;
1459
- } | {
1460
- platform: "linkedin";
1461
- settings: {
1462
- visibility: "PUBLIC" | "CONNECTIONS";
1463
- article?: {
1464
- source: string;
1465
- title?: string;
1466
- description?: string;
1467
- thumbnail_media_id?: string;
1468
- };
1469
- poll?: {
1470
- question: string;
1471
- options: Array<string>;
1472
- duration: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS";
1473
- };
1474
- document?: {
1475
- title: string;
1476
- };
1477
- disable_reshare?: boolean;
1478
- mentions?: Array<{
1479
- type: "person" | "organization";
1480
- name: string;
1481
- urn: string;
1482
- }>;
1483
- };
1484
- id: string;
1485
- object: "post_variant";
1486
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1487
- connection_id: string | null;
1488
- body: string | null;
1489
- status: _postrun_js.PostVariantStatus;
1490
- schedule_at: string | null;
1491
- result: {
1492
- platform_post_id: string;
1493
- permalink: string | null;
1494
- published_at: string;
1495
- } | null;
1496
- error: {
1497
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1498
- message: string;
1499
- display_error: string;
1500
- } | null;
1501
- media: Array<{
1502
- media_id: string;
1503
- position: number;
1504
- alt_text_override: string | null;
1505
- media: _postrun_js.Media;
1506
- }>;
1507
- content_kind: "text" | "single_image" | "video" | "multi_image" | "document" | "article" | "poll" | null;
1508
- } | {
1509
- platform: "facebook_page";
1510
- settings: {
1511
- link?: string;
1512
- };
1513
- id: string;
1514
- object: "post_variant";
1515
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1516
- connection_id: string | null;
1517
- body: string | null;
1518
- status: _postrun_js.PostVariantStatus;
1519
- schedule_at: string | null;
1520
- result: {
1521
- platform_post_id: string;
1522
- permalink: string | null;
1523
- published_at: string;
1524
- } | null;
1525
- error: {
1526
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1527
- message: string;
1528
- display_error: string;
1529
- } | null;
1530
- media: Array<{
1531
- media_id: string;
1532
- position: number;
1533
- alt_text_override: string | null;
1534
- media: _postrun_js.Media;
1535
- }>;
1536
- } | {
1537
- platform: "instagram";
1538
- settings: {
1539
- location_id?: string;
1540
- user_tags?: Array<{
1541
- username: string;
1542
- x: number;
1543
- y: number;
1544
- }>;
1545
- collaborators?: Array<string>;
1546
- share_to_feed?: boolean;
1547
- thumb_offset?: number;
1548
- cover_url?: string;
1549
- audio_name?: string;
1550
- };
1551
- id: string;
1552
- object: "post_variant";
1553
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1554
- connection_id: string | null;
1555
- body: string | null;
1556
- status: _postrun_js.PostVariantStatus;
1557
- schedule_at: string | null;
1558
- result: {
1559
- platform_post_id: string;
1560
- permalink: string | null;
1561
- published_at: string;
1562
- } | null;
1563
- error: {
1564
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1565
- message: string;
1566
- display_error: string;
1567
- } | null;
1568
- media: Array<{
1569
- media_id: string;
1570
- position: number;
1571
- alt_text_override: string | null;
1572
- media: _postrun_js.Media;
1573
- }>;
1574
- media_type: "IMAGE" | "CAROUSEL" | "REELS" | null;
1575
- } | {
1576
- platform: "tiktok";
1577
- settings: {
1578
- privacy_level?: "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
1579
- disable_comment?: boolean;
1580
- disable_duet?: boolean;
1581
- disable_stitch?: boolean;
1582
- video_cover_timestamp_ms?: number;
1583
- photo_cover_index?: number;
1584
- auto_add_music?: boolean;
1585
- brand_content_toggle?: boolean;
1586
- brand_organic_toggle?: boolean;
1587
- is_aigc?: boolean;
1588
- };
1589
- id: string;
1590
- object: "post_variant";
1591
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1592
- connection_id: string | null;
1593
- body: string | null;
1594
- status: _postrun_js.PostVariantStatus;
1595
- schedule_at: string | null;
1596
- result: {
1597
- platform_post_id: string;
1598
- permalink: string | null;
1599
- published_at: string;
1600
- } | null;
1601
- error: {
1602
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1603
- message: string;
1604
- display_error: string;
1605
- } | null;
1606
- media: Array<{
1607
- media_id: string;
1608
- position: number;
1609
- alt_text_override: string | null;
1610
- media: _postrun_js.Media;
1611
- }>;
1612
- }>;
1613
- created_at: string;
1614
- updated_at: string;
1615
- }>, Error>;
1616
- /**
1617
- * Compose and create a post. Resolves the profile's connections, builds the full
1618
- * variant set from `{ content, channels }` (per the `buildCreatePost` rules), and
1619
- * sends it — the customer never assembles variants or passes a `connection_id`.
1620
- * `connectedChannels` is the set of posting platforms this profile can reach.
1621
- *
1622
- * ## Reading the publish outcome (do NOT stop at "it returned")
1623
- * On `publish: 'now'` the API returns the created post with a rollup `status` and
1624
- * a per-variant `status` + typed `error`. A 201 does NOT mean every platform
1625
- * published — one can silently fail while another succeeds. Surface the outcome
1626
- * via the derived fields, never assume success from a resolved `create`:
1627
- *
1628
- * - **`status`** — the rollup (`published | partially_published | failed |
1629
- * draft | scheduled`), `undefined` until the first `create` resolves.
1630
- * - **`isPublished`** — `true` ONLY when `status === 'published'`. This is the
1631
- * one "fully published" state; `partially_published` and `failed` are NOT
1632
- * success. Branch on this, not on the promise resolving.
1633
- * - **`failedVariants`** — the variants that failed, each with its typed
1634
- * `error` (`{ code, message }`); `[]` when none. Render "X failed: <message>".
1635
- *
1636
- * `create` still resolves with the FULL `Post` (read everything if you need to),
1637
- * and it NEVER throws on a failed/partial publish — a throw would discard the
1638
- * platforms that DID publish. A transport error (network / 4xx) still surfaces
1639
- * via `error` (and rejects `create`), exactly as before.
1640
- */
1641
- declare function useCreatePost(profileId: string): {
1642
- create: _tanstack_react_query.UseMutateAsyncFunction<{
1643
- id: string;
1644
- object: "post";
1645
- profile_id: string;
1646
- external_id: string | null;
1647
- status: "draft" | "scheduled" | "publishing" | "partially_published" | "published" | "failed";
1648
- schedule_at: string | null;
1649
- tags: Array<string>;
1650
- notes: string | null;
1651
- metadata: {
1652
- [key: string]: string | number | boolean;
1653
- };
1654
- variants: Array<{
1655
- platform: "x";
1656
- settings: {
1657
- reply_settings?: "everyone" | "following" | "mentionedUsers" | "subscribers" | "verified";
1658
- quote_tweet_id?: string;
1659
- poll?: {
1660
- options: Array<string>;
1661
- duration_minutes: number;
1662
- reply_settings?: "following" | "mentionedUsers" | "subscribers" | "verified";
1663
- };
1664
- reply?: {
1665
- in_reply_to_tweet_id: string;
1666
- exclude_reply_user_ids?: Array<string>;
1667
- auto_populate_reply_metadata?: boolean;
1668
- };
1669
- community_id?: string;
1670
- for_super_followers_only?: boolean;
1671
- geo?: {
1672
- place_id: string;
1673
- };
1674
- card_uri?: string;
1675
- media_tagged_user_ids?: Array<string>;
1676
- };
1677
- id: string;
1678
- object: "post_variant";
1679
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1680
- connection_id: string | null;
1681
- body: string | null;
1682
- status: _postrun_js.PostVariantStatus;
1683
- schedule_at: string | null;
1684
- result: {
1685
- platform_post_id: string;
1686
- permalink: string | null;
1687
- published_at: string;
1688
- } | null;
1689
- error: {
1690
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1691
- message: string;
1692
- display_error: string;
1693
- } | null;
1694
- media: Array<{
1695
- media_id: string;
1696
- position: number;
1697
- alt_text_override: string | null;
1698
- media: _postrun_js.Media;
1699
- }>;
1700
- } | {
1701
- platform: "linkedin";
1702
- settings: {
1703
- visibility: "PUBLIC" | "CONNECTIONS";
1704
- article?: {
1705
- source: string;
1706
- title?: string;
1707
- description?: string;
1708
- thumbnail_media_id?: string;
1709
- };
1710
- poll?: {
1711
- question: string;
1712
- options: Array<string>;
1713
- duration: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS";
1714
- };
1715
- document?: {
1716
- title: string;
1717
- };
1718
- disable_reshare?: boolean;
1719
- mentions?: Array<{
1720
- type: "person" | "organization";
1721
- name: string;
1722
- urn: string;
1723
- }>;
1724
- };
1725
- id: string;
1726
- object: "post_variant";
1727
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1728
- connection_id: string | null;
1729
- body: string | null;
1730
- status: _postrun_js.PostVariantStatus;
1731
- schedule_at: string | null;
1732
- result: {
1733
- platform_post_id: string;
1734
- permalink: string | null;
1735
- published_at: string;
1736
- } | null;
1737
- error: {
1738
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1739
- message: string;
1740
- display_error: string;
1741
- } | null;
1742
- media: Array<{
1743
- media_id: string;
1744
- position: number;
1745
- alt_text_override: string | null;
1746
- media: _postrun_js.Media;
1747
- }>;
1748
- content_kind: "text" | "single_image" | "video" | "multi_image" | "document" | "article" | "poll" | null;
1749
- } | {
1750
- platform: "facebook_page";
1751
- settings: {
1752
- link?: string;
1753
- };
1754
- id: string;
1755
- object: "post_variant";
1756
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1757
- connection_id: string | null;
1758
- body: string | null;
1759
- status: _postrun_js.PostVariantStatus;
1760
- schedule_at: string | null;
1761
- result: {
1762
- platform_post_id: string;
1763
- permalink: string | null;
1764
- published_at: string;
1765
- } | null;
1766
- error: {
1767
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1768
- message: string;
1769
- display_error: string;
1770
- } | null;
1771
- media: Array<{
1772
- media_id: string;
1773
- position: number;
1774
- alt_text_override: string | null;
1775
- media: _postrun_js.Media;
1776
- }>;
1777
- } | {
1778
- platform: "instagram";
1779
- settings: {
1780
- location_id?: string;
1781
- user_tags?: Array<{
1782
- username: string;
1783
- x: number;
1784
- y: number;
1785
- }>;
1786
- collaborators?: Array<string>;
1787
- share_to_feed?: boolean;
1788
- thumb_offset?: number;
1789
- cover_url?: string;
1790
- audio_name?: string;
1791
- };
1792
- id: string;
1793
- object: "post_variant";
1794
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1795
- connection_id: string | null;
1796
- body: string | null;
1797
- status: _postrun_js.PostVariantStatus;
1798
- schedule_at: string | null;
1799
- result: {
1800
- platform_post_id: string;
1801
- permalink: string | null;
1802
- published_at: string;
1803
- } | null;
1804
- error: {
1805
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1806
- message: string;
1807
- display_error: string;
1808
- } | null;
1809
- media: Array<{
1810
- media_id: string;
1811
- position: number;
1812
- alt_text_override: string | null;
1813
- media: _postrun_js.Media;
1814
- }>;
1815
- media_type: "IMAGE" | "CAROUSEL" | "REELS" | null;
1816
- } | {
1817
- platform: "tiktok";
1818
- settings: {
1819
- privacy_level?: "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
1820
- disable_comment?: boolean;
1821
- disable_duet?: boolean;
1822
- disable_stitch?: boolean;
1823
- video_cover_timestamp_ms?: number;
1824
- photo_cover_index?: number;
1825
- auto_add_music?: boolean;
1826
- brand_content_toggle?: boolean;
1827
- brand_organic_toggle?: boolean;
1828
- is_aigc?: boolean;
1829
- };
1830
- id: string;
1831
- object: "post_variant";
1832
- post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1833
- connection_id: string | null;
1834
- body: string | null;
1835
- status: _postrun_js.PostVariantStatus;
1836
- schedule_at: string | null;
1837
- result: {
1838
- platform_post_id: string;
1839
- permalink: string | null;
1840
- published_at: string;
1841
- } | null;
1842
- error: {
1843
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1844
- message: string;
1845
- display_error: string;
1846
- } | null;
1847
- media: Array<{
1848
- media_id: string;
1849
- position: number;
1850
- alt_text_override: string | null;
1851
- media: _postrun_js.Media;
1109
+ location_id?: string;
1110
+ user_tags?: Array<{
1111
+ username: string;
1112
+ x: number;
1113
+ y: number;
1852
1114
  }>;
1115
+ collaborators?: Array<string>;
1116
+ share_to_feed?: boolean;
1117
+ thumb_offset?: number;
1118
+ cover_url?: string;
1119
+ audio_name?: string;
1120
+ first_comment?: string;
1121
+ };
1122
+ id: string;
1123
+ object: "post_variant";
1124
+ post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1125
+ connection_id: string | null;
1126
+ body: string | null;
1127
+ status: _postrun_js.PostVariantStatus;
1128
+ schedule_at: string | null;
1129
+ result: {
1130
+ platform_post_id: string;
1131
+ permalink: string | null;
1132
+ published_at: string;
1133
+ } | null;
1134
+ error: {
1135
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1136
+ message: string;
1137
+ source?: _postrun_js.ErrorSource;
1138
+ display_error: string;
1139
+ } | null;
1140
+ media: Array<{
1141
+ media_id: string;
1142
+ position: number;
1143
+ alt_text_override: string | null;
1144
+ media: _postrun_js.Media;
1853
1145
  }>;
1854
- created_at: string;
1855
- updated_at: string;
1856
- dry_run: boolean;
1857
- executed: boolean;
1858
- }, Error, Omit<ComposePostInput, "profileId">, unknown>;
1859
- isPending: boolean;
1860
- error: Error | null;
1861
- data: {
1146
+ media_type: "IMAGE" | "CAROUSEL" | "REELS" | null;
1147
+ } | {
1148
+ platform: "tiktok";
1149
+ settings: {
1150
+ privacy_level?: "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
1151
+ disable_comment?: boolean;
1152
+ disable_duet?: boolean;
1153
+ disable_stitch?: boolean;
1154
+ thumbnail_offset?: number;
1155
+ photo_cover_index?: number;
1156
+ auto_add_music?: boolean;
1157
+ is_branded_content?: boolean;
1158
+ is_brand_organic?: boolean;
1159
+ is_ai_generated?: boolean;
1160
+ is_ads_only?: boolean;
1161
+ };
1162
+ id: string;
1163
+ object: "post_variant";
1164
+ post_type: ("video" | "text" | "single_image" | "multi_image" | "reel" | "carousel") | null;
1165
+ connection_id: string | null;
1166
+ body: string | null;
1167
+ status: _postrun_js.PostVariantStatus;
1168
+ schedule_at: string | null;
1169
+ result: {
1170
+ platform_post_id: string;
1171
+ permalink: string | null;
1172
+ published_at: string;
1173
+ } | null;
1174
+ error: {
1175
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1176
+ message: string;
1177
+ source?: _postrun_js.ErrorSource;
1178
+ display_error: string;
1179
+ } | null;
1180
+ media: Array<{
1181
+ media_id: string;
1182
+ position: number;
1183
+ alt_text_override: string | null;
1184
+ media: _postrun_js.Media;
1185
+ }>;
1186
+ }>;
1187
+ created_at: string;
1188
+ updated_at: string;
1189
+ }>;
1190
+ /**
1191
+ * Calendar/queue view — list posts in a `schedule_at` date window, optionally
1192
+ * narrowed to a profile and to one or more derived statuses (e.g. only
1193
+ * `scheduled` + `failed`). Forwards the date-range + multi-status filters (and
1194
+ * any `limit`/`offset`) to the generated `postsList` and returns the same typed
1195
+ * `PostList` envelope. It shares the `postKeys.list(filters)` cache identity with
1196
+ * `usePosts` but owns its own self-terminating poll: while ANY post in the
1197
+ * window is in-flight it refetches (5s — a list is heavier than one detail), and
1198
+ * stops once every item is terminal (or the window is empty). `live` is a
1199
+ * separate option, never mixed into the API filter object; default-on, opt out
1200
+ * with `{ live: false }`.
1201
+ */
1202
+ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'limit' | 'offset'>, options?: LiveOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
1203
+ object: "list";
1204
+ data: Array<{
1862
1205
  id: string;
1863
1206
  object: "post";
1864
1207
  profile_id: string;
@@ -1892,6 +1235,13 @@ declare function useCreatePost(profileId: string): {
1892
1235
  };
1893
1236
  card_uri?: string;
1894
1237
  media_tagged_user_ids?: Array<string>;
1238
+ thread_items?: Array<{
1239
+ body?: string;
1240
+ media?: Array<{
1241
+ media_id: string;
1242
+ alt_text_override?: string | null;
1243
+ }>;
1244
+ }>;
1895
1245
  };
1896
1246
  id: string;
1897
1247
  object: "post_variant";
@@ -1906,8 +1256,9 @@ declare function useCreatePost(profileId: string): {
1906
1256
  published_at: string;
1907
1257
  } | null;
1908
1258
  error: {
1909
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1259
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1910
1260
  message: string;
1261
+ source?: _postrun_js.ErrorSource;
1911
1262
  display_error: string;
1912
1263
  } | null;
1913
1264
  media: Array<{
@@ -1954,8 +1305,9 @@ declare function useCreatePost(profileId: string): {
1954
1305
  published_at: string;
1955
1306
  } | null;
1956
1307
  error: {
1957
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1308
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1958
1309
  message: string;
1310
+ source?: _postrun_js.ErrorSource;
1959
1311
  display_error: string;
1960
1312
  } | null;
1961
1313
  media: Array<{
@@ -1969,6 +1321,7 @@ declare function useCreatePost(profileId: string): {
1969
1321
  platform: "facebook_page";
1970
1322
  settings: {
1971
1323
  link?: string;
1324
+ first_comment?: string;
1972
1325
  };
1973
1326
  id: string;
1974
1327
  object: "post_variant";
@@ -1983,8 +1336,9 @@ declare function useCreatePost(profileId: string): {
1983
1336
  published_at: string;
1984
1337
  } | null;
1985
1338
  error: {
1986
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1339
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1987
1340
  message: string;
1341
+ source?: _postrun_js.ErrorSource;
1988
1342
  display_error: string;
1989
1343
  } | null;
1990
1344
  media: Array<{
@@ -2007,6 +1361,7 @@ declare function useCreatePost(profileId: string): {
2007
1361
  thumb_offset?: number;
2008
1362
  cover_url?: string;
2009
1363
  audio_name?: string;
1364
+ first_comment?: string;
2010
1365
  };
2011
1366
  id: string;
2012
1367
  object: "post_variant";
@@ -2021,8 +1376,9 @@ declare function useCreatePost(profileId: string): {
2021
1376
  published_at: string;
2022
1377
  } | null;
2023
1378
  error: {
2024
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1379
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2025
1380
  message: string;
1381
+ source?: _postrun_js.ErrorSource;
2026
1382
  display_error: string;
2027
1383
  } | null;
2028
1384
  media: Array<{
@@ -2039,12 +1395,13 @@ declare function useCreatePost(profileId: string): {
2039
1395
  disable_comment?: boolean;
2040
1396
  disable_duet?: boolean;
2041
1397
  disable_stitch?: boolean;
2042
- video_cover_timestamp_ms?: number;
1398
+ thumbnail_offset?: number;
2043
1399
  photo_cover_index?: number;
2044
1400
  auto_add_music?: boolean;
2045
- brand_content_toggle?: boolean;
2046
- brand_organic_toggle?: boolean;
2047
- is_aigc?: boolean;
1401
+ is_branded_content?: boolean;
1402
+ is_brand_organic?: boolean;
1403
+ is_ai_generated?: boolean;
1404
+ is_ads_only?: boolean;
2048
1405
  };
2049
1406
  id: string;
2050
1407
  object: "post_variant";
@@ -2059,8 +1416,9 @@ declare function useCreatePost(profileId: string): {
2059
1416
  published_at: string;
2060
1417
  } | null;
2061
1418
  error: {
2062
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1419
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2063
1420
  message: string;
1421
+ source?: _postrun_js.ErrorSource;
2064
1422
  display_error: string;
2065
1423
  } | null;
2066
1424
  media: Array<{
@@ -2072,13 +1430,32 @@ declare function useCreatePost(profileId: string): {
2072
1430
  }>;
2073
1431
  created_at: string;
2074
1432
  updated_at: string;
2075
- dry_run: boolean;
2076
- executed: boolean;
2077
- } | undefined;
2078
- reset: () => void;
2079
- status: "draft" | "scheduled" | "publishing" | "partially_published" | "published" | "failed" | undefined;
2080
- isPublished: boolean;
2081
- failedVariants: ({
1433
+ }>;
1434
+ total: number;
1435
+ limit: number;
1436
+ offset: number;
1437
+ has_more: boolean;
1438
+ }>, Error>;
1439
+ /**
1440
+ * Retrieve a single post by id (its variants, schedule, and derived status).
1441
+ * Auto-polls (2s) while the post is in-flight (`scheduled` / `publishing`) and
1442
+ * stops once it reaches a terminal status — so a scheduled post visibly
1443
+ * transitions with no manual refetch. `live` is on by default; pass
1444
+ * `{ live: false }` to force a one-shot.
1445
+ */
1446
+ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_query.UseQueryResult<NoInfer<{
1447
+ id: string;
1448
+ object: "post";
1449
+ profile_id: string;
1450
+ external_id: string | null;
1451
+ status: "draft" | "scheduled" | "publishing" | "partially_published" | "published" | "failed";
1452
+ schedule_at: string | null;
1453
+ tags: Array<string>;
1454
+ notes: string | null;
1455
+ metadata: {
1456
+ [key: string]: string | number | boolean;
1457
+ };
1458
+ variants: Array<{
2082
1459
  platform: "x";
2083
1460
  settings: {
2084
1461
  reply_settings?: "everyone" | "following" | "mentionedUsers" | "subscribers" | "verified";
@@ -2100,6 +1477,13 @@ declare function useCreatePost(profileId: string): {
2100
1477
  };
2101
1478
  card_uri?: string;
2102
1479
  media_tagged_user_ids?: Array<string>;
1480
+ thread_items?: Array<{
1481
+ body?: string;
1482
+ media?: Array<{
1483
+ media_id: string;
1484
+ alt_text_override?: string | null;
1485
+ }>;
1486
+ }>;
2103
1487
  };
2104
1488
  id: string;
2105
1489
  object: "post_variant";
@@ -2114,8 +1498,9 @@ declare function useCreatePost(profileId: string): {
2114
1498
  published_at: string;
2115
1499
  } | null;
2116
1500
  error: {
2117
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1501
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2118
1502
  message: string;
1503
+ source?: _postrun_js.ErrorSource;
2119
1504
  display_error: string;
2120
1505
  } | null;
2121
1506
  media: Array<{
@@ -2162,8 +1547,9 @@ declare function useCreatePost(profileId: string): {
2162
1547
  published_at: string;
2163
1548
  } | null;
2164
1549
  error: {
2165
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1550
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2166
1551
  message: string;
1552
+ source?: _postrun_js.ErrorSource;
2167
1553
  display_error: string;
2168
1554
  } | null;
2169
1555
  media: Array<{
@@ -2177,6 +1563,7 @@ declare function useCreatePost(profileId: string): {
2177
1563
  platform: "facebook_page";
2178
1564
  settings: {
2179
1565
  link?: string;
1566
+ first_comment?: string;
2180
1567
  };
2181
1568
  id: string;
2182
1569
  object: "post_variant";
@@ -2191,8 +1578,9 @@ declare function useCreatePost(profileId: string): {
2191
1578
  published_at: string;
2192
1579
  } | null;
2193
1580
  error: {
2194
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1581
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2195
1582
  message: string;
1583
+ source?: _postrun_js.ErrorSource;
2196
1584
  display_error: string;
2197
1585
  } | null;
2198
1586
  media: Array<{
@@ -2215,6 +1603,7 @@ declare function useCreatePost(profileId: string): {
2215
1603
  thumb_offset?: number;
2216
1604
  cover_url?: string;
2217
1605
  audio_name?: string;
1606
+ first_comment?: string;
2218
1607
  };
2219
1608
  id: string;
2220
1609
  object: "post_variant";
@@ -2229,8 +1618,9 @@ declare function useCreatePost(profileId: string): {
2229
1618
  published_at: string;
2230
1619
  } | null;
2231
1620
  error: {
2232
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1621
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2233
1622
  message: string;
1623
+ source?: _postrun_js.ErrorSource;
2234
1624
  display_error: string;
2235
1625
  } | null;
2236
1626
  media: Array<{
@@ -2247,12 +1637,13 @@ declare function useCreatePost(profileId: string): {
2247
1637
  disable_comment?: boolean;
2248
1638
  disable_duet?: boolean;
2249
1639
  disable_stitch?: boolean;
2250
- video_cover_timestamp_ms?: number;
1640
+ thumbnail_offset?: number;
2251
1641
  photo_cover_index?: number;
2252
1642
  auto_add_music?: boolean;
2253
- brand_content_toggle?: boolean;
2254
- brand_organic_toggle?: boolean;
2255
- is_aigc?: boolean;
1643
+ is_branded_content?: boolean;
1644
+ is_brand_organic?: boolean;
1645
+ is_ai_generated?: boolean;
1646
+ is_ads_only?: boolean;
2256
1647
  };
2257
1648
  id: string;
2258
1649
  object: "post_variant";
@@ -2267,8 +1658,9 @@ declare function useCreatePost(profileId: string): {
2267
1658
  published_at: string;
2268
1659
  } | null;
2269
1660
  error: {
2270
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1661
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2271
1662
  message: string;
1663
+ source?: _postrun_js.ErrorSource;
2272
1664
  display_error: string;
2273
1665
  } | null;
2274
1666
  media: Array<{
@@ -2277,61 +1669,44 @@ declare function useCreatePost(profileId: string): {
2277
1669
  alt_text_override: string | null;
2278
1670
  media: _postrun_js.Media;
2279
1671
  }>;
2280
- })[];
2281
- isReady: boolean;
2282
- connectedChannels: ("tiktok" | "x" | "linkedin" | "facebook_page" | "instagram")[];
2283
- };
1672
+ }>;
1673
+ created_at: string;
1674
+ updated_at: string;
1675
+ }>, Error>;
2284
1676
  /**
2285
- * Validate a composed post WITHOUT saving or publishing it — the read-scoped
2286
- * `POST /v1/posts/validate`. Builds the same best-effort variant set as
2287
- * `useCreatePost` (via `buildCreatePost`), sends it, and relays the SERVER's
2288
- * verdict: `publishable` (the single gate boolean) + `issues` (typed, per-variant
2289
- * problems to render inline). The SDK makes NO validity judgment — the server is
2290
- * the sole authority.
1677
+ * Compose and create a post. Resolves the profile's connections, builds the full
1678
+ * variant set from `{ content, channels }` (per the `buildCreatePost` rules), and
1679
+ * sends it — the customer never assembles variants or passes a `connection_id`.
1680
+ * `connectedChannels` is the set of posting platforms this profile can reach.
2291
1681
  *
2292
- * It is a READ: no query-cache invalidation, no mutation handle. `validate` is a
2293
- * stable callback (safe in deps); the caller debounces for live-as-you-type — the
2294
- * hook never debounces internally. One call, no waterfall (connections are loaded
2295
- * once by the shared `useConnections`).
1682
+ * ## Reading the publish outcome (do NOT stop at "it returned")
1683
+ * On `publish: 'now'` the API returns the created post with a rollup `status` and
1684
+ * a per-variant `status` + typed `error`. A 201 does NOT mean every platform
1685
+ * published — one can silently fail while another succeeds. Surface the outcome
1686
+ * via the derived fields, never assume success from a resolved `create`:
1687
+ *
1688
+ * - **`status`** — the rollup (`published | partially_published | failed |
1689
+ * draft | scheduled`), `undefined` until the first `create` resolves.
1690
+ * - **`isPublished`** — `true` ONLY when `status === 'published'`. This is the
1691
+ * one "fully published" state; `partially_published` and `failed` are NOT
1692
+ * success. Branch on this, not on the promise resolving.
1693
+ * - **`failedVariants`** — the variants that failed, each with its typed
1694
+ * `error` (`{ code, message }`); `[]` when none. Render "X failed: <message>".
1695
+ *
1696
+ * `create` still resolves with the FULL `Post` (read everything if you need to),
1697
+ * and it NEVER throws on a failed/partial publish — a throw would discard the
1698
+ * platforms that DID publish. A transport error (network / 4xx) still surfaces
1699
+ * via `error` (and rejects `create`), exactly as before.
2296
1700
  */
2297
- declare function useValidatePost(profileId: string): {
2298
- validate: (input: Omit<ComposePostInput, "profileId">) => Promise<PostValidation>;
2299
- publishable: boolean | undefined;
2300
- issues: {
2301
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
2302
- message: string;
2303
- hint?: string;
2304
- allowed?: Array<string>;
2305
- got?: string;
2306
- source?: _postrun_js.ErrorSource;
2307
- variant_index: number;
2308
- path: Array<string | number>;
2309
- platform?: "tiktok" | "x" | "linkedin" | "facebook_page" | "instagram";
2310
- display_error: string;
2311
- }[];
1701
+ declare function useCreatePost(profileId: string): {
1702
+ create: _tanstack_react_query.UseMutateAsyncFunction<_postrun_js.PostWriteResult, Error, Omit<ComposePostInput, "profileId">, unknown>;
2312
1703
  isPending: boolean;
2313
1704
  error: Error | null;
2314
- isReady: boolean;
2315
- connectedChannels: ("tiktok" | "x" | "linkedin" | "facebook_page" | "instagram")[];
2316
- };
2317
- /**
2318
- * Update a post by id. Pass a light edit directly (`{ schedule_at }`,
2319
- * `{ tags }`, …) or a rebuilt body from `buildUpdatePost(input, connections)`
2320
- * for content edits (the API's PATCH replaces the variant set).
2321
- */
2322
- declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutationResult<{
2323
- id: string;
2324
- object: "post";
2325
- profile_id: string;
2326
- external_id: string | null;
2327
- status: "draft" | "scheduled" | "publishing" | "partially_published" | "published" | "failed";
2328
- schedule_at: string | null;
2329
- tags: Array<string>;
2330
- notes: string | null;
2331
- metadata: {
2332
- [key: string]: string | number | boolean;
2333
- };
2334
- variants: Array<{
1705
+ data: _postrun_js.PostWriteResult | undefined;
1706
+ reset: () => void;
1707
+ status: "draft" | "scheduled" | "publishing" | "partially_published" | "published" | "failed" | undefined;
1708
+ isPublished: boolean;
1709
+ failedVariants: ({
2335
1710
  platform: "x";
2336
1711
  settings: {
2337
1712
  reply_settings?: "everyone" | "following" | "mentionedUsers" | "subscribers" | "verified";
@@ -2353,6 +1728,13 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2353
1728
  };
2354
1729
  card_uri?: string;
2355
1730
  media_tagged_user_ids?: Array<string>;
1731
+ thread_items?: Array<{
1732
+ body?: string;
1733
+ media?: Array<{
1734
+ media_id: string;
1735
+ alt_text_override?: string | null;
1736
+ }>;
1737
+ }>;
2356
1738
  };
2357
1739
  id: string;
2358
1740
  object: "post_variant";
@@ -2367,8 +1749,9 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2367
1749
  published_at: string;
2368
1750
  } | null;
2369
1751
  error: {
2370
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1752
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2371
1753
  message: string;
1754
+ source?: _postrun_js.ErrorSource;
2372
1755
  display_error: string;
2373
1756
  } | null;
2374
1757
  media: Array<{
@@ -2415,8 +1798,9 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2415
1798
  published_at: string;
2416
1799
  } | null;
2417
1800
  error: {
2418
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1801
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2419
1802
  message: string;
1803
+ source?: _postrun_js.ErrorSource;
2420
1804
  display_error: string;
2421
1805
  } | null;
2422
1806
  media: Array<{
@@ -2430,6 +1814,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2430
1814
  platform: "facebook_page";
2431
1815
  settings: {
2432
1816
  link?: string;
1817
+ first_comment?: string;
2433
1818
  };
2434
1819
  id: string;
2435
1820
  object: "post_variant";
@@ -2444,8 +1829,9 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2444
1829
  published_at: string;
2445
1830
  } | null;
2446
1831
  error: {
2447
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1832
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2448
1833
  message: string;
1834
+ source?: _postrun_js.ErrorSource;
2449
1835
  display_error: string;
2450
1836
  } | null;
2451
1837
  media: Array<{
@@ -2468,6 +1854,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2468
1854
  thumb_offset?: number;
2469
1855
  cover_url?: string;
2470
1856
  audio_name?: string;
1857
+ first_comment?: string;
2471
1858
  };
2472
1859
  id: string;
2473
1860
  object: "post_variant";
@@ -2482,8 +1869,9 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2482
1869
  published_at: string;
2483
1870
  } | null;
2484
1871
  error: {
2485
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1872
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2486
1873
  message: string;
1874
+ source?: _postrun_js.ErrorSource;
2487
1875
  display_error: string;
2488
1876
  } | null;
2489
1877
  media: Array<{
@@ -2500,12 +1888,13 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2500
1888
  disable_comment?: boolean;
2501
1889
  disable_duet?: boolean;
2502
1890
  disable_stitch?: boolean;
2503
- video_cover_timestamp_ms?: number;
1891
+ thumbnail_offset?: number;
2504
1892
  photo_cover_index?: number;
2505
1893
  auto_add_music?: boolean;
2506
- brand_content_toggle?: boolean;
2507
- brand_organic_toggle?: boolean;
2508
- is_aigc?: boolean;
1894
+ is_branded_content?: boolean;
1895
+ is_brand_organic?: boolean;
1896
+ is_ai_generated?: boolean;
1897
+ is_ads_only?: boolean;
2509
1898
  };
2510
1899
  id: string;
2511
1900
  object: "post_variant";
@@ -2520,8 +1909,9 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2520
1909
  published_at: string;
2521
1910
  } | null;
2522
1911
  error: {
2523
- code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "tiktok_cannot_post_now" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "tiktok_privacy_not_allowed" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_url_ownership_unverified" | "tiktok_unaudited_private_only" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "google_rate_limited" | "google_server_error" | "google_auth_expired" | "google_permission_denied" | "google_request_failed" | "google_conversion_duplicate" | "google_conversion_invalid_click_id" | "google_conversion_event_too_old" | "google_conversion_consent_required" | "google_conversion_terms_not_signed" | "google_conversion_rejected" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed";
1912
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
2524
1913
  message: string;
1914
+ source?: _postrun_js.ErrorSource;
2525
1915
  display_error: string;
2526
1916
  } | null;
2527
1917
  media: Array<{
@@ -2530,12 +1920,49 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2530
1920
  alt_text_override: string | null;
2531
1921
  media: _postrun_js.Media;
2532
1922
  }>;
2533
- }>;
2534
- created_at: string;
2535
- updated_at: string;
2536
- dry_run: boolean;
2537
- executed: boolean;
2538
- }, Error, {
1923
+ })[];
1924
+ isReady: boolean;
1925
+ connectedChannels: ("tiktok" | "x" | "linkedin" | "facebook_page" | "instagram")[];
1926
+ };
1927
+ /**
1928
+ * Validate a composed post WITHOUT saving or publishing it — the read-scoped
1929
+ * `POST /v1/posts/validate`. Builds the same best-effort variant set as
1930
+ * `useCreatePost` (via `buildCreatePost`), sends it, and relays the SERVER's
1931
+ * verdict: `publishable` (the single gate boolean) + `issues` (typed, per-variant
1932
+ * problems to render inline). The SDK makes NO validity judgment — the server is
1933
+ * the sole authority.
1934
+ *
1935
+ * It is a READ: no query-cache invalidation, no mutation handle. `validate` is a
1936
+ * stable callback (safe in deps); the caller debounces for live-as-you-type — the
1937
+ * hook never debounces internally. One call, no waterfall (connections are loaded
1938
+ * once by the shared `useConnections`).
1939
+ */
1940
+ declare function useValidatePost(profileId: string): {
1941
+ validate: (input: Omit<ComposePostInput, "profileId">) => Promise<PostValidation>;
1942
+ publishable: boolean | undefined;
1943
+ issues: {
1944
+ code: "unauthorized" | "forbidden" | "not_found" | "conflict" | "validation_failed" | "rate_limited" | "internal_error" | "idempotency_key_invalid" | "idempotency_key_reused" | "idempotency_request_in_progress" | "account_not_available" | "connection_reauth_required" | "connection_not_pending" | "not_implemented" | "connection_discovery_failed" | "tiktok_creator_info_unavailable" | "media_processing" | "media_upload_init_failed" | "media_upload_incomplete" | "media_upload_invalid_parts" | "not_publishable" | "post_not_retryable" | "invalid_connection" | "invalid_media" | "profile_scope_invalid" | "media_unprobeable" | "media_too_large" | "media_aspect_ratio_unsupported" | "media_resolution_too_low" | "media_gif_unsupported" | "media_format_recompressed" | "media_resolution_downscaled" | "video_container_unsupported" | "video_codec_unsupported" | "video_audio_codec_unsupported" | "video_too_large" | "video_too_small" | "video_dimensions_unsupported" | "video_dimensions_too_large" | "video_fps_unsupported" | "video_fps_too_low" | "video_aspect_unsupported" | "video_duration_too_short" | "video_duration_exceeds_max" | "video_transform_failed" | "media_fetch_failed" | "document_format_unsupported" | "document_too_large" | "document_too_many_pages" | "media_format_indeterminate" | "media_format_unsupported" | "media_count_invalid" | "body_too_long" | "content_missing" | "content_conflict" | "content_incomplete" | "media_type_mismatch" | "tag_limit_exceeded" | "reel_field_on_non_reel" | "field_placement_invalid" | "media_not_ready" | "media_failed" | "media_unsupported" | "media_kind_mismatch" | "variant_unparseable" | "publishing_unavailable" | "x_duplicate_content" | "x_not_authorized" | "x_access_not_permitted" | "x_rate_limited" | "x_publish_failed" | "x_media_upload_failed" | "x_thread_incomplete" | "linkedin_duplicate_content" | "linkedin_auth_expired" | "linkedin_permission_denied" | "linkedin_rate_limited" | "linkedin_media_processing" | "linkedin_media_failed" | "linkedin_media_upload_failed" | "linkedin_publish_failed" | "instagram_media_processing" | "instagram_container_expired" | "instagram_container_failed" | "instagram_rate_limited" | "instagram_daily_limit_reached" | "instagram_aspect_ratio_unsupported" | "instagram_media_unsupported" | "instagram_not_authorized" | "instagram_publish_failed" | "instagram_comment_failed" | "facebook_reel_processing" | "facebook_reel_failed" | "facebook_rate_limited" | "facebook_duplicate_content" | "facebook_temporarily_blocked" | "facebook_not_authorized" | "facebook_publish_failed" | "facebook_comment_failed" | "tiktok_privacy_not_allowed" | "tiktok_interaction_not_allowed" | "tiktok_thumbnail_offset_invalid" | "tiktok_duration_exceeds_max" | "tiktok_media_processing" | "tiktok_not_authorized" | "tiktok_rate_limited" | "tiktok_spam_risk" | "tiktok_file_format_invalid" | "tiktok_duration_invalid" | "tiktok_frame_rate_invalid" | "tiktok_resolution_invalid" | "tiktok_media_pull_failed" | "tiktok_server_error" | "tiktok_publish_failed" | "post_publish_failed" | "post_partially_published" | "connection_platform_mismatch" | "connection_removed" | "publish_interrupted" | "publish_outcome_unknown" | "plan_limit_reached" | "billing_required" | "x_link_requires_paid_plan";
1945
+ message: string;
1946
+ hint?: string;
1947
+ allowed?: Array<string>;
1948
+ got?: string;
1949
+ source?: _postrun_js.ErrorSource;
1950
+ variant_index: number;
1951
+ path: Array<string | number>;
1952
+ platform?: "tiktok" | "x" | "linkedin" | "facebook_page" | "instagram";
1953
+ display_error: string;
1954
+ }[];
1955
+ isPending: boolean;
1956
+ error: Error | null;
1957
+ isReady: boolean;
1958
+ connectedChannels: ("tiktok" | "x" | "linkedin" | "facebook_page" | "instagram")[];
1959
+ };
1960
+ /**
1961
+ * Update a post by id. Pass a light edit directly (`{ schedule_at }`,
1962
+ * `{ tags }`, …) or a rebuilt body from `buildUpdatePost(input, connections)`
1963
+ * for content edits (the API's PATCH replaces the variant set).
1964
+ */
1965
+ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutationResult<_postrun_js.PostWriteResult, Error, {
2539
1966
  publish?: "now" | "schedule" | "draft";
2540
1967
  schedule_at?: string | null;
2541
1968
  external_id?: string | null;
@@ -2567,6 +1994,13 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2567
1994
  };
2568
1995
  card_uri?: string;
2569
1996
  media_tagged_user_ids?: Array<string>;
1997
+ thread_items?: Array<{
1998
+ body?: string;
1999
+ media?: Array<{
2000
+ media_id: string;
2001
+ alt_text_override?: string | null;
2002
+ }>;
2003
+ }>;
2570
2004
  };
2571
2005
  connection_id: string;
2572
2006
  body?: string;
@@ -2619,6 +2053,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2619
2053
  thumb_offset?: number;
2620
2054
  cover_url?: string;
2621
2055
  audio_name?: string;
2056
+ first_comment?: string;
2622
2057
  };
2623
2058
  connection_id: string;
2624
2059
  body?: string;
@@ -2630,6 +2065,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2630
2065
  platform: "facebook_page";
2631
2066
  settings?: {
2632
2067
  link?: string;
2068
+ first_comment?: string;
2633
2069
  };
2634
2070
  connection_id: string;
2635
2071
  body?: string;
@@ -2644,12 +2080,13 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
2644
2080
  disable_comment?: boolean;
2645
2081
  disable_duet?: boolean;
2646
2082
  disable_stitch?: boolean;
2647
- video_cover_timestamp_ms?: number;
2083
+ thumbnail_offset?: number;
2648
2084
  photo_cover_index?: number;
2649
2085
  auto_add_music?: boolean;
2650
- brand_content_toggle?: boolean;
2651
- brand_organic_toggle?: boolean;
2652
- is_aigc?: boolean;
2086
+ is_branded_content?: boolean;
2087
+ is_brand_organic?: boolean;
2088
+ is_ai_generated?: boolean;
2089
+ is_ads_only?: boolean;
2653
2090
  };
2654
2091
  connection_id: string;
2655
2092
  body?: string;
@@ -2696,31 +2133,6 @@ declare function useTikTokCreatorInfo(connectionId: string | null): _tanstack_re
2696
2133
  max_video_duration_sec: number;
2697
2134
  }>, Error>;
2698
2135
 
2699
- /**
2700
- * The Google Ads campaign tree for one connection + window. The API returns FLAT
2701
- * nodes lazily — `GET /ads/tree` gives the campaign level; `?campaign_id=` gives
2702
- * that campaign's subtree — so this hook fetches the campaign level plus one query
2703
- * per EXPANDED campaign, then `groupAdTree`s the merged set into the nested tree.
2704
- *
2705
- * Expansion is CONTROLLED: the caller owns which campaigns are open (a `Set`/array
2706
- * of campaign ids) and passes it as `expanded`; the hook reacts by loading exactly
2707
- * those subtrees. Changing `since`/`until`/`metrics` refetches (they're in the
2708
- * query key). Metrics are Google's authoritative per-level numbers — no roll-up.
2709
- */
2710
- type UseAdTreeParams = Pick<GoogleGetAdTreeData['query'], 'since' | 'until' | 'metrics'> & {
2711
- /** The Google Ads connection id (`conn_…`). */
2712
- connectionId: string;
2713
- /** Campaign ids whose subtree to load (the expanded rows). */
2714
- expanded?: string[];
2715
- };
2716
- type UseAdTreeResult = Pick<UseQueryResult<GoogleGetAdTreeResponse, GoogleGetAdTreeError>, 'isLoading' | 'isError' | 'error' | 'refetch'> & {
2717
- /** The campaign roots, each with its loaded children nested under it. */
2718
- tree: AdTreeNode[];
2719
- /** Whether the subtree for an expanded campaign is still loading. */
2720
- isExpanding: (campaignId: string) => boolean;
2721
- };
2722
- declare function useAdTree(params: UseAdTreeParams): UseAdTreeResult;
2723
-
2724
2136
  /**
2725
2137
  * The paved FE path over the generated TanStack Query options. Pass a factory
2726
2138
  * that receives the configured client and returns one of the generated `*Options`
@@ -3105,7 +2517,7 @@ interface TikTokPostPreviewProps {
3105
2517
  * variant (both carry the typed settings/body the card renders). */
3106
2518
  variant: TikTokPreviewVariant;
3107
2519
  /** Live creator info (nickname/avatar, audience options, interaction flags) —
3108
- * TikTok's Required-UX makes this the authoritative creator identity. */
2520
+ * The authoritative creator identity shown on the card. */
3109
2521
  creatorInfo: TikTokCreatorInfo;
3110
2522
  /** Uploaded assets to resolve a compose variant's media ids against (e.g.
3111
2523
  * `useMediaUpload().ready`); a read variant carries its own inline. */
@@ -3131,13 +2543,13 @@ declare const TikTokPostPreview: react.MemoExoticComponent<typeof TikTokPostPrev
3131
2543
  type TikTokTheme = 'light' | 'dark' | 'auto';
3132
2544
 
3133
2545
  /**
3134
- * The TikTok publish/confirmation panel — the Required-UX surface that turns a
3135
- * preview into a compliant publish flow. It composes the editable caption (#2),
3136
- * audience (#5), interaction (#6), commercial disclosure (#7), the video-only
3137
- * AIGC toggle (SHOULD), the processing notice (#10), the consent declaration
3138
- * directly above the button (#8), and the consent-gated Post button (#9) — which
3139
- * fires `onPost` ONLY on an explicit click and is disabled until the post is
3140
- * valid.
2546
+ * The TikTok publish/confirmation panel — the surface that turns a preview into
2547
+ * an explicit publish flow. It composes the editable caption, the photo-only
2548
+ * audience, interactions, commercial disclosure, the video-only AI-generated
2549
+ * toggle, the processing notice, the consent declaration directly above the
2550
+ * button, and the consent-gated Post button — which fires `onPost` ONLY on an
2551
+ * explicit click and is disabled until the post is valid. TikTok publishes every
2552
+ * video publicly, so the audience select is shown for photo posts only.
3141
2553
  *
3142
2554
  * All logic comes from `@postrun/js` (the single source); this is the render.
3143
2555
  */
@@ -3157,7 +2569,7 @@ interface TikTokPublishPanelProps {
3157
2569
  /** The TikTok options value (controlled) + its setter. */
3158
2570
  options: TikTokOptionsValue;
3159
2571
  onOptionsChange: (value: TikTokOptionsValue) => void;
3160
- /** Fired ONLY on an explicit Post click — the affirmative-consent gate (#9). */
2572
+ /** Fired ONLY on an explicit Post click — the affirmative-consent gate. */
3161
2573
  onPost: () => void;
3162
2574
  /** Disable the button + show a busy label while a publish is in flight. */
3163
2575
  posting?: boolean;
@@ -3184,10 +2596,11 @@ interface TikTokCaptionFieldProps {
3184
2596
  declare function TikTokCaptionField({ value, onChange, postType, placeholder, className, style, }: TikTokCaptionFieldProps): react.JSX.Element;
3185
2597
 
3186
2598
  /**
3187
- * The audience / privacy selector — MUST #5. TikTok mandates an explicit choice
3188
- * with NO default, so the select opens on a disabled placeholder and an unchosen
3189
- * value shows the required hint. Options come from the creator's allowed set;
3190
- * branded content drops SELF_ONLY (handled in `audiencePrivacyOptions`).
2599
+ * The audience / privacy selector — PHOTO posts only (TikTok publishes videos
2600
+ * publicly). We make the user choose with NO default, so the select opens on a
2601
+ * disabled placeholder and an unchosen value shows the required hint. Options come from the creator's allowed set;
2602
+ * a private audience stays visible but disabled (with its reason) while branded
2603
+ * content is disclosed (see `audiencePrivacyOptions`).
3191
2604
  */
3192
2605
  declare function AudienceSelect({ creatorInfo, value, onChange, }: {
3193
2606
  creatorInfo: TikTokCreatorInfo;
@@ -3196,8 +2609,8 @@ declare function AudienceSelect({ creatorInfo, value, onChange, }: {
3196
2609
  }): react.JSX.Element;
3197
2610
 
3198
2611
  /**
3199
- * The interaction toggles — MUST #6. Video shows Comment / Duet / Stitch; a photo
3200
- * post shows only Comment (TikTok mandate). None default on; an interaction the
2612
+ * The interaction toggles. Video shows Comment / Duet / Stitch; a photo post
2613
+ * shows only Comment (duet/stitch are video-only). None default on; an interaction the
3201
2614
  * creator forbids renders disabled and forced off. The rows + the forbidden flags
3202
2615
  * come from `interactionRows` (the single source).
3203
2616
  */
@@ -3209,22 +2622,23 @@ declare function InteractionToggles({ creatorInfo, value, onChange, isVideo, }:
3209
2622
  }): react.JSX.Element;
3210
2623
 
3211
2624
  /**
3212
- * Commercial-content disclosure — MUST #7. Off by default. When on, the user must
2625
+ * Commercial-content disclosure. Off by default. When on, the user must
3213
2626
  * pick at least one of "Your brand" / "Branded content" (else the required hint
3214
2627
  * blocks publish), and the resulting label notice is shown verbatim:
3215
2628
  * Your brand → "Your photo/video will be labeled as 'Promotional content'"
3216
2629
  * Branded content→ "Your photo/video will be labeled as 'Paid partnership'"
3217
- * Branded content can't be private (handled in `setBrandKind` / the audience list).
2630
+ * Branded content can't be private: it locks while a private audience is picked.
3218
2631
  */
3219
- declare function CommercialDisclosure({ value, onChange, }: {
2632
+ declare function CommercialDisclosure({ value, onChange, isVideo, }: {
3220
2633
  value: TikTokOptionsValue;
3221
2634
  onChange: (value: TikTokOptionsValue) => void;
2635
+ /** A video has no audience, so a private audience never locks branded content. */
2636
+ isVideo: boolean;
3222
2637
  }): react.JSX.Element;
3223
2638
 
3224
2639
  /**
3225
- * The consent declaration — MUST #8. Rendered DIRECTLY above the Post button. The
3226
- * wording switches on whether the post is disclosed as branded content (verbatim
3227
- * TikTok copy):
2640
+ * The consent declaration, rendered DIRECTLY above the Post button. The wording
2641
+ * switches on whether the post is disclosed as branded content (TikTok's own copy):
3228
2642
  * default → "By posting, you agree to TikTok's Music Usage Confirmation"
3229
2643
  * branded → "By posting, you agree to TikTok's Branded Content Policy and
3230
2644
  * Music Usage Confirmation."
@@ -3233,4 +2647,4 @@ declare function Declaration({ brandedContent }: {
3233
2647
  brandedContent: boolean;
3234
2648
  }): react.JSX.Element;
3235
2649
 
3236
- export { ArticleCard, type ArticleCardProps, AudienceSelect, type CalendarFilters, CommercialDisclosure, Connect, type ConnectErrorReason, type ConnectOutcome, type ConnectProps, type ConnectRenderApi, type ConnectState, type ConnectionsFilter, Declaration, type DiscoverableAccount, DocumentCard, type DocumentCardProps, type InfiniteList, InstagramPostPreview, type InstagramPostPreviewProps, type InstagramPreviewVariant, type InstagramTheme, InteractionToggles, LinkedInPostPreview, type LinkedInPostPreviewProps, type LinkedInPreviewVariant, type LiveOptions, type MediaUploadItem, type MediaUploadOptions, type MediaUploadStatus, Poll, type PollProps, type PostrunContextValue, PostrunProvider, type PostrunProviderProps, type PreviewConnection, type PreviewMediaKind, type ReadPostVariant, type ReadyMedia, ReelPreview, type ReelPreviewProps, type ResolvedMedia, TikTokCaptionField, type TikTokCaptionFieldProps, TikTokPostPreview, type TikTokPostPreviewProps, type TikTokPreviewVariant, TikTokPublishPanel, type TikTokPublishPanelProps, type TikTokTheme, type UseAdTreeParams, type UseAdTreeResult, type UseConnectParams, type UseConnectResult, type UseMediaUploadOptions, type UseMediaUploadResult, XPoll, type XPollProps, XPostPreview, type XPostPreviewProps, type XPreviewQuotedTweet, type XPreviewVariant, connectionKeys, isReadyMedia, mediaKeys, postKeys, profileKeys, resolveVariantMedia, tiktokKeys, useAdTree, useCalendar, useConnect, useConnection, useConnections, useCreatePost, useCreateProfile, useDeleteMedia, useDeletePost, useDeleteProfile, useDisconnect, useDiscoverableAccounts, useInfiniteList, useMedia, useMediaInfinite, useMediaList, useMediaUpload, usePost, usePostrun, usePostrunMutation, usePostrunQuery, usePosts, usePostsInfinite, useProfile, useProfiles, useProfilesInfinite, useSelectAccount, useTikTokCreatorInfo, useUpdateMedia, useUpdatePost, useUpdateProfile, useValidatePost };
2650
+ export { ArticleCard, type ArticleCardProps, AudienceSelect, type CalendarFilters, CommercialDisclosure, Connect, type ConnectErrorReason, type ConnectOutcome, type ConnectProps, type ConnectRenderApi, type ConnectState, type ConnectionsFilter, Declaration, type DiscoverableAccount, DocumentCard, type DocumentCardProps, type InfiniteList, InstagramPostPreview, type InstagramPostPreviewProps, type InstagramPreviewVariant, type InstagramTheme, InteractionToggles, LinkedInPostPreview, type LinkedInPostPreviewProps, type LinkedInPreviewVariant, type LiveOptions, type MediaUploadItem, type MediaUploadOptions, type MediaUploadStatus, Poll, type PollProps, type PostrunContextValue, PostrunProvider, type PostrunProviderProps, type PreviewConnection, type PreviewMediaKind, type ReadPostVariant, type ReadyMedia, ReelPreview, type ReelPreviewProps, type ResolvedMedia, TikTokCaptionField, type TikTokCaptionFieldProps, TikTokPostPreview, type TikTokPostPreviewProps, type TikTokPreviewVariant, TikTokPublishPanel, type TikTokPublishPanelProps, type TikTokTheme, type UseConnectParams, type UseConnectResult, type UseMediaUploadOptions, type UseMediaUploadResult, XPoll, type XPollProps, XPostPreview, type XPostPreviewProps, type XPreviewQuotedTweet, type XPreviewVariant, connectionKeys, isReadyMedia, mediaKeys, postKeys, profileKeys, resolveVariantMedia, tiktokKeys, useCalendar, useConnect, useConnection, useConnections, useCreatePost, useCreateProfile, useDeleteMedia, useDeletePost, useDeleteProfile, useDisconnect, useDiscoverableAccounts, useInfiniteList, useMedia, useMediaInfinite, useMediaList, useMediaUpload, usePost, usePostrun, usePostrunMutation, usePostrunQuery, usePosts, usePostsInfinite, useProfile, useProfiles, useProfilesInfinite, useSelectAccount, useTikTokCreatorInfo, useUpdateMedia, useUpdatePost, useUpdateProfile, useValidatePost };