@postrun/js 3.2.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.cjs CHANGED
@@ -814,12 +814,12 @@ var zErrorCode = z__namespace.enum([
814
814
  "not_implemented",
815
815
  "connection_discovery_failed",
816
816
  "tiktok_creator_info_unavailable",
817
- "tiktok_cannot_post_now",
818
817
  "media_processing",
819
818
  "media_upload_init_failed",
820
819
  "media_upload_incomplete",
821
820
  "media_upload_invalid_parts",
822
821
  "not_publishable",
822
+ "post_not_retryable",
823
823
  "invalid_connection",
824
824
  "invalid_media",
825
825
  "profile_scope_invalid",
@@ -870,6 +870,7 @@ var zErrorCode = z__namespace.enum([
870
870
  "x_rate_limited",
871
871
  "x_publish_failed",
872
872
  "x_media_upload_failed",
873
+ "x_thread_incomplete",
873
874
  "linkedin_duplicate_content",
874
875
  "linkedin_auth_expired",
875
876
  "linkedin_permission_denied",
@@ -887,6 +888,7 @@ var zErrorCode = z__namespace.enum([
887
888
  "instagram_media_unsupported",
888
889
  "instagram_not_authorized",
889
890
  "instagram_publish_failed",
891
+ "instagram_comment_failed",
890
892
  "facebook_reel_processing",
891
893
  "facebook_reel_failed",
892
894
  "facebook_rate_limited",
@@ -894,13 +896,14 @@ var zErrorCode = z__namespace.enum([
894
896
  "facebook_temporarily_blocked",
895
897
  "facebook_not_authorized",
896
898
  "facebook_publish_failed",
899
+ "facebook_comment_failed",
897
900
  "tiktok_privacy_not_allowed",
901
+ "tiktok_interaction_not_allowed",
902
+ "tiktok_thumbnail_offset_invalid",
898
903
  "tiktok_duration_exceeds_max",
899
904
  "tiktok_media_processing",
900
905
  "tiktok_not_authorized",
901
906
  "tiktok_rate_limited",
902
- "tiktok_url_ownership_unverified",
903
- "tiktok_unaudited_private_only",
904
907
  "tiktok_spam_risk",
905
908
  "tiktok_file_format_invalid",
906
909
  "tiktok_duration_invalid",
@@ -909,26 +912,18 @@ var zErrorCode = z__namespace.enum([
909
912
  "tiktok_media_pull_failed",
910
913
  "tiktok_server_error",
911
914
  "tiktok_publish_failed",
912
- "google_rate_limited",
913
- "google_server_error",
914
- "google_auth_expired",
915
- "google_permission_denied",
916
- "google_request_failed",
917
- "google_conversion_duplicate",
918
- "google_conversion_invalid_click_id",
919
- "google_conversion_event_too_old",
920
- "google_conversion_consent_required",
921
- "google_conversion_terms_not_signed",
922
- "google_conversion_rejected",
923
915
  "post_publish_failed",
924
916
  "post_partially_published",
925
917
  "connection_platform_mismatch",
926
- "connection_removed"
918
+ "connection_removed",
919
+ "publish_interrupted",
920
+ "publish_outcome_unknown",
921
+ "plan_limit_reached",
922
+ "billing_required",
923
+ "x_link_requires_paid_plan"
927
924
  ]);
928
925
  var zErrorSource = z__namespace.object({
929
926
  platform: z__namespace.enum([
930
- "google",
931
- "meta",
932
927
  "x",
933
928
  "linkedin",
934
929
  "instagram",
@@ -1034,8 +1029,7 @@ var zMedia = z__namespace.object({
1034
1029
  "media_fetch_failed",
1035
1030
  "document_format_unsupported",
1036
1031
  "document_too_large",
1037
- "document_too_many_pages",
1038
- "media_unsupported"
1032
+ "document_too_many_pages"
1039
1033
  ]),
1040
1034
  message: z__namespace.string(),
1041
1035
  hint: z__namespace.string().optional(),
@@ -1088,8 +1082,7 @@ var zMedia = z__namespace.object({
1088
1082
  "media_fetch_failed",
1089
1083
  "document_format_unsupported",
1090
1084
  "document_too_large",
1091
- "document_too_many_pages",
1092
- "media_unsupported"
1085
+ "document_too_many_pages"
1093
1086
  ]),
1094
1087
  message: z__namespace.string(),
1095
1088
  hint: z__namespace.string().optional(),
@@ -1124,8 +1117,7 @@ var zMedia = z__namespace.object({
1124
1117
  "media_fetch_failed",
1125
1118
  "document_format_unsupported",
1126
1119
  "document_too_large",
1127
- "document_too_many_pages",
1128
- "media_unsupported"
1120
+ "document_too_many_pages"
1129
1121
  ]),
1130
1122
  message: z__namespace.string(),
1131
1123
  hint: z__namespace.string().optional(),
@@ -1243,7 +1235,14 @@ var zPostVariant = z__namespace.union([
1243
1235
  place_id: z__namespace.string()
1244
1236
  }).optional(),
1245
1237
  card_uri: z__namespace.string().optional(),
1246
- media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1238
+ media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional(),
1239
+ thread_items: z__namespace.array(z__namespace.object({
1240
+ body: z__namespace.string().optional(),
1241
+ media: z__namespace.array(z__namespace.object({
1242
+ media_id: z__namespace.string(),
1243
+ alt_text_override: z__namespace.string().nullish()
1244
+ })).max(4).optional()
1245
+ })).optional()
1247
1246
  }),
1248
1247
  id: z__namespace.string(),
1249
1248
  object: z__namespace.literal("post_variant"),
@@ -1275,12 +1274,12 @@ var zPostVariant = z__namespace.union([
1275
1274
  "not_implemented",
1276
1275
  "connection_discovery_failed",
1277
1276
  "tiktok_creator_info_unavailable",
1278
- "tiktok_cannot_post_now",
1279
1277
  "media_processing",
1280
1278
  "media_upload_init_failed",
1281
1279
  "media_upload_incomplete",
1282
1280
  "media_upload_invalid_parts",
1283
1281
  "not_publishable",
1282
+ "post_not_retryable",
1284
1283
  "invalid_connection",
1285
1284
  "invalid_media",
1286
1285
  "profile_scope_invalid",
@@ -1331,6 +1330,7 @@ var zPostVariant = z__namespace.union([
1331
1330
  "x_rate_limited",
1332
1331
  "x_publish_failed",
1333
1332
  "x_media_upload_failed",
1333
+ "x_thread_incomplete",
1334
1334
  "linkedin_duplicate_content",
1335
1335
  "linkedin_auth_expired",
1336
1336
  "linkedin_permission_denied",
@@ -1348,6 +1348,7 @@ var zPostVariant = z__namespace.union([
1348
1348
  "instagram_media_unsupported",
1349
1349
  "instagram_not_authorized",
1350
1350
  "instagram_publish_failed",
1351
+ "instagram_comment_failed",
1351
1352
  "facebook_reel_processing",
1352
1353
  "facebook_reel_failed",
1353
1354
  "facebook_rate_limited",
@@ -1355,13 +1356,14 @@ var zPostVariant = z__namespace.union([
1355
1356
  "facebook_temporarily_blocked",
1356
1357
  "facebook_not_authorized",
1357
1358
  "facebook_publish_failed",
1359
+ "facebook_comment_failed",
1358
1360
  "tiktok_privacy_not_allowed",
1361
+ "tiktok_interaction_not_allowed",
1362
+ "tiktok_thumbnail_offset_invalid",
1359
1363
  "tiktok_duration_exceeds_max",
1360
1364
  "tiktok_media_processing",
1361
1365
  "tiktok_not_authorized",
1362
1366
  "tiktok_rate_limited",
1363
- "tiktok_url_ownership_unverified",
1364
- "tiktok_unaudited_private_only",
1365
1367
  "tiktok_spam_risk",
1366
1368
  "tiktok_file_format_invalid",
1367
1369
  "tiktok_duration_invalid",
@@ -1370,23 +1372,18 @@ var zPostVariant = z__namespace.union([
1370
1372
  "tiktok_media_pull_failed",
1371
1373
  "tiktok_server_error",
1372
1374
  "tiktok_publish_failed",
1373
- "google_rate_limited",
1374
- "google_server_error",
1375
- "google_auth_expired",
1376
- "google_permission_denied",
1377
- "google_request_failed",
1378
- "google_conversion_duplicate",
1379
- "google_conversion_invalid_click_id",
1380
- "google_conversion_event_too_old",
1381
- "google_conversion_consent_required",
1382
- "google_conversion_terms_not_signed",
1383
- "google_conversion_rejected",
1384
1375
  "post_publish_failed",
1385
1376
  "post_partially_published",
1386
1377
  "connection_platform_mismatch",
1387
- "connection_removed"
1378
+ "connection_removed",
1379
+ "publish_interrupted",
1380
+ "publish_outcome_unknown",
1381
+ "plan_limit_reached",
1382
+ "billing_required",
1383
+ "x_link_requires_paid_plan"
1388
1384
  ]),
1389
1385
  message: z__namespace.string(),
1386
+ source: zErrorSource.optional(),
1390
1387
  display_error: z__namespace.string()
1391
1388
  }).nullable(),
1392
1389
  media: z__namespace.array(z__namespace.object({
@@ -1456,12 +1453,12 @@ var zPostVariant = z__namespace.union([
1456
1453
  "not_implemented",
1457
1454
  "connection_discovery_failed",
1458
1455
  "tiktok_creator_info_unavailable",
1459
- "tiktok_cannot_post_now",
1460
1456
  "media_processing",
1461
1457
  "media_upload_init_failed",
1462
1458
  "media_upload_incomplete",
1463
1459
  "media_upload_invalid_parts",
1464
1460
  "not_publishable",
1461
+ "post_not_retryable",
1465
1462
  "invalid_connection",
1466
1463
  "invalid_media",
1467
1464
  "profile_scope_invalid",
@@ -1512,6 +1509,7 @@ var zPostVariant = z__namespace.union([
1512
1509
  "x_rate_limited",
1513
1510
  "x_publish_failed",
1514
1511
  "x_media_upload_failed",
1512
+ "x_thread_incomplete",
1515
1513
  "linkedin_duplicate_content",
1516
1514
  "linkedin_auth_expired",
1517
1515
  "linkedin_permission_denied",
@@ -1529,6 +1527,7 @@ var zPostVariant = z__namespace.union([
1529
1527
  "instagram_media_unsupported",
1530
1528
  "instagram_not_authorized",
1531
1529
  "instagram_publish_failed",
1530
+ "instagram_comment_failed",
1532
1531
  "facebook_reel_processing",
1533
1532
  "facebook_reel_failed",
1534
1533
  "facebook_rate_limited",
@@ -1536,13 +1535,14 @@ var zPostVariant = z__namespace.union([
1536
1535
  "facebook_temporarily_blocked",
1537
1536
  "facebook_not_authorized",
1538
1537
  "facebook_publish_failed",
1538
+ "facebook_comment_failed",
1539
1539
  "tiktok_privacy_not_allowed",
1540
+ "tiktok_interaction_not_allowed",
1541
+ "tiktok_thumbnail_offset_invalid",
1540
1542
  "tiktok_duration_exceeds_max",
1541
1543
  "tiktok_media_processing",
1542
1544
  "tiktok_not_authorized",
1543
1545
  "tiktok_rate_limited",
1544
- "tiktok_url_ownership_unverified",
1545
- "tiktok_unaudited_private_only",
1546
1546
  "tiktok_spam_risk",
1547
1547
  "tiktok_file_format_invalid",
1548
1548
  "tiktok_duration_invalid",
@@ -1551,23 +1551,18 @@ var zPostVariant = z__namespace.union([
1551
1551
  "tiktok_media_pull_failed",
1552
1552
  "tiktok_server_error",
1553
1553
  "tiktok_publish_failed",
1554
- "google_rate_limited",
1555
- "google_server_error",
1556
- "google_auth_expired",
1557
- "google_permission_denied",
1558
- "google_request_failed",
1559
- "google_conversion_duplicate",
1560
- "google_conversion_invalid_click_id",
1561
- "google_conversion_event_too_old",
1562
- "google_conversion_consent_required",
1563
- "google_conversion_terms_not_signed",
1564
- "google_conversion_rejected",
1565
1554
  "post_publish_failed",
1566
1555
  "post_partially_published",
1567
1556
  "connection_platform_mismatch",
1568
- "connection_removed"
1557
+ "connection_removed",
1558
+ "publish_interrupted",
1559
+ "publish_outcome_unknown",
1560
+ "plan_limit_reached",
1561
+ "billing_required",
1562
+ "x_link_requires_paid_plan"
1569
1563
  ]),
1570
1564
  message: z__namespace.string(),
1565
+ source: zErrorSource.optional(),
1571
1566
  display_error: z__namespace.string()
1572
1567
  }).nullable(),
1573
1568
  media: z__namespace.array(z__namespace.object({
@@ -1589,7 +1584,8 @@ var zPostVariant = z__namespace.union([
1589
1584
  z__namespace.object({
1590
1585
  platform: z__namespace.literal("facebook_page"),
1591
1586
  settings: z__namespace.object({
1592
- link: z__namespace.url().optional()
1587
+ link: z__namespace.url().optional(),
1588
+ first_comment: z__namespace.string().min(1).optional()
1593
1589
  }),
1594
1590
  id: z__namespace.string(),
1595
1591
  object: z__namespace.literal("post_variant"),
@@ -1621,12 +1617,12 @@ var zPostVariant = z__namespace.union([
1621
1617
  "not_implemented",
1622
1618
  "connection_discovery_failed",
1623
1619
  "tiktok_creator_info_unavailable",
1624
- "tiktok_cannot_post_now",
1625
1620
  "media_processing",
1626
1621
  "media_upload_init_failed",
1627
1622
  "media_upload_incomplete",
1628
1623
  "media_upload_invalid_parts",
1629
1624
  "not_publishable",
1625
+ "post_not_retryable",
1630
1626
  "invalid_connection",
1631
1627
  "invalid_media",
1632
1628
  "profile_scope_invalid",
@@ -1677,6 +1673,7 @@ var zPostVariant = z__namespace.union([
1677
1673
  "x_rate_limited",
1678
1674
  "x_publish_failed",
1679
1675
  "x_media_upload_failed",
1676
+ "x_thread_incomplete",
1680
1677
  "linkedin_duplicate_content",
1681
1678
  "linkedin_auth_expired",
1682
1679
  "linkedin_permission_denied",
@@ -1694,6 +1691,7 @@ var zPostVariant = z__namespace.union([
1694
1691
  "instagram_media_unsupported",
1695
1692
  "instagram_not_authorized",
1696
1693
  "instagram_publish_failed",
1694
+ "instagram_comment_failed",
1697
1695
  "facebook_reel_processing",
1698
1696
  "facebook_reel_failed",
1699
1697
  "facebook_rate_limited",
@@ -1701,13 +1699,14 @@ var zPostVariant = z__namespace.union([
1701
1699
  "facebook_temporarily_blocked",
1702
1700
  "facebook_not_authorized",
1703
1701
  "facebook_publish_failed",
1702
+ "facebook_comment_failed",
1704
1703
  "tiktok_privacy_not_allowed",
1704
+ "tiktok_interaction_not_allowed",
1705
+ "tiktok_thumbnail_offset_invalid",
1705
1706
  "tiktok_duration_exceeds_max",
1706
1707
  "tiktok_media_processing",
1707
1708
  "tiktok_not_authorized",
1708
1709
  "tiktok_rate_limited",
1709
- "tiktok_url_ownership_unverified",
1710
- "tiktok_unaudited_private_only",
1711
1710
  "tiktok_spam_risk",
1712
1711
  "tiktok_file_format_invalid",
1713
1712
  "tiktok_duration_invalid",
@@ -1716,23 +1715,18 @@ var zPostVariant = z__namespace.union([
1716
1715
  "tiktok_media_pull_failed",
1717
1716
  "tiktok_server_error",
1718
1717
  "tiktok_publish_failed",
1719
- "google_rate_limited",
1720
- "google_server_error",
1721
- "google_auth_expired",
1722
- "google_permission_denied",
1723
- "google_request_failed",
1724
- "google_conversion_duplicate",
1725
- "google_conversion_invalid_click_id",
1726
- "google_conversion_event_too_old",
1727
- "google_conversion_consent_required",
1728
- "google_conversion_terms_not_signed",
1729
- "google_conversion_rejected",
1730
1718
  "post_publish_failed",
1731
1719
  "post_partially_published",
1732
1720
  "connection_platform_mismatch",
1733
- "connection_removed"
1721
+ "connection_removed",
1722
+ "publish_interrupted",
1723
+ "publish_outcome_unknown",
1724
+ "plan_limit_reached",
1725
+ "billing_required",
1726
+ "x_link_requires_paid_plan"
1734
1727
  ]),
1735
1728
  message: z__namespace.string(),
1729
+ source: zErrorSource.optional(),
1736
1730
  display_error: z__namespace.string()
1737
1731
  }).nullable(),
1738
1732
  media: z__namespace.array(z__namespace.object({
@@ -1755,7 +1749,8 @@ var zPostVariant = z__namespace.union([
1755
1749
  share_to_feed: z__namespace.boolean().optional(),
1756
1750
  thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1757
1751
  cover_url: z__namespace.url().optional(),
1758
- audio_name: z__namespace.string().optional()
1752
+ audio_name: z__namespace.string().optional(),
1753
+ first_comment: z__namespace.string().min(1).optional()
1759
1754
  }),
1760
1755
  id: z__namespace.string(),
1761
1756
  object: z__namespace.literal("post_variant"),
@@ -1787,12 +1782,12 @@ var zPostVariant = z__namespace.union([
1787
1782
  "not_implemented",
1788
1783
  "connection_discovery_failed",
1789
1784
  "tiktok_creator_info_unavailable",
1790
- "tiktok_cannot_post_now",
1791
1785
  "media_processing",
1792
1786
  "media_upload_init_failed",
1793
1787
  "media_upload_incomplete",
1794
1788
  "media_upload_invalid_parts",
1795
1789
  "not_publishable",
1790
+ "post_not_retryable",
1796
1791
  "invalid_connection",
1797
1792
  "invalid_media",
1798
1793
  "profile_scope_invalid",
@@ -1843,6 +1838,7 @@ var zPostVariant = z__namespace.union([
1843
1838
  "x_rate_limited",
1844
1839
  "x_publish_failed",
1845
1840
  "x_media_upload_failed",
1841
+ "x_thread_incomplete",
1846
1842
  "linkedin_duplicate_content",
1847
1843
  "linkedin_auth_expired",
1848
1844
  "linkedin_permission_denied",
@@ -1860,6 +1856,7 @@ var zPostVariant = z__namespace.union([
1860
1856
  "instagram_media_unsupported",
1861
1857
  "instagram_not_authorized",
1862
1858
  "instagram_publish_failed",
1859
+ "instagram_comment_failed",
1863
1860
  "facebook_reel_processing",
1864
1861
  "facebook_reel_failed",
1865
1862
  "facebook_rate_limited",
@@ -1867,13 +1864,14 @@ var zPostVariant = z__namespace.union([
1867
1864
  "facebook_temporarily_blocked",
1868
1865
  "facebook_not_authorized",
1869
1866
  "facebook_publish_failed",
1867
+ "facebook_comment_failed",
1870
1868
  "tiktok_privacy_not_allowed",
1869
+ "tiktok_interaction_not_allowed",
1870
+ "tiktok_thumbnail_offset_invalid",
1871
1871
  "tiktok_duration_exceeds_max",
1872
1872
  "tiktok_media_processing",
1873
1873
  "tiktok_not_authorized",
1874
1874
  "tiktok_rate_limited",
1875
- "tiktok_url_ownership_unverified",
1876
- "tiktok_unaudited_private_only",
1877
1875
  "tiktok_spam_risk",
1878
1876
  "tiktok_file_format_invalid",
1879
1877
  "tiktok_duration_invalid",
@@ -1882,23 +1880,18 @@ var zPostVariant = z__namespace.union([
1882
1880
  "tiktok_media_pull_failed",
1883
1881
  "tiktok_server_error",
1884
1882
  "tiktok_publish_failed",
1885
- "google_rate_limited",
1886
- "google_server_error",
1887
- "google_auth_expired",
1888
- "google_permission_denied",
1889
- "google_request_failed",
1890
- "google_conversion_duplicate",
1891
- "google_conversion_invalid_click_id",
1892
- "google_conversion_event_too_old",
1893
- "google_conversion_consent_required",
1894
- "google_conversion_terms_not_signed",
1895
- "google_conversion_rejected",
1896
1883
  "post_publish_failed",
1897
1884
  "post_partially_published",
1898
1885
  "connection_platform_mismatch",
1899
- "connection_removed"
1886
+ "connection_removed",
1887
+ "publish_interrupted",
1888
+ "publish_outcome_unknown",
1889
+ "plan_limit_reached",
1890
+ "billing_required",
1891
+ "x_link_requires_paid_plan"
1900
1892
  ]),
1901
1893
  message: z__namespace.string(),
1894
+ source: zErrorSource.optional(),
1902
1895
  display_error: z__namespace.string()
1903
1896
  }).nullable(),
1904
1897
  media: z__namespace.array(z__namespace.object({
@@ -1920,12 +1913,13 @@ var zPostVariant = z__namespace.union([
1920
1913
  disable_comment: z__namespace.boolean().optional(),
1921
1914
  disable_duet: z__namespace.boolean().optional(),
1922
1915
  disable_stitch: z__namespace.boolean().optional(),
1923
- video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1916
+ thumbnail_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1924
1917
  photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
1925
1918
  auto_add_music: z__namespace.boolean().optional(),
1926
- brand_content_toggle: z__namespace.boolean().optional(),
1927
- brand_organic_toggle: z__namespace.boolean().optional(),
1928
- is_aigc: z__namespace.boolean().optional()
1919
+ is_branded_content: z__namespace.boolean().optional(),
1920
+ is_brand_organic: z__namespace.boolean().optional(),
1921
+ is_ai_generated: z__namespace.boolean().optional(),
1922
+ is_ads_only: z__namespace.boolean().optional()
1929
1923
  }),
1930
1924
  id: z__namespace.string(),
1931
1925
  object: z__namespace.literal("post_variant"),
@@ -1957,12 +1951,12 @@ var zPostVariant = z__namespace.union([
1957
1951
  "not_implemented",
1958
1952
  "connection_discovery_failed",
1959
1953
  "tiktok_creator_info_unavailable",
1960
- "tiktok_cannot_post_now",
1961
1954
  "media_processing",
1962
1955
  "media_upload_init_failed",
1963
1956
  "media_upload_incomplete",
1964
1957
  "media_upload_invalid_parts",
1965
1958
  "not_publishable",
1959
+ "post_not_retryable",
1966
1960
  "invalid_connection",
1967
1961
  "invalid_media",
1968
1962
  "profile_scope_invalid",
@@ -2013,6 +2007,7 @@ var zPostVariant = z__namespace.union([
2013
2007
  "x_rate_limited",
2014
2008
  "x_publish_failed",
2015
2009
  "x_media_upload_failed",
2010
+ "x_thread_incomplete",
2016
2011
  "linkedin_duplicate_content",
2017
2012
  "linkedin_auth_expired",
2018
2013
  "linkedin_permission_denied",
@@ -2030,6 +2025,7 @@ var zPostVariant = z__namespace.union([
2030
2025
  "instagram_media_unsupported",
2031
2026
  "instagram_not_authorized",
2032
2027
  "instagram_publish_failed",
2028
+ "instagram_comment_failed",
2033
2029
  "facebook_reel_processing",
2034
2030
  "facebook_reel_failed",
2035
2031
  "facebook_rate_limited",
@@ -2037,13 +2033,14 @@ var zPostVariant = z__namespace.union([
2037
2033
  "facebook_temporarily_blocked",
2038
2034
  "facebook_not_authorized",
2039
2035
  "facebook_publish_failed",
2036
+ "facebook_comment_failed",
2040
2037
  "tiktok_privacy_not_allowed",
2038
+ "tiktok_interaction_not_allowed",
2039
+ "tiktok_thumbnail_offset_invalid",
2041
2040
  "tiktok_duration_exceeds_max",
2042
2041
  "tiktok_media_processing",
2043
2042
  "tiktok_not_authorized",
2044
2043
  "tiktok_rate_limited",
2045
- "tiktok_url_ownership_unverified",
2046
- "tiktok_unaudited_private_only",
2047
2044
  "tiktok_spam_risk",
2048
2045
  "tiktok_file_format_invalid",
2049
2046
  "tiktok_duration_invalid",
@@ -2052,23 +2049,18 @@ var zPostVariant = z__namespace.union([
2052
2049
  "tiktok_media_pull_failed",
2053
2050
  "tiktok_server_error",
2054
2051
  "tiktok_publish_failed",
2055
- "google_rate_limited",
2056
- "google_server_error",
2057
- "google_auth_expired",
2058
- "google_permission_denied",
2059
- "google_request_failed",
2060
- "google_conversion_duplicate",
2061
- "google_conversion_invalid_click_id",
2062
- "google_conversion_event_too_old",
2063
- "google_conversion_consent_required",
2064
- "google_conversion_terms_not_signed",
2065
- "google_conversion_rejected",
2066
2052
  "post_publish_failed",
2067
2053
  "post_partially_published",
2068
2054
  "connection_platform_mismatch",
2069
- "connection_removed"
2055
+ "connection_removed",
2056
+ "publish_interrupted",
2057
+ "publish_outcome_unknown",
2058
+ "plan_limit_reached",
2059
+ "billing_required",
2060
+ "x_link_requires_paid_plan"
2070
2061
  ]),
2071
2062
  message: z__namespace.string(),
2063
+ source: zErrorSource.optional(),
2072
2064
  display_error: z__namespace.string()
2073
2065
  }).nullable(),
2074
2066
  media: z__namespace.array(z__namespace.object({
@@ -2104,6 +2096,33 @@ var zPost = z__namespace.object({
2104
2096
  created_at: z__namespace.string(),
2105
2097
  updated_at: z__namespace.string()
2106
2098
  });
2099
+ z__namespace.object({
2100
+ id: z__namespace.string(),
2101
+ object: z__namespace.literal("post"),
2102
+ profile_id: z__namespace.string(),
2103
+ external_id: z__namespace.string().nullable(),
2104
+ status: z__namespace.enum([
2105
+ "draft",
2106
+ "scheduled",
2107
+ "publishing",
2108
+ "partially_published",
2109
+ "published",
2110
+ "failed"
2111
+ ]),
2112
+ schedule_at: z__namespace.string().nullable(),
2113
+ tags: z__namespace.array(z__namespace.string()),
2114
+ notes: z__namespace.string().nullable(),
2115
+ metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
2116
+ z__namespace.string().max(500),
2117
+ z__namespace.number(),
2118
+ z__namespace.boolean()
2119
+ ])),
2120
+ variants: z__namespace.array(zPostVariant),
2121
+ created_at: z__namespace.string(),
2122
+ updated_at: z__namespace.string(),
2123
+ dry_run: z__namespace.boolean(),
2124
+ executed: z__namespace.boolean()
2125
+ });
2107
2126
  z__namespace.object({
2108
2127
  creator: z__namespace.object({
2109
2128
  nickname: z__namespace.string(),
@@ -2151,7 +2170,14 @@ var zPostVariantInput = z__namespace.union([
2151
2170
  place_id: z__namespace.string()
2152
2171
  }).optional(),
2153
2172
  card_uri: z__namespace.string().optional(),
2154
- media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
2173
+ media_tagged_user_ids: z__namespace.array(z__namespace.string().regex(/^[0-9]{1,19}$/)).max(10).optional(),
2174
+ thread_items: z__namespace.array(z__namespace.object({
2175
+ body: z__namespace.string().optional(),
2176
+ media: z__namespace.array(z__namespace.object({
2177
+ media_id: z__namespace.string(),
2178
+ alt_text_override: z__namespace.string().nullish()
2179
+ })).max(4).optional()
2180
+ })).optional()
2155
2181
  }).optional().default({}),
2156
2182
  connection_id: z__namespace.string(),
2157
2183
  body: z__namespace.string().optional(),
@@ -2210,7 +2236,8 @@ var zPostVariantInput = z__namespace.union([
2210
2236
  share_to_feed: z__namespace.boolean().optional(),
2211
2237
  thumb_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2212
2238
  cover_url: z__namespace.url().optional(),
2213
- audio_name: z__namespace.string().optional()
2239
+ audio_name: z__namespace.string().optional(),
2240
+ first_comment: z__namespace.string().min(1).optional()
2214
2241
  }),
2215
2242
  connection_id: z__namespace.string(),
2216
2243
  body: z__namespace.string().optional(),
@@ -2222,7 +2249,8 @@ var zPostVariantInput = z__namespace.union([
2222
2249
  z__namespace.object({
2223
2250
  platform: z__namespace.literal("facebook_page"),
2224
2251
  settings: z__namespace.object({
2225
- link: z__namespace.url().optional()
2252
+ link: z__namespace.url().optional(),
2253
+ first_comment: z__namespace.string().min(1).optional()
2226
2254
  }).optional().default({}),
2227
2255
  connection_id: z__namespace.string(),
2228
2256
  body: z__namespace.string().optional(),
@@ -2238,12 +2266,13 @@ var zPostVariantInput = z__namespace.union([
2238
2266
  disable_comment: z__namespace.boolean().optional(),
2239
2267
  disable_duet: z__namespace.boolean().optional(),
2240
2268
  disable_stitch: z__namespace.boolean().optional(),
2241
- video_cover_timestamp_ms: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2269
+ thumbnail_offset: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2242
2270
  photo_cover_index: z__namespace.int().gte(0).lte(9007199254740991).optional(),
2243
2271
  auto_add_music: z__namespace.boolean().optional(),
2244
- brand_content_toggle: z__namespace.boolean().optional(),
2245
- brand_organic_toggle: z__namespace.boolean().optional(),
2246
- is_aigc: z__namespace.boolean().optional()
2272
+ is_branded_content: z__namespace.boolean().optional(),
2273
+ is_brand_organic: z__namespace.boolean().optional(),
2274
+ is_ai_generated: z__namespace.boolean().optional(),
2275
+ is_ads_only: z__namespace.boolean().optional()
2247
2276
  }).optional().default({}),
2248
2277
  connection_id: z__namespace.string(),
2249
2278
  body: z__namespace.string().optional(),
@@ -2272,844 +2301,6 @@ z__namespace.object({
2272
2301
  dry_run: z__namespace.boolean().optional().default(false),
2273
2302
  variants: z__namespace.array(zPostVariantInput).min(1)
2274
2303
  });
2275
- var zGoogleAdsAdGroup = z__namespace.object({
2276
- id: z__namespace.string(),
2277
- name: z__namespace.string().nullable(),
2278
- status: z__namespace.enum([
2279
- "UNSPECIFIED",
2280
- "UNKNOWN",
2281
- "ENABLED",
2282
- "PAUSED",
2283
- "REMOVED"
2284
- ]),
2285
- type: z__namespace.enum([
2286
- "UNSPECIFIED",
2287
- "UNKNOWN",
2288
- "SEARCH_STANDARD",
2289
- "DISPLAY_STANDARD",
2290
- "SHOPPING_PRODUCT_ADS",
2291
- "HOTEL_ADS",
2292
- "SHOPPING_SMART_ADS",
2293
- "VIDEO_BUMPER",
2294
- "VIDEO_TRUE_VIEW_IN_STREAM",
2295
- "VIDEO_TRUE_VIEW_IN_DISPLAY",
2296
- "VIDEO_NON_SKIPPABLE_IN_STREAM",
2297
- "SEARCH_DYNAMIC_ADS",
2298
- "SHOPPING_COMPARISON_LISTING_ADS",
2299
- "PROMOTED_HOTEL_ADS",
2300
- "VIDEO_RESPONSIVE",
2301
- "VIDEO_EFFICIENT_REACH",
2302
- "SMART_CAMPAIGN_ADS",
2303
- "TRAVEL_ADS",
2304
- "YOUTUBE_AUDIO"
2305
- ]),
2306
- campaign: z__namespace.string().nullable()
2307
- });
2308
- var zGoogleAdsAd = z__namespace.object({
2309
- id: z__namespace.string().regex(/^\d+~\d+$/),
2310
- name: z__namespace.string().nullable(),
2311
- type: z__namespace.enum([
2312
- "UNSPECIFIED",
2313
- "UNKNOWN",
2314
- "TEXT_AD",
2315
- "EXPANDED_TEXT_AD",
2316
- "EXPANDED_DYNAMIC_SEARCH_AD",
2317
- "HOTEL_AD",
2318
- "SHOPPING_SMART_AD",
2319
- "SHOPPING_PRODUCT_AD",
2320
- "VIDEO_AD",
2321
- "IMAGE_AD",
2322
- "RESPONSIVE_SEARCH_AD",
2323
- "LEGACY_RESPONSIVE_DISPLAY_AD",
2324
- "APP_AD",
2325
- "LEGACY_APP_INSTALL_AD",
2326
- "RESPONSIVE_DISPLAY_AD",
2327
- "LOCAL_AD",
2328
- "HTML5_UPLOAD_AD",
2329
- "DYNAMIC_HTML5_AD",
2330
- "APP_ENGAGEMENT_AD",
2331
- "SHOPPING_COMPARISON_LISTING_AD",
2332
- "VIDEO_BUMPER_AD",
2333
- "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
2334
- "VIDEO_TRUEVIEW_IN_STREAM_AD",
2335
- "VIDEO_RESPONSIVE_AD",
2336
- "SMART_CAMPAIGN_AD",
2337
- "CALL_AD",
2338
- "APP_PRE_REGISTRATION_AD",
2339
- "IN_FEED_VIDEO_AD",
2340
- "DEMAND_GEN_MULTI_ASSET_AD",
2341
- "DEMAND_GEN_CAROUSEL_AD",
2342
- "TRAVEL_AD",
2343
- "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
2344
- "DEMAND_GEN_PRODUCT_AD",
2345
- "YOUTUBE_AUDIO_AD"
2346
- ]),
2347
- status: z__namespace.enum([
2348
- "UNSPECIFIED",
2349
- "UNKNOWN",
2350
- "ENABLED",
2351
- "PAUSED",
2352
- "REMOVED"
2353
- ]),
2354
- ad_group: z__namespace.string().nullable()
2355
- });
2356
- var zGoogleAdsKeyword = z__namespace.object({
2357
- id: z__namespace.string().regex(/^\d+~\d+$/),
2358
- text: z__namespace.string().nullable(),
2359
- match_type: z__namespace.enum([
2360
- "UNSPECIFIED",
2361
- "UNKNOWN",
2362
- "EXACT",
2363
- "PHRASE",
2364
- "BROAD"
2365
- ]),
2366
- status: z__namespace.enum([
2367
- "UNSPECIFIED",
2368
- "UNKNOWN",
2369
- "ENABLED",
2370
- "PAUSED",
2371
- "REMOVED"
2372
- ]),
2373
- negative: z__namespace.boolean(),
2374
- ad_group: z__namespace.string().nullable()
2375
- });
2376
- var zGoogleAdsAudience = z__namespace.union([
2377
- z__namespace.object({
2378
- kind: z__namespace.literal("user_list"),
2379
- id: z__namespace.string(),
2380
- resource_name: z__namespace.string(),
2381
- name: z__namespace.string().nullable(),
2382
- type: z__namespace.enum([
2383
- "UNSPECIFIED",
2384
- "UNKNOWN",
2385
- "REMARKETING",
2386
- "LOGICAL",
2387
- "EXTERNAL_REMARKETING",
2388
- "RULE_BASED",
2389
- "SIMILAR",
2390
- "CRM_BASED",
2391
- "LOOKALIKE"
2392
- ]),
2393
- membership_status: z__namespace.enum([
2394
- "UNSPECIFIED",
2395
- "UNKNOWN",
2396
- "OPEN",
2397
- "CLOSED"
2398
- ])
2399
- }),
2400
- z__namespace.object({
2401
- kind: z__namespace.literal("audience"),
2402
- id: z__namespace.string(),
2403
- resource_name: z__namespace.string(),
2404
- name: z__namespace.string().nullable(),
2405
- status: z__namespace.enum([
2406
- "UNSPECIFIED",
2407
- "UNKNOWN",
2408
- "ENABLED",
2409
- "REMOVED"
2410
- ])
2411
- }),
2412
- z__namespace.object({
2413
- kind: z__namespace.literal("custom_audience"),
2414
- id: z__namespace.string(),
2415
- resource_name: z__namespace.string(),
2416
- name: z__namespace.string().nullable(),
2417
- status: z__namespace.enum([
2418
- "UNSPECIFIED",
2419
- "UNKNOWN",
2420
- "ENABLED",
2421
- "REMOVED"
2422
- ]),
2423
- type: z__namespace.enum([
2424
- "UNSPECIFIED",
2425
- "UNKNOWN",
2426
- "AUTO",
2427
- "INTEREST",
2428
- "PURCHASE_INTENT",
2429
- "SEARCH"
2430
- ])
2431
- })
2432
- ]);
2433
- var zGoogleAdsReadStatusFilter = z__namespace.array(z__namespace.enum([
2434
- "ENABLED",
2435
- "PAUSED",
2436
- "REMOVED"
2437
- ])).min(1);
2438
- var zGoogleAdsCampaignCriterion = z__namespace.union([
2439
- z__namespace.object({
2440
- type: z__namespace.literal("LOCATION"),
2441
- criterion_id: z__namespace.string(),
2442
- status: z__namespace.enum([
2443
- "UNSPECIFIED",
2444
- "UNKNOWN",
2445
- "ENABLED",
2446
- "PAUSED",
2447
- "REMOVED"
2448
- ]),
2449
- negative: z__namespace.boolean(),
2450
- geo_target_constant: z__namespace.string().nullable()
2451
- }),
2452
- z__namespace.object({
2453
- type: z__namespace.literal("LANGUAGE"),
2454
- criterion_id: z__namespace.string(),
2455
- status: z__namespace.enum([
2456
- "UNSPECIFIED",
2457
- "UNKNOWN",
2458
- "ENABLED",
2459
- "PAUSED",
2460
- "REMOVED"
2461
- ]),
2462
- negative: z__namespace.boolean(),
2463
- language_constant: z__namespace.string().nullable()
2464
- }),
2465
- z__namespace.object({
2466
- type: z__namespace.enum([
2467
- "UNSPECIFIED",
2468
- "UNKNOWN",
2469
- "KEYWORD",
2470
- "PLACEMENT",
2471
- "MOBILE_APP_CATEGORY",
2472
- "MOBILE_APPLICATION",
2473
- "DEVICE",
2474
- "LISTING_GROUP",
2475
- "AD_SCHEDULE",
2476
- "AGE_RANGE",
2477
- "GENDER",
2478
- "INCOME_RANGE",
2479
- "PARENTAL_STATUS",
2480
- "YOUTUBE_VIDEO",
2481
- "YOUTUBE_CHANNEL",
2482
- "USER_LIST",
2483
- "PROXIMITY",
2484
- "TOPIC",
2485
- "LISTING_SCOPE",
2486
- "IP_BLOCK",
2487
- "CONTENT_LABEL",
2488
- "CARRIER",
2489
- "USER_INTEREST",
2490
- "WEBPAGE",
2491
- "OPERATING_SYSTEM_VERSION",
2492
- "APP_PAYMENT_MODEL",
2493
- "MOBILE_DEVICE",
2494
- "CUSTOM_AFFINITY",
2495
- "CUSTOM_INTENT",
2496
- "LOCATION_GROUP",
2497
- "CUSTOM_AUDIENCE",
2498
- "COMBINED_AUDIENCE",
2499
- "KEYWORD_THEME",
2500
- "AUDIENCE",
2501
- "NEGATIVE_KEYWORD_LIST",
2502
- "LOCAL_SERVICE_ID",
2503
- "SEARCH_THEME",
2504
- "BRAND",
2505
- "BRAND_LIST",
2506
- "LIFE_EVENT",
2507
- "WEBPAGE_LIST",
2508
- "VIDEO_LINEUP",
2509
- "PLACEMENT_LIST",
2510
- "VERTICAL_ADS_ITEM_GROUP_RULE_LIST",
2511
- "VERTICAL_ADS_ITEM_GROUP_RULE",
2512
- "RETAIL_FILTER_BUNDLE",
2513
- "RETAIL_FILTER"
2514
- ]),
2515
- criterion_id: z__namespace.string()
2516
- })
2517
- ]);
2518
- var zGoogleAdsAdGroupCriterion = z__namespace.union([
2519
- z__namespace.object({
2520
- type: z__namespace.literal("AGE_RANGE"),
2521
- criterion_id: z__namespace.string(),
2522
- status: z__namespace.enum([
2523
- "UNSPECIFIED",
2524
- "UNKNOWN",
2525
- "ENABLED",
2526
- "PAUSED",
2527
- "REMOVED"
2528
- ]),
2529
- negative: z__namespace.boolean(),
2530
- age_range: z__namespace.enum([
2531
- "UNSPECIFIED",
2532
- "UNKNOWN",
2533
- "AGE_RANGE_18_24",
2534
- "AGE_RANGE_25_34",
2535
- "AGE_RANGE_35_44",
2536
- "AGE_RANGE_45_54",
2537
- "AGE_RANGE_55_64",
2538
- "AGE_RANGE_65_UP",
2539
- "AGE_RANGE_UNDETERMINED"
2540
- ])
2541
- }),
2542
- z__namespace.object({
2543
- type: z__namespace.literal("GENDER"),
2544
- criterion_id: z__namespace.string(),
2545
- status: z__namespace.enum([
2546
- "UNSPECIFIED",
2547
- "UNKNOWN",
2548
- "ENABLED",
2549
- "PAUSED",
2550
- "REMOVED"
2551
- ]),
2552
- negative: z__namespace.boolean(),
2553
- gender: z__namespace.enum([
2554
- "UNSPECIFIED",
2555
- "UNKNOWN",
2556
- "MALE",
2557
- "FEMALE",
2558
- "UNDETERMINED"
2559
- ])
2560
- }),
2561
- z__namespace.object({
2562
- type: z__namespace.literal("INCOME_RANGE"),
2563
- criterion_id: z__namespace.string(),
2564
- status: z__namespace.enum([
2565
- "UNSPECIFIED",
2566
- "UNKNOWN",
2567
- "ENABLED",
2568
- "PAUSED",
2569
- "REMOVED"
2570
- ]),
2571
- negative: z__namespace.boolean(),
2572
- income_range: z__namespace.enum([
2573
- "UNSPECIFIED",
2574
- "UNKNOWN",
2575
- "INCOME_RANGE_0_50",
2576
- "INCOME_RANGE_50_60",
2577
- "INCOME_RANGE_60_70",
2578
- "INCOME_RANGE_70_80",
2579
- "INCOME_RANGE_80_90",
2580
- "INCOME_RANGE_90_UP",
2581
- "INCOME_RANGE_UNDETERMINED"
2582
- ])
2583
- }),
2584
- z__namespace.object({
2585
- type: z__namespace.literal("PARENTAL_STATUS"),
2586
- criterion_id: z__namespace.string(),
2587
- status: z__namespace.enum([
2588
- "UNSPECIFIED",
2589
- "UNKNOWN",
2590
- "ENABLED",
2591
- "PAUSED",
2592
- "REMOVED"
2593
- ]),
2594
- negative: z__namespace.boolean(),
2595
- parental_status: z__namespace.enum([
2596
- "UNSPECIFIED",
2597
- "UNKNOWN",
2598
- "PARENT",
2599
- "NOT_A_PARENT",
2600
- "UNDETERMINED"
2601
- ])
2602
- }),
2603
- z__namespace.object({
2604
- type: z__namespace.literal("USER_LIST"),
2605
- criterion_id: z__namespace.string(),
2606
- status: z__namespace.enum([
2607
- "UNSPECIFIED",
2608
- "UNKNOWN",
2609
- "ENABLED",
2610
- "PAUSED",
2611
- "REMOVED"
2612
- ]),
2613
- negative: z__namespace.boolean(),
2614
- user_list: z__namespace.string().nullable()
2615
- }),
2616
- z__namespace.object({
2617
- type: z__namespace.literal("AUDIENCE"),
2618
- criterion_id: z__namespace.string(),
2619
- status: z__namespace.enum([
2620
- "UNSPECIFIED",
2621
- "UNKNOWN",
2622
- "ENABLED",
2623
- "PAUSED",
2624
- "REMOVED"
2625
- ]),
2626
- negative: z__namespace.boolean(),
2627
- audience: z__namespace.string().nullable()
2628
- }),
2629
- z__namespace.object({
2630
- type: z__namespace.literal("CUSTOM_AUDIENCE"),
2631
- criterion_id: z__namespace.string(),
2632
- status: z__namespace.enum([
2633
- "UNSPECIFIED",
2634
- "UNKNOWN",
2635
- "ENABLED",
2636
- "PAUSED",
2637
- "REMOVED"
2638
- ]),
2639
- negative: z__namespace.boolean(),
2640
- custom_audience: z__namespace.string().nullable()
2641
- }),
2642
- z__namespace.object({
2643
- type: z__namespace.enum([
2644
- "UNSPECIFIED",
2645
- "UNKNOWN",
2646
- "KEYWORD",
2647
- "PLACEMENT",
2648
- "MOBILE_APP_CATEGORY",
2649
- "MOBILE_APPLICATION",
2650
- "DEVICE",
2651
- "LOCATION",
2652
- "LISTING_GROUP",
2653
- "AD_SCHEDULE",
2654
- "YOUTUBE_VIDEO",
2655
- "YOUTUBE_CHANNEL",
2656
- "PROXIMITY",
2657
- "TOPIC",
2658
- "LISTING_SCOPE",
2659
- "LANGUAGE",
2660
- "IP_BLOCK",
2661
- "CONTENT_LABEL",
2662
- "CARRIER",
2663
- "USER_INTEREST",
2664
- "WEBPAGE",
2665
- "OPERATING_SYSTEM_VERSION",
2666
- "APP_PAYMENT_MODEL",
2667
- "MOBILE_DEVICE",
2668
- "CUSTOM_AFFINITY",
2669
- "CUSTOM_INTENT",
2670
- "LOCATION_GROUP",
2671
- "COMBINED_AUDIENCE",
2672
- "KEYWORD_THEME",
2673
- "NEGATIVE_KEYWORD_LIST",
2674
- "LOCAL_SERVICE_ID",
2675
- "SEARCH_THEME",
2676
- "BRAND",
2677
- "BRAND_LIST",
2678
- "LIFE_EVENT",
2679
- "WEBPAGE_LIST",
2680
- "VIDEO_LINEUP",
2681
- "PLACEMENT_LIST",
2682
- "VERTICAL_ADS_ITEM_GROUP_RULE_LIST",
2683
- "VERTICAL_ADS_ITEM_GROUP_RULE",
2684
- "RETAIL_FILTER_BUNDLE",
2685
- "RETAIL_FILTER"
2686
- ]),
2687
- criterion_id: z__namespace.string()
2688
- })
2689
- ]);
2690
- var zGoogleAdsGeoTargetConstant = z__namespace.object({
2691
- id: z__namespace.string(),
2692
- resource_name: z__namespace.string().nullable(),
2693
- name: z__namespace.string().nullable(),
2694
- canonical_name: z__namespace.string().nullable(),
2695
- country_code: z__namespace.string().nullable(),
2696
- target_type: z__namespace.string().nullable(),
2697
- status: z__namespace.enum([
2698
- "UNSPECIFIED",
2699
- "UNKNOWN",
2700
- "ENABLED",
2701
- "REMOVAL_PLANNED"
2702
- ])
2703
- });
2704
- var zGoogleAdsUrlCustomParameter = z__namespace.object({
2705
- key: z__namespace.string().min(1).regex(/^[A-Za-z0-9]+$/),
2706
- value: z__namespace.string()
2707
- });
2708
- z__namespace.object({
2709
- id: z__namespace.string().nullable(),
2710
- resource_name: z__namespace.string().nullable(),
2711
- dry_run: z__namespace.boolean(),
2712
- executed: z__namespace.boolean()
2713
- });
2714
- z__namespace.object({
2715
- id: z__namespace.string(),
2716
- resource_name: z__namespace.string(),
2717
- dry_run: z__namespace.boolean(),
2718
- executed: z__namespace.boolean()
2719
- });
2720
- z__namespace.object({
2721
- id: z__namespace.string(),
2722
- removed: z__namespace.boolean(),
2723
- dry_run: z__namespace.boolean(),
2724
- executed: z__namespace.boolean()
2725
- });
2726
- z__namespace.union([
2727
- z__namespace.object({
2728
- type: z__namespace.literal("location"),
2729
- geo_target_constant: z__namespace.string().regex(/^geoTargetConstants\/\d+$/),
2730
- negative: z__namespace.boolean().optional().default(false)
2731
- }),
2732
- z__namespace.object({
2733
- type: z__namespace.literal("language"),
2734
- language_constant: z__namespace.string().min(1)
2735
- })
2736
- ]);
2737
- z__namespace.union([
2738
- z__namespace.object({
2739
- type: z__namespace.literal("age_range"),
2740
- age_range: z__namespace.enum([
2741
- "AGE_RANGE_18_24",
2742
- "AGE_RANGE_25_34",
2743
- "AGE_RANGE_35_44",
2744
- "AGE_RANGE_45_54",
2745
- "AGE_RANGE_55_64",
2746
- "AGE_RANGE_65_UP",
2747
- "AGE_RANGE_UNDETERMINED"
2748
- ]),
2749
- negative: z__namespace.boolean().optional().default(false)
2750
- }),
2751
- z__namespace.object({
2752
- type: z__namespace.literal("gender"),
2753
- gender: z__namespace.enum([
2754
- "MALE",
2755
- "FEMALE",
2756
- "UNDETERMINED"
2757
- ]),
2758
- negative: z__namespace.boolean().optional().default(false)
2759
- }),
2760
- z__namespace.object({
2761
- type: z__namespace.literal("income_range"),
2762
- income_range: z__namespace.enum([
2763
- "INCOME_RANGE_0_50",
2764
- "INCOME_RANGE_50_60",
2765
- "INCOME_RANGE_60_70",
2766
- "INCOME_RANGE_70_80",
2767
- "INCOME_RANGE_80_90",
2768
- "INCOME_RANGE_90_UP",
2769
- "INCOME_RANGE_UNDETERMINED"
2770
- ]),
2771
- negative: z__namespace.boolean().optional().default(false)
2772
- }),
2773
- z__namespace.object({
2774
- type: z__namespace.literal("parental_status"),
2775
- parental_status: z__namespace.enum([
2776
- "PARENT",
2777
- "NOT_A_PARENT",
2778
- "UNDETERMINED"
2779
- ]),
2780
- negative: z__namespace.boolean().optional().default(false)
2781
- }),
2782
- z__namespace.object({
2783
- type: z__namespace.literal("user_list"),
2784
- user_list: z__namespace.string().regex(/^customers\/\d+\/userLists\/\d+$/),
2785
- negative: z__namespace.boolean().optional().default(false)
2786
- }),
2787
- z__namespace.object({
2788
- type: z__namespace.literal("audience"),
2789
- audience: z__namespace.string().regex(/^customers\/\d+\/audiences\/\d+$/),
2790
- negative: z__namespace.boolean().optional().default(false)
2791
- }),
2792
- z__namespace.object({
2793
- type: z__namespace.literal("custom_audience"),
2794
- custom_audience: z__namespace.string().regex(/^customers\/\d+\/customAudiences\/\d+$/),
2795
- negative: z__namespace.boolean().optional().default(false)
2796
- })
2797
- ]);
2798
- z__namespace.object({
2799
- positive_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional(),
2800
- negative_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional()
2801
- });
2802
- var zGoogleAdsInsightLevel = z__namespace.enum([
2803
- "account",
2804
- "campaign",
2805
- "ad_group",
2806
- "ad",
2807
- "keyword"
2808
- ]);
2809
- var zGoogleAdsInsightsRow = z__namespace.object({
2810
- level: zGoogleAdsInsightLevel,
2811
- id: z__namespace.string().min(1),
2812
- name: z__namespace.string().nullable(),
2813
- parent_id: z__namespace.string().min(1).nullable(),
2814
- metrics: z__namespace.object({
2815
- impressions: z__namespace.number().nullish(),
2816
- clicks: z__namespace.number().nullish(),
2817
- ctr: z__namespace.number().nullish(),
2818
- average_cpc: z__namespace.number().nullish(),
2819
- cost_micros: z__namespace.number().nullish(),
2820
- conversions: z__namespace.number().nullish(),
2821
- conversions_value: z__namespace.number().nullish(),
2822
- cost_per_conversion: z__namespace.number().nullish()
2823
- }),
2824
- segments: z__namespace.object({
2825
- date: z__namespace.string().optional(),
2826
- device: z__namespace.string().optional()
2827
- }).optional()
2828
- });
2829
- z__namespace.object({
2830
- object: z__namespace.literal("list"),
2831
- data: z__namespace.array(zGoogleAdsInsightsRow)
2832
- });
2833
- var zGoogleAdsInsightMetric = z__namespace.enum([
2834
- "impressions",
2835
- "clicks",
2836
- "ctr",
2837
- "average_cpc",
2838
- "cost_micros",
2839
- "conversions",
2840
- "conversions_value",
2841
- "cost_per_conversion"
2842
- ]);
2843
- var zGoogleAdsInsightSegment = z__namespace.enum(["date", "device"]);
2844
- z__namespace.object({
2845
- level: zGoogleAdsInsightLevel.optional().default("campaign"),
2846
- metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
2847
- "impressions",
2848
- "clicks",
2849
- "cost_micros",
2850
- "conversions"
2851
- ]),
2852
- segments: z__namespace.array(zGoogleAdsInsightSegment).optional(),
2853
- campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
2854
- ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
2855
- since: z__namespace.iso.date(),
2856
- until: z__namespace.iso.date()
2857
- });
2858
- var zGoogleAdTreeNode = z__namespace.object({
2859
- level: z__namespace.enum([
2860
- "campaign",
2861
- "ad_group",
2862
- "ad",
2863
- "keyword"
2864
- ]),
2865
- id: z__namespace.string().min(1),
2866
- name: z__namespace.string().nullable(),
2867
- parent_id: z__namespace.string().min(1).nullable(),
2868
- status: z__namespace.enum([
2869
- "UNSPECIFIED",
2870
- "UNKNOWN",
2871
- "ENABLED",
2872
- "PAUSED",
2873
- "REMOVED"
2874
- ]),
2875
- type: z__namespace.enum([
2876
- "UNSPECIFIED",
2877
- "UNKNOWN",
2878
- "SEARCH",
2879
- "DISPLAY",
2880
- "SHOPPING",
2881
- "HOTEL",
2882
- "VIDEO",
2883
- "MULTI_CHANNEL",
2884
- "LOCAL",
2885
- "SMART",
2886
- "PERFORMANCE_MAX",
2887
- "LOCAL_SERVICES",
2888
- "TRAVEL",
2889
- "DEMAND_GEN"
2890
- ]).nullable(),
2891
- child_kind: z__namespace.enum([
2892
- "ad_group",
2893
- "asset_group",
2894
- "none"
2895
- ]),
2896
- expandable: z__namespace.boolean(),
2897
- budget_micros: z__namespace.number().nullable(),
2898
- metrics: z__namespace.object({
2899
- impressions: z__namespace.number().nullish(),
2900
- clicks: z__namespace.number().nullish(),
2901
- ctr: z__namespace.number().nullish(),
2902
- average_cpc: z__namespace.number().nullish(),
2903
- cost_micros: z__namespace.number().nullish(),
2904
- conversions: z__namespace.number().nullish(),
2905
- conversions_value: z__namespace.number().nullish(),
2906
- cost_per_conversion: z__namespace.number().nullish()
2907
- }),
2908
- cost_micros: z__namespace.number(),
2909
- cost: z__namespace.number()
2910
- });
2911
- z__namespace.object({
2912
- object: z__namespace.literal("list"),
2913
- data: z__namespace.array(zGoogleAdTreeNode)
2914
- });
2915
- var zGoogleAdsConversionConsent = z__namespace.object({
2916
- ad_user_data: z__namespace.enum(["CONSENT_GRANTED", "CONSENT_DENIED"]).optional(),
2917
- ad_personalization: z__namespace.enum(["CONSENT_GRANTED", "CONSENT_DENIED"]).optional()
2918
- });
2919
- var zGoogleAdsConversionUserIdentifier = z__namespace.object({
2920
- email_address: z__namespace.email().optional(),
2921
- phone_number: z__namespace.string().min(1).regex(/\d/).optional(),
2922
- address: z__namespace.object({
2923
- given_name: z__namespace.string().min(1),
2924
- family_name: z__namespace.string().min(1),
2925
- region_code: z__namespace.string().regex(/^[A-Za-z]{2}$/),
2926
- postal_code: z__namespace.string().min(1)
2927
- }).optional()
2928
- });
2929
- var zGoogleAdsConversionEvent = z__namespace.object({
2930
- event_timestamp: z__namespace.iso.datetime({ offset: true }),
2931
- event_source: z__namespace.enum([
2932
- "WEB",
2933
- "APP",
2934
- "IN_STORE",
2935
- "PHONE",
2936
- "MESSAGE",
2937
- "OTHER"
2938
- ]),
2939
- order_id: z__namespace.string().optional(),
2940
- gclid: z__namespace.string().optional(),
2941
- gbraid: z__namespace.string().optional(),
2942
- wbraid: z__namespace.string().optional(),
2943
- user_data: z__namespace.array(zGoogleAdsConversionUserIdentifier).min(1).max(10).optional(),
2944
- currency: z__namespace.string().length(3).optional(),
2945
- conversion_value: z__namespace.number().gte(0).optional(),
2946
- consent: zGoogleAdsConversionConsent.optional()
2947
- });
2948
- z__namespace.object({
2949
- request_id: z__namespace.string().nullable(),
2950
- status: z__namespace.enum(["accepted", "validated"]),
2951
- dry_run: z__namespace.boolean(),
2952
- executed: z__namespace.boolean()
2953
- });
2954
- var zGoogleAdsConversionStatusReason = z__namespace.object({
2955
- reason: z__namespace.string(),
2956
- count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2957
- code: z__namespace.enum([
2958
- "unauthorized",
2959
- "forbidden",
2960
- "not_found",
2961
- "conflict",
2962
- "validation_failed",
2963
- "rate_limited",
2964
- "internal_error",
2965
- "idempotency_key_invalid",
2966
- "idempotency_key_reused",
2967
- "idempotency_request_in_progress",
2968
- "account_not_available",
2969
- "connection_reauth_required",
2970
- "connection_not_pending",
2971
- "not_implemented",
2972
- "connection_discovery_failed",
2973
- "tiktok_creator_info_unavailable",
2974
- "tiktok_cannot_post_now",
2975
- "media_processing",
2976
- "media_upload_init_failed",
2977
- "media_upload_incomplete",
2978
- "media_upload_invalid_parts",
2979
- "not_publishable",
2980
- "invalid_connection",
2981
- "invalid_media",
2982
- "profile_scope_invalid",
2983
- "media_unprobeable",
2984
- "media_too_large",
2985
- "media_aspect_ratio_unsupported",
2986
- "media_resolution_too_low",
2987
- "media_gif_unsupported",
2988
- "media_format_recompressed",
2989
- "media_resolution_downscaled",
2990
- "video_container_unsupported",
2991
- "video_codec_unsupported",
2992
- "video_audio_codec_unsupported",
2993
- "video_too_large",
2994
- "video_too_small",
2995
- "video_dimensions_unsupported",
2996
- "video_dimensions_too_large",
2997
- "video_fps_unsupported",
2998
- "video_fps_too_low",
2999
- "video_aspect_unsupported",
3000
- "video_duration_too_short",
3001
- "video_duration_exceeds_max",
3002
- "video_transform_failed",
3003
- "media_fetch_failed",
3004
- "document_format_unsupported",
3005
- "document_too_large",
3006
- "document_too_many_pages",
3007
- "media_format_indeterminate",
3008
- "media_format_unsupported",
3009
- "media_count_invalid",
3010
- "body_too_long",
3011
- "content_missing",
3012
- "content_conflict",
3013
- "content_incomplete",
3014
- "media_type_mismatch",
3015
- "tag_limit_exceeded",
3016
- "reel_field_on_non_reel",
3017
- "field_placement_invalid",
3018
- "media_not_ready",
3019
- "media_failed",
3020
- "media_unsupported",
3021
- "media_kind_mismatch",
3022
- "variant_unparseable",
3023
- "publishing_unavailable",
3024
- "x_duplicate_content",
3025
- "x_not_authorized",
3026
- "x_access_not_permitted",
3027
- "x_rate_limited",
3028
- "x_publish_failed",
3029
- "x_media_upload_failed",
3030
- "linkedin_duplicate_content",
3031
- "linkedin_auth_expired",
3032
- "linkedin_permission_denied",
3033
- "linkedin_rate_limited",
3034
- "linkedin_media_processing",
3035
- "linkedin_media_failed",
3036
- "linkedin_media_upload_failed",
3037
- "linkedin_publish_failed",
3038
- "instagram_media_processing",
3039
- "instagram_container_expired",
3040
- "instagram_container_failed",
3041
- "instagram_rate_limited",
3042
- "instagram_daily_limit_reached",
3043
- "instagram_aspect_ratio_unsupported",
3044
- "instagram_media_unsupported",
3045
- "instagram_not_authorized",
3046
- "instagram_publish_failed",
3047
- "facebook_reel_processing",
3048
- "facebook_reel_failed",
3049
- "facebook_rate_limited",
3050
- "facebook_duplicate_content",
3051
- "facebook_temporarily_blocked",
3052
- "facebook_not_authorized",
3053
- "facebook_publish_failed",
3054
- "tiktok_privacy_not_allowed",
3055
- "tiktok_duration_exceeds_max",
3056
- "tiktok_media_processing",
3057
- "tiktok_not_authorized",
3058
- "tiktok_rate_limited",
3059
- "tiktok_url_ownership_unverified",
3060
- "tiktok_unaudited_private_only",
3061
- "tiktok_spam_risk",
3062
- "tiktok_file_format_invalid",
3063
- "tiktok_duration_invalid",
3064
- "tiktok_frame_rate_invalid",
3065
- "tiktok_resolution_invalid",
3066
- "tiktok_media_pull_failed",
3067
- "tiktok_server_error",
3068
- "tiktok_publish_failed",
3069
- "google_rate_limited",
3070
- "google_server_error",
3071
- "google_auth_expired",
3072
- "google_permission_denied",
3073
- "google_request_failed",
3074
- "google_conversion_duplicate",
3075
- "google_conversion_invalid_click_id",
3076
- "google_conversion_event_too_old",
3077
- "google_conversion_consent_required",
3078
- "google_conversion_terms_not_signed",
3079
- "google_conversion_rejected",
3080
- "post_publish_failed",
3081
- "post_partially_published",
3082
- "connection_platform_mismatch",
3083
- "connection_removed"
3084
- ]),
3085
- display_error: z__namespace.string()
3086
- });
3087
- var zGoogleAdsConversionWarning = z__namespace.object({
3088
- reason: z__namespace.string(),
3089
- count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991)
3090
- });
3091
- z__namespace.object({
3092
- request_id: z__namespace.string(),
3093
- destinations: z__namespace.array(z__namespace.object({
3094
- request_status: z__namespace.enum([
3095
- "REQUEST_STATUS_UNKNOWN",
3096
- "SUCCESS",
3097
- "PROCESSING",
3098
- "FAILED",
3099
- "PARTIAL_SUCCESS"
3100
- ]),
3101
- events_submitted: z__namespace.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
3102
- errors: z__namespace.array(zGoogleAdsConversionStatusReason),
3103
- warnings: z__namespace.array(zGoogleAdsConversionWarning)
3104
- }))
3105
- });
3106
- var zGoogleAdsConversionRequest = z__namespace.object({
3107
- object: z__namespace.literal("conversion_request"),
3108
- request_id: z__namespace.string(),
3109
- conversion_action_id: z__namespace.string().nullable(),
3110
- event_count: z__namespace.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
3111
- created_at: z__namespace.string()
3112
- });
3113
2304
  z__namespace.string().min(1).max(255);
3114
2305
  z__namespace.object({
3115
2306
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
@@ -3216,8 +2407,6 @@ z__namespace.object({
3216
2407
  });
3217
2408
  z__namespace.object({
3218
2409
  platform: z__namespace.enum([
3219
- "meta_ads",
3220
- "google_ads",
3221
2410
  "x",
3222
2411
  "linkedin",
3223
2412
  "facebook_page",
@@ -3255,14 +2444,7 @@ z__namespace.object({
3255
2444
  z__namespace.object({
3256
2445
  profile_id: z__namespace.string(),
3257
2446
  source_url: z__namespace.url().optional(),
3258
- targets: z__namespace.array(z__namespace.enum([
3259
- "x",
3260
- "linkedin",
3261
- "facebook_page",
3262
- "instagram",
3263
- "tiktok",
3264
- "google_ads"
3265
- ])).min(1).optional(),
2447
+ targets: z__namespace.array(zPostPlatform).min(1).optional(),
3266
2448
  raw: z__namespace.boolean().optional().default(false),
3267
2449
  alt_text: z__namespace.string().max(1e3).optional(),
3268
2450
  external_id: z__namespace.string().min(1).max(255).optional(),
@@ -3314,8 +2496,7 @@ z__namespace.object({
3314
2496
  "media_fetch_failed",
3315
2497
  "document_format_unsupported",
3316
2498
  "document_too_large",
3317
- "document_too_many_pages",
3318
- "media_unsupported"
2499
+ "document_too_many_pages"
3319
2500
  ]),
3320
2501
  message: z__namespace.string(),
3321
2502
  hint: z__namespace.string().optional(),
@@ -3368,8 +2549,7 @@ z__namespace.object({
3368
2549
  "media_fetch_failed",
3369
2550
  "document_format_unsupported",
3370
2551
  "document_too_large",
3371
- "document_too_many_pages",
3372
- "media_unsupported"
2552
+ "document_too_many_pages"
3373
2553
  ]),
3374
2554
  message: z__namespace.string(),
3375
2555
  hint: z__namespace.string().optional(),
@@ -3404,8 +2584,7 @@ z__namespace.object({
3404
2584
  "media_fetch_failed",
3405
2585
  "document_format_unsupported",
3406
2586
  "document_too_large",
3407
- "document_too_many_pages",
3408
- "media_unsupported"
2587
+ "document_too_many_pages"
3409
2588
  ]),
3410
2589
  message: z__namespace.string(),
3411
2590
  hint: z__namespace.string().optional(),
@@ -3451,14 +2630,7 @@ z__namespace.object({
3451
2630
  z__namespace.number(),
3452
2631
  z__namespace.boolean()
3453
2632
  ])).optional(),
3454
- targets: z__namespace.array(z__namespace.enum([
3455
- "x",
3456
- "linkedin",
3457
- "facebook_page",
3458
- "instagram",
3459
- "tiktok",
3460
- "google_ads"
3461
- ])).min(1).optional()
2633
+ targets: z__namespace.array(zPostPlatform).min(1).optional()
3462
2634
  });
3463
2635
  z__namespace.object({
3464
2636
  "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
@@ -3523,33 +2695,6 @@ z__namespace.object({
3523
2695
  z__namespace.object({
3524
2696
  "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3525
2697
  });
3526
- z__namespace.object({
3527
- id: z__namespace.string(),
3528
- object: z__namespace.literal("post"),
3529
- profile_id: z__namespace.string(),
3530
- external_id: z__namespace.string().nullable(),
3531
- status: z__namespace.enum([
3532
- "draft",
3533
- "scheduled",
3534
- "publishing",
3535
- "partially_published",
3536
- "published",
3537
- "failed"
3538
- ]),
3539
- schedule_at: z__namespace.string().nullable(),
3540
- tags: z__namespace.array(z__namespace.string()),
3541
- notes: z__namespace.string().nullable(),
3542
- metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
3543
- z__namespace.string().max(500),
3544
- z__namespace.number(),
3545
- z__namespace.boolean()
3546
- ])),
3547
- variants: z__namespace.array(zPostVariant),
3548
- created_at: z__namespace.string(),
3549
- updated_at: z__namespace.string(),
3550
- dry_run: z__namespace.boolean(),
3551
- executed: z__namespace.boolean()
3552
- });
3553
2698
  z__namespace.object({
3554
2699
  id: z__namespace.string()
3555
2700
  });
@@ -3586,33 +2731,15 @@ z__namespace.object({
3586
2731
  id: z__namespace.string()
3587
2732
  });
3588
2733
  z__namespace.object({
3589
- id: z__namespace.string(),
3590
- object: z__namespace.literal("post"),
3591
- profile_id: z__namespace.string(),
3592
- external_id: z__namespace.string().nullable(),
3593
- status: z__namespace.enum([
3594
- "draft",
3595
- "scheduled",
3596
- "publishing",
3597
- "partially_published",
3598
- "published",
3599
- "failed"
3600
- ]),
3601
- schedule_at: z__namespace.string().nullable(),
3602
- tags: z__namespace.array(z__namespace.string()),
3603
- notes: z__namespace.string().nullable(),
3604
- metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
3605
- z__namespace.string().max(500),
3606
- z__namespace.number(),
3607
- z__namespace.boolean()
3608
- ])),
3609
- variants: z__namespace.array(zPostVariant),
3610
- created_at: z__namespace.string(),
3611
- updated_at: z__namespace.string(),
3612
- dry_run: z__namespace.boolean(),
3613
- executed: z__namespace.boolean()
3614
- });
3615
- z__namespace.object({
2734
+ dry_run: z__namespace.boolean().optional().default(false)
2735
+ });
2736
+ z__namespace.object({
2737
+ "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
2738
+ });
2739
+ z__namespace.object({
2740
+ id: z__namespace.string()
2741
+ });
2742
+ z__namespace.object({
3616
2743
  profile_id: z__namespace.string(),
3617
2744
  variants: z__namespace.array(zPostVariantInput).min(1)
3618
2745
  });
@@ -3637,12 +2764,12 @@ z__namespace.object({
3637
2764
  "not_implemented",
3638
2765
  "connection_discovery_failed",
3639
2766
  "tiktok_creator_info_unavailable",
3640
- "tiktok_cannot_post_now",
3641
2767
  "media_processing",
3642
2768
  "media_upload_init_failed",
3643
2769
  "media_upload_incomplete",
3644
2770
  "media_upload_invalid_parts",
3645
2771
  "not_publishable",
2772
+ "post_not_retryable",
3646
2773
  "invalid_connection",
3647
2774
  "invalid_media",
3648
2775
  "profile_scope_invalid",
@@ -3693,6 +2820,7 @@ z__namespace.object({
3693
2820
  "x_rate_limited",
3694
2821
  "x_publish_failed",
3695
2822
  "x_media_upload_failed",
2823
+ "x_thread_incomplete",
3696
2824
  "linkedin_duplicate_content",
3697
2825
  "linkedin_auth_expired",
3698
2826
  "linkedin_permission_denied",
@@ -3710,6 +2838,7 @@ z__namespace.object({
3710
2838
  "instagram_media_unsupported",
3711
2839
  "instagram_not_authorized",
3712
2840
  "instagram_publish_failed",
2841
+ "instagram_comment_failed",
3713
2842
  "facebook_reel_processing",
3714
2843
  "facebook_reel_failed",
3715
2844
  "facebook_rate_limited",
@@ -3717,13 +2846,14 @@ z__namespace.object({
3717
2846
  "facebook_temporarily_blocked",
3718
2847
  "facebook_not_authorized",
3719
2848
  "facebook_publish_failed",
2849
+ "facebook_comment_failed",
3720
2850
  "tiktok_privacy_not_allowed",
2851
+ "tiktok_interaction_not_allowed",
2852
+ "tiktok_thumbnail_offset_invalid",
3721
2853
  "tiktok_duration_exceeds_max",
3722
2854
  "tiktok_media_processing",
3723
2855
  "tiktok_not_authorized",
3724
2856
  "tiktok_rate_limited",
3725
- "tiktok_url_ownership_unverified",
3726
- "tiktok_unaudited_private_only",
3727
2857
  "tiktok_spam_risk",
3728
2858
  "tiktok_file_format_invalid",
3729
2859
  "tiktok_duration_invalid",
@@ -3732,21 +2862,15 @@ z__namespace.object({
3732
2862
  "tiktok_media_pull_failed",
3733
2863
  "tiktok_server_error",
3734
2864
  "tiktok_publish_failed",
3735
- "google_rate_limited",
3736
- "google_server_error",
3737
- "google_auth_expired",
3738
- "google_permission_denied",
3739
- "google_request_failed",
3740
- "google_conversion_duplicate",
3741
- "google_conversion_invalid_click_id",
3742
- "google_conversion_event_too_old",
3743
- "google_conversion_consent_required",
3744
- "google_conversion_terms_not_signed",
3745
- "google_conversion_rejected",
3746
2865
  "post_publish_failed",
3747
2866
  "post_partially_published",
3748
2867
  "connection_platform_mismatch",
3749
- "connection_removed"
2868
+ "connection_removed",
2869
+ "publish_interrupted",
2870
+ "publish_outcome_unknown",
2871
+ "plan_limit_reached",
2872
+ "billing_required",
2873
+ "x_link_requires_paid_plan"
3750
2874
  ]),
3751
2875
  message: z__namespace.string(),
3752
2876
  hint: z__namespace.string().optional(),
@@ -3755,1517 +2879,10 @@ z__namespace.object({
3755
2879
  source: zErrorSource.optional(),
3756
2880
  variant_index: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
3757
2881
  path: z__namespace.array(z__namespace.union([z__namespace.string(), z__namespace.number()])),
3758
- platform: zPostPlatform.optional(),
3759
- display_error: z__namespace.string()
3760
- }))
3761
- });
3762
- z__namespace.object({
3763
- connection_id: z__namespace.string()
3764
- });
3765
- z__namespace.object({
3766
- id: z__namespace.string(),
3767
- account_id: z__namespace.string(),
3768
- name: z__namespace.string().nullable(),
3769
- account_status: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
3770
- currency: z__namespace.string(),
3771
- timezone_name: z__namespace.string().nullable(),
3772
- amount_spent: z__namespace.string(),
3773
- balance: z__namespace.string(),
3774
- spend_cap: z__namespace.string().nullable()
3775
- });
3776
- z__namespace.object({
3777
- connection_id: z__namespace.string()
3778
- });
3779
- z__namespace.object({
3780
- level: z__namespace.enum([
3781
- "account",
3782
- "campaign",
3783
- "adset",
3784
- "ad"
3785
- ]).optional().default("account"),
3786
- date_preset: z__namespace.enum([
3787
- "today",
3788
- "yesterday",
3789
- "this_month",
3790
- "last_month",
3791
- "this_quarter",
3792
- "maximum",
3793
- "data_maximum",
3794
- "last_3d",
3795
- "last_7d",
3796
- "last_14d",
3797
- "last_28d",
3798
- "last_30d",
3799
- "last_90d",
3800
- "last_week_mon_sun",
3801
- "last_week_sun_sat",
3802
- "last_quarter",
3803
- "last_year",
3804
- "this_week_mon_today",
3805
- "this_week_sun_today",
3806
- "this_year"
3807
- ]).optional().default("last_30d"),
3808
- time_range: z__namespace.object({
3809
- since: z__namespace.string().regex(/^\d{4}-\d{2}-\d{2}$/),
3810
- until: z__namespace.string().regex(/^\d{4}-\d{2}-\d{2}$/)
3811
- }).optional(),
3812
- time_increment: z__namespace.union([
3813
- z__namespace.int().gte(1).lte(90),
3814
- z__namespace.literal("monthly"),
3815
- z__namespace.literal("all_days")
3816
- ]).optional()
3817
- });
3818
- z__namespace.object({
3819
- object: z__namespace.literal("list"),
3820
- data: z__namespace.array(z__namespace.object({
3821
- date_start: z__namespace.string(),
3822
- date_stop: z__namespace.string(),
3823
- account_id: z__namespace.string().optional(),
3824
- campaign_id: z__namespace.string().optional(),
3825
- campaign_name: z__namespace.string().optional(),
3826
- adset_id: z__namespace.string().optional(),
3827
- adset_name: z__namespace.string().optional(),
3828
- ad_id: z__namespace.string().optional(),
3829
- ad_name: z__namespace.string().optional(),
3830
- spend: z__namespace.string().optional(),
3831
- impressions: z__namespace.string().optional(),
3832
- clicks: z__namespace.string().optional(),
3833
- ctr: z__namespace.string().optional(),
3834
- cpc: z__namespace.string().optional(),
3835
- cpm: z__namespace.string().optional(),
3836
- cpp: z__namespace.string().optional(),
3837
- reach: z__namespace.string().optional(),
3838
- frequency: z__namespace.string().optional()
3839
- }))
3840
- });
3841
- z__namespace.object({
3842
- connection_id: z__namespace.string()
3843
- });
3844
- z__namespace.object({
3845
- object: z__namespace.literal("list"),
3846
- data: z__namespace.array(z__namespace.object({
3847
- id: z__namespace.string(),
3848
- account_id: z__namespace.string().optional(),
3849
- name: z__namespace.string().nullable(),
3850
- status: z__namespace.string().optional(),
3851
- effective_status: z__namespace.string().optional(),
3852
- objective: z__namespace.string().optional(),
3853
- daily_budget: z__namespace.string().optional(),
3854
- lifetime_budget: z__namespace.string().optional(),
3855
- budget_remaining: z__namespace.string().optional(),
3856
- bid_strategy: z__namespace.string().optional(),
3857
- created_time: z__namespace.string().optional(),
3858
- start_time: z__namespace.string().optional(),
3859
- stop_time: z__namespace.string().optional()
3860
- }))
3861
- });
3862
- z__namespace.object({
3863
- connection_id: z__namespace.string(),
3864
- campaign_id: z__namespace.string().min(1)
3865
- });
3866
- z__namespace.object({
3867
- id: z__namespace.string(),
3868
- account_id: z__namespace.string().optional(),
3869
- name: z__namespace.string().nullable(),
3870
- status: z__namespace.string().optional(),
3871
- effective_status: z__namespace.string().optional(),
3872
- objective: z__namespace.string().optional(),
3873
- daily_budget: z__namespace.string().optional(),
3874
- lifetime_budget: z__namespace.string().optional(),
3875
- budget_remaining: z__namespace.string().optional(),
3876
- bid_strategy: z__namespace.string().optional(),
3877
- created_time: z__namespace.string().optional(),
3878
- start_time: z__namespace.string().optional(),
3879
- stop_time: z__namespace.string().optional()
3880
- });
3881
- z__namespace.object({
3882
- connection_id: z__namespace.string()
3883
- });
3884
- z__namespace.object({
3885
- object: z__namespace.literal("list"),
3886
- data: z__namespace.array(z__namespace.object({
3887
- id: z__namespace.string(),
3888
- account_id: z__namespace.string().optional(),
3889
- name: z__namespace.string().nullable(),
3890
- status: z__namespace.string().optional(),
3891
- effective_status: z__namespace.string().optional(),
3892
- campaign_id: z__namespace.string().optional(),
3893
- daily_budget: z__namespace.string().optional(),
3894
- lifetime_budget: z__namespace.string().optional(),
3895
- budget_remaining: z__namespace.string().optional(),
3896
- bid_amount: z__namespace.string().optional(),
3897
- billing_event: z__namespace.string().optional(),
3898
- optimization_goal: z__namespace.string().optional(),
3899
- start_time: z__namespace.string().optional(),
3900
- end_time: z__namespace.string().optional()
3901
- }))
3902
- });
3903
- z__namespace.object({
3904
- connection_id: z__namespace.string(),
3905
- adset_id: z__namespace.string().min(1)
3906
- });
3907
- z__namespace.object({
3908
- id: z__namespace.string(),
3909
- account_id: z__namespace.string().optional(),
3910
- name: z__namespace.string().nullable(),
3911
- status: z__namespace.string().optional(),
3912
- effective_status: z__namespace.string().optional(),
3913
- campaign_id: z__namespace.string().optional(),
3914
- daily_budget: z__namespace.string().optional(),
3915
- lifetime_budget: z__namespace.string().optional(),
3916
- budget_remaining: z__namespace.string().optional(),
3917
- bid_amount: z__namespace.string().optional(),
3918
- billing_event: z__namespace.string().optional(),
3919
- optimization_goal: z__namespace.string().optional(),
3920
- start_time: z__namespace.string().optional(),
3921
- end_time: z__namespace.string().optional()
3922
- });
3923
- z__namespace.object({
3924
- connection_id: z__namespace.string()
3925
- });
3926
- z__namespace.object({
3927
- object: z__namespace.literal("list"),
3928
- data: z__namespace.array(z__namespace.object({
3929
- id: z__namespace.string(),
3930
- name: z__namespace.string().nullable(),
3931
- status: z__namespace.string().optional(),
3932
- effective_status: z__namespace.string().optional(),
3933
- adset_id: z__namespace.string().optional(),
3934
- campaign_id: z__namespace.string().optional(),
3935
- account_id: z__namespace.string().optional(),
3936
- created_time: z__namespace.string().optional(),
3937
- updated_time: z__namespace.string().optional()
3938
- }))
3939
- });
3940
- z__namespace.object({
3941
- connection_id: z__namespace.string(),
3942
- ad_id: z__namespace.string().min(1)
3943
- });
3944
- z__namespace.object({
3945
- id: z__namespace.string(),
3946
- name: z__namespace.string().nullable(),
3947
- status: z__namespace.string().optional(),
3948
- effective_status: z__namespace.string().optional(),
3949
- adset_id: z__namespace.string().optional(),
3950
- campaign_id: z__namespace.string().optional(),
3951
- account_id: z__namespace.string().optional(),
3952
- created_time: z__namespace.string().optional(),
3953
- updated_time: z__namespace.string().optional()
3954
- });
3955
- z__namespace.object({
3956
- connection_id: z__namespace.string()
3957
- });
3958
- z__namespace.object({
3959
- id: z__namespace.string(),
3960
- descriptive_name: z__namespace.string().nullable(),
3961
- currency_code: z__namespace.string().nullable(),
3962
- time_zone: z__namespace.string().nullable(),
3963
- status: z__namespace.enum([
3964
- "UNSPECIFIED",
3965
- "UNKNOWN",
3966
- "ENABLED",
3967
- "CANCELED",
3968
- "SUSPENDED",
3969
- "CLOSED"
3970
- ]),
3971
- manager: z__namespace.boolean(),
3972
- test_account: z__namespace.boolean(),
3973
- tracking_url_template: z__namespace.string().nullable(),
3974
- final_url_suffix: z__namespace.string().nullable()
3975
- });
3976
- z__namespace.object({
3977
- tracking_url_template: z__namespace.string().min(1).optional(),
3978
- final_url_suffix: z__namespace.string().min(1).optional(),
3979
- dry_run: z__namespace.boolean().optional().default(false)
3980
- });
3981
- z__namespace.object({
3982
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
3983
- });
3984
- z__namespace.object({
3985
- connection_id: z__namespace.string()
3986
- });
3987
- z__namespace.object({
3988
- level: zGoogleAdsInsightLevel.optional().default("campaign"),
3989
- metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
3990
- "impressions",
3991
- "clicks",
3992
- "cost_micros",
3993
- "conversions"
3994
- ]),
3995
- segments: z__namespace.array(zGoogleAdsInsightSegment).optional(),
3996
- campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
3997
- ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
3998
- since: z__namespace.iso.date(),
3999
- until: z__namespace.iso.date()
4000
- });
4001
- z__namespace.object({
4002
- connection_id: z__namespace.string()
4003
- });
4004
- z__namespace.object({
4005
- connection_id: z__namespace.string()
4006
- });
4007
- z__namespace.object({
4008
- campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
4009
- status: zGoogleAdsReadStatusFilter.optional(),
4010
- metrics: z__namespace.array(zGoogleAdsInsightMetric).min(1).optional().default([
4011
- "impressions",
4012
- "clicks",
4013
- "cost_micros",
4014
- "conversions"
4015
- ]),
4016
- since: z__namespace.iso.date(),
4017
- until: z__namespace.iso.date()
4018
- });
4019
- z__namespace.object({
4020
- query: z__namespace.string().min(1).max(1e4)
4021
- });
4022
- z__namespace.object({
4023
- connection_id: z__namespace.string()
4024
- });
4025
- z__namespace.object({
4026
- object: z__namespace.literal("list"),
4027
- data: z__namespace.array(z__namespace.union([z__namespace.unknown(), z__namespace.null()]))
4028
- });
4029
- z__namespace.object({
4030
- name: z__namespace.string().min(1).max(255),
4031
- amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
4032
- dry_run: z__namespace.boolean().optional().default(false)
4033
- });
4034
- z__namespace.object({
4035
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4036
- });
4037
- z__namespace.object({
4038
- connection_id: z__namespace.string()
4039
- });
4040
- z__namespace.object({
4041
- amount_micros: z__namespace.int().gt(0).lte(9007199254740991),
4042
- dry_run: z__namespace.boolean().optional().default(false)
4043
- });
4044
- z__namespace.object({
4045
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4046
- });
4047
- z__namespace.object({
4048
- connection_id: z__namespace.string(),
4049
- id: z__namespace.string().regex(/^\d+$/)
4050
- });
4051
- z__namespace.object({
4052
- dry_run: z__namespace.boolean().optional().default(false)
4053
- });
4054
- z__namespace.object({
4055
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4056
- });
4057
- z__namespace.object({
4058
- connection_id: z__namespace.string(),
4059
- id: z__namespace.string().regex(/^\d+$/)
4060
- });
4061
- z__namespace.object({
4062
- connection_id: z__namespace.string()
4063
- });
4064
- z__namespace.object({
4065
- object: z__namespace.literal("list"),
4066
- data: z__namespace.array(z__namespace.object({
4067
- id: z__namespace.string(),
4068
- name: z__namespace.string().nullable(),
4069
- status: z__namespace.enum([
4070
- "UNSPECIFIED",
4071
- "UNKNOWN",
4072
- "ENABLED",
4073
- "PAUSED",
4074
- "REMOVED"
4075
- ]),
4076
- advertising_channel_type: z__namespace.enum([
4077
- "UNSPECIFIED",
4078
- "UNKNOWN",
4079
- "SEARCH",
4080
- "DISPLAY",
4081
- "SHOPPING",
4082
- "HOTEL",
4083
- "VIDEO",
4084
- "MULTI_CHANNEL",
4085
- "LOCAL",
4086
- "SMART",
4087
- "PERFORMANCE_MAX",
4088
- "LOCAL_SERVICES",
4089
- "TRAVEL",
4090
- "DEMAND_GEN"
4091
- ]),
4092
- bidding_strategy_type: z__namespace.enum([
4093
- "UNSPECIFIED",
4094
- "UNKNOWN",
4095
- "COMMISSION",
4096
- "ENHANCED_CPC",
4097
- "FIXED_CPM",
4098
- "FIXED_SHARE_OF_VOICE",
4099
- "INVALID",
4100
- "MANUAL_CPA",
4101
- "MANUAL_CPC",
4102
- "MANUAL_CPM",
4103
- "MANUAL_CPV",
4104
- "MAXIMIZE_CONVERSIONS",
4105
- "MAXIMIZE_CONVERSION_VALUE",
4106
- "PAGE_ONE_PROMOTED",
4107
- "PERCENT_CPC",
4108
- "TARGET_CPA",
4109
- "TARGET_CPC",
4110
- "TARGET_CPM",
4111
- "TARGET_CPV",
4112
- "TARGET_IMPRESSION_SHARE",
4113
- "TARGET_OUTRANK_SHARE",
4114
- "TARGET_ROAS",
4115
- "TARGET_SPEND"
4116
- ]),
4117
- start_date_time: z__namespace.string().nullable(),
4118
- end_date_time: z__namespace.string().nullable(),
4119
- tracking_url_template: z__namespace.string().nullable(),
4120
- final_url_suffix: z__namespace.string().nullable(),
4121
- url_custom_parameters: z__namespace.array(zGoogleAdsUrlCustomParameter).max(8).optional().default([])
4122
- }))
4123
- });
4124
- z__namespace.object({
4125
- name: z__namespace.string().min(1).max(255),
4126
- channel: z__namespace.enum(["SEARCH", "DISPLAY"]),
4127
- campaign_budget: z__namespace.string().regex(/^\d+$/),
4128
- bidding: z__namespace.enum([
4129
- "manual_cpc",
4130
- "maximize_conversions",
4131
- "target_spend"
4132
- ]),
4133
- status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
4134
- contains_eu_political_advertising: z__namespace.enum(["DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING", "CONTAINS_EU_POLITICAL_ADVERTISING"]).optional().default("DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING"),
4135
- dry_run: z__namespace.boolean().optional().default(false)
4136
- });
4137
- z__namespace.object({
4138
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4139
- });
4140
- z__namespace.object({
4141
- connection_id: z__namespace.string()
4142
- });
4143
- z__namespace.object({
4144
- connection_id: z__namespace.string(),
4145
- id: z__namespace.string().regex(/^\d+$/)
4146
- });
4147
- z__namespace.object({
4148
- id: z__namespace.string(),
4149
- name: z__namespace.string().nullable(),
4150
- status: z__namespace.enum([
4151
- "UNSPECIFIED",
4152
- "UNKNOWN",
4153
- "ENABLED",
4154
- "PAUSED",
4155
- "REMOVED"
4156
- ]),
4157
- advertising_channel_type: z__namespace.enum([
4158
- "UNSPECIFIED",
4159
- "UNKNOWN",
4160
- "SEARCH",
4161
- "DISPLAY",
4162
- "SHOPPING",
4163
- "HOTEL",
4164
- "VIDEO",
4165
- "MULTI_CHANNEL",
4166
- "LOCAL",
4167
- "SMART",
4168
- "PERFORMANCE_MAX",
4169
- "LOCAL_SERVICES",
4170
- "TRAVEL",
4171
- "DEMAND_GEN"
4172
- ]),
4173
- bidding_strategy_type: z__namespace.enum([
4174
- "UNSPECIFIED",
4175
- "UNKNOWN",
4176
- "COMMISSION",
4177
- "ENHANCED_CPC",
4178
- "FIXED_CPM",
4179
- "FIXED_SHARE_OF_VOICE",
4180
- "INVALID",
4181
- "MANUAL_CPA",
4182
- "MANUAL_CPC",
4183
- "MANUAL_CPM",
4184
- "MANUAL_CPV",
4185
- "MAXIMIZE_CONVERSIONS",
4186
- "MAXIMIZE_CONVERSION_VALUE",
4187
- "PAGE_ONE_PROMOTED",
4188
- "PERCENT_CPC",
4189
- "TARGET_CPA",
4190
- "TARGET_CPC",
4191
- "TARGET_CPM",
4192
- "TARGET_CPV",
4193
- "TARGET_IMPRESSION_SHARE",
4194
- "TARGET_OUTRANK_SHARE",
4195
- "TARGET_ROAS",
4196
- "TARGET_SPEND"
4197
- ]),
4198
- start_date_time: z__namespace.string().nullable(),
4199
- end_date_time: z__namespace.string().nullable(),
4200
- tracking_url_template: z__namespace.string().nullable(),
4201
- final_url_suffix: z__namespace.string().nullable(),
4202
- url_custom_parameters: z__namespace.array(zGoogleAdsUrlCustomParameter).max(8).optional().default([])
4203
- });
4204
- z__namespace.object({
4205
- name: z__namespace.string().min(1).max(255).optional(),
4206
- tracking_url_template: z__namespace.string().min(1).optional(),
4207
- final_url_suffix: z__namespace.string().min(1).optional(),
4208
- url_custom_parameters: z__namespace.array(zGoogleAdsUrlCustomParameter).min(1).max(8).optional(),
4209
- dry_run: z__namespace.boolean().optional().default(false)
4210
- });
4211
- z__namespace.object({
4212
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4213
- });
4214
- z__namespace.object({
4215
- connection_id: z__namespace.string(),
4216
- id: z__namespace.string().regex(/^\d+$/)
4217
- });
4218
- z__namespace.object({
4219
- dry_run: z__namespace.boolean().optional().default(false)
4220
- });
4221
- z__namespace.object({
4222
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4223
- });
4224
- z__namespace.object({
4225
- connection_id: z__namespace.string(),
4226
- id: z__namespace.string().regex(/^\d+$/)
4227
- });
4228
- z__namespace.object({
4229
- dry_run: z__namespace.boolean().optional().default(false)
4230
- });
4231
- z__namespace.object({
4232
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4233
- });
4234
- z__namespace.object({
4235
- connection_id: z__namespace.string(),
4236
- id: z__namespace.string().regex(/^\d+$/)
4237
- });
4238
- z__namespace.object({
4239
- id: z__namespace.string(),
4240
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4241
- dry_run: z__namespace.boolean(),
4242
- executed: z__namespace.boolean()
4243
- });
4244
- z__namespace.object({
4245
- dry_run: z__namespace.boolean().optional().default(false)
4246
- });
4247
- z__namespace.object({
4248
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4249
- });
4250
- z__namespace.object({
4251
- connection_id: z__namespace.string(),
4252
- id: z__namespace.string().regex(/^\d+$/)
4253
- });
4254
- z__namespace.object({
4255
- id: z__namespace.string(),
4256
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4257
- dry_run: z__namespace.boolean(),
4258
- executed: z__namespace.boolean()
4259
- });
4260
- z__namespace.object({
4261
- connection_id: z__namespace.string()
4262
- });
4263
- z__namespace.object({
4264
- q: z__namespace.string().min(1),
4265
- country_code: z__namespace.string().length(2).optional()
4266
- });
4267
- z__namespace.object({
4268
- object: z__namespace.literal("list"),
4269
- data: z__namespace.array(zGoogleAdsGeoTargetConstant)
4270
- });
4271
- z__namespace.object({
4272
- connection_id: z__namespace.string(),
4273
- campaign_id: z__namespace.string().regex(/^\d+$/)
4274
- });
4275
- z__namespace.object({
4276
- object: z__namespace.literal("list"),
4277
- data: z__namespace.array(zGoogleAdsCampaignCriterion)
4278
- });
4279
- z__namespace.object({
4280
- dry_run: z__namespace.boolean().optional().default(false),
4281
- type: z__namespace.union([
4282
- z__namespace.literal("location"),
4283
- z__namespace.literal("language")
4284
- ]),
4285
- geo_target_constant: z__namespace.string().regex(/^geoTargetConstants\/\d+$/).optional(),
4286
- negative: z__namespace.boolean().optional().default(false),
4287
- language_constant: z__namespace.string().min(1).optional()
4288
- });
4289
- z__namespace.object({
4290
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4291
- });
4292
- z__namespace.object({
4293
- connection_id: z__namespace.string(),
4294
- campaign_id: z__namespace.string().regex(/^\d+$/)
4295
- });
4296
- z__namespace.object({
4297
- dry_run: z__namespace.boolean().optional().default(false)
4298
- });
4299
- z__namespace.object({
4300
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4301
- });
4302
- z__namespace.object({
4303
- connection_id: z__namespace.string(),
4304
- campaign_id: z__namespace.string().regex(/^\d+$/),
4305
- criterion_id: z__namespace.string().regex(/^\d+$/)
4306
- });
4307
- z__namespace.object({
4308
- dry_run: z__namespace.boolean().optional().default(false),
4309
- positive_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional(),
4310
- negative_geo_target_type: z__namespace.enum(["PRESENCE_OR_INTEREST", "PRESENCE"]).optional()
4311
- });
4312
- z__namespace.object({
4313
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4314
- });
4315
- z__namespace.object({
4316
- connection_id: z__namespace.string(),
4317
- campaign_id: z__namespace.string().regex(/^\d+$/)
4318
- });
4319
- z__namespace.object({
4320
- connection_id: z__namespace.string()
4321
- });
4322
- z__namespace.object({
4323
- campaign_id: z__namespace.string().regex(/^\d+$/).optional(),
4324
- status: zGoogleAdsReadStatusFilter.optional()
4325
- });
4326
- z__namespace.object({
4327
- object: z__namespace.literal("list"),
4328
- data: z__namespace.array(zGoogleAdsAdGroup)
4329
- });
4330
- z__namespace.object({
4331
- name: z__namespace.string().min(1).max(255),
4332
- campaign: z__namespace.string().regex(/^\d+$/),
4333
- type: z__namespace.enum(["SEARCH_STANDARD", "DISPLAY_STANDARD"]),
4334
- status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
4335
- dry_run: z__namespace.boolean().optional().default(false)
4336
- });
4337
- z__namespace.object({
4338
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4339
- });
4340
- z__namespace.object({
4341
- connection_id: z__namespace.string()
4342
- });
4343
- z__namespace.object({
4344
- connection_id: z__namespace.string(),
4345
- id: z__namespace.string().regex(/^\d+$/)
4346
- });
4347
- z__namespace.object({
4348
- name: z__namespace.string().min(1).max(255),
4349
- dry_run: z__namespace.boolean().optional().default(false)
4350
- });
4351
- z__namespace.object({
4352
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4353
- });
4354
- z__namespace.object({
4355
- connection_id: z__namespace.string(),
4356
- id: z__namespace.string().regex(/^\d+$/)
4357
- });
4358
- z__namespace.object({
4359
- cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991).optional(),
4360
- cpm_bid_micros: z__namespace.int().gt(0).lte(9007199254740991).optional(),
4361
- target_cpa_micros: z__namespace.int().gt(0).lte(9007199254740991).optional(),
4362
- target_roas: z__namespace.number().gt(0).optional(),
4363
- dry_run: z__namespace.boolean().optional().default(false)
4364
- });
4365
- z__namespace.object({
4366
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4367
- });
4368
- z__namespace.object({
4369
- connection_id: z__namespace.string(),
4370
- id: z__namespace.string().regex(/^\d+$/)
4371
- });
4372
- z__namespace.object({
4373
- dry_run: z__namespace.boolean().optional().default(false)
4374
- });
4375
- z__namespace.object({
4376
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4377
- });
4378
- z__namespace.object({
4379
- connection_id: z__namespace.string(),
4380
- id: z__namespace.string().regex(/^\d+$/)
4381
- });
4382
- z__namespace.object({
4383
- dry_run: z__namespace.boolean().optional().default(false)
4384
- });
4385
- z__namespace.object({
4386
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4387
- });
4388
- z__namespace.object({
4389
- connection_id: z__namespace.string(),
4390
- id: z__namespace.string().regex(/^\d+$/)
4391
- });
4392
- z__namespace.object({
4393
- id: z__namespace.string(),
4394
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4395
- dry_run: z__namespace.boolean(),
4396
- executed: z__namespace.boolean()
4397
- });
4398
- z__namespace.object({
4399
- dry_run: z__namespace.boolean().optional().default(false)
4400
- });
4401
- z__namespace.object({
4402
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4403
- });
4404
- z__namespace.object({
4405
- connection_id: z__namespace.string(),
4406
- id: z__namespace.string().regex(/^\d+$/)
4407
- });
4408
- z__namespace.object({
4409
- id: z__namespace.string(),
4410
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4411
- dry_run: z__namespace.boolean(),
4412
- executed: z__namespace.boolean()
4413
- });
4414
- z__namespace.object({
4415
- connection_id: z__namespace.string(),
4416
- ad_group_id: z__namespace.string().regex(/^\d+$/)
4417
- });
4418
- z__namespace.object({
4419
- object: z__namespace.literal("list"),
4420
- data: z__namespace.array(zGoogleAdsAdGroupCriterion)
4421
- });
4422
- z__namespace.object({
4423
- dry_run: z__namespace.boolean().optional().default(false),
4424
- type: z__namespace.union([
4425
- z__namespace.literal("age_range"),
4426
- z__namespace.literal("gender"),
4427
- z__namespace.literal("income_range"),
4428
- z__namespace.literal("parental_status"),
4429
- z__namespace.literal("user_list"),
4430
- z__namespace.literal("audience"),
4431
- z__namespace.literal("custom_audience")
4432
- ]),
4433
- age_range: z__namespace.enum([
4434
- "AGE_RANGE_18_24",
4435
- "AGE_RANGE_25_34",
4436
- "AGE_RANGE_35_44",
4437
- "AGE_RANGE_45_54",
4438
- "AGE_RANGE_55_64",
4439
- "AGE_RANGE_65_UP",
4440
- "AGE_RANGE_UNDETERMINED"
4441
- ]).optional(),
4442
- negative: z__namespace.boolean().optional().default(false),
4443
- gender: z__namespace.enum([
4444
- "MALE",
4445
- "FEMALE",
4446
- "UNDETERMINED"
4447
- ]).optional(),
4448
- income_range: z__namespace.enum([
4449
- "INCOME_RANGE_0_50",
4450
- "INCOME_RANGE_50_60",
4451
- "INCOME_RANGE_60_70",
4452
- "INCOME_RANGE_70_80",
4453
- "INCOME_RANGE_80_90",
4454
- "INCOME_RANGE_90_UP",
4455
- "INCOME_RANGE_UNDETERMINED"
4456
- ]).optional(),
4457
- parental_status: z__namespace.enum([
4458
- "PARENT",
4459
- "NOT_A_PARENT",
4460
- "UNDETERMINED"
4461
- ]).optional(),
4462
- user_list: z__namespace.string().regex(/^customers\/\d+\/userLists\/\d+$/).optional(),
4463
- audience: z__namespace.string().regex(/^customers\/\d+\/audiences\/\d+$/).optional(),
4464
- custom_audience: z__namespace.string().regex(/^customers\/\d+\/customAudiences\/\d+$/).optional()
4465
- });
4466
- z__namespace.object({
4467
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4468
- });
4469
- z__namespace.object({
4470
- connection_id: z__namespace.string(),
4471
- ad_group_id: z__namespace.string().regex(/^\d+$/)
4472
- });
4473
- z__namespace.object({
4474
- dry_run: z__namespace.boolean().optional().default(false)
4475
- });
4476
- z__namespace.object({
4477
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4478
- });
4479
- z__namespace.object({
4480
- connection_id: z__namespace.string(),
4481
- ad_group_id: z__namespace.string().regex(/^\d+$/),
4482
- criterion_id: z__namespace.string().regex(/^\d+$/)
4483
- });
4484
- z__namespace.object({
4485
- connection_id: z__namespace.string()
4486
- });
4487
- z__namespace.object({
4488
- q: z__namespace.string().min(1).optional(),
4489
- kind: z__namespace.enum([
4490
- "user_list",
4491
- "audience",
4492
- "custom_audience"
4493
- ]).optional()
4494
- });
4495
- z__namespace.object({
4496
- object: z__namespace.literal("list"),
4497
- data: z__namespace.array(zGoogleAdsAudience)
4498
- });
4499
- z__namespace.object({
4500
- dry_run: z__namespace.boolean().optional().default(false),
4501
- targeting_dimension: z__namespace.enum([
4502
- "KEYWORD",
4503
- "AUDIENCE",
4504
- "TOPIC",
4505
- "GENDER",
4506
- "AGE_RANGE",
4507
- "PLACEMENT",
4508
- "PARENTAL_STATUS",
4509
- "INCOME_RANGE"
4510
- ]),
4511
- bid_only: z__namespace.boolean()
4512
- });
4513
- z__namespace.object({
4514
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4515
- });
4516
- z__namespace.object({
4517
- connection_id: z__namespace.string(),
4518
- campaign_id: z__namespace.string().regex(/^\d+$/)
4519
- });
4520
- z__namespace.object({
4521
- connection_id: z__namespace.string()
4522
- });
4523
- z__namespace.object({
4524
- ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
4525
- status: zGoogleAdsReadStatusFilter.optional()
4526
- });
4527
- z__namespace.object({
4528
- object: z__namespace.literal("list"),
4529
- data: z__namespace.array(zGoogleAdsAd)
4530
- });
4531
- z__namespace.object({
4532
- ad_group: z__namespace.string().regex(/^\d+$/),
4533
- final_urls: z__namespace.array(z__namespace.url()).min(1),
4534
- headlines: z__namespace.array(z__namespace.object({
4535
- text: z__namespace.string().min(1).max(30),
4536
- pinned_field: z__namespace.enum([
4537
- "HEADLINE_1",
4538
- "HEADLINE_2",
4539
- "HEADLINE_3"
4540
- ]).optional()
4541
- })).min(3).max(15),
4542
- descriptions: z__namespace.array(z__namespace.object({
4543
- text: z__namespace.string().min(1).max(90)
4544
- })).min(2).max(4),
4545
- path1: z__namespace.string().max(15).optional(),
4546
- path2: z__namespace.string().max(15).optional(),
4547
- status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
4548
- dry_run: z__namespace.boolean().optional().default(false)
4549
- });
4550
- z__namespace.object({
4551
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4552
- });
4553
- z__namespace.object({
4554
- connection_id: z__namespace.string()
4555
- });
4556
- z__namespace.object({
4557
- connection_id: z__namespace.string(),
4558
- id: z__namespace.string().regex(/^\d+~\d+$/)
4559
- });
4560
- z__namespace.object({
4561
- ad_group: z__namespace.string().regex(/^\d+$/),
4562
- final_urls: z__namespace.array(z__namespace.url()).min(1),
4563
- marketing_images: z__namespace.array(z__namespace.object({
4564
- asset: z__namespace.string().min(1)
4565
- })).max(15).optional().default([]),
4566
- square_marketing_images: z__namespace.array(z__namespace.object({
4567
- asset: z__namespace.string().min(1)
4568
- })).max(15).optional().default([]),
4569
- logo_images: z__namespace.array(z__namespace.object({
4570
- asset: z__namespace.string().min(1)
4571
- })).max(5).optional().default([]),
4572
- square_logo_images: z__namespace.array(z__namespace.object({
4573
- asset: z__namespace.string().min(1)
4574
- })).max(5).optional().default([]),
4575
- headlines: z__namespace.array(z__namespace.object({
4576
- text: z__namespace.string().min(1).max(30)
4577
- })).min(1).max(5),
4578
- long_headline: z__namespace.object({
4579
- text: z__namespace.string().min(1).max(90)
4580
- }),
4581
- descriptions: z__namespace.array(z__namespace.object({
4582
- text: z__namespace.string().min(1).max(90)
4583
- })).min(1).max(5),
4584
- business_name: z__namespace.string().min(1).max(25).optional(),
4585
- call_to_action_text: z__namespace.string().min(1).optional(),
4586
- main_color: z__namespace.string().min(1).optional(),
4587
- accent_color: z__namespace.string().min(1).optional(),
4588
- status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
4589
- dry_run: z__namespace.boolean().optional().default(false)
4590
- });
4591
- z__namespace.object({
4592
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4593
- });
4594
- z__namespace.object({
4595
- connection_id: z__namespace.string()
4596
- });
4597
- z__namespace.object({
4598
- dry_run: z__namespace.boolean().optional().default(false)
4599
- });
4600
- z__namespace.object({
4601
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4602
- });
4603
- z__namespace.object({
4604
- connection_id: z__namespace.string(),
4605
- id: z__namespace.string().regex(/^\d+~\d+$/)
4606
- });
4607
- z__namespace.object({
4608
- dry_run: z__namespace.boolean().optional().default(false)
4609
- });
4610
- z__namespace.object({
4611
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4612
- });
4613
- z__namespace.object({
4614
- connection_id: z__namespace.string(),
4615
- id: z__namespace.string().regex(/^\d+~\d+$/)
4616
- });
4617
- z__namespace.object({
4618
- id: z__namespace.string(),
4619
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4620
- dry_run: z__namespace.boolean(),
4621
- executed: z__namespace.boolean()
4622
- });
4623
- z__namespace.object({
4624
- dry_run: z__namespace.boolean().optional().default(false)
4625
- });
4626
- z__namespace.object({
4627
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4628
- });
4629
- z__namespace.object({
4630
- connection_id: z__namespace.string(),
4631
- id: z__namespace.string().regex(/^\d+~\d+$/)
4632
- });
4633
- z__namespace.object({
4634
- id: z__namespace.string(),
4635
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4636
- dry_run: z__namespace.boolean(),
4637
- executed: z__namespace.boolean()
4638
- });
4639
- z__namespace.object({
4640
- connection_id: z__namespace.string()
4641
- });
4642
- z__namespace.object({
4643
- ad_group_id: z__namespace.string().regex(/^\d+$/).optional(),
4644
- status: zGoogleAdsReadStatusFilter.optional()
4645
- });
4646
- z__namespace.object({
4647
- object: z__namespace.literal("list"),
4648
- data: z__namespace.array(zGoogleAdsKeyword)
4649
- });
4650
- z__namespace.object({
4651
- ad_group: z__namespace.string().regex(/^\d+$/),
4652
- text: z__namespace.string().min(1).max(80),
4653
- match_type: z__namespace.enum([
4654
- "EXACT",
4655
- "PHRASE",
4656
- "BROAD"
4657
- ]),
4658
- negative: z__namespace.boolean().optional().default(false),
4659
- status: z__namespace.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
4660
- dry_run: z__namespace.boolean().optional().default(false)
4661
- });
4662
- z__namespace.object({
4663
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4664
- });
4665
- z__namespace.object({
4666
- connection_id: z__namespace.string()
4667
- });
4668
- z__namespace.object({
4669
- connection_id: z__namespace.string(),
4670
- id: z__namespace.string().regex(/^\d+~\d+$/)
4671
- });
4672
- z__namespace.object({
4673
- cpc_bid_micros: z__namespace.int().gt(0).lte(9007199254740991),
4674
- dry_run: z__namespace.boolean().optional().default(false)
4675
- });
4676
- z__namespace.object({
4677
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4678
- });
4679
- z__namespace.object({
4680
- connection_id: z__namespace.string(),
4681
- id: z__namespace.string().regex(/^\d+~\d+$/)
4682
- });
4683
- z__namespace.object({
4684
- dry_run: z__namespace.boolean().optional().default(false)
4685
- });
4686
- z__namespace.object({
4687
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4688
- });
4689
- z__namespace.object({
4690
- connection_id: z__namespace.string(),
4691
- id: z__namespace.string().regex(/^\d+~\d+$/)
4692
- });
4693
- z__namespace.object({
4694
- dry_run: z__namespace.boolean().optional().default(false)
4695
- });
4696
- z__namespace.object({
4697
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4698
- });
4699
- z__namespace.object({
4700
- connection_id: z__namespace.string(),
4701
- id: z__namespace.string().regex(/^\d+~\d+$/)
4702
- });
4703
- z__namespace.object({
4704
- id: z__namespace.string(),
4705
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4706
- dry_run: z__namespace.boolean(),
4707
- executed: z__namespace.boolean()
4708
- });
4709
- z__namespace.object({
4710
- dry_run: z__namespace.boolean().optional().default(false)
4711
- });
4712
- z__namespace.object({
4713
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4714
- });
4715
- z__namespace.object({
4716
- connection_id: z__namespace.string(),
4717
- id: z__namespace.string().regex(/^\d+~\d+$/)
4718
- });
4719
- z__namespace.object({
4720
- id: z__namespace.string(),
4721
- status: z__namespace.enum(["ENABLED", "PAUSED"]),
4722
- dry_run: z__namespace.boolean(),
4723
- executed: z__namespace.boolean()
4724
- });
4725
- z__namespace.object({
4726
- connection_id: z__namespace.string()
4727
- });
4728
- z__namespace.object({
4729
- object: z__namespace.literal("list"),
4730
- data: z__namespace.array(z__namespace.object({
4731
- id: z__namespace.string(),
4732
- name: z__namespace.string().nullable(),
4733
- status: z__namespace.enum([
4734
- "UNSPECIFIED",
4735
- "UNKNOWN",
4736
- "ENABLED",
4737
- "REMOVED",
4738
- "HIDDEN"
4739
- ]),
4740
- type: z__namespace.enum([
4741
- "UNSPECIFIED",
4742
- "UNKNOWN",
4743
- "AD_CALL",
4744
- "CLICK_TO_CALL",
4745
- "GOOGLE_PLAY_DOWNLOAD",
4746
- "GOOGLE_PLAY_IN_APP_PURCHASE",
4747
- "UPLOAD_CALLS",
4748
- "UPLOAD_CLICKS",
4749
- "WEBPAGE",
4750
- "WEBSITE_CALL",
4751
- "STORE_SALES_DIRECT_UPLOAD",
4752
- "STORE_SALES",
4753
- "FIREBASE_ANDROID_FIRST_OPEN",
4754
- "FIREBASE_ANDROID_IN_APP_PURCHASE",
4755
- "FIREBASE_ANDROID_CUSTOM",
4756
- "FIREBASE_IOS_FIRST_OPEN",
4757
- "FIREBASE_IOS_IN_APP_PURCHASE",
4758
- "FIREBASE_IOS_CUSTOM",
4759
- "THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN",
4760
- "THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE",
4761
- "THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM",
4762
- "THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN",
4763
- "THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE",
4764
- "THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM",
4765
- "ANDROID_APP_PRE_REGISTRATION",
4766
- "ANDROID_INSTALLS_ALL_OTHER_APPS",
4767
- "FLOODLIGHT_ACTION",
4768
- "FLOODLIGHT_TRANSACTION",
4769
- "GOOGLE_HOSTED",
4770
- "LEAD_FORM_SUBMIT",
4771
- "SALESFORCE",
4772
- "SEARCH_ADS_360",
4773
- "SMART_CAMPAIGN_AD_CLICKS_TO_CALL",
4774
- "SMART_CAMPAIGN_MAP_CLICKS_TO_CALL",
4775
- "SMART_CAMPAIGN_MAP_DIRECTIONS",
4776
- "SMART_CAMPAIGN_TRACKED_CALLS",
4777
- "STORE_VISITS",
4778
- "WEBPAGE_CODELESS",
4779
- "UNIVERSAL_ANALYTICS_GOAL",
4780
- "UNIVERSAL_ANALYTICS_TRANSACTION",
4781
- "GOOGLE_ANALYTICS_4_CUSTOM",
4782
- "GOOGLE_ANALYTICS_4_PURCHASE",
4783
- "GOOGLE_ANALYTICS_4_GENERATE_LEAD",
4784
- "GOOGLE_ANALYTICS_4_QUALIFY_LEAD",
4785
- "GOOGLE_ANALYTICS_4_CLOSE_CONVERT_LEAD",
4786
- "FIREBASE_ANDROID_GENERATE_LEAD",
4787
- "FIREBASE_ANDROID_QUALIFY_LEAD",
4788
- "FIREBASE_ANDROID_CLOSE_CONVERT_LEAD",
4789
- "FIREBASE_IOS_GENERATE_LEAD",
4790
- "FIREBASE_IOS_QUALIFY_LEAD",
4791
- "FIREBASE_IOS_CLOSE_CONVERT_LEAD"
4792
- ]),
4793
- category: z__namespace.enum([
4794
- "UNSPECIFIED",
4795
- "UNKNOWN",
4796
- "DEFAULT",
4797
- "PAGE_VIEW",
4798
- "PURCHASE",
4799
- "SIGNUP",
4800
- "DOWNLOAD",
4801
- "ADD_TO_CART",
4802
- "BEGIN_CHECKOUT",
4803
- "SUBSCRIBE_PAID",
4804
- "PHONE_CALL_LEAD",
4805
- "IMPORTED_LEAD",
4806
- "SUBMIT_LEAD_FORM",
4807
- "BOOK_APPOINTMENT",
4808
- "REQUEST_QUOTE",
4809
- "GET_DIRECTIONS",
4810
- "OUTBOUND_CLICK",
4811
- "CONTACT",
4812
- "ENGAGEMENT",
4813
- "STORE_VISIT",
4814
- "STORE_SALE",
4815
- "QUALIFIED_LEAD",
4816
- "CONVERTED_LEAD",
4817
- "YOUTUBE_FOLLOW_ON_VIEWS"
4818
- ]),
4819
- origin: z__namespace.enum([
4820
- "UNSPECIFIED",
4821
- "UNKNOWN",
4822
- "WEBSITE",
4823
- "GOOGLE_HOSTED",
4824
- "APP",
4825
- "CALL_FROM_ADS",
4826
- "STORE",
4827
- "YOUTUBE_HOSTED"
4828
- ]),
4829
- primary_for_goal: z__namespace.boolean(),
4830
- counting_type: z__namespace.enum([
4831
- "UNSPECIFIED",
4832
- "UNKNOWN",
4833
- "ONE_PER_CLICK",
4834
- "MANY_PER_CLICK"
4835
- ]),
4836
- click_through_lookback_window_days: z__namespace.number().nullable(),
4837
- view_through_lookback_window_days: z__namespace.number().nullable(),
4838
- value_settings: z__namespace.object({
4839
- default_value: z__namespace.number().nullable(),
4840
- default_currency_code: z__namespace.string().nullable(),
4841
- always_use_default_value: z__namespace.boolean().nullable()
4842
- }).nullable(),
4843
- tag_snippets: z__namespace.array(z__namespace.object({
4844
- type: z__namespace.enum([
4845
- "UNSPECIFIED",
4846
- "UNKNOWN",
4847
- "WEBPAGE",
4848
- "WEBPAGE_ONCLICK",
4849
- "CLICK_TO_CALL",
4850
- "WEBSITE_CALL"
4851
- ]),
4852
- page_format: z__namespace.enum([
4853
- "UNSPECIFIED",
4854
- "UNKNOWN",
4855
- "HTML",
4856
- "AMP"
4857
- ]),
4858
- global_site_tag: z__namespace.string().nullable(),
4859
- event_snippet: z__namespace.string().nullable()
4860
- }))
4861
- }))
4862
- });
4863
- z__namespace.object({
4864
- name: z__namespace.string().min(1).max(255),
4865
- type: z__namespace.enum(["WEBPAGE", "UPLOAD_CLICKS"]),
4866
- category: z__namespace.enum([
4867
- "DEFAULT",
4868
- "PAGE_VIEW",
4869
- "PURCHASE",
4870
- "SIGNUP",
4871
- "DOWNLOAD",
4872
- "ADD_TO_CART",
4873
- "BEGIN_CHECKOUT",
4874
- "SUBSCRIBE_PAID",
4875
- "PHONE_CALL_LEAD",
4876
- "IMPORTED_LEAD",
4877
- "SUBMIT_LEAD_FORM",
4878
- "BOOK_APPOINTMENT",
4879
- "REQUEST_QUOTE",
4880
- "GET_DIRECTIONS",
4881
- "OUTBOUND_CLICK",
4882
- "CONTACT",
4883
- "ENGAGEMENT",
4884
- "STORE_VISIT",
4885
- "STORE_SALE",
4886
- "QUALIFIED_LEAD",
4887
- "CONVERTED_LEAD",
4888
- "YOUTUBE_FOLLOW_ON_VIEWS"
4889
- ]),
4890
- status: z__namespace.enum(["ENABLED"]).optional().default("ENABLED"),
4891
- value_settings: z__namespace.object({
4892
- default_value: z__namespace.number().gte(0).optional(),
4893
- default_currency_code: z__namespace.string().length(3).optional(),
4894
- always_use_default_value: z__namespace.boolean().optional()
4895
- }).optional(),
4896
- counting_type: z__namespace.enum(["ONE_PER_CLICK", "MANY_PER_CLICK"]).optional(),
4897
- click_through_lookback_window_days: z__namespace.int().gt(0).lte(9007199254740991).optional(),
4898
- view_through_lookback_window_days: z__namespace.int().gt(0).lte(9007199254740991).optional(),
4899
- dry_run: z__namespace.boolean().optional().default(false)
4900
- });
4901
- z__namespace.object({
4902
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
4903
- });
4904
- z__namespace.object({
4905
- connection_id: z__namespace.string()
4906
- });
4907
- z__namespace.object({
4908
- connection_id: z__namespace.string(),
4909
- id: z__namespace.string().regex(/^\d+$/)
4910
- });
4911
- z__namespace.object({
4912
- id: z__namespace.string(),
4913
- name: z__namespace.string().nullable(),
4914
- status: z__namespace.enum([
4915
- "UNSPECIFIED",
4916
- "UNKNOWN",
4917
- "ENABLED",
4918
- "REMOVED",
4919
- "HIDDEN"
4920
- ]),
4921
- type: z__namespace.enum([
4922
- "UNSPECIFIED",
4923
- "UNKNOWN",
4924
- "AD_CALL",
4925
- "CLICK_TO_CALL",
4926
- "GOOGLE_PLAY_DOWNLOAD",
4927
- "GOOGLE_PLAY_IN_APP_PURCHASE",
4928
- "UPLOAD_CALLS",
4929
- "UPLOAD_CLICKS",
4930
- "WEBPAGE",
4931
- "WEBSITE_CALL",
4932
- "STORE_SALES_DIRECT_UPLOAD",
4933
- "STORE_SALES",
4934
- "FIREBASE_ANDROID_FIRST_OPEN",
4935
- "FIREBASE_ANDROID_IN_APP_PURCHASE",
4936
- "FIREBASE_ANDROID_CUSTOM",
4937
- "FIREBASE_IOS_FIRST_OPEN",
4938
- "FIREBASE_IOS_IN_APP_PURCHASE",
4939
- "FIREBASE_IOS_CUSTOM",
4940
- "THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN",
4941
- "THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE",
4942
- "THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM",
4943
- "THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN",
4944
- "THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE",
4945
- "THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM",
4946
- "ANDROID_APP_PRE_REGISTRATION",
4947
- "ANDROID_INSTALLS_ALL_OTHER_APPS",
4948
- "FLOODLIGHT_ACTION",
4949
- "FLOODLIGHT_TRANSACTION",
4950
- "GOOGLE_HOSTED",
4951
- "LEAD_FORM_SUBMIT",
4952
- "SALESFORCE",
4953
- "SEARCH_ADS_360",
4954
- "SMART_CAMPAIGN_AD_CLICKS_TO_CALL",
4955
- "SMART_CAMPAIGN_MAP_CLICKS_TO_CALL",
4956
- "SMART_CAMPAIGN_MAP_DIRECTIONS",
4957
- "SMART_CAMPAIGN_TRACKED_CALLS",
4958
- "STORE_VISITS",
4959
- "WEBPAGE_CODELESS",
4960
- "UNIVERSAL_ANALYTICS_GOAL",
4961
- "UNIVERSAL_ANALYTICS_TRANSACTION",
4962
- "GOOGLE_ANALYTICS_4_CUSTOM",
4963
- "GOOGLE_ANALYTICS_4_PURCHASE",
4964
- "GOOGLE_ANALYTICS_4_GENERATE_LEAD",
4965
- "GOOGLE_ANALYTICS_4_QUALIFY_LEAD",
4966
- "GOOGLE_ANALYTICS_4_CLOSE_CONVERT_LEAD",
4967
- "FIREBASE_ANDROID_GENERATE_LEAD",
4968
- "FIREBASE_ANDROID_QUALIFY_LEAD",
4969
- "FIREBASE_ANDROID_CLOSE_CONVERT_LEAD",
4970
- "FIREBASE_IOS_GENERATE_LEAD",
4971
- "FIREBASE_IOS_QUALIFY_LEAD",
4972
- "FIREBASE_IOS_CLOSE_CONVERT_LEAD"
4973
- ]),
4974
- category: z__namespace.enum([
4975
- "UNSPECIFIED",
4976
- "UNKNOWN",
4977
- "DEFAULT",
4978
- "PAGE_VIEW",
4979
- "PURCHASE",
4980
- "SIGNUP",
4981
- "DOWNLOAD",
4982
- "ADD_TO_CART",
4983
- "BEGIN_CHECKOUT",
4984
- "SUBSCRIBE_PAID",
4985
- "PHONE_CALL_LEAD",
4986
- "IMPORTED_LEAD",
4987
- "SUBMIT_LEAD_FORM",
4988
- "BOOK_APPOINTMENT",
4989
- "REQUEST_QUOTE",
4990
- "GET_DIRECTIONS",
4991
- "OUTBOUND_CLICK",
4992
- "CONTACT",
4993
- "ENGAGEMENT",
4994
- "STORE_VISIT",
4995
- "STORE_SALE",
4996
- "QUALIFIED_LEAD",
4997
- "CONVERTED_LEAD",
4998
- "YOUTUBE_FOLLOW_ON_VIEWS"
4999
- ]),
5000
- origin: z__namespace.enum([
5001
- "UNSPECIFIED",
5002
- "UNKNOWN",
5003
- "WEBSITE",
5004
- "GOOGLE_HOSTED",
5005
- "APP",
5006
- "CALL_FROM_ADS",
5007
- "STORE",
5008
- "YOUTUBE_HOSTED"
5009
- ]),
5010
- primary_for_goal: z__namespace.boolean(),
5011
- counting_type: z__namespace.enum([
5012
- "UNSPECIFIED",
5013
- "UNKNOWN",
5014
- "ONE_PER_CLICK",
5015
- "MANY_PER_CLICK"
5016
- ]),
5017
- click_through_lookback_window_days: z__namespace.number().nullable(),
5018
- view_through_lookback_window_days: z__namespace.number().nullable(),
5019
- value_settings: z__namespace.object({
5020
- default_value: z__namespace.number().nullable(),
5021
- default_currency_code: z__namespace.string().nullable(),
5022
- always_use_default_value: z__namespace.boolean().nullable()
5023
- }).nullable(),
5024
- tag_snippets: z__namespace.array(z__namespace.object({
5025
- type: z__namespace.enum([
5026
- "UNSPECIFIED",
5027
- "UNKNOWN",
5028
- "WEBPAGE",
5029
- "WEBPAGE_ONCLICK",
5030
- "CLICK_TO_CALL",
5031
- "WEBSITE_CALL"
5032
- ]),
5033
- page_format: z__namespace.enum([
5034
- "UNSPECIFIED",
5035
- "UNKNOWN",
5036
- "HTML",
5037
- "AMP"
5038
- ]),
5039
- global_site_tag: z__namespace.string().nullable(),
5040
- event_snippet: z__namespace.string().nullable()
5041
- }))
5042
- });
5043
- z__namespace.object({
5044
- name: z__namespace.string().min(1).max(255).optional(),
5045
- category: z__namespace.enum([
5046
- "DEFAULT",
5047
- "PAGE_VIEW",
5048
- "PURCHASE",
5049
- "SIGNUP",
5050
- "DOWNLOAD",
5051
- "ADD_TO_CART",
5052
- "BEGIN_CHECKOUT",
5053
- "SUBSCRIBE_PAID",
5054
- "PHONE_CALL_LEAD",
5055
- "IMPORTED_LEAD",
5056
- "SUBMIT_LEAD_FORM",
5057
- "BOOK_APPOINTMENT",
5058
- "REQUEST_QUOTE",
5059
- "GET_DIRECTIONS",
5060
- "OUTBOUND_CLICK",
5061
- "CONTACT",
5062
- "ENGAGEMENT",
5063
- "STORE_VISIT",
5064
- "STORE_SALE",
5065
- "QUALIFIED_LEAD",
5066
- "CONVERTED_LEAD",
5067
- "YOUTUBE_FOLLOW_ON_VIEWS"
5068
- ]).optional(),
5069
- status: z__namespace.enum(["ENABLED"]).optional(),
5070
- value_settings: z__namespace.object({
5071
- default_value: z__namespace.number().gte(0).optional(),
5072
- default_currency_code: z__namespace.string().length(3).optional(),
5073
- always_use_default_value: z__namespace.boolean().optional()
5074
- }).optional(),
5075
- counting_type: z__namespace.enum(["ONE_PER_CLICK", "MANY_PER_CLICK"]).optional(),
5076
- click_through_lookback_window_days: z__namespace.int().gt(0).lte(9007199254740991).optional(),
5077
- view_through_lookback_window_days: z__namespace.int().gt(0).lte(9007199254740991).optional(),
5078
- primary_for_goal: z__namespace.boolean().optional(),
5079
- dry_run: z__namespace.boolean().optional().default(false)
5080
- });
5081
- z__namespace.object({
5082
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
5083
- });
5084
- z__namespace.object({
5085
- connection_id: z__namespace.string(),
5086
- id: z__namespace.string().regex(/^\d+$/)
5087
- });
5088
- z__namespace.object({
5089
- dry_run: z__namespace.boolean().optional().default(false)
5090
- });
5091
- z__namespace.object({
5092
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
5093
- });
5094
- z__namespace.object({
5095
- connection_id: z__namespace.string(),
5096
- id: z__namespace.string().regex(/^\d+$/)
5097
- });
5098
- z__namespace.object({
5099
- conversion_action_id: z__namespace.string().regex(/^\d+$/),
5100
- conversions: z__namespace.array(zGoogleAdsConversionEvent).min(1).max(2e3),
5101
- consent: zGoogleAdsConversionConsent.optional(),
5102
- dry_run: z__namespace.boolean().optional().default(false)
5103
- });
5104
- z__namespace.object({
5105
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
5106
- });
5107
- z__namespace.object({
5108
- connection_id: z__namespace.string()
5109
- });
5110
- z__namespace.object({
5111
- connection_id: z__namespace.string()
5112
- });
5113
- z__namespace.object({
5114
- request_id: z__namespace.string().min(1)
5115
- });
5116
- z__namespace.object({
5117
- connection_id: z__namespace.string()
5118
- });
5119
- z__namespace.object({
5120
- limit: z__namespace.int().gte(1).lte(100).optional().default(20),
5121
- offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0)
5122
- });
5123
- z__namespace.object({
5124
- object: z__namespace.literal("list"),
5125
- data: z__namespace.array(zGoogleAdsConversionRequest),
5126
- total: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
5127
- limit: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
5128
- offset: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
5129
- has_more: z__namespace.boolean()
5130
- });
5131
- z__namespace.object({
5132
- connection_id: z__namespace.string()
5133
- });
5134
- z__namespace.object({
5135
- object: z__namespace.literal("list"),
5136
- data: z__namespace.array(z__namespace.object({
5137
- category: z__namespace.enum([
5138
- "UNSPECIFIED",
5139
- "UNKNOWN",
5140
- "DEFAULT",
5141
- "PAGE_VIEW",
5142
- "PURCHASE",
5143
- "SIGNUP",
5144
- "DOWNLOAD",
5145
- "ADD_TO_CART",
5146
- "BEGIN_CHECKOUT",
5147
- "SUBSCRIBE_PAID",
5148
- "PHONE_CALL_LEAD",
5149
- "IMPORTED_LEAD",
5150
- "SUBMIT_LEAD_FORM",
5151
- "BOOK_APPOINTMENT",
5152
- "REQUEST_QUOTE",
5153
- "GET_DIRECTIONS",
5154
- "OUTBOUND_CLICK",
5155
- "CONTACT",
5156
- "ENGAGEMENT",
5157
- "STORE_VISIT",
5158
- "STORE_SALE",
5159
- "QUALIFIED_LEAD",
5160
- "CONVERTED_LEAD",
5161
- "YOUTUBE_FOLLOW_ON_VIEWS"
5162
- ]),
5163
- origin: z__namespace.enum([
5164
- "UNSPECIFIED",
5165
- "UNKNOWN",
5166
- "WEBSITE",
5167
- "GOOGLE_HOSTED",
5168
- "APP",
5169
- "CALL_FROM_ADS",
5170
- "STORE",
5171
- "YOUTUBE_HOSTED"
5172
- ]),
5173
- biddable: z__namespace.boolean()
2882
+ platform: zPostPlatform.optional(),
2883
+ display_error: z__namespace.string()
5174
2884
  }))
5175
2885
  });
5176
- z__namespace.object({
5177
- category: z__namespace.enum([
5178
- "DEFAULT",
5179
- "PAGE_VIEW",
5180
- "PURCHASE",
5181
- "SIGNUP",
5182
- "DOWNLOAD",
5183
- "ADD_TO_CART",
5184
- "BEGIN_CHECKOUT",
5185
- "SUBSCRIBE_PAID",
5186
- "PHONE_CALL_LEAD",
5187
- "IMPORTED_LEAD",
5188
- "SUBMIT_LEAD_FORM",
5189
- "BOOK_APPOINTMENT",
5190
- "REQUEST_QUOTE",
5191
- "GET_DIRECTIONS",
5192
- "OUTBOUND_CLICK",
5193
- "CONTACT",
5194
- "ENGAGEMENT",
5195
- "STORE_VISIT",
5196
- "STORE_SALE",
5197
- "QUALIFIED_LEAD",
5198
- "CONVERTED_LEAD",
5199
- "YOUTUBE_FOLLOW_ON_VIEWS"
5200
- ]),
5201
- origin: z__namespace.enum([
5202
- "WEBSITE",
5203
- "GOOGLE_HOSTED",
5204
- "APP",
5205
- "CALL_FROM_ADS",
5206
- "STORE",
5207
- "YOUTUBE_HOSTED"
5208
- ]),
5209
- biddable: z__namespace.boolean(),
5210
- dry_run: z__namespace.boolean().optional().default(false)
5211
- });
5212
- z__namespace.object({
5213
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
5214
- });
5215
- z__namespace.object({
5216
- connection_id: z__namespace.string()
5217
- });
5218
- z__namespace.object({
5219
- category: z__namespace.enum([
5220
- "UNSPECIFIED",
5221
- "UNKNOWN",
5222
- "DEFAULT",
5223
- "PAGE_VIEW",
5224
- "PURCHASE",
5225
- "SIGNUP",
5226
- "DOWNLOAD",
5227
- "ADD_TO_CART",
5228
- "BEGIN_CHECKOUT",
5229
- "SUBSCRIBE_PAID",
5230
- "PHONE_CALL_LEAD",
5231
- "IMPORTED_LEAD",
5232
- "SUBMIT_LEAD_FORM",
5233
- "BOOK_APPOINTMENT",
5234
- "REQUEST_QUOTE",
5235
- "GET_DIRECTIONS",
5236
- "OUTBOUND_CLICK",
5237
- "CONTACT",
5238
- "ENGAGEMENT",
5239
- "STORE_VISIT",
5240
- "STORE_SALE",
5241
- "QUALIFIED_LEAD",
5242
- "CONVERTED_LEAD",
5243
- "YOUTUBE_FOLLOW_ON_VIEWS"
5244
- ]),
5245
- origin: z__namespace.enum([
5246
- "UNSPECIFIED",
5247
- "UNKNOWN",
5248
- "WEBSITE",
5249
- "GOOGLE_HOSTED",
5250
- "APP",
5251
- "CALL_FROM_ADS",
5252
- "STORE",
5253
- "YOUTUBE_HOSTED"
5254
- ]),
5255
- biddable: z__namespace.boolean(),
5256
- dry_run: z__namespace.boolean(),
5257
- executed: z__namespace.boolean()
5258
- });
5259
- z__namespace.object({
5260
- media_id: z__namespace.string(),
5261
- dry_run: z__namespace.boolean().optional().default(false)
5262
- });
5263
- z__namespace.object({
5264
- "Idempotency-Key": z__namespace.string().min(1).max(255).optional()
5265
- });
5266
- z__namespace.object({
5267
- connection_id: z__namespace.string()
5268
- });
5269
2886
  z__namespace.object({
5270
2887
  id: z__namespace.string()
5271
2888
  });
@@ -5348,12 +2965,12 @@ z__namespace.object({
5348
2965
  "not_implemented",
5349
2966
  "connection_discovery_failed",
5350
2967
  "tiktok_creator_info_unavailable",
5351
- "tiktok_cannot_post_now",
5352
2968
  "media_processing",
5353
2969
  "media_upload_init_failed",
5354
2970
  "media_upload_incomplete",
5355
2971
  "media_upload_invalid_parts",
5356
2972
  "not_publishable",
2973
+ "post_not_retryable",
5357
2974
  "invalid_connection",
5358
2975
  "invalid_media",
5359
2976
  "profile_scope_invalid",
@@ -5404,6 +3021,7 @@ z__namespace.object({
5404
3021
  "x_rate_limited",
5405
3022
  "x_publish_failed",
5406
3023
  "x_media_upload_failed",
3024
+ "x_thread_incomplete",
5407
3025
  "linkedin_duplicate_content",
5408
3026
  "linkedin_auth_expired",
5409
3027
  "linkedin_permission_denied",
@@ -5421,6 +3039,7 @@ z__namespace.object({
5421
3039
  "instagram_media_unsupported",
5422
3040
  "instagram_not_authorized",
5423
3041
  "instagram_publish_failed",
3042
+ "instagram_comment_failed",
5424
3043
  "facebook_reel_processing",
5425
3044
  "facebook_reel_failed",
5426
3045
  "facebook_rate_limited",
@@ -5428,13 +3047,14 @@ z__namespace.object({
5428
3047
  "facebook_temporarily_blocked",
5429
3048
  "facebook_not_authorized",
5430
3049
  "facebook_publish_failed",
3050
+ "facebook_comment_failed",
5431
3051
  "tiktok_privacy_not_allowed",
3052
+ "tiktok_interaction_not_allowed",
3053
+ "tiktok_thumbnail_offset_invalid",
5432
3054
  "tiktok_duration_exceeds_max",
5433
3055
  "tiktok_media_processing",
5434
3056
  "tiktok_not_authorized",
5435
3057
  "tiktok_rate_limited",
5436
- "tiktok_url_ownership_unverified",
5437
- "tiktok_unaudited_private_only",
5438
3058
  "tiktok_spam_risk",
5439
3059
  "tiktok_file_format_invalid",
5440
3060
  "tiktok_duration_invalid",
@@ -5443,21 +3063,15 @@ z__namespace.object({
5443
3063
  "tiktok_media_pull_failed",
5444
3064
  "tiktok_server_error",
5445
3065
  "tiktok_publish_failed",
5446
- "google_rate_limited",
5447
- "google_server_error",
5448
- "google_auth_expired",
5449
- "google_permission_denied",
5450
- "google_request_failed",
5451
- "google_conversion_duplicate",
5452
- "google_conversion_invalid_click_id",
5453
- "google_conversion_event_too_old",
5454
- "google_conversion_consent_required",
5455
- "google_conversion_terms_not_signed",
5456
- "google_conversion_rejected",
5457
3066
  "post_publish_failed",
5458
3067
  "post_partially_published",
5459
3068
  "connection_platform_mismatch",
5460
- "connection_removed"
3069
+ "connection_removed",
3070
+ "publish_interrupted",
3071
+ "publish_outcome_unknown",
3072
+ "plan_limit_reached",
3073
+ "billing_required",
3074
+ "x_link_requires_paid_plan"
5461
3075
  ]),
5462
3076
  message: z__namespace.string()
5463
3077
  }).nullable(),
@@ -5508,12 +3122,142 @@ z__namespace.object({
5508
3122
  "not_implemented",
5509
3123
  "connection_discovery_failed",
5510
3124
  "tiktok_creator_info_unavailable",
5511
- "tiktok_cannot_post_now",
5512
3125
  "media_processing",
5513
3126
  "media_upload_init_failed",
5514
3127
  "media_upload_incomplete",
5515
3128
  "media_upload_invalid_parts",
5516
3129
  "not_publishable",
3130
+ "post_not_retryable",
3131
+ "invalid_connection",
3132
+ "invalid_media",
3133
+ "profile_scope_invalid",
3134
+ "media_unprobeable",
3135
+ "media_too_large",
3136
+ "media_aspect_ratio_unsupported",
3137
+ "media_resolution_too_low",
3138
+ "media_gif_unsupported",
3139
+ "media_format_recompressed",
3140
+ "media_resolution_downscaled",
3141
+ "video_container_unsupported",
3142
+ "video_codec_unsupported",
3143
+ "video_audio_codec_unsupported",
3144
+ "video_too_large",
3145
+ "video_too_small",
3146
+ "video_dimensions_unsupported",
3147
+ "video_dimensions_too_large",
3148
+ "video_fps_unsupported",
3149
+ "video_fps_too_low",
3150
+ "video_aspect_unsupported",
3151
+ "video_duration_too_short",
3152
+ "video_duration_exceeds_max",
3153
+ "video_transform_failed",
3154
+ "media_fetch_failed",
3155
+ "document_format_unsupported",
3156
+ "document_too_large",
3157
+ "document_too_many_pages",
3158
+ "media_format_indeterminate",
3159
+ "media_format_unsupported",
3160
+ "media_count_invalid",
3161
+ "body_too_long",
3162
+ "content_missing",
3163
+ "content_conflict",
3164
+ "content_incomplete",
3165
+ "media_type_mismatch",
3166
+ "tag_limit_exceeded",
3167
+ "reel_field_on_non_reel",
3168
+ "field_placement_invalid",
3169
+ "media_not_ready",
3170
+ "media_failed",
3171
+ "media_unsupported",
3172
+ "media_kind_mismatch",
3173
+ "variant_unparseable",
3174
+ "publishing_unavailable",
3175
+ "x_duplicate_content",
3176
+ "x_not_authorized",
3177
+ "x_access_not_permitted",
3178
+ "x_rate_limited",
3179
+ "x_publish_failed",
3180
+ "x_media_upload_failed",
3181
+ "x_thread_incomplete",
3182
+ "linkedin_duplicate_content",
3183
+ "linkedin_auth_expired",
3184
+ "linkedin_permission_denied",
3185
+ "linkedin_rate_limited",
3186
+ "linkedin_media_processing",
3187
+ "linkedin_media_failed",
3188
+ "linkedin_media_upload_failed",
3189
+ "linkedin_publish_failed",
3190
+ "instagram_media_processing",
3191
+ "instagram_container_expired",
3192
+ "instagram_container_failed",
3193
+ "instagram_rate_limited",
3194
+ "instagram_daily_limit_reached",
3195
+ "instagram_aspect_ratio_unsupported",
3196
+ "instagram_media_unsupported",
3197
+ "instagram_not_authorized",
3198
+ "instagram_publish_failed",
3199
+ "instagram_comment_failed",
3200
+ "facebook_reel_processing",
3201
+ "facebook_reel_failed",
3202
+ "facebook_rate_limited",
3203
+ "facebook_duplicate_content",
3204
+ "facebook_temporarily_blocked",
3205
+ "facebook_not_authorized",
3206
+ "facebook_publish_failed",
3207
+ "facebook_comment_failed",
3208
+ "tiktok_privacy_not_allowed",
3209
+ "tiktok_interaction_not_allowed",
3210
+ "tiktok_thumbnail_offset_invalid",
3211
+ "tiktok_duration_exceeds_max",
3212
+ "tiktok_media_processing",
3213
+ "tiktok_not_authorized",
3214
+ "tiktok_rate_limited",
3215
+ "tiktok_spam_risk",
3216
+ "tiktok_file_format_invalid",
3217
+ "tiktok_duration_invalid",
3218
+ "tiktok_frame_rate_invalid",
3219
+ "tiktok_resolution_invalid",
3220
+ "tiktok_media_pull_failed",
3221
+ "tiktok_server_error",
3222
+ "tiktok_publish_failed",
3223
+ "post_publish_failed",
3224
+ "post_partially_published",
3225
+ "connection_platform_mismatch",
3226
+ "connection_removed",
3227
+ "publish_interrupted",
3228
+ "publish_outcome_unknown",
3229
+ "plan_limit_reached",
3230
+ "billing_required",
3231
+ "x_link_requires_paid_plan"
3232
+ ]),
3233
+ message: z__namespace.string(),
3234
+ source: zErrorSource.optional(),
3235
+ display_error: z__namespace.string()
3236
+ }).nullable(),
3237
+ warning: z__namespace.object({
3238
+ code: z__namespace.enum([
3239
+ "unauthorized",
3240
+ "forbidden",
3241
+ "not_found",
3242
+ "conflict",
3243
+ "validation_failed",
3244
+ "rate_limited",
3245
+ "internal_error",
3246
+ "idempotency_key_invalid",
3247
+ "idempotency_key_reused",
3248
+ "idempotency_request_in_progress",
3249
+ "account_not_available",
3250
+ "connection_reauth_required",
3251
+ "connection_not_pending",
3252
+ "not_implemented",
3253
+ "connection_discovery_failed",
3254
+ "tiktok_creator_info_unavailable",
3255
+ "media_processing",
3256
+ "media_upload_init_failed",
3257
+ "media_upload_incomplete",
3258
+ "media_upload_invalid_parts",
3259
+ "not_publishable",
3260
+ "post_not_retryable",
5517
3261
  "invalid_connection",
5518
3262
  "invalid_media",
5519
3263
  "profile_scope_invalid",
@@ -5564,6 +3308,7 @@ z__namespace.object({
5564
3308
  "x_rate_limited",
5565
3309
  "x_publish_failed",
5566
3310
  "x_media_upload_failed",
3311
+ "x_thread_incomplete",
5567
3312
  "linkedin_duplicate_content",
5568
3313
  "linkedin_auth_expired",
5569
3314
  "linkedin_permission_denied",
@@ -5581,6 +3326,7 @@ z__namespace.object({
5581
3326
  "instagram_media_unsupported",
5582
3327
  "instagram_not_authorized",
5583
3328
  "instagram_publish_failed",
3329
+ "instagram_comment_failed",
5584
3330
  "facebook_reel_processing",
5585
3331
  "facebook_reel_failed",
5586
3332
  "facebook_rate_limited",
@@ -5588,13 +3334,14 @@ z__namespace.object({
5588
3334
  "facebook_temporarily_blocked",
5589
3335
  "facebook_not_authorized",
5590
3336
  "facebook_publish_failed",
3337
+ "facebook_comment_failed",
5591
3338
  "tiktok_privacy_not_allowed",
3339
+ "tiktok_interaction_not_allowed",
3340
+ "tiktok_thumbnail_offset_invalid",
5592
3341
  "tiktok_duration_exceeds_max",
5593
3342
  "tiktok_media_processing",
5594
3343
  "tiktok_not_authorized",
5595
3344
  "tiktok_rate_limited",
5596
- "tiktok_url_ownership_unverified",
5597
- "tiktok_unaudited_private_only",
5598
3345
  "tiktok_spam_risk",
5599
3346
  "tiktok_file_format_invalid",
5600
3347
  "tiktok_duration_invalid",
@@ -5603,25 +3350,20 @@ z__namespace.object({
5603
3350
  "tiktok_media_pull_failed",
5604
3351
  "tiktok_server_error",
5605
3352
  "tiktok_publish_failed",
5606
- "google_rate_limited",
5607
- "google_server_error",
5608
- "google_auth_expired",
5609
- "google_permission_denied",
5610
- "google_request_failed",
5611
- "google_conversion_duplicate",
5612
- "google_conversion_invalid_click_id",
5613
- "google_conversion_event_too_old",
5614
- "google_conversion_consent_required",
5615
- "google_conversion_terms_not_signed",
5616
- "google_conversion_rejected",
5617
3353
  "post_publish_failed",
5618
3354
  "post_partially_published",
5619
3355
  "connection_platform_mismatch",
5620
- "connection_removed"
3356
+ "connection_removed",
3357
+ "publish_interrupted",
3358
+ "publish_outcome_unknown",
3359
+ "plan_limit_reached",
3360
+ "billing_required",
3361
+ "x_link_requires_paid_plan"
5621
3362
  ]),
5622
3363
  message: z__namespace.string(),
3364
+ source: zErrorSource.optional(),
5623
3365
  display_error: z__namespace.string()
5624
- }).nullable()
3366
+ }).optional()
5625
3367
  }))
5626
3368
  }).nullable(),
5627
3369
  external_id: z__namespace.string().nullable(),
@@ -5689,12 +3431,12 @@ z__namespace.object({
5689
3431
  "not_implemented",
5690
3432
  "connection_discovery_failed",
5691
3433
  "tiktok_creator_info_unavailable",
5692
- "tiktok_cannot_post_now",
5693
3434
  "media_processing",
5694
3435
  "media_upload_init_failed",
5695
3436
  "media_upload_incomplete",
5696
3437
  "media_upload_invalid_parts",
5697
3438
  "not_publishable",
3439
+ "post_not_retryable",
5698
3440
  "invalid_connection",
5699
3441
  "invalid_media",
5700
3442
  "profile_scope_invalid",
@@ -5745,6 +3487,7 @@ z__namespace.object({
5745
3487
  "x_rate_limited",
5746
3488
  "x_publish_failed",
5747
3489
  "x_media_upload_failed",
3490
+ "x_thread_incomplete",
5748
3491
  "linkedin_duplicate_content",
5749
3492
  "linkedin_auth_expired",
5750
3493
  "linkedin_permission_denied",
@@ -5762,6 +3505,7 @@ z__namespace.object({
5762
3505
  "instagram_media_unsupported",
5763
3506
  "instagram_not_authorized",
5764
3507
  "instagram_publish_failed",
3508
+ "instagram_comment_failed",
5765
3509
  "facebook_reel_processing",
5766
3510
  "facebook_reel_failed",
5767
3511
  "facebook_rate_limited",
@@ -5769,13 +3513,14 @@ z__namespace.object({
5769
3513
  "facebook_temporarily_blocked",
5770
3514
  "facebook_not_authorized",
5771
3515
  "facebook_publish_failed",
3516
+ "facebook_comment_failed",
5772
3517
  "tiktok_privacy_not_allowed",
3518
+ "tiktok_interaction_not_allowed",
3519
+ "tiktok_thumbnail_offset_invalid",
5773
3520
  "tiktok_duration_exceeds_max",
5774
3521
  "tiktok_media_processing",
5775
3522
  "tiktok_not_authorized",
5776
3523
  "tiktok_rate_limited",
5777
- "tiktok_url_ownership_unverified",
5778
- "tiktok_unaudited_private_only",
5779
3524
  "tiktok_spam_risk",
5780
3525
  "tiktok_file_format_invalid",
5781
3526
  "tiktok_duration_invalid",
@@ -5784,21 +3529,15 @@ z__namespace.object({
5784
3529
  "tiktok_media_pull_failed",
5785
3530
  "tiktok_server_error",
5786
3531
  "tiktok_publish_failed",
5787
- "google_rate_limited",
5788
- "google_server_error",
5789
- "google_auth_expired",
5790
- "google_permission_denied",
5791
- "google_request_failed",
5792
- "google_conversion_duplicate",
5793
- "google_conversion_invalid_click_id",
5794
- "google_conversion_event_too_old",
5795
- "google_conversion_consent_required",
5796
- "google_conversion_terms_not_signed",
5797
- "google_conversion_rejected",
5798
3532
  "post_publish_failed",
5799
3533
  "post_partially_published",
5800
3534
  "connection_platform_mismatch",
5801
- "connection_removed"
3535
+ "connection_removed",
3536
+ "publish_interrupted",
3537
+ "publish_outcome_unknown",
3538
+ "plan_limit_reached",
3539
+ "billing_required",
3540
+ "x_link_requires_paid_plan"
5802
3541
  ]),
5803
3542
  message: z__namespace.string()
5804
3543
  }).nullable(),
@@ -5849,12 +3588,142 @@ z__namespace.object({
5849
3588
  "not_implemented",
5850
3589
  "connection_discovery_failed",
5851
3590
  "tiktok_creator_info_unavailable",
5852
- "tiktok_cannot_post_now",
5853
3591
  "media_processing",
5854
3592
  "media_upload_init_failed",
5855
3593
  "media_upload_incomplete",
5856
3594
  "media_upload_invalid_parts",
5857
3595
  "not_publishable",
3596
+ "post_not_retryable",
3597
+ "invalid_connection",
3598
+ "invalid_media",
3599
+ "profile_scope_invalid",
3600
+ "media_unprobeable",
3601
+ "media_too_large",
3602
+ "media_aspect_ratio_unsupported",
3603
+ "media_resolution_too_low",
3604
+ "media_gif_unsupported",
3605
+ "media_format_recompressed",
3606
+ "media_resolution_downscaled",
3607
+ "video_container_unsupported",
3608
+ "video_codec_unsupported",
3609
+ "video_audio_codec_unsupported",
3610
+ "video_too_large",
3611
+ "video_too_small",
3612
+ "video_dimensions_unsupported",
3613
+ "video_dimensions_too_large",
3614
+ "video_fps_unsupported",
3615
+ "video_fps_too_low",
3616
+ "video_aspect_unsupported",
3617
+ "video_duration_too_short",
3618
+ "video_duration_exceeds_max",
3619
+ "video_transform_failed",
3620
+ "media_fetch_failed",
3621
+ "document_format_unsupported",
3622
+ "document_too_large",
3623
+ "document_too_many_pages",
3624
+ "media_format_indeterminate",
3625
+ "media_format_unsupported",
3626
+ "media_count_invalid",
3627
+ "body_too_long",
3628
+ "content_missing",
3629
+ "content_conflict",
3630
+ "content_incomplete",
3631
+ "media_type_mismatch",
3632
+ "tag_limit_exceeded",
3633
+ "reel_field_on_non_reel",
3634
+ "field_placement_invalid",
3635
+ "media_not_ready",
3636
+ "media_failed",
3637
+ "media_unsupported",
3638
+ "media_kind_mismatch",
3639
+ "variant_unparseable",
3640
+ "publishing_unavailable",
3641
+ "x_duplicate_content",
3642
+ "x_not_authorized",
3643
+ "x_access_not_permitted",
3644
+ "x_rate_limited",
3645
+ "x_publish_failed",
3646
+ "x_media_upload_failed",
3647
+ "x_thread_incomplete",
3648
+ "linkedin_duplicate_content",
3649
+ "linkedin_auth_expired",
3650
+ "linkedin_permission_denied",
3651
+ "linkedin_rate_limited",
3652
+ "linkedin_media_processing",
3653
+ "linkedin_media_failed",
3654
+ "linkedin_media_upload_failed",
3655
+ "linkedin_publish_failed",
3656
+ "instagram_media_processing",
3657
+ "instagram_container_expired",
3658
+ "instagram_container_failed",
3659
+ "instagram_rate_limited",
3660
+ "instagram_daily_limit_reached",
3661
+ "instagram_aspect_ratio_unsupported",
3662
+ "instagram_media_unsupported",
3663
+ "instagram_not_authorized",
3664
+ "instagram_publish_failed",
3665
+ "instagram_comment_failed",
3666
+ "facebook_reel_processing",
3667
+ "facebook_reel_failed",
3668
+ "facebook_rate_limited",
3669
+ "facebook_duplicate_content",
3670
+ "facebook_temporarily_blocked",
3671
+ "facebook_not_authorized",
3672
+ "facebook_publish_failed",
3673
+ "facebook_comment_failed",
3674
+ "tiktok_privacy_not_allowed",
3675
+ "tiktok_interaction_not_allowed",
3676
+ "tiktok_thumbnail_offset_invalid",
3677
+ "tiktok_duration_exceeds_max",
3678
+ "tiktok_media_processing",
3679
+ "tiktok_not_authorized",
3680
+ "tiktok_rate_limited",
3681
+ "tiktok_spam_risk",
3682
+ "tiktok_file_format_invalid",
3683
+ "tiktok_duration_invalid",
3684
+ "tiktok_frame_rate_invalid",
3685
+ "tiktok_resolution_invalid",
3686
+ "tiktok_media_pull_failed",
3687
+ "tiktok_server_error",
3688
+ "tiktok_publish_failed",
3689
+ "post_publish_failed",
3690
+ "post_partially_published",
3691
+ "connection_platform_mismatch",
3692
+ "connection_removed",
3693
+ "publish_interrupted",
3694
+ "publish_outcome_unknown",
3695
+ "plan_limit_reached",
3696
+ "billing_required",
3697
+ "x_link_requires_paid_plan"
3698
+ ]),
3699
+ message: z__namespace.string(),
3700
+ source: zErrorSource.optional(),
3701
+ display_error: z__namespace.string()
3702
+ }).nullable(),
3703
+ warning: z__namespace.object({
3704
+ code: z__namespace.enum([
3705
+ "unauthorized",
3706
+ "forbidden",
3707
+ "not_found",
3708
+ "conflict",
3709
+ "validation_failed",
3710
+ "rate_limited",
3711
+ "internal_error",
3712
+ "idempotency_key_invalid",
3713
+ "idempotency_key_reused",
3714
+ "idempotency_request_in_progress",
3715
+ "account_not_available",
3716
+ "connection_reauth_required",
3717
+ "connection_not_pending",
3718
+ "not_implemented",
3719
+ "connection_discovery_failed",
3720
+ "tiktok_creator_info_unavailable",
3721
+ "media_processing",
3722
+ "media_upload_init_failed",
3723
+ "media_upload_incomplete",
3724
+ "media_upload_invalid_parts",
3725
+ "not_publishable",
3726
+ "post_not_retryable",
5858
3727
  "invalid_connection",
5859
3728
  "invalid_media",
5860
3729
  "profile_scope_invalid",
@@ -5905,6 +3774,7 @@ z__namespace.object({
5905
3774
  "x_rate_limited",
5906
3775
  "x_publish_failed",
5907
3776
  "x_media_upload_failed",
3777
+ "x_thread_incomplete",
5908
3778
  "linkedin_duplicate_content",
5909
3779
  "linkedin_auth_expired",
5910
3780
  "linkedin_permission_denied",
@@ -5922,6 +3792,7 @@ z__namespace.object({
5922
3792
  "instagram_media_unsupported",
5923
3793
  "instagram_not_authorized",
5924
3794
  "instagram_publish_failed",
3795
+ "instagram_comment_failed",
5925
3796
  "facebook_reel_processing",
5926
3797
  "facebook_reel_failed",
5927
3798
  "facebook_rate_limited",
@@ -5929,13 +3800,14 @@ z__namespace.object({
5929
3800
  "facebook_temporarily_blocked",
5930
3801
  "facebook_not_authorized",
5931
3802
  "facebook_publish_failed",
3803
+ "facebook_comment_failed",
5932
3804
  "tiktok_privacy_not_allowed",
3805
+ "tiktok_interaction_not_allowed",
3806
+ "tiktok_thumbnail_offset_invalid",
5933
3807
  "tiktok_duration_exceeds_max",
5934
3808
  "tiktok_media_processing",
5935
3809
  "tiktok_not_authorized",
5936
3810
  "tiktok_rate_limited",
5937
- "tiktok_url_ownership_unverified",
5938
- "tiktok_unaudited_private_only",
5939
3811
  "tiktok_spam_risk",
5940
3812
  "tiktok_file_format_invalid",
5941
3813
  "tiktok_duration_invalid",
@@ -5944,25 +3816,20 @@ z__namespace.object({
5944
3816
  "tiktok_media_pull_failed",
5945
3817
  "tiktok_server_error",
5946
3818
  "tiktok_publish_failed",
5947
- "google_rate_limited",
5948
- "google_server_error",
5949
- "google_auth_expired",
5950
- "google_permission_denied",
5951
- "google_request_failed",
5952
- "google_conversion_duplicate",
5953
- "google_conversion_invalid_click_id",
5954
- "google_conversion_event_too_old",
5955
- "google_conversion_consent_required",
5956
- "google_conversion_terms_not_signed",
5957
- "google_conversion_rejected",
5958
3819
  "post_publish_failed",
5959
3820
  "post_partially_published",
5960
3821
  "connection_platform_mismatch",
5961
- "connection_removed"
3822
+ "connection_removed",
3823
+ "publish_interrupted",
3824
+ "publish_outcome_unknown",
3825
+ "plan_limit_reached",
3826
+ "billing_required",
3827
+ "x_link_requires_paid_plan"
5962
3828
  ]),
5963
3829
  message: z__namespace.string(),
3830
+ source: zErrorSource.optional(),
5964
3831
  display_error: z__namespace.string()
5965
- }).nullable()
3832
+ }).optional()
5966
3833
  }))
5967
3834
  }).nullable(),
5968
3835
  external_id: z__namespace.string().nullable(),
@@ -6002,7 +3869,9 @@ z__namespace.object({
6002
3869
  "webhook.ping",
6003
3870
  "post.published",
6004
3871
  "post.failed",
6005
- "post.completed"
3872
+ "post.completed",
3873
+ "connection.needs_reauth",
3874
+ "connection.restored"
6006
3875
  ]))
6007
3876
  });
6008
3877
  z__namespace.object({
@@ -6045,7 +3914,9 @@ z__namespace.object({
6045
3914
  "webhook.ping",
6046
3915
  "post.published",
6047
3916
  "post.failed",
6048
- "post.completed"
3917
+ "post.completed",
3918
+ "connection.needs_reauth",
3919
+ "connection.restored"
6049
3920
  ])).optional()
6050
3921
  });
6051
3922
  z__namespace.object({
@@ -6091,14 +3962,16 @@ z__namespace.object({
6091
3962
  scopes: z__namespace.array(z__namespace.enum([
6092
3963
  "profiles:read",
6093
3964
  "profiles:write",
3965
+ "profiles:delete",
6094
3966
  "connections:read",
6095
3967
  "connections:write",
6096
- "ads:read",
6097
- "ads:write",
3968
+ "connections:delete",
6098
3969
  "posts:read",
6099
3970
  "posts:write",
3971
+ "posts:delete",
6100
3972
  "media:read",
6101
- "media:write"
3973
+ "media:write",
3974
+ "media:delete"
6102
3975
  ])).min(1),
6103
3976
  ttl_seconds: z__namespace.int().gte(60).lte(1800).optional().default(900)
6104
3977
  });