@nextblock-cms/cortex 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.cjs.js +1 -1
- package/client.es.js +3 -7
- package/index.cjs.js +1 -1
- package/index.es.js +24 -277
- package/lib/ai-block-generation.cjs.js +3 -4
- package/lib/ai-block-generation.es.js +143 -182
- package/lib/ai-client.cjs.js +1 -1
- package/lib/ai-client.d.ts +1 -1
- package/lib/ai-client.es.js +101 -135
- package/lib/ai-config.cjs.js +1 -1
- package/lib/ai-config.es.js +89 -108
- package/lib/ai-cortex-widget-builder.cjs.js +1 -1
- package/lib/ai-cortex-widget-builder.es.js +56 -70
- package/lib/ai-global-agent-content-ops-tools.cjs.js +1 -1
- package/lib/ai-global-agent-content-ops-tools.d.ts +1943 -68
- package/lib/ai-global-agent-content-ops-tools.es.js +185 -199
- package/lib/ai-global-agent-custom-block-tools.cjs.js +1 -1
- package/lib/ai-global-agent-custom-block-tools.d.ts +2160 -95
- package/lib/ai-global-agent-custom-block-tools.es.js +226 -223
- package/lib/ai-global-agent-db-tools.cjs.js +1 -1
- package/lib/ai-global-agent-db-tools.d.ts +2708 -98
- package/lib/ai-global-agent-db-tools.es.js +1013 -986
- package/lib/ai-global-agent-ecommerce.cjs.js +1 -1
- package/lib/ai-global-agent-ecommerce.es.js +3 -7
- package/lib/ai-global-agent-site-tools.cjs.js +2 -3
- package/lib/ai-global-agent-site-tools.d.ts +10695 -500
- package/lib/ai-global-agent-site-tools.es.js +750 -757
- package/lib/ai-global-agent-theming-tools.cjs.js +1 -3
- package/lib/ai-global-agent-theming-tools.d.ts +2905 -105
- package/lib/ai-global-agent-theming-tools.es.js +326 -396
- package/lib/ai-global-agent-tools.cjs.js +2 -2
- package/lib/ai-global-agent-tools.d.ts +4 -2230
- package/lib/ai-global-agent-tools.es.js +3899 -4328
- package/lib/ai-key-crypto.cjs.js +1 -1
- package/lib/ai-key-crypto.es.js +63 -82
- package/lib/ai-key-verification.cjs.js +1 -1
- package/lib/ai-key-verification.es.js +74 -63
- package/lib/ai-model-catalog.cjs.js +1 -1
- package/lib/ai-model-catalog.es.js +18 -22
- package/lib/ai-model-registry.cjs.js +2 -2
- package/lib/ai-model-registry.es.js +246 -309
- package/lib/ai-seo-metadata.cjs.js +2 -3
- package/lib/ai-seo-metadata.es.js +143 -185
- package/lib/ai-vision.cjs.js +2 -2
- package/lib/ai-vision.d.ts +6 -6
- package/lib/ai-vision.es.js +161 -215
- package/lib/block-content-schemas.cjs.js +1 -1
- package/lib/block-content-schemas.es.js +324 -254
- package/lib/cortex-widget-registry.cjs.js +1 -1
- package/lib/cortex-widget-registry.es.js +35 -43
- package/lib/cortex-widget-schema.cjs.js +2 -3
- package/lib/cortex-widget-schema.es.js +280 -309
- package/lib/editor-document-from-html.cjs.js +1 -1
- package/lib/editor-document-from-html.es.js +334 -278
- package/lib/fetch-host-guard.cjs.js +1 -0
- package/lib/fetch-host-guard.d.ts +2 -0
- package/lib/fetch-host-guard.es.js +30 -0
- package/lib/mcp-server.cjs.js +1 -1
- package/lib/mcp-server.es.js +155 -173
- package/lib/mcp-tokens.cjs.js +1 -1
- package/lib/mcp-tokens.es.js +95 -107
- package/lib/mcp-tool-registry.cjs.js +5 -6
- package/lib/mcp-tool-registry.es.js +533 -411
- package/lib/site-brief.cjs.js +2 -2
- package/lib/site-brief.es.js +102 -108
- package/lib/vision-image-download.cjs.js +1 -0
- package/lib/vision-image-download.d.ts +43 -0
- package/lib/vision-image-download.es.js +120 -0
- package/lib/zod-config.cjs.js +1 -1
- package/lib/zod-config.es.js +5 -6
- package/package.json +8 -8
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { isBlockedFetchHost } from './fetch-host-guard';
|
|
2
|
+
import { ToolSet } from 'ai';
|
|
1
3
|
import { z } from './zod-config';
|
|
2
4
|
import { BlockContentValidator, CustomBlockDefinitionLike } from './block-content-schemas';
|
|
5
|
+
export { isBlockedFetchHost };
|
|
3
6
|
type SupabaseLike = {
|
|
4
7
|
from: (table: string) => any;
|
|
5
8
|
};
|
|
@@ -2005,8 +2008,6 @@ export declare const fetchUrlContentInputSchema: z.ZodObject<{
|
|
|
2005
2008
|
url: z.ZodString;
|
|
2006
2009
|
}, z.core.$strict>;
|
|
2007
2010
|
export type FetchUrlContentInput = z.input<typeof fetchUrlContentInputSchema>;
|
|
2008
|
-
/** Exported for the SSRF regression tests in ai-global-agent-ssrf.test.ts. */
|
|
2009
|
-
export declare function isBlockedFetchHost(hostname: string): boolean;
|
|
2010
2011
|
export declare function executeFetchUrlContent(input: FetchUrlContentInput): Promise<{
|
|
2011
2012
|
message: string;
|
|
2012
2013
|
success: boolean;
|
|
@@ -2346,2231 +2347,4 @@ export declare function executeSetContentImages(input: SetContentImagesInput, co
|
|
|
2346
2347
|
slug: any;
|
|
2347
2348
|
success: boolean;
|
|
2348
2349
|
}>;
|
|
2349
|
-
export declare function createCortexGlobalAgentTools(context?: ToolExecutionContext):
|
|
2350
|
-
fetch_ecommerce_stats: import('ai').Tool<{
|
|
2351
|
-
query: string;
|
|
2352
|
-
reportType: "products" | "orders" | "general" | "revenue";
|
|
2353
|
-
timeRange: "today" | "this_month" | "last_7_days" | "last_30_days" | "last_month" | "last_90_days" | "all_time";
|
|
2354
|
-
currency?: string | undefined;
|
|
2355
|
-
}, {
|
|
2356
|
-
report: Record<string, any>;
|
|
2357
|
-
success: boolean;
|
|
2358
|
-
}>;
|
|
2359
|
-
read_current_cms_item: import('ai').Tool<{
|
|
2360
|
-
includeBlockContent: boolean;
|
|
2361
|
-
includeBlocks: boolean;
|
|
2362
|
-
cmsTarget?: {
|
|
2363
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2364
|
-
entityId?: string | number | undefined;
|
|
2365
|
-
slug?: string | undefined;
|
|
2366
|
-
title?: string | undefined;
|
|
2367
|
-
} | undefined;
|
|
2368
|
-
}, {
|
|
2369
|
-
blocks: {
|
|
2370
|
-
blockType: any;
|
|
2371
|
-
content: any;
|
|
2372
|
-
id: any;
|
|
2373
|
-
languageId: any;
|
|
2374
|
-
order: any;
|
|
2375
|
-
pageId: any;
|
|
2376
|
-
postId: any;
|
|
2377
|
-
}[];
|
|
2378
|
-
context: {
|
|
2379
|
-
contentType: "page" | "post" | "product";
|
|
2380
|
-
entityId: string | number;
|
|
2381
|
-
currentEditor?: {
|
|
2382
|
-
blockId?: string | number | null | undefined;
|
|
2383
|
-
blockType?: string | null | undefined;
|
|
2384
|
-
field?: string | null | undefined;
|
|
2385
|
-
} | undefined;
|
|
2386
|
-
languageId?: number | null | undefined;
|
|
2387
|
-
slug?: string | null | undefined;
|
|
2388
|
-
title?: string | null | undefined;
|
|
2389
|
-
translationGroupId?: string | null | undefined;
|
|
2390
|
-
};
|
|
2391
|
-
item: any;
|
|
2392
|
-
success: boolean;
|
|
2393
|
-
}>;
|
|
2394
|
-
search_documentation: import('ai').Tool<{
|
|
2395
|
-
limit: number;
|
|
2396
|
-
query: string;
|
|
2397
|
-
}, {
|
|
2398
|
-
query: string;
|
|
2399
|
-
results: {
|
|
2400
|
-
excerpt: string;
|
|
2401
|
-
source: "page" | "post";
|
|
2402
|
-
title: string;
|
|
2403
|
-
url: string;
|
|
2404
|
-
}[];
|
|
2405
|
-
success: boolean;
|
|
2406
|
-
}>;
|
|
2407
|
-
fetch_url_content: import('ai').Tool<{
|
|
2408
|
-
maxChars: number;
|
|
2409
|
-
url: string;
|
|
2410
|
-
}, {
|
|
2411
|
-
message: string;
|
|
2412
|
-
success: boolean;
|
|
2413
|
-
url: string;
|
|
2414
|
-
status?: undefined;
|
|
2415
|
-
contentType?: undefined;
|
|
2416
|
-
description?: undefined;
|
|
2417
|
-
finalUrl?: undefined;
|
|
2418
|
-
headings?: undefined;
|
|
2419
|
-
images?: undefined;
|
|
2420
|
-
mainImage?: undefined;
|
|
2421
|
-
text?: undefined;
|
|
2422
|
-
title?: undefined;
|
|
2423
|
-
truncated?: undefined;
|
|
2424
|
-
} | {
|
|
2425
|
-
message: string;
|
|
2426
|
-
status: number;
|
|
2427
|
-
success: boolean;
|
|
2428
|
-
url: string;
|
|
2429
|
-
contentType?: undefined;
|
|
2430
|
-
description?: undefined;
|
|
2431
|
-
finalUrl?: undefined;
|
|
2432
|
-
headings?: undefined;
|
|
2433
|
-
images?: undefined;
|
|
2434
|
-
mainImage?: undefined;
|
|
2435
|
-
text?: undefined;
|
|
2436
|
-
title?: undefined;
|
|
2437
|
-
truncated?: undefined;
|
|
2438
|
-
} | {
|
|
2439
|
-
contentType: string;
|
|
2440
|
-
message: string;
|
|
2441
|
-
success: boolean;
|
|
2442
|
-
url: string;
|
|
2443
|
-
status?: undefined;
|
|
2444
|
-
description?: undefined;
|
|
2445
|
-
finalUrl?: undefined;
|
|
2446
|
-
headings?: undefined;
|
|
2447
|
-
images?: undefined;
|
|
2448
|
-
mainImage?: undefined;
|
|
2449
|
-
text?: undefined;
|
|
2450
|
-
title?: undefined;
|
|
2451
|
-
truncated?: undefined;
|
|
2452
|
-
} | {
|
|
2453
|
-
description: string;
|
|
2454
|
-
finalUrl: string;
|
|
2455
|
-
headings: string[];
|
|
2456
|
-
images: string[];
|
|
2457
|
-
mainImage: string;
|
|
2458
|
-
success: boolean;
|
|
2459
|
-
text: string;
|
|
2460
|
-
title: string;
|
|
2461
|
-
truncated: boolean;
|
|
2462
|
-
url: string;
|
|
2463
|
-
message?: undefined;
|
|
2464
|
-
status?: undefined;
|
|
2465
|
-
contentType?: undefined;
|
|
2466
|
-
}>;
|
|
2467
|
-
search_stock_photos: import('ai').Tool<{
|
|
2468
|
-
count: number;
|
|
2469
|
-
query: string;
|
|
2470
|
-
orientation?: "landscape" | "portrait" | "square" | undefined;
|
|
2471
|
-
}, {
|
|
2472
|
-
message: string;
|
|
2473
|
-
photos: never[];
|
|
2474
|
-
success: boolean;
|
|
2475
|
-
attemptedProviders?: undefined;
|
|
2476
|
-
provider?: undefined;
|
|
2477
|
-
query?: undefined;
|
|
2478
|
-
usageGuidance?: undefined;
|
|
2479
|
-
} | {
|
|
2480
|
-
attemptedProviders: string[];
|
|
2481
|
-
photos: any;
|
|
2482
|
-
provider: "pexels" | "unsplash";
|
|
2483
|
-
query: string;
|
|
2484
|
-
success: boolean;
|
|
2485
|
-
usageGuidance: string;
|
|
2486
|
-
message?: undefined;
|
|
2487
|
-
} | {
|
|
2488
|
-
attemptedProviders: string[];
|
|
2489
|
-
message: string;
|
|
2490
|
-
photos: never[];
|
|
2491
|
-
success: boolean;
|
|
2492
|
-
provider?: undefined;
|
|
2493
|
-
query?: undefined;
|
|
2494
|
-
usageGuidance?: undefined;
|
|
2495
|
-
}>;
|
|
2496
|
-
manage_product_variants: import('ai').Tool<{
|
|
2497
|
-
mode: "replace" | "append";
|
|
2498
|
-
variants: {
|
|
2499
|
-
options: Record<string, string>;
|
|
2500
|
-
sku: string;
|
|
2501
|
-
stock: number;
|
|
2502
|
-
image?: string | undefined;
|
|
2503
|
-
price?: number | undefined;
|
|
2504
|
-
sale_price?: number | null | undefined;
|
|
2505
|
-
upc?: string | null | undefined;
|
|
2506
|
-
}[];
|
|
2507
|
-
attributes?: {
|
|
2508
|
-
name: string;
|
|
2509
|
-
terms: string[];
|
|
2510
|
-
}[] | undefined;
|
|
2511
|
-
entityId?: string | number | undefined;
|
|
2512
|
-
slug?: string | undefined;
|
|
2513
|
-
title?: string | undefined;
|
|
2514
|
-
}, {
|
|
2515
|
-
confirmationPhrase: string;
|
|
2516
|
-
mutationExecuted: boolean;
|
|
2517
|
-
preview: Record<string, unknown>;
|
|
2518
|
-
requiresConfirmation: boolean;
|
|
2519
|
-
success: boolean;
|
|
2520
|
-
} | {
|
|
2521
|
-
contentType: string;
|
|
2522
|
-
entityId: string;
|
|
2523
|
-
mode: "replace" | "append";
|
|
2524
|
-
mutationExecuted: boolean;
|
|
2525
|
-
skus: string[];
|
|
2526
|
-
slug: any;
|
|
2527
|
-
success: boolean;
|
|
2528
|
-
totalStock: any;
|
|
2529
|
-
variantCount: number;
|
|
2530
|
-
}>;
|
|
2531
|
-
translate_content_bulk: import('ai').Tool<{
|
|
2532
|
-
items: {
|
|
2533
|
-
contentType: "page" | "post";
|
|
2534
|
-
slug: string;
|
|
2535
|
-
translations: Record<string, string>;
|
|
2536
|
-
title?: string | undefined;
|
|
2537
|
-
}[];
|
|
2538
|
-
targetLanguageCode: string;
|
|
2539
|
-
}, {
|
|
2540
|
-
confirmationPhrase: string;
|
|
2541
|
-
mutationExecuted: boolean;
|
|
2542
|
-
preview: Record<string, unknown>;
|
|
2543
|
-
requiresConfirmation: boolean;
|
|
2544
|
-
success: boolean;
|
|
2545
|
-
} | {
|
|
2546
|
-
failed: {
|
|
2547
|
-
error: string;
|
|
2548
|
-
slug: string;
|
|
2549
|
-
}[];
|
|
2550
|
-
failedCount: number;
|
|
2551
|
-
mutationExecuted: boolean;
|
|
2552
|
-
success: boolean;
|
|
2553
|
-
targetLanguageCode: string;
|
|
2554
|
-
translated: Record<string, unknown>[];
|
|
2555
|
-
translatedCount: number;
|
|
2556
|
-
}>;
|
|
2557
|
-
publish_content_draft: import('ai').Tool<{
|
|
2558
|
-
action: "publish" | "discard";
|
|
2559
|
-
contentType?: "page" | "post" | undefined;
|
|
2560
|
-
entityId?: string | number | undefined;
|
|
2561
|
-
slug?: string | undefined;
|
|
2562
|
-
title?: string | undefined;
|
|
2563
|
-
}, {
|
|
2564
|
-
confirmationPhrase: string;
|
|
2565
|
-
mutationExecuted: boolean;
|
|
2566
|
-
preview: Record<string, unknown>;
|
|
2567
|
-
requiresConfirmation: boolean;
|
|
2568
|
-
success: boolean;
|
|
2569
|
-
} | {
|
|
2570
|
-
contentType: "page" | "post";
|
|
2571
|
-
entityId: number;
|
|
2572
|
-
message: string;
|
|
2573
|
-
mutationExecuted: boolean;
|
|
2574
|
-
success: boolean;
|
|
2575
|
-
action?: undefined;
|
|
2576
|
-
} | {
|
|
2577
|
-
action: string;
|
|
2578
|
-
contentType: "page" | "post";
|
|
2579
|
-
entityId: number;
|
|
2580
|
-
mutationExecuted: boolean;
|
|
2581
|
-
success: boolean;
|
|
2582
|
-
message?: undefined;
|
|
2583
|
-
} | {
|
|
2584
|
-
warning?: string | undefined;
|
|
2585
|
-
action: string;
|
|
2586
|
-
blockCount: number;
|
|
2587
|
-
contentType: "page" | "post";
|
|
2588
|
-
entityId: number;
|
|
2589
|
-
mutationExecuted: boolean;
|
|
2590
|
-
slug: string | null | undefined;
|
|
2591
|
-
success: boolean;
|
|
2592
|
-
message?: undefined;
|
|
2593
|
-
}>;
|
|
2594
|
-
rewrite_page_draft: import('ai').Tool<{
|
|
2595
|
-
blocks: {
|
|
2596
|
-
blockType: string;
|
|
2597
|
-
content: Record<string, unknown>;
|
|
2598
|
-
order?: number | undefined;
|
|
2599
|
-
}[];
|
|
2600
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2601
|
-
entityId?: string | number | undefined;
|
|
2602
|
-
slug?: string | undefined;
|
|
2603
|
-
title?: string | undefined;
|
|
2604
|
-
meta?: {
|
|
2605
|
-
meta_description?: string | null | undefined;
|
|
2606
|
-
meta_title?: string | null | undefined;
|
|
2607
|
-
slug?: string | undefined;
|
|
2608
|
-
status?: "draft" | "published" | "archived" | undefined;
|
|
2609
|
-
title?: string | undefined;
|
|
2610
|
-
} | undefined;
|
|
2611
|
-
}, {
|
|
2612
|
-
confirmationPhrase: string;
|
|
2613
|
-
mutationExecuted: boolean;
|
|
2614
|
-
preview: Record<string, unknown>;
|
|
2615
|
-
requiresConfirmation: boolean;
|
|
2616
|
-
success: boolean;
|
|
2617
|
-
} | {
|
|
2618
|
-
blockCount: number;
|
|
2619
|
-
contentType: "page" | "post";
|
|
2620
|
-
draftPreviewPath: string | null;
|
|
2621
|
-
editPath: string;
|
|
2622
|
-
entityId: number;
|
|
2623
|
-
isDraft: boolean;
|
|
2624
|
-
mutationExecuted: boolean;
|
|
2625
|
-
slug: string;
|
|
2626
|
-
success: boolean;
|
|
2627
|
-
title: string;
|
|
2628
|
-
}>;
|
|
2629
|
-
translate_page: import('ai').Tool<{
|
|
2630
|
-
targetLanguageCode: string;
|
|
2631
|
-
translations: Record<string, string>;
|
|
2632
|
-
cmsTarget?: {
|
|
2633
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2634
|
-
entityId?: string | number | undefined;
|
|
2635
|
-
slug?: string | undefined;
|
|
2636
|
-
title?: string | undefined;
|
|
2637
|
-
} | undefined;
|
|
2638
|
-
title?: string | undefined;
|
|
2639
|
-
}, {
|
|
2640
|
-
confirmationPhrase: string;
|
|
2641
|
-
mutationExecuted: boolean;
|
|
2642
|
-
preview: Record<string, unknown>;
|
|
2643
|
-
requiresConfirmation: boolean;
|
|
2644
|
-
success: boolean;
|
|
2645
|
-
} | {
|
|
2646
|
-
isTranslation: boolean;
|
|
2647
|
-
languageCode: string;
|
|
2648
|
-
}>;
|
|
2649
|
-
set_content_images: import('ai').Tool<{
|
|
2650
|
-
images: string[];
|
|
2651
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2652
|
-
entityId?: string | number | undefined;
|
|
2653
|
-
slug?: string | undefined;
|
|
2654
|
-
title?: string | undefined;
|
|
2655
|
-
}, {
|
|
2656
|
-
confirmationPhrase: string;
|
|
2657
|
-
mutationExecuted: boolean;
|
|
2658
|
-
preview: Record<string, unknown>;
|
|
2659
|
-
requiresConfirmation: boolean;
|
|
2660
|
-
success: boolean;
|
|
2661
|
-
} | {
|
|
2662
|
-
contentType: string;
|
|
2663
|
-
entityId: string | number;
|
|
2664
|
-
imageCount: number;
|
|
2665
|
-
mutationExecuted: boolean;
|
|
2666
|
-
slug: any;
|
|
2667
|
-
success: boolean;
|
|
2668
|
-
extraImagesIgnored?: undefined;
|
|
2669
|
-
} | {
|
|
2670
|
-
contentType: "page" | "post" | "product";
|
|
2671
|
-
entityId: string | number;
|
|
2672
|
-
extraImagesIgnored: number;
|
|
2673
|
-
imageCount: number;
|
|
2674
|
-
mutationExecuted: boolean;
|
|
2675
|
-
slug: any;
|
|
2676
|
-
success: boolean;
|
|
2677
|
-
}>;
|
|
2678
|
-
create_cms_page: import('ai').Tool<{
|
|
2679
|
-
status: "draft" | "published" | "archived";
|
|
2680
|
-
title: string;
|
|
2681
|
-
blocks?: {
|
|
2682
|
-
blockType: string;
|
|
2683
|
-
content: Record<string, unknown>;
|
|
2684
|
-
order?: number | undefined;
|
|
2685
|
-
}[] | undefined;
|
|
2686
|
-
contactEmail?: string | undefined;
|
|
2687
|
-
feature_image_id?: string | null | undefined;
|
|
2688
|
-
languageCode?: string | undefined;
|
|
2689
|
-
meta_description?: string | null | undefined;
|
|
2690
|
-
meta_title?: string | null | undefined;
|
|
2691
|
-
slug?: string | undefined;
|
|
2692
|
-
translationGroupId?: string | undefined;
|
|
2693
|
-
}, {
|
|
2694
|
-
confirmationPhrase: string;
|
|
2695
|
-
mutationExecuted: boolean;
|
|
2696
|
-
preview: Record<string, unknown>;
|
|
2697
|
-
requiresConfirmation: boolean;
|
|
2698
|
-
success: boolean;
|
|
2699
|
-
} | {
|
|
2700
|
-
duplicate: boolean;
|
|
2701
|
-
existingItem: any;
|
|
2702
|
-
mutationExecuted: boolean;
|
|
2703
|
-
success: boolean;
|
|
2704
|
-
message: string;
|
|
2705
|
-
} | {
|
|
2706
|
-
message: string;
|
|
2707
|
-
mutationExecuted: boolean;
|
|
2708
|
-
success: boolean;
|
|
2709
|
-
duplicateTranslation?: undefined;
|
|
2710
|
-
existingItem?: undefined;
|
|
2711
|
-
} | {
|
|
2712
|
-
duplicateTranslation: boolean;
|
|
2713
|
-
existingItem: any;
|
|
2714
|
-
message: string;
|
|
2715
|
-
mutationExecuted: boolean;
|
|
2716
|
-
success: boolean;
|
|
2717
|
-
} | {
|
|
2718
|
-
blockCount: number;
|
|
2719
|
-
contentType: string;
|
|
2720
|
-
editPath: string;
|
|
2721
|
-
entityId: any;
|
|
2722
|
-
mutationExecuted: boolean;
|
|
2723
|
-
slug: string;
|
|
2724
|
-
success: boolean;
|
|
2725
|
-
title: string;
|
|
2726
|
-
translationGroupId: any;
|
|
2727
|
-
}>;
|
|
2728
|
-
create_cms_post: import('ai').Tool<{
|
|
2729
|
-
status: "draft" | "published" | "archived";
|
|
2730
|
-
title: string;
|
|
2731
|
-
blocks?: {
|
|
2732
|
-
blockType: string;
|
|
2733
|
-
content: Record<string, unknown>;
|
|
2734
|
-
order?: number | undefined;
|
|
2735
|
-
}[] | undefined;
|
|
2736
|
-
excerpt?: string | null | undefined;
|
|
2737
|
-
feature_image_id?: string | null | undefined;
|
|
2738
|
-
label?: string | null | undefined;
|
|
2739
|
-
languageCode?: string | undefined;
|
|
2740
|
-
meta_description?: string | null | undefined;
|
|
2741
|
-
meta_title?: string | null | undefined;
|
|
2742
|
-
published_at?: string | null | undefined;
|
|
2743
|
-
slug?: string | undefined;
|
|
2744
|
-
subtitle?: string | null | undefined;
|
|
2745
|
-
translationGroupId?: string | undefined;
|
|
2746
|
-
}, {
|
|
2747
|
-
confirmationPhrase: string;
|
|
2748
|
-
mutationExecuted: boolean;
|
|
2749
|
-
preview: Record<string, unknown>;
|
|
2750
|
-
requiresConfirmation: boolean;
|
|
2751
|
-
success: boolean;
|
|
2752
|
-
} | {
|
|
2753
|
-
duplicate: boolean;
|
|
2754
|
-
existingItem: any;
|
|
2755
|
-
mutationExecuted: boolean;
|
|
2756
|
-
success: boolean;
|
|
2757
|
-
message: string;
|
|
2758
|
-
} | {
|
|
2759
|
-
message: string;
|
|
2760
|
-
mutationExecuted: boolean;
|
|
2761
|
-
success: boolean;
|
|
2762
|
-
duplicateTranslation?: undefined;
|
|
2763
|
-
existingItem?: undefined;
|
|
2764
|
-
} | {
|
|
2765
|
-
duplicateTranslation: boolean;
|
|
2766
|
-
existingItem: any;
|
|
2767
|
-
message: string;
|
|
2768
|
-
mutationExecuted: boolean;
|
|
2769
|
-
success: boolean;
|
|
2770
|
-
} | {
|
|
2771
|
-
blockCount: number;
|
|
2772
|
-
contentType: string;
|
|
2773
|
-
editPath: string;
|
|
2774
|
-
entityId: any;
|
|
2775
|
-
mutationExecuted: boolean;
|
|
2776
|
-
slug: string;
|
|
2777
|
-
success: boolean;
|
|
2778
|
-
title: string;
|
|
2779
|
-
translationGroupId: any;
|
|
2780
|
-
}>;
|
|
2781
|
-
create_cms_product: import('ai').Tool<{
|
|
2782
|
-
is_taxable: boolean;
|
|
2783
|
-
payment_provider: "stripe" | "freemius";
|
|
2784
|
-
price: number;
|
|
2785
|
-
product_type: "physical" | "digital";
|
|
2786
|
-
status: "draft" | "archived" | "active";
|
|
2787
|
-
stock: number;
|
|
2788
|
-
title: string;
|
|
2789
|
-
trial_period_days: number;
|
|
2790
|
-
trial_requires_payment_method: boolean;
|
|
2791
|
-
blocks?: {
|
|
2792
|
-
blockType: string;
|
|
2793
|
-
content: Record<string, unknown>;
|
|
2794
|
-
order?: number | undefined;
|
|
2795
|
-
}[] | undefined;
|
|
2796
|
-
description_html?: string | undefined;
|
|
2797
|
-
description_json?: unknown;
|
|
2798
|
-
freemius_plan_id?: string | undefined;
|
|
2799
|
-
freemius_product_id?: string | undefined;
|
|
2800
|
-
images?: string[] | undefined;
|
|
2801
|
-
languageCode?: string | undefined;
|
|
2802
|
-
meta_description?: string | null | undefined;
|
|
2803
|
-
meta_title?: string | null | undefined;
|
|
2804
|
-
prices?: Record<string, number> | undefined;
|
|
2805
|
-
sale_price?: number | null | undefined;
|
|
2806
|
-
sale_prices?: Record<string, number | null> | undefined;
|
|
2807
|
-
short_description?: string | null | undefined;
|
|
2808
|
-
sku?: string | undefined;
|
|
2809
|
-
slug?: string | undefined;
|
|
2810
|
-
translationGroupId?: string | undefined;
|
|
2811
|
-
upc?: string | null | undefined;
|
|
2812
|
-
}, {
|
|
2813
|
-
confirmationPhrase: string;
|
|
2814
|
-
mutationExecuted: boolean;
|
|
2815
|
-
preview: Record<string, unknown>;
|
|
2816
|
-
requiresConfirmation: boolean;
|
|
2817
|
-
success: boolean;
|
|
2818
|
-
} | {
|
|
2819
|
-
duplicate: boolean;
|
|
2820
|
-
existingItem: any;
|
|
2821
|
-
mutationExecuted: boolean;
|
|
2822
|
-
success: boolean;
|
|
2823
|
-
message: string;
|
|
2824
|
-
} | {
|
|
2825
|
-
message: string;
|
|
2826
|
-
mutationExecuted: boolean;
|
|
2827
|
-
success: boolean;
|
|
2828
|
-
duplicateTranslation?: undefined;
|
|
2829
|
-
existingItem?: undefined;
|
|
2830
|
-
} | {
|
|
2831
|
-
duplicateTranslation: boolean;
|
|
2832
|
-
existingItem: any;
|
|
2833
|
-
message: string;
|
|
2834
|
-
mutationExecuted: boolean;
|
|
2835
|
-
success: boolean;
|
|
2836
|
-
} | {
|
|
2837
|
-
mutationExecuted: boolean;
|
|
2838
|
-
slug: string;
|
|
2839
|
-
success: boolean;
|
|
2840
|
-
title: string;
|
|
2841
|
-
translationGroupId: string;
|
|
2842
|
-
imageError?: string | undefined;
|
|
2843
|
-
blockCount: number;
|
|
2844
|
-
contentType: string;
|
|
2845
|
-
editPath: string;
|
|
2846
|
-
entityId: string;
|
|
2847
|
-
imageCount: number;
|
|
2848
|
-
}>;
|
|
2849
|
-
delete_cms_item: import('ai').Tool<{
|
|
2850
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2851
|
-
entityId?: string | number | undefined;
|
|
2852
|
-
slug?: string | undefined;
|
|
2853
|
-
title?: string | undefined;
|
|
2854
|
-
}, {
|
|
2855
|
-
confirmationPhrase: string;
|
|
2856
|
-
mutationExecuted: boolean;
|
|
2857
|
-
preview: Record<string, unknown>;
|
|
2858
|
-
requiresConfirmation: boolean;
|
|
2859
|
-
success: boolean;
|
|
2860
|
-
} | {
|
|
2861
|
-
affectedCount: number;
|
|
2862
|
-
collectionPath: string;
|
|
2863
|
-
contentType: "page" | "post" | "product";
|
|
2864
|
-
mutationExecuted: boolean;
|
|
2865
|
-
redirectPath: string;
|
|
2866
|
-
success: boolean;
|
|
2867
|
-
}>;
|
|
2868
|
-
prepare_delete_cms_item: import('ai').Tool<{
|
|
2869
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2870
|
-
entityId?: string | number | undefined;
|
|
2871
|
-
slug?: string | undefined;
|
|
2872
|
-
title?: string | undefined;
|
|
2873
|
-
}, {
|
|
2874
|
-
preparedDelete: boolean;
|
|
2875
|
-
confirmationPhrase: string;
|
|
2876
|
-
mutationExecuted: boolean;
|
|
2877
|
-
preview: Record<string, unknown>;
|
|
2878
|
-
requiresConfirmation: boolean;
|
|
2879
|
-
success: boolean;
|
|
2880
|
-
}>;
|
|
2881
|
-
update_footer: import('ai').Tool<{
|
|
2882
|
-
languageCode: string;
|
|
2883
|
-
copyright?: Record<string, string> | undefined;
|
|
2884
|
-
links?: {
|
|
2885
|
-
label: string;
|
|
2886
|
-
url: string;
|
|
2887
|
-
target?: "_blank" | "_self" | undefined;
|
|
2888
|
-
children?: {
|
|
2889
|
-
label: string;
|
|
2890
|
-
url: string;
|
|
2891
|
-
target?: "_blank" | "_self" | undefined;
|
|
2892
|
-
}[] | undefined;
|
|
2893
|
-
}[] | undefined;
|
|
2894
|
-
}, {
|
|
2895
|
-
confirmationPhrase: string;
|
|
2896
|
-
mutationExecuted: boolean;
|
|
2897
|
-
preview: Record<string, unknown>;
|
|
2898
|
-
requiresConfirmation: boolean;
|
|
2899
|
-
success: boolean;
|
|
2900
|
-
} | {
|
|
2901
|
-
copyrightUpdated: boolean;
|
|
2902
|
-
footerNavigation: {
|
|
2903
|
-
insertedCount: number;
|
|
2904
|
-
languageCode: string;
|
|
2905
|
-
menuKey: "FOOTER";
|
|
2906
|
-
skippedCount: number;
|
|
2907
|
-
updatedCount: number;
|
|
2908
|
-
} | null;
|
|
2909
|
-
mutationExecuted: boolean;
|
|
2910
|
-
success: boolean;
|
|
2911
|
-
}>;
|
|
2912
|
-
update_content_block: import('ai').Tool<{
|
|
2913
|
-
blockId: number;
|
|
2914
|
-
content: Record<string, unknown>;
|
|
2915
|
-
blockType?: string | undefined;
|
|
2916
|
-
cmsTarget?: {
|
|
2917
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2918
|
-
entityId?: string | number | undefined;
|
|
2919
|
-
slug?: string | undefined;
|
|
2920
|
-
title?: string | undefined;
|
|
2921
|
-
} | undefined;
|
|
2922
|
-
}, {
|
|
2923
|
-
confirmationPhrase: string;
|
|
2924
|
-
mutationExecuted: boolean;
|
|
2925
|
-
preview: Record<string, unknown>;
|
|
2926
|
-
requiresConfirmation: boolean;
|
|
2927
|
-
success: boolean;
|
|
2928
|
-
} | {
|
|
2929
|
-
blockId: any;
|
|
2930
|
-
blockType: any;
|
|
2931
|
-
contentUpdated: boolean;
|
|
2932
|
-
mutationExecuted: boolean;
|
|
2933
|
-
success: boolean;
|
|
2934
|
-
}>;
|
|
2935
|
-
insert_content_block: import('ai').Tool<{
|
|
2936
|
-
block: {
|
|
2937
|
-
blockType: string;
|
|
2938
|
-
content: Record<string, unknown>;
|
|
2939
|
-
order?: number | undefined;
|
|
2940
|
-
};
|
|
2941
|
-
position: "start" | "end" | "before" | "after";
|
|
2942
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2943
|
-
entityId?: string | number | undefined;
|
|
2944
|
-
slug?: string | undefined;
|
|
2945
|
-
title?: string | undefined;
|
|
2946
|
-
anchorBlockId?: number | undefined;
|
|
2947
|
-
anchorBlockType?: string | undefined;
|
|
2948
|
-
}, {
|
|
2949
|
-
confirmationPhrase: string;
|
|
2950
|
-
mutationExecuted: boolean;
|
|
2951
|
-
preview: Record<string, unknown>;
|
|
2952
|
-
requiresConfirmation: boolean;
|
|
2953
|
-
success: boolean;
|
|
2954
|
-
} | {
|
|
2955
|
-
blockId: any;
|
|
2956
|
-
blockType: any;
|
|
2957
|
-
contentType: "page" | "post" | "product";
|
|
2958
|
-
entityId: any;
|
|
2959
|
-
mutationExecuted: boolean;
|
|
2960
|
-
order: any;
|
|
2961
|
-
success: boolean;
|
|
2962
|
-
}>;
|
|
2963
|
-
update_current_cms_fields: import('ai').Tool<{
|
|
2964
|
-
fields: {
|
|
2965
|
-
description_json?: unknown;
|
|
2966
|
-
excerpt?: string | null | undefined;
|
|
2967
|
-
feature_image_id?: string | null | undefined;
|
|
2968
|
-
label?: string | null | undefined;
|
|
2969
|
-
meta_description?: string | null | undefined;
|
|
2970
|
-
meta_title?: string | null | undefined;
|
|
2971
|
-
published_at?: string | null | undefined;
|
|
2972
|
-
short_description?: string | null | undefined;
|
|
2973
|
-
slug?: string | undefined;
|
|
2974
|
-
status?: "draft" | "published" | "archived" | "active" | undefined;
|
|
2975
|
-
subtitle?: string | null | undefined;
|
|
2976
|
-
title?: string | undefined;
|
|
2977
|
-
};
|
|
2978
|
-
cmsTarget?: {
|
|
2979
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
2980
|
-
entityId?: string | number | undefined;
|
|
2981
|
-
slug?: string | undefined;
|
|
2982
|
-
title?: string | undefined;
|
|
2983
|
-
} | undefined;
|
|
2984
|
-
}, {
|
|
2985
|
-
confirmationPhrase: string;
|
|
2986
|
-
mutationExecuted: boolean;
|
|
2987
|
-
preview: Record<string, unknown>;
|
|
2988
|
-
requiresConfirmation: boolean;
|
|
2989
|
-
success: boolean;
|
|
2990
|
-
} | {
|
|
2991
|
-
contentType: "page" | "post" | "product";
|
|
2992
|
-
entityId: string | number;
|
|
2993
|
-
mutationExecuted: boolean;
|
|
2994
|
-
slug: any;
|
|
2995
|
-
success: boolean;
|
|
2996
|
-
updatedFields: string[];
|
|
2997
|
-
}>;
|
|
2998
|
-
update_cms_item_field: import('ai').Tool<{
|
|
2999
|
-
field: string;
|
|
3000
|
-
value: unknown;
|
|
3001
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3002
|
-
entityId?: string | number | undefined;
|
|
3003
|
-
slug?: string | undefined;
|
|
3004
|
-
title?: string | undefined;
|
|
3005
|
-
currencyCode?: string | undefined;
|
|
3006
|
-
endsAt?: string | null | undefined;
|
|
3007
|
-
startsAt?: string | null | undefined;
|
|
3008
|
-
}, {
|
|
3009
|
-
confirmationPhrase: string;
|
|
3010
|
-
mutationExecuted: boolean;
|
|
3011
|
-
preview: Record<string, unknown>;
|
|
3012
|
-
requiresConfirmation: boolean;
|
|
3013
|
-
success: boolean;
|
|
3014
|
-
} | {
|
|
3015
|
-
message: string;
|
|
3016
|
-
mutationExecuted: boolean;
|
|
3017
|
-
success: boolean;
|
|
3018
|
-
unsupported: boolean;
|
|
3019
|
-
contentType?: undefined;
|
|
3020
|
-
entityId?: undefined;
|
|
3021
|
-
field?: undefined;
|
|
3022
|
-
slug?: undefined;
|
|
3023
|
-
updatedFields?: undefined;
|
|
3024
|
-
} | {
|
|
3025
|
-
contentType: string;
|
|
3026
|
-
entityId: any;
|
|
3027
|
-
field: string;
|
|
3028
|
-
mutationExecuted: boolean;
|
|
3029
|
-
slug: any;
|
|
3030
|
-
success: boolean;
|
|
3031
|
-
updatedFields: string[];
|
|
3032
|
-
message?: undefined;
|
|
3033
|
-
unsupported?: undefined;
|
|
3034
|
-
}>;
|
|
3035
|
-
update_navigation_bar: import('ai').Tool<{
|
|
3036
|
-
items: {
|
|
3037
|
-
label: string;
|
|
3038
|
-
url: string;
|
|
3039
|
-
target?: "_blank" | "_self" | undefined;
|
|
3040
|
-
children?: {
|
|
3041
|
-
label: string;
|
|
3042
|
-
url: string;
|
|
3043
|
-
target?: "_blank" | "_self" | undefined;
|
|
3044
|
-
}[] | undefined;
|
|
3045
|
-
}[];
|
|
3046
|
-
languageCode: string;
|
|
3047
|
-
mode: "replace" | "update" | "append";
|
|
3048
|
-
match?: {
|
|
3049
|
-
label?: string | undefined;
|
|
3050
|
-
url?: string | undefined;
|
|
3051
|
-
} | undefined;
|
|
3052
|
-
}, {
|
|
3053
|
-
confirmationPhrase: string;
|
|
3054
|
-
mutationExecuted: boolean;
|
|
3055
|
-
preview: Record<string, unknown>;
|
|
3056
|
-
requiresConfirmation: boolean;
|
|
3057
|
-
success: boolean;
|
|
3058
|
-
} | {
|
|
3059
|
-
mutationExecuted: boolean;
|
|
3060
|
-
mode: "replace" | "update" | "append";
|
|
3061
|
-
success: boolean;
|
|
3062
|
-
insertedCount: number;
|
|
3063
|
-
languageCode: string;
|
|
3064
|
-
menuKey: MenuKey;
|
|
3065
|
-
skippedCount: number;
|
|
3066
|
-
updatedCount: number;
|
|
3067
|
-
}>;
|
|
3068
|
-
update_section_column_block: import('ai').Tool<{
|
|
3069
|
-
blockIndex: number;
|
|
3070
|
-
columnIndex: number;
|
|
3071
|
-
content: Record<string, unknown>;
|
|
3072
|
-
parentBlockId: number;
|
|
3073
|
-
blockType?: string | undefined;
|
|
3074
|
-
cmsTarget?: {
|
|
3075
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3076
|
-
entityId?: string | number | undefined;
|
|
3077
|
-
slug?: string | undefined;
|
|
3078
|
-
title?: string | undefined;
|
|
3079
|
-
} | undefined;
|
|
3080
|
-
}, {
|
|
3081
|
-
confirmationPhrase: string;
|
|
3082
|
-
mutationExecuted: boolean;
|
|
3083
|
-
preview: Record<string, unknown>;
|
|
3084
|
-
requiresConfirmation: boolean;
|
|
3085
|
-
success: boolean;
|
|
3086
|
-
} | {
|
|
3087
|
-
blockIndex: number;
|
|
3088
|
-
columnIndex: number;
|
|
3089
|
-
mutationExecuted: boolean;
|
|
3090
|
-
nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
|
|
3091
|
-
parentBlockId: any;
|
|
3092
|
-
parentBlockType: any;
|
|
3093
|
-
success: boolean;
|
|
3094
|
-
}>;
|
|
3095
|
-
execute_cms_action_plan: import('ai').Tool<{
|
|
3096
|
-
actions: ({
|
|
3097
|
-
input: {
|
|
3098
|
-
status: "draft" | "published" | "archived";
|
|
3099
|
-
title: string;
|
|
3100
|
-
blocks?: {
|
|
3101
|
-
blockType: string;
|
|
3102
|
-
content: Record<string, unknown>;
|
|
3103
|
-
order?: number | undefined;
|
|
3104
|
-
}[] | undefined;
|
|
3105
|
-
contactEmail?: string | undefined;
|
|
3106
|
-
feature_image_id?: string | null | undefined;
|
|
3107
|
-
languageCode?: string | undefined;
|
|
3108
|
-
meta_description?: string | null | undefined;
|
|
3109
|
-
meta_title?: string | null | undefined;
|
|
3110
|
-
slug?: string | undefined;
|
|
3111
|
-
translationGroupId?: string | undefined;
|
|
3112
|
-
};
|
|
3113
|
-
tool: "create_cms_page";
|
|
3114
|
-
} | {
|
|
3115
|
-
input: {
|
|
3116
|
-
status: "draft" | "published" | "archived";
|
|
3117
|
-
title: string;
|
|
3118
|
-
blocks?: {
|
|
3119
|
-
blockType: string;
|
|
3120
|
-
content: Record<string, unknown>;
|
|
3121
|
-
order?: number | undefined;
|
|
3122
|
-
}[] | undefined;
|
|
3123
|
-
excerpt?: string | null | undefined;
|
|
3124
|
-
feature_image_id?: string | null | undefined;
|
|
3125
|
-
label?: string | null | undefined;
|
|
3126
|
-
languageCode?: string | undefined;
|
|
3127
|
-
meta_description?: string | null | undefined;
|
|
3128
|
-
meta_title?: string | null | undefined;
|
|
3129
|
-
published_at?: string | null | undefined;
|
|
3130
|
-
slug?: string | undefined;
|
|
3131
|
-
subtitle?: string | null | undefined;
|
|
3132
|
-
translationGroupId?: string | undefined;
|
|
3133
|
-
};
|
|
3134
|
-
tool: "create_cms_post";
|
|
3135
|
-
} | {
|
|
3136
|
-
input: {
|
|
3137
|
-
is_taxable: boolean;
|
|
3138
|
-
payment_provider: "stripe" | "freemius";
|
|
3139
|
-
price: number;
|
|
3140
|
-
product_type: "physical" | "digital";
|
|
3141
|
-
status: "draft" | "archived" | "active";
|
|
3142
|
-
stock: number;
|
|
3143
|
-
title: string;
|
|
3144
|
-
trial_period_days: number;
|
|
3145
|
-
trial_requires_payment_method: boolean;
|
|
3146
|
-
blocks?: {
|
|
3147
|
-
blockType: string;
|
|
3148
|
-
content: Record<string, unknown>;
|
|
3149
|
-
order?: number | undefined;
|
|
3150
|
-
}[] | undefined;
|
|
3151
|
-
description_html?: string | undefined;
|
|
3152
|
-
description_json?: unknown;
|
|
3153
|
-
freemius_plan_id?: string | undefined;
|
|
3154
|
-
freemius_product_id?: string | undefined;
|
|
3155
|
-
images?: string[] | undefined;
|
|
3156
|
-
languageCode?: string | undefined;
|
|
3157
|
-
meta_description?: string | null | undefined;
|
|
3158
|
-
meta_title?: string | null | undefined;
|
|
3159
|
-
prices?: Record<string, number> | undefined;
|
|
3160
|
-
sale_price?: number | null | undefined;
|
|
3161
|
-
sale_prices?: Record<string, number | null> | undefined;
|
|
3162
|
-
short_description?: string | null | undefined;
|
|
3163
|
-
sku?: string | undefined;
|
|
3164
|
-
slug?: string | undefined;
|
|
3165
|
-
translationGroupId?: string | undefined;
|
|
3166
|
-
upc?: string | null | undefined;
|
|
3167
|
-
};
|
|
3168
|
-
tool: "create_cms_product";
|
|
3169
|
-
} | {
|
|
3170
|
-
input: {
|
|
3171
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3172
|
-
entityId?: string | number | undefined;
|
|
3173
|
-
slug?: string | undefined;
|
|
3174
|
-
title?: string | undefined;
|
|
3175
|
-
};
|
|
3176
|
-
tool: "delete_cms_item";
|
|
3177
|
-
} | {
|
|
3178
|
-
input: {
|
|
3179
|
-
field: string;
|
|
3180
|
-
value: unknown;
|
|
3181
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3182
|
-
entityId?: string | number | undefined;
|
|
3183
|
-
slug?: string | undefined;
|
|
3184
|
-
title?: string | undefined;
|
|
3185
|
-
currencyCode?: string | undefined;
|
|
3186
|
-
endsAt?: string | null | undefined;
|
|
3187
|
-
startsAt?: string | null | undefined;
|
|
3188
|
-
};
|
|
3189
|
-
tool: "update_cms_item_field";
|
|
3190
|
-
} | {
|
|
3191
|
-
input: {
|
|
3192
|
-
blockId: number;
|
|
3193
|
-
content: Record<string, unknown>;
|
|
3194
|
-
blockType?: string | undefined;
|
|
3195
|
-
cmsTarget?: {
|
|
3196
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3197
|
-
entityId?: string | number | undefined;
|
|
3198
|
-
slug?: string | undefined;
|
|
3199
|
-
title?: string | undefined;
|
|
3200
|
-
} | undefined;
|
|
3201
|
-
};
|
|
3202
|
-
tool: "update_content_block";
|
|
3203
|
-
} | {
|
|
3204
|
-
input: {
|
|
3205
|
-
block: {
|
|
3206
|
-
blockType: string;
|
|
3207
|
-
content: Record<string, unknown>;
|
|
3208
|
-
order?: number | undefined;
|
|
3209
|
-
};
|
|
3210
|
-
position: "start" | "end" | "before" | "after";
|
|
3211
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3212
|
-
entityId?: string | number | undefined;
|
|
3213
|
-
slug?: string | undefined;
|
|
3214
|
-
title?: string | undefined;
|
|
3215
|
-
anchorBlockId?: number | undefined;
|
|
3216
|
-
anchorBlockType?: string | undefined;
|
|
3217
|
-
};
|
|
3218
|
-
tool: "insert_content_block";
|
|
3219
|
-
} | {
|
|
3220
|
-
input: {
|
|
3221
|
-
fields: {
|
|
3222
|
-
description_json?: unknown;
|
|
3223
|
-
excerpt?: string | null | undefined;
|
|
3224
|
-
feature_image_id?: string | null | undefined;
|
|
3225
|
-
label?: string | null | undefined;
|
|
3226
|
-
meta_description?: string | null | undefined;
|
|
3227
|
-
meta_title?: string | null | undefined;
|
|
3228
|
-
published_at?: string | null | undefined;
|
|
3229
|
-
short_description?: string | null | undefined;
|
|
3230
|
-
slug?: string | undefined;
|
|
3231
|
-
status?: "draft" | "published" | "archived" | "active" | undefined;
|
|
3232
|
-
subtitle?: string | null | undefined;
|
|
3233
|
-
title?: string | undefined;
|
|
3234
|
-
};
|
|
3235
|
-
cmsTarget?: {
|
|
3236
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3237
|
-
entityId?: string | number | undefined;
|
|
3238
|
-
slug?: string | undefined;
|
|
3239
|
-
title?: string | undefined;
|
|
3240
|
-
} | undefined;
|
|
3241
|
-
};
|
|
3242
|
-
tool: "update_current_cms_fields";
|
|
3243
|
-
} | {
|
|
3244
|
-
input: {
|
|
3245
|
-
languageCode: string;
|
|
3246
|
-
copyright?: Record<string, string> | undefined;
|
|
3247
|
-
links?: {
|
|
3248
|
-
label: string;
|
|
3249
|
-
url: string;
|
|
3250
|
-
target?: "_blank" | "_self" | undefined;
|
|
3251
|
-
children?: {
|
|
3252
|
-
label: string;
|
|
3253
|
-
url: string;
|
|
3254
|
-
target?: "_blank" | "_self" | undefined;
|
|
3255
|
-
}[] | undefined;
|
|
3256
|
-
}[] | undefined;
|
|
3257
|
-
};
|
|
3258
|
-
tool: "update_footer";
|
|
3259
|
-
} | {
|
|
3260
|
-
input: {
|
|
3261
|
-
items: {
|
|
3262
|
-
label: string;
|
|
3263
|
-
url: string;
|
|
3264
|
-
target?: "_blank" | "_self" | undefined;
|
|
3265
|
-
children?: {
|
|
3266
|
-
label: string;
|
|
3267
|
-
url: string;
|
|
3268
|
-
target?: "_blank" | "_self" | undefined;
|
|
3269
|
-
}[] | undefined;
|
|
3270
|
-
}[];
|
|
3271
|
-
languageCode: string;
|
|
3272
|
-
mode: "replace" | "update" | "append";
|
|
3273
|
-
match?: {
|
|
3274
|
-
label?: string | undefined;
|
|
3275
|
-
url?: string | undefined;
|
|
3276
|
-
} | undefined;
|
|
3277
|
-
};
|
|
3278
|
-
tool: "update_navigation_bar";
|
|
3279
|
-
} | {
|
|
3280
|
-
input: {
|
|
3281
|
-
blockIndex: number;
|
|
3282
|
-
columnIndex: number;
|
|
3283
|
-
content: Record<string, unknown>;
|
|
3284
|
-
parentBlockId: number;
|
|
3285
|
-
blockType?: string | undefined;
|
|
3286
|
-
cmsTarget?: {
|
|
3287
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3288
|
-
entityId?: string | number | undefined;
|
|
3289
|
-
slug?: string | undefined;
|
|
3290
|
-
title?: string | undefined;
|
|
3291
|
-
} | undefined;
|
|
3292
|
-
};
|
|
3293
|
-
tool: "update_section_column_block";
|
|
3294
|
-
} | {
|
|
3295
|
-
input: {
|
|
3296
|
-
images: string[];
|
|
3297
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3298
|
-
entityId?: string | number | undefined;
|
|
3299
|
-
slug?: string | undefined;
|
|
3300
|
-
title?: string | undefined;
|
|
3301
|
-
};
|
|
3302
|
-
tool: "set_content_images";
|
|
3303
|
-
} | {
|
|
3304
|
-
input: {
|
|
3305
|
-
status: "draft" | "published" | "archived";
|
|
3306
|
-
title: string;
|
|
3307
|
-
blocks?: {
|
|
3308
|
-
blockType: string;
|
|
3309
|
-
content: Record<string, unknown>;
|
|
3310
|
-
order?: number | undefined;
|
|
3311
|
-
}[] | undefined;
|
|
3312
|
-
contactEmail?: string | undefined;
|
|
3313
|
-
feature_image_id?: string | null | undefined;
|
|
3314
|
-
languageCode?: string | undefined;
|
|
3315
|
-
meta_description?: string | null | undefined;
|
|
3316
|
-
meta_title?: string | null | undefined;
|
|
3317
|
-
slug?: string | undefined;
|
|
3318
|
-
translationGroupId?: string | undefined;
|
|
3319
|
-
};
|
|
3320
|
-
tool: "create_cms_page";
|
|
3321
|
-
} | {
|
|
3322
|
-
input: {
|
|
3323
|
-
status: "draft" | "published" | "archived";
|
|
3324
|
-
title: string;
|
|
3325
|
-
blocks?: {
|
|
3326
|
-
blockType: string;
|
|
3327
|
-
content: Record<string, unknown>;
|
|
3328
|
-
order?: number | undefined;
|
|
3329
|
-
}[] | undefined;
|
|
3330
|
-
excerpt?: string | null | undefined;
|
|
3331
|
-
feature_image_id?: string | null | undefined;
|
|
3332
|
-
label?: string | null | undefined;
|
|
3333
|
-
languageCode?: string | undefined;
|
|
3334
|
-
meta_description?: string | null | undefined;
|
|
3335
|
-
meta_title?: string | null | undefined;
|
|
3336
|
-
published_at?: string | null | undefined;
|
|
3337
|
-
slug?: string | undefined;
|
|
3338
|
-
subtitle?: string | null | undefined;
|
|
3339
|
-
translationGroupId?: string | undefined;
|
|
3340
|
-
};
|
|
3341
|
-
tool: "create_cms_post";
|
|
3342
|
-
} | {
|
|
3343
|
-
input: {
|
|
3344
|
-
is_taxable: boolean;
|
|
3345
|
-
payment_provider: "stripe" | "freemius";
|
|
3346
|
-
price: number;
|
|
3347
|
-
product_type: "physical" | "digital";
|
|
3348
|
-
status: "draft" | "archived" | "active";
|
|
3349
|
-
stock: number;
|
|
3350
|
-
title: string;
|
|
3351
|
-
trial_period_days: number;
|
|
3352
|
-
trial_requires_payment_method: boolean;
|
|
3353
|
-
blocks?: {
|
|
3354
|
-
blockType: string;
|
|
3355
|
-
content: Record<string, unknown>;
|
|
3356
|
-
order?: number | undefined;
|
|
3357
|
-
}[] | undefined;
|
|
3358
|
-
description_html?: string | undefined;
|
|
3359
|
-
description_json?: unknown;
|
|
3360
|
-
freemius_plan_id?: string | undefined;
|
|
3361
|
-
freemius_product_id?: string | undefined;
|
|
3362
|
-
images?: string[] | undefined;
|
|
3363
|
-
languageCode?: string | undefined;
|
|
3364
|
-
meta_description?: string | null | undefined;
|
|
3365
|
-
meta_title?: string | null | undefined;
|
|
3366
|
-
prices?: Record<string, number> | undefined;
|
|
3367
|
-
sale_price?: number | null | undefined;
|
|
3368
|
-
sale_prices?: Record<string, number | null> | undefined;
|
|
3369
|
-
short_description?: string | null | undefined;
|
|
3370
|
-
sku?: string | undefined;
|
|
3371
|
-
slug?: string | undefined;
|
|
3372
|
-
translationGroupId?: string | undefined;
|
|
3373
|
-
upc?: string | null | undefined;
|
|
3374
|
-
};
|
|
3375
|
-
tool: "create_cms_product";
|
|
3376
|
-
} | {
|
|
3377
|
-
input: {
|
|
3378
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3379
|
-
entityId?: string | number | undefined;
|
|
3380
|
-
slug?: string | undefined;
|
|
3381
|
-
title?: string | undefined;
|
|
3382
|
-
};
|
|
3383
|
-
tool: "delete_cms_item";
|
|
3384
|
-
} | {
|
|
3385
|
-
input: {
|
|
3386
|
-
field: string;
|
|
3387
|
-
value: unknown;
|
|
3388
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3389
|
-
entityId?: string | number | undefined;
|
|
3390
|
-
slug?: string | undefined;
|
|
3391
|
-
title?: string | undefined;
|
|
3392
|
-
currencyCode?: string | undefined;
|
|
3393
|
-
endsAt?: string | null | undefined;
|
|
3394
|
-
startsAt?: string | null | undefined;
|
|
3395
|
-
};
|
|
3396
|
-
tool: "update_cms_item_field";
|
|
3397
|
-
} | {
|
|
3398
|
-
input: {
|
|
3399
|
-
blockId: number;
|
|
3400
|
-
content: Record<string, unknown>;
|
|
3401
|
-
blockType?: string | undefined;
|
|
3402
|
-
cmsTarget?: {
|
|
3403
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3404
|
-
entityId?: string | number | undefined;
|
|
3405
|
-
slug?: string | undefined;
|
|
3406
|
-
title?: string | undefined;
|
|
3407
|
-
} | undefined;
|
|
3408
|
-
};
|
|
3409
|
-
tool: "update_content_block";
|
|
3410
|
-
} | {
|
|
3411
|
-
input: {
|
|
3412
|
-
block: {
|
|
3413
|
-
blockType: string;
|
|
3414
|
-
content: Record<string, unknown>;
|
|
3415
|
-
order?: number | undefined;
|
|
3416
|
-
};
|
|
3417
|
-
position: "start" | "end" | "before" | "after";
|
|
3418
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3419
|
-
entityId?: string | number | undefined;
|
|
3420
|
-
slug?: string | undefined;
|
|
3421
|
-
title?: string | undefined;
|
|
3422
|
-
anchorBlockId?: number | undefined;
|
|
3423
|
-
anchorBlockType?: string | undefined;
|
|
3424
|
-
};
|
|
3425
|
-
tool: "insert_content_block";
|
|
3426
|
-
} | {
|
|
3427
|
-
input: {
|
|
3428
|
-
fields: {
|
|
3429
|
-
description_json?: unknown;
|
|
3430
|
-
excerpt?: string | null | undefined;
|
|
3431
|
-
feature_image_id?: string | null | undefined;
|
|
3432
|
-
label?: string | null | undefined;
|
|
3433
|
-
meta_description?: string | null | undefined;
|
|
3434
|
-
meta_title?: string | null | undefined;
|
|
3435
|
-
published_at?: string | null | undefined;
|
|
3436
|
-
short_description?: string | null | undefined;
|
|
3437
|
-
slug?: string | undefined;
|
|
3438
|
-
status?: "draft" | "published" | "archived" | "active" | undefined;
|
|
3439
|
-
subtitle?: string | null | undefined;
|
|
3440
|
-
title?: string | undefined;
|
|
3441
|
-
};
|
|
3442
|
-
cmsTarget?: {
|
|
3443
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3444
|
-
entityId?: string | number | undefined;
|
|
3445
|
-
slug?: string | undefined;
|
|
3446
|
-
title?: string | undefined;
|
|
3447
|
-
} | undefined;
|
|
3448
|
-
};
|
|
3449
|
-
tool: "update_current_cms_fields";
|
|
3450
|
-
} | {
|
|
3451
|
-
input: {
|
|
3452
|
-
languageCode: string;
|
|
3453
|
-
copyright?: Record<string, string> | undefined;
|
|
3454
|
-
links?: {
|
|
3455
|
-
label: string;
|
|
3456
|
-
url: string;
|
|
3457
|
-
target?: "_blank" | "_self" | undefined;
|
|
3458
|
-
children?: {
|
|
3459
|
-
label: string;
|
|
3460
|
-
url: string;
|
|
3461
|
-
target?: "_blank" | "_self" | undefined;
|
|
3462
|
-
}[] | undefined;
|
|
3463
|
-
}[] | undefined;
|
|
3464
|
-
};
|
|
3465
|
-
tool: "update_footer";
|
|
3466
|
-
} | {
|
|
3467
|
-
input: {
|
|
3468
|
-
items: {
|
|
3469
|
-
label: string;
|
|
3470
|
-
url: string;
|
|
3471
|
-
target?: "_blank" | "_self" | undefined;
|
|
3472
|
-
children?: {
|
|
3473
|
-
label: string;
|
|
3474
|
-
url: string;
|
|
3475
|
-
target?: "_blank" | "_self" | undefined;
|
|
3476
|
-
}[] | undefined;
|
|
3477
|
-
}[];
|
|
3478
|
-
languageCode: string;
|
|
3479
|
-
mode: "replace" | "update" | "append";
|
|
3480
|
-
match?: {
|
|
3481
|
-
label?: string | undefined;
|
|
3482
|
-
url?: string | undefined;
|
|
3483
|
-
} | undefined;
|
|
3484
|
-
};
|
|
3485
|
-
tool: "update_navigation_bar";
|
|
3486
|
-
} | {
|
|
3487
|
-
input: {
|
|
3488
|
-
blockIndex: number;
|
|
3489
|
-
columnIndex: number;
|
|
3490
|
-
content: Record<string, unknown>;
|
|
3491
|
-
parentBlockId: number;
|
|
3492
|
-
blockType?: string | undefined;
|
|
3493
|
-
cmsTarget?: {
|
|
3494
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3495
|
-
entityId?: string | number | undefined;
|
|
3496
|
-
slug?: string | undefined;
|
|
3497
|
-
title?: string | undefined;
|
|
3498
|
-
} | undefined;
|
|
3499
|
-
};
|
|
3500
|
-
tool: "update_section_column_block";
|
|
3501
|
-
} | {
|
|
3502
|
-
input: {
|
|
3503
|
-
images: string[];
|
|
3504
|
-
contentType?: "page" | "post" | "product" | undefined;
|
|
3505
|
-
entityId?: string | number | undefined;
|
|
3506
|
-
slug?: string | undefined;
|
|
3507
|
-
title?: string | undefined;
|
|
3508
|
-
};
|
|
3509
|
-
tool: "set_content_images";
|
|
3510
|
-
})[];
|
|
3511
|
-
summary?: string | undefined;
|
|
3512
|
-
}, {
|
|
3513
|
-
confirmationPhrase: string;
|
|
3514
|
-
mutationExecuted: boolean;
|
|
3515
|
-
preview: Record<string, unknown>;
|
|
3516
|
-
requiresConfirmation: boolean;
|
|
3517
|
-
success: boolean;
|
|
3518
|
-
} | {
|
|
3519
|
-
duplicate: boolean;
|
|
3520
|
-
existingItem: any;
|
|
3521
|
-
mutationExecuted: boolean;
|
|
3522
|
-
success: boolean;
|
|
3523
|
-
message: string;
|
|
3524
|
-
} | {
|
|
3525
|
-
message: string;
|
|
3526
|
-
mutationExecuted: boolean;
|
|
3527
|
-
success: boolean;
|
|
3528
|
-
duplicateTranslation?: undefined;
|
|
3529
|
-
existingItem?: undefined;
|
|
3530
|
-
} | {
|
|
3531
|
-
duplicateTranslation: boolean;
|
|
3532
|
-
existingItem: any;
|
|
3533
|
-
message: string;
|
|
3534
|
-
mutationExecuted: boolean;
|
|
3535
|
-
success: boolean;
|
|
3536
|
-
} | {
|
|
3537
|
-
mutationExecuted: boolean;
|
|
3538
|
-
mode: "replace" | "update" | "append";
|
|
3539
|
-
success: boolean;
|
|
3540
|
-
insertedCount: number;
|
|
3541
|
-
languageCode: string;
|
|
3542
|
-
menuKey: MenuKey;
|
|
3543
|
-
skippedCount: number;
|
|
3544
|
-
updatedCount: number;
|
|
3545
|
-
} | {
|
|
3546
|
-
copyrightUpdated: boolean;
|
|
3547
|
-
footerNavigation: {
|
|
3548
|
-
insertedCount: number;
|
|
3549
|
-
languageCode: string;
|
|
3550
|
-
menuKey: "FOOTER";
|
|
3551
|
-
skippedCount: number;
|
|
3552
|
-
updatedCount: number;
|
|
3553
|
-
} | null;
|
|
3554
|
-
mutationExecuted: boolean;
|
|
3555
|
-
success: boolean;
|
|
3556
|
-
} | {
|
|
3557
|
-
contentType: "page" | "post" | "product";
|
|
3558
|
-
entityId: string | number;
|
|
3559
|
-
mutationExecuted: boolean;
|
|
3560
|
-
slug: any;
|
|
3561
|
-
success: boolean;
|
|
3562
|
-
updatedFields: string[];
|
|
3563
|
-
} | {
|
|
3564
|
-
blockId: any;
|
|
3565
|
-
blockType: any;
|
|
3566
|
-
contentUpdated: boolean;
|
|
3567
|
-
mutationExecuted: boolean;
|
|
3568
|
-
success: boolean;
|
|
3569
|
-
} | {
|
|
3570
|
-
blockId: any;
|
|
3571
|
-
blockType: any;
|
|
3572
|
-
contentType: "page" | "post" | "product";
|
|
3573
|
-
entityId: any;
|
|
3574
|
-
mutationExecuted: boolean;
|
|
3575
|
-
order: any;
|
|
3576
|
-
success: boolean;
|
|
3577
|
-
} | {
|
|
3578
|
-
blockIndex: number;
|
|
3579
|
-
columnIndex: number;
|
|
3580
|
-
mutationExecuted: boolean;
|
|
3581
|
-
nestedBlockType: "text" | "section" | "heading" | "image" | "button" | "posts_grid" | "video_embed" | "form" | "testimonial" | "product_grid" | "featured_product" | "cart" | "checkout" | "product_details";
|
|
3582
|
-
parentBlockId: any;
|
|
3583
|
-
parentBlockType: any;
|
|
3584
|
-
success: boolean;
|
|
3585
|
-
} | {
|
|
3586
|
-
blockCount: number;
|
|
3587
|
-
contentType: string;
|
|
3588
|
-
editPath: string;
|
|
3589
|
-
entityId: any;
|
|
3590
|
-
mutationExecuted: boolean;
|
|
3591
|
-
slug: string;
|
|
3592
|
-
success: boolean;
|
|
3593
|
-
title: string;
|
|
3594
|
-
translationGroupId: any;
|
|
3595
|
-
} | {
|
|
3596
|
-
message: string;
|
|
3597
|
-
mutationExecuted: boolean;
|
|
3598
|
-
success: boolean;
|
|
3599
|
-
unsupported: boolean;
|
|
3600
|
-
contentType?: undefined;
|
|
3601
|
-
entityId?: undefined;
|
|
3602
|
-
field?: undefined;
|
|
3603
|
-
slug?: undefined;
|
|
3604
|
-
updatedFields?: undefined;
|
|
3605
|
-
} | {
|
|
3606
|
-
contentType: string;
|
|
3607
|
-
entityId: any;
|
|
3608
|
-
field: string;
|
|
3609
|
-
mutationExecuted: boolean;
|
|
3610
|
-
slug: any;
|
|
3611
|
-
success: boolean;
|
|
3612
|
-
updatedFields: string[];
|
|
3613
|
-
message?: undefined;
|
|
3614
|
-
unsupported?: undefined;
|
|
3615
|
-
} | {
|
|
3616
|
-
affectedCount: number;
|
|
3617
|
-
collectionPath: string;
|
|
3618
|
-
contentType: "page" | "post" | "product";
|
|
3619
|
-
mutationExecuted: boolean;
|
|
3620
|
-
redirectPath: string;
|
|
3621
|
-
success: boolean;
|
|
3622
|
-
} | {
|
|
3623
|
-
contentType: string;
|
|
3624
|
-
entityId: string | number;
|
|
3625
|
-
imageCount: number;
|
|
3626
|
-
mutationExecuted: boolean;
|
|
3627
|
-
slug: any;
|
|
3628
|
-
success: boolean;
|
|
3629
|
-
extraImagesIgnored?: undefined;
|
|
3630
|
-
} | {
|
|
3631
|
-
contentType: "page" | "post" | "product";
|
|
3632
|
-
entityId: string | number;
|
|
3633
|
-
extraImagesIgnored: number;
|
|
3634
|
-
imageCount: number;
|
|
3635
|
-
mutationExecuted: boolean;
|
|
3636
|
-
slug: any;
|
|
3637
|
-
success: boolean;
|
|
3638
|
-
} | {
|
|
3639
|
-
redirectPath?: string | undefined;
|
|
3640
|
-
editPath?: string | undefined;
|
|
3641
|
-
actionCount: number;
|
|
3642
|
-
failedActionIndex: number;
|
|
3643
|
-
failedTool: "create_cms_page" | "create_cms_post" | "create_cms_product" | "delete_cms_item" | "update_cms_item_field" | "update_content_block" | "insert_content_block" | "update_current_cms_fields" | "update_footer" | "update_navigation_bar" | "update_section_column_block" | "set_content_images";
|
|
3644
|
-
message: string;
|
|
3645
|
-
mutationExecuted: boolean;
|
|
3646
|
-
results: {
|
|
3647
|
-
output: unknown;
|
|
3648
|
-
tool: string;
|
|
3649
|
-
}[];
|
|
3650
|
-
success: boolean;
|
|
3651
|
-
summary?: undefined;
|
|
3652
|
-
} | {
|
|
3653
|
-
actionCount: number;
|
|
3654
|
-
editPath: string | undefined;
|
|
3655
|
-
mutationExecuted: boolean;
|
|
3656
|
-
redirectPath: string | undefined;
|
|
3657
|
-
results: {
|
|
3658
|
-
output: unknown;
|
|
3659
|
-
tool: string;
|
|
3660
|
-
}[];
|
|
3661
|
-
success: boolean;
|
|
3662
|
-
summary: string | null;
|
|
3663
|
-
}>;
|
|
3664
|
-
get_site_overview: import('ai').Tool<{
|
|
3665
|
-
includeMedia: boolean;
|
|
3666
|
-
includeNavigation: boolean;
|
|
3667
|
-
limit: number;
|
|
3668
|
-
}, {
|
|
3669
|
-
brief: {
|
|
3670
|
-
business_name: string;
|
|
3671
|
-
keep_existing_content: boolean;
|
|
3672
|
-
languages: string[];
|
|
3673
|
-
pages: {
|
|
3674
|
-
slug: string;
|
|
3675
|
-
title: string;
|
|
3676
|
-
purpose?: string | undefined;
|
|
3677
|
-
sections?: string[] | undefined;
|
|
3678
|
-
}[];
|
|
3679
|
-
primary_language: string;
|
|
3680
|
-
site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
|
|
3681
|
-
status: "draft" | "confirmed" | "built";
|
|
3682
|
-
audience?: string | undefined;
|
|
3683
|
-
brand?: {
|
|
3684
|
-
accent_color?: string | undefined;
|
|
3685
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
3686
|
-
font_style?: string | undefined;
|
|
3687
|
-
logo_notes?: string | undefined;
|
|
3688
|
-
primary_color?: string | undefined;
|
|
3689
|
-
secondary_color?: string | undefined;
|
|
3690
|
-
style_keywords?: string[] | undefined;
|
|
3691
|
-
tone?: string | undefined;
|
|
3692
|
-
} | undefined;
|
|
3693
|
-
contact?: {
|
|
3694
|
-
address?: string | undefined;
|
|
3695
|
-
email?: string | undefined;
|
|
3696
|
-
hours?: string | undefined;
|
|
3697
|
-
phone?: string | undefined;
|
|
3698
|
-
social?: {
|
|
3699
|
-
platform: string;
|
|
3700
|
-
url: string;
|
|
3701
|
-
}[] | undefined;
|
|
3702
|
-
} | undefined;
|
|
3703
|
-
description?: string | undefined;
|
|
3704
|
-
ecommerce?: {
|
|
3705
|
-
enabled: boolean;
|
|
3706
|
-
products_summary?: string | undefined;
|
|
3707
|
-
} | undefined;
|
|
3708
|
-
goals?: string[] | undefined;
|
|
3709
|
-
notes?: string | undefined;
|
|
3710
|
-
tagline?: string | undefined;
|
|
3711
|
-
updated_at?: string | undefined;
|
|
3712
|
-
} | null;
|
|
3713
|
-
buildSession: {
|
|
3714
|
-
expiresAt: string;
|
|
3715
|
-
id: string;
|
|
3716
|
-
summary: string;
|
|
3717
|
-
} | null;
|
|
3718
|
-
counts: {
|
|
3719
|
-
customBlocks: number;
|
|
3720
|
-
drafts: number;
|
|
3721
|
-
media: number;
|
|
3722
|
-
pages: any;
|
|
3723
|
-
posts: any;
|
|
3724
|
-
products: number;
|
|
3725
|
-
};
|
|
3726
|
-
customBlocks: {
|
|
3727
|
-
fieldCount: any;
|
|
3728
|
-
fields: any;
|
|
3729
|
-
name: string;
|
|
3730
|
-
slug: string;
|
|
3731
|
-
}[];
|
|
3732
|
-
drafts: {
|
|
3733
|
-
parentId: number;
|
|
3734
|
-
parentType: string;
|
|
3735
|
-
}[];
|
|
3736
|
-
homePage: {
|
|
3737
|
-
blockCount: number;
|
|
3738
|
-
id: number;
|
|
3739
|
-
isHome: boolean;
|
|
3740
|
-
isSeeded: boolean;
|
|
3741
|
-
languageCode: string;
|
|
3742
|
-
slug: string;
|
|
3743
|
-
status: string;
|
|
3744
|
-
title: string;
|
|
3745
|
-
translationGroupId: string | null;
|
|
3746
|
-
} | null;
|
|
3747
|
-
identity: {
|
|
3748
|
-
activeLogo: {
|
|
3749
|
-
id: string;
|
|
3750
|
-
isSeeded: boolean;
|
|
3751
|
-
name: string;
|
|
3752
|
-
objectKey: string | null;
|
|
3753
|
-
} | null;
|
|
3754
|
-
footerCopyright: {} | null;
|
|
3755
|
-
footerShowAttribution: boolean;
|
|
3756
|
-
siteDescription: unknown;
|
|
3757
|
-
siteKeywords: unknown;
|
|
3758
|
-
siteTitle: string;
|
|
3759
|
-
socialImage: {
|
|
3760
|
-
mediaId: string | null;
|
|
3761
|
-
objectKey: string | null;
|
|
3762
|
-
url: string | null;
|
|
3763
|
-
} | null;
|
|
3764
|
-
};
|
|
3765
|
-
languages: {
|
|
3766
|
-
code: string;
|
|
3767
|
-
id: number;
|
|
3768
|
-
isActive: boolean;
|
|
3769
|
-
isDefault: boolean;
|
|
3770
|
-
name: string;
|
|
3771
|
-
}[];
|
|
3772
|
-
media: {
|
|
3773
|
-
count: number;
|
|
3774
|
-
sample: {
|
|
3775
|
-
altText: any;
|
|
3776
|
-
fileName: any;
|
|
3777
|
-
id: string;
|
|
3778
|
-
isSeeded: boolean;
|
|
3779
|
-
}[] | undefined;
|
|
3780
|
-
seededCount: number;
|
|
3781
|
-
};
|
|
3782
|
-
navigation: Record<"footer" | "header", Record<string, import('./ai-global-agent-site-tools').NavigationNode[]>> | null;
|
|
3783
|
-
nextSteps: string[];
|
|
3784
|
-
pages: {
|
|
3785
|
-
blockCount: number;
|
|
3786
|
-
id: number;
|
|
3787
|
-
isHome: boolean;
|
|
3788
|
-
isSeeded: boolean;
|
|
3789
|
-
languageCode: string;
|
|
3790
|
-
slug: string;
|
|
3791
|
-
status: string;
|
|
3792
|
-
title: string;
|
|
3793
|
-
translationGroupId: string | null;
|
|
3794
|
-
}[];
|
|
3795
|
-
posts: {
|
|
3796
|
-
blockCount: number;
|
|
3797
|
-
id: number;
|
|
3798
|
-
isSeeded: boolean;
|
|
3799
|
-
languageCode: string;
|
|
3800
|
-
publishedAt: any;
|
|
3801
|
-
slug: string;
|
|
3802
|
-
status: string;
|
|
3803
|
-
title: string;
|
|
3804
|
-
translationGroupId: string | null;
|
|
3805
|
-
}[];
|
|
3806
|
-
products: {
|
|
3807
|
-
id: string;
|
|
3808
|
-
languageCode: string;
|
|
3809
|
-
slug: string;
|
|
3810
|
-
status: string;
|
|
3811
|
-
title: string;
|
|
3812
|
-
}[];
|
|
3813
|
-
seeded: {
|
|
3814
|
-
anyPresent: boolean;
|
|
3815
|
-
copyright: boolean;
|
|
3816
|
-
logo: boolean;
|
|
3817
|
-
media: number;
|
|
3818
|
-
pages: number;
|
|
3819
|
-
posts: number;
|
|
3820
|
-
siteTitle: boolean;
|
|
3821
|
-
};
|
|
3822
|
-
success: boolean;
|
|
3823
|
-
themes: {
|
|
3824
|
-
colorScheme: string;
|
|
3825
|
-
isActive: boolean;
|
|
3826
|
-
isDefault: boolean;
|
|
3827
|
-
name: string;
|
|
3828
|
-
slug: string;
|
|
3829
|
-
}[];
|
|
3830
|
-
}>;
|
|
3831
|
-
update_site_identity: import('ai').Tool<{
|
|
3832
|
-
active_logo_id?: string | null | undefined;
|
|
3833
|
-
footer_copyright?: Record<string, string> | undefined;
|
|
3834
|
-
footer_show_attribution?: boolean | undefined;
|
|
3835
|
-
site_description?: string | undefined;
|
|
3836
|
-
site_keywords?: string | undefined;
|
|
3837
|
-
site_title?: string | undefined;
|
|
3838
|
-
social_image?: string | null | undefined;
|
|
3839
|
-
}, {
|
|
3840
|
-
confirmationPhrase: string;
|
|
3841
|
-
mutationExecuted: boolean;
|
|
3842
|
-
preview: Record<string, unknown>;
|
|
3843
|
-
requiresConfirmation: boolean;
|
|
3844
|
-
success: boolean;
|
|
3845
|
-
} | {
|
|
3846
|
-
mutationExecuted: boolean;
|
|
3847
|
-
success: boolean;
|
|
3848
|
-
updatedKeys: string[];
|
|
3849
|
-
}>;
|
|
3850
|
-
save_site_brief: import('ai').Tool<{
|
|
3851
|
-
brief: {
|
|
3852
|
-
audience?: string | undefined;
|
|
3853
|
-
brand?: {
|
|
3854
|
-
accent_color?: string | undefined;
|
|
3855
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
3856
|
-
font_style?: string | undefined;
|
|
3857
|
-
logo_notes?: string | undefined;
|
|
3858
|
-
primary_color?: string | undefined;
|
|
3859
|
-
secondary_color?: string | undefined;
|
|
3860
|
-
style_keywords?: string[] | undefined;
|
|
3861
|
-
tone?: string | undefined;
|
|
3862
|
-
} | undefined;
|
|
3863
|
-
business_name?: string | undefined;
|
|
3864
|
-
contact?: {
|
|
3865
|
-
address?: string | undefined;
|
|
3866
|
-
email?: string | undefined;
|
|
3867
|
-
hours?: string | undefined;
|
|
3868
|
-
phone?: string | undefined;
|
|
3869
|
-
social?: {
|
|
3870
|
-
platform: string;
|
|
3871
|
-
url: string;
|
|
3872
|
-
}[] | undefined;
|
|
3873
|
-
} | undefined;
|
|
3874
|
-
description?: string | undefined;
|
|
3875
|
-
ecommerce?: {
|
|
3876
|
-
enabled: boolean;
|
|
3877
|
-
products_summary?: string | undefined;
|
|
3878
|
-
} | undefined;
|
|
3879
|
-
goals?: string[] | undefined;
|
|
3880
|
-
keep_existing_content?: boolean | undefined;
|
|
3881
|
-
languages?: string[] | undefined;
|
|
3882
|
-
notes?: string | undefined;
|
|
3883
|
-
pages?: {
|
|
3884
|
-
slug: string;
|
|
3885
|
-
title: string;
|
|
3886
|
-
purpose?: string | undefined;
|
|
3887
|
-
sections?: string[] | undefined;
|
|
3888
|
-
}[] | undefined;
|
|
3889
|
-
primary_language?: string | undefined;
|
|
3890
|
-
site_type?: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other" | undefined;
|
|
3891
|
-
status?: "draft" | "confirmed" | "built" | undefined;
|
|
3892
|
-
tagline?: string | undefined;
|
|
3893
|
-
updated_at?: string | undefined;
|
|
3894
|
-
};
|
|
3895
|
-
mode: "replace" | "merge";
|
|
3896
|
-
}, {
|
|
3897
|
-
brief: {
|
|
3898
|
-
business_name: string;
|
|
3899
|
-
keep_existing_content: boolean;
|
|
3900
|
-
languages: string[];
|
|
3901
|
-
pages: {
|
|
3902
|
-
slug: string;
|
|
3903
|
-
title: string;
|
|
3904
|
-
purpose?: string | undefined;
|
|
3905
|
-
sections?: string[] | undefined;
|
|
3906
|
-
}[];
|
|
3907
|
-
primary_language: string;
|
|
3908
|
-
site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
|
|
3909
|
-
status: "draft" | "confirmed" | "built";
|
|
3910
|
-
audience?: string | undefined;
|
|
3911
|
-
brand?: {
|
|
3912
|
-
accent_color?: string | undefined;
|
|
3913
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
3914
|
-
font_style?: string | undefined;
|
|
3915
|
-
logo_notes?: string | undefined;
|
|
3916
|
-
primary_color?: string | undefined;
|
|
3917
|
-
secondary_color?: string | undefined;
|
|
3918
|
-
style_keywords?: string[] | undefined;
|
|
3919
|
-
tone?: string | undefined;
|
|
3920
|
-
} | undefined;
|
|
3921
|
-
contact?: {
|
|
3922
|
-
address?: string | undefined;
|
|
3923
|
-
email?: string | undefined;
|
|
3924
|
-
hours?: string | undefined;
|
|
3925
|
-
phone?: string | undefined;
|
|
3926
|
-
social?: {
|
|
3927
|
-
platform: string;
|
|
3928
|
-
url: string;
|
|
3929
|
-
}[] | undefined;
|
|
3930
|
-
} | undefined;
|
|
3931
|
-
description?: string | undefined;
|
|
3932
|
-
ecommerce?: {
|
|
3933
|
-
enabled: boolean;
|
|
3934
|
-
products_summary?: string | undefined;
|
|
3935
|
-
} | undefined;
|
|
3936
|
-
goals?: string[] | undefined;
|
|
3937
|
-
notes?: string | undefined;
|
|
3938
|
-
tagline?: string | undefined;
|
|
3939
|
-
updated_at?: string | undefined;
|
|
3940
|
-
};
|
|
3941
|
-
created: boolean;
|
|
3942
|
-
mutationExecuted: boolean;
|
|
3943
|
-
success: boolean;
|
|
3944
|
-
}>;
|
|
3945
|
-
reset_site_content: import('ai').Tool<{
|
|
3946
|
-
clearKeptPageBlocks: boolean;
|
|
3947
|
-
dryRun: boolean;
|
|
3948
|
-
keepPageSlugs: string[];
|
|
3949
|
-
onlySeeded: boolean;
|
|
3950
|
-
scope: {
|
|
3951
|
-
customBlocks?: boolean | undefined;
|
|
3952
|
-
identity?: boolean | undefined;
|
|
3953
|
-
navigation?: boolean | undefined;
|
|
3954
|
-
pages?: boolean | undefined;
|
|
3955
|
-
posts?: boolean | undefined;
|
|
3956
|
-
products?: boolean | undefined;
|
|
3957
|
-
seededMedia?: boolean | undefined;
|
|
3958
|
-
};
|
|
3959
|
-
keepLanguages?: string[] | undefined;
|
|
3960
|
-
}, {
|
|
3961
|
-
confirmationPhrase: string;
|
|
3962
|
-
mutationExecuted: boolean;
|
|
3963
|
-
preview: Record<string, unknown>;
|
|
3964
|
-
requiresConfirmation: boolean;
|
|
3965
|
-
success: boolean;
|
|
3966
|
-
} | {
|
|
3967
|
-
dryRun: boolean;
|
|
3968
|
-
mutationExecuted: boolean;
|
|
3969
|
-
nextSteps: string[];
|
|
3970
|
-
success: boolean;
|
|
3971
|
-
summary: {
|
|
3972
|
-
blocksClearedOnPages: number;
|
|
3973
|
-
customBlocks: number;
|
|
3974
|
-
drafts: number;
|
|
3975
|
-
identityCleared: boolean;
|
|
3976
|
-
languagesDeactivated: string[];
|
|
3977
|
-
logos: number;
|
|
3978
|
-
media: number;
|
|
3979
|
-
navigationItems: number;
|
|
3980
|
-
pages: number;
|
|
3981
|
-
pagesKept: string[];
|
|
3982
|
-
posts: number;
|
|
3983
|
-
products: number;
|
|
3984
|
-
};
|
|
3985
|
-
wouldDelete: {
|
|
3986
|
-
pages: {
|
|
3987
|
-
id: number;
|
|
3988
|
-
slug: string;
|
|
3989
|
-
languageCode: string;
|
|
3990
|
-
}[];
|
|
3991
|
-
posts: {
|
|
3992
|
-
id: number;
|
|
3993
|
-
slug: string;
|
|
3994
|
-
languageCode: string;
|
|
3995
|
-
}[];
|
|
3996
|
-
};
|
|
3997
|
-
deleted?: undefined;
|
|
3998
|
-
} | {
|
|
3999
|
-
deleted: {
|
|
4000
|
-
blocksClearedOnPages: number;
|
|
4001
|
-
customBlocks: number;
|
|
4002
|
-
drafts: number;
|
|
4003
|
-
identityCleared: boolean;
|
|
4004
|
-
languagesDeactivated: string[];
|
|
4005
|
-
logos: number;
|
|
4006
|
-
media: number;
|
|
4007
|
-
navigationItems: number;
|
|
4008
|
-
pages: number;
|
|
4009
|
-
pagesKept: string[];
|
|
4010
|
-
posts: number;
|
|
4011
|
-
products: number;
|
|
4012
|
-
};
|
|
4013
|
-
mutationExecuted: boolean;
|
|
4014
|
-
nextSteps: string[];
|
|
4015
|
-
success: boolean;
|
|
4016
|
-
dryRun?: undefined;
|
|
4017
|
-
summary?: undefined;
|
|
4018
|
-
wouldDelete?: undefined;
|
|
4019
|
-
}>;
|
|
4020
|
-
start_site_build: import('ai').Tool<{
|
|
4021
|
-
durationMinutes: number;
|
|
4022
|
-
summary: string;
|
|
4023
|
-
brief?: {
|
|
4024
|
-
audience?: string | undefined;
|
|
4025
|
-
brand?: {
|
|
4026
|
-
accent_color?: string | undefined;
|
|
4027
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
4028
|
-
font_style?: string | undefined;
|
|
4029
|
-
logo_notes?: string | undefined;
|
|
4030
|
-
primary_color?: string | undefined;
|
|
4031
|
-
secondary_color?: string | undefined;
|
|
4032
|
-
style_keywords?: string[] | undefined;
|
|
4033
|
-
tone?: string | undefined;
|
|
4034
|
-
} | undefined;
|
|
4035
|
-
business_name?: string | undefined;
|
|
4036
|
-
contact?: {
|
|
4037
|
-
address?: string | undefined;
|
|
4038
|
-
email?: string | undefined;
|
|
4039
|
-
hours?: string | undefined;
|
|
4040
|
-
phone?: string | undefined;
|
|
4041
|
-
social?: {
|
|
4042
|
-
platform: string;
|
|
4043
|
-
url: string;
|
|
4044
|
-
}[] | undefined;
|
|
4045
|
-
} | undefined;
|
|
4046
|
-
description?: string | undefined;
|
|
4047
|
-
ecommerce?: {
|
|
4048
|
-
enabled: boolean;
|
|
4049
|
-
products_summary?: string | undefined;
|
|
4050
|
-
} | undefined;
|
|
4051
|
-
goals?: string[] | undefined;
|
|
4052
|
-
keep_existing_content?: boolean | undefined;
|
|
4053
|
-
languages?: string[] | undefined;
|
|
4054
|
-
notes?: string | undefined;
|
|
4055
|
-
pages?: {
|
|
4056
|
-
slug: string;
|
|
4057
|
-
title: string;
|
|
4058
|
-
purpose?: string | undefined;
|
|
4059
|
-
sections?: string[] | undefined;
|
|
4060
|
-
}[] | undefined;
|
|
4061
|
-
primary_language?: string | undefined;
|
|
4062
|
-
site_type?: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other" | undefined;
|
|
4063
|
-
status?: "draft" | "confirmed" | "built" | undefined;
|
|
4064
|
-
tagline?: string | undefined;
|
|
4065
|
-
updated_at?: string | undefined;
|
|
4066
|
-
} | undefined;
|
|
4067
|
-
reset?: {
|
|
4068
|
-
clearKeptPageBlocks: boolean;
|
|
4069
|
-
dryRun: boolean;
|
|
4070
|
-
keepPageSlugs: string[];
|
|
4071
|
-
onlySeeded: boolean;
|
|
4072
|
-
scope: {
|
|
4073
|
-
customBlocks?: boolean | undefined;
|
|
4074
|
-
identity?: boolean | undefined;
|
|
4075
|
-
navigation?: boolean | undefined;
|
|
4076
|
-
pages?: boolean | undefined;
|
|
4077
|
-
posts?: boolean | undefined;
|
|
4078
|
-
products?: boolean | undefined;
|
|
4079
|
-
seededMedia?: boolean | undefined;
|
|
4080
|
-
};
|
|
4081
|
-
keepLanguages?: string[] | undefined;
|
|
4082
|
-
} | undefined;
|
|
4083
|
-
}, {
|
|
4084
|
-
confirmationPhrase: string;
|
|
4085
|
-
mutationExecuted: boolean;
|
|
4086
|
-
preview: Record<string, unknown>;
|
|
4087
|
-
requiresConfirmation: boolean;
|
|
4088
|
-
success: boolean;
|
|
4089
|
-
} | {
|
|
4090
|
-
brief: {
|
|
4091
|
-
business_name: string;
|
|
4092
|
-
keep_existing_content: boolean;
|
|
4093
|
-
languages: string[];
|
|
4094
|
-
pages: {
|
|
4095
|
-
slug: string;
|
|
4096
|
-
title: string;
|
|
4097
|
-
purpose?: string | undefined;
|
|
4098
|
-
sections?: string[] | undefined;
|
|
4099
|
-
}[];
|
|
4100
|
-
primary_language: string;
|
|
4101
|
-
site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
|
|
4102
|
-
status: "draft" | "confirmed" | "built";
|
|
4103
|
-
audience?: string | undefined;
|
|
4104
|
-
brand?: {
|
|
4105
|
-
accent_color?: string | undefined;
|
|
4106
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
4107
|
-
font_style?: string | undefined;
|
|
4108
|
-
logo_notes?: string | undefined;
|
|
4109
|
-
primary_color?: string | undefined;
|
|
4110
|
-
secondary_color?: string | undefined;
|
|
4111
|
-
style_keywords?: string[] | undefined;
|
|
4112
|
-
tone?: string | undefined;
|
|
4113
|
-
} | undefined;
|
|
4114
|
-
contact?: {
|
|
4115
|
-
address?: string | undefined;
|
|
4116
|
-
email?: string | undefined;
|
|
4117
|
-
hours?: string | undefined;
|
|
4118
|
-
phone?: string | undefined;
|
|
4119
|
-
social?: {
|
|
4120
|
-
platform: string;
|
|
4121
|
-
url: string;
|
|
4122
|
-
}[] | undefined;
|
|
4123
|
-
} | undefined;
|
|
4124
|
-
description?: string | undefined;
|
|
4125
|
-
ecommerce?: {
|
|
4126
|
-
enabled: boolean;
|
|
4127
|
-
products_summary?: string | undefined;
|
|
4128
|
-
} | undefined;
|
|
4129
|
-
goals?: string[] | undefined;
|
|
4130
|
-
notes?: string | undefined;
|
|
4131
|
-
tagline?: string | undefined;
|
|
4132
|
-
updated_at?: string | undefined;
|
|
4133
|
-
} | null;
|
|
4134
|
-
buildSession: {
|
|
4135
|
-
expiresAt: string;
|
|
4136
|
-
id: string;
|
|
4137
|
-
};
|
|
4138
|
-
continuePrompt: string;
|
|
4139
|
-
mutationExecuted: boolean;
|
|
4140
|
-
resetResult: Record<string, unknown> | null;
|
|
4141
|
-
success: boolean;
|
|
4142
|
-
}>;
|
|
4143
|
-
finish_site_build: import('ai').Tool<{
|
|
4144
|
-
outcome: "built" | "stopped";
|
|
4145
|
-
summary?: string | undefined;
|
|
4146
|
-
}, {
|
|
4147
|
-
brief: {
|
|
4148
|
-
business_name: string;
|
|
4149
|
-
keep_existing_content: boolean;
|
|
4150
|
-
languages: string[];
|
|
4151
|
-
pages: {
|
|
4152
|
-
slug: string;
|
|
4153
|
-
title: string;
|
|
4154
|
-
purpose?: string | undefined;
|
|
4155
|
-
sections?: string[] | undefined;
|
|
4156
|
-
}[];
|
|
4157
|
-
primary_language: string;
|
|
4158
|
-
site_type: "landing-page" | "multi-page" | "blog" | "store" | "portfolio" | "other";
|
|
4159
|
-
status: "draft" | "confirmed" | "built";
|
|
4160
|
-
audience?: string | undefined;
|
|
4161
|
-
brand?: {
|
|
4162
|
-
accent_color?: string | undefined;
|
|
4163
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
4164
|
-
font_style?: string | undefined;
|
|
4165
|
-
logo_notes?: string | undefined;
|
|
4166
|
-
primary_color?: string | undefined;
|
|
4167
|
-
secondary_color?: string | undefined;
|
|
4168
|
-
style_keywords?: string[] | undefined;
|
|
4169
|
-
tone?: string | undefined;
|
|
4170
|
-
} | undefined;
|
|
4171
|
-
contact?: {
|
|
4172
|
-
address?: string | undefined;
|
|
4173
|
-
email?: string | undefined;
|
|
4174
|
-
hours?: string | undefined;
|
|
4175
|
-
phone?: string | undefined;
|
|
4176
|
-
social?: {
|
|
4177
|
-
platform: string;
|
|
4178
|
-
url: string;
|
|
4179
|
-
}[] | undefined;
|
|
4180
|
-
} | undefined;
|
|
4181
|
-
description?: string | undefined;
|
|
4182
|
-
ecommerce?: {
|
|
4183
|
-
enabled: boolean;
|
|
4184
|
-
products_summary?: string | undefined;
|
|
4185
|
-
} | undefined;
|
|
4186
|
-
goals?: string[] | undefined;
|
|
4187
|
-
notes?: string | undefined;
|
|
4188
|
-
tagline?: string | undefined;
|
|
4189
|
-
updated_at?: string | undefined;
|
|
4190
|
-
} | null;
|
|
4191
|
-
buildSessionEnded: boolean;
|
|
4192
|
-
hadSession: boolean;
|
|
4193
|
-
mutationExecuted: boolean;
|
|
4194
|
-
outcome: "built" | "stopped";
|
|
4195
|
-
success: boolean;
|
|
4196
|
-
}>;
|
|
4197
|
-
list_site_script_revisions: import('ai').Tool<{
|
|
4198
|
-
limit: number;
|
|
4199
|
-
scriptName?: string | undefined;
|
|
4200
|
-
}, {
|
|
4201
|
-
count: any;
|
|
4202
|
-
revisions: any;
|
|
4203
|
-
success: boolean;
|
|
4204
|
-
}>;
|
|
4205
|
-
revert_site_script: import('ai').Tool<{
|
|
4206
|
-
revisionId: string;
|
|
4207
|
-
}, {
|
|
4208
|
-
message: string;
|
|
4209
|
-
mutationExecuted: boolean;
|
|
4210
|
-
success: boolean;
|
|
4211
|
-
name?: undefined;
|
|
4212
|
-
recreated?: undefined;
|
|
4213
|
-
} | {
|
|
4214
|
-
mutationExecuted: boolean;
|
|
4215
|
-
name: string;
|
|
4216
|
-
recreated: boolean;
|
|
4217
|
-
success: boolean;
|
|
4218
|
-
message?: undefined;
|
|
4219
|
-
}>;
|
|
4220
|
-
list_site_scripts: import('ai').Tool<Record<string, never>, {
|
|
4221
|
-
count: any;
|
|
4222
|
-
scripts: any;
|
|
4223
|
-
success: boolean;
|
|
4224
|
-
}>;
|
|
4225
|
-
manage_site_script: import('ai').Tool<{
|
|
4226
|
-
action: "delete" | "upsert";
|
|
4227
|
-
is_active: boolean;
|
|
4228
|
-
load_strategy: "default" | "defer" | "async";
|
|
4229
|
-
name: string;
|
|
4230
|
-
purpose: string;
|
|
4231
|
-
placement: "body_end" | "head" | "body_start";
|
|
4232
|
-
sort_order: number;
|
|
4233
|
-
code?: string | undefined;
|
|
4234
|
-
description?: string | null | undefined;
|
|
4235
|
-
src?: string | null | undefined;
|
|
4236
|
-
}, {
|
|
4237
|
-
message: string;
|
|
4238
|
-
mutationExecuted: boolean;
|
|
4239
|
-
success: boolean;
|
|
4240
|
-
action?: undefined;
|
|
4241
|
-
name?: undefined;
|
|
4242
|
-
created?: undefined;
|
|
4243
|
-
isActive?: undefined;
|
|
4244
|
-
placement?: undefined;
|
|
4245
|
-
safetyReview?: undefined;
|
|
4246
|
-
statedPurpose?: undefined;
|
|
4247
|
-
} | {
|
|
4248
|
-
action: string;
|
|
4249
|
-
mutationExecuted: boolean;
|
|
4250
|
-
name: string;
|
|
4251
|
-
success: boolean;
|
|
4252
|
-
message?: undefined;
|
|
4253
|
-
created?: undefined;
|
|
4254
|
-
isActive?: undefined;
|
|
4255
|
-
placement?: undefined;
|
|
4256
|
-
safetyReview?: undefined;
|
|
4257
|
-
statedPurpose?: undefined;
|
|
4258
|
-
} | {
|
|
4259
|
-
action: string;
|
|
4260
|
-
created: boolean;
|
|
4261
|
-
isActive: boolean;
|
|
4262
|
-
mutationExecuted: boolean;
|
|
4263
|
-
name: string;
|
|
4264
|
-
placement: "body_end" | "head" | "body_start";
|
|
4265
|
-
safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
|
|
4266
|
-
statedPurpose: string;
|
|
4267
|
-
success: boolean;
|
|
4268
|
-
message?: undefined;
|
|
4269
|
-
}>;
|
|
4270
|
-
list_site_themes: import('ai').Tool<Record<string, never>, {
|
|
4271
|
-
globalCss: string;
|
|
4272
|
-
success: boolean;
|
|
4273
|
-
themes: any;
|
|
4274
|
-
}>;
|
|
4275
|
-
manage_site_theme: import('ai').Tool<{
|
|
4276
|
-
slug: string;
|
|
4277
|
-
color_scheme?: "light" | "dark" | undefined;
|
|
4278
|
-
description?: string | null | undefined;
|
|
4279
|
-
extra_css?: string | null | undefined;
|
|
4280
|
-
icon?: string | undefined;
|
|
4281
|
-
is_default?: boolean | undefined;
|
|
4282
|
-
name?: string | undefined;
|
|
4283
|
-
tokens?: Record<string, string> | undefined;
|
|
4284
|
-
}, {
|
|
4285
|
-
created: boolean;
|
|
4286
|
-
isDefault: boolean;
|
|
4287
|
-
mutationExecuted: boolean;
|
|
4288
|
-
slug: string;
|
|
4289
|
-
success: boolean;
|
|
4290
|
-
themeId: string;
|
|
4291
|
-
tokenCount: number;
|
|
4292
|
-
}>;
|
|
4293
|
-
update_global_css: import('ai').Tool<{
|
|
4294
|
-
css: string;
|
|
4295
|
-
mode: "replace" | "append";
|
|
4296
|
-
}, {
|
|
4297
|
-
characters: number;
|
|
4298
|
-
mode: "replace" | "append";
|
|
4299
|
-
mutationExecuted: boolean;
|
|
4300
|
-
success: boolean;
|
|
4301
|
-
}>;
|
|
4302
|
-
list_media: import('ai').Tool<{
|
|
4303
|
-
limit: number;
|
|
4304
|
-
query?: string | undefined;
|
|
4305
|
-
}, {
|
|
4306
|
-
count: any;
|
|
4307
|
-
media: any;
|
|
4308
|
-
success: boolean;
|
|
4309
|
-
}>;
|
|
4310
|
-
list_product_categories: import('ai').Tool<Record<string, never>, {
|
|
4311
|
-
categories: any;
|
|
4312
|
-
count: any;
|
|
4313
|
-
success: boolean;
|
|
4314
|
-
}>;
|
|
4315
|
-
manage_language: import('ai').Tool<{
|
|
4316
|
-
code: string;
|
|
4317
|
-
is_active: boolean;
|
|
4318
|
-
is_default: boolean;
|
|
4319
|
-
name: string;
|
|
4320
|
-
}, {
|
|
4321
|
-
code: string;
|
|
4322
|
-
created: boolean;
|
|
4323
|
-
languageId: number;
|
|
4324
|
-
mutationExecuted: boolean;
|
|
4325
|
-
success: boolean;
|
|
4326
|
-
}>;
|
|
4327
|
-
manage_product_category: import('ai').Tool<{
|
|
4328
|
-
action: "delete" | "upsert";
|
|
4329
|
-
name: string;
|
|
4330
|
-
description?: string | null | undefined;
|
|
4331
|
-
name_translations?: Record<string, string> | undefined;
|
|
4332
|
-
productSlugs?: string[] | undefined;
|
|
4333
|
-
slug?: string | undefined;
|
|
4334
|
-
}, {
|
|
4335
|
-
message: string;
|
|
4336
|
-
mutationExecuted: boolean;
|
|
4337
|
-
success: boolean;
|
|
4338
|
-
action?: undefined;
|
|
4339
|
-
slug?: undefined;
|
|
4340
|
-
categoryId?: undefined;
|
|
4341
|
-
created?: undefined;
|
|
4342
|
-
linkedProducts?: undefined;
|
|
4343
|
-
} | {
|
|
4344
|
-
action: string;
|
|
4345
|
-
mutationExecuted: boolean;
|
|
4346
|
-
slug: string;
|
|
4347
|
-
success: boolean;
|
|
4348
|
-
message?: undefined;
|
|
4349
|
-
categoryId?: undefined;
|
|
4350
|
-
created?: undefined;
|
|
4351
|
-
linkedProducts?: undefined;
|
|
4352
|
-
} | {
|
|
4353
|
-
categoryId: string;
|
|
4354
|
-
created: boolean;
|
|
4355
|
-
linkedProducts: number;
|
|
4356
|
-
mutationExecuted: boolean;
|
|
4357
|
-
slug: string;
|
|
4358
|
-
success: boolean;
|
|
4359
|
-
message?: undefined;
|
|
4360
|
-
action?: undefined;
|
|
4361
|
-
}>;
|
|
4362
|
-
upload_media: import('ai').Tool<{
|
|
4363
|
-
url: string;
|
|
4364
|
-
altText?: string | undefined;
|
|
4365
|
-
}, {
|
|
4366
|
-
mediaId: string;
|
|
4367
|
-
mutationExecuted: boolean;
|
|
4368
|
-
success: boolean;
|
|
4369
|
-
}>;
|
|
4370
|
-
create_custom_block: import('ai').Tool<{
|
|
4371
|
-
prompt: string;
|
|
4372
|
-
context?: string | undefined;
|
|
4373
|
-
}, {
|
|
4374
|
-
definition: {
|
|
4375
|
-
fieldCount: any;
|
|
4376
|
-
fields: any;
|
|
4377
|
-
id: any;
|
|
4378
|
-
name: any;
|
|
4379
|
-
slug: any;
|
|
4380
|
-
};
|
|
4381
|
-
editUrl: string;
|
|
4382
|
-
mutationExecuted: boolean;
|
|
4383
|
-
success: boolean;
|
|
4384
|
-
message?: undefined;
|
|
4385
|
-
} | {
|
|
4386
|
-
mutationExecuted: boolean;
|
|
4387
|
-
message: string;
|
|
4388
|
-
success: boolean;
|
|
4389
|
-
definition?: undefined;
|
|
4390
|
-
editUrl?: undefined;
|
|
4391
|
-
}>;
|
|
4392
|
-
delete_custom_block: import('ai').Tool<{
|
|
4393
|
-
slug: string;
|
|
4394
|
-
}, {
|
|
4395
|
-
mutationExecuted: boolean;
|
|
4396
|
-
message: string;
|
|
4397
|
-
success: boolean;
|
|
4398
|
-
confirmationPhrase?: undefined;
|
|
4399
|
-
preview?: undefined;
|
|
4400
|
-
requiresConfirmation?: undefined;
|
|
4401
|
-
deleted?: undefined;
|
|
4402
|
-
} | {
|
|
4403
|
-
confirmationPhrase: string;
|
|
4404
|
-
mutationExecuted: boolean;
|
|
4405
|
-
preview: {
|
|
4406
|
-
summary: string;
|
|
4407
|
-
};
|
|
4408
|
-
requiresConfirmation: boolean;
|
|
4409
|
-
success: boolean;
|
|
4410
|
-
message?: undefined;
|
|
4411
|
-
deleted?: undefined;
|
|
4412
|
-
} | {
|
|
4413
|
-
deleted: {
|
|
4414
|
-
name: any;
|
|
4415
|
-
slug: any;
|
|
4416
|
-
};
|
|
4417
|
-
mutationExecuted: boolean;
|
|
4418
|
-
success: boolean;
|
|
4419
|
-
message?: undefined;
|
|
4420
|
-
confirmationPhrase?: undefined;
|
|
4421
|
-
preview?: undefined;
|
|
4422
|
-
requiresConfirmation?: undefined;
|
|
4423
|
-
}>;
|
|
4424
|
-
list_custom_blocks: import('ai').Tool<{
|
|
4425
|
-
query?: string | undefined;
|
|
4426
|
-
}, {
|
|
4427
|
-
message: any;
|
|
4428
|
-
success: boolean;
|
|
4429
|
-
blocks?: undefined;
|
|
4430
|
-
count?: undefined;
|
|
4431
|
-
} | {
|
|
4432
|
-
blocks: {
|
|
4433
|
-
fieldCount: any;
|
|
4434
|
-
fields: any;
|
|
4435
|
-
id: any;
|
|
4436
|
-
name: any;
|
|
4437
|
-
slug: any;
|
|
4438
|
-
}[];
|
|
4439
|
-
count: number;
|
|
4440
|
-
success: boolean;
|
|
4441
|
-
message?: undefined;
|
|
4442
|
-
}>;
|
|
4443
|
-
update_custom_block: import('ai').Tool<{
|
|
4444
|
-
prompt: string;
|
|
4445
|
-
slug: string;
|
|
4446
|
-
}, {
|
|
4447
|
-
mutationExecuted: boolean;
|
|
4448
|
-
message: any;
|
|
4449
|
-
success: boolean;
|
|
4450
|
-
definition?: undefined;
|
|
4451
|
-
editUrl?: undefined;
|
|
4452
|
-
} | {
|
|
4453
|
-
definition: {
|
|
4454
|
-
fieldCount: any;
|
|
4455
|
-
fields: any;
|
|
4456
|
-
id: any;
|
|
4457
|
-
name: any;
|
|
4458
|
-
slug: any;
|
|
4459
|
-
};
|
|
4460
|
-
editUrl: string;
|
|
4461
|
-
mutationExecuted: boolean;
|
|
4462
|
-
success: boolean;
|
|
4463
|
-
message?: undefined;
|
|
4464
|
-
}>;
|
|
4465
|
-
describe_database_schema: import('ai').Tool<{
|
|
4466
|
-
includeReadOnly: boolean;
|
|
4467
|
-
table?: string | undefined;
|
|
4468
|
-
}, {
|
|
4469
|
-
safetyNotes: string[];
|
|
4470
|
-
success: boolean;
|
|
4471
|
-
tables: {
|
|
4472
|
-
columns: string[];
|
|
4473
|
-
description: string;
|
|
4474
|
-
primaryKey: readonly string[];
|
|
4475
|
-
readOnly: boolean;
|
|
4476
|
-
table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
4477
|
-
}[];
|
|
4478
|
-
}>;
|
|
4479
|
-
execute_database_action_plan: import('ai').Tool<{
|
|
4480
|
-
actions: {
|
|
4481
|
-
operation: "delete" | "update" | "insert" | "upsert";
|
|
4482
|
-
table: string;
|
|
4483
|
-
filters?: {
|
|
4484
|
-
column: string;
|
|
4485
|
-
operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
|
|
4486
|
-
value: unknown;
|
|
4487
|
-
}[] | undefined;
|
|
4488
|
-
rows?: Record<string, unknown>[] | undefined;
|
|
4489
|
-
summary?: string | undefined;
|
|
4490
|
-
values?: Record<string, unknown> | undefined;
|
|
4491
|
-
}[];
|
|
4492
|
-
summary?: string | undefined;
|
|
4493
|
-
}, {
|
|
4494
|
-
confirmationPhrase: string;
|
|
4495
|
-
mutationExecuted: boolean;
|
|
4496
|
-
preview: Record<string, unknown>;
|
|
4497
|
-
requiresConfirmation: boolean;
|
|
4498
|
-
success: boolean;
|
|
4499
|
-
} | {
|
|
4500
|
-
failedActionIndex: number;
|
|
4501
|
-
message: any;
|
|
4502
|
-
mutationExecuted: boolean;
|
|
4503
|
-
results: unknown[];
|
|
4504
|
-
success: boolean;
|
|
4505
|
-
auditError?: string | undefined;
|
|
4506
|
-
actionCount: number;
|
|
4507
|
-
auditLogged: boolean;
|
|
4508
|
-
} | {
|
|
4509
|
-
mutationExecuted: boolean;
|
|
4510
|
-
results: unknown[];
|
|
4511
|
-
success: boolean;
|
|
4512
|
-
summary: string | null;
|
|
4513
|
-
auditError?: string | undefined;
|
|
4514
|
-
actionCount: number;
|
|
4515
|
-
auditLogged: boolean;
|
|
4516
|
-
}>;
|
|
4517
|
-
execute_database_mutation: import('ai').Tool<{
|
|
4518
|
-
operation: "delete" | "update" | "insert" | "upsert";
|
|
4519
|
-
table: string;
|
|
4520
|
-
filters?: {
|
|
4521
|
-
column: string;
|
|
4522
|
-
operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
|
|
4523
|
-
value: unknown;
|
|
4524
|
-
}[] | undefined;
|
|
4525
|
-
rows?: Record<string, unknown>[] | undefined;
|
|
4526
|
-
summary?: string | undefined;
|
|
4527
|
-
values?: Record<string, unknown> | undefined;
|
|
4528
|
-
}, {
|
|
4529
|
-
confirmationPhrase: string;
|
|
4530
|
-
mutationExecuted: boolean;
|
|
4531
|
-
preview: Record<string, unknown>;
|
|
4532
|
-
requiresConfirmation: boolean;
|
|
4533
|
-
success: boolean;
|
|
4534
|
-
} | {
|
|
4535
|
-
mutationExecuted: boolean;
|
|
4536
|
-
operation: "delete" | "update" | "insert" | "upsert";
|
|
4537
|
-
sampleTargetIds: string[];
|
|
4538
|
-
success: boolean;
|
|
4539
|
-
summary: string;
|
|
4540
|
-
table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
4541
|
-
auditError?: string | undefined;
|
|
4542
|
-
affectedCount: number;
|
|
4543
|
-
auditLogged: boolean;
|
|
4544
|
-
} | {
|
|
4545
|
-
message: string;
|
|
4546
|
-
mutationExecuted: boolean;
|
|
4547
|
-
operation: "delete" | "update" | "insert" | "upsert";
|
|
4548
|
-
success: boolean;
|
|
4549
|
-
table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
4550
|
-
auditError?: string | undefined;
|
|
4551
|
-
auditLogged: boolean;
|
|
4552
|
-
}>;
|
|
4553
|
-
read_database_records: import('ai').Tool<{
|
|
4554
|
-
filters: {
|
|
4555
|
-
column: string;
|
|
4556
|
-
operator: "in" | "is" | "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "ilike";
|
|
4557
|
-
value: unknown;
|
|
4558
|
-
}[];
|
|
4559
|
-
limit: number;
|
|
4560
|
-
offset: number;
|
|
4561
|
-
table: string;
|
|
4562
|
-
columns?: string[] | undefined;
|
|
4563
|
-
orderBy?: {
|
|
4564
|
-
ascending: boolean;
|
|
4565
|
-
column: string;
|
|
4566
|
-
} | undefined;
|
|
4567
|
-
}, {
|
|
4568
|
-
columns: string[];
|
|
4569
|
-
limit: number;
|
|
4570
|
-
offset: number;
|
|
4571
|
-
rows: unknown[];
|
|
4572
|
-
success: boolean;
|
|
4573
|
-
table: "languages" | "pages" | "site_settings" | "posts" | "products" | "profiles" | "coupons" | "orders" | "freemius_plans" | "media" | "navigation_items" | "product_variants" | "product_attributes" | "shipping_zones" | "product_attribute_terms" | "blocks" | "cortex_ai_db_mutation_audit" | "coupon_freemius_mappings" | "coupon_products" | "coupon_redemptions" | "currencies" | "freemius_pricing" | "inventory_items" | "logos" | "order_items" | "package_activations" | "page_revisions" | "post_revisions" | "product_media" | "product_revisions" | "shipping_zone_locations" | "shipping_zone_methods" | "tax_rates" | "translations" | "user_addresses" | "variant_attribute_mapping";
|
|
4574
|
-
}>;
|
|
4575
|
-
};
|
|
4576
|
-
export {};
|
|
2350
|
+
export declare function createCortexGlobalAgentTools(context?: ToolExecutionContext): ToolSet;
|