@rolino/contracts 0.5.0-beta.0 → 0.6.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 +38 -0
- package/README.md +24 -11
- package/dist/index.cjs +403 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1280 -260
- package/dist/index.d.ts +1280 -260
- package/dist/index.js +350 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22,6 +22,14 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
API_VERSION: () => API_VERSION,
|
|
24
24
|
ActorSchema: () => ActorSchema,
|
|
25
|
+
AgentBlogApprovalExecuteRequestSchema: () => AgentBlogApprovalExecuteRequestSchema,
|
|
26
|
+
AgentBlogApprovalExecuteResponseSchema: () => AgentBlogApprovalExecuteResponseSchema,
|
|
27
|
+
AgentBlogApprovalExecuteSchema: () => AgentBlogApprovalExecuteSchema,
|
|
28
|
+
AgentBlogApprovalImageSummarySchema: () => AgentBlogApprovalImageSummarySchema,
|
|
29
|
+
AgentBlogApprovalLinkSummarySchema: () => AgentBlogApprovalLinkSummarySchema,
|
|
30
|
+
AgentBlogApprovalPreviewRequestSchema: () => AgentBlogApprovalPreviewRequestSchema,
|
|
31
|
+
AgentBlogApprovalPreviewResponseSchema: () => AgentBlogApprovalPreviewResponseSchema,
|
|
32
|
+
AgentBlogApprovalPreviewSchema: () => AgentBlogApprovalPreviewSchema,
|
|
25
33
|
AgentBlogArticleCreateRequestSchema: () => AgentBlogArticleCreateRequestSchema,
|
|
26
34
|
AgentBlogArticleDetailSchema: () => AgentBlogArticleDetailSchema,
|
|
27
35
|
AgentBlogArticleListResponseSchema: () => AgentBlogArticleListResponseSchema,
|
|
@@ -44,14 +52,30 @@ __export(index_exports, {
|
|
|
44
52
|
AgentBlogDraftUpdateSchema: () => AgentBlogDraftUpdateSchema,
|
|
45
53
|
AgentBlogGenerateRequestSchema: () => AgentBlogGenerateRequestSchema,
|
|
46
54
|
AgentBlogIdempotentRequestSchema: () => AgentBlogIdempotentRequestSchema,
|
|
55
|
+
AgentBlogImageGenerateRequestSchema: () => AgentBlogImageGenerateRequestSchema,
|
|
56
|
+
AgentBlogImageGenerationResponseSchema: () => AgentBlogImageGenerationResponseSchema,
|
|
57
|
+
AgentBlogImageResponseSchema: () => AgentBlogImageResponseSchema,
|
|
58
|
+
AgentBlogImageReviewRequestSchema: () => AgentBlogImageReviewRequestSchema,
|
|
59
|
+
AgentBlogImageSchema: () => AgentBlogImageSchema,
|
|
60
|
+
AgentBlogImageUploadCompleteRequestSchema: () => AgentBlogImageUploadCompleteRequestSchema,
|
|
61
|
+
AgentBlogImageUploadPreparationResponseSchema: () => AgentBlogImageUploadPreparationResponseSchema,
|
|
62
|
+
AgentBlogImageUploadPrepareRequestSchema: () => AgentBlogImageUploadPrepareRequestSchema,
|
|
47
63
|
AgentBlogJobResponseSchema: () => AgentBlogJobResponseSchema,
|
|
48
64
|
AgentBlogJobSchema: () => AgentBlogJobSchema,
|
|
65
|
+
AgentBlogPlanCadenceExecuteRequestSchema: () => AgentBlogPlanCadenceExecuteRequestSchema,
|
|
66
|
+
AgentBlogPlanCadenceExecuteResponseSchema: () => AgentBlogPlanCadenceExecuteResponseSchema,
|
|
67
|
+
AgentBlogPlanCadenceExecuteSchema: () => AgentBlogPlanCadenceExecuteSchema,
|
|
68
|
+
AgentBlogPlanCadencePreviewRequestSchema: () => AgentBlogPlanCadencePreviewRequestSchema,
|
|
69
|
+
AgentBlogPlanCadencePreviewResponseSchema: () => AgentBlogPlanCadencePreviewResponseSchema,
|
|
70
|
+
AgentBlogPlanCadencePreviewSchema: () => AgentBlogPlanCadencePreviewSchema,
|
|
49
71
|
AgentBlogPlanCreateRequestSchema: () => AgentBlogPlanCreateRequestSchema,
|
|
72
|
+
AgentBlogPlanDateMoveSchema: () => AgentBlogPlanDateMoveSchema,
|
|
50
73
|
AgentBlogPlanItemResponseSchema: () => AgentBlogPlanItemResponseSchema,
|
|
51
74
|
AgentBlogPlanItemSchema: () => AgentBlogPlanItemSchema,
|
|
52
75
|
AgentBlogPlanItemStateRequestSchema: () => AgentBlogPlanItemStateRequestSchema,
|
|
53
76
|
AgentBlogPlanItemsResponseSchema: () => AgentBlogPlanItemsResponseSchema,
|
|
54
77
|
AgentBlogPlanListResponseSchema: () => AgentBlogPlanListResponseSchema,
|
|
78
|
+
AgentBlogPlanLockedItemSchema: () => AgentBlogPlanLockedItemSchema,
|
|
55
79
|
AgentBlogPlanQueuedResponseSchema: () => AgentBlogPlanQueuedResponseSchema,
|
|
56
80
|
AgentBlogPlanRetryRequestSchema: () => AgentBlogPlanRetryRequestSchema,
|
|
57
81
|
AgentBlogPlanSchema: () => AgentBlogPlanSchema,
|
|
@@ -67,8 +91,37 @@ __export(index_exports, {
|
|
|
67
91
|
AgentBlogRevalidationTestRequestSchema: () => AgentBlogRevalidationTestRequestSchema,
|
|
68
92
|
AgentBlogRevalidationTestResponseSchema: () => AgentBlogRevalidationTestResponseSchema,
|
|
69
93
|
AgentBlogRevalidationTestSchema: () => AgentBlogRevalidationTestSchema,
|
|
94
|
+
AgentBlogScheduleCancelExecuteRequestSchema: () => AgentBlogScheduleCancelExecuteRequestSchema,
|
|
95
|
+
AgentBlogScheduleCancelExecuteResponseSchema: () => AgentBlogScheduleCancelExecuteResponseSchema,
|
|
96
|
+
AgentBlogScheduleCancelExecuteSchema: () => AgentBlogScheduleCancelExecuteSchema,
|
|
97
|
+
AgentBlogScheduleCancelPreviewRequestSchema: () => AgentBlogScheduleCancelPreviewRequestSchema,
|
|
98
|
+
AgentBlogScheduleCancelPreviewResponseSchema: () => AgentBlogScheduleCancelPreviewResponseSchema,
|
|
99
|
+
AgentBlogScheduleCancelPreviewSchema: () => AgentBlogScheduleCancelPreviewSchema,
|
|
100
|
+
AgentBlogScheduleExecuteRequestSchema: () => AgentBlogScheduleExecuteRequestSchema,
|
|
101
|
+
AgentBlogScheduleExecuteResponseSchema: () => AgentBlogScheduleExecuteResponseSchema,
|
|
102
|
+
AgentBlogScheduleExecuteSchema: () => AgentBlogScheduleExecuteSchema,
|
|
103
|
+
AgentBlogSchedulePreviewRequestSchema: () => AgentBlogSchedulePreviewRequestSchema,
|
|
104
|
+
AgentBlogSchedulePreviewResponseSchema: () => AgentBlogSchedulePreviewResponseSchema,
|
|
105
|
+
AgentBlogSchedulePreviewSchema: () => AgentBlogSchedulePreviewSchema,
|
|
70
106
|
AgentBlogSetupStatusResponseSchema: () => AgentBlogSetupStatusResponseSchema,
|
|
71
107
|
AgentBlogSetupStatusSchema: () => AgentBlogSetupStatusSchema,
|
|
108
|
+
AgentBlogWebhookDestinationChangeSchema: () => AgentBlogWebhookDestinationChangeSchema,
|
|
109
|
+
AgentBlogWebhookDestinationExecuteRequestSchema: () => AgentBlogWebhookDestinationExecuteRequestSchema,
|
|
110
|
+
AgentBlogWebhookDestinationExecuteResponseSchema: () => AgentBlogWebhookDestinationExecuteResponseSchema,
|
|
111
|
+
AgentBlogWebhookDestinationExecuteSchema: () => AgentBlogWebhookDestinationExecuteSchema,
|
|
112
|
+
AgentBlogWebhookDestinationPreviewRequestSchema: () => AgentBlogWebhookDestinationPreviewRequestSchema,
|
|
113
|
+
AgentBlogWebhookDestinationPreviewResponseSchema: () => AgentBlogWebhookDestinationPreviewResponseSchema,
|
|
114
|
+
AgentBlogWebhookDestinationPreviewSchema: () => AgentBlogWebhookDestinationPreviewSchema,
|
|
115
|
+
AgentBlogWebhookRotateExecuteRequestSchema: () => AgentBlogWebhookRotateExecuteRequestSchema,
|
|
116
|
+
AgentBlogWebhookRotateExecuteResponseSchema: () => AgentBlogWebhookRotateExecuteResponseSchema,
|
|
117
|
+
AgentBlogWebhookRotateExecuteSchema: () => AgentBlogWebhookRotateExecuteSchema,
|
|
118
|
+
AgentBlogWebhookRotatePreviewRequestSchema: () => AgentBlogWebhookRotatePreviewRequestSchema,
|
|
119
|
+
AgentBlogWebhookRotatePreviewResponseSchema: () => AgentBlogWebhookRotatePreviewResponseSchema,
|
|
120
|
+
AgentBlogWebhookRotatePreviewSchema: () => AgentBlogWebhookRotatePreviewSchema,
|
|
121
|
+
AgentBlogWebhookSemanticsSchema: () => AgentBlogWebhookSemanticsSchema,
|
|
122
|
+
AgentBlogWebhookTestRequestSchema: () => AgentBlogWebhookTestRequestSchema,
|
|
123
|
+
AgentBlogWebhookTestResponseSchema: () => AgentBlogWebhookTestResponseSchema,
|
|
124
|
+
AgentBlogWebhookTestSchema: () => AgentBlogWebhookTestSchema,
|
|
72
125
|
ApiErrorCodeSchema: () => ApiErrorCodeSchema,
|
|
73
126
|
ApiMetaResponseSchema: () => ApiMetaResponseSchema,
|
|
74
127
|
ApiMetaSchema: () => ApiMetaSchema,
|
|
@@ -79,7 +132,6 @@ __export(index_exports, {
|
|
|
79
132
|
BlogMetadataSchema: () => BlogMetadataSchema,
|
|
80
133
|
BlogSitemapEntrySchema: () => BlogSitemapEntrySchema,
|
|
81
134
|
BlogSlugRedirectSchema: () => BlogSlugRedirectSchema,
|
|
82
|
-
CLI_BROWSER_AUTHORIZATION_TIMEOUT_MS: () => CLI_BROWSER_AUTHORIZATION_TIMEOUT_MS,
|
|
83
135
|
CONTRACT_VERSION: () => CONTRACT_VERSION,
|
|
84
136
|
CalendarEventSchema: () => CalendarEventSchema,
|
|
85
137
|
CalendarListDataSchema: () => CalendarListDataSchema,
|
|
@@ -89,11 +141,6 @@ __export(index_exports, {
|
|
|
89
141
|
CapabilitiesResponseSchema: () => CapabilitiesResponseSchema,
|
|
90
142
|
CapabilityIdSchema: () => CapabilityIdSchema,
|
|
91
143
|
CapabilitySchema: () => CapabilitySchema,
|
|
92
|
-
CliAuthorizationCredentialSchema: () => CliAuthorizationCredentialSchema,
|
|
93
|
-
CliAuthorizationExchangeRequestSchema: () => CliAuthorizationExchangeRequestSchema,
|
|
94
|
-
CliAuthorizationExchangeResponseSchema: () => CliAuthorizationExchangeResponseSchema,
|
|
95
|
-
CliAuthorizationRevokeDataSchema: () => CliAuthorizationRevokeDataSchema,
|
|
96
|
-
CliAuthorizationRevokeResponseSchema: () => CliAuthorizationRevokeResponseSchema,
|
|
97
144
|
DraftPostInputSchema: () => DraftPostInputSchema,
|
|
98
145
|
DraftPostUpdateInputSchema: () => DraftPostUpdateInputSchema,
|
|
99
146
|
IntegrationConnectionStatusSchema: () => IntegrationConnectionStatusSchema,
|
|
@@ -192,13 +239,14 @@ __export(index_exports, {
|
|
|
192
239
|
module.exports = __toCommonJS(index_exports);
|
|
193
240
|
var import_zod = require("zod");
|
|
194
241
|
var API_VERSION = "v1";
|
|
195
|
-
var CONTRACT_VERSION = "0.
|
|
242
|
+
var CONTRACT_VERSION = "0.17.0";
|
|
196
243
|
var RequestMetadataSchema = import_zod.z.object({
|
|
197
244
|
requestId: import_zod.z.string().min(1)
|
|
198
245
|
});
|
|
199
246
|
var ApiErrorCodeSchema = import_zod.z.enum([
|
|
200
247
|
"AUTH_REQUIRED",
|
|
201
248
|
"FORBIDDEN",
|
|
249
|
+
"METHOD_NOT_ALLOWED",
|
|
202
250
|
"NOT_FOUND",
|
|
203
251
|
"FEATURE_DISABLED",
|
|
204
252
|
"BILLING_REQUIRED",
|
|
@@ -217,6 +265,9 @@ var ApiProblemSchema = import_zod.z.object({
|
|
|
217
265
|
error: import_zod.z.object({
|
|
218
266
|
code: ApiErrorCodeSchema,
|
|
219
267
|
message: import_zod.z.string().min(1),
|
|
268
|
+
// Optional while clients can still communicate with older Rolino deployments.
|
|
269
|
+
// Current servers include this field on every API problem response.
|
|
270
|
+
resolution: import_zod.z.string().min(1).optional(),
|
|
220
271
|
details: import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).optional()
|
|
221
272
|
}),
|
|
222
273
|
meta: RequestMetadataSchema
|
|
@@ -285,10 +336,12 @@ var CapabilityIdSchema = import_zod.z.enum([
|
|
|
285
336
|
"blog:read",
|
|
286
337
|
"blog:write",
|
|
287
338
|
"blog:manage",
|
|
339
|
+
"blog:approve",
|
|
288
340
|
"blog:publish"
|
|
289
341
|
]);
|
|
290
342
|
var AgentBlogPlanSchema = import_zod.z.object({
|
|
291
343
|
id: import_zod.z.string().min(1),
|
|
344
|
+
version: import_zod.z.number().int().positive(),
|
|
292
345
|
state: import_zod.z.string().min(1),
|
|
293
346
|
windowStart: import_zod.z.string().datetime(),
|
|
294
347
|
windowEnd: import_zod.z.string().datetime(),
|
|
@@ -307,6 +360,21 @@ var AgentBlogArticleSchema = import_zod.z.object({
|
|
|
307
360
|
scheduledPublishAt: import_zod.z.string().datetime().nullable(),
|
|
308
361
|
updatedAt: import_zod.z.string().datetime()
|
|
309
362
|
});
|
|
363
|
+
var AgentBlogImageSchema = import_zod.z.object({
|
|
364
|
+
id: import_zod.z.string().min(1),
|
|
365
|
+
revisionId: import_zod.z.string().nullable(),
|
|
366
|
+
version: import_zod.z.number().int().positive(),
|
|
367
|
+
purpose: import_zod.z.enum(["FEATURED", "SECTION", "SOCIAL_PREVIEW"]),
|
|
368
|
+
source: import_zod.z.enum(["GENERATED", "AGENT_UPLOAD"]),
|
|
369
|
+
state: import_zod.z.enum(["QUEUED", "GENERATING", "READY_FOR_REVIEW", "APPROVED", "REJECTED", "FAILED"]),
|
|
370
|
+
publicUrl: import_zod.z.string().url().nullable(),
|
|
371
|
+
mimeType: import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]).nullable(),
|
|
372
|
+
width: import_zod.z.number().int().positive().nullable(),
|
|
373
|
+
height: import_zod.z.number().int().positive().nullable(),
|
|
374
|
+
altText: import_zod.z.string().nullable(),
|
|
375
|
+
caption: import_zod.z.string().nullable(),
|
|
376
|
+
createdAt: import_zod.z.string().datetime()
|
|
377
|
+
}).strict();
|
|
310
378
|
var AgentBlogArticleDetailSchema = AgentBlogArticleSchema.extend({
|
|
311
379
|
draft: import_zod.z.object({
|
|
312
380
|
id: import_zod.z.string().min(1),
|
|
@@ -323,7 +391,8 @@ var AgentBlogArticleDetailSchema = AgentBlogArticleSchema.extend({
|
|
|
323
391
|
callToAction: import_zod.z.unknown().nullable(),
|
|
324
392
|
internalLinks: import_zod.z.unknown()
|
|
325
393
|
}).nullable(),
|
|
326
|
-
revisions: import_zod.z.array(import_zod.z.object({ id: import_zod.z.string().min(1), revisionNumber: import_zod.z.number().int().positive(), contentHash: import_zod.z.string().min(1), approvedAt: import_zod.z.string().datetime().nullable(), createdAt: import_zod.z.string().datetime() }))
|
|
394
|
+
revisions: import_zod.z.array(import_zod.z.object({ id: import_zod.z.string().min(1), revisionNumber: import_zod.z.number().int().positive(), contentHash: import_zod.z.string().min(1), approvedAt: import_zod.z.string().datetime().nullable(), createdAt: import_zod.z.string().datetime() })),
|
|
395
|
+
images: import_zod.z.array(AgentBlogImageSchema)
|
|
327
396
|
});
|
|
328
397
|
var AgentBlogJobSchema = import_zod.z.object({
|
|
329
398
|
id: import_zod.z.string().min(1),
|
|
@@ -352,13 +421,126 @@ var AgentBlogDraftUpdateSchema = import_zod.z.object({
|
|
|
352
421
|
scheduledPublishAt: import_zod.z.string().datetime().nullable().optional()
|
|
353
422
|
});
|
|
354
423
|
var AgentBlogGenerateRequestSchema = import_zod.z.object({ idempotencyKey: import_zod.z.string().trim().min(8).max(200) });
|
|
424
|
+
var AgentBlogImageGenerateRequestSchema = import_zod.z.object({
|
|
425
|
+
revisionId: import_zod.z.string().min(1),
|
|
426
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200),
|
|
427
|
+
editorialBrief: import_zod.z.string().trim().max(500).optional()
|
|
428
|
+
}).strict();
|
|
429
|
+
var AgentBlogImageUploadPrepareRequestSchema = import_zod.z.object({
|
|
430
|
+
revisionId: import_zod.z.string().min(1),
|
|
431
|
+
fileName: import_zod.z.string().trim().min(1).max(255),
|
|
432
|
+
contentType: import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]),
|
|
433
|
+
fileSize: import_zod.z.number().int().positive().max(25 * 1024 * 1024)
|
|
434
|
+
}).strict();
|
|
435
|
+
var AgentBlogImageUploadCompleteRequestSchema = AgentBlogImageUploadPrepareRequestSchema.extend({
|
|
436
|
+
storageKey: import_zod.z.string().min(1).max(1024),
|
|
437
|
+
altText: import_zod.z.string().trim().min(1).max(300)
|
|
438
|
+
}).strict();
|
|
439
|
+
var AgentBlogImageReviewRequestSchema = import_zod.z.object({
|
|
440
|
+
expectedVersion: import_zod.z.number().int().positive(),
|
|
441
|
+
decision: import_zod.z.enum(["APPROVED", "REJECTED"]),
|
|
442
|
+
altText: import_zod.z.string().max(300),
|
|
443
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
444
|
+
}).strict();
|
|
445
|
+
var AgentBlogApprovalPreviewRequestSchema = import_zod.z.object({ revisionId: import_zod.z.string().min(1) }).strict();
|
|
446
|
+
var AgentBlogApprovalExecuteRequestSchema = AgentBlogApprovalPreviewRequestSchema.extend({
|
|
447
|
+
confirmationToken: import_zod.z.string().min(1),
|
|
448
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
449
|
+
}).strict();
|
|
450
|
+
var AgentBlogApprovalImageSummarySchema = import_zod.z.object({
|
|
451
|
+
id: import_zod.z.string(),
|
|
452
|
+
purpose: import_zod.z.enum(["FEATURED", "SECTION", "SOCIAL_PREVIEW"]),
|
|
453
|
+
contentPosition: import_zod.z.string().nullable(),
|
|
454
|
+
width: import_zod.z.number().int().positive(),
|
|
455
|
+
height: import_zod.z.number().int().positive(),
|
|
456
|
+
mimeType: import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]),
|
|
457
|
+
altText: import_zod.z.string().min(1),
|
|
458
|
+
caption: import_zod.z.string().nullable(),
|
|
459
|
+
version: import_zod.z.number().int().positive()
|
|
460
|
+
}).strict();
|
|
461
|
+
var AgentBlogApprovalLinkSummarySchema = import_zod.z.object({
|
|
462
|
+
pageId: import_zod.z.string(),
|
|
463
|
+
liveState: import_zod.z.enum(["LIVE", "REDIRECT"])
|
|
464
|
+
}).strict();
|
|
465
|
+
var AgentBlogApprovalPreviewSchema = import_zod.z.object({
|
|
466
|
+
articleId: import_zod.z.string(),
|
|
467
|
+
revisionId: import_zod.z.string(),
|
|
468
|
+
title: import_zod.z.string(),
|
|
469
|
+
slug: import_zod.z.string(),
|
|
470
|
+
revisionNumber: import_zod.z.number().int().positive(),
|
|
471
|
+
contentHash: import_zod.z.string(),
|
|
472
|
+
images: import_zod.z.array(AgentBlogApprovalImageSummarySchema),
|
|
473
|
+
links: import_zod.z.array(AgentBlogApprovalLinkSummarySchema),
|
|
474
|
+
warnings: import_zod.z.array(import_zod.z.string()),
|
|
475
|
+
bundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
476
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
477
|
+
}).strict();
|
|
478
|
+
var AgentBlogApprovalExecuteSchema = AgentBlogApprovalPreviewSchema.omit({ confirmation: true }).extend({
|
|
479
|
+
approvalSource: import_zod.z.literal("AGENT"),
|
|
480
|
+
approvedAt: import_zod.z.string().datetime()
|
|
481
|
+
}).strict();
|
|
355
482
|
var AgentBlogDestinationSelectionSchema = import_zod.z.array(import_zod.z.string().min(1)).min(1).max(20);
|
|
483
|
+
var AgentBlogIanaTimeZoneSchema = import_zod.z.string().trim().min(1).max(100).refine((timeZone) => {
|
|
484
|
+
try {
|
|
485
|
+
new Intl.DateTimeFormat("en", { timeZone }).format();
|
|
486
|
+
return true;
|
|
487
|
+
} catch {
|
|
488
|
+
return false;
|
|
489
|
+
}
|
|
490
|
+
}, "timezone must be a valid IANA timezone");
|
|
491
|
+
var AgentBlogSchedulePreviewRequestSchema = import_zod.z.object({
|
|
492
|
+
revisionId: import_zod.z.string().min(1),
|
|
493
|
+
destinationIds: AgentBlogDestinationSelectionSchema.optional(),
|
|
494
|
+
scheduledAt: import_zod.z.string().datetime({ offset: true }),
|
|
495
|
+
timezone: AgentBlogIanaTimeZoneSchema
|
|
496
|
+
}).strict();
|
|
497
|
+
var AgentBlogScheduleExecuteRequestSchema = AgentBlogSchedulePreviewRequestSchema.extend({
|
|
498
|
+
confirmationToken: import_zod.z.string().min(1),
|
|
499
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
500
|
+
}).strict();
|
|
501
|
+
var AgentBlogScheduleCancelPreviewRequestSchema = import_zod.z.object({}).strict();
|
|
502
|
+
var AgentBlogScheduleCancelExecuteRequestSchema = import_zod.z.object({
|
|
503
|
+
confirmationToken: import_zod.z.string().min(1),
|
|
504
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
505
|
+
}).strict();
|
|
506
|
+
var AgentBlogSchedulePreviewSchema = import_zod.z.object({
|
|
507
|
+
articleId: import_zod.z.string(),
|
|
508
|
+
revisionId: import_zod.z.string(),
|
|
509
|
+
contentHash: import_zod.z.string(),
|
|
510
|
+
approvalBundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
511
|
+
approvalSource: import_zod.z.enum(["USER", "AGENT"]).nullable(),
|
|
512
|
+
destinationIds: AgentBlogDestinationSelectionSchema,
|
|
513
|
+
scheduledAt: import_zod.z.string().datetime(),
|
|
514
|
+
timezone: AgentBlogIanaTimeZoneSchema,
|
|
515
|
+
currentScheduleVersion: import_zod.z.string().datetime(),
|
|
516
|
+
previousScheduledAt: import_zod.z.string().datetime().nullable(),
|
|
517
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
518
|
+
}).strict();
|
|
519
|
+
var AgentBlogScheduleExecuteSchema = AgentBlogSchedulePreviewSchema.omit({ confirmation: true }).extend({
|
|
520
|
+
jobId: import_zod.z.string(),
|
|
521
|
+
scheduleVersion: import_zod.z.string().datetime(),
|
|
522
|
+
state: import_zod.z.literal("SCHEDULED")
|
|
523
|
+
}).strict();
|
|
524
|
+
var AgentBlogScheduleCancelPreviewSchema = import_zod.z.object({
|
|
525
|
+
articleId: import_zod.z.string(),
|
|
526
|
+
revisionId: import_zod.z.string(),
|
|
527
|
+
approvalBundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
528
|
+
destinationIds: AgentBlogDestinationSelectionSchema,
|
|
529
|
+
scheduledAt: import_zod.z.string().datetime(),
|
|
530
|
+
timezone: AgentBlogIanaTimeZoneSchema,
|
|
531
|
+
scheduleVersion: import_zod.z.string().datetime(),
|
|
532
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
533
|
+
}).strict();
|
|
534
|
+
var AgentBlogScheduleCancelExecuteSchema = AgentBlogScheduleCancelPreviewSchema.omit({ confirmation: true }).extend({
|
|
535
|
+
state: import_zod.z.literal("APPROVED"),
|
|
536
|
+
canceledAt: import_zod.z.string().datetime()
|
|
537
|
+
}).strict();
|
|
356
538
|
var AgentBlogPublishPreviewRequestSchema = import_zod.z.object({ revisionId: import_zod.z.string().min(1), destinationIds: AgentBlogDestinationSelectionSchema.optional() });
|
|
357
539
|
var AgentBlogPublishExecuteRequestSchema = import_zod.z.object({ revisionId: import_zod.z.string().min(1), destinationIds: AgentBlogDestinationSelectionSchema.optional(), confirmationToken: import_zod.z.string().min(1), idempotencyKey: import_zod.z.string().trim().min(8).max(200) });
|
|
358
540
|
var AgentBlogPublishingProviderSchema = import_zod.z.object({ key: import_zod.z.string(), name: import_zod.z.string(), description: import_zod.z.string(), mode: import_zod.z.string(), rollout: import_zod.z.enum(["PREVIEW", "VISIBLE"]), capabilities: import_zod.z.array(import_zod.z.string()), authorizationStrategy: import_zod.z.string(), requiresResourceDiscovery: import_zod.z.boolean(), requiresFieldMapping: import_zod.z.boolean(), officialDocumentationUrl: import_zod.z.string().url() }).strict();
|
|
359
|
-
var AgentBlogPublishingDestinationSchema = import_zod.z.object({ id: import_zod.z.string(), name: import_zod.z.string(), providerKey: import_zod.z.string(), mode: import_zod.z.string(), status: import_zod.z.string(), isPrimary: import_zod.z.boolean(), enabled: import_zod.z.boolean(), externalSiteName: import_zod.z.string().nullable(), externalSiteUrl: import_zod.z.string().url().nullable(), lastTestedAt: import_zod.z.string().datetime().nullable(), lastSucceededAt: import_zod.z.string().datetime().nullable(), lastErrorCode: import_zod.z.string().nullable() }).strict();
|
|
541
|
+
var AgentBlogPublishingDestinationSchema = import_zod.z.object({ id: import_zod.z.string(), name: import_zod.z.string(), providerKey: import_zod.z.string(), mode: import_zod.z.string(), status: import_zod.z.string(), isPrimary: import_zod.z.boolean(), enabled: import_zod.z.boolean(), capabilities: import_zod.z.array(import_zod.z.string()), externalSiteName: import_zod.z.string().nullable(), externalSiteUrl: import_zod.z.string().url().nullable(), lastTestedAt: import_zod.z.string().datetime().nullable(), lastSucceededAt: import_zod.z.string().datetime().nullable(), lastErrorCode: import_zod.z.string().nullable() }).strict();
|
|
360
542
|
var AgentBlogDeliveryAttemptSchema = import_zod.z.object({ id: import_zod.z.string(), articleId: import_zod.z.string().nullable(), revisionId: import_zod.z.string().nullable(), destinationId: import_zod.z.string().nullable(), destinationName: import_zod.z.string().nullable(), operation: import_zod.z.string().nullable(), state: import_zod.z.string(), attemptCount: import_zod.z.number().int().nonnegative(), errorCode: import_zod.z.string().nullable(), retryAt: import_zod.z.string().datetime().nullable(), remoteUrl: import_zod.z.string().url().nullable(), createdAt: import_zod.z.string().datetime(), deliveredAt: import_zod.z.string().datetime().nullable() }).strict();
|
|
361
|
-
var AgentBlogPublishPreviewSchema = import_zod.z.object({ articleId: import_zod.z.string(), revisionId: import_zod.z.string(), contentHash: import_zod.z.string(), title: import_zod.z.string(), slug: import_zod.z.string(), publicUrl: import_zod.z.string().url(), destinations: import_zod.z.array(AgentBlogPublishingDestinationSchema), confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }) });
|
|
543
|
+
var AgentBlogPublishPreviewSchema = import_zod.z.object({ articleId: import_zod.z.string(), revisionId: import_zod.z.string(), contentHash: import_zod.z.string(), approvalBundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/), approvalSource: import_zod.z.enum(["USER", "AGENT"]).nullable(), title: import_zod.z.string(), slug: import_zod.z.string(), publicUrl: import_zod.z.string().url(), destinations: import_zod.z.array(AgentBlogPublishingDestinationSchema), confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }) });
|
|
362
544
|
var AgentBlogReadinessSchema = import_zod.z.enum([
|
|
363
545
|
"MISSING",
|
|
364
546
|
"NOT_STARTED",
|
|
@@ -406,6 +588,75 @@ var AgentBlogCadenceInputSchema = import_zod.z.object({
|
|
|
406
588
|
var AgentBlogIdempotentRequestSchema = import_zod.z.object({
|
|
407
589
|
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
408
590
|
}).strict();
|
|
591
|
+
var AgentBlogPublicationWeekdaysSchema = import_zod.z.array(import_zod.z.number().int().min(0).max(6)).min(1).max(7).superRefine((weekdays, context) => {
|
|
592
|
+
if (new Set(weekdays).size !== weekdays.length) {
|
|
593
|
+
context.addIssue({ code: "custom", message: "Weekdays must be unique." });
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
var AgentBlogEditorialDateSchema = import_zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
597
|
+
var AgentBlogPlanItemStateSchema = import_zod.z.enum([
|
|
598
|
+
"PLANNED",
|
|
599
|
+
"ACCEPTED",
|
|
600
|
+
"DISMISSED",
|
|
601
|
+
"DRAFTING",
|
|
602
|
+
"IN_REVIEW",
|
|
603
|
+
"APPROVED",
|
|
604
|
+
"SCHEDULED",
|
|
605
|
+
"PUBLISHED",
|
|
606
|
+
"NEEDS_ATTENTION"
|
|
607
|
+
]);
|
|
608
|
+
var AgentBlogScheduleDigestSchema = import_zod.z.string().regex(/^[a-f0-9]{64}$/);
|
|
609
|
+
var AgentBlogPlanDateMoveSchema = import_zod.z.object({
|
|
610
|
+
itemId: import_zod.z.string().min(1),
|
|
611
|
+
title: import_zod.z.string().min(1).max(200),
|
|
612
|
+
oldDate: AgentBlogEditorialDateSchema,
|
|
613
|
+
newDate: AgentBlogEditorialDateSchema,
|
|
614
|
+
state: AgentBlogPlanItemStateSchema,
|
|
615
|
+
version: import_zod.z.number().int().positive()
|
|
616
|
+
}).strict();
|
|
617
|
+
var AgentBlogPlanLockedItemSchema = import_zod.z.object({
|
|
618
|
+
itemId: import_zod.z.string().min(1),
|
|
619
|
+
title: import_zod.z.string().min(1).max(200),
|
|
620
|
+
date: AgentBlogEditorialDateSchema,
|
|
621
|
+
state: import_zod.z.enum(["SCHEDULED", "PUBLISHED"]),
|
|
622
|
+
version: import_zod.z.number().int().positive()
|
|
623
|
+
}).strict();
|
|
624
|
+
var AgentBlogPlanCadencePreviewRequestSchema = import_zod.z.object({
|
|
625
|
+
weekdays: AgentBlogPublicationWeekdaysSchema,
|
|
626
|
+
expectedPlanVersion: import_zod.z.number().int().positive()
|
|
627
|
+
}).strict();
|
|
628
|
+
var AgentBlogPlanCadencePreviewSchema = import_zod.z.object({
|
|
629
|
+
planId: import_zod.z.string().min(1),
|
|
630
|
+
planTitle: import_zod.z.string().min(1).max(200),
|
|
631
|
+
planVersion: import_zod.z.number().int().positive(),
|
|
632
|
+
scheduleDigest: AgentBlogScheduleDigestSchema,
|
|
633
|
+
kind: import_zod.z.enum(["ready", "blocked", "noop"]),
|
|
634
|
+
canExecute: import_zod.z.boolean(),
|
|
635
|
+
oldWeekdays: AgentBlogPublicationWeekdaysSchema,
|
|
636
|
+
newWeekdays: AgentBlogPublicationWeekdaysSchema,
|
|
637
|
+
moves: import_zod.z.array(AgentBlogPlanDateMoveSchema).max(30),
|
|
638
|
+
lockedItems: import_zod.z.array(AgentBlogPlanLockedItemSchema).max(30),
|
|
639
|
+
warnings: import_zod.z.array(import_zod.z.string().min(1).max(500)).max(30),
|
|
640
|
+
reason: import_zod.z.string().min(1).max(500).nullable(),
|
|
641
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string().min(1), expiresAt: import_zod.z.string().datetime() }).strict().nullable()
|
|
642
|
+
}).strict();
|
|
643
|
+
var AgentBlogPlanCadenceExecuteRequestSchema = import_zod.z.object({
|
|
644
|
+
weekdays: AgentBlogPublicationWeekdaysSchema,
|
|
645
|
+
expectedPlanVersion: import_zod.z.number().int().positive(),
|
|
646
|
+
expectedScheduleDigest: AgentBlogScheduleDigestSchema,
|
|
647
|
+
confirmationToken: import_zod.z.string().min(1),
|
|
648
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
649
|
+
}).strict();
|
|
650
|
+
var AgentBlogPlanCadenceExecuteSchema = import_zod.z.object({
|
|
651
|
+
planId: import_zod.z.string().min(1),
|
|
652
|
+
planVersion: import_zod.z.number().int().positive(),
|
|
653
|
+
publicationWeekdays: AgentBlogPublicationWeekdaysSchema,
|
|
654
|
+
cadencePerWeek: import_zod.z.number().int().min(1).max(7),
|
|
655
|
+
expectedItemCount: import_zod.z.number().int().nonnegative().max(30),
|
|
656
|
+
moves: import_zod.z.array(AgentBlogPlanDateMoveSchema).max(30),
|
|
657
|
+
lockedItems: import_zod.z.array(AgentBlogPlanLockedItemSchema).max(30),
|
|
658
|
+
scheduleDigest: AgentBlogScheduleDigestSchema
|
|
659
|
+
}).strict();
|
|
409
660
|
var AgentBlogPlanCreateRequestSchema = AgentBlogCadenceInputSchema.and(AgentBlogIdempotentRequestSchema);
|
|
410
661
|
var AgentBlogPlanRetryRequestSchema = AgentBlogIdempotentRequestSchema;
|
|
411
662
|
var AgentBlogPlanItemSchema = import_zod.z.object({
|
|
@@ -489,6 +740,67 @@ var AgentBlogConnectionExecuteSchema = import_zod.z.object({
|
|
|
489
740
|
webhookSecret: import_zod.z.string().min(1).optional(),
|
|
490
741
|
message: import_zod.z.string().min(1)
|
|
491
742
|
}).strict();
|
|
743
|
+
var AgentBlogWebhookSemanticsSchema = import_zod.z.enum(["DRAFT", "LIVE"]);
|
|
744
|
+
var AgentBlogWebhookDestinationChangeSchema = import_zod.z.object({
|
|
745
|
+
destinationId: import_zod.z.string().min(1).optional(),
|
|
746
|
+
siteId: import_zod.z.string().min(1),
|
|
747
|
+
name: import_zod.z.string().trim().min(1).max(160),
|
|
748
|
+
endpoint: import_zod.z.string().url(),
|
|
749
|
+
semantics: AgentBlogWebhookSemanticsSchema
|
|
750
|
+
}).strict();
|
|
751
|
+
var AgentBlogWebhookDestinationPreviewRequestSchema = AgentBlogWebhookDestinationChangeSchema;
|
|
752
|
+
var AgentBlogWebhookDestinationExecuteRequestSchema = AgentBlogWebhookDestinationChangeSchema.extend({
|
|
753
|
+
confirmationToken: import_zod.z.string().min(1).max(300),
|
|
754
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
755
|
+
}).strict();
|
|
756
|
+
var AgentBlogWebhookDestinationPreviewSchema = AgentBlogWebhookDestinationChangeSchema.extend({
|
|
757
|
+
destinationId: import_zod.z.string().min(1).nullable(),
|
|
758
|
+
effect: import_zod.z.string().min(1),
|
|
759
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string().min(1), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
760
|
+
}).strict();
|
|
761
|
+
var AgentBlogWebhookDestinationExecuteSchema = import_zod.z.object({
|
|
762
|
+
projectId: import_zod.z.string().min(1),
|
|
763
|
+
siteId: import_zod.z.string().min(1),
|
|
764
|
+
destinationId: import_zod.z.string().min(1),
|
|
765
|
+
completed: import_zod.z.literal(true),
|
|
766
|
+
secretDelivered: import_zod.z.boolean(),
|
|
767
|
+
alreadyDelivered: import_zod.z.boolean(),
|
|
768
|
+
webhookSecret: import_zod.z.string().min(1).optional(),
|
|
769
|
+
message: import_zod.z.string().min(1)
|
|
770
|
+
}).strict();
|
|
771
|
+
var AgentBlogWebhookTestRequestSchema = import_zod.z.object({
|
|
772
|
+
siteId: import_zod.z.string().min(1),
|
|
773
|
+
destinationId: import_zod.z.string().min(1),
|
|
774
|
+
makePrimary: import_zod.z.boolean().optional()
|
|
775
|
+
}).strict();
|
|
776
|
+
var AgentBlogWebhookTestSchema = import_zod.z.object({
|
|
777
|
+
destinationId: import_zod.z.string().min(1),
|
|
778
|
+
status: import_zod.z.enum(["CONNECTED", "NEEDS_ATTENTION"]),
|
|
779
|
+
enabled: import_zod.z.boolean(),
|
|
780
|
+
testedAt: import_zod.z.string().datetime(),
|
|
781
|
+
errorCode: import_zod.z.string().nullable()
|
|
782
|
+
}).strict();
|
|
783
|
+
var AgentBlogWebhookRotatePreviewRequestSchema = import_zod.z.object({
|
|
784
|
+
siteId: import_zod.z.string().min(1),
|
|
785
|
+
destinationId: import_zod.z.string().min(1)
|
|
786
|
+
}).strict();
|
|
787
|
+
var AgentBlogWebhookRotateExecuteRequestSchema = AgentBlogWebhookRotatePreviewRequestSchema.extend({
|
|
788
|
+
confirmationToken: import_zod.z.string().min(1).max(300),
|
|
789
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
790
|
+
}).strict();
|
|
791
|
+
var AgentBlogWebhookRotatePreviewSchema = AgentBlogWebhookRotatePreviewRequestSchema.extend({
|
|
792
|
+
destinationName: import_zod.z.string().min(1),
|
|
793
|
+
effect: import_zod.z.string().min(1),
|
|
794
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string().min(1), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
795
|
+
}).strict();
|
|
796
|
+
var AgentBlogWebhookRotateExecuteSchema = import_zod.z.object({
|
|
797
|
+
destinationId: import_zod.z.string().min(1),
|
|
798
|
+
completed: import_zod.z.literal(true),
|
|
799
|
+
secretDelivered: import_zod.z.boolean(),
|
|
800
|
+
alreadyDelivered: import_zod.z.boolean(),
|
|
801
|
+
webhookSecret: import_zod.z.string().min(1).optional(),
|
|
802
|
+
message: import_zod.z.string().min(1)
|
|
803
|
+
}).strict();
|
|
492
804
|
var AgentBlogRevalidationTestRequestSchema = AgentBlogIdempotentRequestSchema;
|
|
493
805
|
var AgentBlogRevalidationTestSchema = import_zod.z.object({
|
|
494
806
|
status: import_zod.z.enum(["VERIFIED", "NEEDS_ATTENTION"]),
|
|
@@ -499,14 +811,31 @@ var AgentBlogPlanListResponseSchema = successEnvelopeSchema(import_zod.z.object(
|
|
|
499
811
|
var AgentBlogArticleListResponseSchema = successEnvelopeSchema(import_zod.z.object({ articles: import_zod.z.array(AgentBlogArticleSchema) }));
|
|
500
812
|
var AgentBlogArticleResponseSchema = successEnvelopeSchema(AgentBlogArticleDetailSchema);
|
|
501
813
|
var AgentBlogJobResponseSchema = successEnvelopeSchema(AgentBlogJobSchema);
|
|
814
|
+
var AgentBlogImageGenerationResponseSchema = successEnvelopeSchema(import_zod.z.object({ image: AgentBlogImageSchema, job: AgentBlogJobSchema }).strict());
|
|
815
|
+
var AgentBlogImageUploadPreparationResponseSchema = successEnvelopeSchema(import_zod.z.object({
|
|
816
|
+
uploadUrl: import_zod.z.string().url(),
|
|
817
|
+
storageKey: import_zod.z.string(),
|
|
818
|
+
expiresAt: import_zod.z.string().datetime(),
|
|
819
|
+
headers: import_zod.z.object({ "Content-Type": import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]) }).strict(),
|
|
820
|
+
maxFileSize: import_zod.z.number().int().positive()
|
|
821
|
+
}).strict());
|
|
822
|
+
var AgentBlogImageResponseSchema = successEnvelopeSchema(AgentBlogImageSchema);
|
|
823
|
+
var AgentBlogApprovalPreviewResponseSchema = successEnvelopeSchema(AgentBlogApprovalPreviewSchema);
|
|
824
|
+
var AgentBlogApprovalExecuteResponseSchema = successEnvelopeSchema(AgentBlogApprovalExecuteSchema);
|
|
825
|
+
var AgentBlogSchedulePreviewResponseSchema = successEnvelopeSchema(AgentBlogSchedulePreviewSchema);
|
|
826
|
+
var AgentBlogScheduleExecuteResponseSchema = successEnvelopeSchema(AgentBlogScheduleExecuteSchema);
|
|
827
|
+
var AgentBlogScheduleCancelPreviewResponseSchema = successEnvelopeSchema(AgentBlogScheduleCancelPreviewSchema);
|
|
828
|
+
var AgentBlogScheduleCancelExecuteResponseSchema = successEnvelopeSchema(AgentBlogScheduleCancelExecuteSchema);
|
|
502
829
|
var AgentBlogPublishPreviewResponseSchema = successEnvelopeSchema(AgentBlogPublishPreviewSchema);
|
|
503
|
-
var AgentBlogPublishExecuteResponseSchema = successEnvelopeSchema(import_zod.z.object({ publicationId: import_zod.z.string(), articleId: import_zod.z.string(), revisionId: import_zod.z.string(), publicUrl: import_zod.z.string().url(), publishedAt: import_zod.z.string().datetime() }));
|
|
830
|
+
var AgentBlogPublishExecuteResponseSchema = successEnvelopeSchema(import_zod.z.object({ publicationId: import_zod.z.string(), articleId: import_zod.z.string(), revisionId: import_zod.z.string(), approvalBundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/), approvalSource: import_zod.z.enum(["USER", "AGENT"]).nullable(), publicUrl: import_zod.z.string().url(), publishedAt: import_zod.z.string().datetime() }));
|
|
504
831
|
var AgentBlogPublishingProviderListResponseSchema = successEnvelopeSchema(import_zod.z.object({ providers: import_zod.z.array(AgentBlogPublishingProviderSchema) }).strict());
|
|
505
832
|
var AgentBlogPublishingDestinationListResponseSchema = successEnvelopeSchema(import_zod.z.object({ destinations: import_zod.z.array(AgentBlogPublishingDestinationSchema) }).strict());
|
|
506
833
|
var AgentBlogDeliveryAttemptListResponseSchema = successEnvelopeSchema(import_zod.z.object({ deliveries: import_zod.z.array(AgentBlogDeliveryAttemptSchema) }).strict());
|
|
507
834
|
var AgentBlogSetupStatusResponseSchema = successEnvelopeSchema(AgentBlogSetupStatusSchema);
|
|
508
835
|
var AgentBlogPlanItemsResponseSchema = successEnvelopeSchema(import_zod.z.object({ items: import_zod.z.array(AgentBlogPlanItemSchema) }).strict());
|
|
509
836
|
var AgentBlogPlanItemResponseSchema = successEnvelopeSchema(AgentBlogPlanItemSchema);
|
|
837
|
+
var AgentBlogPlanCadencePreviewResponseSchema = successEnvelopeSchema(AgentBlogPlanCadencePreviewSchema);
|
|
838
|
+
var AgentBlogPlanCadenceExecuteResponseSchema = successEnvelopeSchema(AgentBlogPlanCadenceExecuteSchema);
|
|
510
839
|
var AgentBlogPlanQueuedResponseSchema = successEnvelopeSchema(import_zod.z.object({
|
|
511
840
|
planId: import_zod.z.string().min(1),
|
|
512
841
|
job: AgentBlogJobSchema
|
|
@@ -519,6 +848,11 @@ var AgentBlogConnectionStatusResponseSchema = successEnvelopeSchema(AgentBlogCon
|
|
|
519
848
|
var AgentBlogConnectionPreviewResponseSchema = successEnvelopeSchema(AgentBlogConnectionPreviewSchema);
|
|
520
849
|
var AgentBlogConnectionExecuteResponseSchema = successEnvelopeSchema(AgentBlogConnectionExecuteSchema);
|
|
521
850
|
var AgentBlogRevalidationTestResponseSchema = successEnvelopeSchema(AgentBlogRevalidationTestSchema);
|
|
851
|
+
var AgentBlogWebhookDestinationPreviewResponseSchema = successEnvelopeSchema(AgentBlogWebhookDestinationPreviewSchema);
|
|
852
|
+
var AgentBlogWebhookDestinationExecuteResponseSchema = successEnvelopeSchema(AgentBlogWebhookDestinationExecuteSchema);
|
|
853
|
+
var AgentBlogWebhookTestResponseSchema = successEnvelopeSchema(AgentBlogWebhookTestSchema);
|
|
854
|
+
var AgentBlogWebhookRotatePreviewResponseSchema = successEnvelopeSchema(AgentBlogWebhookRotatePreviewSchema);
|
|
855
|
+
var AgentBlogWebhookRotateExecuteResponseSchema = successEnvelopeSchema(AgentBlogWebhookRotateExecuteSchema);
|
|
522
856
|
var CapabilitySchema = import_zod.z.object({
|
|
523
857
|
id: CapabilityIdSchema,
|
|
524
858
|
available: import_zod.z.boolean(),
|
|
@@ -548,7 +882,7 @@ var ApiMetaSchema = import_zod.z.object({
|
|
|
548
882
|
capabilities: import_zod.z.array(CapabilitySchema)
|
|
549
883
|
});
|
|
550
884
|
var ApiMetaResponseSchema = successEnvelopeSchema(ApiMetaSchema);
|
|
551
|
-
var AuthenticationKindSchema = import_zod.z.enum(["session", "api_key"]);
|
|
885
|
+
var AuthenticationKindSchema = import_zod.z.enum(["session", "api_key", "oauth"]);
|
|
552
886
|
var ActorSchema = import_zod.z.object({
|
|
553
887
|
user: import_zod.z.object({
|
|
554
888
|
id: import_zod.z.string().min(1),
|
|
@@ -567,31 +901,6 @@ var ActorSchema = import_zod.z.object({
|
|
|
567
901
|
capabilities: import_zod.z.array(CapabilityIdSchema)
|
|
568
902
|
});
|
|
569
903
|
var WhoAmIResponseSchema = successEnvelopeSchema(ActorSchema);
|
|
570
|
-
var Base64UrlSecretSchema = import_zod.z.string().min(43).max(128).regex(/^[A-Za-z0-9_-]+$/);
|
|
571
|
-
var CLI_BROWSER_AUTHORIZATION_TIMEOUT_MS = 5 * 60 * 1e3;
|
|
572
|
-
var CliAuthorizationExchangeRequestSchema = import_zod.z.object({
|
|
573
|
-
code: Base64UrlSecretSchema,
|
|
574
|
-
codeVerifier: Base64UrlSecretSchema
|
|
575
|
-
});
|
|
576
|
-
var CliAuthorizationCredentialSchema = import_zod.z.object({
|
|
577
|
-
token: import_zod.z.string().min(1),
|
|
578
|
-
tokenType: import_zod.z.literal("Bearer"),
|
|
579
|
-
expiresAt: import_zod.z.string().datetime(),
|
|
580
|
-
organization: import_zod.z.object({
|
|
581
|
-
id: import_zod.z.string().min(1),
|
|
582
|
-
name: import_zod.z.string().min(1)
|
|
583
|
-
}),
|
|
584
|
-
capabilities: import_zod.z.array(CapabilityIdSchema)
|
|
585
|
-
});
|
|
586
|
-
var CliAuthorizationExchangeResponseSchema = successEnvelopeSchema(
|
|
587
|
-
CliAuthorizationCredentialSchema
|
|
588
|
-
);
|
|
589
|
-
var CliAuthorizationRevokeDataSchema = import_zod.z.object({
|
|
590
|
-
revoked: import_zod.z.literal(true)
|
|
591
|
-
});
|
|
592
|
-
var CliAuthorizationRevokeResponseSchema = successEnvelopeSchema(
|
|
593
|
-
CliAuthorizationRevokeDataSchema
|
|
594
|
-
);
|
|
595
904
|
var CapabilitiesDataSchema = import_zod.z.object({
|
|
596
905
|
capabilities: import_zod.z.array(CapabilitySchema)
|
|
597
906
|
});
|
|
@@ -728,7 +1037,8 @@ var PublishingProviderSchema = import_zod.z.enum([
|
|
|
728
1037
|
"TIKTOK",
|
|
729
1038
|
"YOUTUBE",
|
|
730
1039
|
"BLUESKY",
|
|
731
|
-
"LINKEDIN"
|
|
1040
|
+
"LINKEDIN",
|
|
1041
|
+
"GOOGLE_BUSINESS_PROFILE"
|
|
732
1042
|
]);
|
|
733
1043
|
var PUBLISHING_PROVIDER_COUNT = PublishingProviderSchema.options.length;
|
|
734
1044
|
var PostDeliveryModeSchema = import_zod.z.enum(["IMMEDIATE", "SCHEDULED"]);
|
|
@@ -928,7 +1238,8 @@ var DraftCaptionOverridesObjectSchema = import_zod.z.object({
|
|
|
928
1238
|
TIKTOK: import_zod.z.string().max(2200).nullable().optional(),
|
|
929
1239
|
YOUTUBE: YouTubeDescriptionSchema.nullable().optional(),
|
|
930
1240
|
BLUESKY: BlueskyCaptionSchema.nullable().optional(),
|
|
931
|
-
LINKEDIN: import_zod.z.string().max(3e3).nullable().optional()
|
|
1241
|
+
LINKEDIN: import_zod.z.string().max(3e3).nullable().optional(),
|
|
1242
|
+
GOOGLE_BUSINESS_PROFILE: import_zod.z.string().max(1500).nullable().optional()
|
|
932
1243
|
}).strict();
|
|
933
1244
|
var DraftPlatformsSchema = import_zod.z.array(PublishingProviderSchema).max(PUBLISHING_PROVIDER_COUNT).refine(
|
|
934
1245
|
(providers) => new Set(providers).size === providers.length,
|
|
@@ -1609,6 +1920,14 @@ var SeoReportResponseSchema = successEnvelopeSchema(SeoReportSchema);
|
|
|
1609
1920
|
0 && (module.exports = {
|
|
1610
1921
|
API_VERSION,
|
|
1611
1922
|
ActorSchema,
|
|
1923
|
+
AgentBlogApprovalExecuteRequestSchema,
|
|
1924
|
+
AgentBlogApprovalExecuteResponseSchema,
|
|
1925
|
+
AgentBlogApprovalExecuteSchema,
|
|
1926
|
+
AgentBlogApprovalImageSummarySchema,
|
|
1927
|
+
AgentBlogApprovalLinkSummarySchema,
|
|
1928
|
+
AgentBlogApprovalPreviewRequestSchema,
|
|
1929
|
+
AgentBlogApprovalPreviewResponseSchema,
|
|
1930
|
+
AgentBlogApprovalPreviewSchema,
|
|
1612
1931
|
AgentBlogArticleCreateRequestSchema,
|
|
1613
1932
|
AgentBlogArticleDetailSchema,
|
|
1614
1933
|
AgentBlogArticleListResponseSchema,
|
|
@@ -1631,14 +1950,30 @@ var SeoReportResponseSchema = successEnvelopeSchema(SeoReportSchema);
|
|
|
1631
1950
|
AgentBlogDraftUpdateSchema,
|
|
1632
1951
|
AgentBlogGenerateRequestSchema,
|
|
1633
1952
|
AgentBlogIdempotentRequestSchema,
|
|
1953
|
+
AgentBlogImageGenerateRequestSchema,
|
|
1954
|
+
AgentBlogImageGenerationResponseSchema,
|
|
1955
|
+
AgentBlogImageResponseSchema,
|
|
1956
|
+
AgentBlogImageReviewRequestSchema,
|
|
1957
|
+
AgentBlogImageSchema,
|
|
1958
|
+
AgentBlogImageUploadCompleteRequestSchema,
|
|
1959
|
+
AgentBlogImageUploadPreparationResponseSchema,
|
|
1960
|
+
AgentBlogImageUploadPrepareRequestSchema,
|
|
1634
1961
|
AgentBlogJobResponseSchema,
|
|
1635
1962
|
AgentBlogJobSchema,
|
|
1963
|
+
AgentBlogPlanCadenceExecuteRequestSchema,
|
|
1964
|
+
AgentBlogPlanCadenceExecuteResponseSchema,
|
|
1965
|
+
AgentBlogPlanCadenceExecuteSchema,
|
|
1966
|
+
AgentBlogPlanCadencePreviewRequestSchema,
|
|
1967
|
+
AgentBlogPlanCadencePreviewResponseSchema,
|
|
1968
|
+
AgentBlogPlanCadencePreviewSchema,
|
|
1636
1969
|
AgentBlogPlanCreateRequestSchema,
|
|
1970
|
+
AgentBlogPlanDateMoveSchema,
|
|
1637
1971
|
AgentBlogPlanItemResponseSchema,
|
|
1638
1972
|
AgentBlogPlanItemSchema,
|
|
1639
1973
|
AgentBlogPlanItemStateRequestSchema,
|
|
1640
1974
|
AgentBlogPlanItemsResponseSchema,
|
|
1641
1975
|
AgentBlogPlanListResponseSchema,
|
|
1976
|
+
AgentBlogPlanLockedItemSchema,
|
|
1642
1977
|
AgentBlogPlanQueuedResponseSchema,
|
|
1643
1978
|
AgentBlogPlanRetryRequestSchema,
|
|
1644
1979
|
AgentBlogPlanSchema,
|
|
@@ -1654,8 +1989,37 @@ var SeoReportResponseSchema = successEnvelopeSchema(SeoReportSchema);
|
|
|
1654
1989
|
AgentBlogRevalidationTestRequestSchema,
|
|
1655
1990
|
AgentBlogRevalidationTestResponseSchema,
|
|
1656
1991
|
AgentBlogRevalidationTestSchema,
|
|
1992
|
+
AgentBlogScheduleCancelExecuteRequestSchema,
|
|
1993
|
+
AgentBlogScheduleCancelExecuteResponseSchema,
|
|
1994
|
+
AgentBlogScheduleCancelExecuteSchema,
|
|
1995
|
+
AgentBlogScheduleCancelPreviewRequestSchema,
|
|
1996
|
+
AgentBlogScheduleCancelPreviewResponseSchema,
|
|
1997
|
+
AgentBlogScheduleCancelPreviewSchema,
|
|
1998
|
+
AgentBlogScheduleExecuteRequestSchema,
|
|
1999
|
+
AgentBlogScheduleExecuteResponseSchema,
|
|
2000
|
+
AgentBlogScheduleExecuteSchema,
|
|
2001
|
+
AgentBlogSchedulePreviewRequestSchema,
|
|
2002
|
+
AgentBlogSchedulePreviewResponseSchema,
|
|
2003
|
+
AgentBlogSchedulePreviewSchema,
|
|
1657
2004
|
AgentBlogSetupStatusResponseSchema,
|
|
1658
2005
|
AgentBlogSetupStatusSchema,
|
|
2006
|
+
AgentBlogWebhookDestinationChangeSchema,
|
|
2007
|
+
AgentBlogWebhookDestinationExecuteRequestSchema,
|
|
2008
|
+
AgentBlogWebhookDestinationExecuteResponseSchema,
|
|
2009
|
+
AgentBlogWebhookDestinationExecuteSchema,
|
|
2010
|
+
AgentBlogWebhookDestinationPreviewRequestSchema,
|
|
2011
|
+
AgentBlogWebhookDestinationPreviewResponseSchema,
|
|
2012
|
+
AgentBlogWebhookDestinationPreviewSchema,
|
|
2013
|
+
AgentBlogWebhookRotateExecuteRequestSchema,
|
|
2014
|
+
AgentBlogWebhookRotateExecuteResponseSchema,
|
|
2015
|
+
AgentBlogWebhookRotateExecuteSchema,
|
|
2016
|
+
AgentBlogWebhookRotatePreviewRequestSchema,
|
|
2017
|
+
AgentBlogWebhookRotatePreviewResponseSchema,
|
|
2018
|
+
AgentBlogWebhookRotatePreviewSchema,
|
|
2019
|
+
AgentBlogWebhookSemanticsSchema,
|
|
2020
|
+
AgentBlogWebhookTestRequestSchema,
|
|
2021
|
+
AgentBlogWebhookTestResponseSchema,
|
|
2022
|
+
AgentBlogWebhookTestSchema,
|
|
1659
2023
|
ApiErrorCodeSchema,
|
|
1660
2024
|
ApiMetaResponseSchema,
|
|
1661
2025
|
ApiMetaSchema,
|
|
@@ -1666,7 +2030,6 @@ var SeoReportResponseSchema = successEnvelopeSchema(SeoReportSchema);
|
|
|
1666
2030
|
BlogMetadataSchema,
|
|
1667
2031
|
BlogSitemapEntrySchema,
|
|
1668
2032
|
BlogSlugRedirectSchema,
|
|
1669
|
-
CLI_BROWSER_AUTHORIZATION_TIMEOUT_MS,
|
|
1670
2033
|
CONTRACT_VERSION,
|
|
1671
2034
|
CalendarEventSchema,
|
|
1672
2035
|
CalendarListDataSchema,
|
|
@@ -1676,11 +2039,6 @@ var SeoReportResponseSchema = successEnvelopeSchema(SeoReportSchema);
|
|
|
1676
2039
|
CapabilitiesResponseSchema,
|
|
1677
2040
|
CapabilityIdSchema,
|
|
1678
2041
|
CapabilitySchema,
|
|
1679
|
-
CliAuthorizationCredentialSchema,
|
|
1680
|
-
CliAuthorizationExchangeRequestSchema,
|
|
1681
|
-
CliAuthorizationExchangeResponseSchema,
|
|
1682
|
-
CliAuthorizationRevokeDataSchema,
|
|
1683
|
-
CliAuthorizationRevokeResponseSchema,
|
|
1684
2042
|
DraftPostInputSchema,
|
|
1685
2043
|
DraftPostUpdateInputSchema,
|
|
1686
2044
|
IntegrationConnectionStatusSchema,
|