@modelcontextprotocol/ext-apps 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/app-bridge.js +16 -15
- package/dist/src/app.js +16 -15
- package/dist/src/generated/schema.d.ts +1 -44
- package/dist/src/generated/schema.test.d.ts +1 -1
- package/dist/src/react/index.js +16 -15
- package/dist/src/server/index.js +16 -15
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
3
|
* @description Color theme preference for the host environment.
|
|
4
4
|
*/
|
|
@@ -36,7 +36,6 @@ export declare const McpUiOpenLinkRequestSchema: z.ZodObject<{
|
|
|
36
36
|
* @see {@link McpUiOpenLinkRequest}
|
|
37
37
|
*/
|
|
38
38
|
export declare const McpUiOpenLinkResultSchema: z.ZodObject<{
|
|
39
|
-
/** @description True if the host failed to open the URL (e.g., due to security policy). */
|
|
40
39
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
41
40
|
}, z.core.$loose>;
|
|
42
41
|
/**
|
|
@@ -44,7 +43,6 @@ export declare const McpUiOpenLinkResultSchema: z.ZodObject<{
|
|
|
44
43
|
* @see {@link McpUiMessageRequest}
|
|
45
44
|
*/
|
|
46
45
|
export declare const McpUiMessageResultSchema: z.ZodObject<{
|
|
47
|
-
/** @description True if the host rejected or failed to deliver the message. */
|
|
48
46
|
isError: z.ZodOptional<z.ZodBoolean>;
|
|
49
47
|
}, z.core.$loose>;
|
|
50
48
|
/**
|
|
@@ -208,7 +206,6 @@ export declare const McpUiRequestDisplayModeRequestSchema: z.ZodObject<{
|
|
|
208
206
|
* @see {@link McpUiRequestDisplayModeRequest}
|
|
209
207
|
*/
|
|
210
208
|
export declare const McpUiRequestDisplayModeResultSchema: z.ZodObject<{
|
|
211
|
-
/** @description The display mode that was actually set. May differ from requested if not supported. */
|
|
212
209
|
mode: z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>;
|
|
213
210
|
}, z.core.$loose>;
|
|
214
211
|
/**
|
|
@@ -415,7 +412,6 @@ export declare const McpUiToolResultNotificationSchema: z.ZodObject<{
|
|
|
415
412
|
* @description Rich context about the host environment provided to Guest UIs.
|
|
416
413
|
*/
|
|
417
414
|
export declare const McpUiHostContextSchema: z.ZodObject<{
|
|
418
|
-
/** @description Metadata of the tool call that instantiated this App. */
|
|
419
415
|
toolInfo: z.ZodOptional<z.ZodObject<{
|
|
420
416
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
421
417
|
tool: z.ZodObject<{
|
|
@@ -454,40 +450,29 @@ export declare const McpUiHostContextSchema: z.ZodObject<{
|
|
|
454
450
|
title: z.ZodOptional<z.ZodString>;
|
|
455
451
|
}, z.core.$strip>;
|
|
456
452
|
}, z.core.$strip>>;
|
|
457
|
-
/** @description Current color theme preference. */
|
|
458
453
|
theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
459
|
-
/** @description Style configuration for theming the app. */
|
|
460
454
|
styles: z.ZodOptional<z.ZodObject<{
|
|
461
455
|
variables: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>>;
|
|
462
456
|
css: z.ZodOptional<z.ZodObject<{
|
|
463
457
|
fonts: z.ZodOptional<z.ZodString>;
|
|
464
458
|
}, z.core.$strip>>;
|
|
465
459
|
}, z.core.$strip>>;
|
|
466
|
-
/** @description How the UI is currently displayed. */
|
|
467
460
|
displayMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>;
|
|
468
|
-
/** @description Display modes the host supports. */
|
|
469
461
|
availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
470
|
-
/** @description Current and maximum dimensions available to the UI. */
|
|
471
462
|
viewport: z.ZodOptional<z.ZodObject<{
|
|
472
463
|
width: z.ZodNumber;
|
|
473
464
|
height: z.ZodNumber;
|
|
474
465
|
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
475
466
|
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
476
467
|
}, z.core.$strip>>;
|
|
477
|
-
/** @description User's language and region preference in BCP 47 format. */
|
|
478
468
|
locale: z.ZodOptional<z.ZodString>;
|
|
479
|
-
/** @description User's timezone in IANA format. */
|
|
480
469
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
481
|
-
/** @description Host application identifier. */
|
|
482
470
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
483
|
-
/** @description Platform type for responsive design decisions. */
|
|
484
471
|
platform: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"web">, z.ZodLiteral<"desktop">, z.ZodLiteral<"mobile">]>>;
|
|
485
|
-
/** @description Device input capabilities. */
|
|
486
472
|
deviceCapabilities: z.ZodOptional<z.ZodObject<{
|
|
487
473
|
touch: z.ZodOptional<z.ZodBoolean>;
|
|
488
474
|
hover: z.ZodOptional<z.ZodBoolean>;
|
|
489
475
|
}, z.core.$strip>>;
|
|
490
|
-
/** @description Mobile safe area boundaries in pixels. */
|
|
491
476
|
safeAreaInsets: z.ZodOptional<z.ZodObject<{
|
|
492
477
|
top: z.ZodNumber;
|
|
493
478
|
right: z.ZodNumber;
|
|
@@ -502,7 +487,6 @@ export declare const McpUiHostContextSchema: z.ZodObject<{
|
|
|
502
487
|
export declare const McpUiHostContextChangedNotificationSchema: z.ZodObject<{
|
|
503
488
|
method: z.ZodLiteral<"ui/notifications/host-context-changed">;
|
|
504
489
|
params: z.ZodObject<{
|
|
505
|
-
/** @description Metadata of the tool call that instantiated this App. */
|
|
506
490
|
toolInfo: z.ZodOptional<z.ZodObject<{
|
|
507
491
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
508
492
|
tool: z.ZodObject<{
|
|
@@ -541,40 +525,29 @@ export declare const McpUiHostContextChangedNotificationSchema: z.ZodObject<{
|
|
|
541
525
|
title: z.ZodOptional<z.ZodString>;
|
|
542
526
|
}, z.core.$strip>;
|
|
543
527
|
}, z.core.$strip>>;
|
|
544
|
-
/** @description Current color theme preference. */
|
|
545
528
|
theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
546
|
-
/** @description Style configuration for theming the app. */
|
|
547
529
|
styles: z.ZodOptional<z.ZodObject<{
|
|
548
530
|
variables: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>>;
|
|
549
531
|
css: z.ZodOptional<z.ZodObject<{
|
|
550
532
|
fonts: z.ZodOptional<z.ZodString>;
|
|
551
533
|
}, z.core.$strip>>;
|
|
552
534
|
}, z.core.$strip>>;
|
|
553
|
-
/** @description How the UI is currently displayed. */
|
|
554
535
|
displayMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>;
|
|
555
|
-
/** @description Display modes the host supports. */
|
|
556
536
|
availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
557
|
-
/** @description Current and maximum dimensions available to the UI. */
|
|
558
537
|
viewport: z.ZodOptional<z.ZodObject<{
|
|
559
538
|
width: z.ZodNumber;
|
|
560
539
|
height: z.ZodNumber;
|
|
561
540
|
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
562
541
|
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
563
542
|
}, z.core.$strip>>;
|
|
564
|
-
/** @description User's language and region preference in BCP 47 format. */
|
|
565
543
|
locale: z.ZodOptional<z.ZodString>;
|
|
566
|
-
/** @description User's timezone in IANA format. */
|
|
567
544
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
568
|
-
/** @description Host application identifier. */
|
|
569
545
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
570
|
-
/** @description Platform type for responsive design decisions. */
|
|
571
546
|
platform: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"web">, z.ZodLiteral<"desktop">, z.ZodLiteral<"mobile">]>>;
|
|
572
|
-
/** @description Device input capabilities. */
|
|
573
547
|
deviceCapabilities: z.ZodOptional<z.ZodObject<{
|
|
574
548
|
touch: z.ZodOptional<z.ZodBoolean>;
|
|
575
549
|
hover: z.ZodOptional<z.ZodBoolean>;
|
|
576
550
|
}, z.core.$strip>>;
|
|
577
|
-
/** @description Mobile safe area boundaries in pixels. */
|
|
578
551
|
safeAreaInsets: z.ZodOptional<z.ZodObject<{
|
|
579
552
|
top: z.ZodNumber;
|
|
580
553
|
right: z.ZodNumber;
|
|
@@ -615,9 +588,7 @@ export declare const McpUiInitializeRequestSchema: z.ZodObject<{
|
|
|
615
588
|
* @see {@link McpUiInitializeRequest}
|
|
616
589
|
*/
|
|
617
590
|
export declare const McpUiInitializeResultSchema: z.ZodObject<{
|
|
618
|
-
/** @description Negotiated protocol version string (e.g., "2025-11-21"). */
|
|
619
591
|
protocolVersion: z.ZodString;
|
|
620
|
-
/** @description Host application identification and version. */
|
|
621
592
|
hostInfo: z.ZodObject<{
|
|
622
593
|
version: z.ZodString;
|
|
623
594
|
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -629,7 +600,6 @@ export declare const McpUiInitializeResultSchema: z.ZodObject<{
|
|
|
629
600
|
name: z.ZodString;
|
|
630
601
|
title: z.ZodOptional<z.ZodString>;
|
|
631
602
|
}, z.core.$strip>;
|
|
632
|
-
/** @description Features and capabilities provided by the host. */
|
|
633
603
|
hostCapabilities: z.ZodObject<{
|
|
634
604
|
experimental: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
635
605
|
openLinks: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -641,9 +611,7 @@ export declare const McpUiInitializeResultSchema: z.ZodObject<{
|
|
|
641
611
|
}, z.core.$strip>>;
|
|
642
612
|
logging: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
643
613
|
}, z.core.$strip>;
|
|
644
|
-
/** @description Rich context about the host environment. */
|
|
645
614
|
hostContext: z.ZodObject<{
|
|
646
|
-
/** @description Metadata of the tool call that instantiated this App. */
|
|
647
615
|
toolInfo: z.ZodOptional<z.ZodObject<{
|
|
648
616
|
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
649
617
|
tool: z.ZodObject<{
|
|
@@ -682,40 +650,29 @@ export declare const McpUiInitializeResultSchema: z.ZodObject<{
|
|
|
682
650
|
title: z.ZodOptional<z.ZodString>;
|
|
683
651
|
}, z.core.$strip>;
|
|
684
652
|
}, z.core.$strip>>;
|
|
685
|
-
/** @description Current color theme preference. */
|
|
686
653
|
theme: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
687
|
-
/** @description Style configuration for theming the app. */
|
|
688
654
|
styles: z.ZodOptional<z.ZodObject<{
|
|
689
655
|
variables: z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodLiteral<"--color-background-primary">, z.ZodLiteral<"--color-background-secondary">, z.ZodLiteral<"--color-background-tertiary">, z.ZodLiteral<"--color-background-inverse">, z.ZodLiteral<"--color-background-ghost">, z.ZodLiteral<"--color-background-info">, z.ZodLiteral<"--color-background-danger">, z.ZodLiteral<"--color-background-success">, z.ZodLiteral<"--color-background-warning">, z.ZodLiteral<"--color-background-disabled">, z.ZodLiteral<"--color-text-primary">, z.ZodLiteral<"--color-text-secondary">, z.ZodLiteral<"--color-text-tertiary">, z.ZodLiteral<"--color-text-inverse">, z.ZodLiteral<"--color-text-info">, z.ZodLiteral<"--color-text-danger">, z.ZodLiteral<"--color-text-success">, z.ZodLiteral<"--color-text-warning">, z.ZodLiteral<"--color-text-disabled">, z.ZodLiteral<"--color-text-ghost">, z.ZodLiteral<"--color-border-primary">, z.ZodLiteral<"--color-border-secondary">, z.ZodLiteral<"--color-border-tertiary">, z.ZodLiteral<"--color-border-inverse">, z.ZodLiteral<"--color-border-ghost">, z.ZodLiteral<"--color-border-info">, z.ZodLiteral<"--color-border-danger">, z.ZodLiteral<"--color-border-success">, z.ZodLiteral<"--color-border-warning">, z.ZodLiteral<"--color-border-disabled">, z.ZodLiteral<"--color-ring-primary">, z.ZodLiteral<"--color-ring-secondary">, z.ZodLiteral<"--color-ring-inverse">, z.ZodLiteral<"--color-ring-info">, z.ZodLiteral<"--color-ring-danger">, z.ZodLiteral<"--color-ring-success">, z.ZodLiteral<"--color-ring-warning">, z.ZodLiteral<"--font-sans">, z.ZodLiteral<"--font-mono">, z.ZodLiteral<"--font-weight-normal">, z.ZodLiteral<"--font-weight-medium">, z.ZodLiteral<"--font-weight-semibold">, z.ZodLiteral<"--font-weight-bold">, z.ZodLiteral<"--font-text-xs-size">, z.ZodLiteral<"--font-text-sm-size">, z.ZodLiteral<"--font-text-md-size">, z.ZodLiteral<"--font-text-lg-size">, z.ZodLiteral<"--font-heading-xs-size">, z.ZodLiteral<"--font-heading-sm-size">, z.ZodLiteral<"--font-heading-md-size">, z.ZodLiteral<"--font-heading-lg-size">, z.ZodLiteral<"--font-heading-xl-size">, z.ZodLiteral<"--font-heading-2xl-size">, z.ZodLiteral<"--font-heading-3xl-size">, z.ZodLiteral<"--font-text-xs-line-height">, z.ZodLiteral<"--font-text-sm-line-height">, z.ZodLiteral<"--font-text-md-line-height">, z.ZodLiteral<"--font-text-lg-line-height">, z.ZodLiteral<"--font-heading-xs-line-height">, z.ZodLiteral<"--font-heading-sm-line-height">, z.ZodLiteral<"--font-heading-md-line-height">, z.ZodLiteral<"--font-heading-lg-line-height">, z.ZodLiteral<"--font-heading-xl-line-height">, z.ZodLiteral<"--font-heading-2xl-line-height">, z.ZodLiteral<"--font-heading-3xl-line-height">, z.ZodLiteral<"--border-radius-xs">, z.ZodLiteral<"--border-radius-sm">, z.ZodLiteral<"--border-radius-md">, z.ZodLiteral<"--border-radius-lg">, z.ZodLiteral<"--border-radius-xl">, z.ZodLiteral<"--border-radius-full">, z.ZodLiteral<"--border-width-regular">, z.ZodLiteral<"--shadow-hairline">, z.ZodLiteral<"--shadow-sm">, z.ZodLiteral<"--shadow-md">, z.ZodLiteral<"--shadow-lg">]>, z.ZodUnion<readonly [z.ZodString, z.ZodUndefined]>>>;
|
|
690
656
|
css: z.ZodOptional<z.ZodObject<{
|
|
691
657
|
fonts: z.ZodOptional<z.ZodString>;
|
|
692
658
|
}, z.core.$strip>>;
|
|
693
659
|
}, z.core.$strip>>;
|
|
694
|
-
/** @description How the UI is currently displayed. */
|
|
695
660
|
displayMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"inline">, z.ZodLiteral<"fullscreen">, z.ZodLiteral<"pip">]>>;
|
|
696
|
-
/** @description Display modes the host supports. */
|
|
697
661
|
availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
698
|
-
/** @description Current and maximum dimensions available to the UI. */
|
|
699
662
|
viewport: z.ZodOptional<z.ZodObject<{
|
|
700
663
|
width: z.ZodNumber;
|
|
701
664
|
height: z.ZodNumber;
|
|
702
665
|
maxHeight: z.ZodOptional<z.ZodNumber>;
|
|
703
666
|
maxWidth: z.ZodOptional<z.ZodNumber>;
|
|
704
667
|
}, z.core.$strip>>;
|
|
705
|
-
/** @description User's language and region preference in BCP 47 format. */
|
|
706
668
|
locale: z.ZodOptional<z.ZodString>;
|
|
707
|
-
/** @description User's timezone in IANA format. */
|
|
708
669
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
709
|
-
/** @description Host application identifier. */
|
|
710
670
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
711
|
-
/** @description Platform type for responsive design decisions. */
|
|
712
671
|
platform: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"web">, z.ZodLiteral<"desktop">, z.ZodLiteral<"mobile">]>>;
|
|
713
|
-
/** @description Device input capabilities. */
|
|
714
672
|
deviceCapabilities: z.ZodOptional<z.ZodObject<{
|
|
715
673
|
touch: z.ZodOptional<z.ZodBoolean>;
|
|
716
674
|
hover: z.ZodOptional<z.ZodBoolean>;
|
|
717
675
|
}, z.core.$strip>>;
|
|
718
|
-
/** @description Mobile safe area boundaries in pixels. */
|
|
719
676
|
safeAreaInsets: z.ZodOptional<z.ZodObject<{
|
|
720
677
|
top: z.ZodNumber;
|
|
721
678
|
right: z.ZodNumber;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import * as generated from "./schema.js";
|
|
3
3
|
export type McpUiThemeSchemaInferredType = z.infer<typeof generated.McpUiThemeSchema>;
|
|
4
4
|
export type McpUiDisplayModeSchemaInferredType = z.infer<typeof generated.McpUiDisplayModeSchema>;
|