@rolino/contracts 0.9.0 → 0.10.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/CHANGELOG.md +10 -0
- package/dist/index.cjs +172 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1072 -13
- package/dist/index.d.ts +1072 -13
- package/dist/index.js +154 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -90,11 +90,13 @@ var CapabilityIdSchema = z.enum([
|
|
|
90
90
|
"projects:write",
|
|
91
91
|
"posts:read",
|
|
92
92
|
"posts:write",
|
|
93
|
+
"posts:delete",
|
|
93
94
|
"posts:schedule",
|
|
94
95
|
"posts:publish",
|
|
95
96
|
"storage:read",
|
|
96
97
|
"media:delete",
|
|
97
98
|
"integrations:read",
|
|
99
|
+
"integrations:disconnect",
|
|
98
100
|
"calendar:read",
|
|
99
101
|
"seo:read",
|
|
100
102
|
"backlinks:read",
|
|
@@ -1040,6 +1042,13 @@ var PostDestinationStageSchema = z.enum([
|
|
|
1040
1042
|
"FAILED"
|
|
1041
1043
|
]);
|
|
1042
1044
|
var PostDestinationSchema = z.object({
|
|
1045
|
+
id: z.string().min(1).optional(),
|
|
1046
|
+
integrationId: z.string().min(1).nullable().optional(),
|
|
1047
|
+
accountId: z.string().nullable().optional(),
|
|
1048
|
+
accountName: z.string().nullable().optional(),
|
|
1049
|
+
accountAvatar: z.string().nullable().optional(),
|
|
1050
|
+
tiktokSettings: z.lazy(() => TikTokPostSettingsSchema).nullable().optional(),
|
|
1051
|
+
youtubeSettings: z.lazy(() => YouTubePostSettingsSchema).nullable().optional(),
|
|
1043
1052
|
provider: PublishingProviderSchema,
|
|
1044
1053
|
status: PlatformPostStatusSchema,
|
|
1045
1054
|
deliveryMode: PostDeliveryModeSchema,
|
|
@@ -1237,14 +1246,35 @@ var DraftMediaAssetIdsSchema = z.array(z.string().trim().min(1).max(200)).max(10
|
|
|
1237
1246
|
(ids) => new Set(ids).size === ids.length,
|
|
1238
1247
|
"Media asset IDs must be unique."
|
|
1239
1248
|
);
|
|
1249
|
+
var DraftMediaAltTextSchema = z.record(z.string().min(1).max(200), z.string().trim().max(1e3).nullable()).refine((items) => Object.keys(items).length <= 10, "At most ten media descriptions are allowed.");
|
|
1250
|
+
var DraftAccountDestinationSchema = z.object({
|
|
1251
|
+
integrationId: z.string().trim().min(1).max(200),
|
|
1252
|
+
provider: PublishingProviderSchema,
|
|
1253
|
+
captionOverride: z.string().max(5e3).nullable().default(null),
|
|
1254
|
+
tiktokSettings: TikTokDraftSettingsSchema.nullable().default(null),
|
|
1255
|
+
youtubeSettings: YouTubePostSettingsSchema.nullable().default(null)
|
|
1256
|
+
}).strict().superRefine((input, context) => {
|
|
1257
|
+
const captionSchema = DraftCaptionOverridesObjectSchema.shape[input.provider];
|
|
1258
|
+
if (!captionSchema.safeParse(input.captionOverride).success) context.addIssue({ code: "custom", path: ["captionOverride"], message: "The account caption exceeds this network's limit." });
|
|
1259
|
+
if (input.tiktokSettings && input.provider !== "TIKTOK") context.addIssue({ code: "custom", path: ["tiktokSettings"], message: "TikTok settings require a TikTok account." });
|
|
1260
|
+
if (input.youtubeSettings && input.provider !== "YOUTUBE") context.addIssue({ code: "custom", path: ["youtubeSettings"], message: "YouTube settings require a YouTube account." });
|
|
1261
|
+
if (input.provider === "YOUTUBE" && !input.youtubeSettings) context.addIssue({ code: "custom", path: ["youtubeSettings"], message: "Provide settings for this YouTube account." });
|
|
1262
|
+
});
|
|
1263
|
+
var DraftAccountDestinationsSchema = z.array(DraftAccountDestinationSchema).max(75).refine((items) => new Set(items.map((item) => item.integrationId)).size === items.length, "Select each account only once.");
|
|
1240
1264
|
var DraftPostInputSchema = z.object({
|
|
1265
|
+
destinations: DraftAccountDestinationsSchema.optional(),
|
|
1241
1266
|
caption: z.string().max(3e3).transform((value) => value.trim()).default(""),
|
|
1242
1267
|
platforms: DraftPlatformsSchema.default([]),
|
|
1243
1268
|
mediaAssetIds: DraftMediaAssetIdsSchema.default([]),
|
|
1269
|
+
mediaAltText: DraftMediaAltTextSchema.optional(),
|
|
1244
1270
|
captionOverrides: DraftCaptionOverridesObjectSchema.default({}),
|
|
1245
1271
|
tiktokSettings: TikTokDraftSettingsSchema.nullable().default(null),
|
|
1246
1272
|
youtubeSettings: YouTubePostSettingsSchema.nullable().default(null)
|
|
1247
1273
|
}).strict().superRefine((input, context) => {
|
|
1274
|
+
if (input.destinations !== void 0 && (input.platforms?.length || Object.keys(input.captionOverrides ?? {}).length || input.tiktokSettings || input.youtubeSettings)) context.addIssue({ code: "custom", path: ["destinations"], message: "Use account destinations with their own settings, without legacy platform fields." });
|
|
1275
|
+
if (input.mediaAltText && Object.keys(input.mediaAltText).some((id) => !input.mediaAssetIds.includes(id))) {
|
|
1276
|
+
context.addIssue({ code: "custom", path: ["mediaAltText"], message: "Alternative text must name a selected media asset." });
|
|
1277
|
+
}
|
|
1248
1278
|
if (input.caption.length === 0 && input.mediaAssetIds.length === 0) {
|
|
1249
1279
|
context.addIssue({
|
|
1250
1280
|
code: "custom",
|
|
@@ -1289,13 +1319,16 @@ var DraftPostInputSchema = z.object({
|
|
|
1289
1319
|
}
|
|
1290
1320
|
});
|
|
1291
1321
|
var DraftPostUpdateInputSchema = z.object({
|
|
1322
|
+
destinations: DraftAccountDestinationsSchema.optional(),
|
|
1292
1323
|
caption: z.string().max(3e3).transform((value) => value.trim()).optional(),
|
|
1293
1324
|
platforms: DraftPlatformsSchema.optional(),
|
|
1294
1325
|
mediaAssetIds: DraftMediaAssetIdsSchema.optional(),
|
|
1326
|
+
mediaAltText: DraftMediaAltTextSchema.optional(),
|
|
1295
1327
|
captionOverrides: DraftCaptionOverridesObjectSchema.optional(),
|
|
1296
1328
|
tiktokSettings: TikTokDraftSettingsSchema.nullable().optional(),
|
|
1297
1329
|
youtubeSettings: YouTubePostSettingsSchema.nullable().optional()
|
|
1298
1330
|
}).strict().superRefine((input, context) => {
|
|
1331
|
+
if (input.destinations !== void 0 && (input.platforms?.length || Object.keys(input.captionOverrides ?? {}).length || input.tiktokSettings || input.youtubeSettings)) context.addIssue({ code: "custom", path: ["destinations"], message: "Use account destinations with their own settings, without legacy platform fields." });
|
|
1299
1332
|
if (Object.values(input).every((value) => value === void 0)) {
|
|
1300
1333
|
context.addIssue({ code: "custom", message: "Provide at least one draft field to update." });
|
|
1301
1334
|
}
|
|
@@ -1327,6 +1360,8 @@ var ProviderHealthStatusSchema = z.enum([
|
|
|
1327
1360
|
"unknown"
|
|
1328
1361
|
]);
|
|
1329
1362
|
var IntegrationHealthSchema = z.object({
|
|
1363
|
+
integrationId: z.string().nullable().optional(),
|
|
1364
|
+
accountId: z.string().nullable().optional(),
|
|
1330
1365
|
provider: PublishingProviderSchema,
|
|
1331
1366
|
connectionStatus: IntegrationConnectionStatusSchema,
|
|
1332
1367
|
connected: z.boolean(),
|
|
@@ -1348,9 +1383,9 @@ var IntegrationHealthSchema = z.object({
|
|
|
1348
1383
|
})
|
|
1349
1384
|
});
|
|
1350
1385
|
var IntegrationHealthListDataSchema = z.object({
|
|
1351
|
-
items: z.array(IntegrationHealthSchema).
|
|
1352
|
-
(items) => new Set(items.map((item) => item.provider)).size === items.length,
|
|
1353
|
-
"
|
|
1386
|
+
items: z.array(IntegrationHealthSchema).refine(
|
|
1387
|
+
(items) => new Set(items.map((item) => item.integrationId ?? item.provider)).size === items.length,
|
|
1388
|
+
"Account health items must be unique."
|
|
1354
1389
|
)
|
|
1355
1390
|
});
|
|
1356
1391
|
var IntegrationHealthListResponseSchema = successEnvelopeSchema(
|
|
@@ -1358,9 +1393,12 @@ var IntegrationHealthListResponseSchema = successEnvelopeSchema(
|
|
|
1358
1393
|
);
|
|
1359
1394
|
var ProviderDeliveryOptionsProviderSchema = z.enum([
|
|
1360
1395
|
"TIKTOK",
|
|
1361
|
-
"LINKEDIN"
|
|
1396
|
+
"LINKEDIN",
|
|
1397
|
+
"BLUESKY"
|
|
1362
1398
|
]);
|
|
1363
1399
|
var TikTokDeliveryOptionsSchema = z.object({
|
|
1400
|
+
integrationId: z.string().nullable().optional(),
|
|
1401
|
+
accountId: z.string().nullable().optional(),
|
|
1364
1402
|
provider: z.literal("TIKTOK"),
|
|
1365
1403
|
account: z.object({
|
|
1366
1404
|
username: z.string().nullable(),
|
|
@@ -1389,6 +1427,8 @@ var TikTokDeliveryOptionsSchema = z.object({
|
|
|
1389
1427
|
checkedAt: z.string().datetime()
|
|
1390
1428
|
});
|
|
1391
1429
|
var LinkedInDeliveryOptionsSchema = z.object({
|
|
1430
|
+
integrationId: z.string().nullable().optional(),
|
|
1431
|
+
accountId: z.string().nullable().optional(),
|
|
1392
1432
|
provider: z.literal("LINKEDIN"),
|
|
1393
1433
|
account: z.object({
|
|
1394
1434
|
displayName: z.string().nullable(),
|
|
@@ -1416,13 +1456,72 @@ var LinkedInDeliveryOptionsSchema = z.object({
|
|
|
1416
1456
|
}),
|
|
1417
1457
|
checkedAt: z.string().datetime()
|
|
1418
1458
|
});
|
|
1459
|
+
var BlueskyDeliveryOptionsSchema = z.object({
|
|
1460
|
+
integrationId: z.string().nullable().optional(),
|
|
1461
|
+
accountId: z.string().nullable().optional(),
|
|
1462
|
+
provider: z.literal("BLUESKY"),
|
|
1463
|
+
account: z.object({ username: z.string().nullable(), displayName: z.string().nullable(), avatarUrl: z.string().url().nullable() }),
|
|
1464
|
+
supportedPostTypes: z.tuple([z.literal("TEXT"), z.literal("SINGLE_IMAGE"), z.literal("MULTI_IMAGE")]),
|
|
1465
|
+
maxCaptionGraphemes: z.literal(300),
|
|
1466
|
+
image: z.object({ maxItems: z.literal(4), mimeTypes: z.tuple([z.literal("image/jpeg"), z.literal("image/png"), z.literal("image/webp")]), maxBytes: z.literal(2e6), maxProcessedBytes: z.literal(2e6) }),
|
|
1467
|
+
authorization: z.object({ kind: z.literal("HUMAN_OAUTH"), path: z.string().startsWith("/projects/"), instruction: z.string().min(1) }),
|
|
1468
|
+
health: z.object({ status: ProviderHealthStatusSchema, code: z.string().min(1), message: z.string().min(1) }),
|
|
1469
|
+
checkedAt: z.string().datetime()
|
|
1470
|
+
});
|
|
1419
1471
|
var ProviderDeliveryOptionsSchema = z.discriminatedUnion("provider", [
|
|
1420
1472
|
TikTokDeliveryOptionsSchema,
|
|
1421
|
-
LinkedInDeliveryOptionsSchema
|
|
1473
|
+
LinkedInDeliveryOptionsSchema,
|
|
1474
|
+
BlueskyDeliveryOptionsSchema
|
|
1422
1475
|
]);
|
|
1423
1476
|
var ProviderDeliveryOptionsResponseSchema = successEnvelopeSchema(
|
|
1424
1477
|
ProviderDeliveryOptionsSchema
|
|
1425
1478
|
);
|
|
1479
|
+
var IntegrationDisconnectInputSchema = z.object({ provider: z.literal("BLUESKY"), integrationId: z.string().min(1).max(200).optional() }).strict();
|
|
1480
|
+
var IntegrationDisconnectExecuteInputSchema = IntegrationDisconnectInputSchema.extend({ expectedVersion: z.string().min(1).max(100), confirmationToken: z.string().min(1).max(1024) });
|
|
1481
|
+
var IntegrationDisconnectPreviewSchema = z.object({
|
|
1482
|
+
integrationId: z.string().optional(),
|
|
1483
|
+
accountId: z.string().nullable().optional(),
|
|
1484
|
+
provider: z.literal("BLUESKY"),
|
|
1485
|
+
projectId: z.string().min(1),
|
|
1486
|
+
expectedVersion: z.string().min(1),
|
|
1487
|
+
account: z.string().nullable(),
|
|
1488
|
+
pendingDeliveries: z.number().int().nonnegative(),
|
|
1489
|
+
consequence: z.string().min(1),
|
|
1490
|
+
confirmation: z.object({ token: z.string().min(1), expiresAt: z.string().datetime() })
|
|
1491
|
+
});
|
|
1492
|
+
var IntegrationDisconnectResultSchema = z.object({ integrationId: z.string().optional(), provider: z.literal("BLUESKY"), projectId: z.string().min(1), status: z.literal("DISCONNECTED"), remoteRevocation: z.enum(["PENDING", "REVOKED", "UNRESOLVED", "NOT_REQUIRED"]) });
|
|
1493
|
+
var IntegrationDisconnectPreviewResponseSchema = successEnvelopeSchema(IntegrationDisconnectPreviewSchema);
|
|
1494
|
+
var IntegrationDisconnectResponseSchema = successEnvelopeSchema(IntegrationDisconnectResultSchema);
|
|
1495
|
+
var DraftDeletePreviewSchema = z.object({
|
|
1496
|
+
operation: z.literal("posts.delete.execute"),
|
|
1497
|
+
projectId: z.string().min(1),
|
|
1498
|
+
postId: z.string().min(1),
|
|
1499
|
+
version: z.number().int().positive(),
|
|
1500
|
+
caption: z.string(),
|
|
1501
|
+
mediaCount: z.number().int().nonnegative(),
|
|
1502
|
+
consequence: z.string().min(1),
|
|
1503
|
+
confirmation: z.object({ token: z.string().min(1), expiresAt: z.string().datetime() })
|
|
1504
|
+
});
|
|
1505
|
+
var DraftDeleteResultSchema = z.object({ postId: z.string().min(1), status: z.literal("DELETED") });
|
|
1506
|
+
var DraftDeletePreviewResponseSchema = successEnvelopeSchema(DraftDeletePreviewSchema);
|
|
1507
|
+
var DraftDeleteResponseSchema = successEnvelopeSchema(DraftDeleteResultSchema);
|
|
1508
|
+
var PostScheduleCancelInputSchema = z.object({}).strict();
|
|
1509
|
+
var PostScheduleCancelExecuteInputSchema = z.object({ confirmationToken: z.string().min(1).max(1024) }).strict();
|
|
1510
|
+
var PostScheduleCancelResultSchema = z.object({ postId: z.string().min(1), version: z.number().int().positive(), status: z.literal("DRAFT") });
|
|
1511
|
+
var PostScheduleCancelPreviewSchema = z.object({
|
|
1512
|
+
accounts: z.array(z.object({ destinationId: z.string().min(1), integrationId: z.string().nullable(), provider: PublishingProviderSchema, accountId: z.string().nullable(), accountName: z.string().nullable() })).optional(),
|
|
1513
|
+
operation: z.literal("posts.schedule.cancel.execute"),
|
|
1514
|
+
projectId: z.string().min(1),
|
|
1515
|
+
postId: z.string().min(1),
|
|
1516
|
+
version: z.number().int().positive(),
|
|
1517
|
+
scheduledAt: z.string().datetime(),
|
|
1518
|
+
timezone: z.string().nullable(),
|
|
1519
|
+
destinations: z.array(PublishingProviderSchema).min(1),
|
|
1520
|
+
consequence: z.string().min(1),
|
|
1521
|
+
confirmation: z.object({ token: z.string().min(1), expiresAt: z.string().datetime() })
|
|
1522
|
+
});
|
|
1523
|
+
var PostScheduleCancelPreviewResponseSchema = successEnvelopeSchema(PostScheduleCancelPreviewSchema);
|
|
1524
|
+
var PostScheduleCancelResponseSchema = successEnvelopeSchema(PostScheduleCancelResultSchema);
|
|
1426
1525
|
var ReadinessStatusSchema = z.enum([
|
|
1427
1526
|
"checking",
|
|
1428
1527
|
"pass",
|
|
@@ -1431,18 +1530,21 @@ var ReadinessStatusSchema = z.enum([
|
|
|
1431
1530
|
"unknown"
|
|
1432
1531
|
]);
|
|
1433
1532
|
var ReadinessActionSchema = z.object({
|
|
1533
|
+
integrationId: z.string().optional(),
|
|
1434
1534
|
kind: z.enum([
|
|
1435
1535
|
"reconnect",
|
|
1436
1536
|
"replace_media",
|
|
1437
1537
|
"adjust_media",
|
|
1438
1538
|
"review_settings",
|
|
1439
1539
|
"edit_caption",
|
|
1440
|
-
"refresh_health"
|
|
1540
|
+
"refresh_health",
|
|
1541
|
+
"refresh_readiness"
|
|
1441
1542
|
]),
|
|
1442
1543
|
provider: PublishingProviderSchema.optional(),
|
|
1443
1544
|
mediaId: z.string().min(1).optional()
|
|
1444
1545
|
});
|
|
1445
1546
|
var PostReadinessCheckSchema = z.object({
|
|
1547
|
+
integrationId: z.string().optional(),
|
|
1446
1548
|
key: z.string().min(1),
|
|
1447
1549
|
id: z.enum([
|
|
1448
1550
|
"connection",
|
|
@@ -1469,6 +1571,8 @@ var PostReadinessCheckSchema = z.object({
|
|
|
1469
1571
|
var PostReadinessSchema = z.object({
|
|
1470
1572
|
checks: z.array(PostReadinessCheckSchema),
|
|
1471
1573
|
accounts: z.array(z.object({
|
|
1574
|
+
integrationId: z.string().optional(),
|
|
1575
|
+
externalAccountId: z.string().nullable().optional(),
|
|
1472
1576
|
provider: PublishingProviderSchema,
|
|
1473
1577
|
connected: z.boolean(),
|
|
1474
1578
|
username: z.string().nullable(),
|
|
@@ -1496,7 +1600,9 @@ var PostScheduleInputSchema = z.object({
|
|
|
1496
1600
|
var PostScheduleExecuteInputSchema = PostScheduleInputSchema.extend({
|
|
1497
1601
|
confirmationToken: z.string().trim().min(1).max(200)
|
|
1498
1602
|
}).strict();
|
|
1603
|
+
var PublishingAccountReviewListSchema = z.array(z.object({ destinationId: z.string(), integrationId: z.string(), provider: PublishingProviderSchema, accountId: z.string().nullable(), accountName: z.string().nullable(), accountAvatar: z.string().nullable(), caption: z.string(), tiktokSettings: TikTokPostSettingsSchema.nullable(), youtubeSettings: YouTubePostSettingsSchema.nullable() })).optional();
|
|
1499
1604
|
var PostSchedulePreviewSchema = z.object({
|
|
1605
|
+
accounts: PublishingAccountReviewListSchema,
|
|
1500
1606
|
operation: z.literal("posts.schedule.execute"),
|
|
1501
1607
|
deliveryMode: z.literal("SCHEDULED"),
|
|
1502
1608
|
post: z.object({
|
|
@@ -1528,6 +1634,7 @@ var PostSchedulePreviewResponseSchema = successEnvelopeSchema(
|
|
|
1528
1634
|
PostSchedulePreviewSchema
|
|
1529
1635
|
);
|
|
1530
1636
|
var PostSchedulePendingSchema = z.object({
|
|
1637
|
+
destinations: z.array(z.object({ destinationId: z.string().min(1), integrationId: z.string().min(1), mutationId: z.string().min(1) })).optional(),
|
|
1531
1638
|
status: z.literal("PENDING"),
|
|
1532
1639
|
postId: z.string().min(1),
|
|
1533
1640
|
provider: z.literal("YOUTUBE"),
|
|
@@ -1545,12 +1652,12 @@ var PostScheduleExecuteResponseSchema = successEnvelopeSchema(
|
|
|
1545
1652
|
PostScheduleExecuteResultSchema
|
|
1546
1653
|
);
|
|
1547
1654
|
var PostPublishInputSchema = z.object({
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
)
|
|
1552
|
-
})
|
|
1553
|
-
var PostPublishExecuteInputSchema = PostPublishInputSchema.
|
|
1655
|
+
destinationIds: z.array(z.string().trim().min(1).max(200)).min(1).max(75).refine((ids) => new Set(ids).size === ids.length, "Select each destination only once.").optional(),
|
|
1656
|
+
destinations: z.array(PublishingProviderSchema).max(PUBLISHING_PROVIDER_COUNT).refine((items) => new Set(items).size === items.length, "Select each network only once.").default([])
|
|
1657
|
+
}).strict().superRefine((input, context) => {
|
|
1658
|
+
if (input.destinationIds ? input.destinations.length > 0 : input.destinations.length === 0) context.addIssue({ code: "custom", message: "Provide destinationIds, or unambiguous legacy destinations, but not both." });
|
|
1659
|
+
});
|
|
1660
|
+
var PostPublishExecuteInputSchema = PostPublishInputSchema.safeExtend({
|
|
1554
1661
|
confirmationToken: z.string().trim().min(1).max(200)
|
|
1555
1662
|
}).strict();
|
|
1556
1663
|
var PostPublishPreviewSchema = z.object({
|
|
@@ -1563,6 +1670,8 @@ var PostPublishPreviewSchema = z.object({
|
|
|
1563
1670
|
status: PostStatusSchema
|
|
1564
1671
|
}),
|
|
1565
1672
|
destinations: PostPublishInputSchema.shape.destinations,
|
|
1673
|
+
destinationIds: z.array(z.string()).optional(),
|
|
1674
|
+
accounts: PublishingAccountReviewListSchema,
|
|
1566
1675
|
youtube: z.object({
|
|
1567
1676
|
visibility: YouTubePostSettingsSchema.shape.privacyStatus,
|
|
1568
1677
|
preparationStartsImmediately: z.literal(true),
|
|
@@ -1591,6 +1700,11 @@ var CalendarEventSchema = z.object({
|
|
|
1591
1700
|
}).nullable(),
|
|
1592
1701
|
thumbnailUrl: z.string().url().nullable(),
|
|
1593
1702
|
destinations: z.array(z.object({
|
|
1703
|
+
id: z.string().optional(),
|
|
1704
|
+
integrationId: z.string().nullable().optional(),
|
|
1705
|
+
accountId: z.string().nullable().optional(),
|
|
1706
|
+
accountName: z.string().nullable().optional(),
|
|
1707
|
+
accountAvatar: z.string().nullable().optional(),
|
|
1594
1708
|
provider: PublishingProviderSchema,
|
|
1595
1709
|
status: PlatformPostStatusSchema
|
|
1596
1710
|
}))
|
|
@@ -1993,8 +2107,11 @@ var BacklinkContactSchema = z.object({
|
|
|
1993
2107
|
var BacklinkContactListDataSchema = z.object({ items: z.array(BacklinkContactSchema).max(50), page: z.object({ limit: z.number().int().min(1).max(50), nextCursor: SeoCursorSchema.nullable() }).strict() }).strict();
|
|
1994
2108
|
var BacklinkContactListQuerySchema = z.object({ limit: z.coerce.number().int().min(1).max(50).default(20), cursor: SeoCursorSchema.optional() }).strict();
|
|
1995
2109
|
var BacklinkContactListResponseSchema = successEnvelopeSchema(BacklinkContactListDataSchema);
|
|
1996
|
-
var PostDeliveryCheckInputSchema = z.object({ provider: PublishingProviderSchema }).strict();
|
|
2110
|
+
var PostDeliveryCheckInputSchema = z.object({ provider: PublishingProviderSchema, destinationId: z.string().min(1).max(200).optional() }).strict();
|
|
1997
2111
|
var PostDeliveryCheckResultSchema = z.object({
|
|
2112
|
+
destinationId: z.string().min(1).optional(),
|
|
2113
|
+
integrationId: z.string().nullable().optional(),
|
|
2114
|
+
accountId: z.string().nullable().optional(),
|
|
1998
2115
|
postId: z.string().min(1),
|
|
1999
2116
|
provider: PublishingProviderSchema,
|
|
2000
2117
|
kind: z.enum(["PUBLISHED", "SCHEDULED", "PROCESSING", "ACTION_REQUIRED", "UNKNOWN", "BUSY"]),
|
|
@@ -2006,6 +2123,7 @@ var PostDeliveryCheckResultSchema = z.object({
|
|
|
2006
2123
|
});
|
|
2007
2124
|
var PostDeliveryCheckResponseSchema = successEnvelopeSchema(PostDeliveryCheckResultSchema);
|
|
2008
2125
|
var PostRecoveryInputSchema = z.object({
|
|
2126
|
+
destinationId: z.string().min(1).max(200).optional(),
|
|
2009
2127
|
provider: z.literal("YOUTUBE"),
|
|
2010
2128
|
action: z.enum(["ATTACH", "RESUME"]),
|
|
2011
2129
|
videoId: z.string().regex(/^[\w-]{11}$/),
|
|
@@ -2022,6 +2140,8 @@ var PostRecoveryExecuteInputSchema = PostRecoveryInputSchema.safeExtend({
|
|
|
2022
2140
|
confirmationToken: z.string().trim().min(1).max(200)
|
|
2023
2141
|
});
|
|
2024
2142
|
var PostRecoveryPreviewSchema = z.object({
|
|
2143
|
+
destinationId: z.string().min(1).optional(),
|
|
2144
|
+
integrationId: z.string().nullable().optional(),
|
|
2025
2145
|
operation: z.literal("posts.recovery.execute"),
|
|
2026
2146
|
projectId: z.string().min(1),
|
|
2027
2147
|
postId: z.string().min(1),
|
|
@@ -2040,6 +2160,9 @@ var PostRecoveryPreviewSchema = z.object({
|
|
|
2040
2160
|
});
|
|
2041
2161
|
var PostRecoveryPreviewResponseSchema = successEnvelopeSchema(PostRecoveryPreviewSchema);
|
|
2042
2162
|
var PostRecoveryResultSchema = z.object({
|
|
2163
|
+
destinationId: z.string().min(1).optional(),
|
|
2164
|
+
integrationId: z.string().nullable().optional(),
|
|
2165
|
+
accountId: z.string().nullable().optional(),
|
|
2043
2166
|
postId: z.string().min(1),
|
|
2044
2167
|
provider: z.literal("YOUTUBE"),
|
|
2045
2168
|
action: z.enum(["ATTACH", "RESUME"]),
|
|
@@ -2195,6 +2318,7 @@ export {
|
|
|
2195
2318
|
BlogMetadataSchema,
|
|
2196
2319
|
BlogSitemapEntrySchema,
|
|
2197
2320
|
BlogSlugRedirectSchema,
|
|
2321
|
+
BlueskyDeliveryOptionsSchema,
|
|
2198
2322
|
CONTRACT_VERSION,
|
|
2199
2323
|
CalendarEventSchema,
|
|
2200
2324
|
CalendarListDataSchema,
|
|
@@ -2204,9 +2328,20 @@ export {
|
|
|
2204
2328
|
CapabilitiesResponseSchema,
|
|
2205
2329
|
CapabilityIdSchema,
|
|
2206
2330
|
CapabilitySchema,
|
|
2331
|
+
DraftAccountDestinationSchema,
|
|
2332
|
+
DraftDeletePreviewResponseSchema,
|
|
2333
|
+
DraftDeletePreviewSchema,
|
|
2334
|
+
DraftDeleteResponseSchema,
|
|
2335
|
+
DraftDeleteResultSchema,
|
|
2207
2336
|
DraftPostInputSchema,
|
|
2208
2337
|
DraftPostUpdateInputSchema,
|
|
2209
2338
|
IntegrationConnectionStatusSchema,
|
|
2339
|
+
IntegrationDisconnectExecuteInputSchema,
|
|
2340
|
+
IntegrationDisconnectInputSchema,
|
|
2341
|
+
IntegrationDisconnectPreviewResponseSchema,
|
|
2342
|
+
IntegrationDisconnectPreviewSchema,
|
|
2343
|
+
IntegrationDisconnectResponseSchema,
|
|
2344
|
+
IntegrationDisconnectResultSchema,
|
|
2210
2345
|
IntegrationHealthListDataSchema,
|
|
2211
2346
|
IntegrationHealthListResponseSchema,
|
|
2212
2347
|
IntegrationHealthSchema,
|
|
@@ -2264,6 +2399,12 @@ export {
|
|
|
2264
2399
|
PostRecoveryResponseSchema,
|
|
2265
2400
|
PostRecoveryResultSchema,
|
|
2266
2401
|
PostResponseSchema,
|
|
2402
|
+
PostScheduleCancelExecuteInputSchema,
|
|
2403
|
+
PostScheduleCancelInputSchema,
|
|
2404
|
+
PostScheduleCancelPreviewResponseSchema,
|
|
2405
|
+
PostScheduleCancelPreviewSchema,
|
|
2406
|
+
PostScheduleCancelResponseSchema,
|
|
2407
|
+
PostScheduleCancelResultSchema,
|
|
2267
2408
|
PostScheduleExecuteInputSchema,
|
|
2268
2409
|
PostScheduleExecuteResponseSchema,
|
|
2269
2410
|
PostScheduleExecuteResultSchema,
|