@postrun/js 4.0.0 → 4.2.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.
@@ -363,7 +363,7 @@ type ClientOptions = {
363
363
  *
364
364
  * The closed set of machine-readable Postrun error codes. Branch on this. Each links to https://docs.postrun.ai/errors/<code>.
365
365
  */
366
- type ErrorCode = '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';
366
+ type ErrorCode = '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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
367
367
  /**
368
368
  * Structured detail from the wrapped platform: its own error code, the offending field path + value, and its request id (for that platform’s support).
369
369
  */
@@ -415,7 +415,13 @@ type Media = {
415
415
  */
416
416
  format: string;
417
417
  bytes: number;
418
+ /**
419
+ * Display width in pixels (a video’s rotation applied).
420
+ */
418
421
  width: number | null;
422
+ /**
423
+ * Display height in pixels (a video’s rotation applied).
424
+ */
419
425
  height: number | null;
420
426
  duration_ms: number | null;
421
427
  } | null;
@@ -482,7 +488,7 @@ type Connection = {
482
488
  /**
483
489
  * Social platform a connection targets. `meta_ads`, `google_ads`, and `tiktok_ads` are legacy values from removed ads support; they can no longer be connected.
484
490
  */
485
- platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
491
+ platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube';
486
492
  kind: ConnectionKind;
487
493
  status: ConnectionStatus;
488
494
  /**
@@ -730,7 +736,7 @@ type PostVariant = {
730
736
  published_at: string;
731
737
  } | null;
732
738
  error: {
733
- 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';
739
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
734
740
  message: string;
735
741
  source?: ErrorSource;
736
742
  /**
@@ -851,7 +857,7 @@ type PostVariant = {
851
857
  published_at: string;
852
858
  } | null;
853
859
  error: {
854
- 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';
860
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
855
861
  message: string;
856
862
  source?: ErrorSource;
857
863
  /**
@@ -912,7 +918,7 @@ type PostVariant = {
912
918
  published_at: string;
913
919
  } | null;
914
920
  error: {
915
- 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';
921
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
916
922
  message: string;
917
923
  source?: ErrorSource;
918
924
  /**
@@ -1006,7 +1012,7 @@ type PostVariant = {
1006
1012
  published_at: string;
1007
1013
  } | null;
1008
1014
  error: {
1009
- 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';
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' | 'tiktok_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
1010
1016
  message: string;
1011
1017
  source?: ErrorSource;
1012
1018
  /**
@@ -1103,7 +1109,52 @@ type PostVariant = {
1103
1109
  published_at: string;
1104
1110
  } | null;
1105
1111
  error: {
1106
- 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';
1112
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
1113
+ message: string;
1114
+ source?: ErrorSource;
1115
+ /**
1116
+ * A short, friendly end-user line for `code` (render verbatim). `message` stays developer-grade; this is the display string.
1117
+ */
1118
+ display_error: string;
1119
+ } | null;
1120
+ media: Array<{
1121
+ media_id: string;
1122
+ /**
1123
+ * Ordering of this media within the variant (e.g. carousel order).
1124
+ */
1125
+ position: number;
1126
+ /**
1127
+ * Per-variant alt text; falls back to the asset’s alt_text.
1128
+ */
1129
+ alt_text_override: string | null;
1130
+ media: Media;
1131
+ }>;
1132
+ } | {
1133
+ platform: 'youtube';
1134
+ settings: YouTubePostSettings;
1135
+ id: string;
1136
+ object: 'post_variant';
1137
+ /**
1138
+ * The post shape, DERIVED from the media (the customer never sends it). null only while the shape is undetermined — referenced media is still being probed (kind not yet known), or the current media/settings combination has no valid shape for this platform. (A text-capable platform with zero media derives `text`, not null.)
1139
+ */
1140
+ post_type: PostType | null;
1141
+ /**
1142
+ * The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
1143
+ */
1144
+ connection_id: string | null;
1145
+ body: string | null;
1146
+ status: PostVariantStatus;
1147
+ /**
1148
+ * Per-variant schedule override (ISO-8601); null inherits the post.
1149
+ */
1150
+ schedule_at: string | null;
1151
+ result: {
1152
+ platform_post_id: string;
1153
+ permalink: string | null;
1154
+ published_at: string;
1155
+ } | null;
1156
+ error: {
1157
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
1107
1158
  message: string;
1108
1159
  source?: ErrorSource;
1109
1160
  /**
@@ -1124,6 +1175,39 @@ type PostVariant = {
1124
1175
  media: Media;
1125
1176
  }>;
1126
1177
  };
1178
+ /**
1179
+ * YouTube video settings (videos and Shorts).
1180
+ */
1181
+ type YouTubePostSettings = {
1182
+ /**
1183
+ * The video title, ≤100 characters, without < or >. Required to publish.
1184
+ */
1185
+ title?: string;
1186
+ /**
1187
+ * Who can watch the video. Required to publish.
1188
+ */
1189
+ privacy_status?: 'public' | 'unlisted' | 'private';
1190
+ /**
1191
+ * Whether the video is made for kids. Omit it and no declaration is sent.
1192
+ */
1193
+ self_declared_made_for_kids?: boolean;
1194
+ /**
1195
+ * Disclose that the video contains realistic altered or synthetic content.
1196
+ */
1197
+ contains_synthetic_media?: boolean;
1198
+ /**
1199
+ * Keyword tags, ≤500 characters in total. YouTube counts the commas between tags, and the quotes around a tag that contains a space.
1200
+ */
1201
+ tags?: Array<string>;
1202
+ /**
1203
+ * The YouTube video category id.
1204
+ */
1205
+ category_id?: string;
1206
+ /**
1207
+ * Optional custom thumbnail, referenced by OUR media id.
1208
+ */
1209
+ thumbnail_media_id?: string;
1210
+ };
1127
1211
  /**
1128
1212
  * A TikTok account's publish options, fetched live from TikTok. privacy_options are the audiences available for photo posts (videos are always published publicly). The interaction flags say which of Comment/Duet/Stitch the account allows (true = ALLOWED); an unavailable interaction can only be disabled on a post. max_video_duration_sec caps a video's length for this account.
1129
1213
  */
@@ -1141,6 +1225,454 @@ type TikTokCreatorInfo = {
1141
1225
  };
1142
1226
  max_video_duration_sec: number;
1143
1227
  };
1228
+ /**
1229
+ * Metrics for each of a post’s variants, read live from each platform.
1230
+ */
1231
+ type PostAnalytics = {
1232
+ object: 'post_analytics';
1233
+ post_id: string;
1234
+ /**
1235
+ * When Postrun read these metrics from the platform.
1236
+ */
1237
+ fetched_at: string;
1238
+ variants: Array<PostVariantAnalytics>;
1239
+ };
1240
+ /**
1241
+ * One variant’s metrics. Exactly one of `metrics` and `error` is set: `error` explains why there are no metrics (`analytics_not_supported` or `analytics_no_data`).
1242
+ */
1243
+ type PostVariantAnalytics = {
1244
+ variant_id: string;
1245
+ /**
1246
+ * The connected account this variant published to. null when that connection was removed.
1247
+ */
1248
+ connection_id: string | null;
1249
+ platform: PostPlatform;
1250
+ metrics: PostMetrics | null;
1251
+ error: {
1252
+ code: 'analytics_not_supported' | 'analytics_no_data';
1253
+ message: string;
1254
+ /**
1255
+ * A short, friendly end-user line for `code` (render verbatim). `message` stays developer-grade; this is the display string.
1256
+ */
1257
+ display_error: string;
1258
+ } | null;
1259
+ };
1260
+ /**
1261
+ * A connected account’s metrics, read live from the platform.
1262
+ */
1263
+ type ConnectionAnalytics = {
1264
+ object: 'connection_analytics';
1265
+ connection_id: string;
1266
+ /**
1267
+ * When Postrun read these metrics from the platform.
1268
+ */
1269
+ fetched_at: string;
1270
+ metrics: AccountMetrics;
1271
+ };
1272
+ /**
1273
+ * Lifetime metrics for one TikTok post, as reported by TikTok. TikTok updates them 24–48 hours after the activity and stops updating a post 365 days after it was published. A metric TikTok did not report is null.
1274
+ */
1275
+ type TikTokPostMetrics = {
1276
+ platform: 'tiktok';
1277
+ /**
1278
+ * Times the post was viewed, organic and paid.
1279
+ */
1280
+ video_views: number | null;
1281
+ /**
1282
+ * Unique accounts that viewed the post.
1283
+ */
1284
+ reach: number | null;
1285
+ /**
1286
+ * Likes.
1287
+ */
1288
+ likes: number | null;
1289
+ /**
1290
+ * Comments.
1291
+ */
1292
+ comments: number | null;
1293
+ /**
1294
+ * Shares, including in-app sends to friends.
1295
+ */
1296
+ shares: number | null;
1297
+ /**
1298
+ * Times the post was saved to favorites.
1299
+ */
1300
+ favorites: number | null;
1301
+ /**
1302
+ * Average watch time per view, in seconds.
1303
+ */
1304
+ average_time_watched: number | null;
1305
+ /**
1306
+ * Total watch time across all views, in seconds.
1307
+ */
1308
+ total_time_watched: number | null;
1309
+ /**
1310
+ * Share of views that watched the whole video, from 0 to 1.
1311
+ */
1312
+ full_video_watched_rate: number | null;
1313
+ /**
1314
+ * Followers gained from this post.
1315
+ */
1316
+ new_followers: number | null;
1317
+ /**
1318
+ * Profile views from this post. TikTok reports it for Business accounts only.
1319
+ */
1320
+ profile_views: number | null;
1321
+ };
1322
+ /**
1323
+ * A TikTok account’s current totals plus its daily activity, as reported by TikTok. A metric TikTok did not report is null.
1324
+ */
1325
+ type TikTokAccountMetrics = {
1326
+ platform: 'tiktok';
1327
+ /**
1328
+ * Current followers.
1329
+ */
1330
+ followers_count: number | null;
1331
+ /**
1332
+ * Accounts this account follows.
1333
+ */
1334
+ following_count: number | null;
1335
+ /**
1336
+ * Lifetime likes across all of the account’s posts.
1337
+ */
1338
+ total_likes: number | null;
1339
+ /**
1340
+ * Public videos posted by the account.
1341
+ */
1342
+ videos_count: number | null;
1343
+ /**
1344
+ * Up to one row per UTC day for the 60 days ending yesterday, oldest first; accounts younger than 60 days have fewer. TikTok finalizes a day 24–48 hours after it ends, so the newest rows can still change.
1345
+ */
1346
+ daily: Array<TikTokAccountDay>;
1347
+ };
1348
+ /**
1349
+ * One UTC day of account activity.
1350
+ */
1351
+ type TikTokAccountDay = {
1352
+ /**
1353
+ * The UTC day, YYYY-MM-DD.
1354
+ */
1355
+ date: string;
1356
+ /**
1357
+ * Followers on this day.
1358
+ */
1359
+ followers_count: number | null;
1360
+ /**
1361
+ * Followers gained on this day. TikTok reports it only for Advanced Access and Verified Business accounts.
1362
+ */
1363
+ daily_new_followers: number | null;
1364
+ /**
1365
+ * Followers lost on this day. TikTok reports it only for Advanced Access and Verified Business accounts.
1366
+ */
1367
+ daily_lost_followers: number | null;
1368
+ /**
1369
+ * Views across the account’s posts on this day.
1370
+ */
1371
+ video_views: number | null;
1372
+ /**
1373
+ * Profile views on this day.
1374
+ */
1375
+ profile_views: number | null;
1376
+ /**
1377
+ * Likes across the account’s posts on this day. TikTok does not subtract later unlikes.
1378
+ */
1379
+ likes: number | null;
1380
+ /**
1381
+ * Comments across the account’s posts on this day.
1382
+ */
1383
+ comments: number | null;
1384
+ /**
1385
+ * Shares across the account’s posts on this day.
1386
+ */
1387
+ shares: number | null;
1388
+ };
1389
+ /**
1390
+ * Lifetime metrics for one Instagram post, as reported by Meta under Meta’s own names. Single image and carousel posts report different metrics from Reels: a field that does not apply to the post’s type is null, and its description names the types that report it. Meta can take up to 48 hours to report a new post. A metric Meta did not report is null.
1391
+ */
1392
+ type InstagramPostMetrics = {
1393
+ platform: 'instagram';
1394
+ /**
1395
+ * Times the post was played or displayed, including repeats.
1396
+ */
1397
+ views: number | null;
1398
+ /**
1399
+ * Unique accounts that saw the post. Meta estimates it.
1400
+ */
1401
+ reach: number | null;
1402
+ /**
1403
+ * Likes.
1404
+ */
1405
+ likes: number | null;
1406
+ /**
1407
+ * Comments.
1408
+ */
1409
+ comments: number | null;
1410
+ /**
1411
+ * Shares.
1412
+ */
1413
+ shares: number | null;
1414
+ /**
1415
+ * Times the post was saved.
1416
+ */
1417
+ saved: number | null;
1418
+ /**
1419
+ * Times the post was reposted.
1420
+ */
1421
+ reposts: number | null;
1422
+ /**
1423
+ * Likes, saves, comments and shares, minus unlikes, unsaves and deleted comments.
1424
+ */
1425
+ total_interactions: number | null;
1426
+ /**
1427
+ * Accounts that followed after seeing the post. Single image and carousel posts only.
1428
+ */
1429
+ follows: number | null;
1430
+ /**
1431
+ * Profile visits from the post. Single image and carousel posts only.
1432
+ */
1433
+ profile_visits: number | null;
1434
+ /**
1435
+ * Actions taken on the profile (such as tapping email, call or directions) after engaging with the post. Single image and carousel posts only.
1436
+ */
1437
+ profile_activity: number | null;
1438
+ /**
1439
+ * Average watch time per play, in milliseconds. Reels only.
1440
+ */
1441
+ ig_reels_avg_watch_time: number | null;
1442
+ /**
1443
+ * Total watch time across all plays, including replays, in milliseconds. Reels only.
1444
+ */
1445
+ ig_reels_video_view_total_time: number | null;
1446
+ /**
1447
+ * Percentage of plays skipped within the first 3 seconds. Meta estimates it. Reels only.
1448
+ */
1449
+ reels_skip_rate: number | null;
1450
+ };
1451
+ /**
1452
+ * An Instagram account’s current totals, its last 30 days and its daily reach, as reported by Meta under Meta’s own names. A metric Meta did not report is null.
1453
+ */
1454
+ type InstagramAccountMetrics = {
1455
+ platform: 'instagram';
1456
+ /**
1457
+ * Current followers.
1458
+ */
1459
+ followers_count: number | null;
1460
+ /**
1461
+ * Accounts this account follows.
1462
+ */
1463
+ follows_count: number | null;
1464
+ /**
1465
+ * Posts published by the account.
1466
+ */
1467
+ media_count: number | null;
1468
+ /**
1469
+ * Totals for the last 30 days.
1470
+ */
1471
+ last_30_days: {
1472
+ /**
1473
+ * Times the account’s content was played or displayed, including repeats.
1474
+ */
1475
+ views: number | null;
1476
+ /**
1477
+ * Unique accounts that saw the account’s content. Meta estimates it.
1478
+ */
1479
+ reach: number | null;
1480
+ /**
1481
+ * Accounts that interacted with the account’s content. Meta estimates it.
1482
+ */
1483
+ accounts_engaged: number | null;
1484
+ /**
1485
+ * Likes, saves, comments, shares, reposts and replies on the account’s content.
1486
+ */
1487
+ total_interactions: number | null;
1488
+ /**
1489
+ * Likes on the account’s content.
1490
+ */
1491
+ likes: number | null;
1492
+ /**
1493
+ * Comments on the account’s content.
1494
+ */
1495
+ comments: number | null;
1496
+ /**
1497
+ * Shares of the account’s content.
1498
+ */
1499
+ shares: number | null;
1500
+ /**
1501
+ * Saves of the account’s content (Meta’s account-level name for a post’s `saved`).
1502
+ */
1503
+ saves: number | null;
1504
+ /**
1505
+ * Reposts of the account’s content.
1506
+ */
1507
+ reposts: number | null;
1508
+ /**
1509
+ * Replies to the account’s stories.
1510
+ */
1511
+ replies: number | null;
1512
+ /**
1513
+ * Taps on the profile’s contact buttons (address, call, email, text).
1514
+ */
1515
+ profile_links_taps: number | null;
1516
+ /**
1517
+ * Follows and unfollows, keyed by Meta’s `follow_type`. Meta reports it only for accounts with 100 or more followers.
1518
+ */
1519
+ follows_and_unfollows: {
1520
+ [key: string]: number;
1521
+ } | null;
1522
+ };
1523
+ /**
1524
+ * Up to one row per day for the last 30 days, oldest first. Reach is the only account metric Meta reports per day.
1525
+ */
1526
+ daily: Array<InstagramAccountDay>;
1527
+ };
1528
+ /**
1529
+ * One day of Instagram account reach.
1530
+ */
1531
+ type InstagramAccountDay = {
1532
+ /**
1533
+ * The day the row covers, YYYY-MM-DD. Meta reports days on Pacific time.
1534
+ */
1535
+ date: string;
1536
+ /**
1537
+ * Unique accounts that saw the account’s content on this day. Meta estimates it.
1538
+ */
1539
+ reach: number | null;
1540
+ };
1541
+ /**
1542
+ * Lifetime metrics for one Facebook Page post or Reel, as reported by Meta under Meta’s own names. Text, photo and album posts report different metrics from Reels: a field that does not apply is null, and its description says which reports it. Meta reports no reach for Reels. A metric Meta did not report is null.
1543
+ */
1544
+ type FacebookPostMetrics = {
1545
+ platform: 'facebook_page';
1546
+ /**
1547
+ * Times the post was played or displayed, including repeats. Text, photo and album posts only.
1548
+ */
1549
+ post_media_view: number | null;
1550
+ /**
1551
+ * Unique accounts the post was played or displayed to. Text, photo and album posts only.
1552
+ */
1553
+ post_total_media_view_unique: number | null;
1554
+ /**
1555
+ * Reactions by type, keyed by Meta’s reaction type (for example `like`, `love`); `like` includes care reactions. Text, photo and album posts only.
1556
+ */
1557
+ post_reactions_by_type_total: {
1558
+ [key: string]: number;
1559
+ } | null;
1560
+ /**
1561
+ * Clicks anywhere on the post. Text, photo and album posts only.
1562
+ */
1563
+ post_clicks: number | null;
1564
+ /**
1565
+ * Clicks by type, keyed by Meta’s click type (for example `link clicks`, `photo view`). Text, photo and album posts only.
1566
+ */
1567
+ post_clicks_by_type: {
1568
+ [key: string]: number;
1569
+ } | null;
1570
+ /**
1571
+ * Comments, including replies. Text, photo and album posts only.
1572
+ */
1573
+ comments: number | null;
1574
+ /**
1575
+ * Shares. Text, photo and album posts only.
1576
+ */
1577
+ shares: number | null;
1578
+ /**
1579
+ * Plays that lasted at least 1 ms, not counting replays. Reels only.
1580
+ */
1581
+ blue_reels_play_count: number | null;
1582
+ /**
1583
+ * Plays, including replays. Reels only.
1584
+ */
1585
+ fb_reels_total_plays: number | null;
1586
+ /**
1587
+ * Replays. Reels only.
1588
+ */
1589
+ fb_reels_replay_count: number | null;
1590
+ /**
1591
+ * Average watch time per play, in milliseconds. Reels only.
1592
+ */
1593
+ post_video_avg_time_watched: number | null;
1594
+ /**
1595
+ * Total watch time across all plays, including replays, in milliseconds. Reels only.
1596
+ */
1597
+ post_video_view_time: number | null;
1598
+ /**
1599
+ * Followers gained from the Reel. Reels only.
1600
+ */
1601
+ post_video_followers: number | null;
1602
+ /**
1603
+ * Reactions by type, keyed by Meta’s reaction type. Reels only.
1604
+ */
1605
+ post_video_likes_by_reaction_type: {
1606
+ [key: string]: number;
1607
+ } | null;
1608
+ };
1609
+ /**
1610
+ * A Facebook Page’s current followers plus its daily activity, as reported by Meta under Meta’s own names. Meta reports Page insights only for Pages with 100 or more likes, and they leave out Reels interactions. A metric Meta did not report is null.
1611
+ */
1612
+ type FacebookPageMetrics = {
1613
+ platform: 'facebook_page';
1614
+ /**
1615
+ * Current followers.
1616
+ */
1617
+ followers_count: number | null;
1618
+ /**
1619
+ * Up to one row per day for the last 90 days, oldest first. Meta updates Page insights about once a day.
1620
+ */
1621
+ daily: Array<FacebookPageDay>;
1622
+ };
1623
+ /**
1624
+ * One day of Facebook Page activity.
1625
+ */
1626
+ type FacebookPageDay = {
1627
+ /**
1628
+ * The day the row covers, YYYY-MM-DD. Meta reports days on Pacific time.
1629
+ */
1630
+ date: string;
1631
+ /**
1632
+ * Times the Page’s content was played or displayed, including repeats.
1633
+ */
1634
+ page_media_view: number | null;
1635
+ /**
1636
+ * Unique accounts the Page’s content was played or displayed to.
1637
+ */
1638
+ page_total_media_view_unique: number | null;
1639
+ /**
1640
+ * Followers at the end of the day.
1641
+ */
1642
+ page_follows: number | null;
1643
+ /**
1644
+ * Accounts that followed the Page.
1645
+ */
1646
+ page_daily_follows_unique: number | null;
1647
+ /**
1648
+ * Accounts that unfollowed the Page.
1649
+ */
1650
+ page_daily_unfollows_unique: number | null;
1651
+ /**
1652
+ * Reactions, comments, shares and clicks on the Page’s posts.
1653
+ */
1654
+ page_post_engagements: number | null;
1655
+ /**
1656
+ * Views of the Page’s profile.
1657
+ */
1658
+ page_views_total: number | null;
1659
+ /**
1660
+ * Times the Page’s videos played for at least 3 seconds.
1661
+ */
1662
+ page_video_views: number | null;
1663
+ /**
1664
+ * Clicks on the Page’s contact info and call-to-action button.
1665
+ */
1666
+ page_total_actions: number | null;
1667
+ };
1668
+ /**
1669
+ * One variant’s metrics in its network’s own shape. Branch on `platform`.
1670
+ */
1671
+ type PostMetrics = TikTokPostMetrics | InstagramPostMetrics | FacebookPostMetrics;
1672
+ /**
1673
+ * A connected account’s metrics in its network’s own shape. Branch on `platform`.
1674
+ */
1675
+ type AccountMetrics = TikTokAccountMetrics | InstagramAccountMetrics | FacebookPageMetrics;
1144
1676
  /**
1145
1677
  * An external account reachable through a connection’s OAuth grant, offered for selection.
1146
1678
  */
@@ -1224,8 +1756,8 @@ type ConnectSession = {
1224
1756
  type MediaKind = 'image' | 'video' | 'gif' | 'document';
1225
1757
  type MediaStatus = 'uploading' | 'processing' | 'ready' | 'failed';
1226
1758
  type MediaStage = 'queued' | 'analyzing' | 'transcoding' | 'done';
1227
- type PostPlatform = 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
1228
- type PostType = 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
1759
+ type PostPlatform = 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube';
1760
+ type PostType = 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel' | 'short';
1229
1761
  type PostStatus = 'draft' | 'scheduled' | 'publishing' | 'partially_published' | 'published' | 'failed';
1230
1762
  type PostVariantStatus = 'draft' | 'scheduled' | 'publishing' | 'published' | 'failed';
1231
1763
  /**
@@ -1589,10 +2121,31 @@ type PostVariantInput = {
1589
2121
  */
1590
2122
  is_ai_generated?: boolean;
1591
2123
  /**
1592
- * Publish as an "Only show in ads" video: it stays off the public profile and is used only in ads. Video posts only.
2124
+ * Publish as an "Only show in ads" video: it stays off the public profile and is used only in ads. Video posts only.
2125
+ */
2126
+ is_ads_only?: boolean;
2127
+ };
2128
+ /**
2129
+ * The connected account this variant publishes to.
2130
+ */
2131
+ connection_id: string;
2132
+ /**
2133
+ * Caption / commentary / message for the post.
2134
+ */
2135
+ body?: string;
2136
+ /**
2137
+ * Ordered media references; the count drives the post-type rules.
2138
+ */
2139
+ media?: Array<{
2140
+ media_id: string;
2141
+ /**
2142
+ * Per-variant alt text; falls back to the asset's.
1593
2143
  */
1594
- is_ads_only?: boolean;
1595
- };
2144
+ alt_text_override?: string | null;
2145
+ }>;
2146
+ } | {
2147
+ platform: 'youtube';
2148
+ settings?: YouTubePostSettings;
1596
2149
  /**
1597
2150
  * The connected account this variant publishes to.
1598
2151
  */
@@ -1618,7 +2171,7 @@ type CreatePostBody = {
1618
2171
  */
1619
2172
  profile_id: string;
1620
2173
  /**
1621
- * now = publish immediately; schedule = publish at schedule_at; draft = store only.
2174
+ * now = publish immediately — the response is the post in its current state; if it is still `publishing`, use the `post.*` webhooks or poll `GET /v1/posts/{id}`. schedule = publish at schedule_at. draft = store only.
1622
2175
  */
1623
2176
  publish?: 'now' | 'schedule' | 'draft';
1624
2177
  /**
@@ -3886,9 +4439,9 @@ type ConnectionsListAccountsResponse = ConnectionsListAccountsResponses[keyof Co
3886
4439
  type ConnectionsConnectData = {
3887
4440
  body: {
3888
4441
  /**
3889
- * A platform a connection can start an OAuth connect flow for (X, LinkedIn, Facebook Pages, Instagram, TikTok).
4442
+ * A platform a connection can start an OAuth connect flow for (X, LinkedIn, Facebook Pages, Instagram, TikTok, YouTube).
3890
4443
  */
3891
- platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
4444
+ platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube';
3892
4445
  };
3893
4446
  headers?: {
3894
4447
  /**
@@ -3902,21 +4455,267 @@ type ConnectionsConnectData = {
3902
4455
  */
3903
4456
  id: string;
3904
4457
  };
3905
- query?: never;
3906
- url: '/profiles/{id}/connect';
3907
- };
3908
- type ConnectionsConnectErrors = {
4458
+ query?: never;
4459
+ url: '/profiles/{id}/connect';
4460
+ };
4461
+ type ConnectionsConnectErrors = {
4462
+ /**
4463
+ * An RFC 9457 problem response.
4464
+ */
4465
+ 400: {
4466
+ type: string;
4467
+ title: string;
4468
+ status: number;
4469
+ /**
4470
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4471
+ */
4472
+ code: 'idempotency_key_invalid';
4473
+ display_error: string;
4474
+ detail?: string;
4475
+ request_id?: string;
4476
+ source?: ErrorSource;
4477
+ errors?: Array<{
4478
+ field: string;
4479
+ code: string;
4480
+ detail: string;
4481
+ display_error: string;
4482
+ hint?: string;
4483
+ allowed?: Array<string>;
4484
+ got?: string;
4485
+ }>;
4486
+ };
4487
+ /**
4488
+ * An RFC 9457 problem response.
4489
+ */
4490
+ 401: {
4491
+ type: string;
4492
+ title: string;
4493
+ status: number;
4494
+ /**
4495
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4496
+ */
4497
+ code: 'unauthorized';
4498
+ display_error: string;
4499
+ detail?: string;
4500
+ request_id?: string;
4501
+ source?: ErrorSource;
4502
+ errors?: Array<{
4503
+ field: string;
4504
+ code: string;
4505
+ detail: string;
4506
+ display_error: string;
4507
+ hint?: string;
4508
+ allowed?: Array<string>;
4509
+ got?: string;
4510
+ }>;
4511
+ };
4512
+ /**
4513
+ * An RFC 9457 problem response.
4514
+ */
4515
+ 403: {
4516
+ type: string;
4517
+ title: string;
4518
+ status: number;
4519
+ /**
4520
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4521
+ */
4522
+ code: 'forbidden';
4523
+ display_error: string;
4524
+ detail?: string;
4525
+ request_id?: string;
4526
+ source?: ErrorSource;
4527
+ errors?: Array<{
4528
+ field: string;
4529
+ code: string;
4530
+ detail: string;
4531
+ display_error: string;
4532
+ hint?: string;
4533
+ allowed?: Array<string>;
4534
+ got?: string;
4535
+ }>;
4536
+ };
4537
+ /**
4538
+ * An RFC 9457 problem response.
4539
+ */
4540
+ 404: {
4541
+ type: string;
4542
+ title: string;
4543
+ status: number;
4544
+ /**
4545
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4546
+ */
4547
+ code: 'not_found';
4548
+ display_error: string;
4549
+ detail?: string;
4550
+ request_id?: string;
4551
+ source?: ErrorSource;
4552
+ errors?: Array<{
4553
+ field: string;
4554
+ code: string;
4555
+ detail: string;
4556
+ display_error: string;
4557
+ hint?: string;
4558
+ allowed?: Array<string>;
4559
+ got?: string;
4560
+ }>;
4561
+ };
4562
+ /**
4563
+ * An RFC 9457 problem response.
4564
+ */
4565
+ 409: {
4566
+ type: string;
4567
+ title: string;
4568
+ status: number;
4569
+ /**
4570
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4571
+ */
4572
+ code: 'conflict' | 'idempotency_request_in_progress';
4573
+ display_error: string;
4574
+ detail?: string;
4575
+ request_id?: string;
4576
+ source?: ErrorSource;
4577
+ errors?: Array<{
4578
+ field: string;
4579
+ code: string;
4580
+ detail: string;
4581
+ display_error: string;
4582
+ hint?: string;
4583
+ allowed?: Array<string>;
4584
+ got?: string;
4585
+ }>;
4586
+ };
4587
+ /**
4588
+ * An RFC 9457 problem response.
4589
+ */
4590
+ 422: {
4591
+ type: string;
4592
+ title: string;
4593
+ status: number;
4594
+ /**
4595
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4596
+ */
4597
+ code: 'idempotency_key_reused';
4598
+ display_error: string;
4599
+ detail?: string;
4600
+ request_id?: string;
4601
+ source?: ErrorSource;
4602
+ errors?: Array<{
4603
+ field: string;
4604
+ code: string;
4605
+ detail: string;
4606
+ display_error: string;
4607
+ hint?: string;
4608
+ allowed?: Array<string>;
4609
+ got?: string;
4610
+ }>;
4611
+ };
4612
+ /**
4613
+ * An RFC 9457 problem response.
4614
+ */
4615
+ 429: {
4616
+ type: string;
4617
+ title: string;
4618
+ status: number;
4619
+ /**
4620
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4621
+ */
4622
+ code: 'rate_limited';
4623
+ display_error: string;
4624
+ detail?: string;
4625
+ request_id?: string;
4626
+ source?: ErrorSource;
4627
+ errors?: Array<{
4628
+ field: string;
4629
+ code: string;
4630
+ detail: string;
4631
+ display_error: string;
4632
+ hint?: string;
4633
+ allowed?: Array<string>;
4634
+ got?: string;
4635
+ }>;
4636
+ };
4637
+ };
4638
+ type ConnectionsConnectError = ConnectionsConnectErrors[keyof ConnectionsConnectErrors];
4639
+ type ConnectionsConnectResponses = {
4640
+ /**
4641
+ * OK
4642
+ */
4643
+ 201: ConnectSession;
4644
+ };
4645
+ type ConnectionsConnectResponse = ConnectionsConnectResponses[keyof ConnectionsConnectResponses];
4646
+ type ConnectionsGetAnalyticsData = {
4647
+ body?: never;
4648
+ path: {
4649
+ /**
4650
+ * Connection id.
4651
+ */
4652
+ id: string;
4653
+ };
4654
+ query?: never;
4655
+ url: '/connections/{id}/analytics';
4656
+ };
4657
+ type ConnectionsGetAnalyticsErrors = {
4658
+ /**
4659
+ * An RFC 9457 problem response.
4660
+ */
4661
+ 400: {
4662
+ type: string;
4663
+ title: string;
4664
+ status: number;
4665
+ /**
4666
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4667
+ */
4668
+ code: 'idempotency_key_invalid';
4669
+ display_error: string;
4670
+ detail?: string;
4671
+ request_id?: string;
4672
+ source?: ErrorSource;
4673
+ errors?: Array<{
4674
+ field: string;
4675
+ code: string;
4676
+ detail: string;
4677
+ display_error: string;
4678
+ hint?: string;
4679
+ allowed?: Array<string>;
4680
+ got?: string;
4681
+ }>;
4682
+ };
4683
+ /**
4684
+ * An RFC 9457 problem response.
4685
+ */
4686
+ 401: {
4687
+ type: string;
4688
+ title: string;
4689
+ status: number;
4690
+ /**
4691
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4692
+ */
4693
+ code: 'unauthorized';
4694
+ display_error: string;
4695
+ detail?: string;
4696
+ request_id?: string;
4697
+ source?: ErrorSource;
4698
+ errors?: Array<{
4699
+ field: string;
4700
+ code: string;
4701
+ detail: string;
4702
+ display_error: string;
4703
+ hint?: string;
4704
+ allowed?: Array<string>;
4705
+ got?: string;
4706
+ }>;
4707
+ };
3909
4708
  /**
3910
4709
  * An RFC 9457 problem response.
3911
4710
  */
3912
- 400: {
4711
+ 403: {
3913
4712
  type: string;
3914
4713
  title: string;
3915
4714
  status: number;
3916
4715
  /**
3917
4716
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3918
4717
  */
3919
- code: 'idempotency_key_invalid';
4718
+ code: 'forbidden';
3920
4719
  display_error: string;
3921
4720
  detail?: string;
3922
4721
  request_id?: string;
@@ -3934,14 +4733,14 @@ type ConnectionsConnectErrors = {
3934
4733
  /**
3935
4734
  * An RFC 9457 problem response.
3936
4735
  */
3937
- 401: {
4736
+ 404: {
3938
4737
  type: string;
3939
4738
  title: string;
3940
4739
  status: number;
3941
4740
  /**
3942
4741
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3943
4742
  */
3944
- code: 'unauthorized';
4743
+ code: 'not_found';
3945
4744
  display_error: string;
3946
4745
  detail?: string;
3947
4746
  request_id?: string;
@@ -3959,14 +4758,14 @@ type ConnectionsConnectErrors = {
3959
4758
  /**
3960
4759
  * An RFC 9457 problem response.
3961
4760
  */
3962
- 403: {
4761
+ 409: {
3963
4762
  type: string;
3964
4763
  title: string;
3965
4764
  status: number;
3966
4765
  /**
3967
4766
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3968
4767
  */
3969
- code: 'forbidden';
4768
+ code: 'conflict' | 'idempotency_request_in_progress' | 'connection_reauth_required';
3970
4769
  display_error: string;
3971
4770
  detail?: string;
3972
4771
  request_id?: string;
@@ -3984,14 +4783,14 @@ type ConnectionsConnectErrors = {
3984
4783
  /**
3985
4784
  * An RFC 9457 problem response.
3986
4785
  */
3987
- 404: {
4786
+ 422: {
3988
4787
  type: string;
3989
4788
  title: string;
3990
4789
  status: number;
3991
4790
  /**
3992
4791
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3993
4792
  */
3994
- code: 'not_found';
4793
+ code: 'idempotency_key_reused';
3995
4794
  display_error: string;
3996
4795
  detail?: string;
3997
4796
  request_id?: string;
@@ -4009,14 +4808,14 @@ type ConnectionsConnectErrors = {
4009
4808
  /**
4010
4809
  * An RFC 9457 problem response.
4011
4810
  */
4012
- 409: {
4811
+ 429: {
4013
4812
  type: string;
4014
4813
  title: string;
4015
4814
  status: number;
4016
4815
  /**
4017
4816
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4018
4817
  */
4019
- code: 'conflict' | 'idempotency_request_in_progress';
4818
+ code: 'rate_limited';
4020
4819
  display_error: string;
4021
4820
  detail?: string;
4022
4821
  request_id?: string;
@@ -4034,14 +4833,14 @@ type ConnectionsConnectErrors = {
4034
4833
  /**
4035
4834
  * An RFC 9457 problem response.
4036
4835
  */
4037
- 422: {
4836
+ 501: {
4038
4837
  type: string;
4039
4838
  title: string;
4040
4839
  status: number;
4041
4840
  /**
4042
4841
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4043
4842
  */
4044
- code: 'idempotency_key_reused';
4843
+ code: 'not_implemented';
4045
4844
  display_error: string;
4046
4845
  detail?: string;
4047
4846
  request_id?: string;
@@ -4059,14 +4858,14 @@ type ConnectionsConnectErrors = {
4059
4858
  /**
4060
4859
  * An RFC 9457 problem response.
4061
4860
  */
4062
- 429: {
4861
+ 502: {
4063
4862
  type: string;
4064
4863
  title: string;
4065
4864
  status: number;
4066
4865
  /**
4067
4866
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
4068
4867
  */
4069
- code: 'rate_limited';
4868
+ code: 'tiktok_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_unavailable';
4070
4869
  display_error: string;
4071
4870
  detail?: string;
4072
4871
  request_id?: string;
@@ -4082,14 +4881,14 @@ type ConnectionsConnectErrors = {
4082
4881
  }>;
4083
4882
  };
4084
4883
  };
4085
- type ConnectionsConnectError = ConnectionsConnectErrors[keyof ConnectionsConnectErrors];
4086
- type ConnectionsConnectResponses = {
4884
+ type ConnectionsGetAnalyticsError = ConnectionsGetAnalyticsErrors[keyof ConnectionsGetAnalyticsErrors];
4885
+ type ConnectionsGetAnalyticsResponses = {
4087
4886
  /**
4088
4887
  * OK
4089
4888
  */
4090
- 201: ConnectSession;
4889
+ 200: ConnectionAnalytics;
4091
4890
  };
4092
- type ConnectionsConnectResponse = ConnectionsConnectResponses[keyof ConnectionsConnectResponses];
4891
+ type ConnectionsGetAnalyticsResponse = ConnectionsGetAnalyticsResponses[keyof ConnectionsGetAnalyticsResponses];
4093
4892
  type MediaListData = {
4094
4893
  body?: never;
4095
4894
  path?: never;
@@ -4625,7 +5424,13 @@ type MediaCreateResponses = {
4625
5424
  */
4626
5425
  format: string;
4627
5426
  bytes: number;
5427
+ /**
5428
+ * Display width in pixels (a video’s rotation applied).
5429
+ */
4628
5430
  width: number | null;
5431
+ /**
5432
+ * Display height in pixels (a video’s rotation applied).
5433
+ */
4629
5434
  height: number | null;
4630
5435
  duration_ms: number | null;
4631
5436
  } | null;
@@ -6975,6 +7780,9 @@ type PostsGetResponses = {
6975
7780
  type PostsGetResponse = PostsGetResponses[keyof PostsGetResponses];
6976
7781
  type PostsUpdateData = {
6977
7782
  body?: {
7783
+ /**
7784
+ * now = publish immediately — the response is the post in its current state; if it is still `publishing`, use the `post.*` webhooks or poll `GET /v1/posts/{id}`. schedule = publish at schedule_at. draft = store only.
7785
+ */
6978
7786
  publish?: 'now' | 'schedule' | 'draft';
6979
7787
  schedule_at?: string | null;
6980
7788
  external_id?: string | null;
@@ -7597,7 +8405,7 @@ type PostsValidateResponses = {
7597
8405
  object: 'validation';
7598
8406
  publishable: boolean;
7599
8407
  issues: Array<{
7600
- 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';
8408
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
7601
8409
  message: string;
7602
8410
  hint?: string;
7603
8411
  allowed?: Array<string>;
@@ -7617,6 +8425,227 @@ type PostsValidateResponses = {
7617
8425
  };
7618
8426
  };
7619
8427
  type PostsValidateResponse = PostsValidateResponses[keyof PostsValidateResponses];
8428
+ type PostsGetAnalyticsData = {
8429
+ body?: never;
8430
+ path: {
8431
+ /**
8432
+ * The post id.
8433
+ */
8434
+ id: string;
8435
+ };
8436
+ query?: never;
8437
+ url: '/posts/{id}/analytics';
8438
+ };
8439
+ type PostsGetAnalyticsErrors = {
8440
+ /**
8441
+ * An RFC 9457 problem response.
8442
+ */
8443
+ 400: {
8444
+ type: string;
8445
+ title: string;
8446
+ status: number;
8447
+ /**
8448
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8449
+ */
8450
+ code: 'idempotency_key_invalid';
8451
+ display_error: string;
8452
+ detail?: string;
8453
+ request_id?: string;
8454
+ source?: ErrorSource;
8455
+ errors?: Array<{
8456
+ field: string;
8457
+ code: string;
8458
+ detail: string;
8459
+ display_error: string;
8460
+ hint?: string;
8461
+ allowed?: Array<string>;
8462
+ got?: string;
8463
+ }>;
8464
+ };
8465
+ /**
8466
+ * An RFC 9457 problem response.
8467
+ */
8468
+ 401: {
8469
+ type: string;
8470
+ title: string;
8471
+ status: number;
8472
+ /**
8473
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8474
+ */
8475
+ code: 'unauthorized';
8476
+ display_error: string;
8477
+ detail?: string;
8478
+ request_id?: string;
8479
+ source?: ErrorSource;
8480
+ errors?: Array<{
8481
+ field: string;
8482
+ code: string;
8483
+ detail: string;
8484
+ display_error: string;
8485
+ hint?: string;
8486
+ allowed?: Array<string>;
8487
+ got?: string;
8488
+ }>;
8489
+ };
8490
+ /**
8491
+ * An RFC 9457 problem response.
8492
+ */
8493
+ 403: {
8494
+ type: string;
8495
+ title: string;
8496
+ status: number;
8497
+ /**
8498
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8499
+ */
8500
+ code: 'forbidden';
8501
+ display_error: string;
8502
+ detail?: string;
8503
+ request_id?: string;
8504
+ source?: ErrorSource;
8505
+ errors?: Array<{
8506
+ field: string;
8507
+ code: string;
8508
+ detail: string;
8509
+ display_error: string;
8510
+ hint?: string;
8511
+ allowed?: Array<string>;
8512
+ got?: string;
8513
+ }>;
8514
+ };
8515
+ /**
8516
+ * An RFC 9457 problem response.
8517
+ */
8518
+ 404: {
8519
+ type: string;
8520
+ title: string;
8521
+ status: number;
8522
+ /**
8523
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8524
+ */
8525
+ code: 'not_found';
8526
+ display_error: string;
8527
+ detail?: string;
8528
+ request_id?: string;
8529
+ source?: ErrorSource;
8530
+ errors?: Array<{
8531
+ field: string;
8532
+ code: string;
8533
+ detail: string;
8534
+ display_error: string;
8535
+ hint?: string;
8536
+ allowed?: Array<string>;
8537
+ got?: string;
8538
+ }>;
8539
+ };
8540
+ /**
8541
+ * An RFC 9457 problem response.
8542
+ */
8543
+ 409: {
8544
+ type: string;
8545
+ title: string;
8546
+ status: number;
8547
+ /**
8548
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8549
+ */
8550
+ code: 'conflict' | 'idempotency_request_in_progress' | 'connection_reauth_required';
8551
+ display_error: string;
8552
+ detail?: string;
8553
+ request_id?: string;
8554
+ source?: ErrorSource;
8555
+ errors?: Array<{
8556
+ field: string;
8557
+ code: string;
8558
+ detail: string;
8559
+ display_error: string;
8560
+ hint?: string;
8561
+ allowed?: Array<string>;
8562
+ got?: string;
8563
+ }>;
8564
+ };
8565
+ /**
8566
+ * An RFC 9457 problem response.
8567
+ */
8568
+ 422: {
8569
+ type: string;
8570
+ title: string;
8571
+ status: number;
8572
+ /**
8573
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8574
+ */
8575
+ code: 'idempotency_key_reused';
8576
+ display_error: string;
8577
+ detail?: string;
8578
+ request_id?: string;
8579
+ source?: ErrorSource;
8580
+ errors?: Array<{
8581
+ field: string;
8582
+ code: string;
8583
+ detail: string;
8584
+ display_error: string;
8585
+ hint?: string;
8586
+ allowed?: Array<string>;
8587
+ got?: string;
8588
+ }>;
8589
+ };
8590
+ /**
8591
+ * An RFC 9457 problem response.
8592
+ */
8593
+ 429: {
8594
+ type: string;
8595
+ title: string;
8596
+ status: number;
8597
+ /**
8598
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8599
+ */
8600
+ code: 'rate_limited';
8601
+ display_error: string;
8602
+ detail?: string;
8603
+ request_id?: string;
8604
+ source?: ErrorSource;
8605
+ errors?: Array<{
8606
+ field: string;
8607
+ code: string;
8608
+ detail: string;
8609
+ display_error: string;
8610
+ hint?: string;
8611
+ allowed?: Array<string>;
8612
+ got?: string;
8613
+ }>;
8614
+ };
8615
+ /**
8616
+ * An RFC 9457 problem response.
8617
+ */
8618
+ 502: {
8619
+ type: string;
8620
+ title: string;
8621
+ status: number;
8622
+ /**
8623
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
8624
+ */
8625
+ code: 'tiktok_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_unavailable';
8626
+ display_error: string;
8627
+ detail?: string;
8628
+ request_id?: string;
8629
+ source?: ErrorSource;
8630
+ errors?: Array<{
8631
+ field: string;
8632
+ code: string;
8633
+ detail: string;
8634
+ display_error: string;
8635
+ hint?: string;
8636
+ allowed?: Array<string>;
8637
+ got?: string;
8638
+ }>;
8639
+ };
8640
+ };
8641
+ type PostsGetAnalyticsError = PostsGetAnalyticsErrors[keyof PostsGetAnalyticsErrors];
8642
+ type PostsGetAnalyticsResponses = {
8643
+ /**
8644
+ * OK
8645
+ */
8646
+ 200: PostAnalytics;
8647
+ };
8648
+ type PostsGetAnalyticsResponse = PostsGetAnalyticsResponses[keyof PostsGetAnalyticsResponses];
7620
8649
  type TiktokCreatorInfoData = {
7621
8650
  body?: never;
7622
8651
  path: {
@@ -7861,7 +8890,7 @@ type LogsListData = {
7861
8890
  /**
7862
8891
  * Only logs targeting this platform.
7863
8892
  */
7864
- platform?: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
8893
+ platform?: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube';
7865
8894
  /**
7866
8895
  * Only logs with this outcome.
7867
8896
  */
@@ -8099,7 +9128,7 @@ type LogsListResponses = {
8099
9128
  /**
8100
9129
  * Platform the action targeted, or null.
8101
9130
  */
8102
- platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | null;
9131
+ platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube' | null;
8103
9132
  /**
8104
9133
  * HTTP method of the originating request, or null.
8105
9134
  */
@@ -8123,7 +9152,7 @@ type LogsListResponses = {
8123
9152
  /**
8124
9153
  * Stable, machine-readable error code from the closed registry.
8125
9154
  */
8126
- 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';
9155
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
8127
9156
  /**
8128
9157
  * Human-readable, non-sensitive message.
8129
9158
  */
@@ -8146,7 +9175,7 @@ type LogsListResponses = {
8146
9175
  * The connected account this variant targets. null when that connection was removed before publish.
8147
9176
  */
8148
9177
  connection_id: string | null;
8149
- platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
9178
+ platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube';
8150
9179
  status: 'draft' | 'scheduled' | 'publishing' | 'published' | 'failed';
8151
9180
  platform_post_id: string | null;
8152
9181
  permalink: string | null;
@@ -8155,7 +9184,7 @@ type LogsListResponses = {
8155
9184
  /**
8156
9185
  * The typed error code the variant carries.
8157
9186
  */
8158
- 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';
9187
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
8159
9188
  message: string;
8160
9189
  source?: ErrorSource;
8161
9190
  /**
@@ -8170,7 +9199,7 @@ type LogsListResponses = {
8170
9199
  /**
8171
9200
  * The typed error code the variant carries.
8172
9201
  */
8173
- 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';
9202
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
8174
9203
  message: string;
8175
9204
  source?: ErrorSource;
8176
9205
  /**
@@ -8453,7 +9482,7 @@ type LogsGetResponses = {
8453
9482
  /**
8454
9483
  * Platform the action targeted, or null.
8455
9484
  */
8456
- platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | null;
9485
+ platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube' | null;
8457
9486
  /**
8458
9487
  * HTTP method of the originating request, or null.
8459
9488
  */
@@ -8477,7 +9506,7 @@ type LogsGetResponses = {
8477
9506
  /**
8478
9507
  * Stable, machine-readable error code from the closed registry.
8479
9508
  */
8480
- 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';
9509
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
8481
9510
  /**
8482
9511
  * Human-readable, non-sensitive message.
8483
9512
  */
@@ -8500,7 +9529,7 @@ type LogsGetResponses = {
8500
9529
  * The connected account this variant targets. null when that connection was removed before publish.
8501
9530
  */
8502
9531
  connection_id: string | null;
8503
- platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
9532
+ platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok' | 'youtube';
8504
9533
  status: 'draft' | 'scheduled' | 'publishing' | 'published' | 'failed';
8505
9534
  platform_post_id: string | null;
8506
9535
  permalink: string | null;
@@ -8509,7 +9538,7 @@ type LogsGetResponses = {
8509
9538
  /**
8510
9539
  * The typed error code the variant carries.
8511
9540
  */
8512
- 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';
9541
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
8513
9542
  message: string;
8514
9543
  source?: ErrorSource;
8515
9544
  /**
@@ -8524,7 +9553,7 @@ type LogsGetResponses = {
8524
9553
  /**
8525
9554
  * The typed error code the variant carries.
8526
9555
  */
8527
- 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';
9556
+ 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_analytics_unavailable' | 'instagram_analytics_unavailable' | 'facebook_analytics_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' | 'title_too_long' | 'characters_not_allowed' | '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' | 'youtube_long_upload_not_allowed' | 'youtube_not_authorized' | 'youtube_daily_limit_reached' | 'youtube_upload_failed' | 'youtube_upload_unconfirmed' | 'youtube_video_rejected' | 'youtube_processing_failed' | 'youtube_thumbnail_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' | 'analytics_not_supported' | 'analytics_no_data';
8528
9557
  message: string;
8529
9558
  source?: ErrorSource;
8530
9559
  /**
@@ -10568,4 +11597,4 @@ type TokensMintResponses = {
10568
11597
  };
10569
11598
  type TokensMintResponse = TokensMintResponses[keyof TokensMintResponses];
10570
11599
 
10571
- export { type MediaUpdateData as $, type MediaCompleteData as A, type MediaCompleteResponses as B, type Client as C, type MediaCompleteErrors as D, type MediaCreateData as E, type MediaCreateResponses as F, type MediaCreateErrors as G, type MediaDeleteData as H, type MediaDeleteResponses as I, type MediaDeleteErrors as J, type MediaGetData as K, type LogsGetData as L, type MediaAbortData as M, type MediaGetResponses as N, type Options as O, type MediaGetErrors as P, type MediaListData as Q, type RequestResult as R, type MediaListResponses as S, type TDataShape as T, type MediaListErrors as U, type MediaListPartsData as V, type MediaListPartsResponses as W, type MediaListPartsErrors as X, type MediaSignPartData as Y, type MediaSignPartResponses as Z, type MediaSignPartErrors as _, type ClientMeta as a, type WebhooksPingResponses as a$, type MediaUpdateResponses as a0, type MediaUpdateErrors as a1, type PostsCreateData as a2, type PostsCreateResponses as a3, type PostsCreateErrors as a4, type PostsDeleteData as a5, type PostsDeleteResponses as a6, type PostsDeleteErrors as a7, type PostsGetData as a8, type PostsGetResponses as a9, type ProfilesUpdateResponses as aA, type ProfilesUpdateErrors as aB, type TiktokCreatorInfoData as aC, type TiktokCreatorInfoResponses as aD, type TiktokCreatorInfoErrors as aE, type TokensMintData as aF, type TokensMintResponses as aG, type TokensMintErrors as aH, type WebhooksCreateEndpointData as aI, type WebhooksCreateEndpointResponses as aJ, type WebhooksCreateEndpointErrors as aK, type WebhooksCreatePortalData as aL, type WebhooksCreatePortalResponses as aM, type WebhooksCreatePortalErrors as aN, type WebhooksDeleteEndpointData as aO, type WebhooksDeleteEndpointResponses as aP, type WebhooksDeleteEndpointErrors as aQ, type WebhooksGetEndpointData as aR, type WebhooksGetEndpointResponses as aS, type WebhooksGetEndpointErrors as aT, type WebhooksListEndpointsData as aU, type WebhooksListEndpointsResponses as aV, type WebhooksListEndpointsErrors as aW, type WebhooksListEventTypesData as aX, type WebhooksListEventTypesResponses as aY, type WebhooksListEventTypesErrors as aZ, type WebhooksPingData as a_, type PostsGetErrors as aa, type PostsListData as ab, type PostsListResponses as ac, type PostsListErrors as ad, type PostsRetryData as ae, type PostsRetryResponses as af, type PostsRetryErrors as ag, type PostsUpdateData as ah, type PostsUpdateResponses as ai, type PostsUpdateErrors as aj, type PostsValidateData as ak, type PostsValidateResponses as al, type PostsValidateErrors as am, type ProfilesCreateData as an, type ProfilesCreateResponses as ao, type ProfilesCreateErrors as ap, type ProfilesDeleteData as aq, type ProfilesDeleteResponses as ar, type ProfilesDeleteErrors as as, type ProfilesGetData as at, type ProfilesGetResponses as au, type ProfilesGetErrors as av, type ProfilesListData as aw, type ProfilesListResponses as ax, type ProfilesListErrors as ay, type ProfilesUpdateData as az, type ConnectionsConnectData as b, type PostsRetryResponse as b$, type WebhooksPingErrors as b0, type WebhooksUpdateEndpointData as b1, type WebhooksUpdateEndpointResponses as b2, type WebhooksUpdateEndpointErrors as b3, type ErrorCode as b4, type TiktokCreatorInfoResponse as b5, type MediaGetResponse as b6, type ConnectionsConnectResponse as b7, type ConnectionsGetResponse as b8, type ConnectionsListByProfileResponse as b9, type Media as bA, type MediaAbortError as bB, type MediaAbortResponse as bC, type MediaCompleteError as bD, type MediaCompleteResponse as bE, type MediaCreateError as bF, type MediaDeleteError as bG, type MediaDeleteResponse as bH, type MediaGetError as bI, type MediaListError as bJ, type MediaListPartsError as bK, type MediaListPartsResponse as bL, type MediaSignPartError as bM, type MediaSignPartResponse as bN, type MediaStage as bO, type MediaUpdateError as bP, type MediaUpdateResponse as bQ, type PostVariantStatus as bR, type PostWriteResult as bS, type PostrunClientOptions as bT, type PostsCreateError as bU, type PostsCreateResponse as bV, type PostsDeleteError as bW, type PostsDeleteResponse as bX, type PostsGetError as bY, type PostsListError as bZ, type PostsRetryError as b_, type MediaCreateResponse as ba, type ConnectionsListAccountsResponse as bb, type MediaListResponse as bc, type PostsGetResponse as bd, type PostsListResponse as be, type PostsValidateResponse as bf, type ProfilesGetResponse as bg, type ProfilesListResponse as bh, type PostrunClient as bi, type ClientOptions as bj, type ConnectionsConnectError as bk, type ConnectionsDeleteError as bl, type ConnectionsDeleteResponse as bm, type ConnectionsGetError as bn, type ConnectionsListAccountsError as bo, type ConnectionsListByProfileError as bp, type ConnectionsSelectError as bq, type ConnectionsSelectResponse as br, type CreatePostBody as bs, type DiscoverableAccount as bt, type ErrorSource as bu, type IdempotencyKey as bv, type LogsGetError as bw, type LogsGetResponse as bx, type LogsListError as by, type LogsListResponse as bz, type ConnectionsConnectResponses as c, type PostsUpdateError as c0, type PostsUpdateResponse as c1, type PostsValidateError as c2, type ProfilesCreateError as c3, type ProfilesCreateResponse as c4, type ProfilesDeleteError as c5, type ProfilesDeleteResponse as c6, type ProfilesGetError as c7, type ProfilesListError as c8, type ProfilesUpdateError as c9, type ProfilesUpdateResponse as ca, type TiktokCreatorInfoError as cb, type TokensMintError as cc, type TokensMintResponse as cd, type WebhooksCreateEndpointError as ce, type WebhooksCreateEndpointResponse as cf, type WebhooksCreatePortalError as cg, type WebhooksCreatePortalResponse as ch, type WebhooksDeleteEndpointError as ci, type WebhooksDeleteEndpointResponse as cj, type WebhooksGetEndpointError as ck, type WebhooksGetEndpointResponse as cl, type WebhooksListEndpointsError as cm, type WebhooksListEndpointsResponse as cn, type WebhooksListEventTypesError as co, type WebhooksListEventTypesResponse as cp, type WebhooksPingError as cq, type WebhooksPingResponse as cr, type WebhooksUpdateEndpointError as cs, type WebhooksUpdateEndpointResponse as ct, createPostrunClient as cu, type ConnectionsConnectErrors as d, type ConnectionsDeleteData as e, type ConnectionsDeleteResponses as f, type ConnectionsDeleteErrors as g, type ConnectionsGetData as h, type ConnectionsGetResponses as i, type ConnectionsGetErrors as j, type ConnectionsListAccountsData as k, type ConnectionsListAccountsResponses as l, type ConnectionsListAccountsErrors as m, type ConnectionsListByProfileData as n, type ConnectionsListByProfileResponses as o, type ConnectionsListByProfileErrors as p, type ConnectionsSelectData as q, type ConnectionsSelectResponses as r, type ConnectionsSelectErrors as s, type LogsGetResponses as t, type LogsGetErrors as u, type LogsListData as v, type LogsListResponses as w, type LogsListErrors as x, type MediaAbortResponses as y, type MediaAbortErrors as z };
11600
+ export { type MediaSignPartData as $, type LogsListErrors as A, type MediaAbortResponses as B, type Client as C, type MediaAbortErrors as D, type MediaCompleteData as E, type MediaCompleteResponses as F, type MediaCompleteErrors as G, type MediaCreateData as H, type MediaCreateResponses as I, type MediaCreateErrors as J, type MediaDeleteData as K, type LogsGetData as L, type MediaAbortData as M, type MediaDeleteResponses as N, type Options as O, type MediaDeleteErrors as P, type MediaGetData as Q, type RequestResult as R, type MediaGetResponses as S, type TDataShape as T, type MediaGetErrors as U, type MediaListData as V, type MediaListResponses as W, type MediaListErrors as X, type MediaListPartsData as Y, type MediaListPartsResponses as Z, type MediaListPartsErrors as _, type ClientMeta as a, type WebhooksListEndpointsResponses as a$, type MediaSignPartResponses as a0, type MediaSignPartErrors as a1, type MediaUpdateData as a2, type MediaUpdateResponses as a3, type MediaUpdateErrors as a4, type PostsCreateData as a5, type PostsCreateResponses as a6, type PostsCreateErrors as a7, type PostsDeleteData as a8, type PostsDeleteResponses as a9, type ProfilesGetResponses as aA, type ProfilesGetErrors as aB, type ProfilesListData as aC, type ProfilesListResponses as aD, type ProfilesListErrors as aE, type ProfilesUpdateData as aF, type ProfilesUpdateResponses as aG, type ProfilesUpdateErrors as aH, type TiktokCreatorInfoData as aI, type TiktokCreatorInfoResponses as aJ, type TiktokCreatorInfoErrors as aK, type TokensMintData as aL, type TokensMintResponses as aM, type TokensMintErrors as aN, type WebhooksCreateEndpointData as aO, type WebhooksCreateEndpointResponses as aP, type WebhooksCreateEndpointErrors as aQ, type WebhooksCreatePortalData as aR, type WebhooksCreatePortalResponses as aS, type WebhooksCreatePortalErrors as aT, type WebhooksDeleteEndpointData as aU, type WebhooksDeleteEndpointResponses as aV, type WebhooksDeleteEndpointErrors as aW, type WebhooksGetEndpointData as aX, type WebhooksGetEndpointResponses as aY, type WebhooksGetEndpointErrors as aZ, type WebhooksListEndpointsData as a_, type PostsDeleteErrors as aa, type PostsGetData as ab, type PostsGetResponses as ac, type PostsGetErrors as ad, type PostsGetAnalyticsData as ae, type PostsGetAnalyticsResponses as af, type PostsGetAnalyticsErrors as ag, type PostsListData as ah, type PostsListResponses as ai, type PostsListErrors as aj, type PostsRetryData as ak, type PostsRetryResponses as al, type PostsRetryErrors as am, type PostsUpdateData as an, type PostsUpdateResponses as ao, type PostsUpdateErrors as ap, type PostsValidateData as aq, type PostsValidateResponses as ar, type PostsValidateErrors as as, type ProfilesCreateData as at, type ProfilesCreateResponses as au, type ProfilesCreateErrors as av, type ProfilesDeleteData as aw, type ProfilesDeleteResponses as ax, type ProfilesDeleteErrors as ay, type ProfilesGetData as az, type ConnectionsConnectData as b, type MediaListError as b$, type WebhooksListEndpointsErrors as b0, type WebhooksListEventTypesData as b1, type WebhooksListEventTypesResponses as b2, type WebhooksListEventTypesErrors as b3, type WebhooksPingData as b4, type WebhooksPingResponses as b5, type WebhooksPingErrors as b6, type WebhooksUpdateEndpointData as b7, type WebhooksUpdateEndpointResponses as b8, type WebhooksUpdateEndpointErrors as b9, type ConnectionsListAccountsError as bA, type ConnectionsListByProfileError as bB, type ConnectionsSelectError as bC, type ConnectionsSelectResponse as bD, type CreatePostBody as bE, type DiscoverableAccount as bF, type ErrorSource as bG, type FacebookPageDay as bH, type FacebookPageMetrics as bI, type FacebookPostMetrics as bJ, type IdempotencyKey as bK, type InstagramAccountDay as bL, type InstagramAccountMetrics as bM, type InstagramPostMetrics as bN, type LogsGetError as bO, type LogsGetResponse as bP, type LogsListError as bQ, type LogsListResponse as bR, type Media as bS, type MediaAbortError as bT, type MediaAbortResponse as bU, type MediaCompleteError as bV, type MediaCompleteResponse as bW, type MediaCreateError as bX, type MediaDeleteError as bY, type MediaDeleteResponse as bZ, type MediaGetError as b_, type ErrorCode as ba, type TiktokCreatorInfoResponse as bb, type MediaGetResponse as bc, type ConnectionsConnectResponse as bd, type ConnectionsGetResponse as be, type ConnectionsListByProfileResponse as bf, type MediaCreateResponse as bg, type ConnectionsListAccountsResponse as bh, type MediaListResponse as bi, type PostsGetResponse as bj, type PostsListResponse as bk, type PostsValidateResponse as bl, type ProfilesGetResponse as bm, type ProfilesListResponse as bn, type PostrunClient as bo, type AccountMetrics as bp, type PostVariantStatus as bq, type PostMetrics as br, type ClientOptions as bs, type ConnectionAnalytics as bt, type ConnectionsConnectError as bu, type ConnectionsDeleteError as bv, type ConnectionsDeleteResponse as bw, type ConnectionsGetAnalyticsError as bx, type ConnectionsGetAnalyticsResponse as by, type ConnectionsGetError as bz, type ConnectionsConnectResponses as c, type MediaListPartsError as c0, type MediaListPartsResponse as c1, type MediaSignPartError as c2, type MediaSignPartResponse as c3, type MediaStage as c4, type MediaUpdateError as c5, type MediaUpdateResponse as c6, type PostAnalytics as c7, type PostVariantAnalytics as c8, type PostWriteResult as c9, type TokensMintError as cA, type TokensMintResponse as cB, type WebhooksCreateEndpointError as cC, type WebhooksCreateEndpointResponse as cD, type WebhooksCreatePortalError as cE, type WebhooksCreatePortalResponse as cF, type WebhooksDeleteEndpointError as cG, type WebhooksDeleteEndpointResponse as cH, type WebhooksGetEndpointError as cI, type WebhooksGetEndpointResponse as cJ, type WebhooksListEndpointsError as cK, type WebhooksListEndpointsResponse as cL, type WebhooksListEventTypesError as cM, type WebhooksListEventTypesResponse as cN, type WebhooksPingError as cO, type WebhooksPingResponse as cP, type WebhooksUpdateEndpointError as cQ, type WebhooksUpdateEndpointResponse as cR, type YouTubePostSettings as cS, createPostrunClient as cT, type PostrunClientOptions as ca, type PostsCreateError as cb, type PostsCreateResponse as cc, type PostsDeleteError as cd, type PostsDeleteResponse as ce, type PostsGetAnalyticsError as cf, type PostsGetAnalyticsResponse as cg, type PostsGetError as ch, type PostsListError as ci, type PostsRetryError as cj, type PostsRetryResponse as ck, type PostsUpdateError as cl, type PostsUpdateResponse as cm, type PostsValidateError as cn, type ProfilesCreateError as co, type ProfilesCreateResponse as cp, type ProfilesDeleteError as cq, type ProfilesDeleteResponse as cr, type ProfilesGetError as cs, type ProfilesListError as ct, type ProfilesUpdateError as cu, type ProfilesUpdateResponse as cv, type TikTokAccountDay as cw, type TikTokAccountMetrics as cx, type TikTokPostMetrics as cy, type TiktokCreatorInfoError as cz, type ConnectionsConnectErrors as d, type ConnectionsDeleteData as e, type ConnectionsDeleteResponses as f, type ConnectionsDeleteErrors as g, type ConnectionsGetData as h, type ConnectionsGetResponses as i, type ConnectionsGetErrors as j, type ConnectionsGetAnalyticsData as k, type ConnectionsGetAnalyticsResponses as l, type ConnectionsGetAnalyticsErrors as m, type ConnectionsListAccountsData as n, type ConnectionsListAccountsResponses as o, type ConnectionsListAccountsErrors as p, type ConnectionsListByProfileData as q, type ConnectionsListByProfileResponses as r, type ConnectionsListByProfileErrors as s, type ConnectionsSelectData as t, type ConnectionsSelectResponses as u, type ConnectionsSelectErrors as v, type LogsGetResponses as w, type LogsGetErrors as x, type LogsListData as y, type LogsListResponses as z };