@postrun/react 2.13.0 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2,7 +2,8 @@ import * as react from 'react';
2
2
  import { ReactNode, CSSProperties } from 'react';
3
3
  import * as _tanstack_react_query from '@tanstack/react-query';
4
4
  import { QueryClient, QueryKey } from '@tanstack/react-query';
5
- import { PostrunClient, ListProfilesQuery, DiscoverableAccountList, Connection, ConnectionKind, ConnectionStatus, ListMediaQuery, ListPostsQuery, ConnectablePlatform, MediaResource, MediaTarget, Metadata, ComposePostInput, PostValidation, MediaKind, InstagramPostVariant, PostVariant, LinkedInPostVariant, TikTokPostVariant, XPostVariant, XPoll as XPoll$1, TikTokCreatorInfo, TikTokOptionsValue } from '@postrun/js';
5
+ import * as _postrun_js from '@postrun/js';
6
+ import { PostrunClient, ListProfilesQuery, DiscoverableAccountList, Connection, ConnectionKind, ConnectionStatus, ListMediaQuery, ListPostsQuery, ConnectablePlatform, MediaResource, MediaTarget, Metadata, ComposePostInput, PostValidation, MediaKind, InstagramPostVariant, PostVariant, LinkedInPostVariant, TikTokPostVariant, XPostVariant, PostVariantInput, XPoll as XPoll$1, TikTokCreatorInfo, TikTokOptionsValue } from '@postrun/js';
6
7
  export { PostValidation, PostVariant, PostVariantError, TIKTOK_CAPTION_MAX, TikTokCreatorInfo, UploadError, ValidationIssue, captionMaxFor } from '@postrun/js';
7
8
  import { TwitterComponents } from 'react-tweet';
8
9
 
@@ -303,8 +304,8 @@ declare const mediaKeys: {
303
304
  limit?: number;
304
305
  offset?: number;
305
306
  profile_id?: string;
306
- status?: "uploading" | "processing" | "ready" | "failed";
307
- kind?: "image" | "video" | "gif" | "document";
307
+ status?: "failed" | "uploading" | "processing" | "ready";
308
+ kind?: "video" | "image" | "gif" | "document";
308
309
  external_id?: string;
309
310
  metadata?: {
310
311
  [key: string]: string | number | boolean;
@@ -314,8 +315,8 @@ declare const mediaKeys: {
314
315
  limit?: number;
315
316
  offset?: number;
316
317
  profile_id?: string;
317
- status?: "uploading" | "processing" | "ready" | "failed";
318
- kind?: "image" | "video" | "gif" | "document";
318
+ status?: "failed" | "uploading" | "processing" | "ready";
319
+ kind?: "video" | "image" | "gif" | "document";
319
320
  external_id?: string;
320
321
  metadata?: {
321
322
  [key: string]: string | number | boolean;
@@ -479,21 +480,7 @@ declare function useConnection(id: string): _tanstack_react_query.UseQueryResult
479
480
  /** List the accounts discoverable on a pending connection (for selection). */
480
481
  declare function useDiscoverableAccounts(id: string): _tanstack_react_query.UseQueryResult<NoInfer<{
481
482
  object: "list";
482
- data: Array<{
483
- external_account_id: string;
484
- name: string | null;
485
- currency: string | null;
486
- username?: string | null;
487
- avatar_url?: string | null;
488
- profile_url?: string | null;
489
- instagram?: {
490
- external_account_id: string;
491
- name: string | null;
492
- username?: string | null;
493
- avatar_url?: string | null;
494
- profile_url?: string | null;
495
- } | null;
496
- }>;
483
+ data: Array<_postrun_js.DiscoverableAccount>;
497
484
  }>, Error>;
498
485
  /** Select an account on a pending connection, activating it. */
499
486
  declare function useSelectAccount(): _tanstack_react_query.UseMutationResult<{
@@ -662,66 +649,7 @@ interface UseMediaUploadOptions {
662
649
  */
663
650
  declare function useMediaUpload(options?: UseMediaUploadOptions): UseMediaUploadResult;
664
651
  /** Retrieve a media asset; auto-polls while it is still uploading/processing. */
665
- declare function useMedia(id: string): _tanstack_react_query.UseQueryResult<NoInfer<{
666
- id: string;
667
- object: "media";
668
- profile_id: string;
669
- kind: "image" | "video" | "gif" | "document" | null;
670
- content_type: string | null;
671
- status: "uploading" | "processing" | "ready" | "failed";
672
- progress: {
673
- stage: "queued" | "analyzing" | "transcoding" | "done";
674
- percent: number;
675
- };
676
- raw: boolean;
677
- error: {
678
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
679
- message: string;
680
- hint?: string;
681
- allowed?: Array<string>;
682
- got?: string;
683
- display_error: string;
684
- } | null;
685
- source: {
686
- format: string;
687
- bytes: number;
688
- width: number | null;
689
- height: number | null;
690
- duration_ms: number | null;
691
- } | null;
692
- alt_text: string | null;
693
- per_platform: {
694
- [key: string]: {
695
- status: "processing" | "ready" | "failed";
696
- url: string | null;
697
- width: number | null;
698
- height: number | null;
699
- bytes: number | null;
700
- warnings: Array<{
701
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
702
- message: string;
703
- hint?: string;
704
- allowed?: Array<string>;
705
- got?: string;
706
- display_error: string;
707
- }>;
708
- errors: Array<{
709
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
710
- message: string;
711
- hint?: string;
712
- allowed?: Array<string>;
713
- got?: string;
714
- display_error: string;
715
- }>;
716
- };
717
- };
718
- external_id: string | null;
719
- metadata: {
720
- [key: string]: string | number | boolean;
721
- };
722
- created_at: string;
723
- updated_at: string;
724
- }>, Error>;
652
+ declare function useMedia(id: string): _tanstack_react_query.UseQueryResult<NoInfer<_postrun_js.Media>, Error>;
725
653
  /**
726
654
  * List media assets under the account, newest first. Filter by `profile_id`,
727
655
  * `status`, `kind`, your own `external_id`, or `metadata` (exact-match
@@ -730,66 +658,7 @@ declare function useMedia(id: string): _tanstack_react_query.UseQueryResult<NoIn
730
658
  */
731
659
  declare function useMediaList(query?: ListMediaQuery): _tanstack_react_query.UseQueryResult<NoInfer<{
732
660
  object: "list";
733
- data: Array<{
734
- id: string;
735
- object: "media";
736
- profile_id: string;
737
- kind: "image" | "video" | "gif" | "document" | null;
738
- content_type: string | null;
739
- status: "uploading" | "processing" | "ready" | "failed";
740
- progress: {
741
- stage: "queued" | "analyzing" | "transcoding" | "done";
742
- percent: number;
743
- };
744
- raw: boolean;
745
- error: {
746
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
747
- message: string;
748
- hint?: string;
749
- allowed?: Array<string>;
750
- got?: string;
751
- display_error: string;
752
- } | null;
753
- source: {
754
- format: string;
755
- bytes: number;
756
- width: number | null;
757
- height: number | null;
758
- duration_ms: number | null;
759
- } | null;
760
- alt_text: string | null;
761
- per_platform: {
762
- [key: string]: {
763
- status: "processing" | "ready" | "failed";
764
- url: string | null;
765
- width: number | null;
766
- height: number | null;
767
- bytes: number | null;
768
- warnings: Array<{
769
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
770
- message: string;
771
- hint?: string;
772
- allowed?: Array<string>;
773
- got?: string;
774
- display_error: string;
775
- }>;
776
- errors: Array<{
777
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
778
- message: string;
779
- hint?: string;
780
- allowed?: Array<string>;
781
- got?: string;
782
- display_error: string;
783
- }>;
784
- };
785
- };
786
- external_id: string | null;
787
- metadata: {
788
- [key: string]: string | number | boolean;
789
- };
790
- created_at: string;
791
- updated_at: string;
792
- }>;
661
+ data: Array<_postrun_js.Media>;
793
662
  total: number;
794
663
  limit: number;
795
664
  offset: number;
@@ -802,127 +671,9 @@ declare function useMediaList(query?: ListMediaQuery): _tanstack_react_query.Use
802
671
  */
803
672
  declare function useMediaInfinite(filters?: Omit<ListMediaQuery, 'limit' | 'offset'>, options?: {
804
673
  pageSize?: number;
805
- }): InfiniteList<{
806
- id: string;
807
- object: "media";
808
- profile_id: string;
809
- kind: "image" | "video" | "gif" | "document" | null;
810
- content_type: string | null;
811
- status: "uploading" | "processing" | "ready" | "failed";
812
- progress: {
813
- stage: "queued" | "analyzing" | "transcoding" | "done";
814
- percent: number;
815
- };
816
- raw: boolean;
817
- error: {
818
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
819
- message: string;
820
- hint?: string;
821
- allowed?: Array<string>;
822
- got?: string;
823
- display_error: string;
824
- } | null;
825
- source: {
826
- format: string;
827
- bytes: number;
828
- width: number | null;
829
- height: number | null;
830
- duration_ms: number | null;
831
- } | null;
832
- alt_text: string | null;
833
- per_platform: {
834
- [key: string]: {
835
- status: "processing" | "ready" | "failed";
836
- url: string | null;
837
- width: number | null;
838
- height: number | null;
839
- bytes: number | null;
840
- warnings: Array<{
841
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
842
- message: string;
843
- hint?: string;
844
- allowed?: Array<string>;
845
- got?: string;
846
- display_error: string;
847
- }>;
848
- errors: Array<{
849
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
850
- message: string;
851
- hint?: string;
852
- allowed?: Array<string>;
853
- got?: string;
854
- display_error: string;
855
- }>;
856
- };
857
- };
858
- external_id: string | null;
859
- metadata: {
860
- [key: string]: string | number | boolean;
861
- };
862
- created_at: string;
863
- updated_at: string;
864
- }>;
674
+ }): InfiniteList<_postrun_js.Media>;
865
675
  /** Update a media asset: alt text / metadata / external_id, or extend targets. */
866
- declare function useUpdateMedia(): _tanstack_react_query.UseMutationResult<{
867
- id: string;
868
- object: "media";
869
- profile_id: string;
870
- kind: "image" | "video" | "gif" | "document" | null;
871
- content_type: string | null;
872
- status: "uploading" | "processing" | "ready" | "failed";
873
- progress: {
874
- stage: "queued" | "analyzing" | "transcoding" | "done";
875
- percent: number;
876
- };
877
- raw: boolean;
878
- error: {
879
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
880
- message: string;
881
- hint?: string;
882
- allowed?: Array<string>;
883
- got?: string;
884
- display_error: string;
885
- } | null;
886
- source: {
887
- format: string;
888
- bytes: number;
889
- width: number | null;
890
- height: number | null;
891
- duration_ms: number | null;
892
- } | null;
893
- alt_text: string | null;
894
- per_platform: {
895
- [key: string]: {
896
- status: "processing" | "ready" | "failed";
897
- url: string | null;
898
- width: number | null;
899
- height: number | null;
900
- bytes: number | null;
901
- warnings: Array<{
902
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
903
- message: string;
904
- hint?: string;
905
- allowed?: Array<string>;
906
- got?: string;
907
- display_error: string;
908
- }>;
909
- errors: Array<{
910
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
911
- message: string;
912
- hint?: string;
913
- allowed?: Array<string>;
914
- got?: string;
915
- display_error: string;
916
- }>;
917
- };
918
- };
919
- external_id: string | null;
920
- metadata: {
921
- [key: string]: string | number | boolean;
922
- };
923
- created_at: string;
924
- updated_at: string;
925
- }, Error, {
676
+ declare function useUpdateMedia(): _tanstack_react_query.UseMutationResult<_postrun_js.Media, Error, {
926
677
  id: string;
927
678
  } & {
928
679
  alt_text?: string | null;
@@ -998,7 +749,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
998
749
  object: "post_variant";
999
750
  connection_id: string | null;
1000
751
  body: string | null;
1001
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
752
+ status: _postrun_js.PostVariantStatus;
1002
753
  schedule_at: string | null;
1003
754
  result: {
1004
755
  platform_post_id: string;
@@ -1017,52 +768,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1017
768
  [key: string]: unknown;
1018
769
  } | null;
1019
770
  alt_text_override: string | null;
1020
- media: {
1021
- id: string;
1022
- object: "media";
1023
- profile_id: string;
1024
- kind: "image" | "video" | "gif" | "document" | null;
1025
- content_type: string | null;
1026
- status: "uploading" | "processing" | "ready" | "failed";
1027
- progress: {
1028
- stage: "queued" | "analyzing" | "transcoding" | "done";
1029
- percent: number;
1030
- };
1031
- raw: boolean;
1032
- error: {
1033
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1034
- message: string;
1035
- hint?: string;
1036
- allowed?: Array<unknown | null>;
1037
- got?: string;
1038
- display_error: string;
1039
- } | null;
1040
- source: {
1041
- format: string;
1042
- bytes: number;
1043
- width: number | null;
1044
- height: number | null;
1045
- duration_ms: number | null;
1046
- } | null;
1047
- alt_text: string | null;
1048
- per_platform: {
1049
- [key: string]: {
1050
- status?: unknown;
1051
- url?: unknown;
1052
- width?: unknown;
1053
- height?: unknown;
1054
- bytes?: unknown;
1055
- warnings?: unknown;
1056
- errors?: unknown;
1057
- };
1058
- };
1059
- external_id: string | null;
1060
- metadata: {
1061
- [key: string]: unknown;
1062
- };
1063
- created_at: string;
1064
- updated_at: string;
1065
- };
771
+ media: _postrun_js.Media;
1066
772
  }>;
1067
773
  } | {
1068
774
  platform: "linkedin";
@@ -1095,7 +801,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1095
801
  object: "post_variant";
1096
802
  connection_id: string | null;
1097
803
  body: string | null;
1098
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
804
+ status: _postrun_js.PostVariantStatus;
1099
805
  schedule_at: string | null;
1100
806
  result: {
1101
807
  platform_post_id: string;
@@ -1114,52 +820,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1114
820
  [key: string]: unknown;
1115
821
  } | null;
1116
822
  alt_text_override: string | null;
1117
- media: {
1118
- id: string;
1119
- object: "media";
1120
- profile_id: string;
1121
- kind: "image" | "video" | "gif" | "document" | null;
1122
- content_type: string | null;
1123
- status: "uploading" | "processing" | "ready" | "failed";
1124
- progress: {
1125
- stage: "queued" | "analyzing" | "transcoding" | "done";
1126
- percent: number;
1127
- };
1128
- raw: boolean;
1129
- error: {
1130
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1131
- message: string;
1132
- hint?: string;
1133
- allowed?: Array<unknown | null>;
1134
- got?: string;
1135
- display_error: string;
1136
- } | null;
1137
- source: {
1138
- format: string;
1139
- bytes: number;
1140
- width: number | null;
1141
- height: number | null;
1142
- duration_ms: number | null;
1143
- } | null;
1144
- alt_text: string | null;
1145
- per_platform: {
1146
- [key: string]: {
1147
- status?: unknown;
1148
- url?: unknown;
1149
- width?: unknown;
1150
- height?: unknown;
1151
- bytes?: unknown;
1152
- warnings?: unknown;
1153
- errors?: unknown;
1154
- };
1155
- };
1156
- external_id: string | null;
1157
- metadata: {
1158
- [key: string]: unknown;
1159
- };
1160
- created_at: string;
1161
- updated_at: string;
1162
- };
823
+ media: _postrun_js.Media;
1163
824
  }>;
1164
825
  } | {
1165
826
  platform: "facebook_page";
@@ -1171,7 +832,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1171
832
  object: "post_variant";
1172
833
  connection_id: string | null;
1173
834
  body: string | null;
1174
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
835
+ status: _postrun_js.PostVariantStatus;
1175
836
  schedule_at: string | null;
1176
837
  result: {
1177
838
  platform_post_id: string;
@@ -1190,52 +851,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1190
851
  [key: string]: unknown;
1191
852
  } | null;
1192
853
  alt_text_override: string | null;
1193
- media: {
1194
- id: string;
1195
- object: "media";
1196
- profile_id: string;
1197
- kind: "image" | "video" | "gif" | "document" | null;
1198
- content_type: string | null;
1199
- status: "uploading" | "processing" | "ready" | "failed";
1200
- progress: {
1201
- stage: "queued" | "analyzing" | "transcoding" | "done";
1202
- percent: number;
1203
- };
1204
- raw: boolean;
1205
- error: {
1206
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1207
- message: string;
1208
- hint?: string;
1209
- allowed?: Array<unknown | null>;
1210
- got?: string;
1211
- display_error: string;
1212
- } | null;
1213
- source: {
1214
- format: string;
1215
- bytes: number;
1216
- width: number | null;
1217
- height: number | null;
1218
- duration_ms: number | null;
1219
- } | null;
1220
- alt_text: string | null;
1221
- per_platform: {
1222
- [key: string]: {
1223
- status?: unknown;
1224
- url?: unknown;
1225
- width?: unknown;
1226
- height?: unknown;
1227
- bytes?: unknown;
1228
- warnings?: unknown;
1229
- errors?: unknown;
1230
- };
1231
- };
1232
- external_id: string | null;
1233
- metadata: {
1234
- [key: string]: unknown;
1235
- };
1236
- created_at: string;
1237
- updated_at: string;
1238
- };
854
+ media: _postrun_js.Media;
1239
855
  }>;
1240
856
  } | {
1241
857
  platform: "instagram";
@@ -1258,7 +874,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1258
874
  object: "post_variant";
1259
875
  connection_id: string | null;
1260
876
  body: string | null;
1261
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
877
+ status: _postrun_js.PostVariantStatus;
1262
878
  schedule_at: string | null;
1263
879
  result: {
1264
880
  platform_post_id: string;
@@ -1277,52 +893,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1277
893
  [key: string]: unknown;
1278
894
  } | null;
1279
895
  alt_text_override: string | null;
1280
- media: {
1281
- id: string;
1282
- object: "media";
1283
- profile_id: string;
1284
- kind: "image" | "video" | "gif" | "document" | null;
1285
- content_type: string | null;
1286
- status: "uploading" | "processing" | "ready" | "failed";
1287
- progress: {
1288
- stage: "queued" | "analyzing" | "transcoding" | "done";
1289
- percent: number;
1290
- };
1291
- raw: boolean;
1292
- error: {
1293
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1294
- message: string;
1295
- hint?: string;
1296
- allowed?: Array<unknown | null>;
1297
- got?: string;
1298
- display_error: string;
1299
- } | null;
1300
- source: {
1301
- format: string;
1302
- bytes: number;
1303
- width: number | null;
1304
- height: number | null;
1305
- duration_ms: number | null;
1306
- } | null;
1307
- alt_text: string | null;
1308
- per_platform: {
1309
- [key: string]: {
1310
- status?: unknown;
1311
- url?: unknown;
1312
- width?: unknown;
1313
- height?: unknown;
1314
- bytes?: unknown;
1315
- warnings?: unknown;
1316
- errors?: unknown;
1317
- };
1318
- };
1319
- external_id: string | null;
1320
- metadata: {
1321
- [key: string]: unknown;
1322
- };
1323
- created_at: string;
1324
- updated_at: string;
1325
- };
896
+ media: _postrun_js.Media;
1326
897
  }>;
1327
898
  } | {
1328
899
  platform: "tiktok";
@@ -1343,7 +914,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1343
914
  object: "post_variant";
1344
915
  connection_id: string | null;
1345
916
  body: string | null;
1346
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
917
+ status: _postrun_js.PostVariantStatus;
1347
918
  schedule_at: string | null;
1348
919
  result: {
1349
920
  platform_post_id: string;
@@ -1362,52 +933,7 @@ declare function usePosts(query?: ListPostsQuery): _tanstack_react_query.UseQuer
1362
933
  [key: string]: unknown;
1363
934
  } | null;
1364
935
  alt_text_override: string | null;
1365
- media: {
1366
- id: string;
1367
- object: "media";
1368
- profile_id: string;
1369
- kind: "image" | "video" | "gif" | "document" | null;
1370
- content_type: string | null;
1371
- status: "uploading" | "processing" | "ready" | "failed";
1372
- progress: {
1373
- stage: "queued" | "analyzing" | "transcoding" | "done";
1374
- percent: number;
1375
- };
1376
- raw: boolean;
1377
- error: {
1378
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1379
- message: string;
1380
- hint?: string;
1381
- allowed?: Array<unknown | null>;
1382
- got?: string;
1383
- display_error: string;
1384
- } | null;
1385
- source: {
1386
- format: string;
1387
- bytes: number;
1388
- width: number | null;
1389
- height: number | null;
1390
- duration_ms: number | null;
1391
- } | null;
1392
- alt_text: string | null;
1393
- per_platform: {
1394
- [key: string]: {
1395
- status?: unknown;
1396
- url?: unknown;
1397
- width?: unknown;
1398
- height?: unknown;
1399
- bytes?: unknown;
1400
- warnings?: unknown;
1401
- errors?: unknown;
1402
- };
1403
- };
1404
- external_id: string | null;
1405
- metadata: {
1406
- [key: string]: unknown;
1407
- };
1408
- created_at: string;
1409
- updated_at: string;
1410
- };
936
+ media: _postrun_js.Media;
1411
937
  }>;
1412
938
  }>;
1413
939
  created_at: string;
@@ -1468,7 +994,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1468
994
  object: "post_variant";
1469
995
  connection_id: string | null;
1470
996
  body: string | null;
1471
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
997
+ status: _postrun_js.PostVariantStatus;
1472
998
  schedule_at: string | null;
1473
999
  result: {
1474
1000
  platform_post_id: string;
@@ -1487,66 +1013,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1487
1013
  [key: string]: unknown;
1488
1014
  } | null;
1489
1015
  alt_text_override: string | null;
1490
- media: {
1491
- id: string;
1492
- object: "media";
1493
- profile_id: string;
1494
- kind: "image" | "video" | "gif" | "document" | null;
1495
- content_type: string | null;
1496
- status: "uploading" | "processing" | "ready" | "failed";
1497
- progress: {
1498
- stage: "queued" | "analyzing" | "transcoding" | "done";
1499
- percent: number;
1500
- };
1501
- raw: boolean;
1502
- error: {
1503
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1504
- message: string;
1505
- hint?: string;
1506
- allowed?: Array<string>;
1507
- got?: string;
1508
- display_error: string;
1509
- } | null;
1510
- source: {
1511
- format: string;
1512
- bytes: number;
1513
- width: number | null;
1514
- height: number | null;
1515
- duration_ms: number | null;
1516
- } | null;
1517
- alt_text: string | null;
1518
- per_platform: {
1519
- [key: string]: {
1520
- status: "processing" | "ready" | "failed";
1521
- url: string | null;
1522
- width: number | null;
1523
- height: number | null;
1524
- bytes: number | null;
1525
- warnings: Array<{
1526
- code?: unknown;
1527
- message?: unknown;
1528
- hint?: unknown;
1529
- allowed?: unknown;
1530
- got?: unknown;
1531
- display_error?: unknown;
1532
- }>;
1533
- errors: Array<{
1534
- code?: unknown;
1535
- message?: unknown;
1536
- hint?: unknown;
1537
- allowed?: unknown;
1538
- got?: unknown;
1539
- display_error?: unknown;
1540
- }>;
1541
- };
1542
- };
1543
- external_id: string | null;
1544
- metadata: {
1545
- [key: string]: string | number | boolean;
1546
- };
1547
- created_at: string;
1548
- updated_at: string;
1549
- };
1016
+ media: _postrun_js.Media;
1550
1017
  }>;
