@ggui-ai/protocol 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/envelopes/render-refusal.d.ts +49 -0
  2. package/dist/envelopes/render-refusal.d.ts.map +1 -0
  3. package/dist/envelopes/render-refusal.js +12 -0
  4. package/dist/errors/domain-error.d.ts +70 -0
  5. package/dist/errors/domain-error.d.ts.map +1 -0
  6. package/dist/errors/domain-error.js +118 -0
  7. package/dist/gadgets/resolve-app-gadgets.d.ts +1 -1
  8. package/dist/gadgets/stdlib-gadgets.d.ts +2 -2
  9. package/dist/gadgets/stdlib-gadgets.js +1 -1
  10. package/dist/index.d.ts +69 -63
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +8 -2
  13. package/dist/integrations/mcp-apps.d.ts +35 -9
  14. package/dist/integrations/mcp-apps.d.ts.map +1 -1
  15. package/dist/integrations/mcp-apps.js +13 -13
  16. package/dist/integrations/overlay-hash.d.ts +19 -0
  17. package/dist/integrations/overlay-hash.d.ts.map +1 -0
  18. package/dist/integrations/overlay-hash.js +29 -0
  19. package/dist/integrations/theme-binding.d.ts +14 -12
  20. package/dist/integrations/theme-binding.d.ts.map +1 -1
  21. package/dist/integrations/theme-binding.js +10 -6
  22. package/dist/registry/blueprint-key.d.ts.map +1 -1
  23. package/dist/registry/blueprint-key.js +4 -3
  24. package/dist/schemas/app-theme.d.ts +46 -10
  25. package/dist/schemas/app-theme.d.ts.map +1 -1
  26. package/dist/schemas/app-theme.js +108 -40
  27. package/dist/schemas/blueprint.d.ts +4 -3
  28. package/dist/schemas/blueprint.d.ts.map +1 -1
  29. package/dist/schemas/blueprint.js +15 -3
  30. package/dist/schemas/data-contract.d.ts +11 -31
  31. package/dist/schemas/data-contract.d.ts.map +1 -1
  32. package/dist/schemas/data-contract.js +5 -28
  33. package/dist/schemas/handshake-suggestion.d.ts.map +1 -1
  34. package/dist/schemas/handshake-suggestion.js +8 -1
  35. package/dist/schemas/interface-context.d.ts +44 -0
  36. package/dist/schemas/interface-context.d.ts.map +1 -0
  37. package/dist/schemas/interface-context.js +22 -0
  38. package/dist/schemas/invoke.d.ts +3 -3
  39. package/dist/schemas/invoke.js +1 -1
  40. package/dist/schemas/mcp.d.ts +246 -111
  41. package/dist/schemas/mcp.d.ts.map +1 -1
  42. package/dist/schemas/mcp.js +149 -42
  43. package/dist/schemas/ops-blueprint.d.ts +4 -4
  44. package/dist/schemas/ops-blueprint.d.ts.map +1 -1
  45. package/dist/schemas/ops-blueprint.js +13 -8
  46. package/dist/schemas/public-env-key.d.ts +26 -0
  47. package/dist/schemas/public-env-key.d.ts.map +1 -0
  48. package/dist/schemas/public-env-key.js +25 -0
  49. package/dist/schemas/render-input-envelope.d.ts +2 -2
  50. package/dist/schemas/render-input-envelope.js +1 -1
  51. package/dist/schemas/runtime-telemetry-limits.d.ts +11 -0
  52. package/dist/schemas/runtime-telemetry-limits.d.ts.map +1 -0
  53. package/dist/schemas/runtime-telemetry-limits.js +10 -0
  54. package/dist/transport/websocket.d.ts +5 -5
  55. package/dist/types/auth.d.ts +1 -1
  56. package/dist/types/blueprint-source.d.ts +27 -7
  57. package/dist/types/blueprint-source.d.ts.map +1 -1
  58. package/dist/types/blueprint-source.js +19 -3
  59. package/dist/types/blueprint.d.ts +2 -2
  60. package/dist/types/blueprint.d.ts.map +1 -1
  61. package/dist/types/contract-inference.d.ts +1 -1
  62. package/dist/types/data-contract.d.ts +3 -3
  63. package/dist/types/domain-error-codes.d.ts +167 -0
  64. package/dist/types/domain-error-codes.d.ts.map +1 -0
  65. package/dist/types/domain-error-codes.js +170 -0
  66. package/dist/types/events.d.ts +1 -1
  67. package/dist/types/ggui-session-event.d.ts +2 -2
  68. package/dist/types/handshake-suggestion.d.ts +2 -2
  69. package/dist/types/host-context.d.ts +3 -3
  70. package/dist/types/interface-context.d.ts +1 -1
  71. package/dist/types/invoke.d.ts +1 -1
  72. package/dist/types/lifecycle.d.ts +1 -1
  73. package/dist/types/live-channel.d.ts +3 -3
  74. package/dist/types/llm-route.d.ts +59 -2
  75. package/dist/types/llm-route.d.ts.map +1 -1
  76. package/dist/types/llm-route.js +62 -16
  77. package/dist/types/llm.d.ts +22 -2
  78. package/dist/types/llm.d.ts.map +1 -1
  79. package/dist/types/llm.js +29 -2
  80. package/dist/types/mcp.d.ts +49 -100
  81. package/dist/types/mcp.d.ts.map +1 -1
  82. package/dist/types/mcp.js +28 -9
  83. package/dist/types/refusal-codes.d.ts +54 -95
  84. package/dist/types/refusal-codes.d.ts.map +1 -1
  85. package/dist/types/refusal-codes.js +67 -105
  86. package/dist/types/render.d.ts +12 -11
  87. package/dist/types/render.d.ts.map +1 -1
  88. package/dist/types/ui-generator.d.ts +1 -1
  89. package/dist/validation/ajv-runtime.d.ts +2 -2
  90. package/dist/validation/contract-validator.d.ts +14 -8
  91. package/dist/validation/contract-validator.d.ts.map +1 -1
  92. package/dist/validation/contract-validator.js +12 -4
  93. package/dist/validation/cross-references.d.ts +2 -2
  94. package/dist/validation/hygiene-rules.d.ts +1 -1
  95. package/dist/validation/lint-contract.d.ts +2 -2
  96. package/dist/validation/lint-contract.d.ts.map +1 -1
  97. package/dist/validation/lint-contract.js +6 -4
  98. package/dist/validation/name-invariants.d.ts +2 -2
  99. package/dist/validation/reserved-channels.d.ts +1 -1
  100. package/dist/validation/schema-compat-invariants.d.ts +2 -2
  101. package/dist/validation/schema-meta-validation.d.ts +1 -1
  102. package/dist/validation/schema-subset.d.ts +3 -3
  103. package/dist/version.d.ts +485 -12
  104. package/dist/version.d.ts.map +1 -1
  105. package/dist/version.js +484 -11
  106. package/dist/wire.d.ts +45 -0
  107. package/dist/wire.d.ts.map +1 -0
  108. package/dist/wire.js +44 -0
  109. package/package.json +7 -1
  110. package/dist/envelope-adapters.d.ts +0 -25
  111. package/dist/envelope-adapters.d.ts.map +0 -1
  112. package/dist/envelope-adapters.js +0 -14
