@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.
@@ -16,13 +16,15 @@ declare const zErrorCode: z.ZodEnum<{
16
16
  idempotency_key_invalid: "idempotency_key_invalid";
17
17
  idempotency_key_reused: "idempotency_key_reused";
18
18
  idempotency_request_in_progress: "idempotency_request_in_progress";
19
- source_url_unsupported: "source_url_unsupported";
20
19
  account_not_available: "account_not_available";
21
20
  connection_reauth_required: "connection_reauth_required";
22
21
  connection_not_pending: "connection_not_pending";
22
+ connection_in_use: "connection_in_use";
23
23
  not_implemented: "not_implemented";
24
+ connection_discovery_failed: "connection_discovery_failed";
24
25
  media_processing: "media_processing";
25
26
  not_publishable: "not_publishable";
27
+ profile_scope_invalid: "profile_scope_invalid";
26
28
  media_unprobeable: "media_unprobeable";
27
29
  media_too_large: "media_too_large";
28
30
  media_aspect_ratio_unsupported: "media_aspect_ratio_unsupported";
@@ -42,9 +44,12 @@ declare const zErrorCode: z.ZodEnum<{
42
44
  video_aspect_unsupported: "video_aspect_unsupported";
43
45
  video_duration_too_short: "video_duration_too_short";
44
46
  video_duration_exceeds_max: "video_duration_exceeds_max";
47
+ video_transform_failed: "video_transform_failed";
48
+ media_fetch_failed: "media_fetch_failed";
45
49
  document_format_unsupported: "document_format_unsupported";
46
50
  document_too_large: "document_too_large";
47
51
  document_too_many_pages: "document_too_many_pages";
52
+ media_format_indeterminate: "media_format_indeterminate";
48
53
  media_count_invalid: "media_count_invalid";
49
54
  body_too_long: "body_too_long";
50
55
  content_missing: "content_missing";
@@ -54,6 +59,7 @@ declare const zErrorCode: z.ZodEnum<{
54
59
  media_type_mismatch: "media_type_mismatch";
55
60
  tag_limit_exceeded: "tag_limit_exceeded";
56
61
  reel_field_on_non_reel: "reel_field_on_non_reel";
62
+ field_placement_invalid: "field_placement_invalid";
57
63
  media_not_ready: "media_not_ready";
58
64
  media_failed: "media_failed";
59
65
  media_unsupported: "media_unsupported";
@@ -81,6 +87,12 @@ declare const zErrorCode: z.ZodEnum<{
81
87
  facebook_rate_limited: "facebook_rate_limited";
82
88
  facebook_not_authorized: "facebook_not_authorized";
83
89
  facebook_publish_failed: "facebook_publish_failed";
90
+ tiktok_privacy_not_allowed: "tiktok_privacy_not_allowed";
91
+ tiktok_duration_exceeds_max: "tiktok_duration_exceeds_max";
92
+ tiktok_media_processing: "tiktok_media_processing";
93
+ tiktok_not_authorized: "tiktok_not_authorized";
94
+ tiktok_rate_limited: "tiktok_rate_limited";
95
+ tiktok_publish_failed: "tiktok_publish_failed";
84
96
  connection_platform_mismatch: "connection_platform_mismatch";
85
97
  }>;
86
98
  declare const zProfilesListQuery: z.ZodObject<{
@@ -179,6 +191,16 @@ declare const zConnectionsListByProfilePath: z.ZodObject<{
179
191
  declare const zConnectionsListByProfileQuery: z.ZodObject<{
180
192
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
181
193
  offset: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
194
+ nango_connection_id: z.ZodOptional<z.ZodString>;
195
+ kind: z.ZodOptional<z.ZodEnum<{
196
+ posting: "posting";
197
+ ads: "ads";
198
+ }>>;
199
+ status: z.ZodOptional<z.ZodEnum<{
200
+ pending: "pending";
201
+ active: "active";
202
+ needs_reauth: "needs_reauth";
203
+ }>>;
182
204
  }, z.core.$strip>;
183
205
  /**
184
206
  * OK
@@ -198,8 +220,21 @@ declare const zConnectionsListByProfileResponse: z.ZodObject<{
198
220
  instagram: "instagram";
199
221
  tiktok: "tiktok";
200
222
  }>;
223
+ kind: z.ZodEnum<{
224
+ posting: "posting";
225
+ ads: "ads";
226
+ }>;
227
+ status: z.ZodEnum<{
228
+ pending: "pending";
229
+ active: "active";
230
+ needs_reauth: "needs_reauth";
231
+ }>;
201
232
  external_account_id: z.ZodNullable<z.ZodString>;
202
233
  external_account_name: z.ZodNullable<z.ZodString>;
234
+ username: z.ZodNullable<z.ZodString>;
235
+ avatar_url: z.ZodNullable<z.ZodString>;
236
+ profile_url: z.ZodNullable<z.ZodString>;
237
+ reauth_at: z.ZodNullable<z.ZodString>;
203
238
  currency: z.ZodNullable<z.ZodString>;
204
239
  created_at: z.ZodNullable<z.ZodString>;
205
240
  updated_at: z.ZodNullable<z.ZodString>;
@@ -239,8 +274,21 @@ declare const zConnectionsGetResponse: z.ZodObject<{
239
274
  instagram: "instagram";
240
275
  tiktok: "tiktok";
241
276
  }>;
277
+ kind: z.ZodEnum<{
278
+ posting: "posting";
279
+ ads: "ads";
280
+ }>;
281
+ status: z.ZodEnum<{
282
+ pending: "pending";
283
+ active: "active";
284
+ needs_reauth: "needs_reauth";
285
+ }>;
242
286
  external_account_id: z.ZodNullable<z.ZodString>;
243
287
  external_account_name: z.ZodNullable<z.ZodString>;
288
+ username: z.ZodNullable<z.ZodString>;
289
+ avatar_url: z.ZodNullable<z.ZodString>;
290
+ profile_url: z.ZodNullable<z.ZodString>;
291
+ reauth_at: z.ZodNullable<z.ZodString>;
244
292
  currency: z.ZodNullable<z.ZodString>;
245
293
  created_at: z.ZodNullable<z.ZodString>;
246
294
  updated_at: z.ZodNullable<z.ZodString>;
@@ -267,8 +315,21 @@ declare const zConnectionsSelectResponse: z.ZodObject<{
267
315
  instagram: "instagram";
268
316
  tiktok: "tiktok";
269
317
  }>;
318
+ kind: z.ZodEnum<{
319
+ posting: "posting";
320
+ ads: "ads";
321
+ }>;
322
+ status: z.ZodEnum<{
323
+ pending: "pending";
324
+ active: "active";
325
+ needs_reauth: "needs_reauth";
326
+ }>;
270
327
  external_account_id: z.ZodNullable<z.ZodString>;
271
328
  external_account_name: z.ZodNullable<z.ZodString>;
329
+ username: z.ZodNullable<z.ZodString>;
330
+ avatar_url: z.ZodNullable<z.ZodString>;
331
+ profile_url: z.ZodNullable<z.ZodString>;
332
+ reauth_at: z.ZodNullable<z.ZodString>;
272
333
  currency: z.ZodNullable<z.ZodString>;
273
334
  created_at: z.ZodNullable<z.ZodString>;
274
335
  updated_at: z.ZodNullable<z.ZodString>;
@@ -285,9 +346,15 @@ declare const zConnectionsListAccountsResponse: z.ZodObject<{
285
346
  external_account_id: z.ZodString;
286
347
  name: z.ZodNullable<z.ZodString>;
287
348
  currency: z.ZodNullable<z.ZodString>;
349
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
352
  instagram: z.ZodOptional<z.ZodNullable<z.ZodObject<{
289
353
  external_account_id: z.ZodString;
290
354
  name: z.ZodNullable<z.ZodString>;
355
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
358
  }, z.core.$strip>>>;
292
359
  }, z.core.$strip>>;
293
360
  }, z.core.$strip>;
@@ -295,7 +362,6 @@ declare const zConnectionsConnectBody: z.ZodObject<{
295
362
  platform: z.ZodEnum<{
296
363
  meta_ads: "meta_ads";
297
364
  google_ads: "google_ads";
298
- tiktok_ads: "tiktok_ads";
299
365
  x: "x";
300
366
  linkedin: "linkedin";
301
367
  facebook_page: "facebook_page";
@@ -309,21 +375,206 @@ declare const zConnectionsConnectPath: z.ZodObject<{
309
375
  * OK
310
376
  */
311
377
  declare const zConnectionsConnectResponse: z.ZodObject<{
378
+ hosted_connect_url: z.ZodString;
379
+ connect_token: z.ZodString;
312
380
  connect_session_token: z.ZodString;
313
- connect_url: z.ZodString;
381
+ provider_config_key: z.ZodString;
382
+ nango_host: z.ZodString;
314
383
  expires_at: z.ZodString;
315
384
  }, z.core.$strip>;
385
+ declare const zMediaListQuery: z.ZodObject<{
386
+ limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
387
+ offset: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
388
+ profile_id: z.ZodOptional<z.ZodString>;
389
+ status: z.ZodOptional<z.ZodEnum<{
390
+ uploading: "uploading";
391
+ processing: "processing";
392
+ ready: "ready";
393
+ failed: "failed";
394
+ }>>;
395
+ kind: z.ZodOptional<z.ZodEnum<{
396
+ image: "image";
397
+ video: "video";
398
+ gif: "gif";
399
+ document: "document";
400
+ }>>;
401
+ external_id: z.ZodOptional<z.ZodString>;
402
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
403
+ }, z.core.$strip>;
404
+ /**
405
+ * OK
406
+ */
407
+ declare const zMediaListResponse: z.ZodObject<{
408
+ object: z.ZodLiteral<"list">;
409
+ data: z.ZodArray<z.ZodObject<{
410
+ id: z.ZodString;
411
+ object: z.ZodLiteral<"media">;
412
+ profile_id: z.ZodString;
413
+ kind: z.ZodNullable<z.ZodEnum<{
414
+ image: "image";
415
+ video: "video";
416
+ gif: "gif";
417
+ document: "document";
418
+ }>>;
419
+ content_type: z.ZodNullable<z.ZodString>;
420
+ status: z.ZodEnum<{
421
+ uploading: "uploading";
422
+ processing: "processing";
423
+ ready: "ready";
424
+ failed: "failed";
425
+ }>;
426
+ progress: z.ZodObject<{
427
+ stage: z.ZodEnum<{
428
+ done: "done";
429
+ queued: "queued";
430
+ analyzing: "analyzing";
431
+ transcoding: "transcoding";
432
+ }>;
433
+ percent: z.ZodInt;
434
+ }, z.core.$strip>;
435
+ raw: z.ZodBoolean;
436
+ error: z.ZodNullable<z.ZodObject<{
437
+ code: z.ZodEnum<{
438
+ media_unprobeable: "media_unprobeable";
439
+ media_too_large: "media_too_large";
440
+ media_aspect_ratio_unsupported: "media_aspect_ratio_unsupported";
441
+ media_resolution_too_low: "media_resolution_too_low";
442
+ media_gif_unsupported: "media_gif_unsupported";
443
+ media_format_recompressed: "media_format_recompressed";
444
+ media_resolution_downscaled: "media_resolution_downscaled";
445
+ video_container_unsupported: "video_container_unsupported";
446
+ video_codec_unsupported: "video_codec_unsupported";
447
+ video_audio_codec_unsupported: "video_audio_codec_unsupported";
448
+ video_too_large: "video_too_large";
449
+ video_too_small: "video_too_small";
450
+ video_dimensions_unsupported: "video_dimensions_unsupported";
451
+ video_dimensions_too_large: "video_dimensions_too_large";
452
+ video_fps_unsupported: "video_fps_unsupported";
453
+ video_fps_too_low: "video_fps_too_low";
454
+ video_aspect_unsupported: "video_aspect_unsupported";
455
+ video_duration_too_short: "video_duration_too_short";
456
+ video_duration_exceeds_max: "video_duration_exceeds_max";
457
+ video_transform_failed: "video_transform_failed";
458
+ media_fetch_failed: "media_fetch_failed";
459
+ document_format_unsupported: "document_format_unsupported";
460
+ document_too_large: "document_too_large";
461
+ document_too_many_pages: "document_too_many_pages";
462
+ media_format_indeterminate: "media_format_indeterminate";
463
+ media_unsupported: "media_unsupported";
464
+ }>;
465
+ message: z.ZodString;
466
+ hint: z.ZodOptional<z.ZodString>;
467
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
468
+ got: z.ZodOptional<z.ZodString>;
469
+ }, z.core.$strip>>;
470
+ source: z.ZodNullable<z.ZodObject<{
471
+ format: z.ZodString;
472
+ bytes: z.ZodInt;
473
+ width: z.ZodNullable<z.ZodInt>;
474
+ height: z.ZodNullable<z.ZodInt>;
475
+ duration_ms: z.ZodNullable<z.ZodInt>;
476
+ }, z.core.$strip>>;
477
+ alt_text: z.ZodNullable<z.ZodString>;
478
+ per_platform: z.ZodRecord<z.ZodString, z.ZodObject<{
479
+ status: z.ZodEnum<{
480
+ processing: "processing";
481
+ ready: "ready";
482
+ failed: "failed";
483
+ }>;
484
+ url: z.ZodNullable<z.ZodString>;
485
+ width: z.ZodNullable<z.ZodInt>;
486
+ height: z.ZodNullable<z.ZodInt>;
487
+ bytes: z.ZodNullable<z.ZodInt>;
488
+ warnings: z.ZodArray<z.ZodObject<{
489
+ code: z.ZodEnum<{
490
+ media_unprobeable: "media_unprobeable";
491
+ media_too_large: "media_too_large";
492
+ media_aspect_ratio_unsupported: "media_aspect_ratio_unsupported";
493
+ media_resolution_too_low: "media_resolution_too_low";
494
+ media_gif_unsupported: "media_gif_unsupported";
495
+ media_format_recompressed: "media_format_recompressed";
496
+ media_resolution_downscaled: "media_resolution_downscaled";
497
+ video_container_unsupported: "video_container_unsupported";
498
+ video_codec_unsupported: "video_codec_unsupported";
499
+ video_audio_codec_unsupported: "video_audio_codec_unsupported";
500
+ video_too_large: "video_too_large";
501
+ video_too_small: "video_too_small";
502
+ video_dimensions_unsupported: "video_dimensions_unsupported";
503
+ video_dimensions_too_large: "video_dimensions_too_large";
504
+ video_fps_unsupported: "video_fps_unsupported";
505
+ video_fps_too_low: "video_fps_too_low";
506
+ video_aspect_unsupported: "video_aspect_unsupported";
507
+ video_duration_too_short: "video_duration_too_short";
508
+ video_duration_exceeds_max: "video_duration_exceeds_max";
509
+ video_transform_failed: "video_transform_failed";
510
+ media_fetch_failed: "media_fetch_failed";
511
+ document_format_unsupported: "document_format_unsupported";
512
+ document_too_large: "document_too_large";
513
+ document_too_many_pages: "document_too_many_pages";
514
+ media_format_indeterminate: "media_format_indeterminate";
515
+ media_unsupported: "media_unsupported";
516
+ }>;
517
+ message: z.ZodString;
518
+ hint: z.ZodOptional<z.ZodString>;
519
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
+ got: z.ZodOptional<z.ZodString>;
521
+ }, z.core.$strip>>;
522
+ errors: z.ZodArray<z.ZodObject<{
523
+ code: z.ZodEnum<{
524
+ media_unprobeable: "media_unprobeable";
525
+ media_too_large: "media_too_large";
526
+ media_aspect_ratio_unsupported: "media_aspect_ratio_unsupported";
527
+ media_resolution_too_low: "media_resolution_too_low";
528
+ media_gif_unsupported: "media_gif_unsupported";
529
+ media_format_recompressed: "media_format_recompressed";
530
+ media_resolution_downscaled: "media_resolution_downscaled";
531
+ video_container_unsupported: "video_container_unsupported";
532
+ video_codec_unsupported: "video_codec_unsupported";
533
+ video_audio_codec_unsupported: "video_audio_codec_unsupported";
534
+ video_too_large: "video_too_large";
535
+ video_too_small: "video_too_small";
536
+ video_dimensions_unsupported: "video_dimensions_unsupported";
537
+ video_dimensions_too_large: "video_dimensions_too_large";
538
+ video_fps_unsupported: "video_fps_unsupported";
539
+ video_fps_too_low: "video_fps_too_low";
540
+ video_aspect_unsupported: "video_aspect_unsupported";
541
+ video_duration_too_short: "video_duration_too_short";
542
+ video_duration_exceeds_max: "video_duration_exceeds_max";
543
+ video_transform_failed: "video_transform_failed";
544
+ media_fetch_failed: "media_fetch_failed";
545
+ document_format_unsupported: "document_format_unsupported";
546
+ document_too_large: "document_too_large";
547
+ document_too_many_pages: "document_too_many_pages";
548
+ media_format_indeterminate: "media_format_indeterminate";
549
+ media_unsupported: "media_unsupported";
550
+ }>;
551
+ message: z.ZodString;
552
+ hint: z.ZodOptional<z.ZodString>;
553
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
+ got: z.ZodOptional<z.ZodString>;
555
+ }, z.core.$strip>>;
556
+ }, z.core.$strip>>;
557
+ external_id: z.ZodNullable<z.ZodString>;
558
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
559
+ created_at: z.ZodString;
560
+ updated_at: z.ZodString;
561
+ }, z.core.$strip>>;
562
+ total: z.ZodInt;
563
+ limit: z.ZodInt;
564
+ offset: z.ZodInt;
565
+ has_more: z.ZodBoolean;
566
+ }, z.core.$strip>;
316
567
  /**
317
- * Create a media asset via the signed direct upload target (source_url is reserved/unsupported in v1).
568
+ * Create a media asset — either via the signed direct upload target (omit source_url) or by importing from a public https source_url (we fetch + validate + transform + store). Size limits: a direct-upload video may be up to 5 GB; all other direct uploads and any source_url import must be 1 GB or smaller. A file over its limit is rejected with `media_too_large`.
318
569
  */
319
570
  declare const zMediaCreateBody: z.ZodObject<{
320
571
  profile_id: z.ZodString;
321
- kind: z.ZodEnum<{
572
+ kind: z.ZodOptional<z.ZodEnum<{
322
573
  image: "image";
323
574
  video: "video";
324
575
  gif: "gif";
325
576
  document: "document";
326
- }>;
577
+ }>>;
327
578
  content_type: z.ZodOptional<z.ZodString>;
328
579
  source_url: z.ZodOptional<z.ZodURL>;
329
580
  targets: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -346,18 +597,28 @@ declare const zMediaCreateResponse: z.ZodObject<{
346
597
  id: z.ZodString;
347
598
  object: z.ZodLiteral<"media">;
348
599
  profile_id: z.ZodString;
349
- kind: z.ZodEnum<{
600
+ kind: z.ZodNullable<z.ZodEnum<{
350
601
  image: "image";
351
602
  video: "video";
352
603
  gif: "gif";
353
604
  document: "document";
354
- }>;
605
+ }>>;
606
+ content_type: z.ZodNullable<z.ZodString>;
355
607
  status: z.ZodEnum<{
356
608
  uploading: "uploading";
357
609
  processing: "processing";
358
610
  ready: "ready";
359
611
  failed: "failed";
360
612
  }>;
613
+ progress: z.ZodObject<{
614
+ stage: z.ZodEnum<{
615
+ done: "done";
616
+ queued: "queued";
617
+ analyzing: "analyzing";
618
+ transcoding: "transcoding";
619
+ }>;
620
+ percent: z.ZodInt;
621
+ }, z.core.$strip>;
361
622
  raw: z.ZodBoolean;
362
623
  error: z.ZodNullable<z.ZodObject<{
363
624
  code: z.ZodEnum<{
@@ -380,9 +641,12 @@ declare const zMediaCreateResponse: z.ZodObject<{
380
641
  video_aspect_unsupported: "video_aspect_unsupported";
381
642
  video_duration_too_short: "video_duration_too_short";
382
643
  video_duration_exceeds_max: "video_duration_exceeds_max";
644
+ video_transform_failed: "video_transform_failed";
645
+ media_fetch_failed: "media_fetch_failed";
383
646
  document_format_unsupported: "document_format_unsupported";
384
647
  document_too_large: "document_too_large";
385
648
  document_too_many_pages: "document_too_many_pages";
649
+ media_format_indeterminate: "media_format_indeterminate";
386
650
  media_unsupported: "media_unsupported";
387
651
  }>;
388
652
  message: z.ZodString;
@@ -429,9 +693,12 @@ declare const zMediaCreateResponse: z.ZodObject<{
429
693
  video_aspect_unsupported: "video_aspect_unsupported";
430
694
  video_duration_too_short: "video_duration_too_short";
431
695
  video_duration_exceeds_max: "video_duration_exceeds_max";
696
+ video_transform_failed: "video_transform_failed";
697
+ media_fetch_failed: "media_fetch_failed";
432
698
  document_format_unsupported: "document_format_unsupported";
433
699
  document_too_large: "document_too_large";
434
700
  document_too_many_pages: "document_too_many_pages";
701
+ media_format_indeterminate: "media_format_indeterminate";
435
702
  media_unsupported: "media_unsupported";
436
703
  }>;
437
704
  message: z.ZodString;
@@ -460,9 +727,12 @@ declare const zMediaCreateResponse: z.ZodObject<{
460
727
  video_aspect_unsupported: "video_aspect_unsupported";
461
728
  video_duration_too_short: "video_duration_too_short";
462
729
  video_duration_exceeds_max: "video_duration_exceeds_max";
730
+ video_transform_failed: "video_transform_failed";
731
+ media_fetch_failed: "media_fetch_failed";
463
732
  document_format_unsupported: "document_format_unsupported";
464
733
  document_too_large: "document_too_large";
465
734
  document_too_many_pages: "document_too_many_pages";
735
+ media_format_indeterminate: "media_format_indeterminate";
466
736
  media_unsupported: "media_unsupported";
467
737
  }>;
468
738
  message: z.ZodString;
@@ -503,18 +773,28 @@ declare const zMediaGetResponse: z.ZodObject<{
503
773
  id: z.ZodString;
504
774
  object: z.ZodLiteral<"media">;
505
775
  profile_id: z.ZodString;
506
- kind: z.ZodEnum<{
776
+ kind: z.ZodNullable<z.ZodEnum<{
507
777
  image: "image";
508
778
  video: "video";
509
779
  gif: "gif";
510
780
  document: "document";
511
- }>;
781
+ }>>;
782
+ content_type: z.ZodNullable<z.ZodString>;
512
783
  status: z.ZodEnum<{
513
784
  uploading: "uploading";
514
785
  processing: "processing";
515
786
  ready: "ready";
516
787
  failed: "failed";
517
788
  }>;
789
+ progress: z.ZodObject<{
790
+ stage: z.ZodEnum<{
791
+ done: "done";
792
+ queued: "queued";
793
+ analyzing: "analyzing";
794
+ transcoding: "transcoding";
795
+ }>;
796
+ percent: z.ZodInt;
797
+ }, z.core.$strip>;
518
798
  raw: z.ZodBoolean;
519
799
  error: z.ZodNullable<z.ZodObject<{
520
800
  code: z.ZodEnum<{
@@ -537,9 +817,12 @@ declare const zMediaGetResponse: z.ZodObject<{
537
817
  video_aspect_unsupported: "video_aspect_unsupported";
538
818
  video_duration_too_short: "video_duration_too_short";
539
819
  video_duration_exceeds_max: "video_duration_exceeds_max";
820
+ video_transform_failed: "video_transform_failed";
821
+ media_fetch_failed: "media_fetch_failed";
540
822
  document_format_unsupported: "document_format_unsupported";
541
823
  document_too_large: "document_too_large";
542
824
  document_too_many_pages: "document_too_many_pages";
825
+ media_format_indeterminate: "media_format_indeterminate";
543
826
  media_unsupported: "media_unsupported";
544
827
  }>;
545
828
  message: z.ZodString;
@@ -586,9 +869,12 @@ declare const zMediaGetResponse: z.ZodObject<{
586
869
  video_aspect_unsupported: "video_aspect_unsupported";
587
870
  video_duration_too_short: "video_duration_too_short";
588
871
  video_duration_exceeds_max: "video_duration_exceeds_max";
872
+ video_transform_failed: "video_transform_failed";
873
+ media_fetch_failed: "media_fetch_failed";
589
874
  document_format_unsupported: "document_format_unsupported";
590
875
  document_too_large: "document_too_large";
591
876
  document_too_many_pages: "document_too_many_pages";
877
+ media_format_indeterminate: "media_format_indeterminate";
592
878
  media_unsupported: "media_unsupported";
593
879
  }>;
594
880
  message: z.ZodString;
@@ -617,9 +903,12 @@ declare const zMediaGetResponse: z.ZodObject<{
617
903
  video_aspect_unsupported: "video_aspect_unsupported";
618
904
  video_duration_too_short: "video_duration_too_short";
619
905
  video_duration_exceeds_max: "video_duration_exceeds_max";
906
+ video_transform_failed: "video_transform_failed";
907
+ media_fetch_failed: "media_fetch_failed";
620
908
  document_format_unsupported: "document_format_unsupported";
621
909
  document_too_large: "document_too_large";
622
910
  document_too_many_pages: "document_too_many_pages";
911
+ media_format_indeterminate: "media_format_indeterminate";
623
912
  media_unsupported: "media_unsupported";
624
913
  }>;
625
914
  message: z.ZodString;
@@ -656,18 +945,28 @@ declare const zMediaUpdateResponse: z.ZodObject<{
656
945
  id: z.ZodString;
657
946
  object: z.ZodLiteral<"media">;
658
947
  profile_id: z.ZodString;
659
- kind: z.ZodEnum<{
948
+ kind: z.ZodNullable<z.ZodEnum<{
660
949
  image: "image";
661
950
  video: "video";
662
951
  gif: "gif";
663
952
  document: "document";
664
- }>;
953
+ }>>;
954
+ content_type: z.ZodNullable<z.ZodString>;
665
955
  status: z.ZodEnum<{
666
956
  uploading: "uploading";
667
957
  processing: "processing";
668
958
  ready: "ready";
669
959
  failed: "failed";
670
960
  }>;
961
+ progress: z.ZodObject<{
962
+ stage: z.ZodEnum<{
963
+ done: "done";
964
+ queued: "queued";
965
+ analyzing: "analyzing";
966
+ transcoding: "transcoding";
967
+ }>;
968
+ percent: z.ZodInt;
969
+ }, z.core.$strip>;
671
970
  raw: z.ZodBoolean;
672
971
  error: z.ZodNullable<z.ZodObject<{
673
972
  code: z.ZodEnum<{
@@ -690,9 +989,12 @@ declare const zMediaUpdateResponse: z.ZodObject<{
690
989
  video_aspect_unsupported: "video_aspect_unsupported";
691
990
  video_duration_too_short: "video_duration_too_short";
692
991
  video_duration_exceeds_max: "video_duration_exceeds_max";
992
+ video_transform_failed: "video_transform_failed";
993
+ media_fetch_failed: "media_fetch_failed";
693
994
  document_format_unsupported: "document_format_unsupported";
694
995
  document_too_large: "document_too_large";
695
996
  document_too_many_pages: "document_too_many_pages";
997
+ media_format_indeterminate: "media_format_indeterminate";
696
998
  media_unsupported: "media_unsupported";
697
999
  }>;
698
1000
  message: z.ZodString;
@@ -739,9 +1041,12 @@ declare const zMediaUpdateResponse: z.ZodObject<{
739
1041
  video_aspect_unsupported: "video_aspect_unsupported";
740
1042
  video_duration_too_short: "video_duration_too_short";
741
1043
  video_duration_exceeds_max: "video_duration_exceeds_max";
1044
+ video_transform_failed: "video_transform_failed";
1045
+ media_fetch_failed: "media_fetch_failed";
742
1046
  document_format_unsupported: "document_format_unsupported";
743
1047
  document_too_large: "document_too_large";
744
1048
  document_too_many_pages: "document_too_many_pages";
1049
+ media_format_indeterminate: "media_format_indeterminate";
745
1050
  media_unsupported: "media_unsupported";
746
1051
  }>;
747
1052
  message: z.ZodString;
@@ -770,9 +1075,12 @@ declare const zMediaUpdateResponse: z.ZodObject<{
770
1075
  video_aspect_unsupported: "video_aspect_unsupported";
771
1076
  video_duration_too_short: "video_duration_too_short";
772
1077
  video_duration_exceeds_max: "video_duration_exceeds_max";
1078
+ video_transform_failed: "video_transform_failed";
1079
+ media_fetch_failed: "media_fetch_failed";
773
1080
  document_format_unsupported: "document_format_unsupported";
774
1081
  document_too_large: "document_too_large";
775
1082
  document_too_many_pages: "document_too_many_pages";
1083
+ media_format_indeterminate: "media_format_indeterminate";
776
1084
  media_unsupported: "media_unsupported";
777
1085
  }>;
778
1086
  message: z.ZodString;
@@ -1047,6 +1355,37 @@ declare const zPostsCreateBody: z.ZodObject<{
1047
1355
  settings: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1048
1356
  link: z.ZodOptional<z.ZodURL>;
1049
1357
  }, z.core.$strip>>>;
1358
+ }, z.core.$strip>, z.ZodObject<{
1359
+ platform: z.ZodLiteral<"tiktok">;
1360
+ post_type: z.ZodEnum<{
1361
+ video: "video";
1362
+ single_image: "single_image";
1363
+ carousel: "carousel";
1364
+ }>;
1365
+ connection_id: z.ZodString;
1366
+ body: z.ZodOptional<z.ZodString>;
1367
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1368
+ media_id: z.ZodString;
1369
+ crop_box: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1370
+ alt_text_override: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1371
+ }, z.core.$strip>>>>;
1372
+ settings: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1373
+ privacy_level: z.ZodOptional<z.ZodEnum<{
1374
+ PUBLIC_TO_EVERYONE: "PUBLIC_TO_EVERYONE";
1375
+ MUTUAL_FOLLOW_FRIENDS: "MUTUAL_FOLLOW_FRIENDS";
1376
+ FOLLOWER_OF_CREATOR: "FOLLOWER_OF_CREATOR";
1377
+ SELF_ONLY: "SELF_ONLY";
1378
+ }>>;
1379
+ disable_comment: z.ZodOptional<z.ZodBoolean>;
1380
+ disable_duet: z.ZodOptional<z.ZodBoolean>;
1381
+ disable_stitch: z.ZodOptional<z.ZodBoolean>;
1382
+ video_cover_timestamp_ms: z.ZodOptional<z.ZodInt>;
1383
+ photo_cover_index: z.ZodOptional<z.ZodInt>;
1384
+ auto_add_music: z.ZodOptional<z.ZodBoolean>;
1385
+ brand_content_toggle: z.ZodOptional<z.ZodBoolean>;
1386
+ brand_organic_toggle: z.ZodOptional<z.ZodBoolean>;
1387
+ is_aigc: z.ZodOptional<z.ZodBoolean>;
1388
+ }, z.core.$strip>>>;
1050
1389
  }, z.core.$strip>]>>;
1051
1390
  }, z.core.$strip>;
1052
1391
  /**
@@ -1368,6 +1707,37 @@ declare const zPostsUpdateBody: z.ZodObject<{
1368
1707
  settings: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1369
1708
  link: z.ZodOptional<z.ZodURL>;
1370
1709
  }, z.core.$strip>>>;
1710
+ }, z.core.$strip>, z.ZodObject<{
1711
+ platform: z.ZodLiteral<"tiktok">;
1712
+ post_type: z.ZodEnum<{
1713
+ video: "video";
1714
+ single_image: "single_image";
1715
+ carousel: "carousel";
1716
+ }>;
1717
+ connection_id: z.ZodString;
1718
+ body: z.ZodOptional<z.ZodString>;
1719
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1720
+ media_id: z.ZodString;
1721
+ crop_box: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1722
+ alt_text_override: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1723
+ }, z.core.$strip>>>>;
1724
+ settings: z.ZodDefault<z.ZodOptional<z.ZodObject<{
1725
+ privacy_level: z.ZodOptional<z.ZodEnum<{
1726
+ PUBLIC_TO_EVERYONE: "PUBLIC_TO_EVERYONE";
1727
+ MUTUAL_FOLLOW_FRIENDS: "MUTUAL_FOLLOW_FRIENDS";
1728
+ FOLLOWER_OF_CREATOR: "FOLLOWER_OF_CREATOR";
1729
+ SELF_ONLY: "SELF_ONLY";
1730
+ }>>;
1731
+ disable_comment: z.ZodOptional<z.ZodBoolean>;
1732
+ disable_duet: z.ZodOptional<z.ZodBoolean>;
1733
+ disable_stitch: z.ZodOptional<z.ZodBoolean>;
1734
+ video_cover_timestamp_ms: z.ZodOptional<z.ZodInt>;
1735
+ photo_cover_index: z.ZodOptional<z.ZodInt>;
1736
+ auto_add_music: z.ZodOptional<z.ZodBoolean>;
1737
+ brand_content_toggle: z.ZodOptional<z.ZodBoolean>;
1738
+ brand_organic_toggle: z.ZodOptional<z.ZodBoolean>;
1739
+ is_aigc: z.ZodOptional<z.ZodBoolean>;
1740
+ }, z.core.$strip>>>;
1371
1741
  }, z.core.$strip>]>>>;
1372
1742
  }, z.core.$strip>;
1373
1743
  declare const zPostsUpdatePath: z.ZodObject<{
@@ -3389,4 +3759,4 @@ declare const zTokensMintResponse: z.ZodObject<{
3389
3759
  expires_at: z.ZodString;
3390
3760
  }, z.core.$strip>;
3391
3761
 
3392
- 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 };
3762
+ export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };