@postrun/js 1.1.0 → 1.3.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.
@@ -24,6 +24,8 @@ declare const zErrorCode: z.ZodEnum<{
24
24
  connection_discovery_failed: "connection_discovery_failed";
25
25
  media_processing: "media_processing";
26
26
  not_publishable: "not_publishable";
27
+ invalid_connection: "invalid_connection";
28
+ invalid_media: "invalid_media";
27
29
  profile_scope_invalid: "profile_scope_invalid";
28
30
  media_unprobeable: "media_unprobeable";
29
31
  media_too_large: "media_too_large";
@@ -1813,6 +1815,303 @@ declare const zPostsUpdateResponse: z.ZodObject<{
1813
1815
  dry_run: z.ZodBoolean;
1814
1816
  executed: z.ZodBoolean;
1815
1817
  }, z.core.$strip>;
1818
+ declare const zPostsValidateBody: z.ZodObject<{
1819
+ profile_id: z.ZodString;
1820
+ variants: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1821
+ platform: z.ZodLiteral<"x">;
1822
+ post_type: z.ZodEnum<{
1823
+ text: "text";
1824
+ video: "video";
1825
+ single_image: "single_image";
1826
+ multi_image: "multi_image";
1827
+ }>;
1828
+ connection_id: z.ZodString;
1829
+ body: z.ZodOptional<z.ZodString>;
1830
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1831
+ media_id: z.ZodString;
1832
+ crop_box: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1833
+ alt_text_override: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1834
+ }, z.core.$strip>>>>;
1835
+ settings: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1836
+ reply_settings: z.ZodOptional<z.ZodEnum<{
1837
+ everyone: "everyone";
1838
+ following: "following";
1839
+ mentionedUsers: "mentionedUsers";
1840
+ subscribers: "subscribers";
1841
+ verified: "verified";
1842
+ }>>;
1843
+ quote_tweet_id: z.ZodOptional<z.ZodString>;
1844
+ poll: z.ZodOptional<z.ZodObject<{
1845
+ options: z.ZodArray<z.ZodString>;
1846
+ duration_minutes: z.ZodInt;
1847
+ reply_settings: z.ZodOptional<z.ZodEnum<{
1848
+ following: "following";
1849
+ mentionedUsers: "mentionedUsers";
1850
+ subscribers: "subscribers";
1851
+ verified: "verified";
1852
+ }>>;
1853
+ }, z.core.$strip>>;
1854
+ reply: z.ZodOptional<z.ZodObject<{
1855
+ in_reply_to_tweet_id: z.ZodString;
1856
+ exclude_reply_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1857
+ auto_populate_reply_metadata: z.ZodOptional<z.ZodBoolean>;
1858
+ }, z.core.$strip>>;
1859
+ community_id: z.ZodOptional<z.ZodString>;
1860
+ for_super_followers_only: z.ZodOptional<z.ZodBoolean>;
1861
+ geo: z.ZodOptional<z.ZodObject<{
1862
+ place_id: z.ZodString;
1863
+ }, z.core.$strip>>;
1864
+ card_uri: z.ZodOptional<z.ZodString>;
1865
+ media_tagged_user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1866
+ }, z.core.$strip>>>;
1867
+ }, z.core.$strip>, z.ZodObject<{
1868
+ platform: z.ZodLiteral<"linkedin">;
1869
+ post_type: z.ZodEnum<{
1870
+ text: "text";
1871
+ video: "video";
1872
+ single_image: "single_image";
1873
+ multi_image: "multi_image";
1874
+ }>;
1875
+ connection_id: z.ZodString;
1876
+ body: z.ZodOptional<z.ZodString>;
1877
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1878
+ media_id: z.ZodString;
1879
+ crop_box: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1880
+ alt_text_override: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1881
+ }, z.core.$strip>>>>;
1882
+ settings: z.ZodObject<{
1883
+ visibility: z.ZodEnum<{
1884
+ PUBLIC: "PUBLIC";
1885
+ CONNECTIONS: "CONNECTIONS";
1886
+ }>;
1887
+ content_kind: z.ZodEnum<{
1888
+ text: "text";
1889
+ video: "video";
1890
+ document: "document";
1891
+ single_image: "single_image";
1892
+ multi_image: "multi_image";
1893
+ poll: "poll";
1894
+ article: "article";
1895
+ }>;
1896
+ article: z.ZodOptional<z.ZodObject<{
1897
+ source: z.ZodURL;
1898
+ title: z.ZodOptional<z.ZodString>;
1899
+ description: z.ZodOptional<z.ZodString>;
1900
+ thumbnail_media_id: z.ZodOptional<z.ZodString>;
1901
+ }, z.core.$strip>>;
1902
+ poll: z.ZodOptional<z.ZodObject<{
1903
+ question: z.ZodString;
1904
+ options: z.ZodArray<z.ZodString>;
1905
+ duration: z.ZodEnum<{
1906
+ ONE_DAY: "ONE_DAY";
1907
+ THREE_DAYS: "THREE_DAYS";
1908
+ SEVEN_DAYS: "SEVEN_DAYS";
1909
+ FOURTEEN_DAYS: "FOURTEEN_DAYS";
1910
+ }>;
1911
+ }, z.core.$strip>>;
1912
+ document: z.ZodOptional<z.ZodObject<{
1913
+ title: z.ZodString;
1914
+ }, z.core.$strip>>;
1915
+ disable_reshare: z.ZodOptional<z.ZodBoolean>;
1916
+ mentions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1917
+ type: z.ZodEnum<{
1918
+ person: "person";
1919
+ organization: "organization";
1920
+ }>;
1921
+ name: z.ZodString;
1922
+ urn: z.ZodString;
1923
+ }, z.core.$strip>>>;
1924
+ }, z.core.$strip>;
1925
+ }, z.core.$strip>, z.ZodObject<{
1926
+ platform: z.ZodLiteral<"instagram">;
1927
+ post_type: z.ZodEnum<{
1928
+ single_image: "single_image";
1929
+ reel: "reel";
1930
+ carousel: "carousel";
1931
+ }>;
1932
+ connection_id: z.ZodString;
1933
+ body: z.ZodOptional<z.ZodString>;
1934
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1935
+ media_id: z.ZodString;
1936
+ crop_box: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1937
+ alt_text_override: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1938
+ }, z.core.$strip>>>>;
1939
+ settings: z.ZodObject<{
1940
+ media_type: z.ZodOptional<z.ZodEnum<{
1941
+ IMAGE: "IMAGE";
1942
+ CAROUSEL: "CAROUSEL";
1943
+ REELS: "REELS";
1944
+ }>>;
1945
+ location_id: z.ZodOptional<z.ZodString>;
1946
+ user_tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1947
+ username: z.ZodString;
1948
+ x: z.ZodNumber;
1949
+ y: z.ZodNumber;
1950
+ }, z.core.$strip>>>;
1951
+ collaborators: z.ZodOptional<z.ZodArray<z.ZodString>>;
1952
+ share_to_feed: z.ZodOptional<z.ZodBoolean>;
1953
+ thumb_offset: z.ZodOptional<z.ZodInt>;
1954
+ cover_url: z.ZodOptional<z.ZodURL>;
1955
+ audio_name: z.ZodOptional<z.ZodString>;
1956
+ }, z.core.$strip>;
1957
+ }, z.core.$strip>, z.ZodObject<{
1958
+ platform: z.ZodLiteral<"facebook_page">;
1959
+ post_type: z.ZodEnum<{
1960
+ text: "text";
1961
+ single_image: "single_image";
1962
+ multi_image: "multi_image";
1963
+ reel: "reel";
1964
+ }>;
1965
+ connection_id: z.ZodString;
1966
+ body: z.ZodOptional<z.ZodString>;
1967
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1968
+ media_id: z.ZodString;
1969
+ crop_box: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1970
+ alt_text_override: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1971
+ }, z.core.$strip>>>>;
1972
+ settings: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1973
+ link: z.ZodOptional<z.ZodURL>;
1974
+ }, z.core.$strip>>>;
1975
+ }, z.core.$strip>, z.ZodObject<{
1976
+ platform: z.ZodLiteral<"tiktok">;
1977
+ post_type: z.ZodEnum<{
1978
+ video: "video";
1979
+ single_image: "single_image";
1980
+ carousel: "carousel";
1981
+ }>;
1982
+ connection_id: z.ZodString;
1983
+ body: z.ZodOptional<z.ZodString>;
1984
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1985
+ media_id: z.ZodString;
1986
+ crop_box: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1987
+ alt_text_override: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1988
+ }, z.core.$strip>>>>;
1989
+ settings: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1990
+ privacy_level: z.ZodOptional<z.ZodEnum<{
1991
+ PUBLIC_TO_EVERYONE: "PUBLIC_TO_EVERYONE";
1992
+ MUTUAL_FOLLOW_FRIENDS: "MUTUAL_FOLLOW_FRIENDS";
1993
+ FOLLOWER_OF_CREATOR: "FOLLOWER_OF_CREATOR";
1994
+ SELF_ONLY: "SELF_ONLY";
1995
+ }>>;
1996
+ disable_comment: z.ZodOptional<z.ZodBoolean>;
1997
+ disable_duet: z.ZodOptional<z.ZodBoolean>;
1998
+ disable_stitch: z.ZodOptional<z.ZodBoolean>;
1999
+ video_cover_timestamp_ms: z.ZodOptional<z.ZodInt>;
2000
+ photo_cover_index: z.ZodOptional<z.ZodInt>;
2001
+ auto_add_music: z.ZodOptional<z.ZodBoolean>;
2002
+ brand_content_toggle: z.ZodOptional<z.ZodBoolean>;
2003
+ brand_organic_toggle: z.ZodOptional<z.ZodBoolean>;
2004
+ is_aigc: z.ZodOptional<z.ZodBoolean>;
2005
+ }, z.core.$strip>>>;
2006
+ }, z.core.$strip>]>>;
2007
+ }, z.core.$strip>;
2008
+ /**
2009
+ * OK
2010
+ */
2011
+ declare const zPostsValidateResponse: z.ZodObject<{
2012
+ object: z.ZodLiteral<"validation">;
2013
+ publishable: z.ZodBoolean;
2014
+ issues: z.ZodArray<z.ZodObject<{
2015
+ code: z.ZodEnum<{
2016
+ unauthorized: "unauthorized";
2017
+ forbidden: "forbidden";
2018
+ not_found: "not_found";
2019
+ conflict: "conflict";
2020
+ validation_failed: "validation_failed";
2021
+ rate_limited: "rate_limited";
2022
+ internal_error: "internal_error";
2023
+ idempotency_key_invalid: "idempotency_key_invalid";
2024
+ idempotency_key_reused: "idempotency_key_reused";
2025
+ idempotency_request_in_progress: "idempotency_request_in_progress";
2026
+ account_not_available: "account_not_available";
2027
+ connection_reauth_required: "connection_reauth_required";
2028
+ connection_not_pending: "connection_not_pending";
2029
+ connection_in_use: "connection_in_use";
2030
+ not_implemented: "not_implemented";
2031
+ connection_discovery_failed: "connection_discovery_failed";
2032
+ media_processing: "media_processing";
2033
+ not_publishable: "not_publishable";
2034
+ invalid_connection: "invalid_connection";
2035
+ invalid_media: "invalid_media";
2036
+ profile_scope_invalid: "profile_scope_invalid";
2037
+ media_unprobeable: "media_unprobeable";
2038
+ media_too_large: "media_too_large";
2039
+ media_aspect_ratio_unsupported: "media_aspect_ratio_unsupported";
2040
+ media_resolution_too_low: "media_resolution_too_low";
2041
+ media_gif_unsupported: "media_gif_unsupported";
2042
+ media_format_recompressed: "media_format_recompressed";
2043
+ media_resolution_downscaled: "media_resolution_downscaled";
2044
+ video_container_unsupported: "video_container_unsupported";
2045
+ video_codec_unsupported: "video_codec_unsupported";
2046
+ video_audio_codec_unsupported: "video_audio_codec_unsupported";
2047
+ video_too_large: "video_too_large";
2048
+ video_too_small: "video_too_small";
2049
+ video_dimensions_unsupported: "video_dimensions_unsupported";
2050
+ video_dimensions_too_large: "video_dimensions_too_large";
2051
+ video_fps_unsupported: "video_fps_unsupported";
2052
+ video_fps_too_low: "video_fps_too_low";
2053
+ video_aspect_unsupported: "video_aspect_unsupported";
2054
+ video_duration_too_short: "video_duration_too_short";
2055
+ video_duration_exceeds_max: "video_duration_exceeds_max";
2056
+ video_transform_failed: "video_transform_failed";
2057
+ media_fetch_failed: "media_fetch_failed";
2058
+ document_format_unsupported: "document_format_unsupported";
2059
+ document_too_large: "document_too_large";
2060
+ document_too_many_pages: "document_too_many_pages";
2061
+ media_format_indeterminate: "media_format_indeterminate";
2062
+ media_count_invalid: "media_count_invalid";
2063
+ body_too_long: "body_too_long";
2064
+ content_missing: "content_missing";
2065
+ content_conflict: "content_conflict";
2066
+ content_incomplete: "content_incomplete";
2067
+ content_kind_mismatch: "content_kind_mismatch";
2068
+ media_type_mismatch: "media_type_mismatch";
2069
+ tag_limit_exceeded: "tag_limit_exceeded";
2070
+ reel_field_on_non_reel: "reel_field_on_non_reel";
2071
+ field_placement_invalid: "field_placement_invalid";
2072
+ media_not_ready: "media_not_ready";
2073
+ media_failed: "media_failed";
2074
+ media_unsupported: "media_unsupported";
2075
+ media_kind_mismatch: "media_kind_mismatch";
2076
+ publishing_unavailable: "publishing_unavailable";
2077
+ x_duplicate_content: "x_duplicate_content";
2078
+ x_not_authorized: "x_not_authorized";
2079
+ x_rate_limited: "x_rate_limited";
2080
+ x_publish_failed: "x_publish_failed";
2081
+ x_media_upload_failed: "x_media_upload_failed";
2082
+ linkedin_duplicate_content: "linkedin_duplicate_content";
2083
+ linkedin_auth_expired: "linkedin_auth_expired";
2084
+ linkedin_permission_denied: "linkedin_permission_denied";
2085
+ linkedin_media_processing: "linkedin_media_processing";
2086
+ linkedin_media_upload_failed: "linkedin_media_upload_failed";
2087
+ linkedin_publish_failed: "linkedin_publish_failed";
2088
+ instagram_media_processing: "instagram_media_processing";
2089
+ instagram_container_expired: "instagram_container_expired";
2090
+ instagram_container_failed: "instagram_container_failed";
2091
+ instagram_rate_limited: "instagram_rate_limited";
2092
+ instagram_not_authorized: "instagram_not_authorized";
2093
+ instagram_publish_failed: "instagram_publish_failed";
2094
+ facebook_reel_processing: "facebook_reel_processing";
2095
+ facebook_reel_failed: "facebook_reel_failed";
2096
+ facebook_rate_limited: "facebook_rate_limited";
2097
+ facebook_not_authorized: "facebook_not_authorized";
2098
+ facebook_publish_failed: "facebook_publish_failed";
2099
+ tiktok_privacy_not_allowed: "tiktok_privacy_not_allowed";
2100
+ tiktok_duration_exceeds_max: "tiktok_duration_exceeds_max";
2101
+ tiktok_media_processing: "tiktok_media_processing";
2102
+ tiktok_not_authorized: "tiktok_not_authorized";
2103
+ tiktok_rate_limited: "tiktok_rate_limited";
2104
+ tiktok_publish_failed: "tiktok_publish_failed";
2105
+ connection_platform_mismatch: "connection_platform_mismatch";
2106
+ }>;
2107
+ message: z.ZodString;
2108
+ hint: z.ZodOptional<z.ZodString>;
2109
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
2110
+ got: z.ZodOptional<z.ZodString>;
2111
+ variant_index: z.ZodInt;
2112
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2113
+ }, z.core.$strip>>;
2114
+ }, z.core.$strip>;
1816
2115
  declare const zMetaAccountPath: z.ZodObject<{
1817
2116
  connection_id: z.ZodString;
1818
2117
  }, z.core.$strip>;