1551
1018
  } | {
1552
1019
  platform: "linkedin";
@@ -1579,7 +1046,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1579
1046
  object: "post_variant";
1580
1047
  connection_id: string | null;
1581
1048
  body: string | null;
1582
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1049
+ status: _postrun_js.PostVariantStatus;
1583
1050
  schedule_at: string | null;
1584
1051
  result: {
1585
1052
  platform_post_id: string;
@@ -1598,66 +1065,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1598
1065
  [key: string]: unknown;
1599
1066
  } | null;
1600
1067
  alt_text_override: string | null;
1601
- media: {
1602
- id: string;
1603
- object: "media";
1604
- profile_id: string;
1605
- kind: "image" | "video" | "gif" | "document" | null;
1606
- content_type: string | null;
1607
- status: "uploading" | "processing" | "ready" | "failed";
1608
- progress: {
1609
- stage: "queued" | "analyzing" | "transcoding" | "done";
1610
- percent: number;
1611
- };
1612
- raw: boolean;
1613
- error: {
1614
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1615
- message: string;
1616
- hint?: string;
1617
- allowed?: Array<string>;
1618
- got?: string;
1619
- display_error: string;
1620
- } | null;
1621
- source: {
1622
- format: string;
1623
- bytes: number;
1624
- width: number | null;
1625
- height: number | null;
1626
- duration_ms: number | null;
1627
- } | null;
1628
- alt_text: string | null;
1629
- per_platform: {
1630
- [key: string]: {
1631
- status: "processing" | "ready" | "failed";
1632
- url: string | null;
1633
- width: number | null;
1634
- height: number | null;
1635
- bytes: number | null;
1636
- warnings: Array<{
1637
- code?: unknown;
1638
- message?: unknown;
1639
- hint?: unknown;
1640
- allowed?: unknown;
1641
- got?: unknown;
1642
- display_error?: unknown;
1643
- }>;
1644
- errors: Array<{
1645
- code?: unknown;
1646
- message?: unknown;
1647
- hint?: unknown;
1648
- allowed?: unknown;
1649
- got?: unknown;
1650
- display_error?: unknown;
1651
- }>;
1652
- };
1653
- };
1654
- external_id: string | null;
1655
- metadata: {
1656
- [key: string]: string | number | boolean;
1657
- };
1658
- created_at: string;
1659
- updated_at: string;
1660
- };
1068
+ media: _postrun_js.Media;
1661
1069
  }>;
1662
1070
  } | {
1663
1071
  platform: "facebook_page";
@@ -1669,7 +1077,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1669
1077
  object: "post_variant";
1670
1078
  connection_id: string | null;
1671
1079
  body: string | null;
1672
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1080
+ status: _postrun_js.PostVariantStatus;
1673
1081
  schedule_at: string | null;
1674
1082
  result: {
1675
1083
  platform_post_id: string;
@@ -1688,66 +1096,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1688
1096
  [key: string]: unknown;
1689
1097
  } | null;
1690
1098
  alt_text_override: string | null;
1691
- media: {
1692
- id: string;
1693
- object: "media";
1694
- profile_id: string;
1695
- kind: "image" | "video" | "gif" | "document" | null;
1696
- content_type: string | null;
1697
- status: "uploading" | "processing" | "ready" | "failed";
1698
- progress: {
1699
- stage: "queued" | "analyzing" | "transcoding" | "done";
1700
- percent: number;
1701
- };
1702
- raw: boolean;
1703
- error: {
1704
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1705
- message: string;
1706
- hint?: string;
1707
- allowed?: Array<string>;
1708
- got?: string;
1709
- display_error: string;
1710
- } | null;
1711
- source: {
1712
- format: string;
1713
- bytes: number;
1714
- width: number | null;
1715
- height: number | null;
1716
- duration_ms: number | null;
1717
- } | null;
1718
- alt_text: string | null;
1719
- per_platform: {
1720
- [key: string]: {
1721
- status: "processing" | "ready" | "failed";
1722
- url: string | null;
1723
- width: number | null;
1724
- height: number | null;
1725
- bytes: number | null;
1726
- warnings: Array<{
1727
- code?: unknown;
1728
- message?: unknown;
1729
- hint?: unknown;
1730
- allowed?: unknown;
1731
- got?: unknown;
1732
- display_error?: unknown;
1733
- }>;
1734
- errors: Array<{
1735
- code?: unknown;
1736
- message?: unknown;
1737
- hint?: unknown;
1738
- allowed?: unknown;
1739
- got?: unknown;
1740
- display_error?: unknown;
1741
- }>;
1742
- };
1743
- };
1744
- external_id: string | null;
1745
- metadata: {
1746
- [key: string]: string | number | boolean;
1747
- };
1748
- created_at: string;
1749
- updated_at: string;
1750
- };
1099
+ media: _postrun_js.Media;
1751
1100
  }>;
1752
1101
  } | {
1753
1102
  platform: "instagram";
@@ -1770,7 +1119,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1770
1119
  object: "post_variant";
1771
1120
  connection_id: string | null;
1772
1121
  body: string | null;
1773
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1122
+ status: _postrun_js.PostVariantStatus;
1774
1123
  schedule_at: string | null;
1775
1124
  result: {
1776
1125
  platform_post_id: string;
@@ -1789,66 +1138,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1789
1138
  [key: string]: unknown;
1790
1139
  } | null;
1791
1140
  alt_text_override: string | null;
1792
- media: {
1793
- id: string;
1794
- object: "media";
1795
- profile_id: string;
1796
- kind: "image" | "video" | "gif" | "document" | null;
1797
- content_type: string | null;
1798
- status: "uploading" | "processing" | "ready" | "failed";
1799
- progress: {
1800
- stage: "queued" | "analyzing" | "transcoding" | "done";
1801
- percent: number;
1802
- };
1803
- raw: boolean;
1804
- error: {
1805
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1806
- message: string;
1807
- hint?: string;
1808
- allowed?: Array<string>;
1809
- got?: string;
1810
- display_error: string;
1811
- } | null;
1812
- source: {
1813
- format: string;
1814
- bytes: number;
1815
- width: number | null;
1816
- height: number | null;
1817
- duration_ms: number | null;
1818
- } | null;
1819
- alt_text: string | null;
1820
- per_platform: {
1821
- [key: string]: {
1822
- status: "processing" | "ready" | "failed";
1823
- url: string | null;
1824
- width: number | null;
1825
- height: number | null;
1826
- bytes: number | null;
1827
- warnings: Array<{
1828
- code?: unknown;
1829
- message?: unknown;
1830
- hint?: unknown;
1831
- allowed?: unknown;
1832
- got?: unknown;
1833
- display_error?: unknown;
1834
- }>;
1835
- errors: Array<{
1836
- code?: unknown;
1837
- message?: unknown;
1838
- hint?: unknown;
1839
- allowed?: unknown;
1840
- got?: unknown;
1841
- display_error?: unknown;
1842
- }>;
1843
- };
1844
- };
1845
- external_id: string | null;
1846
- metadata: {
1847
- [key: string]: string | number | boolean;
1848
- };
1849
- created_at: string;
1850
- updated_at: string;
1851
- };
1141
+ media: _postrun_js.Media;
1852
1142
  }>;
1853
1143
  } | {
1854
1144
  platform: "tiktok";
@@ -1869,7 +1159,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1869
1159
  object: "post_variant";
1870
1160
  connection_id: string | null;
1871
1161
  body: string | null;
1872
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1162
+ status: _postrun_js.PostVariantStatus;
1873
1163
  schedule_at: string | null;
1874
1164
  result: {
1875
1165
  platform_post_id: string;
@@ -1888,66 +1178,7 @@ declare function usePostsInfinite(filters?: Omit<ListPostsQuery, 'limit' | 'offs
1888
1178
  [key: string]: unknown;
1889
1179
  } | null;
1890
1180
  alt_text_override: string | null;
1891
- media: {
1892
- id: string;
1893
- object: "media";
1894
- profile_id: string;
1895
- kind: "image" | "video" | "gif" | "document" | null;
1896
- content_type: string | null;
1897
- status: "uploading" | "processing" | "ready" | "failed";
1898
- progress: {
1899
- stage: "queued" | "analyzing" | "transcoding" | "done";
1900
- percent: number;
1901
- };
1902
- raw: boolean;
1903
- error: {
1904
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
1905
- message: string;
1906
- hint?: string;
1907
- allowed?: Array<string>;
1908
- got?: string;
1909
- display_error: string;
1910
- } | null;
1911
- source: {
1912
- format: string;
1913
- bytes: number;
1914
- width: number | null;
1915
- height: number | null;
1916
- duration_ms: number | null;
1917
- } | null;
1918
- alt_text: string | null;
1919
- per_platform: {
1920
- [key: string]: {
1921
- status: "processing" | "ready" | "failed";
1922
- url: string | null;
1923
- width: number | null;
1924
- height: number | null;
1925
- bytes: number | null;
1926
- warnings: Array<{
1927
- code?: unknown;
1928
- message?: unknown;
1929
- hint?: unknown;
1930
- allowed?: unknown;
1931
- got?: unknown;
1932
- display_error?: unknown;
1933
- }>;
1934
- errors: Array<{
1935
- code?: unknown;
1936
- message?: unknown;
1937
- hint?: unknown;
1938
- allowed?: unknown;
1939
- got?: unknown;
1940
- display_error?: unknown;
1941
- }>;
1942
- };
1943
- };
1944
- external_id: string | null;
1945
- metadata: {
1946
- [key: string]: string | number | boolean;
1947
- };
1948
- created_at: string;
1949
- updated_at: string;
1950
- };
1181
+ media: _postrun_js.Media;
1951
1182
  }>;
1952
1183
  }>;
1953
1184
  created_at: string;
@@ -2007,7 +1238,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2007
1238
  object: "post_variant";
2008
1239
  connection_id: string | null;
2009
1240
  body: string | null;
2010
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1241
+ status: _postrun_js.PostVariantStatus;
2011
1242
  schedule_at: string | null;
2012
1243
  result: {
2013
1244
  platform_post_id: string;
@@ -2026,52 +1257,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2026
1257
  [key: string]: unknown;
2027
1258
  } | null;
2028
1259
  alt_text_override: string | null;
