@nextblock-cms/cortex 0.19.2 → 0.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4576 @@
1
+ import { z } from './zod-config';
2
+ import { BlockContentValidator, CustomBlockDefinitionLike } from './block-content-schemas';
3
+ type SupabaseLike = {
4
+ from: (table: string) => any;
5
+ };
6
+ type RevalidateFn = (path: string, type?: 'layout' | 'page') => void;
7
+ type MenuKey = 'HEADER' | 'FOOTER';
8
+ type CmsContentType = 'page' | 'post' | 'product';
9
+ /**
10
+ * Imports an external image URL into the NextBlock media library and returns the
11
+ * new media row id (a UUID). Injected by the app (which owns storage + sharp);
12
+ * the lib can't import the app-side importer directly. Absent in tests/CLI.
13
+ */
14
+ type ImportExternalImageFn = (input: {
15
+ url: string;
16
+ altText?: string;
17
+ }) => Promise<{
18
+ id: string;
19
+ } | {
20
+ error: string;
21
+ }>;
22
+ /**
23
+ * Records a revision for a live CMS write the agent is about to make.
24
+ *
25
+ * Two-phase so this lib never has to know the revision format: `capture` snapshots the
26
+ * current state and returns it opaquely, `commit` diffs that baseline against whatever the
27
+ * write left behind. Injected by the app — the revision service is a server action holding
28
+ * the snapshot shape, the diff cadence and the version bookkeeping, and forking it in here
29
+ * would give NextBlock two revision writers that drift apart.
30
+ *
31
+ * Absent in tests/CLI, in which case writes proceed unrecorded exactly as before.
32
+ */
33
+ type RecordRevisionFn = (input: {
34
+ baseline?: unknown;
35
+ contentType: CmsContentType;
36
+ entityId: number | string;
37
+ phase: 'capture' | 'commit';
38
+ }) => Promise<unknown>;
39
+ type ToolExecutionContext = {
40
+ actorUserId?: string | null;
41
+ cortexAiApiKey?: string | null;
42
+ cortexAiModelSelection?: unknown;
43
+ /**
44
+ * Custom block definitions a `block_type` slug may resolve to. Loaded on demand by
45
+ * `withCustomBlockDefinitions` when an input (or a stored block) references a
46
+ * type that is not built in, so requests that only use built-ins pay nothing.
47
+ */
48
+ customBlockDefinitions?: CustomBlockDefinitionLike[];
49
+ importExternalImage?: ImportExternalImageFn;
50
+ latestUserMessage?: string | null;
51
+ pageContext?: CortexAiPageContext | null;
52
+ recordRevision?: RecordRevisionFn;
53
+ /**
54
+ * Set by the MCP route when a bearer token outlived the account that created it,
55
+ * so `actorUserId` is a substituted stand-in. Usable for attribution, never for
56
+ * authorization — see the role checks in ai-global-agent-theming-tools.ts.
57
+ */
58
+ actorFromOrphanedToken?: boolean;
59
+ revalidatePath?: RevalidateFn;
60
+ skipConfirmation?: boolean;
61
+ supabase?: SupabaseLike;
62
+ validateBlockContent?: BlockContentValidator;
63
+ };
64
+ export declare const navigationItemInputSchema: z.ZodObject<{
65
+ label: z.ZodString;
66
+ target: z.ZodOptional<z.ZodEnum<{
67
+ _blank: "_blank";
68
+ _self: "_self";
69
+ }>>;
70
+ url: z.ZodString;
71
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
+ label: z.ZodString;
73
+ target: z.ZodOptional<z.ZodEnum<{
74
+ _blank: "_blank";
75
+ _self: "_self";
76
+ }>>;
77
+ url: z.ZodString;
78
+ }, z.core.$strict>>>;
79
+ }, z.core.$strict>;
80
+ export declare const updateNavigationBarInputSchema: z.ZodObject<{
81
+ items: z.ZodArray<z.ZodObject<{
82
+ label: z.ZodString;
83
+ target: z.ZodOptional<z.ZodEnum<{
84
+ _blank: "_blank";
85
+ _self: "_self";
86
+ }>>;
87
+ url: z.ZodString;
88
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
89
+ label: z.ZodString;
90
+ target: z.ZodOptional<z.ZodEnum<{
91
+ _blank: "_blank";
92
+ _self: "_self";
93
+ }>>;
94
+ url: z.ZodString;
95
+ }, z.core.$strict>>>;
96
+ }, z.core.$strict>>;
97
+ languageCode: z.ZodDefault<z.ZodString>;
98
+ match: z.ZodOptional<z.ZodObject<{
99
+ label: z.ZodOptional<z.ZodString>;
100
+ url: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strict>>;
102
+ mode: z.ZodDefault<z.ZodEnum<{
103
+ replace: "replace";
104
+ update: "update";
105
+ append: "append";
106
+ }>>;
107
+ }, z.core.$strict>;
108
+ export declare const updateFooterInputSchema: z.ZodObject<{
109
+ copyright: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
110
+ languageCode: z.ZodDefault<z.ZodString>;
111
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
112
+ label: z.ZodString;
113
+ target: z.ZodOptional<z.ZodEnum<{
114
+ _blank: "_blank";
115
+ _self: "_self";
116
+ }>>;
117
+ url: z.ZodString;
118
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
119
+ label: z.ZodString;
120
+ target: z.ZodOptional<z.ZodEnum<{
121
+ _blank: "_blank";
122
+ _self: "_self";
123
+ }>>;
124
+ url: z.ZodString;
125
+ }, z.core.$strict>>>;
126
+ }, z.core.$strict>>>;
127
+ }, z.core.$strict>;
128
+ export declare const searchDocumentationInputSchema: z.ZodObject<{
129
+ limit: z.ZodDefault<z.ZodNumber>;
130
+ query: z.ZodString;
131
+ }, z.core.$strict>;
132
+ export declare const fetchEcommerceStatsInputSchema: z.ZodObject<{
133
+ currency: z.ZodOptional<z.ZodString>;
134
+ query: z.ZodString;
135
+ reportType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
136
+ products: "products";
137
+ orders: "orders";
138
+ general: "general";
139
+ revenue: "revenue";
140
+ }>>>;
141
+ timeRange: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
142
+ today: "today";
143
+ this_month: "this_month";
144
+ last_7_days: "last_7_days";
145
+ last_30_days: "last_30_days";
146
+ last_month: "last_month";
147
+ last_90_days: "last_90_days";
148
+ all_time: "all_time";
149
+ }>>>;
150
+ }, z.core.$strip>;
151
+ export declare const cortexAiPageContextSchema: z.ZodObject<{
152
+ contentType: z.ZodEnum<{
153
+ page: "page";
154
+ post: "post";
155
+ product: "product";
156
+ }>;
157
+ currentEditor: z.ZodOptional<z.ZodObject<{
158
+ blockId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
159
+ blockType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ }, z.core.$strict>>;
162
+ entityId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
163
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
164
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ translationGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ }, z.core.$strict>;
168
+ export declare const readCurrentCmsItemInputSchema: z.ZodObject<{
169
+ cmsTarget: z.ZodOptional<z.ZodObject<{
170
+ contentType: z.ZodOptional<z.ZodEnum<{
171
+ page: "page";
172
+ post: "post";
173
+ product: "product";
174
+ }>>;
175
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
176
+ slug: z.ZodOptional<z.ZodString>;
177
+ title: z.ZodOptional<z.ZodString>;
178
+ }, z.core.$strict>>;
179
+ includeBlockContent: z.ZodDefault<z.ZodBoolean>;
180
+ includeBlocks: z.ZodDefault<z.ZodBoolean>;
181
+ }, z.core.$strict>;
182
+ export declare const updateCurrentCmsFieldsInputSchema: z.ZodObject<{
183
+ cmsTarget: z.ZodOptional<z.ZodObject<{
184
+ contentType: z.ZodOptional<z.ZodEnum<{
185
+ page: "page";
186
+ post: "post";
187
+ product: "product";
188
+ }>>;
189
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
190
+ slug: z.ZodOptional<z.ZodString>;
191
+ title: z.ZodOptional<z.ZodString>;
192
+ }, z.core.$strict>>;
193
+ fields: z.ZodObject<{
194
+ description_json: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
195
+ excerpt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
196
+ feature_image_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
197
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
198
+ meta_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
199
+ meta_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
200
+ published_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
201
+ short_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
202
+ slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
203
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
204
+ draft: "draft";
205
+ published: "published";
206
+ archived: "archived";
207
+ active: "active";
208
+ }>>>;
209
+ subtitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
210
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
211
+ }, z.core.$strict>;
212
+ }, z.core.$strict>;
213
+ export declare const updateContentBlockInputSchema: z.ZodObject<{
214
+ blockId: z.ZodNumber;
215
+ blockType: z.ZodOptional<z.ZodString>;
216
+ cmsTarget: z.ZodOptional<z.ZodObject<{
217
+ contentType: z.ZodOptional<z.ZodEnum<{
218
+ page: "page";
219
+ post: "post";
220
+ product: "product";
221
+ }>>;
222
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
223
+ slug: z.ZodOptional<z.ZodString>;
224
+ title: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$strict>>;
226
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
227
+ }, z.core.$strict>;
228
+ export declare const updateSectionColumnBlockInputSchema: z.ZodObject<{
229
+ blockIndex: z.ZodNumber;
230
+ blockType: z.ZodOptional<z.ZodString>;
231
+ cmsTarget: z.ZodOptional<z.ZodObject<{
232
+ contentType: z.ZodOptional<z.ZodEnum<{
233
+ page: "page";
234
+ post: "post";
235
+ product: "product";
236
+ }>>;
237
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
238
+ slug: z.ZodOptional<z.ZodString>;
239
+ title: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strict>>;
241
+ columnIndex: z.ZodNumber;
242
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
243
+ parentBlockId: z.ZodNumber;
244
+ }, z.core.$strict>;
245
+ export declare const setContentImagesInputSchema: z.ZodObject<{
246
+ contentType: z.ZodOptional<z.ZodEnum<{
247
+ page: "page";
248
+ post: "post";
249
+ product: "product";
250
+ }>>;
251
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
252
+ slug: z.ZodOptional<z.ZodString>;
253
+ title: z.ZodOptional<z.ZodString>;
254
+ images: z.ZodArray<z.ZodString>;
255
+ }, z.core.$strict>;
256
+ type SetContentImagesInput = z.input<typeof setContentImagesInputSchema>;
257
+ export declare const insertContentBlockInputSchema: z.ZodObject<{
258
+ contentType: z.ZodOptional<z.ZodEnum<{
259
+ page: "page";
260
+ post: "post";
261
+ product: "product";
262
+ }>>;
263
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
264
+ slug: z.ZodOptional<z.ZodString>;
265
+ title: z.ZodOptional<z.ZodString>;
266
+ anchorBlockId: z.ZodOptional<z.ZodNumber>;
267
+ anchorBlockType: z.ZodOptional<z.ZodString>;
268
+ block: z.ZodObject<{
269
+ blockType: z.ZodString;
270
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
271
+ order: z.ZodOptional<z.ZodNumber>;
272
+ }, z.core.$strict>;
273
+ position: z.ZodDefault<z.ZodEnum<{
274
+ start: "start";
275
+ end: "end";
276
+ before: "before";
277
+ after: "after";
278
+ }>>;
279
+ }, z.core.$strict>;
280
+ export declare const createCmsPageInputSchema: z.ZodObject<{
281
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ blockType: z.ZodString;
283
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
284
+ order: z.ZodOptional<z.ZodNumber>;
285
+ }, z.core.$strict>>>;
286
+ contactEmail: z.ZodOptional<z.ZodString>;
287
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ languageCode: z.ZodOptional<z.ZodString>;
289
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
+ slug: z.ZodOptional<z.ZodString>;
292
+ status: z.ZodDefault<z.ZodEnum<{
293
+ draft: "draft";
294
+ published: "published";
295
+ archived: "archived";
296
+ }>>;
297
+ title: z.ZodString;
298
+ translationGroupId: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strict>;
300
+ export declare const createCmsPostInputSchema: z.ZodObject<{
301
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
302
+ blockType: z.ZodString;
303
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
304
+ order: z.ZodOptional<z.ZodNumber>;
305
+ }, z.core.$strict>>>;
306
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ languageCode: z.ZodOptional<z.ZodString>;
310
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ slug: z.ZodOptional<z.ZodString>;
314
+ status: z.ZodDefault<z.ZodEnum<{
315
+ draft: "draft";
316
+ published: "published";
317
+ archived: "archived";
318
+ }>>;
319
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ title: z.ZodString;
321
+ translationGroupId: z.ZodOptional<z.ZodString>;
322
+ }, z.core.$strict>;
323
+ export declare const createCmsProductInputSchema: z.ZodObject<{
324
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
325
+ blockType: z.ZodString;
326
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
327
+ order: z.ZodOptional<z.ZodNumber>;
328
+ }, z.core.$strict>>>;
329
+ description_html: z.ZodOptional<z.ZodString>;
330
+ description_json: z.ZodOptional<z.ZodUnknown>;
331
+ freemius_plan_id: z.ZodOptional<z.ZodString>;
332
+ freemius_product_id: z.ZodOptional<z.ZodString>;
333
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
334
+ is_taxable: z.ZodDefault<z.ZodBoolean>;
335
+ languageCode: z.ZodOptional<z.ZodString>;
336
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
338
+ payment_provider: z.ZodDefault<z.ZodEnum<{
339
+ stripe: "stripe";
340
+ freemius: "freemius";
341
+ }>>;
342
+ price: z.ZodDefault<z.ZodNumber>;
343
+ prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
344
+ product_type: z.ZodDefault<z.ZodEnum<{
345
+ physical: "physical";
346
+ digital: "digital";
347
+ }>>;
348
+ sale_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
349
+ sale_prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
350
+ short_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ sku: z.ZodOptional<z.ZodString>;
352
+ slug: z.ZodOptional<z.ZodString>;
353
+ status: z.ZodDefault<z.ZodEnum<{
354
+ draft: "draft";
355
+ archived: "archived";
356
+ active: "active";
357
+ }>>;
358
+ stock: z.ZodDefault<z.ZodNumber>;
359
+ title: z.ZodString;
360
+ trial_period_days: z.ZodDefault<z.ZodNumber>;
361
+ trial_requires_payment_method: z.ZodDefault<z.ZodBoolean>;
362
+ translationGroupId: z.ZodOptional<z.ZodString>;
363
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ }, z.core.$strict>;
365
+ export declare const updateCmsItemFieldInputSchema: z.ZodObject<{
366
+ contentType: z.ZodOptional<z.ZodEnum<{
367
+ page: "page";
368
+ post: "post";
369
+ product: "product";
370
+ }>>;
371
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
372
+ slug: z.ZodOptional<z.ZodString>;
373
+ title: z.ZodOptional<z.ZodString>;
374
+ currencyCode: z.ZodOptional<z.ZodString>;
375
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ field: z.ZodString;
377
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ value: z.ZodUnknown;
379
+ }, z.core.$strict>;
380
+ export declare const prepareDeleteCmsItemInputSchema: z.ZodObject<{
381
+ contentType: z.ZodOptional<z.ZodEnum<{
382
+ page: "page";
383
+ post: "post";
384
+ product: "product";
385
+ }>>;
386
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
387
+ slug: z.ZodOptional<z.ZodString>;
388
+ title: z.ZodOptional<z.ZodString>;
389
+ }, z.core.$strict>;
390
+ export declare const deleteCmsItemInputSchema: z.ZodObject<{
391
+ contentType: z.ZodOptional<z.ZodEnum<{
392
+ page: "page";
393
+ post: "post";
394
+ product: "product";
395
+ }>>;
396
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
397
+ slug: z.ZodOptional<z.ZodString>;
398
+ title: z.ZodOptional<z.ZodString>;
399
+ }, z.core.$strict>;
400
+ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
401
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
402
+ input: z.ZodObject<{
403
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
404
+ blockType: z.ZodString;
405
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
406
+ order: z.ZodOptional<z.ZodNumber>;
407
+ }, z.core.$strict>>>;
408
+ contactEmail: z.ZodOptional<z.ZodString>;
409
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ languageCode: z.ZodOptional<z.ZodString>;
411
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ slug: z.ZodOptional<z.ZodString>;
414
+ status: z.ZodDefault<z.ZodEnum<{
415
+ draft: "draft";
416
+ published: "published";
417
+ archived: "archived";
418
+ }>>;
419
+ title: z.ZodString;
420
+ translationGroupId: z.ZodOptional<z.ZodString>;
421
+ }, z.core.$strict>;
422
+ tool: z.ZodLiteral<"create_cms_page">;
423
+ }, z.core.$strict>, z.ZodObject<{
424
+ input: z.ZodObject<{
425
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
426
+ blockType: z.ZodString;
427
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
428
+ order: z.ZodOptional<z.ZodNumber>;
429
+ }, z.core.$strict>>>;
430
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
431
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
432
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ languageCode: z.ZodOptional<z.ZodString>;
434
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
435
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
437
+ slug: z.ZodOptional<z.ZodString>;
438
+ status: z.ZodDefault<z.ZodEnum<{
439
+ draft: "draft";
440
+ published: "published";
441
+ archived: "archived";
442
+ }>>;
443
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ title: z.ZodString;
445
+ translationGroupId: z.ZodOptional<z.ZodString>;
446
+ }, z.core.$strict>;
447
+ tool: z.ZodLiteral<"create_cms_post">;
448
+ }, z.core.$strict>, z.ZodObject<{
449
+ input: z.ZodObject<{
450
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
451
+ blockType: z.ZodString;
452
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
453
+ order: z.ZodOptional<z.ZodNumber>;
454
+ }, z.core.$strict>>>;
455
+ description_html: z.ZodOptional<z.ZodString>;
456
+ description_json: z.ZodOptional<z.ZodUnknown>;
457
+ freemius_plan_id: z.ZodOptional<z.ZodString>;
458
+ freemius_product_id: z.ZodOptional<z.ZodString>;
459
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
460
+ is_taxable: z.ZodDefault<z.ZodBoolean>;
461
+ languageCode: z.ZodOptional<z.ZodString>;
462
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
+ payment_provider: z.ZodDefault<z.ZodEnum<{
465
+ stripe: "stripe";
466
+ freemius: "freemius";
467
+ }>>;
468
+ price: z.ZodDefault<z.ZodNumber>;
469
+ prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
470
+ product_type: z.ZodDefault<z.ZodEnum<{
471
+ physical: "physical";
472
+ digital: "digital";
473
+ }>>;
474
+ sale_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
475
+ sale_prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
476
+ short_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
477
+ sku: z.ZodOptional<z.ZodString>;
478
+ slug: z.ZodOptional<z.ZodString>;
479
+ status: z.ZodDefault<z.ZodEnum<{
480
+ draft: "draft";
481
+ archived: "archived";
482
+ active: "active";
483
+ }>>;
484
+ stock: z.ZodDefault<z.ZodNumber>;
485
+ title: z.ZodString;
486
+ trial_period_days: z.ZodDefault<z.ZodNumber>;
487
+ trial_requires_payment_method: z.ZodDefault<z.ZodBoolean>;
488
+ translationGroupId: z.ZodOptional<z.ZodString>;
489
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ }, z.core.$strict>;
491
+ tool: z.ZodLiteral<"create_cms_product">;
492
+ }, z.core.$strict>, z.ZodObject<{
493
+ input: z.ZodObject<{
494
+ contentType: z.ZodOptional<z.ZodEnum<{
495
+ page: "page";
496
+ post: "post";
497
+ product: "product";
498
+ }>>;
499
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
500
+ slug: z.ZodOptional<z.ZodString>;
501
+ title: z.ZodOptional<z.ZodString>;
502
+ }, z.core.$strict>;
503
+ tool: z.ZodLiteral<"delete_cms_item">;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ input: z.ZodObject<{
506
+ contentType: z.ZodOptional<z.ZodEnum<{
507
+ page: "page";
508
+ post: "post";
509
+ product: "product";
510
+ }>>;
511
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
512
+ slug: z.ZodOptional<z.ZodString>;
513
+ title: z.ZodOptional<z.ZodString>;
514
+ currencyCode: z.ZodOptional<z.ZodString>;
515
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
516
+ field: z.ZodString;
517
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ value: z.ZodUnknown;
519
+ }, z.core.$strict>;
520
+ tool: z.ZodLiteral<"update_cms_item_field">;
521
+ }, z.core.$strict>, z.ZodObject<{
522
+ input: z.ZodObject<{
523
+ blockId: z.ZodNumber;
524
+ blockType: z.ZodOptional<z.ZodString>;
525
+ cmsTarget: z.ZodOptional<z.ZodObject<{
526
+ contentType: z.ZodOptional<z.ZodEnum<{
527
+ page: "page";
528
+ post: "post";
529
+ product: "product";
530
+ }>>;
531
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
532
+ slug: z.ZodOptional<z.ZodString>;
533
+ title: z.ZodOptional<z.ZodString>;
534
+ }, z.core.$strict>>;
535
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
536
+ }, z.core.$strict>;
537
+ tool: z.ZodLiteral<"update_content_block">;
538
+ }, z.core.$strict>, z.ZodObject<{
539
+ input: z.ZodObject<{
540
+ contentType: z.ZodOptional<z.ZodEnum<{
541
+ page: "page";
542
+ post: "post";
543
+ product: "product";
544
+ }>>;
545
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
546
+ slug: z.ZodOptional<z.ZodString>;
547
+ title: z.ZodOptional<z.ZodString>;
548
+ anchorBlockId: z.ZodOptional<z.ZodNumber>;
549
+ anchorBlockType: z.ZodOptional<z.ZodString>;
550
+ block: z.ZodObject<{
551
+ blockType: z.ZodString;
552
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
553
+ order: z.ZodOptional<z.ZodNumber>;
554
+ }, z.core.$strict>;
555
+ position: z.ZodDefault<z.ZodEnum<{
556
+ start: "start";
557
+ end: "end";
558
+ before: "before";
559
+ after: "after";
560
+ }>>;
561
+ }, z.core.$strict>;
562
+ tool: z.ZodLiteral<"insert_content_block">;
563
+ }, z.core.$strict>, z.ZodObject<{
564
+ input: z.ZodObject<{
565
+ cmsTarget: z.ZodOptional<z.ZodObject<{
566
+ contentType: z.ZodOptional<z.ZodEnum<{
567
+ page: "page";
568
+ post: "post";
569
+ product: "product";
570
+ }>>;
571
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
572
+ slug: z.ZodOptional<z.ZodString>;
573
+ title: z.ZodOptional<z.ZodString>;
574
+ }, z.core.$strict>>;
575
+ fields: z.ZodObject<{
576
+ description_json: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
577
+ excerpt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
578
+ feature_image_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
579
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
580
+ meta_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
581
+ meta_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
582
+ published_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
583
+ short_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
584
+ slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
585
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
586
+ draft: "draft";
587
+ published: "published";
588
+ archived: "archived";
589
+ active: "active";
590
+ }>>>;
591
+ subtitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
592
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
593
+ }, z.core.$strict>;
594
+ }, z.core.$strict>;
595
+ tool: z.ZodLiteral<"update_current_cms_fields">;
596
+ }, z.core.$strict>, z.ZodObject<{
597
+ input: z.ZodObject<{
598
+ copyright: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
599
+ languageCode: z.ZodDefault<z.ZodString>;
600
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
601
+ label: z.ZodString;
602
+ target: z.ZodOptional<z.ZodEnum<{
603
+ _blank: "_blank";
604
+ _self: "_self";
605
+ }>>;
606
+ url: z.ZodString;
607
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
608
+ label: z.ZodString;
609
+ target: z.ZodOptional<z.ZodEnum<{
610
+ _blank: "_blank";
611
+ _self: "_self";
612
+ }>>;
613
+ url: z.ZodString;
614
+ }, z.core.$strict>>>;
615
+ }, z.core.$strict>>>;
616
+ }, z.core.$strict>;
617
+ tool: z.ZodLiteral<"update_footer">;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ input: z.ZodObject<{
620
+ items: z.ZodArray<z.ZodObject<{
621
+ label: z.ZodString;
622
+ target: z.ZodOptional<z.ZodEnum<{
623
+ _blank: "_blank";
624
+ _self: "_self";
625
+ }>>;
626
+ url: z.ZodString;
627
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
628
+ label: z.ZodString;
629
+ target: z.ZodOptional<z.ZodEnum<{
630
+ _blank: "_blank";
631
+ _self: "_self";
632
+ }>>;
633
+ url: z.ZodString;
634
+ }, z.core.$strict>>>;
635
+ }, z.core.$strict>>;
636
+ languageCode: z.ZodDefault<z.ZodString>;
637
+ match: z.ZodOptional<z.ZodObject<{
638
+ label: z.ZodOptional<z.ZodString>;
639
+ url: z.ZodOptional<z.ZodString>;
640
+ }, z.core.$strict>>;
641
+ mode: z.ZodDefault<z.ZodEnum<{
642
+ replace: "replace";
643
+ update: "update";
644
+ append: "append";
645
+ }>>;
646
+ }, z.core.$strict>;
647
+ tool: z.ZodLiteral<"update_navigation_bar">;
648
+ }, z.core.$strict>, z.ZodObject<{
649
+ input: z.ZodObject<{
650
+ blockIndex: z.ZodNumber;
651
+ blockType: z.ZodOptional<z.ZodString>;
652
+ cmsTarget: z.ZodOptional<z.ZodObject<{
653
+ contentType: z.ZodOptional<z.ZodEnum<{
654
+ page: "page";
655
+ post: "post";
656
+ product: "product";
657
+ }>>;
658
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
659
+ slug: z.ZodOptional<z.ZodString>;
660
+ title: z.ZodOptional<z.ZodString>;
661
+ }, z.core.$strict>>;
662
+ columnIndex: z.ZodNumber;
663
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
664
+ parentBlockId: z.ZodNumber;
665
+ }, z.core.$strict>;
666
+ tool: z.ZodLiteral<"update_section_column_block">;
667
+ }, z.core.$strict>, z.ZodObject<{
668
+ input: z.ZodObject<{
669
+ contentType: z.ZodOptional<z.ZodEnum<{
670
+ page: "page";
671
+ post: "post";
672
+ product: "product";
673
+ }>>;
674
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
675
+ slug: z.ZodOptional<z.ZodString>;
676
+ title: z.ZodOptional<z.ZodString>;
677
+ images: z.ZodArray<z.ZodString>;
678
+ }, z.core.$strict>;
679
+ tool: z.ZodLiteral<"set_content_images">;
680
+ }, z.core.$strict>], "tool">, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
681
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
682
+ blockType: z.ZodString;
683
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
684
+ order: z.ZodOptional<z.ZodNumber>;
685
+ }, z.core.$strict>>>;
686
+ contactEmail: z.ZodOptional<z.ZodString>;
687
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
688
+ languageCode: z.ZodOptional<z.ZodString>;
689
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
+ slug: z.ZodOptional<z.ZodString>;
692
+ status: z.ZodDefault<z.ZodEnum<{
693
+ draft: "draft";
694
+ published: "published";
695
+ archived: "archived";
696
+ }>>;
697
+ title: z.ZodString;
698
+ translationGroupId: z.ZodOptional<z.ZodString>;
699
+ tool: z.ZodLiteral<"create_cms_page">;
700
+ }, z.core.$strict>, z.ZodTransform<{
701
+ input: {
702
+ status: "draft" | "published" | "archived";
703
+ title: string;
704
+ blocks?: {
705
+ blockType: string;
706
+ content: Record<string, unknown>;
707
+ order?: number | undefined;
708
+ }[] | undefined;
709
+ contactEmail?: string | undefined;
710
+ feature_image_id?: string | null | undefined;
711
+ languageCode?: string | undefined;
712
+ meta_description?: string | null | undefined;
713
+ meta_title?: string | null | undefined;
714
+ slug?: string | undefined;
715
+ translationGroupId?: string | undefined;
716
+ };
717
+ tool: "create_cms_page";
718
+ }, {
719
+ status: "draft" | "published" | "archived";
720
+ title: string;
721
+ tool: "create_cms_page";
722
+ blocks?: {
723
+ blockType: string;
724
+ content: Record<string, unknown>;
725
+ order?: number | undefined;
726
+ }[] | undefined;
727
+ contactEmail?: string | undefined;
728
+ feature_image_id?: string | null | undefined;
729
+ languageCode?: string | undefined;
730
+ meta_description?: string | null | undefined;
731
+ meta_title?: string | null | undefined;
732
+ slug?: string | undefined;
733
+ translationGroupId?: string | undefined;
734
+ }>>, z.ZodPipe<z.ZodObject<{
735
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
736
+ blockType: z.ZodString;
737
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
738
+ order: z.ZodOptional<z.ZodNumber>;
739
+ }, z.core.$strict>>>;
740
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
741
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
742
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
+ languageCode: z.ZodOptional<z.ZodString>;
744
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
745
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
747
+ slug: z.ZodOptional<z.ZodString>;
748
+ status: z.ZodDefault<z.ZodEnum<{
749
+ draft: "draft";
750
+ published: "published";
751
+ archived: "archived";
752
+ }>>;
753
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
754
+ title: z.ZodString;
755
+ translationGroupId: z.ZodOptional<z.ZodString>;
756
+ tool: z.ZodLiteral<"create_cms_post">;
757
+ }, z.core.$strict>, z.ZodTransform<{
758
+ input: {
759
+ status: "draft" | "published" | "archived";
760
+ title: string;
761
+ blocks?: {
762
+ blockType: string;
763
+ content: Record<string, unknown>;
764
+ order?: number | undefined;
765
+ }[] | undefined;
766
+ excerpt?: string | null | undefined;
767
+ feature_image_id?: string | null | undefined;
768
+ label?: string | null | undefined;
769
+ languageCode?: string | undefined;
770
+ meta_description?: string | null | undefined;
771
+ meta_title?: string | null | undefined;
772
+ published_at?: string | null | undefined;
773
+ slug?: string | undefined;
774
+ subtitle?: string | null | undefined;
775
+ translationGroupId?: string | undefined;
776
+ };
777
+ tool: "create_cms_post";
778
+ }, {
779
+ status: "draft" | "published" | "archived";
780
+ title: string;
781
+ tool: "create_cms_post";
782
+ blocks?: {
783
+ blockType: string;
784
+ content: Record<string, unknown>;
785
+ order?: number | undefined;
786
+ }[] | undefined;
787
+ excerpt?: string | null | undefined;
788
+ feature_image_id?: string | null | undefined;
789
+ label?: string | null | undefined;
790
+ languageCode?: string | undefined;
791
+ meta_description?: string | null | undefined;
792
+ meta_title?: string | null | undefined;
793
+ published_at?: string | null | undefined;
794
+ slug?: string | undefined;
795
+ subtitle?: string | null | undefined;
796
+ translationGroupId?: string | undefined;
797
+ }>>, z.ZodPipe<z.ZodObject<{
798
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
799
+ blockType: z.ZodString;
800
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
801
+ order: z.ZodOptional<z.ZodNumber>;
802
+ }, z.core.$strict>>>;
803
+ description_html: z.ZodOptional<z.ZodString>;
804
+ description_json: z.ZodOptional<z.ZodUnknown>;
805
+ freemius_plan_id: z.ZodOptional<z.ZodString>;
806
+ freemius_product_id: z.ZodOptional<z.ZodString>;
807
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
808
+ is_taxable: z.ZodDefault<z.ZodBoolean>;
809
+ languageCode: z.ZodOptional<z.ZodString>;
810
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
811
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
812
+ payment_provider: z.ZodDefault<z.ZodEnum<{
813
+ stripe: "stripe";
814
+ freemius: "freemius";
815
+ }>>;
816
+ price: z.ZodDefault<z.ZodNumber>;
817
+ prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
818
+ product_type: z.ZodDefault<z.ZodEnum<{
819
+ physical: "physical";
820
+ digital: "digital";
821
+ }>>;
822
+ sale_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
823
+ sale_prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
824
+ short_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
825
+ sku: z.ZodOptional<z.ZodString>;
826
+ slug: z.ZodOptional<z.ZodString>;
827
+ status: z.ZodDefault<z.ZodEnum<{
828
+ draft: "draft";
829
+ archived: "archived";
830
+ active: "active";
831
+ }>>;
832
+ stock: z.ZodDefault<z.ZodNumber>;
833
+ title: z.ZodString;
834
+ trial_period_days: z.ZodDefault<z.ZodNumber>;
835
+ trial_requires_payment_method: z.ZodDefault<z.ZodBoolean>;
836
+ translationGroupId: z.ZodOptional<z.ZodString>;
837
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
838
+ tool: z.ZodLiteral<"create_cms_product">;
839
+ }, z.core.$strict>, z.ZodTransform<{
840
+ input: {
841
+ is_taxable: boolean;
842
+ payment_provider: "stripe" | "freemius";
843
+ price: number;
844
+ product_type: "physical" | "digital";
845
+ status: "draft" | "archived" | "active";
846
+ stock: number;
847
+ title: string;
848
+ trial_period_days: number;
849
+ trial_requires_payment_method: boolean;
850
+ blocks?: {
851
+ blockType: string;
852
+ content: Record<string, unknown>;
853
+ order?: number | undefined;
854
+ }[] | undefined;
855
+ description_html?: string | undefined;
856
+ description_json?: unknown;
857
+ freemius_plan_id?: string | undefined;
858
+ freemius_product_id?: string | undefined;
859
+ images?: string[] | undefined;
860
+ languageCode?: string | undefined;
861
+ meta_description?: string | null | undefined;
862
+ meta_title?: string | null | undefined;
863
+ prices?: Record<string, number> | undefined;
864
+ sale_price?: number | null | undefined;
865
+ sale_prices?: Record<string, number | null> | undefined;
866
+ short_description?: string | null | undefined;
867
+ sku?: string | undefined;
868
+ slug?: string | undefined;
869
+ translationGroupId?: string | undefined;
870
+ upc?: string | null | undefined;
871
+ };
872
+ tool: "create_cms_product";
873
+ }, {
874
+ is_taxable: boolean;
875
+ payment_provider: "stripe" | "freemius";
876
+ price: number;
877
+ product_type: "physical" | "digital";
878
+ status: "draft" | "archived" | "active";
879
+ stock: number;
880
+ title: string;
881
+ trial_period_days: number;
882
+ trial_requires_payment_method: boolean;
883
+ tool: "create_cms_product";
884
+ blocks?: {
885
+ blockType: string;
886
+ content: Record<string, unknown>;
887
+ order?: number | undefined;
888
+ }[] | undefined;
889
+ description_html?: string | undefined;
890
+ description_json?: unknown;
891
+ freemius_plan_id?: string | undefined;
892
+ freemius_product_id?: string | undefined;
893
+ images?: string[] | undefined;
894
+ languageCode?: string | undefined;
895
+ meta_description?: string | null | undefined;
896
+ meta_title?: string | null | undefined;
897
+ prices?: Record<string, number> | undefined;
898
+ sale_price?: number | null | undefined;
899
+ sale_prices?: Record<string, number | null> | undefined;
900
+ short_description?: string | null | undefined;
901
+ sku?: string | undefined;
902
+ slug?: string | undefined;
903
+ translationGroupId?: string | undefined;
904
+ upc?: string | null | undefined;
905
+ }>>, z.ZodPipe<z.ZodObject<{
906
+ contentType: z.ZodOptional<z.ZodEnum<{
907
+ page: "page";
908
+ post: "post";
909
+ product: "product";
910
+ }>>;
911
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
912
+ slug: z.ZodOptional<z.ZodString>;
913
+ title: z.ZodOptional<z.ZodString>;
914
+ tool: z.ZodLiteral<"delete_cms_item">;
915
+ }, z.core.$strict>, z.ZodTransform<{
916
+ input: {
917
+ contentType?: "page" | "post" | "product" | undefined;
918
+ entityId?: string | number | undefined;
919
+ slug?: string | undefined;
920
+ title?: string | undefined;
921
+ };
922
+ tool: "delete_cms_item";
923
+ }, {
924
+ tool: "delete_cms_item";
925
+ contentType?: "page" | "post" | "product" | undefined;
926
+ entityId?: string | number | undefined;
927
+ slug?: string | undefined;
928
+ title?: string | undefined;
929
+ }>>, z.ZodPipe<z.ZodObject<{
930
+ contentType: z.ZodOptional<z.ZodEnum<{
931
+ page: "page";
932
+ post: "post";
933
+ product: "product";
934
+ }>>;
935
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
936
+ slug: z.ZodOptional<z.ZodString>;
937
+ title: z.ZodOptional<z.ZodString>;
938
+ currencyCode: z.ZodOptional<z.ZodString>;
939
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
940
+ field: z.ZodString;
941
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
942
+ value: z.ZodUnknown;
943
+ tool: z.ZodLiteral<"update_cms_item_field">;
944
+ }, z.core.$strict>, z.ZodTransform<{
945
+ input: {
946
+ field: string;
947
+ value: unknown;
948
+ contentType?: "page" | "post" | "product" | undefined;
949
+ entityId?: string | number | undefined;
950
+ slug?: string | undefined;
951
+ title?: string | undefined;
952
+ currencyCode?: string | undefined;
953
+ endsAt?: string | null | undefined;
954
+ startsAt?: string | null | undefined;
955
+ };
956
+ tool: "update_cms_item_field";
957
+ }, {
958
+ field: string;
959
+ value: unknown;
960
+ tool: "update_cms_item_field";
961
+ contentType?: "page" | "post" | "product" | undefined;
962
+ entityId?: string | number | undefined;
963
+ slug?: string | undefined;
964
+ title?: string | undefined;
965
+ currencyCode?: string | undefined;
966
+ endsAt?: string | null | undefined;
967
+ startsAt?: string | null | undefined;
968
+ }>>, z.ZodPipe<z.ZodObject<{
969
+ blockId: z.ZodNumber;
970
+ blockType: z.ZodOptional<z.ZodString>;
971
+ cmsTarget: z.ZodOptional<z.ZodObject<{
972
+ contentType: z.ZodOptional<z.ZodEnum<{
973
+ page: "page";
974
+ post: "post";
975
+ product: "product";
976
+ }>>;
977
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
978
+ slug: z.ZodOptional<z.ZodString>;
979
+ title: z.ZodOptional<z.ZodString>;
980
+ }, z.core.$strict>>;
981
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
982
+ tool: z.ZodLiteral<"update_content_block">;
983
+ }, z.core.$strict>, z.ZodTransform<{
984
+ input: {
985
+ blockId: number;
986
+ content: Record<string, unknown>;
987
+ blockType?: string | undefined;
988
+ cmsTarget?: {
989
+ contentType?: "page" | "post" | "product" | undefined;
990
+ entityId?: string | number | undefined;
991
+ slug?: string | undefined;
992
+ title?: string | undefined;
993
+ } | undefined;
994
+ };
995
+ tool: "update_content_block";
996
+ }, {
997
+ blockId: number;
998
+ content: Record<string, unknown>;
999
+ tool: "update_content_block";
1000
+ blockType?: string | undefined;
1001
+ cmsTarget?: {
1002
+ contentType?: "page" | "post" | "product" | undefined;
1003
+ entityId?: string | number | undefined;
1004
+ slug?: string | undefined;
1005
+ title?: string | undefined;
1006
+ } | undefined;
1007
+ }>>, z.ZodPipe<z.ZodObject<{
1008
+ contentType: z.ZodOptional<z.ZodEnum<{
1009
+ page: "page";
1010
+ post: "post";
1011
+ product: "product";
1012
+ }>>;
1013
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1014
+ slug: z.ZodOptional<z.ZodString>;
1015
+ title: z.ZodOptional<z.ZodString>;
1016
+ anchorBlockId: z.ZodOptional<z.ZodNumber>;
1017
+ anchorBlockType: z.ZodOptional<z.ZodString>;
1018
+ block: z.ZodObject<{
1019
+ blockType: z.ZodString;
1020
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1021
+ order: z.ZodOptional<z.ZodNumber>;
1022
+ }, z.core.$strict>;
1023
+ position: z.ZodDefault<z.ZodEnum<{
1024
+ start: "start";
1025
+ end: "end";
1026
+ before: "before";
1027
+ after: "after";
1028
+ }>>;
1029
+ tool: z.ZodLiteral<"insert_content_block">;
1030
+ }, z.core.$strict>, z.ZodTransform<{
1031
+ input: {
1032
+ block: {
1033
+ blockType: string;
1034
+ content: Record<string, unknown>;
1035
+ order?: number | undefined;
1036
+ };
1037
+ position: "start" | "end" | "before" | "after";
1038
+ contentType?: "page" | "post" | "product" | undefined;
1039
+ entityId?: string | number | undefined;
1040
+ slug?: string | undefined;
1041
+ title?: string | undefined;
1042
+ anchorBlockId?: number | undefined;
1043
+ anchorBlockType?: string | undefined;
1044
+ };
1045
+ tool: "insert_content_block";
1046
+ }, {
1047
+ block: {
1048
+ blockType: string;
1049
+ content: Record<string, unknown>;
1050
+ order?: number | undefined;
1051
+ };
1052
+ position: "start" | "end" | "before" | "after";
1053
+ tool: "insert_content_block";
1054
+ contentType?: "page" | "post" | "product" | undefined;
1055
+ entityId?: string | number | undefined;
1056
+ slug?: string | undefined;
1057
+ title?: string | undefined;
1058
+ anchorBlockId?: number | undefined;
1059
+ anchorBlockType?: string | undefined;
1060
+ }>>, z.ZodPipe<z.ZodObject<{
1061
+ cmsTarget: z.ZodOptional<z.ZodObject<{
1062
+ contentType: z.ZodOptional<z.ZodEnum<{
1063
+ page: "page";
1064
+ post: "post";
1065
+ product: "product";
1066
+ }>>;
1067
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1068
+ slug: z.ZodOptional<z.ZodString>;
1069
+ title: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strict>>;
1071
+ fields: z.ZodObject<{
1072
+ description_json: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
1073
+ excerpt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1074
+ feature_image_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1075
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1076
+ meta_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1077
+ meta_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1078
+ published_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1079
+ short_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1080
+ slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1081
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1082
+ draft: "draft";
1083
+ published: "published";
1084
+ archived: "archived";
1085
+ active: "active";
1086
+ }>>>;
1087
+ subtitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1088
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1089
+ }, z.core.$strict>;
1090
+ tool: z.ZodLiteral<"update_current_cms_fields">;
1091
+ }, z.core.$strict>, z.ZodTransform<{
1092
+ input: {
1093
+ fields: {
1094
+ description_json?: unknown;
1095
+ excerpt?: string | null | undefined;
1096
+ feature_image_id?: string | null | undefined;
1097
+ label?: string | null | undefined;
1098
+ meta_description?: string | null | undefined;
1099
+ meta_title?: string | null | undefined;
1100
+ published_at?: string | null | undefined;
1101
+ short_description?: string | null | undefined;
1102
+ slug?: string | undefined;
1103
+ status?: "draft" | "published" | "archived" | "active" | undefined;
1104
+ subtitle?: string | null | undefined;
1105
+ title?: string | undefined;
1106
+ };
1107
+ cmsTarget?: {
1108
+ contentType?: "page" | "post" | "product" | undefined;
1109
+ entityId?: string | number | undefined;
1110
+ slug?: string | undefined;
1111
+ title?: string | undefined;
1112
+ } | undefined;
1113
+ };
1114
+ tool: "update_current_cms_fields";
1115
+ }, {
1116
+ fields: {
1117
+ description_json?: unknown;
1118
+ excerpt?: string | null | undefined;
1119
+ feature_image_id?: string | null | undefined;
1120
+ label?: string | null | undefined;
1121
+ meta_description?: string | null | undefined;
1122
+ meta_title?: string | null | undefined;
1123
+ published_at?: string | null | undefined;
1124
+ short_description?: string | null | undefined;
1125
+ slug?: string | undefined;
1126
+ status?: "draft" | "published" | "archived" | "active" | undefined;
1127
+ subtitle?: string | null | undefined;
1128
+ title?: string | undefined;
1129
+ };
1130
+ tool: "update_current_cms_fields";
1131
+ cmsTarget?: {
1132
+ contentType?: "page" | "post" | "product" | undefined;
1133
+ entityId?: string | number | undefined;
1134
+ slug?: string | undefined;
1135
+ title?: string | undefined;
1136
+ } | undefined;
1137
+ }>>, z.ZodPipe<z.ZodObject<{
1138
+ copyright: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1139
+ languageCode: z.ZodDefault<z.ZodString>;
1140
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1141
+ label: z.ZodString;
1142
+ target: z.ZodOptional<z.ZodEnum<{
1143
+ _blank: "_blank";
1144
+ _self: "_self";
1145
+ }>>;
1146
+ url: z.ZodString;
1147
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1148
+ label: z.ZodString;
1149
+ target: z.ZodOptional<z.ZodEnum<{
1150
+ _blank: "_blank";
1151
+ _self: "_self";
1152
+ }>>;
1153
+ url: z.ZodString;
1154
+ }, z.core.$strict>>>;
1155
+ }, z.core.$strict>>>;
1156
+ tool: z.ZodLiteral<"update_footer">;
1157
+ }, z.core.$strict>, z.ZodTransform<{
1158
+ input: {
1159
+ languageCode: string;
1160
+ copyright?: Record<string, string> | undefined;
1161
+ links?: {
1162
+ label: string;
1163
+ url: string;
1164
+ target?: "_blank" | "_self" | undefined;
1165
+ children?: {
1166
+ label: string;
1167
+ url: string;
1168
+ target?: "_blank" | "_self" | undefined;
1169
+ }[] | undefined;
1170
+ }[] | undefined;
1171
+ };
1172
+ tool: "update_footer";
1173
+ }, {
1174
+ languageCode: string;
1175
+ tool: "update_footer";
1176
+ copyright?: Record<string, string> | undefined;
1177
+ links?: {
1178
+ label: string;
1179
+ url: string;
1180
+ target?: "_blank" | "_self" | undefined;
1181
+ children?: {
1182
+ label: string;
1183
+ url: string;
1184
+ target?: "_blank" | "_self" | undefined;
1185
+ }[] | undefined;
1186
+ }[] | undefined;
1187
+ }>>, z.ZodPipe<z.ZodObject<{
1188
+ items: z.ZodArray<z.ZodObject<{
1189
+ label: z.ZodString;
1190
+ target: z.ZodOptional<z.ZodEnum<{
1191
+ _blank: "_blank";
1192
+ _self: "_self";
1193
+ }>>;
1194
+ url: z.ZodString;
1195
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1196
+ label: z.ZodString;
1197
+ target: z.ZodOptional<z.ZodEnum<{
1198
+ _blank: "_blank";
1199
+ _self: "_self";
1200
+ }>>;
1201
+ url: z.ZodString;
1202
+ }, z.core.$strict>>>;
1203
+ }, z.core.$strict>>;
1204
+ languageCode: z.ZodDefault<z.ZodString>;
1205
+ match: z.ZodOptional<z.ZodObject<{
1206
+ label: z.ZodOptional<z.ZodString>;
1207
+ url: z.ZodOptional<z.ZodString>;
1208
+ }, z.core.$strict>>;
1209
+ mode: z.ZodDefault<z.ZodEnum<{
1210
+ replace: "replace";
1211
+ update: "update";
1212
+ append: "append";
1213
+ }>>;
1214
+ tool: z.ZodLiteral<"update_navigation_bar">;
1215
+ }, z.core.$strict>, z.ZodTransform<{
1216
+ input: {
1217
+ items: {
1218
+ label: string;
1219
+ url: string;
1220
+ target?: "_blank" | "_self" | undefined;
1221
+ children?: {
1222
+ label: string;
1223
+ url: string;
1224
+ target?: "_blank" | "_self" | undefined;
1225
+ }[] | undefined;
1226
+ }[];
1227
+ languageCode: string;
1228
+ mode: "replace" | "update" | "append";
1229
+ match?: {
1230
+ label?: string | undefined;
1231
+ url?: string | undefined;
1232
+ } | undefined;
1233
+ };
1234
+ tool: "update_navigation_bar";
1235
+ }, {
1236
+ items: {
1237
+ label: string;
1238
+ url: string;
1239
+ target?: "_blank" | "_self" | undefined;
1240
+ children?: {
1241
+ label: string;
1242
+ url: string;
1243
+ target?: "_blank" | "_self" | undefined;
1244
+ }[] | undefined;
1245
+ }[];
1246
+ languageCode: string;
1247
+ mode: "replace" | "update" | "append";
1248
+ tool: "update_navigation_bar";
1249
+ match?: {
1250
+ label?: string | undefined;
1251
+ url?: string | undefined;
1252
+ } | undefined;
1253
+ }>>, z.ZodPipe<z.ZodObject<{
1254
+ blockIndex: z.ZodNumber;
1255
+ blockType: z.ZodOptional<z.ZodString>;
1256
+ cmsTarget: z.ZodOptional<z.ZodObject<{
1257
+ contentType: z.ZodOptional<z.ZodEnum<{
1258
+ page: "page";
1259
+ post: "post";
1260
+ product: "product";
1261
+ }>>;
1262
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1263
+ slug: z.ZodOptional<z.ZodString>;
1264
+ title: z.ZodOptional<z.ZodString>;
1265
+ }, z.core.$strict>>;
1266
+ columnIndex: z.ZodNumber;
1267
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1268
+ parentBlockId: z.ZodNumber;
1269
+ tool: z.ZodLiteral<"update_section_column_block">;
1270
+ }, z.core.$strict>, z.ZodTransform<{
1271
+ input: {
1272
+ blockIndex: number;
1273
+ columnIndex: number;
1274
+ content: Record<string, unknown>;
1275
+ parentBlockId: number;
1276
+ blockType?: string | undefined;
1277
+ cmsTarget?: {
1278
+ contentType?: "page" | "post" | "product" | undefined;
1279
+ entityId?: string | number | undefined;
1280
+ slug?: string | undefined;
1281
+ title?: string | undefined;
1282
+ } | undefined;
1283
+ };
1284
+ tool: "update_section_column_block";
1285
+ }, {
1286
+ blockIndex: number;
1287
+ columnIndex: number;
1288
+ content: Record<string, unknown>;
1289
+ parentBlockId: number;
1290
+ tool: "update_section_column_block";
1291
+ blockType?: string | undefined;
1292
+ cmsTarget?: {
1293
+ contentType?: "page" | "post" | "product" | undefined;
1294
+ entityId?: string | number | undefined;
1295
+ slug?: string | undefined;
1296
+ title?: string | undefined;
1297
+ } | undefined;
1298
+ }>>, z.ZodPipe<z.ZodObject<{
1299
+ contentType: z.ZodOptional<z.ZodEnum<{
1300
+ page: "page";
1301
+ post: "post";
1302
+ product: "product";
1303
+ }>>;
1304
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1305
+ slug: z.ZodOptional<z.ZodString>;
1306
+ title: z.ZodOptional<z.ZodString>;
1307
+ images: z.ZodArray<z.ZodString>;
1308
+ tool: z.ZodLiteral<"set_content_images">;
1309
+ }, z.core.$strict>, z.ZodTransform<{
1310
+ input: {
1311
+ images: string[];
1312
+ contentType?: "page" | "post" | "product" | undefined;
1313
+ entityId?: string | number | undefined;
1314
+ slug?: string | undefined;
1315
+ title?: string | undefined;
1316
+ };
1317
+ tool: "set_content_images";
1318
+ }, {
1319
+ images: string[];
1320
+ tool: "set_content_images";
1321
+ contentType?: "page" | "post" | "product" | undefined;
1322
+ entityId?: string | number | undefined;
1323
+ slug?: string | undefined;
1324
+ title?: string | undefined;
1325
+ }>>]>, z.ZodPipe<z.ZodString, z.ZodTransform<{
1326
+ input: {
1327
+ status: "draft" | "published" | "archived";
1328
+ title: string;
1329
+ blocks?: {
1330
+ blockType: string;
1331
+ content: Record<string, unknown>;
1332
+ order?: number | undefined;
1333
+ }[] | undefined;
1334
+ contactEmail?: string | undefined;
1335
+ feature_image_id?: string | null | undefined;
1336
+ languageCode?: string | undefined;
1337
+ meta_description?: string | null | undefined;
1338
+ meta_title?: string | null | undefined;
1339
+ slug?: string | undefined;
1340
+ translationGroupId?: string | undefined;
1341
+ };
1342
+ tool: "create_cms_page";
1343
+ } | {
1344
+ input: {
1345
+ status: "draft" | "published" | "archived";
1346
+ title: string;
1347
+ blocks?: {
1348
+ blockType: string;
1349
+ content: Record<string, unknown>;
1350
+ order?: number | undefined;
1351
+ }[] | undefined;
1352
+ excerpt?: string | null | undefined;
1353
+ feature_image_id?: string | null | undefined;
1354
+ label?: string | null | undefined;
1355
+ languageCode?: string | undefined;
1356
+ meta_description?: string | null | undefined;
1357
+ meta_title?: string | null | undefined;
1358
+ published_at?: string | null | undefined;
1359
+ slug?: string | undefined;
1360
+ subtitle?: string | null | undefined;
1361
+ translationGroupId?: string | undefined;
1362
+ };
1363
+ tool: "create_cms_post";
1364
+ } | {
1365
+ input: {
1366
+ is_taxable: boolean;
1367
+ payment_provider: "stripe" | "freemius";
1368
+ price: number;
1369
+ product_type: "physical" | "digital";
1370
+ status: "draft" | "archived" | "active";
1371
+ stock: number;
1372
+ title: string;
1373
+ trial_period_days: number;
1374
+ trial_requires_payment_method: boolean;
1375
+ blocks?: {
1376
+ blockType: string;
1377
+ content: Record<string, unknown>;
1378
+ order?: number | undefined;
1379
+ }[] | undefined;
1380
+ description_html?: string | undefined;
1381
+ description_json?: unknown;
1382
+ freemius_plan_id?: string | undefined;
1383
+ freemius_product_id?: string | undefined;
1384
+ images?: string[] | undefined;
1385
+ languageCode?: string | undefined;
1386
+ meta_description?: string | null | undefined;
1387
+ meta_title?: string | null | undefined;
1388
+ prices?: Record<string, number> | undefined;
1389
+ sale_price?: number | null | undefined;
1390
+ sale_prices?: Record<string, number | null> | undefined;
1391
+ short_description?: string | null | undefined;
1392
+ sku?: string | undefined;
1393
+ slug?: string | undefined;
1394
+ translationGroupId?: string | undefined;
1395
+ upc?: string | null | undefined;
1396
+ };
1397
+ tool: "create_cms_product";
1398
+ } | {
1399
+ input: {
1400
+ contentType?: "page" | "post" | "product" | undefined;
1401
+ entityId?: string | number | undefined;
1402
+ slug?: string | undefined;
1403
+ title?: string | undefined;
1404
+ };
1405
+ tool: "delete_cms_item";
1406
+ } | {
1407
+ input: {
1408
+ field: string;
1409
+ value: unknown;
1410
+ contentType?: "page" | "post" | "product" | undefined;
1411
+ entityId?: string | number | undefined;
1412
+ slug?: string | undefined;
1413
+ title?: string | undefined;
1414
+ currencyCode?: string | undefined;
1415
+ endsAt?: string | null | undefined;
1416
+ startsAt?: string | null | undefined;
1417
+ };
1418
+ tool: "update_cms_item_field";
1419
+ } | {
1420
+ input: {
1421
+ blockId: number;
1422
+ content: Record<string, unknown>;
1423
+ blockType?: string | undefined;
1424
+ cmsTarget?: {
1425
+ contentType?: "page" | "post" | "product" | undefined;
1426
+ entityId?: string | number | undefined;
1427
+ slug?: string | undefined;
1428
+ title?: string | undefined;
1429
+ } | undefined;
1430
+ };
1431
+ tool: "update_content_block";
1432
+ } | {
1433
+ input: {
1434
+ block: {
1435
+ blockType: string;
1436
+ content: Record<string, unknown>;
1437
+ order?: number | undefined;
1438
+ };
1439
+ position: "start" | "end" | "before" | "after";
1440
+ contentType?: "page" | "post" | "product" | undefined;
1441
+ entityId?: string | number | undefined;
1442
+ slug?: string | undefined;
1443
+ title?: string | undefined;
1444
+ anchorBlockId?: number | undefined;
1445
+ anchorBlockType?: string | undefined;
1446
+ };
1447
+ tool: "insert_content_block";
1448
+ } | {
1449
+ input: {
1450
+ fields: {
1451
+ description_json?: unknown;
1452
+ excerpt?: string | null | undefined;
1453
+ feature_image_id?: string | null | undefined;
1454
+ label?: string | null | undefined;
1455
+ meta_description?: string | null | undefined;
1456
+ meta_title?: string | null | undefined;
1457
+ published_at?: string | null | undefined;
1458
+ short_description?: string | null | undefined;
1459
+ slug?: string | undefined;
1460
+ status?: "draft" | "published" | "archived" | "active" | undefined;
1461
+ subtitle?: string | null | undefined;
1462
+ title?: string | undefined;
1463
+ };
1464
+ cmsTarget?: {
1465
+ contentType?: "page" | "post" | "product" | undefined;
1466
+ entityId?: string | number | undefined;
1467
+ slug?: string | undefined;
1468
+ title?: string | undefined;
1469
+ } | undefined;
1470
+ };
1471
+ tool: "update_current_cms_fields";
1472
+ } | {
1473
+ input: {
1474
+ languageCode: string;
1475
+ copyright?: Record<string, string> | undefined;
1476
+ links?: {
1477
+ label: string;
1478
+ url: string;
1479
+ target?: "_blank" | "_self" | undefined;
1480
+ children?: {
1481
+ label: string;
1482
+ url: string;
1483
+ target?: "_blank" | "_self" | undefined;
1484
+ }[] | undefined;
1485
+ }[] | undefined;
1486
+ };
1487
+ tool: "update_footer";
1488
+ } | {
1489
+ input: {
1490
+ items: {
1491
+ label: string;
1492
+ url: string;
1493
+ target?: "_blank" | "_self" | undefined;
1494
+ children?: {
1495
+ label: string;
1496
+ url: string;
1497
+ target?: "_blank" | "_self" | undefined;
1498
+ }[] | undefined;
1499
+ }[];
1500
+ languageCode: string;
1501
+ mode: "replace" | "update" | "append";
1502
+ match?: {
1503
+ label?: string | undefined;
1504
+ url?: string | undefined;
1505
+ } | undefined;
1506
+ };
1507
+ tool: "update_navigation_bar";
1508
+ } | {
1509
+ input: {
1510
+ blockIndex: number;
1511
+ columnIndex: number;
1512
+ content: Record<string, unknown>;
1513
+ parentBlockId: number;
1514
+ blockType?: string | undefined;
1515
+ cmsTarget?: {
1516
+ contentType?: "page" | "post" | "product" | undefined;
1517
+ entityId?: string | number | undefined;
1518
+ slug?: string | undefined;
1519
+ title?: string | undefined;
1520
+ } | undefined;
1521
+ };
1522
+ tool: "update_section_column_block";
1523
+ } | {
1524
+ input: {
1525
+ images: string[];
1526
+ contentType?: "page" | "post" | "product" | undefined;
1527
+ entityId?: string | number | undefined;
1528
+ slug?: string | undefined;
1529
+ title?: string | undefined;
1530
+ };
1531
+ tool: "set_content_images";
1532
+ }, string>>]>>;
1533
+ summary: z.ZodOptional<z.ZodString>;
1534
+ }, z.core.$strict>;
1535
+ export type NavigationItemInput = z.infer<typeof navigationItemInputSchema>;
1536
+ export type UpdateNavigationBarInput = z.infer<typeof updateNavigationBarInputSchema>;
1537
+ export type UpdateFooterInput = z.infer<typeof updateFooterInputSchema>;
1538
+ export type SearchDocumentationInput = z.infer<typeof searchDocumentationInputSchema>;
1539
+ export type FetchEcommerceStatsInput = z.input<typeof fetchEcommerceStatsInputSchema>;
1540
+ export type CortexAiPageContext = z.infer<typeof cortexAiPageContextSchema>;
1541
+ export type ReadCurrentCmsItemInput = z.infer<typeof readCurrentCmsItemInputSchema>;
1542
+ export type UpdateCurrentCmsFieldsInput = z.infer<typeof updateCurrentCmsFieldsInputSchema>;
1543
+ export type UpdateContentBlockInput = z.infer<typeof updateContentBlockInputSchema>;
1544
+ export type InsertContentBlockInput = z.infer<typeof insertContentBlockInputSchema>;
1545
+ export type UpdateSectionColumnBlockInput = z.infer<typeof updateSectionColumnBlockInputSchema>;
1546
+ export type CreateCmsPageInput = z.infer<typeof createCmsPageInputSchema>;
1547
+ export type CreateCmsPostInput = z.infer<typeof createCmsPostInputSchema>;
1548
+ export type CreateCmsProductInput = z.input<typeof createCmsProductInputSchema>;
1549
+ export type UpdateCmsItemFieldInput = z.infer<typeof updateCmsItemFieldInputSchema>;
1550
+ export type PrepareDeleteCmsItemInput = z.infer<typeof prepareDeleteCmsItemInputSchema>;
1551
+ export type DeleteCmsItemInput = z.infer<typeof deleteCmsItemInputSchema>;
1552
+ export type ExecuteCmsActionPlanInput = z.infer<typeof executeCmsActionPlanInputSchema>;
1553
+ export declare function buildVisibleContactIntroActionPlan(message: string): ExecuteCmsActionPlanInput | null;
1554
+ export declare function executeUpdateNavigationBar(input: UpdateNavigationBarInput, context?: ToolExecutionContext): Promise<{
1555
+ confirmationPhrase: string;
1556
+ mutationExecuted: boolean;
1557
+ preview: Record<string, unknown>;
1558
+ requiresConfirmation: boolean;
1559
+ success: boolean;
1560
+ } | {
1561
+ mutationExecuted: boolean;
1562
+ mode: "replace" | "update" | "append";
1563
+ success: boolean;
1564
+ insertedCount: number;
1565
+ languageCode: string;
1566
+ menuKey: MenuKey;
1567
+ skippedCount: number;
1568
+ updatedCount: number;
1569
+ }>;
1570
+ export declare function executeUpdateFooter(input: UpdateFooterInput, context?: ToolExecutionContext): Promise<{
1571
+ confirmationPhrase: string;
1572
+ mutationExecuted: boolean;
1573
+ preview: Record<string, unknown>;
1574
+ requiresConfirmation: boolean;
1575
+ success: boolean;
1576
+ } | {
1577
+ copyrightUpdated: boolean;
1578
+ footerNavigation: {
1579
+ insertedCount: number;
1580
+ languageCode: string;
1581
+ menuKey: "FOOTER";
1582
+ skippedCount: number;
1583
+ updatedCount: number;
1584
+ } | null;
1585
+ mutationExecuted: boolean;
1586
+ success: boolean;
1587
+ }>;
1588
+ export declare function executeSearchDocumentation(input: SearchDocumentationInput, context?: ToolExecutionContext): Promise<{
1589
+ query: string;
1590
+ results: {
1591
+ excerpt: string;
1592
+ source: "page" | "post";
1593
+ title: string;
1594
+ url: string;
1595
+ }[];
1596
+ success: boolean;
1597
+ }>;
1598
+ export declare function executeSearchDocumentationWithTimeout(input: SearchDocumentationInput, context?: ToolExecutionContext, timeoutMs?: number): Promise<{
1599
+ query: string;
1600
+ results: {
1601
+ excerpt: string;
1602
+ source: "page" | "post";
1603
+ title: string;
1604
+ url: string;
1605
+ }[];
1606
+ success: boolean;
1607
+ }>;
1608
+ export declare function executeFetchEcommerceStats(input: FetchEcommerceStatsInput, context?: ToolExecutionContext): Promise<{
1609
+ report: Record<string, any>;
1610
+ success: boolean;
1611
+ }>;
1612
+ export declare function executeReadCurrentCmsItem(input: ReadCurrentCmsItemInput, context?: ToolExecutionContext): Promise<{
1613
+ blocks: {
1614
+ blockType: any;
1615
+ content: any;
1616
+ id: any;
1617
+ languageId: any;
1618
+ order: any;
1619
+ pageId: any;
1620
+ postId: any;
1621
+ }[];
1622
+ context: {
1623
+ contentType: "page" | "post" | "product";
1624
+ entityId: string | number;
1625
+ currentEditor?: {
1626
+ blockId?: string | number | null | undefined;
1627
+ blockType?: string | null | undefined;
1628
+ field?: string | null | undefined;
1629
+ } | undefined;
1630
+ languageId?: number | null | undefined;
1631
+ slug?: string | null | undefined;
1632
+ title?: string | null | undefined;
1633
+ translationGroupId?: string | null | undefined;
1634
+ };
1635
+ item: any;
1636
+ success: boolean;
1637
+ }>;
1638
+ export declare function executeUpdateCurrentCmsFields(input: UpdateCurrentCmsFieldsInput, context?: ToolExecutionContext): Promise<{
1639
+ confirmationPhrase: string;
1640
+ mutationExecuted: boolean;
1641
+ preview: Record<string, unknown>;
1642
+ requiresConfirmation: boolean;
1643
+ success: boolean;
1644
+ } | {
1645
+ contentType: "page" | "post" | "product";
1646
+ entityId: string | number;
1647
+ mutationExecuted: boolean;
1648
+ slug: any;
1649
+ success: boolean;
1650
+ updatedFields: string[];
1651
+ }>;
1652
+ export declare function executeUpdateContentBlock(input: UpdateContentBlockInput, context?: ToolExecutionContext): Promise<{
1653
+ confirmationPhrase: string;
1654
+ mutationExecuted: boolean;
1655
+ preview: Record<string, unknown>;
1656
+ requiresConfirmation: boolean;
1657
+ success: boolean;
1658
+ } | {
1659
+ blockId: any;
1660
+ blockType: any;
1661
+ contentUpdated: boolean;
1662
+ mutationExecuted: boolean;
1663
+ success: boolean;
1664
+ }>;
1665
+ export declare function executeInsertContentBlock(input: InsertContentBlockInput, context?: ToolExecutionContext): Promise<{
1666
+ confirmationPhrase: string;
1667
+ mutationExecuted: boolean;
1668
+ preview: Record<string, unknown>;
1669
+ requiresConfirmation: boolean;
1670
+ success: boolean;
1671
+ } | {
1672
+ blockId: any;
1673
+ blockType: any;
1674
+ contentType: "page" | "post" | "product";
1675
+ entityId: any;
1676
+ mutationExecuted: boolean;
1677
+ order: any;
1678
+ success: boolean;
1679
+ }>;
1680
+ export declare function executeUpdateSectionColumnBlock(input: UpdateSectionColumnBlockInput, context?: ToolExecutionContext): Promise<{
1681
+ confirmationPhrase: string;
1682
+ mutationExecuted: boolean;
1683
+ preview: Record<string, unknown>;
1684
+ requiresConfirmation: boolean;
1685
+ success: boolean;
1686
+ } | {
1687
+ blockIndex: number;
1688
+ columnIndex: number;
1689
+ mutationExecuted: boolean;
1690
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1691
+ parentBlockId: any;
1692
+ parentBlockType: any;
1693
+ success: boolean;
1694
+ }>;
1695
+ export declare function executeCreateCmsPage(input: z.input<typeof createCmsPageInputSchema>, context?: ToolExecutionContext): Promise<{
1696
+ confirmationPhrase: string;
1697
+ mutationExecuted: boolean;
1698
+ preview: Record<string, unknown>;
1699
+ requiresConfirmation: boolean;
1700
+ success: boolean;
1701
+ } | {
1702
+ duplicate: boolean;
1703
+ existingItem: any;
1704
+ mutationExecuted: boolean;
1705
+ success: boolean;
1706
+ message: string;
1707
+ } | {
1708
+ message: string;
1709
+ mutationExecuted: boolean;
1710
+ success: boolean;
1711
+ duplicateTranslation?: undefined;
1712
+ existingItem?: undefined;
1713
+ } | {
1714
+ duplicateTranslation: boolean;
1715
+ existingItem: any;
1716
+ message: string;
1717
+ mutationExecuted: boolean;
1718
+ success: boolean;
1719
+ } | {
1720
+ blockCount: number;
1721
+ contentType: string;
1722
+ editPath: string;
1723
+ entityId: any;
1724
+ mutationExecuted: boolean;
1725
+ slug: string;
1726
+ success: boolean;
1727
+ title: string;
1728
+ translationGroupId: any;
1729
+ }>;
1730
+ export declare function executeCreateCmsPost(input: CreateCmsPostInput, context?: ToolExecutionContext): Promise<{
1731
+ confirmationPhrase: string;
1732
+ mutationExecuted: boolean;
1733
+ preview: Record<string, unknown>;
1734
+ requiresConfirmation: boolean;
1735
+ success: boolean;
1736
+ } | {
1737
+ duplicate: boolean;
1738
+ existingItem: any;
1739
+ mutationExecuted: boolean;
1740
+ success: boolean;
1741
+ message: string;
1742
+ } | {
1743
+ message: string;
1744
+ mutationExecuted: boolean;
1745
+ success: boolean;
1746
+ duplicateTranslation?: undefined;
1747
+ existingItem?: undefined;
1748
+ } | {
1749
+ duplicateTranslation: boolean;
1750
+ existingItem: any;
1751
+ message: string;
1752
+ mutationExecuted: boolean;
1753
+ success: boolean;
1754
+ } | {
1755
+ blockCount: number;
1756
+ contentType: string;
1757
+ editPath: string;
1758
+ entityId: any;
1759
+ mutationExecuted: boolean;
1760
+ slug: string;
1761
+ success: boolean;
1762
+ title: string;
1763
+ translationGroupId: any;
1764
+ }>;
1765
+ export declare function executeCreateCmsProduct(input: CreateCmsProductInput, context?: ToolExecutionContext): Promise<{
1766
+ confirmationPhrase: string;
1767
+ mutationExecuted: boolean;
1768
+ preview: Record<string, unknown>;
1769
+ requiresConfirmation: boolean;
1770
+ success: boolean;
1771
+ } | {
1772
+ duplicate: boolean;
1773
+ existingItem: any;
1774
+ mutationExecuted: boolean;
1775
+ success: boolean;
1776
+ message: string;
1777
+ } | {
1778
+ message: string;
1779
+ mutationExecuted: boolean;
1780
+ success: boolean;
1781
+ duplicateTranslation?: undefined;
1782
+ existingItem?: undefined;
1783
+ } | {
1784
+ duplicateTranslation: boolean;
1785
+ existingItem: any;
1786
+ message: string;
1787
+ mutationExecuted: boolean;
1788
+ success: boolean;
1789
+ } | {
1790
+ mutationExecuted: boolean;
1791
+ slug: string;
1792
+ success: boolean;
1793
+ title: string;
1794
+ translationGroupId: string;
1795
+ imageError?: string | undefined;
1796
+ blockCount: number;
1797
+ contentType: string;
1798
+ editPath: string;
1799
+ entityId: string;
1800
+ imageCount: number;
1801
+ }>;
1802
+ export declare function executeUpdateCmsItemField(input: UpdateCmsItemFieldInput, context?: ToolExecutionContext): Promise<{
1803
+ confirmationPhrase: string;
1804
+ mutationExecuted: boolean;
1805
+ preview: Record<string, unknown>;
1806
+ requiresConfirmation: boolean;
1807
+ success: boolean;
1808
+ } | {
1809
+ message: string;
1810
+ mutationExecuted: boolean;
1811
+ success: boolean;
1812
+ unsupported: boolean;
1813
+ contentType?: undefined;
1814
+ entityId?: undefined;
1815
+ field?: undefined;
1816
+ slug?: undefined;
1817
+ updatedFields?: undefined;
1818
+ } | {
1819
+ contentType: string;
1820
+ entityId: any;
1821
+ field: string;
1822
+ mutationExecuted: boolean;
1823
+ slug: any;
1824
+ success: boolean;
1825
+ updatedFields: string[];
1826
+ message?: undefined;
1827
+ unsupported?: undefined;
1828
+ }>;
1829
+ export declare function executePrepareDeleteCmsItem(input: PrepareDeleteCmsItemInput, context?: ToolExecutionContext): Promise<{
1830
+ preparedDelete: boolean;
1831
+ confirmationPhrase: string;
1832
+ mutationExecuted: boolean;
1833
+ preview: Record<string, unknown>;
1834
+ requiresConfirmation: boolean;
1835
+ success: boolean;
1836
+ }>;
1837
+ export declare function executeDeleteCmsItem(input: DeleteCmsItemInput, context?: ToolExecutionContext): Promise<{
1838
+ confirmationPhrase: string;
1839
+ mutationExecuted: boolean;
1840
+ preview: Record<string, unknown>;
1841
+ requiresConfirmation: boolean;
1842
+ success: boolean;
1843
+ } | {
1844
+ affectedCount: number;
1845
+ collectionPath: string;
1846
+ contentType: "page" | "post" | "product";
1847
+ mutationExecuted: boolean;
1848
+ redirectPath: string;
1849
+ success: boolean;
1850
+ }>;
1851
+ export declare function executeCmsActionPlan(input: z.input<typeof executeCmsActionPlanInputSchema>, context?: ToolExecutionContext): Promise<{
1852
+ confirmationPhrase: string;
1853
+ mutationExecuted: boolean;
1854
+ preview: Record<string, unknown>;
1855
+ requiresConfirmation: boolean;
1856
+ success: boolean;
1857
+ } | {
1858
+ duplicate: boolean;
1859
+ existingItem: any;
1860
+ mutationExecuted: boolean;
1861
+ success: boolean;
1862
+ message: string;
1863
+ } | {
1864
+ message: string;
1865
+ mutationExecuted: boolean;
1866
+ success: boolean;
1867
+ duplicateTranslation?: undefined;
1868
+ existingItem?: undefined;
1869
+ } | {
1870
+ duplicateTranslation: boolean;
1871
+ existingItem: any;
1872
+ message: string;
1873
+ mutationExecuted: boolean;
1874
+ success: boolean;
1875
+ } | {
1876
+ mutationExecuted: boolean;
1877
+ mode: "replace" | "update" | "append";
1878
+ success: boolean;
1879
+ insertedCount: number;
1880
+ languageCode: string;
1881
+ menuKey: MenuKey;
1882
+ skippedCount: number;
1883
+ updatedCount: number;
1884
+ } | {
1885
+ copyrightUpdated: boolean;
1886
+ footerNavigation: {
1887
+ insertedCount: number;
1888
+ languageCode: string;
1889
+ menuKey: "FOOTER";
1890
+ skippedCount: number;
1891
+ updatedCount: number;
1892
+ } | null;
1893
+ mutationExecuted: boolean;
1894
+ success: boolean;
1895
+ } | {
1896
+ contentType: "page" | "post" | "product";
1897
+ entityId: string | number;
1898
+ mutationExecuted: boolean;
1899
+ slug: any;
1900
+ success: boolean;
1901
+ updatedFields: string[];
1902
+ } | {
1903
+ blockId: any;
1904
+ blockType: any;
1905
+ contentUpdated: boolean;
1906
+ mutationExecuted: boolean;
1907
+ success: boolean;
1908
+ } | {
1909
+ blockId: any;
1910
+ blockType: any;
1911
+ contentType: "page" | "post" | "product";
1912
+ entityId: any;
1913
+ mutationExecuted: boolean;
1914
+ order: any;
1915
+ success: boolean;
1916
+ } | {
1917
+ blockIndex: number;
1918
+ columnIndex: number;
1919
+ mutationExecuted: boolean;
1920
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1921
+ parentBlockId: any;
1922
+ parentBlockType: any;
1923
+ success: boolean;
1924
+ } | {
1925
+ blockCount: number;
1926
+ contentType: string;
1927
+ editPath: string;
1928
+ entityId: any;
1929
+ mutationExecuted: boolean;
1930
+ slug: string;
1931
+ success: boolean;
1932
+ title: string;
1933
+ translationGroupId: any;
1934
+ } | {
1935
+ message: string;
1936
+ mutationExecuted: boolean;
1937
+ success: boolean;
1938
+ unsupported: boolean;
1939
+ contentType?: undefined;
1940
+ entityId?: undefined;
1941
+ field?: undefined;
1942
+ slug?: undefined;
1943
+ updatedFields?: undefined;
1944
+ } | {
1945
+ contentType: string;
1946
+ entityId: any;
1947
+ field: string;
1948
+ mutationExecuted: boolean;
1949
+ slug: any;
1950
+ success: boolean;
1951
+ updatedFields: string[];
1952
+ message?: undefined;
1953
+ unsupported?: undefined;
1954
+ } | {
1955
+ affectedCount: number;
1956
+ collectionPath: string;
1957
+ contentType: "page" | "post" | "product";
1958
+ mutationExecuted: boolean;
1959
+ redirectPath: string;
1960
+ success: boolean;
1961
+ } | {
1962
+ contentType: string;
1963
+ entityId: string | number;
1964
+ imageCount: number;
1965
+ mutationExecuted: boolean;
1966
+ slug: any;
1967
+ success: boolean;
1968
+ extraImagesIgnored?: undefined;
1969
+ } | {
1970
+ contentType: "page" | "post" | "product";
1971
+ entityId: string | number;
1972
+ extraImagesIgnored: number;
1973
+ imageCount: number;
1974
+ mutationExecuted: boolean;
1975
+ slug: any;
1976
+ success: boolean;
1977
+ } | {
1978
+ redirectPath?: string | undefined;
1979
+ editPath?: string | undefined;
1980
+ actionCount: number;
1981
+ failedActionIndex: number;
1982
+ failedTool: "create_cms_page" | "create_cms_post" | "create_cms_product" | "delete_cms_item" | "update_cms_item_field" | "update_content_block" | "insert_content_block" | "update_current_cms_fields" | "update_footer" | "update_navigation_bar" | "update_section_column_block" | "set_content_images";
1983
+ message: string;
1984
+ mutationExecuted: boolean;
1985
+ results: {
1986
+ output: unknown;
1987
+ tool: string;
1988
+ }[];
1989
+ success: boolean;
1990
+ summary?: undefined;
1991
+ } | {
1992
+ actionCount: number;
1993
+ editPath: string | undefined;
1994
+ mutationExecuted: boolean;
1995
+ redirectPath: string | undefined;
1996
+ results: {
1997
+ output: unknown;
1998
+ tool: string;
1999
+ }[];
2000
+ success: boolean;
2001
+ summary: string | null;
2002
+ }>;
2003
+ export declare const fetchUrlContentInputSchema: z.ZodObject<{
2004
+ maxChars: z.ZodDefault<z.ZodNumber>;
2005
+ url: z.ZodString;
2006
+ }, z.core.$strict>;
2007
+ export type FetchUrlContentInput = z.input<typeof fetchUrlContentInputSchema>;
2008
+ /** Exported for the SSRF regression tests in ai-global-agent-ssrf.test.ts. */
2009
+ export declare function isBlockedFetchHost(hostname: string): boolean;
2010
+ export declare function executeFetchUrlContent(input: FetchUrlContentInput): Promise<{
2011
+ message: string;
2012
+ success: boolean;
2013
+ url: string;
2014
+ status?: undefined;
2015
+ contentType?: undefined;
2016
+ description?: undefined;
2017
+ finalUrl?: undefined;
2018
+ headings?: undefined;
2019
+ images?: undefined;
2020
+ mainImage?: undefined;
2021
+ text?: undefined;
2022
+ title?: undefined;
2023
+ truncated?: undefined;
2024
+ } | {
2025
+ message: string;
2026
+ status: number;
2027
+ success: boolean;
2028
+ url: string;
2029
+ contentType?: undefined;
2030
+ description?: undefined;
2031
+ finalUrl?: undefined;
2032
+ headings?: undefined;
2033
+ images?: undefined;
2034
+ mainImage?: undefined;
2035
+ text?: undefined;
2036
+ title?: undefined;
2037
+ truncated?: undefined;
2038
+ } | {
2039
+ contentType: string;
2040
+ message: string;
2041
+ success: boolean;
2042
+ url: string;
2043
+ status?: undefined;
2044
+ description?: undefined;
2045
+ finalUrl?: undefined;
2046
+ headings?: undefined;
2047
+ images?: undefined;
2048
+ mainImage?: undefined;
2049
+ text?: undefined;
2050
+ title?: undefined;
2051
+ truncated?: undefined;
2052
+ } | {
2053
+ description: string;
2054
+ finalUrl: string;
2055
+ headings: string[];
2056
+ images: string[];
2057
+ mainImage: string;
2058
+ success: boolean;
2059
+ text: string;
2060
+ title: string;
2061
+ truncated: boolean;
2062
+ url: string;
2063
+ message?: undefined;
2064
+ status?: undefined;
2065
+ contentType?: undefined;
2066
+ }>;
2067
+ export declare const searchStockPhotosInputSchema: z.ZodObject<{
2068
+ count: z.ZodDefault<z.ZodNumber>;
2069
+ orientation: z.ZodOptional<z.ZodEnum<{
2070
+ landscape: "landscape";
2071
+ portrait: "portrait";
2072
+ square: "square";
2073
+ }>>;
2074
+ query: z.ZodString;
2075
+ }, z.core.$strict>;
2076
+ export type SearchStockPhotosInput = z.input<typeof searchStockPhotosInputSchema>;
2077
+ type CortexAiStockPhotoProvider = {
2078
+ apiKey: string;
2079
+ provider: 'pexels' | 'unsplash';
2080
+ };
2081
+ /**
2082
+ * Resolve ALL configured stock-photo providers, ordered by preference: Pexels
2083
+ * first, then Unsplash. Each provider's key comes from an admin-stored, encrypted
2084
+ * site_settings row (read via the service-role client) if present, else the
2085
+ * PEXELS_API_KEY / UNSPLASH_ACCESS_KEY env var. The tool tries them in order,
2086
+ * falling back to the next provider when one is rate-limited or errors.
2087
+ *
2088
+ * ai-config (which pulls in server-only secret crypto) is imported lazily so this
2089
+ * module's static graph stays test-friendly; the DB branch only runs server-side.
2090
+ */
2091
+ export declare function resolveCortexAiStockPhotoProviders(supabase?: SupabaseLike): Promise<CortexAiStockPhotoProvider[]>;
2092
+ /** The primary (first-preference) stock-photo provider, or null when none configured. */
2093
+ export declare function resolveCortexAiStockPhotoProvider(supabase?: SupabaseLike): Promise<CortexAiStockPhotoProvider | null>;
2094
+ /**
2095
+ * Fire the Unsplash download-trigger endpoint for every Unsplash photo placed in
2096
+ * the given blocks. Required by the Unsplash API Guidelines when a photo is used.
2097
+ * Best-effort and fire-and-forget: it resolves the Unsplash key, dedupes, and
2098
+ * never blocks or fails the mutation.
2099
+ */
2100
+ export declare function maybeTriggerStockPhotoDownloads(blocks: Array<{
2101
+ content?: unknown;
2102
+ } | null | undefined>, supabase?: SupabaseLike): Promise<void>;
2103
+ export declare function executeSearchStockPhotos(input: SearchStockPhotosInput, context?: ToolExecutionContext): Promise<{
2104
+ message: string;
2105
+ photos: never[];
2106
+ success: boolean;
2107
+ attemptedProviders?: undefined;
2108
+ provider?: undefined;
2109
+ query?: undefined;
2110
+ usageGuidance?: undefined;
2111
+ } | {
2112
+ attemptedProviders: string[];
2113
+ photos: any;
2114
+ provider: "pexels" | "unsplash";
2115
+ query: string;
2116
+ success: boolean;
2117
+ usageGuidance: string;
2118
+ message?: undefined;
2119
+ } | {
2120
+ attemptedProviders: string[];
2121
+ message: string;
2122
+ photos: never[];
2123
+ success: boolean;
2124
+ provider?: undefined;
2125
+ query?: undefined;
2126
+ usageGuidance?: undefined;
2127
+ }>;
2128
+ export declare const rewritePageDraftInputSchema: z.ZodObject<{
2129
+ contentType: z.ZodOptional<z.ZodEnum<{
2130
+ page: "page";
2131
+ post: "post";
2132
+ product: "product";
2133
+ }>>;
2134
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2135
+ slug: z.ZodOptional<z.ZodString>;
2136
+ title: z.ZodOptional<z.ZodString>;
2137
+ blocks: z.ZodArray<z.ZodObject<{
2138
+ blockType: z.ZodString;
2139
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2140
+ order: z.ZodOptional<z.ZodNumber>;
2141
+ }, z.core.$strict>>;
2142
+ meta: z.ZodOptional<z.ZodObject<{
2143
+ meta_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2144
+ meta_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
2145
+ slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2146
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
2147
+ draft: "draft";
2148
+ published: "published";
2149
+ archived: "archived";
2150
+ }>>>;
2151
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2152
+ }, z.core.$strict>>;
2153
+ }, z.core.$strict>;
2154
+ export type RewritePageDraftInput = z.infer<typeof rewritePageDraftInputSchema>;
2155
+ export declare function executeRewritePageDraft(input: RewritePageDraftInput, context?: ToolExecutionContext): Promise<{
2156
+ confirmationPhrase: string;
2157
+ mutationExecuted: boolean;
2158
+ preview: Record<string, unknown>;
2159
+ requiresConfirmation: boolean;
2160
+ success: boolean;
2161
+ } | {
2162
+ blockCount: number;
2163
+ contentType: "page" | "post";
2164
+ draftPreviewPath: string | null;
2165
+ editPath: string;
2166
+ entityId: number;
2167
+ isDraft: boolean;
2168
+ mutationExecuted: boolean;
2169
+ slug: string;
2170
+ success: boolean;
2171
+ title: string;
2172
+ }>;
2173
+ export declare const manageProductVariantsInputSchema: z.ZodObject<{
2174
+ attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2175
+ name: z.ZodString;
2176
+ terms: z.ZodArray<z.ZodString>;
2177
+ }, z.core.$strict>>>;
2178
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2179
+ mode: z.ZodDefault<z.ZodEnum<{
2180
+ replace: "replace";
2181
+ append: "append";
2182
+ }>>;
2183
+ slug: z.ZodOptional<z.ZodString>;
2184
+ title: z.ZodOptional<z.ZodString>;
2185
+ variants: z.ZodArray<z.ZodObject<{
2186
+ image: z.ZodOptional<z.ZodString>;
2187
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
2188
+ price: z.ZodOptional<z.ZodNumber>;
2189
+ sale_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2190
+ sku: z.ZodString;
2191
+ stock: z.ZodDefault<z.ZodNumber>;
2192
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2193
+ }, z.core.$strict>>;
2194
+ }, z.core.$strict>;
2195
+ export type ManageProductVariantsInput = z.infer<typeof manageProductVariantsInputSchema>;
2196
+ export declare function executeManageProductVariants(input: ManageProductVariantsInput, context?: ToolExecutionContext): Promise<{
2197
+ confirmationPhrase: string;
2198
+ mutationExecuted: boolean;
2199
+ preview: Record<string, unknown>;
2200
+ requiresConfirmation: boolean;
2201
+ success: boolean;
2202
+ } | {
2203
+ contentType: string;
2204
+ entityId: string;
2205
+ mode: "replace" | "append";
2206
+ mutationExecuted: boolean;
2207
+ skus: string[];
2208
+ slug: any;
2209
+ success: boolean;
2210
+ totalStock: any;
2211
+ variantCount: number;
2212
+ }>;
2213
+ export declare const translateContentBulkInputSchema: z.ZodObject<{
2214
+ items: z.ZodArray<z.ZodObject<{
2215
+ contentType: z.ZodDefault<z.ZodEnum<{
2216
+ page: "page";
2217
+ post: "post";
2218
+ }>>;
2219
+ slug: z.ZodString;
2220
+ title: z.ZodOptional<z.ZodString>;
2221
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
2222
+ }, z.core.$strict>>;
2223
+ targetLanguageCode: z.ZodString;
2224
+ }, z.core.$strict>;
2225
+ export type TranslateContentBulkInput = z.infer<typeof translateContentBulkInputSchema>;
2226
+ export declare function executeTranslateContentBulk(input: TranslateContentBulkInput, context?: ToolExecutionContext): Promise<{
2227
+ confirmationPhrase: string;
2228
+ mutationExecuted: boolean;
2229
+ preview: Record<string, unknown>;
2230
+ requiresConfirmation: boolean;
2231
+ success: boolean;
2232
+ } | {
2233
+ failed: {
2234
+ error: string;
2235
+ slug: string;
2236
+ }[];
2237
+ failedCount: number;
2238
+ mutationExecuted: boolean;
2239
+ success: boolean;
2240
+ targetLanguageCode: string;
2241
+ translated: Record<string, unknown>[];
2242
+ translatedCount: number;
2243
+ }>;
2244
+ export declare const publishContentDraftInputSchema: z.ZodObject<{
2245
+ action: z.ZodDefault<z.ZodEnum<{
2246
+ publish: "publish";
2247
+ discard: "discard";
2248
+ }>>;
2249
+ contentType: z.ZodOptional<z.ZodEnum<{
2250
+ page: "page";
2251
+ post: "post";
2252
+ }>>;
2253
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2254
+ slug: z.ZodOptional<z.ZodString>;
2255
+ title: z.ZodOptional<z.ZodString>;
2256
+ }, z.core.$strict>;
2257
+ export type PublishContentDraftInput = z.infer<typeof publishContentDraftInputSchema>;
2258
+ export declare function executePublishContentDraft(input: PublishContentDraftInput, context?: ToolExecutionContext): Promise<{
2259
+ confirmationPhrase: string;
2260
+ mutationExecuted: boolean;
2261
+ preview: Record<string, unknown>;
2262
+ requiresConfirmation: boolean;
2263
+ success: boolean;
2264
+ } | {
2265
+ contentType: "page" | "post";
2266
+ entityId: number;
2267
+ message: string;
2268
+ mutationExecuted: boolean;
2269
+ success: boolean;
2270
+ action?: undefined;
2271
+ } | {
2272
+ action: string;
2273
+ contentType: "page" | "post";
2274
+ entityId: number;
2275
+ mutationExecuted: boolean;
2276
+ success: boolean;
2277
+ message?: undefined;
2278
+ } | {
2279
+ warning?: string | undefined;
2280
+ action: string;
2281
+ blockCount: number;
2282
+ contentType: "page" | "post";
2283
+ entityId: number;
2284
+ mutationExecuted: boolean;
2285
+ slug: string | null | undefined;
2286
+ success: boolean;
2287
+ message?: undefined;
2288
+ }>;
2289
+ export declare const translatePageInputSchema: z.ZodObject<{
2290
+ cmsTarget: z.ZodOptional<z.ZodObject<{
2291
+ contentType: z.ZodOptional<z.ZodEnum<{
2292
+ page: "page";
2293
+ post: "post";
2294
+ product: "product";
2295
+ }>>;
2296
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2297
+ slug: z.ZodOptional<z.ZodString>;
2298
+ title: z.ZodOptional<z.ZodString>;
2299
+ }, z.core.$strict>>;
2300
+ targetLanguageCode: z.ZodString;
2301
+ title: z.ZodOptional<z.ZodString>;
2302
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
2303
+ }, z.core.$strict>;
2304
+ export type TranslatePageInput = z.infer<typeof translatePageInputSchema>;
2305
+ export declare function executeTranslatePage(input: TranslatePageInput, context?: ToolExecutionContext): Promise<{
2306
+ confirmationPhrase: string;
2307
+ mutationExecuted: boolean;
2308
+ preview: Record<string, unknown>;
2309
+ requiresConfirmation: boolean;
2310
+ success: boolean;
2311
+ } | {
2312
+ isTranslation: boolean;
2313
+ languageCode: string;
2314
+ }>;
2315
+ /**
2316
+ * Set the feature image (pages/posts) or the ordered image gallery (products)
2317
+ * for a CMS item. Each entry may be an existing media library id or an
2318
+ * external image URL (imported automatically). The first entry is the feature /
2319
+ * main image. For pages/posts only the first entry is used (they have a single
2320
+ * feature image); for products every entry becomes a product_media row in order.
2321
+ *
2322
+ * The target is the current edit context by default, but an explicit
2323
+ * contentType + slug/entityId/title targets any item — so this works from the
2324
+ * dashboard with no page open (e.g. right after create_cms_product).
2325
+ */
2326
+ export declare function executeSetContentImages(input: SetContentImagesInput, context?: ToolExecutionContext): Promise<{
2327
+ confirmationPhrase: string;
2328
+ mutationExecuted: boolean;
2329
+ preview: Record<string, unknown>;
2330
+ requiresConfirmation: boolean;
2331
+ success: boolean;
2332
+ } | {
2333
+ contentType: string;
2334
+ entityId: string | number;
2335
+ imageCount: number;
2336
+ mutationExecuted: boolean;
2337
+ slug: any;
2338
+ success: boolean;
2339
+ extraImagesIgnored?: undefined;
2340
+ } | {
2341
+ contentType: "page" | "post" | "product";
2342
+ entityId: string | number;
2343
+ extraImagesIgnored: number;
2344
+ imageCount: number;
2345
+ mutationExecuted: boolean;
2346
+ slug: any;
2347
+ success: boolean;
2348
+ }>;
2349
+ export declare function createCortexGlobalAgentTools(context?: ToolExecutionContext): {
2350
+ fetch_ecommerce_stats: import('ai').Tool<{
2351
+ query: string;
2352
+ reportType: "products" | "orders" | "general" | "revenue";
2353
+ timeRange: "today" | "this_month" | "last_7_days" | "last_30_days" | "last_month" | "last_90_days" | "all_time";
2354
+ currency?: string | undefined;
2355
+ }, {
2356
+ report: Record<string, any>;
2357
+ success: boolean;
2358
+ }>;
2359
+ read_current_cms_item: import('ai').Tool<{
2360
+ includeBlockContent: boolean;
2361
+ includeBlocks: boolean;
2362
+ cmsTarget?: {
2363
+ contentType?: "page" | "post" | "product" | undefined;
2364
+ entityId?: string | number | undefined;
2365
+ slug?: string | undefined;
2366
+ title?: string | undefined;
2367
+ } | undefined;
2368
+ }, {
2369
+ blocks: {
2370
+ blockType: any;
2371
+ content: any;
2372
+ id: any;
2373
+ languageId: any;
2374
+ order: any;
2375
+ pageId: any;
2376
+ postId: any;
2377
+ }[];
2378
+ context: {
2379
+ contentType: "page" | "post" | "product";
2380
+ entityId: string | number;
2381
+ currentEditor?: {
2382
+ blockId?: string | number | null | undefined;
2383
+ blockType?: string | null | undefined;
2384
+ field?: string | null | undefined;
2385
+ } | undefined;
2386
+ languageId?: number | null | undefined;
2387
+ slug?: string | null | undefined;
2388
+ title?: string | null | undefined;
2389
+ translationGroupId?: string | null | undefined;
2390
+ };
2391
+ item: any;
2392
+ success: boolean;
2393
+ }>;
2394
+ search_documentation: import('ai').Tool<{
2395
+ limit: number;
2396
+ query: string;
2397
+ }, {
2398
+ query: string;
2399
+ results: {
2400
+ excerpt: string;
2401
+ source: "page" | "post";
2402
+ title: string;
2403
+ url: string;
2404
+ }[];
2405
+ success: boolean;
2406
+ }>;
2407
+ fetch_url_content: import('ai').Tool<{
2408
+ maxChars: number;
2409
+ url: string;
2410
+ }, {
2411
+ message: string;
2412
+ success: boolean;
2413
+ url: string;
2414
+ status?: undefined;
2415
+ contentType?: undefined;
2416
+ description?: undefined;
2417
+ finalUrl?: undefined;
2418
+ headings?: undefined;
2419
+ images?: undefined;
2420
+ mainImage?: undefined;
2421
+ text?: undefined;
2422
+ title?: undefined;
2423
+ truncated?: undefined;
2424
+ } | {
2425
+ message: string;
2426
+ status: number;
2427
+ success: boolean;
2428
+ url: string;
2429
+ contentType?: undefined;
2430
+ description?: undefined;
2431
+ finalUrl?: undefined;
2432
+ headings?: undefined;
2433
+ images?: undefined;
2434
+ mainImage?: undefined;
2435
+ text?: undefined;
2436
+ title?: undefined;
2437
+ truncated?: undefined;
2438
+ } | {
2439
+ contentType: string;
2440
+ message: string;
2441
+ success: boolean;
2442
+ url: string;
2443
+ status?: undefined;
2444
+ description?: undefined;
2445
+ finalUrl?: undefined;
2446
+ headings?: undefined;
2447
+ images?: undefined;
2448
+ mainImage?: undefined;
2449
+ text?: undefined;
2450
+ title?: undefined;
2451
+ truncated?: undefined;
2452
+ } | {
2453
+ description: string;
2454
+ finalUrl: string;
2455
+ headings: string[];
2456
+ images: string[];
2457
+ mainImage: string;
2458
+ success: boolean;
2459
+ text: string;
2460
+ title: string;
2461
+ truncated: boolean;
2462
+ url: string;
2463
+ message?: undefined;
2464
+ status?: undefined;
2465
+ contentType?: undefined;
2466
+ }>;
2467
+ search_stock_photos: import('ai').Tool<{
2468
+ count: number;
2469
+ query: string;
2470
+ orientation?: "landscape" | "portrait" | "square" | undefined;
2471
+ }, {
2472
+ message: string;
2473
+ photos: never[];
2474
+ success: boolean;
2475
+ attemptedProviders?: undefined;
2476
+ provider?: undefined;
2477
+ query?: undefined;
2478
+ usageGuidance?: undefined;
2479
+ } | {
2480
+ attemptedProviders: string[];
2481
+ photos: any;
2482
+ provider: "pexels" | "unsplash";
2483
+ query: string;
2484
+ success: boolean;
2485
+ usageGuidance: string;
2486
+ message?: undefined;
2487
+ } | {
2488
+ attemptedProviders: string[];
2489
+ message: string;
2490
+ photos: never[];
2491
+ success: boolean;
2492
+ provider?: undefined;
2493
+ query?: undefined;
2494
+ usageGuidance?: undefined;
2495
+ }>;
2496
+ manage_product_variants: import('ai').Tool<{
2497
+ mode: "replace" | "append";
2498
+ variants: {
2499
+ options: Record<string, string>;
2500
+ sku: string;
2501
+ stock: number;
2502
+ image?: string | undefined;
2503
+ price?: number | undefined;
2504
+ sale_price?: number | null | undefined;
2505
+ upc?: string | null | undefined;
2506
+ }[];
2507
+ attributes?: {
2508
+ name: string;
2509
+ terms: string[];
2510
+ }[] | undefined;
2511
+ entityId?: string | number | undefined;
2512
+ slug?: string | undefined;
2513
+ title?: string | undefined;
2514
+ }, {
2515
+ confirmationPhrase: string;
2516
+ mutationExecuted: boolean;
2517
+ preview: Record<string, unknown>;
2518
+ requiresConfirmation: boolean;
2519
+ success: boolean;
2520
+ } | {
2521
+ contentType: string;
2522
+ entityId: string;
2523
+ mode: "replace" | "append";
2524
+ mutationExecuted: boolean;
2525
+ skus: string[];
2526
+ slug: any;
2527
+ success: boolean;
2528
+ totalStock: any;
2529
+ variantCount: number;
2530
+ }>;
2531
+ translate_content_bulk: import('ai').Tool<{
2532
+ items: {
2533
+ contentType: "page" | "post";
2534
+ slug: string;
2535
+ translations: Record<string, string>;
2536
+ title?: string | undefined;
2537
+ }[];
2538
+ targetLanguageCode: string;
2539
+ }, {
2540
+ confirmationPhrase: string;
2541
+ mutationExecuted: boolean;
2542
+ preview: Record<string, unknown>;
2543
+ requiresConfirmation: boolean;
2544
+ success: boolean;
2545
+ } | {
2546
+ failed: {
2547
+ error: string;
2548
+ slug: string;
2549
+ }[];
2550
+ failedCount: number;
2551
+ mutationExecuted: boolean;
2552
+ success: boolean;
2553
+ targetLanguageCode: string;
2554
+ translated: Record<string, unknown>[];
2555
+ translatedCount: number;
2556
+ }>;
2557
+ publish_content_draft: import('ai').Tool<{
2558
+ action: "publish" | "discard";
2559
+ contentType?: "page" | "post" | undefined;
2560
+ entityId?: string | number | undefined;
2561
+ slug?: string | undefined;
2562
+ title?: string | undefined;
2563
+ }, {
2564
+ confirmationPhrase: string;
2565
+ mutationExecuted: boolean;
2566
+ preview: Record<string, unknown>;
2567
+ requiresConfirmation: boolean;
2568
+ success: boolean;
2569
+ } | {
2570
+ contentType: "page" | "post";
2571
+ entityId: number;
2572
+ message: string;
2573
+ mutationExecuted: boolean;
2574
+ success: boolean;
2575
+ action?: undefined;
2576
+ } | {
2577
+ action: string;
2578
+ contentType: "page" | "post";
2579
+ entityId: number;
2580
+ mutationExecuted: boolean;
2581
+ success: boolean;
2582
+ message?: undefined;
2583
+ } | {
2584
+ warning?: string | undefined;
2585
+ action: string;
2586
+ blockCount: number;
2587
+ contentType: "page" | "post";
2588
+ entityId: number;
2589
+ mutationExecuted: boolean;
2590
+ slug: string | null | undefined;
2591
+ success: boolean;
2592
+ message?: undefined;
2593
+ }>;
2594
+ rewrite_page_draft: import('ai').Tool<{
2595
+ blocks: {
2596
+ blockType: string;
2597
+ content: Record<string, unknown>;
2598
+ order?: number | undefined;
2599
+ }[];
2600
+ contentType?: "page" | "post" | "product" | undefined;
2601
+ entityId?: string | number | undefined;
2602
+ slug?: string | undefined;
2603
+ title?: string | undefined;
2604
+ meta?: {
2605
+ meta_description?: string | null | undefined;
2606
+ meta_title?: string | null | undefined;
2607
+ slug?: string | undefined;
2608
+ status?: "draft" | "published" | "archived" | undefined;
2609
+ title?: string | undefined;
2610
+ } | undefined;
2611
+ }, {
2612
+ confirmationPhrase: string;
2613
+ mutationExecuted: boolean;
2614
+ preview: Record<string, unknown>;
2615
+ requiresConfirmation: boolean;
2616
+ success: boolean;
2617
+ } | {
2618
+ blockCount: number;
2619
+ contentType: "page" | "post";
2620
+ draftPreviewPath: string | null;
2621
+ editPath: string;
2622
+ entityId: number;
2623
+ isDraft: boolean;
2624
+ mutationExecuted: boolean;
2625
+ slug: string;
2626
+ success: boolean;
2627
+ title: string;
2628
+ }>;
2629
+ translate_page: import('ai').Tool<{
2630
+ targetLanguageCode: string;
2631
+ translations: Record<string, string>;
2632
+ cmsTarget?: {
2633
+ contentType?: "page" | "post" | "product" | undefined;
2634
+ entityId?: string | number | undefined;
2635
+ slug?: string | undefined;
2636
+ title?: string | undefined;
2637
+ } | undefined;
2638
+ title?: string | undefined;
2639
+ }, {
2640
+ confirmationPhrase: string;
2641
+ mutationExecuted: boolean;
2642
+ preview: Record<string, unknown>;
2643
+ requiresConfirmation: boolean;
2644
+ success: boolean;
2645
+ } | {
2646
+ isTranslation: boolean;
2647
+ languageCode: string;
2648
+ }>;
2649
+ set_content_images: import('ai').Tool<{
2650
+ images: string[];
2651
+ contentType?: "page" | "post" | "product" | undefined;
2652
+ entityId?: string | number | undefined;
2653
+ slug?: string | undefined;
2654
+ title?: string | undefined;
2655
+ }, {
2656
+ confirmationPhrase: string;
2657
+ mutationExecuted: boolean;
2658
+ preview: Record<string, unknown>;
2659
+ requiresConfirmation: boolean;
2660
+ success: boolean;
2661
+ } | {
2662
+ contentType: string;
2663
+ entityId: string | number;
2664
+ imageCount: number;
2665
+ mutationExecuted: boolean;
2666
+ slug: any;
2667
+ success: boolean;
2668
+ extraImagesIgnored?: undefined;
2669
+ } | {
2670
+ contentType: "page" | "post" | "product";
2671
+ entityId: string | number;
2672
+ extraImagesIgnored: number;
2673
+ imageCount: number;
2674
+ mutationExecuted: boolean;
2675
+ slug: any;
2676
+ success: boolean;
2677
+ }>;
2678
+ create_cms_page: import('ai').Tool<{
2679
+ status: "draft" | "published" | "archived";
2680
+ title: string;
2681
+ blocks?: {
2682
+ blockType: string;
2683
+ content: Record<string, unknown>;
2684
+ order?: number | undefined;
2685
+ }[] | undefined;
2686
+ contactEmail?: string | undefined;
2687
+ feature_image_id?: string | null | undefined;
2688
+ languageCode?: string | undefined;
2689
+ meta_description?: string | null | undefined;
2690
+ meta_title?: string | null | undefined;
2691
+ slug?: string | undefined;
2692
+ translationGroupId?: string | undefined;
2693
+ }, {
2694
+ confirmationPhrase: string;
2695
+ mutationExecuted: boolean;
2696
+ preview: Record<string, unknown>;
2697
+ requiresConfirmation: boolean;
2698
+ success: boolean;
2699
+ } | {
2700
+ duplicate: boolean;
2701
+ existingItem: any;
2702
+ mutationExecuted: boolean;
2703
+ success: boolean;
2704
+ message: string;
2705
+ } | {
2706
+ message: string;
2707
+ mutationExecuted: boolean;
2708
+ success: boolean;
2709
+ duplicateTranslation?: undefined;
2710
+ existingItem?: undefined;
2711
+ } | {
2712
+ duplicateTranslation: boolean;
2713
+ existingItem: any;
2714
+ message: string;
2715
+ mutationExecuted: boolean;
2716
+ success: boolean;
2717
+ } | {
2718
+ blockCount: number;
2719
+ contentType: string;
2720
+ editPath: string;
2721
+ entityId: any;
2722
+ mutationExecuted: boolean;
2723
+ slug: string;
2724
+ success: boolean;
2725
+ title: string;
2726
+ translationGroupId: any;
2727
+ }>;
2728
+ create_cms_post: import('ai').Tool<{
2729
+ status: "draft" | "published" | "archived";
2730
+ title: string;
2731
+ blocks?: {
2732
+ blockType: string;
2733
+ content: Record<string, unknown>;
2734
+ order?: number | undefined;
2735
+ }[] | undefined;
2736
+ excerpt?: string | null | undefined;
2737
+ feature_image_id?: string | null | undefined;
2738
+ label?: string | null | undefined;
2739
+ languageCode?: string | undefined;
2740
+ meta_description?: string | null | undefined;
2741
+ meta_title?: string | null | undefined;
2742
+ published_at?: string | null | undefined;
2743
+ slug?: string | undefined;
2744
+ subtitle?: string | null | undefined;
2745
+ translationGroupId?: string | undefined;
2746
+ }, {
2747
+ confirmationPhrase: string;
2748
+ mutationExecuted: boolean;
2749
+ preview: Record<string, unknown>;
2750
+ requiresConfirmation: boolean;
2751
+ success: boolean;
2752
+ } | {
2753
+ duplicate: boolean;
2754
+ existingItem: any;
2755
+ mutationExecuted: boolean;
2756
+ success: boolean;
2757
+ message: string;
2758
+ } | {
2759
+ message: string;
2760
+ mutationExecuted: boolean;
2761
+ success: boolean;
2762
+ duplicateTranslation?: undefined;
2763
+ existingItem?: undefined;
2764
+ } | {
2765
+ duplicateTranslation: boolean;
2766
+ existingItem: any;
2767
+ message: string;
2768
+ mutationExecuted: boolean;
2769
+ success: boolean;
2770
+ } | {
2771
+ blockCount: number;
2772
+ contentType: string;
2773
+ editPath: string;
2774
+ entityId: any;
2775
+ mutationExecuted: boolean;
2776
+ slug: string;
2777
+ success: boolean;
2778
+ title: string;
2779
+ translationGroupId: any;
2780
+ }>;
2781
+ create_cms_product: import('ai').Tool<{
2782
+ is_taxable: boolean;
2783
+ payment_provider: "stripe" | "freemius";
2784
+ price: number;
2785
+ product_type: "physical" | "digital";
2786
+ status: "draft" | "archived" | "active";
2787
+ stock: number;
2788
+ title: string;
2789
+ trial_period_days: number;
2790
+ trial_requires_payment_method: boolean;
2791
+ blocks?: {
2792
+ blockType: string;
2793
+ content: Record<string, unknown>;
2794
+ order?: number | undefined;
2795
+ }[] | undefined;
2796
+ description_html?: string | undefined;
2797
+ description_json?: unknown;
2798
+ freemius_plan_id?: string | undefined;
2799
+ freemius_product_id?: string | undefined;
2800
+ images?: string[] | undefined;
2801
+ languageCode?: string | undefined;
2802
+ meta_description?: string | null | undefined;
2803
+ meta_title?: string | null | undefined;
2804
+ prices?: Record<string, number> | undefined;
2805
+ sale_price?: number | null | undefined;
2806
+ sale_prices?: Record<string, number | null> | undefined;
2807
+ short_description?: string | null | undefined;
2808
+ sku?: string | undefined;
2809
+ slug?: string | undefined;
2810
+ translationGroupId?: string | undefined;
2811
+ upc?: string | null | undefined;
2812
+ }, {
2813
+ confirmationPhrase: string;
2814
+ mutationExecuted: boolean;
2815
+ preview: Record<string, unknown>;
2816
+ requiresConfirmation: boolean;
2817
+ success: boolean;
2818
+ } | {
2819
+ duplicate: boolean;
2820
+ existingItem: any;
2821
+ mutationExecuted: boolean;
2822
+ success: boolean;
2823
+ message: string;
2824
+ } | {
2825
+ message: string;
2826
+ mutationExecuted: boolean;
2827
+ success: boolean;
2828
+ duplicateTranslation?: undefined;
2829
+ existingItem?: undefined;
2830
+ } | {
2831
+ duplicateTranslation: boolean;
2832
+ existingItem: any;
2833
+ message: string;
2834
+ mutationExecuted: boolean;
2835
+ success: boolean;
2836
+ } | {
2837
+ mutationExecuted: boolean;
2838
+ slug: string;
2839
+ success: boolean;
2840
+ title: string;
2841
+ translationGroupId: string;
2842
+ imageError?: string | undefined;
2843
+ blockCount: number;
2844
+ contentType: string;
2845
+ editPath: string;
2846
+ entityId: string;
2847
+ imageCount: number;
2848
+ }>;
2849
+ delete_cms_item: import('ai').Tool<{
2850
+ contentType?: "page" | "post" | "product" | undefined;
2851
+ entityId?: string | number | undefined;
2852
+ slug?: string | undefined;
2853
+ title?: string | undefined;
2854
+ }, {
2855
+ confirmationPhrase: string;
2856
+ mutationExecuted: boolean;
2857
+ preview: Record<string, unknown>;
2858
+ requiresConfirmation: boolean;
2859
+ success: boolean;
2860
+ } | {
2861
+ affectedCount: number;
2862
+ collectionPath: string;
2863
+ contentType: "page" | "post" | "product";
2864
+ mutationExecuted: boolean;
2865
+ redirectPath: string;
2866
+ success: boolean;
2867
+ }>;
2868
+ prepare_delete_cms_item: import('ai').Tool<{
2869
+ contentType?: "page" | "post" | "product" | undefined;
2870
+ entityId?: string | number | undefined;
2871
+ slug?: string | undefined;
2872
+ title?: string | undefined;
2873
+ }, {
2874
+ preparedDelete: boolean;
2875
+ confirmationPhrase: string;
2876
+ mutationExecuted: boolean;
2877
+ preview: Record<string, unknown>;
2878
+ requiresConfirmation: boolean;
2879
+ success: boolean;
2880
+ }>;
2881
+ update_footer: import('ai').Tool<{
2882
+ languageCode: string;
2883
+ copyright?: Record<string, string> | undefined;
2884
+ links?: {
2885
+ label: string;
2886
+ url: string;
2887
+ target?: "_blank" | "_self" | undefined;
2888
+ children?: {
2889
+ label: string;
2890
+ url: string;
2891
+ target?: "_blank" | "_self" | undefined;
2892
+ }[] | undefined;
2893
+ }[] | undefined;
2894
+ }, {
2895
+ confirmationPhrase: string;
2896
+ mutationExecuted: boolean;
2897
+ preview: Record<string, unknown>;
2898
+ requiresConfirmation: boolean;
2899
+ success: boolean;
2900
+ } | {
2901
+ copyrightUpdated: boolean;
2902
+ footerNavigation: {
2903
+ insertedCount: number;
2904
+ languageCode: string;
2905
+ menuKey: "FOOTER";
2906
+ skippedCount: number;
2907
+ updatedCount: number;
2908
+ } | null;
2909
+ mutationExecuted: boolean;
2910
+ success: boolean;
2911
+ }>;
2912
+ update_content_block: import('ai').Tool<{
2913
+ blockId: number;
2914
+ content: Record<string, unknown>;
2915
+ blockType?: string | undefined;
2916
+ cmsTarget?: {
2917
+ contentType?: "page" | "post" | "product" | undefined;
2918
+ entityId?: string | number | undefined;
2919
+ slug?: string | undefined;
2920
+ title?: string | undefined;
2921
+ } | undefined;
2922
+ }, {
2923
+ confirmationPhrase: string;
2924
+ mutationExecuted: boolean;
2925
+ preview: Record<string, unknown>;
2926
+ requiresConfirmation: boolean;
2927
+ success: boolean;
2928
+ } | {
2929
+ blockId: any;
2930
+ blockType: any;
2931
+ contentUpdated: boolean;
2932
+ mutationExecuted: boolean;
2933
+ success: boolean;
2934
+ }>;
2935
+ insert_content_block: import('ai').Tool<{
2936
+ block: {
2937
+ blockType: string;
2938
+ content: Record<string, unknown>;
2939
+ order?: number | undefined;
2940
+ };
2941
+ position: "start" | "end" | "before" | "after";
2942
+ contentType?: "page" | "post" | "product" | undefined;
2943
+ entityId?: string | number | undefined;
2944
+ slug?: string | undefined;
2945
+ title?: string | undefined;
2946
+ anchorBlockId?: number | undefined;
2947
+ anchorBlockType?: string | undefined;
2948
+ }, {
2949
+ confirmationPhrase: string;
2950
+ mutationExecuted: boolean;
2951
+ preview: Record<string, unknown>;
2952
+ requiresConfirmation: boolean;
2953
+ success: boolean;
2954
+ } | {
2955
+ blockId: any;
2956
+ blockType: any;
2957
+ contentType: "page" | "post" | "product";
2958
+ entityId: any;
2959
+ mutationExecuted: boolean;
2960
+ order: any;
2961
+ success: boolean;
2962
+ }>;
2963
+ update_current_cms_fields: import('ai').Tool<{
2964
+ fields: {
2965
+ description_json?: unknown;
2966
+ excerpt?: string | null | undefined;
2967
+ feature_image_id?: string | null | undefined;
2968
+ label?: string | null | undefined;
2969
+ meta_description?: string | null | undefined;
2970
+ meta_title?: string | null | undefined;
2971
+ published_at?: string | null | undefined;
2972
+ short_description?: string | null | undefined;
2973
+ slug?: string | undefined;
2974
+ status?: "draft" | "published" | "archived" | "active" | undefined;
2975
+ subtitle?: string | null | undefined;
2976
+ title?: string | undefined;
2977
+ };
2978
+ cmsTarget?: {
2979
+ contentType?: "page" | "post" | "product" | undefined;
2980
+ entityId?: string | number | undefined;
2981
+ slug?: string | undefined;
2982
+ title?: string | undefined;
2983
+ } | undefined;
2984
+ }, {
2985
+ confirmationPhrase: string;
2986
+ mutationExecuted: boolean;
2987
+ preview: Record<string, unknown>;
2988
+ requiresConfirmation: boolean;
2989
+ success: boolean;
2990
+ } | {
2991
+ contentType: "page" | "post" | "product";
2992
+ entityId: string | number;
2993
+ mutationExecuted: boolean;
2994
+ slug: any;
2995
+ success: boolean;
2996
+ updatedFields: string[];
2997
+ }>;
2998
+ update_cms_item_field: import('ai').Tool<{
2999
+ field: string;
3000
+ value: unknown;
3001
+ contentType?: "page" | "post" | "product" | undefined;
3002
+ entityId?: string | number | undefined;
3003
+ slug?: string | undefined;
3004
+ title?: string | undefined;
3005
+ currencyCode?: string | undefined;
3006
+ endsAt?: string | null | undefined;
3007
+ startsAt?: string | null | undefined;
3008
+ }, {
3009
+ confirmationPhrase: string;
3010
+ mutationExecuted: boolean;
3011
+ preview: Record<string, unknown>;
3012
+ requiresConfirmation: boolean;
3013
+ success: boolean;
3014
+ } | {
3015
+ message: string;
3016
+ mutationExecuted: boolean;
3017
+ success: boolean;
3018
+ unsupported: boolean;
3019
+ contentType?: undefined;
3020
+ entityId?: undefined;
3021
+ field?: undefined;
3022
+ slug?: undefined;
3023
+ updatedFields?: undefined;
3024
+ } | {
3025
+ contentType: string;
3026
+ entityId: any;
3027
+ field: string;
3028
+ mutationExecuted: boolean;
3029
+ slug: any;
3030
+ success: boolean;
3031
+ updatedFields: string[];
3032
+ message?: undefined;
3033
+ unsupported?: undefined;
3034
+ }>;
3035
+ update_navigation_bar: import('ai').Tool<{
3036
+ items: {
3037
+ label: string;
3038
+ url: string;
3039
+ target?: "_blank" | "_self" | undefined;
3040
+ children?: {
3041
+ label: string;
3042
+ url: string;
3043
+ target?: "_blank" | "_self" | undefined;
3044
+ }[] | undefined;
3045
+ }[];
3046
+ languageCode: string;
3047
+ mode: "replace" | "update" | "append";
3048
+ match?: {
3049
+ label?: string | undefined;
3050
+ url?: string | undefined;
3051
+ } | undefined;
3052
+ }, {
3053
+ confirmationPhrase: string;
3054
+ mutationExecuted: boolean;
3055
+ preview: Record<string, unknown>;
3056
+ requiresConfirmation: boolean;
3057
+ success: boolean;
3058
+ } | {
3059
+ mutationExecuted: boolean;
3060
+ mode: "replace" | "update" | "append";
3061
+ success: boolean;
3062
+ insertedCount: number;
3063
+ languageCode: string;
3064
+ menuKey: MenuKey;
3065
+ skippedCount: number;
3066
+ updatedCount: number;
3067
+ }>;
3068
+ update_section_column_block: import('ai').Tool<{
3069
+ blockIndex: number;
3070
+ columnIndex: number;
3071
+ content: Record<string, unknown>;
3072
+ parentBlockId: number;
3073
+ blockType?: string | undefined;
3074
+ cmsTarget?: {
3075
+ contentType?: "page" | "post" | "product" | undefined;
3076
+ entityId?: string | number | undefined;
3077
+ slug?: string | undefined;
3078
+ title?: string | undefined;
3079
+ } | undefined;
3080
+ }, {
3081
+ confirmationPhrase: string;
3082
+ mutationExecuted: boolean;
3083
+ preview: Record<string, unknown>;
3084
+ requiresConfirmation: boolean;
3085
+ success: boolean;
3086
+ } | {
3087
+ blockIndex: number;
3088
+ columnIndex: number;
3089
+ mutationExecuted: boolean;
3090
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
3091
+ parentBlockId: any;
3092
+ parentBlockType: any;
3093
+ success: boolean;
3094
+ }>;
3095
+ execute_cms_action_plan: import('ai').Tool<{
3096
+ actions: ({
3097
+ input: {
3098
+ status: "draft" | "published" | "archived";
3099
+ title: string;
3100
+ blocks?: {
3101
+ blockType: string;
3102
+ content: Record<string, unknown>;
3103
+ order?: number | undefined;
3104
+ }[] | undefined;
3105
+ contactEmail?: string | undefined;
3106
+ feature_image_id?: string | null | undefined;
3107
+ languageCode?: string | undefined;
3108
+ meta_description?: string | null | undefined;
3109
+ meta_title?: string | null | undefined;
3110
+ slug?: string | undefined;
3111
+ translationGroupId?: string | undefined;
3112
+ };
3113
+ tool: "create_cms_page";
3114
+ } | {
3115
+ input: {
3116
+ status: "draft" | "published" | "archived";
3117
+ title: string;
3118
+ blocks?: {
3119
+ blockType: string;
3120
+ content: Record<string, unknown>;
3121
+ order?: number | undefined;
3122
+ }[] | undefined;
3123
+ excerpt?: string | null | undefined;
3124
+ feature_image_id?: string | null | undefined;
3125
+ label?: string | null | undefined;
3126
+ languageCode?: string | undefined;
3127
+ meta_description?: string | null | undefined;
3128
+ meta_title?: string | null | undefined;
3129
+ published_at?: string | null | undefined;
3130
+ slug?: string | undefined;
3131
+ subtitle?: string | null | undefined;
3132
+ translationGroupId?: string | undefined;
3133
+ };
3134
+ tool: "create_cms_post";
3135
+ } | {
3136
+ input: {
3137
+ is_taxable: boolean;
3138
+ payment_provider: "stripe" | "freemius";
3139
+ price: number;
3140
+ product_type: "physical" | "digital";
3141
+ status: "draft" | "archived" | "active";
3142
+ stock: number;
3143
+ title: string;
3144
+ trial_period_days: number;
3145
+ trial_requires_payment_method: boolean;
3146
+ blocks?: {
3147
+ blockType: string;
3148
+ content: Record<string, unknown>;
3149
+ order?: number | undefined;
3150
+ }[] | undefined;
3151
+ description_html?: string | undefined;
3152
+ description_json?: unknown;
3153
+ freemius_plan_id?: string | undefined;
3154
+ freemius_product_id?: string | undefined;
3155
+ images?: string[] | undefined;
3156
+ languageCode?: string | undefined;
3157
+ meta_description?: string | null | undefined;
3158
+ meta_title?: string | null | undefined;
3159
+ prices?: Record<string, number> | undefined;
3160
+ sale_price?: number | null | undefined;
3161
+ sale_prices?: Record<string, number | null> | undefined;
3162
+ short_description?: string | null | undefined;
3163
+ sku?: string | undefined;
3164
+ slug?: string | undefined;
3165
+ translationGroupId?: string | undefined;
3166
+ upc?: string | null | undefined;
3167
+ };
3168
+ tool: "create_cms_product";
3169
+ } | {
3170
+ input: {
3171
+ contentType?: "page" | "post" | "product" | undefined;
3172
+ entityId?: string | number | undefined;
3173
+ slug?: string | undefined;
3174
+ title?: string | undefined;
3175
+ };
3176
+ tool: "delete_cms_item";
3177
+ } | {
3178
+ input: {
3179
+ field: string;
3180
+ value: unknown;
3181
+ contentType?: "page" | "post" | "product" | undefined;
3182
+ entityId?: string | number | undefined;
3183
+ slug?: string | undefined;
3184
+ title?: string | undefined;
3185
+ currencyCode?: string | undefined;
3186
+ endsAt?: string | null | undefined;
3187
+ startsAt?: string | null | undefined;
3188
+ };
3189
+ tool: "update_cms_item_field";
3190
+ } | {
3191
+ input: {
3192
+ blockId: number;
3193
+ content: Record<string, unknown>;
3194
+ blockType?: string | undefined;
3195
+ cmsTarget?: {
3196
+ contentType?: "page" | "post" | "product" | undefined;
3197
+ entityId?: string | number | undefined;
3198
+ slug?: string | undefined;
3199
+ title?: string | undefined;
3200
+ } | undefined;
3201
+ };
3202
+ tool: "update_content_block";
3203
+ } | {
3204
+ input: {
3205
+ block: {
3206
+ blockType: string;
3207
+ content: Record<string, unknown>;
3208
+ order?: number | undefined;
3209
+ };
3210
+ position: "start" | "end" | "before" | "after";
3211
+ contentType?: "page" | "post" | "product" | undefined;
3212
+ entityId?: string | number | undefined;
3213
+ slug?: string | undefined;
3214
+ title?: string | undefined;
3215
+ anchorBlockId?: number | undefined;
3216
+ anchorBlockType?: string | undefined;
3217
+ };
3218
+ tool: "insert_content_block";
3219
+ } | {
3220
+ input: {
3221
+ fields: {
3222
+ description_json?: unknown;
3223
+ excerpt?: string | null | undefined;
3224
+ feature_image_id?: string | null | undefined;
3225
+ label?: string | null | undefined;
3226
+ meta_description?: string | null | undefined;
3227
+ meta_title?: string | null | undefined;
3228
+ published_at?: string | null | undefined;
3229
+ short_description?: string | null | undefined;
3230
+ slug?: string | undefined;
3231
+ status?: "draft" | "published" | "archived" | "active" | undefined;
3232
+ subtitle?: string | null | undefined;
3233
+ title?: string | undefined;
3234
+ };
3235
+ cmsTarget?: {
3236
+ contentType?: "page" | "post" | "product" | undefined;
3237
+ entityId?: string | number | undefined;
3238
+ slug?: string | undefined;
3239
+ title?: string | undefined;
3240
+ } | undefined;
3241
+ };
3242
+ tool: "update_current_cms_fields";
3243
+ } | {
3244
+ input: {
3245
+ languageCode: string;
3246
+ copyright?: Record<string, string> | undefined;
3247
+ links?: {
3248
+ label: string;
3249
+ url: string;
3250
+ target?: "_blank" | "_self" | undefined;
3251
+ children?: {
3252
+ label: string;
3253
+ url: string;
3254
+ target?: "_blank" | "_self" | undefined;
3255
+ }[] | undefined;
3256
+ }[] | undefined;
3257
+ };
3258
+ tool: "update_footer";
3259
+ } | {
3260
+ input: {
3261
+ items: {
3262
+ label: string;
3263
+ url: string;
3264
+ target?: "_blank" | "_self" | undefined;
3265
+ children?: {
3266
+ label: string;
3267
+ url: string;
3268
+ target?: "_blank" | "_self" | undefined;
3269
+ }[] | undefined;
3270
+ }[];
3271
+ languageCode: string;
3272
+ mode: "replace" | "update" | "append";
3273
+ match?: {
3274
+ label?: string | undefined;
3275
+ url?: string | undefined;
3276
+ } | undefined;
3277
+ };
3278
+ tool: "update_navigation_bar";
3279
+ } | {
3280
+ input: {
3281
+ blockIndex: number;
3282
+ columnIndex: number;
3283
+ content: Record<string, unknown>;
3284
+ parentBlockId: number;
3285
+ blockType?: string | undefined;
3286
+ cmsTarget?: {
3287
+ contentType?: "page" | "post" | "product" | undefined;
3288
+ entityId?: string | number | undefined;
3289
+ slug?: string | undefined;
3290
+ title?: string | undefined;
3291
+ } | undefined;
3292
+ };
3293
+ tool: "update_section_column_block";
3294
+ } | {
3295
+ input: {
3296
+ images: string[];
3297
+ contentType?: "page" | "post" | "product" | undefined;
3298
+ entityId?: string | number | undefined;
3299
+ slug?: string | undefined;
3300
+ title?: string | undefined;
3301
+ };
3302
+ tool: "set_content_images";
3303
+ } | {
3304
+ input: {
3305
+ status: "draft" | "published" | "archived";
3306
+ title: string;
3307
+ blocks?: {
3308
+ blockType: string;
3309
+ content: Record<string, unknown>;
3310
+ order?: number | undefined;
3311
+ }[] | undefined;
3312
+ contactEmail?: string | undefined;
3313
+ feature_image_id?: string | null | undefined;
3314
+ languageCode?: string | undefined;
3315
+ meta_description?: string | null | undefined;
3316
+ meta_title?: string | null | undefined;
3317
+ slug?: string | undefined;
3318
+ translationGroupId?: string | undefined;
3319
+ };
3320
+ tool: "create_cms_page";
3321
+ } | {
3322
+ input: {
3323
+ status: "draft" | "published" | "archived";
3324
+ title: string;
3325
+ blocks?: {
3326
+ blockType: string;
3327
+ content: Record<string, unknown>;
3328
+ order?: number | undefined;
3329
+ }[] | undefined;
3330
+ excerpt?: string | null | undefined;
3331
+ feature_image_id?: string | null | undefined;
3332
+ label?: string | null | undefined;
3333
+ languageCode?: string | undefined;
3334
+ meta_description?: string | null | undefined;
3335
+ meta_title?: string | null | undefined;
3336
+ published_at?: string | null | undefined;
3337
+ slug?: string | undefined;
3338
+ subtitle?: string | null | undefined;
3339
+ translationGroupId?: string | undefined;
3340
+ };
3341
+ tool: "create_cms_post";
3342
+ } | {
3343
+ input: {
3344
+ is_taxable: boolean;
3345
+ payment_provider: "stripe" | "freemius";
3346
+ price: number;
3347
+ product_type: "physical" | "digital";
3348
+ status: "draft" | "archived" | "active";
3349
+ stock: number;
3350
+ title: string;
3351
+ trial_period_days: number;
3352
+ trial_requires_payment_method: boolean;
3353
+ blocks?: {
3354
+ blockType: string;
3355
+ content: Record<string, unknown>;
3356
+ order?: number | undefined;
3357
+ }[] | undefined;
3358
+ description_html?: string | undefined;
3359
+ description_json?: unknown;
3360
+ freemius_plan_id?: string | undefined;
3361
+ freemius_product_id?: string | undefined;
3362
+ images?: string[] | undefined;
3363
+ languageCode?: string | undefined;
3364
+ meta_description?: string | null | undefined;
3365
+ meta_title?: string | null | undefined;
3366
+ prices?: Record<string, number> | undefined;
3367
+ sale_price?: number | null | undefined;
3368
+ sale_prices?: Record<string, number | null> | undefined;
3369
+ short_description?: string | null | undefined;
3370
+ sku?: string | undefined;
3371
+ slug?: string | undefined;
3372
+ translationGroupId?: string | undefined;
3373
+ upc?: string | null | undefined;
3374
+ };
3375
+ tool: "create_cms_product";
3376
+ } | {
3377
+ input: {
3378
+ contentType?: "page" | "post" | "product" | undefined;
3379
+ entityId?: string | number | undefined;
3380
+ slug?: string | undefined;
3381
+ title?: string | undefined;
3382
+ };
3383
+ tool: "delete_cms_item";
3384
+ } | {
3385
+ input: {
3386
+ field: string;
3387
+ value: unknown;
3388
+ contentType?: "page" | "post" | "product" | undefined;
3389
+ entityId?: string | number | undefined;
3390
+ slug?: string | undefined;
3391
+ title?: string | undefined;
3392
+ currencyCode?: string | undefined;
3393
+ endsAt?: string | null | undefined;
3394
+ startsAt?: string | null | undefined;
3395
+ };
3396
+ tool: "update_cms_item_field";
3397
+ } | {
3398
+ input: {
3399
+ blockId: number;
3400
+ content: Record<string, unknown>;
3401
+ blockType?: string | undefined;
3402
+ cmsTarget?: {
3403
+ contentType?: "page" | "post" | "product" | undefined;
3404
+ entityId?: string | number | undefined;
3405
+ slug?: string | undefined;
3406
+ title?: string | undefined;
3407
+ } | undefined;
3408
+ };
3409
+ tool: "update_content_block";
3410
+ } | {
3411
+ input: {
3412
+ block: {
3413
+ blockType: string;
3414
+ content: Record<string, unknown>;
3415
+ order?: number | undefined;
3416
+ };
3417
+ position: "start" | "end" | "before" | "after";
3418
+ contentType?: "page" | "post" | "product" | undefined;
3419
+ entityId?: string | number | undefined;
3420
+ slug?: string | undefined;
3421
+ title?: string | undefined;
3422
+ anchorBlockId?: number | undefined;
3423
+ anchorBlockType?: string | undefined;
3424
+ };
3425
+ tool: "insert_content_block";
3426
+ } | {
3427
+ input: {
3428
+ fields: {
3429
+ description_json?: unknown;
3430
+ excerpt?: string | null | undefined;
3431
+ feature_image_id?: string | null | undefined;
3432
+ label?: string | null | undefined;
3433
+ meta_description?: string | null | undefined;
3434
+ meta_title?: string | null | undefined;
3435
+ published_at?: string | null | undefined;
3436
+ short_description?: string | null | undefined;
3437
+ slug?: string | undefined;
3438
+ status?: "draft" | "published" | "archived" | "active" | undefined;
3439
+ subtitle?: string | null | undefined;
3440
+ title?: string | undefined;
3441
+ };
3442
+ cmsTarget?: {
3443
+ contentType?: "page" | "post" | "product" | undefined;
3444
+ entityId?: string | number | undefined;
3445
+ slug?: string | undefined;
3446
+ title?: string | undefined;
3447
+ } | undefined;
3448
+ };
3449
+ tool: "update_current_cms_fields";
3450
+ } | {
3451
+ input: {
3452
+ languageCode: string;
3453
+ copyright?: Record<string, string> | undefined;
3454
+ links?: {
3455
+ label: string;
3456
+ url: string;
3457
+ target?: "_blank" | "_self" | undefined;
3458
+ children?: {
3459
+ label: string;
3460
+ url: string;
3461
+ target?: "_blank" | "_self" | undefined;
3462
+ }[] | undefined;
3463
+ }[] | undefined;
3464
+ };
3465
+ tool: "update_footer";
3466
+ } | {
3467
+ input: {
3468
+ items: {
3469
+ label: string;
3470
+ url: string;
3471
+ target?: "_blank" | "_self" | undefined;
3472
+ children?: {
3473
+ label: string;
3474
+ url: string;
3475
+ target?: "_blank" | "_self" | undefined;
3476
+ }[] | undefined;
3477
+ }[];
3478
+ languageCode: string;
3479
+ mode: "replace" | "update" | "append";
3480
+ match?: {
3481
+ label?: string | undefined;
3482
+ url?: string | undefined;
3483
+ } | undefined;
3484
+ };
3485
+ tool: "update_navigation_bar";
3486
+ } | {
3487
+ input: {
3488
+ blockIndex: number;
3489
+ columnIndex: number;
3490
+ content: Record<string, unknown>;
3491
+ parentBlockId: number;
3492
+ blockType?: string | undefined;
3493
+ cmsTarget?: {
3494
+ contentType?: "page" | "post" | "product" | undefined;
3495
+ entityId?: string | number | undefined;
3496
+ slug?: string | undefined;
3497
+ title?: string | undefined;
3498
+ } | undefined;
3499
+ };
3500
+ tool: "update_section_column_block";
3501
+ } | {
3502
+ input: {
3503
+ images: string[];
3504
+ contentType?: "page" | "post" | "product" | undefined;
3505
+ entityId?: string | number | undefined;
3506
+ slug?: string | undefined;
3507
+ title?: string | undefined;
3508
+ };
3509
+ tool: "set_content_images";
3510
+ })[];
3511
+ summary?: string | undefined;
3512
+ }, {
3513
+ confirmationPhrase: string;
3514
+ mutationExecuted: boolean;
3515
+ preview: Record<string, unknown>;
3516
+ requiresConfirmation: boolean;
3517
+ success: boolean;
3518
+ } | {
3519
+ duplicate: boolean;
3520
+ existingItem: any;
3521
+ mutationExecuted: boolean;
3522
+ success: boolean;
3523
+ message: string;
3524
+ } | {
3525
+ message: string;
3526
+ mutationExecuted: boolean;
3527
+ success: boolean;
3528
+ duplicateTranslation?: undefined;
3529
+ existingItem?: undefined;
3530
+ } | {
3531
+ duplicateTranslation: boolean;
3532
+ existingItem: any;
3533
+ message: string;
3534
+ mutationExecuted: boolean;
3535
+ success: boolean;
3536
+ } | {
3537
+ mutationExecuted: boolean;
3538
+ mode: "replace" | "update" | "append";
3539
+ success: boolean;
3540
+ insertedCount: number;
3541
+ languageCode: string;
3542
+ menuKey: MenuKey;
3543
+ skippedCount: number;
3544
+ updatedCount: number;
3545
+ } | {
3546
+ copyrightUpdated: boolean;
3547
+ footerNavigation: {
3548
+ insertedCount: number;
3549
+ languageCode: string;
3550
+ menuKey: "FOOTER";
3551
+ skippedCount: number;
3552
+ updatedCount: number;
3553
+ } | null;
3554
+ mutationExecuted: boolean;
3555
+ success: boolean;
3556
+ } | {
3557
+ contentType: "page" | "post" | "product";
3558
+ entityId: string | number;
3559
+ mutationExecuted: boolean;
3560
+ slug: any;
3561
+ success: boolean;
3562
+ updatedFields: string[];
3563
+ } | {
3564
+ blockId: any;
3565
+ blockType: any;
3566
+ contentUpdated: boolean;
3567
+ mutationExecuted: boolean;
3568
+ success: boolean;
3569
+ } | {
3570
+ blockId: any;
3571
+ blockType: any;
3572
+ contentType: "page" | "post" | "product";
3573
+ entityId: any;
3574
+ mutationExecuted: boolean;
3575
+ order: any;
3576
+ success: boolean;
3577
+ } | {
3578
+ blockIndex: number;
3579
+ columnIndex: number;
3580
+ mutationExecuted: boolean;
3581
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
3582
+ parentBlockId: any;
3583
+ parentBlockType: any;
3584
+ success: boolean;
3585
+ } | {
3586
+ blockCount: number;
3587
+ contentType: string;
3588
+ editPath: string;
3589
+ entityId: any;
3590
+ mutationExecuted: boolean;
3591
+ slug: string;
3592
+ success: boolean;
3593
+ title: string;
3594
+ translationGroupId: any;
3595
+ } | {
3596
+ message: string;
3597
+ mutationExecuted: boolean;
3598
+ success: boolean;
3599
+ unsupported: boolean;
3600
+ contentType?: undefined;
3601
+ entityId?: undefined;
3602
+ field?: undefined;
3603
+ slug?: undefined;
3604
+ updatedFields?: undefined;
3605
+ } | {
3606
+ contentType: string;
3607
+ entityId: any;
3608
+ field: string;
3609
+ mutationExecuted: boolean;
3610
+ slug: any;
3611
+ success: boolean;
3612
+ updatedFields: string[];
3613
+ message?: undefined;
3614
+ unsupported?: undefined;
3615
+ } | {
3616
+ affectedCount: number;
3617
+ collectionPath: string;
3618
+ contentType: "page" | "post" | "product";
3619
+ mutationExecuted: boolean;
3620
+ redirectPath: string;
3621
+ success: boolean;
3622
+ } | {
3623
+ contentType: string;
3624
+ entityId: string | number;
3625
+ imageCount: number;
3626
+ mutationExecuted: boolean;
3627
+ slug: any;
3628
+ success: boolean;
3629
+ extraImagesIgnored?: undefined;
3630
+ } | {
3631
+ contentType: "page" | "post" | "product";
3632
+ entityId: string | number;
3633
+ extraImagesIgnored: number;
3634
+ imageCount: number;
3635
+ mutationExecuted: boolean;
3636
+ slug: any;
3637
+ success: boolean;
3638
+ } | {
3639
+ redirectPath?: string | undefined;
3640
+ editPath?: string | undefined;
3641
+ actionCount: number;
3642
+ failedActionIndex: number;
3643
+ failedTool: "create_cms_page" | "create_cms_post" | "create_cms_product" | "delete_cms_item" | "update_cms_item_field" | "update_content_block" | "insert_content_block" | "update_current_cms_fields" | "update_footer" | "update_navigation_bar" | "update_section_column_block" | "set_content_images";
3644
+ message: string;
3645
+ mutationExecuted: boolean;
3646
+ results: {
3647
+ output: unknown;
3648
+ tool: string;
3649
+ }[];
3650
+ success: boolean;
3651
+ summary?: undefined;
3652
+ } | {
3653
+ actionCount: number;
3654
+ editPath: string | undefined;
3655
+ mutationExecuted: boolean;
3656
+ redirectPath: string | undefined;
3657
+ results: {
3658
+ output: unknown;
3659
+ tool: string;
3660
+ }[];
3661
+ success: boolean;
3662
+ summary: string | null;
3663
+ }>;
3664
+ get_site_overview: import('ai').Tool<{
3665
+ includeMedia: boolean;
3666
+ includeNavigation: boolean;
3667
+ limit: number;
3668
+ }, {
3669
+ brief: {
3670
+ business_name: string;
3671
+ keep_existing_content: boolean;
3672
+ languages: string[];
3673
+ pages: {
3674
+ slug: string;
3675
+ title: string;
3676
+ purpose?: string | undefined;
3677
+ sections?: string[] | undefined;
3678
+ }[];
3679
+ primary_language: string;
3680
+ site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
3681
+ status: "draft" | "confirmed" | "built";
3682
+ audience?: string | undefined;
3683
+ brand?: {
3684
+ accent_color?: string | undefined;
3685
+ color_scheme?: "light" | "dark" | undefined;
3686
+ font_style?: string | undefined;
3687
+ logo_notes?: string | undefined;
3688
+ primary_color?: string | undefined;
3689
+ secondary_color?: string | undefined;
3690
+ style_keywords?: string[] | undefined;
3691
+ tone?: string | undefined;
3692
+ } | undefined;
3693
+ contact?: {
3694
+ address?: string | undefined;
3695
+ email?: string | undefined;
3696
+ hours?: string | undefined;
3697
+ phone?: string | undefined;
3698
+ social?: {
3699
+ platform: string;
3700
+ url: string;
3701
+ }[] | undefined;
3702
+ } | undefined;
3703
+ description?: string | undefined;
3704
+ ecommerce?: {
3705
+ enabled: boolean;
3706
+ products_summary?: string | undefined;
3707
+ } | undefined;
3708
+ goals?: string[] | undefined;
3709
+ notes?: string | undefined;
3710
+ tagline?: string | undefined;
3711
+ updated_at?: string | undefined;
3712
+ } | null;
3713
+ buildSession: {
3714
+ expiresAt: string;
3715
+ id: string;
3716
+ summary: string;
3717
+ } | null;
3718
+ counts: {
3719
+ customBlocks: number;
3720
+ drafts: number;
3721
+ media: number;
3722
+ pages: any;
3723
+ posts: any;
3724
+ products: number;
3725
+ };
3726
+ customBlocks: {
3727
+ fieldCount: any;
3728
+ fields: any;
3729
+ name: string;
3730
+ slug: string;
3731
+ }[];
3732
+ drafts: {
3733
+ parentId: number;
3734
+ parentType: string;
3735
+ }[];
3736
+ homePage: {
3737
+ blockCount: number;
3738
+ id: number;
3739
+ isHome: boolean;
3740
+ isSeeded: boolean;
3741
+ languageCode: string;
3742
+ slug: string;
3743
+ status: string;
3744
+ title: string;
3745
+ translationGroupId: string | null;
3746
+ } | null;
3747
+ identity: {
3748
+ activeLogo: {
3749
+ id: string;
3750
+ isSeeded: boolean;
3751
+ name: string;
3752
+ objectKey: string | null;
3753
+ } | null;
3754
+ footerCopyright: {} | null;
3755
+ footerShowAttribution: boolean;
3756
+ siteDescription: unknown;
3757
+ siteKeywords: unknown;
3758
+ siteTitle: string;
3759
+ socialImage: {
3760
+ mediaId: string | null;
3761
+ objectKey: string | null;
3762
+ url: string | null;
3763
+ } | null;
3764
+ };
3765
+ languages: {
3766
+ code: string;
3767
+ id: number;
3768
+ isActive: boolean;
3769
+ isDefault: boolean;
3770
+ name: string;
3771
+ }[];
3772
+ media: {
3773
+ count: number;
3774
+ sample: {
3775
+ altText: any;
3776
+ fileName: any;
3777
+ id: string;
3778
+ isSeeded: boolean;
3779
+ }[] | undefined;
3780
+ seededCount: number;
3781
+ };
3782
+ navigation: Record<"footer" | "header", Record<string, import('./ai-global-agent-site-tools').NavigationNode[]>> | null;
3783
+ nextSteps: string[];
3784
+ pages: {
3785
+ blockCount: number;
3786
+ id: number;
3787
+ isHome: boolean;
3788
+ isSeeded: boolean;
3789
+ languageCode: string;
3790
+ slug: string;
3791
+ status: string;
3792
+ title: string;
3793
+ translationGroupId: string | null;
3794
+ }[];
3795
+ posts: {
3796
+ blockCount: number;
3797
+ id: number;
3798
+ isSeeded: boolean;
3799
+ languageCode: string;
3800
+ publishedAt: any;
3801
+ slug: string;
3802
+ status: string;
3803
+ title: string;
3804
+ translationGroupId: string | null;
3805
+ }[];
3806
+ products: {
3807
+ id: string;
3808
+ languageCode: string;
3809
+ slug: string;
3810
+ status: string;
3811
+ title: string;
3812
+ }[];
3813
+ seeded: {
3814
+ anyPresent: boolean;
3815
+ copyright: boolean;
3816
+ logo: boolean;
3817
+ media: number;
3818
+ pages: number;
3819
+ posts: number;
3820
+ siteTitle: boolean;
3821
+ };
3822
+ success: boolean;
3823
+ themes: {
3824
+ colorScheme: string;
3825
+ isActive: boolean;
3826
+ isDefault: boolean;
3827
+ name: string;
3828
+ slug: string;
3829
+ }[];
3830
+ }>;
3831
+ update_site_identity: import('ai').Tool<{
3832
+ active_logo_id?: string | null | undefined;
3833
+ footer_copyright?: Record<string, string> | undefined;
3834
+ footer_show_attribution?: boolean | undefined;
3835
+ site_description?: string | undefined;
3836
+ site_keywords?: string | undefined;
3837
+ site_title?: string | undefined;
3838
+ social_image?: string | null | undefined;
3839
+ }, {
3840
+ confirmationPhrase: string;
3841
+ mutationExecuted: boolean;
3842
+ preview: Record<string, unknown>;
3843
+ requiresConfirmation: boolean;
3844
+ success: boolean;
3845
+ } | {
3846
+ mutationExecuted: boolean;
3847
+ success: boolean;
3848
+ updatedKeys: string[];
3849
+ }>;
3850
+ save_site_brief: import('ai').Tool<{
3851
+ brief: {
3852
+ audience?: string | undefined;
3853
+ brand?: {
3854
+ accent_color?: string | undefined;
3855
+ color_scheme?: "light" | "dark" | undefined;
3856
+ font_style?: string | undefined;
3857
+ logo_notes?: string | undefined;
3858
+ primary_color?: string | undefined;
3859
+ secondary_color?: string | undefined;
3860
+ style_keywords?: string[] | undefined;
3861
+ tone?: string | undefined;
3862
+ } | undefined;
3863
+ business_name?: string | undefined;
3864
+ contact?: {
3865
+ address?: string | undefined;
3866
+ email?: string | undefined;
3867
+ hours?: string | undefined;
3868
+ phone?: string | undefined;
3869
+ social?: {
3870
+ platform: string;
3871
+ url: string;
3872
+ }[] | undefined;
3873
+ } | undefined;
3874
+ description?: string | undefined;
3875
+ ecommerce?: {
3876
+ enabled: boolean;
3877
+ products_summary?: string | undefined;
3878
+ } | undefined;
3879
+ goals?: string[] | undefined;
3880
+ keep_existing_content?: boolean | undefined;
3881
+ languages?: string[] | undefined;
3882
+ notes?: string | undefined;
3883
+ pages?: {
3884
+ slug: string;
3885
+ title: string;
3886
+ purpose?: string | undefined;
3887
+ sections?: string[] | undefined;
3888
+ }[] | undefined;
3889
+ primary_language?: string | undefined;
3890
+ site_type?: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other" | undefined;
3891
+ status?: "draft" | "confirmed" | "built" | undefined;
3892
+ tagline?: string | undefined;
3893
+ updated_at?: string | undefined;
3894
+ };
3895
+ mode: "replace" | "merge";
3896
+ }, {
3897
+ brief: {
3898
+ business_name: string;
3899
+ keep_existing_content: boolean;
3900
+ languages: string[];
3901
+ pages: {
3902
+ slug: string;
3903
+ title: string;
3904
+ purpose?: string | undefined;
3905
+ sections?: string[] | undefined;
3906
+ }[];
3907
+ primary_language: string;
3908
+ site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
3909
+ status: "draft" | "confirmed" | "built";
3910
+ audience?: string | undefined;
3911
+ brand?: {
3912
+ accent_color?: string | undefined;
3913
+ color_scheme?: "light" | "dark" | undefined;
3914
+ font_style?: string | undefined;
3915
+ logo_notes?: string | undefined;
3916
+ primary_color?: string | undefined;
3917
+ secondary_color?: string | undefined;
3918
+ style_keywords?: string[] | undefined;
3919
+ tone?: string | undefined;
3920
+ } | undefined;
3921
+ contact?: {
3922
+ address?: string | undefined;
3923
+ email?: string | undefined;
3924
+ hours?: string | undefined;
3925
+ phone?: string | undefined;
3926
+ social?: {
3927
+ platform: string;
3928
+ url: string;
3929
+ }[] | undefined;
3930
+ } | undefined;
3931
+ description?: string | undefined;
3932
+ ecommerce?: {
3933
+ enabled: boolean;
3934
+ products_summary?: string | undefined;
3935
+ } | undefined;
3936
+ goals?: string[] | undefined;
3937
+ notes?: string | undefined;
3938
+ tagline?: string | undefined;
3939
+ updated_at?: string | undefined;
3940
+ };
3941
+ created: boolean;
3942
+ mutationExecuted: boolean;
3943
+ success: boolean;
3944
+ }>;
3945
+ reset_site_content: import('ai').Tool<{
3946
+ clearKeptPageBlocks: boolean;
3947
+ dryRun: boolean;
3948
+ keepPageSlugs: string[];
3949
+ onlySeeded: boolean;
3950
+ scope: {
3951
+ customBlocks?: boolean | undefined;
3952
+ identity?: boolean | undefined;
3953
+ navigation?: boolean | undefined;
3954
+ pages?: boolean | undefined;
3955
+ posts?: boolean | undefined;
3956
+ products?: boolean | undefined;
3957
+ seededMedia?: boolean | undefined;
3958
+ };
3959
+ keepLanguages?: string[] | undefined;
3960
+ }, {
3961
+ confirmationPhrase: string;
3962
+ mutationExecuted: boolean;
3963
+ preview: Record<string, unknown>;
3964
+ requiresConfirmation: boolean;
3965
+ success: boolean;
3966
+ } | {
3967
+ dryRun: boolean;
3968
+ mutationExecuted: boolean;
3969
+ nextSteps: string[];
3970
+ success: boolean;
3971
+ summary: {
3972
+ blocksClearedOnPages: number;
3973
+ customBlocks: number;
3974
+ drafts: number;
3975
+ identityCleared: boolean;
3976
+ languagesDeactivated: string[];
3977
+ logos: number;
3978
+ media: number;
3979
+ navigationItems: number;
3980
+ pages: number;
3981
+ pagesKept: string[];
3982
+ posts: number;
3983
+ products: number;
3984
+ };
3985
+ wouldDelete: {
3986
+ pages: {
3987
+ id: number;
3988
+ slug: string;
3989
+ languageCode: string;
3990
+ }[];
3991
+ posts: {
3992
+ id: number;
3993
+ slug: string;
3994
+ languageCode: string;
3995
+ }[];
3996
+ };
3997
+ deleted?: undefined;
3998
+ } | {
3999
+ deleted: {
4000
+ blocksClearedOnPages: number;
4001
+ customBlocks: number;
4002
+ drafts: number;
4003
+ identityCleared: boolean;
4004
+ languagesDeactivated: string[];
4005
+ logos: number;
4006
+ media: number;
4007
+ navigationItems: number;
4008
+ pages: number;
4009
+ pagesKept: string[];
4010
+ posts: number;
4011
+ products: number;
4012
+ };
4013
+ mutationExecuted: boolean;
4014
+ nextSteps: string[];
4015
+ success: boolean;
4016
+ dryRun?: undefined;
4017
+ summary?: undefined;
4018
+ wouldDelete?: undefined;
4019
+ }>;
4020
+ start_site_build: import('ai').Tool<{
4021
+ durationMinutes: number;
4022
+ summary: string;
4023
+ brief?: {
4024
+ audience?: string | undefined;
4025
+ brand?: {
4026
+ accent_color?: string | undefined;
4027
+ color_scheme?: "light" | "dark" | undefined;
4028
+ font_style?: string | undefined;
4029
+ logo_notes?: string | undefined;
4030
+ primary_color?: string | undefined;
4031
+ secondary_color?: string | undefined;
4032
+ style_keywords?: string[] | undefined;
4033
+ tone?: string | undefined;
4034
+ } | undefined;
4035
+ business_name?: string | undefined;
4036
+ contact?: {
4037
+ address?: string | undefined;
4038
+ email?: string | undefined;
4039
+ hours?: string | undefined;
4040
+ phone?: string | undefined;
4041
+ social?: {
4042
+ platform: string;
4043
+ url: string;
4044
+ }[] | undefined;
4045
+ } | undefined;
4046
+ description?: string | undefined;
4047
+ ecommerce?: {
4048
+ enabled: boolean;
4049
+ products_summary?: string | undefined;
4050
+ } | undefined;
4051
+ goals?: string[] | undefined;
4052
+ keep_existing_content?: boolean | undefined;
4053
+ languages?: string[] | undefined;
4054
+ notes?: string | undefined;
4055
+ pages?: {
4056
+ slug: string;
4057
+ title: string;
4058
+ purpose?: string | undefined;
4059
+ sections?: string[] | undefined;
4060
+ }[] | undefined;
4061
+ primary_language?: string | undefined;
4062
+ site_type?: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other" | undefined;
4063
+ status?: "draft" | "confirmed" | "built" | undefined;
4064
+ tagline?: string | undefined;
4065
+ updated_at?: string | undefined;
4066
+ } | undefined;
4067
+ reset?: {
4068
+ clearKeptPageBlocks: boolean;
4069
+ dryRun: boolean;
4070
+ keepPageSlugs: string[];
4071
+ onlySeeded: boolean;
4072
+ scope: {
4073
+ customBlocks?: boolean | undefined;
4074
+ identity?: boolean | undefined;
4075
+ navigation?: boolean | undefined;
4076
+ pages?: boolean | undefined;
4077
+ posts?: boolean | undefined;
4078
+ products?: boolean | undefined;
4079
+ seededMedia?: boolean | undefined;
4080
+ };
4081
+ keepLanguages?: string[] | undefined;
4082
+ } | undefined;
4083
+ }, {
4084
+ confirmationPhrase: string;
4085
+ mutationExecuted: boolean;
4086
+ preview: Record<string, unknown>;
4087
+ requiresConfirmation: boolean;
4088
+ success: boolean;
4089
+ } | {
4090
+ brief: {
4091
+ business_name: string;
4092
+ keep_existing_content: boolean;
4093
+ languages: string[];
4094
+ pages: {
4095
+ slug: string;
4096
+ title: string;
4097
+ purpose?: string | undefined;
4098
+ sections?: string[] | undefined;
4099
+ }[];
4100
+ primary_language: string;
4101
+ site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
4102
+ status: "draft" | "confirmed" | "built";
4103
+ audience?: string | undefined;
4104
+ brand?: {
4105
+ accent_color?: string | undefined;
4106
+ color_scheme?: "light" | "dark" | undefined;
4107
+ font_style?: string | undefined;
4108
+ logo_notes?: string | undefined;
4109
+ primary_color?: string | undefined;
4110
+ secondary_color?: string | undefined;
4111
+ style_keywords?: string[] | undefined;
4112
+ tone?: string | undefined;
4113
+ } | undefined;
4114
+ contact?: {
4115
+ address?: string | undefined;
4116
+ email?: string | undefined;
4117
+ hours?: string | undefined;
4118
+ phone?: string | undefined;
4119
+ social?: {
4120
+ platform: string;
4121
+ url: string;
4122
+ }[] | undefined;
4123
+ } | undefined;
4124
+ description?: string | undefined;
4125
+ ecommerce?: {
4126
+ enabled: boolean;
4127
+ products_summary?: string | undefined;
4128
+ } | undefined;
4129
+ goals?: string[] | undefined;
4130
+ notes?: string | undefined;
4131
+ tagline?: string | undefined;
4132
+ updated_at?: string | undefined;
4133
+ } | null;
4134
+ buildSession: {
4135
+ expiresAt: string;
4136
+ id: string;
4137
+ };
4138
+ continuePrompt: string;
4139
+ mutationExecuted: boolean;
4140
+ resetResult: Record<string, unknown> | null;
4141
+ success: boolean;
4142
+ }>;
4143
+ finish_site_build: import('ai').Tool<{
4144
+ outcome: "built" | "stopped";
4145
+ summary?: string | undefined;
4146
+ }, {
4147
+ brief: {
4148
+ business_name: string;
4149
+ keep_existing_content: boolean;
4150
+ languages: string[];
4151
+ pages: {
4152
+ slug: string;
4153
+ title: string;
4154
+ purpose?: string | undefined;
4155
+ sections?: string[] | undefined;
4156
+ }[];
4157
+ primary_language: string;
4158
+ site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
4159
+ status: "draft" | "confirmed" | "built";
4160
+ audience?: string | undefined;
4161
+ brand?: {
4162
+ accent_color?: string | undefined;
4163
+ color_scheme?: "light" | "dark" | undefined;
4164
+ font_style?: string | undefined;
4165
+ logo_notes?: string | undefined;
4166
+ primary_color?: string | undefined;
4167
+ secondary_color?: string | undefined;
4168
+ style_keywords?: string[] | undefined;
4169
+ tone?: string | undefined;
4170
+ } | undefined;
4171
+ contact?: {
4172
+ address?: string | undefined;
4173
+ email?: string | undefined;
4174
+ hours?: string | undefined;
4175
+ phone?: string | undefined;
4176
+ social?: {
4177
+ platform: string;
4178
+ url: string;
4179
+ }[] | undefined;
4180
+ } | undefined;
4181
+ description?: string | undefined;
4182
+ ecommerce?: {
4183
+ enabled: boolean;
4184
+ products_summary?: string | undefined;
4185
+ } | undefined;
4186
+ goals?: string[] | undefined;
4187
+ notes?: string | undefined;
4188
+ tagline?: string | undefined;
4189
+ updated_at?: string | undefined;
4190
+ } | null;
4191
+ buildSessionEnded: boolean;
4192
+ hadSession: boolean;
4193
+ mutationExecuted: boolean;
4194
+ outcome: "built" | "stopped";
4195
+ success: boolean;
4196
+ }>;
4197
+ list_site_script_revisions: import('ai').Tool<{
4198
+ limit: number;
4199
+ scriptName?: string | undefined;
4200
+ }, {
4201
+ count: any;
4202
+ revisions: any;
4203
+ success: boolean;
4204
+ }>;
4205
+ revert_site_script: import('ai').Tool<{
4206
+ revisionId: string;
4207
+ }, {
4208
+ message: string;
4209
+ mutationExecuted: boolean;
4210
+ success: boolean;
4211
+ name?: undefined;
4212
+ recreated?: undefined;
4213
+ } | {
4214
+ mutationExecuted: boolean;
4215
+ name: string;
4216
+ recreated: boolean;
4217
+ success: boolean;
4218
+ message?: undefined;
4219
+ }>;
4220
+ list_site_scripts: import('ai').Tool<Record<string, never>, {
4221
+ count: any;
4222
+ scripts: any;
4223
+ success: boolean;
4224
+ }>;
4225
+ manage_site_script: import('ai').Tool<{
4226
+ action: "delete" | "upsert";
4227
+ is_active: boolean;
4228
+ load_strategy: "default" | "defer" | "async";
4229
+ name: string;
4230
+ purpose: string;
4231
+ placement: "body_end" | "head" | "body_start";
4232
+ sort_order: number;
4233
+ code?: string | undefined;
4234
+ description?: string | null | undefined;
4235
+ src?: string | null | undefined;
4236
+ }, {
4237
+ message: string;
4238
+ mutationExecuted: boolean;
4239
+ success: boolean;
4240
+ action?: undefined;
4241
+ name?: undefined;
4242
+ created?: undefined;
4243
+ isActive?: undefined;
4244
+ placement?: undefined;
4245
+ safetyReview?: undefined;
4246
+ statedPurpose?: undefined;
4247
+ } | {
4248
+ action: string;
4249
+ mutationExecuted: boolean;
4250
+ name: string;
4251
+ success: boolean;
4252
+ message?: undefined;
4253
+ created?: undefined;
4254
+ isActive?: undefined;
4255
+ placement?: undefined;
4256
+ safetyReview?: undefined;
4257
+ statedPurpose?: undefined;
4258
+ } | {
4259
+ action: string;
4260
+ created: boolean;
4261
+ isActive: boolean;
4262
+ mutationExecuted: boolean;
4263
+ name: string;
4264
+ placement: "body_end" | "head" | "body_start";
4265
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
4266
+ statedPurpose: string;
4267
+ success: boolean;
4268
+ message?: undefined;
4269
+ }>;
4270
+ list_site_themes: import('ai').Tool<Record<string, never>, {
4271
+ globalCss: string;
4272
+ success: boolean;
4273
+ themes: any;
4274
+ }>;
4275
+ manage_site_theme: import('ai').Tool<{
4276
+ slug: string;
4277
+ color_scheme?: "light" | "dark" | undefined;
4278
+ description?: string | null | undefined;
4279
+ extra_css?: string | null | undefined;
4280
+ icon?: string | undefined;
4281
+ is_default?: boolean | undefined;
4282
+ name?: string | undefined;
4283
+ tokens?: Record<string, string> | undefined;
4284
+ }, {
4285
+ created: boolean;
4286
+ isDefault: boolean;
4287
+ mutationExecuted: boolean;
4288
+ slug: string;
4289
+ success: boolean;
4290
+ themeId: string;
4291
+ tokenCount: number;
4292
+ }>;
4293
+ update_global_css: import('ai').Tool<{
4294
+ css: string;
4295
+ mode: "replace" | "append";
4296
+ }, {
4297
+ characters: number;
4298
+ mode: "replace" | "append";
4299
+ mutationExecuted: boolean;
4300
+ success: boolean;
4301
+ }>;
4302
+ list_media: import('ai').Tool<{
4303
+ limit: number;
4304
+ query?: string | undefined;
4305
+ }, {
4306
+ count: any;
4307
+ media: any;
4308
+ success: boolean;
4309
+ }>;
4310
+ list_product_categories: import('ai').Tool<Record<string, never>, {
4311
+ categories: any;
4312
+ count: any;
4313
+ success: boolean;
4314
+ }>;
4315
+ manage_language: import('ai').Tool<{
4316
+ code: string;
4317
+ is_active: boolean;
4318
+ is_default: boolean;
4319
+ name: string;
4320
+ }, {
4321
+ code: string;
4322
+ created: boolean;
4323
+ languageId: number;
4324
+ mutationExecuted: boolean;
4325
+ success: boolean;
4326
+ }>;
4327
+ manage_product_category: import('ai').Tool<{
4328
+ action: "delete" | "upsert";
4329
+ name: string;
4330
+ description?: string | null | undefined;
4331
+ name_translations?: Record<string, string> | undefined;
4332
+ productSlugs?: string[] | undefined;
4333
+ slug?: string | undefined;
4334
+ }, {
4335
+ message: string;
4336
+ mutationExecuted: boolean;
4337
+ success: boolean;
4338
+ action?: undefined;
4339
+ slug?: undefined;
4340
+ categoryId?: undefined;
4341
+ created?: undefined;
4342
+ linkedProducts?: undefined;
4343
+ } | {
4344
+ action: string;
4345
+ mutationExecuted: boolean;
4346
+ slug: string;
4347
+ success: boolean;
4348
+ message?: undefined;
4349
+ categoryId?: undefined;
4350
+ created?: undefined;
4351
+ linkedProducts?: undefined;
4352
+ } | {
4353
+ categoryId: string;
4354
+ created: boolean;
4355
+ linkedProducts: number;
4356
+ mutationExecuted: boolean;
4357
+ slug: string;
4358
+ success: boolean;
4359
+ message?: undefined;
4360
+ action?: undefined;
4361
+ }>;
4362
+ upload_media: import('ai').Tool<{
4363
+ url: string;
4364
+ altText?: string | undefined;
4365
+ }, {
4366
+ mediaId: string;
4367
+ mutationExecuted: boolean;
4368
+ success: boolean;
4369
+ }>;
4370
+ create_custom_block: import('ai').Tool<{
4371
+ prompt: string;
4372
+ context?: string | undefined;
4373
+ }, {
4374
+ definition: {
4375
+ fieldCount: any;
4376
+ fields: any;
4377
+ id: any;
4378
+ name: any;
4379
+ slug: any;
4380
+ };
4381
+ editUrl: string;
4382
+ mutationExecuted: boolean;
4383
+ success: boolean;
4384
+ message?: undefined;
4385
+ } | {
4386
+ mutationExecuted: boolean;
4387
+ message: string;
4388
+ success: boolean;
4389
+ definition?: undefined;
4390
+ editUrl?: undefined;
4391
+ }>;
4392
+ delete_custom_block: import('ai').Tool<{
4393
+ slug: string;
4394
+ }, {
4395
+ mutationExecuted: boolean;
4396
+ message: string;
4397
+ success: boolean;
4398
+ confirmationPhrase?: undefined;
4399
+ preview?: undefined;
4400
+ requiresConfirmation?: undefined;
4401
+ deleted?: undefined;
4402
+ } | {
4403
+ confirmationPhrase: string;
4404
+ mutationExecuted: boolean;
4405
+ preview: {
4406
+ summary: string;
4407
+ };
4408
+ requiresConfirmation: boolean;
4409
+ success: boolean;
4410
+ message?: undefined;
4411
+ deleted?: undefined;
4412
+ } | {
4413
+ deleted: {
4414
+ name: any;
4415
+ slug: any;
4416
+ };
4417
+ mutationExecuted: boolean;
4418
+ success: boolean;
4419
+ message?: undefined;
4420
+ confirmationPhrase?: undefined;
4421
+ preview?: undefined;
4422
+ requiresConfirmation?: undefined;
4423
+ }>;
4424
+ list_custom_blocks: import('ai').Tool<{
4425
+ query?: string | undefined;
4426
+ }, {
4427
+ message: any;
4428
+ success: boolean;
4429
+ blocks?: undefined;
4430
+ count?: undefined;
4431
+ } | {
4432
+ blocks: {
4433
+ fieldCount: any;
4434
+ fields: any;
4435
+ id: any;
4436
+ name: any;
4437
+ slug: any;
4438
+ }[];
4439
+ count: number;
4440
+ success: boolean;
4441
+ message?: undefined;
4442
+ }>;
4443
+ update_custom_block: import('ai').Tool<{
4444
+ prompt: string;
4445
+ slug: string;
4446
+ }, {
4447
+ mutationExecuted: boolean;
4448
+ message: any;
4449
+ success: boolean;
4450
+ definition?: undefined;
4451
+ editUrl?: undefined;
4452
+ } | {
4453
+ definition: {
4454
+ fieldCount: any;
4455
+ fields: any;
4456
+ id: any;
4457
+ name: any;
4458
+ slug: any;
4459
+ };
4460
+ editUrl: string;
4461
+ mutationExecuted: boolean;
4462
+ success: boolean;
4463
+ message?: undefined;
4464
+ }>;
4465
+ describe_database_schema: import('ai').Tool<{
4466
+ includeReadOnly: boolean;
4467
+ table?: string | undefined;
4468
+ }, {
4469
+ safetyNotes: string[];
4470
+ success: boolean;
4471
+ tables: {
4472
+ columns: string[];
4473
+ description: string;
4474
+ primaryKey: readonly string[];
4475
+ readOnly: boolean;
4476
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
4477
+ }[];
4478
+ }>;
4479
+ execute_database_action_plan: import('ai').Tool<{
4480
+ actions: {
4481
+ operation: "delete" | "update" | "insert" | "upsert";
4482
+ table: string;
4483
+ filters?: {
4484
+ column: string;
4485
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
4486
+ value: unknown;
4487
+ }[] | undefined;
4488
+ rows?: Record<string, unknown>[] | undefined;
4489
+ summary?: string | undefined;
4490
+ values?: Record<string, unknown> | undefined;
4491
+ }[];
4492
+ summary?: string | undefined;
4493
+ }, {
4494
+ confirmationPhrase: string;
4495
+ mutationExecuted: boolean;
4496
+ preview: Record<string, unknown>;
4497
+ requiresConfirmation: boolean;
4498
+ success: boolean;
4499
+ } | {
4500
+ failedActionIndex: number;
4501
+ message: any;
4502
+ mutationExecuted: boolean;
4503
+ results: unknown[];
4504
+ success: boolean;
4505
+ auditError?: string | undefined;
4506
+ actionCount: number;
4507
+ auditLogged: boolean;
4508
+ } | {
4509
+ mutationExecuted: boolean;
4510
+ results: unknown[];
4511
+ success: boolean;
4512
+ summary: string | null;
4513
+ auditError?: string | undefined;
4514
+ actionCount: number;
4515
+ auditLogged: boolean;
4516
+ }>;
4517
+ execute_database_mutation: import('ai').Tool<{
4518
+ operation: "delete" | "update" | "insert" | "upsert";
4519
+ table: string;
4520
+ filters?: {
4521
+ column: string;
4522
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
4523
+ value: unknown;
4524
+ }[] | undefined;
4525
+ rows?: Record<string, unknown>[] | undefined;
4526
+ summary?: string | undefined;
4527
+ values?: Record<string, unknown> | undefined;
4528
+ }, {
4529
+ confirmationPhrase: string;
4530
+ mutationExecuted: boolean;
4531
+ preview: Record<string, unknown>;
4532
+ requiresConfirmation: boolean;
4533
+ success: boolean;
4534
+ } | {
4535
+ mutationExecuted: boolean;
4536
+ operation: "delete" | "update" | "insert" | "upsert";
4537
+ sampleTargetIds: string[];
4538
+ success: boolean;
4539
+ summary: string;
4540
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
4541
+ auditError?: string | undefined;
4542
+ affectedCount: number;
4543
+ auditLogged: boolean;
4544
+ } | {
4545
+ message: string;
4546
+ mutationExecuted: boolean;
4547
+ operation: "delete" | "update" | "insert" | "upsert";
4548
+ success: boolean;
4549
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
4550
+ auditError?: string | undefined;
4551
+ auditLogged: boolean;
4552
+ }>;
4553
+ read_database_records: import('ai').Tool<{
4554
+ filters: {
4555
+ column: string;
4556
+ operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
4557
+ value: unknown;
4558
+ }[];
4559
+ limit: number;
4560
+ offset: number;
4561
+ table: string;
4562
+ columns?: string[] | undefined;
4563
+ orderBy?: {
4564
+ ascending: boolean;
4565
+ column: string;
4566
+ } | undefined;
4567
+ }, {
4568
+ columns: string[];
4569
+ limit: number;
4570
+ offset: number;
4571
+ rows: unknown[];
4572
+ success: boolean;
4573
+ table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
4574
+ }>;
4575
+ };
4576
+ export {};