@@ -3759,4 +4058,4 @@ declare const zTokensMintResponse: z.ZodObject<{
3759
4058
  expires_at: z.ZodString;
3760
4059
  }, z.core.$strip>;
3761
4060
 
3762
- export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };
4061
+ export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };
@@ -1,3 +1,3 @@
1
- export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse } from '../chunk-4AAUQJXR.js';
1
+ export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse } from '../chunk-KPF3GI7Z.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/dist/server.cjs CHANGED
@@ -816,6 +816,8 @@ var zErrorCode = z__namespace.enum([
816
816
  "connection_discovery_failed",
817
817
  "media_processing",
818
818
  "not_publishable",
819
+ "invalid_connection",
820
+ "invalid_media",
819
821
  "profile_scope_invalid",
820
822
  "media_unprobeable",
821
823
  "media_too_large",
@@ -2611,6 +2613,300 @@ z__namespace.object({
2611
2613
  dry_run: z__namespace.boolean(),
2612
2614
  executed: z__namespace.boolean()
2613
2615
  });
2616
+ z__namespace.object({
2617
+ profile_id: z__namespace.string(),
2618
+ variants: z__namespace.array(z__namespace.union([
2619
+ z__namespace.object({
2620
+ platform: z__namespace.literal("x"),
2621
+ post_type: z__namespace.enum([
2622
+ "text",
2623
+ "single_image",
2624
+ "multi_image",
2625
+ "video"
2626
+ ]),
2627
+ connection_id: z__namespace.string(),
2628
+ body: z__namespace.string().optional(),
2629
+ media: z__namespace.array(z__namespace.object({
2630
+ media_id: z__namespace.string(),
2631
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2632
+ alt_text_override: z__namespace.string().nullish()
2633
+ })).optional().default([]),
2634
+ settings: z__namespace.object({
2635
+ reply_settings: z__namespace.enum([
2636
+ "everyone",
2637
+ "following",
2638
+ "mentionedUsers",
2639
+ "subscribers",
2640
+ "verified"
2641
+ ]).optional(),
2642
+ quote_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
2643
+ poll: z__namespace.object({
2644
+ options: z__namespace.array(z__namespace.string().min(1).max(25)).min(2).max(4),
2645
+ duration_minutes: z__namespace.int().gte(5).lte(10080),
2646
+ reply_settings: z__namespace.enum([
2647
+ "following",
2648
+ "mentionedUsers",
2649
+ "subscribers",
2650
+ "verified"
2651
+ ]).optional()
2652
+ }).optional(),
2653
+ reply: z__namespace.object({
2654
+ in_reply_to_tweet_id: z__namespace.string().regex(/^[0-9]{1,19}$/),
2655
+ exclude_reply_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).optional(),
2656
+ auto_populate_reply_metadata: z__namespace.boolean().optional()
2657
+ }).optional(),
2658
+ community_id: z__namespace.string().regex(/^[0-9]{1,19}$/).optional(),
2659
+ for_super_followers_only: z__namespace.boolean().optional(),
2660
+ geo: z__namespace.object({
2661
+ place_id: z__namespace.string()
2662
+ }).optional(),
2663
+ card_uri: z__namespace.string().optional(),
2664
+ media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
2665
+ }).optional().default({})
2666
+ }),
2667
+ z__namespace.object({
2668
+ platform: z__namespace.literal("linkedin"),
2669
+ post_type: z__namespace.enum([
2670
+ "text",
2671
+ "single_image",
2672
+ "multi_image",
2673
+ "video"
2674
+ ]),
2675
+ connection_id: z__namespace.string(),
2676
+ body: z__namespace.string().optional(),
2677
+ media: z__namespace.array(z__namespace.object({
2678
+ media_id: z__namespace.string(),
2679
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2680
+ alt_text_override: z__namespace.string().nullish()
2681
+ })).optional().default([]),
2682
+ settings: z__namespace.object({
2683
+ visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
2684
+ content_kind: z__namespace.enum([
2685
+ "text",
2686
+ "single_image",
2687
+ "video",
2688
+ "multi_image",
2689
+ "document",
2690
+ "article",
2691
+ "poll"
2692
+ ]),
2693
+ article: z__namespace.object({
2694
+ source: z__namespace.url(),
2695
+ title: z__namespace.string().max(400).optional(),
2696
+ description: z__namespace.string().max(4086).optional(),
2697
+ thumbnail_media_id: z__namespace.string().optional()
2698
+ }).optional(),
2699
+ poll: z__namespace.object({
2700
+ question: z__namespace.string().min(1).max(140),
2701
+ options: z__namespace.array(z__namespace.string().min(1).max(30)).min(2).max(4),
2702
+ duration: z__namespace.enum([
2703
+ "ONE_DAY",
2704
+ "THREE_DAYS",
2705
+ "SEVEN_DAYS",
2706
+ "FOURTEEN_DAYS"
2707
+ ])
2708
+ }).optional(),
2709
+ document: z__namespace.object({
2710
+ title: z__namespace.string().min(1).max(400)
2711
+ }).optional(),
2712
+ disable_reshare: z__namespace.boolean().optional(),
2713
+ mentions: z__namespace.array(z__namespace.object({
2714
+ type: z__namespace.enum(["person", "organization"]),
2715
+ name: z__namespace.string().min(1),
2716
+ urn: z__namespace.string().regex(/^urn:li:(person|organization):/)
2717
+ })).optional()
2718
+ })
2719
+ }),
2720
+ z__namespace.object({
2721
+ platform: z__namespace.literal("instagram"),
2722
+ post_type: z__namespace.enum([
2723
+ "single_image",
2724
+ "carousel",
2725
+ "reel"
2726
+ ]),
2727
+ connection_id: z__namespace.string(),
2728
+ body: z__namespace.string().optional(),
2729
+ media: z__namespace.array(z__namespace.object({
2730
+ media_id: z__namespace.string(),
2731
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2732
+ alt_text_override: z__namespace.string().nullish()
2733
+ })).optional().default([]),
2734
+ settings: z__namespace.object({
2735
+ media_type: z__namespace.enum([
2736
+ "IMAGE",
2737
+ "CAROUSEL",
2738
+ "REELS"
2739
+ ]).optional(),
2740
+ location_id: z__namespace.string().optional(),
2741
+ user_tags: z__namespace.array(z__namespace.object({
2742
+ username: z__namespace.string().min(1),
2743
+ x: z__namespace.number().gte(0).lte(1),
2744
+ y: z__namespace.number().gte(0).lte(1)
2745
+ })).optional(),
2746
+ collaborators: z__namespace.array(z__namespace.string().min(1)).max(3).optional(),
2747
+ share_to_feed: z__namespace.boolean().optional(),
2748
+ thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2749
+ cover_url: z__namespace.url().optional(),
2750
+ audio_name: z__namespace.string().optional()
2751
+ })
2752
+ }),
2753
+ z__namespace.object({
2754
+ platform: z__namespace.literal("facebook_page"),
2755
+ post_type: z__namespace.enum([
2756
+ "text",
2757
+ "single_image",
2758
+ "multi_image",
2759
+ "reel"
2760
+ ]),
2761
+ connection_id: z__namespace.string(),
2762
+ body: z__namespace.string().optional(),
2763
+ media: z__namespace.array(z__namespace.object({
2764
+ media_id: z__namespace.string(),
2765
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2766
+ alt_text_override: z__namespace.string().nullish()
2767
+ })).optional().default([]),
2768
+ settings: z__namespace.object({
2769
+ link: z__namespace.url().optional()
2770
+ }).optional().default({})
2771
+ }),
2772
+ z__namespace.object({
2773
+ platform: z__namespace.literal("tiktok"),
2774
+ post_type: z__namespace.enum([
2775
+ "video",
2776
+ "single_image",
2777
+ "carousel"
2778
+ ]),
2779
+ connection_id: z__namespace.string(),
2780
+ body: z__namespace.string().optional(),
2781
+ media: z__namespace.array(z__namespace.object({
2782
+ media_id: z__namespace.string(),
2783
+ crop_box: z__namespace.record(z__namespace.string(), z__namespace.unknown()).nullish(),
2784
+ alt_text_override: z__namespace.string().nullish()
2785
+ })).optional().default([]),
2786
+ settings: z__namespace.object({
2787
+ privacy_level: z__namespace.enum([
2788
+ "PUBLIC_TO_EVERYONE",
2789
+ "MUTUAL_FOLLOW_FRIENDS",
2790
+ "FOLLOWER_OF_CREATOR",
2791
+ "SELF_ONLY"
2792
+ ]).optional(),
2793
+ disable_comment: z__namespace.boolean().optional(),
2794
+ disable_duet: z__namespace.boolean().optional(),
2795
+ disable_stitch: z__namespace.boolean().optional(),
2796
+ video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2797
+ photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2798
+ auto_add_music: z__namespace.boolean().optional(),
2799
+ brand_content_toggle: z__namespace.boolean().optional(),
2800
+ brand_organic_toggle: z__namespace.boolean().optional(),
2801
+ is_aigc: z__namespace.boolean().optional()
2802
+ }).optional().default({})
2803
+ })
2804
+ ])).min(1)
2805
+ });
2806
+ z__namespace.object({
2807
+ object: z__namespace.literal("validation"),
2808
+ publishable: z__namespace.boolean(),
2809
+ issues: z__namespace.array(z__namespace.object({
2810
+ code: z__namespace.enum([
2811
+ "unauthorized",
2812
+ "forbidden",
2813
+ "not_found",
2814
+ "conflict",
2815
+ "validation_failed",
2816
+ "rate_limited",
2817
+ "internal_error",
2818
+ "idempotency_key_invalid",
2819
+ "idempotency_key_reused",
2820
+ "idempotency_request_in_progress",
2821
+ "account_not_available",
2822
+ "connection_reauth_required",
2823
+ "connection_not_pending",
2824
+ "connection_in_use",
2825
+ "not_implemented",
2826
+ "connection_discovery_failed",
2827
+ "media_processing",
2828
+ "not_publishable",
2829
+ "invalid_connection",
2830
+ "invalid_media",
2831
+ "profile_scope_invalid",
2832
+ "media_unprobeable",
2833
+ "media_too_large",
2834
+ "media_aspect_ratio_unsupported",
2835
+ "media_resolution_too_low",
2836
+ "media_gif_unsupported",
2837
+ "media_format_recompressed",
2838
+ "media_resolution_downscaled",
2839
+ "video_container_unsupported",
2840
+ "video_codec_unsupported",
2841
+ "video_audio_codec_unsupported",
2842
+ "video_too_large",
2843
+ "video_too_small",
2844
+ "video_dimensions_unsupported",
2845
+ "video_dimensions_too_large",
2846
+ "video_fps_unsupported",
2847
+ "video_fps_too_low",
2848
+ "video_aspect_unsupported",
2849
+ "video_duration_too_short",
2850
+ "video_duration_exceeds_max",
2851
+ "video_transform_failed",
2852
+ "media_fetch_failed",
2853
+ "document_format_unsupported",
2854
+ "document_too_large",
2855
+ "document_too_many_pages",
2856
+ "media_format_indeterminate",
2857
+ "media_count_invalid",
2858
+ "body_too_long",
2859
+ "content_missing",
2860
+ "content_conflict",
2861
+ "content_incomplete",
2862
+ "content_kind_mismatch",
2863
+ "media_type_mismatch",
2864
+ "tag_limit_exceeded",
2865
+ "reel_field_on_non_reel",
2866
+ "field_placement_invalid",
2867
+ "media_not_ready",
2868
+ "media_failed",
2869
+ "media_unsupported",
2870
+ "media_kind_mismatch",
2871
+ "publishing_unavailable",
2872
+ "x_duplicate_content",
2873
+ "x_not_authorized",
2874
+ "x_rate_limited",
2875
+ "x_publish_failed",
2876
+ "x_media_upload_failed",
2877
+ "linkedin_duplicate_content",
2878
+ "linkedin_auth_expired",
2879
+ "linkedin_permission_denied",
2880
+ "linkedin_media_processing",
2881
+ "linkedin_media_upload_failed",
2882
+ "linkedin_publish_failed",
2883
+ "instagram_media_processing",
2884
+ "instagram_container_expired",
2885
+ "instagram_container_failed",
2886
+ "instagram_rate_limited",
2887
+ "instagram_not_authorized",
2888
+ "instagram_publish_failed",
2889
+ "facebook_reel_processing",
2890
+ "facebook_reel_failed",
2891
+ "facebook_rate_limited",
2892
+ "facebook_not_authorized",
2893
+ "facebook_publish_failed",
2894
+ "tiktok_privacy_not_allowed",
2895
+ "tiktok_duration_exceeds_max",
2896
+ "tiktok_media_processing",
2897
+ "tiktok_not_authorized",
2898
+ "tiktok_rate_limited",
2899
+ "tiktok_publish_failed",
2900
+ "connection_platform_mismatch"
2901
+ ]),
2902
+ message: z__namespace.string(),
2903
+ hint: z__namespace.string().optional(),
2904
+ allowed: z__namespace.array(z__namespace.string()).optional(),
2905
+ got: z__namespace.string().optional(),
2906
+ variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2907
+ path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()]))
2908
+ }))
2909
+ });
2614
2910
  z__namespace.object({
2615
2911
  connection_id: z__namespace.string()
2616
2912
  });