2029
- media: {
2030
- id: string;
2031
- object: "media";
2032
- profile_id: string;
2033
- kind: "image" | "video" | "gif" | "document" | null;
2034
- content_type: string | null;
2035
- status: "uploading" | "processing" | "ready" | "failed";
2036
- progress: {
2037
- stage: "queued" | "analyzing" | "transcoding" | "done";
2038
- percent: number;
2039
- };
2040
- raw: boolean;
2041
- error: {
2042
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2043
- message: string;
2044
- hint?: string;
2045
- allowed?: Array<unknown | null>;
2046
- got?: string;
2047
- display_error: string;
2048
- } | null;
2049
- source: {
2050
- format: string;
2051
- bytes: number;
2052
- width: number | null;
2053
- height: number | null;
2054
- duration_ms: number | null;
2055
- } | null;
2056
- alt_text: string | null;
2057
- per_platform: {
2058
- [key: string]: {
2059
- status?: unknown;
2060
- url?: unknown;
2061
- width?: unknown;
2062
- height?: unknown;
2063
- bytes?: unknown;
2064
- warnings?: unknown;
2065
- errors?: unknown;
2066
- };
2067
- };
2068
- external_id: string | null;
2069
- metadata: {
2070
- [key: string]: unknown;
2071
- };
2072
- created_at: string;
2073
- updated_at: string;
2074
- };
1260
+ media: _postrun_js.Media;
2075
1261
  }>;
2076
1262
  } | {
2077
1263
  platform: "linkedin";
@@ -2104,7 +1290,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2104
1290
  object: "post_variant";
2105
1291
  connection_id: string | null;
2106
1292
  body: string | null;
2107
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1293
+ status: _postrun_js.PostVariantStatus;
2108
1294
  schedule_at: string | null;
2109
1295
  result: {
2110
1296
  platform_post_id: string;
@@ -2123,52 +1309,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2123
1309
  [key: string]: unknown;
2124
1310
  } | null;
2125
1311
  alt_text_override: string | null;
2126
- media: {
2127
- id: string;
2128
- object: "media";
2129
- profile_id: string;
2130
- kind: "image" | "video" | "gif" | "document" | null;
2131
- content_type: string | null;
2132
- status: "uploading" | "processing" | "ready" | "failed";
2133
- progress: {
2134
- stage: "queued" | "analyzing" | "transcoding" | "done";
2135
- percent: number;
2136
- };
2137
- raw: boolean;
2138
- error: {
2139
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2140
- message: string;
2141
- hint?: string;
2142
- allowed?: Array<unknown | null>;
2143
- got?: string;
2144
- display_error: string;
2145
- } | null;
2146
- source: {
2147
- format: string;
2148
- bytes: number;
2149
- width: number | null;
2150
- height: number | null;
2151
- duration_ms: number | null;
2152
- } | null;
2153
- alt_text: string | null;
2154
- per_platform: {
2155
- [key: string]: {
2156
- status?: unknown;
2157
- url?: unknown;
2158
- width?: unknown;
2159
- height?: unknown;
2160
- bytes?: unknown;
2161
- warnings?: unknown;
2162
- errors?: unknown;
2163
- };
2164
- };
2165
- external_id: string | null;
2166
- metadata: {
2167
- [key: string]: unknown;
2168
- };
2169
- created_at: string;
2170
- updated_at: string;
2171
- };
1312
+ media: _postrun_js.Media;
2172
1313
  }>;
2173
1314
  } | {
2174
1315
  platform: "facebook_page";
@@ -2180,7 +1321,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2180
1321
  object: "post_variant";
2181
1322
  connection_id: string | null;
2182
1323
  body: string | null;
2183
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1324
+ status: _postrun_js.PostVariantStatus;
2184
1325
  schedule_at: string | null;
2185
1326
  result: {
2186
1327
  platform_post_id: string;
@@ -2199,52 +1340,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2199
1340
  [key: string]: unknown;
2200
1341
  } | null;
2201
1342
  alt_text_override: string | null;
2202
- media: {
2203
- id: string;
2204
- object: "media";
2205
- profile_id: string;
2206
- kind: "image" | "video" | "gif" | "document" | null;
2207
- content_type: string | null;
2208
- status: "uploading" | "processing" | "ready" | "failed";
2209
- progress: {
2210
- stage: "queued" | "analyzing" | "transcoding" | "done";
2211
- percent: number;
2212
- };
2213
- raw: boolean;
2214
- error: {
2215
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2216
- message: string;
2217
- hint?: string;
2218
- allowed?: Array<unknown | null>;
2219
- got?: string;
2220
- display_error: string;
2221
- } | null;
2222
- source: {
2223
- format: string;
2224
- bytes: number;
2225
- width: number | null;
2226
- height: number | null;
2227
- duration_ms: number | null;
2228
- } | null;
2229
- alt_text: string | null;
2230
- per_platform: {
2231
- [key: string]: {
2232
- status?: unknown;
2233
- url?: unknown;
2234
- width?: unknown;
2235
- height?: unknown;
2236
- bytes?: unknown;
2237
- warnings?: unknown;
2238
- errors?: unknown;
2239
- };
2240
- };
2241
- external_id: string | null;
2242
- metadata: {
2243
- [key: string]: unknown;
2244
- };
2245
- created_at: string;
2246
- updated_at: string;
2247
- };
1343
+ media: _postrun_js.Media;
2248
1344
  }>;
2249
1345
  } | {
2250
1346
  platform: "instagram";
@@ -2267,7 +1363,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2267
1363
  object: "post_variant";
2268
1364
  connection_id: string | null;
2269
1365
  body: string | null;
2270
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1366
+ status: _postrun_js.PostVariantStatus;
2271
1367
  schedule_at: string | null;
2272
1368
  result: {
2273
1369
  platform_post_id: string;
@@ -2286,52 +1382,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2286
1382
  [key: string]: unknown;
2287
1383
  } | null;
2288
1384
  alt_text_override: string | null;
2289
- media: {
2290
- id: string;
2291
- object: "media";
2292
- profile_id: string;
2293
- kind: "image" | "video" | "gif" | "document" | null;
2294
- content_type: string | null;
2295
- status: "uploading" | "processing" | "ready" | "failed";
2296
- progress: {
2297
- stage: "queued" | "analyzing" | "transcoding" | "done";
2298
- percent: number;
2299
- };
2300
- raw: boolean;
2301
- error: {
2302
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2303
- message: string;
2304
- hint?: string;
2305
- allowed?: Array<unknown | null>;
2306
- got?: string;
2307
- display_error: string;
2308
- } | null;
2309
- source: {
2310
- format: string;
2311
- bytes: number;
2312
- width: number | null;
2313
- height: number | null;
2314
- duration_ms: number | null;
2315
- } | null;
2316
- alt_text: string | null;
2317
- per_platform: {
2318
- [key: string]: {
2319
- status?: unknown;
2320
- url?: unknown;
2321
- width?: unknown;
2322
- height?: unknown;
2323
- bytes?: unknown;
2324
- warnings?: unknown;
2325
- errors?: unknown;
2326
- };
2327
- };
2328
- external_id: string | null;
2329
- metadata: {
2330
- [key: string]: unknown;
2331
- };
2332
- created_at: string;
2333
- updated_at: string;
2334
- };
1385
+ media: _postrun_js.Media;
2335
1386
  }>;
2336
1387
  } | {
2337
1388
  platform: "tiktok";
@@ -2352,7 +1403,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2352
1403
  object: "post_variant";
2353
1404
  connection_id: string | null;
2354
1405
  body: string | null;
2355
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1406
+ status: _postrun_js.PostVariantStatus;
2356
1407
  schedule_at: string | null;
2357
1408
  result: {
2358
1409
  platform_post_id: string;
@@ -2371,52 +1422,7 @@ declare function useCalendar(filters?: CalendarFilters & Pick<ListPostsQuery, 'l
2371
1422
  [key: string]: unknown;
2372
1423
  } | null;
2373
1424
  alt_text_override: string | null;
2374
- media: {
2375
- id: string;
2376
- object: "media";
2377
- profile_id: string;
2378
- kind: "image" | "video" | "gif" | "document" | null;
2379
- content_type: string | null;
2380
- status: "uploading" | "processing" | "ready" | "failed";
2381
- progress: {
2382
- stage: "queued" | "analyzing" | "transcoding" | "done";
2383
- percent: number;
2384
- };
2385
- raw: boolean;
2386
- error: {
2387
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2388
- message: string;
2389
- hint?: string;
2390
- allowed?: Array<unknown | null>;
2391
- got?: string;
2392
- display_error: string;
2393
- } | null;
2394
- source: {
2395
- format: string;
2396
- bytes: number;
2397
- width: number | null;
2398
- height: number | null;
2399
- duration_ms: number | null;
2400
- } | null;
2401
- alt_text: string | null;
2402
- per_platform: {
2403
- [key: string]: {
2404
- status?: unknown;
2405
- url?: unknown;
2406
- width?: unknown;
2407
- height?: unknown;
2408
- bytes?: unknown;
2409
- warnings?: unknown;
2410
- errors?: unknown;
2411
- };
2412
- };
2413
- external_id: string | null;
2414
- metadata: {
2415
- [key: string]: unknown;
2416
- };
2417
- created_at: string;
2418
- updated_at: string;
2419
- };
1425
+ media: _postrun_js.Media;
2420
1426
  }>;
2421
1427
  }>;
2422
1428
  created_at: string;
@@ -2474,7 +1480,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2474
1480
  object: "post_variant";
2475
1481
  connection_id: string | null;
2476
1482
  body: string | null;
2477
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1483
+ status: _postrun_js.PostVariantStatus;
2478
1484
  schedule_at: string | null;
2479
1485
  result: {
2480
1486
  platform_post_id: string;
@@ -2493,66 +1499,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2493
1499
  [key: string]: unknown;
2494
1500
  } | null;
2495
1501
  alt_text_override: string | null;
2496
- media: {
2497
- id: string;
2498
- object: "media";
2499
- profile_id: string;
2500
- kind: "image" | "video" | "gif" | "document" | null;
2501
- content_type: string | null;
2502
- status: "uploading" | "processing" | "ready" | "failed";
2503
- progress: {
2504
- stage: "queued" | "analyzing" | "transcoding" | "done";
2505
- percent: number;
2506
- };
2507
- raw: boolean;
2508
- error: {
2509
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2510
- message: string;
2511
- hint?: string;
2512
- allowed?: Array<string>;
2513
- got?: string;
2514
- display_error: string;
2515
- } | null;
2516
- source: {
2517
- format: string;
2518
- bytes: number;
2519
- width: number | null;
2520
- height: number | null;
2521
- duration_ms: number | null;
2522
- } | null;
2523
- alt_text: string | null;
2524
- per_platform: {
2525
- [key: string]: {
2526
- status: "processing" | "ready" | "failed";
2527
- url: string | null;
2528
- width: number | null;
2529
- height: number | null;
2530
- bytes: number | null;
2531
- warnings: Array<{
2532
- code?: unknown;
2533
- message?: unknown;
2534
- hint?: unknown;
2535
- allowed?: unknown;
2536
- got?: unknown;
2537
- display_error?: unknown;
2538
- }>;
2539
- errors: Array<{
2540
- code?: unknown;
2541
- message?: unknown;
2542
- hint?: unknown;
2543
- allowed?: unknown;
2544
- got?: unknown;
2545
- display_error?: unknown;
2546
- }>;
2547
- };
2548
- };
2549
- external_id: string | null;
2550
- metadata: {
2551
- [key: string]: string | number | boolean;
2552
- };
2553
- created_at: string;
2554
- updated_at: string;
2555
- };
1502
+ media: _postrun_js.Media;
2556
1503
  }>;
2557
1504
  } | {
2558
1505
  platform: "linkedin";
@@ -2585,7 +1532,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2585
1532
  object: "post_variant";
2586
1533
  connection_id: string | null;
2587
1534
  body: string | null;
2588
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1535
+ status: _postrun_js.PostVariantStatus;
2589
1536
  schedule_at: string | null;
2590
1537
  result: {
2591
1538
  platform_post_id: string;
@@ -2604,66 +1551,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2604
1551
  [key: string]: unknown;
2605
1552
  } | null;
2606
1553
  alt_text_override: string | null;
2607
- media: {
2608
- id: string;
2609
- object: "media";
2610
- profile_id: string;
2611
- kind: "image" | "video" | "gif" | "document" | null;
2612
- content_type: string | null;
2613
- status: "uploading" | "processing" | "ready" | "failed";
2614
- progress: {
2615
- stage: "queued" | "analyzing" | "transcoding" | "done";
2616
- percent: number;
2617
- };
2618
- raw: boolean;
2619
- error: {
2620
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2621
- message: string;
2622
- hint?: string;
2623
- allowed?: Array<string>;
2624
- got?: string;
2625
- display_error: string;
2626
- } | null;
2627
- source: {
2628
- format: string;
2629
- bytes: number;
2630
- width: number | null;
2631
- height: number | null;
2632
- duration_ms: number | null;
2633
- } | null;
2634
- alt_text: string | null;
2635
- per_platform: {
2636
- [key: string]: {
2637
- status: "processing" | "ready" | "failed";
2638
- url: string | null;
2639
- width: number | null;
2640
- height: number | null;
2641
- bytes: number | null;
2642
- warnings: Array<{
2643
- code?: unknown;
2644
- message?: unknown;
2645
- hint?: unknown;
2646
- allowed?: unknown;
2647
- got?: unknown;
2648
- display_error?: unknown;
2649
- }>;
2650
- errors: Array<{
2651
- code?: unknown;
2652
- message?: unknown;
2653
- hint?: unknown;
2654
- allowed?: unknown;
2655
- got?: unknown;
2656
- display_error?: unknown;
2657
- }>;
2658
- };
2659
- };
2660
- external_id: string | null;
2661
- metadata: {
2662
- [key: string]: string | number | boolean;
2663
- };
2664
- created_at: string;
2665
- updated_at: string;
2666
- };
1554
+ media: _postrun_js.Media;
2667
1555
  }>;
2668
1556
  } | {
2669
1557
  platform: "facebook_page";
@@ -2675,7 +1563,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2675
1563
  object: "post_variant";
2676
1564
  connection_id: string | null;
2677
1565
  body: string | null;
2678
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1566
+ status: _postrun_js.PostVariantStatus;
2679
1567
  schedule_at: string | null;
2680
1568
  result: {
2681
1569
  platform_post_id: string;
@@ -2694,66 +1582,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2694
1582
  [key: string]: unknown;
2695
1583
  } | null;
2696
1584
  alt_text_override: string | null;
2697
- media: {
2698
- id: string;
2699
- object: "media";
2700
- profile_id: string;
2701
- kind: "image" | "video" | "gif" | "document" | null;
2702
- content_type: string | null;
2703
- status: "uploading" | "processing" | "ready" | "failed";
2704
- progress: {
2705
- stage: "queued" | "analyzing" | "transcoding" | "done";
2706
- percent: number;
2707
- };
2708
- raw: boolean;
2709
- error: {
2710
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2711
- message: string;
2712
- hint?: string;
2713
- allowed?: Array<string>;
2714
- got?: string;
2715
- display_error: string;
2716
- } | null;
2717
- source: {
2718
- format: string;
2719
- bytes: number;
2720
- width: number | null;
2721
- height: number | null;
2722
- duration_ms: number | null;
2723
- } | null;
2724
- alt_text: string | null;
2725
- per_platform: {
2726
- [key: string]: {
2727
- status: "processing" | "ready" | "failed";
2728
- url: string | null;
2729
- width: number | null;
2730
- height: number | null;
2731
- bytes: number | null;
2732
- warnings: Array<{
2733
- code?: unknown;
2734
- message?: unknown;
2735
- hint?: unknown;
2736
- allowed?: unknown;
2737
- got?: unknown;
2738
- display_error?: unknown;
2739
- }>;
2740
- errors: Array<{
2741
- code?: unknown;
2742
- message?: unknown;
2743
- hint?: unknown;
2744
- allowed?: unknown;
2745
- got?: unknown;
2746
- display_error?: unknown;
2747
- }>;
2748
- };
2749
- };
2750
- external_id: string | null;
2751
- metadata: {
2752
- [key: string]: string | number | boolean;
2753
- };
2754
- created_at: string;
2755
- updated_at: string;
2756
- };
1585
+ media: _postrun_js.Media;
2757
1586
  }>;
