@nextblock-cms/cortex 0.14.4 → 0.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -1
- package/index.d.ts +3 -0
- package/index.es.js +166 -121
- package/lib/ai-global-agent-db-tools.cjs.js +1 -1
- package/lib/ai-global-agent-db-tools.d.ts +8 -8
- package/lib/ai-global-agent-db-tools.es.js +154 -125
- package/lib/ai-global-agent-tools.cjs.js +2 -2
- package/lib/ai-global-agent-tools.d.ts +116 -97
- package/lib/ai-global-agent-tools.es.js +1223 -1181
- package/lib/mcp-server.cjs.js +1 -0
- package/lib/mcp-server.d.ts +76 -0
- package/lib/mcp-server.es.js +157 -0
- package/lib/mcp-tokens.cjs.js +1 -0
- package/lib/mcp-tokens.d.ts +95 -0
- package/lib/mcp-tokens.es.js +104 -0
- package/lib/mcp-tool-registry.cjs.js +4 -0
- package/lib/mcp-tool-registry.d.ts +234 -0
- package/lib/mcp-tool-registry.es.js +300 -0
- package/package.json +4 -4
|
@@ -7,6 +7,7 @@ type SupabaseLike = {
|
|
|
7
7
|
type RevalidateFn = (path: string, type?: 'layout' | 'page') => void;
|
|
8
8
|
type BlockContentValidator = (blockType: BlockType, content: Record<string, any>) => BlockValidationResult;
|
|
9
9
|
type MenuKey = 'HEADER' | 'FOOTER';
|
|
10
|
+
type CmsContentType = 'page' | 'post' | 'product';
|
|
10
11
|
/**
|
|
11
12
|
* Imports an external image URL into the NextBlock media library and returns the
|
|
12
13
|
* new media row id (a UUID). Injected by the app (which owns storage + sharp);
|
|
@@ -20,6 +21,23 @@ type ImportExternalImageFn = (input: {
|
|
|
20
21
|
} | {
|
|
21
22
|
error: string;
|
|
22
23
|
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Records a revision for a live CMS write the agent is about to make.
|
|
26
|
+
*
|
|
27
|
+
* Two-phase so this lib never has to know the revision format: `capture` snapshots the
|
|
28
|
+
* current state and returns it opaquely, `commit` diffs that baseline against whatever the
|
|
29
|
+
* write left behind. Injected by the app — the revision service is a server action holding
|
|
30
|
+
* the snapshot shape, the diff cadence and the version bookkeeping, and forking it in here
|
|
31
|
+
* would give NextBlock two revision writers that drift apart.
|
|
32
|
+
*
|
|
33
|
+
* Absent in tests/CLI, in which case writes proceed unrecorded exactly as before.
|
|
34
|
+
*/
|
|
35
|
+
type RecordRevisionFn = (input: {
|
|
36
|
+
baseline?: unknown;
|
|
37
|
+
contentType: CmsContentType;
|
|
38
|
+
entityId: number | string;
|
|
39
|
+
phase: 'capture' | 'commit';
|
|
40
|
+
}) => Promise<unknown>;
|
|
23
41
|
type ToolExecutionContext = {
|
|
24
42
|
actorUserId?: string | null;
|
|
25
43
|
cortexAiApiKey?: string | null;
|
|
@@ -27,6 +45,7 @@ type ToolExecutionContext = {
|
|
|
27
45
|
importExternalImage?: ImportExternalImageFn;
|
|
28
46
|
latestUserMessage?: string | null;
|
|
29
47
|
pageContext?: CortexAiPageContext | null;
|
|
48
|
+
recordRevision?: RecordRevisionFn;
|
|
30
49
|
revalidatePath?: RevalidateFn;
|
|
31
50
|
skipConfirmation?: boolean;
|
|
32
51
|
supabase?: SupabaseLike;
|
|
@@ -106,8 +125,8 @@ export declare const fetchEcommerceStatsInputSchema: z.ZodObject<{
|
|
|
106
125
|
reportType: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
107
126
|
products: "products";
|
|
108
127
|
orders: "orders";
|
|
109
|
-
revenue: "revenue";
|
|
110
128
|
general: "general";
|
|
129
|
+
revenue: "revenue";
|
|
111
130
|
}>>>;
|
|
112
131
|
timeRange: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
113
132
|
today: "today";
|
|
@@ -168,15 +187,15 @@ export declare const updateContentBlockInputSchema: z.ZodObject<{
|
|
|
168
187
|
section: "section";
|
|
169
188
|
form: "form";
|
|
170
189
|
heading: "heading";
|
|
171
|
-
|
|
190
|
+
checkout: "checkout";
|
|
172
191
|
button: "button";
|
|
192
|
+
image: "image";
|
|
173
193
|
posts_grid: "posts_grid";
|
|
174
194
|
video_embed: "video_embed";
|
|
175
195
|
testimonial: "testimonial";
|
|
176
196
|
product_grid: "product_grid";
|
|
177
197
|
featured_product: "featured_product";
|
|
178
198
|
cart: "cart";
|
|
179
|
-
checkout: "checkout";
|
|
180
199
|
product_details: "product_details";
|
|
181
200
|
}>>;
|
|
182
201
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -188,15 +207,15 @@ export declare const updateSectionColumnBlockInputSchema: z.ZodObject<{
|
|
|
188
207
|
section: "section";
|
|
189
208
|
form: "form";
|
|
190
209
|
heading: "heading";
|
|
191
|
-
|
|
210
|
+
checkout: "checkout";
|
|
192
211
|
button: "button";
|
|
212
|
+
image: "image";
|
|
193
213
|
posts_grid: "posts_grid";
|
|
194
214
|
video_embed: "video_embed";
|
|
195
215
|
testimonial: "testimonial";
|
|
196
216
|
product_grid: "product_grid";
|
|
197
217
|
featured_product: "featured_product";
|
|
198
218
|
cart: "cart";
|
|
199
|
-
checkout: "checkout";
|
|
200
219
|
product_details: "product_details";
|
|
201
220
|
}>>;
|
|
202
221
|
columnIndex: z.ZodNumber;
|
|
@@ -230,15 +249,15 @@ export declare const insertContentBlockInputSchema: z.ZodObject<{
|
|
|
230
249
|
section: "section";
|
|
231
250
|
form: "form";
|
|
232
251
|
heading: "heading";
|
|
233
|
-
|
|
252
|
+
checkout: "checkout";
|
|
234
253
|
button: "button";
|
|
254
|
+
image: "image";
|
|
235
255
|
posts_grid: "posts_grid";
|
|
236
256
|
video_embed: "video_embed";
|
|
237
257
|
testimonial: "testimonial";
|
|
238
258
|
product_grid: "product_grid";
|
|
239
259
|
featured_product: "featured_product";
|
|
240
260
|
cart: "cart";
|
|
241
|
-
checkout: "checkout";
|
|
242
261
|
product_details: "product_details";
|
|
243
262
|
}>>;
|
|
244
263
|
block: z.ZodObject<{
|
|
@@ -247,15 +266,15 @@ export declare const insertContentBlockInputSchema: z.ZodObject<{
|
|
|
247
266
|
section: "section";
|
|
248
267
|
form: "form";
|
|
249
268
|
heading: "heading";
|
|
250
|
-
|
|
269
|
+
checkout: "checkout";
|
|
251
270
|
button: "button";
|
|
271
|
+
image: "image";
|
|
252
272
|
posts_grid: "posts_grid";
|
|
253
273
|
video_embed: "video_embed";
|
|
254
274
|
testimonial: "testimonial";
|
|
255
275
|
product_grid: "product_grid";
|
|
256
276
|
featured_product: "featured_product";
|
|
257
277
|
cart: "cart";
|
|
258
|
-
checkout: "checkout";
|
|
259
278
|
product_details: "product_details";
|
|
260
279
|
}>;
|
|
261
280
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -275,15 +294,15 @@ export declare const createCmsPageInputSchema: z.ZodObject<{
|
|
|
275
294
|
section: "section";
|
|
276
295
|
form: "form";
|
|
277
296
|
heading: "heading";
|
|
278
|
-
|
|
297
|
+
checkout: "checkout";
|
|
279
298
|
button: "button";
|
|
299
|
+
image: "image";
|
|
280
300
|
posts_grid: "posts_grid";
|
|
281
301
|
video_embed: "video_embed";
|
|
282
302
|
testimonial: "testimonial";
|
|
283
303
|
product_grid: "product_grid";
|
|
284
304
|
featured_product: "featured_product";
|
|
285
305
|
cart: "cart";
|
|
286
|
-
checkout: "checkout";
|
|
287
306
|
product_details: "product_details";
|
|
288
307
|
}>;
|
|
289
308
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -310,15 +329,15 @@ export declare const createCmsPostInputSchema: z.ZodObject<{
|
|
|
310
329
|
section: "section";
|
|
311
330
|
form: "form";
|
|
312
331
|
heading: "heading";
|
|
313
|
-
|
|
332
|
+
checkout: "checkout";
|
|
314
333
|
button: "button";
|
|
334
|
+
image: "image";
|
|
315
335
|
posts_grid: "posts_grid";
|
|
316
336
|
video_embed: "video_embed";
|
|
317
337
|
testimonial: "testimonial";
|
|
318
338
|
product_grid: "product_grid";
|
|
319
339
|
featured_product: "featured_product";
|
|
320
340
|
cart: "cart";
|
|
321
|
-
checkout: "checkout";
|
|
322
341
|
product_details: "product_details";
|
|
323
342
|
}>;
|
|
324
343
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -348,15 +367,15 @@ export declare const createCmsProductInputSchema: z.ZodObject<{
|
|
|
348
367
|
section: "section";
|
|
349
368
|
form: "form";
|
|
350
369
|
heading: "heading";
|
|
351
|
-
|
|
370
|
+
checkout: "checkout";
|
|
352
371
|
button: "button";
|
|
372
|
+
image: "image";
|
|
353
373
|
posts_grid: "posts_grid";
|
|
354
374
|
video_embed: "video_embed";
|
|
355
375
|
testimonial: "testimonial";
|
|
356
376
|
product_grid: "product_grid";
|
|
357
377
|
featured_product: "featured_product";
|
|
358
378
|
cart: "cart";
|
|
359
|
-
checkout: "checkout";
|
|
360
379
|
product_details: "product_details";
|
|
361
380
|
}>;
|
|
362
381
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -442,15 +461,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
442
461
|
section: "section";
|
|
443
462
|
form: "form";
|
|
444
463
|
heading: "heading";
|
|
445
|
-
|
|
464
|
+
checkout: "checkout";
|
|
446
465
|
button: "button";
|
|
466
|
+
image: "image";
|
|
447
467
|
posts_grid: "posts_grid";
|
|
448
468
|
video_embed: "video_embed";
|
|
449
469
|
testimonial: "testimonial";
|
|
450
470
|
product_grid: "product_grid";
|
|
451
471
|
featured_product: "featured_product";
|
|
452
472
|
cart: "cart";
|
|
453
|
-
checkout: "checkout";
|
|
454
473
|
product_details: "product_details";
|
|
455
474
|
}>;
|
|
456
475
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -479,15 +498,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
479
498
|
section: "section";
|
|
480
499
|
form: "form";
|
|
481
500
|
heading: "heading";
|
|
482
|
-
|
|
501
|
+
checkout: "checkout";
|
|
483
502
|
button: "button";
|
|
503
|
+
image: "image";
|
|
484
504
|
posts_grid: "posts_grid";
|
|
485
505
|
video_embed: "video_embed";
|
|
486
506
|
testimonial: "testimonial";
|
|
487
507
|
product_grid: "product_grid";
|
|
488
508
|
featured_product: "featured_product";
|
|
489
509
|
cart: "cart";
|
|
490
|
-
checkout: "checkout";
|
|
491
510
|
product_details: "product_details";
|
|
492
511
|
}>;
|
|
493
512
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -519,15 +538,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
519
538
|
section: "section";
|
|
520
539
|
form: "form";
|
|
521
540
|
heading: "heading";
|
|
522
|
-
|
|
541
|
+
checkout: "checkout";
|
|
523
542
|
button: "button";
|
|
543
|
+
image: "image";
|
|
524
544
|
posts_grid: "posts_grid";
|
|
525
545
|
video_embed: "video_embed";
|
|
526
546
|
testimonial: "testimonial";
|
|
527
547
|
product_grid: "product_grid";
|
|
528
548
|
featured_product: "featured_product";
|
|
529
549
|
cart: "cart";
|
|
530
|
-
checkout: "checkout";
|
|
531
550
|
product_details: "product_details";
|
|
532
551
|
}>;
|
|
533
552
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -607,15 +626,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
607
626
|
section: "section";
|
|
608
627
|
form: "form";
|
|
609
628
|
heading: "heading";
|
|
610
|
-
|
|
629
|
+
checkout: "checkout";
|
|
611
630
|
button: "button";
|
|
631
|
+
image: "image";
|
|
612
632
|
posts_grid: "posts_grid";
|
|
613
633
|
video_embed: "video_embed";
|
|
614
634
|
testimonial: "testimonial";
|
|
615
635
|
product_grid: "product_grid";
|
|
616
636
|
featured_product: "featured_product";
|
|
617
637
|
cart: "cart";
|
|
618
|
-
checkout: "checkout";
|
|
619
638
|
product_details: "product_details";
|
|
620
639
|
}>>;
|
|
621
640
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -637,15 +656,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
637
656
|
section: "section";
|
|
638
657
|
form: "form";
|
|
639
658
|
heading: "heading";
|
|
640
|
-
|
|
659
|
+
checkout: "checkout";
|
|
641
660
|
button: "button";
|
|
661
|
+
image: "image";
|
|
642
662
|
posts_grid: "posts_grid";
|
|
643
663
|
video_embed: "video_embed";
|
|
644
664
|
testimonial: "testimonial";
|
|
645
665
|
product_grid: "product_grid";
|
|
646
666
|
featured_product: "featured_product";
|
|
647
667
|
cart: "cart";
|
|
648
|
-
checkout: "checkout";
|
|
649
668
|
product_details: "product_details";
|
|
650
669
|
}>>;
|
|
651
670
|
block: z.ZodObject<{
|
|
@@ -654,15 +673,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
654
673
|
section: "section";
|
|
655
674
|
form: "form";
|
|
656
675
|
heading: "heading";
|
|
657
|
-
|
|
676
|
+
checkout: "checkout";
|
|
658
677
|
button: "button";
|
|
678
|
+
image: "image";
|
|
659
679
|
posts_grid: "posts_grid";
|
|
660
680
|
video_embed: "video_embed";
|
|
661
681
|
testimonial: "testimonial";
|
|
662
682
|
product_grid: "product_grid";
|
|
663
683
|
featured_product: "featured_product";
|
|
664
684
|
cart: "cart";
|
|
665
|
-
checkout: "checkout";
|
|
666
685
|
product_details: "product_details";
|
|
667
686
|
}>;
|
|
668
687
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -759,15 +778,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
759
778
|
section: "section";
|
|
760
779
|
form: "form";
|
|
761
780
|
heading: "heading";
|
|
762
|
-
|
|
781
|
+
checkout: "checkout";
|
|
763
782
|
button: "button";
|
|
783
|
+
image: "image";
|
|
764
784
|
posts_grid: "posts_grid";
|
|
765
785
|
video_embed: "video_embed";
|
|
766
786
|
testimonial: "testimonial";
|
|
767
787
|
product_grid: "product_grid";
|
|
768
788
|
featured_product: "featured_product";
|
|
769
789
|
cart: "cart";
|
|
770
|
-
checkout: "checkout";
|
|
771
790
|
product_details: "product_details";
|
|
772
791
|
}>>;
|
|
773
792
|
columnIndex: z.ZodNumber;
|
|
@@ -795,15 +814,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
795
814
|
section: "section";
|
|
796
815
|
form: "form";
|
|
797
816
|
heading: "heading";
|
|
798
|
-
|
|
817
|
+
checkout: "checkout";
|
|
799
818
|
button: "button";
|
|
819
|
+
image: "image";
|
|
800
820
|
posts_grid: "posts_grid";
|
|
801
821
|
video_embed: "video_embed";
|
|
802
822
|
testimonial: "testimonial";
|
|
803
823
|
product_grid: "product_grid";
|
|
804
824
|
featured_product: "featured_product";
|
|
805
825
|
cart: "cart";
|
|
806
|
-
checkout: "checkout";
|
|
807
826
|
product_details: "product_details";
|
|
808
827
|
}>;
|
|
809
828
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -828,7 +847,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
828
847
|
status: "draft" | "published" | "archived";
|
|
829
848
|
title: string;
|
|
830
849
|
blocks?: {
|
|
831
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
850
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
832
851
|
content: Record<string, unknown>;
|
|
833
852
|
order?: number | undefined;
|
|
834
853
|
}[] | undefined;
|
|
@@ -846,7 +865,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
846
865
|
title: string;
|
|
847
866
|
tool: "create_cms_page";
|
|
848
867
|
blocks?: {
|
|
849
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
868
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
850
869
|
content: Record<string, unknown>;
|
|
851
870
|
order?: number | undefined;
|
|
852
871
|
}[] | undefined;
|
|
@@ -864,15 +883,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
864
883
|
section: "section";
|
|
865
884
|
form: "form";
|
|
866
885
|
heading: "heading";
|
|
867
|
-
|
|
886
|
+
checkout: "checkout";
|
|
868
887
|
button: "button";
|
|
888
|
+
image: "image";
|
|
869
889
|
posts_grid: "posts_grid";
|
|
870
890
|
video_embed: "video_embed";
|
|
871
891
|
testimonial: "testimonial";
|
|
872
892
|
product_grid: "product_grid";
|
|
873
893
|
featured_product: "featured_product";
|
|
874
894
|
cart: "cart";
|
|
875
|
-
checkout: "checkout";
|
|
876
895
|
product_details: "product_details";
|
|
877
896
|
}>;
|
|
878
897
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -900,7 +919,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
900
919
|
status: "draft" | "published" | "archived";
|
|
901
920
|
title: string;
|
|
902
921
|
blocks?: {
|
|
903
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
922
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
904
923
|
content: Record<string, unknown>;
|
|
905
924
|
order?: number | undefined;
|
|
906
925
|
}[] | undefined;
|
|
@@ -921,7 +940,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
921
940
|
title: string;
|
|
922
941
|
tool: "create_cms_post";
|
|
923
942
|
blocks?: {
|
|
924
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
943
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
925
944
|
content: Record<string, unknown>;
|
|
926
945
|
order?: number | undefined;
|
|
927
946
|
}[] | undefined;
|
|
@@ -942,15 +961,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
942
961
|
section: "section";
|
|
943
962
|
form: "form";
|
|
944
963
|
heading: "heading";
|
|
945
|
-
|
|
964
|
+
checkout: "checkout";
|
|
946
965
|
button: "button";
|
|
966
|
+
image: "image";
|
|
947
967
|
posts_grid: "posts_grid";
|
|
948
968
|
video_embed: "video_embed";
|
|
949
969
|
testimonial: "testimonial";
|
|
950
970
|
product_grid: "product_grid";
|
|
951
971
|
featured_product: "featured_product";
|
|
952
972
|
cart: "cart";
|
|
953
|
-
checkout: "checkout";
|
|
954
973
|
product_details: "product_details";
|
|
955
974
|
}>;
|
|
956
975
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1004,7 +1023,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1004
1023
|
trial_period_days: number;
|
|
1005
1024
|
trial_requires_payment_method: boolean;
|
|
1006
1025
|
blocks?: {
|
|
1007
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1026
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1008
1027
|
content: Record<string, unknown>;
|
|
1009
1028
|
order?: number | undefined;
|
|
1010
1029
|
}[] | undefined;
|
|
@@ -1038,7 +1057,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1038
1057
|
trial_requires_payment_method: boolean;
|
|
1039
1058
|
tool: "create_cms_product";
|
|
1040
1059
|
blocks?: {
|
|
1041
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1060
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1042
1061
|
content: Record<string, unknown>;
|
|
1043
1062
|
order?: number | undefined;
|
|
1044
1063
|
}[] | undefined;
|
|
@@ -1128,15 +1147,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1128
1147
|
section: "section";
|
|
1129
1148
|
form: "form";
|
|
1130
1149
|
heading: "heading";
|
|
1131
|
-
|
|
1150
|
+
checkout: "checkout";
|
|
1132
1151
|
button: "button";
|
|
1152
|
+
image: "image";
|
|
1133
1153
|
posts_grid: "posts_grid";
|
|
1134
1154
|
video_embed: "video_embed";
|
|
1135
1155
|
testimonial: "testimonial";
|
|
1136
1156
|
product_grid: "product_grid";
|
|
1137
1157
|
featured_product: "featured_product";
|
|
1138
1158
|
cart: "cart";
|
|
1139
|
-
checkout: "checkout";
|
|
1140
1159
|
product_details: "product_details";
|
|
1141
1160
|
}>>;
|
|
1142
1161
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1145,14 +1164,14 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1145
1164
|
input: {
|
|
1146
1165
|
blockId: number;
|
|
1147
1166
|
content: Record<string, unknown>;
|
|
1148
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
1167
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1149
1168
|
};
|
|
1150
1169
|
tool: "update_content_block";
|
|
1151
1170
|
}, {
|
|
1152
1171
|
blockId: number;
|
|
1153
1172
|
content: Record<string, unknown>;
|
|
1154
1173
|
tool: "update_content_block";
|
|
1155
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
1174
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1156
1175
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
1157
1176
|
contentType: z.ZodOptional<z.ZodEnum<{
|
|
1158
1177
|
product: "product";
|
|
@@ -1168,15 +1187,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1168
1187
|
section: "section";
|
|
1169
1188
|
form: "form";
|
|
1170
1189
|
heading: "heading";
|
|
1171
|
-
|
|
1190
|
+
checkout: "checkout";
|
|
1172
1191
|
button: "button";
|
|
1192
|
+
image: "image";
|
|
1173
1193
|
posts_grid: "posts_grid";
|
|
1174
1194
|
video_embed: "video_embed";
|
|
1175
1195
|
testimonial: "testimonial";
|
|
1176
1196
|
product_grid: "product_grid";
|
|
1177
1197
|
featured_product: "featured_product";
|
|
1178
1198
|
cart: "cart";
|
|
1179
|
-
checkout: "checkout";
|
|
1180
1199
|
product_details: "product_details";
|
|
1181
1200
|
}>>;
|
|
1182
1201
|
block: z.ZodObject<{
|
|
@@ -1185,15 +1204,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1185
1204
|
section: "section";
|
|
1186
1205
|
form: "form";
|
|
1187
1206
|
heading: "heading";
|
|
1188
|
-
|
|
1207
|
+
checkout: "checkout";
|
|
1189
1208
|
button: "button";
|
|
1209
|
+
image: "image";
|
|
1190
1210
|
posts_grid: "posts_grid";
|
|
1191
1211
|
video_embed: "video_embed";
|
|
1192
1212
|
testimonial: "testimonial";
|
|
1193
1213
|
product_grid: "product_grid";
|
|
1194
1214
|
featured_product: "featured_product";
|
|
1195
1215
|
cart: "cart";
|
|
1196
|
-
checkout: "checkout";
|
|
1197
1216
|
product_details: "product_details";
|
|
1198
1217
|
}>;
|
|
1199
1218
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1209,7 +1228,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1209
1228
|
}, z.core.$strict>, z.ZodTransform<{
|
|
1210
1229
|
input: {
|
|
1211
1230
|
block: {
|
|
1212
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1231
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1213
1232
|
content: Record<string, unknown>;
|
|
1214
1233
|
order?: number | undefined;
|
|
1215
1234
|
};
|
|
@@ -1219,12 +1238,12 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1219
1238
|
slug?: string | undefined;
|
|
1220
1239
|
title?: string | undefined;
|
|
1221
1240
|
anchorBlockId?: number | undefined;
|
|
1222
|
-
anchorBlockType?: "text" | "section" | "form" | "heading" | "
|
|
1241
|
+
anchorBlockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1223
1242
|
};
|
|
1224
1243
|
tool: "insert_content_block";
|
|
1225
1244
|
}, {
|
|
1226
1245
|
block: {
|
|
1227
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1246
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1228
1247
|
content: Record<string, unknown>;
|
|
1229
1248
|
order?: number | undefined;
|
|
1230
1249
|
};
|
|
@@ -1235,7 +1254,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1235
1254
|
slug?: string | undefined;
|
|
1236
1255
|
title?: string | undefined;
|
|
1237
1256
|
anchorBlockId?: number | undefined;
|
|
1238
|
-
anchorBlockType?: "text" | "section" | "form" | "heading" | "
|
|
1257
|
+
anchorBlockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1239
1258
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
1240
1259
|
fields: z.ZodObject<{
|
|
1241
1260
|
description_json: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
@@ -1414,15 +1433,15 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1414
1433
|
section: "section";
|
|
1415
1434
|
form: "form";
|
|
1416
1435
|
heading: "heading";
|
|
1417
|
-
|
|
1436
|
+
checkout: "checkout";
|
|
1418
1437
|
button: "button";
|
|
1438
|
+
image: "image";
|
|
1419
1439
|
posts_grid: "posts_grid";
|
|
1420
1440
|
video_embed: "video_embed";
|
|
1421
1441
|
testimonial: "testimonial";
|
|
1422
1442
|
product_grid: "product_grid";
|
|
1423
1443
|
featured_product: "featured_product";
|
|
1424
1444
|
cart: "cart";
|
|
1425
|
-
checkout: "checkout";
|
|
1426
1445
|
product_details: "product_details";
|
|
1427
1446
|
}>>;
|
|
1428
1447
|
columnIndex: z.ZodNumber;
|
|
@@ -1435,7 +1454,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1435
1454
|
columnIndex: number;
|
|
1436
1455
|
content: Record<string, unknown>;
|
|
1437
1456
|
parentBlockId: number;
|
|
1438
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
1457
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1439
1458
|
};
|
|
1440
1459
|
tool: "update_section_column_block";
|
|
1441
1460
|
}, {
|
|
@@ -1444,7 +1463,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1444
1463
|
content: Record<string, unknown>;
|
|
1445
1464
|
parentBlockId: number;
|
|
1446
1465
|
tool: "update_section_column_block";
|
|
1447
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
1466
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1448
1467
|
}>>, z.ZodPipe<z.ZodObject<{
|
|
1449
1468
|
contentType: z.ZodOptional<z.ZodEnum<{
|
|
1450
1469
|
product: "product";
|
|
@@ -1477,7 +1496,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1477
1496
|
status: "draft" | "published" | "archived";
|
|
1478
1497
|
title: string;
|
|
1479
1498
|
blocks?: {
|
|
1480
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1499
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1481
1500
|
content: Record<string, unknown>;
|
|
1482
1501
|
order?: number | undefined;
|
|
1483
1502
|
}[] | undefined;
|
|
@@ -1495,7 +1514,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1495
1514
|
status: "draft" | "published" | "archived";
|
|
1496
1515
|
title: string;
|
|
1497
1516
|
blocks?: {
|
|
1498
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1517
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1499
1518
|
content: Record<string, unknown>;
|
|
1500
1519
|
order?: number | undefined;
|
|
1501
1520
|
}[] | undefined;
|
|
@@ -1523,7 +1542,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1523
1542
|
trial_period_days: number;
|
|
1524
1543
|
trial_requires_payment_method: boolean;
|
|
1525
1544
|
blocks?: {
|
|
1526
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1545
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1527
1546
|
content: Record<string, unknown>;
|
|
1528
1547
|
order?: number | undefined;
|
|
1529
1548
|
}[] | undefined;
|
|
@@ -1570,13 +1589,13 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1570
1589
|
input: {
|
|
1571
1590
|
blockId: number;
|
|
1572
1591
|
content: Record<string, unknown>;
|
|
1573
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
1592
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1574
1593
|
};
|
|
1575
1594
|
tool: "update_content_block";
|
|
1576
1595
|
} | {
|
|
1577
1596
|
input: {
|
|
1578
1597
|
block: {
|
|
1579
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
1598
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1580
1599
|
content: Record<string, unknown>;
|
|
1581
1600
|
order?: number | undefined;
|
|
1582
1601
|
};
|
|
@@ -1586,7 +1605,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1586
1605
|
slug?: string | undefined;
|
|
1587
1606
|
title?: string | undefined;
|
|
1588
1607
|
anchorBlockId?: number | undefined;
|
|
1589
|
-
anchorBlockType?: "text" | "section" | "form" | "heading" | "
|
|
1608
|
+
anchorBlockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1590
1609
|
};
|
|
1591
1610
|
tool: "insert_content_block";
|
|
1592
1611
|
} | {
|
|
@@ -1649,7 +1668,7 @@ export declare const executeCmsActionPlanInputSchema: z.ZodObject<{
|
|
|
1649
1668
|
columnIndex: number;
|
|
1650
1669
|
content: Record<string, unknown>;
|
|
1651
1670
|
parentBlockId: number;
|
|
1652
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
1671
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
1653
1672
|
};
|
|
1654
1673
|
tool: "update_section_column_block";
|
|
1655
1674
|
} | {
|
|
@@ -1824,7 +1843,7 @@ export declare function executeUpdateSectionColumnBlock(input: UpdateSectionColu
|
|
|
1824
1843
|
blockIndex: number;
|
|
1825
1844
|
columnIndex: number;
|
|
1826
1845
|
mutationExecuted: boolean;
|
|
1827
|
-
nestedBlockType: "text" | "section" | "form" | "heading" | "
|
|
1846
|
+
nestedBlockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
1828
1847
|
parentBlockId: any;
|
|
1829
1848
|
parentBlockType: any;
|
|
1830
1849
|
success: boolean;
|
|
@@ -2054,7 +2073,7 @@ export declare function executeCmsActionPlan(input: z.input<typeof executeCmsAct
|
|
|
2054
2073
|
blockIndex: number;
|
|
2055
2074
|
columnIndex: number;
|
|
2056
2075
|
mutationExecuted: boolean;
|
|
2057
|
-
nestedBlockType: "text" | "section" | "form" | "heading" | "
|
|
2076
|
+
nestedBlockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2058
2077
|
parentBlockId: any;
|
|
2059
2078
|
parentBlockType: any;
|
|
2060
2079
|
success: boolean;
|
|
@@ -2275,15 +2294,15 @@ export declare const rewritePageDraftInputSchema: z.ZodObject<{
|
|
|
2275
2294
|
section: "section";
|
|
2276
2295
|
form: "form";
|
|
2277
2296
|
heading: "heading";
|
|
2278
|
-
|
|
2297
|
+
checkout: "checkout";
|
|
2279
2298
|
button: "button";
|
|
2299
|
+
image: "image";
|
|
2280
2300
|
posts_grid: "posts_grid";
|
|
2281
2301
|
video_embed: "video_embed";
|
|
2282
2302
|
testimonial: "testimonial";
|
|
2283
2303
|
product_grid: "product_grid";
|
|
2284
2304
|
featured_product: "featured_product";
|
|
2285
2305
|
cart: "cart";
|
|
2286
|
-
checkout: "checkout";
|
|
2287
2306
|
product_details: "product_details";
|
|
2288
2307
|
}>;
|
|
2289
2308
|
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -2373,7 +2392,7 @@ export declare function executeSetContentImages(input: SetContentImagesInput, co
|
|
|
2373
2392
|
export declare function createCortexGlobalAgentTools(context?: ToolExecutionContext): {
|
|
2374
2393
|
fetch_ecommerce_stats: import('ai').Tool<{
|
|
2375
2394
|
query: string;
|
|
2376
|
-
reportType: "products" | "orders" | "
|
|
2395
|
+
reportType: "products" | "orders" | "general" | "revenue";
|
|
2377
2396
|
timeRange: "today" | "this_month" | "last_7_days" | "last_30_days" | "last_month" | "last_90_days" | "all_time";
|
|
2378
2397
|
currency?: string | undefined;
|
|
2379
2398
|
}, {
|
|
@@ -2513,7 +2532,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2513
2532
|
}>;
|
|
2514
2533
|
rewrite_page_draft: import('ai').Tool<{
|
|
2515
2534
|
blocks: {
|
|
2516
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
2535
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2517
2536
|
content: Record<string, unknown>;
|
|
2518
2537
|
order?: number | undefined;
|
|
2519
2538
|
}[];
|
|
@@ -2593,7 +2612,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2593
2612
|
status: "draft" | "published" | "archived";
|
|
2594
2613
|
title: string;
|
|
2595
2614
|
blocks?: {
|
|
2596
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
2615
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2597
2616
|
content: Record<string, unknown>;
|
|
2598
2617
|
order?: number | undefined;
|
|
2599
2618
|
}[] | undefined;
|
|
@@ -2643,7 +2662,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2643
2662
|
status: "draft" | "published" | "archived";
|
|
2644
2663
|
title: string;
|
|
2645
2664
|
blocks?: {
|
|
2646
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
2665
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2647
2666
|
content: Record<string, unknown>;
|
|
2648
2667
|
order?: number | undefined;
|
|
2649
2668
|
}[] | undefined;
|
|
@@ -2703,7 +2722,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2703
2722
|
trial_period_days: number;
|
|
2704
2723
|
trial_requires_payment_method: boolean;
|
|
2705
2724
|
blocks?: {
|
|
2706
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
2725
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2707
2726
|
content: Record<string, unknown>;
|
|
2708
2727
|
order?: number | undefined;
|
|
2709
2728
|
}[] | undefined;
|
|
@@ -2826,7 +2845,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2826
2845
|
update_content_block: import('ai').Tool<{
|
|
2827
2846
|
blockId: number;
|
|
2828
2847
|
content: Record<string, unknown>;
|
|
2829
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
2848
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
2830
2849
|
}, {
|
|
2831
2850
|
confirmationPhrase: string;
|
|
2832
2851
|
mutationExecuted: boolean;
|
|
@@ -2842,7 +2861,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2842
2861
|
}>;
|
|
2843
2862
|
insert_content_block: import('ai').Tool<{
|
|
2844
2863
|
block: {
|
|
2845
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
2864
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2846
2865
|
content: Record<string, unknown>;
|
|
2847
2866
|
order?: number | undefined;
|
|
2848
2867
|
};
|
|
@@ -2852,7 +2871,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2852
2871
|
slug?: string | undefined;
|
|
2853
2872
|
title?: string | undefined;
|
|
2854
2873
|
anchorBlockId?: number | undefined;
|
|
2855
|
-
anchorBlockType?: "text" | "section" | "form" | "heading" | "
|
|
2874
|
+
anchorBlockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
2856
2875
|
}, {
|
|
2857
2876
|
confirmationPhrase: string;
|
|
2858
2877
|
mutationExecuted: boolean;
|
|
@@ -2972,7 +2991,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2972
2991
|
columnIndex: number;
|
|
2973
2992
|
content: Record<string, unknown>;
|
|
2974
2993
|
parentBlockId: number;
|
|
2975
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
2994
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
2976
2995
|
}, {
|
|
2977
2996
|
confirmationPhrase: string;
|
|
2978
2997
|
mutationExecuted: boolean;
|
|
@@ -2983,7 +3002,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2983
3002
|
blockIndex: number;
|
|
2984
3003
|
columnIndex: number;
|
|
2985
3004
|
mutationExecuted: boolean;
|
|
2986
|
-
nestedBlockType: "text" | "section" | "form" | "heading" | "
|
|
3005
|
+
nestedBlockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2987
3006
|
parentBlockId: any;
|
|
2988
3007
|
parentBlockType: any;
|
|
2989
3008
|
success: boolean;
|
|
@@ -2994,7 +3013,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
2994
3013
|
status: "draft" | "published" | "archived";
|
|
2995
3014
|
title: string;
|
|
2996
3015
|
blocks?: {
|
|
2997
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3016
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
2998
3017
|
content: Record<string, unknown>;
|
|
2999
3018
|
order?: number | undefined;
|
|
3000
3019
|
}[] | undefined;
|
|
@@ -3012,7 +3031,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3012
3031
|
status: "draft" | "published" | "archived";
|
|
3013
3032
|
title: string;
|
|
3014
3033
|
blocks?: {
|
|
3015
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3034
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3016
3035
|
content: Record<string, unknown>;
|
|
3017
3036
|
order?: number | undefined;
|
|
3018
3037
|
}[] | undefined;
|
|
@@ -3040,7 +3059,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3040
3059
|
trial_period_days: number;
|
|
3041
3060
|
trial_requires_payment_method: boolean;
|
|
3042
3061
|
blocks?: {
|
|
3043
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3062
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3044
3063
|
content: Record<string, unknown>;
|
|
3045
3064
|
order?: number | undefined;
|
|
3046
3065
|
}[] | undefined;
|
|
@@ -3087,13 +3106,13 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3087
3106
|
input: {
|
|
3088
3107
|
blockId: number;
|
|
3089
3108
|
content: Record<string, unknown>;
|
|
3090
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
3109
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
3091
3110
|
};
|
|
3092
3111
|
tool: "update_content_block";
|
|
3093
3112
|
} | {
|
|
3094
3113
|
input: {
|
|
3095
3114
|
block: {
|
|
3096
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3115
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3097
3116
|
content: Record<string, unknown>;
|
|
3098
3117
|
order?: number | undefined;
|
|
3099
3118
|
};
|
|
@@ -3103,7 +3122,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3103
3122
|
slug?: string | undefined;
|
|
3104
3123
|
title?: string | undefined;
|
|
3105
3124
|
anchorBlockId?: number | undefined;
|
|
3106
|
-
anchorBlockType?: "text" | "section" | "form" | "heading" | "
|
|
3125
|
+
anchorBlockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
3107
3126
|
};
|
|
3108
3127
|
tool: "insert_content_block";
|
|
3109
3128
|
} | {
|
|
@@ -3166,7 +3185,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3166
3185
|
columnIndex: number;
|
|
3167
3186
|
content: Record<string, unknown>;
|
|
3168
3187
|
parentBlockId: number;
|
|
3169
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
3188
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
3170
3189
|
};
|
|
3171
3190
|
tool: "update_section_column_block";
|
|
3172
3191
|
} | {
|
|
@@ -3183,7 +3202,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3183
3202
|
status: "draft" | "published" | "archived";
|
|
3184
3203
|
title: string;
|
|
3185
3204
|
blocks?: {
|
|
3186
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3205
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3187
3206
|
content: Record<string, unknown>;
|
|
3188
3207
|
order?: number | undefined;
|
|
3189
3208
|
}[] | undefined;
|
|
@@ -3201,7 +3220,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3201
3220
|
status: "draft" | "published" | "archived";
|
|
3202
3221
|
title: string;
|
|
3203
3222
|
blocks?: {
|
|
3204
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3223
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3205
3224
|
content: Record<string, unknown>;
|
|
3206
3225
|
order?: number | undefined;
|
|
3207
3226
|
}[] | undefined;
|
|
@@ -3229,7 +3248,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3229
3248
|
trial_period_days: number;
|
|
3230
3249
|
trial_requires_payment_method: boolean;
|
|
3231
3250
|
blocks?: {
|
|
3232
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3251
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3233
3252
|
content: Record<string, unknown>;
|
|
3234
3253
|
order?: number | undefined;
|
|
3235
3254
|
}[] | undefined;
|
|
@@ -3276,13 +3295,13 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3276
3295
|
input: {
|
|
3277
3296
|
blockId: number;
|
|
3278
3297
|
content: Record<string, unknown>;
|
|
3279
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
3298
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
3280
3299
|
};
|
|
3281
3300
|
tool: "update_content_block";
|
|
3282
3301
|
} | {
|
|
3283
3302
|
input: {
|
|
3284
3303
|
block: {
|
|
3285
|
-
blockType: "text" | "section" | "form" | "heading" | "
|
|
3304
|
+
blockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3286
3305
|
content: Record<string, unknown>;
|
|
3287
3306
|
order?: number | undefined;
|
|
3288
3307
|
};
|
|
@@ -3292,7 +3311,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3292
3311
|
slug?: string | undefined;
|
|
3293
3312
|
title?: string | undefined;
|
|
3294
3313
|
anchorBlockId?: number | undefined;
|
|
3295
|
-
anchorBlockType?: "text" | "section" | "form" | "heading" | "
|
|
3314
|
+
anchorBlockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
3296
3315
|
};
|
|
3297
3316
|
tool: "insert_content_block";
|
|
3298
3317
|
} | {
|
|
@@ -3355,7 +3374,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3355
3374
|
columnIndex: number;
|
|
3356
3375
|
content: Record<string, unknown>;
|
|
3357
3376
|
parentBlockId: number;
|
|
3358
|
-
blockType?: "text" | "section" | "form" | "heading" | "
|
|
3377
|
+
blockType?: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details" | undefined;
|
|
3359
3378
|
};
|
|
3360
3379
|
tool: "update_section_column_block";
|
|
3361
3380
|
} | {
|
|
@@ -3438,7 +3457,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3438
3457
|
blockIndex: number;
|
|
3439
3458
|
columnIndex: number;
|
|
3440
3459
|
mutationExecuted: boolean;
|
|
3441
|
-
nestedBlockType: "text" | "section" | "form" | "heading" | "
|
|
3460
|
+
nestedBlockType: "text" | "section" | "form" | "heading" | "checkout" | "button" | "image" | "posts_grid" | "video_embed" | "testimonial" | "product_grid" | "featured_product" | "cart" | "product_details";
|
|
3442
3461
|
parentBlockId: any;
|
|
3443
3462
|
parentBlockType: any;
|
|
3444
3463
|
success: boolean;
|
|
@@ -3627,7 +3646,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3627
3646
|
description: string;
|
|
3628
3647
|
primaryKey: readonly string[];
|
|
3629
3648
|
readOnly: boolean;
|
|
3630
|
-
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3649
|
+
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3631
3650
|
}[];
|
|
3632
3651
|
}>;
|
|
3633
3652
|
execute_database_action_plan: import('ai').Tool<{
|
|
@@ -3691,7 +3710,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3691
3710
|
sampleTargetIds: string[];
|
|
3692
3711
|
success: boolean;
|
|
3693
3712
|
summary: string;
|
|
3694
|
-
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3713
|
+
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3695
3714
|
auditError?: string | undefined;
|
|
3696
3715
|
affectedCount: number;
|
|
3697
3716
|
auditLogged: boolean;
|
|
@@ -3700,7 +3719,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3700
3719
|
mutationExecuted: boolean;
|
|
3701
3720
|
operation: "delete" | "update" | "insert" | "upsert";
|
|
3702
3721
|
success: boolean;
|
|
3703
|
-
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3722
|
+
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3704
3723
|
auditError?: string | undefined;
|
|
3705
3724
|
auditLogged: boolean;
|
|
3706
3725
|
}>;
|
|
@@ -3724,7 +3743,7 @@ export declare function createCortexGlobalAgentTools(context?: ToolExecutionCont
|
|
|
3724
3743
|
offset: number;
|
|
3725
3744
|
rows: unknown[];
|
|
3726
3745
|
success: boolean;
|
|
3727
|
-
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3746
|
+
table: "site_settings" | "languages" | "pages" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
3728
3747
|
}>;
|
|
3729
3748
|
};
|
|
3730
3749
|
export {};
|