@postrun/js 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -869,6 +869,8 @@ var zErrorCode = z__namespace.enum([
869
869
  "tag_limit_exceeded",
870
870
  "reel_field_on_non_reel",
871
871
  "field_placement_invalid",
872
+ "title_too_long",
873
+ "characters_not_allowed",
872
874
  "media_not_ready",
873
875
  "media_failed",
874
876
  "media_unsupported",
@@ -923,6 +925,14 @@ var zErrorCode = z__namespace.enum([
923
925
  "tiktok_media_pull_failed",
924
926
  "tiktok_server_error",
925
927
  "tiktok_publish_failed",
928
+ "youtube_long_upload_not_allowed",
929
+ "youtube_not_authorized",
930
+ "youtube_daily_limit_reached",
931
+ "youtube_upload_failed",
932
+ "youtube_upload_unconfirmed",
933
+ "youtube_video_rejected",
934
+ "youtube_processing_failed",
935
+ "youtube_thumbnail_failed",
926
936
  "post_publish_failed",
927
937
  "post_partially_published",
928
938
  "connection_platform_mismatch",
@@ -962,6 +972,19 @@ var zProfile = z__namespace.object({
962
972
  created_at: z__namespace.string().nullable(),
963
973
  updated_at: z__namespace.string().nullable()
964
974
  });
975
+ var zYouTubePostSettings = z__namespace.object({
976
+ title: z__namespace.string().optional(),
977
+ privacy_status: z__namespace.enum([
978
+ "public",
979
+ "unlisted",
980
+ "private"
981
+ ]).optional(),
982
+ self_declared_made_for_kids: z__namespace.boolean().optional(),
983
+ contains_synthetic_media: z__namespace.boolean().optional(),
984
+ tags: z__namespace.array(z__namespace.string()).optional(),
985
+ category_id: z__namespace.string().regex(/^[0-9]+$/).optional(),
986
+ thumbnail_media_id: z__namespace.string().optional()
987
+ });
965
988
  var zTikTokPostMetrics = z__namespace.object({
966
989
  platform: z__namespace.literal("tiktok"),
967
990
  video_views: z__namespace.number().nullable(),
@@ -1278,7 +1301,8 @@ var zPostPlatform = z__namespace.enum([
1278
1301
  "linkedin",
1279
1302
  "facebook_page",
1280
1303
  "instagram",
1281
- "tiktok"
1304
+ "tiktok",
1305
+ "youtube"
1282
1306
  ]);
1283
1307
  var zPostVariantAnalytics = z__namespace.object({
1284
1308
  variant_id: z__namespace.string(),
@@ -1303,7 +1327,8 @@ var zPostType = z__namespace.enum([
1303
1327
  "multi_image",
1304
1328
  "video",
1305
1329
  "reel",
1306
- "carousel"
1330
+ "carousel",
1331
+ "short"
1307
1332
  ]);
1308
1333
  var zPostStatus = z__namespace.enum([
1309
1334
  "draft",
@@ -1337,7 +1362,8 @@ var zConnection = z__namespace.object({
1337
1362
  "linkedin",
1338
1363
  "facebook_page",
1339
1364
  "instagram",
1340
- "tiktok"
1365
+ "tiktok",
1366
+ "youtube"
1341
1367
  ]),
1342
1368
  kind: zConnectionKind,
1343
1369
  status: zConnectionStatus,
@@ -1476,6 +1502,8 @@ var zPostVariant = z__namespace.union([
1476
1502
  "tag_limit_exceeded",
1477
1503
  "reel_field_on_non_reel",
1478
1504
  "field_placement_invalid",
1505
+ "title_too_long",
1506
+ "characters_not_allowed",
1479
1507
  "media_not_ready",
1480
1508
  "media_failed",
1481
1509
  "media_unsupported",
@@ -1530,6 +1558,14 @@ var zPostVariant = z__namespace.union([
1530
1558
  "tiktok_media_pull_failed",
1531
1559
  "tiktok_server_error",
1532
1560
  "tiktok_publish_failed",
1561
+ "youtube_long_upload_not_allowed",
1562
+ "youtube_not_authorized",
1563
+ "youtube_daily_limit_reached",
1564
+ "youtube_upload_failed",
1565
+ "youtube_upload_unconfirmed",
1566
+ "youtube_video_rejected",
1567
+ "youtube_processing_failed",
1568
+ "youtube_thumbnail_failed",
1533
1569
  "post_publish_failed",
1534
1570
  "post_partially_published",
1535
1571
  "connection_platform_mismatch",
@@ -1660,6 +1696,8 @@ var zPostVariant = z__namespace.union([
1660
1696
  "tag_limit_exceeded",
1661
1697
  "reel_field_on_non_reel",
1662
1698
  "field_placement_invalid",
1699
+ "title_too_long",
1700
+ "characters_not_allowed",
1663
1701
  "media_not_ready",
1664
1702
  "media_failed",
1665
1703
  "media_unsupported",
@@ -1714,6 +1752,14 @@ var zPostVariant = z__namespace.union([
1714
1752
  "tiktok_media_pull_failed",
1715
1753
  "tiktok_server_error",
1716
1754
  "tiktok_publish_failed",
1755
+ "youtube_long_upload_not_allowed",
1756
+ "youtube_not_authorized",
1757
+ "youtube_daily_limit_reached",
1758
+ "youtube_upload_failed",
1759
+ "youtube_upload_unconfirmed",
1760
+ "youtube_video_rejected",
1761
+ "youtube_processing_failed",
1762
+ "youtube_thumbnail_failed",
1717
1763
  "post_publish_failed",
1718
1764
  "post_partially_published",
1719
1765
  "connection_platform_mismatch",
@@ -1829,6 +1875,8 @@ var zPostVariant = z__namespace.union([
1829
1875
  "tag_limit_exceeded",
1830
1876
  "reel_field_on_non_reel",
1831
1877
  "field_placement_invalid",
1878
+ "title_too_long",
1879
+ "characters_not_allowed",
1832
1880
  "media_not_ready",
1833
1881
  "media_failed",
1834
1882
  "media_unsupported",
@@ -1883,6 +1931,14 @@ var zPostVariant = z__namespace.union([
1883
1931
  "tiktok_media_pull_failed",
1884
1932
  "tiktok_server_error",
1885
1933
  "tiktok_publish_failed",
1934
+ "youtube_long_upload_not_allowed",
1935
+ "youtube_not_authorized",
1936
+ "youtube_daily_limit_reached",
1937
+ "youtube_upload_failed",
1938
+ "youtube_upload_unconfirmed",
1939
+ "youtube_video_rejected",
1940
+ "youtube_processing_failed",
1941
+ "youtube_thumbnail_failed",
1886
1942
  "post_publish_failed",
1887
1943
  "post_partially_published",
1888
1944
  "connection_platform_mismatch",
@@ -1999,6 +2055,8 @@ var zPostVariant = z__namespace.union([
1999
2055
  "tag_limit_exceeded",
2000
2056
  "reel_field_on_non_reel",
2001
2057
  "field_placement_invalid",
2058
+ "title_too_long",
2059
+ "characters_not_allowed",
2002
2060
  "media_not_ready",
2003
2061
  "media_failed",
2004
2062
  "media_unsupported",
@@ -2053,6 +2111,14 @@ var zPostVariant = z__namespace.union([
2053
2111
  "tiktok_media_pull_failed",
2054
2112
  "tiktok_server_error",
2055
2113
  "tiktok_publish_failed",
2114
+ "youtube_long_upload_not_allowed",
2115
+ "youtube_not_authorized",
2116
+ "youtube_daily_limit_reached",
2117
+ "youtube_upload_failed",
2118
+ "youtube_upload_unconfirmed",
2119
+ "youtube_video_rejected",
2120
+ "youtube_processing_failed",
2121
+ "youtube_thumbnail_failed",
2056
2122
  "post_publish_failed",
2057
2123
  "post_partially_published",
2058
2124
  "connection_platform_mismatch",
@@ -2173,6 +2239,8 @@ var zPostVariant = z__namespace.union([
2173
2239
  "tag_limit_exceeded",
2174
2240
  "reel_field_on_non_reel",
2175
2241
  "field_placement_invalid",
2242
+ "title_too_long",
2243
+ "characters_not_allowed",
2176
2244
  "media_not_ready",
2177
2245
  "media_failed",
2178
2246
  "media_unsupported",
@@ -2227,6 +2295,181 @@ var zPostVariant = z__namespace.union([
2227
2295
  "tiktok_media_pull_failed",
2228
2296
  "tiktok_server_error",
2229
2297
  "tiktok_publish_failed",
2298
+ "youtube_long_upload_not_allowed",
2299
+ "youtube_not_authorized",
2300
+ "youtube_daily_limit_reached",
2301
+ "youtube_upload_failed",
2302
+ "youtube_upload_unconfirmed",
2303
+ "youtube_video_rejected",
2304
+ "youtube_processing_failed",
2305
+ "youtube_thumbnail_failed",
2306
+ "post_publish_failed",
2307
+ "post_partially_published",
2308
+ "connection_platform_mismatch",
2309
+ "connection_removed",
2310
+ "publish_interrupted",
2311
+ "publish_outcome_unknown",
2312
+ "plan_limit_reached",
2313
+ "billing_required",
2314
+ "x_link_requires_paid_plan",
2315
+ "analytics_not_supported",
2316
+ "analytics_no_data"
2317
+ ]),
2318
+ message: z__namespace.string(),
2319
+ source: zErrorSource.optional(),
2320
+ display_error: z__namespace.string()
2321
+ }).nullable(),
2322
+ media: z__namespace.array(z__namespace.object({
2323
+ media_id: z__namespace.string(),
2324
+ position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
2325
+ alt_text_override: z__namespace.string().nullable(),
2326
+ media: zMedia
2327
+ }))
2328
+ }),
2329
+ z__namespace.object({
2330
+ platform: z__namespace.literal("youtube"),
2331
+ settings: zYouTubePostSettings,
2332
+ id: z__namespace.string(),
2333
+ object: z__namespace.literal("post_variant"),
2334
+ post_type: zPostType.nullable(),
2335
+ connection_id: z__namespace.string().nullable(),
2336
+ body: z__namespace.string().nullable(),
2337
+ status: zPostVariantStatus,
2338
+ schedule_at: z__namespace.string().nullable(),
2339
+ result: z__namespace.object({
2340
+ platform_post_id: z__namespace.string(),
2341
+ permalink: z__namespace.string().nullable(),
2342
+ published_at: z__namespace.string()
2343
+ }).nullable(),
2344
+ error: z__namespace.object({
2345
+ code: z__namespace.enum([
2346
+ "unauthorized",
2347
+ "forbidden",
2348
+ "not_found",
2349
+ "conflict",
2350
+ "validation_failed",
2351
+ "rate_limited",
2352
+ "internal_error",
2353
+ "idempotency_key_invalid",
2354
+ "idempotency_key_reused",
2355
+ "idempotency_request_in_progress",
2356
+ "account_not_available",
2357
+ "connection_reauth_required",
2358
+ "connection_not_pending",
2359
+ "not_implemented",
2360
+ "connection_discovery_failed",
2361
+ "tiktok_creator_info_unavailable",
2362
+ "tiktok_analytics_unavailable",
2363
+ "instagram_analytics_unavailable",
2364
+ "facebook_analytics_unavailable",
2365
+ "media_processing",
2366
+ "media_upload_init_failed",
2367
+ "media_upload_incomplete",
2368
+ "media_upload_invalid_parts",
2369
+ "not_publishable",
2370
+ "post_not_retryable",
2371
+ "invalid_connection",
2372
+ "invalid_media",
2373
+ "profile_scope_invalid",
2374
+ "media_unprobeable",
2375
+ "media_too_large",
2376
+ "media_aspect_ratio_unsupported",
2377
+ "media_resolution_too_low",
2378
+ "media_gif_unsupported",
2379
+ "media_format_recompressed",
2380
+ "media_resolution_downscaled",
2381
+ "video_container_unsupported",
2382
+ "video_codec_unsupported",
2383
+ "video_audio_codec_unsupported",
2384
+ "video_too_large",
2385
+ "video_too_small",
2386
+ "video_dimensions_unsupported",
2387
+ "video_dimensions_too_large",
2388
+ "video_fps_unsupported",
2389
+ "video_fps_too_low",
2390
+ "video_aspect_unsupported",
2391
+ "video_duration_too_short",
2392
+ "video_duration_exceeds_max",
2393
+ "video_transform_failed",
2394
+ "media_fetch_failed",
2395
+ "document_format_unsupported",
2396
+ "document_too_large",
2397
+ "document_too_many_pages",
2398
+ "media_format_indeterminate",
2399
+ "media_format_unsupported",
2400
+ "media_count_invalid",
2401
+ "body_too_long",
2402
+ "content_missing",
2403
+ "content_conflict",
2404
+ "content_incomplete",
2405
+ "media_type_mismatch",
2406
+ "tag_limit_exceeded",
2407
+ "reel_field_on_non_reel",
2408
+ "field_placement_invalid",
2409
+ "title_too_long",
2410
+ "characters_not_allowed",
2411
+ "media_not_ready",
2412
+ "media_failed",
2413
+ "media_unsupported",
2414
+ "media_kind_mismatch",
2415
+ "variant_unparseable",
2416
+ "publishing_unavailable",
2417
+ "x_duplicate_content",
2418
+ "x_not_authorized",
2419
+ "x_access_not_permitted",
2420
+ "x_rate_limited",
2421
+ "x_publish_failed",
2422
+ "x_media_upload_failed",
2423
+ "x_thread_incomplete",
2424
+ "linkedin_duplicate_content",
2425
+ "linkedin_auth_expired",
2426
+ "linkedin_permission_denied",
2427
+ "linkedin_rate_limited",
2428
+ "linkedin_media_processing",
2429
+ "linkedin_media_failed",
2430
+ "linkedin_media_upload_failed",
2431
+ "linkedin_publish_failed",
2432
+ "instagram_media_processing",
2433
+ "instagram_container_expired",
2434
+ "instagram_container_failed",
2435
+ "instagram_rate_limited",
2436
+ "instagram_daily_limit_reached",
2437
+ "instagram_aspect_ratio_unsupported",
2438
+ "instagram_media_unsupported",
2439
+ "instagram_not_authorized",
2440
+ "instagram_publish_failed",
2441
+ "instagram_comment_failed",
2442
+ "facebook_reel_processing",
2443
+ "facebook_reel_failed",
2444
+ "facebook_rate_limited",
2445
+ "facebook_duplicate_content",
2446
+ "facebook_temporarily_blocked",
2447
+ "facebook_not_authorized",
2448
+ "facebook_publish_failed",
2449
+ "facebook_comment_failed",
2450
+ "tiktok_privacy_not_allowed",
2451
+ "tiktok_interaction_not_allowed",
2452
+ "tiktok_thumbnail_offset_invalid",
2453
+ "tiktok_duration_exceeds_max",
2454
+ "tiktok_media_processing",
2455
+ "tiktok_not_authorized",
2456
+ "tiktok_rate_limited",
2457
+ "tiktok_spam_risk",
2458
+ "tiktok_file_format_invalid",
2459
+ "tiktok_duration_invalid",
2460
+ "tiktok_frame_rate_invalid",
2461
+ "tiktok_resolution_invalid",
2462
+ "tiktok_media_pull_failed",
2463
+ "tiktok_server_error",
2464
+ "tiktok_publish_failed",
2465
+ "youtube_long_upload_not_allowed",
2466
+ "youtube_not_authorized",
2467
+ "youtube_daily_limit_reached",
2468
+ "youtube_upload_failed",
2469
+ "youtube_upload_unconfirmed",
2470
+ "youtube_video_rejected",
2471
+ "youtube_processing_failed",
2472
+ "youtube_thumbnail_failed",
2230
2473
  "post_publish_failed",
2231
2474
  "post_partially_published",
2232
2475
  "connection_platform_mismatch",
@@ -2460,6 +2703,16 @@ var zPostVariantInput = z__namespace.union([
2460
2703
  media_id: z__namespace.string(),
2461
2704
  alt_text_override: z__namespace.string().nullish()
2462
2705
  })).optional().default([])
2706
+ }),
2707
+ z__namespace.object({
2708
+ platform: z__namespace.literal("youtube"),
2709
+ settings: zYouTubePostSettings.optional().default({}),
2710
+ connection_id: z__namespace.string(),
2711
+ body: z__namespace.string().optional(),
2712
+ media: z__namespace.array(z__namespace.object({
2713
+ media_id: z__namespace.string(),
2714
+ alt_text_override: z__namespace.string().nullish()
2715
+ })).optional().default([])
2463
2716
  })
2464
2717
  ]);
2465
2718
  z__namespace.object({
@@ -2591,7 +2844,8 @@ z__namespace.object({
2591
2844
  "linkedin",
2592
2845
  "facebook_page",
2593
2846
  "instagram",
2594
- "tiktok"
2847
+ "tiktok",
2848
+ "youtube"
2595
2849
  ])
2596
2850
  });
2597
2851
  z__namespace.object({
@@ -2994,6 +3248,8 @@ z__namespace.object({
2994
3248
  "tag_limit_exceeded",
2995
3249
  "reel_field_on_non_reel",
2996
3250
  "field_placement_invalid",
3251
+ "title_too_long",
3252
+ "characters_not_allowed",
2997
3253
  "media_not_ready",
2998
3254
  "media_failed",
2999
3255
  "media_unsupported",
@@ -3048,6 +3304,14 @@ z__namespace.object({
3048
3304
  "tiktok_media_pull_failed",
3049
3305
  "tiktok_server_error",
3050
3306
  "tiktok_publish_failed",
3307
+ "youtube_long_upload_not_allowed",
3308
+ "youtube_not_authorized",
3309
+ "youtube_daily_limit_reached",
3310
+ "youtube_upload_failed",
3311
+ "youtube_upload_unconfirmed",
3312
+ "youtube_video_rejected",
3313
+ "youtube_processing_failed",
3314
+ "youtube_thumbnail_failed",
3051
3315
  "post_publish_failed",
3052
3316
  "post_partially_published",
3053
3317
  "connection_platform_mismatch",
@@ -3090,7 +3354,8 @@ z__namespace.object({
3090
3354
  "linkedin",
3091
3355
  "facebook_page",
3092
3356
  "instagram",
3093
- "tiktok"
3357
+ "tiktok",
3358
+ "youtube"
3094
3359
  ]).optional(),
3095
3360
  status: z__namespace.enum([
3096
3361
  "pending",
@@ -3132,7 +3397,8 @@ z__namespace.object({
3132
3397
  "linkedin",
3133
3398
  "facebook_page",
3134
3399
  "instagram",
3135
- "tiktok"
3400
+ "tiktok",
3401
+ "youtube"
3136
3402
  ]).nullable(),
3137
3403
  request_method: z__namespace.string().nullable(),
3138
3404
  request_path: z__namespace.string().nullable(),
@@ -3203,6 +3469,8 @@ z__namespace.object({
3203
3469
  "tag_limit_exceeded",
3204
3470
  "reel_field_on_non_reel",
3205
3471
  "field_placement_invalid",
3472
+ "title_too_long",
3473
+ "characters_not_allowed",
3206
3474
  "media_not_ready",
3207
3475
  "media_failed",
3208
3476
  "media_unsupported",
@@ -3257,6 +3525,14 @@ z__namespace.object({
3257
3525
  "tiktok_media_pull_failed",
3258
3526
  "tiktok_server_error",
3259
3527
  "tiktok_publish_failed",
3528
+ "youtube_long_upload_not_allowed",
3529
+ "youtube_not_authorized",
3530
+ "youtube_daily_limit_reached",
3531
+ "youtube_upload_failed",
3532
+ "youtube_upload_unconfirmed",
3533
+ "youtube_video_rejected",
3534
+ "youtube_processing_failed",
3535
+ "youtube_thumbnail_failed",
3260
3536
  "post_publish_failed",
3261
3537
  "post_partially_published",
3262
3538
  "connection_platform_mismatch",
@@ -3288,7 +3564,8 @@ z__namespace.object({
3288
3564
  "linkedin",
3289
3565
  "facebook_page",
3290
3566
  "instagram",
3291
- "tiktok"
3567
+ "tiktok",
3568
+ "youtube"
3292
3569
  ]),
3293
3570
  status: z__namespace.enum([
3294
3571
  "draft",
@@ -3365,6 +3642,8 @@ z__namespace.object({
3365
3642
  "tag_limit_exceeded",
3366
3643
  "reel_field_on_non_reel",
3367
3644
  "field_placement_invalid",
3645
+ "title_too_long",
3646
+ "characters_not_allowed",
3368
3647
  "media_not_ready",
3369
3648
  "media_failed",
3370
3649
  "media_unsupported",
@@ -3419,6 +3698,14 @@ z__namespace.object({
3419
3698
  "tiktok_media_pull_failed",
3420
3699
  "tiktok_server_error",
3421
3700
  "tiktok_publish_failed",
3701
+ "youtube_long_upload_not_allowed",
3702
+ "youtube_not_authorized",
3703
+ "youtube_daily_limit_reached",
3704
+ "youtube_upload_failed",
3705
+ "youtube_upload_unconfirmed",
3706
+ "youtube_video_rejected",
3707
+ "youtube_processing_failed",
3708
+ "youtube_thumbnail_failed",
3422
3709
  "post_publish_failed",
3423
3710
  "post_partially_published",
3424
3711
  "connection_platform_mismatch",
@@ -3500,6 +3787,8 @@ z__namespace.object({
3500
3787
  "tag_limit_exceeded",
3501
3788
  "reel_field_on_non_reel",
3502
3789
  "field_placement_invalid",
3790
+ "title_too_long",
3791
+ "characters_not_allowed",
3503
3792
  "media_not_ready",
3504
3793
  "media_failed",
3505
3794
  "media_unsupported",
@@ -3554,6 +3843,14 @@ z__namespace.object({
3554
3843
  "tiktok_media_pull_failed",
3555
3844
  "tiktok_server_error",
3556
3845
  "tiktok_publish_failed",
3846
+ "youtube_long_upload_not_allowed",
3847
+ "youtube_not_authorized",
3848
+ "youtube_daily_limit_reached",
3849
+ "youtube_upload_failed",
3850
+ "youtube_upload_unconfirmed",
3851
+ "youtube_video_rejected",
3852
+ "youtube_processing_failed",
3853
+ "youtube_thumbnail_failed",
3557
3854
  "post_publish_failed",
3558
3855
  "post_partially_published",
3559
3856
  "connection_platform_mismatch",
@@ -3613,7 +3910,8 @@ z__namespace.object({
3613
3910
  "linkedin",
3614
3911
  "facebook_page",
3615
3912
  "instagram",
3616
- "tiktok"
3913
+ "tiktok",
3914
+ "youtube"
3617
3915
  ]).nullable(),
3618
3916
  request_method: z__namespace.string().nullable(),
3619
3917
  request_path: z__namespace.string().nullable(),
@@ -3684,6 +3982,8 @@ z__namespace.object({
3684
3982
  "tag_limit_exceeded",
3685
3983
  "reel_field_on_non_reel",
3686
3984
  "field_placement_invalid",
3985
+ "title_too_long",
3986
+ "characters_not_allowed",
3687
3987
  "media_not_ready",
3688
3988
  "media_failed",
3689
3989
  "media_unsupported",
@@ -3738,6 +4038,14 @@ z__namespace.object({
3738
4038
  "tiktok_media_pull_failed",
3739
4039
  "tiktok_server_error",
3740
4040
  "tiktok_publish_failed",
4041
+ "youtube_long_upload_not_allowed",
4042
+ "youtube_not_authorized",
4043
+ "youtube_daily_limit_reached",
4044
+ "youtube_upload_failed",
4045
+ "youtube_upload_unconfirmed",
4046
+ "youtube_video_rejected",
4047
+ "youtube_processing_failed",
4048
+ "youtube_thumbnail_failed",
3741
4049
  "post_publish_failed",
3742
4050
  "post_partially_published",
3743
4051
  "connection_platform_mismatch",
@@ -3769,7 +4077,8 @@ z__namespace.object({
3769
4077
  "linkedin",
3770
4078
  "facebook_page",
3771
4079
  "instagram",
3772
- "tiktok"
4080
+ "tiktok",
4081
+ "youtube"
3773
4082
  ]),
3774
4083
  status: z__namespace.enum([
3775
4084
  "draft",
@@ -3846,6 +4155,8 @@ z__namespace.object({
3846
4155
  "tag_limit_exceeded",
3847
4156
  "reel_field_on_non_reel",
3848
4157
  "field_placement_invalid",
4158
+ "title_too_long",
4159
+ "characters_not_allowed",
3849
4160
  "media_not_ready",
3850
4161
  "media_failed",
3851
4162
  "media_unsupported",
@@ -3900,6 +4211,14 @@ z__namespace.object({
3900
4211
  "tiktok_media_pull_failed",
3901
4212
  "tiktok_server_error",
3902
4213
  "tiktok_publish_failed",
4214
+ "youtube_long_upload_not_allowed",
4215
+ "youtube_not_authorized",
4216
+ "youtube_daily_limit_reached",
4217
+ "youtube_upload_failed",
4218
+ "youtube_upload_unconfirmed",
4219
+ "youtube_video_rejected",
4220
+ "youtube_processing_failed",
4221
+ "youtube_thumbnail_failed",
3903
4222
  "post_publish_failed",
3904
4223
  "post_partially_published",
3905
4224
  "connection_platform_mismatch",
@@ -3981,6 +4300,8 @@ z__namespace.object({
3981
4300
  "tag_limit_exceeded",
3982
4301
  "reel_field_on_non_reel",
3983
4302
  "field_placement_invalid",
4303
+ "title_too_long",
4304
+ "characters_not_allowed",
3984
4305
  "media_not_ready",
3985
4306
  "media_failed",
3986
4307
  "media_unsupported",
@@ -4035,6 +4356,14 @@ z__namespace.object({
4035
4356
  "tiktok_media_pull_failed",
4036
4357
  "tiktok_server_error",
4037
4358
  "tiktok_publish_failed",
4359
+ "youtube_long_upload_not_allowed",
4360
+ "youtube_not_authorized",
4361
+ "youtube_daily_limit_reached",
4362
+ "youtube_upload_failed",
4363
+ "youtube_upload_unconfirmed",
4364
+ "youtube_video_rejected",
4365
+ "youtube_processing_failed",
4366
+ "youtube_thumbnail_failed",
4038
4367
  "post_publish_failed",
4039
4368
  "post_partially_published",
4040
4369
  "connection_platform_mismatch",
@@ -5465,12 +5794,22 @@ var tiktokHandler = {
5465
5794
  settings
5466
5795
  })
5467
5796
  };
5797
+ var youtubeHandler = {
5798
+ buildVariant: ({ settings, connectionId, body, media }) => ({
5799
+ platform: "youtube",
5800
+ connection_id: connectionId,
5801
+ body,
5802
+ media: [...media],
5803
+ settings
5804
+ })
5805
+ };
5468
5806
  var PLATFORM_HANDLERS = {
5469
5807
  x: xHandler,
5470
5808
  linkedin: linkedInHandler,
5471
5809
  facebook_page: facebookHandler,
5472
5810
  instagram: instagramHandler,
5473
- tiktok: tiktokHandler
5811
+ tiktok: tiktokHandler,
5812
+ youtube: youtubeHandler
5474
5813
  };
5475
5814
  function isPostPlatform(value) {
5476
5815
  return Object.prototype.hasOwnProperty.call(PLATFORM_HANDLERS, value);