@@ -7,7 +7,7 @@
7
7
  * Two consumption patterns, both anchored here:
8
8
  *
9
9
  * - **Wired raw shapes** (`*InputShape`): handlers in
10
- * `@ggui-ai/mcp-server-handlers` (and the hosted pod's discover
10
+ * `@ggui-ai/mcp-server-handlers` (and a hosted deployment's discover
11
11
  * tool) import the SHAPE directly as their `inputSchema` and
12
12
  * validate with `z.object(shape)` — unknown keys are STRIPPED.
13
13
  * The shape is the one authored copy of the validation rules AND
@@ -24,42 +24,6 @@
24
24
  * its handler imports {@link renderInputShape}.
25
25
  */
26
26
  import { z } from 'zod';
27
- export declare const viewportSchema: z.ZodObject<{
28
- width: z.ZodNumber;
29
- height: z.ZodNumber;
30
- }, z.core.$strip>;
31
- export declare const interfaceContextSchema: z.ZodObject<{
32
- viewport: z.ZodObject<{
33
- width: z.ZodNumber;
34
- height: z.ZodNumber;
35
- }, z.core.$strip>;
36
- platform: z.ZodEnum<{
37
- web: "web";
38
- mobile: "mobile";
39
- desktop: "desktop";
40
- }>;
41
- deviceType: z.ZodEnum<{
42
- desktop: "desktop";
43
- phone: "phone";
44
- tablet: "tablet";
45
- }>;
46
- orientation: z.ZodEnum<{
47
- portrait: "portrait";
48
- landscape: "landscape";
49
- }>;
50
- devicePixelRatio: z.ZodOptional<z.ZodNumber>;
51
- touchPrimary: z.ZodOptional<z.ZodBoolean>;
52
- shellType: z.ZodOptional<z.ZodEnum<{
53
- chat: "chat";
54
- fullscreen: "fullscreen";
55
- spatial: "spatial";
56
- }>>;
57
- colorScheme: z.ZodOptional<z.ZodEnum<{
58
- light: "light";
59
- dark: "dark";
60
- }>>;
61
- reducedMotion: z.ZodOptional<z.ZodBoolean>;
62
- }, z.core.$loose>;
63
27
  /**
64
28
  * `ggui_consume` input. The long-poll bound is SPEC §7.3: integer
65
29
  * seconds in `[0, 25]` — the cap dodges infrastructure kill windows
@@ -165,7 +129,7 @@ export declare const discoverInputSchema: z.ZodObject<{}, z.core.$strip>;
165
129
  */
166
130
  export declare const handshakeInputSchema: z.ZodObject<{
167
131
  intent: z.ZodString;
168
- blueprintDraft: z.ZodType<import("..").BlueprintDraft, unknown, z.core.$ZodTypeInternals<import("..").BlueprintDraft, unknown>>;
132
+ blueprintDraft: z.ZodType<import("../index.js").BlueprintDraft, unknown, z.core.$ZodTypeInternals<import("../index.js").BlueprintDraft, unknown>>;
169
133
  forceCreate: z.ZodOptional<z.ZodBoolean>;
170
134
  }, z.core.$strict>;
171
135
  /**
@@ -206,7 +170,7 @@ export declare const handshakeOutputSchema: z.ZodObject<{
206
170
  update: "update";
207
171
  declined: "declined";
208
172
  }>;
209
- suggestion: z.ZodType<import("..").HandshakeSuggestion, unknown, z.core.$ZodTypeInternals<import("..").HandshakeSuggestion, unknown>>;
173
+ suggestion: z.ZodType<import("../index.js").HandshakeSuggestion, unknown, z.core.$ZodTypeInternals<import("../index.js").HandshakeSuggestion, unknown>>;
210
174
  reason: z.ZodOptional<z.ZodString>;
211
175
  nextStep: z.ZodOptional<z.ZodObject<{
212
176
  tool: z.ZodLiteral<"ggui_render">;
@@ -298,8 +262,8 @@ export declare const renderInputShape: {
298
262
  * different variance resolves a distinct cached component.
299
263
  */
300
264
  readonly override: z.ZodOptional<z.ZodObject<{
301
- contract: z.ZodOptional<z.ZodType<import("..").DataContract, unknown, z.core.$ZodTypeInternals<import("..").DataContract, unknown>>>;
302
- variance: z.ZodOptional<z.ZodType<import("..").BlueprintVariance, unknown, z.core.$ZodTypeInternals<import("..").BlueprintVariance, unknown>>>;
265
+ contract: z.ZodOptional<z.ZodType<import("../index.js").DataContract, unknown, z.core.$ZodTypeInternals<import("../index.js").DataContract, unknown>>>;
266
+ variance: z.ZodOptional<z.ZodType<import("../index.js").BlueprintVariance, unknown, z.core.$ZodTypeInternals<import("../index.js").BlueprintVariance, unknown>>>;
303
267
  }, z.core.$strict>>;
304
268
  };
