@nextblock-cms/cortex 0.12.2

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.
Files changed (49) hide show
  1. package/client.cjs.js +1 -0
  2. package/client.d.ts +1 -0
  3. package/client.es.js +4 -0
  4. package/index.cjs.js +1 -0
  5. package/index.d.ts +13 -0
  6. package/index.es.js +135 -0
  7. package/lib/ai-block-generation.cjs.js +5 -0
  8. package/lib/ai-block-generation.d.ts +21 -0
  9. package/lib/ai-block-generation.es.js +195 -0
  10. package/lib/ai-client.cjs.js +1 -0
  11. package/lib/ai-client.d.ts +48 -0
  12. package/lib/ai-client.es.js +141 -0
  13. package/lib/ai-config.cjs.js +1 -0
  14. package/lib/ai-config.d.ts +31 -0
  15. package/lib/ai-config.es.js +72 -0
  16. package/lib/ai-cortex-widget-builder.cjs.js +1 -0
  17. package/lib/ai-cortex-widget-builder.d.ts +14 -0
  18. package/lib/ai-cortex-widget-builder.es.js +72 -0
  19. package/lib/ai-global-agent-custom-block-tools.cjs.js +1 -0
  20. package/lib/ai-global-agent-custom-block-tools.d.ts +208 -0
  21. package/lib/ai-global-agent-custom-block-tools.es.js +220 -0
  22. package/lib/ai-global-agent-db-tools.cjs.js +1 -0
  23. package/lib/ai-global-agent-db-tools.d.ts +280 -0
  24. package/lib/ai-global-agent-db-tools.es.js +879 -0
  25. package/lib/ai-global-agent-ecommerce.cjs.js +1 -0
  26. package/lib/ai-global-agent-ecommerce.d.ts +2 -0
  27. package/lib/ai-global-agent-ecommerce.es.js +7 -0
  28. package/lib/ai-global-agent-tools.cjs.js +15 -0
  29. package/lib/ai-global-agent-tools.d.ts +3109 -0
  30. package/lib/ai-global-agent-tools.es.js +2812 -0
  31. package/lib/ai-key-crypto.cjs.js +1 -0
  32. package/lib/ai-key-crypto.d.ts +32 -0
  33. package/lib/ai-key-crypto.es.js +88 -0
  34. package/lib/ai-model-catalog.cjs.js +1 -0
  35. package/lib/ai-model-catalog.d.ts +7 -0
  36. package/lib/ai-model-catalog.es.js +25 -0
  37. package/lib/ai-model-registry.cjs.js +3 -0
  38. package/lib/ai-model-registry.d.ts +79 -0
  39. package/lib/ai-model-registry.es.js +279 -0
  40. package/lib/cortex-widget-registry.cjs.js +1 -0
  41. package/lib/cortex-widget-registry.d.ts +19 -0
  42. package/lib/cortex-widget-registry.es.js +47 -0
  43. package/lib/cortex-widget-schema.cjs.js +5 -0
  44. package/lib/cortex-widget-schema.d.ts +224 -0
  45. package/lib/cortex-widget-schema.es.js +316 -0
  46. package/lib/zod-config.cjs.js +1 -0
  47. package/lib/zod-config.d.ts +2 -0
  48. package/lib/zod-config.es.js +6 -0
  49. package/package.json +39 -0
