@reticlehq/core 3.7.0 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/activation-entry.d.ts +9 -0
  2. package/dist/activation-entry.js +9 -0
  3. package/dist/artifacts/drive-script.d.ts +84 -1217
  4. package/dist/artifacts/drive-script.js +1 -1
  5. package/dist/artifacts/flow-constants.d.ts +15 -0
  6. package/dist/artifacts/flow-constants.js +15 -0
  7. package/dist/artifacts/flow-expect-flat.d.ts +8 -192
  8. package/dist/artifacts/flow-expect-flat.js +2 -2
  9. package/dist/artifacts/flow-results.d.ts +26 -0
  10. package/dist/artifacts/flow-types.d.ts +212 -2295
  11. package/dist/artifacts/flow-types.js +14 -2
  12. package/dist/artifacts/harness-credits.d.ts +6 -3
  13. package/dist/artifacts/harness-credits.js +9 -6
  14. package/dist/artifacts/harness-map.d.ts +8 -69
  15. package/dist/artifacts/harness-map.js +1 -1
  16. package/dist/artifacts/hud-notices.d.ts +8 -82
  17. package/dist/artifacts/hud-notices.js +1 -1
  18. package/dist/artifacts/impact.d.ts +104 -1665
  19. package/dist/artifacts/impact.js +38 -21
  20. package/dist/artifacts/journal.d.ts +15 -231
  21. package/dist/artifacts/journal.js +15 -2
  22. package/dist/artifacts/prompt-context.d.ts +7 -33
  23. package/dist/artifacts/prompt-context.js +15 -4
  24. package/dist/artifacts/screenshot-upload.d.ts +3 -26
  25. package/dist/artifacts/screenshot-upload.js +1 -1
  26. package/dist/graph/app-graph.d.ts +137 -0
  27. package/dist/graph/app-graph.js +498 -0
  28. package/dist/hooks/hook-events.d.ts +15 -171
  29. package/dist/hooks/hook-events.js +1 -1
  30. package/dist/hud-entry.js +1 -1
  31. package/dist/identity/checkout.d.ts +41 -0
  32. package/dist/identity/checkout.js +118 -0
  33. package/dist/identity/state-dir.d.ts +23 -0
  34. package/dist/identity/state-dir.js +43 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +10 -0
  37. package/dist/onboarding.d.ts +23 -52
  38. package/dist/onboarding.js +20 -1
  39. package/dist/registry/daemon-registry.d.ts +2 -14
  40. package/dist/registry/daemon-registry.js +1 -1
  41. package/dist/registry/dev-server-registry.d.ts +2 -31
  42. package/dist/registry/dev-server-registry.js +1 -1
  43. package/dist/registry/project-registry.d.ts +4 -32
  44. package/dist/registry/project-registry.js +1 -1
  45. package/dist/schema/command-message.json +65 -68
  46. package/dist/schema/command-name.json +29 -33
  47. package/dist/schema/command-result.json +25 -30
  48. package/dist/schema/event-message.json +104 -101
  49. package/dist/schema/event-payloads.json +246 -108
  50. package/dist/schema/event-type.json +47 -48
  51. package/dist/schema/hello-message.json +150 -133
  52. package/dist/schema/reticle-event.json +98 -94
  53. package/dist/schema/reticle-message.json +338 -310
  54. package/dist/telemetry-bug.d.ts +4 -75
  55. package/dist/telemetry-bug.js +1 -1
  56. package/dist/telemetry-entry.d.ts +1 -1
  57. package/dist/telemetry-entry.js +1 -1
  58. package/dist/telemetry-feedback.d.ts +17 -91
  59. package/dist/telemetry-feedback.js +20 -1
  60. package/dist/telemetry-refusal.d.ts +4 -31
  61. package/dist/telemetry-refusal.js +1 -1
  62. package/dist/telemetry-session.d.ts +45 -624
  63. package/dist/telemetry-session.js +25 -12
  64. package/dist/telemetry-signals.d.ts +211 -86
  65. package/dist/telemetry-signals.js +100 -2
  66. package/dist/telemetry.d.ts +321 -1691
  67. package/dist/telemetry.js +72 -6
  68. package/dist/verdict/check-sentence.d.ts +34 -0
  69. package/dist/verdict/check-sentence.js +228 -0
  70. package/dist/verdict/compare-source.d.ts +1 -1
  71. package/dist/verdict/compare-source.js +1 -1
  72. package/dist/verdict/consequence.d.ts +15 -0
  73. package/dist/verdict/consequence.js +11 -0
  74. package/dist/verdict/disparity.d.ts +8 -56
  75. package/dist/verdict/disparity.js +1 -1
  76. package/dist/verdict/findings.d.ts +10 -0
  77. package/dist/verdict/findings.js +13 -0
  78. package/dist/verdict/instrumentation-coverage.d.ts +6 -37
  79. package/dist/verdict/instrumentation-coverage.js +15 -59
  80. package/dist/verdict/instrumentation-gap.d.ts +72 -0
  81. package/dist/verdict/instrumentation-gap.js +64 -0
  82. package/dist/verdict/intent.d.ts +25 -224
  83. package/dist/verdict/intent.js +1 -1
  84. package/dist/verdict/predicate-tree.d.ts +2 -0
  85. package/dist/verdict/predicate-tree.js +16 -0
  86. package/dist/verdict/predicate.d.ts +3 -2
  87. package/dist/verdict/predicate.js +107 -16
  88. package/dist/verdict/property-assertion.d.ts +23 -101
  89. package/dist/verdict/property-assertion.js +1 -1
  90. package/dist/verdict/run-report.d.ts +71 -0
  91. package/dist/verdict/run-report.js +53 -0
  92. package/dist/verdict/security.d.ts +48 -2
  93. package/dist/verdict/security.js +185 -18
  94. package/dist/verdict/verification-run.d.ts +124 -1623
  95. package/dist/verdict/verification-run.js +37 -6
  96. package/dist/verdict/verify-progress.d.ts +22 -64
  97. package/dist/verdict/verify-progress.js +1 -1
  98. package/dist/wire/constants/constants.d.ts +56 -141
  99. package/dist/wire/constants/constants.js +64 -144
  100. package/dist/wire/constants/discovery.d.ts +4 -4
  101. package/dist/wire/constants/discovery.js +4 -4
  102. package/dist/wire/constants/event-types.d.ts +37 -1
  103. package/dist/wire/constants/event-types.js +35 -1
  104. package/dist/wire/constants/hud-controls.js +0 -2
  105. package/dist/wire/constants/hud-use.d.ts +4 -0
  106. package/dist/wire/constants/hud-use.js +4 -0
  107. package/dist/wire/constants/mcp-wire.d.ts +16 -0
  108. package/dist/wire/constants/mcp-wire.js +16 -0
  109. package/dist/wire/constants/response-body-reason.d.ts +19 -0
  110. package/dist/wire/constants/response-body-reason.js +18 -0
  111. package/dist/wire/constants/reticle-env.d.ts +140 -0
  112. package/dist/wire/constants/reticle-env.js +140 -0
  113. package/dist/wire/constants/session-constants.d.ts +11 -0
  114. package/dist/wire/constants/session-constants.js +11 -0
  115. package/dist/wire/event-payloads.d.ts +173 -629
  116. package/dist/wire/event-payloads.js +107 -23
  117. package/dist/wire/event-priority.js +1 -0
  118. package/dist/wire/messages.d.ts +90 -713
  119. package/dist/wire/messages.js +19 -3
  120. package/dist/wire/narrow.d.ts +6 -0
  121. package/dist/wire/narrow.js +26 -0
  122. package/dist/wire/next-step.d.ts +50 -0
  123. package/dist/wire/next-step.js +37 -0
  124. package/dist/wire/platform-link.d.ts +7 -0
  125. package/dist/wire/platform-link.js +14 -8
  126. package/dist/wire/production/activation-ticket.d.ts +64 -0
  127. package/dist/wire/production/activation-ticket.js +148 -0
  128. package/dist/wire/production/hello-mode.d.ts +35 -0
  129. package/dist/wire/production/hello-mode.js +32 -0
  130. package/dist/wire/production/production-policy.d.ts +92 -0
  131. package/dist/wire/production/production-policy.js +133 -0
  132. package/dist/wire/tool-names.d.ts +2 -0
  133. package/dist/wire/tool-names.js +2 -0
  134. package/dist/wire/types.d.ts +102 -700
  135. package/dist/wire/types.js +5 -5
  136. package/dist/words/upgrade.d.ts +3 -13
  137. package/dist/words/upgrade.js +1 -1
  138. package/package.json +7 -4
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import { EventType } from './constants/constants.js';
3
3
  /**
4
4
  * Per-event-type payload schemas — the typed replacement for the envelope's open `data` record.
@@ -61,6 +61,38 @@ export declare const RouteChangeHow: {
61
61
  export type RouteChangeHow = (typeof RouteChangeHow)[keyof typeof RouteChangeHow];
62
62
  /** Wire field on `route.change` carrying a `RouteChangeHow`. */