2758
1587
  } | {
2759
1588
  platform: "instagram";
@@ -2776,7 +1605,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2776
1605
  object: "post_variant";
2777
1606
  connection_id: string | null;
2778
1607
  body: string | null;
2779
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1608
+ status: _postrun_js.PostVariantStatus;
2780
1609
  schedule_at: string | null;
2781
1610
  result: {
2782
1611
  platform_post_id: string;
@@ -2795,66 +1624,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2795
1624
  [key: string]: unknown;
2796
1625
  } | null;
2797
1626
  alt_text_override: string | null;
2798
- media: {
2799
- id: string;
2800
- object: "media";
2801
- profile_id: string;
2802
- kind: "image" | "video" | "gif" | "document" | null;
2803
- content_type: string | null;
2804
- status: "uploading" | "processing" | "ready" | "failed";
2805
- progress: {
2806
- stage: "queued" | "analyzing" | "transcoding" | "done";
2807
- percent: number;
2808
- };
2809
- raw: boolean;
2810
- error: {
2811
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2812
- message: string;
2813
- hint?: string;
2814
- allowed?: Array<string>;
2815
- got?: string;
2816
- display_error: string;
2817
- } | null;
2818
- source: {
2819
- format: string;
2820
- bytes: number;
2821
- width: number | null;
2822
- height: number | null;
2823
- duration_ms: number | null;
2824
- } | null;
2825
- alt_text: string | null;
2826
- per_platform: {
2827
- [key: string]: {
2828
- status: "processing" | "ready" | "failed";
2829
- url: string | null;
2830
- width: number | null;
2831
- height: number | null;
2832
- bytes: number | null;
2833
- warnings: Array<{
2834
- code?: unknown;
2835
- message?: unknown;
2836
- hint?: unknown;
2837
- allowed?: unknown;
2838
- got?: unknown;
2839
- display_error?: unknown;
2840
- }>;
2841
- errors: Array<{
2842
- code?: unknown;
2843
- message?: unknown;
2844
- hint?: unknown;
2845
- allowed?: unknown;
2846
- got?: unknown;
2847
- display_error?: unknown;
2848
- }>;
2849
- };
2850
- };
2851
- external_id: string | null;
2852
- metadata: {
2853
- [key: string]: string | number | boolean;
2854
- };
2855
- created_at: string;
2856
- updated_at: string;
2857
- };
1627
+ media: _postrun_js.Media;
2858
1628
  }>;
2859
1629
  } | {
2860
1630
  platform: "tiktok";
@@ -2875,7 +1645,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2875
1645
  object: "post_variant";
2876
1646
  connection_id: string | null;
2877
1647
  body: string | null;
2878
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1648
+ status: _postrun_js.PostVariantStatus;
2879
1649
  schedule_at: string | null;
2880
1650
  result: {
2881
1651
  platform_post_id: string;
@@ -2894,66 +1664,7 @@ declare function usePost(id: string, options?: LiveOptions): _tanstack_react_que
2894
1664
  [key: string]: unknown;
2895
1665
  } | null;
2896
1666
  alt_text_override: string | null;
2897
- media: {
2898
- id: string;
2899
- object: "media";
2900
- profile_id: string;
2901
- kind: "image" | "video" | "gif" | "document" | null;
2902
- content_type: string | null;
2903
- status: "uploading" | "processing" | "ready" | "failed";
2904
- progress: {
2905
- stage: "queued" | "analyzing" | "transcoding" | "done";
2906
- percent: number;
2907
- };
2908
- raw: boolean;
2909
- error: {
2910
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
2911
- message: string;
2912
- hint?: string;
2913
- allowed?: Array<string>;
2914
- got?: string;
2915
- display_error: string;
2916
- } | null;
2917
- source: {
2918
- format: string;
2919
- bytes: number;
2920
- width: number | null;
2921
- height: number | null;
2922
- duration_ms: number | null;
2923
- } | null;
2924
- alt_text: string | null;
2925
- per_platform: {
2926
- [key: string]: {
2927
- status: "processing" | "ready" | "failed";
2928
- url: string | null;
2929
- width: number | null;
2930
- height: number | null;
2931
- bytes: number | null;
2932
- warnings: Array<{
2933
- code?: unknown;
2934
- message?: unknown;
2935
- hint?: unknown;
2936
- allowed?: unknown;
2937
- got?: unknown;
2938
- display_error?: unknown;
2939
- }>;
2940
- errors: Array<{
2941
- code?: unknown;
2942
- message?: unknown;
2943
- hint?: unknown;
2944
- allowed?: unknown;
2945
- got?: unknown;
2946
- display_error?: unknown;
2947
- }>;
2948
- };
2949
- };
2950
- external_id: string | null;
2951
- metadata: {
2952
- [key: string]: string | number | boolean;
2953
- };
2954
- created_at: string;
2955
- updated_at: string;
2956
- };
1667
+ media: _postrun_js.Media;
2957
1668
  }>;
2958
1669
  }>;
2959
1670
  created_at: string;
