@nextblock-cms/cortex 0.17.6 → 0.17.8

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