305
269
  export declare const renderInputSchema: z.ZodObject<{
@@ -310,8 +274,8 @@ export declare const renderInputSchema: z.ZodObject<{
310
274
  model: z.ZodOptional<z.ZodString>;
311
275
  }, z.core.$strict>>;
312
276
  override: z.ZodOptional<z.ZodObject<{
313
- contract: z.ZodOptional<z.ZodType<import("..").DataContract, unknown, z.core.$ZodTypeInternals<import("..").DataContract, unknown>>>;
314
- variance: z.ZodOptional<z.ZodType<import("..").BlueprintVariance, unknown, z.core.$ZodTypeInternals<import("..").BlueprintVariance, unknown>>>;
277
+ contract: z.ZodOptional<z.ZodType<import("../index.js").DataContract, unknown, z.core.$ZodTypeInternals<import("../index.js").DataContract, unknown>>>;
278
+ variance: z.ZodOptional<z.ZodType<import("../index.js").BlueprintVariance, unknown, z.core.$ZodTypeInternals<import("../index.js").BlueprintVariance, unknown>>>;
315
279
  }, z.core.$strict>>;
316
280
  }, z.core.$strip>;
317
281
  /**
@@ -417,35 +381,51 @@ export declare const renderOutcomeSchema: z.ZodEnum<{
417
381
  }>;
418
382
  /** Canonical inferred type for {@link renderOutcomeSchema}. */
419
383
  export type RenderOutcome = z.infer<typeof renderOutcomeSchema>;
