@tangle-network/agent-interface 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1076 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Freshness discriminator for one observed value. A missing value never reads
4
+ * as a measured zero: a value exists only on `known` and `stale`, so the
5
+ * absence of a number is always visible as `unavailable`, `redacted`, or
6
+ * `unknown`.
7
+ */
8
+ export type ObservationState = "known" | "stale" | "unavailable" | "redacted" | "unknown";
9
+ export declare const ObservationStateSchema: z.ZodEnum<{
10
+ unknown: "unknown";
11
+ unavailable: "unavailable";
12
+ known: "known";
13
+ stale: "stale";
14
+ redacted: "redacted";
15
+ }>;
16
+ /** How a known or stale value was obtained, and when. */
17
+ export interface ObservationProvenance {
18
+ origin: "measured" | "reported" | "estimated";
19
+ observedAt: string;
20
+ source?: string;
21
+ }
22
+ export declare const ObservationProvenanceSchema: z.ZodObject<{
23
+ origin: z.ZodEnum<{
24
+ estimated: "estimated";
25
+ measured: "measured";
26
+ reported: "reported";
27
+ }>;
28
+ observedAt: z.ZodISODateTime;
29
+ source: z.ZodOptional<z.ZodString>;
30
+ }, z.core.$strict>;
31
+ /**
32
+ * One freshness-tagged value. The security invariant is structural: the
33
+ * discriminator is required, and `value` is present only when the state is
34
+ * `known` or `stale`. An `unavailable`, `redacted`, or `unknown` payload
35
+ * carries no value, so downstream code cannot read a missing measurement as a
36
+ * real zero.
37
+ */
38
+ export type Observation<T> = {
39
+ state: "known";
40
+ value: T;
41
+ provenance: ObservationProvenance;
42
+ } | {
43
+ state: "stale";
44
+ value: T;
45
+ provenance: ObservationProvenance;
46
+ reason: string;
47
+ } | {
48
+ state: "unavailable";
49
+ reason: string;
50
+ } | {
51
+ state: "redacted";
52
+ reason: string;
53
+ } | {
54
+ state: "unknown";
55
+ };
56
+ /** Build a freshness-tagged observation schema around one value schema. */
57
+ export declare function observationOf<Schema extends z.ZodTypeAny>(value: Schema): z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ state: z.ZodLiteral<"known">;
59
+ value: Schema;
60
+ provenance: z.ZodObject<{
61
+ origin: z.ZodEnum<{
62
+ estimated: "estimated";
63
+ measured: "measured";
64
+ reported: "reported";
65
+ }>;
66
+ observedAt: z.ZodISODateTime;
67
+ source: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strict>;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ state: z.ZodLiteral<"stale">;
71
+ value: Schema;
72
+ provenance: z.ZodObject<{
73
+ origin: z.ZodEnum<{
74
+ estimated: "estimated";
75
+ measured: "measured";
76
+ reported: "reported";
77
+ }>;
78
+ observedAt: z.ZodISODateTime;
79
+ source: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strict>;
81
+ reason: z.ZodString;
82
+ }, z.core.$strict>, z.ZodObject<{
83
+ state: z.ZodLiteral<"unavailable">;
84
+ reason: z.ZodString;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ state: z.ZodLiteral<"redacted">;
87
+ reason: z.ZodString;
88
+ }, z.core.$strict>, z.ZodObject<{
89
+ state: z.ZodLiteral<"unknown">;
90
+ }, z.core.$strict>], "state">;
91
+ /** Safe identifiers for the environment and its provider session. */
92
+ export interface ProviderIdentity {
93
+ provider: string;
94
+ environmentId: string;
95
+ sessionId?: string;
96
+ backend?: string;
97
+ }
98
+ export declare const ProviderIdentitySchema: z.ZodObject<{
99
+ provider: z.ZodString;
100
+ environmentId: z.ZodString;
101
+ sessionId: z.ZodOptional<z.ZodString>;
102
+ backend: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strict>;
104
+ export declare const AgentEnvironmentStatusSchema: z.ZodEnum<{
105
+ unknown: "unknown";
106
+ failed: "failed";
107
+ expired: "expired";
108
+ pending: "pending";
109
+ running: "running";
110
+ provisioning: "provisioning";
111
+ stopped: "stopped";
112
+ }>;
113
+ /** Lifecycle, cleanup, continuity, and persistence of one environment. */
114
+ export declare const EnvironmentLifecycleSchema: z.ZodObject<{
115
+ status: z.ZodEnum<{
116
+ unknown: "unknown";
117
+ failed: "failed";
118
+ expired: "expired";
119
+ pending: "pending";
120
+ running: "running";
121
+ provisioning: "provisioning";
122
+ stopped: "stopped";
123
+ }>;
124
+ cleanup: z.ZodOptional<z.ZodObject<{
125
+ policy: z.ZodOptional<z.ZodEnum<{
126
+ manual: "manual";
127
+ idle: "idle";
128
+ scheduled: "scheduled";
129
+ "on-exit": "on-exit";
130
+ }>>;
131
+ scheduledAt: z.ZodOptional<z.ZodISODateTime>;
132
+ confirmed: z.ZodOptional<z.ZodBoolean>;
133
+ }, z.core.$strict>>;
134
+ continuity: z.ZodOptional<z.ZodObject<{
135
+ resumable: z.ZodBoolean;
136
+ mode: z.ZodOptional<z.ZodEnum<{
137
+ none: "none";
138
+ native: "native";
139
+ replayed: "replayed";
140
+ }>>;
141
+ }, z.core.$strict>>;
142
+ persistence: z.ZodOptional<z.ZodObject<{
143
+ durable: z.ZodBoolean;
144
+ scope: z.ZodOptional<z.ZodEnum<{
145
+ session: "session";
146
+ durable: "durable";
147
+ ephemeral: "ephemeral";
148
+ }>>;
149
+ }, z.core.$strict>>;
150
+ }, z.core.$strict>;
151
+ export type EnvironmentLifecycle = z.infer<typeof EnvironmentLifecycleSchema>;
152
+ /**
153
+ * Credential-free network location. There is no field for a user, password,
154
+ * token, or other secret, and the host and scheme reject embedded credentials.
155
+ */
156
+ export declare const SafeEndpointSchema: z.ZodObject<{
157
+ scheme: z.ZodOptional<z.ZodString>;
158
+ host: z.ZodString;
159
+ port: z.ZodOptional<z.ZodNumber>;
160
+ region: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strict>;
162
+ export type SafeEndpoint = z.infer<typeof SafeEndpointSchema>;
163
+ /** Requested or effective compute shape, including an optional accelerator. */
164
+ export declare const ResourceProfileSchema: z.ZodObject<{
165
+ cpu: z.ZodOptional<z.ZodNumber>;
166
+ memoryMb: z.ZodOptional<z.ZodNumber>;
167
+ diskMb: z.ZodOptional<z.ZodNumber>;
168
+ accelerator: z.ZodOptional<z.ZodObject<{
169
+ kind: z.ZodString;
170
+ count: z.ZodNumber;
171
+ memoryMb: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strict>>;
173
+ }, z.core.$strict>;
174
+ export type ResourceProfile = z.infer<typeof ResourceProfileSchema>;
175
+ /** A point-in-time or peak resource sample. */
176
+ export declare const ResourceUseSampleSchema: z.ZodObject<{
177
+ cpu: z.ZodOptional<z.ZodNumber>;
178
+ memoryMb: z.ZodOptional<z.ZodNumber>;
179
+ diskMb: z.ZodOptional<z.ZodNumber>;
180
+ acceleratorMemoryMb: z.ZodOptional<z.ZodNumber>;
181
+ }, z.core.$strict>;
182
+ export type ResourceUseSample = z.infer<typeof ResourceUseSampleSchema>;
183
+ /** Where an environment was requested or verified to run. */
184
+ export declare const PlacementDescriptorSchema: z.ZodObject<{
185
+ kind: z.ZodEnum<{
186
+ provider: "provider";
187
+ local: "local";
188
+ sandbox: "sandbox";
189
+ fleet: "fleet";
190
+ }>;
191
+ sandboxId: z.ZodOptional<z.ZodString>;
192
+ fleetId: z.ZodOptional<z.ZodString>;
193
+ machineId: z.ZodOptional<z.ZodString>;
194
+ region: z.ZodOptional<z.ZodString>;
195
+ }, z.core.$strict>;
196
+ export type PlacementDescriptor = z.infer<typeof PlacementDescriptorSchema>;
197
+ /**
198
+ * Token usage and cost for one execution. Bound to the shared {@link TokenUsage}
199
+ * type so a change to the canonical shape is caught here.
200
+ */
201
+ export declare const ModelUsageSchema: z.ZodObject<{
202
+ inputTokens: z.ZodNumber;
203
+ outputTokens: z.ZodNumber;
204
+ totalTokens: z.ZodOptional<z.ZodNumber>;
205
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
206
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
207
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
208
+ cost: z.ZodOptional<z.ZodNumber>;
209
+ }, z.core.$strict>;
210
+ /** Provider compute cost charged for one environment. */
211
+ export declare const ComputeBillingSchema: z.ZodObject<{
212
+ amount: z.ZodNumber;
213
+ currency: z.ZodString;
214
+ }, z.core.$strict>;
215
+ export type ComputeBilling = z.infer<typeof ComputeBillingSchema>;
216
+ /** Account plan, credits, quota, and billing period. */
217
+ export declare const AccountUsageSchema: z.ZodObject<{
218
+ plan: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
219
+ state: z.ZodLiteral<"known">;
220
+ value: z.ZodString;
221
+ provenance: z.ZodObject<{
222
+ origin: z.ZodEnum<{
223
+ estimated: "estimated";
224
+ measured: "measured";
225
+ reported: "reported";
226
+ }>;
227
+ observedAt: z.ZodISODateTime;
228
+ source: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$strict>;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ state: z.ZodLiteral<"stale">;
232
+ value: z.ZodString;
233
+ provenance: z.ZodObject<{
234
+ origin: z.ZodEnum<{
235
+ estimated: "estimated";
236
+ measured: "measured";
237
+ reported: "reported";
238
+ }>;
239
+ observedAt: z.ZodISODateTime;
240
+ source: z.ZodOptional<z.ZodString>;
241
+ }, z.core.$strict>;
242
+ reason: z.ZodString;
243
+ }, z.core.$strict>, z.ZodObject<{
244
+ state: z.ZodLiteral<"unavailable">;
245
+ reason: z.ZodString;
246
+ }, z.core.$strict>, z.ZodObject<{
247
+ state: z.ZodLiteral<"redacted">;
248
+ reason: z.ZodString;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ state: z.ZodLiteral<"unknown">;
251
+ }, z.core.$strict>], "state">>;
252
+ credits: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
253
+ state: z.ZodLiteral<"known">;
254
+ value: z.ZodObject<{
255
+ remaining: z.ZodNumber;
256
+ unit: z.ZodString;
257
+ }, z.core.$strict>;
258
+ provenance: z.ZodObject<{
259
+ origin: z.ZodEnum<{
260
+ estimated: "estimated";
261
+ measured: "measured";
262
+ reported: "reported";
263
+ }>;
264
+ observedAt: z.ZodISODateTime;
265
+ source: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$strict>;
267
+ }, z.core.$strict>, z.ZodObject<{
268
+ state: z.ZodLiteral<"stale">;
269
+ value: z.ZodObject<{
270
+ remaining: z.ZodNumber;
271
+ unit: z.ZodString;
272
+ }, z.core.$strict>;
273
+ provenance: z.ZodObject<{
274
+ origin: z.ZodEnum<{
275
+ estimated: "estimated";
276
+ measured: "measured";
277
+ reported: "reported";
278
+ }>;
279
+ observedAt: z.ZodISODateTime;
280
+ source: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$strict>;
282
+ reason: z.ZodString;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ state: z.ZodLiteral<"unavailable">;
285
+ reason: z.ZodString;
286
+ }, z.core.$strict>, z.ZodObject<{
287
+ state: z.ZodLiteral<"redacted">;
288
+ reason: z.ZodString;
289
+ }, z.core.$strict>, z.ZodObject<{
290
+ state: z.ZodLiteral<"unknown">;
291
+ }, z.core.$strict>], "state">>;
292
+ quota: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
293
+ state: z.ZodLiteral<"known">;
294
+ value: z.ZodObject<{
295
+ limit: z.ZodNumber;
296
+ used: z.ZodNumber;
297
+ remaining: z.ZodNumber;
298
+ unit: z.ZodString;
299
+ }, z.core.$strict>;
300
+ provenance: z.ZodObject<{
301
+ origin: z.ZodEnum<{
302
+ estimated: "estimated";
303
+ measured: "measured";
304
+ reported: "reported";
305
+ }>;
306
+ observedAt: z.ZodISODateTime;
307
+ source: z.ZodOptional<z.ZodString>;
308
+ }, z.core.$strict>;
309
+ }, z.core.$strict>, z.ZodObject<{
310
+ state: z.ZodLiteral<"stale">;
311
+ value: z.ZodObject<{
312
+ limit: z.ZodNumber;
313
+ used: z.ZodNumber;
314
+ remaining: z.ZodNumber;
315
+ unit: z.ZodString;
316
+ }, z.core.$strict>;
317
+ provenance: z.ZodObject<{
318
+ origin: z.ZodEnum<{
319
+ estimated: "estimated";
320
+ measured: "measured";
321
+ reported: "reported";
322
+ }>;
323
+ observedAt: z.ZodISODateTime;
324
+ source: z.ZodOptional<z.ZodString>;
325
+ }, z.core.$strict>;
326
+ reason: z.ZodString;
327
+ }, z.core.$strict>, z.ZodObject<{
328
+ state: z.ZodLiteral<"unavailable">;
329
+ reason: z.ZodString;
330
+ }, z.core.$strict>, z.ZodObject<{
331
+ state: z.ZodLiteral<"redacted">;
332
+ reason: z.ZodString;
333
+ }, z.core.$strict>, z.ZodObject<{
334
+ state: z.ZodLiteral<"unknown">;
335
+ }, z.core.$strict>], "state">>;
336
+ period: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
337
+ state: z.ZodLiteral<"known">;
338
+ value: z.ZodObject<{
339
+ start: z.ZodISODateTime;
340
+ end: z.ZodISODateTime;
341
+ }, z.core.$strict>;
342
+ provenance: z.ZodObject<{
343
+ origin: z.ZodEnum<{
344
+ estimated: "estimated";
345
+ measured: "measured";
346
+ reported: "reported";
347
+ }>;
348
+ observedAt: z.ZodISODateTime;
349
+ source: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strict>;
351
+ }, z.core.$strict>, z.ZodObject<{
352
+ state: z.ZodLiteral<"stale">;
353
+ value: z.ZodObject<{
354
+ start: z.ZodISODateTime;
355
+ end: z.ZodISODateTime;
356
+ }, z.core.$strict>;
357
+ provenance: z.ZodObject<{
358
+ origin: z.ZodEnum<{
359
+ estimated: "estimated";
360
+ measured: "measured";
361
+ reported: "reported";
362
+ }>;
363
+ observedAt: z.ZodISODateTime;
364
+ source: z.ZodOptional<z.ZodString>;
365
+ }, z.core.$strict>;
366
+ reason: z.ZodString;
367
+ }, z.core.$strict>, z.ZodObject<{
368
+ state: z.ZodLiteral<"unavailable">;
369
+ reason: z.ZodString;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ state: z.ZodLiteral<"redacted">;
372
+ reason: z.ZodString;
373
+ }, z.core.$strict>, z.ZodObject<{
374
+ state: z.ZodLiteral<"unknown">;
375
+ }, z.core.$strict>], "state">>;
376
+ }, z.core.$strict>;
377
+ export type AccountUsage = z.infer<typeof AccountUsageSchema>;
378
+ /**
379
+ * Optional normalized observation of one execution environment.
380
+ *
381
+ * `subject` is the always-known identity used to bind a live observation to its
382
+ * replay. Every other surface is optional and freshness-tagged, so a provider
383
+ * that reports nothing still validates and no absent value is a measured zero.
384
+ */
385
+ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
386
+ subject: z.ZodObject<{
387
+ provider: z.ZodString;
388
+ environmentId: z.ZodString;
389
+ sessionId: z.ZodOptional<z.ZodString>;
390
+ backend: z.ZodOptional<z.ZodString>;
391
+ }, z.core.$strict>;
392
+ capturedAt: z.ZodISODateTime;
393
+ identity: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
394
+ state: z.ZodLiteral<"known">;
395
+ value: z.ZodObject<{
396
+ provider: z.ZodString;
397
+ environmentId: z.ZodString;
398
+ sessionId: z.ZodOptional<z.ZodString>;
399
+ backend: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strict>;
401
+ provenance: z.ZodObject<{
402
+ origin: z.ZodEnum<{
403
+ estimated: "estimated";
404
+ measured: "measured";
405
+ reported: "reported";
406
+ }>;
407
+ observedAt: z.ZodISODateTime;
408
+ source: z.ZodOptional<z.ZodString>;
409
+ }, z.core.$strict>;
410
+ }, z.core.$strict>, z.ZodObject<{
411
+ state: z.ZodLiteral<"stale">;
412
+ value: z.ZodObject<{
413
+ provider: z.ZodString;
414
+ environmentId: z.ZodString;
415
+ sessionId: z.ZodOptional<z.ZodString>;
416
+ backend: z.ZodOptional<z.ZodString>;
417
+ }, z.core.$strict>;
418
+ provenance: z.ZodObject<{
419
+ origin: z.ZodEnum<{
420
+ estimated: "estimated";
421
+ measured: "measured";
422
+ reported: "reported";
423
+ }>;
424
+ observedAt: z.ZodISODateTime;
425
+ source: z.ZodOptional<z.ZodString>;
426
+ }, z.core.$strict>;
427
+ reason: z.ZodString;
428
+ }, z.core.$strict>, z.ZodObject<{
429
+ state: z.ZodLiteral<"unavailable">;
430
+ reason: z.ZodString;
431
+ }, z.core.$strict>, z.ZodObject<{
432
+ state: z.ZodLiteral<"redacted">;
433
+ reason: z.ZodString;
434
+ }, z.core.$strict>, z.ZodObject<{
435
+ state: z.ZodLiteral<"unknown">;
436
+ }, z.core.$strict>], "state">>;
437
+ lifecycle: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
438
+ state: z.ZodLiteral<"known">;
439
+ value: z.ZodObject<{
440
+ status: z.ZodEnum<{
441
+ unknown: "unknown";
442
+ failed: "failed";
443
+ expired: "expired";
444
+ pending: "pending";
445
+ running: "running";
446
+ provisioning: "provisioning";
447
+ stopped: "stopped";
448
+ }>;
449
+ cleanup: z.ZodOptional<z.ZodObject<{
450
+ policy: z.ZodOptional<z.ZodEnum<{
451
+ manual: "manual";
452
+ idle: "idle";
453
+ scheduled: "scheduled";
454
+ "on-exit": "on-exit";
455
+ }>>;
456
+ scheduledAt: z.ZodOptional<z.ZodISODateTime>;
457
+ confirmed: z.ZodOptional<z.ZodBoolean>;
458
+ }, z.core.$strict>>;
459
+ continuity: z.ZodOptional<z.ZodObject<{
460
+ resumable: z.ZodBoolean;
461
+ mode: z.ZodOptional<z.ZodEnum<{
462
+ none: "none";
463
+ native: "native";
464
+ replayed: "replayed";
465
+ }>>;
466
+ }, z.core.$strict>>;
467
+ persistence: z.ZodOptional<z.ZodObject<{
468
+ durable: z.ZodBoolean;
469
+ scope: z.ZodOptional<z.ZodEnum<{
470
+ session: "session";
471
+ durable: "durable";
472
+ ephemeral: "ephemeral";
473
+ }>>;
474
+ }, z.core.$strict>>;
475
+ }, z.core.$strict>;
476
+ provenance: z.ZodObject<{
477
+ origin: z.ZodEnum<{
478
+ estimated: "estimated";
479
+ measured: "measured";
480
+ reported: "reported";
481
+ }>;
482
+ observedAt: z.ZodISODateTime;
483
+ source: z.ZodOptional<z.ZodString>;
484
+ }, z.core.$strict>;
485
+ }, z.core.$strict>, z.ZodObject<{
486
+ state: z.ZodLiteral<"stale">;
487
+ value: z.ZodObject<{
488
+ status: z.ZodEnum<{
489
+ unknown: "unknown";
490
+ failed: "failed";
491
+ expired: "expired";
492
+ pending: "pending";
493
+ running: "running";
494
+ provisioning: "provisioning";
495
+ stopped: "stopped";
496
+ }>;
497
+ cleanup: z.ZodOptional<z.ZodObject<{
498
+ policy: z.ZodOptional<z.ZodEnum<{
499
+ manual: "manual";
500
+ idle: "idle";
501
+ scheduled: "scheduled";
502
+ "on-exit": "on-exit";
503
+ }>>;
504
+ scheduledAt: z.ZodOptional<z.ZodISODateTime>;
505
+ confirmed: z.ZodOptional<z.ZodBoolean>;
506
+ }, z.core.$strict>>;
507
+ continuity: z.ZodOptional<z.ZodObject<{
508
+ resumable: z.ZodBoolean;
509
+ mode: z.ZodOptional<z.ZodEnum<{
510
+ none: "none";
511
+ native: "native";
512
+ replayed: "replayed";
513
+ }>>;
514
+ }, z.core.$strict>>;
515
+ persistence: z.ZodOptional<z.ZodObject<{
516
+ durable: z.ZodBoolean;
517
+ scope: z.ZodOptional<z.ZodEnum<{
518
+ session: "session";
519
+ durable: "durable";
520
+ ephemeral: "ephemeral";
521
+ }>>;
522
+ }, z.core.$strict>>;
523
+ }, z.core.$strict>;
524
+ provenance: z.ZodObject<{
525
+ origin: z.ZodEnum<{
526
+ estimated: "estimated";
527
+ measured: "measured";
528
+ reported: "reported";
529
+ }>;
530
+ observedAt: z.ZodISODateTime;
531
+ source: z.ZodOptional<z.ZodString>;
532
+ }, z.core.$strict>;
533
+ reason: z.ZodString;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ state: z.ZodLiteral<"unavailable">;
536
+ reason: z.ZodString;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ state: z.ZodLiteral<"redacted">;
539
+ reason: z.ZodString;
540
+ }, z.core.$strict>, z.ZodObject<{
541
+ state: z.ZodLiteral<"unknown">;
542
+ }, z.core.$strict>], "state">>;
543
+ endpoint: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
544
+ state: z.ZodLiteral<"known">;
545
+ value: z.ZodObject<{
546
+ scheme: z.ZodOptional<z.ZodString>;
547
+ host: z.ZodString;
548
+ port: z.ZodOptional<z.ZodNumber>;
549
+ region: z.ZodOptional<z.ZodString>;
550
+ }, z.core.$strict>;
551
+ provenance: z.ZodObject<{
552
+ origin: z.ZodEnum<{
553
+ estimated: "estimated";
554
+ measured: "measured";
555
+ reported: "reported";
556
+ }>;
557
+ observedAt: z.ZodISODateTime;
558
+ source: z.ZodOptional<z.ZodString>;
559
+ }, z.core.$strict>;
560
+ }, z.core.$strict>, z.ZodObject<{
561
+ state: z.ZodLiteral<"stale">;
562
+ value: z.ZodObject<{
563
+ scheme: z.ZodOptional<z.ZodString>;
564
+ host: z.ZodString;
565
+ port: z.ZodOptional<z.ZodNumber>;
566
+ region: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strict>;
568
+ provenance: z.ZodObject<{
569
+ origin: z.ZodEnum<{
570
+ estimated: "estimated";
571
+ measured: "measured";
572
+ reported: "reported";
573
+ }>;
574
+ observedAt: z.ZodISODateTime;
575
+ source: z.ZodOptional<z.ZodString>;
576
+ }, z.core.$strict>;
577
+ reason: z.ZodString;
578
+ }, z.core.$strict>, z.ZodObject<{
579
+ state: z.ZodLiteral<"unavailable">;
580
+ reason: z.ZodString;
581
+ }, z.core.$strict>, z.ZodObject<{
582
+ state: z.ZodLiteral<"redacted">;
583
+ reason: z.ZodString;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ state: z.ZodLiteral<"unknown">;
586
+ }, z.core.$strict>], "state">>;
587
+ placement: z.ZodOptional<z.ZodObject<{
588
+ requested: z.ZodOptional<z.ZodObject<{
589
+ kind: z.ZodEnum<{
590
+ provider: "provider";
591
+ local: "local";
592
+ sandbox: "sandbox";
593
+ fleet: "fleet";
594
+ }>;
595
+ sandboxId: z.ZodOptional<z.ZodString>;
596
+ fleetId: z.ZodOptional<z.ZodString>;
597
+ machineId: z.ZodOptional<z.ZodString>;
598
+ region: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strict>>;
600
+ verified: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
601
+ state: z.ZodLiteral<"known">;
602
+ value: z.ZodObject<{
603
+ kind: z.ZodEnum<{
604
+ provider: "provider";
605
+ local: "local";
606
+ sandbox: "sandbox";
607
+ fleet: "fleet";
608
+ }>;
609
+ sandboxId: z.ZodOptional<z.ZodString>;
610
+ fleetId: z.ZodOptional<z.ZodString>;
611
+ machineId: z.ZodOptional<z.ZodString>;
612
+ region: z.ZodOptional<z.ZodString>;
613
+ }, z.core.$strict>;
614
+ provenance: z.ZodObject<{
615
+ origin: z.ZodEnum<{
616
+ estimated: "estimated";
617
+ measured: "measured";
618
+ reported: "reported";
619
+ }>;
620
+ observedAt: z.ZodISODateTime;
621
+ source: z.ZodOptional<z.ZodString>;
622
+ }, z.core.$strict>;
623
+ }, z.core.$strict>, z.ZodObject<{
624
+ state: z.ZodLiteral<"stale">;
625
+ value: z.ZodObject<{
626
+ kind: z.ZodEnum<{
627
+ provider: "provider";
628
+ local: "local";
629
+ sandbox: "sandbox";
630
+ fleet: "fleet";
631
+ }>;
632
+ sandboxId: z.ZodOptional<z.ZodString>;
633
+ fleetId: z.ZodOptional<z.ZodString>;
634
+ machineId: z.ZodOptional<z.ZodString>;
635
+ region: z.ZodOptional<z.ZodString>;
636
+ }, z.core.$strict>;
637
+ provenance: z.ZodObject<{
638
+ origin: z.ZodEnum<{
639
+ estimated: "estimated";
640
+ measured: "measured";
641
+ reported: "reported";
642
+ }>;
643
+ observedAt: z.ZodISODateTime;
644
+ source: z.ZodOptional<z.ZodString>;
645
+ }, z.core.$strict>;
646
+ reason: z.ZodString;
647
+ }, z.core.$strict>, z.ZodObject<{
648
+ state: z.ZodLiteral<"unavailable">;
649
+ reason: z.ZodString;
650
+ }, z.core.$strict>, z.ZodObject<{
651
+ state: z.ZodLiteral<"redacted">;
652
+ reason: z.ZodString;
653
+ }, z.core.$strict>, z.ZodObject<{
654
+ state: z.ZodLiteral<"unknown">;
655
+ }, z.core.$strict>], "state">>;
656
+ }, z.core.$strict>>;
657
+ resources: z.ZodOptional<z.ZodObject<{
658
+ requested: z.ZodOptional<z.ZodObject<{
659
+ cpu: z.ZodOptional<z.ZodNumber>;
660
+ memoryMb: z.ZodOptional<z.ZodNumber>;
661
+ diskMb: z.ZodOptional<z.ZodNumber>;
662
+ accelerator: z.ZodOptional<z.ZodObject<{
663
+ kind: z.ZodString;
664
+ count: z.ZodNumber;
665
+ memoryMb: z.ZodOptional<z.ZodNumber>;
666
+ }, z.core.$strict>>;
667
+ }, z.core.$strict>>;
668
+ effective: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
669
+ state: z.ZodLiteral<"known">;
670
+ value: z.ZodObject<{
671
+ cpu: z.ZodOptional<z.ZodNumber>;
672
+ memoryMb: z.ZodOptional<z.ZodNumber>;
673
+ diskMb: z.ZodOptional<z.ZodNumber>;
674
+ accelerator: z.ZodOptional<z.ZodObject<{
675
+ kind: z.ZodString;
676
+ count: z.ZodNumber;
677
+ memoryMb: z.ZodOptional<z.ZodNumber>;
678
+ }, z.core.$strict>>;
679
+ }, z.core.$strict>;
680
+ provenance: z.ZodObject<{
681
+ origin: z.ZodEnum<{
682
+ estimated: "estimated";
683
+ measured: "measured";
684
+ reported: "reported";
685
+ }>;
686
+ observedAt: z.ZodISODateTime;
687
+ source: z.ZodOptional<z.ZodString>;
688
+ }, z.core.$strict>;
689
+ }, z.core.$strict>, z.ZodObject<{
690
+ state: z.ZodLiteral<"stale">;
691
+ value: z.ZodObject<{
692
+ cpu: z.ZodOptional<z.ZodNumber>;
693
+ memoryMb: z.ZodOptional<z.ZodNumber>;
694
+ diskMb: z.ZodOptional<z.ZodNumber>;
695
+ accelerator: z.ZodOptional<z.ZodObject<{
696
+ kind: z.ZodString;
697
+ count: z.ZodNumber;
698
+ memoryMb: z.ZodOptional<z.ZodNumber>;
699
+ }, z.core.$strict>>;
700
+ }, z.core.$strict>;
701
+ provenance: z.ZodObject<{
702
+ origin: z.ZodEnum<{
703
+ estimated: "estimated";
704
+ measured: "measured";
705
+ reported: "reported";
706
+ }>;
707
+ observedAt: z.ZodISODateTime;
708
+ source: z.ZodOptional<z.ZodString>;
709
+ }, z.core.$strict>;
710
+ reason: z.ZodString;
711
+ }, z.core.$strict>, z.ZodObject<{
712
+ state: z.ZodLiteral<"unavailable">;
713
+ reason: z.ZodString;
714
+ }, z.core.$strict>, z.ZodObject<{
715
+ state: z.ZodLiteral<"redacted">;
716
+ reason: z.ZodString;
717
+ }, z.core.$strict>, z.ZodObject<{
718
+ state: z.ZodLiteral<"unknown">;
719
+ }, z.core.$strict>], "state">>;
720
+ }, z.core.$strict>>;
721
+ resourceUse: z.ZodOptional<z.ZodObject<{
722
+ current: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
723
+ state: z.ZodLiteral<"known">;
724
+ value: z.ZodObject<{
725
+ cpu: z.ZodOptional<z.ZodNumber>;
726
+ memoryMb: z.ZodOptional<z.ZodNumber>;
727
+ diskMb: z.ZodOptional<z.ZodNumber>;
728
+ acceleratorMemoryMb: z.ZodOptional<z.ZodNumber>;
729
+ }, z.core.$strict>;
730
+ provenance: z.ZodObject<{
731
+ origin: z.ZodEnum<{
732
+ estimated: "estimated";
733
+ measured: "measured";
734
+ reported: "reported";
735
+ }>;
736
+ observedAt: z.ZodISODateTime;
737
+ source: z.ZodOptional<z.ZodString>;
738
+ }, z.core.$strict>;
739
+ }, z.core.$strict>, z.ZodObject<{
740
+ state: z.ZodLiteral<"stale">;
741
+ value: z.ZodObject<{
742
+ cpu: z.ZodOptional<z.ZodNumber>;
743
+ memoryMb: z.ZodOptional<z.ZodNumber>;
744
+ diskMb: z.ZodOptional<z.ZodNumber>;
745
+ acceleratorMemoryMb: z.ZodOptional<z.ZodNumber>;
746
+ }, z.core.$strict>;
747
+ provenance: z.ZodObject<{
748
+ origin: z.ZodEnum<{
749
+ estimated: "estimated";
750
+ measured: "measured";
751
+ reported: "reported";
752
+ }>;
753
+ observedAt: z.ZodISODateTime;
754
+ source: z.ZodOptional<z.ZodString>;
755
+ }, z.core.$strict>;
756
+ reason: z.ZodString;
757
+ }, z.core.$strict>, z.ZodObject<{
758
+ state: z.ZodLiteral<"unavailable">;
759
+ reason: z.ZodString;
760
+ }, z.core.$strict>, z.ZodObject<{
761
+ state: z.ZodLiteral<"redacted">;
762
+ reason: z.ZodString;
763
+ }, z.core.$strict>, z.ZodObject<{
764
+ state: z.ZodLiteral<"unknown">;
765
+ }, z.core.$strict>], "state">>;
766
+ peak: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
767
+ state: z.ZodLiteral<"known">;
768
+ value: z.ZodObject<{
769
+ cpu: z.ZodOptional<z.ZodNumber>;
770
+ memoryMb: z.ZodOptional<z.ZodNumber>;
771
+ diskMb: z.ZodOptional<z.ZodNumber>;
772
+ acceleratorMemoryMb: z.ZodOptional<z.ZodNumber>;
773
+ }, z.core.$strict>;
774
+ provenance: z.ZodObject<{
775
+ origin: z.ZodEnum<{
776
+ estimated: "estimated";
777
+ measured: "measured";
778
+ reported: "reported";
779
+ }>;
780
+ observedAt: z.ZodISODateTime;
781
+ source: z.ZodOptional<z.ZodString>;
782
+ }, z.core.$strict>;
783
+ }, z.core.$strict>, z.ZodObject<{
784
+ state: z.ZodLiteral<"stale">;
785
+ value: z.ZodObject<{
786
+ cpu: z.ZodOptional<z.ZodNumber>;
787
+ memoryMb: z.ZodOptional<z.ZodNumber>;
788
+ diskMb: z.ZodOptional<z.ZodNumber>;
789
+ acceleratorMemoryMb: z.ZodOptional<z.ZodNumber>;
790
+ }, z.core.$strict>;
791
+ provenance: z.ZodObject<{
792
+ origin: z.ZodEnum<{
793
+ estimated: "estimated";
794
+ measured: "measured";
795
+ reported: "reported";
796
+ }>;
797
+ observedAt: z.ZodISODateTime;
798
+ source: z.ZodOptional<z.ZodString>;
799
+ }, z.core.$strict>;
800
+ reason: z.ZodString;
801
+ }, z.core.$strict>, z.ZodObject<{
802
+ state: z.ZodLiteral<"unavailable">;
803
+ reason: z.ZodString;
804
+ }, z.core.$strict>, z.ZodObject<{
805
+ state: z.ZodLiteral<"redacted">;
806
+ reason: z.ZodString;
807
+ }, z.core.$strict>, z.ZodObject<{
808
+ state: z.ZodLiteral<"unknown">;
809
+ }, z.core.$strict>], "state">>;
810
+ }, z.core.$strict>>;
811
+ modelUsage: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
812
+ state: z.ZodLiteral<"known">;
813
+ value: z.ZodObject<{
814
+ inputTokens: z.ZodNumber;
815
+ outputTokens: z.ZodNumber;
816
+ totalTokens: z.ZodOptional<z.ZodNumber>;
817
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
818
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
819
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
820
+ cost: z.ZodOptional<z.ZodNumber>;
821
+ }, z.core.$strict>;
822
+ provenance: z.ZodObject<{
823
+ origin: z.ZodEnum<{
824
+ estimated: "estimated";
825
+ measured: "measured";
826
+ reported: "reported";
827
+ }>;
828
+ observedAt: z.ZodISODateTime;
829
+ source: z.ZodOptional<z.ZodString>;
830
+ }, z.core.$strict>;
831
+ }, z.core.$strict>, z.ZodObject<{
832
+ state: z.ZodLiteral<"stale">;
833
+ value: z.ZodObject<{
834
+ inputTokens: z.ZodNumber;
835
+ outputTokens: z.ZodNumber;
836
+ totalTokens: z.ZodOptional<z.ZodNumber>;
837
+ cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
838
+ cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
839
+ reasoningTokens: z.ZodOptional<z.ZodNumber>;
840
+ cost: z.ZodOptional<z.ZodNumber>;
841
+ }, z.core.$strict>;
842
+ provenance: z.ZodObject<{
843
+ origin: z.ZodEnum<{
844
+ estimated: "estimated";
845
+ measured: "measured";
846
+ reported: "reported";
847
+ }>;
848
+ observedAt: z.ZodISODateTime;
849
+ source: z.ZodOptional<z.ZodString>;
850
+ }, z.core.$strict>;
851
+ reason: z.ZodString;
852
+ }, z.core.$strict>, z.ZodObject<{
853
+ state: z.ZodLiteral<"unavailable">;
854
+ reason: z.ZodString;
855
+ }, z.core.$strict>, z.ZodObject<{
856
+ state: z.ZodLiteral<"redacted">;
857
+ reason: z.ZodString;
858
+ }, z.core.$strict>, z.ZodObject<{
859
+ state: z.ZodLiteral<"unknown">;
860
+ }, z.core.$strict>], "state">>;
861
+ computeBilling: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
862
+ state: z.ZodLiteral<"known">;
863
+ value: z.ZodObject<{
864
+ amount: z.ZodNumber;
865
+ currency: z.ZodString;
866
+ }, z.core.$strict>;
867
+ provenance: z.ZodObject<{
868
+ origin: z.ZodEnum<{
869
+ estimated: "estimated";
870
+ measured: "measured";
871
+ reported: "reported";
872
+ }>;
873
+ observedAt: z.ZodISODateTime;
874
+ source: z.ZodOptional<z.ZodString>;
875
+ }, z.core.$strict>;
876
+ }, z.core.$strict>, z.ZodObject<{
877
+ state: z.ZodLiteral<"stale">;
878
+ value: z.ZodObject<{
879
+ amount: z.ZodNumber;
880
+ currency: z.ZodString;
881
+ }, z.core.$strict>;
882
+ provenance: z.ZodObject<{
883
+ origin: z.ZodEnum<{
884
+ estimated: "estimated";
885
+ measured: "measured";
886
+ reported: "reported";
887
+ }>;
888
+ observedAt: z.ZodISODateTime;
889
+ source: z.ZodOptional<z.ZodString>;
890
+ }, z.core.$strict>;
891
+ reason: z.ZodString;
892
+ }, z.core.$strict>, z.ZodObject<{
893
+ state: z.ZodLiteral<"unavailable">;
894
+ reason: z.ZodString;
895
+ }, z.core.$strict>, z.ZodObject<{
896
+ state: z.ZodLiteral<"redacted">;
897
+ reason: z.ZodString;
898
+ }, z.core.$strict>, z.ZodObject<{
899
+ state: z.ZodLiteral<"unknown">;
900
+ }, z.core.$strict>], "state">>;
901
+ accountUsage: z.ZodOptional<z.ZodObject<{
902
+ plan: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
903
+ state: z.ZodLiteral<"known">;
904
+ value: z.ZodString;
905
+ provenance: z.ZodObject<{
906
+ origin: z.ZodEnum<{
907
+ estimated: "estimated";
908
+ measured: "measured";
909
+ reported: "reported";
910
+ }>;
911
+ observedAt: z.ZodISODateTime;
912
+ source: z.ZodOptional<z.ZodString>;
913
+ }, z.core.$strict>;
914
+ }, z.core.$strict>, z.ZodObject<{
915
+ state: z.ZodLiteral<"stale">;
916
+ value: z.ZodString;
917
+ provenance: z.ZodObject<{
918
+ origin: z.ZodEnum<{
919
+ estimated: "estimated";
920
+ measured: "measured";
921
+ reported: "reported";
922
+ }>;
923
+ observedAt: z.ZodISODateTime;
924
+ source: z.ZodOptional<z.ZodString>;
925
+ }, z.core.$strict>;
926
+ reason: z.ZodString;
927
+ }, z.core.$strict>, z.ZodObject<{
928
+ state: z.ZodLiteral<"unavailable">;
929
+ reason: z.ZodString;
930
+ }, z.core.$strict>, z.ZodObject<{
931
+ state: z.ZodLiteral<"redacted">;
932
+ reason: z.ZodString;
933
+ }, z.core.$strict>, z.ZodObject<{
934
+ state: z.ZodLiteral<"unknown">;
935
+ }, z.core.$strict>], "state">>;
936
+ credits: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
937
+ state: z.ZodLiteral<"known">;
938
+ value: z.ZodObject<{
939
+ remaining: z.ZodNumber;
940
+ unit: z.ZodString;
941
+ }, z.core.$strict>;
942
+ provenance: z.ZodObject<{
943
+ origin: z.ZodEnum<{
944
+ estimated: "estimated";
945
+ measured: "measured";
946
+ reported: "reported";
947
+ }>;
948
+ observedAt: z.ZodISODateTime;
949
+ source: z.ZodOptional<z.ZodString>;
950
+ }, z.core.$strict>;
951
+ }, z.core.$strict>, z.ZodObject<{
952
+ state: z.ZodLiteral<"stale">;
953
+ value: z.ZodObject<{
954
+ remaining: z.ZodNumber;
955
+ unit: z.ZodString;
956
+ }, z.core.$strict>;
957
+ provenance: z.ZodObject<{
958
+ origin: z.ZodEnum<{
959
+ estimated: "estimated";
960
+ measured: "measured";
961
+ reported: "reported";
962
+ }>;
963
+ observedAt: z.ZodISODateTime;
964
+ source: z.ZodOptional<z.ZodString>;
965
+ }, z.core.$strict>;
966
+ reason: z.ZodString;
967
+ }, z.core.$strict>, z.ZodObject<{
968
+ state: z.ZodLiteral<"unavailable">;
969
+ reason: z.ZodString;
970
+ }, z.core.$strict>, z.ZodObject<{
971
+ state: z.ZodLiteral<"redacted">;
972
+ reason: z.ZodString;
973
+ }, z.core.$strict>, z.ZodObject<{
974
+ state: z.ZodLiteral<"unknown">;
975
+ }, z.core.$strict>], "state">>;
976
+ quota: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
977
+ state: z.ZodLiteral<"known">;
978
+ value: z.ZodObject<{
979
+ limit: z.ZodNumber;
980
+ used: z.ZodNumber;
981
+ remaining: z.ZodNumber;
982
+ unit: z.ZodString;
983
+ }, z.core.$strict>;
984
+ provenance: z.ZodObject<{
985
+ origin: z.ZodEnum<{
986
+ estimated: "estimated";
987
+ measured: "measured";
988
+ reported: "reported";
989
+ }>;
990
+ observedAt: z.ZodISODateTime;
991
+ source: z.ZodOptional<z.ZodString>;
992
+ }, z.core.$strict>;
993
+ }, z.core.$strict>, z.ZodObject<{
994
+ state: z.ZodLiteral<"stale">;
995
+ value: z.ZodObject<{
996
+ limit: z.ZodNumber;
997
+ used: z.ZodNumber;
998
+ remaining: z.ZodNumber;
999
+ unit: z.ZodString;
1000
+ }, z.core.$strict>;
1001
+ provenance: z.ZodObject<{
1002
+ origin: z.ZodEnum<{
1003
+ estimated: "estimated";
1004
+ measured: "measured";
1005
+ reported: "reported";
1006
+ }>;
1007
+ observedAt: z.ZodISODateTime;
1008
+ source: z.ZodOptional<z.ZodString>;
1009
+ }, z.core.$strict>;
1010
+ reason: z.ZodString;
1011
+ }, z.core.$strict>, z.ZodObject<{
1012
+ state: z.ZodLiteral<"unavailable">;
1013
+ reason: z.ZodString;
1014
+ }, z.core.$strict>, z.ZodObject<{
1015
+ state: z.ZodLiteral<"redacted">;
1016
+ reason: z.ZodString;
1017
+ }, z.core.$strict>, z.ZodObject<{
1018
+ state: z.ZodLiteral<"unknown">;
1019
+ }, z.core.$strict>], "state">>;
1020
+ period: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1021
+ state: z.ZodLiteral<"known">;
1022
+ value: z.ZodObject<{
1023
+ start: z.ZodISODateTime;
1024
+ end: z.ZodISODateTime;
1025
+ }, z.core.$strict>;
1026
+ provenance: z.ZodObject<{
1027
+ origin: z.ZodEnum<{
1028
+ estimated: "estimated";
1029
+ measured: "measured";
1030
+ reported: "reported";
1031
+ }>;
1032
+ observedAt: z.ZodISODateTime;
1033
+ source: z.ZodOptional<z.ZodString>;
1034
+ }, z.core.$strict>;
1035
+ }, z.core.$strict>, z.ZodObject<{
1036
+ state: z.ZodLiteral<"stale">;
1037
+ value: z.ZodObject<{
1038
+ start: z.ZodISODateTime;
1039
+ end: z.ZodISODateTime;
1040
+ }, z.core.$strict>;
1041
+ provenance: z.ZodObject<{
1042
+ origin: z.ZodEnum<{
1043
+ estimated: "estimated";
1044
+ measured: "measured";
1045
+ reported: "reported";
1046
+ }>;
1047
+ observedAt: z.ZodISODateTime;
1048
+ source: z.ZodOptional<z.ZodString>;
1049
+ }, z.core.$strict>;
1050
+ reason: z.ZodString;
1051
+ }, z.core.$strict>, z.ZodObject<{
1052
+ state: z.ZodLiteral<"unavailable">;
1053
+ reason: z.ZodString;
1054
+ }, z.core.$strict>, z.ZodObject<{
1055
+ state: z.ZodLiteral<"redacted">;
1056
+ reason: z.ZodString;
1057
+ }, z.core.$strict>, z.ZodObject<{
1058
+ state: z.ZodLiteral<"unknown">;
1059
+ }, z.core.$strict>], "state">>;
1060
+ }, z.core.$strict>>;
1061
+ }, z.core.$strict>;
1062
+ export type AgentEnvironmentObservation = z.infer<typeof AgentEnvironmentObservationSchema>;
1063
+ /**
1064
+ * A live observation and its replay must name the same environment and the
1065
+ * same observed identity and provenance source. Time and freshness may differ,
1066
+ * but the identifiers may not.
1067
+ */
1068
+ export declare function agentEnvironmentObservationIdentityMatches(live: AgentEnvironmentObservation, replay: AgentEnvironmentObservation): boolean;
1069
+ /**
1070
+ * Report whether an observation payload carries a credential. A credential is a
1071
+ * secret-shaped object key or a string value with embedded userinfo. Contract
1072
+ * tests use this to prove the observation surface never transports a secret.
1073
+ */
1074
+ export declare function observationContainsCredential(value: unknown): boolean;
1075
+ /** Throw when an observation payload carries a credential. */
1076
+ export declare function assertObservationCredentialFree(value: unknown): void;