@rolino/contracts 0.4.0 → 0.5.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 +57 -0
- package/README.md +47 -4
- package/dist/index.cjs +951 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6488 -2276
- package/dist/index.d.ts +6488 -2276
- package/dist/index.js +839 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22,11 +22,91 @@ 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,
|
|
33
|
+
AgentBlogArticleCreateRequestSchema: () => AgentBlogArticleCreateRequestSchema,
|
|
34
|
+
AgentBlogArticleDetailSchema: () => AgentBlogArticleDetailSchema,
|
|
35
|
+
AgentBlogArticleListResponseSchema: () => AgentBlogArticleListResponseSchema,
|
|
36
|
+
AgentBlogArticleQueuedResponseSchema: () => AgentBlogArticleQueuedResponseSchema,
|
|
37
|
+
AgentBlogArticleResponseSchema: () => AgentBlogArticleResponseSchema,
|
|
38
|
+
AgentBlogArticleSchema: () => AgentBlogArticleSchema,
|
|
39
|
+
AgentBlogCadenceInputSchema: () => AgentBlogCadenceInputSchema,
|
|
40
|
+
AgentBlogConnectionExecuteRequestSchema: () => AgentBlogConnectionExecuteRequestSchema,
|
|
41
|
+
AgentBlogConnectionExecuteResponseSchema: () => AgentBlogConnectionExecuteResponseSchema,
|
|
42
|
+
AgentBlogConnectionExecuteSchema: () => AgentBlogConnectionExecuteSchema,
|
|
43
|
+
AgentBlogConnectionPreviewRequestSchema: () => AgentBlogConnectionPreviewRequestSchema,
|
|
44
|
+
AgentBlogConnectionPreviewResponseSchema: () => AgentBlogConnectionPreviewResponseSchema,
|
|
45
|
+
AgentBlogConnectionPreviewSchema: () => AgentBlogConnectionPreviewSchema,
|
|
46
|
+
AgentBlogConnectionRequestSchema: () => AgentBlogConnectionRequestSchema,
|
|
47
|
+
AgentBlogConnectionStatusResponseSchema: () => AgentBlogConnectionStatusResponseSchema,
|
|
48
|
+
AgentBlogConnectionStatusSchema: () => AgentBlogConnectionStatusSchema,
|
|
49
|
+
AgentBlogDeliveryAttemptListResponseSchema: () => AgentBlogDeliveryAttemptListResponseSchema,
|
|
50
|
+
AgentBlogDeliveryAttemptSchema: () => AgentBlogDeliveryAttemptSchema,
|
|
51
|
+
AgentBlogDestinationSelectionSchema: () => AgentBlogDestinationSelectionSchema,
|
|
52
|
+
AgentBlogDraftUpdateSchema: () => AgentBlogDraftUpdateSchema,
|
|
53
|
+
AgentBlogGenerateRequestSchema: () => AgentBlogGenerateRequestSchema,
|
|
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,
|
|
63
|
+
AgentBlogJobResponseSchema: () => AgentBlogJobResponseSchema,
|
|
64
|
+
AgentBlogJobSchema: () => AgentBlogJobSchema,
|
|
65
|
+
AgentBlogPlanCreateRequestSchema: () => AgentBlogPlanCreateRequestSchema,
|
|
66
|
+
AgentBlogPlanItemResponseSchema: () => AgentBlogPlanItemResponseSchema,
|
|
67
|
+
AgentBlogPlanItemSchema: () => AgentBlogPlanItemSchema,
|
|
68
|
+
AgentBlogPlanItemStateRequestSchema: () => AgentBlogPlanItemStateRequestSchema,
|
|
69
|
+
AgentBlogPlanItemsResponseSchema: () => AgentBlogPlanItemsResponseSchema,
|
|
70
|
+
AgentBlogPlanListResponseSchema: () => AgentBlogPlanListResponseSchema,
|
|
71
|
+
AgentBlogPlanQueuedResponseSchema: () => AgentBlogPlanQueuedResponseSchema,
|
|
72
|
+
AgentBlogPlanRetryRequestSchema: () => AgentBlogPlanRetryRequestSchema,
|
|
73
|
+
AgentBlogPlanSchema: () => AgentBlogPlanSchema,
|
|
74
|
+
AgentBlogPublishExecuteRequestSchema: () => AgentBlogPublishExecuteRequestSchema,
|
|
75
|
+
AgentBlogPublishExecuteResponseSchema: () => AgentBlogPublishExecuteResponseSchema,
|
|
76
|
+
AgentBlogPublishPreviewRequestSchema: () => AgentBlogPublishPreviewRequestSchema,
|
|
77
|
+
AgentBlogPublishPreviewResponseSchema: () => AgentBlogPublishPreviewResponseSchema,
|
|
78
|
+
AgentBlogPublishPreviewSchema: () => AgentBlogPublishPreviewSchema,
|
|
79
|
+
AgentBlogPublishingDestinationListResponseSchema: () => AgentBlogPublishingDestinationListResponseSchema,
|
|
80
|
+
AgentBlogPublishingDestinationSchema: () => AgentBlogPublishingDestinationSchema,
|
|
81
|
+
AgentBlogPublishingProviderListResponseSchema: () => AgentBlogPublishingProviderListResponseSchema,
|
|
82
|
+
AgentBlogPublishingProviderSchema: () => AgentBlogPublishingProviderSchema,
|
|
83
|
+
AgentBlogRevalidationTestRequestSchema: () => AgentBlogRevalidationTestRequestSchema,
|
|
84
|
+
AgentBlogRevalidationTestResponseSchema: () => AgentBlogRevalidationTestResponseSchema,
|
|
85
|
+
AgentBlogRevalidationTestSchema: () => AgentBlogRevalidationTestSchema,
|
|
86
|
+
AgentBlogScheduleCancelExecuteRequestSchema: () => AgentBlogScheduleCancelExecuteRequestSchema,
|
|
87
|
+
AgentBlogScheduleCancelExecuteResponseSchema: () => AgentBlogScheduleCancelExecuteResponseSchema,
|
|
88
|
+
AgentBlogScheduleCancelExecuteSchema: () => AgentBlogScheduleCancelExecuteSchema,
|
|
89
|
+
AgentBlogScheduleCancelPreviewRequestSchema: () => AgentBlogScheduleCancelPreviewRequestSchema,
|
|
90
|
+
AgentBlogScheduleCancelPreviewResponseSchema: () => AgentBlogScheduleCancelPreviewResponseSchema,
|
|
91
|
+
AgentBlogScheduleCancelPreviewSchema: () => AgentBlogScheduleCancelPreviewSchema,
|
|
92
|
+
AgentBlogScheduleExecuteRequestSchema: () => AgentBlogScheduleExecuteRequestSchema,
|
|
93
|
+
AgentBlogScheduleExecuteResponseSchema: () => AgentBlogScheduleExecuteResponseSchema,
|
|
94
|
+
AgentBlogScheduleExecuteSchema: () => AgentBlogScheduleExecuteSchema,
|
|
95
|
+
AgentBlogSchedulePreviewRequestSchema: () => AgentBlogSchedulePreviewRequestSchema,
|
|
96
|
+
AgentBlogSchedulePreviewResponseSchema: () => AgentBlogSchedulePreviewResponseSchema,
|
|
97
|
+
AgentBlogSchedulePreviewSchema: () => AgentBlogSchedulePreviewSchema,
|
|
98
|
+
AgentBlogSetupStatusResponseSchema: () => AgentBlogSetupStatusResponseSchema,
|
|
99
|
+
AgentBlogSetupStatusSchema: () => AgentBlogSetupStatusSchema,
|
|
25
100
|
ApiErrorCodeSchema: () => ApiErrorCodeSchema,
|
|
26
101
|
ApiMetaResponseSchema: () => ApiMetaResponseSchema,
|
|
27
102
|
ApiMetaSchema: () => ApiMetaSchema,
|
|
28
103
|
ApiProblemSchema: () => ApiProblemSchema,
|
|
29
104
|
AuthenticationKindSchema: () => AuthenticationKindSchema,
|
|
105
|
+
BlogArticleListSchema: () => BlogArticleListSchema,
|
|
106
|
+
BlogImageSchema: () => BlogImageSchema,
|
|
107
|
+
BlogMetadataSchema: () => BlogMetadataSchema,
|
|
108
|
+
BlogSitemapEntrySchema: () => BlogSitemapEntrySchema,
|
|
109
|
+
BlogSlugRedirectSchema: () => BlogSlugRedirectSchema,
|
|
30
110
|
CLI_BROWSER_AUTHORIZATION_TIMEOUT_MS: () => CLI_BROWSER_AUTHORIZATION_TIMEOUT_MS,
|
|
31
111
|
CONTRACT_VERSION: () => CONTRACT_VERSION,
|
|
32
112
|
CalendarEventSchema: () => CalendarEventSchema,
|
|
@@ -60,7 +140,9 @@ __export(index_exports, {
|
|
|
60
140
|
MediaAssetUploadPreparationSchema: () => MediaAssetUploadPreparationSchema,
|
|
61
141
|
PUBLISHING_PROVIDER_COUNT: () => PUBLISHING_PROVIDER_COUNT,
|
|
62
142
|
PlatformPostStatusSchema: () => PlatformPostStatusSchema,
|
|
143
|
+
PostDeliveryModeSchema: () => PostDeliveryModeSchema,
|
|
63
144
|
PostDestinationSchema: () => PostDestinationSchema,
|
|
145
|
+
PostDestinationStageSchema: () => PostDestinationStageSchema,
|
|
64
146
|
PostListDataSchema: () => PostListDataSchema,
|
|
65
147
|
PostListQuerySchema: () => PostListQuerySchema,
|
|
66
148
|
PostListResponseSchema: () => PostListResponseSchema,
|
|
@@ -94,10 +176,40 @@ __export(index_exports, {
|
|
|
94
176
|
ProviderDeliveryOptionsResponseSchema: () => ProviderDeliveryOptionsResponseSchema,
|
|
95
177
|
ProviderDeliveryOptionsSchema: () => ProviderDeliveryOptionsSchema,
|
|
96
178
|
ProviderHealthStatusSchema: () => ProviderHealthStatusSchema,
|
|
179
|
+
PublishedBlogArticleSchema: () => PublishedBlogArticleSchema,
|
|
97
180
|
PublishingProviderSchema: () => PublishingProviderSchema,
|
|
98
181
|
ReadinessActionSchema: () => ReadinessActionSchema,
|
|
99
182
|
ReadinessStatusSchema: () => ReadinessStatusSchema,
|
|
100
183
|
RequestMetadataSchema: () => RequestMetadataSchema,
|
|
184
|
+
SeoActionDecisionSchema: () => SeoActionDecisionSchema,
|
|
185
|
+
SeoActionPlanSchema: () => SeoActionPlanSchema,
|
|
186
|
+
SeoAgentTaskSchema: () => SeoAgentTaskSchema,
|
|
187
|
+
SeoConfidenceValueSchema: () => SeoConfidenceValueSchema,
|
|
188
|
+
SeoContentTypeSchema: () => SeoContentTypeSchema,
|
|
189
|
+
SeoCursorSchema: () => SeoCursorSchema,
|
|
190
|
+
SeoDecisionConfidenceSchema: () => SeoDecisionConfidenceSchema,
|
|
191
|
+
SeoEntityIdSchema: () => SeoEntityIdSchema,
|
|
192
|
+
SeoEvidenceProvenanceSchema: () => SeoEvidenceProvenanceSchema,
|
|
193
|
+
SeoEvidenceSchema: () => SeoEvidenceSchema,
|
|
194
|
+
SeoExpectedImpactSchema: () => SeoExpectedImpactSchema,
|
|
195
|
+
SeoOpportunityBriefSchema: () => SeoOpportunityBriefSchema,
|
|
196
|
+
SeoOpportunityKindSchema: () => SeoOpportunityKindSchema,
|
|
197
|
+
SeoOpportunityListDataSchema: () => SeoOpportunityListDataSchema,
|
|
198
|
+
SeoOpportunityListQuerySchema: () => SeoOpportunityListQuerySchema,
|
|
199
|
+
SeoOpportunityListResponseSchema: () => SeoOpportunityListResponseSchema,
|
|
200
|
+
SeoOpportunityResponseSchema: () => SeoOpportunityResponseSchema,
|
|
201
|
+
SeoOpportunitySchema: () => SeoOpportunitySchema,
|
|
202
|
+
SeoReportCompletenessSchema: () => SeoReportCompletenessSchema,
|
|
203
|
+
SeoReportListDataSchema: () => SeoReportListDataSchema,
|
|
204
|
+
SeoReportListQuerySchema: () => SeoReportListQuerySchema,
|
|
205
|
+
SeoReportListResponseSchema: () => SeoReportListResponseSchema,
|
|
206
|
+
SeoReportResponseSchema: () => SeoReportResponseSchema,
|
|
207
|
+
SeoReportSchema: () => SeoReportSchema,
|
|
208
|
+
SeoReportSummarySchema: () => SeoReportSummarySchema,
|
|
209
|
+
SeoReportTriggerSchema: () => SeoReportTriggerSchema,
|
|
210
|
+
SeoSearchIntentSchema: () => SeoSearchIntentSchema,
|
|
211
|
+
SeoTaskDecisionSchema: () => SeoTaskDecisionSchema,
|
|
212
|
+
SeoTaskFormatSchema: () => SeoTaskFormatSchema,
|
|
101
213
|
TikTokDeliveryOptionsSchema: () => TikTokDeliveryOptionsSchema,
|
|
102
214
|
TikTokDraftSettingsSchema: () => TikTokDraftSettingsSchema,
|
|
103
215
|
TikTokPostSettingsSchema: () => TikTokPostSettingsSchema,
|
|
@@ -108,7 +220,7 @@ __export(index_exports, {
|
|
|
108
220
|
module.exports = __toCommonJS(index_exports);
|
|
109
221
|
var import_zod = require("zod");
|
|
110
222
|
var API_VERSION = "v1";
|
|
111
|
-
var CONTRACT_VERSION = "0.
|
|
223
|
+
var CONTRACT_VERSION = "0.16.0";
|
|
112
224
|
var RequestMetadataSchema = import_zod.z.object({
|
|
113
225
|
requestId: import_zod.z.string().min(1)
|
|
114
226
|
});
|
|
@@ -122,6 +234,11 @@ var ApiErrorCodeSchema = import_zod.z.enum([
|
|
|
122
234
|
"VALIDATION_ERROR",
|
|
123
235
|
"CONFLICT",
|
|
124
236
|
"RATE_LIMITED",
|
|
237
|
+
"DELIVERY_CREDENTIAL_INVALID",
|
|
238
|
+
"DELIVERY_CREDENTIAL_REVOKED",
|
|
239
|
+
"ARTICLE_NOT_PUBLISHED",
|
|
240
|
+
"WEBHOOK_INVALID",
|
|
241
|
+
"WEBHOOK_REPLAYED",
|
|
125
242
|
"INTERNAL_ERROR"
|
|
126
243
|
]);
|
|
127
244
|
var ApiProblemSchema = import_zod.z.object({
|
|
@@ -132,6 +249,50 @@ var ApiProblemSchema = import_zod.z.object({
|
|
|
132
249
|
}),
|
|
133
250
|
meta: RequestMetadataSchema
|
|
134
251
|
});
|
|
252
|
+
var BlogImageSchema = import_zod.z.object({
|
|
253
|
+
url: import_zod.z.string().url(),
|
|
254
|
+
altText: import_zod.z.string().min(1),
|
|
255
|
+
width: import_zod.z.number().int().positive(),
|
|
256
|
+
height: import_zod.z.number().int().positive(),
|
|
257
|
+
purpose: import_zod.z.enum(["FEATURED", "SECTION", "SOCIAL_PREVIEW"])
|
|
258
|
+
});
|
|
259
|
+
var PublishedBlogArticleSchema = import_zod.z.object({
|
|
260
|
+
id: import_zod.z.string().min(1),
|
|
261
|
+
revisionId: import_zod.z.string().min(1),
|
|
262
|
+
revisionNumber: import_zod.z.number().int().positive(),
|
|
263
|
+
slug: import_zod.z.string().min(1),
|
|
264
|
+
title: import_zod.z.string().min(1),
|
|
265
|
+
description: import_zod.z.string().nullable(),
|
|
266
|
+
excerpt: import_zod.z.string().nullable(),
|
|
267
|
+
tags: import_zod.z.array(import_zod.z.string()),
|
|
268
|
+
author: import_zod.z.string().min(1),
|
|
269
|
+
language: import_zod.z.string().min(1),
|
|
270
|
+
markdown: import_zod.z.string(),
|
|
271
|
+
contentBlocks: import_zod.z.array(import_zod.z.unknown()),
|
|
272
|
+
canonicalPath: import_zod.z.string().startsWith("/"),
|
|
273
|
+
publicUrl: import_zod.z.string().url(),
|
|
274
|
+
publishedAt: import_zod.z.string().datetime(),
|
|
275
|
+
updatedAt: import_zod.z.string().datetime(),
|
|
276
|
+
images: import_zod.z.array(BlogImageSchema)
|
|
277
|
+
});
|
|
278
|
+
var BlogArticleListSchema = import_zod.z.object({
|
|
279
|
+
articles: import_zod.z.array(PublishedBlogArticleSchema.omit({ markdown: true, contentBlocks: true }))
|
|
280
|
+
});
|
|
281
|
+
var BlogMetadataSchema = import_zod.z.object({
|
|
282
|
+
siteId: import_zod.z.string().min(1),
|
|
283
|
+
name: import_zod.z.string().min(1),
|
|
284
|
+
origin: import_zod.z.string().url(),
|
|
285
|
+
blogBasePath: import_zod.z.string().startsWith("/"),
|
|
286
|
+
language: import_zod.z.string().min(1),
|
|
287
|
+
updatedAt: import_zod.z.string().datetime().nullable()
|
|
288
|
+
});
|
|
289
|
+
var BlogSitemapEntrySchema = import_zod.z.object({
|
|
290
|
+
url: import_zod.z.string().url(),
|
|
291
|
+
lastModified: import_zod.z.string().datetime()
|
|
292
|
+
});
|
|
293
|
+
var BlogSlugRedirectSchema = import_zod.z.object({
|
|
294
|
+
redirect: import_zod.z.object({ from: import_zod.z.string().min(1), to: import_zod.z.string().min(1), permanent: import_zod.z.literal(true) })
|
|
295
|
+
});
|
|
135
296
|
function successEnvelopeSchema(data) {
|
|
136
297
|
return import_zod.z.object({
|
|
137
298
|
data,
|
|
@@ -147,8 +308,390 @@ var CapabilityIdSchema = import_zod.z.enum([
|
|
|
147
308
|
"posts:schedule",
|
|
148
309
|
"posts:publish",
|
|
149
310
|
"integrations:read",
|
|
150
|
-
"calendar:read"
|
|
311
|
+
"calendar:read",
|
|
312
|
+
"seo:read",
|
|
313
|
+
"blog:read",
|
|
314
|
+
"blog:write",
|
|
315
|
+
"blog:manage",
|
|
316
|
+
"blog:approve",
|
|
317
|
+
"blog:publish"
|
|
151
318
|
]);
|
|
319
|
+
var AgentBlogPlanSchema = import_zod.z.object({
|
|
320
|
+
id: import_zod.z.string().min(1),
|
|
321
|
+
state: import_zod.z.string().min(1),
|
|
322
|
+
windowStart: import_zod.z.string().datetime(),
|
|
323
|
+
windowEnd: import_zod.z.string().datetime(),
|
|
324
|
+
cadence: import_zod.z.object({ weekdays: import_zod.z.array(import_zod.z.number().int().min(0).max(6)) }),
|
|
325
|
+
activeRevisionId: import_zod.z.string().nullable(),
|
|
326
|
+
itemCount: import_zod.z.number().int().nonnegative()
|
|
327
|
+
});
|
|
328
|
+
var AgentBlogArticleSchema = import_zod.z.object({
|
|
329
|
+
id: import_zod.z.string().min(1),
|
|
330
|
+
state: import_zod.z.string().min(1),
|
|
331
|
+
title: import_zod.z.string().min(1),
|
|
332
|
+
slug: import_zod.z.string().min(1),
|
|
333
|
+
currentDraftId: import_zod.z.string().nullable(),
|
|
334
|
+
approvedRevisionId: import_zod.z.string().nullable(),
|
|
335
|
+
publishedRevisionId: import_zod.z.string().nullable(),
|
|
336
|
+
scheduledPublishAt: import_zod.z.string().datetime().nullable(),
|
|
337
|
+
updatedAt: import_zod.z.string().datetime()
|
|
338
|
+
});
|
|
339
|
+
var AgentBlogImageSchema = import_zod.z.object({
|
|
340
|
+
id: import_zod.z.string().min(1),
|
|
341
|
+
revisionId: import_zod.z.string().nullable(),
|
|
342
|
+
version: import_zod.z.number().int().positive(),
|
|
343
|
+
purpose: import_zod.z.enum(["FEATURED", "SECTION", "SOCIAL_PREVIEW"]),
|
|
344
|
+
source: import_zod.z.enum(["GENERATED", "AGENT_UPLOAD"]),
|
|
345
|
+
state: import_zod.z.enum(["QUEUED", "GENERATING", "READY_FOR_REVIEW", "APPROVED", "REJECTED", "FAILED"]),
|
|
346
|
+
publicUrl: import_zod.z.string().url().nullable(),
|
|
347
|
+
mimeType: import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]).nullable(),
|
|
348
|
+
width: import_zod.z.number().int().positive().nullable(),
|
|
349
|
+
height: import_zod.z.number().int().positive().nullable(),
|
|
350
|
+
altText: import_zod.z.string().nullable(),
|
|
351
|
+
caption: import_zod.z.string().nullable(),
|
|
352
|
+
createdAt: import_zod.z.string().datetime()
|
|
353
|
+
}).strict();
|
|
354
|
+
var AgentBlogArticleDetailSchema = AgentBlogArticleSchema.extend({
|
|
355
|
+
draft: import_zod.z.object({
|
|
356
|
+
id: import_zod.z.string().min(1),
|
|
357
|
+
version: import_zod.z.number().int().positive(),
|
|
358
|
+
title: import_zod.z.string(),
|
|
359
|
+
slug: import_zod.z.string(),
|
|
360
|
+
description: import_zod.z.string().nullable(),
|
|
361
|
+
excerpt: import_zod.z.string().nullable(),
|
|
362
|
+
canonicalPath: import_zod.z.string(),
|
|
363
|
+
tags: import_zod.z.array(import_zod.z.string()),
|
|
364
|
+
author: import_zod.z.string(),
|
|
365
|
+
language: import_zod.z.string(),
|
|
366
|
+
markdown: import_zod.z.string(),
|
|
367
|
+
callToAction: import_zod.z.unknown().nullable(),
|
|
368
|
+
internalLinks: import_zod.z.unknown()
|
|
369
|
+
}).nullable(),
|
|
370
|
+
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() })),
|
|
371
|
+
images: import_zod.z.array(AgentBlogImageSchema)
|
|
372
|
+
});
|
|
373
|
+
var AgentBlogJobSchema = import_zod.z.object({
|
|
374
|
+
id: import_zod.z.string().min(1),
|
|
375
|
+
type: import_zod.z.string().min(1),
|
|
376
|
+
state: import_zod.z.string().min(1),
|
|
377
|
+
attemptCount: import_zod.z.number().int().nonnegative(),
|
|
378
|
+
availableAt: import_zod.z.string().datetime(),
|
|
379
|
+
startedAt: import_zod.z.string().datetime().nullable(),
|
|
380
|
+
completedAt: import_zod.z.string().datetime().nullable(),
|
|
381
|
+
lastErrorCode: import_zod.z.string().nullable(),
|
|
382
|
+
lastErrorMessage: import_zod.z.string().nullable()
|
|
383
|
+
});
|
|
384
|
+
var AgentBlogDraftUpdateSchema = import_zod.z.object({
|
|
385
|
+
version: import_zod.z.number().int().positive(),
|
|
386
|
+
title: import_zod.z.string().trim().min(1).max(200),
|
|
387
|
+
slug: import_zod.z.string().trim().min(1).max(160),
|
|
388
|
+
description: import_zod.z.string().trim().max(320).nullable(),
|
|
389
|
+
excerpt: import_zod.z.string().trim().max(500).nullable(),
|
|
390
|
+
canonicalPath: import_zod.z.string().startsWith("/"),
|
|
391
|
+
tags: import_zod.z.array(import_zod.z.string().trim().min(1).max(80)).max(30),
|
|
392
|
+
author: import_zod.z.string().trim().min(1).max(160),
|
|
393
|
+
language: import_zod.z.string().trim().min(2).max(20),
|
|
394
|
+
markdown: import_zod.z.string().max(2e5),
|
|
395
|
+
callToAction: import_zod.z.object({ label: import_zod.z.string().trim().min(1).max(160), pageId: import_zod.z.string().min(1).nullable() }).strict().nullable(),
|
|
396
|
+
internalLinks: import_zod.z.array(import_zod.z.object({ pageId: import_zod.z.string().min(1), anchorText: import_zod.z.string().trim().min(1).max(200) }).strict()).max(20),
|
|
397
|
+
scheduledPublishAt: import_zod.z.string().datetime().nullable().optional()
|
|
398
|
+
});
|
|
399
|
+
var AgentBlogGenerateRequestSchema = import_zod.z.object({ idempotencyKey: import_zod.z.string().trim().min(8).max(200) });
|
|
400
|
+
var AgentBlogImageGenerateRequestSchema = import_zod.z.object({
|
|
401
|
+
revisionId: import_zod.z.string().min(1),
|
|
402
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200),
|
|
403
|
+
editorialBrief: import_zod.z.string().trim().max(500).optional()
|
|
404
|
+
}).strict();
|
|
405
|
+
var AgentBlogImageUploadPrepareRequestSchema = import_zod.z.object({
|
|
406
|
+
revisionId: import_zod.z.string().min(1),
|
|
407
|
+
fileName: import_zod.z.string().trim().min(1).max(255),
|
|
408
|
+
contentType: import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]),
|
|
409
|
+
fileSize: import_zod.z.number().int().positive().max(25 * 1024 * 1024)
|
|
410
|
+
}).strict();
|
|
411
|
+
var AgentBlogImageUploadCompleteRequestSchema = AgentBlogImageUploadPrepareRequestSchema.extend({
|
|
412
|
+
storageKey: import_zod.z.string().min(1).max(1024),
|
|
413
|
+
altText: import_zod.z.string().trim().min(1).max(300)
|
|
414
|
+
}).strict();
|
|
415
|
+
var AgentBlogImageReviewRequestSchema = import_zod.z.object({
|
|
416
|
+
expectedVersion: import_zod.z.number().int().positive(),
|
|
417
|
+
decision: import_zod.z.enum(["APPROVED", "REJECTED"]),
|
|
418
|
+
altText: import_zod.z.string().max(300),
|
|
419
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
420
|
+
}).strict();
|
|
421
|
+
var AgentBlogApprovalPreviewRequestSchema = import_zod.z.object({ revisionId: import_zod.z.string().min(1) }).strict();
|
|
422
|
+
var AgentBlogApprovalExecuteRequestSchema = AgentBlogApprovalPreviewRequestSchema.extend({
|
|
423
|
+
confirmationToken: import_zod.z.string().min(1),
|
|
424
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
425
|
+
}).strict();
|
|
426
|
+
var AgentBlogApprovalImageSummarySchema = import_zod.z.object({
|
|
427
|
+
id: import_zod.z.string(),
|
|
428
|
+
purpose: import_zod.z.enum(["FEATURED", "SECTION", "SOCIAL_PREVIEW"]),
|
|
429
|
+
contentPosition: import_zod.z.string().nullable(),
|
|
430
|
+
width: import_zod.z.number().int().positive(),
|
|
431
|
+
height: import_zod.z.number().int().positive(),
|
|
432
|
+
mimeType: import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]),
|
|
433
|
+
altText: import_zod.z.string().min(1),
|
|
434
|
+
caption: import_zod.z.string().nullable(),
|
|
435
|
+
version: import_zod.z.number().int().positive()
|
|
436
|
+
}).strict();
|
|
437
|
+
var AgentBlogApprovalLinkSummarySchema = import_zod.z.object({
|
|
438
|
+
pageId: import_zod.z.string(),
|
|
439
|
+
liveState: import_zod.z.enum(["LIVE", "REDIRECT"])
|
|
440
|
+
}).strict();
|
|
441
|
+
var AgentBlogApprovalPreviewSchema = import_zod.z.object({
|
|
442
|
+
articleId: import_zod.z.string(),
|
|
443
|
+
revisionId: import_zod.z.string(),
|
|
444
|
+
title: import_zod.z.string(),
|
|
445
|
+
slug: import_zod.z.string(),
|
|
446
|
+
revisionNumber: import_zod.z.number().int().positive(),
|
|
447
|
+
contentHash: import_zod.z.string(),
|
|
448
|
+
images: import_zod.z.array(AgentBlogApprovalImageSummarySchema),
|
|
449
|
+
links: import_zod.z.array(AgentBlogApprovalLinkSummarySchema),
|
|
450
|
+
warnings: import_zod.z.array(import_zod.z.string()),
|
|
451
|
+
bundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
452
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
453
|
+
}).strict();
|
|
454
|
+
var AgentBlogApprovalExecuteSchema = AgentBlogApprovalPreviewSchema.omit({ confirmation: true }).extend({
|
|
455
|
+
approvalSource: import_zod.z.literal("AGENT"),
|
|
456
|
+
approvedAt: import_zod.z.string().datetime()
|
|
457
|
+
}).strict();
|
|
458
|
+
var AgentBlogDestinationSelectionSchema = import_zod.z.array(import_zod.z.string().min(1)).min(1).max(20);
|
|
459
|
+
var AgentBlogIanaTimeZoneSchema = import_zod.z.string().trim().min(1).max(100).refine((timeZone) => {
|
|
460
|
+
try {
|
|
461
|
+
new Intl.DateTimeFormat("en", { timeZone }).format();
|
|
462
|
+
return true;
|
|
463
|
+
} catch {
|
|
464
|
+
return false;
|
|
465
|
+
}
|
|
466
|
+
}, "timezone must be a valid IANA timezone");
|
|
467
|
+
var AgentBlogSchedulePreviewRequestSchema = import_zod.z.object({
|
|
468
|
+
revisionId: import_zod.z.string().min(1),
|
|
469
|
+
destinationIds: AgentBlogDestinationSelectionSchema.optional(),
|
|
470
|
+
scheduledAt: import_zod.z.string().datetime({ offset: true }),
|
|
471
|
+
timezone: AgentBlogIanaTimeZoneSchema
|
|
472
|
+
}).strict();
|
|
473
|
+
var AgentBlogScheduleExecuteRequestSchema = AgentBlogSchedulePreviewRequestSchema.extend({
|
|
474
|
+
confirmationToken: import_zod.z.string().min(1),
|
|
475
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
476
|
+
}).strict();
|
|
477
|
+
var AgentBlogScheduleCancelPreviewRequestSchema = import_zod.z.object({}).strict();
|
|
478
|
+
var AgentBlogScheduleCancelExecuteRequestSchema = import_zod.z.object({
|
|
479
|
+
confirmationToken: import_zod.z.string().min(1),
|
|
480
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
481
|
+
}).strict();
|
|
482
|
+
var AgentBlogSchedulePreviewSchema = import_zod.z.object({
|
|
483
|
+
articleId: import_zod.z.string(),
|
|
484
|
+
revisionId: import_zod.z.string(),
|
|
485
|
+
contentHash: import_zod.z.string(),
|
|
486
|
+
approvalBundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
487
|
+
approvalSource: import_zod.z.enum(["USER", "AGENT"]).nullable(),
|
|
488
|
+
destinationIds: AgentBlogDestinationSelectionSchema,
|
|
489
|
+
scheduledAt: import_zod.z.string().datetime(),
|
|
490
|
+
timezone: AgentBlogIanaTimeZoneSchema,
|
|
491
|
+
currentScheduleVersion: import_zod.z.string().datetime(),
|
|
492
|
+
previousScheduledAt: import_zod.z.string().datetime().nullable(),
|
|
493
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
494
|
+
}).strict();
|
|
495
|
+
var AgentBlogScheduleExecuteSchema = AgentBlogSchedulePreviewSchema.omit({ confirmation: true }).extend({
|
|
496
|
+
jobId: import_zod.z.string(),
|
|
497
|
+
scheduleVersion: import_zod.z.string().datetime(),
|
|
498
|
+
state: import_zod.z.literal("SCHEDULED")
|
|
499
|
+
}).strict();
|
|
500
|
+
var AgentBlogScheduleCancelPreviewSchema = import_zod.z.object({
|
|
501
|
+
articleId: import_zod.z.string(),
|
|
502
|
+
revisionId: import_zod.z.string(),
|
|
503
|
+
approvalBundleHash: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
|
|
504
|
+
destinationIds: AgentBlogDestinationSelectionSchema,
|
|
505
|
+
scheduledAt: import_zod.z.string().datetime(),
|
|
506
|
+
timezone: AgentBlogIanaTimeZoneSchema,
|
|
507
|
+
scheduleVersion: import_zod.z.string().datetime(),
|
|
508
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string(), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
509
|
+
}).strict();
|
|
510
|
+
var AgentBlogScheduleCancelExecuteSchema = AgentBlogScheduleCancelPreviewSchema.omit({ confirmation: true }).extend({
|
|
511
|
+
state: import_zod.z.literal("APPROVED"),
|
|
512
|
+
canceledAt: import_zod.z.string().datetime()
|
|
513
|
+
}).strict();
|
|
514
|
+
var AgentBlogPublishPreviewRequestSchema = import_zod.z.object({ revisionId: import_zod.z.string().min(1), destinationIds: AgentBlogDestinationSelectionSchema.optional() });
|
|
515
|
+
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) });
|
|
516
|
+
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();
|
|
517
|
+
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();
|
|
518
|
+
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();
|
|
519
|
+
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() }) });
|
|
520
|
+
var AgentBlogReadinessSchema = import_zod.z.enum([
|
|
521
|
+
"MISSING",
|
|
522
|
+
"NOT_STARTED",
|
|
523
|
+
"QUEUED",
|
|
524
|
+
"RUNNING",
|
|
525
|
+
"READY",
|
|
526
|
+
"USED",
|
|
527
|
+
"CONFIGURED",
|
|
528
|
+
"VERIFIED",
|
|
529
|
+
"NEEDS_ATTENTION"
|
|
530
|
+
]);
|
|
531
|
+
var AgentBlogSetupStatusSchema = import_zod.z.object({
|
|
532
|
+
projectId: import_zod.z.string().min(1),
|
|
533
|
+
brandName: import_zod.z.string().min(1),
|
|
534
|
+
brandWebsite: import_zod.z.enum(["MISSING", "READY"]),
|
|
535
|
+
websiteOrigin: import_zod.z.string().url().nullable(),
|
|
536
|
+
siteId: import_zod.z.string().min(1).nullable(),
|
|
537
|
+
blogBasePath: import_zod.z.string().startsWith("/").nullable(),
|
|
538
|
+
siteImport: AgentBlogReadinessSchema,
|
|
539
|
+
activeJobId: import_zod.z.string().min(1).nullable(),
|
|
540
|
+
plan: AgentBlogReadinessSchema,
|
|
541
|
+
activePlanId: import_zod.z.string().min(1).nullable(),
|
|
542
|
+
deliveryCredential: AgentBlogReadinessSchema,
|
|
543
|
+
revalidation: AgentBlogReadinessSchema,
|
|
544
|
+
nextAction: import_zod.z.enum([
|
|
545
|
+
"ADD_WEBSITE",
|
|
546
|
+
"IMPORT_SITE",
|
|
547
|
+
"WAIT_FOR_JOB",
|
|
548
|
+
"CREATE_PLAN",
|
|
549
|
+
"REVIEW_PLAN",
|
|
550
|
+
"CONFIGURE_DELIVERY",
|
|
551
|
+
"TEST_CONNECTION",
|
|
552
|
+
"READY"
|
|
553
|
+
])
|
|
554
|
+
}).strict();
|
|
555
|
+
var AgentBlogCadenceInputSchema = import_zod.z.object({
|
|
556
|
+
startsOn: import_zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
557
|
+
weekdays: import_zod.z.array(import_zod.z.number().int().min(0).max(6)).min(1).max(7),
|
|
558
|
+
timeZone: import_zod.z.string().trim().min(1).max(100)
|
|
559
|
+
}).strict().superRefine(({ weekdays }, context) => {
|
|
560
|
+
if (new Set(weekdays).size !== weekdays.length) {
|
|
561
|
+
context.addIssue({ code: "custom", path: ["weekdays"], message: "Weekdays must be unique." });
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
var AgentBlogIdempotentRequestSchema = import_zod.z.object({
|
|
565
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
566
|
+
}).strict();
|
|
567
|
+
var AgentBlogPlanCreateRequestSchema = AgentBlogCadenceInputSchema.and(AgentBlogIdempotentRequestSchema);
|
|
568
|
+
var AgentBlogPlanRetryRequestSchema = AgentBlogIdempotentRequestSchema;
|
|
569
|
+
var AgentBlogPlanItemSchema = import_zod.z.object({
|
|
570
|
+
id: import_zod.z.string().min(1),
|
|
571
|
+
planId: import_zod.z.string().min(1),
|
|
572
|
+
planRevisionId: import_zod.z.string().min(1),
|
|
573
|
+
version: import_zod.z.number().int().positive(),
|
|
574
|
+
scheduledLocalDate: import_zod.z.string().regex(/^\d{4}-\d{2}-\d{2}$/),
|
|
575
|
+
title: import_zod.z.string().min(1),
|
|
576
|
+
recommendedSlug: import_zod.z.string().min(1),
|
|
577
|
+
state: import_zod.z.string().min(1),
|
|
578
|
+
workType: import_zod.z.string().min(1),
|
|
579
|
+
format: import_zod.z.string().min(1),
|
|
580
|
+
primaryQuery: import_zod.z.string().nullable(),
|
|
581
|
+
searchIntent: import_zod.z.string().nullable(),
|
|
582
|
+
summary: import_zod.z.string(),
|
|
583
|
+
outline: import_zod.z.unknown(),
|
|
584
|
+
selectionReason: import_zod.z.string().min(1),
|
|
585
|
+
evidenceClassification: import_zod.z.enum(["OBSERVED", "MIXED", "HYPOTHESIS"]),
|
|
586
|
+
evidence: import_zod.z.unknown(),
|
|
587
|
+
displayMetrics: import_zod.z.unknown(),
|
|
588
|
+
overlapExplanation: import_zod.z.string().nullable(),
|
|
589
|
+
existingArticleComparison: import_zod.z.string().nullable(),
|
|
590
|
+
recommendedLinks: import_zod.z.unknown(),
|
|
591
|
+
targetConversionPage: import_zod.z.string().nullable(),
|
|
592
|
+
articleId: import_zod.z.string().min(1).nullable()
|
|
593
|
+
}).strict();
|
|
594
|
+
var AgentBlogPlanItemStateRequestSchema = import_zod.z.object({
|
|
595
|
+
state: import_zod.z.enum(["ACCEPTED", "DISMISSED"]),
|
|
596
|
+
expectedState: import_zod.z.string().min(1),
|
|
597
|
+
expectedVersion: import_zod.z.number().int().positive(),
|
|
598
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
599
|
+
}).strict();
|
|
600
|
+
var AgentBlogArticleCreateRequestSchema = import_zod.z.object({
|
|
601
|
+
expectedState: import_zod.z.literal("ACCEPTED"),
|
|
602
|
+
expectedVersion: import_zod.z.number().int().positive(),
|
|
603
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
604
|
+
}).strict();
|
|
605
|
+
var AgentBlogConnectionStatusSchema = import_zod.z.object({
|
|
606
|
+
projectId: import_zod.z.string().min(1),
|
|
607
|
+
siteId: import_zod.z.string().min(1),
|
|
608
|
+
origin: import_zod.z.string().url(),
|
|
609
|
+
endpoint: import_zod.z.string().url().nullable(),
|
|
610
|
+
deliveryCredential: import_zod.z.enum(["MISSING", "READY", "USED"]),
|
|
611
|
+
activeCredentialId: import_zod.z.string().min(1).nullable(),
|
|
612
|
+
credentialLastUsedAt: import_zod.z.string().datetime().nullable(),
|
|
613
|
+
revalidation: import_zod.z.enum(["MISSING", "CONFIGURED", "VERIFIED", "NEEDS_ATTENTION"]),
|
|
614
|
+
revalidationLastTestedAt: import_zod.z.string().datetime().nullable(),
|
|
615
|
+
revalidationLastSucceededAt: import_zod.z.string().datetime().nullable(),
|
|
616
|
+
revalidationLastErrorCode: import_zod.z.string().nullable()
|
|
617
|
+
}).strict();
|
|
618
|
+
var AgentBlogConnectionRequestSchema = import_zod.z.object({
|
|
619
|
+
endpoint: import_zod.z.string().url().nullable(),
|
|
620
|
+
credentialAction: import_zod.z.enum(["KEEP", "CREATE", "ROTATE", "REVOKE"]),
|
|
621
|
+
credentialId: import_zod.z.string().min(1).nullable(),
|
|
622
|
+
secretAction: import_zod.z.enum(["KEEP", "CREATE", "ROTATE"])
|
|
623
|
+
}).strict();
|
|
624
|
+
var AgentBlogConnectionPreviewRequestSchema = AgentBlogConnectionRequestSchema;
|
|
625
|
+
var AgentBlogConnectionExecuteRequestSchema = AgentBlogConnectionRequestSchema.extend({
|
|
626
|
+
confirmationToken: import_zod.z.string().min(1).max(300),
|
|
627
|
+
idempotencyKey: import_zod.z.string().trim().min(8).max(200)
|
|
628
|
+
}).strict();
|
|
629
|
+
var AgentBlogConnectionPreviewSchema = import_zod.z.object({
|
|
630
|
+
projectId: import_zod.z.string().min(1),
|
|
631
|
+
siteId: import_zod.z.string().min(1),
|
|
632
|
+
siteName: import_zod.z.string().min(1),
|
|
633
|
+
origin: import_zod.z.string().url(),
|
|
634
|
+
endpoint: import_zod.z.string().url().nullable(),
|
|
635
|
+
credentialAction: import_zod.z.enum(["KEEP", "CREATE", "ROTATE", "REVOKE"]),
|
|
636
|
+
secretAction: import_zod.z.enum(["KEEP", "CREATE", "ROTATE"]),
|
|
637
|
+
effect: import_zod.z.string().min(1),
|
|
638
|
+
confirmation: import_zod.z.object({ token: import_zod.z.string().min(1), expiresAt: import_zod.z.string().datetime() }).strict()
|
|
639
|
+
}).strict();
|
|
640
|
+
var AgentBlogConnectionExecuteSchema = import_zod.z.object({
|
|
641
|
+
projectId: import_zod.z.string().min(1),
|
|
642
|
+
siteId: import_zod.z.string().min(1),
|
|
643
|
+
completed: import_zod.z.literal(true),
|
|
644
|
+
secretDelivered: import_zod.z.boolean(),
|
|
645
|
+
alreadyDelivered: import_zod.z.boolean(),
|
|
646
|
+
deliveryToken: import_zod.z.string().min(1).optional(),
|
|
647
|
+
webhookSecret: import_zod.z.string().min(1).optional(),
|
|
648
|
+
message: import_zod.z.string().min(1)
|
|
649
|
+
}).strict();
|
|
650
|
+
var AgentBlogRevalidationTestRequestSchema = AgentBlogIdempotentRequestSchema;
|
|
651
|
+
var AgentBlogRevalidationTestSchema = import_zod.z.object({
|
|
652
|
+
status: import_zod.z.enum(["VERIFIED", "NEEDS_ATTENTION"]),
|
|
653
|
+
testedAt: import_zod.z.string().datetime(),
|
|
654
|
+
errorCode: import_zod.z.string().nullable()
|
|
655
|
+
}).strict();
|
|
656
|
+
var AgentBlogPlanListResponseSchema = successEnvelopeSchema(import_zod.z.object({ plans: import_zod.z.array(AgentBlogPlanSchema) }));
|
|
657
|
+
var AgentBlogArticleListResponseSchema = successEnvelopeSchema(import_zod.z.object({ articles: import_zod.z.array(AgentBlogArticleSchema) }));
|
|
658
|
+
var AgentBlogArticleResponseSchema = successEnvelopeSchema(AgentBlogArticleDetailSchema);
|
|
659
|
+
var AgentBlogJobResponseSchema = successEnvelopeSchema(AgentBlogJobSchema);
|
|
660
|
+
var AgentBlogImageGenerationResponseSchema = successEnvelopeSchema(import_zod.z.object({ image: AgentBlogImageSchema, job: AgentBlogJobSchema }).strict());
|
|
661
|
+
var AgentBlogImageUploadPreparationResponseSchema = successEnvelopeSchema(import_zod.z.object({
|
|
662
|
+
uploadUrl: import_zod.z.string().url(),
|
|
663
|
+
storageKey: import_zod.z.string(),
|
|
664
|
+
expiresAt: import_zod.z.string().datetime(),
|
|
665
|
+
headers: import_zod.z.object({ "Content-Type": import_zod.z.enum(["image/jpeg", "image/png", "image/webp"]) }).strict(),
|
|
666
|
+
maxFileSize: import_zod.z.number().int().positive()
|
|
667
|
+
}).strict());
|
|
668
|
+
var AgentBlogImageResponseSchema = successEnvelopeSchema(AgentBlogImageSchema);
|
|
669
|
+
var AgentBlogApprovalPreviewResponseSchema = successEnvelopeSchema(AgentBlogApprovalPreviewSchema);
|
|
670
|
+
var AgentBlogApprovalExecuteResponseSchema = successEnvelopeSchema(AgentBlogApprovalExecuteSchema);
|
|
671
|
+
var AgentBlogSchedulePreviewResponseSchema = successEnvelopeSchema(AgentBlogSchedulePreviewSchema);
|
|
672
|
+
var AgentBlogScheduleExecuteResponseSchema = successEnvelopeSchema(AgentBlogScheduleExecuteSchema);
|
|
673
|
+
var AgentBlogScheduleCancelPreviewResponseSchema = successEnvelopeSchema(AgentBlogScheduleCancelPreviewSchema);
|
|
674
|
+
var AgentBlogScheduleCancelExecuteResponseSchema = successEnvelopeSchema(AgentBlogScheduleCancelExecuteSchema);
|
|
675
|
+
var AgentBlogPublishPreviewResponseSchema = successEnvelopeSchema(AgentBlogPublishPreviewSchema);
|
|
676
|
+
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() }));
|
|
677
|
+
var AgentBlogPublishingProviderListResponseSchema = successEnvelopeSchema(import_zod.z.object({ providers: import_zod.z.array(AgentBlogPublishingProviderSchema) }).strict());
|
|
678
|
+
var AgentBlogPublishingDestinationListResponseSchema = successEnvelopeSchema(import_zod.z.object({ destinations: import_zod.z.array(AgentBlogPublishingDestinationSchema) }).strict());
|
|
679
|
+
var AgentBlogDeliveryAttemptListResponseSchema = successEnvelopeSchema(import_zod.z.object({ deliveries: import_zod.z.array(AgentBlogDeliveryAttemptSchema) }).strict());
|
|
680
|
+
var AgentBlogSetupStatusResponseSchema = successEnvelopeSchema(AgentBlogSetupStatusSchema);
|
|
681
|
+
var AgentBlogPlanItemsResponseSchema = successEnvelopeSchema(import_zod.z.object({ items: import_zod.z.array(AgentBlogPlanItemSchema) }).strict());
|
|
682
|
+
var AgentBlogPlanItemResponseSchema = successEnvelopeSchema(AgentBlogPlanItemSchema);
|
|
683
|
+
var AgentBlogPlanQueuedResponseSchema = successEnvelopeSchema(import_zod.z.object({
|
|
684
|
+
planId: import_zod.z.string().min(1),
|
|
685
|
+
job: AgentBlogJobSchema
|
|
686
|
+
}).strict());
|
|
687
|
+
var AgentBlogArticleQueuedResponseSchema = successEnvelopeSchema(import_zod.z.object({
|
|
688
|
+
articleId: import_zod.z.string().min(1),
|
|
689
|
+
job: AgentBlogJobSchema.nullable()
|
|
690
|
+
}).strict());
|
|
691
|
+
var AgentBlogConnectionStatusResponseSchema = successEnvelopeSchema(AgentBlogConnectionStatusSchema);
|
|
692
|
+
var AgentBlogConnectionPreviewResponseSchema = successEnvelopeSchema(AgentBlogConnectionPreviewSchema);
|
|
693
|
+
var AgentBlogConnectionExecuteResponseSchema = successEnvelopeSchema(AgentBlogConnectionExecuteSchema);
|
|
694
|
+
var AgentBlogRevalidationTestResponseSchema = successEnvelopeSchema(AgentBlogRevalidationTestSchema);
|
|
152
695
|
var CapabilitySchema = import_zod.z.object({
|
|
153
696
|
id: CapabilityIdSchema,
|
|
154
697
|
available: import_zod.z.boolean(),
|
|
@@ -361,9 +904,24 @@ var PublishingProviderSchema = import_zod.z.enum([
|
|
|
361
904
|
"LINKEDIN"
|
|
362
905
|
]);
|
|
363
906
|
var PUBLISHING_PROVIDER_COUNT = PublishingProviderSchema.options.length;
|
|
907
|
+
var PostDeliveryModeSchema = import_zod.z.enum(["IMMEDIATE", "SCHEDULED"]);
|
|
908
|
+
var PostDestinationStageSchema = import_zod.z.enum([
|
|
909
|
+
"DRAFT",
|
|
910
|
+
"QUEUED",
|
|
911
|
+
"UPLOADING",
|
|
912
|
+
"PROCESSING",
|
|
913
|
+
"CONFIRMING_SCHEDULE",
|
|
914
|
+
"SCHEDULED",
|
|
915
|
+
"PUBLISHING",
|
|
916
|
+
"PUBLISHED",
|
|
917
|
+
"ACTION_REQUIRED",
|
|
918
|
+
"FAILED"
|
|
919
|
+
]);
|
|
364
920
|
var PostDestinationSchema = import_zod.z.object({
|
|
365
921
|
provider: PublishingProviderSchema,
|
|
366
922
|
status: PlatformPostStatusSchema,
|
|
923
|
+
deliveryMode: PostDeliveryModeSchema,
|
|
924
|
+
stage: PostDestinationStageSchema,
|
|
367
925
|
captionOverride: import_zod.z.string().nullable(),
|
|
368
926
|
scheduledAt: import_zod.z.string().datetime().nullable(),
|
|
369
927
|
publishedAt: import_zod.z.string().datetime().nullable(),
|
|
@@ -814,6 +1372,7 @@ var PostScheduleExecuteInputSchema = PostScheduleInputSchema.extend({
|
|
|
814
1372
|
}).strict();
|
|
815
1373
|
var PostSchedulePreviewSchema = import_zod.z.object({
|
|
816
1374
|
operation: import_zod.z.literal("posts.schedule.execute"),
|
|
1375
|
+
deliveryMode: import_zod.z.literal("SCHEDULED"),
|
|
817
1376
|
post: import_zod.z.object({
|
|
818
1377
|
id: import_zod.z.string().min(1),
|
|
819
1378
|
projectId: import_zod.z.string().min(1),
|
|
@@ -822,6 +1381,12 @@ var PostSchedulePreviewSchema = import_zod.z.object({
|
|
|
822
1381
|
}),
|
|
823
1382
|
schedule: PostScheduleInputSchema,
|
|
824
1383
|
destinations: import_zod.z.array(PublishingProviderSchema).min(1).max(PUBLISHING_PROVIDER_COUNT),
|
|
1384
|
+
youtube: import_zod.z.object({
|
|
1385
|
+
uploadVisibility: import_zod.z.literal("PRIVATE"),
|
|
1386
|
+
publishVisibility: import_zod.z.literal("PUBLIC"),
|
|
1387
|
+
preparationStartsImmediately: import_zod.z.literal(true),
|
|
1388
|
+
confirmationMeaning: import_zod.z.string().min(1)
|
|
1389
|
+
}).nullable().optional(),
|
|
825
1390
|
providerReconciliation: import_zod.z.object({
|
|
826
1391
|
provider: import_zod.z.literal("YOUTUBE"),
|
|
827
1392
|
required: import_zod.z.boolean(),
|
|
@@ -842,6 +1407,8 @@ var PostSchedulePendingSchema = import_zod.z.object({
|
|
|
842
1407
|
provider: import_zod.z.literal("YOUTUBE"),
|
|
843
1408
|
mutationId: import_zod.z.string().min(1),
|
|
844
1409
|
operation: import_zod.z.enum(["SCHEDULE", "CANCEL"]),
|
|
1410
|
+
phase: import_zod.z.literal("REMOTE_SCHEDULE_CONFIRMATION"),
|
|
1411
|
+
videoUploaded: import_zod.z.literal(true),
|
|
845
1412
|
message: import_zod.z.string().min(1)
|
|
846
1413
|
});
|
|
847
1414
|
var PostScheduleExecuteResultSchema = import_zod.z.union([
|
|
@@ -862,6 +1429,7 @@ var PostPublishExecuteInputSchema = PostPublishInputSchema.extend({
|
|
|
862
1429
|
}).strict();
|
|
863
1430
|
var PostPublishPreviewSchema = import_zod.z.object({
|
|
864
1431
|
operation: import_zod.z.literal("posts.publish.execute"),
|
|
1432
|
+
deliveryMode: import_zod.z.literal("IMMEDIATE"),
|
|
865
1433
|
post: import_zod.z.object({
|
|
866
1434
|
id: import_zod.z.string().min(1),
|
|
867
1435
|
projectId: import_zod.z.string().min(1),
|
|
@@ -869,6 +1437,11 @@ var PostPublishPreviewSchema = import_zod.z.object({
|
|
|
869
1437
|
status: PostStatusSchema
|
|
870
1438
|
}),
|
|
871
1439
|
destinations: PostPublishInputSchema.shape.destinations,
|
|
1440
|
+
youtube: import_zod.z.object({
|
|
1441
|
+
visibility: YouTubePostSettingsSchema.shape.privacyStatus,
|
|
1442
|
+
preparationStartsImmediately: import_zod.z.literal(true),
|
|
1443
|
+
createsSchedule: import_zod.z.literal(false)
|
|
1444
|
+
}).nullable().optional(),
|
|
872
1445
|
readiness: PostReadinessSchema,
|
|
873
1446
|
confirmation: import_zod.z.object({
|
|
874
1447
|
token: import_zod.z.string().min(1),
|
|
@@ -941,15 +1514,359 @@ var CalendarListDataSchema = import_zod.z.object({
|
|
|
941
1514
|
var CalendarListResponseSchema = successEnvelopeSchema(
|
|
942
1515
|
CalendarListDataSchema
|
|
943
1516
|
);
|
|
1517
|
+
var SeoEntityIdSchema = import_zod.z.string().min(1).max(128).regex(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/);
|
|
1518
|
+
var SeoCursorSchema = import_zod.z.string().min(1).max(512).regex(/^[A-Za-z0-9_-]+$/);
|
|
1519
|
+
var SeoOpportunityKindSchema = import_zod.z.enum([
|
|
1520
|
+
"SEARCH_TOPIC_CTR",
|
|
1521
|
+
"SEARCH_TOPIC_REFRESH",
|
|
1522
|
+
"SEARCH_TOPIC_NEW_ARTICLE",
|
|
1523
|
+
"SEARCH_TOPIC_CONSOLIDATE",
|
|
1524
|
+
"SEARCH_TOPIC_CLUSTER",
|
|
1525
|
+
"COMPETITOR_KEYWORD_GAP",
|
|
1526
|
+
"COMPETITOR_RANK_GAIN",
|
|
1527
|
+
"COMPETITOR_RANK_DROP",
|
|
1528
|
+
"COMPETITOR_SHARED_GAP",
|
|
1529
|
+
"SEO_VALIDATED_COMPETITOR_GAP"
|
|
1530
|
+
]);
|
|
1531
|
+
var SeoExpectedImpactSchema = import_zod.z.enum(["HIGH", "MEDIUM", "LOW"]);
|
|
1532
|
+
var SeoEvidenceProvenanceSchema = import_zod.z.enum([
|
|
1533
|
+
"CUSTOMER_SEARCH_DATA",
|
|
1534
|
+
"MARKET_ESTIMATE",
|
|
1535
|
+
"ROLINO_ANALYSIS"
|
|
1536
|
+
]);
|
|
1537
|
+
var SeoEvidenceSchema = import_zod.z.object({
|
|
1538
|
+
title: import_zod.z.string().min(1).max(180),
|
|
1539
|
+
summary: import_zod.z.string().min(1).max(500),
|
|
1540
|
+
sourceUrl: import_zod.z.string().url().max(2048).nullable(),
|
|
1541
|
+
provenance: SeoEvidenceProvenanceSchema,
|
|
1542
|
+
observedAt: import_zod.z.string().datetime(),
|
|
1543
|
+
periodStart: import_zod.z.string().datetime().nullable(),
|
|
1544
|
+
periodEnd: import_zod.z.string().datetime().nullable(),
|
|
1545
|
+
metrics: import_zod.z.record(
|
|
1546
|
+
import_zod.z.string().regex(/^[A-Za-z][A-Za-z0-9]{0,39}$/),
|
|
1547
|
+
import_zod.z.number().finite()
|
|
1548
|
+
).refine((metrics) => Object.keys(metrics).length <= 20, {
|
|
1549
|
+
message: "SEO evidence can contain at most 20 metrics."
|
|
1550
|
+
}),
|
|
1551
|
+
estimated: import_zod.z.boolean(),
|
|
1552
|
+
topRowsOnly: import_zod.z.boolean(),
|
|
1553
|
+
coverageNote: import_zod.z.string().max(500).nullable()
|
|
1554
|
+
}).strict();
|
|
1555
|
+
var SeoActionDecisionSchema = import_zod.z.enum(["READY", "NEEDS_REVIEW", "REJECTED"]);
|
|
1556
|
+
var SeoSearchIntentSchema = import_zod.z.enum(["INFORMATIONAL", "COMMERCIAL", "NAVIGATIONAL", "BRANDED", "SUSPICIOUS"]);
|
|
1557
|
+
var SeoContentTypeSchema = import_zod.z.enum(["GUIDE", "TUTORIAL", "COMPARISON_PAGE", "LANDING_PAGE", "CONTENT_REFRESH"]);
|
|
1558
|
+
var SeoActionPlanSchema = import_zod.z.object({
|
|
1559
|
+
version: import_zod.z.number().int().positive(),
|
|
1560
|
+
decision: SeoActionDecisionSchema,
|
|
1561
|
+
decisionReason: import_zod.z.string().min(1).max(500),
|
|
1562
|
+
searchIntent: SeoSearchIntentSchema,
|
|
1563
|
+
primaryKeyword: import_zod.z.string().min(1).max(300),
|
|
1564
|
+
supportingKeywords: import_zod.z.array(import_zod.z.string().min(1).max(300)).max(12),
|
|
1565
|
+
questions: import_zod.z.array(import_zod.z.string().min(1).max(300)).max(8),
|
|
1566
|
+
contentType: SeoContentTypeSchema,
|
|
1567
|
+
suggestedTitle: import_zod.z.string().min(1).max(180),
|
|
1568
|
+
angle: import_zod.z.string().max(500),
|
|
1569
|
+
targetReader: import_zod.z.string().min(1).max(500),
|
|
1570
|
+
pageGoal: import_zod.z.string().max(500),
|
|
1571
|
+
outline: import_zod.z.array(import_zod.z.object({
|
|
1572
|
+
heading: import_zod.z.string().min(1).max(180),
|
|
1573
|
+
purpose: import_zod.z.string().min(1).max(500)
|
|
1574
|
+
}).strict()).max(10),
|
|
1575
|
+
rolinoConnection: import_zod.z.string().max(600),
|
|
1576
|
+
cta: import_zod.z.string().max(300),
|
|
1577
|
+
competitorPages: import_zod.z.array(import_zod.z.object({
|
|
1578
|
+
domain: import_zod.z.string().min(1).max(253),
|
|
1579
|
+
url: import_zod.z.string().url().nullable(),
|
|
1580
|
+
keyword: import_zod.z.string().min(1).max(300),
|
|
1581
|
+
rank: import_zod.z.number().min(1).max(1e3).nullable()
|
|
1582
|
+
}).strict()).max(8),
|
|
1583
|
+
existingPage: import_zod.z.object({
|
|
1584
|
+
title: import_zod.z.string().min(1).max(180),
|
|
1585
|
+
url: import_zod.z.string().url()
|
|
1586
|
+
}).strict().nullable(),
|
|
1587
|
+
warnings: import_zod.z.array(import_zod.z.string().min(1).max(500)).max(8),
|
|
1588
|
+
researchTasks: import_zod.z.array(import_zod.z.string().min(1).max(500)).max(8),
|
|
1589
|
+
cluster: import_zod.z.object({
|
|
1590
|
+
competitorDomains: import_zod.z.array(import_zod.z.string().min(1).max(253)).max(3),
|
|
1591
|
+
bestRank: import_zod.z.number().min(1).max(1e3).nullable(),
|
|
1592
|
+
estimatedDemand: import_zod.z.number().min(0).nullable(),
|
|
1593
|
+
firstPartyValidated: import_zod.z.boolean(),
|
|
1594
|
+
relevanceScore: import_zod.z.number().min(0).max(1),
|
|
1595
|
+
coverage: import_zod.z.string().max(500)
|
|
1596
|
+
}).strict()
|
|
1597
|
+
}).strict();
|
|
1598
|
+
var SeoTaskDecisionSchema = import_zod.z.enum(["READY", "NEEDS_REVIEW", "REJECTED"]);
|
|
1599
|
+
var SeoTaskFormatSchema = import_zod.z.enum([
|
|
1600
|
+
"BLOG_ARTICLE",
|
|
1601
|
+
"PRODUCT_LANDING_PAGE",
|
|
1602
|
+
"COMPARISON_PAGE",
|
|
1603
|
+
"EXISTING_PAGE_REFRESH",
|
|
1604
|
+
"YOUTUBE_PRODUCTION_PACKAGE",
|
|
1605
|
+
"SOCIAL_CAMPAIGN",
|
|
1606
|
+
"LINK_OUTREACH_TASK",
|
|
1607
|
+
"RESEARCH_TASK"
|
|
1608
|
+
]);
|
|
1609
|
+
var SeoConfidenceValueSchema = import_zod.z.object({
|
|
1610
|
+
score: import_zod.z.number().int().min(0).max(100).nullable(),
|
|
1611
|
+
level: import_zod.z.enum(["HIGH", "MEDIUM", "LOW", "UNCONFIRMED"]),
|
|
1612
|
+
label: import_zod.z.string().min(1).max(120),
|
|
1613
|
+
explanation: import_zod.z.string().min(1).max(500)
|
|
1614
|
+
}).strict();
|
|
1615
|
+
var SeoDecisionConfidenceSchema = import_zod.z.object({
|
|
1616
|
+
topicRelevance: SeoConfidenceValueSchema,
|
|
1617
|
+
actionReadiness: SeoConfidenceValueSchema
|
|
1618
|
+
}).strict();
|
|
1619
|
+
var SeoTaskEvidenceSummarySchema = import_zod.z.object({
|
|
1620
|
+
title: import_zod.z.string().min(1).max(180),
|
|
1621
|
+
summary: import_zod.z.string().min(1).max(500),
|
|
1622
|
+
provenance: SeoEvidenceProvenanceSchema,
|
|
1623
|
+
observedAt: import_zod.z.string().datetime(),
|
|
1624
|
+
sourceUrl: import_zod.z.string().url().max(2048).nullable()
|
|
1625
|
+
}).strict();
|
|
1626
|
+
var SeoAgentTaskSchema = import_zod.z.object({
|
|
1627
|
+
schemaVersion: import_zod.z.number().int().positive(),
|
|
1628
|
+
projectId: SeoEntityIdSchema.nullable(),
|
|
1629
|
+
opportunityId: SeoEntityIdSchema.nullable(),
|
|
1630
|
+
legacy: import_zod.z.boolean(),
|
|
1631
|
+
legacyLabel: import_zod.z.string().max(500).nullable(),
|
|
1632
|
+
decision: SeoTaskDecisionSchema,
|
|
1633
|
+
decisionReason: import_zod.z.string().min(1).max(700),
|
|
1634
|
+
objective: import_zod.z.string().min(1).max(700),
|
|
1635
|
+
primaryFormat: SeoTaskFormatSchema,
|
|
1636
|
+
supportingFormats: import_zod.z.array(SeoTaskFormatSchema).max(4),
|
|
1637
|
+
formatOptions: import_zod.z.array(SeoTaskFormatSchema.exclude(["RESEARCH_TASK"])).max(7),
|
|
1638
|
+
confidence: SeoDecisionConfidenceSchema,
|
|
1639
|
+
target: import_zod.z.object({
|
|
1640
|
+
primaryKeyword: import_zod.z.string().min(1).max(300),
|
|
1641
|
+
supportingKeywords: import_zod.z.array(import_zod.z.string().min(1).max(300)).max(12),
|
|
1642
|
+
searchIntent: SeoSearchIntentSchema,
|
|
1643
|
+
audience: import_zod.z.string().min(1).max(500),
|
|
1644
|
+
angle: import_zod.z.string().max(600)
|
|
1645
|
+
}).strict(),
|
|
1646
|
+
suggestedTitles: import_zod.z.array(import_zod.z.string().min(1).max(180)).max(3),
|
|
1647
|
+
outline: import_zod.z.array(import_zod.z.object({
|
|
1648
|
+
heading: import_zod.z.string().min(1).max(180),
|
|
1649
|
+
purpose: import_zod.z.string().min(1).max(600)
|
|
1650
|
+
}).strict()).max(12),
|
|
1651
|
+
researchTasks: import_zod.z.array(import_zod.z.string().min(1).max(600)).max(10),
|
|
1652
|
+
competitorPagesToInspect: import_zod.z.array(import_zod.z.object({
|
|
1653
|
+
domain: import_zod.z.string().min(1).max(253),
|
|
1654
|
+
url: import_zod.z.string().url().max(2048).nullable(),
|
|
1655
|
+
keyword: import_zod.z.string().min(1).max(300),
|
|
1656
|
+
rank: import_zod.z.number().int().min(1).max(1e3).nullable()
|
|
1657
|
+
}).strict()).max(8),
|
|
1658
|
+
productFactsToVerify: import_zod.z.array(import_zod.z.string().min(1).max(600)).max(8),
|
|
1659
|
+
claimsNotToInvent: import_zod.z.array(import_zod.z.string().min(1).max(600)).max(8),
|
|
1660
|
+
deliverables: import_zod.z.array(import_zod.z.object({
|
|
1661
|
+
name: import_zod.z.string().min(1).max(180),
|
|
1662
|
+
requirements: import_zod.z.array(import_zod.z.string().min(1).max(600)).min(1).max(8)
|
|
1663
|
+
}).strict()).min(1).max(12),
|
|
1664
|
+
callToAction: import_zod.z.string().max(400),
|
|
1665
|
+
destination: import_zod.z.string().min(1).max(700),
|
|
1666
|
+
successMetric: import_zod.z.object({
|
|
1667
|
+
name: import_zod.z.string().min(1).max(180),
|
|
1668
|
+
target: import_zod.z.string().min(1).max(600),
|
|
1669
|
+
measurementWindow: import_zod.z.string().min(1).max(300)
|
|
1670
|
+
}).strict(),
|
|
1671
|
+
evidenceSummary: import_zod.z.array(SeoTaskEvidenceSummarySchema).max(5),
|
|
1672
|
+
limitations: import_zod.z.array(import_zod.z.string().min(1).max(600)).max(10),
|
|
1673
|
+
nextStep: import_zod.z.string().min(1).max(700),
|
|
1674
|
+
youtubePackageRequirements: import_zod.z.object({
|
|
1675
|
+
subject: import_zod.z.string().min(1).max(300),
|
|
1676
|
+
targetViewer: import_zod.z.string().min(1).max(500),
|
|
1677
|
+
objective: import_zod.z.string().min(1).max(700),
|
|
1678
|
+
titleOptions: import_zod.z.number().int().min(1).max(10),
|
|
1679
|
+
hook: import_zod.z.string().min(1).max(600),
|
|
1680
|
+
draftScript: import_zod.z.string().min(1).max(600),
|
|
1681
|
+
sceneList: import_zod.z.string().min(1).max(600),
|
|
1682
|
+
onScreenText: import_zod.z.string().min(1).max(600),
|
|
1683
|
+
thumbnailConcept: import_zod.z.string().min(1).max(600),
|
|
1684
|
+
thumbnailText: import_zod.z.string().min(1).max(300),
|
|
1685
|
+
description: import_zod.z.string().min(1).max(600),
|
|
1686
|
+
chapters: import_zod.z.string().min(1).max(600),
|
|
1687
|
+
callToAction: import_zod.z.string().max(400),
|
|
1688
|
+
supportingSocialPosts: import_zod.z.number().int().min(0).max(10)
|
|
1689
|
+
}).strict().nullable(),
|
|
1690
|
+
imageBriefs: import_zod.z.array(import_zod.z.object({
|
|
1691
|
+
concept: import_zod.z.string().min(1).max(600),
|
|
1692
|
+
brief: import_zod.z.string().min(1).max(800),
|
|
1693
|
+
altText: import_zod.z.string().min(1).max(500),
|
|
1694
|
+
prompt: import_zod.z.string().min(1).max(1e3)
|
|
1695
|
+
}).strict()).max(4)
|
|
1696
|
+
}).strict();
|
|
1697
|
+
var SeoOpportunityBriefSchema = import_zod.z.object({
|
|
1698
|
+
kind: SeoOpportunityKindSchema,
|
|
1699
|
+
title: import_zod.z.string().min(1).max(180),
|
|
1700
|
+
summary: import_zod.z.string().min(1).max(600),
|
|
1701
|
+
score: import_zod.z.number().int().min(0).max(100),
|
|
1702
|
+
confidence: SeoDecisionConfidenceSchema,
|
|
1703
|
+
expectedImpact: SeoExpectedImpactSchema,
|
|
1704
|
+
recommendedAction: import_zod.z.string().min(1).max(300),
|
|
1705
|
+
actionPlan: SeoActionPlanSchema,
|
|
1706
|
+
task: SeoAgentTaskSchema,
|
|
1707
|
+
evidence: import_zod.z.array(SeoEvidenceSchema).max(5),
|
|
1708
|
+
brief: import_zod.z.string().min(1).max(12e3)
|
|
1709
|
+
}).strict();
|
|
1710
|
+
var SeoOpportunitySchema = SeoOpportunityBriefSchema.extend({
|
|
1711
|
+
id: SeoEntityIdSchema,
|
|
1712
|
+
projectId: SeoEntityIdSchema,
|
|
1713
|
+
lastDetectedAt: import_zod.z.string().datetime(),
|
|
1714
|
+
stale: import_zod.z.boolean()
|
|
1715
|
+
}).strict();
|
|
1716
|
+
var SeoOpportunityListQuerySchema = import_zod.z.object({
|
|
1717
|
+
limit: import_zod.z.coerce.number().int().min(1).max(50).default(20),
|
|
1718
|
+
cursor: SeoCursorSchema.optional(),
|
|
1719
|
+
kind: SeoOpportunityKindSchema.optional(),
|
|
1720
|
+
expectedImpact: SeoExpectedImpactSchema.optional()
|
|
1721
|
+
}).strict();
|
|
1722
|
+
var SeoPageSchema = import_zod.z.object({
|
|
1723
|
+
limit: import_zod.z.number().int().min(1).max(50),
|
|
1724
|
+
nextCursor: SeoCursorSchema.nullable()
|
|
1725
|
+
}).strict();
|
|
1726
|
+
var SeoOpportunityListDataSchema = import_zod.z.object({
|
|
1727
|
+
items: import_zod.z.array(SeoOpportunitySchema).max(50),
|
|
1728
|
+
page: SeoPageSchema
|
|
1729
|
+
}).strict();
|
|
1730
|
+
var SeoOpportunityListResponseSchema = successEnvelopeSchema(
|
|
1731
|
+
SeoOpportunityListDataSchema
|
|
1732
|
+
);
|
|
1733
|
+
var SeoOpportunityResponseSchema = successEnvelopeSchema(
|
|
1734
|
+
SeoOpportunitySchema
|
|
1735
|
+
);
|
|
1736
|
+
var SeoReportCompletenessSchema = import_zod.z.enum(["COMPLETE", "PARTIAL"]);
|
|
1737
|
+
var SeoReportTriggerSchema = import_zod.z.enum(["SCHEDULED", "MANUAL"]);
|
|
1738
|
+
var SeoReportSummarySchema = import_zod.z.object({
|
|
1739
|
+
id: SeoEntityIdSchema,
|
|
1740
|
+
projectId: SeoEntityIdSchema,
|
|
1741
|
+
periodStart: import_zod.z.string().datetime(),
|
|
1742
|
+
periodEnd: import_zod.z.string().datetime(),
|
|
1743
|
+
timeZone: import_zod.z.string().min(1).max(100),
|
|
1744
|
+
deliveryDay: import_zod.z.number().int().min(1).max(7),
|
|
1745
|
+
completeness: SeoReportCompletenessSchema,
|
|
1746
|
+
trigger: SeoReportTriggerSchema,
|
|
1747
|
+
createdAt: import_zod.z.string().datetime(),
|
|
1748
|
+
opportunityCount: import_zod.z.number().int().min(0).max(5),
|
|
1749
|
+
readyTaskCount: import_zod.z.number().int().min(0).max(5),
|
|
1750
|
+
researchTaskCount: import_zod.z.number().int().min(0).max(5),
|
|
1751
|
+
rejectedFindingCount: import_zod.z.number().int().min(0).max(20),
|
|
1752
|
+
legacy: import_zod.z.boolean()
|
|
1753
|
+
}).strict();
|
|
1754
|
+
var SeoReportSchema = SeoReportSummarySchema.extend({
|
|
1755
|
+
generatedAt: import_zod.z.string().datetime(),
|
|
1756
|
+
partialLabel: import_zod.z.string().max(500).nullable(),
|
|
1757
|
+
freshThrough: import_zod.z.string().datetime().nullable(),
|
|
1758
|
+
opportunities: import_zod.z.array(SeoOpportunityBriefSchema).max(5),
|
|
1759
|
+
rejectedFindings: import_zod.z.array(import_zod.z.object({
|
|
1760
|
+
decision: import_zod.z.literal("REJECTED"),
|
|
1761
|
+
query: import_zod.z.string().min(1).max(300),
|
|
1762
|
+
reason: import_zod.z.string().min(1).max(700),
|
|
1763
|
+
observedAt: import_zod.z.string().datetime()
|
|
1764
|
+
}).strict()).max(20)
|
|
1765
|
+
}).strict();
|
|
1766
|
+
var SeoReportListQuerySchema = import_zod.z.object({
|
|
1767
|
+
limit: import_zod.z.coerce.number().int().min(1).max(26).default(10),
|
|
1768
|
+
cursor: SeoCursorSchema.optional(),
|
|
1769
|
+
completeness: SeoReportCompletenessSchema.optional()
|
|
1770
|
+
}).strict();
|
|
1771
|
+
var SeoReportListDataSchema = import_zod.z.object({
|
|
1772
|
+
items: import_zod.z.array(SeoReportSummarySchema).max(26),
|
|
1773
|
+
page: SeoPageSchema.extend({
|
|
1774
|
+
limit: import_zod.z.number().int().min(1).max(26)
|
|
1775
|
+
}).strict()
|
|
1776
|
+
}).strict();
|
|
1777
|
+
var SeoReportListResponseSchema = successEnvelopeSchema(
|
|
1778
|
+
SeoReportListDataSchema
|
|
1779
|
+
);
|
|
1780
|
+
var SeoReportResponseSchema = successEnvelopeSchema(SeoReportSchema);
|
|
944
1781
|
// Annotate the CommonJS export names for ESM import in node:
|
|
945
1782
|
0 && (module.exports = {
|
|
946
1783
|
API_VERSION,
|
|
947
1784
|
ActorSchema,
|
|
1785
|
+
AgentBlogApprovalExecuteRequestSchema,
|
|
1786
|
+
AgentBlogApprovalExecuteResponseSchema,
|
|
1787
|
+
AgentBlogApprovalExecuteSchema,
|
|
1788
|
+
AgentBlogApprovalImageSummarySchema,
|
|
1789
|
+
AgentBlogApprovalLinkSummarySchema,
|
|
1790
|
+
AgentBlogApprovalPreviewRequestSchema,
|
|
1791
|
+
AgentBlogApprovalPreviewResponseSchema,
|
|
1792
|
+
AgentBlogApprovalPreviewSchema,
|
|
1793
|
+
AgentBlogArticleCreateRequestSchema,
|
|
1794
|
+
AgentBlogArticleDetailSchema,
|
|
1795
|
+
AgentBlogArticleListResponseSchema,
|
|
1796
|
+
AgentBlogArticleQueuedResponseSchema,
|
|
1797
|
+
AgentBlogArticleResponseSchema,
|
|
1798
|
+
AgentBlogArticleSchema,
|
|
1799
|
+
AgentBlogCadenceInputSchema,
|
|
1800
|
+
AgentBlogConnectionExecuteRequestSchema,
|
|
1801
|
+
AgentBlogConnectionExecuteResponseSchema,
|
|
1802
|
+
AgentBlogConnectionExecuteSchema,
|
|
1803
|
+
AgentBlogConnectionPreviewRequestSchema,
|
|
1804
|
+
AgentBlogConnectionPreviewResponseSchema,
|
|
1805
|
+
AgentBlogConnectionPreviewSchema,
|
|
1806
|
+
AgentBlogConnectionRequestSchema,
|
|
1807
|
+
AgentBlogConnectionStatusResponseSchema,
|
|
1808
|
+
AgentBlogConnectionStatusSchema,
|
|
1809
|
+
AgentBlogDeliveryAttemptListResponseSchema,
|
|
1810
|
+
AgentBlogDeliveryAttemptSchema,
|
|
1811
|
+
AgentBlogDestinationSelectionSchema,
|
|
1812
|
+
AgentBlogDraftUpdateSchema,
|
|
1813
|
+
AgentBlogGenerateRequestSchema,
|
|
1814
|
+
AgentBlogIdempotentRequestSchema,
|
|
1815
|
+
AgentBlogImageGenerateRequestSchema,
|
|
1816
|
+
AgentBlogImageGenerationResponseSchema,
|
|
1817
|
+
AgentBlogImageResponseSchema,
|
|
1818
|
+
AgentBlogImageReviewRequestSchema,
|
|
1819
|
+
AgentBlogImageSchema,
|
|
1820
|
+
AgentBlogImageUploadCompleteRequestSchema,
|
|
1821
|
+
AgentBlogImageUploadPreparationResponseSchema,
|
|
1822
|
+
AgentBlogImageUploadPrepareRequestSchema,
|
|
1823
|
+
AgentBlogJobResponseSchema,
|
|
1824
|
+
AgentBlogJobSchema,
|
|
1825
|
+
AgentBlogPlanCreateRequestSchema,
|
|
1826
|
+
AgentBlogPlanItemResponseSchema,
|
|
1827
|
+
AgentBlogPlanItemSchema,
|
|
1828
|
+
AgentBlogPlanItemStateRequestSchema,
|
|
1829
|
+
AgentBlogPlanItemsResponseSchema,
|
|
1830
|
+
AgentBlogPlanListResponseSchema,
|
|
1831
|
+
AgentBlogPlanQueuedResponseSchema,
|
|
1832
|
+
AgentBlogPlanRetryRequestSchema,
|
|
1833
|
+
AgentBlogPlanSchema,
|
|
1834
|
+
AgentBlogPublishExecuteRequestSchema,
|
|
1835
|
+
AgentBlogPublishExecuteResponseSchema,
|
|
1836
|
+
AgentBlogPublishPreviewRequestSchema,
|
|
1837
|
+
AgentBlogPublishPreviewResponseSchema,
|
|
1838
|
+
AgentBlogPublishPreviewSchema,
|
|
1839
|
+
AgentBlogPublishingDestinationListResponseSchema,
|
|
1840
|
+
AgentBlogPublishingDestinationSchema,
|
|
1841
|
+
AgentBlogPublishingProviderListResponseSchema,
|
|
1842
|
+
AgentBlogPublishingProviderSchema,
|
|
1843
|
+
AgentBlogRevalidationTestRequestSchema,
|
|
1844
|
+
AgentBlogRevalidationTestResponseSchema,
|
|
1845
|
+
AgentBlogRevalidationTestSchema,
|
|
1846
|
+
AgentBlogScheduleCancelExecuteRequestSchema,
|
|
1847
|
+
AgentBlogScheduleCancelExecuteResponseSchema,
|
|
1848
|
+
AgentBlogScheduleCancelExecuteSchema,
|
|
1849
|
+
AgentBlogScheduleCancelPreviewRequestSchema,
|
|
1850
|
+
AgentBlogScheduleCancelPreviewResponseSchema,
|
|
1851
|
+
AgentBlogScheduleCancelPreviewSchema,
|
|
1852
|
+
AgentBlogScheduleExecuteRequestSchema,
|
|
1853
|
+
AgentBlogScheduleExecuteResponseSchema,
|
|
1854
|
+
AgentBlogScheduleExecuteSchema,
|
|
1855
|
+
AgentBlogSchedulePreviewRequestSchema,
|
|
1856
|
+
AgentBlogSchedulePreviewResponseSchema,
|
|
1857
|
+
AgentBlogSchedulePreviewSchema,
|
|
1858
|
+
AgentBlogSetupStatusResponseSchema,
|
|
1859
|
+
AgentBlogSetupStatusSchema,
|
|
948
1860
|
ApiErrorCodeSchema,
|
|
949
1861
|
ApiMetaResponseSchema,
|
|
950
1862
|
ApiMetaSchema,
|
|
951
1863
|
ApiProblemSchema,
|
|
952
1864
|
AuthenticationKindSchema,
|
|
1865
|
+
BlogArticleListSchema,
|
|
1866
|
+
BlogImageSchema,
|
|
1867
|
+
BlogMetadataSchema,
|
|
1868
|
+
BlogSitemapEntrySchema,
|
|
1869
|
+
BlogSlugRedirectSchema,
|
|
953
1870
|
CLI_BROWSER_AUTHORIZATION_TIMEOUT_MS,
|
|
954
1871
|
CONTRACT_VERSION,
|
|
955
1872
|
CalendarEventSchema,
|
|
@@ -983,7 +1900,9 @@ var CalendarListResponseSchema = successEnvelopeSchema(
|
|
|
983
1900
|
MediaAssetUploadPreparationSchema,
|
|
984
1901
|
PUBLISHING_PROVIDER_COUNT,
|
|
985
1902
|
PlatformPostStatusSchema,
|
|
1903
|
+
PostDeliveryModeSchema,
|
|
986
1904
|
PostDestinationSchema,
|
|
1905
|
+
PostDestinationStageSchema,
|
|
987
1906
|
PostListDataSchema,
|
|
988
1907
|
PostListQuerySchema,
|
|
989
1908
|
PostListResponseSchema,
|
|
@@ -1017,10 +1936,40 @@ var CalendarListResponseSchema = successEnvelopeSchema(
|
|
|
1017
1936
|
ProviderDeliveryOptionsResponseSchema,
|
|
1018
1937
|
ProviderDeliveryOptionsSchema,
|
|
1019
1938
|
ProviderHealthStatusSchema,
|
|
1939
|
+
PublishedBlogArticleSchema,
|
|
1020
1940
|
PublishingProviderSchema,
|
|
1021
1941
|
ReadinessActionSchema,
|
|
1022
1942
|
ReadinessStatusSchema,
|
|
1023
1943
|
RequestMetadataSchema,
|
|
1944
|
+
SeoActionDecisionSchema,
|
|
1945
|
+
SeoActionPlanSchema,
|
|
1946
|
+
SeoAgentTaskSchema,
|
|
1947
|
+
SeoConfidenceValueSchema,
|
|
1948
|
+
SeoContentTypeSchema,
|
|
1949
|
+
SeoCursorSchema,
|
|
1950
|
+
SeoDecisionConfidenceSchema,
|
|
1951
|
+
SeoEntityIdSchema,
|
|
1952
|
+
SeoEvidenceProvenanceSchema,
|
|
1953
|
+
SeoEvidenceSchema,
|
|
1954
|
+
SeoExpectedImpactSchema,
|
|
1955
|
+
SeoOpportunityBriefSchema,
|
|
1956
|
+
SeoOpportunityKindSchema,
|
|
1957
|
+
SeoOpportunityListDataSchema,
|
|
1958
|
+
SeoOpportunityListQuerySchema,
|
|
1959
|
+
SeoOpportunityListResponseSchema,
|
|
1960
|
+
SeoOpportunityResponseSchema,
|
|
1961
|
+
SeoOpportunitySchema,
|
|
1962
|
+
SeoReportCompletenessSchema,
|
|
1963
|
+
SeoReportListDataSchema,
|
|
1964
|
+
SeoReportListQuerySchema,
|
|
1965
|
+
SeoReportListResponseSchema,
|
|
1966
|
+
SeoReportResponseSchema,
|
|
1967
|
+
SeoReportSchema,
|
|
1968
|
+
SeoReportSummarySchema,
|
|
1969
|
+
SeoReportTriggerSchema,
|
|
1970
|
+
SeoSearchIntentSchema,
|
|
1971
|
+
SeoTaskDecisionSchema,
|
|
1972
|
+
SeoTaskFormatSchema,
|
|
1024
1973
|
TikTokDeliveryOptionsSchema,
|
|
1025
1974
|
TikTokDraftSettingsSchema,
|
|
1026
1975
|
TikTokPostSettingsSchema,
|