@postrun/js 2.25.0 → 3.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.
- package/dist/{chunk-ZKETM7OS.js → chunk-BJ6NXBN5.js} +43 -108
- package/dist/chunk-BJ6NXBN5.js.map +1 -0
- package/dist/{chunk-VDCNJXGG.js → chunk-DT4DW5LA.js} +3 -3
- package/dist/{chunk-VDCNJXGG.js.map → chunk-DT4DW5LA.js.map} +1 -1
- package/dist/index.cjs +47 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -30
- package/dist/index.d.ts +42 -30
- package/dist/index.js +8 -54
- package/dist/index.js.map +1 -1
- package/dist/query.d.cts +64 -61
- package/dist/query.d.ts +64 -61
- package/dist/schemas/index.cjs +65 -106
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +398 -497
- package/dist/schemas/index.d.ts +398 -497
- package/dist/schemas/index.js +27 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/server.cjs +42 -107
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-DlTNd9za.d.cts → types.gen-MxJw6FpT.d.cts} +43 -41
- package/dist/{types.gen-DlTNd9za.d.ts → types.gen-MxJw6FpT.d.ts} +43 -41
- package/package.json +1 -1
- package/dist/chunk-ZKETM7OS.js.map +0 -1
package/dist/schemas/index.cjs
CHANGED
|
@@ -44,6 +44,7 @@ var zErrorCode = z__namespace.enum([
|
|
|
44
44
|
"media_processing",
|
|
45
45
|
"media_upload_init_failed",
|
|
46
46
|
"media_upload_incomplete",
|
|
47
|
+
"media_upload_invalid_parts",
|
|
47
48
|
"not_publishable",
|
|
48
49
|
"invalid_connection",
|
|
49
50
|
"invalid_media",
|
|
@@ -79,7 +80,6 @@ var zErrorCode = z__namespace.enum([
|
|
|
79
80
|
"content_missing",
|
|
80
81
|
"content_conflict",
|
|
81
82
|
"content_incomplete",
|
|
82
|
-
"content_kind_mismatch",
|
|
83
83
|
"media_type_mismatch",
|
|
84
84
|
"tag_limit_exceeded",
|
|
85
85
|
"reel_field_on_non_reel",
|
|
@@ -439,12 +439,6 @@ var zTikTokPrivacyLevel = z__namespace.enum([
|
|
|
439
439
|
var zPostVariant = z__namespace.union([
|
|
440
440
|
z__namespace.object({
|
|
441
441
|
platform: z__namespace.literal("x"),
|
|
442
|
-
post_type: z__namespace.enum([
|
|
443
|
-
"text",
|
|
444
|
-
"single_image",
|
|
445
|
-
"multi_image",
|
|
446
|
-
"video"
|
|
447
|
-
]),
|
|
448
442
|
settings: z__namespace.object({
|
|
449
443
|
reply_settings: z__namespace.enum([
|
|
450
444
|
"everyone",
|
|
@@ -479,6 +473,7 @@ var zPostVariant = z__namespace.union([
|
|
|
479
473
|
}),
|
|
480
474
|
id: z__namespace.string(),
|
|
481
475
|
object: z__namespace.literal("post_variant"),
|
|
476
|
+
post_type: zPostType.nullable(),
|
|
482
477
|
connection_id: z__namespace.string().nullable(),
|
|
483
478
|
body: z__namespace.string().nullable(),
|
|
484
479
|
status: zPostVariantStatus,
|
|
@@ -510,6 +505,7 @@ var zPostVariant = z__namespace.union([
|
|
|
510
505
|
"media_processing",
|
|
511
506
|
"media_upload_init_failed",
|
|
512
507
|
"media_upload_incomplete",
|
|
508
|
+
"media_upload_invalid_parts",
|
|
513
509
|
"not_publishable",
|
|
514
510
|
"invalid_connection",
|
|
515
511
|
"invalid_media",
|
|
@@ -545,7 +541,6 @@ var zPostVariant = z__namespace.union([
|
|
|
545
541
|
"content_missing",
|
|
546
542
|
"content_conflict",
|
|
547
543
|
"content_incomplete",
|
|
548
|
-
"content_kind_mismatch",
|
|
549
544
|
"media_type_mismatch",
|
|
550
545
|
"tag_limit_exceeded",
|
|
551
546
|
"reel_field_on_non_reel",
|
|
@@ -629,23 +624,8 @@ var zPostVariant = z__namespace.union([
|
|
|
629
624
|
}),
|
|
630
625
|
z__namespace.object({
|
|
631
626
|
platform: z__namespace.literal("linkedin"),
|
|
632
|
-
post_type: z__namespace.enum([
|
|
633
|
-
"text",
|
|
634
|
-
"single_image",
|
|
635
|
-
"multi_image",
|
|
636
|
-
"video"
|
|
637
|
-
]),
|
|
638
627
|
settings: z__namespace.object({
|
|
639
628
|
visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
|
|
640
|
-
content_kind: z__namespace.enum([
|
|
641
|
-
"text",
|
|
642
|
-
"single_image",
|
|
643
|
-
"video",
|
|
644
|
-
"multi_image",
|
|
645
|
-
"document",
|
|
646
|
-
"article",
|
|
647
|
-
"poll"
|
|
648
|
-
]),
|
|
649
629
|
article: z__namespace.object({
|
|
650
630
|
source: z__namespace.url(),
|
|
651
631
|
title: z__namespace.string().max(400).optional(),
|
|
@@ -674,6 +654,7 @@ var zPostVariant = z__namespace.union([
|
|
|
674
654
|
}),
|
|
675
655
|
id: z__namespace.string(),
|
|
676
656
|
object: z__namespace.literal("post_variant"),
|
|
657
|
+
post_type: zPostType.nullable(),
|
|
677
658
|
connection_id: z__namespace.string().nullable(),
|
|
678
659
|
body: z__namespace.string().nullable(),
|
|
679
660
|
status: zPostVariantStatus,
|
|
@@ -705,6 +686,7 @@ var zPostVariant = z__namespace.union([
|
|
|
705
686
|
"media_processing",
|
|
706
687
|
"media_upload_init_failed",
|
|
707
688
|
"media_upload_incomplete",
|
|
689
|
+
"media_upload_invalid_parts",
|
|
708
690
|
"not_publishable",
|
|
709
691
|
"invalid_connection",
|
|
710
692
|
"invalid_media",
|
|
@@ -740,7 +722,6 @@ var zPostVariant = z__namespace.union([
|
|
|
740
722
|
"content_missing",
|
|
741
723
|
"content_conflict",
|
|
742
724
|
"content_incomplete",
|
|
743
|
-
"content_kind_mismatch",
|
|
744
725
|
"media_type_mismatch",
|
|
745
726
|
"tag_limit_exceeded",
|
|
746
727
|
"reel_field_on_non_reel",
|
|
@@ -820,21 +801,25 @@ var zPostVariant = z__namespace.union([
|
|
|
820
801
|
position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
821
802
|
alt_text_override: z__namespace.string().nullable(),
|
|
822
803
|
media: zMedia
|
|
823
|
-
}))
|
|
824
|
-
|
|
825
|
-
z__namespace.object({
|
|
826
|
-
platform: z__namespace.literal("facebook_page"),
|
|
827
|
-
post_type: z__namespace.enum([
|
|
804
|
+
})),
|
|
805
|
+
content_kind: z__namespace.enum([
|
|
828
806
|
"text",
|
|
829
807
|
"single_image",
|
|
808
|
+
"video",
|
|
830
809
|
"multi_image",
|
|
831
|
-
"
|
|
832
|
-
|
|
810
|
+
"document",
|
|
811
|
+
"article",
|
|
812
|
+
"poll"
|
|
813
|
+
]).nullable()
|
|
814
|
+
}),
|
|
815
|
+
z__namespace.object({
|
|
816
|
+
platform: z__namespace.literal("facebook_page"),
|
|
833
817
|
settings: z__namespace.object({
|
|
834
818
|
link: z__namespace.url().optional()
|
|
835
819
|
}),
|
|
836
820
|
id: z__namespace.string(),
|
|
837
821
|
object: z__namespace.literal("post_variant"),
|
|
822
|
+
post_type: zPostType.nullable(),
|
|
838
823
|
connection_id: z__namespace.string().nullable(),
|
|
839
824
|
body: z__namespace.string().nullable(),
|
|
840
825
|
status: zPostVariantStatus,
|
|
@@ -866,6 +851,7 @@ var zPostVariant = z__namespace.union([
|
|
|
866
851
|
"media_processing",
|
|
867
852
|
"media_upload_init_failed",
|
|
868
853
|
"media_upload_incomplete",
|
|
854
|
+
"media_upload_invalid_parts",
|
|
869
855
|
"not_publishable",
|
|
870
856
|
"invalid_connection",
|
|
871
857
|
"invalid_media",
|
|
@@ -901,7 +887,6 @@ var zPostVariant = z__namespace.union([
|
|
|
901
887
|
"content_missing",
|
|
902
888
|
"content_conflict",
|
|
903
889
|
"content_incomplete",
|
|
904
|
-
"content_kind_mismatch",
|
|
905
890
|
"media_type_mismatch",
|
|
906
891
|
"tag_limit_exceeded",
|
|
907
892
|
"reel_field_on_non_reel",
|
|
@@ -985,17 +970,7 @@ var zPostVariant = z__namespace.union([
|
|
|
985
970
|
}),
|
|
986
971
|
z__namespace.object({
|
|
987
972
|
platform: z__namespace.literal("instagram"),
|
|
988
|
-
post_type: z__namespace.enum([
|
|
989
|
-
"single_image",
|
|
990
|
-
"carousel",
|
|
991
|
-
"reel"
|
|
992
|
-
]),
|
|
993
973
|
settings: z__namespace.object({
|
|
994
|
-
media_type: z__namespace.enum([
|
|
995
|
-
"IMAGE",
|
|
996
|
-
"CAROUSEL",
|
|
997
|
-
"REELS"
|
|
998
|
-
]).optional(),
|
|
999
974
|
location_id: z__namespace.string().optional(),
|
|
1000
975
|
user_tags: z__namespace.array(z__namespace.object({
|
|
1001
976
|
username: z__namespace.string().min(1),
|
|
@@ -1010,6 +985,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1010
985
|
}),
|
|
1011
986
|
id: z__namespace.string(),
|
|
1012
987
|
object: z__namespace.literal("post_variant"),
|
|
988
|
+
post_type: zPostType.nullable(),
|
|
1013
989
|
connection_id: z__namespace.string().nullable(),
|
|
1014
990
|
body: z__namespace.string().nullable(),
|
|
1015
991
|
status: zPostVariantStatus,
|
|
@@ -1041,6 +1017,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1041
1017
|
"media_processing",
|
|
1042
1018
|
"media_upload_init_failed",
|
|
1043
1019
|
"media_upload_incomplete",
|
|
1020
|
+
"media_upload_invalid_parts",
|
|
1044
1021
|
"not_publishable",
|
|
1045
1022
|
"invalid_connection",
|
|
1046
1023
|
"invalid_media",
|
|
@@ -1076,7 +1053,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1076
1053
|
"content_missing",
|
|
1077
1054
|
"content_conflict",
|
|
1078
1055
|
"content_incomplete",
|
|
1079
|
-
"content_kind_mismatch",
|
|
1080
1056
|
"media_type_mismatch",
|
|
1081
1057
|
"tag_limit_exceeded",
|
|
1082
1058
|
"reel_field_on_non_reel",
|
|
@@ -1156,15 +1132,15 @@ var zPostVariant = z__namespace.union([
|
|
|
1156
1132
|
position: z__namespace.int().gte(-9007199254740991).lte(9007199254740991),
|
|
1157
1133
|
alt_text_override: z__namespace.string().nullable(),
|
|
1158
1134
|
media: zMedia
|
|
1159
|
-
}))
|
|
1135
|
+
})),
|
|
1136
|
+
media_type: z__namespace.enum([
|
|
1137
|
+
"IMAGE",
|
|
1138
|
+
"CAROUSEL",
|
|
1139
|
+
"REELS"
|
|
1140
|
+
]).nullable()
|
|
1160
1141
|
}),
|
|
1161
1142
|
z__namespace.object({
|
|
1162
1143
|
platform: z__namespace.literal("tiktok"),
|
|
1163
|
-
post_type: z__namespace.enum([
|
|
1164
|
-
"video",
|
|
1165
|
-
"single_image",
|
|
1166
|
-
"carousel"
|
|
1167
|
-
]),
|
|
1168
1144
|
settings: z__namespace.object({
|
|
1169
1145
|
privacy_level: zTikTokPrivacyLevel.optional(),
|
|
1170
1146
|
disable_comment: z__namespace.boolean().optional(),
|
|
@@ -1179,6 +1155,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1179
1155
|
}),
|
|
1180
1156
|
id: z__namespace.string(),
|
|
1181
1157
|
object: z__namespace.literal("post_variant"),
|
|
1158
|
+
post_type: zPostType.nullable(),
|
|
1182
1159
|
connection_id: z__namespace.string().nullable(),
|
|
1183
1160
|
body: z__namespace.string().nullable(),
|
|
1184
1161
|
status: zPostVariantStatus,
|
|
@@ -1210,6 +1187,7 @@ var zPostVariant = z__namespace.union([
|
|
|
1210
1187
|
"media_processing",
|
|
1211
1188
|
"media_upload_init_failed",
|
|
1212
1189
|
"media_upload_incomplete",
|
|
1190
|
+
"media_upload_invalid_parts",
|
|
1213
1191
|
"not_publishable",
|
|
1214
1192
|
"invalid_connection",
|
|
1215
1193
|
"invalid_media",
|
|
@@ -1245,7 +1223,6 @@ var zPostVariant = z__namespace.union([
|
|
|
1245
1223
|
"content_missing",
|
|
1246
1224
|
"content_conflict",
|
|
1247
1225
|
"content_incomplete",
|
|
1248
|
-
"content_kind_mismatch",
|
|
1249
1226
|
"media_type_mismatch",
|
|
1250
1227
|
"tag_limit_exceeded",
|
|
1251
1228
|
"reel_field_on_non_reel",
|
|
@@ -1370,12 +1347,6 @@ var zTikTokCreatorInfo = z__namespace.object({
|
|
|
1370
1347
|
var zPostVariantInput = z__namespace.union([
|
|
1371
1348
|
z__namespace.object({
|
|
1372
1349
|
platform: z__namespace.literal("x"),
|
|
1373
|
-
post_type: z__namespace.enum([
|
|
1374
|
-
"text",
|
|
1375
|
-
"single_image",
|
|
1376
|
-
"multi_image",
|
|
1377
|
-
"video"
|
|
1378
|
-
]),
|
|
1379
1350
|
settings: z__namespace.object({
|
|
1380
1351
|
reply_settings: z__namespace.enum([
|
|
1381
1352
|
"everyone",
|
|
@@ -1417,23 +1388,8 @@ var zPostVariantInput = z__namespace.union([
|
|
|
1417
1388
|
}),
|
|
1418
1389
|
z__namespace.object({
|
|
1419
1390
|
platform: z__namespace.literal("linkedin"),
|
|
1420
|
-
post_type: z__namespace.enum([
|
|
1421
|
-
"text",
|
|
1422
|
-
"single_image",
|
|
1423
|
-
"multi_image",
|
|
1424
|
-
"video"
|
|
1425
|
-
]),
|
|
1426
1391
|
settings: z__namespace.object({
|
|
1427
1392
|
visibility: z__namespace.enum(["PUBLIC", "CONNECTIONS"]),
|
|
1428
|
-
content_kind: z__namespace.enum([
|
|
1429
|
-
"text",
|
|
1430
|
-
"single_image",
|
|
1431
|
-
"video",
|
|
1432
|
-
"multi_image",
|
|
1433
|
-
"document",
|
|
1434
|
-
"article",
|
|
1435
|
-
"poll"
|
|
1436
|
-
]),
|
|
1437
1393
|
article: z__namespace.object({
|
|
1438
1394
|
source: z__namespace.url(),
|
|
1439
1395
|
title: z__namespace.string().max(400).optional(),
|
|
@@ -1469,17 +1425,7 @@ var zPostVariantInput = z__namespace.union([
|
|
|
1469
1425
|
}),
|
|
1470
1426
|
z__namespace.object({
|
|
1471
1427
|
platform: z__namespace.literal("instagram"),
|
|
1472
|
-
post_type: z__namespace.enum([
|
|
1473
|
-
"single_image",
|
|
1474
|
-
"carousel",
|
|
1475
|
-
"reel"
|
|
1476
|
-
]),
|
|
1477
1428
|
settings: z__namespace.object({
|
|
1478
|
-
media_type: z__namespace.enum([
|
|
1479
|
-
"IMAGE",
|
|
1480
|
-
"CAROUSEL",
|
|
1481
|
-
"REELS"
|
|
1482
|
-
]).optional(),
|
|
1483
1429
|
location_id: z__namespace.string().optional(),
|
|
1484
1430
|
user_tags: z__namespace.array(z__namespace.object({
|
|
1485
1431
|
username: z__namespace.string().min(1),
|
|
@@ -1501,12 +1447,6 @@ var zPostVariantInput = z__namespace.union([
|
|
|
1501
1447
|
}),
|
|
1502
1448
|
z__namespace.object({
|
|
1503
1449
|
platform: z__namespace.literal("facebook_page"),
|
|
1504
|
-
post_type: z__namespace.enum([
|
|
1505
|
-
"text",
|
|
1506
|
-
"single_image",
|
|
1507
|
-
"multi_image",
|
|
1508
|
-
"reel"
|
|
1509
|
-
]),
|
|
1510
1450
|
settings: z__namespace.object({
|
|
1511
1451
|
link: z__namespace.url().optional()
|
|
1512
1452
|
}).optional().default({}),
|
|
@@ -1519,11 +1459,6 @@ var zPostVariantInput = z__namespace.union([
|
|
|
1519
1459
|
}),
|
|
1520
1460
|
z__namespace.object({
|
|
1521
1461
|
platform: z__namespace.literal("tiktok"),
|
|
1522
|
-
post_type: z__namespace.enum([
|
|
1523
|
-
"video",
|
|
1524
|
-
"single_image",
|
|
1525
|
-
"carousel"
|
|
1526
|
-
]),
|
|
1527
1462
|
settings: z__namespace.object({
|
|
1528
1463
|
privacy_level: zTikTokPrivacyLevel.optional(),
|
|
1529
1464
|
disable_comment: z__namespace.boolean().optional(),
|
|
@@ -1551,7 +1486,7 @@ var zCreatePostBody = z__namespace.object({
|
|
|
1551
1486
|
"schedule",
|
|
1552
1487
|
"draft"
|
|
1553
1488
|
]).optional().default("draft"),
|
|
1554
|
-
schedule_at: z__namespace.iso.datetime().optional(),
|
|
1489
|
+
schedule_at: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
1555
1490
|
external_id: z__namespace.string().min(1).max(255).optional(),
|
|
1556
1491
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
1557
1492
|
z__namespace.string().max(500),
|
|
@@ -2218,7 +2153,7 @@ var zGoogleAdsConversionUserIdentifier = z__namespace.object({
|
|
|
2218
2153
|
}).optional()
|
|
2219
2154
|
});
|
|
2220
2155
|
var zGoogleAdsConversionEvent = z__namespace.object({
|
|
2221
|
-
event_timestamp: z__namespace.iso.datetime(),
|
|
2156
|
+
event_timestamp: z__namespace.iso.datetime({ offset: true }),
|
|
2222
2157
|
event_source: z__namespace.enum([
|
|
2223
2158
|
"WEB",
|
|
2224
2159
|
"APP",
|
|
@@ -2266,6 +2201,7 @@ var zGoogleAdsConversionStatusReason = z__namespace.object({
|
|
|
2266
2201
|
"media_processing",
|
|
2267
2202
|
"media_upload_init_failed",
|
|
2268
2203
|
"media_upload_incomplete",
|
|
2204
|
+
"media_upload_invalid_parts",
|
|
2269
2205
|
"not_publishable",
|
|
2270
2206
|
"invalid_connection",
|
|
2271
2207
|
"invalid_media",
|
|
@@ -2301,7 +2237,6 @@ var zGoogleAdsConversionStatusReason = z__namespace.object({
|
|
|
2301
2237
|
"content_missing",
|
|
2302
2238
|
"content_conflict",
|
|
2303
2239
|
"content_incomplete",
|
|
2304
|
-
"content_kind_mismatch",
|
|
2305
2240
|
"media_type_mismatch",
|
|
2306
2241
|
"tag_limit_exceeded",
|
|
2307
2242
|
"reel_field_on_non_reel",
|
|
@@ -2808,9 +2743,9 @@ var zPostsListQuery = z__namespace.object({
|
|
|
2808
2743
|
z__namespace.number(),
|
|
2809
2744
|
z__namespace.boolean()
|
|
2810
2745
|
])).optional(),
|
|
2811
|
-
scheduled_after: z__namespace.iso.datetime().optional(),
|
|
2812
|
-
scheduled_before: z__namespace.iso.datetime().optional(),
|
|
2813
|
-
updated_after: z__namespace.iso.datetime().optional(),
|
|
2746
|
+
scheduled_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
2747
|
+
scheduled_before: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
2748
|
+
updated_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
2814
2749
|
status: z__namespace.array(zPostStatus).optional()
|
|
2815
2750
|
});
|
|
2816
2751
|
var zPostsListResponse = z__namespace.object({
|
|
@@ -2870,7 +2805,7 @@ var zPostsUpdateBody = z__namespace.object({
|
|
|
2870
2805
|
"schedule",
|
|
2871
2806
|
"draft"
|
|
2872
2807
|
]).optional(),
|
|
2873
|
-
schedule_at: z__namespace.iso.datetime().nullish(),
|
|
2808
|
+
schedule_at: z__namespace.iso.datetime({ offset: true }).nullish(),
|
|
2874
2809
|
external_id: z__namespace.string().min(1).max(255).nullish(),
|
|
2875
2810
|
metadata: z__namespace.record(z__namespace.string(), z__namespace.union([
|
|
2876
2811
|
z__namespace.string().max(500),
|
|
@@ -2944,6 +2879,7 @@ var zPostsValidateResponse = z__namespace.object({
|
|
|
2944
2879
|
"media_processing",
|
|
2945
2880
|
"media_upload_init_failed",
|
|
2946
2881
|
"media_upload_incomplete",
|
|
2882
|
+
"media_upload_invalid_parts",
|
|
2947
2883
|
"not_publishable",
|
|
2948
2884
|
"invalid_connection",
|
|
2949
2885
|
"invalid_media",
|
|
@@ -2979,7 +2915,6 @@ var zPostsValidateResponse = z__namespace.object({
|
|
|
2979
2915
|
"content_missing",
|
|
2980
2916
|
"content_conflict",
|
|
2981
2917
|
"content_incomplete",
|
|
2982
|
-
"content_kind_mismatch",
|
|
2983
2918
|
"media_type_mismatch",
|
|
2984
2919
|
"tag_limit_exceeded",
|
|
2985
2920
|
"reel_field_on_non_reel",
|
|
@@ -4573,8 +4508,8 @@ var zLogsListQuery = z__namespace.object({
|
|
|
4573
4508
|
"scheduler"
|
|
4574
4509
|
]).optional(),
|
|
4575
4510
|
action: z__namespace.string().min(1).optional(),
|
|
4576
|
-
created_after: z__namespace.iso.datetime().optional(),
|
|
4577
|
-
created_before: z__namespace.iso.datetime().optional()
|
|
4511
|
+
created_after: z__namespace.iso.datetime({ offset: true }).optional(),
|
|
4512
|
+
created_before: z__namespace.iso.datetime({ offset: true }).optional()
|
|
4578
4513
|
});
|
|
4579
4514
|
var zLogsListResponse = z__namespace.object({
|
|
4580
4515
|
object: z__namespace.literal("list"),
|
|
@@ -4629,6 +4564,7 @@ var zLogsListResponse = z__namespace.object({
|
|
|
4629
4564
|
"media_processing",
|
|
4630
4565
|
"media_upload_init_failed",
|
|
4631
4566
|
"media_upload_incomplete",
|
|
4567
|
+
"media_upload_invalid_parts",
|
|
4632
4568
|
"not_publishable",
|
|
4633
4569
|
"invalid_connection",
|
|
4634
4570
|
"invalid_media",
|
|
@@ -4664,7 +4600,6 @@ var zLogsListResponse = z__namespace.object({
|
|
|
4664
4600
|
"content_missing",
|
|
4665
4601
|
"content_conflict",
|
|
4666
4602
|
"content_incomplete",
|
|
4667
|
-
"content_kind_mismatch",
|
|
4668
4603
|
"media_type_mismatch",
|
|
4669
4604
|
"tag_limit_exceeded",
|
|
4670
4605
|
"reel_field_on_non_reel",
|
|
@@ -4789,6 +4724,7 @@ var zLogsListResponse = z__namespace.object({
|
|
|
4789
4724
|
"media_processing",
|
|
4790
4725
|
"media_upload_init_failed",
|
|
4791
4726
|
"media_upload_incomplete",
|
|
4727
|
+
"media_upload_invalid_parts",
|
|
4792
4728
|
"not_publishable",
|
|
4793
4729
|
"invalid_connection",
|
|
4794
4730
|
"invalid_media",
|
|
@@ -4824,7 +4760,6 @@ var zLogsListResponse = z__namespace.object({
|
|
|
4824
4760
|
"content_missing",
|
|
4825
4761
|
"content_conflict",
|
|
4826
4762
|
"content_incomplete",
|
|
4827
|
-
"content_kind_mismatch",
|
|
4828
4763
|
"media_type_mismatch",
|
|
4829
4764
|
"tag_limit_exceeded",
|
|
4830
4765
|
"reel_field_on_non_reel",
|
|
@@ -4970,6 +4905,7 @@ var zLogsGetResponse = z__namespace.object({
|
|
|
4970
4905
|
"media_processing",
|
|
4971
4906
|
"media_upload_init_failed",
|
|
4972
4907
|
"media_upload_incomplete",
|
|
4908
|
+
"media_upload_invalid_parts",
|
|
4973
4909
|
"not_publishable",
|
|
4974
4910
|
"invalid_connection",
|
|
4975
4911
|
"invalid_media",
|
|
@@ -5005,7 +4941,6 @@ var zLogsGetResponse = z__namespace.object({
|
|
|
5005
4941
|
"content_missing",
|
|
5006
4942
|
"content_conflict",
|
|
5007
4943
|
"content_incomplete",
|
|
5008
|
-
"content_kind_mismatch",
|
|
5009
4944
|
"media_type_mismatch",
|
|
5010
4945
|
"tag_limit_exceeded",
|
|
5011
4946
|
"reel_field_on_non_reel",
|
|
@@ -5130,6 +5065,7 @@ var zLogsGetResponse = z__namespace.object({
|
|
|
5130
5065
|
"media_processing",
|
|
5131
5066
|
"media_upload_init_failed",
|
|
5132
5067
|
"media_upload_incomplete",
|
|
5068
|
+
"media_upload_invalid_parts",
|
|
5133
5069
|
"not_publishable",
|
|
5134
5070
|
"invalid_connection",
|
|
5135
5071
|
"invalid_media",
|
|
@@ -5165,7 +5101,6 @@ var zLogsGetResponse = z__namespace.object({
|
|
|
5165
5101
|
"content_missing",
|
|
5166
5102
|
"content_conflict",
|
|
5167
5103
|
"content_incomplete",
|
|
5168
|
-
"content_kind_mismatch",
|
|
5169
5104
|
"media_type_mismatch",
|
|
5170
5105
|
"tag_limit_exceeded",
|
|
5171
5106
|
"reel_field_on_non_reel",
|
|
@@ -5384,6 +5319,30 @@ var zTokensMintResponse = z__namespace.object({
|
|
|
5384
5319
|
expires_at: z__namespace.string()
|
|
5385
5320
|
});
|
|
5386
5321
|
|
|
5322
|
+
// src/schemas/conversions.ts
|
|
5323
|
+
var conversionEventSchema = zGoogleAdsConversionEvent.superRefine(
|
|
5324
|
+
(event, ctx) => {
|
|
5325
|
+
const hasMatchSignal = event.gclid != null || event.gbraid != null || event.wbraid != null || event.user_data != null && event.user_data.length > 0;
|
|
5326
|
+
if (!hasMatchSignal) {
|
|
5327
|
+
ctx.addIssue({
|
|
5328
|
+
code: "custom",
|
|
5329
|
+
message: "Each conversion needs at least one match signal: a gclid, gbraid, wbraid, or user_data."
|
|
5330
|
+
});
|
|
5331
|
+
}
|
|
5332
|
+
event.user_data?.forEach((identifier, index) => {
|
|
5333
|
+
const hasIdentifier = identifier.email_address != null || identifier.phone_number != null || identifier.address != null;
|
|
5334
|
+
if (!hasIdentifier) {
|
|
5335
|
+
ctx.addIssue({
|
|
5336
|
+
code: "custom",
|
|
5337
|
+
path: ["user_data", index],
|
|
5338
|
+
message: "Provide an email_address, phone_number, or address."
|
|
5339
|
+
});
|
|
5340
|
+
}
|
|
5341
|
+
});
|
|
5342
|
+
}
|
|
5343
|
+
);
|
|
5344
|
+
|
|
5345
|
+
exports.conversionEventSchema = conversionEventSchema;
|
|
5387
5346
|
exports.zConnectSession = zConnectSession;
|
|
5388
5347
|
exports.zConnection = zConnection;
|
|
5389
5348
|
exports.zConnectionKind = zConnectionKind;
|