@@ -3025,7 +1736,7 @@ declare function useCreatePost(profileId: string): {
3025
1736
  object: "post_variant";
3026
1737
  connection_id: string | null;
3027
1738
  body: string | null;
3028
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1739
+ status: _postrun_js.PostVariantStatus;
3029
1740
  schedule_at: string | null;
3030
1741
  result: {
3031
1742
  platform_post_id: string;
@@ -3044,66 +1755,7 @@ declare function useCreatePost(profileId: string): {
3044
1755
  [key: string]: unknown;
3045
1756
  } | null;
3046
1757
  alt_text_override: string | null;
3047
- media: {
3048
- id: string;
3049
- object: "media";
3050
- profile_id: string;
3051
- kind: "image" | "video" | "gif" | "document" | null;
3052
- content_type: string | null;
3053
- status: "uploading" | "processing" | "ready" | "failed";
3054
- progress: {
3055
- stage: "queued" | "analyzing" | "transcoding" | "done";
3056
- percent: number;
3057
- };
3058
- raw: boolean;
3059
- error: {
3060
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3061
- message: string;
3062
- hint?: string;
3063
- allowed?: Array<string>;
3064
- got?: string;
3065
- display_error: string;
3066
- } | null;
3067
- source: {
3068
- format: string;
3069
- bytes: number;
3070
- width: number | null;
3071
- height: number | null;
3072
- duration_ms: number | null;
3073
- } | null;
3074
- alt_text: string | null;
3075
- per_platform: {
3076
- [key: string]: {
3077
- status: "processing" | "ready" | "failed";
3078
- url: string | null;
3079
- width: number | null;
3080
- height: number | null;
3081
- bytes: number | null;
3082
- warnings: Array<{
3083
- code?: unknown;
3084
- message?: unknown;
3085
- hint?: unknown;
3086
- allowed?: unknown;
3087
- got?: unknown;
3088
- display_error?: unknown;
3089
- }>;
3090
- errors: Array<{
3091
- code?: unknown;
3092
- message?: unknown;
3093
- hint?: unknown;
3094
- allowed?: unknown;
3095
- got?: unknown;
3096
- display_error?: unknown;
3097
- }>;
3098
- };
3099
- };
3100
- external_id: string | null;
3101
- metadata: {
3102
- [key: string]: string | number | boolean;
3103
- };
3104
- created_at: string;
3105
- updated_at: string;
3106
- };
1758
+ media: _postrun_js.Media;
3107
1759
  }>;
3108
1760
  } | {
3109
1761
  platform: "linkedin";
@@ -3136,7 +1788,7 @@ declare function useCreatePost(profileId: string): {
3136
1788
  object: "post_variant";
3137
1789
  connection_id: string | null;
3138
1790
  body: string | null;
3139
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1791
+ status: _postrun_js.PostVariantStatus;
3140
1792
  schedule_at: string | null;
3141
1793
  result: {
3142
1794
  platform_post_id: string;
@@ -3155,66 +1807,7 @@ declare function useCreatePost(profileId: string): {
3155
1807
  [key: string]: unknown;
3156
1808
  } | null;
3157
1809
  alt_text_override: string | null;
3158
- media: {
3159
- id: string;
3160
- object: "media";
3161
- profile_id: string;
3162
- kind: "image" | "video" | "gif" | "document" | null;
3163
- content_type: string | null;
3164
- status: "uploading" | "processing" | "ready" | "failed";
3165
- progress: {
3166
- stage: "queued" | "analyzing" | "transcoding" | "done";
3167
- percent: number;
3168
- };
3169
- raw: boolean;
3170
- error: {
3171
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3172
- message: string;
3173
- hint?: string;
3174
- allowed?: Array<string>;
3175
- got?: string;
3176
- display_error: string;
3177
- } | null;
3178
- source: {
3179
- format: string;
3180
- bytes: number;
3181
- width: number | null;
3182
- height: number | null;
3183
- duration_ms: number | null;
3184
- } | null;
3185
- alt_text: string | null;
3186
- per_platform: {
3187
- [key: string]: {
3188
- status: "processing" | "ready" | "failed";
3189
- url: string | null;
3190
- width: number | null;
3191
- height: number | null;
3192
- bytes: number | null;
3193
- warnings: Array<{
3194
- code?: unknown;
3195
- message?: unknown;
3196
- hint?: unknown;
3197
- allowed?: unknown;
3198
- got?: unknown;
3199
- display_error?: unknown;
3200
- }>;
3201
- errors: Array<{
3202
- code?: unknown;
3203
- message?: unknown;
3204
- hint?: unknown;
3205
- allowed?: unknown;
3206
- got?: unknown;
3207
- display_error?: unknown;
3208
- }>;
3209
- };
3210
- };
3211
- external_id: string | null;
3212
- metadata: {
3213
- [key: string]: string | number | boolean;
3214
- };
3215
- created_at: string;
3216
- updated_at: string;
3217
- };
1810
+ media: _postrun_js.Media;
3218
1811
  }>;
3219
1812
  } | {
3220
1813
  platform: "facebook_page";
@@ -3226,7 +1819,7 @@ declare function useCreatePost(profileId: string): {
3226
1819
  object: "post_variant";
3227
1820
  connection_id: string | null;
3228
1821
  body: string | null;
3229
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1822
+ status: _postrun_js.PostVariantStatus;
3230
1823
  schedule_at: string | null;
3231
1824
  result: {
3232
1825
  platform_post_id: string;
@@ -3245,66 +1838,7 @@ declare function useCreatePost(profileId: string): {
3245
1838
  [key: string]: unknown;
3246
1839
  } | null;
3247
1840
  alt_text_override: string | null;
3248
- media: {
3249
- id: string;
3250
- object: "media";
3251
- profile_id: string;
3252
- kind: "image" | "video" | "gif" | "document" | null;
3253
- content_type: string | null;
3254
- status: "uploading" | "processing" | "ready" | "failed";
3255
- progress: {
3256
- stage: "queued" | "analyzing" | "transcoding" | "done";
3257
- percent: number;
3258
- };
3259
- raw: boolean;
3260
- error: {
3261
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3262
- message: string;
3263
- hint?: string;
3264
- allowed?: Array<string>;
3265
- got?: string;
3266
- display_error: string;
3267
- } | null;
3268
- source: {
3269
- format: string;
3270
- bytes: number;
3271
- width: number | null;
3272
- height: number | null;
3273
- duration_ms: number | null;
3274
- } | null;
3275
- alt_text: string | null;
3276
- per_platform: {
3277
- [key: string]: {
3278
- status: "processing" | "ready" | "failed";
3279
- url: string | null;
3280
- width: number | null;
3281
- height: number | null;
3282
- bytes: number | null;
3283
- warnings: Array<{
3284
- code?: unknown;
3285
- message?: unknown;
3286
- hint?: unknown;
3287
- allowed?: unknown;
3288
- got?: unknown;
3289
- display_error?: unknown;
3290
- }>;
3291
- errors: Array<{
3292
- code?: unknown;
3293
- message?: unknown;
3294
- hint?: unknown;
3295
- allowed?: unknown;
3296
- got?: unknown;
3297
- display_error?: unknown;
3298
- }>;
3299
- };
3300
- };
3301
- external_id: string | null;
3302
- metadata: {
3303
- [key: string]: string | number | boolean;
3304
- };
3305
- created_at: string;
3306
- updated_at: string;
3307
- };
1841
+ media: _postrun_js.Media;
3308
1842
  }>;
3309
1843
  } | {
3310
1844
  platform: "instagram";
@@ -3327,7 +1861,7 @@ declare function useCreatePost(profileId: string): {
3327
1861
  object: "post_variant";
3328
1862
  connection_id: string | null;
3329
1863
  body: string | null;
3330
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1864
+ status: _postrun_js.PostVariantStatus;
3331
1865
  schedule_at: string | null;
3332
1866
  result: {
3333
1867
  platform_post_id: string;
@@ -3346,66 +1880,7 @@ declare function useCreatePost(profileId: string): {
3346
1880
  [key: string]: unknown;
3347
1881
  } | null;
3348
1882
  alt_text_override: string | null;
3349
- media: {
3350
- id: string;
3351
- object: "media";
3352
- profile_id: string;
3353
- kind: "image" | "video" | "gif" | "document" | null;
3354
- content_type: string | null;
3355
- status: "uploading" | "processing" | "ready" | "failed";
3356
- progress: {
3357
- stage: "queued" | "analyzing" | "transcoding" | "done";
3358
- percent: number;
3359
- };
3360
- raw: boolean;
3361
- error: {
3362
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3363
- message: string;
3364
- hint?: string;
3365
- allowed?: Array<string>;
3366
- got?: string;
3367
- display_error: string;
3368
- } | null;
3369
- source: {
3370
- format: string;
3371
- bytes: number;
3372
- width: number | null;
3373
- height: number | null;
3374
- duration_ms: number | null;
3375
- } | null;
3376
- alt_text: string | null;
3377
- per_platform: {
3378
- [key: string]: {
3379
- status: "processing" | "ready" | "failed";
3380
- url: string | null;
3381
- width: number | null;
3382
- height: number | null;
3383
- bytes: number | null;
3384
- warnings: Array<{
3385
- code?: unknown;
3386
- message?: unknown;
3387
- hint?: unknown;
3388
- allowed?: unknown;
3389
- got?: unknown;
3390
- display_error?: unknown;
3391
- }>;
3392
- errors: Array<{
3393
- code?: unknown;
3394
- message?: unknown;
3395
- hint?: unknown;
3396
- allowed?: unknown;
3397
- got?: unknown;
3398
- display_error?: unknown;
3399
- }>;
3400
- };
3401
- };
3402
- external_id: string | null;
3403
- metadata: {
3404
- [key: string]: string | number | boolean;
3405
- };
3406
- created_at: string;
3407
- updated_at: string;
3408
- };
1883
+ media: _postrun_js.Media;
3409
1884
  }>;
3410
1885
  } | {
3411
1886
  platform: "tiktok";
@@ -3426,7 +1901,7 @@ declare function useCreatePost(profileId: string): {
3426
1901
  object: "post_variant";
3427
1902
  connection_id: string | null;
3428
1903
  body: string | null;
3429
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1904
+ status: _postrun_js.PostVariantStatus;
3430
1905
  schedule_at: string | null;
3431
1906
  result: {
3432
1907
  platform_post_id: string;
@@ -3445,66 +1920,7 @@ declare function useCreatePost(profileId: string): {
3445
1920
  [key: string]: unknown;
3446
1921
  } | null;
3447
1922
  alt_text_override: string | null;
3448
- media: {
3449
- id: string;
3450
- object: "media";
3451
- profile_id: string;
3452
- kind: "image" | "video" | "gif" | "document" | null;
3453
- content_type: string | null;
3454
- status: "uploading" | "processing" | "ready" | "failed";
3455
- progress: {
3456
- stage: "queued" | "analyzing" | "transcoding" | "done";
3457
- percent: number;
3458
- };
3459
- raw: boolean;
3460
- error: {
3461
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3462
- message: string;
3463
- hint?: string;
3464
- allowed?: Array<string>;
3465
- got?: string;
3466
- display_error: string;
3467
- } | null;
3468
- source: {
3469
- format: string;
3470
- bytes: number;
3471
- width: number | null;
3472
- height: number | null;
3473
- duration_ms: number | null;
3474
- } | null;
3475
- alt_text: string | null;
3476
- per_platform: {
3477
- [key: string]: {
3478
- status: "processing" | "ready" | "failed";
3479
- url: string | null;
3480
- width: number | null;
3481
- height: number | null;
3482
- bytes: number | null;
3483
- warnings: Array<{
3484
- code?: unknown;
3485
- message?: unknown;
3486
- hint?: unknown;
3487
- allowed?: unknown;
3488
- got?: unknown;
3489
- display_error?: unknown;
3490
- }>;
3491
- errors: Array<{
3492
- code?: unknown;
3493
- message?: unknown;
3494
- hint?: unknown;
3495
- allowed?: unknown;
3496
- got?: unknown;
3497
- display_error?: unknown;
3498
- }>;
3499
- };
3500
- };
3501
- external_id: string | null;
3502
- metadata: {
3503
- [key: string]: string | number | boolean;
3504
- };
3505
- created_at: string;
3506
- updated_at: string;
3507
- };
1923
+ media: _postrun_js.Media;
3508
1924
  }>;
3509
1925
  }>;
3510
1926
  created_at: string;
@@ -3554,7 +1970,7 @@ declare function useCreatePost(profileId: string): {
3554
1970
  object: "post_variant";
3555
1971
  connection_id: string | null;
3556
1972
  body: string | null;
3557
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
1973
+ status: _postrun_js.PostVariantStatus;
3558
1974
  schedule_at: string | null;
3559
1975
  result: {
3560
1976
  platform_post_id: string;
@@ -3573,66 +1989,7 @@ declare function useCreatePost(profileId: string): {
3573
1989
  [key: string]: unknown;
3574
1990
  } | null;
3575
1991
  alt_text_override: string | null;
3576
- media: {
3577
- id: string;
3578
- object: "media";
3579
- profile_id: string;
3580
- kind: "image" | "video" | "gif" | "document" | null;
3581
- content_type: string | null;
3582
- status: "uploading" | "processing" | "ready" | "failed";
3583
- progress: {
3584
- stage: "queued" | "analyzing" | "transcoding" | "done";
3585
- percent: number;
3586
- };
3587
- raw: boolean;
3588
- error: {
3589
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3590
- message: string;
3591
- hint?: string;
3592
- allowed?: Array<string>;
3593
- got?: string;
3594
- display_error: string;
3595
- } | null;
3596
- source: {
3597
- format: string;
3598
- bytes: number;
3599
- width: number | null;
3600
- height: number | null;
3601
- duration_ms: number | null;
3602
- } | null;
3603
- alt_text: string | null;
3604
- per_platform: {
3605
- [key: string]: {
3606
- status: "processing" | "ready" | "failed";
3607
- url: string | null;
3608
- width: number | null;
3609
- height: number | null;
3610
- bytes: number | null;
3611
- warnings: Array<{
3612
- code?: unknown;
3613
- message?: unknown;
3614
- hint?: unknown;
3615
- allowed?: unknown;
3616
- got?: unknown;
3617
- display_error?: unknown;
3618
- }>;
3619
- errors: Array<{
3620
- code?: unknown;
3621
- message?: unknown;
3622
- hint?: unknown;
3623
- allowed?: unknown;
3624
- got?: unknown;
3625
- display_error?: unknown;
3626
- }>;
3627
- };
3628
- };
3629
- external_id: string | null;
3630
- metadata: {
3631
- [key: string]: string | number | boolean;
3632
- };
3633
- created_at: string;
3634
- updated_at: string;
3635
- };
1992
+ media: _postrun_js.Media;
3636
1993
  }>;
3637
1994
  } | {
3638
1995
  platform: "linkedin";
@@ -3665,7 +2022,7 @@ declare function useCreatePost(profileId: string): {
3665
2022
  object: "post_variant";
3666
2023
  connection_id: string | null;
3667
2024
  body: string | null;
3668
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2025
+ status: _postrun_js.PostVariantStatus;
3669
2026
  schedule_at: string | null;
3670
2027
  result: {
3671
2028
  platform_post_id: string;
@@ -3684,66 +2041,7 @@ declare function useCreatePost(profileId: string): {
3684
2041
  [key: string]: unknown;
3685
2042
  } | null;
3686
2043
  alt_text_override: string | null;
3687
- media: {
3688
- id: string;
3689
- object: "media";
3690
- profile_id: string;
3691
- kind: "image" | "video" | "gif" | "document" | null;
3692
- content_type: string | null;
3693
- status: "uploading" | "processing" | "ready" | "failed";
3694
- progress: {
3695
- stage: "queued" | "analyzing" | "transcoding" | "done";
3696
- percent: number;
3697
- };
3698
- raw: boolean;
3699
- error: {
3700
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3701
- message: string;
3702
- hint?: string;
3703
- allowed?: Array<string>;
3704
- got?: string;
3705
- display_error: string;
3706
- } | null;
3707
- source: {
3708
- format: string;
3709
- bytes: number;
3710
- width: number | null;
3711
- height: number | null;
3712
- duration_ms: number | null;
3713
- } | null;
3714
- alt_text: string | null;
3715
- per_platform: {
3716
- [key: string]: {
3717
- status: "processing" | "ready" | "failed";
3718
- url: string | null;
3719
- width: number | null;
3720
- height: number | null;
3721
- bytes: number | null;
3722
- warnings: Array<{
3723
- code?: unknown;
3724
- message?: unknown;
3725
- hint?: unknown;
3726
- allowed?: unknown;
3727
- got?: unknown;
3728
- display_error?: unknown;
3729
- }>;
3730
- errors: Array<{
3731
- code?: unknown;
3732
- message?: unknown;
3733
- hint?: unknown;
3734
- allowed?: unknown;
3735
- got?: unknown;
3736
- display_error?: unknown;
3737
- }>;
3738
- };
3739
- };
3740
- external_id: string | null;
3741
- metadata: {
3742
- [key: string]: string | number | boolean;
3743
- };
3744
- created_at: string;
3745
- updated_at: string;
3746
- };
2044
+ media: _postrun_js.Media;
3747
2045
  }>;
3748
2046
  } | {
3749
2047
  platform: "facebook_page";
@@ -3755,7 +2053,7 @@ declare function useCreatePost(profileId: string): {
3755
2053
  object: "post_variant";
3756
2054
  connection_id: string | null;
3757
2055
  body: string | null;
3758
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2056
+ status: _postrun_js.PostVariantStatus;
3759
2057
  schedule_at: string | null;
3760
2058
  result: {
3761
2059
  platform_post_id: string;
@@ -3774,66 +2072,7 @@ declare function useCreatePost(profileId: string): {
3774
2072
  [key: string]: unknown;
3775
2073
  } | null;
3776
2074
  alt_text_override: string | null;
3777
- media: {
3778
- id: string;
3779
- object: "media";
3780
- profile_id: string;
3781
- kind: "image" | "video" | "gif" | "document" | null;
3782
- content_type: string | null;
3783
- status: "uploading" | "processing" | "ready" | "failed";
3784
- progress: {
3785
- stage: "queued" | "analyzing" | "transcoding" | "done";
3786
- percent: number;
3787
- };
3788
- raw: boolean;
3789
- error: {
3790
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3791
- message: string;
3792
- hint?: string;
3793
- allowed?: Array<string>;
3794
- got?: string;
3795
- display_error: string;
3796
- } | null;
3797
- source: {
3798
- format: string;
3799
- bytes: number;
3800
- width: number | null;
3801
- height: number | null;
3802
- duration_ms: number | null;
3803
- } | null;
3804
- alt_text: string | null;
3805
- per_platform: {
3806
- [key: string]: {
3807
- status: "processing" | "ready" | "failed";
3808
- url: string | null;
3809
- width: number | null;
3810
- height: number | null;
3811
- bytes: number | null;
3812
- warnings: Array<{
3813
- code?: unknown;
3814
- message?: unknown;
3815
- hint?: unknown;
3816
- allowed?: unknown;
3817
- got?: unknown;
3818
- display_error?: unknown;
3819
- }>;
3820
- errors: Array<{
3821
- code?: unknown;
3822
- message?: unknown;
3823
- hint?: unknown;
3824
- allowed?: unknown;
3825
- got?: unknown;
3826
- display_error?: unknown;
3827
- }>;
3828
- };
3829
- };
3830
- external_id: string | null;
3831
- metadata: {
3832
- [key: string]: string | number | boolean;
3833
- };
3834
- created_at: string;
3835
- updated_at: string;
3836
- };
2075
+ media: _postrun_js.Media;
3837
2076
  }>;
3838
2077
  } | {
3839
2078
  platform: "instagram";
@@ -3856,7 +2095,7 @@ declare function useCreatePost(profileId: string): {
3856
2095
  object: "post_variant";
3857
2096
  connection_id: string | null;
3858
2097
  body: string | null;
3859
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2098
+ status: _postrun_js.PostVariantStatus;
3860
2099
  schedule_at: string | null;
3861
2100
  result: {
3862
2101
  platform_post_id: string;
@@ -3875,66 +2114,7 @@ declare function useCreatePost(profileId: string): {
3875
2114
  [key: string]: unknown;
3876
2115
  } | null;
3877
2116
  alt_text_override: string | null;
3878
- media: {
3879
- id: string;
3880
- object: "media";
3881
- profile_id: string;
3882
- kind: "image" | "video" | "gif" | "document" | null;
3883
- content_type: string | null;
3884
- status: "uploading" | "processing" | "ready" | "failed";
3885
- progress: {
3886
- stage: "queued" | "analyzing" | "transcoding" | "done";
3887
- percent: number;
3888
- };
3889
- raw: boolean;
3890
- error: {
3891
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3892
- message: string;
3893
- hint?: string;
3894
- allowed?: Array<string>;
3895
- got?: string;
3896
- display_error: string;
3897
- } | null;
3898
- source: {
3899
- format: string;
3900
- bytes: number;
3901
- width: number | null;
3902
- height: number | null;
3903
- duration_ms: number | null;
3904
- } | null;
3905
- alt_text: string | null;
3906
- per_platform: {
3907
- [key: string]: {
3908
- status: "processing" | "ready" | "failed";
3909
- url: string | null;
3910
- width: number | null;
3911
- height: number | null;
3912
- bytes: number | null;
3913
- warnings: Array<{
3914
- code?: unknown;
3915
- message?: unknown;
3916
- hint?: unknown;
3917
- allowed?: unknown;
3918
- got?: unknown;
3919
- display_error?: unknown;
3920
- }>;
3921
- errors: Array<{
3922
- code?: unknown;
3923
- message?: unknown;
3924
- hint?: unknown;
3925
- allowed?: unknown;
3926
- got?: unknown;
3927
- display_error?: unknown;
3928
- }>;
3929
- };
3930
- };
3931
- external_id: string | null;
3932
- metadata: {
3933
- [key: string]: string | number | boolean;
3934
- };
3935
- created_at: string;
3936
- updated_at: string;
3937
- };
2117
+ media: _postrun_js.Media;
3938
2118
  }>;
3939
2119
  } | {
3940
2120
  platform: "tiktok";
@@ -3955,7 +2135,7 @@ declare function useCreatePost(profileId: string): {
3955
2135
  object: "post_variant";
3956
2136
  connection_id: string | null;
3957
2137
  body: string | null;
3958
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2138
+ status: _postrun_js.PostVariantStatus;
3959
2139
  schedule_at: string | null;
3960
2140
  result: {
3961
2141
  platform_post_id: string;
@@ -3974,66 +2154,7 @@ declare function useCreatePost(profileId: string): {
3974
2154
  [key: string]: unknown;
3975
2155
  } | null;
3976
2156
  alt_text_override: string | null;
3977
- media: {
3978
- id: string;
3979
- object: "media";
3980
- profile_id: string;
3981
- kind: "image" | "video" | "gif" | "document" | null;
3982
- content_type: string | null;
3983
- status: "uploading" | "processing" | "ready" | "failed";
3984
- progress: {
3985
- stage: "queued" | "analyzing" | "transcoding" | "done";
3986
- percent: number;
3987
- };
3988
- raw: boolean;
3989
- error: {
3990
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
3991
- message: string;
3992
- hint?: string;
3993
- allowed?: Array<string>;
3994
- got?: string;
3995
- display_error: string;
3996
- } | null;
3997
- source: {
3998
- format: string;
3999
- bytes: number;
4000
- width: number | null;
4001
- height: number | null;
4002
- duration_ms: number | null;
4003
- } | null;
4004
- alt_text: string | null;
4005
- per_platform: {
4006
- [key: string]: {
4007
- status: "processing" | "ready" | "failed";
4008
- url: string | null;
4009
- width: number | null;
4010
- height: number | null;
4011
- bytes: number | null;
4012
- warnings: Array<{
4013
- code?: unknown;
4014
- message?: unknown;
4015
- hint?: unknown;
4016
- allowed?: unknown;
4017
- got?: unknown;
4018
- display_error?: unknown;
4019
- }>;
4020
- errors: Array<{
4021
- code?: unknown;
4022
- message?: unknown;
4023
- hint?: unknown;
4024
- allowed?: unknown;
4025
- got?: unknown;
4026
- display_error?: unknown;
4027
- }>;
4028
- };
4029
- };
4030
- external_id: string | null;
4031
- metadata: {
4032
- [key: string]: string | number | boolean;
4033
- };
4034
- created_at: string;
4035
- updated_at: string;
4036
- };
2157
+ media: _postrun_js.Media;
4037
2158
  }>;
4038
2159
  }>;
4039
2160
  created_at: string;
@@ -4072,7 +2193,7 @@ declare function useCreatePost(profileId: string): {
4072
2193
  object: "post_variant";
4073
2194
  connection_id: string | null;
4074
2195
  body: string | null;
4075
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2196
+ status: _postrun_js.PostVariantStatus;
4076
2197
  schedule_at: string | null;
4077
2198
  result: {
4078
2199
  platform_post_id: string;
@@ -4091,66 +2212,7 @@ declare function useCreatePost(profileId: string): {
4091
2212
  [key: string]: unknown;
4092
2213
  } | null;
4093
2214
  alt_text_override: string | null;
4094
- media: {
4095
- id: string;
4096
- object: "media";
4097
- profile_id: string;
4098
- kind: "image" | "video" | "gif" | "document" | null;
4099
- content_type: string | null;
4100
- status: "uploading" | "processing" | "ready" | "failed";
4101
- progress: {
4102
- stage: "queued" | "analyzing" | "transcoding" | "done";
4103
- percent: number;
4104
- };
4105
- raw: boolean;
4106
- error: {
4107
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4108
- message: string;
4109
- hint?: string;
4110
- allowed?: Array<string>;
4111
- got?: string;
4112
- display_error: string;
4113
- } | null;
4114
- source: {
4115
- format: string;
4116
- bytes: number;
4117
- width: number | null;
4118
- height: number | null;
4119
- duration_ms: number | null;
4120
- } | null;
4121
- alt_text: string | null;
4122
- per_platform: {
4123
- [key: string]: {
4124
- status: "processing" | "ready" | "failed";
4125
- url: string | null;
4126
- width: number | null;
4127
- height: number | null;
4128
- bytes: number | null;
4129
- warnings: Array<{
4130
- code?: unknown;
4131
- message?: unknown;
4132
- hint?: unknown;
4133
- allowed?: unknown;
4134
- got?: unknown;
4135
- display_error?: unknown;
4136
- }>;
4137
- errors: Array<{
4138
- code?: unknown;
4139
- message?: unknown;
4140
- hint?: unknown;
4141
- allowed?: unknown;
4142
- got?: unknown;
4143
- display_error?: unknown;
4144
- }>;
4145
- };
4146
- };
4147
- external_id: string | null;
4148
- metadata: {
4149
- [key: string]: string | number | boolean;
4150
- };
4151
- created_at: string;
4152
- updated_at: string;
4153
- };
2215
+ media: _postrun_js.Media;
4154
2216
  }>;
4155
2217
  } | {
4156
2218
  platform: "linkedin";
@@ -4183,7 +2245,7 @@ declare function useCreatePost(profileId: string): {
4183
2245
  object: "post_variant";
4184
2246
  connection_id: string | null;
4185
2247
  body: string | null;
4186
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2248
+ status: _postrun_js.PostVariantStatus;
4187
2249
  schedule_at: string | null;
4188
2250
  result: {
4189
2251
  platform_post_id: string;
@@ -4202,66 +2264,7 @@ declare function useCreatePost(profileId: string): {
4202
2264
  [key: string]: unknown;
4203
2265
  } | null;
4204
2266
  alt_text_override: string | null;
4205
- media: {
4206
- id: string;
4207
- object: "media";
4208
- profile_id: string;
4209
- kind: "image" | "video" | "gif" | "document" | null;
4210
- content_type: string | null;
4211
- status: "uploading" | "processing" | "ready" | "failed";
4212
- progress: {
4213
- stage: "queued" | "analyzing" | "transcoding" | "done";
4214
- percent: number;
4215
- };
4216
- raw: boolean;
4217
- error: {
4218
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4219
- message: string;
4220
- hint?: string;
4221
- allowed?: Array<string>;
4222
- got?: string;
4223
- display_error: string;
4224
- } | null;
4225
- source: {
4226
- format: string;
4227
- bytes: number;
4228
- width: number | null;
4229
- height: number | null;
4230
- duration_ms: number | null;
4231
- } | null;
4232
- alt_text: string | null;
4233
- per_platform: {
4234
- [key: string]: {
4235
- status: "processing" | "ready" | "failed";
4236
- url: string | null;
4237
- width: number | null;
4238
- height: number | null;
4239
- bytes: number | null;
4240
- warnings: Array<{
4241
- code?: unknown;
4242
- message?: unknown;
4243
- hint?: unknown;
4244
- allowed?: unknown;
4245
- got?: unknown;
4246
- display_error?: unknown;
4247
- }>;
4248
- errors: Array<{
4249
- code?: unknown;
4250
- message?: unknown;
4251
- hint?: unknown;
4252
- allowed?: unknown;
4253
- got?: unknown;
4254
- display_error?: unknown;
4255
- }>;
4256
- };
4257
- };
4258
- external_id: string | null;
4259
- metadata: {
4260
- [key: string]: string | number | boolean;
4261
- };
4262
- created_at: string;
4263
- updated_at: string;
4264
- };
2267
+ media: _postrun_js.Media;
4265
2268
  }>;
4266
2269
  } | {
4267
2270
  platform: "facebook_page";
@@ -4273,7 +2276,7 @@ declare function useCreatePost(profileId: string): {
4273
2276
  object: "post_variant";
4274
2277
  connection_id: string | null;
4275
2278
  body: string | null;
4276
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2279
+ status: _postrun_js.PostVariantStatus;
4277
2280
  schedule_at: string | null;
4278
2281
  result: {
4279
2282
  platform_post_id: string;
@@ -4292,66 +2295,7 @@ declare function useCreatePost(profileId: string): {
4292
2295
  [key: string]: unknown;
4293
2296
  } | null;
4294
2297
  alt_text_override: string | null;
4295
- media: {
4296
- id: string;
4297
- object: "media";
4298
- profile_id: string;
4299
- kind: "image" | "video" | "gif" | "document" | null;
4300
- content_type: string | null;
4301
- status: "uploading" | "processing" | "ready" | "failed";
4302
- progress: {
4303
- stage: "queued" | "analyzing" | "transcoding" | "done";
4304
- percent: number;
4305
- };
4306
- raw: boolean;
4307
- error: {
4308
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4309
- message: string;
4310
- hint?: string;
4311
- allowed?: Array<string>;
4312
- got?: string;
4313
- display_error: string;
4314
- } | null;
4315
- source: {
4316
- format: string;
4317
- bytes: number;
4318
- width: number | null;
4319
- height: number | null;
4320
- duration_ms: number | null;
4321
- } | null;
4322
- alt_text: string | null;
4323
- per_platform: {
4324
- [key: string]: {
4325
- status: "processing" | "ready" | "failed";
4326
- url: string | null;
4327
- width: number | null;
4328
- height: number | null;
4329
- bytes: number | null;
4330
- warnings: Array<{
4331
- code?: unknown;
4332
- message?: unknown;
4333
- hint?: unknown;
4334
- allowed?: unknown;
4335
- got?: unknown;
4336
- display_error?: unknown;
4337
- }>;
4338
- errors: Array<{
4339
- code?: unknown;
4340
- message?: unknown;
4341
- hint?: unknown;
4342
- allowed?: unknown;
4343
- got?: unknown;
4344
- display_error?: unknown;
4345
- }>;
4346
- };
4347
- };
4348
- external_id: string | null;
4349
- metadata: {
4350
- [key: string]: string | number | boolean;
4351
- };
4352
- created_at: string;
4353
- updated_at: string;
4354
- };
2298
+ media: _postrun_js.Media;
4355
2299
  }>;
4356
2300
  } | {
4357
2301
  platform: "instagram";
@@ -4374,7 +2318,7 @@ declare function useCreatePost(profileId: string): {
4374
2318
  object: "post_variant";
4375
2319
  connection_id: string | null;
4376
2320
  body: string | null;
4377
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2321
+ status: _postrun_js.PostVariantStatus;
4378
2322
  schedule_at: string | null;
4379
2323
  result: {
4380
2324
  platform_post_id: string;
@@ -4393,66 +2337,7 @@ declare function useCreatePost(profileId: string): {
4393
2337
  [key: string]: unknown;
4394
2338
  } | null;
4395
2339
  alt_text_override: string | null;
4396
- media: {
4397
- id: string;
4398
- object: "media";
4399
- profile_id: string;
4400
- kind: "image" | "video" | "gif" | "document" | null;
4401
- content_type: string | null;
4402
- status: "uploading" | "processing" | "ready" | "failed";
4403
- progress: {
4404
- stage: "queued" | "analyzing" | "transcoding" | "done";
4405
- percent: number;
4406
- };
4407
- raw: boolean;
4408
- error: {
4409
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4410
- message: string;
4411
- hint?: string;
4412
- allowed?: Array<string>;
4413
- got?: string;
4414
- display_error: string;
4415
- } | null;
4416
- source: {
4417
- format: string;
4418
- bytes: number;
4419
- width: number | null;
4420
- height: number | null;
4421
- duration_ms: number | null;
4422
- } | null;
4423
- alt_text: string | null;
4424
- per_platform: {
4425
- [key: string]: {
4426
- status: "processing" | "ready" | "failed";
4427
- url: string | null;
4428
- width: number | null;
4429
- height: number | null;
4430
- bytes: number | null;
4431
- warnings: Array<{
4432
- code?: unknown;
4433
- message?: unknown;
4434
- hint?: unknown;
4435
- allowed?: unknown;
4436
- got?: unknown;
4437
- display_error?: unknown;
4438
- }>;
4439
- errors: Array<{
4440
- code?: unknown;
4441
- message?: unknown;
4442
- hint?: unknown;
4443
- allowed?: unknown;
4444
- got?: unknown;
4445
- display_error?: unknown;
4446
- }>;
4447
- };
4448
- };
4449
- external_id: string | null;
4450
- metadata: {
4451
- [key: string]: string | number | boolean;
4452
- };
4453
- created_at: string;
4454
- updated_at: string;
4455
- };
2340
+ media: _postrun_js.Media;
4456
2341
  }>;
4457
2342
  } | {
4458
2343
  platform: "tiktok";
@@ -4473,7 +2358,7 @@ declare function useCreatePost(profileId: string): {
4473
2358
  object: "post_variant";
4474
2359
  connection_id: string | null;
4475
2360
  body: string | null;
4476
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2361
+ status: _postrun_js.PostVariantStatus;
4477
2362
  schedule_at: string | null;
4478
2363
  result: {
4479
2364
  platform_post_id: string;
@@ -4492,66 +2377,7 @@ declare function useCreatePost(profileId: string): {
4492
2377
  [key: string]: unknown;
4493
2378
  } | null;
4494
2379
  alt_text_override: string | null;
4495
- media: {
4496
- id: string;
4497
- object: "media";
4498
- profile_id: string;
4499
- kind: "image" | "video" | "gif" | "document" | null;
4500
- content_type: string | null;
4501
- status: "uploading" | "processing" | "ready" | "failed";
4502
- progress: {
4503
- stage: "queued" | "analyzing" | "transcoding" | "done";
4504
- percent: number;
4505
- };
4506
- raw: boolean;
4507
- error: {
4508
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4509
- message: string;
4510
- hint?: string;
4511
- allowed?: Array<string>;
4512
- got?: string;
4513
- display_error: string;
4514
- } | null;
4515
- source: {
4516
- format: string;
4517
- bytes: number;
4518
- width: number | null;
4519
- height: number | null;
4520
- duration_ms: number | null;
4521
- } | null;
4522
- alt_text: string | null;
4523
- per_platform: {
4524
- [key: string]: {
4525
- status: "processing" | "ready" | "failed";
4526
- url: string | null;
4527
- width: number | null;
4528
- height: number | null;
4529
- bytes: number | null;
4530
- warnings: Array<{
4531
- code?: unknown;
4532
- message?: unknown;
4533
- hint?: unknown;
4534
- allowed?: unknown;
4535
- got?: unknown;
4536
- display_error?: unknown;
4537
- }>;
4538
- errors: Array<{
4539
- code?: unknown;
4540
- message?: unknown;
4541
- hint?: unknown;
4542
- allowed?: unknown;
4543
- got?: unknown;
4544
- display_error?: unknown;
4545
- }>;
4546
- };
4547
- };
4548
- external_id: string | null;
4549
- metadata: {
4550
- [key: string]: string | number | boolean;
4551
- };
4552
- created_at: string;
4553
- updated_at: string;
4554
- };
2380
+ media: _postrun_js.Media;
4555
2381
  }>;
4556
2382
  })[];
4557
2383
  isReady: boolean;
@@ -4581,7 +2407,7 @@ declare function useValidatePost(profileId: string): {
4581
2407
  got?: string;
4582
2408
  variant_index: number;
4583
2409
  path: Array<string | number>;
4584
- platform?: "x" | "linkedin" | "facebook_page" | "instagram" | "tiktok";
2410
+ platform?: "tiktok" | "x" | "linkedin" | "facebook_page" | "instagram";
4585
2411
  display_error: string;
4586
2412
  }[];
4587
2413
  isPending: boolean;
@@ -4634,7 +2460,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4634
2460
  object: "post_variant";
4635
2461
  connection_id: string | null;
4636
2462
  body: string | null;
4637
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2463
+ status: _postrun_js.PostVariantStatus;
4638
2464
  schedule_at: string | null;
4639
2465
  result: {
4640
2466
  platform_post_id: string;
@@ -4653,66 +2479,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4653
2479
  [key: string]: unknown;
4654
2480
  } | null;
4655
2481
  alt_text_override: string | null;
4656
- media: {
4657
- id: string;
4658
- object: "media";
4659
- profile_id: string;
4660
- kind: "image" | "video" | "gif" | "document" | null;
4661
- content_type: string | null;
4662
- status: "uploading" | "processing" | "ready" | "failed";
4663
- progress: {
4664
- stage: "queued" | "analyzing" | "transcoding" | "done";
4665
- percent: number;
4666
- };
4667
- raw: boolean;
4668
- error: {
4669
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4670
- message: string;
4671
- hint?: string;
4672
- allowed?: Array<string>;
4673
- got?: string;
4674
- display_error: string;
4675
- } | null;
4676
- source: {
4677
- format: string;
4678
- bytes: number;
4679
- width: number | null;
4680
- height: number | null;
4681
- duration_ms: number | null;
4682
- } | null;
4683
- alt_text: string | null;
4684
- per_platform: {
4685
- [key: string]: {
4686
- status: "processing" | "ready" | "failed";
4687
- url: string | null;
4688
- width: number | null;
4689
- height: number | null;
4690
- bytes: number | null;
4691
- warnings: Array<{
4692
- code?: unknown;
4693
- message?: unknown;
4694
- hint?: unknown;
4695
- allowed?: unknown;
4696
- got?: unknown;
4697
- display_error?: unknown;
4698
- }>;
4699
- errors: Array<{
4700
- code?: unknown;
4701
- message?: unknown;
4702
- hint?: unknown;
4703
- allowed?: unknown;
4704
- got?: unknown;
4705
- display_error?: unknown;
4706
- }>;
4707
- };
4708
- };
4709
- external_id: string | null;
4710
- metadata: {
4711
- [key: string]: string | number | boolean;
4712
- };
4713
- created_at: string;
4714
- updated_at: string;
4715
- };
2482
+ media: _postrun_js.Media;
4716
2483
  }>;
4717
2484
  } | {
4718
2485
  platform: "linkedin";
@@ -4745,7 +2512,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4745
2512
  object: "post_variant";
4746
2513
  connection_id: string | null;
4747
2514
  body: string | null;
4748
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2515
+ status: _postrun_js.PostVariantStatus;
4749
2516
  schedule_at: string | null;
4750
2517
  result: {
4751
2518
  platform_post_id: string;
@@ -4764,66 +2531,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4764
2531
  [key: string]: unknown;
4765
2532
  } | null;
4766
2533
  alt_text_override: string | null;
4767
- media: {
4768
- id: string;
4769
- object: "media";
4770
- profile_id: string;
4771
- kind: "image" | "video" | "gif" | "document" | null;
4772
- content_type: string | null;
4773
- status: "uploading" | "processing" | "ready" | "failed";
4774
- progress: {
4775
- stage: "queued" | "analyzing" | "transcoding" | "done";
4776
- percent: number;
4777
- };
4778
- raw: boolean;
4779
- error: {
4780
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4781
- message: string;
4782
- hint?: string;
4783
- allowed?: Array<string>;
4784
- got?: string;
4785
- display_error: string;
4786
- } | null;
4787
- source: {
4788
- format: string;
4789
- bytes: number;
4790
- width: number | null;
4791
- height: number | null;
4792
- duration_ms: number | null;
4793
- } | null;
4794
- alt_text: string | null;
4795
- per_platform: {
4796
- [key: string]: {
4797
- status: "processing" | "ready" | "failed";
4798
- url: string | null;
4799
- width: number | null;
4800
- height: number | null;
4801
- bytes: number | null;
4802
- warnings: Array<{
4803
- code?: unknown;
4804
- message?: unknown;
4805
- hint?: unknown;
4806
- allowed?: unknown;
4807
- got?: unknown;
4808
- display_error?: unknown;
4809
- }>;
4810
- errors: Array<{
4811
- code?: unknown;
4812
- message?: unknown;
4813
- hint?: unknown;
4814
- allowed?: unknown;
4815
- got?: unknown;
4816
- display_error?: unknown;
4817
- }>;
4818
- };
4819
- };
4820
- external_id: string | null;
4821
- metadata: {
4822
- [key: string]: string | number | boolean;
4823
- };
4824
- created_at: string;
4825
- updated_at: string;
4826
- };
2534
+ media: _postrun_js.Media;
4827
2535
  }>;
4828
2536
  } | {
4829
2537
  platform: "facebook_page";
@@ -4835,7 +2543,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4835
2543
  object: "post_variant";
4836
2544
  connection_id: string | null;
4837
2545
  body: string | null;
4838
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2546
+ status: _postrun_js.PostVariantStatus;
4839
2547
  schedule_at: string | null;
4840
2548
  result: {
4841
2549
  platform_post_id: string;
@@ -4854,66 +2562,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4854
2562
  [key: string]: unknown;
4855
2563
  } | null;
4856
2564
  alt_text_override: string | null;
4857
- media: {
4858
- id: string;
4859
- object: "media";
4860
- profile_id: string;
4861
- kind: "image" | "video" | "gif" | "document" | null;
4862
- content_type: string | null;
4863
- status: "uploading" | "processing" | "ready" | "failed";
4864
- progress: {
4865
- stage: "queued" | "analyzing" | "transcoding" | "done";
4866
- percent: number;
4867
- };
4868
- raw: boolean;
4869
- error: {
4870
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4871
- message: string;
4872
- hint?: string;
4873
- allowed?: Array<string>;
4874
- got?: string;
4875
- display_error: string;
4876
- } | null;
4877
- source: {
4878
- format: string;
4879
- bytes: number;
4880
- width: number | null;
4881
- height: number | null;
4882
- duration_ms: number | null;
4883
- } | null;
4884
- alt_text: string | null;
4885
- per_platform: {
4886
- [key: string]: {
4887
- status: "processing" | "ready" | "failed";
4888
- url: string | null;
4889
- width: number | null;
4890
- height: number | null;
4891
- bytes: number | null;
4892
- warnings: Array<{
4893
- code?: unknown;
4894
- message?: unknown;
4895
- hint?: unknown;
4896
- allowed?: unknown;
4897
- got?: unknown;
4898
- display_error?: unknown;
4899
- }>;
4900
- errors: Array<{
4901
- code?: unknown;
4902
- message?: unknown;
4903
- hint?: unknown;
4904
- allowed?: unknown;
4905
- got?: unknown;
4906
- display_error?: unknown;
4907
- }>;
4908
- };
4909
- };
4910
- external_id: string | null;
4911
- metadata: {
4912
- [key: string]: string | number | boolean;
4913
- };
4914
- created_at: string;
4915
- updated_at: string;
4916
- };
2565
+ media: _postrun_js.Media;
4917
2566
  }>;
4918
2567
  } | {
4919
2568
  platform: "instagram";
@@ -4936,7 +2585,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4936
2585
  object: "post_variant";
4937
2586
  connection_id: string | null;
4938
2587
  body: string | null;
4939
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2588
+ status: _postrun_js.PostVariantStatus;
4940
2589
  schedule_at: string | null;
4941
2590
  result: {
4942
2591
  platform_post_id: string;
@@ -4955,66 +2604,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
4955
2604
  [key: string]: unknown;
4956
2605
  } | null;
4957
2606
  alt_text_override: string | null;
4958
- media: {
4959
- id: string;
4960
- object: "media";
4961
- profile_id: string;
4962
- kind: "image" | "video" | "gif" | "document" | null;
4963
- content_type: string | null;
4964
- status: "uploading" | "processing" | "ready" | "failed";
4965
- progress: {
4966
- stage: "queued" | "analyzing" | "transcoding" | "done";
4967
- percent: number;
4968
- };
4969
- raw: boolean;
4970
- error: {
4971
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
4972
- message: string;
4973
- hint?: string;
4974
- allowed?: Array<string>;
4975
- got?: string;
4976
- display_error: string;
4977
- } | null;
4978
- source: {
4979
- format: string;
4980
- bytes: number;
4981
- width: number | null;
4982
- height: number | null;
4983
- duration_ms: number | null;
4984
- } | null;
4985
- alt_text: string | null;
4986
- per_platform: {
4987
- [key: string]: {
4988
- status: "processing" | "ready" | "failed";
4989
- url: string | null;
4990
- width: number | null;
4991
- height: number | null;
4992
- bytes: number | null;
4993
- warnings: Array<{
4994
- code?: unknown;
4995
- message?: unknown;
4996
- hint?: unknown;
4997
- allowed?: unknown;
4998
- got?: unknown;
4999
- display_error?: unknown;
5000
- }>;
5001
- errors: Array<{
5002
- code?: unknown;
5003
- message?: unknown;
5004
- hint?: unknown;
5005
- allowed?: unknown;
5006
- got?: unknown;
5007
- display_error?: unknown;
5008
- }>;
5009
- };
5010
- };
5011
- external_id: string | null;
5012
- metadata: {
5013
- [key: string]: string | number | boolean;
5014
- };
5015
- created_at: string;
5016
- updated_at: string;
5017
- };
2607
+ media: _postrun_js.Media;
5018
2608
  }>;
5019
2609
  } | {
5020
2610
  platform: "tiktok";
@@ -5035,7 +2625,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
5035
2625
  object: "post_variant";
5036
2626
  connection_id: string | null;
5037
2627
  body: string | null;
5038
- status: "draft" | "scheduled" | "publishing" | "published" | "failed";
2628
+ status: _postrun_js.PostVariantStatus;
5039
2629
  schedule_at: string | null;
5040
2630
  result: {
5041
2631
  platform_post_id: string;
@@ -5054,66 +2644,7 @@ declare function useUpdatePost(postId: string): _tanstack_react_query.UseMutatio
5054
2644
  [key: string]: unknown;
5055
2645
  } | null;
5056
2646
  alt_text_override: string | null;
5057
- media: {
5058
- id: string;
5059
- object: "media";
5060
- profile_id: string;
5061
- kind: "image" | "video" | "gif" | "document" | null;
5062
- content_type: string | null;
5063
- status: "uploading" | "processing" | "ready" | "failed";
5064
- progress: {
5065
- stage: "queued" | "analyzing" | "transcoding" | "done";
5066
- percent: number;
5067
- };
5068
- raw: boolean;
5069
- error: {
5070
- code: "media_unprobeable" | "media_format_indeterminate" | "media_format_unsupported" | "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_unsupported";
5071
- message: string;
5072
- hint?: string;
5073
- allowed?: Array<string>;
5074
- got?: string;
5075
- display_error: string;
5076
- } | null;
5077
- source: {
5078
- format: string;
5079
- bytes: number;
5080
- width: number | null;
5081
- height: number | null;
5082
- duration_ms: number | null;
5083
- } | null;
5084
- alt_text: string | null;
5085
- per_platform: {
5086
- [key: string]: {
5087
- status: "processing" | "ready" | "failed";
5088
- url: string | null;
5089
- width: number | null;
5090
- height: number | null;
5091
- bytes: number | null;
5092
- warnings: Array<{
5093
- code?: unknown;
5094
- message?: unknown;
5095
- hint?: unknown;
5096
- allowed?: unknown;
5097
- got?: unknown;
5098
- display_error?: unknown;
5099
- }>;
5100
- errors: Array<{
5101
- code?: unknown;
5102
- message?: unknown;
5103
- hint?: unknown;
5104
- allowed?: unknown;
5105
- got?: unknown;
5106
- display_error?: unknown;
5107
- }>;
5108
- };
5109
- };
5110
- external_id: string | null;
5111
- metadata: {
5112
- [key: string]: string | number | boolean;
5113
- };
5114
- created_at: string;
5115
- updated_at: string;
5116
- };
2647
+ media: _postrun_js.Media;
5117
2648
  }>;
5118
2649
  }>;
5119
2650
  created_at: string;
@@ -5307,8 +2838,9 @@ declare function useTikTokCreatorInfo(connectionId: string | null): _tanstack_re
5307
2838
  * A platform's FETCHED (read) variant — one member of a stored `Post`'s
5308
2839
  * `variants`, as returned by `usePost`/`usePosts`/the calendar. Since the API's
5309
2840
  * read variant is now a typed discriminated union, it carries the SAME typed
5310
- * `settings`/`body`/`post_type`/`media` the write variant does, plus the
5311
- * read-only `id`/`status`/`result`/`error`.
2841
+ * `settings`/`body`/`post_type` the write variant does, plus the read-only
2842
+ * `id`/`status`/`result`/`error` AND the enriched `media[].media` (the full
2843
+ * `MediaResource` inline) — so a fetched post previews with no extra fetch.
5312
2844
  */
5313
2845
  type ReadPostVariant<P extends PostVariant['platform']> = Extract<PostVariant, {
5314
2846
  platform: P;
@@ -5316,147 +2848,152 @@ type ReadPostVariant<P extends PostVariant['platform']> = Extract<PostVariant, {
5316
2848
  /**
5317
2849
  * What a preview's `variant` prop accepts: EITHER the compose-time **write**
5318
2850
  * variant (`XPostVariant`, …) OR the fetched **read** variant. Both expose the
5319
- * typed `settings`, `body`, `post_type`, and `media[].alt_text_override` the cards
5320
- * read — so you can hand a preview a post you just built OR one you fetched from
5321
- * the API, with no transform.
2851
+ * typed `settings`, `body`, `post_type`, and ordered `media` refs the cards read
2852
+ * — so you can hand a preview a post you just built OR one you fetched, with no
2853
+ * transform. A read variant additionally carries each media's full asset inline;
2854
+ * a write/draft variant references media by id (resolve it via the `media` prop).
5322
2855
  */
5323
2856
  type XPreviewVariant = XPostVariant | ReadPostVariant<'x'>;
5324
2857
  type LinkedInPreviewVariant = LinkedInPostVariant | ReadPostVariant<'linkedin'>;
5325
2858
  type TikTokPreviewVariant = TikTokPostVariant | ReadPostVariant<'tiktok'>;
5326
2859
  type InstagramPreviewVariant = InstagramPostVariant | ReadPostVariant<'instagram'>;
5327
2860
  /**
5328
- * Public input types for the post-preview components.
5329
- *
5330
- * Identity that our API DOES store on a `Connection` (`username`, `avatar_url`,
5331
- * `profile_url`) is DERIVED from the SDK `Connection` type — never re-declared —
5332
- * so a preview author can be built straight from a connection and can't drift.
5333
- * Fields the API does NOT store (a verified badge, a display name distinct from
5334
- * the handle, a LinkedIn headline) are presentation extras the customer supplies;
5335
- * those are the documented backend gaps. Media `kind` derives from `MediaKind`;
5336
- * pixels are still a `url`/`File` because a variant references media by id.
5337
- */
5338
- /** The identity fields our `Connection` stores — the SDK-driven base every
5339
- * preview author derives from (so the field names + nullability match the API). */
5340
- type ConnectionIdentity = Pick<Connection, 'username' | 'avatar_url'>;
5341
- /**
5342
- * The author identity rendered in an X preview header. `username` (the `@handle`)
5343
- * and `avatar_url` are DERIVED from the SDK `Connection`; `name` (the display
5344
- * name) and `verified` are presentation extras our API doesn't store.
5345
- */
5346
- type XPreviewAuthor = ConnectionIdentity & {
5347
- /** Display name, e.g. "Acme Studio". NOT on Connection — caller-supplied. */
5348
- name: string;
5349
- /** Show the verified badge. NOT on Connection — caller-supplied. */
5350
- verified?: boolean;
5351
- };
5352
- /**
5353
- * The author identity rendered in a LinkedIn preview header. LinkedIn shows a
5354
- * display `name` + a one-line `headline`. `username`/`avatar_url` are DERIVED
5355
- * from the SDK `Connection`; `name`/`headline`/`verified` are presentation extras
5356
- * our API doesn't store (LinkedIn's `username` is also documented as NULL today).
5357
- */
5358
- type LinkedInPreviewAuthor = ConnectionIdentity & {
5359
- /** Display name, e.g. "Acme Studio". NOT on Connection — caller-supplied. */
5360
- name: string;
5361
- /** One-line headline under the name. NOT on Connection — caller-supplied. */
5362
- headline?: string;
5363
- /** Show the verified badge. NOT on Connection — caller-supplied. */
5364
- verified?: boolean;
5365
- };
5366
- /**
5367
- * The author identity rendered in an Instagram preview header. Instagram shows
5368
- * the `username` (no separate display name) + an optional verified badge.
2861
+ * The author a preview header renders. It is DERIVED from the SDK `Connection`
2862
+ * (the system of record for who's posting) — the card reads `avatar_url`,
2863
+ * `username`, and `external_account_name` straight off it, so the header can't
2864
+ * drift from the connection. Pass the whole connection; the card picks what it
2865
+ * needs.
5369
2866
  *
5370
- * `username` / `avatar_url` are DERIVED from the SDK `Connection` (`string | null`,
5371
- * so build it straight from `useConnections()`). `verified` is a presentation
5372
- * extra — our API does NOT store verified status on a connection (a backend gap),
5373
- * so the customer supplies it (or omit it).
2867
+ * The two things our API does NOT store on a connection are presentation extras
2868
+ * a customer may supply via the preview's own props: a `verified` badge and a
2869
+ * LinkedIn `headline`. Everything else comes from the connection.
5374
2870
  */
5375
- type InstagramPreviewAuthor = ConnectionIdentity & {
5376
- /** Verified badge. NOT sourced from our Connection — presentation-only. */
5377
- verified?: boolean;
5378
- };
2871
+ type PreviewConnection = Pick<Connection, 'platform' | 'username' | 'avatar_url' | 'external_account_name'>;
5379
2872
  /** The media kinds a social preview can render (documents are not previewable
5380
2873
  * here) — derived from the SDK's `MediaKind`, never re-listed. */
5381
2874
  type PreviewMediaKind = Extract<MediaKind, 'image' | 'video' | 'gif'>;
5382
2875
  /**
5383
- * One media item to preview. Provide a `url` (e.g. the processed
5384
- * `MediaResource.per_platform.<platform>.url`) OR a `file` (a compose-time blob,
5385
- * before upload) — the component turns a `file` into an object URL and revokes it
5386
- * on unmount. An item with neither is skipped.
2876
+ * One media item resolved for rendering — the shared shape every platform card's
2877
+ * renderer consumes. Produced by `resolveVariantMedia` straight from the SDK
2878
+ * `MediaResource`; pixels come from the per-platform rendition `url`, never a
2879
+ * local `File`.
2880
+ *
2881
+ * `state` is honest: a `ready` item has its `src` (the rendition URL); a
2882
+ * `processing` item has NO `src` (the asset or its rendition isn't ready) and the
2883
+ * card shows the shared "Processing media…" placeholder in its place.
5387
2884
  */
5388
- interface PreviewMedia {
2885
+ type ResolvedMedia = {
5389
2886
  kind: PreviewMediaKind;
5390
- url?: string;
5391
- file?: File;
5392
- /** Natural pixel width — improves layout fidelity when known. */
2887
+ state: 'ready';
2888
+ src: string;
5393
2889
  width?: number;
5394
- /** Natural pixel height — improves layout fidelity when known. */
5395
2890
  height?: number;
5396
- /** Alt text; falls back to the variant media's `alt_text_override`. */
5397
2891
  alt?: string;
5398
- /** Poster frame for a video; falls back to `url`/`file`. */
5399
- posterUrl?: string;
5400
- }
5401
- /** @deprecated Use {@link PreviewMedia}. Kept as an alias for back-compat. */
5402
- type XPreviewMedia = PreviewMedia;
5403
- /** A media item with its pixels already resolved to a single URL by the
5404
- * component (shared by every platform preview's renderer). */
5405
- interface ResolvedMedia {
2892
+ } | {
5406
2893
  kind: PreviewMediaKind;
5407
- src: string;
2894
+ state: 'processing';
2895
+ src?: undefined;
5408
2896
  width?: number;
5409
2897
  height?: number;
5410
2898
  alt?: string;
5411
- posterSrc?: string;
5412
- }
2899
+ };
2900
+ /** A resolved item that has pixels — the `ready` member of {@link ResolvedMedia}
2901
+ * (so `src` is guaranteed). Renderers that draw actual media take this; the
2902
+ * card decides up front whether to render pixels or the processing placeholder. */
2903
+ type ReadyMedia = Extract<ResolvedMedia, {
2904
+ state: 'ready';
2905
+ }>;
2906
+ /** Narrow a resolved item to its ready (has-pixels) form. */
2907
+ declare function isReadyMedia(item: ResolvedMedia): item is ReadyMedia;
5413
2908
  /**
5414
2909
  * Content for the nested quoted card. Supplied separately because our schema
5415
- * carries only an opaque `quote_tweet_id` (no quoted text/author).
2910
+ * carries only an opaque `quote_tweet_id` (no quoted text/author/media).
5416
2911
  */
5417
2912
  interface XPreviewQuotedTweet {
5418
- author: XPreviewAuthor;
2913
+ /** The quoted account's display name. */
2914
+ name: string;
2915
+ /** The quoted account's @handle. */
2916
+ username?: string | null;
2917
+ /** The quoted account's avatar URL. */
2918
+ avatar_url?: string | null;
5419
2919
  body?: string;
5420
- media?: PreviewMedia[];
2920
+ media?: ResolvedMedia[];
5421
2921
  }
5422
2922
 
5423
- declare function toPreviewMedia(items: readonly MediaUploadItem[]): PreviewMedia[];
2923
+ /**
2924
+ * The single media resolver every platform preview shares. It turns a variant's
2925
+ * ordered media references into the `ResolvedMedia[]` a card renders — pulling
2926
+ * pixels from the SDK `MediaResource` ONLY (the per-platform rendition `url`),
2927
+ * never a local `File`/object URL.
2928
+ *
2929
+ * A variant references media by id (`media[].media_id`). Two ways the full asset
2930
+ * arrives, and we read whichever is present:
2931
+ * - **Read / enriched variant:** `media[].media` carries the full `MediaResource`
2932
+ * inline (the GET /v1/posts shape) — used directly.
2933
+ * - **Compose / draft variant:** the write variant has only ids, so the host
2934
+ * passes the uploaded assets as `fallback` (e.g. `useMediaUpload().ready`),
2935
+ * matched by `media_id`.
2936
+ *
2937
+ * Media STATE is honest, straight off the resource: an asset still uploading /
2938
+ * processing (or whose this-platform rendition isn't ready) resolves with
2939
+ * `state: 'processing'` and no `src` — the card shows the shared "Processing
2940
+ * media…" placeholder; a ready rendition resolves with `state: 'ready'` + its
2941
+ * pixel URL. Documents aren't previewable and are dropped.
2942
+ */
2943
+ /** One variant's media reference — the WRITE (compose, id-only) OR the READ
2944
+ * (enriched, carries the full asset inline) shape. Both are derived from the SDK
2945
+ * variant unions, never re-declared. The write member is `media_id`-only; the
2946
+ * read member adds `media`/`position`. */
2947
+ type VariantMediaRef = NonNullable<PostVariantInput['media']>[number] | NonNullable<PostVariant['media']>[number];
2948
+ /**
2949
+ * Resolve a variant's media to renderable items for ONE platform target.
2950
+ *
2951
+ * @param refs the variant's `media` array (write or read shape)
2952
+ * @param target the media render target for this platform (`x`, `linkedin`,
2953
+ * `instagram`, `tiktok`, `facebook_page`)
2954
+ * @param fallback uploaded assets to resolve compose-time ids against (the read
2955
+ * variant carries its own enriched assets, so this is optional)
2956
+ */
2957
+ declare function resolveVariantMedia(refs: readonly VariantMediaRef[] | undefined, target: MediaTarget, fallback?: readonly MediaResource[]): ResolvedMedia[];
5424
2958
 
5425
2959
  interface XPostPreviewProps {
5426
2960
  /** The X variant — either a compose-time write variant or a fetched read
5427
- * variant (both carry the typed settings/body the card renders). */
2961
+ * variant. A read variant carries its media assets inline; for a compose
2962
+ * variant, pass the uploaded assets via `media`. */
5428
2963
  variant: XPreviewVariant;
5429
- /** Author identity (not stored on our connection — supplied by you). */
5430
- author: XPreviewAuthor;
5431
- /** Resolved media pixels (URLs or compose-time File blobs). */
5432
- media?: PreviewMedia[];
2964
+ /** The posting account — the SDK `Connection`. The header derives the name,
2965
+ * @handle, and avatar from it. */
2966
+ connection: PreviewConnection;
2967
+ /** Uploaded assets to resolve a compose variant's media ids against (e.g.
2968
+ * `useMediaUpload().ready`). A read variant carries its own assets inline, so
2969
+ * this is only needed for a compose-time draft. */
2970
+ media?: readonly MediaResource[];
2971
+ /** Show the X verified badge — our API doesn't store it, so you supply it. */
2972
+ verified?: boolean;
5433
2973
  /** Content for the quoted card when `settings.quote_tweet_id` is set. */
5434
2974
  quotedTweet?: XPreviewQuotedTweet;
5435
2975
  /** The replied-to account's handle (our schema only stores the parent id). */
5436
2976
  replyToHandle?: string;
5437
- /** Color scheme. `auto` (default) follows the OS color scheme (light/dark) —
5438
- * the same resolution every Postrun preview card uses. */
2977
+ /** Color scheme. `auto` (default) follows the OS color scheme. */
5439
2978
  theme?: 'light' | 'dark' | 'auto';
5440
2979
  /** Show the static action row (icons, no counts). Default true. */
5441
2980
  showActions?: boolean;
5442
2981
  /** Class applied to the wrapper — your hook for sizing, shadows, etc. */
5443
2982
  className?: string;
5444
- /** Inline styles on the wrapper — e.g. react-tweet CSS variables
5445
- * (`{ ['--tweet-container-margin']: '0' }`). */
2983
+ /** Inline styles on the wrapper — e.g. react-tweet CSS variables. */
5446
2984
  style?: CSSProperties;
5447
2985
  /** Override react-tweet's internal pieces (e.g. `next/image` avatars). */
5448
2986
  components?: TwitterComponents;
5449
2987
  }
5450
2988
  /**
5451
2989
  * A faithful, pixel-accurate preview of how an X post will look once published,
5452
- * rendered straight from a Postrun X variant. Built on `react-tweet` (the same
5453
- * card X itself ships), so you write zero card UI — pass the schema, render the
5454
- * preview. Fully customizable: restyle via `className`/`style` (CSS variables)
5455
- * or swap internals via `components`; theme light/dark/auto.
2990
+ * rendered straight from a Postrun X variant + the posting `Connection`. Built on
2991
+ * `react-tweet` (the same card X ships): pass the schema, render the preview.
2992
+ * Media pixels come from the resolved per-platform renditions — a still-processing
2993
+ * asset shows the shared "Processing media…" tile instead of a fake image.
5456
2994
  */
5457
- declare function XPostPreviewImpl({ variant, author, media, quotedTweet, replyToHandle, theme, showActions, className, style, components: componentsProp, }: XPostPreviewProps): react.JSX.Element;
5458
- /** Memoized: re-renders only when its props change (the resolved-media hook
5459
- * already absorbs unstable media arrays). */
2995
+ declare function XPostPreviewImpl({ variant, connection, media, verified, quotedTweet, replyToHandle, theme, showActions, className, style, components: componentsProp, }: XPostPreviewProps): react.JSX.Element;
2996
+ /** Memoized: re-renders only when its props change. */
5460
2997
  declare const XPostPreview: react.MemoExoticComponent<typeof XPostPreviewImpl>;
5461
2998
 
5462
2999
  /**
@@ -5484,26 +3021,31 @@ type LinkedInTheme = 'light' | 'dark' | 'auto';
5484
3021
 
5485
3022
  /**
5486
3023
  * A faithful, schema-driven preview of how a LinkedIn post will look in-feed,
5487
- * rendered straight from a Postrun LinkedIn variant. Clean-room components (no
5488
- * dependency to "buy" exists for LinkedIn), mirroring the real feed card: header
5489
- * with headline + audience icon, an entity-highlighted body with the "…more"
5490
- * fold, the 1/2/3/4/+N image mosaic (or a video), and a static action bar.
3024
+ * rendered straight from a Postrun LinkedIn variant + the posting `Connection`.
3025
+ * Clean-room components mirroring the real feed card: header with headline +
3026
+ * audience icon, an entity-highlighted body with the "…more" fold, the
3027
+ * 1/2/3/4/+N image mosaic (or a video), and a static action bar.
5491
3028
  *
5492
3029
  * Renders every `content_kind`: text, single/multi image, video, plus the rich
5493
3030
  * units — article share card, poll, and document — each driven from
5494
- * `settings.{article,poll,document}` (see `renderContent`).
5495
- *
5496
- * Customize via `theme` (light/dark/auto), `className`/`style`, or by overriding
5497
- * the `--pr-li-*` CSS variables the card reads.
3031
+ * `settings.{article,poll,document}`. Media pixels come from the resolved
3032
+ * per-platform renditions; a still-processing asset shows the shared
3033
+ * "Processing media…" tile.
5498
3034
  */
5499
3035
  interface LinkedInPostPreviewProps {
5500
- /** The LinkedIn variant — either a compose-time write variant or a fetched read
5501
- * variant (both carry the typed settings/body the card renders). */
3036
+ /** The LinkedIn variant — compose-time write OR fetched read (carries assets
3037
+ * inline). */
5502
3038
  variant: LinkedInPreviewVariant;
5503
- /** Author identity (LinkedIn stores no avatar/headline on our connection). */
5504
- author: LinkedInPreviewAuthor;
5505
- /** Resolved media pixels (URLs or compose-time File blobs). */
5506
- media?: PreviewMedia[];
3039
+ /** The posting account — the SDK `Connection`. Name/avatar derive from it. */
3040
+ connection: PreviewConnection;
3041
+ /** Uploaded assets to resolve a compose variant's media ids against (e.g.
3042
+ * `useMediaUpload().ready`); a read variant carries its own inline. */
3043
+ media?: readonly MediaResource[];
3044
+ /** One-line headline under the name — our API doesn't store it, so you supply
3045
+ * it. */
3046
+ headline?: string;
3047
+ /** Show the verified badge — our API doesn't store it, so you supply it. */
3048
+ verified?: boolean;
5507
3049
  /** Color scheme. `auto` (default) follows the OS preference. */
5508
3050
  theme?: LinkedInTheme;
5509
3051
  /** Relative time label shown in the header. Default "Now". */
@@ -5515,9 +3057,8 @@ interface LinkedInPostPreviewProps {
5515
3057
  /** Inline styles on the card — including `--pr-li-*` variable overrides. */
5516
3058
  style?: CSSProperties;
5517
3059
  }
5518
- declare function LinkedInPostPreviewImpl({ variant, author, media, theme, time, showActions, className, style, }: LinkedInPostPreviewProps): react.JSX.Element;
5519
- /** Memoized: re-renders only when its props change (the resolved-media hook
5520
- * absorbs unstable media arrays). */
3060
+ declare function LinkedInPostPreviewImpl({ variant, connection, media, headline, verified, theme, time, showActions, className, style, }: LinkedInPostPreviewProps): react.JSX.Element;
3061
+ /** Memoized: re-renders only when its props change. */
5521
3062
  declare const LinkedInPostPreview: react.MemoExoticComponent<typeof LinkedInPostPreviewImpl>;
5522
3063
 
5523
3064
  /**
@@ -5532,7 +3073,7 @@ type LinkedInArticle = NonNullable<NonNullable<LinkedInPostVariant['settings']>[
5532
3073
  interface ArticleCardProps {
5533
3074
  article: LinkedInArticle;
5534
3075
  /** Resolved thumbnail pixels (from `article.thumbnail_media_id`), if any. */
5535
- thumbnail?: ResolvedMedia;
3076
+ thumbnail?: ReadyMedia;
5536
3077
  }
5537
3078
  declare function ArticleCard({ article, thumbnail }: ArticleCardProps): react.JSX.Element;
5538
3079
 
@@ -5561,7 +3102,7 @@ type LinkedInDocument = NonNullable<NonNullable<LinkedInPostVariant['settings']>
5561
3102
  interface DocumentCardProps {
5562
3103
  document: LinkedInDocument;
5563
3104
  /** Resolved first-page pixels (from the document asset on media[]), if any. */
5564
- cover?: ResolvedMedia;
3105
+ cover?: ReadyMedia;
5565
3106
  }
5566
3107
  declare function DocumentCard({ document, cover }: DocumentCardProps): react.JSX.Element;
5567
3108
 
@@ -5579,36 +3120,45 @@ type InstagramTheme = 'light' | 'dark' | 'auto';
5579
3120
 
5580
3121
  /**
5581
3122
  * A faithful, schema-driven preview of how an Instagram post will look, rendered
5582
- * straight from a Postrun Instagram variant. Covers everything the API supports:
5583
- * a **feed** post (single image / carousel) and a **reel** (9:16 video). Identity
5584
- * is SDK-driven (`author` derives from `Connection`); creator details (username,
5585
- * avatar, verified, collaborators) and the audio label come from the variant +
5586
- * author. Feed themes light/dark/`auto`; the reel is always dark.
5587
- *
5588
- * Clean-room (there's no package to "buy" — Instagram's embed only renders
5589
- * already-published posts), referencing the real IG feed + Postiz.
3123
+ * straight from a Postrun Instagram variant + the posting `Connection`. Covers a
3124
+ * **feed** post (single image / carousel) and a **reel** (9:16 video). Identity
3125
+ * (`username`/`avatar_url`) derives from the connection; `verified` is a caller
3126
+ * extra. Media pixels come from the resolved per-platform renditions; a
3127
+ * still-processing asset shows the shared "Processing media…" tile. Feed themes
3128
+ * light/dark/`auto`; the reel is always dark.
5590
3129
  */
5591
3130
  interface InstagramPostPreviewProps {
5592
- /** The Instagram variant — either a compose-time write variant or a fetched
5593
- * read variant (both carry the typed settings/body the card renders). */
3131
+ /** The Instagram variant — compose-time write OR fetched read (carries assets
3132
+ * inline). */
5594
3133
  variant: InstagramPreviewVariant;
5595
- /** Author identity (SDK-driven; `verified` is a presentation extra). */
5596
- author: InstagramPreviewAuthor;
5597
- /** Resolved media pixels (processed URLs or compose-time File blobs). */
5598
- media?: PreviewMedia[];
3134
+ /** The posting account — the SDK `Connection`. Username/avatar derive from it. */
3135
+ connection: PreviewConnection;
3136
+ /** Uploaded assets to resolve a compose variant's media ids against (e.g.
3137
+ * `useMediaUpload().ready`); a read variant carries its own inline. */
3138
+ media?: readonly MediaResource[];
3139
+ /** Show the verified seal — our API doesn't store it, so you supply it. */
3140
+ verified?: boolean;
5599
3141
  /** Color scheme for the feed card. `auto` (default) follows the OS. */
5600
3142
  theme?: InstagramTheme;
5601
3143
  className?: string;
5602
3144
  style?: CSSProperties;
5603
3145
  }
5604
- declare function InstagramPostPreviewImpl({ variant, author, media, theme, className, style, }: InstagramPostPreviewProps): react.JSX.Element;
5605
- /** Memoized: the resolved-media hook absorbs unstable media arrays. */
3146
+ declare function InstagramPostPreviewImpl({ variant, connection, media, verified, theme, className, style, }: InstagramPostPreviewProps): react.JSX.Element;
3147
+ /** Memoized. */
5606
3148
  declare const InstagramPostPreview: react.MemoExoticComponent<typeof InstagramPostPreviewImpl>;
5607
3149
 
3150
+ /** The Instagram header's identity view-model — `username`/`avatar_url` derive
3151
+ * from the connection; `verified` is caller-supplied (not stored on ours). */
3152
+ interface InstagramAuthor {
3153
+ username?: string | null;
3154
+ avatar_url?: string | null;
3155
+ verified?: boolean;
3156
+ }
3157
+
5608
3158
  interface ReelPreviewProps {
5609
- author: InstagramPreviewAuthor;
3159
+ author: InstagramAuthor;
5610
3160
  body: string;
5611
- media: readonly ResolvedMedia[];
3161
+ media: readonly ReadyMedia[];
5612
3162
  /** Media is referenced but its pixels aren't resolved yet (still processing). */
5613
3163
  pending?: boolean;
5614
3164
  /** The reel's audio label (`settings.audio_name`); defaults to "Original audio". */
@@ -5638,10 +3188,12 @@ interface TikTokPostPreviewProps {
5638
3188
  /** The TikTok variant — either a compose-time write variant or a fetched read
5639
3189
  * variant (both carry the typed settings/body the card renders). */
5640
3190
  variant: TikTokPreviewVariant;
5641
- /** Live creator info (nickname/avatar, audience options, interaction flags). */
3191
+ /** Live creator info (nickname/avatar, audience options, interaction flags) —
3192
+ * TikTok's Required-UX makes this the authoritative creator identity. */
5642
3193
  creatorInfo: TikTokCreatorInfo;
5643
- /** Resolved media pixels (processed URLs or compose-time File blobs). */
5644
- media?: PreviewMedia[];
3194
+ /** Uploaded assets to resolve a compose variant's media ids against (e.g.
3195
+ * `useMediaUpload().ready`); a read variant carries its own inline. */
3196
+ media?: readonly MediaResource[];
5645
3197
  /** Class applied to the phone frame — your hook for sizing. */
5646
3198
  className?: string;
5647
3199
  /** Inline styles on the frame. */
@@ -5759,4 +3311,4 @@ declare function Declaration({ brandedContent }: {
5759
3311
  brandedContent: boolean;
5760
3312
  }): react.JSX.Element;
5761
3313
 
5762
- export { ArticleCard, type ArticleCardProps, AudienceSelect, type CalendarFilters, CommercialDisclosure, Connect, type ConnectErrorReason, type ConnectOutcome, type ConnectProps, type ConnectRenderApi, type ConnectState, type ConnectionIdentity, type ConnectionsFilter, Declaration, type DiscoverableAccount, DocumentCard, type DocumentCardProps, type InfiniteList, InstagramPostPreview, type InstagramPostPreviewProps, type InstagramPreviewAuthor, type InstagramPreviewVariant, type InstagramTheme, InteractionToggles, LinkedInPostPreview, type LinkedInPostPreviewProps, type LinkedInPreviewAuthor, type LinkedInPreviewVariant, type LiveOptions, type MediaUploadItem, type MediaUploadOptions, type MediaUploadStatus, Poll, type PollProps, type PostrunContextValue, PostrunProvider, type PostrunProviderProps, type PreviewMedia, type PreviewMediaKind, type ReadPostVariant, ReelPreview, type ReelPreviewProps, type ResolvedMedia, TikTokCaptionField, type TikTokCaptionFieldProps, TikTokPostPreview, type TikTokPostPreviewProps, type TikTokPreviewVariant, TikTokPublishPanel, type TikTokPublishPanelProps, type TikTokTheme, type UseConnectParams, type UseConnectResult, type UseMediaUploadOptions, type UseMediaUploadResult, XPoll, type XPollProps, XPostPreview, type XPostPreviewProps, type XPreviewAuthor, type XPreviewMedia, type XPreviewQuotedTweet, type XPreviewVariant, connectionKeys, mediaKeys, postKeys, profileKeys, tiktokKeys, toPreviewMedia, useCalendar, useConnect, useConnection, useConnections, useCreatePost, useCreateProfile, useDeleteMedia, useDeletePost, useDeleteProfile, useDisconnect, useDiscoverableAccounts, useInfiniteList, useMedia, useMediaInfinite, useMediaList, useMediaUpload, usePost, usePostrun, usePosts, usePostsInfinite, useProfile, useProfiles, useProfilesInfinite, useSelectAccount, useTikTokCreatorInfo, useUpdateMedia, useUpdatePost, useUpdateProfile, useValidatePost };
3314
+ export { ArticleCard, type ArticleCardProps, AudienceSelect, type CalendarFilters, CommercialDisclosure, Connect, type ConnectErrorReason, type ConnectOutcome, type ConnectProps, type ConnectRenderApi, type ConnectState, type ConnectionsFilter, Declaration, type DiscoverableAccount, DocumentCard, type DocumentCardProps, type InfiniteList, InstagramPostPreview, type InstagramPostPreviewProps, type InstagramPreviewVariant, type InstagramTheme, InteractionToggles, LinkedInPostPreview, type LinkedInPostPreviewProps, type LinkedInPreviewVariant, type LiveOptions, type MediaUploadItem, type MediaUploadOptions, type MediaUploadStatus, Poll, type PollProps, type PostrunContextValue, PostrunProvider, type PostrunProviderProps, type PreviewConnection, type PreviewMediaKind, type ReadPostVariant, type ReadyMedia, ReelPreview, type ReelPreviewProps, type ResolvedMedia, TikTokCaptionField, type TikTokCaptionFieldProps, TikTokPostPreview, type TikTokPostPreviewProps, type TikTokPreviewVariant, TikTokPublishPanel, type TikTokPublishPanelProps, type TikTokTheme, type UseConnectParams, type UseConnectResult, type UseMediaUploadOptions, type UseMediaUploadResult, XPoll, type XPollProps, XPostPreview, type XPostPreviewProps, type XPreviewQuotedTweet, type XPreviewVariant, connectionKeys, isReadyMedia, mediaKeys, postKeys, profileKeys, resolveVariantMedia, tiktokKeys, useCalendar, useConnect, useConnection, useConnections, useCreatePost, useCreateProfile, useDeleteMedia, useDeletePost, useDeleteProfile, useDisconnect, useDiscoverableAccounts, useInfiniteList, useMedia, useMediaInfinite, useMediaList, useMediaUpload, usePost, usePostrun, usePosts, usePostsInfinite, useProfile, useProfiles, useProfilesInfinite, useSelectAccount, useTikTokCreatorInfo, useUpdateMedia, useUpdatePost, useUpdateProfile, useValidatePost };