@uniformdev/uniform-mcp 20.49.2 → 20.49.3

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,2385 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+ import * as z from 'zod/v3';
3
+ import * as zod from 'zod';
4
+
5
+ /** Definitions for AI tools that can be used in a chat */
6
+ declare const toolDefinitions: {
7
+ askQuestion: {
8
+ displayName: string;
9
+ description: string;
10
+ inputSchema: zod.ZodObject<{
11
+ question: zod.ZodString;
12
+ }, "strip", zod.ZodTypeAny, {
13
+ question: string;
14
+ }, {
15
+ question: string;
16
+ }>;
17
+ outputSchema: zod.ZodObject<{
18
+ success: zod.ZodBoolean;
19
+ error: zod.ZodOptional<zod.ZodString>;
20
+ answerMarkdown: zod.ZodString;
21
+ }, "strip", zod.ZodTypeAny, {
22
+ success: boolean;
23
+ answerMarkdown: string;
24
+ error?: string | undefined;
25
+ }, {
26
+ success: boolean;
27
+ answerMarkdown: string;
28
+ error?: string | undefined;
29
+ }>;
30
+ runsAt: "server";
31
+ timeout: number;
32
+ callable: true;
33
+ };
34
+ createUuid: {
35
+ displayName: string;
36
+ description: string;
37
+ inputSchema: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
38
+ outputSchema: zod.ZodObject<{
39
+ uuid: zod.ZodString;
40
+ }, "strip", zod.ZodTypeAny, {
41
+ uuid: string;
42
+ }, {
43
+ uuid: string;
44
+ }>;
45
+ runsAt: "server";
46
+ timeout: number;
47
+ };
48
+ replySuggester: {
49
+ displayName: string;
50
+ description: string;
51
+ inputSchema: zod.ZodObject<{
52
+ message: zod.ZodString;
53
+ }, "strip", zod.ZodTypeAny, {
54
+ message: string;
55
+ }, {
56
+ message: string;
57
+ }>;
58
+ outputSchema: zod.ZodObject<{
59
+ suggested_replies: zod.ZodArray<zod.ZodObject<{
60
+ value: zod.ZodString;
61
+ importance: zod.ZodNumber;
62
+ }, "strip", zod.ZodTypeAny, {
63
+ value: string;
64
+ importance: number;
65
+ }, {
66
+ value: string;
67
+ importance: number;
68
+ }>, "many">;
69
+ }, "strip", zod.ZodTypeAny, {
70
+ suggested_replies: {
71
+ value: string;
72
+ importance: number;
73
+ }[];
74
+ }, {
75
+ suggested_replies: {
76
+ value: string;
77
+ importance: number;
78
+ }[];
79
+ }>;
80
+ runsAt: "server";
81
+ timeout: number;
82
+ callable: true;
83
+ };
84
+ applyCompositionEdit: {
85
+ displayName: string;
86
+ description: string;
87
+ inputSchema: zod.ZodObject<{
88
+ name: zod.ZodOptional<zod.ZodString>;
89
+ type: zod.ZodOptional<zod.ZodString>;
90
+ parameterUpdates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
91
+ componentId: zod.ZodString;
92
+ parameterId: zod.ZodString;
93
+ parameterType: zod.ZodString;
94
+ fromLocale: zod.ZodOptional<zod.ZodString>;
95
+ locale: zod.ZodOptional<zod.ZodString>;
96
+ editInstructions: zod.ZodOptional<zod.ZodString>;
97
+ }, "strip", zod.ZodTypeAny, {
98
+ componentId: string;
99
+ parameterId: string;
100
+ parameterType: string;
101
+ locale?: string | undefined;
102
+ editInstructions?: string | undefined;
103
+ fromLocale?: string | undefined;
104
+ }, {
105
+ componentId: string;
106
+ parameterId: string;
107
+ parameterType: string;
108
+ locale?: string | undefined;
109
+ editInstructions?: string | undefined;
110
+ fromLocale?: string | undefined;
111
+ }>, "many">>;
112
+ localeUpdates: zod.ZodOptional<zod.ZodObject<{
113
+ enableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
114
+ disableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
115
+ }, "strip", zod.ZodTypeAny, {
116
+ enableLocales?: string[] | undefined;
117
+ disableLocales?: string[] | undefined;
118
+ }, {
119
+ enableLocales?: string[] | undefined;
120
+ disableLocales?: string[] | undefined;
121
+ }>>;
122
+ dataResourceUpdates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
123
+ componentId: zod.ZodString;
124
+ dataResourceName: zod.ZodString;
125
+ editInstructions: zod.ZodOptional<zod.ZodString>;
126
+ }, "strip", zod.ZodTypeAny, {
127
+ componentId: string;
128
+ dataResourceName: string;
129
+ editInstructions?: string | undefined;
130
+ }, {
131
+ componentId: string;
132
+ dataResourceName: string;
133
+ editInstructions?: string | undefined;
134
+ }>, "many">>;
135
+ createComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
136
+ parentComponentId: zod.ZodString;
137
+ slotName: zod.ZodString;
138
+ slotIndex: zod.ZodOptional<zod.ZodNumber>;
139
+ newComponentInstanceUuid: zod.ZodString;
140
+ instanceType: zod.ZodEnum<["component", "componentPattern"]>;
141
+ componentType: zod.ZodOptional<zod.ZodString>;
142
+ componentPatternId: zod.ZodOptional<zod.ZodString>;
143
+ }, "strip", zod.ZodTypeAny, {
144
+ parentComponentId: string;
145
+ slotName: string;
146
+ newComponentInstanceUuid: string;
147
+ instanceType: "componentPattern" | "component";
148
+ componentType?: string | undefined;
149
+ slotIndex?: number | undefined;
150
+ componentPatternId?: string | undefined;
151
+ }, {
152
+ parentComponentId: string;
153
+ slotName: string;
154
+ newComponentInstanceUuid: string;
155
+ instanceType: "componentPattern" | "component";
156
+ componentType?: string | undefined;
157
+ slotIndex?: number | undefined;
158
+ componentPatternId?: string | undefined;
159
+ }>, "many">>;
160
+ moveComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
161
+ componentId: zod.ZodString;
162
+ newParentComponentId: zod.ZodString;
163
+ newSlotName: zod.ZodString;
164
+ newSlotIndex: zod.ZodNumber;
165
+ }, "strip", zod.ZodTypeAny, {
166
+ componentId: string;
167
+ newParentComponentId: string;
168
+ newSlotName: string;
169
+ newSlotIndex: number;
170
+ }, {
171
+ componentId: string;
172
+ newParentComponentId: string;
173
+ newSlotName: string;
174
+ newSlotIndex: number;
175
+ }>, "many">>;
176
+ duplicateComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
177
+ deleteComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
178
+ }, "strip", zod.ZodTypeAny, {
179
+ type?: string | undefined;
180
+ name?: string | undefined;
181
+ createComponentInstances?: {
182
+ parentComponentId: string;
183
+ slotName: string;
184
+ newComponentInstanceUuid: string;
185
+ instanceType: "componentPattern" | "component";
186
+ componentType?: string | undefined;
187
+ slotIndex?: number | undefined;
188
+ componentPatternId?: string | undefined;
189
+ }[] | undefined;
190
+ moveComponentInstances?: {
191
+ componentId: string;
192
+ newParentComponentId: string;
193
+ newSlotName: string;
194
+ newSlotIndex: number;
195
+ }[] | undefined;
196
+ duplicateComponentInstances?: string[] | undefined;
197
+ deleteComponentInstances?: string[] | undefined;
198
+ dataResourceUpdates?: {
199
+ componentId: string;
200
+ dataResourceName: string;
201
+ editInstructions?: string | undefined;
202
+ }[] | undefined;
203
+ parameterUpdates?: {
204
+ componentId: string;
205
+ parameterId: string;
206
+ parameterType: string;
207
+ locale?: string | undefined;
208
+ editInstructions?: string | undefined;
209
+ fromLocale?: string | undefined;
210
+ }[] | undefined;
211
+ localeUpdates?: {
212
+ enableLocales?: string[] | undefined;
213
+ disableLocales?: string[] | undefined;
214
+ } | undefined;
215
+ }, {
216
+ type?: string | undefined;
217
+ name?: string | undefined;
218
+ createComponentInstances?: {
219
+ parentComponentId: string;
220
+ slotName: string;
221
+ newComponentInstanceUuid: string;
222
+ instanceType: "componentPattern" | "component";
223
+ componentType?: string | undefined;
224
+ slotIndex?: number | undefined;
225
+ componentPatternId?: string | undefined;
226
+ }[] | undefined;
227
+ moveComponentInstances?: {
228
+ componentId: string;
229
+ newParentComponentId: string;
230
+ newSlotName: string;
231
+ newSlotIndex: number;
232
+ }[] | undefined;
233
+ duplicateComponentInstances?: string[] | undefined;
234
+ deleteComponentInstances?: string[] | undefined;
235
+ dataResourceUpdates?: {
236
+ componentId: string;
237
+ dataResourceName: string;
238
+ editInstructions?: string | undefined;
239
+ }[] | undefined;
240
+ parameterUpdates?: {
241
+ componentId: string;
242
+ parameterId: string;
243
+ parameterType: string;
244
+ locale?: string | undefined;
245
+ editInstructions?: string | undefined;
246
+ fromLocale?: string | undefined;
247
+ }[] | undefined;
248
+ localeUpdates?: {
249
+ enableLocales?: string[] | undefined;
250
+ disableLocales?: string[] | undefined;
251
+ } | undefined;
252
+ }>;
253
+ outputSchema: zod.ZodObject<{
254
+ success: zod.ZodBoolean;
255
+ actionsTaken: zod.ZodArray<zod.ZodObject<{
256
+ summary: zod.ZodOptional<zod.ZodString>;
257
+ success: zod.ZodBoolean;
258
+ }, "strip", zod.ZodTypeAny, {
259
+ success: boolean;
260
+ summary?: string | undefined;
261
+ }, {
262
+ success: boolean;
263
+ summary?: string | undefined;
264
+ }>, "many">;
265
+ }, "strip", zod.ZodTypeAny, {
266
+ success: boolean;
267
+ actionsTaken: {
268
+ success: boolean;
269
+ summary?: string | undefined;
270
+ }[];
271
+ }, {
272
+ success: boolean;
273
+ actionsTaken: {
274
+ success: boolean;
275
+ summary?: string | undefined;
276
+ }[];
277
+ }>;
278
+ runsAt: "client";
279
+ requiredInvocationContext: "composition"[];
280
+ timeout: number;
281
+ };
282
+ applyEntryEdit: {
283
+ displayName: string;
284
+ description: string;
285
+ inputSchema: zod.ZodObject<{
286
+ type: zod.ZodOptional<zod.ZodString>;
287
+ slug: zod.ZodOptional<zod.ZodString>;
288
+ fieldUpdates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
289
+ fieldId: zod.ZodString;
290
+ fieldType: zod.ZodString;
291
+ fromLocale: zod.ZodOptional<zod.ZodString>;
292
+ locale: zod.ZodOptional<zod.ZodString>;
293
+ editInstructions: zod.ZodOptional<zod.ZodString>;
294
+ }, "strip", zod.ZodTypeAny, {
295
+ fieldId: string;
296
+ fieldType: string;
297
+ locale?: string | undefined;
298
+ editInstructions?: string | undefined;
299
+ fromLocale?: string | undefined;
300
+ }, {
301
+ fieldId: string;
302
+ fieldType: string;
303
+ locale?: string | undefined;
304
+ editInstructions?: string | undefined;
305
+ fromLocale?: string | undefined;
306
+ }>, "many">>;
307
+ localeUpdates: zod.ZodOptional<zod.ZodObject<{
308
+ enableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
309
+ disableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
310
+ }, "strip", zod.ZodTypeAny, {
311
+ enableLocales?: string[] | undefined;
312
+ disableLocales?: string[] | undefined;
313
+ }, {
314
+ enableLocales?: string[] | undefined;
315
+ disableLocales?: string[] | undefined;
316
+ }>>;
317
+ dataResourceUpdates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
318
+ componentId: zod.ZodString;
319
+ dataResourceName: zod.ZodString;
320
+ editInstructions: zod.ZodOptional<zod.ZodString>;
321
+ }, "strip", zod.ZodTypeAny, {
322
+ componentId: string;
323
+ dataResourceName: string;
324
+ editInstructions?: string | undefined;
325
+ }, {
326
+ componentId: string;
327
+ dataResourceName: string;
328
+ editInstructions?: string | undefined;
329
+ }>, "many">>;
330
+ }, "strip", zod.ZodTypeAny, {
331
+ type?: string | undefined;
332
+ dataResourceUpdates?: {
333
+ componentId: string;
334
+ dataResourceName: string;
335
+ editInstructions?: string | undefined;
336
+ }[] | undefined;
337
+ localeUpdates?: {
338
+ enableLocales?: string[] | undefined;
339
+ disableLocales?: string[] | undefined;
340
+ } | undefined;
341
+ slug?: string | undefined;
342
+ fieldUpdates?: {
343
+ fieldId: string;
344
+ fieldType: string;
345
+ locale?: string | undefined;
346
+ editInstructions?: string | undefined;
347
+ fromLocale?: string | undefined;
348
+ }[] | undefined;
349
+ }, {
350
+ type?: string | undefined;
351
+ dataResourceUpdates?: {
352
+ componentId: string;
353
+ dataResourceName: string;
354
+ editInstructions?: string | undefined;
355
+ }[] | undefined;
356
+ localeUpdates?: {
357
+ enableLocales?: string[] | undefined;
358
+ disableLocales?: string[] | undefined;
359
+ } | undefined;
360
+ slug?: string | undefined;
361
+ fieldUpdates?: {
362
+ fieldId: string;
363
+ fieldType: string;
364
+ locale?: string | undefined;
365
+ editInstructions?: string | undefined;
366
+ fromLocale?: string | undefined;
367
+ }[] | undefined;
368
+ }>;
369
+ outputSchema: zod.ZodObject<{
370
+ success: zod.ZodBoolean;
371
+ actionsTaken: zod.ZodArray<zod.ZodObject<{
372
+ summary: zod.ZodOptional<zod.ZodString>;
373
+ success: zod.ZodBoolean;
374
+ }, "strip", zod.ZodTypeAny, {
375
+ success: boolean;
376
+ summary?: string | undefined;
377
+ }, {
378
+ success: boolean;
379
+ summary?: string | undefined;
380
+ }>, "many">;
381
+ }, "strip", zod.ZodTypeAny, {
382
+ success: boolean;
383
+ actionsTaken: {
384
+ success: boolean;
385
+ summary?: string | undefined;
386
+ }[];
387
+ }, {
388
+ success: boolean;
389
+ actionsTaken: {
390
+ success: boolean;
391
+ summary?: string | undefined;
392
+ }[];
393
+ }>;
394
+ runsAt: "client";
395
+ requiredInvocationContext: "entry"[];
396
+ timeout: number;
397
+ };
398
+ applyEntryPatternEdit: {
399
+ displayName: string;
400
+ description: string;
401
+ inputSchema: zod.ZodObject<{
402
+ name: zod.ZodOptional<zod.ZodString>;
403
+ type: zod.ZodOptional<zod.ZodString>;
404
+ description: zod.ZodOptional<zod.ZodString>;
405
+ fieldUpdates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
406
+ fieldId: zod.ZodString;
407
+ fieldType: zod.ZodString;
408
+ fromLocale: zod.ZodOptional<zod.ZodString>;
409
+ locale: zod.ZodOptional<zod.ZodString>;
410
+ editInstructions: zod.ZodOptional<zod.ZodString>;
411
+ } & {
412
+ overridable: zod.ZodOptional<zod.ZodEnum<["yes", "no"]>>;
413
+ }, "strip", zod.ZodTypeAny, {
414
+ fieldId: string;
415
+ fieldType: string;
416
+ locale?: string | undefined;
417
+ editInstructions?: string | undefined;
418
+ fromLocale?: string | undefined;
419
+ overridable?: "yes" | "no" | undefined;
420
+ }, {
421
+ fieldId: string;
422
+ fieldType: string;
423
+ locale?: string | undefined;
424
+ editInstructions?: string | undefined;
425
+ fromLocale?: string | undefined;
426
+ overridable?: "yes" | "no" | undefined;
427
+ }>, "many">>;
428
+ localeUpdates: zod.ZodOptional<zod.ZodObject<{
429
+ enableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
430
+ disableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
431
+ }, "strip", zod.ZodTypeAny, {
432
+ enableLocales?: string[] | undefined;
433
+ disableLocales?: string[] | undefined;
434
+ }, {
435
+ enableLocales?: string[] | undefined;
436
+ disableLocales?: string[] | undefined;
437
+ }>>;
438
+ }, "strip", zod.ZodTypeAny, {
439
+ type?: string | undefined;
440
+ description?: string | undefined;
441
+ name?: string | undefined;
442
+ localeUpdates?: {
443
+ enableLocales?: string[] | undefined;
444
+ disableLocales?: string[] | undefined;
445
+ } | undefined;
446
+ fieldUpdates?: {
447
+ fieldId: string;
448
+ fieldType: string;
449
+ locale?: string | undefined;
450
+ editInstructions?: string | undefined;
451
+ fromLocale?: string | undefined;
452
+ overridable?: "yes" | "no" | undefined;
453
+ }[] | undefined;
454
+ }, {
455
+ type?: string | undefined;
456
+ description?: string | undefined;
457
+ name?: string | undefined;
458
+ localeUpdates?: {
459
+ enableLocales?: string[] | undefined;
460
+ disableLocales?: string[] | undefined;
461
+ } | undefined;
462
+ fieldUpdates?: {
463
+ fieldId: string;
464
+ fieldType: string;
465
+ locale?: string | undefined;
466
+ editInstructions?: string | undefined;
467
+ fromLocale?: string | undefined;
468
+ overridable?: "yes" | "no" | undefined;
469
+ }[] | undefined;
470
+ }>;
471
+ outputSchema: zod.ZodObject<{
472
+ success: zod.ZodBoolean;
473
+ actionsTaken: zod.ZodArray<zod.ZodObject<{
474
+ summary: zod.ZodOptional<zod.ZodString>;
475
+ success: zod.ZodBoolean;
476
+ }, "strip", zod.ZodTypeAny, {
477
+ success: boolean;
478
+ summary?: string | undefined;
479
+ }, {
480
+ success: boolean;
481
+ summary?: string | undefined;
482
+ }>, "many">;
483
+ }, "strip", zod.ZodTypeAny, {
484
+ success: boolean;
485
+ actionsTaken: {
486
+ success: boolean;
487
+ summary?: string | undefined;
488
+ }[];
489
+ }, {
490
+ success: boolean;
491
+ actionsTaken: {
492
+ success: boolean;
493
+ summary?: string | undefined;
494
+ }[];
495
+ }>;
496
+ runsAt: "client";
497
+ requiredInvocationContext: "entryPattern"[];
498
+ timeout: number;
499
+ };
500
+ applyPatternEdit: {
501
+ displayName: string;
502
+ description: string;
503
+ inputSchema: zod.ZodObject<{
504
+ createComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
505
+ parentComponentId: zod.ZodString;
506
+ slotName: zod.ZodString;
507
+ slotIndex: zod.ZodOptional<zod.ZodNumber>;
508
+ newComponentInstanceUuid: zod.ZodString;
509
+ instanceType: zod.ZodEnum<["component", "componentPattern"]>;
510
+ componentType: zod.ZodOptional<zod.ZodString>;
511
+ componentPatternId: zod.ZodOptional<zod.ZodString>;
512
+ }, "strip", zod.ZodTypeAny, {
513
+ parentComponentId: string;
514
+ slotName: string;
515
+ newComponentInstanceUuid: string;
516
+ instanceType: "componentPattern" | "component";
517
+ componentType?: string | undefined;
518
+ slotIndex?: number | undefined;
519
+ componentPatternId?: string | undefined;
520
+ }, {
521
+ parentComponentId: string;
522
+ slotName: string;
523
+ newComponentInstanceUuid: string;
524
+ instanceType: "componentPattern" | "component";
525
+ componentType?: string | undefined;
526
+ slotIndex?: number | undefined;
527
+ componentPatternId?: string | undefined;
528
+ }>, "many">>;
529
+ moveComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
530
+ componentId: zod.ZodString;
531
+ newParentComponentId: zod.ZodString;
532
+ newSlotName: zod.ZodString;
533
+ newSlotIndex: zod.ZodNumber;
534
+ }, "strip", zod.ZodTypeAny, {
535
+ componentId: string;
536
+ newParentComponentId: string;
537
+ newSlotName: string;
538
+ newSlotIndex: number;
539
+ }, {
540
+ componentId: string;
541
+ newParentComponentId: string;
542
+ newSlotName: string;
543
+ newSlotIndex: number;
544
+ }>, "many">>;
545
+ duplicateComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
546
+ deleteComponentInstances: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
547
+ } & {
548
+ name: zod.ZodOptional<zod.ZodString>;
549
+ type: zod.ZodOptional<zod.ZodString>;
550
+ description: zod.ZodOptional<zod.ZodString>;
551
+ parameterUpdates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
552
+ componentId: zod.ZodString;
553
+ parameterId: zod.ZodString;
554
+ parameterType: zod.ZodString;
555
+ fromLocale: zod.ZodOptional<zod.ZodString>;
556
+ locale: zod.ZodOptional<zod.ZodString>;
557
+ editInstructions: zod.ZodOptional<zod.ZodString>;
558
+ } & {
559
+ overridable: zod.ZodOptional<zod.ZodEnum<["yes", "no"]>>;
560
+ }, "strip", zod.ZodTypeAny, {
561
+ componentId: string;
562
+ parameterId: string;
563
+ parameterType: string;
564
+ locale?: string | undefined;
565
+ editInstructions?: string | undefined;
566
+ fromLocale?: string | undefined;
567
+ overridable?: "yes" | "no" | undefined;
568
+ }, {
569
+ componentId: string;
570
+ parameterId: string;
571
+ parameterType: string;
572
+ locale?: string | undefined;
573
+ editInstructions?: string | undefined;
574
+ fromLocale?: string | undefined;
575
+ overridable?: "yes" | "no" | undefined;
576
+ }>, "many">>;
577
+ dataResourceUpdates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
578
+ componentId: zod.ZodString;
579
+ dataResourceName: zod.ZodString;
580
+ editInstructions: zod.ZodOptional<zod.ZodString>;
581
+ }, "strip", zod.ZodTypeAny, {
582
+ componentId: string;
583
+ dataResourceName: string;
584
+ editInstructions?: string | undefined;
585
+ }, {
586
+ componentId: string;
587
+ dataResourceName: string;
588
+ editInstructions?: string | undefined;
589
+ }>, "many">>;
590
+ localeUpdates: zod.ZodOptional<zod.ZodObject<{
591
+ enableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
592
+ disableLocales: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
593
+ }, "strip", zod.ZodTypeAny, {
594
+ enableLocales?: string[] | undefined;
595
+ disableLocales?: string[] | undefined;
596
+ }, {
597
+ enableLocales?: string[] | undefined;
598
+ disableLocales?: string[] | undefined;
599
+ }>>;
600
+ }, "strip", zod.ZodTypeAny, {
601
+ type?: string | undefined;
602
+ description?: string | undefined;
603
+ name?: string | undefined;
604
+ createComponentInstances?: {
605
+ parentComponentId: string;
606
+ slotName: string;
607
+ newComponentInstanceUuid: string;
608
+ instanceType: "componentPattern" | "component";
609
+ componentType?: string | undefined;
610
+ slotIndex?: number | undefined;
611
+ componentPatternId?: string | undefined;
612
+ }[] | undefined;
613
+ moveComponentInstances?: {
614
+ componentId: string;
615
+ newParentComponentId: string;
616
+ newSlotName: string;
617
+ newSlotIndex: number;
618
+ }[] | undefined;
619
+ duplicateComponentInstances?: string[] | undefined;
620
+ deleteComponentInstances?: string[] | undefined;
621
+ dataResourceUpdates?: {
622
+ componentId: string;
623
+ dataResourceName: string;
624
+ editInstructions?: string | undefined;
625
+ }[] | undefined;
626
+ parameterUpdates?: {
627
+ componentId: string;
628
+ parameterId: string;
629
+ parameterType: string;
630
+ locale?: string | undefined;
631
+ editInstructions?: string | undefined;
632
+ fromLocale?: string | undefined;
633
+ overridable?: "yes" | "no" | undefined;
634
+ }[] | undefined;
635
+ localeUpdates?: {
636
+ enableLocales?: string[] | undefined;
637
+ disableLocales?: string[] | undefined;
638
+ } | undefined;
639
+ }, {
640
+ type?: string | undefined;
641
+ description?: string | undefined;
642
+ name?: string | undefined;
643
+ createComponentInstances?: {
644
+ parentComponentId: string;
645
+ slotName: string;
646
+ newComponentInstanceUuid: string;
647
+ instanceType: "componentPattern" | "component";
648
+ componentType?: string | undefined;
649
+ slotIndex?: number | undefined;
650
+ componentPatternId?: string | undefined;
651
+ }[] | undefined;
652
+ moveComponentInstances?: {
653
+ componentId: string;
654
+ newParentComponentId: string;
655
+ newSlotName: string;
656
+ newSlotIndex: number;
657
+ }[] | undefined;
658
+ duplicateComponentInstances?: string[] | undefined;
659
+ deleteComponentInstances?: string[] | undefined;
660
+ dataResourceUpdates?: {
661
+ componentId: string;
662
+ dataResourceName: string;
663
+ editInstructions?: string | undefined;
664
+ }[] | undefined;
665
+ parameterUpdates?: {
666
+ componentId: string;
667
+ parameterId: string;
668
+ parameterType: string;
669
+ locale?: string | undefined;
670
+ editInstructions?: string | undefined;
671
+ fromLocale?: string | undefined;
672
+ overridable?: "yes" | "no" | undefined;
673
+ }[] | undefined;
674
+ localeUpdates?: {
675
+ enableLocales?: string[] | undefined;
676
+ disableLocales?: string[] | undefined;
677
+ } | undefined;
678
+ }>;
679
+ outputSchema: zod.ZodObject<{
680
+ success: zod.ZodBoolean;
681
+ actionsTaken: zod.ZodArray<zod.ZodObject<{
682
+ summary: zod.ZodOptional<zod.ZodString>;
683
+ success: zod.ZodBoolean;
684
+ }, "strip", zod.ZodTypeAny, {
685
+ success: boolean;
686
+ summary?: string | undefined;
687
+ }, {
688
+ success: boolean;
689
+ summary?: string | undefined;
690
+ }>, "many">;
691
+ }, "strip", zod.ZodTypeAny, {
692
+ success: boolean;
693
+ actionsTaken: {
694
+ success: boolean;
695
+ summary?: string | undefined;
696
+ }[];
697
+ }, {
698
+ success: boolean;
699
+ actionsTaken: {
700
+ success: boolean;
701
+ summary?: string | undefined;
702
+ }[];
703
+ }>;
704
+ runsAt: "client";
705
+ requiredInvocationContext: ("compositionPattern" | "componentPattern")[];
706
+ timeout: number;
707
+ };
708
+ createDataResourceEdit: {
709
+ displayName: string;
710
+ description: string;
711
+ inputSchema: zod.ZodObject<{
712
+ edit: zod.ZodString;
713
+ dataType: zod.ZodString;
714
+ currentValue: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
715
+ dataSourceVariant: zod.ZodOptional<zod.ZodType<"unpublished", zod.ZodTypeDef, "unpublished">>;
716
+ }, "strip", zod.ZodTypeAny, {
717
+ edit: string;
718
+ dataType: string;
719
+ currentValue?: Record<string, string> | undefined;
720
+ dataSourceVariant?: "unpublished" | undefined;
721
+ }, {
722
+ edit: string;
723
+ dataType: string;
724
+ currentValue?: Record<string, string> | undefined;
725
+ dataSourceVariant?: "unpublished" | undefined;
726
+ }>;
727
+ outputSchema: zod.ZodObject<{
728
+ newValue: zod.ZodRecord<zod.ZodString, zod.ZodString>;
729
+ summary: zod.ZodOptional<zod.ZodString>;
730
+ action: zod.ZodEnum<["setValue", "resetOverride"]>;
731
+ success: zod.ZodBoolean;
732
+ }, "strip", zod.ZodTypeAny, {
733
+ success: boolean;
734
+ newValue: Record<string, string>;
735
+ action: "setValue" | "resetOverride";
736
+ summary?: string | undefined;
737
+ }, {
738
+ success: boolean;
739
+ newValue: Record<string, string>;
740
+ action: "setValue" | "resetOverride";
741
+ summary?: string | undefined;
742
+ }>;
743
+ runsAt: "server";
744
+ timeout: number;
745
+ callable: true;
746
+ };
747
+ createComposition: {
748
+ displayName: string;
749
+ description: string;
750
+ inputSchema: zod.ZodObject<{
751
+ name: zod.ZodString;
752
+ patternId: zod.ZodOptional<zod.ZodString>;
753
+ type: zod.ZodString;
754
+ projectMapNode: zod.ZodOptional<zod.ZodObject<{
755
+ parentNodeId: zod.ZodOptional<zod.ZodString>;
756
+ nodePathSegment: zod.ZodOptional<zod.ZodString>;
757
+ localePathSegments: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
758
+ locale: zod.ZodString;
759
+ pathSegment: zod.ZodString;
760
+ }, "strip", zod.ZodTypeAny, {
761
+ locale: string;
762
+ pathSegment: string;
763
+ }, {
764
+ locale: string;
765
+ pathSegment: string;
766
+ }>, "many">>;
767
+ allowedQueryStrings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
768
+ name: zod.ZodString;
769
+ defaultValue: zod.ZodOptional<zod.ZodString>;
770
+ }, "strip", zod.ZodTypeAny, {
771
+ name: string;
772
+ defaultValue?: string | undefined;
773
+ }, {
774
+ name: string;
775
+ defaultValue?: string | undefined;
776
+ }>, "many">>;
777
+ }, "strip", zod.ZodTypeAny, {
778
+ parentNodeId?: string | undefined;
779
+ nodePathSegment?: string | undefined;
780
+ localePathSegments?: {
781
+ locale: string;
782
+ pathSegment: string;
783
+ }[] | undefined;
784
+ allowedQueryStrings?: {
785
+ name: string;
786
+ defaultValue?: string | undefined;
787
+ }[] | undefined;
788
+ }, {
789
+ parentNodeId?: string | undefined;
790
+ nodePathSegment?: string | undefined;
791
+ localePathSegments?: {
792
+ locale: string;
793
+ pathSegment: string;
794
+ }[] | undefined;
795
+ allowedQueryStrings?: {
796
+ name: string;
797
+ defaultValue?: string | undefined;
798
+ }[] | undefined;
799
+ }>>;
800
+ }, "strip", zod.ZodTypeAny, {
801
+ type: string;
802
+ name: string;
803
+ patternId?: string | undefined;
804
+ projectMapNode?: {
805
+ parentNodeId?: string | undefined;
806
+ nodePathSegment?: string | undefined;
807
+ localePathSegments?: {
808
+ locale: string;
809
+ pathSegment: string;
810
+ }[] | undefined;
811
+ allowedQueryStrings?: {
812
+ name: string;
813
+ defaultValue?: string | undefined;
814
+ }[] | undefined;
815
+ } | undefined;
816
+ }, {
817
+ type: string;
818
+ name: string;
819
+ patternId?: string | undefined;
820
+ projectMapNode?: {
821
+ parentNodeId?: string | undefined;
822
+ nodePathSegment?: string | undefined;
823
+ localePathSegments?: {
824
+ locale: string;
825
+ pathSegment: string;
826
+ }[] | undefined;
827
+ allowedQueryStrings?: {
828
+ name: string;
829
+ defaultValue?: string | undefined;
830
+ }[] | undefined;
831
+ } | undefined;
832
+ }>;
833
+ outputSchema: zod.ZodObject<{
834
+ id: zod.ZodString;
835
+ editUrl: zod.ZodString;
836
+ message: zod.ZodOptional<zod.ZodString>;
837
+ projectMapNode: zod.ZodOptional<zod.ZodObject<{
838
+ path: zod.ZodString;
839
+ nodeId: zod.ZodString;
840
+ }, "strip", zod.ZodTypeAny, {
841
+ path: string;
842
+ nodeId: string;
843
+ }, {
844
+ path: string;
845
+ nodeId: string;
846
+ }>>;
847
+ }, "strip", zod.ZodTypeAny, {
848
+ id: string;
849
+ editUrl: string;
850
+ message?: string | undefined;
851
+ projectMapNode?: {
852
+ path: string;
853
+ nodeId: string;
854
+ } | undefined;
855
+ }, {
856
+ id: string;
857
+ editUrl: string;
858
+ message?: string | undefined;
859
+ projectMapNode?: {
860
+ path: string;
861
+ nodeId: string;
862
+ } | undefined;
863
+ }>;
864
+ runsAt: "client";
865
+ timeout: number;
866
+ };
867
+ createEntry: {
868
+ displayName: string;
869
+ description: string;
870
+ inputSchema: zod.ZodObject<{
871
+ patternId: zod.ZodOptional<zod.ZodString>;
872
+ type: zod.ZodString;
873
+ }, "strip", zod.ZodTypeAny, {
874
+ type: string;
875
+ patternId?: string | undefined;
876
+ }, {
877
+ type: string;
878
+ patternId?: string | undefined;
879
+ }>;
880
+ outputSchema: zod.ZodObject<{
881
+ id: zod.ZodString;
882
+ editUrl: zod.ZodString;
883
+ message: zod.ZodOptional<zod.ZodString>;
884
+ }, "strip", zod.ZodTypeAny, {
885
+ id: string;
886
+ editUrl: string;
887
+ message?: string | undefined;
888
+ }, {
889
+ id: string;
890
+ editUrl: string;
891
+ message?: string | undefined;
892
+ }>;
893
+ runsAt: "client";
894
+ timeout: number;
895
+ };
896
+ createPropertyEdit: {
897
+ displayName: string;
898
+ description: string;
899
+ inputSchema: zod.ZodObject<{
900
+ edit: zod.ZodString;
901
+ currentValue: zod.ZodOptional<zod.ZodUnknown>;
902
+ projectGuidance: zod.ZodOptional<zod.ZodString>;
903
+ componentGuidance: zod.ZodOptional<zod.ZodString>;
904
+ audienceGuidance: zod.ZodOptional<zod.ZodString>;
905
+ propertyDefinition: zod.ZodObject<{
906
+ id: zod.ZodString;
907
+ name: zod.ZodString;
908
+ type: zod.ZodString;
909
+ guidance: zod.ZodOptional<zod.ZodString>;
910
+ typeConfig: zod.ZodOptional<zod.ZodUnknown>;
911
+ }, "strip", zod.ZodTypeAny, {
912
+ type: string;
913
+ id: string;
914
+ name: string;
915
+ guidance?: string | undefined;
916
+ typeConfig?: unknown;
917
+ }, {
918
+ type: string;
919
+ id: string;
920
+ name: string;
921
+ guidance?: string | undefined;
922
+ typeConfig?: unknown;
923
+ }>;
924
+ outputLocale: zod.ZodOptional<zod.ZodString>;
925
+ documentContext: zod.ZodOptional<zod.ZodString>;
926
+ }, "strip", zod.ZodTypeAny, {
927
+ edit: string;
928
+ propertyDefinition: {
929
+ type: string;
930
+ id: string;
931
+ name: string;
932
+ guidance?: string | undefined;
933
+ typeConfig?: unknown;
934
+ };
935
+ currentValue?: unknown;
936
+ projectGuidance?: string | undefined;
937
+ componentGuidance?: string | undefined;
938
+ audienceGuidance?: string | undefined;
939
+ outputLocale?: string | undefined;
940
+ documentContext?: string | undefined;
941
+ }, {
942
+ edit: string;
943
+ propertyDefinition: {
944
+ type: string;
945
+ id: string;
946
+ name: string;
947
+ guidance?: string | undefined;
948
+ typeConfig?: unknown;
949
+ };
950
+ currentValue?: unknown;
951
+ projectGuidance?: string | undefined;
952
+ componentGuidance?: string | undefined;
953
+ audienceGuidance?: string | undefined;
954
+ outputLocale?: string | undefined;
955
+ documentContext?: string | undefined;
956
+ }>;
957
+ outputSchema: zod.ZodObject<{
958
+ newValue: zod.ZodString;
959
+ treatNewValueAsJson: zod.ZodBoolean;
960
+ summary: zod.ZodOptional<zod.ZodString>;
961
+ action: zod.ZodEnum<["setValue", "clearValue", "resetOverride"]>;
962
+ success: zod.ZodBoolean;
963
+ }, "strip", zod.ZodTypeAny, {
964
+ success: boolean;
965
+ newValue: string;
966
+ action: "setValue" | "resetOverride" | "clearValue";
967
+ treatNewValueAsJson: boolean;
968
+ summary?: string | undefined;
969
+ }, {
970
+ success: boolean;
971
+ newValue: string;
972
+ action: "setValue" | "resetOverride" | "clearValue";
973
+ treatNewValueAsJson: boolean;
974
+ summary?: string | undefined;
975
+ }>;
976
+ runsAt: "server";
977
+ timeout: number;
978
+ callable: true;
979
+ };
980
+ abTestComponent: {
981
+ displayName: string;
982
+ description: string;
983
+ requiredInvocationContext: ("composition" | "compositionPattern" | "componentPattern")[];
984
+ inputSchema: zod.ZodObject<{
985
+ testName: zod.ZodString;
986
+ controlName: zod.ZodString;
987
+ variantName: zod.ZodString;
988
+ componentId: zod.ZodString;
989
+ skipAddingSecondVariation: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
990
+ }, "strip", zod.ZodTypeAny, {
991
+ testName: string;
992
+ controlName: string;
993
+ variantName: string;
994
+ componentId: string;
995
+ skipAddingSecondVariation: boolean;
996
+ }, {
997
+ testName: string;
998
+ controlName: string;
999
+ variantName: string;
1000
+ componentId: string;
1001
+ skipAddingSecondVariation?: boolean | undefined;
1002
+ }>;
1003
+ outputSchema: zod.ZodObject<{
1004
+ message: zod.ZodString;
1005
+ }, "strip", zod.ZodTypeAny, {
1006
+ message: string;
1007
+ }, {
1008
+ message: string;
1009
+ }>;
1010
+ runsAt: "client";
1011
+ timeout: number;
1012
+ };
1013
+ declareTestWinner: {
1014
+ displayName: string;
1015
+ description: string;
1016
+ requiredInvocationContext: "composition"[];
1017
+ inputSchema: zod.ZodObject<{
1018
+ variantNodeId: zod.ZodString;
1019
+ }, "strip", zod.ZodTypeAny, {
1020
+ variantNodeId: string;
1021
+ }, {
1022
+ variantNodeId: string;
1023
+ }>;
1024
+ outputSchema: zod.ZodObject<{
1025
+ message: zod.ZodString;
1026
+ }, "strip", zod.ZodTypeAny, {
1027
+ message: string;
1028
+ }, {
1029
+ message: string;
1030
+ }>;
1031
+ runsAt: "client";
1032
+ timeout: number;
1033
+ };
1034
+ getAllowedComponentsInSlot: {
1035
+ displayName: string;
1036
+ description: string;
1037
+ inputSchema: zod.ZodObject<{
1038
+ parentComponentId: zod.ZodString;
1039
+ slotId: zod.ZodString;
1040
+ }, "strip", zod.ZodTypeAny, {
1041
+ parentComponentId: string;
1042
+ slotId: string;
1043
+ }, {
1044
+ parentComponentId: string;
1045
+ slotId: string;
1046
+ }>;
1047
+ outputSchema: zod.ZodObject<{
1048
+ allowedComponents: zod.ZodArray<zod.ZodObject<{
1049
+ id: zod.ZodString;
1050
+ name: zod.ZodString;
1051
+ type: zod.ZodEnum<["component", "pattern"]>;
1052
+ componentType: zod.ZodString;
1053
+ description: zod.ZodOptional<zod.ZodString>;
1054
+ isSystemComponent: zod.ZodOptional<zod.ZodBoolean>;
1055
+ }, "strip", zod.ZodTypeAny, {
1056
+ type: "component" | "pattern";
1057
+ id: string;
1058
+ name: string;
1059
+ componentType: string;
1060
+ description?: string | undefined;
1061
+ isSystemComponent?: boolean | undefined;
1062
+ }, {
1063
+ type: "component" | "pattern";
1064
+ id: string;
1065
+ name: string;
1066
+ componentType: string;
1067
+ description?: string | undefined;
1068
+ isSystemComponent?: boolean | undefined;
1069
+ }>, "many">;
1070
+ }, "strip", zod.ZodTypeAny, {
1071
+ allowedComponents: {
1072
+ type: "component" | "pattern";
1073
+ id: string;
1074
+ name: string;
1075
+ componentType: string;
1076
+ description?: string | undefined;
1077
+ isSystemComponent?: boolean | undefined;
1078
+ }[];
1079
+ }, {
1080
+ allowedComponents: {
1081
+ type: "component" | "pattern";
1082
+ id: string;
1083
+ name: string;
1084
+ componentType: string;
1085
+ description?: string | undefined;
1086
+ isSystemComponent?: boolean | undefined;
1087
+ }[];
1088
+ }>;
1089
+ requiredInvocationContext: ("composition" | "compositionPattern" | "componentPattern")[];
1090
+ runsAt: "client";
1091
+ timeout: number;
1092
+ };
1093
+ getDefinition: {
1094
+ displayName: string;
1095
+ description: string;
1096
+ inputSchema: zod.ZodObject<{
1097
+ type: zod.ZodString;
1098
+ entityType: zod.ZodOptional<zod.ZodEnum<["component", "contentType"]>>;
1099
+ }, "strip", zod.ZodTypeAny, {
1100
+ type: string;
1101
+ entityType?: "contentType" | "component" | undefined;
1102
+ }, {
1103
+ type: string;
1104
+ entityType?: "contentType" | "component" | undefined;
1105
+ }>;
1106
+ outputSchema: zod.ZodObject<{
1107
+ definition: zod.ZodUnknown;
1108
+ }, "strip", zod.ZodTypeAny, {
1109
+ definition?: unknown;
1110
+ }, {
1111
+ definition?: unknown;
1112
+ }>;
1113
+ runsAt: "client";
1114
+ timeout: number;
1115
+ };
1116
+ getPatternDefinition: {
1117
+ displayName: string;
1118
+ description: string;
1119
+ inputSchema: zod.ZodObject<{
1120
+ patternId: zod.ZodString;
1121
+ entityType: zod.ZodEnum<["component", "contentType"]>;
1122
+ includeDefinition: zod.ZodOptional<zod.ZodBoolean>;
1123
+ }, "strip", zod.ZodTypeAny, {
1124
+ entityType: "contentType" | "component";
1125
+ patternId: string;
1126
+ includeDefinition?: boolean | undefined;
1127
+ }, {
1128
+ entityType: "contentType" | "component";
1129
+ patternId: string;
1130
+ includeDefinition?: boolean | undefined;
1131
+ }>;
1132
+ outputSchema: zod.ZodObject<{
1133
+ pattern: zod.ZodUnknown;
1134
+ definition: zod.ZodOptional<zod.ZodUnknown>;
1135
+ }, "strip", zod.ZodTypeAny, {
1136
+ pattern?: unknown;
1137
+ definition?: unknown;
1138
+ }, {
1139
+ pattern?: unknown;
1140
+ definition?: unknown;
1141
+ }>;
1142
+ runsAt: "client";
1143
+ timeout: number;
1144
+ };
1145
+ listDefinitions: {
1146
+ displayName: string;
1147
+ description: string;
1148
+ inputSchema: zod.ZodObject<{
1149
+ entityType: zod.ZodOptional<zod.ZodEnum<["component", "contentType"]>>;
1150
+ includePatterns: zod.ZodOptional<zod.ZodBoolean>;
1151
+ }, "strip", zod.ZodTypeAny, {
1152
+ entityType?: "contentType" | "component" | undefined;
1153
+ includePatterns?: boolean | undefined;
1154
+ }, {
1155
+ entityType?: "contentType" | "component" | undefined;
1156
+ includePatterns?: boolean | undefined;
1157
+ }>;
1158
+ outputSchema: zod.ZodObject<{
1159
+ definitions: zod.ZodArray<zod.ZodDiscriminatedUnion<"entityType", [zod.ZodObject<{
1160
+ entityType: zod.ZodLiteral<"contentType">;
1161
+ publicId: zod.ZodString;
1162
+ name: zod.ZodString;
1163
+ }, "strip", zod.ZodTypeAny, {
1164
+ name: string;
1165
+ entityType: "contentType";
1166
+ publicId: string;
1167
+ }, {
1168
+ name: string;
1169
+ entityType: "contentType";
1170
+ publicId: string;
1171
+ }>, zod.ZodObject<{
1172
+ entityType: zod.ZodLiteral<"component">;
1173
+ publicId: zod.ZodString;
1174
+ name: zod.ZodString;
1175
+ }, "strip", zod.ZodTypeAny, {
1176
+ name: string;
1177
+ entityType: "component";
1178
+ publicId: string;
1179
+ }, {
1180
+ name: string;
1181
+ entityType: "component";
1182
+ publicId: string;
1183
+ }>, zod.ZodObject<{
1184
+ entityType: zod.ZodLiteral<"pattern">;
1185
+ patternId: zod.ZodString;
1186
+ definitionType: zod.ZodString;
1187
+ name: zod.ZodString;
1188
+ }, "strip", zod.ZodTypeAny, {
1189
+ name: string;
1190
+ entityType: "pattern";
1191
+ patternId: string;
1192
+ definitionType: string;
1193
+ }, {
1194
+ name: string;
1195
+ entityType: "pattern";
1196
+ patternId: string;
1197
+ definitionType: string;
1198
+ }>]>, "many">;
1199
+ }, "strip", zod.ZodTypeAny, {
1200
+ definitions: ({
1201
+ name: string;
1202
+ entityType: "contentType";
1203
+ publicId: string;
1204
+ } | {
1205
+ name: string;
1206
+ entityType: "component";
1207
+ publicId: string;
1208
+ } | {
1209
+ name: string;
1210
+ entityType: "pattern";
1211
+ patternId: string;
1212
+ definitionType: string;
1213
+ })[];
1214
+ }, {
1215
+ definitions: ({
1216
+ name: string;
1217
+ entityType: "contentType";
1218
+ publicId: string;
1219
+ } | {
1220
+ name: string;
1221
+ entityType: "component";
1222
+ publicId: string;
1223
+ } | {
1224
+ name: string;
1225
+ entityType: "pattern";
1226
+ patternId: string;
1227
+ definitionType: string;
1228
+ })[];
1229
+ }>;
1230
+ runsAt: "client";
1231
+ timeout: number;
1232
+ };
1233
+ getCurrentEditorState: {
1234
+ displayName: string;
1235
+ description: string;
1236
+ requiredInvocationContext: ("composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern")[];
1237
+ inputSchema: zod.ZodObject<{
1238
+ locale: zod.ZodString;
1239
+ }, "strip", zod.ZodTypeAny, {
1240
+ locale: string;
1241
+ }, {
1242
+ locale: string;
1243
+ }>;
1244
+ outputSchema: zod.ZodObject<{
1245
+ composition: zod.ZodUnknown;
1246
+ locale: zod.ZodOptional<zod.ZodString>;
1247
+ }, "strip", zod.ZodTypeAny, {
1248
+ composition?: unknown;
1249
+ locale?: string | undefined;
1250
+ }, {
1251
+ composition?: unknown;
1252
+ locale?: string | undefined;
1253
+ }>;
1254
+ runsAt: "client";
1255
+ timeout: number;
1256
+ executionModel: "reactive";
1257
+ };
1258
+ getOptimizationData: {
1259
+ displayName: string;
1260
+ description: string;
1261
+ inputSchema: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
1262
+ outputSchema: zod.ZodObject<{
1263
+ dimensions: zod.ZodArray<zod.ZodObject<{
1264
+ id: zod.ZodString;
1265
+ name: zod.ZodString;
1266
+ description: zod.ZodString;
1267
+ type: zod.ZodEnum<["audience", "intent", "signal", "enrichment"]>;
1268
+ category: zod.ZodOptional<zod.ZodString>;
1269
+ }, "strip", zod.ZodTypeAny, {
1270
+ type: "audience" | "intent" | "signal" | "enrichment";
1271
+ id: string;
1272
+ description: string;
1273
+ name: string;
1274
+ category?: string | undefined;
1275
+ }, {
1276
+ type: "audience" | "intent" | "signal" | "enrichment";
1277
+ id: string;
1278
+ description: string;
1279
+ name: string;
1280
+ category?: string | undefined;
1281
+ }>, "many">;
1282
+ quirks: zod.ZodArray<zod.ZodObject<{
1283
+ id: zod.ZodString;
1284
+ name: zod.ZodString;
1285
+ description: zod.ZodOptional<zod.ZodString>;
1286
+ options: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1287
+ name: zod.ZodString;
1288
+ value: zod.ZodString;
1289
+ }, "strip", zod.ZodTypeAny, {
1290
+ value: string;
1291
+ name: string;
1292
+ }, {
1293
+ value: string;
1294
+ name: string;
1295
+ }>, "many">>;
1296
+ }, "strip", zod.ZodTypeAny, {
1297
+ id: string;
1298
+ name: string;
1299
+ options?: {
1300
+ value: string;
1301
+ name: string;
1302
+ }[] | undefined;
1303
+ description?: string | undefined;
1304
+ }, {
1305
+ id: string;
1306
+ name: string;
1307
+ options?: {
1308
+ value: string;
1309
+ name: string;
1310
+ }[] | undefined;
1311
+ description?: string | undefined;
1312
+ }>, "many">;
1313
+ }, "strip", zod.ZodTypeAny, {
1314
+ dimensions: {
1315
+ type: "audience" | "intent" | "signal" | "enrichment";
1316
+ id: string;
1317
+ description: string;
1318
+ name: string;
1319
+ category?: string | undefined;
1320
+ }[];
1321
+ quirks: {
1322
+ id: string;
1323
+ name: string;
1324
+ options?: {
1325
+ value: string;
1326
+ name: string;
1327
+ }[] | undefined;
1328
+ description?: string | undefined;
1329
+ }[];
1330
+ }, {
1331
+ dimensions: {
1332
+ type: "audience" | "intent" | "signal" | "enrichment";
1333
+ id: string;
1334
+ description: string;
1335
+ name: string;
1336
+ category?: string | undefined;
1337
+ }[];
1338
+ quirks: {
1339
+ id: string;
1340
+ name: string;
1341
+ options?: {
1342
+ value: string;
1343
+ name: string;
1344
+ }[] | undefined;
1345
+ description?: string | undefined;
1346
+ }[];
1347
+ }>;
1348
+ runsAt: "client";
1349
+ timeout: number;
1350
+ executionModel: "reactive";
1351
+ };
1352
+ getPageInsights: {
1353
+ displayName: string;
1354
+ requiredInvocationContext: "composition"[];
1355
+ description: string;
1356
+ inputSchema: zod.ZodObject<{
1357
+ compositionId: zod.ZodString;
1358
+ dateStart: zod.ZodOptional<zod.ZodString>;
1359
+ dateRanges: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1360
+ dateStart: zod.ZodString;
1361
+ dateEnd: zod.ZodString;
1362
+ }, "strip", zod.ZodTypeAny, {
1363
+ dateStart: string;
1364
+ dateEnd: string;
1365
+ }, {
1366
+ dateStart: string;
1367
+ dateEnd: string;
1368
+ }>, "many">>;
1369
+ }, "strip", zod.ZodTypeAny, {
1370
+ compositionId: string;
1371
+ dateStart?: string | undefined;
1372
+ dateRanges?: {
1373
+ dateStart: string;
1374
+ dateEnd: string;
1375
+ }[] | undefined;
1376
+ }, {
1377
+ compositionId: string;
1378
+ dateStart?: string | undefined;
1379
+ dateRanges?: {
1380
+ dateStart: string;
1381
+ dateEnd: string;
1382
+ }[] | undefined;
1383
+ }>;
1384
+ outputSchema: zod.ZodObject<{
1385
+ message: zod.ZodString;
1386
+ chartData: zod.ZodOptional<zod.ZodArray<zod.ZodUnknown, "many">>;
1387
+ }, "strip", zod.ZodTypeAny, {
1388
+ message: string;
1389
+ chartData?: unknown[] | undefined;
1390
+ }, {
1391
+ message: string;
1392
+ chartData?: unknown[] | undefined;
1393
+ }>;
1394
+ runsAt: "client";
1395
+ timeout: number;
1396
+ };
1397
+ getPersonalizationStatistics: {
1398
+ displayName: string;
1399
+ requiredInvocationContext: "composition"[];
1400
+ description: string;
1401
+ inputSchema: zod.ZodObject<{
1402
+ personalizationContainerTrackingName: zod.ZodString;
1403
+ dateRanges: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1404
+ dateStart: zod.ZodString;
1405
+ dateEnd: zod.ZodString;
1406
+ }, "strip", zod.ZodTypeAny, {
1407
+ dateStart: string;
1408
+ dateEnd: string;
1409
+ }, {
1410
+ dateStart: string;
1411
+ dateEnd: string;
1412
+ }>, "many">>;
1413
+ }, "strip", zod.ZodTypeAny, {
1414
+ personalizationContainerTrackingName: string;
1415
+ dateRanges?: {
1416
+ dateStart: string;
1417
+ dateEnd: string;
1418
+ }[] | undefined;
1419
+ }, {
1420
+ personalizationContainerTrackingName: string;
1421
+ dateRanges?: {
1422
+ dateStart: string;
1423
+ dateEnd: string;
1424
+ }[] | undefined;
1425
+ }>;
1426
+ outputSchema: zod.ZodUnknown;
1427
+ runsAt: "client";
1428
+ timeout: number;
1429
+ };
1430
+ personalizeComponent: {
1431
+ displayName: string;
1432
+ description: string;
1433
+ requiredInvocationContext: ("composition" | "compositionPattern" | "componentPattern")[];
1434
+ inputSchema: zod.ZodObject<{
1435
+ trackingName: zod.ZodString;
1436
+ componentId: zod.ZodString;
1437
+ defaultVariationName: zod.ZodString;
1438
+ variations: zod.ZodArray<zod.ZodObject<{
1439
+ dimensionId: zod.ZodString;
1440
+ variationName: zod.ZodString;
1441
+ }, "strip", zod.ZodTypeAny, {
1442
+ dimensionId: string;
1443
+ variationName: string;
1444
+ }, {
1445
+ dimensionId: string;
1446
+ variationName: string;
1447
+ }>, "many">;
1448
+ }, "strip", zod.ZodTypeAny, {
1449
+ componentId: string;
1450
+ trackingName: string;
1451
+ defaultVariationName: string;
1452
+ variations: {
1453
+ dimensionId: string;
1454
+ variationName: string;
1455
+ }[];
1456
+ }, {
1457
+ componentId: string;
1458
+ trackingName: string;
1459
+ defaultVariationName: string;
1460
+ variations: {
1461
+ dimensionId: string;
1462
+ variationName: string;
1463
+ }[];
1464
+ }>;
1465
+ outputSchema: zod.ZodObject<{
1466
+ message: zod.ZodString;
1467
+ }, "strip", zod.ZodTypeAny, {
1468
+ message: string;
1469
+ }, {
1470
+ message: string;
1471
+ }>;
1472
+ runsAt: "client";
1473
+ timeout: number;
1474
+ };
1475
+ getTestStatistics: {
1476
+ displayName: string;
1477
+ requiredInvocationContext: "composition"[];
1478
+ description: string;
1479
+ inputSchema: zod.ZodObject<{
1480
+ testContainerTestId: zod.ZodString;
1481
+ dateRanges: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1482
+ dateStart: zod.ZodString;
1483
+ dateEnd: zod.ZodString;
1484
+ }, "strip", zod.ZodTypeAny, {
1485
+ dateStart: string;
1486
+ dateEnd: string;
1487
+ }, {
1488
+ dateStart: string;
1489
+ dateEnd: string;
1490
+ }>, "many">>;
1491
+ }, "strip", zod.ZodTypeAny, {
1492
+ testContainerTestId: string;
1493
+ dateRanges?: {
1494
+ dateStart: string;
1495
+ dateEnd: string;
1496
+ }[] | undefined;
1497
+ }, {
1498
+ testContainerTestId: string;
1499
+ dateRanges?: {
1500
+ dateStart: string;
1501
+ dateEnd: string;
1502
+ }[] | undefined;
1503
+ }>;
1504
+ outputSchema: zod.ZodObject<{
1505
+ message: zod.ZodString;
1506
+ }, "strip", zod.ZodTypeAny, {
1507
+ message: string;
1508
+ }, {
1509
+ message: string;
1510
+ }>;
1511
+ runsAt: "client";
1512
+ timeout: number;
1513
+ };
1514
+ navigateToUrl: {
1515
+ displayName: string;
1516
+ description: string;
1517
+ inputSchema: zod.ZodObject<{
1518
+ url: zod.ZodString;
1519
+ }, "strip", zod.ZodTypeAny, {
1520
+ url: string;
1521
+ }, {
1522
+ url: string;
1523
+ }>;
1524
+ outputSchema: zod.ZodObject<{
1525
+ message: zod.ZodString;
1526
+ }, "strip", zod.ZodTypeAny, {
1527
+ message: string;
1528
+ }, {
1529
+ message: string;
1530
+ }>;
1531
+ runsAt: "client";
1532
+ timeout: number;
1533
+ };
1534
+ renderChart: {
1535
+ displayName: string;
1536
+ requiredInvocationContext: "composition"[];
1537
+ description: string;
1538
+ inputSchema: zod.ZodObject<{
1539
+ chartData: zod.ZodObject<{
1540
+ type: zod.ZodString;
1541
+ data: zod.ZodObject<{
1542
+ labels: zod.ZodArray<zod.ZodString, "many">;
1543
+ datasets: zod.ZodArray<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>, "many">;
1544
+ }, "strip", zod.ZodTypeAny, {
1545
+ labels: string[];
1546
+ datasets: zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">[];
1547
+ }, {
1548
+ labels: string[];
1549
+ datasets: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">[];
1550
+ }>;
1551
+ }, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{
1552
+ type: zod.ZodString;
1553
+ data: zod.ZodObject<{
1554
+ labels: zod.ZodArray<zod.ZodString, "many">;
1555
+ datasets: zod.ZodArray<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>, "many">;
1556
+ }, "strip", zod.ZodTypeAny, {
1557
+ labels: string[];
1558
+ datasets: zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">[];
1559
+ }, {
1560
+ labels: string[];
1561
+ datasets: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">[];
1562
+ }>;
1563
+ }, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{
1564
+ type: zod.ZodString;
1565
+ data: zod.ZodObject<{
1566
+ labels: zod.ZodArray<zod.ZodString, "many">;
1567
+ datasets: zod.ZodArray<zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>, "many">;
1568
+ }, "strip", zod.ZodTypeAny, {
1569
+ labels: string[];
1570
+ datasets: zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">[];
1571
+ }, {
1572
+ labels: string[];
1573
+ datasets: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">[];
1574
+ }>;
1575
+ }, zod.ZodTypeAny, "passthrough">>;
1576
+ }, "strip", zod.ZodTypeAny, {
1577
+ chartData: {
1578
+ type: string;
1579
+ data: {
1580
+ labels: string[];
1581
+ datasets: zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">[];
1582
+ };
1583
+ } & {
1584
+ [k: string]: unknown;
1585
+ };
1586
+ }, {
1587
+ chartData: {
1588
+ type: string;
1589
+ data: {
1590
+ labels: string[];
1591
+ datasets: zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">[];
1592
+ };
1593
+ } & {
1594
+ [k: string]: unknown;
1595
+ };
1596
+ }>;
1597
+ outputSchema: zod.ZodObject<{
1598
+ success: zod.ZodBoolean;
1599
+ }, "strip", zod.ZodTypeAny, {
1600
+ success: boolean;
1601
+ }, {
1602
+ success: boolean;
1603
+ }>;
1604
+ runsAt: "client";
1605
+ timeout: number;
1606
+ };
1607
+ renderOpenGraphPreview: {
1608
+ displayName: string;
1609
+ requiredInvocationContext: "composition"[];
1610
+ description: string;
1611
+ inputSchema: zod.ZodObject<{
1612
+ title: zod.ZodOptional<zod.ZodString>;
1613
+ description: zod.ZodOptional<zod.ZodString>;
1614
+ imageUrl: zod.ZodOptional<zod.ZodString>;
1615
+ platform: zod.ZodOptional<zod.ZodEnum<["facebook", "linkedin", "twitter", "slack", "discord"]>>;
1616
+ }, "strip", zod.ZodTypeAny, {
1617
+ imageUrl?: string | undefined;
1618
+ title?: string | undefined;
1619
+ description?: string | undefined;
1620
+ platform?: "facebook" | "linkedin" | "twitter" | "slack" | "discord" | undefined;
1621
+ }, {
1622
+ imageUrl?: string | undefined;
1623
+ title?: string | undefined;
1624
+ description?: string | undefined;
1625
+ platform?: "facebook" | "linkedin" | "twitter" | "slack" | "discord" | undefined;
1626
+ }>;
1627
+ runsAt: "llm";
1628
+ };
1629
+ searchCompositions: {
1630
+ displayName: string;
1631
+ description: string;
1632
+ inputSchema: zod.ZodObject<{
1633
+ searchExpressionPrompt: zod.ZodString;
1634
+ username: zod.ZodString;
1635
+ locale: zod.ZodString;
1636
+ } & {
1637
+ type: zod.ZodEnum<["composition", "componentPattern", "compositionPattern"]>;
1638
+ showResults: zod.ZodEnum<["presented", "hidden"]>;
1639
+ }, "strip", zod.ZodTypeAny, {
1640
+ type: "composition" | "compositionPattern" | "componentPattern";
1641
+ locale: string;
1642
+ searchExpressionPrompt: string;
1643
+ username: string;
1644
+ showResults: "presented" | "hidden";
1645
+ }, {
1646
+ type: "composition" | "compositionPattern" | "componentPattern";
1647
+ locale: string;
1648
+ searchExpressionPrompt: string;
1649
+ username: string;
1650
+ showResults: "presented" | "hidden";
1651
+ }>;
1652
+ outputSchema: zod.ZodObject<{
1653
+ matches: zod.ZodArray<zod.ZodObject<{
1654
+ id: zod.ZodString;
1655
+ editionId: zod.ZodOptional<zod.ZodString>;
1656
+ name: zod.ZodString;
1657
+ createdAt: zod.ZodString;
1658
+ type: zod.ZodString;
1659
+ publishStatus: zod.ZodOptional<zod.ZodString>;
1660
+ }, "strip", zod.ZodTypeAny, {
1661
+ type: string;
1662
+ id: string;
1663
+ name: string;
1664
+ createdAt: string;
1665
+ editionId?: string | undefined;
1666
+ publishStatus?: string | undefined;
1667
+ }, {
1668
+ type: string;
1669
+ id: string;
1670
+ name: string;
1671
+ createdAt: string;
1672
+ editionId?: string | undefined;
1673
+ publishStatus?: string | undefined;
1674
+ }>, "many">;
1675
+ criteria: zod.ZodObject<{
1676
+ filter: zod.ZodArray<zod.ZodObject<{
1677
+ field: zod.ZodString;
1678
+ operator: zod.ZodString;
1679
+ value: zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>;
1680
+ }, "strip", zod.ZodTypeAny, {
1681
+ value: string | string[];
1682
+ operator: string;
1683
+ field: string;
1684
+ }, {
1685
+ value: string | string[];
1686
+ operator: string;
1687
+ field: string;
1688
+ }>, "many">;
1689
+ error: zod.ZodString;
1690
+ sort: zod.ZodArray<zod.ZodEnum<["created_at_ASC", "created_at_DESC", "updated_at_ASC", "updated_at_DESC", "author_ASC", "author_DESC", "creator_ASC", "creator_DESC", "name_ASC", "name_DESC", "slug_ASC", "slug_DESC"]>, "many">;
1691
+ limit: zod.ZodNumber;
1692
+ offset: zod.ZodNumber;
1693
+ keyword: zod.ZodString;
1694
+ locale: zod.ZodOptional<zod.ZodString>;
1695
+ }, "strip", zod.ZodTypeAny, {
1696
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1697
+ filter: {
1698
+ value: string | string[];
1699
+ operator: string;
1700
+ field: string;
1701
+ }[];
1702
+ error: string;
1703
+ limit: number;
1704
+ offset: number;
1705
+ keyword: string;
1706
+ locale?: string | undefined;
1707
+ }, {
1708
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1709
+ filter: {
1710
+ value: string | string[];
1711
+ operator: string;
1712
+ field: string;
1713
+ }[];
1714
+ error: string;
1715
+ limit: number;
1716
+ offset: number;
1717
+ keyword: string;
1718
+ locale?: string | undefined;
1719
+ }>;
1720
+ message: zod.ZodOptional<zod.ZodString>;
1721
+ error: zod.ZodString;
1722
+ }, "strip", zod.ZodTypeAny, {
1723
+ error: string;
1724
+ matches: {
1725
+ type: string;
1726
+ id: string;
1727
+ name: string;
1728
+ createdAt: string;
1729
+ editionId?: string | undefined;
1730
+ publishStatus?: string | undefined;
1731
+ }[];
1732
+ criteria: {
1733
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1734
+ filter: {
1735
+ value: string | string[];
1736
+ operator: string;
1737
+ field: string;
1738
+ }[];
1739
+ error: string;
1740
+ limit: number;
1741
+ offset: number;
1742
+ keyword: string;
1743
+ locale?: string | undefined;
1744
+ };
1745
+ message?: string | undefined;
1746
+ }, {
1747
+ error: string;
1748
+ matches: {
1749
+ type: string;
1750
+ id: string;
1751
+ name: string;
1752
+ createdAt: string;
1753
+ editionId?: string | undefined;
1754
+ publishStatus?: string | undefined;
1755
+ }[];
1756
+ criteria: {
1757
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1758
+ filter: {
1759
+ value: string | string[];
1760
+ operator: string;
1761
+ field: string;
1762
+ }[];
1763
+ error: string;
1764
+ limit: number;
1765
+ offset: number;
1766
+ keyword: string;
1767
+ locale?: string | undefined;
1768
+ };
1769
+ message?: string | undefined;
1770
+ }>;
1771
+ runsAt: "client";
1772
+ timeout: number;
1773
+ };
1774
+ searchEntries: {
1775
+ displayName: string;
1776
+ description: string;
1777
+ inputSchema: zod.ZodObject<{
1778
+ searchExpressionPrompt: zod.ZodString;
1779
+ username: zod.ZodString;
1780
+ locale: zod.ZodString;
1781
+ } & {
1782
+ type: zod.ZodEnum<["entry", "entryPattern"]>;
1783
+ showResults: zod.ZodEnum<["presented", "hidden"]>;
1784
+ }, "strip", zod.ZodTypeAny, {
1785
+ type: "entry" | "entryPattern";
1786
+ locale: string;
1787
+ searchExpressionPrompt: string;
1788
+ username: string;
1789
+ showResults: "presented" | "hidden";
1790
+ }, {
1791
+ type: "entry" | "entryPattern";
1792
+ locale: string;
1793
+ searchExpressionPrompt: string;
1794
+ username: string;
1795
+ showResults: "presented" | "hidden";
1796
+ }>;
1797
+ outputSchema: zod.ZodObject<{
1798
+ matches: zod.ZodArray<zod.ZodObject<{
1799
+ id: zod.ZodString;
1800
+ editionId: zod.ZodOptional<zod.ZodString>;
1801
+ name: zod.ZodString;
1802
+ createdAt: zod.ZodString;
1803
+ type: zod.ZodString;
1804
+ publishStatus: zod.ZodOptional<zod.ZodString>;
1805
+ }, "strip", zod.ZodTypeAny, {
1806
+ type: string;
1807
+ id: string;
1808
+ name: string;
1809
+ createdAt: string;
1810
+ editionId?: string | undefined;
1811
+ publishStatus?: string | undefined;
1812
+ }, {
1813
+ type: string;
1814
+ id: string;
1815
+ name: string;
1816
+ createdAt: string;
1817
+ editionId?: string | undefined;
1818
+ publishStatus?: string | undefined;
1819
+ }>, "many">;
1820
+ criteria: zod.ZodObject<{
1821
+ filter: zod.ZodArray<zod.ZodObject<{
1822
+ field: zod.ZodString;
1823
+ operator: zod.ZodString;
1824
+ value: zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>;
1825
+ }, "strip", zod.ZodTypeAny, {
1826
+ value: string | string[];
1827
+ operator: string;
1828
+ field: string;
1829
+ }, {
1830
+ value: string | string[];
1831
+ operator: string;
1832
+ field: string;
1833
+ }>, "many">;
1834
+ error: zod.ZodString;
1835
+ sort: zod.ZodArray<zod.ZodEnum<["created_at_ASC", "created_at_DESC", "updated_at_ASC", "updated_at_DESC", "author_ASC", "author_DESC", "creator_ASC", "creator_DESC", "name_ASC", "name_DESC", "slug_ASC", "slug_DESC"]>, "many">;
1836
+ limit: zod.ZodNumber;
1837
+ offset: zod.ZodNumber;
1838
+ keyword: zod.ZodString;
1839
+ locale: zod.ZodOptional<zod.ZodString>;
1840
+ }, "strip", zod.ZodTypeAny, {
1841
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1842
+ filter: {
1843
+ value: string | string[];
1844
+ operator: string;
1845
+ field: string;
1846
+ }[];
1847
+ error: string;
1848
+ limit: number;
1849
+ offset: number;
1850
+ keyword: string;
1851
+ locale?: string | undefined;
1852
+ }, {
1853
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1854
+ filter: {
1855
+ value: string | string[];
1856
+ operator: string;
1857
+ field: string;
1858
+ }[];
1859
+ error: string;
1860
+ limit: number;
1861
+ offset: number;
1862
+ keyword: string;
1863
+ locale?: string | undefined;
1864
+ }>;
1865
+ message: zod.ZodOptional<zod.ZodString>;
1866
+ error: zod.ZodString;
1867
+ }, "strip", zod.ZodTypeAny, {
1868
+ error: string;
1869
+ matches: {
1870
+ type: string;
1871
+ id: string;
1872
+ name: string;
1873
+ createdAt: string;
1874
+ editionId?: string | undefined;
1875
+ publishStatus?: string | undefined;
1876
+ }[];
1877
+ criteria: {
1878
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1879
+ filter: {
1880
+ value: string | string[];
1881
+ operator: string;
1882
+ field: string;
1883
+ }[];
1884
+ error: string;
1885
+ limit: number;
1886
+ offset: number;
1887
+ keyword: string;
1888
+ locale?: string | undefined;
1889
+ };
1890
+ message?: string | undefined;
1891
+ }, {
1892
+ error: string;
1893
+ matches: {
1894
+ type: string;
1895
+ id: string;
1896
+ name: string;
1897
+ createdAt: string;
1898
+ editionId?: string | undefined;
1899
+ publishStatus?: string | undefined;
1900
+ }[];
1901
+ criteria: {
1902
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
1903
+ filter: {
1904
+ value: string | string[];
1905
+ operator: string;
1906
+ field: string;
1907
+ }[];
1908
+ error: string;
1909
+ limit: number;
1910
+ offset: number;
1911
+ keyword: string;
1912
+ locale?: string | undefined;
1913
+ };
1914
+ message?: string | undefined;
1915
+ }>;
1916
+ runsAt: "client";
1917
+ timeout: number;
1918
+ };
1919
+ searchAssets: {
1920
+ displayName: string;
1921
+ description: string;
1922
+ inputSchema: zod.ZodObject<{
1923
+ query: zod.ZodString;
1924
+ }, "strip", zod.ZodTypeAny, {
1925
+ query: string;
1926
+ }, {
1927
+ query: string;
1928
+ }>;
1929
+ outputSchema: zod.ZodObject<{
1930
+ matches: zod.ZodArray<zod.ZodObject<{
1931
+ id: zod.ZodString;
1932
+ name: zod.ZodString;
1933
+ description: zod.ZodString;
1934
+ }, "strip", zod.ZodTypeAny, {
1935
+ id: string;
1936
+ description: string;
1937
+ name: string;
1938
+ }, {
1939
+ id: string;
1940
+ description: string;
1941
+ name: string;
1942
+ }>, "many">;
1943
+ message: zod.ZodOptional<zod.ZodString>;
1944
+ error: zod.ZodString;
1945
+ }, "strip", zod.ZodTypeAny, {
1946
+ error: string;
1947
+ matches: {
1948
+ id: string;
1949
+ description: string;
1950
+ name: string;
1951
+ }[];
1952
+ message?: string | undefined;
1953
+ }, {
1954
+ error: string;
1955
+ matches: {
1956
+ id: string;
1957
+ description: string;
1958
+ name: string;
1959
+ }[];
1960
+ message?: string | undefined;
1961
+ }>;
1962
+ runsAt: "client";
1963
+ timeout: number;
1964
+ };
1965
+ searchProjectMapNodes: {
1966
+ displayName: string;
1967
+ description: string;
1968
+ inputSchema: zod.ZodObject<{
1969
+ query: zod.ZodString;
1970
+ }, "strip", zod.ZodTypeAny, {
1971
+ query: string;
1972
+ }, {
1973
+ query: string;
1974
+ }>;
1975
+ outputSchema: zod.ZodObject<{
1976
+ matches: zod.ZodArray<zod.ZodObject<{
1977
+ id: zod.ZodString;
1978
+ name: zod.ZodString;
1979
+ path: zod.ZodString;
1980
+ }, "strip", zod.ZodTypeAny, {
1981
+ path: string;
1982
+ id: string;
1983
+ name: string;
1984
+ }, {
1985
+ path: string;
1986
+ id: string;
1987
+ name: string;
1988
+ }>, "many">;
1989
+ error: zod.ZodString;
1990
+ }, "strip", zod.ZodTypeAny, {
1991
+ error: string;
1992
+ matches: {
1993
+ path: string;
1994
+ id: string;
1995
+ name: string;
1996
+ }[];
1997
+ }, {
1998
+ error: string;
1999
+ matches: {
2000
+ path: string;
2001
+ id: string;
2002
+ name: string;
2003
+ }[];
2004
+ }>;
2005
+ runsAt: "client";
2006
+ timeout: number;
2007
+ };
2008
+ signalAction: {
2009
+ displayName: string;
2010
+ description: string;
2011
+ inputSchema: zod.ZodObject<{
2012
+ signalId: zod.ZodString;
2013
+ signalName: zod.ZodString;
2014
+ description: zod.ZodOptional<zod.ZodString>;
2015
+ criteriaType: zod.ZodOptional<zod.ZodEnum<["quirk", "queryString"]>>;
2016
+ key: zod.ZodOptional<zod.ZodString>;
2017
+ value: zod.ZodOptional<zod.ZodString>;
2018
+ operator: zod.ZodOptional<zod.ZodEnum<["equal", "not equal", "contains", "not contains"]>>;
2019
+ }, "strip", zod.ZodTypeAny, {
2020
+ signalId: string;
2021
+ signalName: string;
2022
+ value?: string | undefined;
2023
+ description?: string | undefined;
2024
+ criteriaType?: "quirk" | "queryString" | undefined;
2025
+ key?: string | undefined;
2026
+ operator?: "equal" | "not equal" | "contains" | "not contains" | undefined;
2027
+ }, {
2028
+ signalId: string;
2029
+ signalName: string;
2030
+ value?: string | undefined;
2031
+ description?: string | undefined;
2032
+ criteriaType?: "quirk" | "queryString" | undefined;
2033
+ key?: string | undefined;
2034
+ operator?: "equal" | "not equal" | "contains" | "not contains" | undefined;
2035
+ }>;
2036
+ outputSchema: zod.ZodObject<{
2037
+ message: zod.ZodString;
2038
+ editLink: zod.ZodOptional<zod.ZodString>;
2039
+ }, "strip", zod.ZodTypeAny, {
2040
+ message: string;
2041
+ editLink?: string | undefined;
2042
+ }, {
2043
+ message: string;
2044
+ editLink?: string | undefined;
2045
+ }>;
2046
+ runsAt: "client";
2047
+ timeout: number;
2048
+ };
2049
+ createFilterExpression: {
2050
+ displayName: string;
2051
+ description: string;
2052
+ inputSchema: zod.ZodObject<{
2053
+ searchExpressionPrompt: zod.ZodString;
2054
+ username: zod.ZodString;
2055
+ locale: zod.ZodString;
2056
+ } & {
2057
+ entityType: zod.ZodEnum<["composition", "entry", "componentPattern", "compositionPattern", "entryPattern"]>;
2058
+ }, "strip", zod.ZodTypeAny, {
2059
+ locale: string;
2060
+ entityType: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern";
2061
+ searchExpressionPrompt: string;
2062
+ username: string;
2063
+ }, {
2064
+ locale: string;
2065
+ entityType: "composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern";
2066
+ searchExpressionPrompt: string;
2067
+ username: string;
2068
+ }>;
2069
+ outputSchema: zod.ZodObject<{
2070
+ filter: zod.ZodArray<zod.ZodObject<{
2071
+ field: zod.ZodString;
2072
+ operator: zod.ZodString;
2073
+ value: zod.ZodUnion<[zod.ZodString, zod.ZodArray<zod.ZodString, "many">]>;
2074
+ }, "strip", zod.ZodTypeAny, {
2075
+ value: string | string[];
2076
+ operator: string;
2077
+ field: string;
2078
+ }, {
2079
+ value: string | string[];
2080
+ operator: string;
2081
+ field: string;
2082
+ }>, "many">;
2083
+ error: zod.ZodString;
2084
+ sort: zod.ZodArray<zod.ZodEnum<["created_at_ASC", "created_at_DESC", "updated_at_ASC", "updated_at_DESC", "author_ASC", "author_DESC", "creator_ASC", "creator_DESC", "name_ASC", "name_DESC", "slug_ASC", "slug_DESC"]>, "many">;
2085
+ limit: zod.ZodNumber;
2086
+ offset: zod.ZodNumber;
2087
+ keyword: zod.ZodString;
2088
+ locale: zod.ZodOptional<zod.ZodString>;
2089
+ }, "strip", zod.ZodTypeAny, {
2090
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
2091
+ filter: {
2092
+ value: string | string[];
2093
+ operator: string;
2094
+ field: string;
2095
+ }[];
2096
+ error: string;
2097
+ limit: number;
2098
+ offset: number;
2099
+ keyword: string;
2100
+ locale?: string | undefined;
2101
+ }, {
2102
+ sort: ("created_at_ASC" | "created_at_DESC" | "updated_at_ASC" | "updated_at_DESC" | "author_ASC" | "author_DESC" | "creator_ASC" | "creator_DESC" | "name_ASC" | "name_DESC" | "slug_ASC" | "slug_DESC")[];
2103
+ filter: {
2104
+ value: string | string[];
2105
+ operator: string;
2106
+ field: string;
2107
+ }[];
2108
+ error: string;
2109
+ limit: number;
2110
+ offset: number;
2111
+ keyword: string;
2112
+ locale?: string | undefined;
2113
+ }>;
2114
+ runsAt: "server";
2115
+ timeout: number;
2116
+ callable: true;
2117
+ };
2118
+ changeCurrentLocale: {
2119
+ displayName: string;
2120
+ description: string;
2121
+ requiredInvocationContext: ("composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern")[];
2122
+ inputSchema: zod.ZodObject<{
2123
+ locale: zod.ZodString;
2124
+ }, "strip", zod.ZodTypeAny, {
2125
+ locale: string;
2126
+ }, {
2127
+ locale: string;
2128
+ }>;
2129
+ outputSchema: zod.ZodObject<{
2130
+ result: zod.ZodString;
2131
+ wasEnabled: zod.ZodBoolean;
2132
+ }, "strip", zod.ZodTypeAny, {
2133
+ result: string;
2134
+ wasEnabled: boolean;
2135
+ }, {
2136
+ result: string;
2137
+ wasEnabled: boolean;
2138
+ }>;
2139
+ runsAt: "client";
2140
+ timeout: number;
2141
+ };
2142
+ handleIntegrationTool: {
2143
+ displayName: string;
2144
+ description: string;
2145
+ inputSchema: zod.ZodUnknown;
2146
+ outputSchema: zod.ZodObject<{
2147
+ message: zod.ZodString;
2148
+ image: zod.ZodOptional<zod.ZodObject<{
2149
+ url: zod.ZodString;
2150
+ description: zod.ZodString;
2151
+ width: zod.ZodNumber;
2152
+ height: zod.ZodNumber;
2153
+ }, "strip", zod.ZodTypeAny, {
2154
+ description: string;
2155
+ url: string;
2156
+ width: number;
2157
+ height: number;
2158
+ }, {
2159
+ description: string;
2160
+ url: string;
2161
+ width: number;
2162
+ height: number;
2163
+ }>>;
2164
+ inlineIframe: zod.ZodOptional<zod.ZodObject<{
2165
+ url: zod.ZodString;
2166
+ description: zod.ZodString;
2167
+ width: zod.ZodNumber;
2168
+ height: zod.ZodNumber;
2169
+ }, "strip", zod.ZodTypeAny, {
2170
+ description: string;
2171
+ url: string;
2172
+ width: number;
2173
+ height: number;
2174
+ }, {
2175
+ description: string;
2176
+ url: string;
2177
+ width: number;
2178
+ height: number;
2179
+ }>>;
2180
+ detailedIframe: zod.ZodOptional<zod.ZodObject<{
2181
+ url: zod.ZodString;
2182
+ title: zod.ZodString;
2183
+ buttonLabel: zod.ZodString;
2184
+ }, "strip", zod.ZodTypeAny, {
2185
+ title: string;
2186
+ url: string;
2187
+ buttonLabel: string;
2188
+ }, {
2189
+ title: string;
2190
+ url: string;
2191
+ buttonLabel: string;
2192
+ }>>;
2193
+ }, "strip", zod.ZodTypeAny, {
2194
+ message: string;
2195
+ image?: {
2196
+ description: string;
2197
+ url: string;
2198
+ width: number;
2199
+ height: number;
2200
+ } | undefined;
2201
+ inlineIframe?: {
2202
+ description: string;
2203
+ url: string;
2204
+ width: number;
2205
+ height: number;
2206
+ } | undefined;
2207
+ detailedIframe?: {
2208
+ title: string;
2209
+ url: string;
2210
+ buttonLabel: string;
2211
+ } | undefined;
2212
+ }, {
2213
+ message: string;
2214
+ image?: {
2215
+ description: string;
2216
+ url: string;
2217
+ width: number;
2218
+ height: number;
2219
+ } | undefined;
2220
+ inlineIframe?: {
2221
+ description: string;
2222
+ url: string;
2223
+ width: number;
2224
+ height: number;
2225
+ } | undefined;
2226
+ detailedIframe?: {
2227
+ title: string;
2228
+ url: string;
2229
+ buttonLabel: string;
2230
+ } | undefined;
2231
+ }>;
2232
+ requiredInvocationContext: ("composition" | "compositionPattern" | "componentPattern" | "entry" | "entryPattern")[];
2233
+ runsAt: "server";
2234
+ timeout: number;
2235
+ callable: false;
2236
+ };
2237
+ proposeEntityName: {
2238
+ displayName: string;
2239
+ description: string;
2240
+ inputSchema: zod.ZodObject<{
2241
+ context: zod.ZodString;
2242
+ }, "strip", zod.ZodTypeAny, {
2243
+ context: string;
2244
+ }, {
2245
+ context: string;
2246
+ }>;
2247
+ outputSchema: zod.ZodObject<{
2248
+ recommendedName: zod.ZodString;
2249
+ }, "strip", zod.ZodTypeAny, {
2250
+ recommendedName: string;
2251
+ }, {
2252
+ recommendedName: string;
2253
+ }>;
2254
+ runsAt: "server";
2255
+ timeout: number;
2256
+ callable: true;
2257
+ };
2258
+ analyzeImage: {
2259
+ displayName: string;
2260
+ description: string;
2261
+ inputSchema: zod.ZodObject<{
2262
+ imageUrl: zod.ZodString;
2263
+ contentType: zod.ZodOptional<zod.ZodString>;
2264
+ fileName: zod.ZodOptional<zod.ZodString>;
2265
+ }, "strip", zod.ZodTypeAny, {
2266
+ imageUrl: string;
2267
+ contentType?: string | undefined;
2268
+ fileName?: string | undefined;
2269
+ }, {
2270
+ imageUrl: string;
2271
+ contentType?: string | undefined;
2272
+ fileName?: string | undefined;
2273
+ }>;
2274
+ outputSchema: zod.ZodObject<{
2275
+ title: zod.ZodString;
2276
+ description: zod.ZodString;
2277
+ focalPoint: zod.ZodOptional<zod.ZodObject<{
2278
+ x: zod.ZodNumber;
2279
+ y: zod.ZodNumber;
2280
+ }, "strip", zod.ZodTypeAny, {
2281
+ x: number;
2282
+ y: number;
2283
+ }, {
2284
+ x: number;
2285
+ y: number;
2286
+ }>>;
2287
+ error: zod.ZodString;
2288
+ }, "strip", zod.ZodTypeAny, {
2289
+ title: string;
2290
+ description: string;
2291
+ error: string;
2292
+ focalPoint?: {
2293
+ x: number;
2294
+ y: number;
2295
+ } | undefined;
2296
+ }, {
2297
+ title: string;
2298
+ description: string;
2299
+ error: string;
2300
+ focalPoint?: {
2301
+ x: number;
2302
+ y: number;
2303
+ } | undefined;
2304
+ }>;
2305
+ runsAt: "server";
2306
+ timeout: number;
2307
+ callable: true;
2308
+ };
2309
+ };
2310
+
2311
+ /**
2312
+ * Defines invocation contexts for AI chat agents.
2313
+ */
2314
+ declare const invocationContextsSchema: z.ZodEnum<["composition", "compositionPattern", "componentPattern", "entry", "entryPattern", "general"]>;
2315
+ /**
2316
+ * Named contexts where an AI chat can be invoked.
2317
+ * Allows agents to provide context-specific instructions and tools.
2318
+ */
2319
+ type InvocationContexts = z.infer<typeof invocationContextsSchema>;
2320
+
2321
+ /**
2322
+ * Defines a server side tool. Server side tools are executed and resolved on the server side;
2323
+ * they can also have a UI side that causes their results to render components in the UI.
2324
+ */
2325
+ interface ServerSideToolDefinition<TInputSchema extends z.ZodSchema = z.ZodSchema, TOutputSchema extends z.ZodSchema = z.ZodSchema> extends CommonToolDefinition<TInputSchema> {
2326
+ /**
2327
+ * The schema of the output data for the tool.
2328
+ */
2329
+ outputSchema: TOutputSchema;
2330
+ /** The environment where the tool can run. */
2331
+ runsAt: 'server';
2332
+ /** The maximum amount of time the tool can run before resolving as an error (in seconds). */
2333
+ timeout?: number;
2334
+ /** Callable tools can be invoked directly via a REST call to the AI tools endpoint, without an agent context. */
2335
+ callable?: boolean;
2336
+ }
2337
+ interface CommonToolDefinition<TInputSchema extends z.ZodSchema = z.ZodSchema> {
2338
+ /** A friendly name of the tool. Used if mentioning the tool in an error message, or when executing. */
2339
+ displayName: string;
2340
+ /** A description of the tool. Passed to the LLM to help it understand the tool and when to use it.*/
2341
+ description: string;
2342
+ /**
2343
+ * The invocation contexts in which the tool can be invoked
2344
+ *
2345
+ * NOTE: completed tool calls can be rendered in any invocation context
2346
+ * (e.g. a chart tool that requires a composition should still be able to render the chart when on an entry,
2347
+ * but it cannot create a new chart without being invoked in a composition)
2348
+ *
2349
+ * NOTE: requiredInvocationContext also alters the React tree location where a client-side handler component renders.
2350
+ * When it is NOT set, the handler component renders as part of the layout. When set, it renders within the
2351
+ * invocation context provider that set the invocation context, allowing it access to invocation-context-specific react contexts.
2352
+ */
2353
+ requiredInvocationContext?: Array<InvocationContexts>;
2354
+ /** The schema of the input data for the tool. */
2355
+ inputSchema?: TInputSchema;
2356
+ }
2357
+
2358
+ /**
2359
+ * Interface for invoking callable AI tools.
2360
+ * Allows switching between HTTP calls (for external/stdio usage) and direct code calls (for backend usage).
2361
+ */
2362
+ interface CallableAIToolInvoker {
2363
+ /**
2364
+ * Invokes a _callable_ tool and returns the result.
2365
+ *
2366
+ * IMPORTANT: All named tools will be available for `toolId`, but it MUST
2367
+ * be marked as callable in the tool definition, or an error will be returned.
2368
+ */
2369
+ invoke<T extends keyof typeof toolDefinitions>(toolId: T, input: (typeof toolDefinitions)[T] extends ServerSideToolDefinition ? z.infer<(typeof toolDefinitions)[T]['inputSchema']> : void): Promise<(typeof toolDefinitions)[T] extends ServerSideToolDefinition ? z.infer<(typeof toolDefinitions)[T]['outputSchema']> : void>;
2370
+ }
2371
+
2372
+ interface UniformMcpEnv {
2373
+ apiKey: string;
2374
+ projectId: string;
2375
+ apiHost: string;
2376
+ baseWebUrl: string;
2377
+ toolInvoker: CallableAIToolInvoker;
2378
+ }
2379
+
2380
+ /**
2381
+ * Configures an MCP server with all Uniform MCP tools
2382
+ */
2383
+ declare function configureServer(server: McpServer, env: UniformMcpEnv): void;
2384
+
2385
+ export { type UniformMcpEnv, configureServer };