420
- /**
421
- * In-result PRE-GENERATION REFUSAL marker (SPEC §7.1's refused arm,
422
- * ggui#786). Present iff `outcome: 'refused'`.
423
- *
424
- * `code` draws from the closed render-gate subset of
425
- * `PRE_GENERATION_REFUSAL_CODES` — a code that is not registered fails
426
- * this enum at the transport, loudly. It is a bug, never a wire state.
427
- *
428
- * An agent MUST NOT auto-retry an `after-fix` refusal whose registry
429
- * row names a `fixBy` other than `caller`: the fix belongs to the app's
430
- * owner, the tenant, or the operator, and retrying does not perform it.
431
- */
432
384
  export declare const renderRefusalSchema: z.ZodObject<{
385
+ handshake: z.ZodLiteral<"intact">;
386
+ balanceCentsAtCheck: z.ZodOptional<z.ZodNumber>;
387
+ message: z.ZodString;
388
+ fix: z.ZodString;
389
+ retry: z.ZodEnum<{
390
+ never: "never";
391
+ "after-fix": "after-fix";
392
+ "next-period": "next-period";
393
+ later: "later";
394
+ }>;
433
395
  code: z.ZodEnum<{
434
396
  unsupported_provider: "unsupported_provider";
435
397
  insufficient_credit: "insufficient_credit";
436
398
  hard_cap_exceeded: "hard_cap_exceeded";
437
- model_not_in_tier: "model_not_in_tier";
399
+ model_not_allowed: "model_not_allowed";
438
400
  managed_default_cap_exceeded: "managed_default_cap_exceeded";
439
401
  app_policy_missing: "app_policy_missing";
440
402
  billing_mode_anomaly: "billing_mode_anomaly";
441
- app_canceled: "app_canceled";
442
- trial_exhausted: "trial_exhausted";
443
- trial_expired: "trial_expired";
444
403
  issuer_rate_limited: "issuer_rate_limited";
445
404
  app_rate_limited: "app_rate_limited";
446
405
  app_deprovisioned: "app_deprovisioned";
447
406
  billing_path_missing: "billing_path_missing";
448
407
  }>;
408
+ }, z.core.$strip>;
409
+ /** The refusal marker, derived from {@link renderRefusalSchema}. */
410
+ export type PreGenerationRefusal = z.infer<typeof renderRefusalSchema>;
411
+ /**
412
+ * A refusal typed on the per-app MCP endpoint's authorization
413
+ * (ggui#825) — the registry projection WITHOUT the render-only fields:
414
+ * no `handshake` (nothing was handed), no `balanceCentsAtCheck`. Strict:
415
+ * a render-only field here is a bug, never a wire state. `code` draws
416
+ * from {@link MCP_ENDPOINT_REFUSAL_CODES} — today exactly
417
+ * `app_deprovisioned`, the one refusal with a tenant-side fix and
418
+ * therefore the one that MUST be legible where a deleted app and a bad
419
+ * credential would otherwise look alike. `appId` (ggui#870) is the app
420
+ * the refused endpoint serves, as DATA — equal to the path's `{appId}`
421
+ * — so a tenant's repair loop keys on it and never parses prose; it is
422
+ * the ggui id the bound caller already holds, never the tenant's own
423
+ * `ownerRef`. The typed refusal answers a correctly bound federated
424
+ * identity only (identity first): an anonymous request is refused by the
425
+ * auth adapter before this arm, and learns nothing about the app.
426
+ */
427
+ export declare const transportRefusalSchema: z.ZodObject<{
428
+ appId: z.ZodString;
449
429
  message: z.ZodString;
450
430
  fix: z.ZodString;
451
431
  retry: z.ZodEnum<{
@@ -454,11 +434,48 @@ export declare const renderRefusalSchema: z.ZodObject<{
454
434
  "next-period": "next-period";
455
435
  later: "later";
456
436
  }>;
457
- handshake: z.ZodLiteral<"intact">;
458
- balanceCentsAtCheck: z.ZodOptional<z.ZodNumber>;
459
- }, z.core.$strip>;
460
- /** The refusal marker, derived from {@link renderRefusalSchema}. */
461
- export type PreGenerationRefusal = z.infer<typeof renderRefusalSchema>;
437
+ code: z.ZodEnum<{
438
+ app_deprovisioned: "app_deprovisioned";
439
+ }>;
440
+ }, z.core.$strict>;
441
+ /** A refusal on the per-app MCP endpoint, derived from {@link transportRefusalSchema}. */
442
+ export type TransportRefusal = z.infer<typeof transportRefusalSchema>;
443
+ /**
444
+ * The JSON-RPC error object a per-app MCP endpoint answers with when it
445
+ * refuses a request for a typed reason (ggui#825, codes ruled in
446
+ * ggui#836): HTTP 403, `code` `-32003` (`APP_NOT_FOUND` — the endpoint
447
+ * no longer serves this app, the same reading ggui's embed host gives a
448
+ * proxy 403) and `message` `App not found`, plus `data.refusal`, which
449
+ * makes it legible. `data` is strict: it carries the refusal and nothing
450
+ * else. An authorization failure that is not a registry state answers
451
+ * HTTP 403 with `-32007` (`UNAUTHORIZED`) and NO `data` — the three
452
+ * untyped arms stay indistinguishable among themselves by contract:
453
+ * naming any of them would say which is true. A first-party server
454
+ * never chooses `-32000`: it is the SDK client's `ConnectionClosed`, so
455
+ * a bare 403 and a dropped socket would share a number.
456
+ */
457
+ export declare const transportRefusalErrorSchema: z.ZodObject<{
458
+ code: z.ZodLiteral<-32003>;
459
+ message: z.ZodLiteral<"App not found">;
460
+ data: z.ZodObject<{
461
+ refusal: z.ZodObject<{
462
+ appId: z.ZodString;
463
+ message: z.ZodString;
464
+ fix: z.ZodString;
465
+ retry: z.ZodEnum<{
466
+ never: "never";
467
+ "after-fix": "after-fix";
468
+ "next-period": "next-period";
469
+ later: "later";
470
+ }>;
471
+ code: z.ZodEnum<{
472
+ app_deprovisioned: "app_deprovisioned";
473
+ }>;
474
+ }, z.core.$strict>;
475
+ }, z.core.$strict>;
476
+ }, z.core.$strict>;
477
+ /** The typed-refusal JSON-RPC error object, derived from {@link transportRefusalErrorSchema}. */
478
+ export type TransportRefusalError = z.infer<typeof transportRefusalErrorSchema>;
462
479
  /**
463
480
  * The COMPLETE structuredContent of a refused tool result — the whole
464
481
  * payload, not a slice of it. Strict on purpose: a refusal commits
@@ -481,32 +498,29 @@ export type PreGenerationRefusal = z.infer<typeof renderRefusalSchema>;
481
498
  export declare const refusedOutputSchema: z.ZodObject<{
482
499
  outcome: z.ZodLiteral<"refused">;
483
500
  refusal: z.ZodObject<{
501
+ handshake: z.ZodLiteral<"intact">;
502
+ balanceCentsAtCheck: z.ZodOptional<z.ZodNumber>;
503
+ message: z.ZodString;
504
+ fix: z.ZodString;
505
+ retry: z.ZodEnum<{
506
+ never: "never";
507
+ "after-fix": "after-fix";
508
+ "next-period": "next-period";
509
+ later: "later";
510
+ }>;
484
511
  code: z.ZodEnum<{
485
512
  unsupported_provider: "unsupported_provider";
486
513
  insufficient_credit: "insufficient_credit";
487
514
  hard_cap_exceeded: "hard_cap_exceeded";
488
- model_not_in_tier: "model_not_in_tier";
515
+ model_not_allowed: "model_not_allowed";
489
516
  managed_default_cap_exceeded: "managed_default_cap_exceeded";
490
517
  app_policy_missing: "app_policy_missing";
491
518
  billing_mode_anomaly: "billing_mode_anomaly";
492
- app_canceled: "app_canceled";
493
- trial_exhausted: "trial_exhausted";
494
- trial_expired: "trial_expired";
495
519
  issuer_rate_limited: "issuer_rate_limited";
496
520
  app_rate_limited: "app_rate_limited";
497
521
  app_deprovisioned: "app_deprovisioned";
498
522
  billing_path_missing: "billing_path_missing";
499
523
  }>;
500
- message: z.ZodString;
501
- fix: z.ZodString;
502
- retry: z.ZodEnum<{
503
- never: "never";
504
- "after-fix": "after-fix";
505
- "next-period": "next-period";
506
- later: "later";
507
- }>;
508
- handshake: z.ZodLiteral<"intact">;
509
- balanceCentsAtCheck: z.ZodOptional<z.ZodNumber>;
510
524
  }, z.core.$strip>;
511
525
  }, z.core.$strict>;
512
526
  /**
@@ -647,32 +661,29 @@ export declare const renderOutputSchema: z.ZodObject<{
647
661
  message: z.ZodString;
648
662
  }, z.core.$strip>>;
649
663
  refusal: z.ZodOptional<z.ZodObject<{
664
+ handshake: z.ZodLiteral<"intact">;
665
+ balanceCentsAtCheck: z.ZodOptional<z.ZodNumber>;
666
+ message: z.ZodString;
667
+ fix: z.ZodString;
668
+ retry: z.ZodEnum<{
669
+ never: "never";
670
+ "after-fix": "after-fix";
671
+ "next-period": "next-period";
672
+ later: "later";
673
+ }>;
650
674
  code: z.ZodEnum<{
651
675
  unsupported_provider: "unsupported_provider";
652
676
  insufficient_credit: "insufficient_credit";
653
677
  hard_cap_exceeded: "hard_cap_exceeded";
654
- model_not_in_tier: "model_not_in_tier";
678
+ model_not_allowed: "model_not_allowed";
655
679
  managed_default_cap_exceeded: "managed_default_cap_exceeded";
656
680
  app_policy_missing: "app_policy_missing";
657
681
  billing_mode_anomaly: "billing_mode_anomaly";
658
- app_canceled: "app_canceled";
659
- trial_exhausted: "trial_exhausted";
660
- trial_expired: "trial_expired";
661
682
  issuer_rate_limited: "issuer_rate_limited";
662
683
  app_rate_limited: "app_rate_limited";
663
684
  app_deprovisioned: "app_deprovisioned";
664
685
  billing_path_missing: "billing_path_missing";
665
686
  }>;
666
- message: z.ZodString;
667
- fix: z.ZodString;
668
- retry: z.ZodEnum<{
669
- never: "never";
670
- "after-fix": "after-fix";
671
- "next-period": "next-period";
672
- later: "later";
673
- }>;
674
- handshake: z.ZodLiteral<"intact">;
675
- balanceCentsAtCheck: z.ZodOptional<z.ZodNumber>;
676
687
  }, z.core.$strip>>;
677
688
  nextStep: z.ZodOptional<z.ZodObject<{
678
689
  tool: z.ZodLiteral<"ggui_consume">;
@@ -699,7 +710,7 @@ export declare const renderOutputSchema: z.ZodObject<{
699
710
  * wise). Use when most props stay the same and the agent only
700
711
  * needs to send a small delta — common after a single domain-tool
701
712
  * mutation. RFC 7396 chosen because it has a published spec and
702
- * wide library support (GitHub API, Kubernetes strategic-merge).
713
+ * wide library support (GitHub API's merge semantics, strategic-merge-patch).
703
714
  *
704
715
  * Anti-patterns (the discriminated union rejects these structurally,
705
716
  * but they're a common author mistake when copy-pasting):
@@ -712,7 +723,7 @@ export declare const renderOutputSchema: z.ZodObject<{
712
723
  * partial patches that would break required fields, type-mismatch
713
724
  * values, etc. all reject pre-persist.
714
725
  *
715
- * `sessionId` is globally unique; the server tenancy-checks via
726
+ * `sessionId` is globally unique; the server checks the app scope via
716
727
  * `ctx.appId`.
717
728
  */
