sitecore-ai-sdk-tools 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,749 @@
1
+ import * as ai from 'ai';
2
+ import { tool } from 'ai';
3
+ import { experimental_XMC } from '@sitecore-marketplace-sdk/xmc';
4
+ import { ClientSDK } from '@sitecore-marketplace-sdk/client';
5
+ import { z } from 'zod';
6
+
7
+ declare const assetToolsConfig: {
8
+ get_asset_information: {
9
+ description: string;
10
+ inputSchema: z.ZodObject<{
11
+ assetId: z.ZodString;
12
+ }, z.core.$strip>;
13
+ };
14
+ search_assets: {
15
+ description: string;
16
+ inputSchema: z.ZodObject<{
17
+ query: z.ZodString;
18
+ language: z.ZodString;
19
+ type: z.ZodString;
20
+ }, z.core.$strip>;
21
+ };
22
+ update_asset: {
23
+ description: string;
24
+ inputSchema: z.ZodObject<{
25
+ assetId: z.ZodString;
26
+ fields: z.ZodObject<{}, z.core.$strip>;
27
+ language: z.ZodString;
28
+ name: z.ZodString;
29
+ altText: z.ZodString;
30
+ }, z.core.$strip>;
31
+ };
32
+ upload_asset: {
33
+ description: string;
34
+ inputSchema: z.ZodObject<{
35
+ fileUrl: z.ZodString;
36
+ name: z.ZodString;
37
+ itemPath: z.ZodString;
38
+ language: z.ZodString;
39
+ extension: z.ZodString;
40
+ siteName: z.ZodString;
41
+ }, z.core.$strip>;
42
+ };
43
+ };
44
+ declare const environmentToolsConfig: {
45
+ list_languages: {
46
+ description: string;
47
+ inputSchema: z.ZodObject<{}, z.core.$strip>;
48
+ };
49
+ };
50
+ declare const personalizationToolsConfig: {
51
+ create_personalization_version: {
52
+ description: string;
53
+ inputSchema: z.ZodObject<{
54
+ pageId: z.ZodString;
55
+ name: z.ZodString;
56
+ variant_name: z.ZodString;
57
+ audience_name: z.ZodString;
58
+ condition_template_id: z.ZodString;
59
+ condition_params: z.ZodObject<{}, z.core.$strip>;
60
+ language: z.ZodString;
61
+ }, z.core.$strip>;
62
+ };
63
+ get_personalization_versions_by_page: {
64
+ description: string;
65
+ inputSchema: z.ZodObject<{
66
+ pageId: z.ZodString;
67
+ }, z.core.$strip>;
68
+ };
69
+ get_condition_templates: {
70
+ description: string;
71
+ inputSchema: z.ZodObject<{}, z.core.$strip>;
72
+ };
73
+ get_condition_template_by_id: {
74
+ description: string;
75
+ inputSchema: z.ZodObject<{
76
+ templateId: z.ZodString;
77
+ }, z.core.$strip>;
78
+ };
79
+ };
80
+ declare const jobToolsConfig: {
81
+ revert_job: {
82
+ description: string;
83
+ inputSchema: z.ZodObject<{
84
+ jobId: z.ZodString;
85
+ }, z.core.$strip>;
86
+ };
87
+ get_job: {
88
+ description: string;
89
+ inputSchema: z.ZodObject<{
90
+ jobId: z.ZodString;
91
+ }, z.core.$strip>;
92
+ };
93
+ list_operations: {
94
+ description: string;
95
+ inputSchema: z.ZodObject<{
96
+ jobId: z.ZodString;
97
+ }, z.core.$strip>;
98
+ };
99
+ };
100
+ declare const pagesToolsConfig: {
101
+ get_page: {
102
+ description: string;
103
+ inputSchema: z.ZodObject<{
104
+ pageId: z.ZodString;
105
+ language: z.ZodString;
106
+ }, z.core.$strip>;
107
+ };
108
+ create_page: {
109
+ description: string;
110
+ inputSchema: z.ZodObject<{
111
+ templateId: z.ZodString;
112
+ name: z.ZodString;
113
+ parentId: z.ZodString;
114
+ language: z.ZodString;
115
+ fields: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
116
+ }, z.core.$strip>;
117
+ };
118
+ get_page_template_by_id: {
119
+ description: string;
120
+ inputSchema: z.ZodObject<{
121
+ templateId: z.ZodString;
122
+ }, z.core.$strip>;
123
+ };
124
+ get_allowed_components_by_placeholder: {
125
+ description: string;
126
+ inputSchema: z.ZodObject<{
127
+ pageId: z.ZodString;
128
+ placeholderName: z.ZodString;
129
+ language: z.ZodString;
130
+ }, z.core.$strip>;
131
+ };
132
+ get_components_on_page: {
133
+ description: string;
134
+ inputSchema: z.ZodObject<{
135
+ pageId: z.ZodString;
136
+ language: z.ZodString;
137
+ version: z.ZodNumber;
138
+ }, z.core.$strip>;
139
+ };
140
+ add_component_on_page: {
141
+ description: string;
142
+ inputSchema: z.ZodObject<{
143
+ pageId: z.ZodString;
144
+ componentId: z.ZodString;
145
+ placeholderPath: z.ZodString;
146
+ componentItemName: z.ZodString;
147
+ language: z.ZodString;
148
+ fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
149
+ }, z.core.$strip>;
150
+ };
151
+ set_component_datasource: {
152
+ description: string;
153
+ inputSchema: z.ZodObject<{
154
+ pageId: z.ZodString;
155
+ componentId: z.ZodString;
156
+ datasourceId: z.ZodString;
157
+ language: z.ZodString;
158
+ }, z.core.$strip>;
159
+ };
160
+ add_language_to_page: {
161
+ description: string;
162
+ inputSchema: z.ZodObject<{
163
+ pageId: z.ZodString;
164
+ language: z.ZodString;
165
+ }, z.core.$strip>;
166
+ };
167
+ search_site: {
168
+ description: string;
169
+ inputSchema: z.ZodObject<{
170
+ search_query: z.ZodString;
171
+ site_name: z.ZodString;
172
+ language: z.ZodString;
173
+ }, z.core.$strip>;
174
+ };
175
+ get_page_path_by_live_url: {
176
+ description: string;
177
+ inputSchema: z.ZodObject<{
178
+ live_url: z.ZodString;
179
+ }, z.core.$strip>;
180
+ };
181
+ get_page_screenshot: {
182
+ description: string;
183
+ inputSchema: z.ZodObject<{
184
+ pageId: z.ZodString;
185
+ version: z.ZodNumber;
186
+ language: z.ZodString;
187
+ width: z.ZodNumber;
188
+ height: z.ZodNumber;
189
+ }, z.core.$strip>;
190
+ };
191
+ get_page_html: {
192
+ description: string;
193
+ inputSchema: z.ZodObject<{
194
+ pageId: z.ZodString;
195
+ language: z.ZodString;
196
+ version: z.ZodNumber;
197
+ }, z.core.$strip>;
198
+ };
199
+ get_page_preview_url: {
200
+ description: string;
201
+ inputSchema: z.ZodObject<{
202
+ pageId: z.ZodString;
203
+ language: z.ZodString;
204
+ version: z.ZodNumber;
205
+ }, z.core.$strip>;
206
+ };
207
+ };
208
+ declare const sitesToolsConfig: {
209
+ get_sites_list: {
210
+ description: string;
211
+ inputSchema: z.ZodObject<{}, z.core.$strip>;
212
+ };
213
+ get_site_details: {
214
+ description: string;
215
+ inputSchema: z.ZodObject<{
216
+ siteId: z.ZodString;
217
+ }, z.core.$strip>;
218
+ };
219
+ get_all_pages_by_site: {
220
+ description: string;
221
+ inputSchema: z.ZodObject<{
222
+ siteName: z.ZodString;
223
+ language: z.ZodString;
224
+ }, z.core.$strip>;
225
+ };
226
+ get_site_id_from_item: {
227
+ description: string;
228
+ inputSchema: z.ZodObject<{
229
+ itemId: z.ZodString;
230
+ }, z.core.$strip>;
231
+ };
232
+ };
233
+ declare const contentToolsConfig: {
234
+ create_content_item: {
235
+ description: string;
236
+ inputSchema: z.ZodObject<{
237
+ templateId: z.ZodString;
238
+ name: z.ZodString;
239
+ parentId: z.ZodString;
240
+ language: z.ZodString;
241
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
242
+ }, z.core.$strip>;
243
+ };
244
+ delete_content: {
245
+ description: string;
246
+ inputSchema: z.ZodObject<{
247
+ itemId: z.ZodString;
248
+ language: z.ZodString;
249
+ }, z.core.$strip>;
250
+ };
251
+ get_content_item_by_id: {
252
+ description: string;
253
+ inputSchema: z.ZodObject<{
254
+ itemId: z.ZodString;
255
+ language: z.ZodString;
256
+ }, z.core.$strip>;
257
+ };
258
+ update_content: {
259
+ description: string;
260
+ inputSchema: z.ZodObject<{
261
+ itemId: z.ZodString;
262
+ fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
263
+ language: z.ZodString;
264
+ createNewVersion: z.ZodBoolean;
265
+ siteName: z.ZodString;
266
+ }, z.core.$strip>;
267
+ };
268
+ get_content_item_by_path: {
269
+ description: string;
270
+ inputSchema: z.ZodObject<{
271
+ item_path: z.ZodString;
272
+ failOnNotFound: z.ZodBoolean;
273
+ language: z.ZodString;
274
+ }, z.core.$strip>;
275
+ };
276
+ list_available_insert_options: {
277
+ description: string;
278
+ inputSchema: z.ZodObject<{
279
+ itemId: z.ZodString;
280
+ language: z.ZodString;
281
+ }, z.core.$strip>;
282
+ };
283
+ };
284
+ declare const componentsToolsConfig: {
285
+ create_component_datasource: {
286
+ description: string;
287
+ inputSchema: z.ZodObject<{
288
+ componentId: z.ZodString;
289
+ siteName: z.ZodString;
290
+ dataFields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
291
+ children: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
292
+ language: z.ZodString;
293
+ }, z.core.$strip>;
294
+ };
295
+ search_component_datasources: {
296
+ description: string;
297
+ inputSchema: z.ZodObject<{
298
+ componentId: z.ZodString;
299
+ term: z.ZodString;
300
+ }, z.core.$strip>;
301
+ };
302
+ list_components: {
303
+ description: string;
304
+ inputSchema: z.ZodObject<{
305
+ site_name: z.ZodString;
306
+ }, z.core.$strip>;
307
+ };
308
+ get_component: {
309
+ description: string;
310
+ inputSchema: z.ZodObject<{
311
+ componentId: z.ZodString;
312
+ }, z.core.$strip>;
313
+ };
314
+ };
315
+
316
+ type NeedsApproval = Parameters<typeof tool>[0]['needsApproval'];
317
+ type DefaultToolOptions = {
318
+ needsApproval?: NeedsApproval;
319
+ };
320
+ type SitecoreToolName = keyof typeof assetToolsConfig | keyof typeof pagesToolsConfig | keyof typeof personalizationToolsConfig | keyof typeof sitesToolsConfig | keyof typeof environmentToolsConfig | keyof typeof jobToolsConfig | keyof typeof componentsToolsConfig | keyof typeof contentToolsConfig;
321
+ type ClientSideContext = {
322
+ client: ClientSDK;
323
+ sitecoreContextId: string;
324
+ };
325
+ type ClientSideTool = {
326
+ toolName: string;
327
+ input: unknown;
328
+ };
329
+
330
+ declare function executeSitecoreTool(context: ClientSideContext, tool: ClientSideTool): Promise<{
331
+ success: boolean;
332
+ error: string;
333
+ result?: undefined;
334
+ } | {
335
+ success: boolean;
336
+ result: unknown;
337
+ error?: undefined;
338
+ }>;
339
+
340
+ type ToolConfig<TInput, TOutput> = {
341
+ description: string;
342
+ inputSchema: z.ZodType<TInput>;
343
+ execute: (opts: ClientSideContext, input: TInput) => Promise<TOutput>;
344
+ };
345
+ type PageBuilderToolOptions = DefaultToolOptions;
346
+ declare const pageBuilderTools: (options: PageBuilderToolOptions) => {
347
+ get_current_page_context: ai.Tool<Record<string, never>, never>;
348
+ reload_current_page: ai.Tool<Record<string, never>, never>;
349
+ navigate_to_another_page: ai.Tool<{
350
+ itemId: string;
351
+ }, never>;
352
+ };
353
+ type PageBuilderToolName = keyof ReturnType<typeof pageBuilderTools>;
354
+ declare function executePageBuilderTool(context: ClientSideContext, tool: ClientSideTool): Promise<{
355
+ success: boolean;
356
+ error: string;
357
+ result?: undefined;
358
+ } | {
359
+ success: boolean;
360
+ result: unknown;
361
+ error?: undefined;
362
+ }>;
363
+
364
+ type CreateSitecoreToolsOptions = ({
365
+ execution: 'client';
366
+ } | {
367
+ execution: 'server';
368
+ client: experimental_XMC;
369
+ sitecoreContextId: string;
370
+ }) & {
371
+ needsApproval?: NeedsApproval;
372
+ };
373
+ declare function createSitecoreTools(options: CreateSitecoreToolsOptions): {
374
+ revert_job: ai.Tool<{
375
+ jobId: string;
376
+ }, never>;
377
+ get_job: ai.Tool<{
378
+ jobId: string;
379
+ }, never>;
380
+ list_operations: ai.Tool<{
381
+ jobId: string;
382
+ }, never>;
383
+ get_sites_list: ai.Tool<Record<string, never>, never>;
384
+ get_site_details: ai.Tool<{
385
+ siteId: string;
386
+ }, never>;
387
+ get_all_pages_by_site: ai.Tool<{
388
+ siteName: string;
389
+ language: string;
390
+ }, never>;
391
+ get_site_id_from_item: ai.Tool<{
392
+ itemId: string;
393
+ }, never>;
394
+ create_personalization_version: ai.Tool<{
395
+ pageId: string;
396
+ name: string;
397
+ variant_name: string;
398
+ audience_name: string;
399
+ condition_template_id: string;
400
+ condition_params: Record<string, never>;
401
+ language: string;
402
+ }, never>;
403
+ get_personalization_versions_by_page: ai.Tool<{
404
+ pageId: string;
405
+ }, never>;
406
+ get_condition_templates: ai.Tool<Record<string, never>, never>;
407
+ get_condition_template_by_id: ai.Tool<{
408
+ templateId: string;
409
+ }, never>;
410
+ get_page: ai.Tool<{
411
+ pageId: string;
412
+ language: string;
413
+ }, never>;
414
+ create_page: ai.Tool<{
415
+ templateId: string;
416
+ name: string;
417
+ parentId: string;
418
+ language: string;
419
+ fields: Record<string, string | number>[];
420
+ }, never>;
421
+ get_page_template_by_id: ai.Tool<{
422
+ templateId: string;
423
+ }, never>;
424
+ get_allowed_components_by_placeholder: ai.Tool<{
425
+ pageId: string;
426
+ placeholderName: string;
427
+ language: string;
428
+ }, never>;
429
+ get_components_on_page: ai.Tool<{
430
+ pageId: string;
431
+ language: string;
432
+ version: number;
433
+ }, never>;
434
+ add_component_on_page: ai.Tool<{
435
+ pageId: string;
436
+ componentId: string;
437
+ placeholderPath: string;
438
+ componentItemName: string;
439
+ language: string;
440
+ fields: Record<string, string | number>;
441
+ }, never>;
442
+ set_component_datasource: ai.Tool<{
443
+ pageId: string;
444
+ componentId: string;
445
+ datasourceId: string;
446
+ language: string;
447
+ }, never>;
448
+ add_language_to_page: ai.Tool<{
449
+ pageId: string;
450
+ language: string;
451
+ }, never>;
452
+ search_site: ai.Tool<{
453
+ search_query: string;
454
+ site_name: string;
455
+ language: string;
456
+ }, never>;
457
+ get_page_path_by_live_url: ai.Tool<{
458
+ live_url: string;
459
+ }, never>;
460
+ get_page_screenshot: ai.Tool<{
461
+ pageId: string;
462
+ version: number;
463
+ language: string;
464
+ width: number;
465
+ height: number;
466
+ }, never>;
467
+ get_page_html: ai.Tool<{
468
+ pageId: string;
469
+ language: string;
470
+ version: number;
471
+ }, never>;
472
+ get_page_preview_url: ai.Tool<{
473
+ pageId: string;
474
+ language: string;
475
+ version: number;
476
+ }, never>;
477
+ list_languages: ai.Tool<Record<string, never>, never>;
478
+ create_content_item: ai.Tool<{
479
+ templateId: string;
480
+ name: string;
481
+ parentId: string;
482
+ language: string;
483
+ fields: Record<string, string | number>;
484
+ }, never>;
485
+ delete_content: ai.Tool<{
486
+ itemId: string;
487
+ language: string;
488
+ }, never>;
489
+ get_content_item_by_id: ai.Tool<{
490
+ itemId: string;
491
+ language: string;
492
+ }, never>;
493
+ update_content: ai.Tool<{
494
+ itemId: string;
495
+ fields: Record<string, string | number>;
496
+ language: string;
497
+ createNewVersion: boolean;
498
+ siteName: string;
499
+ }, never>;
500
+ get_content_item_by_path: ai.Tool<{
501
+ item_path: string;
502
+ failOnNotFound: boolean;
503
+ language: string;
504
+ }, never>;
505
+ list_available_insert_options: ai.Tool<{
506
+ itemId: string;
507
+ language: string;
508
+ }, never>;
509
+ create_component_datasource: ai.Tool<{
510
+ componentId: string;
511
+ siteName: string;
512
+ dataFields: Record<string, string | number>;
513
+ children: Record<string, string | number>[];
514
+ language: string;
515
+ }, never>;
516
+ search_component_datasources: ai.Tool<{
517
+ componentId: string;
518
+ term: string;
519
+ }, never>;
520
+ list_components: ai.Tool<{
521
+ site_name: string;
522
+ }, never>;
523
+ get_component: ai.Tool<{
524
+ componentId: string;
525
+ }, never>;
526
+ get_asset_information: ai.Tool<{
527
+ assetId: string;
528
+ }, never>;
529
+ search_assets: ai.Tool<{
530
+ query: string;
531
+ language: string;
532
+ type: string;
533
+ }, never>;
534
+ update_asset: ai.Tool<{
535
+ assetId: string;
536
+ fields: Record<string, never>;
537
+ language: string;
538
+ name: string;
539
+ altText: string;
540
+ }, never>;
541
+ upload_asset: ai.Tool<{
542
+ fileUrl: string;
543
+ name: string;
544
+ itemPath: string;
545
+ language: string;
546
+ extension: string;
547
+ siteName: string;
548
+ }, never>;
549
+ } | {
550
+ revert_job: ai.Tool<{
551
+ jobId: string;
552
+ }, unknown>;
553
+ get_job: ai.Tool<{
554
+ jobId: string;
555
+ }, unknown>;
556
+ list_operations: ai.Tool<{
557
+ jobId: string;
558
+ }, unknown>;
559
+ get_sites_list: ai.Tool<Record<string, never>, unknown>;
560
+ get_site_details: ai.Tool<{
561
+ siteId: string;
562
+ }, unknown>;
563
+ get_all_pages_by_site: ai.Tool<{
564
+ siteName: string;
565
+ language: string;
566
+ }, unknown>;
567
+ get_site_id_from_item: ai.Tool<{
568
+ itemId: string;
569
+ }, unknown>;
570
+ create_personalization_version: ai.Tool<{
571
+ pageId: string;
572
+ name: string;
573
+ variant_name: string;
574
+ audience_name: string;
575
+ condition_template_id: string;
576
+ condition_params: Record<string, never>;
577
+ language: string;
578
+ }, {
579
+ jobId: string;
580
+ }>;
581
+ get_personalization_versions_by_page: ai.Tool<{
582
+ pageId: string;
583
+ }, unknown>;
584
+ get_condition_templates: ai.Tool<Record<string, never>, unknown>;
585
+ get_condition_template_by_id: ai.Tool<{
586
+ templateId: string;
587
+ }, unknown>;
588
+ get_page: ai.Tool<{
589
+ pageId: string;
590
+ language: string;
591
+ }, unknown>;
592
+ create_page: ai.Tool<{
593
+ templateId: string;
594
+ name: string;
595
+ parentId: string;
596
+ language: string;
597
+ fields: Record<string, string | number>[];
598
+ }, {
599
+ jobId: string;
600
+ }>;
601
+ get_page_template_by_id: ai.Tool<{
602
+ templateId: string;
603
+ }, unknown>;
604
+ get_allowed_components_by_placeholder: ai.Tool<{
605
+ pageId: string;
606
+ placeholderName: string;
607
+ language: string;
608
+ }, unknown>;
609
+ get_components_on_page: ai.Tool<{
610
+ pageId: string;
611
+ language: string;
612
+ version: number;
613
+ }, unknown>;
614
+ add_component_on_page: ai.Tool<{
615
+ pageId: string;
616
+ componentId: string;
617
+ placeholderPath: string;
618
+ componentItemName: string;
619
+ language: string;
620
+ fields: Record<string, string | number>;
621
+ }, {
622
+ jobId: string;
623
+ }>;
624
+ set_component_datasource: ai.Tool<{
625
+ pageId: string;
626
+ componentId: string;
627
+ datasourceId: string;
628
+ language: string;
629
+ }, {
630
+ jobId: string;
631
+ }>;
632
+ add_language_to_page: ai.Tool<{
633
+ pageId: string;
634
+ language: string;
635
+ }, {
636
+ jobId: string;
637
+ }>;
638
+ search_site: ai.Tool<{
639
+ search_query: string;
640
+ site_name: string;
641
+ language: string;
642
+ }, unknown>;
643
+ get_page_path_by_live_url: ai.Tool<{
644
+ live_url: string;
645
+ }, unknown>;
646
+ get_page_screenshot: ai.Tool<{
647
+ pageId: string;
648
+ version: number;
649
+ language: string;
650
+ width: number;
651
+ height: number;
652
+ }, unknown>;
653
+ get_page_html: ai.Tool<{
654
+ pageId: string;
655
+ language: string;
656
+ version: number;
657
+ }, unknown>;
658
+ get_page_preview_url: ai.Tool<{
659
+ pageId: string;
660
+ language: string;
661
+ version: number;
662
+ }, unknown>;
663
+ list_languages: ai.Tool<Record<string, never>, unknown>;
664
+ create_content_item: ai.Tool<{
665
+ templateId: string;
666
+ name: string;
667
+ parentId: string;
668
+ language: string;
669
+ fields: Record<string, string | number>;
670
+ }, {
671
+ jobId: string;
672
+ }>;
673
+ delete_content: ai.Tool<{
674
+ itemId: string;
675
+ language: string;
676
+ }, {
677
+ jobId: string;
678
+ }>;
679
+ get_content_item_by_id: ai.Tool<{
680
+ itemId: string;
681
+ language: string;
682
+ }, unknown>;
683
+ update_content: ai.Tool<{
684
+ itemId: string;
685
+ fields: Record<string, string | number>;
686
+ language: string;
687
+ createNewVersion: boolean;
688
+ siteName: string;
689
+ }, {
690
+ jobId: string;
691
+ }>;
692
+ get_content_item_by_path: ai.Tool<{
693
+ item_path: string;
694
+ failOnNotFound: boolean;
695
+ language: string;
696
+ }, unknown>;
697
+ list_available_insert_options: ai.Tool<{
698
+ itemId: string;
699
+ language: string;
700
+ }, unknown>;
701
+ create_component_datasource: ai.Tool<{
702
+ componentId: string;
703
+ siteName: string;
704
+ dataFields: Record<string, string | number>;
705
+ children: Record<string, string | number>[];
706
+ language: string;
707
+ }, {
708
+ jobId: string;
709
+ }>;
710
+ search_component_datasources: ai.Tool<{
711
+ componentId: string;
712
+ term: string;
713
+ }, unknown>;
714
+ list_components: ai.Tool<{
715
+ site_name: string;
716
+ }, unknown>;
717
+ get_component: ai.Tool<{
718
+ componentId: string;
719
+ }, unknown>;
720
+ get_asset_information: ai.Tool<{
721
+ assetId: string;
722
+ }, unknown>;
723
+ search_assets: ai.Tool<{
724
+ query: string;
725
+ language: string;
726
+ type: string;
727
+ }, unknown>;
728
+ update_asset: ai.Tool<{
729
+ assetId: string;
730
+ fields: Record<string, never>;
731
+ language: string;
732
+ name: string;
733
+ altText: string;
734
+ }, {
735
+ jobId: string;
736
+ }>;
737
+ upload_asset: ai.Tool<{
738
+ fileUrl: string;
739
+ name: string;
740
+ itemPath: string;
741
+ language: string;
742
+ extension: string;
743
+ siteName: string;
744
+ }, {
745
+ jobId: string;
746
+ }>;
747
+ };
748
+
749
+ export { type ClientSideContext, type ClientSideTool, type CreateSitecoreToolsOptions, type DefaultToolOptions, type NeedsApproval, type PageBuilderToolName, type PageBuilderToolOptions, type SitecoreToolName, type ToolConfig, createSitecoreTools, executePageBuilderTool, executeSitecoreTool, pageBuilderTools };