@@ -0,0 +1,3109 @@
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 ToolExecutionContext = {
11
+ actorUserId?: string | null;
12
+ cortexAiApiKey?: string | null;
13
+ cortexAiModelSelection?: unknown;
14
+ latestUserMessage?: string | null;
15
+ pageContext?: CortexAiPageContext | null;
16
+ revalidatePath?: RevalidateFn;
17
+ skipConfirmation?: boolean;
18
+ supabase?: SupabaseLike;
19
+ validateBlockContent?: BlockContentValidator;
20
+ };
21
+ export declare const navigationItemInputSchema: z.ZodObject<{
22
+ label: z.ZodString;
23
+ target: z.ZodOptional<z.ZodEnum<{
24
+ _self: "_self";
25
+ _blank: "_blank";
26
+ }>>;
27
+ url: z.ZodString;
28
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
+ label: z.ZodString;
30
+ target: z.ZodOptional<z.ZodEnum<{
31
+ _self: "_self";
32
+ _blank: "_blank";
33
+ }>>;
34
+ url: z.ZodString;
35
+ }, z.core.$strict>>>;
36
+ }, z.core.$strict>;
37
+ export declare const updateNavigationBarInputSchema: z.ZodObject<{
38
+ items: z.ZodArray<z.ZodObject<{
39
+ label: z.ZodString;
40
+ target: z.ZodOptional<z.ZodEnum<{
41
+ _self: "_self";
42
+ _blank: "_blank";
43
+ }>>;
44
+ url: z.ZodString;
45
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
46
+ label: z.ZodString;
47
+ target: z.ZodOptional<z.ZodEnum<{
48
+ _self: "_self";
49
+ _blank: "_blank";
50
+ }>>;
51
+ url: z.ZodString;
52
+ }, z.core.$strict>>>;
53
+ }, z.core.$strict>>;
54
+ languageCode: z.ZodDefault<z.ZodString>;
55
+ match: z.ZodOptional<z.ZodObject<{
56
+ label: z.ZodOptional<z.ZodString>;
57
+ url: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strict>>;
59
+ mode: z.ZodDefault<z.ZodEnum<{
60
+ replace: "replace";
61
+ update: "update";
62
+ append: "append";
63
+ }>>;
64
+ }, z.core.$strict>;
65
+ export declare const updateFooterInputSchema: z.ZodObject<{
66
+ copyright: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
67
+ languageCode: z.ZodDefault<z.ZodString>;
68
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ label: z.ZodString;
70
+ target: z.ZodOptional<z.ZodEnum<{
71
+ _self: "_self";
72
+ _blank: "_blank";
73
+ }>>;
74
+ url: z.ZodString;
75
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
76
+ label: z.ZodString;
77
+ target: z.ZodOptional<z.ZodEnum<{
78
+ _self: "_self";
79
+ _blank: "_blank";
80
+ }>>;
81
+ url: z.ZodString;
82
+ }, z.core.$strict>>>;
83
+ }, z.core.$strict>>>;
84
+ }, z.core.$strict>;
85
+ export declare const searchDocumentationInputSchema: z.ZodObject<{
86
+ limit: z.ZodDefault<z.ZodNumber>;
87
+ query: z.ZodString;
88
+ }, z.core.$strict>;
89
+ export declare const fetchEcommerceStatsInputSchema: z.ZodObject<{
90
+ currency: z.ZodOptional<z.ZodString>;
91
+ query: z.ZodString;
92
+ reportType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
93
+ products: "products";
94
+ orders: "orders";
95
+ revenue: "revenue";
96
+ general: "general";
97
+ }>>>;
98
+ timeRange: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
99
+ today: "today";
100
+ this_month: "this_month";
101
+ last_7_days: "last_7_days";
102
+ last_30_days: "last_30_days";
103
+ last_month: "last_month";
104
+ last_90_days: "last_90_days";
105
+ all_time: "all_time";
106
+ }>>>;
107
+ }, z.core.$strip>;
108
+ export declare const cortexAiPageContextSchema: z.ZodObject<{
109
+ contentType: z.ZodEnum<{
110
+ product: "product";
111
+ page: "page";
112
+ post: "post";
113
+ }>;
114
+ currentEditor: z.ZodOptional<z.ZodObject<{
115
+ blockId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
116
+ blockType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ }, z.core.$strict>>;
119
+ entityId: z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>;
120
+ languageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
121
+ slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ translationGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ }, z.core.$strict>;
125
+ export declare const readCurrentCmsItemInputSchema: z.ZodObject<{
126
+ includeBlockContent: z.ZodDefault<z.ZodBoolean>;
127
+ includeBlocks: z.ZodDefault<z.ZodBoolean>;
128
+ }, z.core.$strict>;
129
+ export declare const updateCurrentCmsFieldsInputSchema: z.ZodObject<{
130
+ fields: z.ZodObject<{
131
+ description_json: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
132
+ excerpt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
133
+ feature_image_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
134
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
135
+ meta_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
136
+ meta_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
137
+ published_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
138
+ short_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
139
+ slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
140
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
141
+ draft: "draft";
142
+ published: "published";
143
+ archived: "archived";
144
+ active: "active";
145
+ }>>>;
146
+ subtitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
147
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
148
+ }, z.core.$strict>;
149
+ }, z.core.$strict>;
150
+ export declare const updateContentBlockInputSchema: z.ZodObject<{
151
+ blockId: z.ZodNumber;
152
+ blockType: z.ZodOptional<z.ZodEnum<{
153
+ text: "text";
154
+ section: "section";
155
+ heading: "heading";
156
+ image: "image";
157
+ button: "button";
158
+ posts_grid: "posts_grid";
159
+ video_embed: "video_embed";
160
+ form: "form";
161
+ testimonial: "testimonial";
162
+ product_grid: "product_grid";
163
+ featured_product: "featured_product";
164
+ cart: "cart";
165
+ checkout: "checkout";
166
+ product_details: "product_details";
167
+ }>>;
168
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
169
+ }, z.core.$strict>;
170
+ export declare const updateSectionColumnBlockInputSchema: z.ZodObject<{
171
+ blockIndex: z.ZodNumber;
172
+ blockType: z.ZodOptional<z.ZodEnum<{
173
+ text: "text";
174
+ section: "section";
175
+ heading: "heading";
176
+ image: "image";
177
+ button: "button";
178
+ posts_grid: "posts_grid";
179
+ video_embed: "video_embed";
180
+ form: "form";
181
+ testimonial: "testimonial";
182
+ product_grid: "product_grid";
183
+ featured_product: "featured_product";
184
+ cart: "cart";
185
+ checkout: "checkout";
186
+ product_details: "product_details";
187
+ }>>;
188
+ columnIndex: z.ZodNumber;
189
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
190
+ parentBlockId: z.ZodNumber;
191
+ }, z.core.$strict>;
192
+ export declare const insertContentBlockInputSchema: z.ZodObject<{
193
+ contentType: z.ZodOptional<z.ZodEnum<{
194
+ product: "product";
195
+ page: "page";
196
+ post: "post";
197
+ }>>;
198
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
199
+ slug: z.ZodOptional<z.ZodString>;
200
+ title: z.ZodOptional<z.ZodString>;
201
+ anchorBlockId: z.ZodOptional<z.ZodNumber>;
202
+ anchorBlockType: z.ZodOptional<z.ZodEnum<{
203
+ text: "text";
204
+ section: "section";
205
+ heading: "heading";
206
+ image: "image";
207
+ button: "button";
208
+ posts_grid: "posts_grid";
209
+ video_embed: "video_embed";
210
+ form: "form";
211
+ testimonial: "testimonial";
212
+ product_grid: "product_grid";
213
+ featured_product: "featured_product";
214
+ cart: "cart";
215
+ checkout: "checkout";
216
+ product_details: "product_details";
217
+ }>>;
218
+ block: z.ZodObject<{
219
+ blockType: z.ZodEnum<{
220
+ text: "text";
221
+ section: "section";
222
+ heading: "heading";
223
+ image: "image";
224
+ button: "button";
225
+ posts_grid: "posts_grid";
226
+ video_embed: "video_embed";
227
+ form: "form";
228
+ testimonial: "testimonial";
229
+ product_grid: "product_grid";
230
+ featured_product: "featured_product";
231
+ cart: "cart";
232
+ checkout: "checkout";
233
+ product_details: "product_details";
234
+ }>;
235
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
236
+ order: z.ZodOptional<z.ZodNumber>;
237
+ }, z.core.$strict>;
238
+ position: z.ZodDefault<z.ZodEnum<{
239
+ start: "start";
240
+ before: "before";
241
+ after: "after";
242
+ end: "end";
243
+ }>>;
244
+ }, z.core.$strict>;
245
+ export declare const createCmsPageInputSchema: z.ZodObject<{
246
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
247
+ blockType: z.ZodEnum<{
248
+ text: "text";
249
+ section: "section";
250
+ heading: "heading";
251
+ image: "image";
252
+ button: "button";
253
+ posts_grid: "posts_grid";
254
+ video_embed: "video_embed";
255
+ form: "form";
256
+ testimonial: "testimonial";
257
+ product_grid: "product_grid";
258
+ featured_product: "featured_product";
259
+ cart: "cart";
260
+ checkout: "checkout";
261
+ product_details: "product_details";
262
+ }>;
263
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
264
+ order: z.ZodOptional<z.ZodNumber>;
265
+ }, z.core.$strict>>>;
266
+ contactEmail: z.ZodOptional<z.ZodString>;
267
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ languageCode: z.ZodOptional<z.ZodString>;
269
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
+ slug: z.ZodOptional<z.ZodString>;
272
+ status: z.ZodDefault<z.ZodEnum<{
273
+ draft: "draft";
274
+ published: "published";
275
+ archived: "archived";
276
+ }>>;
277
+ title: z.ZodString;
278
+ translationGroupId: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$strict>;
280
+ export declare const createCmsPostInputSchema: z.ZodObject<{
281
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ blockType: z.ZodEnum<{
283
+ text: "text";
284
+ section: "section";
285
+ heading: "heading";
286
+ image: "image";
287
+ button: "button";
288
+ posts_grid: "posts_grid";
289
+ video_embed: "video_embed";
290
+ form: "form";
291
+ testimonial: "testimonial";
292
+ product_grid: "product_grid";
293
+ featured_product: "featured_product";
294
+ cart: "cart";
295
+ checkout: "checkout";
296
+ product_details: "product_details";
297
+ }>;
298
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
299
+ order: z.ZodOptional<z.ZodNumber>;
300
+ }, z.core.$strict>>>;
301
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ languageCode: z.ZodOptional<z.ZodString>;
305
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
307
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ slug: z.ZodOptional<z.ZodString>;
309
+ status: z.ZodDefault<z.ZodEnum<{
310
+ draft: "draft";
311
+ published: "published";
312
+ archived: "archived";
313
+ }>>;
314
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ title: z.ZodString;
316
+ translationGroupId: z.ZodOptional<z.ZodString>;
317
+ }, z.core.$strict>;
318
+ export declare const createCmsProductInputSchema: z.ZodObject<{
319
+ description_json: z.ZodOptional<z.ZodUnknown>;
320
+ freemius_plan_id: z.ZodOptional<z.ZodString>;
321
+ freemius_product_id: z.ZodOptional<z.ZodString>;
322
+ is_taxable: z.ZodDefault<z.ZodBoolean>;
323
+ languageCode: z.ZodOptional<z.ZodString>;
324
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
+ payment_provider: z.ZodDefault<z.ZodEnum<{
327
+ stripe: "stripe";
328
+ freemius: "freemius";
329
+ }>>;
330
+ price: z.ZodDefault<z.ZodNumber>;
331
+ prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
332
+ product_type: z.ZodDefault<z.ZodEnum<{
333
+ physical: "physical";
334
+ digital: "digital";
335
+ }>>;
336
+ sale_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
337
+ sale_prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
338
+ short_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
339
+ sku: z.ZodOptional<z.ZodString>;
340
+ slug: z.ZodOptional<z.ZodString>;
341
+ status: z.ZodDefault<z.ZodEnum<{
342
+ draft: "draft";
343
+ archived: "archived";
344
+ active: "active";
345
+ }>>;
346
+ stock: z.ZodDefault<z.ZodNumber>;
347
+ title: z.ZodString;
348
+ trial_period_days: z.ZodDefault<z.ZodNumber>;
349
+ trial_requires_payment_method: z.ZodDefault<z.ZodBoolean>;
350
+ translationGroupId: z.ZodOptional<z.ZodString>;
351
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ }, z.core.$strict>;
353
+ export declare const updateCmsItemFieldInputSchema: z.ZodObject<{
354
+ contentType: z.ZodOptional<z.ZodEnum<{
355
+ product: "product";
356
+ page: "page";
357
+ post: "post";
358
+ }>>;
359
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
360
+ slug: z.ZodOptional<z.ZodString>;
361
+ title: z.ZodOptional<z.ZodString>;
362
+ currencyCode: z.ZodOptional<z.ZodString>;
363
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ field: z.ZodString;
365
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ value: z.ZodUnknown;
367
+ }, z.core.$strict>;
368
+ export declare const prepareDeleteCmsItemInputSchema: z.ZodObject<{
369
+ contentType: z.ZodOptional<z.ZodEnum<{
370
+ product: "product";
371
+ page: "page";
372
+ post: "post";
373
+ }>>;
374
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
375
+ slug: z.ZodOptional<z.ZodString>;
376
+ title: z.ZodOptional<z.ZodString>;
377
+ }, z.core.$strict>;
378
+ export declare const deleteCmsItemInputSchema: z.ZodObject<{
379
+ contentType: z.ZodOptional<z.ZodEnum<{
380
+ product: "product";
381
+ page: "page";
382
+ post: "post";
383
+ }>>;
384
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
385
+ slug: z.ZodOptional<z.ZodString>;
386
+ title: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strict>;
388
+ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
389
+ actions: z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
390
+ input: z.ZodObject<{
391
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
+ blockType: z.ZodEnum<{
393
+ text: "text";
394
+ section: "section";
395
+ heading: "heading";
396
+ image: "image";
397
+ button: "button";
398
+ posts_grid: "posts_grid";
399
+ video_embed: "video_embed";
400
+ form: "form";
401
+ testimonial: "testimonial";
402
+ product_grid: "product_grid";
403
+ featured_product: "featured_product";
404
+ cart: "cart";
405
+ checkout: "checkout";
406
+ product_details: "product_details";
407
+ }>;
408
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
409
+ order: z.ZodOptional<z.ZodNumber>;
410
+ }, z.core.$strict>>>;
411
+ contactEmail: z.ZodOptional<z.ZodString>;
412
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ languageCode: z.ZodOptional<z.ZodString>;
414
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
415
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ slug: z.ZodOptional<z.ZodString>;
417
+ status: z.ZodDefault<z.ZodEnum<{
418
+ draft: "draft";
419
+ published: "published";
420
+ archived: "archived";
421
+ }>>;
422
+ title: z.ZodString;
423
+ translationGroupId: z.ZodOptional<z.ZodString>;
424
+ }, z.core.$strict>;
425
+ tool: z.ZodLiteral<"create_cms_page">;
426
+ }, z.core.$strict>, z.ZodObject<{
427
+ input: z.ZodObject<{
428
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
429
+ blockType: z.ZodEnum<{
430
+ text: "text";
431
+ section: "section";
432
+ heading: "heading";
433
+ image: "image";
434
+ button: "button";
435
+ posts_grid: "posts_grid";
436
+ video_embed: "video_embed";
437
+ form: "form";
438
+ testimonial: "testimonial";
439
+ product_grid: "product_grid";
440
+ featured_product: "featured_product";
441
+ cart: "cart";
442
+ checkout: "checkout";
443
+ product_details: "product_details";
444
+ }>;
445
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
446
+ order: z.ZodOptional<z.ZodNumber>;
447
+ }, z.core.$strict>>>;
448
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
449
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ languageCode: z.ZodOptional<z.ZodString>;
452
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
453
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
+ slug: z.ZodOptional<z.ZodString>;
456
+ status: z.ZodDefault<z.ZodEnum<{
457
+ draft: "draft";
458
+ published: "published";
459
+ archived: "archived";
460
+ }>>;
461
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ title: z.ZodString;
463
+ translationGroupId: z.ZodOptional<z.ZodString>;
464
+ }, z.core.$strict>;
465
+ tool: z.ZodLiteral<"create_cms_post">;
466
+ }, z.core.$strict>, z.ZodObject<{
467
+ input: z.ZodObject<{
468
+ description_json: z.ZodOptional<z.ZodUnknown>;
469
+ freemius_plan_id: z.ZodOptional<z.ZodString>;
470
+ freemius_product_id: z.ZodOptional<z.ZodString>;
471
+ is_taxable: z.ZodDefault<z.ZodBoolean>;
472
+ languageCode: z.ZodOptional<z.ZodString>;
473
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
474
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
+ payment_provider: z.ZodDefault<z.ZodEnum<{
476
+ stripe: "stripe";
477
+ freemius: "freemius";
478
+ }>>;
479
+ price: z.ZodDefault<z.ZodNumber>;
480
+ prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
481
+ product_type: z.ZodDefault<z.ZodEnum<{
482
+ physical: "physical";
483
+ digital: "digital";
484
+ }>>;
485
+ sale_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
486
+ sale_prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
487
+ short_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ sku: z.ZodOptional<z.ZodString>;
489
+ slug: z.ZodOptional<z.ZodString>;
490
+ status: z.ZodDefault<z.ZodEnum<{
491
+ draft: "draft";
492
+ archived: "archived";
493
+ active: "active";
494
+ }>>;
495
+ stock: z.ZodDefault<z.ZodNumber>;
496
+ title: z.ZodString;
497
+ trial_period_days: z.ZodDefault<z.ZodNumber>;
498
+ trial_requires_payment_method: z.ZodDefault<z.ZodBoolean>;
499
+ translationGroupId: z.ZodOptional<z.ZodString>;
500
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
+ }, z.core.$strict>;
502
+ tool: z.ZodLiteral<"create_cms_product">;
503
+ }, z.core.$strict>, z.ZodObject<{
504
+ input: z.ZodObject<{
505
+ contentType: z.ZodOptional<z.ZodEnum<{
506
+ product: "product";
507
+ page: "page";
508
+ post: "post";
509
+ }>>;
510
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
511
+ slug: z.ZodOptional<z.ZodString>;
512
+ title: z.ZodOptional<z.ZodString>;
513
+ }, z.core.$strict>;
514
+ tool: z.ZodLiteral<"delete_cms_item">;
515
+ }, z.core.$strict>, z.ZodObject<{
516
+ input: z.ZodObject<{
517
+ contentType: z.ZodOptional<z.ZodEnum<{
518
+ product: "product";
519
+ page: "page";
520
+ post: "post";
521
+ }>>;
522
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
523
+ slug: z.ZodOptional<z.ZodString>;
524
+ title: z.ZodOptional<z.ZodString>;
525
+ currencyCode: z.ZodOptional<z.ZodString>;
526
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
527
+ field: z.ZodString;
528
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
529
+ value: z.ZodUnknown;
530
+ }, z.core.$strict>;
531
+ tool: z.ZodLiteral<"update_cms_item_field">;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ input: z.ZodObject<{
534
+ blockId: z.ZodNumber;
535
+ blockType: z.ZodOptional<z.ZodEnum<{
536
+ text: "text";
537
+ section: "section";
538
+ heading: "heading";
539
+ image: "image";
540
+ button: "button";
541
+ posts_grid: "posts_grid";
542
+ video_embed: "video_embed";
543
+ form: "form";
544
+ testimonial: "testimonial";
545
+ product_grid: "product_grid";
546
+ featured_product: "featured_product";
547
+ cart: "cart";
548
+ checkout: "checkout";
549
+ product_details: "product_details";
550
+ }>>;
551
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
552
+ }, z.core.$strict>;
553
+ tool: z.ZodLiteral<"update_content_block">;
554
+ }, z.core.$strict>, z.ZodObject<{
555
+ input: z.ZodObject<{
556
+ contentType: z.ZodOptional<z.ZodEnum<{
557
+ product: "product";
558
+ page: "page";
559
+ post: "post";
560
+ }>>;
561
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
562
+ slug: z.ZodOptional<z.ZodString>;
563
+ title: z.ZodOptional<z.ZodString>;
564
+ anchorBlockId: z.ZodOptional<z.ZodNumber>;
565
+ anchorBlockType: z.ZodOptional<z.ZodEnum<{
566
+ text: "text";
567
+ section: "section";
568
+ heading: "heading";
569
+ image: "image";
570
+ button: "button";
571
+ posts_grid: "posts_grid";
572
+ video_embed: "video_embed";
573
+ form: "form";
574
+ testimonial: "testimonial";
575
+ product_grid: "product_grid";
576
+ featured_product: "featured_product";
577
+ cart: "cart";
578
+ checkout: "checkout";
579
+ product_details: "product_details";
580
+ }>>;
581
+ block: z.ZodObject<{
582
+ blockType: z.ZodEnum<{
583
+ text: "text";
584
+ section: "section";
585
+ heading: "heading";
586
+ image: "image";
587
+ button: "button";
588
+ posts_grid: "posts_grid";
589
+ video_embed: "video_embed";
590
+ form: "form";
591
+ testimonial: "testimonial";
592
+ product_grid: "product_grid";
593
+ featured_product: "featured_product";
594
+ cart: "cart";
595
+ checkout: "checkout";
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
+ position: z.ZodDefault<z.ZodEnum<{
602
+ start: "start";
603
+ before: "before";
604
+ after: "after";
605
+ end: "end";
606
+ }>>;
607
+ }, z.core.$strict>;
608
+ tool: z.ZodLiteral<"insert_content_block">;
609
+ }, z.core.$strict>, z.ZodObject<{
610
+ input: z.ZodObject<{
611
+ fields: z.ZodObject<{
612
+ description_json: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
613
+ excerpt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
614
+ feature_image_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
615
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
616
+ meta_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
617
+ meta_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
618
+ published_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
619
+ short_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
620
+ slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
621
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
622
+ draft: "draft";
623
+ published: "published";
624
+ archived: "archived";
625
+ active: "active";
626
+ }>>>;
627
+ subtitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
628
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
629
+ }, z.core.$strict>;
630
+ }, z.core.$strict>;
631
+ tool: z.ZodLiteral<"update_current_cms_fields">;
632
+ }, z.core.$strict>, z.ZodObject<{
633
+ input: z.ZodObject<{
634
+ copyright: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
635
+ languageCode: z.ZodDefault<z.ZodString>;
636
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
637
+ label: z.ZodString;
638
+ target: z.ZodOptional<z.ZodEnum<{
639
+ _self: "_self";
640
+ _blank: "_blank";
641
+ }>>;
642
+ url: z.ZodString;
643
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
644
+ label: z.ZodString;
645
+ target: z.ZodOptional<z.ZodEnum<{
646
+ _self: "_self";
647
+ _blank: "_blank";
648
+ }>>;
649
+ url: z.ZodString;
650
+ }, z.core.$strict>>>;
651
+ }, z.core.$strict>>>;
652
+ }, z.core.$strict>;
653
+ tool: z.ZodLiteral<"update_footer">;
654
+ }, z.core.$strict>, z.ZodObject<{
655
+ input: z.ZodObject<{
656
+ items: z.ZodArray<z.ZodObject<{
657
+ label: z.ZodString;
658
+ target: z.ZodOptional<z.ZodEnum<{
659
+ _self: "_self";
660
+ _blank: "_blank";
661
+ }>>;
662
+ url: z.ZodString;
663
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
+ label: z.ZodString;
665
+ target: z.ZodOptional<z.ZodEnum<{
666
+ _self: "_self";
667
+ _blank: "_blank";
668
+ }>>;
669
+ url: z.ZodString;
670
+ }, z.core.$strict>>>;
671
+ }, z.core.$strict>>;
672
+ languageCode: z.ZodDefault<z.ZodString>;
673
+ match: z.ZodOptional<z.ZodObject<{
674
+ label: z.ZodOptional<z.ZodString>;
675
+ url: z.ZodOptional<z.ZodString>;
676
+ }, z.core.$strict>>;
677
+ mode: z.ZodDefault<z.ZodEnum<{
678
+ replace: "replace";
679
+ update: "update";
680
+ append: "append";
681
+ }>>;
682
+ }, z.core.$strict>;
683
+ tool: z.ZodLiteral<"update_navigation_bar">;
684
+ }, z.core.$strict>, z.ZodObject<{
685
+ input: z.ZodObject<{
686
+ blockIndex: z.ZodNumber;
687
+ blockType: z.ZodOptional<z.ZodEnum<{
688
+ text: "text";
689
+ section: "section";
690
+ heading: "heading";
691
+ image: "image";
692
+ button: "button";
693
+ posts_grid: "posts_grid";
694
+ video_embed: "video_embed";
695
+ form: "form";
696
+ testimonial: "testimonial";
697
+ product_grid: "product_grid";
698
+ featured_product: "featured_product";
699
+ cart: "cart";
700
+ checkout: "checkout";
701
+ product_details: "product_details";
702
+ }>>;
703
+ columnIndex: z.ZodNumber;
704
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
705
+ parentBlockId: z.ZodNumber;
706
+ }, z.core.$strict>;
707
+ tool: z.ZodLiteral<"update_section_column_block">;
708
+ }, z.core.$strict>], "tool">, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
709
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
710
+ blockType: z.ZodEnum<{
711
+ text: "text";
712
+ section: "section";
713
+ heading: "heading";
714
+ image: "image";
715
+ button: "button";
716
+ posts_grid: "posts_grid";
717
+ video_embed: "video_embed";
718
+ form: "form";
719
+ testimonial: "testimonial";
720
+ product_grid: "product_grid";
721
+ featured_product: "featured_product";
722
+ cart: "cart";
723
+ checkout: "checkout";
724
+ product_details: "product_details";
725
+ }>;
726
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
727
+ order: z.ZodOptional<z.ZodNumber>;
728
+ }, z.core.$strict>>>;
729
+ contactEmail: z.ZodOptional<z.ZodString>;
730
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
731
+ languageCode: z.ZodOptional<z.ZodString>;
732
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
734
+ slug: z.ZodOptional<z.ZodString>;
735
+ status: z.ZodDefault<z.ZodEnum<{
736
+ draft: "draft";
737
+ published: "published";
738
+ archived: "archived";
739
+ }>>;
740
+ title: z.ZodString;
741
+ translationGroupId: z.ZodOptional<z.ZodString>;
742
+ tool: z.ZodLiteral<"create_cms_page">;
743
+ }, z.core.$strict>, z.ZodTransform<{
744
+ input: {
745
+ status: "draft" | "published" | "archived";
746
+ title: string;
747
+ blocks?: {
748
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
749
+ content: Record<string, unknown>;
750
+ order?: number | undefined;
751
+ }[] | undefined;
752
+ contactEmail?: string | undefined;
753
+ feature_image_id?: string | null | undefined;
754
+ languageCode?: string | undefined;
755
+ meta_description?: string | null | undefined;
756
+ meta_title?: string | null | undefined;
757
+ slug?: string | undefined;
758
+ translationGroupId?: string | undefined;
759
+ };
760
+ tool: "create_cms_page";
761
+ }, {
762
+ status: "draft" | "published" | "archived";
763
+ title: string;
764
+ tool: "create_cms_page";
765
+ blocks?: {
766
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
767
+ content: Record<string, unknown>;
768
+ order?: number | undefined;
769
+ }[] | undefined;
770
+ contactEmail?: string | undefined;
771
+ feature_image_id?: string | null | undefined;
772
+ languageCode?: string | undefined;
773
+ meta_description?: string | null | undefined;
774
+ meta_title?: string | null | undefined;
775
+ slug?: string | undefined;
776
+ translationGroupId?: string | undefined;
777
+ }>>, z.ZodPipe<z.ZodObject<{
778
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
779
+ blockType: z.ZodEnum<{
780
+ text: "text";
781
+ section: "section";
782
+ heading: "heading";
783
+ image: "image";
784
+ button: "button";
785
+ posts_grid: "posts_grid";
786
+ video_embed: "video_embed";
787
+ form: "form";
788
+ testimonial: "testimonial";
789
+ product_grid: "product_grid";
790
+ featured_product: "featured_product";
791
+ cart: "cart";
792
+ checkout: "checkout";
793
+ product_details: "product_details";
794
+ }>;
795
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
796
+ order: z.ZodOptional<z.ZodNumber>;
797
+ }, z.core.$strict>>>;
798
+ excerpt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
799
+ feature_image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
+ label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
+ languageCode: z.ZodOptional<z.ZodString>;
802
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
803
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
+ published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
805
+ slug: z.ZodOptional<z.ZodString>;
806
+ status: z.ZodDefault<z.ZodEnum<{
807
+ draft: "draft";
808
+ published: "published";
809
+ archived: "archived";
810
+ }>>;
811
+ subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
812
+ title: z.ZodString;
813
+ translationGroupId: z.ZodOptional<z.ZodString>;
814
+ tool: z.ZodLiteral<"create_cms_post">;
815
+ }, z.core.$strict>, z.ZodTransform<{
816
+ input: {
817
+ status: "draft" | "published" | "archived";
818
+ title: string;
819
+ blocks?: {
820
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
821
+ content: Record<string, unknown>;
822
+ order?: number | undefined;
823
+ }[] | undefined;
824
+ excerpt?: string | null | undefined;
825
+ feature_image_id?: string | null | undefined;
826
+ label?: string | null | undefined;
827
+ languageCode?: string | undefined;
828
+ meta_description?: string | null | undefined;
829
+ meta_title?: string | null | undefined;
830
+ published_at?: string | null | undefined;
831
+ slug?: string | undefined;
832
+ subtitle?: string | null | undefined;
833
+ translationGroupId?: string | undefined;
834
+ };
835
+ tool: "create_cms_post";
836
+ }, {
837
+ status: "draft" | "published" | "archived";
838
+ title: string;
839
+ tool: "create_cms_post";
840
+ blocks?: {
841
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
842
+ content: Record<string, unknown>;
843
+ order?: number | undefined;
844
+ }[] | undefined;
845
+ excerpt?: string | null | undefined;
846
+ feature_image_id?: string | null | undefined;
847
+ label?: string | null | undefined;
848
+ languageCode?: string | undefined;
849
+ meta_description?: string | null | undefined;
850
+ meta_title?: string | null | undefined;
851
+ published_at?: string | null | undefined;
852
+ slug?: string | undefined;
853
+ subtitle?: string | null | undefined;
854
+ translationGroupId?: string | undefined;
855
+ }>>, z.ZodPipe<z.ZodObject<{
856
+ description_json: z.ZodOptional<z.ZodUnknown>;
857
+ freemius_plan_id: z.ZodOptional<z.ZodString>;
858
+ freemius_product_id: z.ZodOptional<z.ZodString>;
859
+ is_taxable: z.ZodDefault<z.ZodBoolean>;
860
+ languageCode: z.ZodOptional<z.ZodString>;
861
+ meta_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
862
+ meta_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
863
+ payment_provider: z.ZodDefault<z.ZodEnum<{
864
+ stripe: "stripe";
865
+ freemius: "freemius";
866
+ }>>;
867
+ price: z.ZodDefault<z.ZodNumber>;
868
+ prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
869
+ product_type: z.ZodDefault<z.ZodEnum<{
870
+ physical: "physical";
871
+ digital: "digital";
872
+ }>>;
873
+ sale_price: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
874
+ sale_prices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
875
+ short_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ sku: z.ZodOptional<z.ZodString>;
877
+ slug: z.ZodOptional<z.ZodString>;
878
+ status: z.ZodDefault<z.ZodEnum<{
879
+ draft: "draft";
880
+ archived: "archived";
881
+ active: "active";
882
+ }>>;
883
+ stock: z.ZodDefault<z.ZodNumber>;
884
+ title: z.ZodString;
885
+ trial_period_days: z.ZodDefault<z.ZodNumber>;
886
+ trial_requires_payment_method: z.ZodDefault<z.ZodBoolean>;
887
+ translationGroupId: z.ZodOptional<z.ZodString>;
888
+ upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
+ tool: z.ZodLiteral<"create_cms_product">;
890
+ }, z.core.$strict>, z.ZodTransform<{
891
+ input: {
892
+ is_taxable: boolean;
893
+ payment_provider: "stripe" | "freemius";
894
+ price: number;
895
+ product_type: "physical" | "digital";
896
+ status: "draft" | "archived" | "active";
897
+ stock: number;
898
+ title: string;
899
+ trial_period_days: number;
900
+ trial_requires_payment_method: boolean;
901
+ description_json?: unknown;
902
+ freemius_plan_id?: string | undefined;
903
+ freemius_product_id?: string | undefined;
904
+ languageCode?: string | undefined;
905
+ meta_description?: string | null | undefined;
906
+ meta_title?: string | null | undefined;
907
+ prices?: Record<string, number> | undefined;
908
+ sale_price?: number | null | undefined;
909
+ sale_prices?: Record<string, number | null> | undefined;
910
+ short_description?: string | null | undefined;
911
+ sku?: string | undefined;
912
+ slug?: string | undefined;
913
+ translationGroupId?: string | undefined;
914
+ upc?: string | null | undefined;
915
+ };
916
+ tool: "create_cms_product";
917
+ }, {
918
+ is_taxable: boolean;
919
+ payment_provider: "stripe" | "freemius";
920
+ price: number;
921
+ product_type: "physical" | "digital";
922
+ status: "draft" | "archived" | "active";
923
+ stock: number;
924
+ title: string;
925
+ trial_period_days: number;
926
+ trial_requires_payment_method: boolean;
927
+ tool: "create_cms_product";
928
+ description_json?: unknown;
929
+ freemius_plan_id?: string | undefined;
930
+ freemius_product_id?: string | undefined;
931
+ languageCode?: string | undefined;
932
+ meta_description?: string | null | undefined;
933
+ meta_title?: string | null | undefined;
934
+ prices?: Record<string, number> | undefined;
935
+ sale_price?: number | null | undefined;
936
+ sale_prices?: Record<string, number | null> | undefined;
937
+ short_description?: string | null | undefined;
938
+ sku?: string | undefined;
939
+ slug?: string | undefined;
940
+ translationGroupId?: string | undefined;
941
+ upc?: string | null | undefined;
942
+ }>>, z.ZodPipe<z.ZodObject<{
943
+ contentType: z.ZodOptional<z.ZodEnum<{
944
+ product: "product";
945
+ page: "page";
946
+ post: "post";
947
+ }>>;
948
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
949
+ slug: z.ZodOptional<z.ZodString>;
950
+ title: z.ZodOptional<z.ZodString>;
951
+ tool: z.ZodLiteral<"delete_cms_item">;
952
+ }, z.core.$strict>, z.ZodTransform<{
953
+ input: {
954
+ contentType?: "product" | "page" | "post" | undefined;
955
+ entityId?: string | number | undefined;
956
+ slug?: string | undefined;
957
+ title?: string | undefined;
958
+ };
959
+ tool: "delete_cms_item";
960
+ }, {
961
+ tool: "delete_cms_item";
962
+ contentType?: "product" | "page" | "post" | undefined;
963
+ entityId?: string | number | undefined;
964
+ slug?: string | undefined;
965
+ title?: string | undefined;
966
+ }>>, z.ZodPipe<z.ZodObject<{
967
+ contentType: z.ZodOptional<z.ZodEnum<{
968
+ product: "product";
969
+ page: "page";
970
+ post: "post";
971
+ }>>;
972
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
973
+ slug: z.ZodOptional<z.ZodString>;
974
+ title: z.ZodOptional<z.ZodString>;
975
+ currencyCode: z.ZodOptional<z.ZodString>;
976
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
+ field: z.ZodString;
978
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
979
+ value: z.ZodUnknown;
980
+ tool: z.ZodLiteral<"update_cms_item_field">;
981
+ }, z.core.$strict>, z.ZodTransform<{
982
+ input: {
983
+ field: string;
984
+ value: unknown;
985
+ contentType?: "product" | "page" | "post" | undefined;
986
+ entityId?: string | number | undefined;
987
+ slug?: string | undefined;
988
+ title?: string | undefined;
989
+ currencyCode?: string | undefined;
990
+ endsAt?: string | null | undefined;
991
+ startsAt?: string | null | undefined;
992
+ };
993
+ tool: "update_cms_item_field";
994
+ }, {
995
+ field: string;
996
+ value: unknown;
997
+ tool: "update_cms_item_field";
998
+ contentType?: "product" | "page" | "post" | undefined;
999
+ entityId?: string | number | undefined;
1000
+ slug?: string | undefined;
1001
+ title?: string | undefined;
1002
+ currencyCode?: string | undefined;
1003
+ endsAt?: string | null | undefined;
1004
+ startsAt?: string | null | undefined;
1005
+ }>>, z.ZodPipe<z.ZodObject<{
1006
+ blockId: z.ZodNumber;
1007
+ blockType: z.ZodOptional<z.ZodEnum<{
1008
+ text: "text";
1009
+ section: "section";
1010
+ heading: "heading";
1011
+ image: "image";
1012
+ button: "button";
1013
+ posts_grid: "posts_grid";
1014
+ video_embed: "video_embed";
1015
+ form: "form";
1016
+ testimonial: "testimonial";
1017
+ product_grid: "product_grid";
1018
+ featured_product: "featured_product";
1019
+ cart: "cart";
1020
+ checkout: "checkout";
1021
+ product_details: "product_details";
1022
+ }>>;
1023
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1024
+ tool: z.ZodLiteral<"update_content_block">;
1025
+ }, z.core.$strict>, z.ZodTransform<{
1026
+ input: {
1027
+ blockId: number;
1028
+ content: Record<string, unknown>;
1029
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1030
+ };
1031
+ tool: "update_content_block";
1032
+ }, {
1033
+ blockId: number;
1034
+ content: Record<string, unknown>;
1035
+ tool: "update_content_block";
1036
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1037
+ }>>, z.ZodPipe<z.ZodObject<{
1038
+ contentType: z.ZodOptional<z.ZodEnum<{
1039
+ product: "product";
1040
+ page: "page";
1041
+ post: "post";
1042
+ }>>;
1043
+ entityId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1044
+ slug: z.ZodOptional<z.ZodString>;
1045
+ title: z.ZodOptional<z.ZodString>;
1046
+ anchorBlockId: z.ZodOptional<z.ZodNumber>;
1047
+ anchorBlockType: z.ZodOptional<z.ZodEnum<{
1048
+ text: "text";
1049
+ section: "section";
1050
+ heading: "heading";
1051
+ image: "image";
1052
+ button: "button";
1053
+ posts_grid: "posts_grid";
1054
+ video_embed: "video_embed";
1055
+ form: "form";
1056
+ testimonial: "testimonial";
1057
+ product_grid: "product_grid";
1058
+ featured_product: "featured_product";
1059
+ cart: "cart";
1060
+ checkout: "checkout";
1061
+ product_details: "product_details";
1062
+ }>>;
1063
+ block: z.ZodObject<{
1064
+ blockType: z.ZodEnum<{
1065
+ text: "text";
1066
+ section: "section";
1067
+ heading: "heading";
1068
+ image: "image";
1069
+ button: "button";
1070
+ posts_grid: "posts_grid";
1071
+ video_embed: "video_embed";
1072
+ form: "form";
1073
+ testimonial: "testimonial";
1074
+ product_grid: "product_grid";
1075
+ featured_product: "featured_product";
1076
+ cart: "cart";
1077
+ checkout: "checkout";
1078
+ product_details: "product_details";
1079
+ }>;
1080
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1081
+ order: z.ZodOptional<z.ZodNumber>;
1082
+ }, z.core.$strict>;
1083
+ position: z.ZodDefault<z.ZodEnum<{
1084
+ start: "start";
1085
+ before: "before";
1086
+ after: "after";
1087
+ end: "end";
1088
+ }>>;
1089
+ tool: z.ZodLiteral<"insert_content_block">;
1090
+ }, z.core.$strict>, z.ZodTransform<{
1091
+ input: {
1092
+ block: {
1093
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1094
+ content: Record<string, unknown>;
1095
+ order?: number | undefined;
1096
+ };
1097
+ position: "start" | "before" | "after" | "end";
1098
+ contentType?: "product" | "page" | "post" | undefined;
1099
+ entityId?: string | number | undefined;
1100
+ slug?: string | undefined;
1101
+ title?: string | undefined;
1102
+ anchorBlockId?: number | undefined;
1103
+ anchorBlockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1104
+ };
1105
+ tool: "insert_content_block";
1106
+ }, {
1107
+ block: {
1108
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1109
+ content: Record<string, unknown>;
1110
+ order?: number | undefined;
1111
+ };
1112
+ position: "start" | "before" | "after" | "end";
1113
+ tool: "insert_content_block";
1114
+ contentType?: "product" | "page" | "post" | undefined;
1115
+ entityId?: string | number | undefined;
1116
+ slug?: string | undefined;
1117
+ title?: string | undefined;
1118
+ anchorBlockId?: number | undefined;
1119
+ anchorBlockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1120
+ }>>, z.ZodPipe<z.ZodObject<{
1121
+ fields: z.ZodObject<{
1122
+ description_json: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
1123
+ excerpt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1124
+ feature_image_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1125
+ label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1126
+ meta_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1127
+ meta_title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1128
+ published_at: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1129
+ short_description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1130
+ slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1131
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1132
+ draft: "draft";
1133
+ published: "published";
1134
+ archived: "archived";
1135
+ active: "active";
1136
+ }>>>;
1137
+ subtitle: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1138
+ title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1139
+ }, z.core.$strict>;
1140
+ tool: z.ZodLiteral<"update_current_cms_fields">;
1141
+ }, z.core.$strict>, z.ZodTransform<{
1142
+ input: {
1143
+ fields: {
1144
+ description_json?: unknown;
1145
+ excerpt?: string | null | undefined;
1146
+ feature_image_id?: string | null | undefined;
1147
+ label?: string | null | undefined;
1148
+ meta_description?: string | null | undefined;
1149
+ meta_title?: string | null | undefined;
1150
+ published_at?: string | null | undefined;
1151
+ short_description?: string | null | undefined;
1152
+ slug?: string | undefined;
1153
+ status?: "draft" | "published" | "archived" | "active" | undefined;
1154
+ subtitle?: string | null | undefined;
1155
+ title?: string | undefined;
1156
+ };
1157
+ };
1158
+ tool: "update_current_cms_fields";
1159
+ }, {
1160
+ fields: {
1161
+ description_json?: unknown;
1162
+ excerpt?: string | null | undefined;
1163
+ feature_image_id?: string | null | undefined;
1164
+ label?: string | null | undefined;
1165
+ meta_description?: string | null | undefined;
1166
+ meta_title?: string | null | undefined;
1167
+ published_at?: string | null | undefined;
1168
+ short_description?: string | null | undefined;
1169
+ slug?: string | undefined;
1170
+ status?: "draft" | "published" | "archived" | "active" | undefined;
1171
+ subtitle?: string | null | undefined;
1172
+ title?: string | undefined;
1173
+ };
1174
+ tool: "update_current_cms_fields";
1175
+ }>>, z.ZodPipe<z.ZodObject<{
1176
+ copyright: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1177
+ languageCode: z.ZodDefault<z.ZodString>;
1178
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1179
+ label: z.ZodString;
1180
+ target: z.ZodOptional<z.ZodEnum<{
1181
+ _self: "_self";
1182
+ _blank: "_blank";
1183
+ }>>;
1184
+ url: z.ZodString;
1185
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1186
+ label: z.ZodString;
1187
+ target: z.ZodOptional<z.ZodEnum<{
1188
+ _self: "_self";
1189
+ _blank: "_blank";
1190
+ }>>;
1191
+ url: z.ZodString;
1192
+ }, z.core.$strict>>>;
1193
+ }, z.core.$strict>>>;
1194
+ tool: z.ZodLiteral<"update_footer">;
1195
+ }, z.core.$strict>, z.ZodTransform<{
1196
+ input: {
1197
+ languageCode: string;
1198
+ copyright?: Record<string, string> | undefined;
1199
+ links?: {
1200
+ label: string;
1201
+ url: string;
1202
+ target?: "_self" | "_blank" | undefined;
1203
+ children?: {
1204
+ label: string;
1205
+ url: string;
1206
+ target?: "_self" | "_blank" | undefined;
1207
+ }[] | undefined;
1208
+ }[] | undefined;
1209
+ };
1210
+ tool: "update_footer";
1211
+ }, {
1212
+ languageCode: string;
1213
+ tool: "update_footer";
1214
+ copyright?: Record<string, string> | undefined;
1215
+ links?: {
1216
+ label: string;
1217
+ url: string;
1218
+ target?: "_self" | "_blank" | undefined;
1219
+ children?: {
1220
+ label: string;
1221
+ url: string;
1222
+ target?: "_self" | "_blank" | undefined;
1223
+ }[] | undefined;
1224
+ }[] | undefined;
1225
+ }>>, z.ZodPipe<z.ZodObject<{
1226
+ items: z.ZodArray<z.ZodObject<{
1227
+ label: z.ZodString;
1228
+ target: z.ZodOptional<z.ZodEnum<{
1229
+ _self: "_self";
1230
+ _blank: "_blank";
1231
+ }>>;
1232
+ url: z.ZodString;
1233
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
1234
+ label: z.ZodString;
1235
+ target: z.ZodOptional<z.ZodEnum<{
1236
+ _self: "_self";
1237
+ _blank: "_blank";
1238
+ }>>;
1239
+ url: z.ZodString;
1240
+ }, z.core.$strict>>>;
1241
+ }, z.core.$strict>>;
1242
+ languageCode: z.ZodDefault<z.ZodString>;
1243
+ match: z.ZodOptional<z.ZodObject<{
1244
+ label: z.ZodOptional<z.ZodString>;
1245
+ url: z.ZodOptional<z.ZodString>;
1246
+ }, z.core.$strict>>;
1247
+ mode: z.ZodDefault<z.ZodEnum<{
1248
+ replace: "replace";
1249
+ update: "update";
1250
+ append: "append";
1251
+ }>>;
1252
+ tool: z.ZodLiteral<"update_navigation_bar">;
1253
+ }, z.core.$strict>, z.ZodTransform<{
1254
+ input: {
1255
+ items: {
1256
+ label: string;
1257
+ url: string;
1258
+ target?: "_self" | "_blank" | undefined;
1259
+ children?: {
1260
+ label: string;
1261
+ url: string;
1262
+ target?: "_self" | "_blank" | undefined;
1263
+ }[] | undefined;
1264
+ }[];
1265
+ languageCode: string;
1266
+ mode: "replace" | "update" | "append";
1267
+ match?: {
1268
+ label?: string | undefined;
1269
+ url?: string | undefined;
1270
+ } | undefined;
1271
+ };
1272
+ tool: "update_navigation_bar";
1273
+ }, {
1274
+ items: {
1275
+ label: string;
1276
+ url: string;
1277
+ target?: "_self" | "_blank" | undefined;
1278
+ children?: {
1279
+ label: string;
1280
+ url: string;
1281
+ target?: "_self" | "_blank" | undefined;
1282
+ }[] | undefined;
1283
+ }[];
1284
+ languageCode: string;
1285
+ mode: "replace" | "update" | "append";
1286
+ tool: "update_navigation_bar";
1287
+ match?: {
1288
+ label?: string | undefined;
1289
+ url?: string | undefined;
1290
+ } | undefined;
1291
+ }>>, z.ZodPipe<z.ZodObject<{
1292
+ blockIndex: z.ZodNumber;
1293
+ blockType: z.ZodOptional<z.ZodEnum<{
1294
+ text: "text";
1295
+ section: "section";
1296
+ heading: "heading";
1297
+ image: "image";
1298
+ button: "button";
1299
+ posts_grid: "posts_grid";
1300
+ video_embed: "video_embed";
1301
+ form: "form";
1302
+ testimonial: "testimonial";
1303
+ product_grid: "product_grid";
1304
+ featured_product: "featured_product";
1305
+ cart: "cart";
1306
+ checkout: "checkout";
1307
+ product_details: "product_details";
1308
+ }>>;
1309
+ columnIndex: z.ZodNumber;
1310
+ content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1311
+ parentBlockId: z.ZodNumber;
1312
+ tool: z.ZodLiteral<"update_section_column_block">;
1313
+ }, z.core.$strict>, z.ZodTransform<{
1314
+ input: {
1315
+ blockIndex: number;
1316
+ columnIndex: number;
1317
+ content: Record<string, unknown>;
1318
+ parentBlockId: number;
1319
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1320
+ };
1321
+ tool: "update_section_column_block";
1322
+ }, {
1323
+ blockIndex: number;
1324
+ columnIndex: number;
1325
+ content: Record<string, unknown>;
1326
+ parentBlockId: number;
1327
+ tool: "update_section_column_block";
1328
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1329
+ }>>]>, z.ZodPipe<z.ZodString, z.ZodTransform<{
1330
+ input: {
1331
+ status: "draft" | "published" | "archived";
1332
+ title: string;
1333
+ blocks?: {
1334
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1335
+ content: Record<string, unknown>;
1336
+ order?: number | undefined;
1337
+ }[] | undefined;
1338
+ contactEmail?: string | undefined;
1339
+ feature_image_id?: string | null | undefined;
1340
+ languageCode?: string | undefined;
1341
+ meta_description?: string | null | undefined;
1342
+ meta_title?: string | null | undefined;
1343
+ slug?: string | undefined;
1344
+ translationGroupId?: string | undefined;
1345
+ };
1346
+ tool: "create_cms_page";
1347
+ } | {
1348
+ input: {
1349
+ status: "draft" | "published" | "archived";
1350
+ title: string;
1351
+ blocks?: {
1352
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1353
+ content: Record<string, unknown>;
1354
+ order?: number | undefined;
1355
+ }[] | undefined;
1356
+ excerpt?: string | null | undefined;
1357
+ feature_image_id?: string | null | undefined;
1358
+ label?: string | null | undefined;
1359
+ languageCode?: string | undefined;
1360
+ meta_description?: string | null | undefined;
1361
+ meta_title?: string | null | undefined;
1362
+ published_at?: string | null | undefined;
1363
+ slug?: string | undefined;
1364
+ subtitle?: string | null | undefined;
1365
+ translationGroupId?: string | undefined;
1366
+ };
1367
+ tool: "create_cms_post";
1368
+ } | {
1369
+ input: {
1370
+ is_taxable: boolean;
1371
+ payment_provider: "stripe" | "freemius";
1372
+ price: number;
1373
+ product_type: "physical" | "digital";
1374
+ status: "draft" | "archived" | "active";
1375
+ stock: number;
1376
+ title: string;
1377
+ trial_period_days: number;
1378
+ trial_requires_payment_method: boolean;
1379
+ description_json?: unknown;
1380
+ freemius_plan_id?: string | undefined;
1381
+ freemius_product_id?: string | undefined;
1382
+ languageCode?: string | undefined;
1383
+ meta_description?: string | null | undefined;
1384
+ meta_title?: string | null | undefined;
1385
+ prices?: Record<string, number> | undefined;
1386
+ sale_price?: number | null | undefined;
1387
+ sale_prices?: Record<string, number | null> | undefined;
1388
+ short_description?: string | null | undefined;
1389
+ sku?: string | undefined;
1390
+ slug?: string | undefined;
1391
+ translationGroupId?: string | undefined;
1392
+ upc?: string | null | undefined;
1393
+ };
1394
+ tool: "create_cms_product";
1395
+ } | {
1396
+ input: {
1397
+ contentType?: "product" | "page" | "post" | undefined;
1398
+ entityId?: string | number | undefined;
1399
+ slug?: string | undefined;
1400
+ title?: string | undefined;
1401
+ };
1402
+ tool: "delete_cms_item";
1403
+ } | {
1404
+ input: {
1405
+ field: string;
1406
+ value: unknown;
1407
+ contentType?: "product" | "page" | "post" | undefined;
1408
+ entityId?: string | number | undefined;
1409
+ slug?: string | undefined;
1410
+ title?: string | undefined;
1411
+ currencyCode?: string | undefined;
1412
+ endsAt?: string | null | undefined;
1413
+ startsAt?: string | null | undefined;
1414
+ };
1415
+ tool: "update_cms_item_field";
1416
+ } | {
1417
+ input: {
1418
+ blockId: number;
1419
+ content: Record<string, unknown>;
1420
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1421
+ };
1422
+ tool: "update_content_block";
1423
+ } | {
1424
+ input: {
1425
+ block: {
1426
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1427
+ content: Record<string, unknown>;
1428
+ order?: number | undefined;
1429
+ };
1430
+ position: "start" | "before" | "after" | "end";
1431
+ contentType?: "product" | "page" | "post" | undefined;
1432
+ entityId?: string | number | undefined;
1433
+ slug?: string | undefined;
1434
+ title?: string | undefined;
1435
+ anchorBlockId?: number | undefined;
1436
+ anchorBlockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1437
+ };
1438
+ tool: "insert_content_block";
1439
+ } | {
1440
+ input: {
1441
+ fields: {
1442
+ description_json?: unknown;
1443
+ excerpt?: string | null | undefined;
1444
+ feature_image_id?: string | null | undefined;
1445
+ label?: string | null | undefined;
1446
+ meta_description?: string | null | undefined;
1447
+ meta_title?: string | null | undefined;
1448
+ published_at?: string | null | undefined;
1449
+ short_description?: string | null | undefined;
1450
+ slug?: string | undefined;
1451
+ status?: "draft" | "published" | "archived" | "active" | undefined;
1452
+ subtitle?: string | null | undefined;
1453
+ title?: string | undefined;
1454
+ };
1455
+ };
1456
+ tool: "update_current_cms_fields";
1457
+ } | {
1458
+ input: {
1459
+ languageCode: string;
1460
+ copyright?: Record<string, string> | undefined;
1461
+ links?: {
1462
+ label: string;
1463
+ url: string;
1464
+ target?: "_self" | "_blank" | undefined;
1465
+ children?: {
1466
+ label: string;
1467
+ url: string;
1468
+ target?: "_self" | "_blank" | undefined;
1469
+ }[] | undefined;
1470
+ }[] | undefined;
1471
+ };
1472
+ tool: "update_footer";
1473
+ } | {
1474
+ input: {
1475
+ items: {
1476
+ label: string;
1477
+ url: string;
1478
+ target?: "_self" | "_blank" | undefined;
1479
+ children?: {
1480
+ label: string;
1481
+ url: string;
1482
+ target?: "_self" | "_blank" | undefined;
1483
+ }[] | undefined;
1484
+ }[];
1485
+ languageCode: string;
1486
+ mode: "replace" | "update" | "append";
1487
+ match?: {
1488
+ label?: string | undefined;
1489
+ url?: string | undefined;
1490
+ } | undefined;
1491
+ };
1492
+ tool: "update_navigation_bar";
1493
+ } | {
1494
+ input: {
1495
+ blockIndex: number;
1496
+ columnIndex: number;
1497
+ content: Record<string, unknown>;
1498
+ parentBlockId: number;
1499
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
1500
+ };
1501
+ tool: "update_section_column_block";
1502
+ }, string>>]>>;
1503
+ summary: z.ZodOptional<z.ZodString>;
1504
+ }, z.core.$strict>;
1505
+ export type NavigationItemInput = z.infer<typeof navigationItemInputSchema>;
1506
+ export type UpdateNavigationBarInput = z.infer<typeof updateNavigationBarInputSchema>;
1507
+ export type UpdateFooterInput = z.infer<typeof updateFooterInputSchema>;
1508
+ export type SearchDocumentationInput = z.infer<typeof searchDocumentationInputSchema>;
1509
+ export type FetchEcommerceStatsInput = z.input<typeof fetchEcommerceStatsInputSchema>;
1510
+ export type CortexAiPageContext = z.infer<typeof cortexAiPageContextSchema>;
1511
+ export type ReadCurrentCmsItemInput = z.infer<typeof readCurrentCmsItemInputSchema>;
1512
+ export type UpdateCurrentCmsFieldsInput = z.infer<typeof updateCurrentCmsFieldsInputSchema>;
1513
+ export type UpdateContentBlockInput = z.infer<typeof updateContentBlockInputSchema>;
1514
+ export type InsertContentBlockInput = z.infer<typeof insertContentBlockInputSchema>;
1515
+ export type UpdateSectionColumnBlockInput = z.infer<typeof updateSectionColumnBlockInputSchema>;
1516
+ export type CreateCmsPageInput = z.infer<typeof createCmsPageInputSchema>;
1517
+ export type CreateCmsPostInput = z.infer<typeof createCmsPostInputSchema>;
1518
+ export type CreateCmsProductInput = z.infer<typeof createCmsProductInputSchema>;
1519
+ export type UpdateCmsItemFieldInput = z.infer<typeof updateCmsItemFieldInputSchema>;
1520
+ export type PrepareDeleteCmsItemInput = z.infer<typeof prepareDeleteCmsItemInputSchema>;
1521
+ export type DeleteCmsItemInput = z.infer<typeof deleteCmsItemInputSchema>;
1522
+ export type ExecuteCmsActionPlanInput = z.infer<typeof executeCmsActionPlanInputSchema>;
1523
+ export declare function buildVisibleContactIntroActionPlan(message: string): ExecuteCmsActionPlanInput | null;
1524
+ type BlockValidationResult = {
1525
+ errors: string[];
1526
+ isValid: boolean;
1527
+ warnings: string[];
1528
+ };
1529
+ export declare function executeUpdateNavigationBar(input: UpdateNavigationBarInput, context?: ToolExecutionContext): Promise<{
1530
+ confirmationPhrase: string;
1531
+ mutationExecuted: boolean;
1532
+ preview: Record<string, unknown>;
1533
+ requiresConfirmation: boolean;
1534
+ success: boolean;
1535
+ } | {
1536
+ mutationExecuted: boolean;
1537
+ mode: "replace" | "update" | "append";
1538
+ success: boolean;
1539
+ insertedCount: number;
1540
+ languageCode: string;
1541
+ menuKey: MenuKey;
1542
+ skippedCount: number;
1543
+ updatedCount: number;
1544
+ }>;
1545
+ export declare function executeUpdateFooter(input: UpdateFooterInput, context?: ToolExecutionContext): Promise<{
1546
+ confirmationPhrase: string;
1547
+ mutationExecuted: boolean;
1548
+ preview: Record<string, unknown>;
1549
+ requiresConfirmation: boolean;
1550
+ success: boolean;
1551
+ } | {
1552
+ copyrightUpdated: boolean;
1553
+ footerNavigation: {
1554
+ insertedCount: number;
1555
+ languageCode: string;
1556
+ menuKey: "FOOTER";
1557
+ skippedCount: number;
1558
+ updatedCount: number;
1559
+ } | null;
1560
+ mutationExecuted: boolean;
1561
+ success: boolean;
1562
+ }>;
1563
+ export declare function executeSearchDocumentation(input: SearchDocumentationInput, context?: ToolExecutionContext): Promise<{
1564
+ query: string;
1565
+ results: {
1566
+ excerpt: string;
1567
+ source: "page" | "post";
1568
+ title: string;
1569
+ url: string;
1570
+ }[];
1571
+ success: boolean;
1572
+ }>;
1573
+ export declare function executeSearchDocumentationWithTimeout(input: SearchDocumentationInput, context?: ToolExecutionContext, timeoutMs?: number): Promise<{
1574
+ query: string;
1575
+ results: {
1576
+ excerpt: string;
1577
+ source: "page" | "post";
1578
+ title: string;
1579
+ url: string;
1580
+ }[];
1581
+ success: boolean;
1582
+ }>;
1583
+ export declare function executeFetchEcommerceStats(input: FetchEcommerceStatsInput, context?: ToolExecutionContext): Promise<{
1584
+ report: Record<string, any>;
1585
+ success: boolean;
1586
+ }>;
1587
+ export declare function executeReadCurrentCmsItem(input: ReadCurrentCmsItemInput, context?: ToolExecutionContext): Promise<{
1588
+ blocks: {
1589
+ blockType: any;
1590
+ content: any;
1591
+ id: any;
1592
+ languageId: any;
1593
+ order: any;
1594
+ pageId: any;
1595
+ postId: any;
1596
+ }[];
1597
+ context: {
1598
+ contentType: "product" | "page" | "post";
1599
+ entityId: string | number;
1600
+ currentEditor?: {
1601
+ blockId?: string | number | null | undefined;
1602
+ blockType?: string | null | undefined;
1603
+ field?: string | null | undefined;
1604
+ } | undefined;
1605
+ languageId?: number | null | undefined;
1606
+ slug?: string | null | undefined;
1607
+ title?: string | null | undefined;
1608
+ translationGroupId?: string | null | undefined;
1609
+ };
1610
+ item: any;
1611
+ success: boolean;
1612
+ }>;
1613
+ export declare function executeUpdateCurrentCmsFields(input: UpdateCurrentCmsFieldsInput, context?: ToolExecutionContext): Promise<{
1614
+ confirmationPhrase: string;
1615
+ mutationExecuted: boolean;
1616
+ preview: Record<string, unknown>;
1617
+ requiresConfirmation: boolean;
1618
+ success: boolean;
1619
+ } | {
1620
+ contentType: "product" | "page" | "post";
1621
+ entityId: string | number;
1622
+ mutationExecuted: boolean;
1623
+ slug: any;
1624
+ success: boolean;
1625
+ updatedFields: string[];
1626
+ }>;
1627
+ export declare function executeUpdateContentBlock(input: UpdateContentBlockInput, context?: ToolExecutionContext): Promise<{
1628
+ confirmationPhrase: string;
1629
+ mutationExecuted: boolean;
1630
+ preview: Record<string, unknown>;
1631
+ requiresConfirmation: boolean;
1632
+ success: boolean;
1633
+ } | {
1634
+ blockId: any;
1635
+ blockType: any;
1636
+ contentUpdated: boolean;
1637
+ mutationExecuted: boolean;
1638
+ success: boolean;
1639
+ }>;
1640
+ export declare function executeInsertContentBlock(input: InsertContentBlockInput, context?: ToolExecutionContext): Promise<{
1641
+ confirmationPhrase: string;
1642
+ mutationExecuted: boolean;
1643
+ preview: Record<string, unknown>;
1644
+ requiresConfirmation: boolean;
1645
+ success: boolean;
1646
+ } | {
1647
+ blockId: any;
1648
+ blockType: any;
1649
+ contentType: "page" | "post";
1650
+ entityId: any;
1651
+ mutationExecuted: boolean;
1652
+ order: any;
1653
+ success: boolean;
1654
+ }>;
1655
+ export declare function executeUpdateSectionColumnBlock(input: UpdateSectionColumnBlockInput, context?: ToolExecutionContext): Promise<{
1656
+ confirmationPhrase: string;
1657
+ mutationExecuted: boolean;
1658
+ preview: Record<string, unknown>;
1659
+ requiresConfirmation: boolean;
1660
+ success: boolean;
1661
+ } | {
1662
+ blockIndex: number;
1663
+ columnIndex: number;
1664
+ mutationExecuted: boolean;
1665
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1666
+ parentBlockId: any;
1667
+ parentBlockType: any;
1668
+ success: boolean;
1669
+ }>;
1670
+ export declare function executeCreateCmsPage(input: CreateCmsPageInput, context?: ToolExecutionContext): Promise<{
1671
+ confirmationPhrase: string;
1672
+ mutationExecuted: boolean;
1673
+ preview: Record<string, unknown>;
1674
+ requiresConfirmation: boolean;
1675
+ success: boolean;
1676
+ } | {
1677
+ duplicate: boolean;
1678
+ existingItem: any;
1679
+ mutationExecuted: boolean;
1680
+ success: boolean;
1681
+ message: string;
1682
+ } | {
1683
+ message: string;
1684
+ mutationExecuted: boolean;
1685
+ success: boolean;
1686
+ duplicateTranslation?: undefined;
1687
+ existingItem?: undefined;
1688
+ } | {
1689
+ duplicateTranslation: boolean;
1690
+ existingItem: any;
1691
+ message: string;
1692
+ mutationExecuted: boolean;
1693
+ success: boolean;
1694
+ } | {
1695
+ blockCount: number;
1696
+ contentType: string;
1697
+ editPath: string;
1698
+ entityId: any;
1699
+ mutationExecuted: boolean;
1700
+ slug: string;
1701
+ success: boolean;
1702
+ title: string;
1703
+ translationGroupId: any;
1704
+ }>;
1705
+ export declare function executeCreateCmsPost(input: CreateCmsPostInput, context?: ToolExecutionContext): Promise<{
1706
+ confirmationPhrase: string;
1707
+ mutationExecuted: boolean;
1708
+ preview: Record<string, unknown>;
1709
+ requiresConfirmation: boolean;
1710
+ success: boolean;
1711
+ } | {
1712
+ duplicate: boolean;
1713
+ existingItem: any;
1714
+ mutationExecuted: boolean;
1715
+ success: boolean;
1716
+ message: string;
1717
+ } | {
1718
+ message: string;
1719
+ mutationExecuted: boolean;
1720
+ success: boolean;
1721
+ duplicateTranslation?: undefined;
1722
+ existingItem?: undefined;
1723
+ } | {
1724
+ duplicateTranslation: boolean;
1725
+ existingItem: any;
1726
+ message: string;
1727
+ mutationExecuted: boolean;
1728
+ success: boolean;
1729
+ } | {
1730
+ blockCount: number;
1731
+ contentType: string;
1732
+ editPath: string;
1733
+ entityId: any;
1734
+ mutationExecuted: boolean;
1735
+ slug: string;
1736
+ success: boolean;
1737
+ title: string;
1738
+ translationGroupId: any;
1739
+ }>;
1740
+ export declare function executeCreateCmsProduct(input: CreateCmsProductInput, context?: ToolExecutionContext): Promise<{
1741
+ confirmationPhrase: string;
1742
+ mutationExecuted: boolean;
1743
+ preview: Record<string, unknown>;
1744
+ requiresConfirmation: boolean;
1745
+ success: boolean;
1746
+ } | {
1747
+ duplicate: boolean;
1748
+ existingItem: any;
1749
+ mutationExecuted: boolean;
1750
+ success: boolean;
1751
+ message: string;
1752
+ } | {
1753
+ message: string;
1754
+ mutationExecuted: boolean;
1755
+ success: boolean;
1756
+ duplicateTranslation?: undefined;
1757
+ existingItem?: undefined;
1758
+ } | {
1759
+ duplicateTranslation: boolean;
1760
+ existingItem: any;
1761
+ message: string;
1762
+ mutationExecuted: boolean;
1763
+ success: boolean;
1764
+ } | {
1765
+ contentType: string;
1766
+ editPath: string;
1767
+ entityId: string;
1768
+ mutationExecuted: boolean;
1769
+ slug: string;
1770
+ success: boolean;
1771
+ title: string;
1772
+ translationGroupId: string;
1773
+ }>;
1774
+ export declare function executeUpdateCmsItemField(input: UpdateCmsItemFieldInput, context?: ToolExecutionContext): Promise<{
1775
+ confirmationPhrase: string;
1776
+ mutationExecuted: boolean;
1777
+ preview: Record<string, unknown>;
1778
+ requiresConfirmation: boolean;
1779
+ success: boolean;
1780
+ } | {
1781
+ message: string;
1782
+ mutationExecuted: boolean;
1783
+ success: boolean;
1784
+ unsupported: boolean;
1785
+ contentType?: undefined;
1786
+ entityId?: undefined;
1787
+ field?: undefined;
1788
+ slug?: undefined;
1789
+ updatedFields?: undefined;
1790
+ } | {
1791
+ contentType: string;
1792
+ entityId: any;
1793
+ field: string;
1794
+ mutationExecuted: boolean;
1795
+ slug: any;
1796
+ success: boolean;
1797
+ updatedFields: string[];
1798
+ message?: undefined;
1799
+ unsupported?: undefined;
1800
+ }>;
1801
+ export declare function executePrepareDeleteCmsItem(input: PrepareDeleteCmsItemInput, context?: ToolExecutionContext): Promise<{
1802
+ preparedDelete: boolean;
1803
+ confirmationPhrase: string;
1804
+ mutationExecuted: boolean;
1805
+ preview: Record<string, unknown>;
1806
+ requiresConfirmation: boolean;
1807
+ success: boolean;
1808
+ }>;
1809
+ export declare function executeDeleteCmsItem(input: DeleteCmsItemInput, context?: ToolExecutionContext): Promise<{
1810
+ confirmationPhrase: string;
1811
+ mutationExecuted: boolean;
1812
+ preview: Record<string, unknown>;
1813
+ requiresConfirmation: boolean;
1814
+ success: boolean;
1815
+ } | {
1816
+ affectedCount: number;
1817
+ collectionPath: string;
1818
+ contentType: "product" | "page" | "post";
1819
+ mutationExecuted: boolean;
1820
+ redirectPath: string;
1821
+ success: boolean;
1822
+ }>;
1823
+ export declare function executeCmsActionPlan(input: ExecuteCmsActionPlanInput, context?: ToolExecutionContext): Promise<{
1824
+ confirmationPhrase: string;
1825
+ mutationExecuted: boolean;
1826
+ preview: Record<string, unknown>;
1827
+ requiresConfirmation: boolean;
1828
+ success: boolean;
1829
+ } | {
1830
+ duplicate: boolean;
1831
+ existingItem: any;
1832
+ mutationExecuted: boolean;
1833
+ success: boolean;
1834
+ message: string;
1835
+ } | {
1836
+ message: string;
1837
+ mutationExecuted: boolean;
1838
+ success: boolean;
1839
+ duplicateTranslation?: undefined;
1840
+ existingItem?: undefined;
1841
+ } | {
1842
+ duplicateTranslation: boolean;
1843
+ existingItem: any;
1844
+ message: string;
1845
+ mutationExecuted: boolean;
1846
+ success: boolean;
1847
+ } | {
1848
+ mutationExecuted: boolean;
1849
+ mode: "replace" | "update" | "append";
1850
+ success: boolean;
1851
+ insertedCount: number;
1852
+ languageCode: string;
1853
+ menuKey: MenuKey;
1854
+ skippedCount: number;
1855
+ updatedCount: number;
1856
+ } | {
1857
+ copyrightUpdated: boolean;
1858
+ footerNavigation: {
1859
+ insertedCount: number;
1860
+ languageCode: string;
1861
+ menuKey: "FOOTER";
1862
+ skippedCount: number;
1863
+ updatedCount: number;
1864
+ } | null;
1865
+ mutationExecuted: boolean;
1866
+ success: boolean;
1867
+ } | {
1868
+ contentType: "product" | "page" | "post";
1869
+ entityId: string | number;
1870
+ mutationExecuted: boolean;
1871
+ slug: any;
1872
+ success: boolean;
1873
+ updatedFields: string[];
1874
+ } | {
1875
+ blockId: any;
1876
+ blockType: any;
1877
+ contentUpdated: boolean;
1878
+ mutationExecuted: boolean;
1879
+ success: boolean;
1880
+ } | {
1881
+ blockId: any;
1882
+ blockType: any;
1883
+ contentType: "page" | "post";
1884
+ entityId: any;
1885
+ mutationExecuted: boolean;
1886
+ order: any;
1887
+ success: boolean;
1888
+ } | {
1889
+ blockIndex: number;
1890
+ columnIndex: number;
1891
+ mutationExecuted: boolean;
1892
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
1893
+ parentBlockId: any;
1894
+ parentBlockType: any;
1895
+ success: boolean;
1896
+ } | {
1897
+ blockCount: number;
1898
+ contentType: string;
1899
+ editPath: string;
1900
+ entityId: any;
1901
+ mutationExecuted: boolean;
1902
+ slug: string;
1903
+ success: boolean;
1904
+ title: string;
1905
+ translationGroupId: any;
1906
+ } | {
1907
+ contentType: string;
1908
+ editPath: string;
1909
+ entityId: string;
1910
+ mutationExecuted: boolean;
1911
+ slug: string;
1912
+ success: boolean;
1913
+ title: string;
1914
+ translationGroupId: string;
1915
+ } | {
1916
+ message: string;
1917
+ mutationExecuted: boolean;
1918
+ success: boolean;
1919
+ unsupported: boolean;
1920
+ contentType?: undefined;
1921
+ entityId?: undefined;
1922
+ field?: undefined;
1923
+ slug?: undefined;
1924
+ updatedFields?: undefined;
1925
+ } | {
1926
+ contentType: string;
1927
+ entityId: any;
1928
+ field: string;
1929
+ mutationExecuted: boolean;
1930
+ slug: any;
1931
+ success: boolean;
1932
+ updatedFields: string[];
1933
+ message?: undefined;
1934
+ unsupported?: undefined;
1935
+ } | {
1936
+ affectedCount: number;
1937
+ collectionPath: string;
1938
+ contentType: "product" | "page" | "post";
1939
+ mutationExecuted: boolean;
1940
+ redirectPath: string;
1941
+ success: boolean;
1942
+ } | {
1943
+ redirectPath?: string | undefined;
1944
+ editPath?: string | undefined;
1945
+ actionCount: number;
1946
+ failedActionIndex: number;
1947
+ 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";
1948
+ message: string;
1949
+ mutationExecuted: boolean;
1950
+ results: {
1951
+ output: unknown;
1952
+ tool: string;
1953
+ }[];
1954
+ success: boolean;
1955
+ summary?: undefined;
1956
+ } | {
1957
+ actionCount: number;
1958
+ editPath: string | undefined;
1959
+ mutationExecuted: boolean;
1960
+ redirectPath: string | undefined;
1961
+ results: {
1962
+ output: unknown;
1963
+ tool: string;
1964
+ }[];
1965
+ success: boolean;
1966
+ summary: string | null;
1967
+ }>;
1968
+ export declare function createCortexGlobalAgentTools(context?: ToolExecutionContext): {
1969
+ fetch_ecommerce_stats: import('ai').Tool<{
1970
+ query: string;
1971
+ reportType: "products" | "orders" | "revenue" | "general";
1972
+ timeRange: "today" | "this_month" | "last_7_days" | "last_30_days" | "last_month" | "last_90_days" | "all_time";
1973
+ currency?: string | undefined;
1974
+ }, {
1975
+ report: Record<string, any>;
1976
+ success: boolean;
1977
+ }>;
1978
+ read_current_cms_item: import('ai').Tool<{
1979
+ includeBlockContent: boolean;
1980
+ includeBlocks: boolean;
1981
+ }, {
1982
+ blocks: {
1983
+ blockType: any;
1984
+ content: any;
1985
+ id: any;
1986
+ languageId: any;
1987
+ order: any;
1988
+ pageId: any;
1989
+ postId: any;
1990
+ }[];
1991
+ context: {
1992
+ contentType: "product" | "page" | "post";
1993
+ entityId: string | number;
1994
+ currentEditor?: {
1995
+ blockId?: string | number | null | undefined;
1996
+ blockType?: string | null | undefined;
1997
+ field?: string | null | undefined;
1998
+ } | undefined;
1999
+ languageId?: number | null | undefined;
2000
+ slug?: string | null | undefined;
2001
+ title?: string | null | undefined;
2002
+ translationGroupId?: string | null | undefined;
2003
+ };
2004
+ item: any;
2005
+ success: boolean;
2006
+ }>;
2007
+ search_documentation: import('ai').Tool<{
2008
+ limit: number;
2009
+ query: string;
2010
+ }, {
2011
+ query: string;
2012
+ results: {
2013
+ excerpt: string;
2014
+ source: "page" | "post";
2015
+ title: string;
2016
+ url: string;
2017
+ }[];
2018
+ success: boolean;
2019
+ }>;
2020
+ create_cms_page: import('ai').Tool<{
2021
+ status: "draft" | "published" | "archived";
2022
+ title: string;
2023
+ blocks?: {
2024
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2025
+ content: Record<string, unknown>;
2026
+ order?: number | undefined;
2027
+ }[] | undefined;
2028
+ contactEmail?: string | undefined;
2029
+ feature_image_id?: string | null | undefined;
2030
+ languageCode?: string | undefined;
2031
+ meta_description?: string | null | undefined;
2032
+ meta_title?: string | null | undefined;
2033
+ slug?: string | undefined;
2034
+ translationGroupId?: string | undefined;
2035
+ }, {
2036
+ confirmationPhrase: string;
2037
+ mutationExecuted: boolean;
2038
+ preview: Record<string, unknown>;
2039
+ requiresConfirmation: boolean;
2040
+ success: boolean;
2041
+ } | {
2042
+ duplicate: boolean;
2043
+ existingItem: any;
2044
+ mutationExecuted: boolean;
2045
+ success: boolean;
2046
+ message: string;
2047
+ } | {
2048
+ message: string;
2049
+ mutationExecuted: boolean;
2050
+ success: boolean;
2051
+ duplicateTranslation?: undefined;
2052
+ existingItem?: undefined;
2053
+ } | {
2054
+ duplicateTranslation: boolean;
2055
+ existingItem: any;
2056
+ message: string;
2057
+ mutationExecuted: boolean;
2058
+ success: boolean;
2059
+ } | {
2060
+ blockCount: number;
2061
+ contentType: string;
2062
+ editPath: string;
2063
+ entityId: any;
2064
+ mutationExecuted: boolean;
2065
+ slug: string;
2066
+ success: boolean;
2067
+ title: string;
2068
+ translationGroupId: any;
2069
+ }>;
2070
+ create_cms_post: import('ai').Tool<{
2071
+ status: "draft" | "published" | "archived";
2072
+ title: string;
2073
+ blocks?: {
2074
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2075
+ content: Record<string, unknown>;
2076
+ order?: number | undefined;
2077
+ }[] | undefined;
2078
+ excerpt?: string | null | undefined;
2079
+ feature_image_id?: string | null | undefined;
2080
+ label?: string | null | undefined;
2081
+ languageCode?: string | undefined;
2082
+ meta_description?: string | null | undefined;
2083
+ meta_title?: string | null | undefined;
2084
+ published_at?: string | null | undefined;
2085
+ slug?: string | undefined;
2086
+ subtitle?: string | null | undefined;
2087
+ translationGroupId?: string | undefined;
2088
+ }, {
2089
+ confirmationPhrase: string;
2090
+ mutationExecuted: boolean;
2091
+ preview: Record<string, unknown>;
2092
+ requiresConfirmation: boolean;
2093
+ success: boolean;
2094
+ } | {
2095
+ duplicate: boolean;
2096
+ existingItem: any;
2097
+ mutationExecuted: boolean;
2098
+ success: boolean;
2099
+ message: string;
2100
+ } | {
2101
+ message: string;
2102
+ mutationExecuted: boolean;
2103
+ success: boolean;
2104
+ duplicateTranslation?: undefined;
2105
+ existingItem?: undefined;
2106
+ } | {
2107
+ duplicateTranslation: boolean;
2108
+ existingItem: any;
2109
+ message: string;
2110
+ mutationExecuted: boolean;
2111
+ success: boolean;
2112
+ } | {
2113
+ blockCount: number;
2114
+ contentType: string;
2115
+ editPath: string;
2116
+ entityId: any;
2117
+ mutationExecuted: boolean;
2118
+ slug: string;
2119
+ success: boolean;
2120
+ title: string;
2121
+ translationGroupId: any;
2122
+ }>;
2123
+ create_cms_product: import('ai').Tool<{
2124
+ is_taxable: boolean;
2125
+ payment_provider: "stripe" | "freemius";
2126
+ price: number;
2127
+ product_type: "physical" | "digital";
2128
+ status: "draft" | "archived" | "active";
2129
+ stock: number;
2130
+ title: string;
2131
+ trial_period_days: number;
2132
+ trial_requires_payment_method: boolean;
2133
+ description_json?: unknown;
2134
+ freemius_plan_id?: string | undefined;
2135
+ freemius_product_id?: string | undefined;
2136
+ languageCode?: string | undefined;
2137
+ meta_description?: string | null | undefined;
2138
+ meta_title?: string | null | undefined;
2139
+ prices?: Record<string, number> | undefined;
2140
+ sale_price?: number | null | undefined;
2141
+ sale_prices?: Record<string, number | null> | undefined;
2142
+ short_description?: string | null | undefined;
2143
+ sku?: string | undefined;
2144
+ slug?: string | undefined;
2145
+ translationGroupId?: string | undefined;
2146
+ upc?: string | null | undefined;
2147
+ }, {
2148
+ confirmationPhrase: string;
2149
+ mutationExecuted: boolean;
2150
+ preview: Record<string, unknown>;
2151
+ requiresConfirmation: boolean;
2152
+ success: boolean;
2153
+ } | {
2154
+ duplicate: boolean;
2155
+ existingItem: any;
2156
+ mutationExecuted: boolean;
2157
+ success: boolean;
2158
+ message: string;
2159
+ } | {
2160
+ message: string;
2161
+ mutationExecuted: boolean;
2162
+ success: boolean;
2163
+ duplicateTranslation?: undefined;
2164
+ existingItem?: undefined;
2165
+ } | {
2166
+ duplicateTranslation: boolean;
2167
+ existingItem: any;
2168
+ message: string;
2169
+ mutationExecuted: boolean;
2170
+ success: boolean;
2171
+ } | {
2172
+ contentType: string;
2173
+ editPath: string;
2174
+ entityId: string;
2175
+ mutationExecuted: boolean;
2176
+ slug: string;
2177
+ success: boolean;
2178
+ title: string;
2179
+ translationGroupId: string;
2180
+ }>;
2181
+ delete_cms_item: import('ai').Tool<{
2182
+ contentType?: "product" | "page" | "post" | undefined;
2183
+ entityId?: string | number | undefined;
2184
+ slug?: string | undefined;
2185
+ title?: string | undefined;
2186
+ }, {
2187
+ confirmationPhrase: string;
2188
+ mutationExecuted: boolean;
2189
+ preview: Record<string, unknown>;
2190
+ requiresConfirmation: boolean;
2191
+ success: boolean;
2192
+ } | {
2193
+ affectedCount: number;
2194
+ collectionPath: string;
2195
+ contentType: "product" | "page" | "post";
2196
+ mutationExecuted: boolean;
2197
+ redirectPath: string;
2198
+ success: boolean;
2199
+ }>;
2200
+ prepare_delete_cms_item: import('ai').Tool<{
2201
+ contentType?: "product" | "page" | "post" | undefined;
2202
+ entityId?: string | number | undefined;
2203
+ slug?: string | undefined;
2204
+ title?: string | undefined;
2205
+ }, {
2206
+ preparedDelete: boolean;
2207
+ confirmationPhrase: string;
2208
+ mutationExecuted: boolean;
2209
+ preview: Record<string, unknown>;
2210
+ requiresConfirmation: boolean;
2211
+ success: boolean;
2212
+ }>;
2213
+ update_footer: import('ai').Tool<{
2214
+ languageCode: string;
2215
+ copyright?: Record<string, string> | undefined;
2216
+ links?: {
2217
+ label: string;
2218
+ url: string;
2219
+ target?: "_self" | "_blank" | undefined;
2220
+ children?: {
2221
+ label: string;
2222
+ url: string;
2223
+ target?: "_self" | "_blank" | undefined;
2224
+ }[] | undefined;
2225
+ }[] | undefined;
2226
+ }, {
2227
+ confirmationPhrase: string;
2228
+ mutationExecuted: boolean;
2229
+ preview: Record<string, unknown>;
2230
+ requiresConfirmation: boolean;
2231
+ success: boolean;
2232
+ } | {
2233
+ copyrightUpdated: boolean;
2234
+ footerNavigation: {
2235
+ insertedCount: number;
2236
+ languageCode: string;
2237
+ menuKey: "FOOTER";
2238
+ skippedCount: number;
2239
+ updatedCount: number;
2240
+ } | null;
2241
+ mutationExecuted: boolean;
2242
+ success: boolean;
2243
+ }>;
2244
+ update_content_block: import('ai').Tool<{
2245
+ blockId: number;
2246
+ content: Record<string, unknown>;
2247
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2248
+ }, {
2249
+ confirmationPhrase: string;
2250
+ mutationExecuted: boolean;
2251
+ preview: Record<string, unknown>;
2252
+ requiresConfirmation: boolean;
2253
+ success: boolean;
2254
+ } | {
2255
+ blockId: any;
2256
+ blockType: any;
2257
+ contentUpdated: boolean;
2258
+ mutationExecuted: boolean;
2259
+ success: boolean;
2260
+ }>;
2261
+ insert_content_block: import('ai').Tool<{
2262
+ block: {
2263
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2264
+ content: Record<string, unknown>;
2265
+ order?: number | undefined;
2266
+ };
2267
+ position: "start" | "before" | "after" | "end";
2268
+ contentType?: "product" | "page" | "post" | undefined;
2269
+ entityId?: string | number | undefined;
2270
+ slug?: string | undefined;
2271
+ title?: string | undefined;
2272
+ anchorBlockId?: number | undefined;
2273
+ anchorBlockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2274
+ }, {
2275
+ confirmationPhrase: string;
2276
+ mutationExecuted: boolean;
2277
+ preview: Record<string, unknown>;
2278
+ requiresConfirmation: boolean;
2279
+ success: boolean;
2280
+ } | {
2281
+ blockId: any;
2282
+ blockType: any;
2283
+ contentType: "page" | "post";
2284
+ entityId: any;
2285
+ mutationExecuted: boolean;
2286
+ order: any;
2287
+ success: boolean;
2288
+ }>;
2289
+ update_current_cms_fields: import('ai').Tool<{
2290
+ fields: {
2291
+ description_json?: unknown;
2292
+ excerpt?: string | null | undefined;
2293
+ feature_image_id?: string | null | undefined;
2294
+ label?: string | null | undefined;
2295
+ meta_description?: string | null | undefined;
2296
+ meta_title?: string | null | undefined;
2297
+ published_at?: string | null | undefined;
2298
+ short_description?: string | null | undefined;
2299
+ slug?: string | undefined;
2300
+ status?: "draft" | "published" | "archived" | "active" | undefined;
2301
+ subtitle?: string | null | undefined;
2302
+ title?: string | undefined;
2303
+ };
2304
+ }, {
2305
+ confirmationPhrase: string;
2306
+ mutationExecuted: boolean;
2307
+ preview: Record<string, unknown>;
2308
+ requiresConfirmation: boolean;
2309
+ success: boolean;
2310
+ } | {
2311
+ contentType: "product" | "page" | "post";
2312
+ entityId: string | number;
2313
+ mutationExecuted: boolean;
2314
+ slug: any;
2315
+ success: boolean;
2316
+ updatedFields: string[];
2317
+ }>;
2318
+ update_cms_item_field: import('ai').Tool<{
2319
+ field: string;
2320
+ value: unknown;
2321
+ contentType?: "product" | "page" | "post" | undefined;
2322
+ entityId?: string | number | undefined;
2323
+ slug?: string | undefined;
2324
+ title?: string | undefined;
2325
+ currencyCode?: string | undefined;
2326
+ endsAt?: string | null | undefined;
2327
+ startsAt?: string | null | undefined;
2328
+ }, {
2329
+ confirmationPhrase: string;
2330
+ mutationExecuted: boolean;
2331
+ preview: Record<string, unknown>;
2332
+ requiresConfirmation: boolean;
2333
+ success: boolean;
2334
+ } | {
2335
+ message: string;
2336
+ mutationExecuted: boolean;
2337
+ success: boolean;
2338
+ unsupported: boolean;
2339
+ contentType?: undefined;
2340
+ entityId?: undefined;
2341
+ field?: undefined;
2342
+ slug?: undefined;
2343
+ updatedFields?: undefined;
2344
+ } | {
2345
+ contentType: string;
2346
+ entityId: any;
2347
+ field: string;
2348
+ mutationExecuted: boolean;
2349
+ slug: any;
2350
+ success: boolean;
2351
+ updatedFields: string[];
2352
+ message?: undefined;
2353
+ unsupported?: undefined;
2354
+ }>;
2355
+ update_navigation_bar: import('ai').Tool<{
2356
+ items: {
2357
+ label: string;
2358
+ url: string;
2359
+ target?: "_self" | "_blank" | undefined;
2360
+ children?: {
2361
+ label: string;
2362
+ url: string;
2363
+ target?: "_self" | "_blank" | undefined;
2364
+ }[] | undefined;
2365
+ }[];
2366
+ languageCode: string;
2367
+ mode: "replace" | "update" | "append";
2368
+ match?: {
2369
+ label?: string | undefined;
2370
+ url?: string | undefined;
2371
+ } | undefined;
2372
+ }, {
2373
+ confirmationPhrase: string;
2374
+ mutationExecuted: boolean;
2375
+ preview: Record<string, unknown>;
2376
+ requiresConfirmation: boolean;
2377
+ success: boolean;
2378
+ } | {
2379
+ mutationExecuted: boolean;
2380
+ mode: "replace" | "update" | "append";
2381
+ success: boolean;
2382
+ insertedCount: number;
2383
+ languageCode: string;
2384
+ menuKey: MenuKey;
2385
+ skippedCount: number;
2386
+ updatedCount: number;
2387
+ }>;
2388
+ update_section_column_block: import('ai').Tool<{
2389
+ blockIndex: number;
2390
+ columnIndex: number;
2391
+ content: Record<string, unknown>;
2392
+ parentBlockId: number;
2393
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2394
+ }, {
2395
+ confirmationPhrase: string;
2396
+ mutationExecuted: boolean;
2397
+ preview: Record<string, unknown>;
2398
+ requiresConfirmation: boolean;
2399
+ success: boolean;
2400
+ } | {
2401
+ blockIndex: number;
2402
+ columnIndex: number;
2403
+ mutationExecuted: boolean;
2404
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2405
+ parentBlockId: any;
2406
+ parentBlockType: any;
2407
+ success: boolean;
2408
+ }>;
2409
+ execute_cms_action_plan: import('ai').Tool<{
2410
+ actions: ({
2411
+ input: {
2412
+ status: "draft" | "published" | "archived";
2413
+ title: string;
2414
+ blocks?: {
2415
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2416
+ content: Record<string, unknown>;
2417
+ order?: number | undefined;
2418
+ }[] | undefined;
2419
+ contactEmail?: string | undefined;
2420
+ feature_image_id?: string | null | undefined;
2421
+ languageCode?: string | undefined;
2422
+ meta_description?: string | null | undefined;
2423
+ meta_title?: string | null | undefined;
2424
+ slug?: string | undefined;
2425
+ translationGroupId?: string | undefined;
2426
+ };
2427
+ tool: "create_cms_page";
2428
+ } | {
2429
+ input: {
2430
+ status: "draft" | "published" | "archived";
2431
+ title: string;
2432
+ blocks?: {
2433
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2434
+ content: Record<string, unknown>;
2435
+ order?: number | undefined;
2436
+ }[] | undefined;
2437
+ excerpt?: string | null | undefined;
2438
+ feature_image_id?: string | null | undefined;
2439
+ label?: string | null | undefined;
2440
+ languageCode?: string | undefined;
2441
+ meta_description?: string | null | undefined;
2442
+ meta_title?: string | null | undefined;
2443
+ published_at?: string | null | undefined;
2444
+ slug?: string | undefined;
2445
+ subtitle?: string | null | undefined;
2446
+ translationGroupId?: string | undefined;
2447
+ };
2448
+ tool: "create_cms_post";
2449
+ } | {
2450
+ input: {
2451
+ is_taxable: boolean;
2452
+ payment_provider: "stripe" | "freemius";
2453
+ price: number;
2454
+ product_type: "physical" | "digital";
2455
+ status: "draft" | "archived" | "active";
2456
+ stock: number;
2457
+ title: string;
2458
+ trial_period_days: number;
2459
+ trial_requires_payment_method: boolean;
2460
+ description_json?: unknown;
2461
+ freemius_plan_id?: string | undefined;
2462
+ freemius_product_id?: string | undefined;
2463
+ languageCode?: string | undefined;
2464
+ meta_description?: string | null | undefined;
2465
+ meta_title?: string | null | undefined;
2466
+ prices?: Record<string, number> | undefined;
2467
+ sale_price?: number | null | undefined;
2468
+ sale_prices?: Record<string, number | null> | undefined;
2469
+ short_description?: string | null | undefined;
2470
+ sku?: string | undefined;
2471
+ slug?: string | undefined;
2472
+ translationGroupId?: string | undefined;
2473
+ upc?: string | null | undefined;
2474
+ };
2475
+ tool: "create_cms_product";
2476
+ } | {
2477
+ input: {
2478
+ contentType?: "product" | "page" | "post" | undefined;
2479
+ entityId?: string | number | undefined;
2480
+ slug?: string | undefined;
2481
+ title?: string | undefined;
2482
+ };
2483
+ tool: "delete_cms_item";
2484
+ } | {
2485
+ input: {
2486
+ field: string;
2487
+ value: unknown;
2488
+ contentType?: "product" | "page" | "post" | undefined;
2489
+ entityId?: string | number | undefined;
2490
+ slug?: string | undefined;
2491
+ title?: string | undefined;
2492
+ currencyCode?: string | undefined;
2493
+ endsAt?: string | null | undefined;
2494
+ startsAt?: string | null | undefined;
2495
+ };
2496
+ tool: "update_cms_item_field";
2497
+ } | {
2498
+ input: {
2499
+ blockId: number;
2500
+ content: Record<string, unknown>;
2501
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2502
+ };
2503
+ tool: "update_content_block";
2504
+ } | {
2505
+ input: {
2506
+ block: {
2507
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2508
+ content: Record<string, unknown>;
2509
+ order?: number | undefined;
2510
+ };
2511
+ position: "start" | "before" | "after" | "end";
2512
+ contentType?: "product" | "page" | "post" | undefined;
2513
+ entityId?: string | number | undefined;
2514
+ slug?: string | undefined;
2515
+ title?: string | undefined;
2516
+ anchorBlockId?: number | undefined;
2517
+ anchorBlockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2518
+ };
2519
+ tool: "insert_content_block";
2520
+ } | {
2521
+ input: {
2522
+ fields: {
2523
+ description_json?: unknown;
2524
+ excerpt?: string | null | undefined;
2525
+ feature_image_id?: string | null | undefined;
2526
+ label?: string | null | undefined;
2527
+ meta_description?: string | null | undefined;
2528
+ meta_title?: string | null | undefined;
2529
+ published_at?: string | null | undefined;
2530
+ short_description?: string | null | undefined;
2531
+ slug?: string | undefined;
2532
+ status?: "draft" | "published" | "archived" | "active" | undefined;
2533
+ subtitle?: string | null | undefined;
2534
+ title?: string | undefined;
2535
+ };
2536
+ };
2537
+ tool: "update_current_cms_fields";
2538
+ } | {
2539
+ input: {
2540
+ languageCode: string;
2541
+ copyright?: Record<string, string> | undefined;
2542
+ links?: {
2543
+ label: string;
2544
+ url: string;
2545
+ target?: "_self" | "_blank" | undefined;
2546
+ children?: {
2547
+ label: string;
2548
+ url: string;
2549
+ target?: "_self" | "_blank" | undefined;
2550
+ }[] | undefined;
2551
+ }[] | undefined;
2552
+ };
2553
+ tool: "update_footer";
2554
+ } | {
2555
+ input: {
2556
+ items: {
2557
+ label: string;
2558
+ url: string;
2559
+ target?: "_self" | "_blank" | undefined;
2560
+ children?: {
2561
+ label: string;
2562
+ url: string;
2563
+ target?: "_self" | "_blank" | undefined;
2564
+ }[] | undefined;
2565
+ }[];
2566
+ languageCode: string;
2567
+ mode: "replace" | "update" | "append";
2568
+ match?: {
2569
+ label?: string | undefined;
2570
+ url?: string | undefined;
2571
+ } | undefined;
2572
+ };
2573
+ tool: "update_navigation_bar";
2574
+ } | {
2575
+ input: {
2576
+ blockIndex: number;
2577
+ columnIndex: number;
2578
+ content: Record<string, unknown>;
2579
+ parentBlockId: number;
2580
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2581
+ };
2582
+ tool: "update_section_column_block";
2583
+ } | {
2584
+ input: {
2585
+ status: "draft" | "published" | "archived";
2586
+ title: string;
2587
+ blocks?: {
2588
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2589
+ content: Record<string, unknown>;
2590
+ order?: number | undefined;
2591
+ }[] | undefined;
2592
+ contactEmail?: string | undefined;
2593
+ feature_image_id?: string | null | undefined;
2594
+ languageCode?: string | undefined;
2595
+ meta_description?: string | null | undefined;
2596
+ meta_title?: string | null | undefined;
2597
+ slug?: string | undefined;
2598
+ translationGroupId?: string | undefined;
2599
+ };
2600
+ tool: "create_cms_page";
2601
+ } | {
2602
+ input: {
2603
+ status: "draft" | "published" | "archived";
2604
+ title: string;
2605
+ blocks?: {
2606
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2607
+ content: Record<string, unknown>;
2608
+ order?: number | undefined;
2609
+ }[] | undefined;
2610
+ excerpt?: string | null | undefined;
2611
+ feature_image_id?: string | null | undefined;
2612
+ label?: string | null | undefined;
2613
+ languageCode?: string | undefined;
2614
+ meta_description?: string | null | undefined;
2615
+ meta_title?: string | null | undefined;
2616
+ published_at?: string | null | undefined;
2617
+ slug?: string | undefined;
2618
+ subtitle?: string | null | undefined;
2619
+ translationGroupId?: string | undefined;
2620
+ };
2621
+ tool: "create_cms_post";
2622
+ } | {
2623
+ input: {
2624
+ is_taxable: boolean;
2625
+ payment_provider: "stripe" | "freemius";
2626
+ price: number;
2627
+ product_type: "physical" | "digital";
2628
+ status: "draft" | "archived" | "active";
2629
+ stock: number;
2630
+ title: string;
2631
+ trial_period_days: number;
2632
+ trial_requires_payment_method: boolean;
2633
+ description_json?: unknown;
2634
+ freemius_plan_id?: string | undefined;
2635
+ freemius_product_id?: string | undefined;
2636
+ languageCode?: string | undefined;
2637
+ meta_description?: string | null | undefined;
2638
+ meta_title?: string | null | undefined;
2639
+ prices?: Record<string, number> | undefined;
2640
+ sale_price?: number | null | undefined;
2641
+ sale_prices?: Record<string, number | null> | undefined;
2642
+ short_description?: string | null | undefined;
2643
+ sku?: string | undefined;
2644
+ slug?: string | undefined;
2645
+ translationGroupId?: string | undefined;
2646
+ upc?: string | null | undefined;
2647
+ };
2648
+ tool: "create_cms_product";
2649
+ } | {
2650
+ input: {
2651
+ contentType?: "product" | "page" | "post" | undefined;
2652
+ entityId?: string | number | undefined;
2653
+ slug?: string | undefined;
2654
+ title?: string | undefined;
2655
+ };
2656
+ tool: "delete_cms_item";
2657
+ } | {
2658
+ input: {
2659
+ field: string;
2660
+ value: unknown;
2661
+ contentType?: "product" | "page" | "post" | undefined;
2662
+ entityId?: string | number | undefined;
2663
+ slug?: string | undefined;
2664
+ title?: string | undefined;
2665
+ currencyCode?: string | undefined;
2666
+ endsAt?: string | null | undefined;
2667
+ startsAt?: string | null | undefined;
2668
+ };
2669
+ tool: "update_cms_item_field";
2670
+ } | {
2671
+ input: {
2672
+ blockId: number;
2673
+ content: Record<string, unknown>;
2674
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2675
+ };
2676
+ tool: "update_content_block";
2677
+ } | {
2678
+ input: {
2679
+ block: {
2680
+ blockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2681
+ content: Record<string, unknown>;
2682
+ order?: number | undefined;
2683
+ };
2684
+ position: "start" | "before" | "after" | "end";
2685
+ contentType?: "product" | "page" | "post" | undefined;
2686
+ entityId?: string | number | undefined;
2687
+ slug?: string | undefined;
2688
+ title?: string | undefined;
2689
+ anchorBlockId?: number | undefined;
2690
+ anchorBlockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2691
+ };
2692
+ tool: "insert_content_block";
2693
+ } | {
2694
+ input: {
2695
+ fields: {
2696
+ description_json?: unknown;
2697
+ excerpt?: string | null | undefined;
2698
+ feature_image_id?: string | null | undefined;
2699
+ label?: string | null | undefined;
2700
+ meta_description?: string | null | undefined;
2701
+ meta_title?: string | null | undefined;
2702
+ published_at?: string | null | undefined;
2703
+ short_description?: string | null | undefined;
2704
+ slug?: string | undefined;
2705
+ status?: "draft" | "published" | "archived" | "active" | undefined;
2706
+ subtitle?: string | null | undefined;
2707
+ title?: string | undefined;
2708
+ };
2709
+ };
2710
+ tool: "update_current_cms_fields";
2711
+ } | {
2712
+ input: {
2713
+ languageCode: string;
2714
+ copyright?: Record<string, string> | undefined;
2715
+ links?: {
2716
+ label: string;
2717
+ url: string;
2718
+ target?: "_self" | "_blank" | undefined;
2719
+ children?: {
2720
+ label: string;
2721
+ url: string;
2722
+ target?: "_self" | "_blank" | undefined;
2723
+ }[] | undefined;
2724
+ }[] | undefined;
2725
+ };
2726
+ tool: "update_footer";
2727
+ } | {
2728
+ input: {
2729
+ items: {
2730
+ label: string;
2731
+ url: string;
2732
+ target?: "_self" | "_blank" | undefined;
2733
+ children?: {
2734
+ label: string;
2735
+ url: string;
2736
+ target?: "_self" | "_blank" | undefined;
2737
+ }[] | undefined;
2738
+ }[];
2739
+ languageCode: string;
2740
+ mode: "replace" | "update" | "append";
2741
+ match?: {
2742
+ label?: string | undefined;
2743
+ url?: string | undefined;
2744
+ } | undefined;
2745
+ };
2746
+ tool: "update_navigation_bar";
2747
+ } | {
2748
+ input: {
2749
+ blockIndex: number;
2750
+ columnIndex: number;
2751
+ content: Record<string, unknown>;
2752
+ parentBlockId: number;
2753
+ blockType?: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details" | undefined;
2754
+ };
2755
+ tool: "update_section_column_block";
2756
+ })[];
2757
+ summary?: string | undefined;
2758
+ }, {
2759
+ confirmationPhrase: string;
2760
+ mutationExecuted: boolean;
2761
+ preview: Record<string, unknown>;
2762
+ requiresConfirmation: boolean;
2763
+ success: boolean;
2764
+ } | {
2765
+ duplicate: boolean;
2766
+ existingItem: any;
2767
+ mutationExecuted: boolean;
2768
+ success: boolean;
2769
+ message: string;
2770
+ } | {
2771
+ message: string;
2772
+ mutationExecuted: boolean;
2773
+ success: boolean;
2774
+ duplicateTranslation?: undefined;
2775
+ existingItem?: undefined;
2776
+ } | {
2777
+ duplicateTranslation: boolean;
2778
+ existingItem: any;
2779
+ message: string;
2780
+ mutationExecuted: boolean;
2781
+ success: boolean;
2782
+ } | {
2783
+ mutationExecuted: boolean;
2784
+ mode: "replace" | "update" | "append";
2785
+ success: boolean;
2786
+ insertedCount: number;
2787
+ languageCode: string;
2788
+ menuKey: MenuKey;
2789
+ skippedCount: number;
2790
+ updatedCount: number;
2791
+ } | {
2792
+ copyrightUpdated: boolean;
2793
+ footerNavigation: {
2794
+ insertedCount: number;
2795
+ languageCode: string;
2796
+ menuKey: "FOOTER";
2797
+ skippedCount: number;
2798
+ updatedCount: number;
2799
+ } | null;
2800
+ mutationExecuted: boolean;
2801
+ success: boolean;
2802
+ } | {
2803
+ contentType: "product" | "page" | "post";
2804
+ entityId: string | number;
2805
+ mutationExecuted: boolean;
2806
+ slug: any;
2807
+ success: boolean;
2808
+ updatedFields: string[];
2809
+ } | {
2810
+ blockId: any;
2811
+ blockType: any;
2812
+ contentUpdated: boolean;
2813
+ mutationExecuted: boolean;
2814
+ success: boolean;
2815
+ } | {
2816
+ blockId: any;
2817
+ blockType: any;
2818
+ contentType: "page" | "post";
2819
+ entityId: any;
2820
+ mutationExecuted: boolean;
2821
+ order: any;
2822
+ success: boolean;
2823
+ } | {
2824
+ blockIndex: number;
2825
+ columnIndex: number;
2826
+ mutationExecuted: boolean;
2827
+ nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
2828
+ parentBlockId: any;
2829
+ parentBlockType: any;
2830
+ success: boolean;
2831
+ } | {
2832
+ blockCount: number;
2833
+ contentType: string;
2834
+ editPath: string;
2835
+ entityId: any;
2836
+ mutationExecuted: boolean;
2837
+ slug: string;
2838
+ success: boolean;
2839
+ title: string;
2840
+ translationGroupId: any;
2841
+ } | {
2842
+ contentType: string;
2843
+ editPath: string;
2844
+ entityId: string;
2845
+ mutationExecuted: boolean;
2846
+ slug: string;
2847
+ success: boolean;
2848
+ title: string;
2849
+ translationGroupId: string;
2850
+ } | {
2851
+ message: string;
2852
+ mutationExecuted: boolean;
2853
+ success: boolean;
2854
+ unsupported: boolean;
2855
+ contentType?: undefined;
2856
+ entityId?: undefined;
2857
+ field?: undefined;
2858
+ slug?: undefined;
2859
+ updatedFields?: undefined;
2860
+ } | {
2861
+ contentType: string;
2862
+ entityId: any;
2863
+ field: string;
2864
+ mutationExecuted: boolean;
2865
+ slug: any;
2866
+ success: boolean;
2867
+ updatedFields: string[];
2868
+ message?: undefined;
2869
+ unsupported?: undefined;
2870
+ } | {
2871
+ affectedCount: number;
2872
+ collectionPath: string;
2873
+ contentType: "product" | "page" | "post";
2874
+ mutationExecuted: boolean;
2875
+ redirectPath: string;
2876
+ success: boolean;
2877
+ } | {
2878
+ redirectPath?: string | undefined;
2879
+ editPath?: string | undefined;
2880
+ actionCount: number;
2881
+ failedActionIndex: number;
2882
+ 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";
2883
+ message: string;
2884
+ mutationExecuted: boolean;
2885
+ results: {
2886
+ output: unknown;
2887
+ tool: string;
2888
+ }[];
2889
+ success: boolean;
2890
+ summary?: undefined;
2891
+ } | {
2892
+ actionCount: number;
2893
+ editPath: string | undefined;
2894
+ mutationExecuted: boolean;
2895
+ redirectPath: string | undefined;
2896
+ results: {
2897
+ output: unknown;
2898
+ tool: string;
2899
+ }[];
2900
+ success: boolean;
2901
+ summary: string | null;
2902
+ }>;
2903
+ create_custom_block: import('ai').Tool<{
2904
+ prompt: string;
2905
+ context?: string | undefined;
2906
+ }, {
2907
+ definition: {
2908
+ fieldCount: any;
2909
+ fields: any;
2910
+ id: any;
2911
+ name: any;
2912
+ slug: any;
2913
+ };
2914
+ editUrl: string;
2915
+ mutationExecuted: boolean;
2916
+ success: boolean;
2917
+ message?: undefined;
2918
+ } | {
2919
+ mutationExecuted: boolean;
2920
+ message: string;
2921
+ success: boolean;
2922
+ definition?: undefined;
2923
+ editUrl?: undefined;
2924
+ }>;
2925
+ delete_custom_block: import('ai').Tool<{
2926
+ slug: string;
2927
+ }, {
2928
+ mutationExecuted: boolean;
2929
+ message: string;
2930
+ success: boolean;
2931
+ confirmationPhrase?: undefined;
2932
+ preview?: undefined;
2933
+ requiresConfirmation?: undefined;
2934
+ deleted?: undefined;
2935
+ } | {
2936
+ confirmationPhrase: string;
2937
+ mutationExecuted: boolean;
2938
+ preview: {
2939
+ summary: string;
2940
+ };
2941
+ requiresConfirmation: boolean;
2942
+ success: boolean;
2943
+ message?: undefined;
2944
+ deleted?: undefined;
2945
+ } | {
2946
+ deleted: {
2947
+ name: any;
2948
+ slug: any;
2949
+ };
2950
+ mutationExecuted: boolean;
2951
+ success: boolean;
2952
+ message?: undefined;
2953
+ confirmationPhrase?: undefined;
2954
+ preview?: undefined;
2955
+ requiresConfirmation?: undefined;
2956
+ }>;
2957
+ list_custom_blocks: import('ai').Tool<{
2958
+ query?: string | undefined;
2959
+ }, {
2960
+ message: any;
2961
+ success: boolean;
2962
+ blocks?: undefined;
2963
+ count?: undefined;
2964
+ } | {
2965
+ blocks: {
2966
+ fieldCount: any;
2967
+ fields: any;
2968
+ id: any;
2969
+ name: any;
2970
+ slug: any;
2971
+ }[];
2972
+ count: number;
2973
+ success: boolean;
2974
+ message?: undefined;
2975
+ }>;
2976
+ update_custom_block: import('ai').Tool<{
2977
+ prompt: string;
2978
+ slug: string;
2979
+ }, {
2980
+ mutationExecuted: boolean;
2981
+ message: any;
2982
+ success: boolean;
2983
+ definition?: undefined;
2984
+ editUrl?: undefined;
2985
+ } | {
2986
+ definition: {
2987
+ fieldCount: any;
2988
+ fields: any;
2989
+ id: any;
2990
+ name: any;
2991
+ slug: any;
2992
+ };
2993
+ editUrl: string;
2994
+ mutationExecuted: boolean;
2995
+ success: boolean;
2996
+ message?: undefined;
2997
+ }>;
2998
+ describe_database_schema: import('ai').Tool<{
2999
+ includeReadOnly: boolean;
3000
+ table?: string | undefined;
3001
+ }, {
3002
+ safetyNotes: string[];
3003
+ success: boolean;
3004
+ tables: {
3005
+ columns: string[];
3006
+ description: string;
3007
+ primaryKey: readonly string[];
3008
+ readOnly: boolean;
3009
+ table: "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" | "shipping_zone_locations" | "shipping_zone_methods" | "site_settings" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
3010
+ }[];
3011
+ }>;
3012
+ execute_database_action_plan: import('ai').Tool<{
3013
+ actions: {
3014
+ operation: "delete" | "update" | "insert" | "upsert";
3015
+ table: string;
3016
+ filters?: {
3017
+ column: string;
3018
+ operator: "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike" | "in";
3019
+ value: unknown;
3020
+ }[] | undefined;
3021
+ rows?: Record<string, unknown>[] | undefined;
3022
+ summary?: string | undefined;
3023
+ values?: Record<string, unknown> | undefined;
3024
+ }[];
3025
+ summary?: string | undefined;
3026
+ }, {
3027
+ confirmationPhrase: string;
3028
+ mutationExecuted: boolean;
3029
+ preview: Record<string, unknown>;
3030
+ requiresConfirmation: boolean;
3031
+ success: boolean;
3032
+ } | {
3033
+ failedActionIndex: number;
3034
+ message: any;
3035
+ mutationExecuted: boolean;
3036
+ results: unknown[];
3037
+ success: boolean;
3038
+ auditError?: string | undefined;
3039
+ actionCount: number;
3040
+ auditLogged: boolean;
3041
+ } | {
3042
+ mutationExecuted: boolean;
3043
+ results: unknown[];
3044
+ success: boolean;
3045
+ summary: string | null;
3046
+ auditError?: string | undefined;
3047
+ actionCount: number;
3048
+ auditLogged: boolean;
3049
+ }>;
3050
+ execute_database_mutation: import('ai').Tool<{
3051
+ operation: "delete" | "update" | "insert" | "upsert";
3052
+ table: string;
3053
+ filters?: {
3054
+ column: string;
3055
+ operator: "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike" | "in";
3056
+ value: unknown;
3057
+ }[] | undefined;
3058
+ rows?: Record<string, unknown>[] | undefined;
3059
+ summary?: string | undefined;
3060
+ values?: Record<string, unknown> | undefined;
3061
+ }, {
3062
+ confirmationPhrase: string;
3063
+ mutationExecuted: boolean;
3064
+ preview: Record<string, unknown>;
3065
+ requiresConfirmation: boolean;
3066
+ success: boolean;
3067
+ } | {
3068
+ mutationExecuted: boolean;
3069
+ operation: "delete" | "update" | "insert" | "upsert";
3070
+ sampleTargetIds: string[];
3071
+ success: boolean;
3072
+ summary: string;
3073
+ table: "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" | "shipping_zone_locations" | "shipping_zone_methods" | "site_settings" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
3074
+ auditError?: string | undefined;
3075
+ affectedCount: number;
3076
+ auditLogged: boolean;
3077
+ } | {
3078
+ message: string;
3079
+ mutationExecuted: boolean;
3080
+ operation: "delete" | "update" | "insert" | "upsert";
3081
+ success: boolean;
3082
+ table: "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" | "shipping_zone_locations" | "shipping_zone_methods" | "site_settings" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
3083
+ auditError?: string | undefined;
3084
+ auditLogged: boolean;
3085
+ }>;
3086
+ read_database_records: import('ai').Tool<{
3087
+ filters: {
3088
+ column: string;
3089
+ operator: "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike" | "in";
3090
+ value: unknown;
3091
+ }[];
3092
+ limit: number;
3093
+ offset: number;
3094
+ table: string;
3095
+ columns?: string[] | undefined;
3096
+ orderBy?: {
3097
+ ascending: boolean;
3098
+ column: string;
3099
+ } | undefined;
3100
+ }, {
3101
+ columns: string[];
3102
+ limit: number;
3103
+ offset: number;
3104
+ rows: unknown[];
3105
+ success: boolean;
3106
+ table: "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" | "shipping_zone_locations" | "shipping_zone_methods" | "site_settings" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
3107
+ }>;
3108
+ };
3109
+ export {};