@postrun/js 0.1.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.
@@ -0,0 +1,3163 @@
1
+ import * as z from 'zod';
2
+
3
+ // src/client/zod.gen.ts
4
+ var zErrorCode = z.enum([
5
+ "unauthorized",
6
+ "forbidden",
7
+ "not_found",
8
+ "conflict",
9
+ "validation_failed",
10
+ "rate_limited",
11
+ "internal_error",
12
+ "idempotency_key_invalid",
13
+ "idempotency_key_reused",
14
+ "idempotency_request_in_progress",
15
+ "source_url_unsupported",
16
+ "account_not_available",
17
+ "connection_reauth_required",
18
+ "connection_not_pending",
19
+ "not_implemented",
20
+ "media_processing",
21
+ "not_publishable",
22
+ "media_unprobeable",
23
+ "media_too_large",
24
+ "media_aspect_ratio_unsupported",
25
+ "media_resolution_too_low",
26
+ "media_gif_unsupported",
27
+ "media_format_recompressed",
28
+ "media_resolution_downscaled",
29
+ "video_container_unsupported",
30
+ "video_codec_unsupported",
31
+ "video_audio_codec_unsupported",
32
+ "video_too_large",
33
+ "video_too_small",
34
+ "video_dimensions_unsupported",
35
+ "video_dimensions_too_large",
36
+ "video_fps_unsupported",
37
+ "video_fps_too_low",
38
+ "video_aspect_unsupported",
39
+ "video_duration_too_short",
40
+ "video_duration_exceeds_max",
41
+ "document_format_unsupported",
42
+ "document_too_large",
43
+ "document_too_many_pages",
44
+ "media_count_invalid",
45
+ "body_too_long",
46
+ "content_missing",
47
+ "content_conflict",
48
+ "content_incomplete",
49
+ "content_kind_mismatch",
50
+ "media_type_mismatch",
51
+ "tag_limit_exceeded",
52
+ "reel_field_on_non_reel",
53
+ "media_not_ready",
54
+ "media_failed",
55
+ "media_unsupported",
56
+ "media_kind_mismatch",
57
+ "publishing_unavailable",
58
+ "x_duplicate_content",
59
+ "x_not_authorized",
60
+ "x_rate_limited",
61
+ "x_publish_failed",
62
+ "x_media_upload_failed",
63
+ "linkedin_duplicate_content",
64
+ "linkedin_auth_expired",
65
+ "linkedin_permission_denied",
66
+ "linkedin_media_processing",
67
+ "linkedin_media_upload_failed",
68
+ "linkedin_publish_failed",
69
+ "instagram_media_processing",
70
+ "instagram_container_expired",
71
+ "instagram_container_failed",
72
+ "instagram_rate_limited",
73
+ "instagram_not_authorized",
74
+ "instagram_publish_failed",
75
+ "facebook_reel_processing",
76
+ "facebook_reel_failed",
77
+ "facebook_rate_limited",
78
+ "facebook_not_authorized",
79
+ "facebook_publish_failed",
80
+ "connection_platform_mismatch"
81
+ ]);
82
+ var zProfilesListQuery = z.object({
83
+ limit: z.int().gte(1).lte(100).optional().default(20),
84
+ offset: z.int().gte(0).lte(9007199254740991).optional().default(0),
85
+ external_id: z.string().optional(),
86
+ metadata: z.record(z.string(), z.union([
87
+ z.string().max(500),
88
+ z.number(),
89
+ z.boolean()
90
+ ])).optional()
91
+ });
92
+ var zProfilesListResponse = z.object({
93
+ object: z.literal("list"),
94
+ data: z.array(z.object({
95
+ id: z.string(),
96
+ name: z.string(),
97
+ description: z.string().nullable(),
98
+ external_id: z.string().nullable(),
99
+ metadata: z.record(z.string(), z.union([
100
+ z.string().max(500),
101
+ z.number(),
102
+ z.boolean()
103
+ ])),
104
+ created_at: z.string().nullable(),
105
+ updated_at: z.string().nullable()
106
+ })),
107
+ total: z.int().gte(-9007199254740991).lte(9007199254740991),
108
+ limit: z.int().gte(-9007199254740991).lte(9007199254740991),
109
+ offset: z.int().gte(-9007199254740991).lte(9007199254740991),
110
+ has_more: z.boolean()
111
+ });
112
+ var zProfilesCreateBody = z.object({
113
+ name: z.string().min(1).max(255),
114
+ description: z.string().max(280).optional(),
115
+ external_id: z.string().min(1).max(255).optional(),
116
+ metadata: z.record(z.string(), z.union([
117
+ z.string().max(500),
118
+ z.number(),
119
+ z.boolean()
120
+ ])).optional()
121
+ });
122
+ var zProfilesCreateResponse = z.object({
123
+ id: z.string(),
124
+ name: z.string(),
125
+ description: z.string().nullable(),
126
+ external_id: z.string().nullable(),
127
+ metadata: z.record(z.string(), z.union([
128
+ z.string().max(500),
129
+ z.number(),
130
+ z.boolean()
131
+ ])),
132
+ created_at: z.string().nullable(),
133
+ updated_at: z.string().nullable()
134
+ });
135
+ var zProfilesDeletePath = z.object({
136
+ id: z.string()
137
+ });
138
+ var zProfilesDeleteResponse = z.object({
139
+ id: z.string(),
140
+ object: z.literal("profile"),
141
+ deleted: z.literal(true)
142
+ });
143
+ var zProfilesGetPath = z.object({
144
+ id: z.string()
145
+ });
146
+ var zProfilesGetResponse = z.object({
147
+ id: z.string(),
148
+ name: z.string(),
149
+ description: z.string().nullable(),
150
+ external_id: z.string().nullable(),
151
+ metadata: z.record(z.string(), z.union([
152
+ z.string().max(500),
153
+ z.number(),
154
+ z.boolean()
155
+ ])),
156
+ created_at: z.string().nullable(),
157
+ updated_at: z.string().nullable()
158
+ });
159
+ var zProfilesUpdateBody = z.object({
160
+ name: z.string().min(1).max(255).optional(),
161
+ description: z.string().max(280).nullish(),
162
+ external_id: z.string().min(1).max(255).optional(),
163
+ metadata: z.record(z.string(), z.union([
164
+ z.string().max(500),
165
+ z.number(),
166
+ z.boolean()
167
+ ])).optional()
168
+ });
169
+ var zProfilesUpdatePath = z.object({
170
+ id: z.string()
171
+ });
172
+ var zProfilesUpdateResponse = z.object({
173
+ id: z.string(),
174
+ name: z.string(),
175
+ description: z.string().nullable(),
176
+ external_id: z.string().nullable(),
177
+ metadata: z.record(z.string(), z.union([
178
+ z.string().max(500),
179
+ z.number(),
180
+ z.boolean()
181
+ ])),
182
+ created_at: z.string().nullable(),
183
+ updated_at: z.string().nullable()
184
+ });
185
+ var zConnectionsListByProfilePath = z.object({
186
+ id: z.string()
187
+ });
188
+ var zConnectionsListByProfileQuery = z.object({
189
+ limit: z.int().gte(1).lte(100).optional().default(20),
190
+ offset: z.int().gte(0).lte(9007199254740991).optional().default(0)
191
+ });
192
+ var zConnectionsListByProfileResponse = z.object({
193
+ object: z.literal("list"),
194
+ data: z.array(z.object({
195
+ id: z.string(),
196
+ profile_id: z.string(),
197
+ platform: z.enum([
198
+ "meta_ads",
199
+ "google_ads",
200
+ "tiktok_ads",
201
+ "x",
202
+ "linkedin",
203
+ "facebook_page",
204
+ "instagram",
205
+ "tiktok"
206
+ ]),
207
+ external_account_id: z.string().nullable(),
208
+ external_account_name: z.string().nullable(),
209
+ currency: z.string().nullable(),
210
+ created_at: z.string().nullable(),
211
+ updated_at: z.string().nullable()
212
+ })),
213
+ total: z.int().gte(-9007199254740991).lte(9007199254740991),
214
+ limit: z.int().gte(-9007199254740991).lte(9007199254740991),
215
+ offset: z.int().gte(-9007199254740991).lte(9007199254740991),
216
+ has_more: z.boolean()
217
+ });
218
+ var zConnectionsDeletePath = z.object({
219
+ id: z.string()
220
+ });
221
+ var zConnectionsDeleteResponse = z.object({
222
+ id: z.string(),
223
+ object: z.literal("connection"),
224
+ deleted: z.literal(true)
225
+ });
226
+ var zConnectionsGetPath = z.object({
227
+ id: z.string()
228
+ });
229
+ var zConnectionsGetResponse = z.object({
230
+ id: z.string(),
231
+ profile_id: z.string(),
232
+ platform: z.enum([
233
+ "meta_ads",
234
+ "google_ads",
235
+ "tiktok_ads",
236
+ "x",
237
+ "linkedin",
238
+ "facebook_page",
239
+ "instagram",
240
+ "tiktok"
241
+ ]),
242
+ external_account_id: z.string().nullable(),
243
+ external_account_name: z.string().nullable(),
244
+ currency: z.string().nullable(),
245
+ created_at: z.string().nullable(),
246
+ updated_at: z.string().nullable()
247
+ });
248
+ var zConnectionsSelectBody = z.object({
249
+ external_account_id: z.string().min(1)
250
+ });
251
+ var zConnectionsSelectPath = z.object({
252
+ id: z.string()
253
+ });
254
+ var zConnectionsSelectResponse = z.object({
255
+ id: z.string(),
256
+ profile_id: z.string(),
257
+ platform: z.enum([
258
+ "meta_ads",
259
+ "google_ads",
260
+ "tiktok_ads",
261
+ "x",
262
+ "linkedin",
263
+ "facebook_page",
264
+ "instagram",
265
+ "tiktok"
266
+ ]),
267
+ external_account_id: z.string().nullable(),
268
+ external_account_name: z.string().nullable(),
269
+ currency: z.string().nullable(),
270
+ created_at: z.string().nullable(),
271
+ updated_at: z.string().nullable()
272
+ });
273
+ var zConnectionsListAccountsPath = z.object({
274
+ id: z.string()
275
+ });
276
+ var zConnectionsListAccountsResponse = z.object({
277
+ object: z.literal("list"),
278
+ data: z.array(z.object({
279
+ external_account_id: z.string(),
280
+ name: z.string().nullable(),
281
+ currency: z.string().nullable(),
282
+ instagram: z.object({
283
+ external_account_id: z.string(),
284
+ name: z.string().nullable()
285
+ }).nullish()
286
+ }))
287
+ });
288
+ var zConnectionsConnectBody = z.object({
289
+ platform: z.enum([
290
+ "meta_ads",
291
+ "google_ads",
292
+ "tiktok_ads",
293
+ "x",
294
+ "linkedin",
295
+ "facebook_page",
296
+ "tiktok"
297
+ ])
298
+ });
299
+ var zConnectionsConnectPath = z.object({
300
+ id: z.string()
301
+ });
302
+ var zConnectionsConnectResponse = z.object({
303
+ connect_session_token: z.string(),
304
+ connect_url: z.string(),
305
+ expires_at: z.string()
306
+ });
307
+ var zMediaCreateBody = z.object({
308
+ profile_id: z.string(),
309
+ kind: z.enum([
310
+ "image",
311
+ "video",
312
+ "gif",
313
+ "document"
314
+ ]),
315
+ 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
+ source_url: z.url().optional(),
317
+ targets: z.array(z.enum([
318
+ "x",
319
+ "linkedin",
320
+ "facebook_page",
321
+ "instagram",
322
+ "tiktok",
323
+ "google_ads"
324
+ ])).min(1).optional(),
325
+ raw: z.boolean().optional().default(false),
326
+ alt_text: z.string().max(1e3).optional(),
327
+ external_id: z.string().min(1).max(255).optional(),
328
+ metadata: z.record(z.string(), z.union([
329
+ z.string().max(500),
330
+ z.number(),
331
+ z.boolean()
332
+ ])).optional()
333
+ });
334
+ var zMediaCreateResponse = z.object({
335
+ id: z.string(),
336
+ object: z.literal("media"),
337
+ profile_id: z.string(),
338
+ kind: z.enum([
339
+ "image",
340
+ "video",
341
+ "gif",
342
+ "document"
343
+ ]),
344
+ status: z.enum([
345
+ "uploading",
346
+ "processing",
347
+ "ready",
348
+ "failed"
349
+ ]),
350
+ raw: z.boolean(),
351
+ error: z.object({
352
+ code: z.enum([
353
+ "media_unprobeable",
354
+ "media_too_large",
355
+ "media_aspect_ratio_unsupported",
356
+ "media_resolution_too_low",
357
+ "media_gif_unsupported",
358
+ "media_format_recompressed",
359
+ "media_resolution_downscaled",
360
+ "video_container_unsupported",
361
+ "video_codec_unsupported",
362
+ "video_audio_codec_unsupported",
363
+ "video_too_large",
364
+ "video_too_small",
365
+ "video_dimensions_unsupported",
366
+ "video_dimensions_too_large",
367
+ "video_fps_unsupported",
368
+ "video_fps_too_low",
369
+ "video_aspect_unsupported",
370
+ "video_duration_too_short",
371
+ "video_duration_exceeds_max",
372
+ "document_format_unsupported",
373
+ "document_too_large",
374
+ "document_too_many_pages",
375
+ "media_unsupported"
376
+ ]),
377
+ message: z.string(),
378
+ hint: z.string().optional(),
379
+ allowed: z.array(z.string()).optional(),
380
+ got: z.string().optional()
381
+ }).nullable(),
382
+ source: z.object({
383
+ format: z.string(),
384
+ bytes: z.int().gte(0).lte(9007199254740991),
385
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
386
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
387
+ duration_ms: z.int().gte(0).lte(9007199254740991).nullable()
388
+ }).nullable(),
389
+ alt_text: z.string().max(1e3).nullable(),
390
+ per_platform: z.record(z.string(), z.object({
391
+ status: z.enum([
392
+ "processing",
393
+ "ready",
394
+ "failed"
395
+ ]),
396
+ url: z.string().nullable(),
397
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
398
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
399
+ bytes: z.int().gte(0).lte(9007199254740991).nullable(),
400
+ warnings: z.array(z.object({
401
+ code: z.enum([
402
+ "media_unprobeable",
403
+ "media_too_large",
404
+ "media_aspect_ratio_unsupported",
405
+ "media_resolution_too_low",
406
+ "media_gif_unsupported",
407
+ "media_format_recompressed",
408
+ "media_resolution_downscaled",
409
+ "video_container_unsupported",
410
+ "video_codec_unsupported",
411
+ "video_audio_codec_unsupported",
412
+ "video_too_large",
413
+ "video_too_small",
414
+ "video_dimensions_unsupported",
415
+ "video_dimensions_too_large",
416
+ "video_fps_unsupported",
417
+ "video_fps_too_low",
418
+ "video_aspect_unsupported",
419
+ "video_duration_too_short",
420
+ "video_duration_exceeds_max",
421
+ "document_format_unsupported",
422
+ "document_too_large",
423
+ "document_too_many_pages",
424
+ "media_unsupported"
425
+ ]),
426
+ message: z.string(),
427
+ hint: z.string().optional(),
428
+ allowed: z.array(z.string()).optional(),
429
+ got: z.string().optional()
430
+ })),
431
+ errors: z.array(z.object({
432
+ code: z.enum([
433
+ "media_unprobeable",
434
+ "media_too_large",
435
+ "media_aspect_ratio_unsupported",
436
+ "media_resolution_too_low",
437
+ "media_gif_unsupported",
438
+ "media_format_recompressed",
439
+ "media_resolution_downscaled",
440
+ "video_container_unsupported",
441
+ "video_codec_unsupported",
442
+ "video_audio_codec_unsupported",
443
+ "video_too_large",
444
+ "video_too_small",
445
+ "video_dimensions_unsupported",
446
+ "video_dimensions_too_large",
447
+ "video_fps_unsupported",
448
+ "video_fps_too_low",
449
+ "video_aspect_unsupported",
450
+ "video_duration_too_short",
451
+ "video_duration_exceeds_max",
452
+ "document_format_unsupported",
453
+ "document_too_large",
454
+ "document_too_many_pages",
455
+ "media_unsupported"
456
+ ]),
457
+ message: z.string(),
458
+ hint: z.string().optional(),
459
+ allowed: z.array(z.string()).optional(),
460
+ got: z.string().optional()
461
+ }))
462
+ })),
463
+ external_id: z.string().nullable(),
464
+ metadata: z.record(z.string(), z.union([
465
+ z.string().max(500),
466
+ z.number(),
467
+ z.boolean()
468
+ ])),
469
+ created_at: z.string(),
470
+ updated_at: z.string(),
471
+ upload: z.object({
472
+ url: z.url(),
473
+ method: z.literal("PUT"),
474
+ headers: z.record(z.string(), z.string()),
475
+ expires_at: z.string()
476
+ }).nullable()
477
+ });
478
+ var zMediaDeletePath = z.object({
479
+ id: z.string()
480
+ });
481
+ var zMediaDeleteResponse = z.object({
482
+ id: z.string(),
483
+ object: z.literal("media"),
484
+ deleted: z.literal(true)
485
+ });
486
+ var zMediaGetPath = z.object({
487
+ id: z.string()
488
+ });
489
+ var zMediaGetResponse = z.object({
490
+ id: z.string(),
491
+ object: z.literal("media"),
492
+ profile_id: z.string(),
493
+ kind: z.enum([
494
+ "image",
495
+ "video",
496
+ "gif",
497
+ "document"
498
+ ]),
499
+ status: z.enum([
500
+ "uploading",
501
+ "processing",
502
+ "ready",
503
+ "failed"
504
+ ]),
505
+ raw: z.boolean(),
506
+ error: z.object({
507
+ code: z.enum([
508
+ "media_unprobeable",
509
+ "media_too_large",
510
+ "media_aspect_ratio_unsupported",
511
+ "media_resolution_too_low",
512
+ "media_gif_unsupported",
513
+ "media_format_recompressed",
514
+ "media_resolution_downscaled",
515
+ "video_container_unsupported",
516
+ "video_codec_unsupported",
517
+ "video_audio_codec_unsupported",
518
+ "video_too_large",
519
+ "video_too_small",
520
+ "video_dimensions_unsupported",
521
+ "video_dimensions_too_large",
522
+ "video_fps_unsupported",
523
+ "video_fps_too_low",
524
+ "video_aspect_unsupported",
525
+ "video_duration_too_short",
526
+ "video_duration_exceeds_max",
527
+ "document_format_unsupported",
528
+ "document_too_large",
529
+ "document_too_many_pages",
530
+ "media_unsupported"
531
+ ]),
532
+ message: z.string(),
533
+ hint: z.string().optional(),
534
+ allowed: z.array(z.string()).optional(),
535
+ got: z.string().optional()
536
+ }).nullable(),
537
+ source: z.object({
538
+ format: z.string(),
539
+ bytes: z.int().gte(0).lte(9007199254740991),
540
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
541
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
542
+ duration_ms: z.int().gte(0).lte(9007199254740991).nullable()
543
+ }).nullable(),
544
+ alt_text: z.string().max(1e3).nullable(),
545
+ per_platform: z.record(z.string(), z.object({
546
+ status: z.enum([
547
+ "processing",
548
+ "ready",
549
+ "failed"
550
+ ]),
551
+ url: z.string().nullable(),
552
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
553
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
554
+ bytes: z.int().gte(0).lte(9007199254740991).nullable(),
555
+ warnings: z.array(z.object({
556
+ code: z.enum([
557
+ "media_unprobeable",
558
+ "media_too_large",
559
+ "media_aspect_ratio_unsupported",
560
+ "media_resolution_too_low",
561
+ "media_gif_unsupported",
562
+ "media_format_recompressed",
563
+ "media_resolution_downscaled",
564
+ "video_container_unsupported",
565
+ "video_codec_unsupported",
566
+ "video_audio_codec_unsupported",
567
+ "video_too_large",
568
+ "video_too_small",
569
+ "video_dimensions_unsupported",
570
+ "video_dimensions_too_large",
571
+ "video_fps_unsupported",
572
+ "video_fps_too_low",
573
+ "video_aspect_unsupported",
574
+ "video_duration_too_short",
575
+ "video_duration_exceeds_max",
576
+ "document_format_unsupported",
577
+ "document_too_large",
578
+ "document_too_many_pages",
579
+ "media_unsupported"
580
+ ]),
581
+ message: z.string(),
582
+ hint: z.string().optional(),
583
+ allowed: z.array(z.string()).optional(),
584
+ got: z.string().optional()
585
+ })),
586
+ errors: z.array(z.object({
587
+ code: z.enum([
588
+ "media_unprobeable",
589
+ "media_too_large",
590
+ "media_aspect_ratio_unsupported",
591
+ "media_resolution_too_low",
592
+ "media_gif_unsupported",
593
+ "media_format_recompressed",
594
+ "media_resolution_downscaled",
595
+ "video_container_unsupported",
596
+ "video_codec_unsupported",
597
+ "video_audio_codec_unsupported",
598
+ "video_too_large",
599
+ "video_too_small",
600
+ "video_dimensions_unsupported",
601
+ "video_dimensions_too_large",
602
+ "video_fps_unsupported",
603
+ "video_fps_too_low",
604
+ "video_aspect_unsupported",
605
+ "video_duration_too_short",
606
+ "video_duration_exceeds_max",
607
+ "document_format_unsupported",
608
+ "document_too_large",
609
+ "document_too_many_pages",
610
+ "media_unsupported"
611
+ ]),
612
+ message: z.string(),
613
+ hint: z.string().optional(),
614
+ allowed: z.array(z.string()).optional(),
615
+ got: z.string().optional()
616
+ }))
617
+ })),
618
+ external_id: z.string().nullable(),
619
+ metadata: z.record(z.string(), z.union([
620
+ z.string().max(500),
621
+ z.number(),
622
+ z.boolean()
623
+ ])),
624
+ created_at: z.string(),
625
+ updated_at: z.string()
626
+ });
627
+ var zMediaUpdateBody = z.object({
628
+ alt_text: z.string().max(1e3).nullish(),
629
+ external_id: z.string().min(1).max(255).nullish(),
630
+ metadata: z.record(z.string(), z.union([
631
+ z.string().max(500),
632
+ z.number(),
633
+ z.boolean()
634
+ ])).optional(),
635
+ targets: z.array(z.enum([
636
+ "x",
637
+ "linkedin",
638
+ "facebook_page",
639
+ "instagram",
640
+ "tiktok",
641
+ "google_ads"
642
+ ])).min(1).optional()
643
+ });
644
+ var zMediaUpdatePath = z.object({
645
+ id: z.string()
646
+ });
647
+ var zMediaUpdateResponse = z.object({
648
+ id: z.string(),
649
+ object: z.literal("media"),
650
+ profile_id: z.string(),
651
+ kind: z.enum([
652
+ "image",
653
+ "video",
654
+ "gif",
655
+ "document"
656
+ ]),
657
+ status: z.enum([
658
+ "uploading",
659
+ "processing",
660
+ "ready",
661
+ "failed"
662
+ ]),
663
+ raw: z.boolean(),
664
+ error: z.object({
665
+ code: z.enum([
666
+ "media_unprobeable",
667
+ "media_too_large",
668
+ "media_aspect_ratio_unsupported",
669
+ "media_resolution_too_low",
670
+ "media_gif_unsupported",
671
+ "media_format_recompressed",
672
+ "media_resolution_downscaled",
673
+ "video_container_unsupported",
674
+ "video_codec_unsupported",
675
+ "video_audio_codec_unsupported",
676
+ "video_too_large",
677
+ "video_too_small",
678
+ "video_dimensions_unsupported",
679
+ "video_dimensions_too_large",
680
+ "video_fps_unsupported",
681
+ "video_fps_too_low",
682
+ "video_aspect_unsupported",
683
+ "video_duration_too_short",
684
+ "video_duration_exceeds_max",
685
+ "document_format_unsupported",
686
+ "document_too_large",
687
+ "document_too_many_pages",
688
+ "media_unsupported"
689
+ ]),
690
+ message: z.string(),
691
+ hint: z.string().optional(),
692
+ allowed: z.array(z.string()).optional(),
693
+ got: z.string().optional()
694
+ }).nullable(),
695
+ source: z.object({
696
+ format: z.string(),
697
+ bytes: z.int().gte(0).lte(9007199254740991),
698
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
699
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
700
+ duration_ms: z.int().gte(0).lte(9007199254740991).nullable()
701
+ }).nullable(),
702
+ alt_text: z.string().max(1e3).nullable(),
703
+ per_platform: z.record(z.string(), z.object({
704
+ status: z.enum([
705
+ "processing",
706
+ "ready",
707
+ "failed"
708
+ ]),
709
+ url: z.string().nullable(),
710
+ width: z.int().gt(0).lte(9007199254740991).nullable(),
711
+ height: z.int().gt(0).lte(9007199254740991).nullable(),
712
+ bytes: z.int().gte(0).lte(9007199254740991).nullable(),
713
+ warnings: z.array(z.object({
714
+ code: z.enum([
715
+ "media_unprobeable",
716
+ "media_too_large",
717
+ "media_aspect_ratio_unsupported",
718
+ "media_resolution_too_low",
719
+ "media_gif_unsupported",
720
+ "media_format_recompressed",
721
+ "media_resolution_downscaled",
722
+ "video_container_unsupported",
723
+ "video_codec_unsupported",
724
+ "video_audio_codec_unsupported",
725
+ "video_too_large",
726
+ "video_too_small",
727
+ "video_dimensions_unsupported",
728
+ "video_dimensions_too_large",
729
+ "video_fps_unsupported",
730
+ "video_fps_too_low",
731
+ "video_aspect_unsupported",
732
+ "video_duration_too_short",
733
+ "video_duration_exceeds_max",
734
+ "document_format_unsupported",
735
+ "document_too_large",
736
+ "document_too_many_pages",
737
+ "media_unsupported"
738
+ ]),
739
+ message: z.string(),
740
+ hint: z.string().optional(),
741
+ allowed: z.array(z.string()).optional(),
742
+ got: z.string().optional()
743
+ })),
744
+ errors: z.array(z.object({
745
+ code: z.enum([
746
+ "media_unprobeable",
747
+ "media_too_large",
748
+ "media_aspect_ratio_unsupported",
749
+ "media_resolution_too_low",
750
+ "media_gif_unsupported",
751
+ "media_format_recompressed",
752
+ "media_resolution_downscaled",
753
+ "video_container_unsupported",
754
+ "video_codec_unsupported",
755
+ "video_audio_codec_unsupported",
756
+ "video_too_large",
757
+ "video_too_small",
758
+ "video_dimensions_unsupported",
759
+ "video_dimensions_too_large",
760
+ "video_fps_unsupported",
761
+ "video_fps_too_low",
762
+ "video_aspect_unsupported",
763
+ "video_duration_too_short",
764
+ "video_duration_exceeds_max",
765
+ "document_format_unsupported",
766
+ "document_too_large",
767
+ "document_too_many_pages",
768
+ "media_unsupported"
769
+ ]),
770
+ message: z.string(),
771
+ hint: z.string().optional(),
772
+ allowed: z.array(z.string()).optional(),
773
+ got: z.string().optional()
774
+ }))
775
+ })),
776
+ external_id: z.string().nullable(),
777
+ metadata: z.record(z.string(), z.union([
778
+ z.string().max(500),
779
+ z.number(),
780
+ z.boolean()
781
+ ])),
782
+ created_at: z.string(),
783
+ updated_at: z.string()
784
+ });
785
+ var zPostsListQuery = z.object({
786
+ limit: z.int().gte(1).lte(100).optional().default(20),
787
+ offset: z.int().gte(0).lte(9007199254740991).optional().default(0),
788
+ profile_id: z.string().optional(),
789
+ external_id: z.string().optional(),
790
+ metadata: z.record(z.string(), z.union([
791
+ z.string().max(500),
792
+ z.number(),
793
+ z.boolean()
794
+ ])).optional(),
795
+ scheduled_after: z.iso.datetime().optional(),
796
+ scheduled_before: z.iso.datetime().optional(),
797
+ updated_after: z.iso.datetime().optional(),
798
+ status: z.array(z.enum([
799
+ "draft",
800
+ "scheduled",
801
+ "publishing",
802
+ "partially_published",
803
+ "published",
804
+ "failed"
805
+ ])).optional()
806
+ });
807
+ var zPostsListResponse = z.object({
808
+ object: z.literal("list"),
809
+ data: z.array(z.object({
810
+ id: z.string(),
811
+ object: z.literal("post"),
812
+ profile_id: z.string(),
813
+ external_id: z.string().nullable(),
814
+ status: z.enum([
815
+ "draft",
816
+ "scheduled",
817
+ "publishing",
818
+ "partially_published",
819
+ "published",
820
+ "failed"
821
+ ]),
822
+ schedule_at: z.string().nullable(),
823
+ tags: z.array(z.string()),
824
+ notes: z.string().nullable(),
825
+ metadata: z.record(z.string(), z.union([
826
+ z.string().max(500),
827
+ z.number(),
828
+ z.boolean()
829
+ ])),
830
+ variants: z.array(z.object({
831
+ id: z.string(),
832
+ object: z.literal("post_variant"),
833
+ connection_id: z.string(),
834
+ platform: z.enum([
835
+ "x",
836
+ "linkedin",
837
+ "facebook_page",
838
+ "instagram",
839
+ "tiktok"
840
+ ]),
841
+ post_type: z.enum([
842
+ "text",
843
+ "single_image",
844
+ "multi_image",
845
+ "video",
846
+ "reel",
847
+ "carousel"
848
+ ]),
849
+ body: z.string().nullable(),
850
+ status: z.enum([
851
+ "draft",
852
+ "scheduled",
853
+ "publishing",
854
+ "published",
855
+ "failed"
856
+ ]),
857
+ settings: z.record(z.string(), z.unknown()),
858
+ schedule_at: z.string().nullable(),
859
+ result: z.object({
860
+ platform_post_id: z.string(),
861
+ permalink: z.string().nullable(),
862
+ published_at: z.string()
863
+ }).nullable(),
864
+ error: z.object({
865
+ code: z.string(),
866
+ message: z.string()
867
+ }).nullable(),
868
+ media: z.array(z.object({
869
+ media_id: z.string(),
870
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
871
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
872
+ alt_text_override: z.string().nullable()
873
+ }))
874
+ })),
875
+ created_at: z.string(),
876
+ updated_at: z.string()
877
+ })),
878
+ total: z.int().gte(-9007199254740991).lte(9007199254740991),
879
+ limit: z.int().gte(-9007199254740991).lte(9007199254740991),
880
+ offset: z.int().gte(-9007199254740991).lte(9007199254740991),
881
+ has_more: z.boolean()
882
+ });
883
+ var zPostsCreateBody = z.object({
884
+ profile_id: z.string(),
885
+ publish: z.enum([
886
+ "now",
887
+ "schedule",
888
+ "draft"
889
+ ]).optional().default("draft"),
890
+ schedule_at: z.iso.datetime().optional(),
891
+ external_id: z.string().min(1).max(255).optional(),
892
+ metadata: z.record(z.string(), z.union([
893
+ z.string().max(500),
894
+ z.number(),
895
+ z.boolean()
896
+ ])).optional(),
897
+ tags: z.array(z.string()).optional(),
898
+ notes: z.string().optional(),
899
+ dry_run: z.boolean().optional().default(false),
900
+ variants: z.array(z.union([
901
+ z.object({
902
+ platform: z.literal("x"),
903
+ post_type: z.enum([
904
+ "text",
905
+ "single_image",
906
+ "multi_image",
907
+ "video"
908
+ ]),
909
+ connection_id: z.string(),
910
+ body: z.string().optional(),
911
+ media: z.array(z.object({
912
+ media_id: z.string(),
913
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
914
+ alt_text_override: z.string().nullish()
915
+ })).optional().default([]),
916
+ settings: z.object({
917
+ reply_settings: z.enum([
918
+ "everyone",
919
+ "following",
920
+ "mentionedUsers",
921
+ "subscribers",
922
+ "verified"
923
+ ]).optional(),
924
+ quote_tweet_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
925
+ poll: z.object({
926
+ options: z.array(z.string().min(1).max(25)).min(2).max(4),
927
+ duration_minutes: z.int().gte(5).lte(10080),
928
+ reply_settings: z.enum([
929
+ "following",
930
+ "mentionedUsers",
931
+ "subscribers",
932
+ "verified"
933
+ ]).optional()
934
+ }).optional(),
935
+ reply: z.object({
936
+ in_reply_to_tweet_id: z.string().regex(/^[0-9]{1,19}$/),
937
+ exclude_reply_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).optional(),
938
+ auto_populate_reply_metadata: z.boolean().optional()
939
+ }).optional(),
940
+ community_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
941
+ for_super_followers_only: z.boolean().optional(),
942
+ geo: z.object({
943
+ place_id: z.string()
944
+ }).optional(),
945
+ card_uri: z.string().optional(),
946
+ media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
947
+ }).optional().default({})
948
+ }),
949
+ z.object({
950
+ platform: z.literal("linkedin"),
951
+ post_type: z.enum([
952
+ "text",
953
+ "single_image",
954
+ "multi_image",
955
+ "video"
956
+ ]),
957
+ connection_id: z.string(),
958
+ body: z.string().optional(),
959
+ media: z.array(z.object({
960
+ media_id: z.string(),
961
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
962
+ alt_text_override: z.string().nullish()
963
+ })).optional().default([]),
964
+ settings: z.object({
965
+ visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
966
+ content_kind: z.enum([
967
+ "text",
968
+ "single_image",
969
+ "video",
970
+ "multi_image",
971
+ "document",
972
+ "article",
973
+ "poll"
974
+ ]),
975
+ article: z.object({
976
+ source: z.url(),
977
+ title: z.string().max(400).optional(),
978
+ description: z.string().max(4086).optional(),
979
+ thumbnail_media_id: z.string().optional()
980
+ }).optional(),
981
+ poll: z.object({
982
+ question: z.string().min(1).max(140),
983
+ options: z.array(z.string().min(1).max(30)).min(2).max(4),
984
+ duration: z.enum([
985
+ "ONE_DAY",
986
+ "THREE_DAYS",
987
+ "SEVEN_DAYS",
988
+ "FOURTEEN_DAYS"
989
+ ])
990
+ }).optional(),
991
+ document: z.object({
992
+ title: z.string().min(1).max(400)
993
+ }).optional(),
994
+ disable_reshare: z.boolean().optional(),
995
+ mentions: z.array(z.object({
996
+ type: z.enum(["person", "organization"]),
997
+ name: z.string().min(1),
998
+ urn: z.string().regex(/^urn:li:(person|organization):/)
999
+ })).optional()
1000
+ })
1001
+ }),
1002
+ z.object({
1003
+ platform: z.literal("instagram"),
1004
+ post_type: z.enum([
1005
+ "single_image",
1006
+ "carousel",
1007
+ "reel"
1008
+ ]),
1009
+ connection_id: z.string(),
1010
+ body: z.string().optional(),
1011
+ media: z.array(z.object({
1012
+ media_id: z.string(),
1013
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1014
+ alt_text_override: z.string().nullish()
1015
+ })).optional().default([]),
1016
+ settings: z.object({
1017
+ media_type: z.enum([
1018
+ "IMAGE",
1019
+ "CAROUSEL",
1020
+ "REELS"
1021
+ ]).optional(),
1022
+ location_id: z.string().optional(),
1023
+ user_tags: z.array(z.object({
1024
+ username: z.string().min(1),
1025
+ x: z.number().gte(0).lte(1),
1026
+ y: z.number().gte(0).lte(1)
1027
+ })).optional(),
1028
+ collaborators: z.array(z.string().min(1)).max(3).optional(),
1029
+ share_to_feed: z.boolean().optional(),
1030
+ thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1031
+ cover_url: z.url().optional(),
1032
+ audio_name: z.string().optional()
1033
+ })
1034
+ }),
1035
+ z.object({
1036
+ platform: z.literal("facebook_page"),
1037
+ post_type: z.enum([
1038
+ "text",
1039
+ "single_image",
1040
+ "multi_image",
1041
+ "reel"
1042
+ ]),
1043
+ connection_id: z.string(),
1044
+ body: z.string().optional(),
1045
+ media: z.array(z.object({
1046
+ media_id: z.string(),
1047
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1048
+ alt_text_override: z.string().nullish()
1049
+ })).optional().default([]),
1050
+ settings: z.object({
1051
+ link: z.url().optional()
1052
+ }).optional().default({})
1053
+ })
1054
+ ])).min(1)
1055
+ });
1056
+ var zPostsCreateResponse = z.object({
1057
+ id: z.string(),
1058
+ object: z.literal("post"),
1059
+ profile_id: z.string(),
1060
+ external_id: z.string().nullable(),
1061
+ status: z.enum([
1062
+ "draft",
1063
+ "scheduled",
1064
+ "publishing",
1065
+ "partially_published",
1066
+ "published",
1067
+ "failed"
1068
+ ]),
1069
+ schedule_at: z.string().nullable(),
1070
+ tags: z.array(z.string()),
1071
+ notes: z.string().nullable(),
1072
+ metadata: z.record(z.string(), z.union([
1073
+ z.string().max(500),
1074
+ z.number(),
1075
+ z.boolean()
1076
+ ])),
1077
+ variants: z.array(z.object({
1078
+ id: z.string(),
1079
+ object: z.literal("post_variant"),
1080
+ connection_id: z.string(),
1081
+ platform: z.enum([
1082
+ "x",
1083
+ "linkedin",
1084
+ "facebook_page",
1085
+ "instagram",
1086
+ "tiktok"
1087
+ ]),
1088
+ post_type: z.enum([
1089
+ "text",
1090
+ "single_image",
1091
+ "multi_image",
1092
+ "video",
1093
+ "reel",
1094
+ "carousel"
1095
+ ]),
1096
+ body: z.string().nullable(),
1097
+ status: z.enum([
1098
+ "draft",
1099
+ "scheduled",
1100
+ "publishing",
1101
+ "published",
1102
+ "failed"
1103
+ ]),
1104
+ settings: z.record(z.string(), z.unknown()),
1105
+ schedule_at: z.string().nullable(),
1106
+ result: z.object({
1107
+ platform_post_id: z.string(),
1108
+ permalink: z.string().nullable(),
1109
+ published_at: z.string()
1110
+ }).nullable(),
1111
+ error: z.object({
1112
+ code: z.string(),
1113
+ message: z.string()
1114
+ }).nullable(),
1115
+ media: z.array(z.object({
1116
+ media_id: z.string(),
1117
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1118
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1119
+ alt_text_override: z.string().nullable()
1120
+ }))
1121
+ })),
1122
+ created_at: z.string(),
1123
+ updated_at: z.string(),
1124
+ dry_run: z.boolean(),
1125
+ executed: z.boolean()
1126
+ });
1127
+ var zPostsDeletePath = z.object({
1128
+ id: z.string()
1129
+ });
1130
+ var zPostsDeleteResponse = z.object({
1131
+ id: z.string(),
1132
+ object: z.literal("post"),
1133
+ deleted: z.literal(true)
1134
+ });
1135
+ var zPostsGetPath = z.object({
1136
+ id: z.string()
1137
+ });
1138
+ var zPostsGetResponse = z.object({
1139
+ id: z.string(),
1140
+ object: z.literal("post"),
1141
+ profile_id: z.string(),
1142
+ external_id: z.string().nullable(),
1143
+ status: z.enum([
1144
+ "draft",
1145
+ "scheduled",
1146
+ "publishing",
1147
+ "partially_published",
1148
+ "published",
1149
+ "failed"
1150
+ ]),
1151
+ schedule_at: z.string().nullable(),
1152
+ tags: z.array(z.string()),
1153
+ notes: z.string().nullable(),
1154
+ metadata: z.record(z.string(), z.union([
1155
+ z.string().max(500),
1156
+ z.number(),
1157
+ z.boolean()
1158
+ ])),
1159
+ variants: z.array(z.object({
1160
+ id: z.string(),
1161
+ object: z.literal("post_variant"),
1162
+ connection_id: z.string(),
1163
+ platform: z.enum([
1164
+ "x",
1165
+ "linkedin",
1166
+ "facebook_page",
1167
+ "instagram",
1168
+ "tiktok"
1169
+ ]),
1170
+ post_type: z.enum([
1171
+ "text",
1172
+ "single_image",
1173
+ "multi_image",
1174
+ "video",
1175
+ "reel",
1176
+ "carousel"
1177
+ ]),
1178
+ body: z.string().nullable(),
1179
+ status: z.enum([
1180
+ "draft",
1181
+ "scheduled",
1182
+ "publishing",
1183
+ "published",
1184
+ "failed"
1185
+ ]),
1186
+ settings: z.record(z.string(), z.unknown()),
1187
+ schedule_at: z.string().nullable(),
1188
+ result: z.object({
1189
+ platform_post_id: z.string(),
1190
+ permalink: z.string().nullable(),
1191
+ published_at: z.string()
1192
+ }).nullable(),
1193
+ error: z.object({
1194
+ code: z.string(),
1195
+ message: z.string()
1196
+ }).nullable(),
1197
+ media: z.array(z.object({
1198
+ media_id: z.string(),
1199
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1200
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1201
+ alt_text_override: z.string().nullable()
1202
+ }))
1203
+ })),
1204
+ created_at: z.string(),
1205
+ updated_at: z.string()
1206
+ });
1207
+ var zPostsUpdateBody = z.object({
1208
+ publish: z.enum([
1209
+ "now",
1210
+ "schedule",
1211
+ "draft"
1212
+ ]).optional(),
1213
+ schedule_at: z.iso.datetime().nullish(),
1214
+ external_id: z.string().min(1).max(255).nullish(),
1215
+ metadata: z.record(z.string(), z.union([
1216
+ z.string().max(500),
1217
+ z.number(),
1218
+ z.boolean()
1219
+ ])).optional(),
1220
+ tags: z.array(z.string()).optional(),
1221
+ notes: z.string().nullish(),
1222
+ dry_run: z.boolean().optional().default(false),
1223
+ variants: z.array(z.union([
1224
+ z.object({
1225
+ platform: z.literal("x"),
1226
+ post_type: z.enum([
1227
+ "text",
1228
+ "single_image",
1229
+ "multi_image",
1230
+ "video"
1231
+ ]),
1232
+ connection_id: z.string(),
1233
+ body: z.string().optional(),
1234
+ media: z.array(z.object({
1235
+ media_id: z.string(),
1236
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1237
+ alt_text_override: z.string().nullish()
1238
+ })).optional().default([]),
1239
+ settings: z.object({
1240
+ reply_settings: z.enum([
1241
+ "everyone",
1242
+ "following",
1243
+ "mentionedUsers",
1244
+ "subscribers",
1245
+ "verified"
1246
+ ]).optional(),
1247
+ quote_tweet_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1248
+ poll: z.object({
1249
+ options: z.array(z.string().min(1).max(25)).min(2).max(4),
1250
+ duration_minutes: z.int().gte(5).lte(10080),
1251
+ reply_settings: z.enum([
1252
+ "following",
1253
+ "mentionedUsers",
1254
+ "subscribers",
1255
+ "verified"
1256
+ ]).optional()
1257
+ }).optional(),
1258
+ reply: z.object({
1259
+ in_reply_to_tweet_id: z.string().regex(/^[0-9]{1,19}$/),
1260
+ exclude_reply_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).optional(),
1261
+ auto_populate_reply_metadata: z.boolean().optional()
1262
+ }).optional(),
1263
+ community_id: z.string().regex(/^[0-9]{1,19}$/).optional(),
1264
+ for_super_followers_only: z.boolean().optional(),
1265
+ geo: z.object({
1266
+ place_id: z.string()
1267
+ }).optional(),
1268
+ card_uri: z.string().optional(),
1269
+ media_tagged_user_ids: z.array(z.string().regex(/^[0-9]{1,19}$/)).max(10).optional()
1270
+ }).optional().default({})
1271
+ }),
1272
+ z.object({
1273
+ platform: z.literal("linkedin"),
1274
+ post_type: z.enum([
1275
+ "text",
1276
+ "single_image",
1277
+ "multi_image",
1278
+ "video"
1279
+ ]),
1280
+ connection_id: z.string(),
1281
+ body: z.string().optional(),
1282
+ media: z.array(z.object({
1283
+ media_id: z.string(),
1284
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1285
+ alt_text_override: z.string().nullish()
1286
+ })).optional().default([]),
1287
+ settings: z.object({
1288
+ visibility: z.enum(["PUBLIC", "CONNECTIONS"]),
1289
+ content_kind: z.enum([
1290
+ "text",
1291
+ "single_image",
1292
+ "video",
1293
+ "multi_image",
1294
+ "document",
1295
+ "article",
1296
+ "poll"
1297
+ ]),
1298
+ article: z.object({
1299
+ source: z.url(),
1300
+ title: z.string().max(400).optional(),
1301
+ description: z.string().max(4086).optional(),
1302
+ thumbnail_media_id: z.string().optional()
1303
+ }).optional(),
1304
+ poll: z.object({
1305
+ question: z.string().min(1).max(140),
1306
+ options: z.array(z.string().min(1).max(30)).min(2).max(4),
1307
+ duration: z.enum([
1308
+ "ONE_DAY",
1309
+ "THREE_DAYS",
1310
+ "SEVEN_DAYS",
1311
+ "FOURTEEN_DAYS"
1312
+ ])
1313
+ }).optional(),
1314
+ document: z.object({
1315
+ title: z.string().min(1).max(400)
1316
+ }).optional(),
1317
+ disable_reshare: z.boolean().optional(),
1318
+ mentions: z.array(z.object({
1319
+ type: z.enum(["person", "organization"]),
1320
+ name: z.string().min(1),
1321
+ urn: z.string().regex(/^urn:li:(person|organization):/)
1322
+ })).optional()
1323
+ })
1324
+ }),
1325
+ z.object({
1326
+ platform: z.literal("instagram"),
1327
+ post_type: z.enum([
1328
+ "single_image",
1329
+ "carousel",
1330
+ "reel"
1331
+ ]),
1332
+ connection_id: z.string(),
1333
+ body: z.string().optional(),
1334
+ media: z.array(z.object({
1335
+ media_id: z.string(),
1336
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1337
+ alt_text_override: z.string().nullish()
1338
+ })).optional().default([]),
1339
+ settings: z.object({
1340
+ media_type: z.enum([
1341
+ "IMAGE",
1342
+ "CAROUSEL",
1343
+ "REELS"
1344
+ ]).optional(),
1345
+ location_id: z.string().optional(),
1346
+ user_tags: z.array(z.object({
1347
+ username: z.string().min(1),
1348
+ x: z.number().gte(0).lte(1),
1349
+ y: z.number().gte(0).lte(1)
1350
+ })).optional(),
1351
+ collaborators: z.array(z.string().min(1)).max(3).optional(),
1352
+ share_to_feed: z.boolean().optional(),
1353
+ thumb_offset: z.int().gte(0).lte(9007199254740991).optional(),
1354
+ cover_url: z.url().optional(),
1355
+ audio_name: z.string().optional()
1356
+ })
1357
+ }),
1358
+ z.object({
1359
+ platform: z.literal("facebook_page"),
1360
+ post_type: z.enum([
1361
+ "text",
1362
+ "single_image",
1363
+ "multi_image",
1364
+ "reel"
1365
+ ]),
1366
+ connection_id: z.string(),
1367
+ body: z.string().optional(),
1368
+ media: z.array(z.object({
1369
+ media_id: z.string(),
1370
+ crop_box: z.record(z.string(), z.unknown()).nullish(),
1371
+ alt_text_override: z.string().nullish()
1372
+ })).optional().default([]),
1373
+ settings: z.object({
1374
+ link: z.url().optional()
1375
+ }).optional().default({})
1376
+ })
1377
+ ])).min(1).optional()
1378
+ });
1379
+ var zPostsUpdatePath = z.object({
1380
+ id: z.string()
1381
+ });
1382
+ var zPostsUpdateResponse = z.object({
1383
+ id: z.string(),
1384
+ object: z.literal("post"),
1385
+ profile_id: z.string(),
1386
+ external_id: z.string().nullable(),
1387
+ status: z.enum([
1388
+ "draft",
1389
+ "scheduled",
1390
+ "publishing",
1391
+ "partially_published",
1392
+ "published",
1393
+ "failed"
1394
+ ]),
1395
+ schedule_at: z.string().nullable(),
1396
+ tags: z.array(z.string()),
1397
+ notes: z.string().nullable(),
1398
+ metadata: z.record(z.string(), z.union([
1399
+ z.string().max(500),
1400
+ z.number(),
1401
+ z.boolean()
1402
+ ])),
1403
+ variants: z.array(z.object({
1404
+ id: z.string(),
1405
+ object: z.literal("post_variant"),
1406
+ connection_id: z.string(),
1407
+ platform: z.enum([
1408
+ "x",
1409
+ "linkedin",
1410
+ "facebook_page",
1411
+ "instagram",
1412
+ "tiktok"
1413
+ ]),
1414
+ post_type: z.enum([
1415
+ "text",
1416
+ "single_image",
1417
+ "multi_image",
1418
+ "video",
1419
+ "reel",
1420
+ "carousel"
1421
+ ]),
1422
+ body: z.string().nullable(),
1423
+ status: z.enum([
1424
+ "draft",
1425
+ "scheduled",
1426
+ "publishing",
1427
+ "published",
1428
+ "failed"
1429
+ ]),
1430
+ settings: z.record(z.string(), z.unknown()),
1431
+ schedule_at: z.string().nullable(),
1432
+ result: z.object({
1433
+ platform_post_id: z.string(),
1434
+ permalink: z.string().nullable(),
1435
+ published_at: z.string()
1436
+ }).nullable(),
1437
+ error: z.object({
1438
+ code: z.string(),
1439
+ message: z.string()
1440
+ }).nullable(),
1441
+ media: z.array(z.object({
1442
+ media_id: z.string(),
1443
+ position: z.int().gte(-9007199254740991).lte(9007199254740991),
1444
+ crop_box: z.record(z.string(), z.unknown()).nullable(),
1445
+ alt_text_override: z.string().nullable()
1446
+ }))
1447
+ })),
1448
+ created_at: z.string(),
1449
+ updated_at: z.string(),
1450
+ dry_run: z.boolean(),
1451
+ executed: z.boolean()
1452
+ });
1453
+ var zMetaAccountPath = z.object({
1454
+ connection_id: z.string()
1455
+ });
1456
+ var zMetaAccountResponse = z.object({
1457
+ id: z.string(),
1458
+ account_id: z.string(),
1459
+ name: z.string().nullable(),
1460
+ account_status: z.int().gte(-9007199254740991).lte(9007199254740991),
1461
+ currency: z.string(),
1462
+ timezone_name: z.string().nullable(),
1463
+ amount_spent: z.string(),
1464
+ balance: z.string(),
1465
+ spend_cap: z.string().nullable()
1466
+ });
1467
+ var zMetaInsightsPath = z.object({
1468
+ connection_id: z.string()
1469
+ });
1470
+ var zMetaInsightsQuery = z.object({
1471
+ level: z.enum([
1472
+ "account",
1473
+ "campaign",
1474
+ "adset",
1475
+ "ad"
1476
+ ]).optional().default("account"),
1477
+ date_preset: z.enum([
1478
+ "today",
1479
+ "yesterday",
1480
+ "this_month",
1481
+ "last_month",
1482
+ "this_quarter",
1483
+ "maximum",
1484
+ "data_maximum",
1485
+ "last_3d",
1486
+ "last_7d",
1487
+ "last_14d",
1488
+ "last_28d",
1489
+ "last_30d",
1490
+ "last_90d",
1491
+ "last_week_mon_sun",
1492
+ "last_week_sun_sat",
1493
+ "last_quarter",
1494
+ "last_year",
1495
+ "this_week_mon_today",
1496
+ "this_week_sun_today",
1497
+ "this_year"
1498
+ ]).optional().default("last_30d"),
1499
+ time_range: z.object({
1500
+ since: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
1501
+ until: z.string().regex(/^\d{4}-\d{2}-\d{2}$/)
1502
+ }).optional(),
1503
+ time_increment: z.union([
1504
+ z.int().gte(1).lte(90),
1505
+ z.literal("monthly"),
1506
+ z.literal("all_days")
1507
+ ]).optional()
1508
+ });
1509
+ var zMetaInsightsResponse = z.object({
1510
+ object: z.literal("list"),
1511
+ data: z.array(z.object({
1512
+ date_start: z.string(),
1513
+ date_stop: z.string(),
1514
+ account_id: z.string().optional(),
1515
+ campaign_id: z.string().optional(),
1516
+ campaign_name: z.string().optional(),
1517
+ adset_id: z.string().optional(),
1518
+ adset_name: z.string().optional(),
1519
+ ad_id: z.string().optional(),
1520
+ ad_name: z.string().optional(),
1521
+ spend: z.string().optional(),
1522
+ impressions: z.string().optional(),
1523
+ clicks: z.string().optional(),
1524
+ ctr: z.string().optional(),
1525
+ cpc: z.string().optional(),
1526
+ cpm: z.string().optional(),
1527
+ cpp: z.string().optional(),
1528
+ reach: z.string().optional(),
1529
+ frequency: z.string().optional()
1530
+ }))
1531
+ });
1532
+ var zMetaCampaignsPath = z.object({
1533
+ connection_id: z.string()
1534
+ });
1535
+ var zMetaCampaignsResponse = z.object({
1536
+ object: z.literal("list"),
1537
+ data: z.array(z.object({
1538
+ id: z.string(),
1539
+ account_id: z.string().optional(),
1540
+ name: z.string().nullable(),
1541
+ status: z.string().optional(),
1542
+ effective_status: z.string().optional(),
1543
+ objective: z.string().optional(),
1544
+ daily_budget: z.string().optional(),
1545
+ lifetime_budget: z.string().optional(),
1546
+ budget_remaining: z.string().optional(),
1547
+ bid_strategy: z.string().optional(),
1548
+ created_time: z.string().optional(),
1549
+ start_time: z.string().optional(),
1550
+ stop_time: z.string().optional()
1551
+ }))
1552
+ });
1553
+ var zMetaCampaignPath = z.object({
1554
+ connection_id: z.string(),
1555
+ campaign_id: z.string().min(1)
1556
+ });
1557
+ var zMetaCampaignResponse = z.object({
1558
+ id: z.string(),
1559
+ account_id: z.string().optional(),
1560
+ name: z.string().nullable(),
1561
+ status: z.string().optional(),
1562
+ effective_status: z.string().optional(),
1563
+ objective: z.string().optional(),
1564
+ daily_budget: z.string().optional(),
1565
+ lifetime_budget: z.string().optional(),
1566
+ budget_remaining: z.string().optional(),
1567
+ bid_strategy: z.string().optional(),
1568
+ created_time: z.string().optional(),
1569
+ start_time: z.string().optional(),
1570
+ stop_time: z.string().optional()
1571
+ });
1572
+ var zMetaAdsetsPath = z.object({
1573
+ connection_id: z.string()
1574
+ });
1575
+ var zMetaAdsetsResponse = z.object({
1576
+ object: z.literal("list"),
1577
+ data: z.array(z.object({
1578
+ id: z.string(),
1579
+ account_id: z.string().optional(),
1580
+ name: z.string().nullable(),
1581
+ status: z.string().optional(),
1582
+ effective_status: z.string().optional(),
1583
+ campaign_id: z.string().optional(),
1584
+ daily_budget: z.string().optional(),
1585
+ lifetime_budget: z.string().optional(),
1586
+ budget_remaining: z.string().optional(),
1587
+ bid_amount: z.string().optional(),
1588
+ billing_event: z.string().optional(),
1589
+ optimization_goal: z.string().optional(),
1590
+ start_time: z.string().optional(),
1591
+ end_time: z.string().optional()
1592
+ }))
1593
+ });
1594
+ var zMetaAdsetPath = z.object({
1595
+ connection_id: z.string(),
1596
+ adset_id: z.string().min(1)
1597
+ });
1598
+ var zMetaAdsetResponse = z.object({
1599
+ id: z.string(),
1600
+ account_id: z.string().optional(),
1601
+ name: z.string().nullable(),
1602
+ status: z.string().optional(),
1603
+ effective_status: z.string().optional(),
1604
+ campaign_id: z.string().optional(),
1605
+ daily_budget: z.string().optional(),
1606
+ lifetime_budget: z.string().optional(),
1607
+ budget_remaining: z.string().optional(),
1608
+ bid_amount: z.string().optional(),
1609
+ billing_event: z.string().optional(),
1610
+ optimization_goal: z.string().optional(),
1611
+ start_time: z.string().optional(),
1612
+ end_time: z.string().optional()
1613
+ });
1614
+ var zMetaAdsPath = z.object({
1615
+ connection_id: z.string()
1616
+ });
1617
+ var zMetaAdsResponse = z.object({
1618
+ object: z.literal("list"),
1619
+ data: z.array(z.object({
1620
+ id: z.string(),
1621
+ name: z.string().nullable(),
1622
+ status: z.string().optional(),
1623
+ effective_status: z.string().optional(),
1624
+ adset_id: z.string().optional(),
1625
+ campaign_id: z.string().optional(),
1626
+ account_id: z.string().optional(),
1627
+ created_time: z.string().optional(),
1628
+ updated_time: z.string().optional()
1629
+ }))
1630
+ });
1631
+ var zMetaAdPath = z.object({
1632
+ connection_id: z.string(),
1633
+ ad_id: z.string().min(1)
1634
+ });
1635
+ var zMetaAdResponse = z.object({
1636
+ id: z.string(),
1637
+ name: z.string().nullable(),
1638
+ status: z.string().optional(),
1639
+ effective_status: z.string().optional(),
1640
+ adset_id: z.string().optional(),
1641
+ campaign_id: z.string().optional(),
1642
+ account_id: z.string().optional(),
1643
+ created_time: z.string().optional(),
1644
+ updated_time: z.string().optional()
1645
+ });
1646
+ var zGoogleGetAccountPath = z.object({
1647
+ connection_id: z.string()
1648
+ });
1649
+ var zGoogleGetAccountResponse = z.object({
1650
+ id: z.string(),
1651
+ descriptive_name: z.string().nullable(),
1652
+ currency_code: z.string().nullable(),
1653
+ time_zone: z.string().nullable(),
1654
+ status: z.enum([
1655
+ "UNSPECIFIED",
1656
+ "UNKNOWN",
1657
+ "ENABLED",
1658
+ "CANCELED",
1659
+ "SUSPENDED",
1660
+ "CLOSED"
1661
+ ]),
1662
+ manager: z.boolean(),
1663
+ test_account: z.boolean()
1664
+ });
1665
+ var zGoogleGetInsightsBody = z.object({
1666
+ level: z.enum([
1667
+ "account",
1668
+ "campaign",
1669
+ "ad_group"
1670
+ ]).optional().default("campaign"),
1671
+ metrics: z.array(z.enum([
1672
+ "impressions",
1673
+ "clicks",
1674
+ "ctr",
1675
+ "average_cpc",
1676
+ "cost_micros",
1677
+ "conversions",
1678
+ "conversions_value",
1679
+ "cost_per_conversion"
1680
+ ])).min(1).optional().default([
1681
+ "impressions",
1682
+ "clicks",
1683
+ "cost_micros",
1684
+ "conversions"
1685
+ ]),
1686
+ segments: z.array(z.enum(["date", "device"])).optional(),
1687
+ since: z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
1688
+ until: z.string().regex(/^\d{4}-\d{2}-\d{2}$/)
1689
+ });
1690
+ var zGoogleGetInsightsPath = z.object({
1691
+ connection_id: z.string()
1692
+ });
1693
+ var zGoogleGetInsightsResponse = z.object({
1694
+ object: z.literal("list"),
1695
+ data: z.array(z.object({
1696
+ level: z.enum([
1697
+ "account",
1698
+ "campaign",
1699
+ "ad_group"
1700
+ ]),
1701
+ id: z.string(),
1702
+ name: z.string().nullable(),
1703
+ metrics: z.record(z.string(), z.number().nullable()),
1704
+ segments: z.record(z.string(), z.string()).optional()
1705
+ }))
1706
+ });
1707
+ var zGoogleRunGaqlBody = z.object({
1708
+ query: z.string().min(1).max(1e4)
1709
+ });
1710
+ var zGoogleRunGaqlPath = z.object({
1711
+ connection_id: z.string()
1712
+ });
1713
+ var zGoogleRunGaqlResponse = z.object({
1714
+ object: z.literal("list"),
1715
+ data: z.array(z.union([z.unknown(), z.null()]))
1716
+ });
1717
+ var zGoogleCreateBudgetBody = z.object({
1718
+ name: z.string().min(1).max(255),
1719
+ amount_micros: z.int().gt(0).lte(9007199254740991),
1720
+ dry_run: z.boolean().optional().default(false)
1721
+ });
1722
+ var zGoogleCreateBudgetPath = z.object({
1723
+ connection_id: z.string()
1724
+ });
1725
+ var zGoogleCreateBudgetResponse = z.object({
1726
+ id: z.string().nullable(),
1727
+ resource_name: z.string().nullable(),
1728
+ dry_run: z.boolean(),
1729
+ executed: z.boolean()
1730
+ });
1731
+ var zGoogleDeleteBudgetBody = z.object({
1732
+ dry_run: z.boolean().optional().default(false)
1733
+ });
1734
+ var zGoogleDeleteBudgetPath = z.object({
1735
+ connection_id: z.string(),
1736
+ id: z.string().regex(/^\d+$/)
1737
+ });
1738
+ var zGoogleDeleteBudgetResponse = z.object({
1739
+ id: z.string(),
1740
+ removed: z.boolean(),
1741
+ dry_run: z.boolean(),
1742
+ executed: z.boolean()
1743
+ });
1744
+ var zGoogleEditBudgetBody = z.object({
1745
+ amount_micros: z.int().gt(0).lte(9007199254740991),
1746
+ dry_run: z.boolean().optional().default(false)
1747
+ });
1748
+ var zGoogleEditBudgetPath = z.object({
1749
+ connection_id: z.string(),
1750
+ id: z.string().regex(/^\d+$/)
1751
+ });
1752
+ var zGoogleEditBudgetResponse = z.object({
1753
+ id: z.string(),
1754
+ resource_name: z.string(),
1755
+ dry_run: z.boolean(),
1756
+ executed: z.boolean()
1757
+ });
1758
+ var zGoogleListCampaignsPath = z.object({
1759
+ connection_id: z.string()
1760
+ });
1761
+ var zGoogleListCampaignsResponse = z.object({
1762
+ object: z.literal("list"),
1763
+ data: z.array(z.object({
1764
+ id: z.string(),
1765
+ name: z.string().nullable(),
1766
+ status: z.enum([
1767
+ "UNSPECIFIED",
1768
+ "UNKNOWN",
1769
+ "ENABLED",
1770
+ "PAUSED",
1771
+ "REMOVED"
1772
+ ]),
1773
+ advertising_channel_type: z.enum([
1774
+ "UNSPECIFIED",
1775
+ "UNKNOWN",
1776
+ "SEARCH",
1777
+ "DISPLAY",
1778
+ "SHOPPING",
1779
+ "HOTEL",
1780
+ "VIDEO",
1781
+ "MULTI_CHANNEL",
1782
+ "LOCAL",
1783
+ "SMART",
1784
+ "PERFORMANCE_MAX",
1785
+ "LOCAL_SERVICES",
1786
+ "TRAVEL",
1787
+ "DEMAND_GEN"
1788
+ ]),
1789
+ bidding_strategy_type: z.enum([
1790
+ "UNSPECIFIED",
1791
+ "UNKNOWN",
1792
+ "COMMISSION",
1793
+ "ENHANCED_CPC",
1794
+ "FIXED_CPM",
1795
+ "FIXED_SHARE_OF_VOICE",
1796
+ "INVALID",
1797
+ "MANUAL_CPA",
1798
+ "MANUAL_CPC",
1799
+ "MANUAL_CPM",
1800
+ "MANUAL_CPV",
1801
+ "MAXIMIZE_CONVERSIONS",
1802
+ "MAXIMIZE_CONVERSION_VALUE",
1803
+ "PAGE_ONE_PROMOTED",
1804
+ "PERCENT_CPC",
1805
+ "TARGET_CPA",
1806
+ "TARGET_CPC",
1807
+ "TARGET_CPM",
1808
+ "TARGET_CPV",
1809
+ "TARGET_IMPRESSION_SHARE",
1810
+ "TARGET_OUTRANK_SHARE",
1811
+ "TARGET_ROAS",
1812
+ "TARGET_SPEND"
1813
+ ])
1814
+ }))
1815
+ });
1816
+ var zGoogleCreateCampaignBody = z.object({
1817
+ name: z.string().min(1).max(255),
1818
+ channel: z.enum(["SEARCH", "DISPLAY"]),
1819
+ campaign_budget: z.string().min(1),
1820
+ bidding: z.enum([
1821
+ "manual_cpc",
1822
+ "maximize_conversions",
1823
+ "target_spend"
1824
+ ]),
1825
+ status: z.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
1826
+ dry_run: z.boolean().optional().default(false)
1827
+ });
1828
+ var zGoogleCreateCampaignPath = z.object({
1829
+ connection_id: z.string()
1830
+ });
1831
+ var zGoogleCreateCampaignResponse = z.object({
1832
+ id: z.string().nullable(),
1833
+ resource_name: z.string().nullable(),
1834
+ dry_run: z.boolean(),
1835
+ executed: z.boolean()
1836
+ });
1837
+ var zGoogleDeleteCampaignBody = z.object({
1838
+ dry_run: z.boolean().optional().default(false)
1839
+ });
1840
+ var zGoogleDeleteCampaignPath = z.object({
1841
+ connection_id: z.string(),
1842
+ id: z.string().regex(/^\d+$/)
1843
+ });
1844
+ var zGoogleDeleteCampaignResponse = z.object({
1845
+ id: z.string(),
1846
+ removed: z.boolean(),
1847
+ dry_run: z.boolean(),
1848
+ executed: z.boolean()
1849
+ });
1850
+ var zGoogleGetCampaignPath = z.object({
1851
+ connection_id: z.string(),
1852
+ id: z.string().regex(/^\d+$/)
1853
+ });
1854
+ var zGoogleGetCampaignResponse = z.object({
1855
+ id: z.string(),
1856
+ name: z.string().nullable(),
1857
+ status: z.enum([
1858
+ "UNSPECIFIED",
1859
+ "UNKNOWN",
1860
+ "ENABLED",
1861
+ "PAUSED",
1862
+ "REMOVED"
1863
+ ]),
1864
+ advertising_channel_type: z.enum([
1865
+ "UNSPECIFIED",
1866
+ "UNKNOWN",
1867
+ "SEARCH",
1868
+ "DISPLAY",
1869
+ "SHOPPING",
1870
+ "HOTEL",
1871
+ "VIDEO",
1872
+ "MULTI_CHANNEL",
1873
+ "LOCAL",
1874
+ "SMART",
1875
+ "PERFORMANCE_MAX",
1876
+ "LOCAL_SERVICES",
1877
+ "TRAVEL",
1878
+ "DEMAND_GEN"
1879
+ ]),
1880
+ bidding_strategy_type: z.enum([
1881
+ "UNSPECIFIED",
1882
+ "UNKNOWN",
1883
+ "COMMISSION",
1884
+ "ENHANCED_CPC",
1885
+ "FIXED_CPM",
1886
+ "FIXED_SHARE_OF_VOICE",
1887
+ "INVALID",
1888
+ "MANUAL_CPA",
1889
+ "MANUAL_CPC",
1890
+ "MANUAL_CPM",
1891
+ "MANUAL_CPV",
1892
+ "MAXIMIZE_CONVERSIONS",
1893
+ "MAXIMIZE_CONVERSION_VALUE",
1894
+ "PAGE_ONE_PROMOTED",
1895
+ "PERCENT_CPC",
1896
+ "TARGET_CPA",
1897
+ "TARGET_CPC",
1898
+ "TARGET_CPM",
1899
+ "TARGET_CPV",
1900
+ "TARGET_IMPRESSION_SHARE",
1901
+ "TARGET_OUTRANK_SHARE",
1902
+ "TARGET_ROAS",
1903
+ "TARGET_SPEND"
1904
+ ])
1905
+ });
1906
+ var zGoogleEditCampaignBody = z.object({
1907
+ name: z.string().min(1).max(255),
1908
+ dry_run: z.boolean().optional().default(false)
1909
+ });
1910
+ var zGoogleEditCampaignPath = z.object({
1911
+ connection_id: z.string(),
1912
+ id: z.string().regex(/^\d+$/)
1913
+ });
1914
+ var zGoogleEditCampaignResponse = z.object({
1915
+ id: z.string(),
1916
+ resource_name: z.string(),
1917
+ dry_run: z.boolean(),
1918
+ executed: z.boolean()
1919
+ });
1920
+ var zGooglePauseCampaignBody = z.object({
1921
+ dry_run: z.boolean().optional().default(false)
1922
+ });
1923
+ var zGooglePauseCampaignPath = z.object({
1924
+ connection_id: z.string(),
1925
+ id: z.string().regex(/^\d+$/)
1926
+ });
1927
+ var zGooglePauseCampaignResponse = z.object({
1928
+ id: z.string(),
1929
+ status: z.enum(["ENABLED", "PAUSED"]),
1930
+ dry_run: z.boolean(),
1931
+ executed: z.boolean()
1932
+ });
1933
+ var zGoogleEnableCampaignBody = z.object({
1934
+ dry_run: z.boolean().optional().default(false)
1935
+ });
1936
+ var zGoogleEnableCampaignPath = z.object({
1937
+ connection_id: z.string(),
1938
+ id: z.string().regex(/^\d+$/)
1939
+ });
1940
+ var zGoogleEnableCampaignResponse = z.object({
1941
+ id: z.string(),
1942
+ status: z.enum(["ENABLED", "PAUSED"]),
1943
+ dry_run: z.boolean(),
1944
+ executed: z.boolean()
1945
+ });
1946
+ var zGoogleListAdGroupsPath = z.object({
1947
+ connection_id: z.string()
1948
+ });
1949
+ var zGoogleListAdGroupsResponse = z.object({
1950
+ object: z.literal("list"),
1951
+ data: z.array(z.object({
1952
+ id: z.string(),
1953
+ name: z.string().nullable(),
1954
+ status: z.enum([
1955
+ "UNSPECIFIED",
1956
+ "UNKNOWN",
1957
+ "ENABLED",
1958
+ "PAUSED",
1959
+ "REMOVED"
1960
+ ]),
1961
+ type: z.enum([
1962
+ "UNSPECIFIED",
1963
+ "UNKNOWN",
1964
+ "SEARCH_STANDARD",
1965
+ "DISPLAY_STANDARD",
1966
+ "SHOPPING_PRODUCT_ADS",
1967
+ "HOTEL_ADS",
1968
+ "SHOPPING_SMART_ADS",
1969
+ "VIDEO_BUMPER",
1970
+ "VIDEO_TRUE_VIEW_IN_STREAM",
1971
+ "VIDEO_TRUE_VIEW_IN_DISPLAY",
1972
+ "VIDEO_NON_SKIPPABLE_IN_STREAM",
1973
+ "SEARCH_DYNAMIC_ADS",
1974
+ "SHOPPING_COMPARISON_LISTING_ADS",
1975
+ "PROMOTED_HOTEL_ADS",
1976
+ "VIDEO_RESPONSIVE",
1977
+ "VIDEO_EFFICIENT_REACH",
1978
+ "SMART_CAMPAIGN_ADS",
1979
+ "TRAVEL_ADS",
1980
+ "YOUTUBE_AUDIO"
1981
+ ]),
1982
+ campaign: z.string().nullable()
1983
+ }))
1984
+ });
1985
+ var zGoogleCreateAdGroupBody = z.object({
1986
+ name: z.string().min(1).max(255),
1987
+ campaign: z.string().min(1),
1988
+ type: z.enum(["SEARCH_STANDARD", "DISPLAY_STANDARD"]),
1989
+ status: z.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
1990
+ dry_run: z.boolean().optional().default(false)
1991
+ });
1992
+ var zGoogleCreateAdGroupPath = z.object({
1993
+ connection_id: z.string()
1994
+ });
1995
+ var zGoogleCreateAdGroupResponse = z.object({
1996
+ id: z.string().nullable(),
1997
+ resource_name: z.string().nullable(),
1998
+ dry_run: z.boolean(),
1999
+ executed: z.boolean()
2000
+ });
2001
+ var zGoogleDeleteAdGroupBody = z.object({
2002
+ dry_run: z.boolean().optional().default(false)
2003
+ });
2004
+ var zGoogleDeleteAdGroupPath = z.object({
2005
+ connection_id: z.string(),
2006
+ id: z.string().regex(/^\d+$/)
2007
+ });
2008
+ var zGoogleDeleteAdGroupResponse = z.object({
2009
+ id: z.string(),
2010
+ removed: z.boolean(),
2011
+ dry_run: z.boolean(),
2012
+ executed: z.boolean()
2013
+ });
2014
+ var zGoogleGetAdGroupPath = z.object({
2015
+ connection_id: z.string(),
2016
+ id: z.string().regex(/^\d+$/)
2017
+ });
2018
+ var zGoogleGetAdGroupResponse = z.object({
2019
+ id: z.string(),
2020
+ name: z.string().nullable(),
2021
+ status: z.enum([
2022
+ "UNSPECIFIED",
2023
+ "UNKNOWN",
2024
+ "ENABLED",
2025
+ "PAUSED",
2026
+ "REMOVED"
2027
+ ]),
2028
+ type: z.enum([
2029
+ "UNSPECIFIED",
2030
+ "UNKNOWN",
2031
+ "SEARCH_STANDARD",
2032
+ "DISPLAY_STANDARD",
2033
+ "SHOPPING_PRODUCT_ADS",
2034
+ "HOTEL_ADS",
2035
+ "SHOPPING_SMART_ADS",
2036
+ "VIDEO_BUMPER",
2037
+ "VIDEO_TRUE_VIEW_IN_STREAM",
2038
+ "VIDEO_TRUE_VIEW_IN_DISPLAY",
2039
+ "VIDEO_NON_SKIPPABLE_IN_STREAM",
2040
+ "SEARCH_DYNAMIC_ADS",
2041
+ "SHOPPING_COMPARISON_LISTING_ADS",
2042
+ "PROMOTED_HOTEL_ADS",
2043
+ "VIDEO_RESPONSIVE",
2044
+ "VIDEO_EFFICIENT_REACH",
2045
+ "SMART_CAMPAIGN_ADS",
2046
+ "TRAVEL_ADS",
2047
+ "YOUTUBE_AUDIO"
2048
+ ]),
2049
+ campaign: z.string().nullable()
2050
+ });
2051
+ var zGoogleEditAdGroupBody = z.object({
2052
+ name: z.string().min(1).max(255),
2053
+ dry_run: z.boolean().optional().default(false)
2054
+ });
2055
+ var zGoogleEditAdGroupPath = z.object({
2056
+ connection_id: z.string(),
2057
+ id: z.string().regex(/^\d+$/)
2058
+ });
2059
+ var zGoogleEditAdGroupResponse = z.object({
2060
+ id: z.string(),
2061
+ resource_name: z.string(),
2062
+ dry_run: z.boolean(),
2063
+ executed: z.boolean()
2064
+ });
2065
+ var zGoogleSetAdGroupBidsBody = z.object({
2066
+ cpc_bid_micros: z.int().gt(0).lte(9007199254740991).optional(),
2067
+ cpm_bid_micros: z.int().gt(0).lte(9007199254740991).optional(),
2068
+ target_cpa_micros: z.int().gt(0).lte(9007199254740991).optional(),
2069
+ target_roas: z.number().gt(0).optional(),
2070
+ dry_run: z.boolean().optional().default(false)
2071
+ });
2072
+ var zGoogleSetAdGroupBidsPath = z.object({
2073
+ connection_id: z.string(),
2074
+ id: z.string().regex(/^\d+$/)
2075
+ });
2076
+ var zGoogleSetAdGroupBidsResponse = z.object({
2077
+ id: z.string(),
2078
+ resource_name: z.string(),
2079
+ dry_run: z.boolean(),
2080
+ executed: z.boolean()
2081
+ });
2082
+ var zGooglePauseAdGroupBody = z.object({
2083
+ dry_run: z.boolean().optional().default(false)
2084
+ });
2085
+ var zGooglePauseAdGroupPath = z.object({
2086
+ connection_id: z.string(),
2087
+ id: z.string().regex(/^\d+$/)
2088
+ });
2089
+ var zGooglePauseAdGroupResponse = z.object({
2090
+ id: z.string(),
2091
+ status: z.enum(["ENABLED", "PAUSED"]),
2092
+ dry_run: z.boolean(),
2093
+ executed: z.boolean()
2094
+ });
2095
+ var zGoogleEnableAdGroupBody = z.object({
2096
+ dry_run: z.boolean().optional().default(false)
2097
+ });
2098
+ var zGoogleEnableAdGroupPath = z.object({
2099
+ connection_id: z.string(),
2100
+ id: z.string().regex(/^\d+$/)
2101
+ });
2102
+ var zGoogleEnableAdGroupResponse = z.object({
2103
+ id: z.string(),
2104
+ status: z.enum(["ENABLED", "PAUSED"]),
2105
+ dry_run: z.boolean(),
2106
+ executed: z.boolean()
2107
+ });
2108
+ var zGoogleListAdsPath = z.object({
2109
+ connection_id: z.string()
2110
+ });
2111
+ var zGoogleListAdsResponse = z.object({
2112
+ object: z.literal("list"),
2113
+ data: z.array(z.object({
2114
+ id: z.string(),
2115
+ name: z.string().nullable(),
2116
+ type: z.enum([
2117
+ "UNSPECIFIED",
2118
+ "UNKNOWN",
2119
+ "TEXT_AD",
2120
+ "EXPANDED_TEXT_AD",
2121
+ "EXPANDED_DYNAMIC_SEARCH_AD",
2122
+ "HOTEL_AD",
2123
+ "SHOPPING_SMART_AD",
2124
+ "SHOPPING_PRODUCT_AD",
2125
+ "VIDEO_AD",
2126
+ "IMAGE_AD",
2127
+ "RESPONSIVE_SEARCH_AD",
2128
+ "LEGACY_RESPONSIVE_DISPLAY_AD",
2129
+ "APP_AD",
2130
+ "LEGACY_APP_INSTALL_AD",
2131
+ "RESPONSIVE_DISPLAY_AD",
2132
+ "LOCAL_AD",
2133
+ "HTML5_UPLOAD_AD",
2134
+ "DYNAMIC_HTML5_AD",
2135
+ "APP_ENGAGEMENT_AD",
2136
+ "SHOPPING_COMPARISON_LISTING_AD",
2137
+ "VIDEO_BUMPER_AD",
2138
+ "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
2139
+ "VIDEO_TRUEVIEW_IN_STREAM_AD",
2140
+ "VIDEO_RESPONSIVE_AD",
2141
+ "SMART_CAMPAIGN_AD",
2142
+ "CALL_AD",
2143
+ "APP_PRE_REGISTRATION_AD",
2144
+ "IN_FEED_VIDEO_AD",
2145
+ "DEMAND_GEN_MULTI_ASSET_AD",
2146
+ "DEMAND_GEN_CAROUSEL_AD",
2147
+ "TRAVEL_AD",
2148
+ "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
2149
+ "DEMAND_GEN_PRODUCT_AD",
2150
+ "YOUTUBE_AUDIO_AD"
2151
+ ]),
2152
+ status: z.enum([
2153
+ "UNSPECIFIED",
2154
+ "UNKNOWN",
2155
+ "ENABLED",
2156
+ "PAUSED",
2157
+ "REMOVED"
2158
+ ]),
2159
+ ad_group: z.string().nullable()
2160
+ }))
2161
+ });
2162
+ var zGoogleCreateAdBody = z.object({
2163
+ ad_group: z.string().min(1),
2164
+ final_urls: z.array(z.url()).min(1),
2165
+ headlines: z.array(z.object({
2166
+ text: z.string().min(1).max(30),
2167
+ pinned_field: z.enum([
2168
+ "HEADLINE_1",
2169
+ "HEADLINE_2",
2170
+ "HEADLINE_3"
2171
+ ]).optional()
2172
+ })).min(3).max(15),
2173
+ descriptions: z.array(z.object({
2174
+ text: z.string().min(1).max(90)
2175
+ })).min(2).max(4),
2176
+ path1: z.string().max(15).optional(),
2177
+ path2: z.string().max(15).optional(),
2178
+ status: z.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
2179
+ dry_run: z.boolean().optional().default(false)
2180
+ });
2181
+ var zGoogleCreateAdPath = z.object({
2182
+ connection_id: z.string()
2183
+ });
2184
+ var zGoogleCreateAdResponse = z.object({
2185
+ id: z.string().nullable(),
2186
+ resource_name: z.string().nullable(),
2187
+ dry_run: z.boolean(),
2188
+ executed: z.boolean()
2189
+ });
2190
+ var zGoogleDeleteAdBody = z.object({
2191
+ dry_run: z.boolean().optional().default(false)
2192
+ });
2193
+ var zGoogleDeleteAdPath = z.object({
2194
+ connection_id: z.string(),
2195
+ id: z.string().regex(/^\d+$/)
2196
+ });
2197
+ var zGoogleDeleteAdResponse = z.object({
2198
+ id: z.string(),
2199
+ removed: z.boolean(),
2200
+ dry_run: z.boolean(),
2201
+ executed: z.boolean()
2202
+ });
2203
+ var zGoogleGetAdPath = z.object({
2204
+ connection_id: z.string(),
2205
+ id: z.string().regex(/^\d+$/)
2206
+ });
2207
+ var zGoogleGetAdResponse = z.object({
2208
+ id: z.string(),
2209
+ name: z.string().nullable(),
2210
+ type: z.enum([
2211
+ "UNSPECIFIED",
2212
+ "UNKNOWN",
2213
+ "TEXT_AD",
2214
+ "EXPANDED_TEXT_AD",
2215
+ "EXPANDED_DYNAMIC_SEARCH_AD",
2216
+ "HOTEL_AD",
2217
+ "SHOPPING_SMART_AD",
2218
+ "SHOPPING_PRODUCT_AD",
2219
+ "VIDEO_AD",
2220
+ "IMAGE_AD",
2221
+ "RESPONSIVE_SEARCH_AD",
2222
+ "LEGACY_RESPONSIVE_DISPLAY_AD",
2223
+ "APP_AD",
2224
+ "LEGACY_APP_INSTALL_AD",
2225
+ "RESPONSIVE_DISPLAY_AD",
2226
+ "LOCAL_AD",
2227
+ "HTML5_UPLOAD_AD",
2228
+ "DYNAMIC_HTML5_AD",
2229
+ "APP_ENGAGEMENT_AD",
2230
+ "SHOPPING_COMPARISON_LISTING_AD",
2231
+ "VIDEO_BUMPER_AD",
2232
+ "VIDEO_NON_SKIPPABLE_IN_STREAM_AD",
2233
+ "VIDEO_TRUEVIEW_IN_STREAM_AD",
2234
+ "VIDEO_RESPONSIVE_AD",
2235
+ "SMART_CAMPAIGN_AD",
2236
+ "CALL_AD",
2237
+ "APP_PRE_REGISTRATION_AD",
2238
+ "IN_FEED_VIDEO_AD",
2239
+ "DEMAND_GEN_MULTI_ASSET_AD",
2240
+ "DEMAND_GEN_CAROUSEL_AD",
2241
+ "TRAVEL_AD",
2242
+ "DEMAND_GEN_VIDEO_RESPONSIVE_AD",
2243
+ "DEMAND_GEN_PRODUCT_AD",
2244
+ "YOUTUBE_AUDIO_AD"
2245
+ ]),
2246
+ status: z.enum([
2247
+ "UNSPECIFIED",
2248
+ "UNKNOWN",
2249
+ "ENABLED",
2250
+ "PAUSED",
2251
+ "REMOVED"
2252
+ ]),
2253
+ ad_group: z.string().nullable()
2254
+ });
2255
+ var zGoogleCreateDisplayAdBody = z.object({
2256
+ ad_group: z.string().min(1),
2257
+ final_urls: z.array(z.url()).min(1),
2258
+ marketing_images: z.array(z.object({
2259
+ asset: z.string().min(1)
2260
+ })).max(15).optional().default([]),
2261
+ square_marketing_images: z.array(z.object({
2262
+ asset: z.string().min(1)
2263
+ })).max(15).optional().default([]),
2264
+ logo_images: z.array(z.object({
2265
+ asset: z.string().min(1)
2266
+ })).max(5).optional().default([]),
2267
+ square_logo_images: z.array(z.object({
2268
+ asset: z.string().min(1)
2269
+ })).max(5).optional().default([]),
2270
+ headlines: z.array(z.object({
2271
+ text: z.string().min(1).max(30)
2272
+ })).min(1).max(5),
2273
+ long_headline: z.object({
2274
+ text: z.string().min(1).max(90)
2275
+ }),
2276
+ descriptions: z.array(z.object({
2277
+ text: z.string().min(1).max(90)
2278
+ })).min(1).max(5),
2279
+ business_name: z.string().min(1).max(25).optional(),
2280
+ call_to_action_text: z.string().min(1).optional(),
2281
+ main_color: z.string().min(1).optional(),
2282
+ accent_color: z.string().min(1).optional(),
2283
+ status: z.enum(["ENABLED", "PAUSED"]).optional().default("PAUSED"),
2284
+ dry_run: z.boolean().optional().default(false)
2285
+ });
2286
+ var zGoogleCreateDisplayAdPath = z.object({
2287
+ connection_id: z.string()
2288
+ });
2289
+ var zGoogleCreateDisplayAdResponse = z.object({
2290
+ id: z.string().nullable(),
2291
+ resource_name: z.string().nullable(),
2292
+ dry_run: z.boolean(),
2293
+ executed: z.boolean()
2294
+ });
2295
+ var zGooglePauseAdBody = z.object({
2296
+ dry_run: z.boolean().optional().default(false)
2297
+ });
2298
+ var zGooglePauseAdPath = z.object({
2299
+ connection_id: z.string(),
2300
+ id: z.string().regex(/^\d+$/)
2301
+ });
2302
+ var zGooglePauseAdResponse = z.object({
2303
+ id: z.string(),
2304
+ status: z.enum(["ENABLED", "PAUSED"]),
2305
+ dry_run: z.boolean(),
2306
+ executed: z.boolean()
2307
+ });
2308
+ var zGoogleEnableAdBody = z.object({
2309
+ dry_run: z.boolean().optional().default(false)
2310
+ });
2311
+ var zGoogleEnableAdPath = z.object({
2312
+ connection_id: z.string(),
2313
+ id: z.string().regex(/^\d+$/)
2314
+ });
2315
+ var zGoogleEnableAdResponse = z.object({
2316
+ id: z.string(),
2317
+ status: z.enum(["ENABLED", "PAUSED"]),
2318
+ dry_run: z.boolean(),
2319
+ executed: z.boolean()
2320
+ });
2321
+ var zGoogleListKeywordsPath = z.object({
2322
+ connection_id: z.string()
2323
+ });
2324
+ var zGoogleListKeywordsResponse = z.object({
2325
+ object: z.literal("list"),
2326
+ data: z.array(z.object({
2327
+ id: z.string(),
2328
+ text: z.string().nullable(),
2329
+ match_type: z.enum([
2330
+ "UNSPECIFIED",
2331
+ "UNKNOWN",
2332
+ "EXACT",
2333
+ "PHRASE",
2334
+ "BROAD"
2335
+ ]),
2336
+ status: z.enum([
2337
+ "UNSPECIFIED",
2338
+ "UNKNOWN",
2339
+ "ENABLED",
2340
+ "PAUSED",
2341
+ "REMOVED"
2342
+ ]),
2343
+ negative: z.boolean(),
2344
+ ad_group: z.string().nullable()
2345
+ }))
2346
+ });
2347
+ var zGoogleCreateKeywordBody = z.object({
2348
+ ad_group: z.string().min(1),
2349
+ text: z.string().min(1).max(80),
2350
+ match_type: z.enum([
2351
+ "EXACT",
2352
+ "PHRASE",
2353
+ "BROAD"
2354
+ ]),
2355
+ negative: z.boolean().optional().default(false),
2356
+ status: z.enum(["ENABLED", "PAUSED"]).optional().default("ENABLED"),
2357
+ dry_run: z.boolean().optional().default(false)
2358
+ });
2359
+ var zGoogleCreateKeywordPath = z.object({
2360
+ connection_id: z.string()
2361
+ });
2362
+ var zGoogleCreateKeywordResponse = z.object({
2363
+ id: z.string().nullable(),
2364
+ resource_name: z.string().nullable(),
2365
+ dry_run: z.boolean(),
2366
+ executed: z.boolean()
2367
+ });
2368
+ var zGoogleDeleteKeywordBody = z.object({
2369
+ dry_run: z.boolean().optional().default(false)
2370
+ });
2371
+ var zGoogleDeleteKeywordPath = z.object({
2372
+ connection_id: z.string(),
2373
+ id: z.string().regex(/^\d+$/)
2374
+ });
2375
+ var zGoogleDeleteKeywordResponse = z.object({
2376
+ id: z.string(),
2377
+ removed: z.boolean(),
2378
+ dry_run: z.boolean(),
2379
+ executed: z.boolean()
2380
+ });
2381
+ var zGoogleGetKeywordPath = z.object({
2382
+ connection_id: z.string(),
2383
+ id: z.string().regex(/^\d+$/)
2384
+ });
2385
+ var zGoogleGetKeywordResponse = z.object({
2386
+ id: z.string(),
2387
+ text: z.string().nullable(),
2388
+ match_type: z.enum([
2389
+ "UNSPECIFIED",
2390
+ "UNKNOWN",
2391
+ "EXACT",
2392
+ "PHRASE",
2393
+ "BROAD"
2394
+ ]),
2395
+ status: z.enum([
2396
+ "UNSPECIFIED",
2397
+ "UNKNOWN",
2398
+ "ENABLED",
2399
+ "PAUSED",
2400
+ "REMOVED"
2401
+ ]),
2402
+ negative: z.boolean(),
2403
+ ad_group: z.string().nullable()
2404
+ });
2405
+ var zGoogleSetKeywordBidBody = z.object({
2406
+ cpc_bid_micros: z.int().gt(0).lte(9007199254740991),
2407
+ dry_run: z.boolean().optional().default(false)
2408
+ });
2409
+ var zGoogleSetKeywordBidPath = z.object({
2410
+ connection_id: z.string(),
2411
+ id: z.string().regex(/^\d+$/)
2412
+ });
2413
+ var zGoogleSetKeywordBidResponse = z.object({
2414
+ id: z.string(),
2415
+ resource_name: z.string(),
2416
+ dry_run: z.boolean(),
2417
+ executed: z.boolean()
2418
+ });
2419
+ var zGooglePauseKeywordBody = z.object({
2420
+ dry_run: z.boolean().optional().default(false)
2421
+ });
2422
+ var zGooglePauseKeywordPath = z.object({
2423
+ connection_id: z.string(),
2424
+ id: z.string().regex(/^\d+$/)
2425
+ });
2426
+ var zGooglePauseKeywordResponse = z.object({
2427
+ id: z.string(),
2428
+ status: z.enum(["ENABLED", "PAUSED"]),
2429
+ dry_run: z.boolean(),
2430
+ executed: z.boolean()
2431
+ });
2432
+ var zGoogleEnableKeywordBody = z.object({
2433
+ dry_run: z.boolean().optional().default(false)
2434
+ });
2435
+ var zGoogleEnableKeywordPath = z.object({
2436
+ connection_id: z.string(),
2437
+ id: z.string().regex(/^\d+$/)
2438
+ });
2439
+ var zGoogleEnableKeywordResponse = z.object({
2440
+ id: z.string(),
2441
+ status: z.enum(["ENABLED", "PAUSED"]),
2442
+ dry_run: z.boolean(),
2443
+ executed: z.boolean()
2444
+ });
2445
+ var zGoogleListConversionActionsPath = z.object({
2446
+ connection_id: z.string()
2447
+ });
2448
+ var zGoogleListConversionActionsResponse = z.object({
2449
+ object: z.literal("list"),
2450
+ data: z.array(z.object({
2451
+ id: z.string(),
2452
+ name: z.string().nullable(),
2453
+ status: z.enum([
2454
+ "UNSPECIFIED",
2455
+ "UNKNOWN",
2456
+ "ENABLED",
2457
+ "REMOVED",
2458
+ "HIDDEN"
2459
+ ]),
2460
+ type: z.enum([
2461
+ "UNSPECIFIED",
2462
+ "UNKNOWN",
2463
+ "AD_CALL",
2464
+ "CLICK_TO_CALL",
2465
+ "GOOGLE_PLAY_DOWNLOAD",
2466
+ "GOOGLE_PLAY_IN_APP_PURCHASE",
2467
+ "UPLOAD_CALLS",
2468
+ "UPLOAD_CLICKS",
2469
+ "WEBPAGE",
2470
+ "WEBSITE_CALL",
2471
+ "STORE_SALES_DIRECT_UPLOAD",
2472
+ "STORE_SALES",
2473
+ "FIREBASE_ANDROID_FIRST_OPEN",
2474
+ "FIREBASE_ANDROID_IN_APP_PURCHASE",
2475
+ "FIREBASE_ANDROID_CUSTOM",
2476
+ "FIREBASE_IOS_FIRST_OPEN",
2477
+ "FIREBASE_IOS_IN_APP_PURCHASE",
2478
+ "FIREBASE_IOS_CUSTOM",
2479
+ "THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN",
2480
+ "THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE",
2481
+ "THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM",
2482
+ "THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN",
2483
+ "THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE",
2484
+ "THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM",
2485
+ "ANDROID_APP_PRE_REGISTRATION",
2486
+ "ANDROID_INSTALLS_ALL_OTHER_APPS",
2487
+ "FLOODLIGHT_ACTION",
2488
+ "FLOODLIGHT_TRANSACTION",
2489
+ "GOOGLE_HOSTED",
2490
+ "LEAD_FORM_SUBMIT",
2491
+ "SALESFORCE",
2492
+ "SEARCH_ADS_360",
2493
+ "SMART_CAMPAIGN_AD_CLICKS_TO_CALL",
2494
+ "SMART_CAMPAIGN_MAP_CLICKS_TO_CALL",
2495
+ "SMART_CAMPAIGN_MAP_DIRECTIONS",
2496
+ "SMART_CAMPAIGN_TRACKED_CALLS",
2497
+ "STORE_VISITS",
2498
+ "WEBPAGE_CODELESS",
2499
+ "UNIVERSAL_ANALYTICS_GOAL",
2500
+ "UNIVERSAL_ANALYTICS_TRANSACTION",
2501
+ "GOOGLE_ANALYTICS_4_CUSTOM",
2502
+ "GOOGLE_ANALYTICS_4_PURCHASE"
2503
+ ]),
2504
+ category: z.enum([
2505
+ "UNSPECIFIED",
2506
+ "UNKNOWN",
2507
+ "DEFAULT",
2508
+ "PAGE_VIEW",
2509
+ "PURCHASE",
2510
+ "SIGNUP",
2511
+ "DOWNLOAD",
2512
+ "ADD_TO_CART",
2513
+ "BEGIN_CHECKOUT",
2514
+ "SUBSCRIBE_PAID",
2515
+ "PHONE_CALL_LEAD",
2516
+ "IMPORTED_LEAD",
2517
+ "SUBMIT_LEAD_FORM",
2518
+ "BOOK_APPOINTMENT",
2519
+ "REQUEST_QUOTE",
2520
+ "GET_DIRECTIONS",
2521
+ "OUTBOUND_CLICK",
2522
+ "CONTACT",
2523
+ "ENGAGEMENT",
2524
+ "STORE_VISIT",
2525
+ "STORE_SALE",
2526
+ "QUALIFIED_LEAD",
2527
+ "CONVERTED_LEAD"
2528
+ ]),
2529
+ origin: z.enum([
2530
+ "UNSPECIFIED",
2531
+ "UNKNOWN",
2532
+ "WEBSITE",
2533
+ "GOOGLE_HOSTED",
2534
+ "APP",
2535
+ "CALL_FROM_ADS",
2536
+ "STORE",
2537
+ "YOUTUBE_HOSTED"
2538
+ ]),
2539
+ primary_for_goal: z.boolean(),
2540
+ counting_type: z.enum([
2541
+ "UNSPECIFIED",
2542
+ "UNKNOWN",
2543
+ "ONE_PER_CLICK",
2544
+ "MANY_PER_CLICK"
2545
+ ]),
2546
+ value_settings: z.object({
2547
+ default_value: z.number().nullable(),
2548
+ default_currency_code: z.string().nullable(),
2549
+ always_use_default_value: z.boolean().nullable()
2550
+ }).nullable(),
2551
+ tag_snippets: z.array(z.object({
2552
+ type: z.enum([
2553
+ "UNSPECIFIED",
2554
+ "UNKNOWN",
2555
+ "WEBPAGE",
2556
+ "WEBPAGE_ONCLICK",
2557
+ "CLICK_TO_CALL",
2558
+ "WEBSITE_CALL"
2559
+ ]),
2560
+ page_format: z.enum([
2561
+ "UNSPECIFIED",
2562
+ "UNKNOWN",
2563
+ "HTML",
2564
+ "AMP"
2565
+ ]),
2566
+ global_site_tag: z.string().nullable(),
2567
+ event_snippet: z.string().nullable()
2568
+ }))
2569
+ }))
2570
+ });
2571
+ var zGoogleCreateConversionActionBody = z.object({
2572
+ name: z.string().min(1).max(255),
2573
+ type: z.enum(["WEBPAGE", "UPLOAD_CLICKS"]),
2574
+ category: z.enum([
2575
+ "DEFAULT",
2576
+ "PAGE_VIEW",
2577
+ "PURCHASE",
2578
+ "SIGNUP",
2579
+ "DOWNLOAD",
2580
+ "ADD_TO_CART",
2581
+ "BEGIN_CHECKOUT",
2582
+ "SUBSCRIBE_PAID",
2583
+ "PHONE_CALL_LEAD",
2584
+ "IMPORTED_LEAD",
2585
+ "SUBMIT_LEAD_FORM",
2586
+ "BOOK_APPOINTMENT",
2587
+ "REQUEST_QUOTE",
2588
+ "GET_DIRECTIONS",
2589
+ "OUTBOUND_CLICK",
2590
+ "CONTACT",
2591
+ "ENGAGEMENT",
2592
+ "STORE_VISIT",
2593
+ "STORE_SALE",
2594
+ "QUALIFIED_LEAD",
2595
+ "CONVERTED_LEAD"
2596
+ ]),
2597
+ status: z.enum(["ENABLED"]).optional().default("ENABLED"),
2598
+ value_settings: z.object({
2599
+ default_value: z.number().gte(0).optional(),
2600
+ default_currency_code: z.string().length(3).optional(),
2601
+ always_use_default_value: z.boolean().optional()
2602
+ }).optional(),
2603
+ counting_type: z.enum(["ONE_PER_CLICK", "MANY_PER_CLICK"]).optional(),
2604
+ click_through_lookback_window_days: z.int().gt(0).lte(9007199254740991).optional(),
2605
+ view_through_lookback_window_days: z.int().gt(0).lte(9007199254740991).optional(),
2606
+ dry_run: z.boolean().optional().default(false)
2607
+ });
2608
+ var zGoogleCreateConversionActionPath = z.object({
2609
+ connection_id: z.string()
2610
+ });
2611
+ var zGoogleCreateConversionActionResponse = z.object({
2612
+ id: z.string().nullable(),
2613
+ resource_name: z.string().nullable(),
2614
+ dry_run: z.boolean(),
2615
+ executed: z.boolean()
2616
+ });
2617
+ var zGoogleGetConversionActionPath = z.object({
2618
+ connection_id: z.string(),
2619
+ id: z.string().regex(/^\d+$/)
2620
+ });
2621
+ var zGoogleGetConversionActionResponse = z.object({
2622
+ id: z.string(),
2623
+ name: z.string().nullable(),
2624
+ status: z.enum([
2625
+ "UNSPECIFIED",
2626
+ "UNKNOWN",
2627
+ "ENABLED",
2628
+ "REMOVED",
2629
+ "HIDDEN"
2630
+ ]),
2631
+ type: z.enum([
2632
+ "UNSPECIFIED",
2633
+ "UNKNOWN",
2634
+ "AD_CALL",
2635
+ "CLICK_TO_CALL",
2636
+ "GOOGLE_PLAY_DOWNLOAD",
2637
+ "GOOGLE_PLAY_IN_APP_PURCHASE",
2638
+ "UPLOAD_CALLS",
2639
+ "UPLOAD_CLICKS",
2640
+ "WEBPAGE",
2641
+ "WEBSITE_CALL",
2642
+ "STORE_SALES_DIRECT_UPLOAD",
2643
+ "STORE_SALES",
2644
+ "FIREBASE_ANDROID_FIRST_OPEN",
2645
+ "FIREBASE_ANDROID_IN_APP_PURCHASE",
2646
+ "FIREBASE_ANDROID_CUSTOM",
2647
+ "FIREBASE_IOS_FIRST_OPEN",
2648
+ "FIREBASE_IOS_IN_APP_PURCHASE",
2649
+ "FIREBASE_IOS_CUSTOM",
2650
+ "THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN",
2651
+ "THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE",
2652
+ "THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM",
2653
+ "THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN",
2654
+ "THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE",
2655
+ "THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM",
2656
+ "ANDROID_APP_PRE_REGISTRATION",
2657
+ "ANDROID_INSTALLS_ALL_OTHER_APPS",
2658
+ "FLOODLIGHT_ACTION",
2659
+ "FLOODLIGHT_TRANSACTION",
2660
+ "GOOGLE_HOSTED",
2661
+ "LEAD_FORM_SUBMIT",
2662
+ "SALESFORCE",
2663
+ "SEARCH_ADS_360",
2664
+ "SMART_CAMPAIGN_AD_CLICKS_TO_CALL",
2665
+ "SMART_CAMPAIGN_MAP_CLICKS_TO_CALL",
2666
+ "SMART_CAMPAIGN_MAP_DIRECTIONS",
2667
+ "SMART_CAMPAIGN_TRACKED_CALLS",
2668
+ "STORE_VISITS",
2669
+ "WEBPAGE_CODELESS",
2670
+ "UNIVERSAL_ANALYTICS_GOAL",
2671
+ "UNIVERSAL_ANALYTICS_TRANSACTION",
2672
+ "GOOGLE_ANALYTICS_4_CUSTOM",
2673
+ "GOOGLE_ANALYTICS_4_PURCHASE"
2674
+ ]),
2675
+ category: z.enum([
2676
+ "UNSPECIFIED",
2677
+ "UNKNOWN",
2678
+ "DEFAULT",
2679
+ "PAGE_VIEW",
2680
+ "PURCHASE",
2681
+ "SIGNUP",
2682
+ "DOWNLOAD",
2683
+ "ADD_TO_CART",
2684
+ "BEGIN_CHECKOUT",
2685
+ "SUBSCRIBE_PAID",
2686
+ "PHONE_CALL_LEAD",
2687
+ "IMPORTED_LEAD",
2688
+ "SUBMIT_LEAD_FORM",
2689
+ "BOOK_APPOINTMENT",
2690
+ "REQUEST_QUOTE",
2691
+ "GET_DIRECTIONS",
2692
+ "OUTBOUND_CLICK",
2693
+ "CONTACT",
2694
+ "ENGAGEMENT",
2695
+ "STORE_VISIT",
2696
+ "STORE_SALE",
2697
+ "QUALIFIED_LEAD",
2698
+ "CONVERTED_LEAD"
2699
+ ]),
2700
+ origin: z.enum([
2701
+ "UNSPECIFIED",
2702
+ "UNKNOWN",
2703
+ "WEBSITE",
2704
+ "GOOGLE_HOSTED",
2705
+ "APP",
2706
+ "CALL_FROM_ADS",
2707
+ "STORE",
2708
+ "YOUTUBE_HOSTED"
2709
+ ]),
2710
+ primary_for_goal: z.boolean(),
2711
+ counting_type: z.enum([
2712
+ "UNSPECIFIED",
2713
+ "UNKNOWN",
2714
+ "ONE_PER_CLICK",
2715
+ "MANY_PER_CLICK"
2716
+ ]),
2717
+ value_settings: z.object({
2718
+ default_value: z.number().nullable(),
2719
+ default_currency_code: z.string().nullable(),
2720
+ always_use_default_value: z.boolean().nullable()
2721
+ }).nullable(),
2722
+ tag_snippets: z.array(z.object({
2723
+ type: z.enum([
2724
+ "UNSPECIFIED",
2725
+ "UNKNOWN",
2726
+ "WEBPAGE",
2727
+ "WEBPAGE_ONCLICK",
2728
+ "CLICK_TO_CALL",
2729
+ "WEBSITE_CALL"
2730
+ ]),
2731
+ page_format: z.enum([
2732
+ "UNSPECIFIED",
2733
+ "UNKNOWN",
2734
+ "HTML",
2735
+ "AMP"
2736
+ ]),
2737
+ global_site_tag: z.string().nullable(),
2738
+ event_snippet: z.string().nullable()
2739
+ }))
2740
+ });
2741
+ var zGoogleListConversionGoalsPath = z.object({
2742
+ connection_id: z.string()
2743
+ });
2744
+ var zGoogleListConversionGoalsResponse = z.object({
2745
+ object: z.literal("list"),
2746
+ data: z.array(z.object({
2747
+ category: z.enum([
2748
+ "UNSPECIFIED",
2749
+ "UNKNOWN",
2750
+ "DEFAULT",
2751
+ "PAGE_VIEW",
2752
+ "PURCHASE",
2753
+ "SIGNUP",
2754
+ "DOWNLOAD",
2755
+ "ADD_TO_CART",
2756
+ "BEGIN_CHECKOUT",
2757
+ "SUBSCRIBE_PAID",
2758
+ "PHONE_CALL_LEAD",
2759
+ "IMPORTED_LEAD",
2760
+ "SUBMIT_LEAD_FORM",
2761
+ "BOOK_APPOINTMENT",
2762
+ "REQUEST_QUOTE",
2763
+ "GET_DIRECTIONS",
2764
+ "OUTBOUND_CLICK",
2765
+ "CONTACT",
2766
+ "ENGAGEMENT",
2767
+ "STORE_VISIT",
2768
+ "STORE_SALE",
2769
+ "QUALIFIED_LEAD",
2770
+ "CONVERTED_LEAD"
2771
+ ]),
2772
+ origin: z.enum([
2773
+ "UNSPECIFIED",
2774
+ "UNKNOWN",
2775
+ "WEBSITE",
2776
+ "GOOGLE_HOSTED",
2777
+ "APP",
2778
+ "CALL_FROM_ADS",
2779
+ "STORE",
2780
+ "YOUTUBE_HOSTED"
2781
+ ]),
2782
+ biddable: z.boolean()
2783
+ }))
2784
+ });
2785
+ var zGoogleSetConversionGoalBody = z.object({
2786
+ category: z.enum([
2787
+ "DEFAULT",
2788
+ "PAGE_VIEW",
2789
+ "PURCHASE",
2790
+ "SIGNUP",
2791
+ "DOWNLOAD",
2792
+ "ADD_TO_CART",
2793
+ "BEGIN_CHECKOUT",
2794
+ "SUBSCRIBE_PAID",
2795
+ "PHONE_CALL_LEAD",
2796
+ "IMPORTED_LEAD",
2797
+ "SUBMIT_LEAD_FORM",
2798
+ "BOOK_APPOINTMENT",
2799
+ "REQUEST_QUOTE",
2800
+ "GET_DIRECTIONS",
2801
+ "OUTBOUND_CLICK",
2802
+ "CONTACT",
2803
+ "ENGAGEMENT",
2804
+ "STORE_VISIT",
2805
+ "STORE_SALE",
2806
+ "QUALIFIED_LEAD",
2807
+ "CONVERTED_LEAD"
2808
+ ]),
2809
+ origin: z.enum([
2810
+ "WEBSITE",
2811
+ "GOOGLE_HOSTED",
2812
+ "APP",
2813
+ "CALL_FROM_ADS",
2814
+ "STORE",
2815
+ "YOUTUBE_HOSTED"
2816
+ ]),
2817
+ biddable: z.boolean(),
2818
+ dry_run: z.boolean().optional().default(false)
2819
+ });
2820
+ var zGoogleSetConversionGoalPath = z.object({
2821
+ connection_id: z.string()
2822
+ });
2823
+ var zGoogleSetConversionGoalResponse = z.object({
2824
+ category: z.enum([
2825
+ "UNSPECIFIED",
2826
+ "UNKNOWN",
2827
+ "DEFAULT",
2828
+ "PAGE_VIEW",
2829
+ "PURCHASE",
2830
+ "SIGNUP",
2831
+ "DOWNLOAD",
2832
+ "ADD_TO_CART",
2833
+ "BEGIN_CHECKOUT",
2834
+ "SUBSCRIBE_PAID",
2835
+ "PHONE_CALL_LEAD",
2836
+ "IMPORTED_LEAD",
2837
+ "SUBMIT_LEAD_FORM",
2838
+ "BOOK_APPOINTMENT",
2839
+ "REQUEST_QUOTE",
2840
+ "GET_DIRECTIONS",
2841
+ "OUTBOUND_CLICK",
2842
+ "CONTACT",
2843
+ "ENGAGEMENT",
2844
+ "STORE_VISIT",
2845
+ "STORE_SALE",
2846
+ "QUALIFIED_LEAD",
2847
+ "CONVERTED_LEAD"
2848
+ ]),
2849
+ origin: z.enum([
2850
+ "UNSPECIFIED",
2851
+ "UNKNOWN",
2852
+ "WEBSITE",
2853
+ "GOOGLE_HOSTED",
2854
+ "APP",
2855
+ "CALL_FROM_ADS",
2856
+ "STORE",
2857
+ "YOUTUBE_HOSTED"
2858
+ ]),
2859
+ biddable: z.boolean(),
2860
+ dry_run: z.boolean(),
2861
+ executed: z.boolean()
2862
+ });
2863
+ var zGoogleUploadConversionsBody = z.object({
2864
+ conversions: z.array(z.object({
2865
+ conversion_action: z.string().min(1),
2866
+ conversion_date_time: z.string().regex(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}[+-]\d{2}:\d{2}$/),
2867
+ conversion_value: z.number().gte(0).optional(),
2868
+ currency_code: z.string().length(3).optional(),
2869
+ order_id: z.string().optional(),
2870
+ gclid: z.string().optional(),
2871
+ gbraid: z.string().optional(),
2872
+ wbraid: z.string().optional(),
2873
+ user_identifiers: z.array(z.object({
2874
+ hashed_email: z.string().regex(/^[a-f0-9]{64}$/).optional(),
2875
+ hashed_phone_number: z.string().regex(/^[a-f0-9]{64}$/).optional(),
2876
+ user_identifier_source: z.enum(["FIRST_PARTY", "THIRD_PARTY"]).optional()
2877
+ })).min(1).max(5).optional(),
2878
+ consent: z.object({
2879
+ ad_user_data: z.enum(["GRANTED", "DENIED"]).optional(),
2880
+ ad_personalization: z.enum(["GRANTED", "DENIED"]).optional()
2881
+ }).optional()
2882
+ })).min(1).max(2e3),
2883
+ dry_run: z.boolean().optional().default(false)
2884
+ });
2885
+ var zGoogleUploadConversionsPath = z.object({
2886
+ connection_id: z.string()
2887
+ });
2888
+ var zGoogleUploadConversionsResponse = z.object({
2889
+ received: z.int().gte(-9007199254740991).lte(9007199254740991),
2890
+ succeeded: z.int().gte(-9007199254740991).lte(9007199254740991),
2891
+ failed: z.int().gte(-9007199254740991).lte(9007199254740991),
2892
+ errors: z.array(z.object({
2893
+ index: z.int().gte(-9007199254740991).lte(9007199254740991),
2894
+ error_code: z.string(),
2895
+ message: z.string()
2896
+ })),
2897
+ dry_run: z.boolean()
2898
+ });
2899
+ var zGoogleUploadImageAssetBody = z.object({
2900
+ media_id: z.string(),
2901
+ dry_run: z.boolean().optional().default(false)
2902
+ });
2903
+ var zGoogleUploadImageAssetPath = z.object({
2904
+ connection_id: z.string()
2905
+ });
2906
+ var zGoogleUploadImageAssetResponse = z.object({
2907
+ id: z.string().nullable(),
2908
+ resource_name: z.string().nullable(),
2909
+ dry_run: z.boolean(),
2910
+ executed: z.boolean()
2911
+ });
2912
+ var zLogsListQuery = z.object({
2913
+ limit: z.int().gte(1).lte(100).optional().default(20),
2914
+ offset: z.int().gte(0).lte(9007199254740991).optional().default(0),
2915
+ profile_id: z.string().optional(),
2916
+ connection_id: z.string().optional(),
2917
+ platform: z.enum([
2918
+ "meta_ads",
2919
+ "google_ads",
2920
+ "tiktok_ads",
2921
+ "x",
2922
+ "linkedin",
2923
+ "facebook_page",
2924
+ "instagram",
2925
+ "tiktok"
2926
+ ]).optional(),
2927
+ status: z.enum([
2928
+ "pending",
2929
+ "success",
2930
+ "error"
2931
+ ]).optional(),
2932
+ source: z.enum([
2933
+ "api",
2934
+ "dashboard",
2935
+ "mcp",
2936
+ "scheduler"
2937
+ ]).optional(),
2938
+ action: z.string().min(1).optional(),
2939
+ created_after: z.iso.datetime().optional(),
2940
+ created_before: z.iso.datetime().optional()
2941
+ });
2942
+ var zLogsListResponse = z.object({
2943
+ object: z.literal("list"),
2944
+ data: z.array(z.object({
2945
+ id: z.string(),
2946
+ source: z.enum([
2947
+ "api",
2948
+ "dashboard",
2949
+ "mcp",
2950
+ "scheduler"
2951
+ ]),
2952
+ action: z.string(),
2953
+ status: z.enum([
2954
+ "pending",
2955
+ "success",
2956
+ "error"
2957
+ ]),
2958
+ status_code: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
2959
+ platform: z.enum([
2960
+ "meta_ads",
2961
+ "google_ads",
2962
+ "tiktok_ads",
2963
+ "x",
2964
+ "linkedin",
2965
+ "facebook_page",
2966
+ "instagram",
2967
+ "tiktok"
2968
+ ]).nullable(),
2969
+ request_method: z.string().nullable(),
2970
+ request_path: z.string().nullable(),
2971
+ request_body: z.unknown().nullish(),
2972
+ response_body: z.unknown().nullish(),
2973
+ error: z.unknown().nullish(),
2974
+ external_id: z.string().nullable(),
2975
+ idempotency_key: z.string().nullable(),
2976
+ request_id: z.string().nullable(),
2977
+ duration_ms: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
2978
+ profile_id: z.string().nullable(),
2979
+ connection_id: z.string().nullable(),
2980
+ api_key_id: z.string().nullable(),
2981
+ created_at: z.string().nullable(),
2982
+ updated_at: z.string().nullable()
2983
+ })),
2984
+ total: z.int().gte(-9007199254740991).lte(9007199254740991),
2985
+ limit: z.int().gte(-9007199254740991).lte(9007199254740991),
2986
+ offset: z.int().gte(-9007199254740991).lte(9007199254740991),
2987
+ has_more: z.boolean()
2988
+ });
2989
+ var zLogsGetPath = z.object({
2990
+ id: z.string()
2991
+ });
2992
+ var zLogsGetResponse = z.object({
2993
+ id: z.string(),
2994
+ source: z.enum([
2995
+ "api",
2996
+ "dashboard",
2997
+ "mcp",
2998
+ "scheduler"
2999
+ ]),
3000
+ action: z.string(),
3001
+ status: z.enum([
3002
+ "pending",
3003
+ "success",
3004
+ "error"
3005
+ ]),
3006
+ status_code: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
3007
+ platform: z.enum([
3008
+ "meta_ads",
3009
+ "google_ads",
3010
+ "tiktok_ads",
3011
+ "x",
3012
+ "linkedin",
3013
+ "facebook_page",
3014
+ "instagram",
3015
+ "tiktok"
3016
+ ]).nullable(),
3017
+ request_method: z.string().nullable(),
3018
+ request_path: z.string().nullable(),
3019
+ request_body: z.unknown().nullish(),
3020
+ response_body: z.unknown().nullish(),
3021
+ error: z.unknown().nullish(),
3022
+ external_id: z.string().nullable(),
3023
+ idempotency_key: z.string().nullable(),
3024
+ request_id: z.string().nullable(),
3025
+ duration_ms: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
3026
+ profile_id: z.string().nullable(),
3027
+ connection_id: z.string().nullable(),
3028
+ api_key_id: z.string().nullable(),
3029
+ created_at: z.string().nullable(),
3030
+ updated_at: z.string().nullable()
3031
+ });
3032
+ var zWebhooksListEndpointsQuery = z.object({
3033
+ limit: z.int().gte(1).lte(100).optional().default(20),
3034
+ offset: z.int().gte(0).lte(9007199254740991).optional().default(0)
3035
+ });
3036
+ var zWebhooksListEndpointsResponse = z.object({
3037
+ object: z.literal("list"),
3038
+ data: z.array(z.object({
3039
+ id: z.string(),
3040
+ url: z.string(),
3041
+ description: z.string(),
3042
+ event_types: z.array(z.string()),
3043
+ disabled: z.boolean(),
3044
+ created_at: z.string(),
3045
+ updated_at: z.string()
3046
+ })),
3047
+ total: z.int().gte(-9007199254740991).lte(9007199254740991),
3048
+ limit: z.int().gte(-9007199254740991).lte(9007199254740991),
3049
+ offset: z.int().gte(-9007199254740991).lte(9007199254740991),
3050
+ has_more: z.boolean()
3051
+ });
3052
+ var zWebhooksCreateEndpointBody = z.object({
3053
+ url: z.url(),
3054
+ description: z.string().max(255).optional(),
3055
+ event_types: z.array(z.enum([
3056
+ "webhook.ping",
3057
+ "post.published",
3058
+ "post.failed",
3059
+ "post.completed"
3060
+ ]))
3061
+ });
3062
+ var zWebhooksCreateEndpointResponse = z.object({
3063
+ id: z.string(),
3064
+ url: z.string(),
3065
+ description: z.string(),
3066
+ event_types: z.array(z.string()),
3067
+ disabled: z.boolean(),
3068
+ created_at: z.string(),
3069
+ updated_at: z.string()
3070
+ });
3071
+ var zWebhooksDeleteEndpointPath = z.object({
3072
+ id: z.string()
3073
+ });
3074
+ var zWebhooksDeleteEndpointResponse = z.object({
3075
+ id: z.string(),
3076
+ object: z.literal("webhook_endpoint"),
3077
+ deleted: z.literal(true)
3078
+ });
3079
+ var zWebhooksGetEndpointPath = z.object({
3080
+ id: z.string()
3081
+ });
3082
+ var zWebhooksGetEndpointResponse = z.object({
3083
+ id: z.string(),
3084
+ url: z.string(),
3085
+ description: z.string(),
3086
+ event_types: z.array(z.string()),
3087
+ disabled: z.boolean(),
3088
+ created_at: z.string(),
3089
+ updated_at: z.string()
3090
+ });
3091
+ var zWebhooksUpdateEndpointBody = z.object({
3092
+ url: z.url().optional(),
3093
+ description: z.string().max(255).optional(),
3094
+ disabled: z.boolean().optional(),
3095
+ event_types: z.array(z.enum([
3096
+ "webhook.ping",
3097
+ "post.published",
3098
+ "post.failed",
3099
+ "post.completed"
3100
+ ])).optional()
3101
+ });
3102
+ var zWebhooksUpdateEndpointPath = z.object({
3103
+ id: z.string()
3104
+ });
3105
+ var zWebhooksUpdateEndpointResponse = z.object({
3106
+ id: z.string(),
3107
+ url: z.string(),
3108
+ description: z.string(),
3109
+ event_types: z.array(z.string()),
3110
+ disabled: z.boolean(),
3111
+ created_at: z.string(),
3112
+ updated_at: z.string()
3113
+ });
3114
+ var zWebhooksCreatePortalResponse = z.object({
3115
+ url: z.string()
3116
+ });
3117
+ var zWebhooksListEventTypesResponse = z.array(z.object({
3118
+ name: z.string(),
3119
+ group: z.string(),
3120
+ description: z.string()
3121
+ }));
3122
+ var zWebhooksPingBody = z.object({
3123
+ message: z.string().max(255).optional().default("Hello from Postrun")
3124
+ });
3125
+ var zWebhooksPingResponse = z.object({
3126
+ id: z.string()
3127
+ });
3128
+ var zTokensMintBody = z.object({
3129
+ profile_scope: z.union([
3130
+ z.object({
3131
+ type: z.literal("ids"),
3132
+ values: z.array(z.string()).min(1).max(100)
3133
+ }),
3134
+ z.object({
3135
+ type: z.literal("external_id"),
3136
+ values: z.array(z.string().min(1).max(255)).min(1).max(50)
3137
+ }),
3138
+ z.object({
3139
+ type: z.literal("all")
3140
+ })
3141
+ ]),
3142
+ scopes: z.array(z.enum([
3143
+ "profiles:read",
3144
+ "profiles:write",
3145
+ "connections:read",
3146
+ "connections:write",
3147
+ "ads:read",
3148
+ "ads:write",
3149
+ "posts:read",
3150
+ "posts:write",
3151
+ "media:read",
3152
+ "media:write"
3153
+ ])).min(1),
3154
+ ttl_seconds: z.int().gte(60).lte(1800).optional().default(900)
3155
+ });
3156
+ var zTokensMintResponse = z.object({
3157
+ token: z.string(),
3158
+ expires_at: z.string()
3159
+ });
3160
+
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