718
729
  export declare const updateInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -878,9 +889,9 @@ export declare const gguiSessionEventSchema: z.ZodObject<{
878
889
  * OPTIONAL here (the bridge rung owns its cursor and seeds from 0; the
879
890
  * route requires it because a bare browser GET has no cursor owner),
880
891
  * and `limit` is clamped to {@link RUNTIME_PULL_MAX_LIMIT} instead of
881
- * rejecting above it. Tenancy violations and unknown sessionIds
892
+ * rejecting above it. Cross-app access and unknown sessionIds
882
893
  * surface uniformly as the `session_not_found` error — existence of
883
- * other tenants' renders is never leaked.
894
+ * other apps' renders is never leaked.
884
895
  */
885
896
  export declare const runtimePullInputShape: {
886
897
  readonly sessionId: z.ZodString;
@@ -948,11 +959,6 @@ export declare const runtimePullOutputSchema: z.ZodUnion<readonly [z.ZodObject<{
948
959
  reason: z.ZodLiteral<"REPLAY_HORIZON_PASSED">;
949
960
  currentSequence: z.ZodNumber;
950
961
  }, z.core.$strip>]>;
951
- /**
952
- * Per-batch event cap on `ggui_runtime_telemetry` — a bounded
953
- * fire-and-forget diagnostic channel, never a data plane.
954
- */
955
- export declare const RUNTIME_TELEMETRY_MAX_EVENTS = 40;
956
962
  /**
957
963
  * `ggui_runtime_telemetry` input — the iframe runtime's transport
958
964
  * self-report (`_meta.ui.visibility: ['app']`, view-callable only).
@@ -1019,8 +1025,8 @@ export declare function isRefusedRenderOutput(output: RenderOutputValue): output
1019
1025
  };
1020
1026
  /** Display modes an MCP Apps host can render a view in (ext-apps vocabulary). */
1021
1027
  export declare const mcpUiDisplayModeSchema: z.ZodEnum<{
1022
- fullscreen: "fullscreen";
1023
1028
  inline: "inline";
1029
+ fullscreen: "fullscreen";
1024
1030
  pip: "pip";
1025
1031
  }>;
1026
1032
  /**
@@ -1030,13 +1036,13 @@ export declare const mcpUiDisplayModeSchema: z.ZodEnum<{
1030
1036
  */
1031
1037
  export declare const hostContextProjectionSchema: z.ZodObject<{
1032
1038
  availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1033
- fullscreen: "fullscreen";
1034
1039
  inline: "inline";
1040
+ fullscreen: "fullscreen";
1035
1041
  pip: "pip";
1036
1042
  }>>>;
1037
1043
  currentDisplayMode: z.ZodOptional<z.ZodEnum<{
1038
- fullscreen: "fullscreen";
1039
1044
  inline: "inline";
1045
+ fullscreen: "fullscreen";
1040
1046
  pip: "pip";
1041
1047
  }>>;
1042
1048
  containerDimensions: z.ZodOptional<z.ZodObject<{
@@ -1047,8 +1053,8 @@ export declare const hostContextProjectionSchema: z.ZodObject<{
1047
1053
  }, z.core.$strip>>;
1048
1054
  platform: z.ZodOptional<z.ZodEnum<{
1049
1055
  web: "web";
1050
- mobile: "mobile";
1051
1056
  desktop: "desktop";
1057
+ mobile: "mobile";
1052
1058
  }>>;
1053
1059
  deviceCapabilities: z.ZodOptional<z.ZodObject<{
1054
1060
  touch: z.ZodOptional<z.ZodBoolean>;
@@ -1061,13 +1067,13 @@ export declare const hostContextProjectionSchema: z.ZodObject<{
1061
1067
  export declare const clientObservationsSchema: z.ZodObject<{
1062
1068
  hostContext: z.ZodOptional<z.ZodObject<{
1063
1069
  availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1064
- fullscreen: "fullscreen";
1065
1070
  inline: "inline";
1071
+ fullscreen: "fullscreen";
1066
1072
  pip: "pip";
1067
1073
  }>>>;
1068
1074
  currentDisplayMode: z.ZodOptional<z.ZodEnum<{
1069
- fullscreen: "fullscreen";
1070
1075
  inline: "inline";
1076
+ fullscreen: "fullscreen";
1071
1077
  pip: "pip";
1072
1078
  }>>;
1073
1079
  containerDimensions: z.ZodOptional<z.ZodObject<{
@@ -1078,8 +1084,8 @@ export declare const clientObservationsSchema: z.ZodObject<{
1078
1084
  }, z.core.$strip>>;
1079
1085
  platform: z.ZodOptional<z.ZodEnum<{
1080
1086
  web: "web";
1081
- mobile: "mobile";
1082
1087
  desktop: "desktop";
1088
+ mobile: "mobile";
1083
1089
  }>>;
1084
1090
  deviceCapabilities: z.ZodOptional<z.ZodObject<{
1085
1091
  touch: z.ZodOptional<z.ZodBoolean>;
@@ -1100,6 +1106,133 @@ export declare const gguiSessionSummaryWireSchema: z.ZodObject<{
1100
1106
  wsToken: z.ZodOptional<z.ZodString>;
1101
1107
  wsTokenExpiresAt: z.ZodOptional<z.ZodString>;
1102
1108
  }, z.core.$strip>;
1109
+ /**
1110
+ * The two states a GguiSession is in on the wire — the pair the consume
1111
+ * loop exits on (`expired`). Owned here (ggui#817 part C2); the type is
1112
+ * derived, never a second list.
1113
+ */
1114
+ export declare const gguiSessionStatusSchema: z.ZodEnum<{
1115
+ active: "active";
1116
+ expired: "expired";
1117
+ }>;
1118
+ /**
1119
+ * One drained row of `ggui_consume` — a user action that reached the
1120
+ * pipe (ggui#817 part C2). Closed on the wire: an unknown key is
1121
+ * stripped at the transport, a missing key refuses the row at the store
1122
+ * boundary (`pendingEventSchema`, ggui#839), so a malformed pipe entry
1123
+ * never ships to an agent typed as a good one.
1124
+ */
1125
+ export declare const consumeEventEntrySchema: z.ZodObject<{
1126
+ type: z.ZodLiteral<"action">;
1127
+ sessionId: z.ZodString;
1128
+ intent: z.ZodString;
1129
+ actionData: z.ZodNullable<z.ZodType<import("../index.js").JsonValue, unknown, z.core.$ZodTypeInternals<import("../index.js").JsonValue, unknown>>>;
1130
+ uiContext: z.ZodType<import("../index.js").JsonObject, unknown, z.core.$ZodTypeInternals<import("../index.js").JsonObject, unknown>>;
1131
+ actionId: z.ZodString;
1132
+ firedAt: z.ZodString;
1133
+ }, z.core.$strip>;
1134
+ /**
1135
+ * One stored row of the consume pipe — what a producer appends and
1136
+ * `consumeAndClear` drains, the same shape on every store (ggui#839; a
1137
+ * store-boundary contract, never wire — `ggui_consume` returns the
1138
+ * entries, never the wrapper). `id` is the drain_ack key and the
1139
+ * idempotency key per `(sessionId, id)`; `envelope` is the
1140
+ * {@link consumeEventEntrySchema} entry, always the object (every writer
1141
+ * passes one; a store that serializes the row serializes the whole row);
1142
+ * `createdAt` is when the row was appended — a string, never `.datetime()`:
1143
+ * the relay copies the client's `firedAt`, which the ingress accepts as a
1144
+ * diagnostic. `PendingEventConsumer` adapters validate every row through
1145
+ * this schema on append and, when rows come back from a serialization, on
1146
+ * drain — a malformed row never reaches an agent typed as a good entry.
1147
+ */
1148
+ export declare const pendingEventSchema: z.ZodObject<{
1149
+ id: z.ZodString;
1150
+ envelope: z.ZodObject<{
1151
+ type: z.ZodLiteral<"action">;
1152
+ sessionId: z.ZodString;
1153
+ intent: z.ZodString;
1154
+ actionData: z.ZodNullable<z.ZodType<import("../index.js").JsonValue, unknown, z.core.$ZodTypeInternals<import("../index.js").JsonValue, unknown>>>;
1155
+ uiContext: z.ZodType<import("../index.js").JsonObject, unknown, z.core.$ZodTypeInternals<import("../index.js").JsonObject, unknown>>;
1156
+ actionId: z.ZodString;
1157
+ firedAt: z.ZodString;
1158
+ }, z.core.$strip>;
1159
+ createdAt: z.ZodString;
1160
+ }, z.core.$strip>;
1161
+ /**
1162
+ * `ggui_consume`'s output — the drained rows, the session's state, and the
1163
+ * client's observations when the host sent any (ggui#817 part C2). The
1164
+ * handler registers `.shape`; `tools/list` therefore advertises the entry
1165
+ * vocabulary and the status enum instead of a free-form record and a free
1166
+ * string.
1167
+ */
1168
+ export declare const gguiConsumeOutputSchema: z.ZodObject<{
1169
+ events: z.ZodArray<z.ZodObject<{
1170
+ type: z.ZodLiteral<"action">;
1171
+ sessionId: z.ZodString;
1172
+ intent: z.ZodString;
1173
+ actionData: z.ZodNullable<z.ZodType<import("../index.js").JsonValue, unknown, z.core.$ZodTypeInternals<import("../index.js").JsonValue, unknown>>>;
1174
+ uiContext: z.ZodType<import("../index.js").JsonObject, unknown, z.core.$ZodTypeInternals<import("../index.js").JsonObject, unknown>>;
1175
+ actionId: z.ZodString;
1176
+ firedAt: z.ZodString;
1177
+ }, z.core.$strip>>;
1178
+ status: z.ZodEnum<{
1179
+ active: "active";
1180
+ expired: "expired";
1181
+ }>;
1182
+ client: z.ZodOptional<z.ZodObject<{
1183
+ hostContext: z.ZodOptional<z.ZodObject<{
1184
+ availableDisplayModes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1185
+ inline: "inline";
1186
+ fullscreen: "fullscreen";
1187
+ pip: "pip";
1188
+ }>>>;
1189
+ currentDisplayMode: z.ZodOptional<z.ZodEnum<{
1190
+ inline: "inline";
1191
+ fullscreen: "fullscreen";
1192
+ pip: "pip";
1193
+ }>>;
1194
+ containerDimensions: z.ZodOptional<z.ZodObject<{
1195
+ width: z.ZodOptional<z.ZodNumber>;
1196
+ maxWidth: z.ZodOptional<z.ZodNumber>;
1197
+ height: z.ZodOptional<z.ZodNumber>;
1198
+ maxHeight: z.ZodOptional<z.ZodNumber>;
1199
+ }, z.core.$strip>>;
1200
+ platform: z.ZodOptional<z.ZodEnum<{
1201
+ web: "web";
1202
+ desktop: "desktop";
1203
+ mobile: "mobile";
1204
+ }>>;
1205
+ deviceCapabilities: z.ZodOptional<z.ZodObject<{
1206
+ touch: z.ZodOptional<z.ZodBoolean>;
1207
+ hover: z.ZodOptional<z.ZodBoolean>;
1208
+ }, z.core.$strip>>;
1209
+ locale: z.ZodOptional<z.ZodString>;
1210
+ timeZone: z.ZodOptional<z.ZodString>;
1211
+ }, z.core.$strip>>;
1212
+ }, z.core.$strip>>;
1213
+ }, z.core.$strip>;
1214
+ /** `ggui_list_sessions`' output — the closed summary rows (ggui#817 part C2). */
1215
+ export declare const gguiListSessionsOutputSchema: z.ZodObject<{
1216
+ sessions: z.ZodArray<z.ZodObject<{
1217
+ sessionId: z.ZodString;
1218
+ hostName: z.ZodOptional<z.ZodString>;
1219
+ hostSessionId: z.ZodOptional<z.ZodString>;
1220
+ createdAt: z.ZodString;
1221
+ lastActivityAt: z.ZodString;
1222
+ status: z.ZodString;
1223
+ wsToken: z.ZodOptional<z.ZodString>;
1224
+ wsTokenExpiresAt: z.ZodOptional<z.ZodString>;
1225
+ }, z.core.$strip>>;
1226
+ }, z.core.$strip>;
1227
+ /**
1228
+ * `ggui_emit`'s output (ggui#817 part C2): `accepted` at the boundary, and
1229
+ * `seq` when the server keeps a stream buffer — seq-aware implementations
1230
+ * stamp and return it so replay cursors can be built from the ack.
1231
+ */
1232
+ export declare const gguiEmitOutputSchema: z.ZodObject<{
1233
+ accepted: z.ZodBoolean;
1234
+ seq: z.ZodOptional<z.ZodNumber>;
1235
+ }, z.core.$strip>;
1103
1236
  /**
1104
1237
  * `ggui_get_session`'s wire: the store row's six base fields plus the mount
1105
1238
  * variant — for EVERY session. An MCP-Apps mount is locator-only on the
@@ -1107,6 +1240,8 @@ export declare const gguiSessionSummaryWireSchema: z.ZodObject<{
1107
1240
  * projection reads them from the row and the wire never fails on that
1108
1241
  * variant. The locator itself is not on this wire (MCP-Apps resources have
1109
1242
  * their own paths).
1243
+ * `contextSnapshot` rides when a component (`render`) mount's row has one —
1244
+ * never on an mcpApps mount.
1110
1245
  */
1111
1246
  export declare const gguiGetSessionOutputSchema: z.ZodObject<{
1112
1247
  variant: z.ZodEnum<{
@@ -1119,7 +1254,7 @@ export declare const gguiGetSessionOutputSchema: z.ZodObject<{
1119
1254
  createdAt: z.ZodNumber;
1120
1255
  lastActivityAt: z.ZodNumber;
1121
1256
  expiresAt: z.ZodNumber;
1122
- contextSnapshot: z.ZodOptional<z.ZodType<import("..").JsonObject, unknown, z.core.$ZodTypeInternals<import("..").JsonObject, unknown>>>;
1257
+ contextSnapshot: z.ZodOptional<z.ZodType<import("../index.js").JsonObject, unknown, z.core.$ZodTypeInternals<import("../index.js").JsonObject, unknown>>>;
1123
1258
  }, z.core.$strip>;
1124
1259
  /** The three sequential gates of `ggui_protocol_validate_blueprint`. */
1125
1260
  export declare const blueprintValidationTierSchema: z.ZodEnum<{
@@ -1171,7 +1306,7 @@ export declare const blueprintEntryWireSchema: z.ZodObject<{
1171
1306
  id: z.ZodString;
1172
1307
  name: z.ZodString;
1173
1308
  description: z.ZodOptional<z.ZodString>;
1174
- source: z.ZodType<import("..").BlueprintSource, unknown, z.core.$ZodTypeInternals<import("..").BlueprintSource, unknown>>;
1309
+ source: z.ZodType<import("../index.js").BlueprintSource, unknown, z.core.$ZodTypeInternals<import("../index.js").BlueprintSource, unknown>>;
1175
1310
  updatedAt: z.ZodString;
1176
1311
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1177
1312
  }, z.core.$strip>;
@@ -1180,7 +1315,7 @@ export declare const gguiListFeaturedBlueprintsOutputSchema: z.ZodObject<{
1180
1315
  id: z.ZodString;
1181
1316
  name: z.ZodString;
1182
1317
  description: z.ZodOptional<z.ZodString>;
1183
- source: z.ZodType<import("..").BlueprintSource, unknown, z.core.$ZodTypeInternals<import("..").BlueprintSource, unknown>>;
1318
+ source: z.ZodType<import("../index.js").BlueprintSource, unknown, z.core.$ZodTypeInternals<import("../index.js").BlueprintSource, unknown>>;
1184
1319
  updatedAt: z.ZodString;
1185
1320
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1186
1321
  }, z.core.$strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/schemas/mcp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,eAAO,MAAM,cAAc;;;iBAGzB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUnB,CAAC;AAYjB;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB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