@postrun/js 0.1.0 → 1.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.
@@ -12,13 +12,15 @@ var zErrorCode = z.enum([
12
12
  "idempotency_key_invalid",
13
13
  "idempotency_key_reused",
14
14
  "idempotency_request_in_progress",
15
- "source_url_unsupported",
16
15
  "account_not_available",
17
16
  "connection_reauth_required",
18
17
  "connection_not_pending",
18
+ "connection_in_use",
19
19
  "not_implemented",
20
+ "connection_discovery_failed",
20
21
  "media_processing",
21
22
  "not_publishable",
23
+ "profile_scope_invalid",
22
24
  "media_unprobeable",
23
25
  "media_too_large",
24
26
  "media_aspect_ratio_unsupported",
@@ -38,9 +40,12 @@ var zErrorCode = z.enum([
38
40
  "video_aspect_unsupported",
39
41
  "video_duration_too_short",
40
42
  "video_duration_exceeds_max",
43
+ "video_transform_failed",
44
+ "media_fetch_failed",
41
45
  "document_format_unsupported",
42
46
  "document_too_large",
43
47
  "document_too_many_pages",
48
+ "media_format_indeterminate",
44
49
  "media_count_invalid",
45
50
  "body_too_long",
46
51
  "content_missing",
@@ -50,6 +55,7 @@ var zErrorCode = z.enum([
50
55
  "media_type_mismatch",
51
56
  "tag_limit_exceeded",
52
57
  "reel_field_on_non_reel",
58
+ "field_placement_invalid",
53
59
  "media_not_ready",
54
60
  "media_failed",
55
61
  "media_unsupported",
@@ -77,6 +83,12 @@ var zErrorCode = z.enum([
77
83
  "facebook_rate_limited",
78
84
  "facebook_not_authorized",
79
85
  "facebook_publish_failed",
86
+ "tiktok_privacy_not_allowed",
87
+ "tiktok_duration_exceeds_max",
88
+ "tiktok_media_processing",
89
+ "tiktok_not_authorized",
90
+ "tiktok_rate_limited",
91
+ "tiktok_publish_failed",
80
92
  "connection_platform_mismatch"
81
93
  ]);
82
94
  var zProfilesListQuery = z.object({
@@ -187,7 +199,14 @@ var zConnectionsListByProfilePath = z.object({
187
199
  });
188
200
  var zConnectionsListByProfileQuery = z.object({
189
201
  limit: z.int().gte(1).lte(100).optional().default(20),
190
- offset: z.int().gte(0).lte(9007199254740991).optional().default(0)
202
+ offset: z.int().gte(0).lte(9007199254740991).optional().default(0),
203
+ nango_connection_id: z.string().min(1).optional(),
204
+ kind: z.enum(["posting", "ads"]).optional(),
205
+ status: z.enum([
206
+ "pending",
207
+ "active",
208
+ "needs_reauth"
209
+ ]).optional()
191
210
  });
192
211
  var zConnectionsListByProfileResponse = z.object({
193
212
  object: z.literal("list"),
@@ -204,8 +223,18 @@ var zConnectionsListByProfileResponse = z.object({
204
223
  "instagram",
205
224
  "tiktok"
206
225
  ]),
226
+ kind: z.enum(["posting", "ads"]),
227
+ status: z.enum([
228
+ "pending",
229
+ "active",
230
+ "needs_reauth"
231
+ ]),
207
232
  external_account_id: z.string().nullable(),
208
233
  external_account_name: z.string().nullable(),
234
+ username: z.string().nullable(),
235
+ avatar_url: z.string().nullable(),
236
+ profile_url: z.string().nullable(),
237
+ reauth_at: z.string().nullable(),
209
238
  currency: z.string().nullable(),
210
239
  created_at: z.string().nullable(),
211
240
  updated_at: z.string().nullable()
@@ -239,8 +268,18 @@ var zConnectionsGetResponse = z.object({
239
268
  "instagram",
240
269
  "tiktok"
241
270
  ]),
271
+ kind: z.enum(["posting", "ads"]),
272
+ status: z.enum([
273
+ "pending",
274
+ "active",
275
+ "needs_reauth"
276
+ ]),
242
277
  external_account_id: z.string().nullable(),
243
278
  external_account_name: z.string().nullable(),
279
+ username: z.string().nullable(),
280
+ avatar_url: z.string().nullable(),
281
+ profile_url: z.string().nullable(),
282
+ reauth_at: z.string().nullable(),
244
283
  currency: z.string().nullable(),
245
284
  created_at: z.string().nullable(),
246
285
  updated_at: z.string().nullable()
@@ -264,8 +303,18 @@ var zConnectionsSelectResponse = z.object({
264
303
  "instagram",
265
304
  "tiktok"
266
305
  ]),
306
+ kind: z.enum(["posting", "ads"]),
307
+ status: z.enum([
308
+ "pending",
309
+ "active",
310
+ "needs_reauth"
311
+ ]),
267
312
  external_account_id: z.string().nullable(),
268
313
  external_account_name: z.string().nullable(),
314
+ username: z.string().nullable(),
315
+ avatar_url: z.string().nullable(),
316
+ profile_url: z.string().nullable(),
317
+ reauth_at: z.string().nullable(),
269
318
  currency: z.string().nullable(),
270
319
  created_at: z.string().nullable(),
271
320
  updated_at: z.string().nullable()
@@ -279,9 +328,15 @@ var zConnectionsListAccountsResponse = z.object({
279
328
  external_account_id: z.string(),
280
329
  name: z.string().nullable(),
281
330
  currency: z.string().nullable(),
331
+ username: z.string().nullish(),
332
+ avatar_url: z.string().nullish(),
333
+ profile_url: z.string().nullish(),
282
334
  instagram: z.object({
283
335
  external_account_id: z.string(),
284
- name: z.string().nullable()
336
+ name: z.string().nullable(),
337
+ username: z.string().nullish(),
338
+ avatar_url: z.string().nullish(),
339
+ profile_url: z.string().nullish()
285
340
  }).nullish()
286
341
  }))
287
342
  });
@@ -289,7 +344,6 @@ var zConnectionsConnectBody = z.object({
289
344
  platform: z.enum([
290
345
  "meta_ads",
291
346
  "google_ads",
292
- "tiktok_ads",
293
347
  "x",
294
348
  "linkedin",
295
349
  "facebook_page",
@@ -300,10 +354,200 @@ var zConnectionsConnectPath = z.object({
300
354
  id: z.string()
301
355
  });
302
356
  var zConnectionsConnectResponse = z.object({
357
+ hosted_connect_url: z.string(),
358
+ connect_token: z.string(),
303
359
  connect_session_token: z.string(),
304
- connect_url: z.string(),
360
+ provider_config_key: z.string(),
361
+ nango_host: z.string(),
305
362
  expires_at: z.string()
306
363
  });
364
+ var zMediaListQuery = z.object({
365
+ limit: z.int().gte(1).lte(100).optional().default(20),
366
+ offset: z.int().gte(0).lte(9007199254740991).optional().default(0),
367
+ profile_id: z.string().optional(),
368
+ status: z.enum([
369
+ "uploading",
370
+ "processing",
371
+ "ready",
372
+ "failed"
373
+ ]).optional(),
374
+ kind: z.enum([
375
+ "image",
376
+ "video",
377
+ "gif",
378
+ "document"
379
+ ]).optional(),
380
+ external_id: z.string().optional(),
381
+ metadata: z.record(z.string(), z.union([
382
+ z.string().max(500),
383
+ z.number(),
384
+ z.boolean()
385
+ ])).optional()
386
+ });
387
+ var zMediaListResponse = z.object({
388
+ object: z.literal("list"),
389
+ data: z.array(z.object({
390
+ id: z.string(),
391
+ object: z.literal("media"),
392
+ profile_id: z.string(),
393
+ kind: z.enum([
394
+ "image",
395
+ "video",
396
+ "gif",
397
+ "document"
398
+ ]).nullable(),
399
+ content_type: z.string().nullable(),
400
+ status: z.enum([
401
+ "uploading",
402
+ "processing",
403
+ "ready",
404
+ "failed"
405
+ ]),
406
+ progress: z.object({
407
+ stage: z.enum([
408
+ "queued",
409
+ "analyzing",
410
+ "transcoding",
411
+ "done"
412
+ ]),
413
+ percent: z.int().gte(0).lte(100)
414
+ }),
415
+ raw: z.boolean(),
416
+ error: z.object({
417
+ code: z.enum([
418
+ "media_unprobeable",
419
+ "media_format_indeterminate",
420
+ "media_too_large",
421
+ "media_aspect_ratio_unsupported",
422
+ "media_resolution_too_low",
423
+ "media_gif_unsupported",
424
+ "media_format_recompressed",
425
+ "media_resolution_downscaled",
426
+ "video_container_unsupported",
427
+ "video_codec_unsupported",
428
+ "video_audio_codec_unsupported",
429
+ "video_too_large",
430
+ "video_too_small",
431
+ "video_dimensions_unsupported",
432
+ "video_dimensions_too_large",
433
+ "video_fps_unsupported",
434
+ "video_fps_too_low",
435
+ "video_aspect_unsupported",
436
+ "video_duration_too_short",
437
+ "video_duration_exceeds_max",
438
+ "video_transform_failed",
439
+ "media_fetch_failed",
440
+ "document_format_unsupported",
441
+ "document_too_large",
442
+ "document_too_many_pages",
443
+ "media_unsupported"
444
+ ]),
445
+ message: z.string(),
446
+ hint: z.string().optional(),
447
+ allowed: z.array(z.string()).optional(),
448
+ got: z.string().optional()
449
+ }).nullable(),
450
+ source: z.object({
451
+ format: z.string(),
452
+ bytes: z.int().gte(0).lte(9007199254740991),
453
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
454
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
455
+ duration_ms: z.int().gte(0).lte(9007199254740991).nullable()
456
+ }).nullable(),
457
+ alt_text: z.string().max(1e3).nullable(),
458
+ per_platform: z.record(z.string(), z.object({
459
+ status: z.enum([
460
+ "processing",
461
+ "ready",
462
+ "failed"
463
+ ]),
464
+ url: z.string().nullable(),
465
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
466
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
467
+ bytes: z.int().gte(0).lte(9007199254740991).nullable(),
468
+ warnings: z.array(z.object({
469
+ code: z.enum([
470
+ "media_unprobeable",
471
+ "media_format_indeterminate",
472
+ "media_too_large",
473
+ "media_aspect_ratio_unsupported",
474
+ "media_resolution_too_low",
475
+ "media_gif_unsupported",
476
+ "media_format_recompressed",
477
+ "media_resolution_downscaled",
478
+ "video_container_unsupported",
479
+ "video_codec_unsupported",
480
+ "video_audio_codec_unsupported",
481
+ "video_too_large",
482
+ "video_too_small",
483
+ "video_dimensions_unsupported",
484
+ "video_dimensions_too_large",
485
+ "video_fps_unsupported",
486
+ "video_fps_too_low",
487
+ "video_aspect_unsupported",
488
+ "video_duration_too_short",
489
+ "video_duration_exceeds_max",
490
+ "video_transform_failed",
491
+ "media_fetch_failed",
492
+ "document_format_unsupported",
493
+ "document_too_large",
494
+ "document_too_many_pages",
495
+ "media_unsupported"
496
+ ]),
497
+ message: z.string(),
498
+ hint: z.string().optional(),
499
+ allowed: z.array(z.string()).optional(),
500
+ got: z.string().optional()
501
+ })),
502
+ errors: z.array(z.object({
503
+ code: z.enum([
504
+ "media_unprobeable",
505
+ "media_format_indeterminate",
506
+ "media_too_large",
507
+ "media_aspect_ratio_unsupported",
508
+ "media_resolution_too_low",
509
+ "media_gif_unsupported",
510
+ "media_format_recompressed",
511
+ "media_resolution_downscaled",
512
+ "video_container_unsupported",
513
+ "video_codec_unsupported",
514
+ "video_audio_codec_unsupported",
515
+ "video_too_large",
516
+ "video_too_small",
517
+ "video_dimensions_unsupported",
518
+ "video_dimensions_too_large",
519
+ "video_fps_unsupported",
520
+ "video_fps_too_low",
521
+ "video_aspect_unsupported",
522
+ "video_duration_too_short",
523
+ "video_duration_exceeds_max",
524
+ "video_transform_failed",
525
+ "media_fetch_failed",
526
+ "document_format_unsupported",
527
+ "document_too_large",
528
+ "document_too_many_pages",
529
+ "media_unsupported"
530
+ ]),
531
+ message: z.string(),
532
+ hint: z.string().optional(),
533
+ allowed: z.array(z.string()).optional(),
534
+ got: z.string().optional()
535
+ }))
536
+ })),
537
+ external_id: z.string().nullable(),
538
+ metadata: z.record(z.string(), z.union([
539
+ z.string().max(500),
540
+ z.number(),
541
+ z.boolean()
542
+ ])),
543
+ created_at: z.string(),
544
+ updated_at: z.string()
545
+ })),
546
+ total: z.int().gte(-9007199254740991).lte(9007199254740991),
547
+ limit: z.int().gte(-9007199254740991).lte(9007199254740991),
548
+ offset: z.int().gte(-9007199254740991).lte(9007199254740991),
549
+ has_more: z.boolean()
550
+ });
307
551
  var zMediaCreateBody = z.object({
308
552
  profile_id: z.string(),
309
553
  kind: z.enum([
@@ -311,7 +555,7 @@ var zMediaCreateBody = z.object({
311
555
  "video",
312
556
  "gif",
313
557
  "document"
314
- ]),
558
+ ]).optional(),
315
559
  content_type: z.string().min(1).regex(/^(?:(?:image|video)\/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]*|application\/pdf|application\/msword|application\/vnd\.openxmlformats-officedocument\.wordprocessingml\.document|application\/vnd\.ms-powerpoint|application\/vnd\.openxmlformats-officedocument\.presentationml\.presentation)$/).optional(),
316
560
  source_url: z.url().optional(),
317
561
  targets: z.array(z.enum([
@@ -340,17 +584,28 @@ var zMediaCreateResponse = z.object({
340
584
  "video",
341
585
  "gif",
342
586
  "document"
343
- ]),
587
+ ]).nullable(),
588
+ content_type: z.string().nullable(),
344
589
  status: z.enum([
345
590
  "uploading",
346
591
  "processing",
347
592
  "ready",
348
593
  "failed"
349
594
  ]),
595
+ progress: z.object({
596
+ stage: z.enum([
597
+ "queued",
598
+ "analyzing",
599
+ "transcoding",
600
+ "done"
601
+ ]),
602
+ percent: z.int().gte(0).lte(100)
603
+ }),
350
604
  raw: z.boolean(),
351
605
  error: z.object({
352
606
  code: z.enum([
353
607
  "media_unprobeable",
608
+ "media_format_indeterminate",
354
609
  "media_too_large",
355
610
  "media_aspect_ratio_unsupported",
356
611
  "media_resolution_too_low",
@@ -369,6 +624,8 @@ var zMediaCreateResponse = z.object({
369
624
  "video_aspect_unsupported",
370
625
  "video_duration_too_short",
371
626
  "video_duration_exceeds_max",
627
+ "video_transform_failed",
628
+ "media_fetch_failed",
372
629
  "document_format_unsupported",
373
630
  "document_too_large",
374
631
  "document_too_many_pages",
@@ -400,6 +657,7 @@ var zMediaCreateResponse = z.object({
400
657
  warnings: z.array(z.object({
401
658
  code: z.enum([
402
659
  "media_unprobeable",
660
+ "media_format_indeterminate",
403
661
  "media_too_large",
404
662
  "media_aspect_ratio_unsupported",
405
663
  "media_resolution_too_low",
@@ -418,6 +676,8 @@ var zMediaCreateResponse = z.object({
418
676
  "video_aspect_unsupported",
419
677
  "video_duration_too_short",
420
678
  "video_duration_exceeds_max",
679
+ "video_transform_failed",
680
+ "media_fetch_failed",
421
681
  "document_format_unsupported",
422
682
  "document_too_large",
423
683
  "document_too_many_pages",
@@ -431,6 +691,7 @@ var zMediaCreateResponse = z.object({
431
691
  errors: z.array(z.object({
432
692
  code: z.enum([
433
693
  "media_unprobeable",
694
+ "media_format_indeterminate",
434
695
  "media_too_large",
435
696
  "media_aspect_ratio_unsupported",
436
697
  "media_resolution_too_low",
@@ -449,6 +710,8 @@ var zMediaCreateResponse = z.object({
449
710
  "video_aspect_unsupported",
450
711
  "video_duration_too_short",
451
712
  "video_duration_exceeds_max",
713
+ "video_transform_failed",
714
+ "media_fetch_failed",
452
715
  "document_format_unsupported",
453
716
  "document_too_large",
454
717
  "document_too_many_pages",
@@ -495,17 +758,28 @@ var zMediaGetResponse = z.object({
495
758
  "video",
496
759
  "gif",
497
760
  "document"
498
- ]),
761
+ ]).nullable(),
762
+ content_type: z.string().nullable(),
499
763
  status: z.enum([
500
764
  "uploading",
501
765
  "processing",
502
766
  "ready",
503
767
  "failed"
504
768
  ]),
769
+ progress: z.object({
770
+ stage: z.enum([
771
+ "queued",
772
+ "analyzing",
773
+ "transcoding",
774
+ "done"
775
+ ]),
776
+ percent: z.int().gte(0).lte(100)
777
+ }),
505
778
  raw: z.boolean(),
506
779
  error: z.object({
507
780
  code: z.enum([
508
781
  "media_unprobeable",
782
+ "media_format_indeterminate",
509
783
  "media_too_large",
510
784
  "media_aspect_ratio_unsupported",
511
785
  "media_resolution_too_low",
@@ -524,6 +798,8 @@ var zMediaGetResponse = z.object({
524
798
  "video_aspect_unsupported",
525
799
  "video_duration_too_short",
526
800
  "video_duration_exceeds_max",
801
+ "video_transform_failed",
802
+ "media_fetch_failed",
527
803
  "document_format_unsupported",
528
804
  "document_too_large",
529
805
  "document_too_many_pages",
@@ -555,6 +831,7 @@ var zMediaGetResponse = z.object({
555
831
  warnings: z.array(z.object({
556
832
  code: z.enum([
557
833
  "media_unprobeable",
834
+ "media_format_indeterminate",
558
835
  "media_too_large",
559
836
  "media_aspect_ratio_unsupported",
560
837
  "media_resolution_too_low",
@@ -573,6 +850,8 @@ var zMediaGetResponse = z.object({
573
850
  "video_aspect_unsupported",
574
851
  "video_duration_too_short",
575
852
  "video_duration_exceeds_max",
853
+ "video_transform_failed",
854
+ "media_fetch_failed",
576
855
  "document_format_unsupported",
577
856
  "document_too_large",
578
857
  "document_too_many_pages",
@@ -586,6 +865,7 @@ var zMediaGetResponse = z.object({
586
865
  errors: z.array(z.object({
587
866
  code: z.enum([
588
867
  "media_unprobeable",
868
+ "media_format_indeterminate",
589
869
  "media_too_large",
590
870
  "media_aspect_ratio_unsupported",
591
871
  "media_resolution_too_low",
@@ -604,6 +884,8 @@ var zMediaGetResponse = z.object({
604
884
  "video_aspect_unsupported",
605
885
  "video_duration_too_short",
606
886
  "video_duration_exceeds_max",
887
+ "video_transform_failed",
888
+ "media_fetch_failed",
607
889
  "document_format_unsupported",
608
890
  "document_too_large",
609
891
  "document_too_many_pages",
@@ -653,17 +935,28 @@ var zMediaUpdateResponse = z.object({
653
935
  "video",
654
936
  "gif",
655
937
  "document"
656
- ]),
938
+ ]).nullable(),
939
+ content_type: z.string().nullable(),
657
940
  status: z.enum([
658
941
  "uploading",
659
942
  "processing",
660
943
  "ready",
661
944
  "failed"
662
945
  ]),
946
+ progress: z.object({
947
+ stage: z.enum([
948
+ "queued",
949
+ "analyzing",
950
+ "transcoding",
951
+ "done"
952
+ ]),
953
+ percent: z.int().gte(0).lte(100)
954
+ }),
663
955
  raw: z.boolean(),
664
956
  error: z.object({
665
957
  code: z.enum([
666
958
  "media_unprobeable",
959
+ "media_format_indeterminate",
667
960
  "media_too_large",
668
961
  "media_aspect_ratio_unsupported",
669
962
  "media_resolution_too_low",
@@ -682,6 +975,8 @@ var zMediaUpdateResponse = z.object({
682
975
  "video_aspect_unsupported",
683
976
  "video_duration_too_short",
684
977
  "video_duration_exceeds_max",
978
+ "video_transform_failed",
979
+ "media_fetch_failed",
685
980
  "document_format_unsupported",
686
981
  "document_too_large",
687
982
  "document_too_many_pages",
@@ -713,6 +1008,7 @@ var zMediaUpdateResponse = z.object({
713
1008
  warnings: z.array(z.object({
714
1009
  code: z.enum([
715
1010
  "media_unprobeable",
1011
+ "media_format_indeterminate",
716
1012
  "media_too_large",
717
1013
  "media_aspect_ratio_unsupported",
718
1014
  "media_resolution_too_low",
@@ -731,6 +1027,8 @@ var zMediaUpdateResponse = z.object({
731
1027
  "video_aspect_unsupported",
732
1028
  "video_duration_too_short",
733
1029
  "video_duration_exceeds_max",
1030
+ "video_transform_failed",
1031
+ "media_fetch_failed",
734
1032
  "document_format_unsupported",
735
1033
  "document_too_large",
736
1034
  "document_too_many_pages",
@@ -744,6 +1042,7 @@ var zMediaUpdateResponse = z.object({
744
1042
  errors: z.array(z.object({
745
1043
  code: z.enum([
746
1044
  "media_unprobeable",
1045
+ "media_format_indeterminate",
747
1046
  "media_too_large",
748
1047
  "media_aspect_ratio_unsupported",
749
1048
  "media_resolution_too_low",
@@ -762,6 +1061,8 @@ var zMediaUpdateResponse = z.object({
762
1061
  "video_aspect_unsupported",
763
1062
  "video_duration_too_short",
764
1063
  "video_duration_exceeds_max",
1064
+ "video_transform_failed",
1065
+ "media_fetch_failed",
765
1066
  "document_format_unsupported",
766
1067
  "document_too_large",
767
1068
  "document_too_many_pages",
@@ -1050,6 +1351,38 @@ var zPostsCreateBody = z.object({
1050
1351
  settings: z.object({
1051
1352
  link: z.url().optional()
1052
1353
  }).optional().default({})
1354
+ }),
1355
+ z.object({
1356
+ platform: z.literal("tiktok"),
1357
+ post_type: z.enum([
1358
+ "video",
1359
+ "single_image",
1360
+ "carousel"
1361
+ ]),
1362
+ connection_id: z.string(),
1363
+ body: z.string().optional(),
1364
+ media: z.array(z.object({
1365
+ media_id: z.string(),
1366
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1367
+ alt_text_override: z.string().nullish()
1368
+ })).optional().default([]),
1369
+ settings: z.object({
1370
+ privacy_level: z.enum([
1371
+ "PUBLIC_TO_EVERYONE",
1372
+ "MUTUAL_FOLLOW_FRIENDS",
1373
+ "FOLLOWER_OF_CREATOR",
1374
+ "SELF_ONLY"
1375
+ ]).optional(),
1376
+ disable_comment: z.boolean().optional(),
1377
+ disable_duet: z.boolean().optional(),
1378
+ disable_stitch: z.boolean().optional(),
1379
+ video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
1380
+ photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
1381
+ auto_add_music: z.boolean().optional(),
1382
+ brand_content_toggle: z.boolean().optional(),
1383
+ brand_organic_toggle: z.boolean().optional(),
1384
+ is_aigc: z.boolean().optional()
1385
+ }).optional().default({})
1053
1386
  })
1054
1387
  ])).min(1)
1055
1388
  });
@@ -1373,6 +1706,38 @@ var zPostsUpdateBody = z.object({
1373
1706
  settings: z.object({
1374
1707
  link: z.url().optional()
1375
1708
  }).optional().default({})
1709
+ }),
1710
+ z.object({
1711
+ platform: z.literal("tiktok"),
1712
+ post_type: z.enum([
1713
+ "video",
1714
+ "single_image",
1715
+ "carousel"
1716
+ ]),
1717
+ connection_id: z.string(),
1718
+ body: z.string().optional(),
1719
+ media: z.array(z.object({
1720
+ media_id: z.string(),
1721
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1722
+ alt_text_override: z.string().nullish()
1723
+ })).optional().default([]),
1724
+ settings: z.object({
1725
+ privacy_level: z.enum([
1726
+ "PUBLIC_TO_EVERYONE",
1727
+ "MUTUAL_FOLLOW_FRIENDS",
1728
+ "FOLLOWER_OF_CREATOR",
1729
+ "SELF_ONLY"
1730
+ ]).optional(),
1731
+ disable_comment: z.boolean().optional(),
1732
+ disable_duet: z.boolean().optional(),
1733
+ disable_stitch: z.boolean().optional(),
1734
+ video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
1735
+ photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
1736
+ auto_add_music: z.boolean().optional(),
1737
+ brand_content_toggle: z.boolean().optional(),
1738
+ brand_organic_toggle: z.boolean().optional(),
1739
+ is_aigc: z.boolean().optional()
1740
+ }).optional().default({})
1376
1741
  })
1377
1742
  ])).min(1).optional()
1378
1743
  });
@@ -3158,6 +3523,6 @@ var zTokensMintResponse = z.object({
3158
3523
  expires_at: z.string()
3159
3524
  });
3160
3525
 
3161
- export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };
3162
- //# sourceMappingURL=chunk-IMU3SG45.js.map
3163
- //# sourceMappingURL=chunk-IMU3SG45.js.map
3526
+ export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };
3527
+ //# sourceMappingURL=chunk-4AAUQJXR.js.map
3528
+ //# sourceMappingURL=chunk-4AAUQJXR.js.map