@reticlehq/core 3.8.0 → 3.8.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/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +15 -0
- package/dist/artifacts/flow-types.d.ts +202 -2331
- package/dist/artifacts/flow-types.js +2 -2
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +80 -1638
- package/dist/artifacts/impact.js +4 -4
- package/dist/artifacts/journal.d.ts +12 -247
- package/dist/artifacts/journal.js +2 -2
- package/dist/artifacts/prompt-context.d.ts +5 -43
- package/dist/artifacts/prompt-context.js +1 -1
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/onboarding.d.ts +8 -58
- package/dist/onboarding.js +1 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -103
- package/dist/schema/event-payloads.json +142 -119
- package/dist/schema/event-type.json +47 -50
- package/dist/schema/hello-message.json +150 -154
- package/dist/schema/reticle-event.json +98 -96
- package/dist/schema/reticle-message.json +338 -333
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-feedback.d.ts +11 -99
- package/dist/telemetry-feedback.js +1 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +39 -633
- package/dist/telemetry-session.js +10 -8
- package/dist/telemetry-signals.d.ts +58 -151
- package/dist/telemetry-signals.js +12 -1
- package/dist/telemetry.d.ts +137 -1814
- package/dist/telemetry.js +1 -1
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/instrumentation-coverage.d.ts +3 -3
- package/dist/verdict/instrumentation-coverage.js +1 -1
- package/dist/verdict/instrumentation-gap.d.ts +3 -10
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate.d.ts +1 -1
- package/dist/verdict/predicate.js +5 -5
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +13 -108
- package/dist/verdict/run-report.js +1 -1
- package/dist/verdict/security.d.ts +12 -0
- package/dist/verdict/security.js +94 -7
- package/dist/verdict/verification-run.d.ts +112 -1668
- package/dist/verdict/verification-run.js +4 -4
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/click-input.d.ts +15 -0
- package/dist/wire/click-input.js +42 -0
- package/dist/wire/constants/event-types.d.ts +2 -0
- package/dist/wire/constants/event-types.js +2 -0
- package/dist/wire/constants/response-body-reason.d.ts +4 -4
- package/dist/wire/constants/response-body-reason.js +4 -4
- package/dist/wire/constants/reticle-env.d.ts +2 -0
- package/dist/wire/constants/reticle-env.js +2 -0
- package/dist/wire/event-payloads.d.ts +108 -678
- package/dist/wire/event-payloads.js +24 -7
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +66 -755
- package/dist/wire/messages.js +3 -3
- package/dist/wire/next-step.d.ts +11 -51
- package/dist/wire/next-step.js +1 -1
- package/dist/wire/platform-link.js +2 -2
- package/dist/wire/production/production-policy.d.ts +37 -83
- package/dist/wire/production/production-policy.js +1 -1
- package/dist/wire/types.d.ts +75 -698
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +4 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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.
|
|
@@ -117,31 +117,15 @@ export declare const SeedCookieSchema: z.ZodObject<{
|
|
|
117
117
|
url: z.ZodOptional<z.ZodString>;
|
|
118
118
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
119
119
|
secure: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
-
sameSite: z.ZodOptional<z.ZodEnum<
|
|
120
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
Strict: "Strict";
|
|
122
|
+
Lax: "Lax";
|
|
123
|
+
None: "None";
|
|
124
|
+
}>>;
|
|
121
125
|
expires: z.ZodOptional<z.ZodNumber>;
|
|
122
|
-
},
|
|
123
|
-
name: string;
|
|
124
|
-
value: 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
|
-
name: string;
|
|
134
|
-
value: 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
|
-
}>;
|
|
126
|
+
}, z.core.$strip>;
|
|
143
127
|
export type SeedCookie = z.infer<typeof SeedCookieSchema>;
|
|
144
|
-
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<{
|
|
145
129
|
name: z.ZodString;
|
|
146
130
|
value: z.ZodString;
|
|
147
131
|
domain: z.ZodOptional<z.ZodString>;
|
|
@@ -149,29 +133,13 @@ export declare const SeedCookiesSchema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.Z
|
|
|
149
133
|
url: z.ZodOptional<z.ZodString>;
|
|
150
134
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
151
135
|
secure: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
-
sameSite: z.ZodOptional<z.ZodEnum<
|
|
136
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
Strict: "Strict";
|
|
138
|
+
Lax: "Lax";
|
|
139
|
+
None: "None";
|
|
140
|
+
}>>;
|
|
153
141
|
expires: z.ZodOptional<z.ZodNumber>;
|
|
154
|
-
},
|
|
155
|
-
name: string;
|
|
156
|
-
value: string;
|
|
157
|
-
path?: string | undefined;
|
|
158
|
-
url?: string | undefined;
|
|
159
|
-
domain?: string | undefined;
|
|
160
|
-
httpOnly?: boolean | undefined;
|
|
161
|
-
secure?: boolean | undefined;
|
|
162
|
-
sameSite?: "Strict" | "Lax" | "None" | undefined;
|
|
163
|
-
expires?: number | undefined;
|
|
164
|
-
}, {
|
|
165
|
-
name: string;
|
|
166
|
-
value: string;
|
|
167
|
-
path?: string | undefined;
|
|
168
|
-
url?: string | undefined;
|
|
169
|
-
domain?: string | undefined;
|
|
170
|
-
httpOnly?: boolean | undefined;
|
|
171
|
-
secure?: boolean | undefined;
|
|
172
|
-
sameSite?: "Strict" | "Lax" | "None" | undefined;
|
|
173
|
-
expires?: number | undefined;
|
|
174
|
-
}>, "many">]>;
|
|
142
|
+
}, z.core.$strip>>]>;
|
|
175
143
|
export type SeedCookies = z.infer<typeof SeedCookiesSchema>;
|
|
176
144
|
/**
|
|
177
145
|
* Client storage and session state to seed into an isolated context before the first navigation.
|
|
@@ -180,7 +148,7 @@ export type SeedCookies = z.infer<typeof SeedCookiesSchema>;
|
|
|
180
148
|
export declare const SeedStorageSchema: z.ZodObject<{
|
|
181
149
|
local: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
182
150
|
session: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
183
|
-
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<{
|
|
184
152
|
name: z.ZodString;
|
|
185
153
|
value: z.ZodString;
|
|
186
154
|
domain: z.ZodOptional<z.ZodString>;
|
|
@@ -188,58 +156,14 @@ export declare const SeedStorageSchema: z.ZodObject<{
|
|
|
188
156
|
url: z.ZodOptional<z.ZodString>;
|
|
189
157
|
httpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
190
158
|
secure: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
-
sameSite: z.ZodOptional<z.ZodEnum<
|
|
159
|
+
sameSite: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
Strict: "Strict";
|
|
161
|
+
Lax: "Lax";
|
|
162
|
+
None: "None";
|
|
163
|
+
}>>;
|
|
192
164
|
expires: z.ZodOptional<z.ZodNumber>;
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
value: string;
|
|
196
|
-
path?: string | undefined;
|
|
197
|
-
url?: string | undefined;
|
|
198
|
-
domain?: string | undefined;
|
|
199
|
-
httpOnly?: boolean | undefined;
|
|
200
|
-
secure?: boolean | undefined;
|
|
201
|
-
sameSite?: "Strict" | "Lax" | "None" | undefined;
|
|
202
|
-
expires?: number | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
name: string;
|
|
205
|
-
value: string;
|
|
206
|
-
path?: string | undefined;
|
|
207
|
-
url?: string | undefined;
|
|
208
|
-
domain?: string | undefined;
|
|
209
|
-
httpOnly?: boolean | undefined;
|
|
210
|
-
secure?: boolean | undefined;
|
|
211
|
-
sameSite?: "Strict" | "Lax" | "None" | undefined;
|
|
212
|
-
expires?: number | undefined;
|
|
213
|
-
}>, "many">]>>;
|
|
214
|
-
}, "strict", z.ZodTypeAny, {
|
|
215
|
-
local?: Record<string, string> | undefined;
|
|
216
|
-
session?: Record<string, string> | undefined;
|
|
217
|
-
cookies?: Record<string, string> | {
|
|
218
|
-
name: string;
|
|
219
|
-
value: string;
|
|
220
|
-
path?: string | undefined;
|
|
221
|
-
url?: string | undefined;
|
|
222
|
-
domain?: string | undefined;
|
|
223
|
-
httpOnly?: boolean | undefined;
|
|
224
|
-
secure?: boolean | undefined;
|
|
225
|
-
sameSite?: "Strict" | "Lax" | "None" | undefined;
|
|
226
|
-
expires?: number | undefined;
|
|
227
|
-
}[] | undefined;
|
|
228
|
-
}, {
|
|
229
|
-
local?: Record<string, string> | undefined;
|
|
230
|
-
session?: Record<string, string> | undefined;
|
|
231
|
-
cookies?: Record<string, string> | {
|
|
232
|
-
name: string;
|
|
233
|
-
value: string;
|
|
234
|
-
path?: string | undefined;
|
|
235
|
-
url?: string | undefined;
|
|
236
|
-
domain?: string | undefined;
|
|
237
|
-
httpOnly?: boolean | undefined;
|
|
238
|
-
secure?: boolean | undefined;
|
|
239
|
-
sameSite?: "Strict" | "Lax" | "None" | undefined;
|
|
240
|
-
expires?: number | undefined;
|
|
241
|
-
}[] | undefined;
|
|
242
|
-
}>;
|
|
165
|
+
}, z.core.$strip>>]>>;
|
|
166
|
+
}, z.core.$strict>;
|
|
243
167
|
export type SeedStorage = z.infer<typeof SeedStorageSchema>;
|
|
244
168
|
/**
|
|
245
169
|
* The registry. `satisfies Record<EventType,...>` makes a missing event type a *compile* error —
|
|
@@ -249,57 +173,22 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
249
173
|
"dom.added": z.ZodObject<{
|
|
250
174
|
role: z.ZodOptional<z.ZodString>;
|
|
251
175
|
name: z.ZodOptional<z.ZodString>;
|
|
252
|
-
},
|
|
253
|
-
name?: string | undefined;
|
|
254
|
-
role?: string | undefined;
|
|
255
|
-
}, {
|
|
256
|
-
name?: string | undefined;
|
|
257
|
-
role?: string | undefined;
|
|
258
|
-
}>;
|
|
176
|
+
}, z.core.$strip>;
|
|
259
177
|
"dom.removed": z.ZodObject<{
|
|
260
178
|
role: z.ZodOptional<z.ZodString>;
|
|
261
179
|
name: z.ZodOptional<z.ZodString>;
|
|
262
|
-
},
|
|
263
|
-
name?: string | undefined;
|
|
264
|
-
role?: string | undefined;
|
|
265
|
-
}, {
|
|
266
|
-
name?: string | undefined;
|
|
267
|
-
role?: string | undefined;
|
|
268
|
-
}>;
|
|
180
|
+
}, z.core.$strip>;
|
|
269
181
|
"dom.attr": z.ZodObject<{
|
|
270
182
|
attr: z.ZodString;
|
|
271
183
|
value: z.ZodOptional<z.ZodString>;
|
|
272
184
|
old: z.ZodOptional<z.ZodString>;
|
|
273
|
-
},
|
|
274
|
-
attr: z.ZodString;
|
|
275
|
-
value: z.ZodOptional<z.ZodString>;
|
|
276
|
-
old: z.ZodOptional<z.ZodString>;
|
|
277
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
278
|
-
attr: z.ZodString;
|
|
279
|
-
value: z.ZodOptional<z.ZodString>;
|
|
280
|
-
old: z.ZodOptional<z.ZodString>;
|
|
281
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
185
|
+
}, z.core.$loose>;
|
|
282
186
|
"dom.text": z.ZodObject<{
|
|
283
187
|
text: z.ZodString;
|
|
284
188
|
old: z.ZodOptional<z.ZodString>;
|
|
285
|
-
/**
|
|
286
|
-
* The `data-testid` of the element or its nearest ancestor, so a text change can be named and a
|
|
287
|
-
* stale one (a store field changed, the text that shows it did not) can be found.
|
|
288
|
-
*/
|
|
289
189
|
testid: z.ZodOptional<z.ZodString>;
|
|
290
|
-
/** The text an element ARRIVED with, not a change: the baseline a later change is read against. */
|
|
291
190
|
initial: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
-
},
|
|
293
|
-
text: string;
|
|
294
|
-
testid?: string | undefined;
|
|
295
|
-
initial?: boolean | undefined;
|
|
296
|
-
old?: string | undefined;
|
|
297
|
-
}, {
|
|
298
|
-
text: string;
|
|
299
|
-
testid?: string | undefined;
|
|
300
|
-
initial?: boolean | undefined;
|
|
301
|
-
old?: string | undefined;
|
|
302
|
-
}>;
|
|
191
|
+
}, z.core.$strip>;
|
|
303
192
|
"net.request": z.ZodObject<{
|
|
304
193
|
id: z.ZodString;
|
|
305
194
|
method: z.ZodString;
|
|
@@ -311,83 +200,21 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
311
200
|
urlRaw: z.ZodOptional<z.ZodString>;
|
|
312
201
|
nextAction: z.ZodOptional<z.ZodString>;
|
|
313
202
|
requestShape: z.ZodOptional<z.ZodString>;
|
|
314
|
-
},
|
|
315
|
-
id: z.ZodString;
|
|
316
|
-
method: z.ZodString;
|
|
317
|
-
url: z.ZodString;
|
|
318
|
-
status: z.ZodNumber;
|
|
319
|
-
ok: z.ZodBoolean;
|
|
320
|
-
durationMs: z.ZodNumber;
|
|
321
|
-
initiator: z.ZodString;
|
|
322
|
-
urlRaw: z.ZodOptional<z.ZodString>;
|
|
323
|
-
nextAction: z.ZodOptional<z.ZodString>;
|
|
324
|
-
requestShape: z.ZodOptional<z.ZodString>;
|
|
325
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
326
|
-
id: z.ZodString;
|
|
327
|
-
method: z.ZodString;
|
|
328
|
-
url: z.ZodString;
|
|
329
|
-
status: z.ZodNumber;
|
|
330
|
-
ok: z.ZodBoolean;
|
|
331
|
-
durationMs: z.ZodNumber;
|
|
332
|
-
initiator: z.ZodString;
|
|
333
|
-
urlRaw: z.ZodOptional<z.ZodString>;
|
|
334
|
-
nextAction: z.ZodOptional<z.ZodString>;
|
|
335
|
-
requestShape: z.ZodOptional<z.ZodString>;
|
|
336
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
203
|
+
}, z.core.$loose>;
|
|
337
204
|
"net.pending": z.ZodObject<{
|
|
338
205
|
id: z.ZodString;
|
|
339
206
|
method: z.ZodString;
|
|
340
207
|
url: z.ZodString;
|
|
341
208
|
initiator: z.ZodString;
|
|
342
209
|
urlRaw: z.ZodOptional<z.ZodString>;
|
|
343
|
-
},
|
|
344
|
-
method: string;
|
|
345
|
-
url: string;
|
|
346
|
-
id: string;
|
|
347
|
-
initiator: string;
|
|
348
|
-
urlRaw?: string | undefined;
|
|
349
|
-
}, {
|
|
350
|
-
method: string;
|
|
351
|
-
url: string;
|
|
352
|
-
id: string;
|
|
353
|
-
initiator: string;
|
|
354
|
-
urlRaw?: string | undefined;
|
|
355
|
-
}>;
|
|
210
|
+
}, z.core.$strip>;
|
|
356
211
|
"net.stream": z.ZodObject<{
|
|
357
|
-
transport: z.
|
|
358
|
-
readonly SSE: "sse";
|
|
359
|
-
readonly WS: "ws";
|
|
360
|
-
readonly FETCH: "fetch";
|
|
361
|
-
}>;
|
|
362
|
-
direction: z.ZodNativeEnum<{
|
|
363
|
-
readonly OPEN: "open";
|
|
364
|
-
readonly IN: "in";
|
|
365
|
-
readonly OUT: "out";
|
|
366
|
-
readonly CLOSE: "close";
|
|
367
|
-
}>;
|
|
368
|
-
url: z.ZodString;
|
|
369
|
-
urlRaw: z.ZodOptional<z.ZodString>;
|
|
370
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
371
|
-
transport: z.ZodNativeEnum<{
|
|
372
|
-
readonly SSE: "sse";
|
|
373
|
-
readonly WS: "ws";
|
|
374
|
-
readonly FETCH: "fetch";
|
|
375
|
-
}>;
|
|
376
|
-
direction: z.ZodNativeEnum<{
|
|
377
|
-
readonly OPEN: "open";
|
|
378
|
-
readonly IN: "in";
|
|
379
|
-
readonly OUT: "out";
|
|
380
|
-
readonly CLOSE: "close";
|
|
381
|
-
}>;
|
|
382
|
-
url: z.ZodString;
|
|
383
|
-
urlRaw: z.ZodOptional<z.ZodString>;
|
|
384
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
385
|
-
transport: z.ZodNativeEnum<{
|
|
212
|
+
transport: z.ZodEnum<{
|
|
386
213
|
readonly SSE: "sse";
|
|
387
214
|
readonly WS: "ws";
|
|
388
215
|
readonly FETCH: "fetch";
|
|
389
216
|
}>;
|
|
390
|
-
direction: z.
|
|
217
|
+
direction: z.ZodEnum<{
|
|
391
218
|
readonly OPEN: "open";
|
|
392
219
|
readonly IN: "in";
|
|
393
220
|
readonly OUT: "out";
|
|
@@ -395,7 +222,7 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
395
222
|
}>;
|
|
396
223
|
url: z.ZodString;
|
|
397
224
|
urlRaw: z.ZodOptional<z.ZodString>;
|
|
398
|
-
}, z.
|
|
225
|
+
}, z.core.$loose>;
|
|
399
226
|
download: z.ZodObject<{
|
|
400
227
|
mimeType: z.ZodString;
|
|
401
228
|
bytes: z.ZodNumber;
|
|
@@ -403,23 +230,9 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
403
230
|
lines: z.ZodOptional<z.ZodNumber>;
|
|
404
231
|
preview: z.ZodOptional<z.ZodString>;
|
|
405
232
|
previewTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
406
|
-
},
|
|
407
|
-
mimeType: z.ZodString;
|
|
408
|
-
bytes: z.ZodNumber;
|
|
409
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
410
|
-
lines: z.ZodOptional<z.ZodNumber>;
|
|
411
|
-
preview: z.ZodOptional<z.ZodString>;
|
|
412
|
-
previewTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
413
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
414
|
-
mimeType: z.ZodString;
|
|
415
|
-
bytes: z.ZodNumber;
|
|
416
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
417
|
-
lines: z.ZodOptional<z.ZodNumber>;
|
|
418
|
-
preview: z.ZodOptional<z.ZodString>;
|
|
419
|
-
previewTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
233
|
+
}, z.core.$loose>;
|
|
421
234
|
perf: z.ZodObject<{
|
|
422
|
-
metric: z.
|
|
235
|
+
metric: z.ZodEnum<{
|
|
423
236
|
readonly LCP: "lcp";
|
|
424
237
|
readonly CLS: "cls";
|
|
425
238
|
readonly LONGTASK: "longtask";
|
|
@@ -429,186 +242,75 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
429
242
|
shifted: z.ZodOptional<z.ZodObject<{
|
|
430
243
|
ref: z.ZodString;
|
|
431
244
|
selector: z.ZodString;
|
|
432
|
-
},
|
|
433
|
-
|
|
434
|
-
selector: string;
|
|
435
|
-
}, {
|
|
436
|
-
ref: string;
|
|
437
|
-
selector: string;
|
|
438
|
-
}>>;
|
|
439
|
-
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
at: number;
|
|
441
|
-
value: number;
|
|
442
|
-
metric: "lcp" | "cls" | "longtask";
|
|
443
|
-
shifted?: {
|
|
444
|
-
ref: string;
|
|
445
|
-
selector: string;
|
|
446
|
-
} | undefined;
|
|
447
|
-
}, {
|
|
448
|
-
at: number;
|
|
449
|
-
value: number;
|
|
450
|
-
metric: "lcp" | "cls" | "longtask";
|
|
451
|
-
shifted?: {
|
|
452
|
-
ref: string;
|
|
453
|
-
selector: string;
|
|
454
|
-
} | undefined;
|
|
455
|
-
}>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
}, z.core.$strip>;
|
|
456
247
|
"route.change": z.ZodObject<{
|
|
457
248
|
from: z.ZodString;
|
|
458
249
|
to: z.ZodString;
|
|
459
250
|
pathname: z.ZodString;
|
|
460
251
|
search: z.ZodString;
|
|
461
252
|
hash: z.ZodString;
|
|
462
|
-
how: z.
|
|
253
|
+
how: z.ZodEnum<{
|
|
463
254
|
readonly PUSH: "push";
|
|
464
255
|
readonly REPLACE: "replace";
|
|
465
256
|
readonly POP: "pop";
|
|
466
257
|
}>;
|
|
467
|
-
/** The app's own route pattern for the screen reached (`/personas/:personaId`), when known. */
|
|
468
258
|
pattern: z.ZodOptional<z.ZodString>;
|
|
469
|
-
},
|
|
470
|
-
search: string;
|
|
471
|
-
from: string;
|
|
472
|
-
to: string;
|
|
473
|
-
pathname: string;
|
|
474
|
-
how: "replace" | "pop" | "push";
|
|
475
|
-
hash: string;
|
|
476
|
-
pattern?: string | undefined;
|
|
477
|
-
}, {
|
|
478
|
-
search: string;
|
|
479
|
-
from: string;
|
|
480
|
-
to: string;
|
|
481
|
-
pathname: string;
|
|
482
|
-
how: "replace" | "pop" | "push";
|
|
483
|
-
hash: string;
|
|
484
|
-
pattern?: string | undefined;
|
|
485
|
-
}>;
|
|
259
|
+
}, z.core.$strip>;
|
|
486
260
|
"console.log": z.ZodObject<{
|
|
487
261
|
message: z.ZodString;
|
|
488
|
-
},
|
|
489
|
-
message: z.ZodString;
|
|
490
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
491
|
-
message: z.ZodString;
|
|
492
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
262
|
+
}, z.core.$loose>;
|
|
493
263
|
"console.warn": z.ZodObject<{
|
|
494
264
|
message: z.ZodString;
|
|
495
|
-
},
|
|
496
|
-
message: z.ZodString;
|
|
497
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
498
|
-
message: z.ZodString;
|
|
499
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
265
|
+
}, z.core.$loose>;
|
|
500
266
|
"console.error": z.ZodObject<{
|
|
501
267
|
message: z.ZodString;
|
|
502
|
-
},
|
|
503
|
-
message: z.ZodString;
|
|
504
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
505
|
-
message: z.ZodString;
|
|
506
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
268
|
+
}, z.core.$loose>;
|
|
507
269
|
"console.info": z.ZodObject<{
|
|
508
270
|
message: z.ZodString;
|
|
509
|
-
},
|
|
510
|
-
message: z.ZodString;
|
|
511
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
512
|
-
message: z.ZodString;
|
|
513
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
271
|
+
}, z.core.$loose>;
|
|
514
272
|
"console.debug": z.ZodObject<{
|
|
515
273
|
message: z.ZodString;
|
|
516
|
-
},
|
|
517
|
-
message: z.ZodString;
|
|
518
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
519
|
-
message: z.ZodString;
|
|
520
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
274
|
+
}, z.core.$loose>;
|
|
521
275
|
"error.uncaught": z.ZodObject<{
|
|
522
276
|
message: z.ZodString;
|
|
523
277
|
source: z.ZodOptional<z.ZodString>;
|
|
524
278
|
line: z.ZodOptional<z.ZodNumber>;
|
|
525
279
|
kind: z.ZodOptional<z.ZodString>;
|
|
526
|
-
},
|
|
527
|
-
message: z.ZodString;
|
|
528
|
-
source: z.ZodOptional<z.ZodString>;
|
|
529
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
530
|
-
kind: z.ZodOptional<z.ZodString>;
|
|
531
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
532
|
-
message: z.ZodString;
|
|
533
|
-
source: z.ZodOptional<z.ZodString>;
|
|
534
|
-
line: z.ZodOptional<z.ZodNumber>;
|
|
535
|
-
kind: z.ZodOptional<z.ZodString>;
|
|
536
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
280
|
+
}, z.core.$loose>;
|
|
537
281
|
"visible.shown": z.ZodObject<{
|
|
538
282
|
role: z.ZodOptional<z.ZodString>;
|
|
539
283
|
name: z.ZodOptional<z.ZodString>;
|
|
540
|
-
},
|
|
541
|
-
name?: string | undefined;
|
|
542
|
-
role?: string | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
name?: string | undefined;
|
|
545
|
-
role?: string | undefined;
|
|
546
|
-
}>;
|
|
284
|
+
}, z.core.$strip>;
|
|
547
285
|
"anim.start": z.ZodObject<{
|
|
548
286
|
name: z.ZodString;
|
|
549
|
-
},
|
|
550
|
-
name: string;
|
|
551
|
-
}, {
|
|
552
|
-
name: string;
|
|
553
|
-
}>;
|
|
287
|
+
}, z.core.$strip>;
|
|
554
288
|
"anim.end": z.ZodObject<{
|
|
555
289
|
name: z.ZodString;
|
|
556
|
-
},
|
|
557
|
-
name: string;
|
|
558
|
-
}, {
|
|
559
|
-
name: string;
|
|
560
|
-
}>;
|
|
290
|
+
}, z.core.$strip>;
|
|
561
291
|
"scroll.position": z.ZodObject<{
|
|
562
292
|
x: z.ZodNumber;
|
|
563
293
|
y: z.ZodNumber;
|
|
564
294
|
percent: z.ZodNumber;
|
|
565
|
-
direction: z.
|
|
295
|
+
direction: z.ZodEnum<{
|
|
566
296
|
readonly UP: "up";
|
|
567
297
|
readonly DOWN: "down";
|
|
568
298
|
}>;
|
|
569
|
-
},
|
|
570
|
-
percent: number;
|
|
571
|
-
direction: "up" | "down";
|
|
572
|
-
x: number;
|
|
573
|
-
y: number;
|
|
574
|
-
}, {
|
|
575
|
-
percent: number;
|
|
576
|
-
direction: "up" | "down";
|
|
577
|
-
x: number;
|
|
578
|
-
y: number;
|
|
579
|
-
}>;
|
|
299
|
+
}, z.core.$strip>;
|
|
580
300
|
"reveal.shown": z.ZodObject<{
|
|
581
301
|
role: z.ZodOptional<z.ZodString>;
|
|
582
302
|
name: z.ZodOptional<z.ZodString>;
|
|
583
|
-
},
|
|
584
|
-
role: z.ZodOptional<z.ZodString>;
|
|
585
|
-
name: z.ZodOptional<z.ZodString>;
|
|
586
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
587
|
-
role: z.ZodOptional<z.ZodString>;
|
|
588
|
-
name: z.ZodOptional<z.ZodString>;
|
|
589
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
303
|
+
}, z.core.$loose>;
|
|
590
304
|
signal: z.ZodObject<{
|
|
591
305
|
name: z.ZodString;
|
|
592
306
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
593
|
-
},
|
|
594
|
-
name: string;
|
|
595
|
-
data?: unknown;
|
|
596
|
-
}, {
|
|
597
|
-
name: string;
|
|
598
|
-
data?: unknown;
|
|
599
|
-
}>;
|
|
307
|
+
}, z.core.$strip>;
|
|
600
308
|
"state.change": z.ZodObject<{
|
|
601
309
|
name: z.ZodString;
|
|
602
|
-
value: z.ZodUnknown
|
|
603
|
-
},
|
|
604
|
-
name: z.ZodString;
|
|
605
|
-
value: z.ZodUnknown;
|
|
606
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
607
|
-
name: z.ZodString;
|
|
608
|
-
value: z.ZodUnknown;
|
|
609
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
310
|
+
value: z.ZodOptional<z.ZodUnknown>;
|
|
311
|
+
}, z.core.$loose>;
|
|
610
312
|
"storage.change": z.ZodObject<{
|
|
611
|
-
area: z.
|
|
313
|
+
area: z.ZodEnum<{
|
|
612
314
|
readonly LOCAL: "local";
|
|
613
315
|
readonly SESSION: "session";
|
|
614
316
|
readonly COOKIE: "cookies";
|
|
@@ -616,111 +318,12 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
616
318
|
key: z.ZodString;
|
|
617
319
|
old: z.ZodOptional<z.ZodString>;
|
|
618
320
|
new: z.ZodOptional<z.ZodString>;
|
|
619
|
-
},
|
|
620
|
-
key: string;
|
|
621
|
-
area: "local" | "session" | "cookies";
|
|
622
|
-
old?: string | undefined;
|
|
623
|
-
new?: string | undefined;
|
|
624
|
-
}, {
|
|
625
|
-
key: string;
|
|
626
|
-
area: "local" | "session" | "cookies";
|
|
627
|
-
old?: string | undefined;
|
|
628
|
-
new?: string | undefined;
|
|
629
|
-
}>;
|
|
321
|
+
}, z.core.$strip>;
|
|
630
322
|
"page.health": z.ZodObject<{
|
|
631
323
|
hidden: z.ZodBoolean;
|
|
632
324
|
focused: z.ZodBoolean;
|
|
633
325
|
reason: z.ZodOptional<z.ZodString>;
|
|
634
|
-
|
|
635
|
-
* Which browser the page is, normalised in the SDK to a closed list before it is sent — never
|
|
636
|
-
* a UA string and never a raw `userAgentData` brand. Optional: an older SDK does not report
|
|
637
|
-
* one, and a desktop webview has no brand to report.
|
|
638
|
-
*/
|
|
639
|
-
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
640
|
-
readonly CHROME: "chrome";
|
|
641
|
-
readonly EDGE: "edge";
|
|
642
|
-
readonly ARC: "arc";
|
|
643
|
-
readonly DIA: "dia";
|
|
644
|
-
readonly BRAVE: "brave";
|
|
645
|
-
readonly OPERA: "opera";
|
|
646
|
-
readonly FIREFOX: "firefox";
|
|
647
|
-
readonly SAFARI: "safari";
|
|
648
|
-
readonly OTHER: "other";
|
|
649
|
-
}>>;
|
|
650
|
-
/**
|
|
651
|
-
* Which shell the page is running in: `web`, `electron`, `tauri`, or something newer.
|
|
652
|
-
*
|
|
653
|
-
* The SDK has always sent this and the server has always read it, but until now the field was
|
|
654
|
-
* not declared here, so it travelled through `.passthrough()` and appeared in NONE of the
|
|
655
|
-
* generated `dist/schema/*.json` files. Anyone implementing this contract from the published
|
|
656
|
-
* schemas -- which is what a third-party realm does -- could not see that the field exists, let
|
|
657
|
-
* alone that the server depends on it.
|
|
658
|
-
*
|
|
659
|
-
* A plain string on purpose, NOT a closed list of the three shells that ship today. A realm
|
|
660
|
-
* that does not exist yet has to be able to name itself, and an enum here would mean one
|
|
661
|
-
* unknown value fails the whole health report, taking visibility, focus and the heartbeat down
|
|
662
|
-
* with it. The wire says the field exists and is a string; which values mean something stays
|
|
663
|
-
* with the reader, where it already is.
|
|
664
|
-
*/
|
|
665
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
666
|
-
/** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
|
|
667
|
-
engine: z.ZodOptional<z.ZodString>;
|
|
668
|
-
/** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
|
|
669
|
-
windowLabel: z.ZodOptional<z.ZodString>;
|
|
670
|
-
/** The HTTP status the document was served with, when the page could read it. */
|
|
671
|
-
documentStatus: z.ZodOptional<z.ZodNumber>;
|
|
672
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
673
|
-
hidden: z.ZodBoolean;
|
|
674
|
-
focused: z.ZodBoolean;
|
|
675
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
676
|
-
/**
|
|
677
|
-
* Which browser the page is, normalised in the SDK to a closed list before it is sent — never
|
|
678
|
-
* a UA string and never a raw `userAgentData` brand. Optional: an older SDK does not report
|
|
679
|
-
* one, and a desktop webview has no brand to report.
|
|
680
|
-
*/
|
|
681
|
-
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
682
|
-
readonly CHROME: "chrome";
|
|
683
|
-
readonly EDGE: "edge";
|
|
684
|
-
readonly ARC: "arc";
|
|
685
|
-
readonly DIA: "dia";
|
|
686
|
-
readonly BRAVE: "brave";
|
|
687
|
-
readonly OPERA: "opera";
|
|
688
|
-
readonly FIREFOX: "firefox";
|
|
689
|
-
readonly SAFARI: "safari";
|
|
690
|
-
readonly OTHER: "other";
|
|
691
|
-
}>>;
|
|
692
|
-
/**
|
|
693
|
-
* Which shell the page is running in: `web`, `electron`, `tauri`, or something newer.
|
|
694
|
-
*
|
|
695
|
-
* The SDK has always sent this and the server has always read it, but until now the field was
|
|
696
|
-
* not declared here, so it travelled through `.passthrough()` and appeared in NONE of the
|
|
697
|
-
* generated `dist/schema/*.json` files. Anyone implementing this contract from the published
|
|
698
|
-
* schemas -- which is what a third-party realm does -- could not see that the field exists, let
|
|
699
|
-
* alone that the server depends on it.
|
|
700
|
-
*
|
|
701
|
-
* A plain string on purpose, NOT a closed list of the three shells that ship today. A realm
|
|
702
|
-
* that does not exist yet has to be able to name itself, and an enum here would mean one
|
|
703
|
-
* unknown value fails the whole health report, taking visibility, focus and the heartbeat down
|
|
704
|
-
* with it. The wire says the field exists and is a string; which values mean something stays
|
|
705
|
-
* with the reader, where it already is.
|
|
706
|
-
*/
|
|
707
|
-
runtime: z.ZodOptional<z.ZodString>;
|
|
708
|
-
/** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
|
|
709
|
-
engine: z.ZodOptional<z.ZodString>;
|
|
710
|
-
/** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
|
|
711
|
-
windowLabel: z.ZodOptional<z.ZodString>;
|
|
712
|
-
/** The HTTP status the document was served with, when the page could read it. */
|
|
713
|
-
documentStatus: z.ZodOptional<z.ZodNumber>;
|
|
714
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
715
|
-
hidden: z.ZodBoolean;
|
|
716
|
-
focused: z.ZodBoolean;
|
|
717
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
718
|
-
/**
|
|
719
|
-
* Which browser the page is, normalised in the SDK to a closed list before it is sent — never
|
|
720
|
-
* a UA string and never a raw `userAgentData` brand. Optional: an older SDK does not report
|
|
721
|
-
* one, and a desktop webview has no brand to report.
|
|
722
|
-
*/
|
|
723
|
-
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
326
|
+
brand: z.ZodOptional<z.ZodEnum<{
|
|
724
327
|
readonly CHROME: "chrome";
|
|
725
328
|
readonly EDGE: "edge";
|
|
726
329
|
readonly ARC: "arc";
|
|
@@ -731,81 +334,34 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
731
334
|
readonly SAFARI: "safari";
|
|
732
335
|
readonly OTHER: "other";
|
|
733
336
|
}>>;
|
|
734
|
-
/**
|
|
735
|
-
* Which shell the page is running in: `web`, `electron`, `tauri`, or something newer.
|
|
736
|
-
*
|
|
737
|
-
* The SDK has always sent this and the server has always read it, but until now the field was
|
|
738
|
-
* not declared here, so it travelled through `.passthrough()` and appeared in NONE of the
|
|
739
|
-
* generated `dist/schema/*.json` files. Anyone implementing this contract from the published
|
|
740
|
-
* schemas -- which is what a third-party realm does -- could not see that the field exists, let
|
|
741
|
-
* alone that the server depends on it.
|
|
742
|
-
*
|
|
743
|
-
* A plain string on purpose, NOT a closed list of the three shells that ship today. A realm
|
|
744
|
-
* that does not exist yet has to be able to name itself, and an enum here would mean one
|
|
745
|
-
* unknown value fails the whole health report, taking visibility, focus and the heartbeat down
|
|
746
|
-
* with it. The wire says the field exists and is a string; which values mean something stays
|
|
747
|
-
* with the reader, where it already is.
|
|
748
|
-
*/
|
|
749
337
|
runtime: z.ZodOptional<z.ZodString>;
|
|
750
|
-
/** The rendering engine, coarse on purpose (blink / gecko / webkit). Same reasoning as `runtime`. */
|
|
751
338
|
engine: z.ZodOptional<z.ZodString>;
|
|
752
|
-
/** The desktop shell's own name for this window (Tauri's label: `main`, `setup`). */
|
|
753
339
|
windowLabel: z.ZodOptional<z.ZodString>;
|
|
754
|
-
/** The HTTP status the document was served with, when the page could read it. */
|
|
755
340
|
documentStatus: z.ZodOptional<z.ZodNumber>;
|
|
756
|
-
}, z.
|
|
341
|
+
}, z.core.$loose>;
|
|
757
342
|
"context.opened": z.ZodObject<{
|
|
758
343
|
href: z.ZodOptional<z.ZodString>;
|
|
759
|
-
},
|
|
760
|
-
href: z.ZodOptional<z.ZodString>;
|
|
761
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
762
|
-
href: z.ZodOptional<z.ZodString>;
|
|
763
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
344
|
+
}, z.core.$loose>;
|
|
764
345
|
"dialog.opened": z.ZodObject<{
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
answered: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
771
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
772
|
-
/** Which of the three, so a caller can tell a blocking question from a blocking notice. */
|
|
773
|
-
kind: z.ZodEnum<["alert", "confirm", "prompt"]>;
|
|
774
|
-
/** What the app asked. The whole point: a cancelled action is only legible with the question. */
|
|
775
|
-
message: z.ZodOptional<z.ZodString>;
|
|
776
|
-
/** What Reticle answered on the app's behalf. `false`/`null` are the non-destructive replies. */
|
|
777
|
-
answered: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
|
|
778
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
779
|
-
/** Which of the three, so a caller can tell a blocking question from a blocking notice. */
|
|
780
|
-
kind: z.ZodEnum<["alert", "confirm", "prompt"]>;
|
|
781
|
-
/** 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
|
+
}>;
|
|
782
351
|
message: z.ZodOptional<z.ZodString>;
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
352
|
+
answered: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull]>>;
|
|
353
|
+
}, z.core.$loose>;
|
|
786
354
|
"render.commit": z.ZodObject<{
|
|
787
355
|
commits: z.ZodNumber;
|
|
788
|
-
},
|
|
789
|
-
commits: number;
|
|
790
|
-
}, {
|
|
791
|
-
commits: number;
|
|
792
|
-
}>;
|
|
356
|
+
}, z.core.$strip>;
|
|
793
357
|
"focus.change": z.ZodObject<{
|
|
794
358
|
to: z.ZodOptional<z.ZodString>;
|
|
795
359
|
from: z.ZodOptional<z.ZodString>;
|
|
796
360
|
toBody: z.ZodBoolean;
|
|
797
|
-
},
|
|
798
|
-
toBody: boolean;
|
|
799
|
-
from?: string | undefined;
|
|
800
|
-
to?: string | undefined;
|
|
801
|
-
}, {
|
|
802
|
-
toBody: boolean;
|
|
803
|
-
from?: string | undefined;
|
|
804
|
-
to?: string | undefined;
|
|
805
|
-
}>;
|
|
361
|
+
}, z.core.$strip>;
|
|
806
362
|
"field.change": z.ZodObject<{
|
|
807
363
|
field: z.ZodString;
|
|
808
|
-
kind: z.
|
|
364
|
+
kind: z.ZodEnum<{
|
|
809
365
|
readonly INPUT: "input";
|
|
810
366
|
readonly CHANGE: "change";
|
|
811
367
|
readonly SETTLED: "settled";
|
|
@@ -816,54 +372,20 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
816
372
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
817
373
|
previous: z.ZodOptional<z.ZodString>;
|
|
818
374
|
previousChecked: z.ZodOptional<z.ZodBoolean>;
|
|
819
|
-
},
|
|
820
|
-
length: number;
|
|
821
|
-
kind: "settled" | "input" | "change";
|
|
822
|
-
field: string;
|
|
823
|
-
checked?: boolean | undefined;
|
|
824
|
-
value?: string | undefined;
|
|
825
|
-
redacted?: true | undefined;
|
|
826
|
-
previous?: string | undefined;
|
|
827
|
-
previousChecked?: boolean | undefined;
|
|
828
|
-
}, {
|
|
829
|
-
length: number;
|
|
830
|
-
kind: "settled" | "input" | "change";
|
|
831
|
-
field: string;
|
|
832
|
-
checked?: boolean | undefined;
|
|
833
|
-
value?: string | undefined;
|
|
834
|
-
redacted?: true | undefined;
|
|
835
|
-
previous?: string | undefined;
|
|
836
|
-
previousChecked?: boolean | undefined;
|
|
837
|
-
}>;
|
|
375
|
+
}, z.core.$strip>;
|
|
838
376
|
"flow.recorded": z.ZodObject<{
|
|
839
377
|
name: z.ZodString;
|
|
840
|
-
flow: z.ZodUnknown
|
|
841
|
-
},
|
|
842
|
-
name: string;
|
|
843
|
-
flow?: unknown;
|
|
844
|
-
}, {
|
|
845
|
-
name: string;
|
|
846
|
-
flow?: unknown;
|
|
847
|
-
}>;
|
|
378
|
+
flow: z.ZodOptional<z.ZodUnknown>;
|
|
379
|
+
}, z.core.$strip>;
|
|
848
380
|
"transport.overflow": z.ZodObject<{
|
|
849
381
|
dropped: z.ZodNumber;
|
|
850
|
-
},
|
|
851
|
-
dropped: number;
|
|
852
|
-
}, {
|
|
853
|
-
dropped: number;
|
|
854
|
-
}>;
|
|
382
|
+
}, z.core.$strip>;
|
|
855
383
|
truncated: z.ZodObject<{
|
|
856
384
|
channel: z.ZodString;
|
|
857
385
|
dropped: z.ZodNumber;
|
|
858
|
-
},
|
|
859
|
-
channel: string;
|
|
860
|
-
dropped: number;
|
|
861
|
-
}, {
|
|
862
|
-
channel: string;
|
|
863
|
-
dropped: number;
|
|
864
|
-
}>;
|
|
386
|
+
}, z.core.$strip>;
|
|
865
387
|
"blind-spot": z.ZodObject<{
|
|
866
|
-
kind: z.
|
|
388
|
+
kind: z.ZodEnum<{
|
|
867
389
|
readonly CLOSED_SHADOW_ROOT: "closed-shadow-root";
|
|
868
390
|
readonly RATE_LIMITED: "rate-limited";
|
|
869
391
|
readonly CROSS_ORIGIN_IFRAME: "cross-origin-iframe";
|
|
@@ -875,49 +397,35 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
875
397
|
readonly UNWATCHED_STATE: "unwatched-state";
|
|
876
398
|
}>;
|
|
877
399
|
count: z.ZodNumber;
|
|
878
|
-
},
|
|
879
|
-
kind: "closed-shadow-root" | "rate-limited" | "cross-origin-iframe" | "uninstrumented-frame" | "virtualized-unmounted" | "wrapped-network" | "unobserved-ipc" | "verdictless-send" | "unwatched-state";
|
|
880
|
-
count: number;
|
|
881
|
-
}, {
|
|
882
|
-
kind: "closed-shadow-root" | "rate-limited" | "cross-origin-iframe" | "uninstrumented-frame" | "virtualized-unmounted" | "wrapped-network" | "unobserved-ipc" | "verdictless-send" | "unwatched-state";
|
|
883
|
-
count: number;
|
|
884
|
-
}>;
|
|
400
|
+
}, z.core.$strip>;
|
|
885
401
|
"sdk.failed": z.ZodObject<{
|
|
886
|
-
/** WHERE in the SDK — a fixed vocabulary of our own module names, never a user path. */
|
|
887
402
|
site: z.ZodString;
|
|
888
|
-
/** The error message. Stripped of variables server-side before it is ever reported onward. */
|
|
889
403
|
message: z.ZodString;
|
|
890
404
|
errorType: z.ZodOptional<z.ZodString>;
|
|
891
|
-
},
|
|
892
|
-
message: string;
|
|
893
|
-
site: string;
|
|
894
|
-
errorType?: string | undefined;
|
|
895
|
-
}, {
|
|
896
|
-
message: string;
|
|
897
|
-
site: string;
|
|
898
|
-
errorType?: string | undefined;
|
|
899
|
-
}>;
|
|
405
|
+
}, z.core.$strip>;
|
|
900
406
|
"net.detail": z.ZodObject<{
|
|
901
407
|
url: z.ZodString;
|
|
902
408
|
method: z.ZodOptional<z.ZodString>;
|
|
903
409
|
status: z.ZodNumber;
|
|
904
410
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
905
411
|
resourceType: z.ZodOptional<z.ZodString>;
|
|
906
|
-
},
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
911
|
-
resourceType: z.ZodOptional<z.ZodString>;
|
|
912
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
412
|
+
}, z.core.$loose>;
|
|
413
|
+
"net.response-body": z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
method: z.ZodString;
|
|
913
416
|
url: z.ZodString;
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
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>;
|
|
919
427
|
"human.control": z.ZodObject<{
|
|
920
|
-
kind: z.
|
|
428
|
+
kind: z.ZodEnum<{
|
|
921
429
|
readonly PAUSE: "pause";
|
|
922
430
|
readonly RESUME: "resume";
|
|
923
431
|
readonly END: "end";
|
|
@@ -931,17 +439,11 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
931
439
|
readonly HARNESS_LINK: "harness-link";
|
|
932
440
|
}>;
|
|
933
441
|
text: z.ZodOptional<z.ZodString>;
|
|
934
|
-
},
|
|
935
|
-
kind: "pause" | "message" | "harness" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
|
|
936
|
-
text?: string | undefined;
|
|
937
|
-
}, {
|
|
938
|
-
kind: "pause" | "message" | "harness" | "resume" | "end" | "replay" | "sync" | "signin" | "harness-run" | "harness-stop" | "harness-link";
|
|
939
|
-
text?: string | undefined;
|
|
940
|
-
}>;
|
|
442
|
+
}, z.core.$strip>;
|
|
941
443
|
"human.mark": z.ZodObject<{
|
|
942
444
|
note: z.ZodString;
|
|
943
445
|
anchor: z.ZodString;
|
|
944
|
-
strategy: z.
|
|
446
|
+
strategy: z.ZodEnum<{
|
|
945
447
|
readonly TESTID: "testid";
|
|
946
448
|
readonly COMPONENT: "component";
|
|
947
449
|
readonly ROLE: "role";
|
|
@@ -951,47 +453,21 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
951
453
|
source: z.ZodOptional<z.ZodObject<{
|
|
952
454
|
file: z.ZodString;
|
|
953
455
|
line: z.ZodNumber;
|
|
954
|
-
},
|
|
955
|
-
file: string;
|
|
956
|
-
line: number;
|
|
957
|
-
}, {
|
|
958
|
-
file: string;
|
|
959
|
-
line: number;
|
|
960
|
-
}>>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
961
457
|
route: z.ZodOptional<z.ZodString>;
|
|
962
|
-
},
|
|
963
|
-
anchor: string;
|
|
964
|
-
note: string;
|
|
965
|
-
strategy: "testid" | "role" | "component" | "position";
|
|
966
|
-
route?: string | undefined;
|
|
967
|
-
label?: string | undefined;
|
|
968
|
-
source?: {
|
|
969
|
-
file: string;
|
|
970
|
-
line: number;
|
|
971
|
-
} | undefined;
|
|
972
|
-
}, {
|
|
973
|
-
anchor: string;
|
|
974
|
-
note: string;
|
|
975
|
-
strategy: "testid" | "role" | "component" | "position";
|
|
976
|
-
route?: string | undefined;
|
|
977
|
-
label?: string | undefined;
|
|
978
|
-
source?: {
|
|
979
|
-
file: string;
|
|
980
|
-
line: number;
|
|
981
|
-
} | undefined;
|
|
982
|
-
}>;
|
|
458
|
+
}, z.core.$strip>;
|
|
983
459
|
"hud.used": z.ZodObject<{
|
|
984
460
|
control: z.ZodOptional<z.ZodString>;
|
|
985
|
-
toggle: z.ZodOptional<z.
|
|
461
|
+
toggle: z.ZodOptional<z.ZodEnum<{
|
|
986
462
|
readonly ON: "on";
|
|
987
463
|
readonly OFF: "off";
|
|
988
464
|
}>>;
|
|
989
|
-
view: z.ZodOptional<z.
|
|
465
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
990
466
|
readonly BUBBLE: "bubble";
|
|
991
467
|
readonly COLLAPSED: "collapsed";
|
|
992
468
|
readonly EXPANDED: "expanded";
|
|
993
469
|
}>>;
|
|
994
|
-
panel: z.ZodOptional<z.
|
|
470
|
+
panel: z.ZodOptional<z.ZodEnum<{
|
|
995
471
|
readonly CHAT: "chat";
|
|
996
472
|
readonly FLOWS: "flows";
|
|
997
473
|
readonly NOTES: "notes";
|
|
@@ -1002,28 +478,14 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
1002
478
|
readonly NONE: "none";
|
|
1003
479
|
}>>;
|
|
1004
480
|
slide: z.ZodOptional<z.ZodString>;
|
|
1005
|
-
prompt: z.ZodOptional<z.
|
|
481
|
+
prompt: z.ZodOptional<z.ZodEnum<{
|
|
1006
482
|
readonly RAIL: "rail";
|
|
1007
483
|
readonly HARNESS: "harness";
|
|
1008
484
|
readonly HEADER: "header";
|
|
1009
485
|
}>>;
|
|
1010
|
-
},
|
|
1011
|
-
control?: string | undefined;
|
|
1012
|
-
toggle?: "on" | "off" | undefined;
|
|
1013
|
-
view?: "expanded" | "bubble" | "collapsed" | undefined;
|
|
1014
|
-
panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
1015
|
-
slide?: string | undefined;
|
|
1016
|
-
prompt?: "harness" | "rail" | "header" | undefined;
|
|
1017
|
-
}, {
|
|
1018
|
-
control?: string | undefined;
|
|
1019
|
-
toggle?: "on" | "off" | undefined;
|
|
1020
|
-
view?: "expanded" | "bubble" | "collapsed" | undefined;
|
|
1021
|
-
panel?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
1022
|
-
slide?: string | undefined;
|
|
1023
|
-
prompt?: "harness" | "rail" | "header" | undefined;
|
|
1024
|
-
}>;
|
|
486
|
+
}, z.core.$strip>;
|
|
1025
487
|
"media.state": z.ZodObject<{
|
|
1026
|
-
event: z.
|
|
488
|
+
event: z.ZodEnum<{
|
|
1027
489
|
readonly PLAY: "play";
|
|
1028
490
|
readonly PLAYING: "playing";
|
|
1029
491
|
readonly PAUSE: "pause";
|
|
@@ -1034,57 +496,25 @@ export declare const EVENT_PAYLOAD_SCHEMAS: {
|
|
|
1034
496
|
readonly WAITING: "waiting";
|
|
1035
497
|
readonly ERROR: "error";
|
|
1036
498
|
}>;
|
|
1037
|
-
tag: z.ZodEnum<
|
|
1038
|
-
|
|
499
|
+
tag: z.ZodEnum<{
|
|
500
|
+
video: "video";
|
|
501
|
+
audio: "audio";
|
|
502
|
+
}>;
|
|
1039
503
|
currentTime: z.ZodNumber;
|
|
1040
|
-
/** Absent while unknown (NaN) or endless (a live stream). */
|
|
1041
504
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
1042
|
-
/** HTMLMediaElement.readyState, 0–4. */
|
|
1043
505
|
readyState: z.ZodNumber;
|
|
1044
506
|
paused: z.ZodBoolean;
|
|
1045
|
-
},
|
|
1046
|
-
event: "error" | "play" | "playing" | "pause" | "seeked" | "ended" | "loadeddata" | "canplay" | "waiting";
|
|
1047
|
-
paused: boolean;
|
|
1048
|
-
tag: "video" | "audio";
|
|
1049
|
-
currentTime: number;
|
|
1050
|
-
readyState: number;
|
|
1051
|
-
duration?: number | undefined;
|
|
1052
|
-
}, {
|
|
1053
|
-
event: "error" | "play" | "playing" | "pause" | "seeked" | "ended" | "loadeddata" | "canplay" | "waiting";
|
|
1054
|
-
paused: boolean;
|
|
1055
|
-
tag: "video" | "audio";
|
|
1056
|
-
currentTime: number;
|
|
1057
|
-
readyState: number;
|
|
1058
|
-
duration?: number | undefined;
|
|
1059
|
-
}>;
|
|
507
|
+
}, z.core.$strip>;
|
|
1060
508
|
"canvas.digest": z.ZodObject<{
|
|
1061
|
-
/** A hash of a 16x16 sample of the canvas pixels: changes when what it shows changes. */
|
|
1062
509
|
digest: z.ZodString;
|
|
1063
510
|
width: z.ZodNumber;
|
|
1064
511
|
height: z.ZodNumber;
|
|
1065
|
-
/** The sample's mean colour, `[r, g, b]` 0–255: a coarse "what colour is it" a reader can check. */
|
|
1066
512
|
mean: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
1067
|
-
|
|
1068
|
-
* `act` when an act's end took it, inside the act's window and sent even if nothing changed;
|
|
1069
|
-
* `poll` when the timer did. Absent from an SDK older than the field.
|
|
1070
|
-
*/
|
|
1071
|
-
trigger: z.ZodOptional<z.ZodNativeEnum<{
|
|
513
|
+
trigger: z.ZodOptional<z.ZodEnum<{
|
|
1072
514
|
readonly POLL: "poll";
|
|
1073
515
|
readonly ACT: "act";
|
|
1074
516
|
}>>;
|
|
1075
|
-
},
|
|
1076
|
-
width: number;
|
|
1077
|
-
height: number;
|
|
1078
|
-
digest: string;
|
|
1079
|
-
mean: [number, number, number];
|
|
1080
|
-
trigger?: "act" | "poll" | undefined;
|
|
1081
|
-
}, {
|
|
1082
|
-
width: number;
|
|
1083
|
-
height: number;
|
|
1084
|
-
digest: string;
|
|
1085
|
-
mean: [number, number, number];
|
|
1086
|
-
trigger?: "act" | "poll" | undefined;
|
|
1087
|
-
}>;
|
|
517
|
+
}, z.core.$strip>;
|
|
1088
518
|
};
|
|
1089
519
|
/** Narrow an event's `data` against its type's payload schema. Unknown in, typed-or-error out. */
|
|
1090
|
-
export declare function parseEventPayload(type: EventType, data: unknown): z.
|
|
520
|
+
export declare function parseEventPayload(type: EventType, data: unknown): z.ZodSafeParseResult<unknown>;
|