63
63
  export declare const ROUTE_CHANGE_HOW_FIELD = "how";
64
+ /**
65
+ * Why a `field.change` was emitted.
66
+ *
67
+ * `input` is a burst of keystrokes and `change` is the commit that ends one — both are the user's
68
+ * own event, fired before a controlled component restores its DOM property. `settled` is a read of
69
+ * that property on the frame after the handlers ran. Only a settled read that differs from the
70
+ * pre-action value is evidence the screen moved.
71
+ */
72
+ export declare const FieldChangeKind: {
73
+ readonly INPUT: "input";
74
+ readonly CHANGE: "change";
75
+ readonly SETTLED: "settled";
76
+ };
77
+ export type FieldChangeKind = (typeof FieldChangeKind)[keyof typeof FieldChangeKind];
78
+ /**
79
+ * Wire fields on `field.change` beyond `field` / `kind` / `value` / `length`.
80
+ *
81
+ * `checked` is the property a checkbox or radio actually renders; `value` on those is the HTML
82
+ * value (`"on"`), which does not move when the box is toggled. `previous` and `previousChecked`
83
+ * are the same reading from before the action, present on a settled event so a consumer can tell
84
+ * a render from a restore.
85
+ */
86
+ export declare const FieldChangeField: {
87
+ readonly FIELD: "field";
88
+ readonly KIND: "kind";
89
+ readonly LENGTH: "length";
90
+ readonly VALUE: "value";
91
+ readonly REDACTED: "redacted";
92
+ readonly CHECKED: "checked";
93
+ readonly PREVIOUS: "previous";
94
+ readonly PREVIOUS_CHECKED: "previousChecked";
95
+ };
64
96
  /**
65
97
  * The three readable client-side storage areas.
66
98
  *
@@ -85,31 +117,15 @@ export declare const SeedCookieSchema: z.ZodObject<{
85
117
  url: z.ZodOptional<z.ZodString>;
86
118
  httpOnly: z.ZodOptional<z.ZodBoolean>;
87
119
  secure: z.ZodOptional<z.ZodBoolean>;
88
- sameSite: z.ZodOptional<z.ZodEnum<["Strict", "Lax", "None"]>>;
120
+ sameSite: z.ZodOptional<z.ZodEnum<{
121
+ Strict: "Strict";
122
+ Lax: "Lax";
123
+ None: "None";
124
+ }>>;
89
125
  expires: z.ZodOptional<z.ZodNumber>;
90
- }, "strip", z.ZodTypeAny, {
91
- value: string;
92
- name: string;
93
- path?: string | undefined;
94
- url?: string | undefined;
95
- domain?: string | undefined;
96
- httpOnly?: boolean | undefined;
97
- secure?: boolean | undefined;
98
- sameSite?: "Strict" | "Lax" | "None" | undefined;
99
- expires?: number | undefined;
100
- }, {
101
- value: string;
102
- name: string;
103
- path?: string | undefined;
104
- url?: string | undefined;
105
- domain?: string | undefined;
106
- httpOnly?: boolean | undefined;
107
- secure?: boolean | undefined;
108
- sameSite?: "Strict" | "Lax" | "None" | undefined;
109
- expires?: number | undefined;
110
- }>;
126
+ }, z.core.$strip>;
111
127
  export type SeedCookie = z.infer<typeof SeedCookieSchema>;
112
- export declare const SeedCookiesSchema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodObject<{
128
+ export declare const SeedCookiesSchema: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodObject<{
113
129
  name: z.ZodString;
114
130
  value: z.ZodString;
115
131
  domain: z.ZodOptional<z.ZodString>;
@@ -117,29 +133,13 @@ export declare const SeedCookiesSchema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.Z
117
133
  url: z.ZodOptional<z.ZodString>;
118
134
  httpOnly: z.ZodOptional<z.ZodBoolean>;
119
135
  secure: z.ZodOptional<z.ZodBoolean>;
120
- sameSite: z.ZodOptional<z.ZodEnum<["Strict", "Lax", "None"]>>;
136
+ sameSite: z.ZodOptional<z.ZodEnum<{
137
+ Strict: "Strict";
138
+ Lax: "Lax";
139
+ None: "None";
140
+ }>>;
121
141
  expires: z.ZodOptional<z.ZodNumber>;
122
- }, "strip", z.ZodTypeAny, {
123
- value: string;
124
- name: string;
125
- path?: string | undefined;
126
- url?: string | undefined;
127
- domain?: string | undefined;
128
- httpOnly?: boolean | undefined;
129
- secure?: boolean | undefined;
130
- sameSite?: "Strict" | "Lax" | "None" | undefined;
131
- expires?: number | undefined;
132
- }, {
133
- value: string;
134
- name: string;
135
- path?: string | undefined;
136
- url?: string | undefined;
137
- domain?: string | undefined;
138
- httpOnly?: boolean | undefined;
139
- secure?: boolean | undefined;
140
- sameSite?: "Strict" | "Lax" | "None" | undefined;
141
- expires?: number | undefined;
142
- }>, "many">]>;
142
+ }, z.core.$strip>>]>;
143
143
  export type SeedCookies = z.infer<typeof SeedCookiesSchema>;
144
144
  /**
145
145
  * Client storage and session state to seed into an isolated context before the first navigation.
@@ -148,7 +148,7 @@ export type SeedCookies = z.infer<typeof SeedCookiesSchema>;
148
148
  export declare const SeedStorageSchema: z.ZodObject<{
149
149
  local: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
150
150
  session: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
151
- cookies: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodObject<{
151
+ cookies: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodObject<{
152
152
  name: z.ZodString;
153
153
  value: z.ZodString;
154
154
  domain: z.ZodOptional<z.ZodString>;
@@ -156,58 +156,14 @@ export declare const SeedStorageSchema: z.ZodObject<{
156
156
  url: z.ZodOptional<z.ZodString>;
157
157
  httpOnly: z.ZodOptional<z.ZodBoolean>;
158
158
  secure: z.ZodOptional<z.ZodBoolean>;
159
- sameSite: z.ZodOptional<z.ZodEnum<["Strict", "Lax", "None"]>>;
159
+ sameSite: z.ZodOptional<z.ZodEnum<{
160
+ Strict: "Strict";
161
+ Lax: "Lax";
162
+ None: "None";
163
+ }>>;
160
164
  expires: z.ZodOptional<z.ZodNumber>;
161
- }, "strip", z.ZodTypeAny, {
162
- value: string;
163
- name: string;
164
- path?: string | undefined;
165
- url?: string | undefined;
166
- domain?: string | undefined;
167
- httpOnly?: boolean | undefined;
168
- secure?: boolean | undefined;
169
- sameSite?: "Strict" | "Lax" | "None" | undefined;
170
- expires?: number | undefined;
171
- }, {
172
- value: string;
173
- name: string;
174
- path?: string | undefined;
175
- url?: string | undefined;
176
- domain?: string | undefined;
177
- httpOnly?: boolean | undefined;
178
- secure?: boolean | undefined;
179
- sameSite?: "Strict" | "Lax" | "None" | undefined;
180
- expires?: number | undefined;
181
- }>, "many">]>>;
182
- }, "strict", z.ZodTypeAny, {
183
- local?: Record<string, string> | undefined;
184
- session?: Record<string, string> | undefined;
185
- cookies?: Record<string, string> | {
186
- value: string;
187
- name: string;
188
- path?: string | undefined;
189
- url?: string | undefined;
190
- domain?: string | undefined;
191
- httpOnly?: boolean | undefined;
192
- secure?: boolean | undefined;
193
- sameSite?: "Strict" | "Lax" | "None" | undefined;
194
- expires?: number | undefined;
195
- }[] | undefined;
196
- }, {
197
- local?: Record<string, string> | undefined;
198
- session?: Record<string, string> | undefined;
199
- cookies?: Record<string, string> | {
200
- value: string;
201
- name: string;
202
- path?: string | undefined;
203
- url?: string | undefined;
204
- domain?: string | undefined;
205
- httpOnly?: boolean | undefined;
206
- secure?: boolean | undefined;
207
- sameSite?: "Strict" | "Lax" | "None" | undefined;
208
- expires?: number | undefined;
209
- }[] | undefined;
210
- }>;
165
+ }, z.core.$strip>>]>>;
166
+ }, z.core.$strict>;
211
167
  export type SeedStorage = z.infer<typeof SeedStorageSchema>;
212
168
  /**
213
169
  * The registry. `satisfies Record<EventType,...>` makes a missing event type a *compile* error —
@@ -217,46 +173,22 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
217
173
  "dom.added": z.ZodObject<{
218
174
  role: z.ZodOptional<z.ZodString>;
219
175
  name: z.ZodOptional<z.ZodString>;
220
- }, "strip", z.ZodTypeAny, {
221
- role?: string | undefined;
222
- name?: string | undefined;
223
- }, {
224
- role?: string | undefined;
225
- name?: string | undefined;
226
- }>;
176
+ }, z.core.$strip>;
227
177
  "dom.removed": z.ZodObject<{
228
178
  role: z.ZodOptional<z.ZodString>;
229
179
  name: z.ZodOptional<z.ZodString>;
230
- }, "strip", z.ZodTypeAny, {
231
- role?: string | undefined;
232
- name?: string | undefined;
233
- }, {
234
- role?: string | undefined;
235
- name?: string | undefined;
236
- }>;
180
+ }, z.core.$strip>;
237
181
  "dom.attr": z.ZodObject<{
238
182
  attr: z.ZodString;
239
183
  value: z.ZodOptional<z.ZodString>;
240
184
  old: z.ZodOptional<z.ZodString>;
241
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
242
- attr: z.ZodString;
243
- value: z.ZodOptional<z.ZodString>;
244
- old: z.ZodOptional<z.ZodString>;
245
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
246
- attr: z.ZodString;
247
- value: z.ZodOptional<z.ZodString>;
248
- old: z.ZodOptional<z.ZodString>;
249
- }, z.ZodTypeAny, "passthrough">>;
185
+ }, z.core.$loose>;
250
186
  "dom.text": z.ZodObject<{
251
187
  text: z.ZodString;
252
188
  old: z.ZodOptional<z.ZodString>;
253
- }, "strip", z.ZodTypeAny, {
254
- text: string;
255
- old?: string | undefined;
256
- }, {
257
- text: string;
258
- old?: string | undefined;
259
- }>;
189
+ testid: z.ZodOptional<z.ZodString>;
190
+ initial: z.ZodOptional<z.ZodBoolean>;
191
+ }, z.core.$strip>;
260
192
  "net.request": z.ZodObject<{
261
193
  id: z.ZodString;
262
194
  method: z.ZodString;
@@ -268,83 +200,21 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
268
200
  urlRaw: z.ZodOptional<z.ZodString>;
269
201
  nextAction: z.ZodOptional<z.ZodString>;
270
202
  requestShape: z.ZodOptional<z.ZodString>;
271
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
272
- id: z.ZodString;
273
- method: z.ZodString;
274
- url: z.ZodString;
275
- status: z.ZodNumber;
276
- ok: z.ZodBoolean;
277
- durationMs: z.ZodNumber;
278
- initiator: z.ZodString;
279
- urlRaw: z.ZodOptional<z.ZodString>;
280
- nextAction: z.ZodOptional<z.ZodString>;
281
- requestShape: z.ZodOptional<z.ZodString>;
282
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
283
- id: z.ZodString;
284
- method: z.ZodString;
285
- url: z.ZodString;
286
- status: z.ZodNumber;
287
- ok: z.ZodBoolean;
288
- durationMs: z.ZodNumber;
289
- initiator: z.ZodString;
290
- urlRaw: z.ZodOptional<z.ZodString>;
291
- nextAction: z.ZodOptional<z.ZodString>;
292
- requestShape: z.ZodOptional<z.ZodString>;
293
- }, z.ZodTypeAny, "passthrough">>;
203
+ }, z.core.$loose>;
294
204
  "net.pending": z.ZodObject<{
295
205
  id: z.ZodString;
296
206
  method: z.ZodString;
297
207
  url: z.ZodString;
298
208
  initiator: z.ZodString;
299
209
  urlRaw: z.ZodOptional<z.ZodString>;
300
- }, "strip", z.ZodTypeAny, {
301
- method: string;
302
- url: string;
303
- id: string;
304
- initiator: string;
305
- urlRaw?: string | undefined;
306
- }, {
307
- method: string;
308
- url: string;
309
- id: string;
310
- initiator: string;
311
- urlRaw?: string | undefined;
312
- }>;
210
+ }, z.core.$strip>;
313
211
  "net.stream": z.ZodObject<{
314
- transport: z.ZodNativeEnum<{
315
- readonly SSE: "sse";
316
- readonly WS: "ws";
317
- readonly FETCH: "fetch";
318
- }>;
319
- direction: z.ZodNativeEnum<{
320
- readonly OPEN: "open";
321
- readonly IN: "in";
322
- readonly OUT: "out";
323
- readonly CLOSE: "close";
324
- }>;
325
- url: z.ZodString;
326
- urlRaw: z.ZodOptional<z.ZodString>;
327
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
328
- transport: z.ZodNativeEnum<{
329
- readonly SSE: "sse";
330
- readonly WS: "ws";
331
- readonly FETCH: "fetch";
332
- }>;
333
- direction: z.ZodNativeEnum<{
334
- readonly OPEN: "open";
335
- readonly IN: "in";
336
- readonly OUT: "out";
337
- readonly CLOSE: "close";
338
- }>;
339
- url: z.ZodString;
340
- urlRaw: z.ZodOptional<z.ZodString>;
341
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
342
- transport: z.ZodNativeEnum<{
212
+ transport: z.ZodEnum<{
343
213
  readonly SSE: "sse";
344
214
  readonly WS: "ws";
345
215
  readonly FETCH: "fetch";
346
216
  }>;
347
- direction: z.ZodNativeEnum<{
217
+ direction: z.ZodEnum<{
348
218
  readonly OPEN: "open";
349
219
  readonly IN: "in";
350
220
  readonly OUT: "out";
@@ -352,7 +222,7 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
352
222
  }>;
353
223
  url: z.ZodString;
354
224
  urlRaw: z.ZodOptional<z.ZodString>;
355
- }, z.ZodTypeAny, "passthrough">>;
225
+ }, z.core.$loose>;
356
226
  download: z.ZodObject<{
357
227
  mimeType: z.ZodString;
358
228
  bytes: z.ZodNumber;
@@ -360,23 +230,9 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
360
230
  lines: z.ZodOptional<z.ZodNumber>;
361
231
  preview: z.ZodOptional<z.ZodString>;
362
232
  previewTruncated: z.ZodOptional<z.ZodBoolean>;
363
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
364
- mimeType: z.ZodString;
365
- bytes: z.ZodNumber;
366
- filename: z.ZodOptional<z.ZodString>;
367
- lines: z.ZodOptional<z.ZodNumber>;
368
- preview: z.ZodOptional<z.ZodString>;
369
- previewTruncated: z.ZodOptional<z.ZodBoolean>;
370
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
371
- mimeType: z.ZodString;
372
- bytes: z.ZodNumber;
373
- filename: z.ZodOptional<z.ZodString>;
374
- lines: z.ZodOptional<z.ZodNumber>;
375
- preview: z.ZodOptional<z.ZodString>;
376
- previewTruncated: z.ZodOptional<z.ZodBoolean>;
377
- }, z.ZodTypeAny, "passthrough">>;
233
+ }, z.core.$loose>;
378
234
  perf: z.ZodObject<{
379
- metric: z.ZodNativeEnum<{
235
+ metric: z.ZodEnum<{
380
236
  readonly LCP: "lcp";
381
237
  readonly CLS: "cls";
382
238
  readonly LONGTASK: "longtask";
@@ -386,182 +242,75 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
386
242
  shifted: z.ZodOptional<z.ZodObject<{
387
243
  ref: z.ZodString;
388
244
  selector: z.ZodString;
389
- }, "strip", z.ZodTypeAny, {
390
- ref: string;
391
- selector: string;
392
- }, {
393
- ref: string;
394
- selector: string;
395
- }>>;
396
- }, "strip", z.ZodTypeAny, {
397
- value: number;
398
- at: number;
399
- metric: "lcp" | "cls" | "longtask";
400
- shifted?: {
401
- ref: string;
402
- selector: string;
403
- } | undefined;
404
- }, {
405
- value: number;
406
- at: number;
407
- metric: "lcp" | "cls" | "longtask";
408
- shifted?: {
409
- ref: string;
410
- selector: string;
411
- } | undefined;
412
- }>;
245
+ }, z.core.$strip>>;
246
+ }, z.core.$strip>;
413
247
  "route.change": z.ZodObject<{
414
248
  from: z.ZodString;
415
249
  to: z.ZodString;
416
250
  pathname: z.ZodString;
417
251
  search: z.ZodString;
418
252
  hash: z.ZodString;
419
- how: z.ZodNativeEnum<{
253
+ how: z.ZodEnum<{
420
254
  readonly PUSH: "push";
421
255
  readonly REPLACE: "replace";
422
256
  readonly POP: "pop";
423
257
  }>;
424
- }, "strip", z.ZodTypeAny, {
425
- from: string;
426
- to: string;
427
- pathname: string;
428
- how: "pop" | "push" | "replace";
429
- search: string;
430
- hash: string;
431
- }, {
432
- from: string;
433
- to: string;
434
- pathname: string;
435
- how: "pop" | "push" | "replace";
436
- search: string;
437
- hash: string;
438
- }>;
258
+ pattern: z.ZodOptional<z.ZodString>;
259
+ }, z.core.$strip>;
439
260
  "console.log": z.ZodObject<{
440
261
  message: z.ZodString;
441
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
442
- message: z.ZodString;
443
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
444
- message: z.ZodString;
445
- }, z.ZodTypeAny, "passthrough">>;
262
+ }, z.core.$loose>;
446
263
  "console.warn": z.ZodObject<{
447
264
  message: z.ZodString;
448
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
449
- message: z.ZodString;
450
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
451
- message: z.ZodString;
452
- }, z.ZodTypeAny, "passthrough">>;
265
+ }, z.core.$loose>;
453
266
  "console.error": z.ZodObject<{
454
267
  message: z.ZodString;
455
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
456
- message: z.ZodString;
457
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
458
- message: z.ZodString;
459
- }, z.ZodTypeAny, "passthrough">>;
268
+ }, z.core.$loose>;
460
269
  "console.info": z.ZodObject<{
461
270
  message: z.ZodString;
462
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
463
- message: z.ZodString;
464
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
465
- message: z.ZodString;
466
- }, z.ZodTypeAny, "passthrough">>;
271
+ }, z.core.$loose>;
467
272
  "console.debug": z.ZodObject<{
468
273
  message: z.ZodString;
469
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
470
- message: z.ZodString;
471
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
472
- message: z.ZodString;
473
- }, z.ZodTypeAny, "passthrough">>;
274
+ }, z.core.$loose>;
474
275
  "error.uncaught": z.ZodObject<{
475
276
  message: z.ZodString;
476
277
  source: z.ZodOptional<z.ZodString>;
477
278
  line: z.ZodOptional<z.ZodNumber>;
478
279
  kind: z.ZodOptional<z.ZodString>;
479
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
480
- message: z.ZodString;
481
- source: z.ZodOptional<z.ZodString>;
482
- line: z.ZodOptional<z.ZodNumber>;
483
- kind: z.ZodOptional<z.ZodString>;
484
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
485
- message: z.ZodString;
486
- source: z.ZodOptional<z.ZodString>;
487
- line: z.ZodOptional<z.ZodNumber>;
488
- kind: z.ZodOptional<z.ZodString>;
489
- }, z.ZodTypeAny, "passthrough">>;
280
+ }, z.core.$loose>;
490
281
  "visible.shown": z.ZodObject<{
491
282
  role: z.ZodOptional<z.ZodString>;
492
283
  name: z.ZodOptional<z.ZodString>;
493
- }, "strip", z.ZodTypeAny, {
494
- role?: string | undefined;
495
- name?: string | undefined;
496
- }, {
497
- role?: string | undefined;
498
- name?: string | undefined;
499
- }>;
284
+ }, z.core.$strip>;
500
285
  "anim.start": z.ZodObject<{
501
286
  name: z.ZodString;
502
- }, "strip", z.ZodTypeAny, {
503
- name: string;
504
- }, {
505
- name: string;
506
- }>;
287
+ }, z.core.$strip>;
507
288
  "anim.end": z.ZodObject<{
508
289
  name: z.ZodString;
509
- }, "strip", z.ZodTypeAny, {
510
- name: string;
511
- }, {
512
- name: string;
513
- }>;
290
+ }, z.core.$strip>;
514
291
  "scroll.position": z.ZodObject<{
515
292
  x: z.ZodNumber;
516
293
  y: z.ZodNumber;
517
294
  percent: z.ZodNumber;
518
- direction: z.ZodNativeEnum<{
295
+ direction: z.ZodEnum<{
519
296
  readonly UP: "up";
520
297
  readonly DOWN: "down";
521
298
  }>;
522
- }, "strip", z.ZodTypeAny, {
523
- percent: number;
524
- direction: "up" | "down";
525
- x: number;
526
- y: number;
527
- }, {
528
- percent: number;
529
- direction: "up" | "down";
530
- x: number;
531
- y: number;
532
- }>;
299
+ }, z.core.$strip>;
533
300
  "reveal.shown": z.ZodObject<{
534
301
  role: z.ZodOptional<z.ZodString>;
535
302
  name: z.ZodOptional<z.ZodString>;
536
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
537
- role: z.ZodOptional<z.ZodString>;
538
- name: z.ZodOptional<z.ZodString>;
539
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
540
- role: z.ZodOptional<z.ZodString>;
541
- name: z.ZodOptional<z.ZodString>;
542
- }, z.ZodTypeAny, "passthrough">>;
303
+ }, z.core.$loose>;
543
304
  signal: z.ZodObject<{
544
305
  name: z.ZodString;
545
306
  data: z.ZodOptional<z.ZodUnknown>;
546
- }, "strip", z.ZodTypeAny, {
547
- name: string;
548
- data?: unknown;
549
- }, {
550
- name: string;
551
- data?: unknown;
552
- }>;
307
+ }, z.core.$strip>;
553
308
  "state.change": z.ZodObject<{
554
309
  name: z.ZodString;
555
- value: z.ZodUnknown;
556
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
557
- name: z.ZodString;
558
- value: z.ZodUnknown;
559
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
560
- name: z.ZodString;
561
- value: z.ZodUnknown;
562
- }, z.ZodTypeAny, "passthrough">>;
310
+ value: z.ZodOptional<z.ZodUnknown>;
311
+ }, z.core.$loose>;
563
312
  "storage.change": z.ZodObject<{
564
- area: z.ZodNativeEnum<{
313
+ area: z.ZodEnum<{
565
314
  readonly LOCAL: "local";
566
315
  readonly SESSION: "session";
567
316
  readonly COOKIE: "cookies";
@@ -569,111 +318,12 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
569
318
  key: z.ZodString;
570
319
  old: z.ZodOptional<z.ZodString>;
571
320
  new: z.ZodOptional<z.ZodString>;
572
- }, "strip", z.ZodTypeAny, {
573
- key: string;
574
- area: "local" | "session" | "cookies";
575
- old?: string | undefined;
576
- new?: string | undefined;
577
- }, {
578
- key: string;
579
- area: "local" | "session" | "cookies";
580
- old?: string | undefined;
581
- new?: string | undefined;
582
- }>;
321
+ }, z.core.$strip>;
583
322
  "page.health": z.ZodObject<{
584
323
  hidden: z.ZodBoolean;
585
324
  focused: z.ZodBoolean;
586
325
  reason: z.ZodOptional<z.ZodString>;
587
- /**
588
- * Which browser the page is, normalised in the SDK to a closed list before it is sent — never
589
- * a UA string and never a raw `userAgentData` brand. Optional: an older SDK does not report
590
- * one, and a desktop webview has no brand to report.
591
- */
592
- brand: z.ZodOptional<z.ZodNativeEnum<{
593
- readonly CHROME: "chrome";
594
- readonly EDGE: "edge";
595
- readonly ARC: "arc";
596
- readonly DIA: "dia";
597
- readonly BRAVE: "brave";
598
- readonly OPERA: "opera";
599
- readonly FIREFOX: "firefox";
600
- readonly SAFARI: "safari";
601
- readonly OTHER: "other";
602
- }>>;
603
- /**
604
- * Which shell the page is running in: `web`, `electron`, `tauri`, or something newer.
605
- *
606
- * The SDK has always sent this and the server has always read it, but until now the field was
607
- * not declared here, so it travelled through `.passthrough()` and appeared in NONE of the
608
- * generated `dist/schema/*.json` files. Anyone implementing this contract from the published
609
- * schemas -- which is what a third-party realm does -- could not see that the field exists, let
610
- * alone that the server depends on it.
611
- *
612
- * A plain string on purpose, NOT a closed list of the three shells that ship today. A realm
613
- * that does not exist yet has to be able to name itself, and an enum here would mean one
614
- * unknown value fails the whole health report, taking visibility, focus and the heartbeat down
615
- * with it. The wire says the field exists and is a string; which values mean something stays
616
- * with the reader, where it already is.
617
- */
618
- runtime: z.ZodOptional<z.ZodString>;
619
- /** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
620
- engine: z.ZodOptional<z.ZodString>;
621
- /** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
622
- windowLabel: z.ZodOptional<z.ZodString>;
623
- /** The HTTP status the document was served with, when the page could read it. */
624
- documentStatus: z.ZodOptional<z.ZodNumber>;
625
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
626
- hidden: z.ZodBoolean;
627
- focused: z.ZodBoolean;
628
- reason: z.ZodOptional<z.ZodString>;
629
- /**
630
- * Which browser the page is, normalised in the SDK to a closed list before it is sent — never
631
- * a UA string and never a raw `userAgentData` brand. Optional: an older SDK does not report
632
- * one, and a desktop webview has no brand to report.
633
- */
634
- brand: z.ZodOptional<z.ZodNativeEnum<{
635
- readonly CHROME: "chrome";
636
- readonly EDGE: "edge";
637
- readonly ARC: "arc";
638
- readonly DIA: "dia";
639
- readonly BRAVE: "brave";
640
- readonly OPERA: "opera";
641
- readonly FIREFOX: "firefox";
642
- readonly SAFARI: "safari";
643
- readonly OTHER: "other";
644
- }>>;
645
- /**
646
- * Which shell the page is running in: `web`, `electron`, `tauri`, or something newer.
647
- *
648
- * The SDK has always sent this and the server has always read it, but until now the field was
649
- * not declared here, so it travelled through `.passthrough()` and appeared in NONE of the
650
- * generated `dist/schema/*.json` files. Anyone implementing this contract from the published
651
- * schemas -- which is what a third-party realm does -- could not see that the field exists, let
652
- * alone that the server depends on it.
653
- *
654
- * A plain string on purpose, NOT a closed list of the three shells that ship today. A realm
655
- * that does not exist yet has to be able to name itself, and an enum here would mean one
656
- * unknown value fails the whole health report, taking visibility, focus and the heartbeat down
657
- * with it. The wire says the field exists and is a string; which values mean something stays
658
- * with the reader, where it already is.
659
- */
660
- runtime: z.ZodOptional<z.ZodString>;
661
- /** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
662
- engine: z.ZodOptional<z.ZodString>;
663
- /** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
664
- windowLabel: z.ZodOptional<z.ZodString>;
665
- /** The HTTP status the document was served with, when the page could read it. */
666
- documentStatus: z.ZodOptional<z.ZodNumber>;
667
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
668
- hidden: z.ZodBoolean;
669
- focused: z.ZodBoolean;
670
- reason: z.ZodOptional<z.ZodString>;
671
- /**
672
- * Which browser the page is, normalised in the SDK to a closed list before it is sent — never
673
- * a UA string and never a raw `userAgentData` brand. Optional: an older SDK does not report
674
- * one, and a desktop webview has no brand to report.
675
- */
676
- brand: z.ZodOptional<z.ZodNativeEnum<{
326
+ brand: z.ZodOptional<z.ZodEnum<{
677
327
  readonly CHROME: "chrome";
678
328
  readonly EDGE: "edge";
679
329
  readonly ARC: "arc";
@@ -684,135 +334,58 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
684
334
  readonly SAFARI: "safari";
685
335
  readonly OTHER: "other";
686
336
  }>>;
687
- /**
688
- * Which shell the page is running in: `web`, `electron`, `tauri`, or something newer.
689
- *
690
- * The SDK has always sent this and the server has always read it, but until now the field was
691
- * not declared here, so it travelled through `.passthrough()` and appeared in NONE of the
692
- * generated `dist/schema/*.json` files. Anyone implementing this contract from the published
693
- * schemas -- which is what a third-party realm does -- could not see that the field exists, let
694
- * alone that the server depends on it.
695
- *
696
- * A plain string on purpose, NOT a closed list of the three shells that ship today. A realm
697
- * that does not exist yet has to be able to name itself, and an enum here would mean one
698
- * unknown value fails the whole health report, taking visibility, focus and the heartbeat down
699
- * with it. The wire says the field exists and is a string; which values mean something stays
700
- * with the reader, where it already is.
701
- */
702
337
  runtime: z.ZodOptional<z.ZodString>;
703
- /** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
704
338
  engine: z.ZodOptional<z.ZodString>;
705
- /** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
706
339
  windowLabel: z.ZodOptional<z.ZodString>;
707
- /** The HTTP status the document was served with, when the page could read it. */
708
340
  documentStatus: z.ZodOptional<z.ZodNumber>;
709
- }, z.ZodTypeAny, "passthrough">>;
341
+ }, z.core.$loose>;
710
342
  "context.opened": z.ZodObject<{
711
343
  href: z.ZodOptional<z.ZodString>;
712
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
713
- href: z.ZodOptional<z.ZodString>;
714
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
715
- href: z.ZodOptional<z.ZodString>;
716
- }, z.ZodTypeAny, "passthrough">>;
344
+ }, z.core.$loose>;
717
345
  "dialog.opened": z.ZodObject<{
718
- /** Which of the three, so a caller can tell a blocking question from a blocking notice. */
719
- kind: z.ZodEnum<["alert", "confirm", "prompt"]>;
720
- /** What the app asked. The whole point: a cancelled action is only legible with the question. */
721
- message: z.ZodOptional<z.ZodString>;
722
- /** What Reticle answered on the app's behalf. `false`/`null` are the non-destructive replies. */
723
- answered: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
724
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
725
- /** Which of the three, so a caller can tell a blocking question from a blocking notice. */
726
- kind: z.ZodEnum<["alert", "confirm", "prompt"]>;
727
- /** What the app asked. The whole point: a cancelled action is only legible with the question. */
728
- message: z.ZodOptional<z.ZodString>;
729
- /** What Reticle answered on the app's behalf. `false`/`null` are the non-destructive replies. */
730
- answered: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
731
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
732
- /** Which of the three, so a caller can tell a blocking question from a blocking notice. */
733
- kind: z.ZodEnum<["alert", "confirm", "prompt"]>;
734
- /** What the app asked. The whole point: a cancelled action is only legible with the question. */
346
+ kind: z.ZodEnum<{
347
+ prompt: "prompt";
348
+ alert: "alert";
349
+ confirm: "confirm";
350
+ }>;
735
351
  message: z.ZodOptional<z.ZodString>;
736
- /** What Reticle answered on the app's behalf. `false`/`null` are the non-destructive replies. */
737
- answered: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
738
- }, z.ZodTypeAny, "passthrough">>;
352
+ answered: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
353
+ }, z.core.$loose>;
739
354
  "render.commit": z.ZodObject<{
740
355
  commits: z.ZodNumber;
741
- }, "strip", z.ZodTypeAny, {
742
- commits: number;
743
- }, {
744
- commits: number;
745
- }>;
356
+ }, z.core.$strip>;
746
357
  "focus.change": z.ZodObject<{
747
358
  to: z.ZodOptional<z.ZodString>;
748
359
  from: z.ZodOptional<z.ZodString>;
749
360
  toBody: z.ZodBoolean;
750
- }, "strip", z.ZodTypeAny, {
751
- toBody: boolean;
752
- from?: string | undefined;
753
- to?: string | undefined;
754
- }, {
755
- toBody: boolean;
756
- from?: string | undefined;
757
- to?: string | undefined;
758
- }>;
361
+ }, z.core.$strip>;
759
362
  "field.change": z.ZodObject<{
760
- /** What an assertion would call this field: its testid, else its name, else its accessible name. */
761
363
  field: z.ZodString;
762
- /** `input` is a settled burst of keystrokes; `change` is the commit that ends one. */
763
- kind: z.ZodEnum<["input", "change"]>;
764
- /**
765
- * The length of the REAL value, never of the clipped one, and present even when redacted.
766
- *
767
- * "It was wiped" is the assertion this event exists for, and a length says it while carrying
768
- * nobody's password. A cap that shortened this would read exactly like the wipe.
769
- */
364
+ kind: z.ZodEnum<{
365
+ readonly INPUT: "input";
366
+ readonly CHANGE: "change";
367
+ readonly SETTLED: "settled";
368
+ }>;
770
369
  length: z.ZodNumber;
771
- /** Omitted for a password, a sensitive field name, or a payment autocomplete hint. */
772
370
  value: z.ZodOptional<z.ZodString>;
773
371
  redacted: z.ZodOptional<z.ZodLiteral<true>>;
774
- }, "strip", z.ZodTypeAny, {
775
- kind: "input" | "change";
776
- length: number;
777
- field: string;
778
- value?: string | undefined;
779
- redacted?: true | undefined;
780
- }, {
781
- kind: "input" | "change";
782
- length: number;
783
- field: string;
784
- value?: string | undefined;
785
- redacted?: true | undefined;
786
- }>;
372
+ checked: z.ZodOptional<z.ZodBoolean>;
373
+ previous: z.ZodOptional<z.ZodString>;
374
+ previousChecked: z.ZodOptional<z.ZodBoolean>;
375
+ }, z.core.$strip>;
787
376
  "flow.recorded": z.ZodObject<{
788
377
  name: z.ZodString;
789
- flow: z.ZodUnknown;
790
- }, "strip", z.ZodTypeAny, {
791
- name: string;
792
- flow?: unknown;
793
- }, {
794
- name: string;
795
- flow?: unknown;
796
- }>;
378
+ flow: z.ZodOptional<z.ZodUnknown>;
379
+ }, z.core.$strip>;
797
380
  "transport.overflow": z.ZodObject<{
798
381
  dropped: z.ZodNumber;
799
- }, "strip", z.ZodTypeAny, {
800
- dropped: number;
801
- }, {
802
- dropped: number;
803
- }>;
382
+ }, z.core.$strip>;
804
383
  truncated: z.ZodObject<{
805
384
  channel: z.ZodString;
806
385
  dropped: z.ZodNumber;
807
- }, "strip", z.ZodTypeAny, {
808
- dropped: number;
809
- channel: string;
810
- }, {
811
- dropped: number;
812
- channel: string;
813
- }>;
386
+ }, z.core.$strip>;
814
387
  "blind-spot": z.ZodObject<{
815
- kind: z.ZodNativeEnum<{
388
+ kind: z.ZodEnum<{
816
389
  readonly CLOSED_SHADOW_ROOT: "closed-shadow-root";
817
390
  readonly RATE_LIMITED: "rate-limited";
818
391
  readonly CROSS_ORIGIN_IFRAME: "cross-origin-iframe";
@@ -824,49 +397,35 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
824
397
  readonly UNWATCHED_STATE: "unwatched-state";
825
398
  }>;
826
399
  count: z.ZodNumber;
827
- }, "strip", z.ZodTypeAny, {
828
- kind: "closed-shadow-root" | "rate-limited" | "cross-origin-iframe" | "uninstrumented-frame" | "virtualized-unmounted" | "wrapped-network" | "unobserved-ipc" | "verdictless-send" | "unwatched-state";
829
- count: number;
830
- }, {
831
- kind: "closed-shadow-root" | "rate-limited" | "cross-origin-iframe" | "uninstrumented-frame" | "virtualized-unmounted" | "wrapped-network" | "unobserved-ipc" | "verdictless-send" | "unwatched-state";
832
- count: number;
833
- }>;
400
+ }, z.core.$strip>;
834
401
  "sdk.failed": z.ZodObject<{
835
- /** WHERE in the SDK — a fixed vocabulary of our own module names, never a user path. */
836
402
  site: z.ZodString;
837
- /** The error message. Stripped of variables server-side before it is ever reported onward. */
838
403
  message: z.ZodString;
839
404
  errorType: z.ZodOptional<z.ZodString>;
840
- }, "strip", z.ZodTypeAny, {
841
- message: string;
842
- site: string;
843
- errorType?: string | undefined;
844
- }, {
845
- message: string;
846
- site: string;
847
- errorType?: string | undefined;
848
- }>;
405
+ }, z.core.$strip>;
849
406
  "net.detail": z.ZodObject<{
850
407
  url: z.ZodString;
851
408
  method: z.ZodOptional<z.ZodString>;
852
409
  status: z.ZodNumber;
853
410
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
854
411
  resourceType: z.ZodOptional<z.ZodString>;
855
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
856
- url: z.ZodString;
857
- method: z.ZodOptional<z.ZodString>;
858
- status: z.ZodNumber;
859
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
860
- resourceType: z.ZodOptional<z.ZodString>;
861
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
412
+ }, z.core.$loose>;
413
+ "net.response-body": z.ZodObject<{
414
+ id: z.ZodString;
415
+ method: z.ZodString;
862
416
  url: z.ZodString;
863
- method: z.ZodOptional<z.ZodString>;
864
- status: z.ZodNumber;
865
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
866
- resourceType: z.ZodOptional<z.ZodString>;
867
- }, z.ZodTypeAny, "passthrough">>;
417
+ urlRaw: z.ZodOptional<z.ZodString>;
418
+ responseBody: z.ZodString;
419
+ responseBodyTruncated: z.ZodOptional<z.ZodBoolean>;
420
+ responseBodyReason: z.ZodOptional<z.ZodEnum<{
421
+ readonly ERROR_STATUS: "error-status";
422
+ readonly STREAMING: "streaming";
423
+ readonly NOT_TEXT: "not-text";
424
+ readonly UNREADABLE: "unreadable";
425
+ }>>;
426
+ }, z.core.$loose>;
868
427
  "human.control": z.ZodObject<{
869
- kind: z.ZodNativeEnum<{
428
+ kind: z.ZodEnum<{
870
429
  readonly PAUSE: "pause";
871
430
  readonly RESUME: "resume";
872
431
  readonly END: "end";
@@ -880,17 +439,11 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
880
439
  readonly HARNESS_LINK: "harness-link";
881
440
  }>;
882
441
  text: z.ZodOptional<z.ZodString>;
883
- }, "strip", z.ZodTypeAny, {
884
- kind: "message" | "harness" | "pause" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
885
- text?: string | undefined;
886
- }, {
887
- kind: "message" | "harness" | "pause" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
888
- text?: string | undefined;
889
- }>;
442
+ }, z.core.$strip>;
890
443
  "human.mark": z.ZodObject<{
891
444
  note: z.ZodString;
892
445
  anchor: z.ZodString;
893
- strategy: z.ZodNativeEnum<{
446
+ strategy: z.ZodEnum<{
894
447
  readonly TESTID: "testid";
895
448
  readonly COMPONENT: "component";
896
449
  readonly ROLE: "role";
@@ -900,47 +453,21 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
900
453
  source: z.ZodOptional<z.ZodObject<{
901
454
  file: z.ZodString;
902
455
  line: z.ZodNumber;
903
- }, "strip", z.ZodTypeAny, {
904
- file: string;
905
- line: number;
906
- }, {
907
- file: string;
908
- line: number;
909
- }>>;
456
+ }, z.core.$strip>>;
910
457
  route: z.ZodOptional<z.ZodString>;
911
- }, "strip", z.ZodTypeAny, {
912
- anchor: string;
913
- note: string;
914
- strategy: "testid" | "role" | "component" | "position";
915
- route?: string | undefined;
916
- label?: string | undefined;
917
- source?: {
918
- file: string;
919
- line: number;
920
- } | undefined;
921
- }, {
922
- anchor: string;
923
- note: string;
924
- strategy: "testid" | "role" | "component" | "position";
925
- route?: string | undefined;
926
- label?: string | undefined;
927
- source?: {
928
- file: string;
929
- line: number;
930
- } | undefined;
931
- }>;
458
+ }, z.core.$strip>;
932
459
  "hud.used": z.ZodObject<{
933
460
  control: z.ZodOptional<z.ZodString>;
934
- toggle: z.ZodOptional<z.ZodNativeEnum<{
461
+ toggle: z.ZodOptional<z.ZodEnum<{
935
462
  readonly ON: "on";
936
463
  readonly OFF: "off";
937
464
  }>>;
938
- view: z.ZodOptional<z.ZodNativeEnum<{
465
+ view: z.ZodOptional<z.ZodEnum<{
939
466
  readonly BUBBLE: "bubble";
940
467
  readonly COLLAPSED: "collapsed";
941
468
  readonly EXPANDED: "expanded";
942
469
  }>>;
943
- panel: z.ZodOptional<z.ZodNativeEnum<{
470
+ panel: z.ZodOptional<z.ZodEnum<{
944
471
  readonly CHAT: "chat";
945
472
  readonly FLOWS: "flows";
946
473
  readonly NOTES: "notes";
@@ -951,26 +478,43 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
951
478
  readonly NONE: "none";
952
479
  }>>;
953
480
  slide: z.ZodOptional<z.ZodString>;
954
- prompt: z.ZodOptional<z.ZodNativeEnum<{
481
+ prompt: z.ZodOptional<z.ZodEnum<{
955
482
  readonly RAIL: "rail";
956
483
  readonly HARNESS: "harness";
957
484
  readonly HEADER: "header";
958
485
  }>>;
959
- }, "strip", z.ZodTypeAny, {
960
- control?: string | undefined;
961
- toggle?: "on" | "off" | undefined;
962
- view?: "expanded" | "bubble" | "collapsed" | undefined;
963
- panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
964
- slide?: string | undefined;
965
- prompt?: "harness" | "rail" | "header" | undefined;
966
- }, {
967
- control?: string | undefined;
968
- toggle?: "on" | "off" | undefined;
969
- view?: "expanded" | "bubble" | "collapsed" | undefined;
970
- panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
971
- slide?: string | undefined;
972
- prompt?: "harness" | "rail" | "header" | undefined;
973
- }>;
486
+ }, z.core.$strip>;
487
+ "media.state": z.ZodObject<{
488
+ event: z.ZodEnum<{
489
+ readonly PLAY: "play";
490
+ readonly PLAYING: "playing";
491
+ readonly PAUSE: "pause";
492
+ readonly SEEKED: "seeked";
493
+ readonly ENDED: "ended";
494
+ readonly LOADED_DATA: "loadeddata";
495
+ readonly CAN_PLAY: "canplay";
496
+ readonly WAITING: "waiting";
497
+ readonly ERROR: "error";
498
+ }>;
499
+ tag: z.ZodEnum<{
500
+ video: "video";
501
+ audio: "audio";
502
+ }>;
503
+ currentTime: z.ZodNumber;
504
+ duration: z.ZodOptional<z.ZodNumber>;
505
+ readyState: z.ZodNumber;
506
+ paused: z.ZodBoolean;
507
+ }, z.core.$strip>;
508
+ "canvas.digest": z.ZodObject<{
509
+ digest: z.ZodString;
510
+ width: z.ZodNumber;
511
+ height: z.ZodNumber;
512
+ mean: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
513
+ trigger: z.ZodOptional<z.ZodEnum<{
514
+ readonly POLL: "poll";
515
+ readonly ACT: "act";
516
+ }>>;
517
+ }, z.core.$strip>;
974
518
  };
975
519
  /** Narrow an event's `data` against its type's payload schema. Unknown in, typed-or-error out. */
976
- export declare function parseEventPayload(type: EventType, data: unknown): z.SafeParseReturnType<unknown, unknown>;
520
+ export declare function parseEventPayload(type: EventType, data: unknown): z.ZodSafeParseResult<unknown>;