@postrun/js 0.1.0 → 0.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/{chunk-A545VJ5X.js → chunk-H2IIX5BP.js} +17 -4
- package/dist/chunk-H2IIX5BP.js.map +1 -0
- package/dist/{chunk-IMU3SG45.js → chunk-VGR3BQCT.js} +339 -13
- package/dist/chunk-VGR3BQCT.js.map +1 -0
- package/dist/index.cjs +394 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -8
- package/dist/index.d.ts +52 -8
- package/dist/index.js +46 -11
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +338 -10
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +345 -14
- package/dist/schemas/index.d.ts +345 -14
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +336 -10
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-DGCs7eB8.d.cts → types.gen-lbiXwxGS.d.cts} +793 -82
- package/dist/{types.gen-DGCs7eB8.d.ts → types.gen-lbiXwxGS.d.ts} +793 -82
- package/package.json +1 -1
- package/dist/chunk-A545VJ5X.js.map +0 -1
- package/dist/chunk-IMU3SG45.js.map +0 -1
|
@@ -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,188 @@ var zConnectionsConnectPath = z.object({
|
|
|
300
354
|
id: z.string()
|
|
301
355
|
});
|
|
302
356
|
var zConnectionsConnectResponse = z.object({
|
|
303
|
-
|
|
304
|
-
|
|
357
|
+
hosted_connect_url: z.string(),
|
|
358
|
+
connect_token: z.string(),
|
|
305
359
|
expires_at: z.string()
|
|
306
360
|
});
|
|
361
|
+
var zMediaListQuery = z.object({
|
|
362
|
+
limit: z.int().gte(1).lte(100).optional().default(20),
|
|
363
|
+
offset: z.int().gte(0).lte(9007199254740991).optional().default(0),
|
|
364
|
+
profile_id: z.string().optional(),
|
|
365
|
+
status: z.enum([
|
|
366
|
+
"uploading",
|
|
367
|
+
"processing",
|
|
368
|
+
"ready",
|
|
369
|
+
"failed"
|
|
370
|
+
]).optional(),
|
|
371
|
+
kind: z.enum([
|
|
372
|
+
"image",
|
|
373
|
+
"video",
|
|
374
|
+
"gif",
|
|
375
|
+
"document"
|
|
376
|
+
]).optional(),
|
|
377
|
+
external_id: z.string().optional(),
|
|
378
|
+
metadata: z.record(z.string(), z.union([
|
|
379
|
+
z.string().max(500),
|
|
380
|
+
z.number(),
|
|
381
|
+
z.boolean()
|
|
382
|
+
])).optional()
|
|
383
|
+
});
|
|
384
|
+
var zMediaListResponse = z.object({
|
|
385
|
+
object: z.literal("list"),
|
|
386
|
+
data: z.array(z.object({
|
|
387
|
+
id: z.string(),
|
|
388
|
+
object: z.literal("media"),
|
|
389
|
+
profile_id: z.string(),
|
|
390
|
+
kind: z.enum([
|
|
391
|
+
"image",
|
|
392
|
+
"video",
|
|
393
|
+
"gif",
|
|
394
|
+
"document"
|
|
395
|
+
]).nullable(),
|
|
396
|
+
content_type: z.string().nullable(),
|
|
397
|
+
status: z.enum([
|
|
398
|
+
"uploading",
|
|
399
|
+
"processing",
|
|
400
|
+
"ready",
|
|
401
|
+
"failed"
|
|
402
|
+
]),
|
|
403
|
+
raw: z.boolean(),
|
|
404
|
+
error: z.object({
|
|
405
|
+
code: z.enum([
|
|
406
|
+
"media_unprobeable",
|
|
407
|
+
"media_format_indeterminate",
|
|
408
|
+
"media_too_large",
|
|
409
|
+
"media_aspect_ratio_unsupported",
|
|
410
|
+
"media_resolution_too_low",
|
|
411
|
+
"media_gif_unsupported",
|
|
412
|
+
"media_format_recompressed",
|
|
413
|
+
"media_resolution_downscaled",
|
|
414
|
+
"video_container_unsupported",
|
|
415
|
+
"video_codec_unsupported",
|
|
416
|
+
"video_audio_codec_unsupported",
|
|
417
|
+
"video_too_large",
|
|
418
|
+
"video_too_small",
|
|
419
|
+
"video_dimensions_unsupported",
|
|
420
|
+
"video_dimensions_too_large",
|
|
421
|
+
"video_fps_unsupported",
|
|
422
|
+
"video_fps_too_low",
|
|
423
|
+
"video_aspect_unsupported",
|
|
424
|
+
"video_duration_too_short",
|
|
425
|
+
"video_duration_exceeds_max",
|
|
426
|
+
"video_transform_failed",
|
|
427
|
+
"media_fetch_failed",
|
|
428
|
+
"document_format_unsupported",
|
|
429
|
+
"document_too_large",
|
|
430
|
+
"document_too_many_pages",
|
|
431
|
+
"media_unsupported"
|
|
432
|
+
]),
|
|
433
|
+
message: z.string(),
|
|
434
|
+
hint: z.string().optional(),
|
|
435
|
+
allowed: z.array(z.string()).optional(),
|
|
436
|
+
got: z.string().optional()
|
|
437
|
+
}).nullable(),
|
|
438
|
+
source: z.object({
|
|
439
|
+
format: z.string(),
|
|
440
|
+
bytes: z.int().gte(0).lte(9007199254740991),
|
|
441
|
+
width: z.int().gt(0).lte(9007199254740991).nullable(),
|
|
442
|
+
height: z.int().gt(0).lte(9007199254740991).nullable(),
|
|
443
|
+
duration_ms: z.int().gte(0).lte(9007199254740991).nullable()
|
|
444
|
+
}).nullable(),
|
|
445
|
+
alt_text: z.string().max(1e3).nullable(),
|
|
446
|
+
per_platform: z.record(z.string(), z.object({
|
|
447
|
+
status: z.enum([
|
|
448
|
+
"processing",
|
|
449
|
+
"ready",
|
|
450
|
+
"failed"
|
|
451
|
+
]),
|
|
452
|
+
url: z.string().nullable(),
|
|
453
|
+
width: z.int().gt(0).lte(9007199254740991).nullable(),
|
|
454
|
+
height: z.int().gt(0).lte(9007199254740991).nullable(),
|
|
455
|
+
bytes: z.int().gte(0).lte(9007199254740991).nullable(),
|
|
456
|
+
warnings: z.array(z.object({
|
|
457
|
+
code: z.enum([
|
|
458
|
+
"media_unprobeable",
|
|
459
|
+
"media_format_indeterminate",
|
|
460
|
+
"media_too_large",
|
|
461
|
+
"media_aspect_ratio_unsupported",
|
|
462
|
+
"media_resolution_too_low",
|
|
463
|
+
"media_gif_unsupported",
|
|
464
|
+
"media_format_recompressed",
|
|
465
|
+
"media_resolution_downscaled",
|
|
466
|
+
"video_container_unsupported",
|
|
467
|
+
"video_codec_unsupported",
|
|
468
|
+
"video_audio_codec_unsupported",
|
|
469
|
+
"video_too_large",
|
|
470
|
+
"video_too_small",
|
|
471
|
+
"video_dimensions_unsupported",
|
|
472
|
+
"video_dimensions_too_large",
|
|
473
|
+
"video_fps_unsupported",
|
|
474
|
+
"video_fps_too_low",
|
|
475
|
+
"video_aspect_unsupported",
|
|
476
|
+
"video_duration_too_short",
|
|
477
|
+
"video_duration_exceeds_max",
|
|
478
|
+
"video_transform_failed",
|
|
479
|
+
"media_fetch_failed",
|
|
480
|
+
"document_format_unsupported",
|
|
481
|
+
"document_too_large",
|
|
482
|
+
"document_too_many_pages",
|
|
483
|
+
"media_unsupported"
|
|
484
|
+
]),
|
|
485
|
+
message: z.string(),
|
|
486
|
+
hint: z.string().optional(),
|
|
487
|
+
allowed: z.array(z.string()).optional(),
|
|
488
|
+
got: z.string().optional()
|
|
489
|
+
})),
|
|
490
|
+
errors: z.array(z.object({
|
|
491
|
+
code: z.enum([
|
|
492
|
+
"media_unprobeable",
|
|
493
|
+
"media_format_indeterminate",
|
|
494
|
+
"media_too_large",
|
|
495
|
+
"media_aspect_ratio_unsupported",
|
|
496
|
+
"media_resolution_too_low",
|
|
497
|
+
"media_gif_unsupported",
|
|
498
|
+
"media_format_recompressed",
|
|
499
|
+
"media_resolution_downscaled",
|
|
500
|
+
"video_container_unsupported",
|
|
501
|
+
"video_codec_unsupported",
|
|
502
|
+
"video_audio_codec_unsupported",
|
|
503
|
+
"video_too_large",
|
|
504
|
+
"video_too_small",
|
|
505
|
+
"video_dimensions_unsupported",
|
|
506
|
+
"video_dimensions_too_large",
|
|
507
|
+
"video_fps_unsupported",
|
|
508
|
+
"video_fps_too_low",
|
|
509
|
+
"video_aspect_unsupported",
|
|
510
|
+
"video_duration_too_short",
|
|
511
|
+
"video_duration_exceeds_max",
|
|
512
|
+
"video_transform_failed",
|
|
513
|
+
"media_fetch_failed",
|
|
514
|
+
"document_format_unsupported",
|
|
515
|
+
"document_too_large",
|
|
516
|
+
"document_too_many_pages",
|
|
517
|
+
"media_unsupported"
|
|
518
|
+
]),
|
|
519
|
+
message: z.string(),
|
|
520
|
+
hint: z.string().optional(),
|
|
521
|
+
allowed: z.array(z.string()).optional(),
|
|
522
|
+
got: z.string().optional()
|
|
523
|
+
}))
|
|
524
|
+
})),
|
|
525
|
+
external_id: z.string().nullable(),
|
|
526
|
+
metadata: z.record(z.string(), z.union([
|
|
527
|
+
z.string().max(500),
|
|
528
|
+
z.number(),
|
|
529
|
+
z.boolean()
|
|
530
|
+
])),
|
|
531
|
+
created_at: z.string(),
|
|
532
|
+
updated_at: z.string()
|
|
533
|
+
})),
|
|
534
|
+
total: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
535
|
+
limit: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
536
|
+
offset: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
537
|
+
has_more: z.boolean()
|
|
538
|
+
});
|
|
307
539
|
var zMediaCreateBody = z.object({
|
|
308
540
|
profile_id: z.string(),
|
|
309
541
|
kind: z.enum([
|
|
@@ -311,7 +543,7 @@ var zMediaCreateBody = z.object({
|
|
|
311
543
|
"video",
|
|
312
544
|
"gif",
|
|
313
545
|
"document"
|
|
314
|
-
]),
|
|
546
|
+
]).optional(),
|
|
315
547
|
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
548
|
source_url: z.url().optional(),
|
|
317
549
|
targets: z.array(z.enum([
|
|
@@ -340,7 +572,8 @@ var zMediaCreateResponse = z.object({
|
|
|
340
572
|
"video",
|
|
341
573
|
"gif",
|
|
342
574
|
"document"
|
|
343
|
-
]),
|
|
575
|
+
]).nullable(),
|
|
576
|
+
content_type: z.string().nullable(),
|
|
344
577
|
status: z.enum([
|
|
345
578
|
"uploading",
|
|
346
579
|
"processing",
|
|
@@ -351,6 +584,7 @@ var zMediaCreateResponse = z.object({
|
|
|
351
584
|
error: z.object({
|
|
352
585
|
code: z.enum([
|
|
353
586
|
"media_unprobeable",
|
|
587
|
+
"media_format_indeterminate",
|
|
354
588
|
"media_too_large",
|
|
355
589
|
"media_aspect_ratio_unsupported",
|
|
356
590
|
"media_resolution_too_low",
|
|
@@ -369,6 +603,8 @@ var zMediaCreateResponse = z.object({
|
|
|
369
603
|
"video_aspect_unsupported",
|
|
370
604
|
"video_duration_too_short",
|
|
371
605
|
"video_duration_exceeds_max",
|
|
606
|
+
"video_transform_failed",
|
|
607
|
+
"media_fetch_failed",
|
|
372
608
|
"document_format_unsupported",
|
|
373
609
|
"document_too_large",
|
|
374
610
|
"document_too_many_pages",
|
|
@@ -400,6 +636,7 @@ var zMediaCreateResponse = z.object({
|
|
|
400
636
|
warnings: z.array(z.object({
|
|
401
637
|
code: z.enum([
|
|
402
638
|
"media_unprobeable",
|
|
639
|
+
"media_format_indeterminate",
|
|
403
640
|
"media_too_large",
|
|
404
641
|
"media_aspect_ratio_unsupported",
|
|
405
642
|
"media_resolution_too_low",
|
|
@@ -418,6 +655,8 @@ var zMediaCreateResponse = z.object({
|
|
|
418
655
|
"video_aspect_unsupported",
|
|
419
656
|
"video_duration_too_short",
|
|
420
657
|
"video_duration_exceeds_max",
|
|
658
|
+
"video_transform_failed",
|
|
659
|
+
"media_fetch_failed",
|
|
421
660
|
"document_format_unsupported",
|
|
422
661
|
"document_too_large",
|
|
423
662
|
"document_too_many_pages",
|
|
@@ -431,6 +670,7 @@ var zMediaCreateResponse = z.object({
|
|
|
431
670
|
errors: z.array(z.object({
|
|
432
671
|
code: z.enum([
|
|
433
672
|
"media_unprobeable",
|
|
673
|
+
"media_format_indeterminate",
|
|
434
674
|
"media_too_large",
|
|
435
675
|
"media_aspect_ratio_unsupported",
|
|
436
676
|
"media_resolution_too_low",
|
|
@@ -449,6 +689,8 @@ var zMediaCreateResponse = z.object({
|
|
|
449
689
|
"video_aspect_unsupported",
|
|
450
690
|
"video_duration_too_short",
|
|
451
691
|
"video_duration_exceeds_max",
|
|
692
|
+
"video_transform_failed",
|
|
693
|
+
"media_fetch_failed",
|
|
452
694
|
"document_format_unsupported",
|
|
453
695
|
"document_too_large",
|
|
454
696
|
"document_too_many_pages",
|
|
@@ -495,7 +737,8 @@ var zMediaGetResponse = z.object({
|
|
|
495
737
|
"video",
|
|
496
738
|
"gif",
|
|
497
739
|
"document"
|
|
498
|
-
]),
|
|
740
|
+
]).nullable(),
|
|
741
|
+
content_type: z.string().nullable(),
|
|
499
742
|
status: z.enum([
|
|
500
743
|
"uploading",
|
|
501
744
|
"processing",
|
|
@@ -506,6 +749,7 @@ var zMediaGetResponse = z.object({
|
|
|
506
749
|
error: z.object({
|
|
507
750
|
code: z.enum([
|
|
508
751
|
"media_unprobeable",
|
|
752
|
+
"media_format_indeterminate",
|
|
509
753
|
"media_too_large",
|
|
510
754
|
"media_aspect_ratio_unsupported",
|
|
511
755
|
"media_resolution_too_low",
|
|
@@ -524,6 +768,8 @@ var zMediaGetResponse = z.object({
|
|
|
524
768
|
"video_aspect_unsupported",
|
|
525
769
|
"video_duration_too_short",
|
|
526
770
|
"video_duration_exceeds_max",
|
|
771
|
+
"video_transform_failed",
|
|
772
|
+
"media_fetch_failed",
|
|
527
773
|
"document_format_unsupported",
|
|
528
774
|
"document_too_large",
|
|
529
775
|
"document_too_many_pages",
|
|
@@ -555,6 +801,7 @@ var zMediaGetResponse = z.object({
|
|
|
555
801
|
warnings: z.array(z.object({
|
|
556
802
|
code: z.enum([
|
|
557
803
|
"media_unprobeable",
|
|
804
|
+
"media_format_indeterminate",
|
|
558
805
|
"media_too_large",
|
|
559
806
|
"media_aspect_ratio_unsupported",
|
|
560
807
|
"media_resolution_too_low",
|
|
@@ -573,6 +820,8 @@ var zMediaGetResponse = z.object({
|
|
|
573
820
|
"video_aspect_unsupported",
|
|
574
821
|
"video_duration_too_short",
|
|
575
822
|
"video_duration_exceeds_max",
|
|
823
|
+
"video_transform_failed",
|
|
824
|
+
"media_fetch_failed",
|
|
576
825
|
"document_format_unsupported",
|
|
577
826
|
"document_too_large",
|
|
578
827
|
"document_too_many_pages",
|
|
@@ -586,6 +835,7 @@ var zMediaGetResponse = z.object({
|
|
|
586
835
|
errors: z.array(z.object({
|
|
587
836
|
code: z.enum([
|
|
588
837
|
"media_unprobeable",
|
|
838
|
+
"media_format_indeterminate",
|
|
589
839
|
"media_too_large",
|
|
590
840
|
"media_aspect_ratio_unsupported",
|
|
591
841
|
"media_resolution_too_low",
|
|
@@ -604,6 +854,8 @@ var zMediaGetResponse = z.object({
|
|
|
604
854
|
"video_aspect_unsupported",
|
|
605
855
|
"video_duration_too_short",
|
|
606
856
|
"video_duration_exceeds_max",
|
|
857
|
+
"video_transform_failed",
|
|
858
|
+
"media_fetch_failed",
|
|
607
859
|
"document_format_unsupported",
|
|
608
860
|
"document_too_large",
|
|
609
861
|
"document_too_many_pages",
|
|
@@ -653,7 +905,8 @@ var zMediaUpdateResponse = z.object({
|
|
|
653
905
|
"video",
|
|
654
906
|
"gif",
|
|
655
907
|
"document"
|
|
656
|
-
]),
|
|
908
|
+
]).nullable(),
|
|
909
|
+
content_type: z.string().nullable(),
|
|
657
910
|
status: z.enum([
|
|
658
911
|
"uploading",
|
|
659
912
|
"processing",
|
|
@@ -664,6 +917,7 @@ var zMediaUpdateResponse = z.object({
|
|
|
664
917
|
error: z.object({
|
|
665
918
|
code: z.enum([
|
|
666
919
|
"media_unprobeable",
|
|
920
|
+
"media_format_indeterminate",
|
|
667
921
|
"media_too_large",
|
|
668
922
|
"media_aspect_ratio_unsupported",
|
|
669
923
|
"media_resolution_too_low",
|
|
@@ -682,6 +936,8 @@ var zMediaUpdateResponse = z.object({
|
|
|
682
936
|
"video_aspect_unsupported",
|
|
683
937
|
"video_duration_too_short",
|
|
684
938
|
"video_duration_exceeds_max",
|
|
939
|
+
"video_transform_failed",
|
|
940
|
+
"media_fetch_failed",
|
|
685
941
|
"document_format_unsupported",
|
|
686
942
|
"document_too_large",
|
|
687
943
|
"document_too_many_pages",
|
|
@@ -713,6 +969,7 @@ var zMediaUpdateResponse = z.object({
|
|
|
713
969
|
warnings: z.array(z.object({
|
|
714
970
|
code: z.enum([
|
|
715
971
|
"media_unprobeable",
|
|
972
|
+
"media_format_indeterminate",
|
|
716
973
|
"media_too_large",
|
|
717
974
|
"media_aspect_ratio_unsupported",
|
|
718
975
|
"media_resolution_too_low",
|
|
@@ -731,6 +988,8 @@ var zMediaUpdateResponse = z.object({
|
|
|
731
988
|
"video_aspect_unsupported",
|
|
732
989
|
"video_duration_too_short",
|
|
733
990
|
"video_duration_exceeds_max",
|
|
991
|
+
"video_transform_failed",
|
|
992
|
+
"media_fetch_failed",
|
|
734
993
|
"document_format_unsupported",
|
|
735
994
|
"document_too_large",
|
|
736
995
|
"document_too_many_pages",
|
|
@@ -744,6 +1003,7 @@ var zMediaUpdateResponse = z.object({
|
|
|
744
1003
|
errors: z.array(z.object({
|
|
745
1004
|
code: z.enum([
|
|
746
1005
|
"media_unprobeable",
|
|
1006
|
+
"media_format_indeterminate",
|
|
747
1007
|
"media_too_large",
|
|
748
1008
|
"media_aspect_ratio_unsupported",
|
|
749
1009
|
"media_resolution_too_low",
|
|
@@ -762,6 +1022,8 @@ var zMediaUpdateResponse = z.object({
|
|
|
762
1022
|
"video_aspect_unsupported",
|
|
763
1023
|
"video_duration_too_short",
|
|
764
1024
|
"video_duration_exceeds_max",
|
|
1025
|
+
"video_transform_failed",
|
|
1026
|
+
"media_fetch_failed",
|
|
765
1027
|
"document_format_unsupported",
|
|
766
1028
|
"document_too_large",
|
|
767
1029
|
"document_too_many_pages",
|
|
@@ -1050,6 +1312,38 @@ var zPostsCreateBody = z.object({
|
|
|
1050
1312
|
settings: z.object({
|
|
1051
1313
|
link: z.url().optional()
|
|
1052
1314
|
}).optional().default({})
|
|
1315
|
+
}),
|
|
1316
|
+
z.object({
|
|
1317
|
+
platform: z.literal("tiktok"),
|
|
1318
|
+
post_type: z.enum([
|
|
1319
|
+
"video",
|
|
1320
|
+
"single_image",
|
|
1321
|
+
"carousel"
|
|
1322
|
+
]),
|
|
1323
|
+
connection_id: z.string(),
|
|
1324
|
+
body: z.string().optional(),
|
|
1325
|
+
media: z.array(z.object({
|
|
1326
|
+
media_id: z.string(),
|
|
1327
|
+
crop_box: z.record(z.string(), z.unknown()).nullish(),
|
|
1328
|
+
alt_text_override: z.string().nullish()
|
|
1329
|
+
})).optional().default([]),
|
|
1330
|
+
settings: z.object({
|
|
1331
|
+
privacy_level: z.enum([
|
|
1332
|
+
"PUBLIC_TO_EVERYONE",
|
|
1333
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
1334
|
+
"FOLLOWER_OF_CREATOR",
|
|
1335
|
+
"SELF_ONLY"
|
|
1336
|
+
]).optional(),
|
|
1337
|
+
disable_comment: z.boolean().optional(),
|
|
1338
|
+
disable_duet: z.boolean().optional(),
|
|
1339
|
+
disable_stitch: z.boolean().optional(),
|
|
1340
|
+
video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
|
|
1341
|
+
photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
|
|
1342
|
+
auto_add_music: z.boolean().optional(),
|
|
1343
|
+
brand_content_toggle: z.boolean().optional(),
|
|
1344
|
+
brand_organic_toggle: z.boolean().optional(),
|
|
1345
|
+
is_aigc: z.boolean().optional()
|
|
1346
|
+
}).optional().default({})
|
|
1053
1347
|
})
|
|
1054
1348
|
])).min(1)
|
|
1055
1349
|
});
|
|
@@ -1373,6 +1667,38 @@ var zPostsUpdateBody = z.object({
|
|
|
1373
1667
|
settings: z.object({
|
|
1374
1668
|
link: z.url().optional()
|
|
1375
1669
|
}).optional().default({})
|
|
1670
|
+
}),
|
|
1671
|
+
z.object({
|
|
1672
|
+
platform: z.literal("tiktok"),
|
|
1673
|
+
post_type: z.enum([
|
|
1674
|
+
"video",
|
|
1675
|
+
"single_image",
|
|
1676
|
+
"carousel"
|
|
1677
|
+
]),
|
|
1678
|
+
connection_id: z.string(),
|
|
1679
|
+
body: z.string().optional(),
|
|
1680
|
+
media: z.array(z.object({
|
|
1681
|
+
media_id: z.string(),
|
|
1682
|
+
crop_box: z.record(z.string(), z.unknown()).nullish(),
|
|
1683
|
+
alt_text_override: z.string().nullish()
|
|
1684
|
+
})).optional().default([]),
|
|
1685
|
+
settings: z.object({
|
|
1686
|
+
privacy_level: z.enum([
|
|
1687
|
+
"PUBLIC_TO_EVERYONE",
|
|
1688
|
+
"MUTUAL_FOLLOW_FRIENDS",
|
|
1689
|
+
"FOLLOWER_OF_CREATOR",
|
|
1690
|
+
"SELF_ONLY"
|
|
1691
|
+
]).optional(),
|
|
1692
|
+
disable_comment: z.boolean().optional(),
|
|
1693
|
+
disable_duet: z.boolean().optional(),
|
|
1694
|
+
disable_stitch: z.boolean().optional(),
|
|
1695
|
+
video_cover_timestamp_ms: z.int().gte(0).lte(9007199254740991).optional(),
|
|
1696
|
+
photo_cover_index: z.int().gte(0).lte(9007199254740991).optional(),
|
|
1697
|
+
auto_add_music: z.boolean().optional(),
|
|
1698
|
+
brand_content_toggle: z.boolean().optional(),
|
|
1699
|
+
brand_organic_toggle: z.boolean().optional(),
|
|
1700
|
+
is_aigc: z.boolean().optional()
|
|
1701
|
+
}).optional().default({})
|
|
1376
1702
|
})
|
|
1377
1703
|
])).min(1).optional()
|
|
1378
1704
|
});
|
|
@@ -3158,6 +3484,6 @@ var zTokensMintResponse = z.object({
|
|
|
3158
3484
|
expires_at: z.string()
|
|
3159
3485
|
});
|
|
3160
3486
|
|
|
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-
|
|
3163
|
-
//# sourceMappingURL=chunk-
|
|
3487
|
+
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 };
|
|
3488
|
+
//# sourceMappingURL=chunk-VGR3BQCT.js.map
|
|
3489
|
+
//# sourceMappingURL=chunk-VGR3BQCT.js.map
|