@opengeni/contracts 0.10.0 → 0.15.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.
- package/dist/index.d.ts +3270 -433
- package/dist/index.js +2430 -127
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/event-preview.ts +911 -0
- package/src/index.ts +2673 -187
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Canonical bounded representation for `session_events.payload`.
|
|
5
|
+
*
|
|
6
|
+
* Session events are the lossy human/audit projection, not model memory and not
|
|
7
|
+
* an evidence blob store. This helper keeps that projection useful while making
|
|
8
|
+
* the loss explicit. It deliberately has no server-only dependency so the DB,
|
|
9
|
+
* realtime transports, SDK/React, and tests can share one wire contract.
|
|
10
|
+
*/
|
|
11
|
+
declare const SESSION_EVENT_PAYLOAD_MAX_BYTES: number;
|
|
12
|
+
type SessionEventBoundarySurface = "durable_audit" | "database_guard" | "database_read_projection" | "http_projection" | "nats_legacy_guard" | "sse_legacy_guard" | "browser_legacy_guard";
|
|
13
|
+
type SessionEventPayloadTruncation = {
|
|
14
|
+
truncated: true;
|
|
15
|
+
surface: SessionEventBoundarySurface;
|
|
16
|
+
reason: "payload_bytes_exceeded" | "payload_not_serializable" | "payload_measurement_bounded" | "inline_media_not_retained" | "database_guard";
|
|
17
|
+
originalBytes: number | null;
|
|
18
|
+
deliveredBytes: number;
|
|
19
|
+
omittedBytes: number | null;
|
|
20
|
+
estimatedOriginalTokens: number | null;
|
|
21
|
+
estimatedDeliveredTokens: number;
|
|
22
|
+
fullEvidence: {
|
|
23
|
+
available: false;
|
|
24
|
+
reason: "not_retained";
|
|
25
|
+
};
|
|
26
|
+
details: Array<{
|
|
27
|
+
path: string;
|
|
28
|
+
kind: "string" | "array" | "object" | "depth" | "budget" | "media" | "binary" | "unserializable";
|
|
29
|
+
originalBytes?: number;
|
|
30
|
+
deliveredBytes?: number;
|
|
31
|
+
omittedEntries?: number | null;
|
|
32
|
+
mediaType?: string;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
35
|
+
type BoundSessionEventPayloadOptions = {
|
|
36
|
+
surface?: SessionEventBoundarySurface;
|
|
37
|
+
maxBytes?: number;
|
|
38
|
+
};
|
|
39
|
+
type SessionEventJsonMeasurement = {
|
|
40
|
+
bytes: number;
|
|
41
|
+
reason: null;
|
|
42
|
+
} | {
|
|
43
|
+
bytes: null;
|
|
44
|
+
reason: "payload_not_serializable" | "payload_measurement_bounded";
|
|
45
|
+
};
|
|
46
|
+
type SessionEventMediaPreview = {
|
|
47
|
+
type: "media_preview";
|
|
48
|
+
mediaType: string;
|
|
49
|
+
inlineBytes: number | null;
|
|
50
|
+
fullOutputAvailable: false;
|
|
51
|
+
preview: string;
|
|
52
|
+
};
|
|
53
|
+
/** UTF-8 bytes used by the JSON wire/storage representation. */
|
|
54
|
+
declare function sessionEventJsonBytes(value: unknown): number;
|
|
55
|
+
/**
|
|
56
|
+
* Inspect a prospective event value without invoking accessors, custom
|
|
57
|
+
* serializers, or allocating its complete JSON representation. A null byte
|
|
58
|
+
* count is explicit: the traversal stopped at the global work/depth boundary
|
|
59
|
+
* or found serialization behavior that must first be normalized.
|
|
60
|
+
*/
|
|
61
|
+
declare function measureSessionEventJson(value: unknown): SessionEventJsonMeasurement;
|
|
62
|
+
/** The same deliberately coarse bytes/4 token estimate used by Codex parity code. */
|
|
63
|
+
declare function approximateSessionEventTokens(bytes: number): number;
|
|
64
|
+
/** Truthful audit fact for inline media whose source bytes are not durably retained. */
|
|
65
|
+
declare function sessionEventMediaPreview(mediaType: string, inlineBytes: number | null): SessionEventMediaPreview;
|
|
66
|
+
/** Parse a base64 data URL into a compact audit fact without decoding/copying its bytes. */
|
|
67
|
+
declare function sessionEventMediaPreviewFromDataUrl(value: string): SessionEventMediaPreview | null;
|
|
68
|
+
/** Read explicit truncation metadata from a bounded object payload. */
|
|
69
|
+
declare function sessionEventPayloadTruncation(payload: unknown): SessionEventPayloadTruncation | null;
|
|
70
|
+
/**
|
|
71
|
+
* Return a byte-bounded audit payload. Unchanged ordinary payloads retain their
|
|
72
|
+
* reference. Oversized strings/containers get deterministic head+tail previews;
|
|
73
|
+
* inline images/binary values become metadata because `session_events` does not
|
|
74
|
+
* durably retain their source bytes as independently retrievable evidence.
|
|
75
|
+
*/
|
|
76
|
+
declare function boundSessionEventPayload<T>(payload: T, options?: BoundSessionEventPayloadOptions): T;
|
|
77
|
+
|
|
3
78
|
declare const SessionStatus: z.ZodEnum<{
|
|
4
79
|
queued: "queued";
|
|
5
80
|
running: "running";
|
|
@@ -7,7 +82,6 @@ declare const SessionStatus: z.ZodEnum<{
|
|
|
7
82
|
requires_action: "requires_action";
|
|
8
83
|
recovering: "recovering";
|
|
9
84
|
waiting_capacity: "waiting_capacity";
|
|
10
|
-
paused: "paused";
|
|
11
85
|
failed: "failed";
|
|
12
86
|
cancelled: "cancelled";
|
|
13
87
|
}>;
|
|
@@ -225,26 +299,379 @@ declare const Workspace: z.ZodObject<{
|
|
|
225
299
|
externalId: z.ZodNullable<z.ZodString>;
|
|
226
300
|
agentInstructions: z.ZodNullable<z.ZodString>;
|
|
227
301
|
settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
302
|
+
inferenceControl: z.ZodObject<{
|
|
303
|
+
state: z.ZodEnum<{
|
|
304
|
+
active: "active";
|
|
305
|
+
paused: "paused";
|
|
306
|
+
}>;
|
|
307
|
+
revision: z.ZodNumber;
|
|
308
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
309
|
+
changedBy: z.ZodNullable<z.ZodString>;
|
|
310
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>;
|
|
236
312
|
defaultRigId: z.ZodNullable<z.ZodString>;
|
|
237
313
|
createdAt: z.ZodString;
|
|
238
314
|
updatedAt: z.ZodString;
|
|
239
315
|
}, z.core.$strip>;
|
|
240
316
|
type Workspace = z.infer<typeof Workspace>;
|
|
317
|
+
declare const WorkspaceTranscriptionTarget: z.ZodObject<{
|
|
318
|
+
provider: z.ZodString;
|
|
319
|
+
model: z.ZodNullable<z.ZodString>;
|
|
320
|
+
credentialMode: z.ZodEnum<{
|
|
321
|
+
managed: "managed";
|
|
322
|
+
byok: "byok";
|
|
323
|
+
}>;
|
|
324
|
+
credentialConnectionId: z.ZodNullable<z.ZodString>;
|
|
325
|
+
region: z.ZodNullable<z.ZodString>;
|
|
326
|
+
}, z.core.$strict>;
|
|
327
|
+
type WorkspaceTranscriptionTarget = z.infer<typeof WorkspaceTranscriptionTarget>;
|
|
328
|
+
declare const TranscriptionErrorCode: z.ZodEnum<{
|
|
329
|
+
cancelled: "cancelled";
|
|
330
|
+
unknown: "unknown";
|
|
331
|
+
provider: "provider";
|
|
332
|
+
permission_denied: "permission_denied";
|
|
333
|
+
not_supported: "not_supported";
|
|
334
|
+
network: "network";
|
|
335
|
+
policy_blocked: "policy_blocked";
|
|
336
|
+
timeout: "timeout";
|
|
337
|
+
}>;
|
|
338
|
+
type TranscriptionErrorCode = z.infer<typeof TranscriptionErrorCode>;
|
|
339
|
+
declare const TranscriptionTimeSpan: z.ZodObject<{
|
|
340
|
+
startMilliseconds: z.ZodNumber;
|
|
341
|
+
endMilliseconds: z.ZodNumber;
|
|
342
|
+
}, z.core.$strict>;
|
|
343
|
+
type TranscriptionTimeSpan = z.infer<typeof TranscriptionTimeSpan>;
|
|
344
|
+
declare const TranscriptionSpeaker: z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
label: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, z.core.$strict>;
|
|
348
|
+
type TranscriptionSpeaker = z.infer<typeof TranscriptionSpeaker>;
|
|
349
|
+
declare const TranscriptionWord: z.ZodObject<{
|
|
350
|
+
text: z.ZodString;
|
|
351
|
+
span: z.ZodObject<{
|
|
352
|
+
startMilliseconds: z.ZodNumber;
|
|
353
|
+
endMilliseconds: z.ZodNumber;
|
|
354
|
+
}, z.core.$strict>;
|
|
355
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
356
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
id: z.ZodString;
|
|
358
|
+
label: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, z.core.$strict>>;
|
|
360
|
+
}, z.core.$strict>;
|
|
361
|
+
type TranscriptionWord = z.infer<typeof TranscriptionWord>;
|
|
362
|
+
declare const TranscriptionResultMetadata: z.ZodObject<{
|
|
363
|
+
detectedLanguage: z.ZodOptional<z.ZodString>;
|
|
364
|
+
span: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
startMilliseconds: z.ZodNumber;
|
|
366
|
+
endMilliseconds: z.ZodNumber;
|
|
367
|
+
}, z.core.$strict>>;
|
|
368
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
370
|
+
id: z.ZodString;
|
|
371
|
+
label: z.ZodOptional<z.ZodString>;
|
|
372
|
+
}, z.core.$strict>>;
|
|
373
|
+
words: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
374
|
+
text: z.ZodString;
|
|
375
|
+
span: z.ZodObject<{
|
|
376
|
+
startMilliseconds: z.ZodNumber;
|
|
377
|
+
endMilliseconds: z.ZodNumber;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
381
|
+
id: z.ZodString;
|
|
382
|
+
label: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, z.core.$strict>>;
|
|
384
|
+
}, z.core.$strict>>>;
|
|
385
|
+
}, z.core.$strict>;
|
|
386
|
+
type TranscriptionResultMetadata = z.infer<typeof TranscriptionResultMetadata>;
|
|
387
|
+
/** Strict provider-neutral event surface; provider payload bags are rejected. */
|
|
388
|
+
declare const TranscriptionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
389
|
+
localSessionId: z.ZodString;
|
|
390
|
+
sequence: z.ZodNumber;
|
|
391
|
+
occurredAt: z.ZodString;
|
|
392
|
+
type: z.ZodLiteral<"permission.requested">;
|
|
393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
394
|
+
localSessionId: z.ZodString;
|
|
395
|
+
sequence: z.ZodNumber;
|
|
396
|
+
occurredAt: z.ZodString;
|
|
397
|
+
type: z.ZodLiteral<"session.opened">;
|
|
398
|
+
providerSessionId: z.ZodString;
|
|
399
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
400
|
+
localSessionId: z.ZodString;
|
|
401
|
+
sequence: z.ZodNumber;
|
|
402
|
+
occurredAt: z.ZodString;
|
|
403
|
+
type: z.ZodLiteral<"transcript.partial">;
|
|
404
|
+
segmentId: z.ZodString;
|
|
405
|
+
text: z.ZodString;
|
|
406
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
detectedLanguage: z.ZodOptional<z.ZodString>;
|
|
408
|
+
span: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
startMilliseconds: z.ZodNumber;
|
|
410
|
+
endMilliseconds: z.ZodNumber;
|
|
411
|
+
}, z.core.$strict>>;
|
|
412
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
id: z.ZodString;
|
|
415
|
+
label: z.ZodOptional<z.ZodString>;
|
|
416
|
+
}, z.core.$strict>>;
|
|
417
|
+
words: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
418
|
+
text: z.ZodString;
|
|
419
|
+
span: z.ZodObject<{
|
|
420
|
+
startMilliseconds: z.ZodNumber;
|
|
421
|
+
endMilliseconds: z.ZodNumber;
|
|
422
|
+
}, z.core.$strict>;
|
|
423
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
label: z.ZodOptional<z.ZodString>;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
}, z.core.$strict>>>;
|
|
429
|
+
}, z.core.$strict>>;
|
|
430
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
431
|
+
localSessionId: z.ZodString;
|
|
432
|
+
sequence: z.ZodNumber;
|
|
433
|
+
occurredAt: z.ZodString;
|
|
434
|
+
type: z.ZodLiteral<"transcript.final">;
|
|
435
|
+
segmentId: z.ZodString;
|
|
436
|
+
text: z.ZodString;
|
|
437
|
+
providerAcceptanceId: z.ZodString;
|
|
438
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
detectedLanguage: z.ZodOptional<z.ZodString>;
|
|
440
|
+
span: z.ZodOptional<z.ZodObject<{
|
|
441
|
+
startMilliseconds: z.ZodNumber;
|
|
442
|
+
endMilliseconds: z.ZodNumber;
|
|
443
|
+
}, z.core.$strict>>;
|
|
444
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
id: z.ZodString;
|
|
447
|
+
label: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
words: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
450
|
+
text: z.ZodString;
|
|
451
|
+
span: z.ZodObject<{
|
|
452
|
+
startMilliseconds: z.ZodNumber;
|
|
453
|
+
endMilliseconds: z.ZodNumber;
|
|
454
|
+
}, z.core.$strict>;
|
|
455
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
speaker: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
id: z.ZodString;
|
|
458
|
+
label: z.ZodOptional<z.ZodString>;
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
}, z.core.$strict>>>;
|
|
461
|
+
}, z.core.$strict>>;
|
|
462
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
463
|
+
localSessionId: z.ZodString;
|
|
464
|
+
sequence: z.ZodNumber;
|
|
465
|
+
occurredAt: z.ZodString;
|
|
466
|
+
type: z.ZodLiteral<"usage">;
|
|
467
|
+
audioMilliseconds: z.ZodNumber;
|
|
468
|
+
costUsd: z.ZodNullable<z.ZodNumber>;
|
|
469
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
470
|
+
localSessionId: z.ZodString;
|
|
471
|
+
sequence: z.ZodNumber;
|
|
472
|
+
occurredAt: z.ZodString;
|
|
473
|
+
type: z.ZodLiteral<"session.reconnecting">;
|
|
474
|
+
attempt: z.ZodNumber;
|
|
475
|
+
reason: z.ZodString;
|
|
476
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
477
|
+
localSessionId: z.ZodString;
|
|
478
|
+
sequence: z.ZodNumber;
|
|
479
|
+
occurredAt: z.ZodString;
|
|
480
|
+
type: z.ZodLiteral<"session.error">;
|
|
481
|
+
code: z.ZodEnum<{
|
|
482
|
+
cancelled: "cancelled";
|
|
483
|
+
unknown: "unknown";
|
|
484
|
+
provider: "provider";
|
|
485
|
+
permission_denied: "permission_denied";
|
|
486
|
+
not_supported: "not_supported";
|
|
487
|
+
network: "network";
|
|
488
|
+
policy_blocked: "policy_blocked";
|
|
489
|
+
timeout: "timeout";
|
|
490
|
+
}>;
|
|
491
|
+
recoverable: z.ZodBoolean;
|
|
492
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
493
|
+
localSessionId: z.ZodString;
|
|
494
|
+
sequence: z.ZodNumber;
|
|
495
|
+
occurredAt: z.ZodString;
|
|
496
|
+
type: z.ZodLiteral<"session.closed">;
|
|
497
|
+
reason: z.ZodEnum<{
|
|
498
|
+
cancelled: "cancelled";
|
|
499
|
+
error: "error";
|
|
500
|
+
completed: "completed";
|
|
501
|
+
replaced: "replaced";
|
|
502
|
+
}>;
|
|
503
|
+
}, z.core.$strict>], "type">;
|
|
504
|
+
type TranscriptionEvent = z.infer<typeof TranscriptionEvent>;
|
|
505
|
+
/**
|
|
506
|
+
* Workspace-only policy for the distinct speech-to-text capability. It never
|
|
507
|
+
* authorizes a turn model/provider and contains connection references rather
|
|
508
|
+
* than secrets. `acceptanceId` changes whenever an admin accepts a new target
|
|
509
|
+
* set, so clients can bind a microphone session to one exact policy revision.
|
|
510
|
+
*/
|
|
511
|
+
declare const WorkspaceTranscriptionPolicy: z.ZodObject<{
|
|
512
|
+
enabled: z.ZodBoolean;
|
|
513
|
+
acceptanceId: z.ZodNullable<z.ZodString>;
|
|
514
|
+
primary: z.ZodNullable<z.ZodObject<{
|
|
515
|
+
provider: z.ZodString;
|
|
516
|
+
model: z.ZodNullable<z.ZodString>;
|
|
517
|
+
credentialMode: z.ZodEnum<{
|
|
518
|
+
managed: "managed";
|
|
519
|
+
byok: "byok";
|
|
520
|
+
}>;
|
|
521
|
+
credentialConnectionId: z.ZodNullable<z.ZodString>;
|
|
522
|
+
region: z.ZodNullable<z.ZodString>;
|
|
523
|
+
}, z.core.$strict>>;
|
|
524
|
+
language: z.ZodNullable<z.ZodString>;
|
|
525
|
+
autoDetectLanguage: z.ZodBoolean;
|
|
526
|
+
diarization: z.ZodObject<{
|
|
527
|
+
enabled: z.ZodBoolean;
|
|
528
|
+
maxSpeakers: z.ZodNullable<z.ZodNumber>;
|
|
529
|
+
}, z.core.$strict>;
|
|
530
|
+
retention: z.ZodObject<{
|
|
531
|
+
mode: z.ZodEnum<{
|
|
532
|
+
none: "none";
|
|
533
|
+
"provider-policy": "provider-policy";
|
|
534
|
+
}>;
|
|
535
|
+
maxDays: z.ZodNullable<z.ZodNumber>;
|
|
536
|
+
}, z.core.$strict>;
|
|
537
|
+
privacy: z.ZodObject<{
|
|
538
|
+
allowProviderLogging: z.ZodBoolean;
|
|
539
|
+
allowProviderTraining: z.ZodBoolean;
|
|
540
|
+
}, z.core.$strict>;
|
|
541
|
+
fallback: z.ZodObject<{
|
|
542
|
+
mode: z.ZodEnum<{
|
|
543
|
+
disabled: "disabled";
|
|
544
|
+
explicit: "explicit";
|
|
545
|
+
}>;
|
|
546
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
547
|
+
provider: z.ZodString;
|
|
548
|
+
model: z.ZodNullable<z.ZodString>;
|
|
549
|
+
credentialMode: z.ZodEnum<{
|
|
550
|
+
managed: "managed";
|
|
551
|
+
byok: "byok";
|
|
552
|
+
}>;
|
|
553
|
+
credentialConnectionId: z.ZodNullable<z.ZodString>;
|
|
554
|
+
region: z.ZodNullable<z.ZodString>;
|
|
555
|
+
}, z.core.$strict>>;
|
|
556
|
+
}, z.core.$strict>;
|
|
557
|
+
cost: z.ZodObject<{
|
|
558
|
+
currency: z.ZodLiteral<"USD">;
|
|
559
|
+
maxPerHour: z.ZodNullable<z.ZodNumber>;
|
|
560
|
+
maxPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
561
|
+
}, z.core.$strict>;
|
|
562
|
+
}, z.core.$strict>;
|
|
563
|
+
type WorkspaceTranscriptionPolicy = z.infer<typeof WorkspaceTranscriptionPolicy>;
|
|
241
564
|
declare const WorkspaceSettingsSchema: z.ZodObject<{
|
|
242
565
|
memoryEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
+
transcription: z.ZodOptional<z.ZodObject<{
|
|
567
|
+
enabled: z.ZodBoolean;
|
|
568
|
+
acceptanceId: z.ZodNullable<z.ZodString>;
|
|
569
|
+
primary: z.ZodNullable<z.ZodObject<{
|
|
570
|
+
provider: z.ZodString;
|
|
571
|
+
model: z.ZodNullable<z.ZodString>;
|
|
572
|
+
credentialMode: z.ZodEnum<{
|
|
573
|
+
managed: "managed";
|
|
574
|
+
byok: "byok";
|
|
575
|
+
}>;
|
|
576
|
+
credentialConnectionId: z.ZodNullable<z.ZodString>;
|
|
577
|
+
region: z.ZodNullable<z.ZodString>;
|
|
578
|
+
}, z.core.$strict>>;
|
|
579
|
+
language: z.ZodNullable<z.ZodString>;
|
|
580
|
+
autoDetectLanguage: z.ZodBoolean;
|
|
581
|
+
diarization: z.ZodObject<{
|
|
582
|
+
enabled: z.ZodBoolean;
|
|
583
|
+
maxSpeakers: z.ZodNullable<z.ZodNumber>;
|
|
584
|
+
}, z.core.$strict>;
|
|
585
|
+
retention: z.ZodObject<{
|
|
586
|
+
mode: z.ZodEnum<{
|
|
587
|
+
none: "none";
|
|
588
|
+
"provider-policy": "provider-policy";
|
|
589
|
+
}>;
|
|
590
|
+
maxDays: z.ZodNullable<z.ZodNumber>;
|
|
591
|
+
}, z.core.$strict>;
|
|
592
|
+
privacy: z.ZodObject<{
|
|
593
|
+
allowProviderLogging: z.ZodBoolean;
|
|
594
|
+
allowProviderTraining: z.ZodBoolean;
|
|
595
|
+
}, z.core.$strict>;
|
|
596
|
+
fallback: z.ZodObject<{
|
|
597
|
+
mode: z.ZodEnum<{
|
|
598
|
+
disabled: "disabled";
|
|
599
|
+
explicit: "explicit";
|
|
600
|
+
}>;
|
|
601
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
602
|
+
provider: z.ZodString;
|
|
603
|
+
model: z.ZodNullable<z.ZodString>;
|
|
604
|
+
credentialMode: z.ZodEnum<{
|
|
605
|
+
managed: "managed";
|
|
606
|
+
byok: "byok";
|
|
607
|
+
}>;
|
|
608
|
+
credentialConnectionId: z.ZodNullable<z.ZodString>;
|
|
609
|
+
region: z.ZodNullable<z.ZodString>;
|
|
610
|
+
}, z.core.$strict>>;
|
|
611
|
+
}, z.core.$strict>;
|
|
612
|
+
cost: z.ZodObject<{
|
|
613
|
+
currency: z.ZodLiteral<"USD">;
|
|
614
|
+
maxPerHour: z.ZodNullable<z.ZodNumber>;
|
|
615
|
+
maxPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
616
|
+
}, z.core.$strict>;
|
|
617
|
+
}, z.core.$strict>>;
|
|
243
618
|
}, z.core.$loose>;
|
|
244
619
|
type WorkspaceSettings = z.infer<typeof WorkspaceSettingsSchema>;
|
|
245
620
|
declare function resolveWorkspaceMemoryEnabled(settings: unknown): boolean;
|
|
246
621
|
declare const UpdateWorkspaceSettingsRequest: z.ZodObject<{
|
|
247
622
|
memoryEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
623
|
+
transcription: z.ZodOptional<z.ZodObject<{
|
|
624
|
+
enabled: z.ZodBoolean;
|
|
625
|
+
acceptanceId: z.ZodNullable<z.ZodString>;
|
|
626
|
+
primary: z.ZodNullable<z.ZodObject<{
|
|
627
|
+
provider: z.ZodString;
|
|
628
|
+
model: z.ZodNullable<z.ZodString>;
|
|
629
|
+
credentialMode: z.ZodEnum<{
|
|
630
|
+
managed: "managed";
|
|
631
|
+
byok: "byok";
|
|
632
|
+
}>;
|
|
633
|
+
credentialConnectionId: z.ZodNullable<z.ZodString>;
|
|
634
|
+
region: z.ZodNullable<z.ZodString>;
|
|
635
|
+
}, z.core.$strict>>;
|
|
636
|
+
language: z.ZodNullable<z.ZodString>;
|
|
637
|
+
autoDetectLanguage: z.ZodBoolean;
|
|
638
|
+
diarization: z.ZodObject<{
|
|
639
|
+
enabled: z.ZodBoolean;
|
|
640
|
+
maxSpeakers: z.ZodNullable<z.ZodNumber>;
|
|
641
|
+
}, z.core.$strict>;
|
|
642
|
+
retention: z.ZodObject<{
|
|
643
|
+
mode: z.ZodEnum<{
|
|
644
|
+
none: "none";
|
|
645
|
+
"provider-policy": "provider-policy";
|
|
646
|
+
}>;
|
|
647
|
+
maxDays: z.ZodNullable<z.ZodNumber>;
|
|
648
|
+
}, z.core.$strict>;
|
|
649
|
+
privacy: z.ZodObject<{
|
|
650
|
+
allowProviderLogging: z.ZodBoolean;
|
|
651
|
+
allowProviderTraining: z.ZodBoolean;
|
|
652
|
+
}, z.core.$strict>;
|
|
653
|
+
fallback: z.ZodObject<{
|
|
654
|
+
mode: z.ZodEnum<{
|
|
655
|
+
disabled: "disabled";
|
|
656
|
+
explicit: "explicit";
|
|
657
|
+
}>;
|
|
658
|
+
targets: z.ZodArray<z.ZodObject<{
|
|
659
|
+
provider: z.ZodString;
|
|
660
|
+
model: z.ZodNullable<z.ZodString>;
|
|
661
|
+
credentialMode: z.ZodEnum<{
|
|
662
|
+
managed: "managed";
|
|
663
|
+
byok: "byok";
|
|
664
|
+
}>;
|
|
665
|
+
credentialConnectionId: z.ZodNullable<z.ZodString>;
|
|
666
|
+
region: z.ZodNullable<z.ZodString>;
|
|
667
|
+
}, z.core.$strict>>;
|
|
668
|
+
}, z.core.$strict>;
|
|
669
|
+
cost: z.ZodObject<{
|
|
670
|
+
currency: z.ZodLiteral<"USD">;
|
|
671
|
+
maxPerHour: z.ZodNullable<z.ZodNumber>;
|
|
672
|
+
maxPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
673
|
+
}, z.core.$strict>;
|
|
674
|
+
}, z.core.$strict>>;
|
|
248
675
|
}, z.core.$loose>;
|
|
249
676
|
type UpdateWorkspaceSettingsRequest = z.infer<typeof UpdateWorkspaceSettingsRequest>;
|
|
250
677
|
declare const SetWorkspaceDefaultRigRequest: z.ZodObject<{
|
|
@@ -256,6 +683,30 @@ declare const UpdateWorkspaceModelPolicyRequest: z.ZodObject<{
|
|
|
256
683
|
allowedModels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
257
684
|
}, z.core.$strip>;
|
|
258
685
|
type UpdateWorkspaceModelPolicyRequest = z.infer<typeof UpdateWorkspaceModelPolicyRequest>;
|
|
686
|
+
/** Reserved creator/initiator id used only by legacy-row migration defaults. */
|
|
687
|
+
declare const UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID: "unattributed-legacy";
|
|
688
|
+
/**
|
|
689
|
+
* A named machine/service principal asserted by a trusted embedding host. This
|
|
690
|
+
* deliberately excludes `kind: "subject"`: a delegated service assertion may
|
|
691
|
+
* describe causal machine work, but it is not a generic human-impersonation
|
|
692
|
+
* mechanism. The authenticated grant remains the authorization boundary.
|
|
693
|
+
*/
|
|
694
|
+
declare const ServiceTurnInitiator: z.ZodObject<{
|
|
695
|
+
kind: z.ZodLiteral<"service">;
|
|
696
|
+
subjectId: z.ZodString;
|
|
697
|
+
label: z.ZodOptional<z.ZodString>;
|
|
698
|
+
}, z.core.$strip>;
|
|
699
|
+
type ServiceTurnInitiator = z.infer<typeof ServiceTurnInitiator>;
|
|
700
|
+
/**
|
|
701
|
+
* Immutable, non-secret provenance captured with an initiator. This is audit
|
|
702
|
+
* context (for example an external occurrence id), not a second identity or
|
|
703
|
+
* authorization surface.
|
|
704
|
+
*/
|
|
705
|
+
declare const TurnInitiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
706
|
+
type TurnInitiatorContext = z.infer<typeof TurnInitiatorContext>;
|
|
707
|
+
/** Bounded host provenance that cannot forge OpenGeni-owned lineage fields. */
|
|
708
|
+
declare const ServiceTurnInitiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
709
|
+
type ServiceTurnInitiatorContext = z.infer<typeof ServiceTurnInitiatorContext>;
|
|
259
710
|
declare const AccountGrant: z.ZodObject<{
|
|
260
711
|
accountId: z.ZodString;
|
|
261
712
|
subjectId: z.ZodString;
|
|
@@ -354,6 +805,12 @@ declare const AccessGrant: z.ZodObject<{
|
|
|
354
805
|
"rigs:manage": "rigs:manage";
|
|
355
806
|
}>>;
|
|
356
807
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
808
|
+
serviceInitiator: z.ZodOptional<z.ZodObject<{
|
|
809
|
+
kind: z.ZodLiteral<"service">;
|
|
810
|
+
subjectId: z.ZodString;
|
|
811
|
+
label: z.ZodOptional<z.ZodString>;
|
|
812
|
+
}, z.core.$strip>>;
|
|
813
|
+
serviceInitiatorContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
357
814
|
}, z.core.$strip>;
|
|
358
815
|
type AccessGrant = z.infer<typeof AccessGrant>;
|
|
359
816
|
declare const AccessContext: z.ZodObject<{
|
|
@@ -461,6 +918,12 @@ declare const AccessContext: z.ZodObject<{
|
|
|
461
918
|
"rigs:manage": "rigs:manage";
|
|
462
919
|
}>>;
|
|
463
920
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
921
|
+
serviceInitiator: z.ZodOptional<z.ZodObject<{
|
|
922
|
+
kind: z.ZodLiteral<"service">;
|
|
923
|
+
subjectId: z.ZodString;
|
|
924
|
+
label: z.ZodOptional<z.ZodString>;
|
|
925
|
+
}, z.core.$strip>>;
|
|
926
|
+
serviceInitiatorContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
464
927
|
}, z.core.$strip>>;
|
|
465
928
|
defaultAccountId: z.ZodNullable<z.ZodString>;
|
|
466
929
|
defaultWorkspaceId: z.ZodNullable<z.ZodString>;
|
|
@@ -511,8 +974,16 @@ declare const DelegatedAccessTokenPayload: z.ZodObject<{
|
|
|
511
974
|
"rigs:use": "rigs:use";
|
|
512
975
|
"rigs:manage": "rigs:manage";
|
|
513
976
|
}>>;
|
|
977
|
+
serviceInitiator: z.ZodOptional<z.ZodObject<{
|
|
978
|
+
kind: z.ZodLiteral<"service">;
|
|
979
|
+
subjectId: z.ZodString;
|
|
980
|
+
label: z.ZodOptional<z.ZodString>;
|
|
981
|
+
}, z.core.$strip>>;
|
|
982
|
+
serviceInitiatorContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
514
983
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
515
984
|
turnId: z.ZodOptional<z.ZodString>;
|
|
985
|
+
attemptId: z.ZodOptional<z.ZodString>;
|
|
986
|
+
executionGeneration: z.ZodOptional<z.ZodNumber>;
|
|
516
987
|
exp: z.ZodNumber;
|
|
517
988
|
}, z.core.$strip>;
|
|
518
989
|
type DelegatedAccessTokenPayload = z.infer<typeof DelegatedAccessTokenPayload>;
|
|
@@ -1045,12 +1516,24 @@ declare const GitCredentialProvider: z.ZodEnum<{
|
|
|
1045
1516
|
azure_devops: "azure_devops";
|
|
1046
1517
|
}>;
|
|
1047
1518
|
type GitCredentialProvider = z.infer<typeof GitCredentialProvider>;
|
|
1519
|
+
declare const GitCredentialBindingId: z.ZodString;
|
|
1520
|
+
type GitCredentialBindingId = z.infer<typeof GitCredentialBindingId>;
|
|
1521
|
+
declare const GitRepositoryAccess: z.ZodEnum<{
|
|
1522
|
+
read: "read";
|
|
1523
|
+
write: "write";
|
|
1524
|
+
}>;
|
|
1525
|
+
type GitRepositoryAccess = z.infer<typeof GitRepositoryAccess>;
|
|
1048
1526
|
declare const GitCredentialRepositoryRef: z.ZodObject<{
|
|
1049
1527
|
provider: z.ZodOptional<z.ZodEnum<{
|
|
1050
1528
|
github: "github";
|
|
1051
1529
|
gitlab: "gitlab";
|
|
1052
1530
|
azure_devops: "azure_devops";
|
|
1053
1531
|
}>>;
|
|
1532
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
1534
|
+
read: "read";
|
|
1535
|
+
write: "write";
|
|
1536
|
+
}>>;
|
|
1054
1537
|
uri: z.ZodString;
|
|
1055
1538
|
ref: z.ZodString;
|
|
1056
1539
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -1062,7 +1545,17 @@ type GitCredentialRepositoryRef = z.infer<typeof GitCredentialRepositoryRef>;
|
|
|
1062
1545
|
type GitCredentialsRequest = {
|
|
1063
1546
|
accountId: string;
|
|
1064
1547
|
workspaceId: string;
|
|
1548
|
+
/** Immutable authority admitted with the turn requesting this credential. */
|
|
1549
|
+
sessionId: string;
|
|
1550
|
+
rootSessionId: string;
|
|
1551
|
+
turnId: string;
|
|
1552
|
+
attemptId: string;
|
|
1553
|
+
executionGeneration: number;
|
|
1554
|
+
initiator: TurnInitiator;
|
|
1555
|
+
initiatorContext: TurnInitiatorContext;
|
|
1065
1556
|
provider?: GitCredentialProvider;
|
|
1557
|
+
credentialBindingId?: GitCredentialBindingId;
|
|
1558
|
+
providerHost?: string;
|
|
1066
1559
|
purpose?: "token" | "identity";
|
|
1067
1560
|
repositoryRefs?: GitCredentialRepositoryRef[];
|
|
1068
1561
|
installationId: number;
|
|
@@ -1071,6 +1564,9 @@ type GitCredentialsRequest = {
|
|
|
1071
1564
|
type GitCredentials = {
|
|
1072
1565
|
token?: string;
|
|
1073
1566
|
workspaceId: string;
|
|
1567
|
+
credentialBindingId?: GitCredentialBindingId;
|
|
1568
|
+
provider?: GitCredentialProvider;
|
|
1569
|
+
providerHost?: string;
|
|
1074
1570
|
expiresAt?: string | null;
|
|
1075
1571
|
identity?: {
|
|
1076
1572
|
name: string;
|
|
@@ -1089,9 +1585,190 @@ type SandboxSecrets = {
|
|
|
1089
1585
|
name?: string;
|
|
1090
1586
|
description?: string | null;
|
|
1091
1587
|
};
|
|
1588
|
+
type CredentialAuthNeededReason = "missing_connection" | "expired" | "insufficient_scope" | "refresh_failed";
|
|
1589
|
+
/**
|
|
1590
|
+
* Host-owned run credentials are materialized below one OpenGeni-owned sandbox
|
|
1591
|
+
* directory. Paths are relative POSIX names; the runtime validates traversal,
|
|
1592
|
+
* collisions, bounds, and modes before any content reaches a sandbox.
|
|
1593
|
+
*/
|
|
1594
|
+
type RunCredentialFile = {
|
|
1595
|
+
path: string;
|
|
1596
|
+
content: string;
|
|
1597
|
+
mode?: "0400" | "0600";
|
|
1598
|
+
};
|
|
1599
|
+
type RunCredentialAuthNeeded = {
|
|
1600
|
+
reason: CredentialAuthNeededReason;
|
|
1601
|
+
providerDomain?: string;
|
|
1602
|
+
connectionId?: string;
|
|
1603
|
+
scopes?: string[];
|
|
1604
|
+
resource?: string;
|
|
1605
|
+
authorizationUrl?: string;
|
|
1606
|
+
/** Bounded non-secret guidance. Never place credential material here. */
|
|
1607
|
+
message?: string;
|
|
1608
|
+
};
|
|
1609
|
+
type RunCredentialRedaction = {
|
|
1610
|
+
/** Bounded diagnostic label used only in the replacement marker. */
|
|
1611
|
+
name: string;
|
|
1612
|
+
/** One atomic secret value that must be removed from streamed/audit output. */
|
|
1613
|
+
value: string;
|
|
1614
|
+
};
|
|
1615
|
+
type RunCredentialsRequest = {
|
|
1616
|
+
accountId: string;
|
|
1617
|
+
workspaceId: string;
|
|
1618
|
+
sessionId: string;
|
|
1619
|
+
parentSessionId: string | null;
|
|
1620
|
+
rootSessionId: string;
|
|
1621
|
+
/** All sessions sharing this sandbox group share one OS/filesystem trust boundary. */
|
|
1622
|
+
sandboxGroupId: string;
|
|
1623
|
+
turnId: string;
|
|
1624
|
+
attemptId: string;
|
|
1625
|
+
executionGeneration: number;
|
|
1626
|
+
/** Immutable authority admitted with this turn. */
|
|
1627
|
+
initiator: TurnInitiator;
|
|
1628
|
+
initiatorContext: TurnInitiatorContext;
|
|
1629
|
+
effectiveSandboxBackend: SandboxBackend;
|
|
1630
|
+
sandboxOs: SandboxOs;
|
|
1631
|
+
purpose: "provision" | "renewal";
|
|
1632
|
+
forceRefresh: boolean;
|
|
1633
|
+
/** Informational standalone variable-set identity; never gates host resolution. */
|
|
1634
|
+
variableSet: {
|
|
1635
|
+
id: string;
|
|
1636
|
+
name: string;
|
|
1637
|
+
} | null;
|
|
1638
|
+
};
|
|
1639
|
+
type RunCredentialsResolution = {
|
|
1640
|
+
/**
|
|
1641
|
+
* The frozen target/attempt must not receive host material. Hosts use
|
|
1642
|
+
* this for unsupported OSes/backends and policy-based opt-out; the
|
|
1643
|
+
* decision must remain stable for the attempt.
|
|
1644
|
+
*/
|
|
1645
|
+
status: "not_applicable";
|
|
1646
|
+
accountId: string;
|
|
1647
|
+
workspaceId: string;
|
|
1648
|
+
sessionId: string;
|
|
1649
|
+
} | {
|
|
1650
|
+
status: "ok";
|
|
1651
|
+
/** Scope echoes are mandatory and checked before materialization. */
|
|
1652
|
+
accountId: string;
|
|
1653
|
+
workspaceId: string;
|
|
1654
|
+
sessionId: string;
|
|
1655
|
+
/** Secret environment values. Always delivered off-manifest. */
|
|
1656
|
+
environment: Record<string, string>;
|
|
1657
|
+
files?: RunCredentialFile[];
|
|
1658
|
+
/** Environment name to one returned relative file path. */
|
|
1659
|
+
fileEnvironment?: Record<string, string>;
|
|
1660
|
+
/**
|
|
1661
|
+
* Atomic sensitive values embedded inside credential files or derived
|
|
1662
|
+
* material. Environment values are registered automatically; hosts list
|
|
1663
|
+
* additional file-contained values here so chunked output is redacted.
|
|
1664
|
+
*/
|
|
1665
|
+
redactions?: RunCredentialRedaction[];
|
|
1666
|
+
/** Earliest material expiry. Null/omitted uses a bounded refresh cadence. */
|
|
1667
|
+
expiresAt?: string | null;
|
|
1668
|
+
/** Partial degradation: usable material may coexist with reconnect notices. */
|
|
1669
|
+
authNeeded?: RunCredentialAuthNeeded[];
|
|
1670
|
+
} | {
|
|
1671
|
+
status: "auth_needed";
|
|
1672
|
+
accountId: string;
|
|
1673
|
+
workspaceId: string;
|
|
1674
|
+
sessionId: string;
|
|
1675
|
+
authNeeded: RunCredentialAuthNeeded[];
|
|
1676
|
+
};
|
|
1677
|
+
declare const McpConnectionResourceScope: z.ZodObject<{
|
|
1678
|
+
id: z.ZodString;
|
|
1679
|
+
kind: z.ZodLiteral<"repository">;
|
|
1680
|
+
}, z.core.$strict>;
|
|
1681
|
+
type McpConnectionResourceScope = z.infer<typeof McpConnectionResourceScope>;
|
|
1682
|
+
declare const McpServerConnectionRef: z.ZodObject<{
|
|
1683
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1685
|
+
providerDomain: z.ZodString;
|
|
1686
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1687
|
+
oauth2: "oauth2";
|
|
1688
|
+
api_key: "api_key";
|
|
1689
|
+
app_install: "app_install";
|
|
1690
|
+
delegated: "delegated";
|
|
1691
|
+
}>>;
|
|
1692
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1693
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1695
|
+
id: z.ZodString;
|
|
1696
|
+
kind: z.ZodLiteral<"repository">;
|
|
1697
|
+
}, z.core.$strict>>>;
|
|
1698
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
1699
|
+
subject: "subject";
|
|
1700
|
+
workspace: "workspace";
|
|
1701
|
+
}>>;
|
|
1702
|
+
}, z.core.$strict>;
|
|
1703
|
+
type McpServerConnectionRef = z.infer<typeof McpServerConnectionRef>;
|
|
1704
|
+
type McpCredentialsRequest = {
|
|
1705
|
+
accountId: string;
|
|
1706
|
+
workspaceId: string;
|
|
1707
|
+
/** Immediate session whose model or Toolspace call needs the credential. */
|
|
1708
|
+
sessionId: string;
|
|
1709
|
+
/** Workspace-scoped lineage root for host authorization and binding lookup. */
|
|
1710
|
+
rootSessionId: string;
|
|
1711
|
+
turnId: string;
|
|
1712
|
+
/** Null only while a durable turn exists without a currently executing attempt. */
|
|
1713
|
+
attemptId: string | null;
|
|
1714
|
+
executionGeneration: number;
|
|
1715
|
+
/** The immutable authority that admitted this turn. Never substitute the sandbox caller. */
|
|
1716
|
+
initiator: TurnInitiator;
|
|
1717
|
+
initiatorContext: TurnInitiatorContext;
|
|
1718
|
+
/** Immediate technical caller, retained only as non-authoritative audit context. */
|
|
1719
|
+
callerSubjectId?: string;
|
|
1720
|
+
surface: "model" | "toolspace";
|
|
1721
|
+
serverId: string;
|
|
1722
|
+
toolName?: string;
|
|
1723
|
+
connectionRef: McpServerConnectionRef;
|
|
1724
|
+
forceRefresh: boolean;
|
|
1725
|
+
};
|
|
1726
|
+
type McpCredentialAuthNeededReason = CredentialAuthNeededReason | "unsupported_auth" | "resource_scope_unavailable";
|
|
1727
|
+
type McpCredentialResolution = {
|
|
1728
|
+
status: "ok";
|
|
1729
|
+
/** Scope echoes are mandatory and verified before any header is used. */
|
|
1730
|
+
accountId: string;
|
|
1731
|
+
workspaceId: string;
|
|
1732
|
+
sessionId: string;
|
|
1733
|
+
headers: Record<string, string>;
|
|
1734
|
+
connectionId: string;
|
|
1735
|
+
providerDomain: string;
|
|
1736
|
+
provider?: string;
|
|
1737
|
+
scopes?: string[];
|
|
1738
|
+
resource?: string;
|
|
1739
|
+
selectedResources?: McpConnectionResourceScope[];
|
|
1740
|
+
expiresAt?: string | null;
|
|
1741
|
+
} | {
|
|
1742
|
+
status: "auth_needed";
|
|
1743
|
+
/** Scope echoes are mandatory even when the credential cannot be resolved. */
|
|
1744
|
+
accountId: string;
|
|
1745
|
+
workspaceId: string;
|
|
1746
|
+
sessionId: string;
|
|
1747
|
+
reason: McpCredentialAuthNeededReason;
|
|
1748
|
+
providerDomain: string;
|
|
1749
|
+
provider?: string;
|
|
1750
|
+
connectionId?: string;
|
|
1751
|
+
scopes?: string[];
|
|
1752
|
+
resource?: string;
|
|
1753
|
+
selectedResources?: McpConnectionResourceScope[];
|
|
1754
|
+
authorizationUrl?: string;
|
|
1755
|
+
};
|
|
1092
1756
|
type ConnectionCredentialsPort = {
|
|
1093
1757
|
gitCredentials?(input: GitCredentialsRequest): Promise<GitCredentials>;
|
|
1094
1758
|
sandboxSecrets?(input: SandboxSecretsRequest): Promise<SandboxSecrets>;
|
|
1759
|
+
/**
|
|
1760
|
+
* Resolve host-owned, session-aware sandbox credentials independently of an
|
|
1761
|
+
* OpenGeni variable set. OpenGeni transports and renews the material; the host
|
|
1762
|
+
* remains the sole owner of connection selection and credential policy.
|
|
1763
|
+
*/
|
|
1764
|
+
runCredentials?(input: RunCredentialsRequest): Promise<RunCredentialsResolution>;
|
|
1765
|
+
/**
|
|
1766
|
+
* Resolve rotating MCP transport credentials at request time. Embedded hosts
|
|
1767
|
+
* use this to keep their provider connection as the sole credential source;
|
|
1768
|
+
* OpenGeni never requires a duplicate connection record. The same resolver is
|
|
1769
|
+
* used by model-visible MCP tools and the additive Toolspace/Code Mode proxy.
|
|
1770
|
+
*/
|
|
1771
|
+
mcpCredentials?(input: McpCredentialsRequest): Promise<McpCredentialResolution>;
|
|
1095
1772
|
};
|
|
1096
1773
|
type GitHubInstallationSummary = {
|
|
1097
1774
|
installationId: number;
|
|
@@ -1099,11 +1776,30 @@ type GitHubInstallationSummary = {
|
|
|
1099
1776
|
accountType: string | null;
|
|
1100
1777
|
suspended: boolean;
|
|
1101
1778
|
};
|
|
1779
|
+
type GitHubRepositoryPermissions = {
|
|
1780
|
+
admin: boolean;
|
|
1781
|
+
maintain: boolean;
|
|
1782
|
+
push: boolean;
|
|
1783
|
+
triage: boolean;
|
|
1784
|
+
pull: boolean;
|
|
1785
|
+
};
|
|
1786
|
+
type GitHubUserRepositoryAccess = GitHubRepository & {
|
|
1787
|
+
permissions: GitHubRepositoryPermissions;
|
|
1788
|
+
};
|
|
1789
|
+
type GitHubUserInstallationAccess = GitHubInstallationSummary & {
|
|
1790
|
+
repositories: GitHubUserRepositoryAccess[];
|
|
1791
|
+
};
|
|
1102
1792
|
type GitHubAppApiPort = {
|
|
1793
|
+
authorizeUser?: (input: {
|
|
1794
|
+
code: string;
|
|
1795
|
+
}) => Promise<GitHubUserInstallationAccess[]>;
|
|
1103
1796
|
verifyInstallationAccessForUser?: (input: {
|
|
1104
1797
|
code: string;
|
|
1105
1798
|
installationId: number;
|
|
1106
1799
|
}) => Promise<GitHubInstallationSummary>;
|
|
1800
|
+
getInstallation?: (input: {
|
|
1801
|
+
installationId: number;
|
|
1802
|
+
}) => Promise<GitHubInstallationSummary | null>;
|
|
1107
1803
|
listRepositories?: (input: {
|
|
1108
1804
|
installationIds?: number[];
|
|
1109
1805
|
}) => Promise<GitHubRepository[]>;
|
|
@@ -1138,6 +1834,11 @@ declare const RepositoryResourceRef: z.ZodObject<{
|
|
|
1138
1834
|
gitlab: "gitlab";
|
|
1139
1835
|
azure_devops: "azure_devops";
|
|
1140
1836
|
}>>;
|
|
1837
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
1838
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
1839
|
+
read: "read";
|
|
1840
|
+
write: "write";
|
|
1841
|
+
}>>;
|
|
1141
1842
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1142
1843
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1143
1844
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -1146,6 +1847,18 @@ declare const RepositoryResourceRef: z.ZodObject<{
|
|
|
1146
1847
|
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
1147
1848
|
}, z.core.$strip>;
|
|
1148
1849
|
type RepositoryResourceRef = z.infer<typeof RepositoryResourceRef>;
|
|
1850
|
+
/**
|
|
1851
|
+
* Resolve whether a repository participates in platform-brokered Git auth.
|
|
1852
|
+
* Provider-less public repositories return null; legacy GitHub aliases infer
|
|
1853
|
+
* GitHub only when both positive installation and repository ids are present.
|
|
1854
|
+
*/
|
|
1855
|
+
declare function gitCredentialProviderForRepository(resource: RepositoryResourceRef): GitCredentialProvider | null;
|
|
1856
|
+
/**
|
|
1857
|
+
* Derive the one canonical runtime/broker identity for a repository credential.
|
|
1858
|
+
* Every consumer must use this helper so mint grouping, token filenames, and
|
|
1859
|
+
* credential-helper routing cannot diverge on legacy provider ids.
|
|
1860
|
+
*/
|
|
1861
|
+
declare function gitCredentialBindingIdForRepository(resource: RepositoryResourceRef, provider?: GitCredentialProvider | null): GitCredentialBindingId | null;
|
|
1149
1862
|
declare const FileResourceRef: z.ZodObject<{
|
|
1150
1863
|
kind: z.ZodLiteral<"file">;
|
|
1151
1864
|
fileId: z.ZodString;
|
|
@@ -1163,6 +1876,11 @@ declare const ResourceRef: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1163
1876
|
gitlab: "gitlab";
|
|
1164
1877
|
azure_devops: "azure_devops";
|
|
1165
1878
|
}>>;
|
|
1879
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
1880
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
1881
|
+
read: "read";
|
|
1882
|
+
write: "write";
|
|
1883
|
+
}>>;
|
|
1166
1884
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1167
1885
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1168
1886
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -1175,20 +1893,47 @@ declare const ResourceRef: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1175
1893
|
mountPath: z.ZodOptional<z.ZodString>;
|
|
1176
1894
|
}, z.core.$strip>], "kind">;
|
|
1177
1895
|
type ResourceRef = z.infer<typeof ResourceRef>;
|
|
1896
|
+
declare class ResourceMountPathError extends Error {
|
|
1897
|
+
constructor(message: string);
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* Normalize one workspace-relative resource mount path for every runtime.
|
|
1901
|
+
*
|
|
1902
|
+
* Backslashes are treated as separators so a path cannot be harmless on Linux
|
|
1903
|
+
* but become traversal on a connected Windows machine. Empty, absolute,
|
|
1904
|
+
* drive-qualified, dot-segment, NUL-containing, and repeated-separator paths
|
|
1905
|
+
* fail closed instead of being silently reinterpreted.
|
|
1906
|
+
*/
|
|
1907
|
+
declare function normalizeResourceMountPath(path: string): string;
|
|
1908
|
+
/** Normalize a repository-internal subpath while preserving legacy `/path/` input. */
|
|
1909
|
+
declare function normalizeRepositorySubpath(path: string): string;
|
|
1910
|
+
/** A conservative collision identity that is portable to case-insensitive hosts. */
|
|
1911
|
+
declare function resourceMountPathCollisionKey(path: string): string;
|
|
1912
|
+
/**
|
|
1913
|
+
* Default repository mount identity. The normalized remote host (including a
|
|
1914
|
+
* non-default port) is part of the path, so equal owner/repo names on GitHub,
|
|
1915
|
+
* GitLab, Azure DevOps, or a custom host do not collide. Encoding the host keeps
|
|
1916
|
+
* IPv6/custom-port identities inside one portable path segment.
|
|
1917
|
+
*/
|
|
1918
|
+
declare function defaultRepositoryMountPath(uri: string): string;
|
|
1919
|
+
/** Resolve the exact mount used by API normalization, manifests, and clone hooks. */
|
|
1920
|
+
declare function resourceMountPath(resource: ResourceRef): string;
|
|
1921
|
+
/** Fail before sandbox execution when two resources share a portable path. */
|
|
1922
|
+
declare function assertUniqueResourceMountPaths(resources: readonly ResourceRef[]): void;
|
|
1178
1923
|
declare const FileStatus: z.ZodEnum<{
|
|
1179
1924
|
failed: "failed";
|
|
1925
|
+
expired: "expired";
|
|
1180
1926
|
pending_upload: "pending_upload";
|
|
1181
1927
|
ready: "ready";
|
|
1182
|
-
expired: "expired";
|
|
1183
1928
|
deleted: "deleted";
|
|
1184
1929
|
}>;
|
|
1185
1930
|
type FileStatus = z.infer<typeof FileStatus>;
|
|
1186
1931
|
declare const FileUploadStatus: z.ZodEnum<{
|
|
1187
1932
|
failed: "failed";
|
|
1933
|
+
completed: "completed";
|
|
1188
1934
|
expired: "expired";
|
|
1189
1935
|
pending: "pending";
|
|
1190
1936
|
cleanup_pending: "cleanup_pending";
|
|
1191
|
-
completed: "completed";
|
|
1192
1937
|
}>;
|
|
1193
1938
|
type FileUploadStatus = z.infer<typeof FileUploadStatus>;
|
|
1194
1939
|
declare const FileAsset: z.ZodObject<{
|
|
@@ -1196,9 +1941,9 @@ declare const FileAsset: z.ZodObject<{
|
|
|
1196
1941
|
workspaceId: z.ZodString;
|
|
1197
1942
|
status: z.ZodEnum<{
|
|
1198
1943
|
failed: "failed";
|
|
1944
|
+
expired: "expired";
|
|
1199
1945
|
pending_upload: "pending_upload";
|
|
1200
1946
|
ready: "ready";
|
|
1201
|
-
expired: "expired";
|
|
1202
1947
|
deleted: "deleted";
|
|
1203
1948
|
}>;
|
|
1204
1949
|
filename: z.ZodString;
|
|
@@ -1234,9 +1979,9 @@ declare const CompleteFileUploadResponse: z.ZodObject<{
|
|
|
1234
1979
|
workspaceId: z.ZodString;
|
|
1235
1980
|
status: z.ZodEnum<{
|
|
1236
1981
|
failed: "failed";
|
|
1982
|
+
expired: "expired";
|
|
1237
1983
|
pending_upload: "pending_upload";
|
|
1238
1984
|
ready: "ready";
|
|
1239
|
-
expired: "expired";
|
|
1240
1985
|
deleted: "deleted";
|
|
1241
1986
|
}>;
|
|
1242
1987
|
filename: z.ZodString;
|
|
@@ -1748,6 +2493,27 @@ declare const SessionMcpServerInput: z.ZodObject<{
|
|
|
1748
2493
|
cacheToolsList: z.ZodOptional<z.ZodBoolean>;
|
|
1749
2494
|
requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
1750
2495
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2496
|
+
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
2497
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
2498
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2499
|
+
providerDomain: z.ZodString;
|
|
2500
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2501
|
+
oauth2: "oauth2";
|
|
2502
|
+
api_key: "api_key";
|
|
2503
|
+
app_install: "app_install";
|
|
2504
|
+
delegated: "delegated";
|
|
2505
|
+
}>>;
|
|
2506
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2507
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
2508
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2509
|
+
id: z.ZodString;
|
|
2510
|
+
kind: z.ZodLiteral<"repository">;
|
|
2511
|
+
}, z.core.$strict>>>;
|
|
2512
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
2513
|
+
subject: "subject";
|
|
2514
|
+
workspace: "workspace";
|
|
2515
|
+
}>>;
|
|
2516
|
+
}, z.core.$strict>>;
|
|
1751
2517
|
}, z.core.$strip>;
|
|
1752
2518
|
type SessionMcpServerInput = z.infer<typeof SessionMcpServerInput>;
|
|
1753
2519
|
declare const SessionMcpCredentialUpdateInput: z.ZodObject<{
|
|
@@ -1761,6 +2527,27 @@ declare const SessionMcpServerMetadata: z.ZodObject<{
|
|
|
1761
2527
|
url: z.ZodString;
|
|
1762
2528
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1763
2529
|
credentialVersion: z.ZodNumber;
|
|
2530
|
+
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
2531
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
2532
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
2533
|
+
providerDomain: z.ZodString;
|
|
2534
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2535
|
+
oauth2: "oauth2";
|
|
2536
|
+
api_key: "api_key";
|
|
2537
|
+
app_install: "app_install";
|
|
2538
|
+
delegated: "delegated";
|
|
2539
|
+
}>>;
|
|
2540
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2541
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2543
|
+
id: z.ZodString;
|
|
2544
|
+
kind: z.ZodLiteral<"repository">;
|
|
2545
|
+
}, z.core.$strict>>>;
|
|
2546
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
2547
|
+
subject: "subject";
|
|
2548
|
+
workspace: "workspace";
|
|
2549
|
+
}>>;
|
|
2550
|
+
}, z.core.$strict>>>;
|
|
1764
2551
|
}, z.core.$strict>;
|
|
1765
2552
|
type SessionMcpServerMetadata = z.infer<typeof SessionMcpServerMetadata>;
|
|
1766
2553
|
declare class ResourceRefConflictError extends Error {
|
|
@@ -1783,6 +2570,7 @@ declare const SessionTurnStatus: z.ZodEnum<{
|
|
|
1783
2570
|
cancelled: "cancelled";
|
|
1784
2571
|
completed: "completed";
|
|
1785
2572
|
superseded: "superseded";
|
|
2573
|
+
withdrawn_for_edit: "withdrawn_for_edit";
|
|
1786
2574
|
}>;
|
|
1787
2575
|
type SessionTurnStatus = z.infer<typeof SessionTurnStatus>;
|
|
1788
2576
|
declare const SessionTurnSource: z.ZodEnum<{
|
|
@@ -1795,18 +2583,18 @@ declare const SessionTurnSource: z.ZodEnum<{
|
|
|
1795
2583
|
}>;
|
|
1796
2584
|
type SessionTurnSource = z.infer<typeof SessionTurnSource>;
|
|
1797
2585
|
declare const SessionControlState: z.ZodEnum<{
|
|
1798
|
-
paused: "paused";
|
|
1799
2586
|
active: "active";
|
|
2587
|
+
paused: "paused";
|
|
1800
2588
|
}>;
|
|
1801
2589
|
type SessionControlState = z.infer<typeof SessionControlState>;
|
|
1802
2590
|
declare const WorkspaceInferenceState: z.ZodEnum<{
|
|
1803
|
-
paused: "paused";
|
|
1804
2591
|
active: "active";
|
|
2592
|
+
paused: "paused";
|
|
1805
2593
|
}>;
|
|
1806
2594
|
type WorkspaceInferenceState = z.infer<typeof WorkspaceInferenceState>;
|
|
1807
2595
|
declare const SessionGoalStatus: z.ZodEnum<{
|
|
1808
|
-
paused: "paused";
|
|
1809
2596
|
active: "active";
|
|
2597
|
+
paused: "paused";
|
|
1810
2598
|
completed: "completed";
|
|
1811
2599
|
}>;
|
|
1812
2600
|
type SessionGoalStatus = z.infer<typeof SessionGoalStatus>;
|
|
@@ -1831,8 +2619,8 @@ declare const SessionGoal: z.ZodObject<{
|
|
|
1831
2619
|
workspaceId: z.ZodString;
|
|
1832
2620
|
sessionId: z.ZodString;
|
|
1833
2621
|
status: z.ZodEnum<{
|
|
1834
|
-
paused: "paused";
|
|
1835
2622
|
active: "active";
|
|
2623
|
+
paused: "paused";
|
|
1836
2624
|
completed: "completed";
|
|
1837
2625
|
}>;
|
|
1838
2626
|
text: z.ZodString;
|
|
@@ -1862,8 +2650,8 @@ declare const GoalSpec: z.ZodObject<{
|
|
|
1862
2650
|
type GoalSpec = z.infer<typeof GoalSpec>;
|
|
1863
2651
|
declare const UpdateSessionGoalRequest: z.ZodObject<{
|
|
1864
2652
|
status: z.ZodEnum<{
|
|
1865
|
-
paused: "paused";
|
|
1866
2653
|
active: "active";
|
|
2654
|
+
paused: "paused";
|
|
1867
2655
|
}>;
|
|
1868
2656
|
rationale: z.ZodOptional<z.ZodString>;
|
|
1869
2657
|
}, z.core.$strip>;
|
|
@@ -1919,13 +2707,154 @@ type CompactSessionContextRequest = z.infer<typeof CompactSessionContextRequest>
|
|
|
1919
2707
|
/** Outcome of a manual /compact trigger. */
|
|
1920
2708
|
declare const CompactSessionContextResult: z.ZodObject<{
|
|
1921
2709
|
status: z.ZodEnum<{
|
|
1922
|
-
pending: "pending";
|
|
1923
2710
|
completed: "completed";
|
|
2711
|
+
pending: "pending";
|
|
1924
2712
|
noop: "noop";
|
|
1925
2713
|
}>;
|
|
1926
2714
|
message: z.ZodString;
|
|
1927
2715
|
}, z.core.$strip>;
|
|
1928
2716
|
type CompactSessionContextResult = z.infer<typeof CompactSessionContextResult>;
|
|
2717
|
+
/**
|
|
2718
|
+
* The principal whose authority accepted a session or turn. `subjectId` is an
|
|
2719
|
+
* opaque host/standalone identity and therefore must never encode `kind` by
|
|
2720
|
+
* convention: embedding hosts own their subject namespace.
|
|
2721
|
+
*/
|
|
2722
|
+
declare const TurnInitiator: z.ZodObject<{
|
|
2723
|
+
subjectId: z.ZodString;
|
|
2724
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2725
|
+
kind: z.ZodEnum<{
|
|
2726
|
+
service: "service";
|
|
2727
|
+
subject: "subject";
|
|
2728
|
+
}>;
|
|
2729
|
+
}, z.core.$strip>;
|
|
2730
|
+
type TurnInitiator = z.infer<typeof TurnInitiator>;
|
|
2731
|
+
declare const SessionAuthorizationSurface: z.ZodEnum<{
|
|
2732
|
+
toolspace: "toolspace";
|
|
2733
|
+
http: "http";
|
|
2734
|
+
core: "core";
|
|
2735
|
+
stream: "stream";
|
|
2736
|
+
first_party_mcp: "first_party_mcp";
|
|
2737
|
+
}>;
|
|
2738
|
+
type SessionAuthorizationSurface = z.infer<typeof SessionAuthorizationSurface>;
|
|
2739
|
+
declare const SessionAuthorizationOperation: z.ZodEnum<{
|
|
2740
|
+
"session.read": "session.read";
|
|
2741
|
+
"session.events.read": "session.events.read";
|
|
2742
|
+
"session.stream.read": "session.stream.read";
|
|
2743
|
+
"session.stream.acknowledge": "session.stream.acknowledge";
|
|
2744
|
+
"session.turns.read": "session.turns.read";
|
|
2745
|
+
"session.append": "session.append";
|
|
2746
|
+
"session.steer": "session.steer";
|
|
2747
|
+
"session.control": "session.control";
|
|
2748
|
+
"session.queue.read": "session.queue.read";
|
|
2749
|
+
"session.queue.control": "session.queue.control";
|
|
2750
|
+
"session.composer.read": "session.composer.read";
|
|
2751
|
+
"session.composer.write": "session.composer.write";
|
|
2752
|
+
"session.lineage.read": "session.lineage.read";
|
|
2753
|
+
"session.capture.read": "session.capture.read";
|
|
2754
|
+
"session.files.read": "session.files.read";
|
|
2755
|
+
"session.files.write": "session.files.write";
|
|
2756
|
+
"session.git.read": "session.git.read";
|
|
2757
|
+
"session.terminal.read": "session.terminal.read";
|
|
2758
|
+
"session.terminal.control": "session.terminal.control";
|
|
2759
|
+
"session.viewer.read": "session.viewer.read";
|
|
2760
|
+
"session.viewer.control": "session.viewer.control";
|
|
2761
|
+
"session.first_party_mcp.call": "session.first_party_mcp.call";
|
|
2762
|
+
"session.toolspace.call": "session.toolspace.call";
|
|
2763
|
+
"session.pin.write": "session.pin.write";
|
|
2764
|
+
"session.codex_account.write": "session.codex_account.write";
|
|
2765
|
+
"session.context.write": "session.context.write";
|
|
2766
|
+
"session.approval.write": "session.approval.write";
|
|
2767
|
+
"session.human_input.read": "session.human_input.read";
|
|
2768
|
+
"session.human_input.write": "session.human_input.write";
|
|
2769
|
+
"session.title.write": "session.title.write";
|
|
2770
|
+
"session.goal.read": "session.goal.read";
|
|
2771
|
+
"session.goal.write": "session.goal.write";
|
|
2772
|
+
"session.child.create": "session.child.create";
|
|
2773
|
+
}>;
|
|
2774
|
+
type SessionAuthorizationOperation = z.infer<typeof SessionAuthorizationOperation>;
|
|
2775
|
+
declare const SessionAuthorizationActor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2776
|
+
kind: z.ZodLiteral<"subject">;
|
|
2777
|
+
subjectId: z.ZodString;
|
|
2778
|
+
subjectLabel: z.ZodOptional<z.ZodString>;
|
|
2779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2780
|
+
kind: z.ZodLiteral<"agent_attempt">;
|
|
2781
|
+
subjectId: z.ZodString;
|
|
2782
|
+
callerSessionId: z.ZodString;
|
|
2783
|
+
callerRootSessionId: z.ZodString;
|
|
2784
|
+
turnId: z.ZodString;
|
|
2785
|
+
attemptId: z.ZodString;
|
|
2786
|
+
executionGeneration: z.ZodNumber;
|
|
2787
|
+
initiator: z.ZodObject<{
|
|
2788
|
+
subjectId: z.ZodString;
|
|
2789
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2790
|
+
kind: z.ZodEnum<{
|
|
2791
|
+
service: "service";
|
|
2792
|
+
subject: "subject";
|
|
2793
|
+
}>;
|
|
2794
|
+
}, z.core.$strip>;
|
|
2795
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2796
|
+
}, z.core.$strip>], "kind">;
|
|
2797
|
+
type SessionAuthorizationActor = z.infer<typeof SessionAuthorizationActor>;
|
|
2798
|
+
declare const SessionAuthorizationTarget: z.ZodObject<{
|
|
2799
|
+
sessionId: z.ZodString;
|
|
2800
|
+
rootSessionId: z.ZodString;
|
|
2801
|
+
}, z.core.$strip>;
|
|
2802
|
+
type SessionAuthorizationTarget = z.infer<typeof SessionAuthorizationTarget>;
|
|
2803
|
+
type AuthorizeSessionInput = {
|
|
2804
|
+
accountId: string;
|
|
2805
|
+
workspaceId: string;
|
|
2806
|
+
actor: SessionAuthorizationActor;
|
|
2807
|
+
target: SessionAuthorizationTarget;
|
|
2808
|
+
operation: SessionAuthorizationOperation;
|
|
2809
|
+
surface: SessionAuthorizationSurface;
|
|
2810
|
+
};
|
|
2811
|
+
declare const SessionAuthorizationDecision: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2812
|
+
allowed: z.ZodLiteral<true>;
|
|
2813
|
+
relatedSessionAccess: z.ZodOptional<z.ZodEnum<{
|
|
2814
|
+
target: "target";
|
|
2815
|
+
root: "root";
|
|
2816
|
+
}>>;
|
|
2817
|
+
reauthorizeAfterMs: z.ZodOptional<z.ZodNumber>;
|
|
2818
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2819
|
+
allowed: z.ZodLiteral<false>;
|
|
2820
|
+
reason: z.ZodEnum<{
|
|
2821
|
+
forbidden: "forbidden";
|
|
2822
|
+
not_found: "not_found";
|
|
2823
|
+
revoked: "revoked";
|
|
2824
|
+
}>;
|
|
2825
|
+
}, z.core.$strip>], "allowed">;
|
|
2826
|
+
type SessionAuthorizationDecision = z.infer<typeof SessionAuthorizationDecision>;
|
|
2827
|
+
/**
|
|
2828
|
+
* A database-applicable listing scope. `rootSessionIds` includes every
|
|
2829
|
+
* descendant of those lineage anchors; `sessionIds` authorizes only the exact
|
|
2830
|
+
* sessions. Supplying neither is an explicit empty scope. OpenGeni intersects
|
|
2831
|
+
* every id with the requested workspace and never trusts a host scope as
|
|
2832
|
+
* session existence evidence.
|
|
2833
|
+
*/
|
|
2834
|
+
declare const SESSION_AUTHORIZATION_LIST_SCOPE_MAX_IDS = 10000;
|
|
2835
|
+
declare const SessionAuthorizationListScope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2836
|
+
kind: z.ZodLiteral<"all">;
|
|
2837
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2838
|
+
kind: z.ZodLiteral<"scoped">;
|
|
2839
|
+
rootSessionIds: z.ZodArray<z.ZodString>;
|
|
2840
|
+
sessionIds: z.ZodArray<z.ZodString>;
|
|
2841
|
+
}, z.core.$strip>], "kind">;
|
|
2842
|
+
type SessionAuthorizationListScope = z.infer<typeof SessionAuthorizationListScope>;
|
|
2843
|
+
type ResolveSessionAuthorizationListScopeInput = {
|
|
2844
|
+
accountId: string;
|
|
2845
|
+
workspaceId: string;
|
|
2846
|
+
actor: SessionAuthorizationActor;
|
|
2847
|
+
surface: SessionAuthorizationSurface;
|
|
2848
|
+
};
|
|
2849
|
+
type SessionAuthorizationPort = {
|
|
2850
|
+
authorizeSession(input: AuthorizeSessionInput): Promise<SessionAuthorizationDecision>;
|
|
2851
|
+
/**
|
|
2852
|
+
* Return the complete current scope used inside OpenGeni's cursor query.
|
|
2853
|
+
* This is deliberately not a post-filter callback: search, pinning, ordering,
|
|
2854
|
+
* totals, and cursor advancement must all operate on authorized rows.
|
|
2855
|
+
*/
|
|
2856
|
+
resolveListScope(input: ResolveSessionAuthorizationListScopeInput): Promise<SessionAuthorizationListScope>;
|
|
2857
|
+
};
|
|
1929
2858
|
declare const SessionTurn: z.ZodObject<{
|
|
1930
2859
|
id: z.ZodString;
|
|
1931
2860
|
workspaceId: z.ZodString;
|
|
@@ -1942,6 +2871,7 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
1942
2871
|
cancelled: "cancelled";
|
|
1943
2872
|
completed: "completed";
|
|
1944
2873
|
superseded: "superseded";
|
|
2874
|
+
withdrawn_for_edit: "withdrawn_for_edit";
|
|
1945
2875
|
}>;
|
|
1946
2876
|
source: z.ZodEnum<{
|
|
1947
2877
|
user: "user";
|
|
@@ -1964,6 +2894,11 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
1964
2894
|
gitlab: "gitlab";
|
|
1965
2895
|
azure_devops: "azure_devops";
|
|
1966
2896
|
}>>;
|
|
2897
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
2898
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
2899
|
+
read: "read";
|
|
2900
|
+
write: "write";
|
|
2901
|
+
}>>;
|
|
1967
2902
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1968
2903
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1969
2904
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -2012,6 +2947,15 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
2012
2947
|
executionGeneration: z.ZodNumber;
|
|
2013
2948
|
activeAttemptId: z.ZodNullable<z.ZodString>;
|
|
2014
2949
|
lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2950
|
+
initiator: z.ZodObject<{
|
|
2951
|
+
subjectId: z.ZodString;
|
|
2952
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2953
|
+
kind: z.ZodEnum<{
|
|
2954
|
+
service: "service";
|
|
2955
|
+
subject: "subject";
|
|
2956
|
+
}>;
|
|
2957
|
+
}, z.core.$strip>;
|
|
2958
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2015
2959
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
2016
2960
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
2017
2961
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -2020,19 +2964,256 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
2020
2964
|
updatedAt: z.ZodString;
|
|
2021
2965
|
}, z.core.$strip>;
|
|
2022
2966
|
type SessionTurn = z.infer<typeof SessionTurn>;
|
|
2023
|
-
declare const
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2967
|
+
declare const EffectiveControlBlocker: z.ZodObject<{
|
|
2968
|
+
kind: z.ZodEnum<{
|
|
2969
|
+
workspace: "workspace";
|
|
2970
|
+
session: "session";
|
|
2971
|
+
}>;
|
|
2972
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
2973
|
+
displayName: z.ZodString;
|
|
2974
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
2975
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2976
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
2977
|
+
revision: z.ZodNumber;
|
|
2978
|
+
}, z.core.$strip>;
|
|
2979
|
+
type EffectiveControlBlocker = z.infer<typeof EffectiveControlBlocker>;
|
|
2980
|
+
declare const EffectiveControlResumeOption: z.ZodObject<{
|
|
2981
|
+
scope: z.ZodEnum<{
|
|
2982
|
+
workspace: "workspace";
|
|
2983
|
+
session: "session";
|
|
2984
|
+
selected: "selected";
|
|
2985
|
+
}>;
|
|
2986
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
2987
|
+
selectedStateAfter: z.ZodEnum<{
|
|
2027
2988
|
active: "active";
|
|
2989
|
+
paused: "paused";
|
|
2028
2990
|
}>;
|
|
2029
|
-
|
|
2030
|
-
|
|
2991
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
2992
|
+
kind: z.ZodEnum<{
|
|
2993
|
+
workspace: "workspace";
|
|
2994
|
+
session: "session";
|
|
2995
|
+
}>;
|
|
2996
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
2997
|
+
displayName: z.ZodString;
|
|
2998
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
2999
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3000
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
3001
|
+
revision: z.ZodNumber;
|
|
3002
|
+
}, z.core.$strip>>;
|
|
3003
|
+
impactCopy: z.ZodString;
|
|
3004
|
+
}, z.core.$strip>;
|
|
3005
|
+
type EffectiveControlResumeOption = z.infer<typeof EffectiveControlResumeOption>;
|
|
3006
|
+
declare const EffectiveSessionControl: z.ZodObject<{
|
|
3007
|
+
state: z.ZodEnum<{
|
|
3008
|
+
active: "active";
|
|
2031
3009
|
paused: "paused";
|
|
3010
|
+
}>;
|
|
3011
|
+
controlVersion: z.ZodNumber;
|
|
3012
|
+
controlEtag: z.ZodString;
|
|
3013
|
+
directState: z.ZodEnum<{
|
|
2032
3014
|
active: "active";
|
|
3015
|
+
paused: "paused";
|
|
3016
|
+
}>;
|
|
3017
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
3018
|
+
kind: z.ZodEnum<{
|
|
3019
|
+
workspace: "workspace";
|
|
3020
|
+
session: "session";
|
|
3021
|
+
}>;
|
|
3022
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
3023
|
+
displayName: z.ZodString;
|
|
3024
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
3025
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3026
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
3027
|
+
revision: z.ZodNumber;
|
|
3028
|
+
}, z.core.$strip>>;
|
|
3029
|
+
additionalBlockerCount: z.ZodNumber;
|
|
3030
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
3031
|
+
kind: z.ZodEnum<{
|
|
3032
|
+
workspace: "workspace";
|
|
3033
|
+
session: "session";
|
|
3034
|
+
}>;
|
|
3035
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
3036
|
+
displayName: z.ZodString;
|
|
3037
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
3038
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3039
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
3040
|
+
revision: z.ZodNumber;
|
|
3041
|
+
}, z.core.$strip>>;
|
|
3042
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
3043
|
+
scope: z.ZodEnum<{
|
|
3044
|
+
workspace: "workspace";
|
|
3045
|
+
session: "session";
|
|
3046
|
+
selected: "selected";
|
|
3047
|
+
}>;
|
|
3048
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
3049
|
+
selectedStateAfter: z.ZodEnum<{
|
|
3050
|
+
active: "active";
|
|
3051
|
+
paused: "paused";
|
|
3052
|
+
}>;
|
|
3053
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
3054
|
+
kind: z.ZodEnum<{
|
|
3055
|
+
workspace: "workspace";
|
|
3056
|
+
session: "session";
|
|
3057
|
+
}>;
|
|
3058
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
3059
|
+
displayName: z.ZodString;
|
|
3060
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
3061
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3062
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
3063
|
+
revision: z.ZodNumber;
|
|
3064
|
+
}, z.core.$strip>>;
|
|
3065
|
+
impactCopy: z.ZodString;
|
|
3066
|
+
}, z.core.$strip>>;
|
|
3067
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
3068
|
+
rootSessionId: z.ZodString;
|
|
3069
|
+
revision: z.ZodNumber;
|
|
3070
|
+
}, z.core.$strip>>;
|
|
3071
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
3072
|
+
state: z.ZodLiteral<"stopping">;
|
|
3073
|
+
attemptCount: z.ZodNumber;
|
|
3074
|
+
interruptionPendingCount: z.ZodNumber;
|
|
3075
|
+
quiescencePendingCount: z.ZodNumber;
|
|
3076
|
+
}, z.core.$strip>>;
|
|
3077
|
+
}, z.core.$strip>;
|
|
3078
|
+
type EffectiveSessionControl = z.infer<typeof EffectiveSessionControl>;
|
|
3079
|
+
declare const SESSION_OPERATION_KEY_MAX_CHARS = 256;
|
|
3080
|
+
declare const SessionCommandReceipt: z.ZodObject<{
|
|
3081
|
+
id: z.ZodString;
|
|
3082
|
+
action: z.ZodString;
|
|
3083
|
+
operationKey: z.ZodString;
|
|
3084
|
+
targetSessionId: z.ZodNullable<z.ZodString>;
|
|
3085
|
+
targetTurnId: z.ZodNullable<z.ZodString>;
|
|
3086
|
+
appliedControlRevision: z.ZodNullable<z.ZodNumber>;
|
|
3087
|
+
appliedQueueVersion: z.ZodNullable<z.ZodNumber>;
|
|
3088
|
+
appliedTurnVersion: z.ZodNullable<z.ZodNumber>;
|
|
3089
|
+
appliedDraftRevision: z.ZodNullable<z.ZodNumber>;
|
|
3090
|
+
createdAt: z.ZodString;
|
|
3091
|
+
}, z.core.$strip>;
|
|
3092
|
+
type SessionCommandReceipt = z.infer<typeof SessionCommandReceipt>;
|
|
3093
|
+
declare const ComposerDraft: z.ZodObject<{
|
|
3094
|
+
revision: z.ZodNumber;
|
|
3095
|
+
text: z.ZodString;
|
|
3096
|
+
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3097
|
+
kind: z.ZodLiteral<"repository">;
|
|
3098
|
+
uri: z.ZodString;
|
|
3099
|
+
ref: z.ZodString;
|
|
3100
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3101
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
3102
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
3103
|
+
github: "github";
|
|
3104
|
+
gitlab: "gitlab";
|
|
3105
|
+
azure_devops: "azure_devops";
|
|
3106
|
+
}>>;
|
|
3107
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
3108
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
3109
|
+
read: "read";
|
|
3110
|
+
write: "write";
|
|
3111
|
+
}>>;
|
|
3112
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3113
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3114
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3115
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
3116
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
3117
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
3118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3119
|
+
kind: z.ZodLiteral<"file">;
|
|
3120
|
+
fileId: z.ZodString;
|
|
3121
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3122
|
+
}, z.core.$strip>], "kind">>;
|
|
3123
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
3124
|
+
kind: z.ZodLiteral<"mcp">;
|
|
3125
|
+
id: z.ZodString;
|
|
3126
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3127
|
+
}, z.core.$strip>>;
|
|
3128
|
+
model: z.ZodString;
|
|
3129
|
+
reasoningEffort: z.ZodEnum<{
|
|
3130
|
+
none: "none";
|
|
3131
|
+
minimal: "minimal";
|
|
3132
|
+
low: "low";
|
|
3133
|
+
medium: "medium";
|
|
3134
|
+
high: "high";
|
|
3135
|
+
xhigh: "xhigh";
|
|
2033
3136
|
}>;
|
|
2034
|
-
|
|
2035
|
-
|
|
3137
|
+
sourceTurnId: z.ZodNullable<z.ZodString>;
|
|
3138
|
+
sourceTurnVersion: z.ZodNullable<z.ZodNumber>;
|
|
3139
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
3140
|
+
}, z.core.$strip>;
|
|
3141
|
+
type ComposerDraft = z.infer<typeof ComposerDraft>;
|
|
3142
|
+
declare const SessionQueueSnapshot: z.ZodObject<{
|
|
3143
|
+
version: z.ZodNumber;
|
|
3144
|
+
effectiveControl: z.ZodObject<{
|
|
3145
|
+
state: z.ZodEnum<{
|
|
3146
|
+
active: "active";
|
|
3147
|
+
paused: "paused";
|
|
3148
|
+
}>;
|
|
3149
|
+
controlVersion: z.ZodNumber;
|
|
3150
|
+
controlEtag: z.ZodString;
|
|
3151
|
+
directState: z.ZodEnum<{
|
|
3152
|
+
active: "active";
|
|
3153
|
+
paused: "paused";
|
|
3154
|
+
}>;
|
|
3155
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
3156
|
+
kind: z.ZodEnum<{
|
|
3157
|
+
workspace: "workspace";
|
|
3158
|
+
session: "session";
|
|
3159
|
+
}>;
|
|
3160
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
3161
|
+
displayName: z.ZodString;
|
|
3162
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
3163
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3164
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
3165
|
+
revision: z.ZodNumber;
|
|
3166
|
+
}, z.core.$strip>>;
|
|
3167
|
+
additionalBlockerCount: z.ZodNumber;
|
|
3168
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
3169
|
+
kind: z.ZodEnum<{
|
|
3170
|
+
workspace: "workspace";
|
|
3171
|
+
session: "session";
|
|
3172
|
+
}>;
|
|
3173
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
3174
|
+
displayName: z.ZodString;
|
|
3175
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
3176
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3177
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
3178
|
+
revision: z.ZodNumber;
|
|
3179
|
+
}, z.core.$strip>>;
|
|
3180
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
3181
|
+
scope: z.ZodEnum<{
|
|
3182
|
+
workspace: "workspace";
|
|
3183
|
+
session: "session";
|
|
3184
|
+
selected: "selected";
|
|
3185
|
+
}>;
|
|
3186
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
3187
|
+
selectedStateAfter: z.ZodEnum<{
|
|
3188
|
+
active: "active";
|
|
3189
|
+
paused: "paused";
|
|
3190
|
+
}>;
|
|
3191
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
3192
|
+
kind: z.ZodEnum<{
|
|
3193
|
+
workspace: "workspace";
|
|
3194
|
+
session: "session";
|
|
3195
|
+
}>;
|
|
3196
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
3197
|
+
displayName: z.ZodString;
|
|
3198
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
3199
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3200
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
3201
|
+
revision: z.ZodNumber;
|
|
3202
|
+
}, z.core.$strip>>;
|
|
3203
|
+
impactCopy: z.ZodString;
|
|
3204
|
+
}, z.core.$strip>>;
|
|
3205
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
3206
|
+
rootSessionId: z.ZodString;
|
|
3207
|
+
revision: z.ZodNumber;
|
|
3208
|
+
}, z.core.$strip>>;
|
|
3209
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
3210
|
+
state: z.ZodLiteral<"stopping">;
|
|
3211
|
+
attemptCount: z.ZodNumber;
|
|
3212
|
+
interruptionPendingCount: z.ZodNumber;
|
|
3213
|
+
quiescencePendingCount: z.ZodNumber;
|
|
3214
|
+
}, z.core.$strip>>;
|
|
3215
|
+
}, z.core.$strip>;
|
|
3216
|
+
stoppingPreviousAttempt: z.ZodBoolean;
|
|
2036
3217
|
items: z.ZodArray<z.ZodObject<{
|
|
2037
3218
|
id: z.ZodString;
|
|
2038
3219
|
workspaceId: z.ZodString;
|
|
@@ -2049,6 +3230,7 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
2049
3230
|
cancelled: "cancelled";
|
|
2050
3231
|
completed: "completed";
|
|
2051
3232
|
superseded: "superseded";
|
|
3233
|
+
withdrawn_for_edit: "withdrawn_for_edit";
|
|
2052
3234
|
}>;
|
|
2053
3235
|
source: z.ZodEnum<{
|
|
2054
3236
|
user: "user";
|
|
@@ -2071,6 +3253,11 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
2071
3253
|
gitlab: "gitlab";
|
|
2072
3254
|
azure_devops: "azure_devops";
|
|
2073
3255
|
}>>;
|
|
3256
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
3257
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
3258
|
+
read: "read";
|
|
3259
|
+
write: "write";
|
|
3260
|
+
}>>;
|
|
2074
3261
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2075
3262
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2076
3263
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -2119,6 +3306,15 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
2119
3306
|
executionGeneration: z.ZodNumber;
|
|
2120
3307
|
activeAttemptId: z.ZodNullable<z.ZodString>;
|
|
2121
3308
|
lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3309
|
+
initiator: z.ZodObject<{
|
|
3310
|
+
subjectId: z.ZodString;
|
|
3311
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3312
|
+
kind: z.ZodEnum<{
|
|
3313
|
+
service: "service";
|
|
3314
|
+
subject: "subject";
|
|
3315
|
+
}>;
|
|
3316
|
+
}, z.core.$strip>;
|
|
3317
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2122
3318
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
2123
3319
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
2124
3320
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -2128,84 +3324,304 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
2128
3324
|
}, z.core.$strip>>;
|
|
2129
3325
|
}, z.core.$strip>;
|
|
2130
3326
|
type SessionQueueSnapshot = z.infer<typeof SessionQueueSnapshot>;
|
|
2131
|
-
declare const
|
|
3327
|
+
declare const MoveSessionQueueItemRequest: z.ZodObject<{
|
|
3328
|
+
clientEventId: z.ZodString;
|
|
2132
3329
|
expectedQueueVersion: z.ZodNumber;
|
|
2133
|
-
|
|
3330
|
+
beforeTurnId: z.ZodNullable<z.ZodString>;
|
|
3331
|
+
}, z.core.$strip>;
|
|
3332
|
+
type MoveSessionQueueItemRequest = z.infer<typeof MoveSessionQueueItemRequest>;
|
|
3333
|
+
declare const EditSessionQueueItemRequest: z.ZodObject<{
|
|
3334
|
+
clientEventId: z.ZodString;
|
|
3335
|
+
expectedTurnVersion: z.ZodNumber;
|
|
3336
|
+
expectedDraftRevision: z.ZodNumber;
|
|
3337
|
+
replaceDraft: z.ZodBoolean;
|
|
3338
|
+
}, z.core.$strip>;
|
|
3339
|
+
type EditSessionQueueItemRequest = z.infer<typeof EditSessionQueueItemRequest>;
|
|
3340
|
+
declare const SteerSessionQueueItemRequest: z.ZodObject<{
|
|
3341
|
+
clientEventId: z.ZodString;
|
|
3342
|
+
expectedTurnVersion: z.ZodNumber;
|
|
3343
|
+
controlEtag: z.ZodOptional<z.ZodString>;
|
|
3344
|
+
}, z.core.$strip>;
|
|
3345
|
+
type SteerSessionQueueItemRequest = z.infer<typeof SteerSessionQueueItemRequest>;
|
|
3346
|
+
declare const DeleteSessionQueueItemRequest: z.ZodObject<{
|
|
3347
|
+
clientEventId: z.ZodString;
|
|
3348
|
+
expectedTurnVersion: z.ZodNumber;
|
|
2134
3349
|
reason: z.ZodOptional<z.ZodString>;
|
|
2135
3350
|
}, z.core.$strip>;
|
|
2136
|
-
type
|
|
3351
|
+
type DeleteSessionQueueItemRequest = z.infer<typeof DeleteSessionQueueItemRequest>;
|
|
3352
|
+
declare const SaveComposerDraftRequest: z.ZodObject<{
|
|
3353
|
+
model: z.ZodString;
|
|
3354
|
+
text: z.ZodString;
|
|
3355
|
+
reasoningEffort: z.ZodEnum<{
|
|
3356
|
+
none: "none";
|
|
3357
|
+
minimal: "minimal";
|
|
3358
|
+
low: "low";
|
|
3359
|
+
medium: "medium";
|
|
3360
|
+
high: "high";
|
|
3361
|
+
xhigh: "xhigh";
|
|
3362
|
+
}>;
|
|
3363
|
+
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3364
|
+
kind: z.ZodLiteral<"repository">;
|
|
3365
|
+
uri: z.ZodString;
|
|
3366
|
+
ref: z.ZodString;
|
|
3367
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3368
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
3369
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
3370
|
+
github: "github";
|
|
3371
|
+
gitlab: "gitlab";
|
|
3372
|
+
azure_devops: "azure_devops";
|
|
3373
|
+
}>>;
|
|
3374
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
3375
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
3376
|
+
read: "read";
|
|
3377
|
+
write: "write";
|
|
3378
|
+
}>>;
|
|
3379
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3380
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3381
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3382
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
3383
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
3384
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
3385
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3386
|
+
kind: z.ZodLiteral<"file">;
|
|
3387
|
+
fileId: z.ZodString;
|
|
3388
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3389
|
+
}, z.core.$strip>], "kind">>;
|
|
3390
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
3391
|
+
kind: z.ZodLiteral<"mcp">;
|
|
3392
|
+
id: z.ZodString;
|
|
3393
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3394
|
+
}, z.core.$strip>>;
|
|
3395
|
+
expectedRevision: z.ZodNumber;
|
|
3396
|
+
}, z.core.$strip>;
|
|
3397
|
+
type SaveComposerDraftRequest = z.infer<typeof SaveComposerDraftRequest>;
|
|
3398
|
+
declare const WORKSPACE_CONTROL_REASON_MAX_BYTES: number;
|
|
3399
|
+
declare const WORKSPACE_CONTROL_ACTOR_MAX_BYTES = 1024;
|
|
3400
|
+
declare const WORKSPACE_CONTROL_EVENT_MAX_BYTES: number;
|
|
2137
3401
|
declare const SessionControlRequest: z.ZodObject<{
|
|
2138
|
-
|
|
3402
|
+
action: z.ZodEnum<{
|
|
2139
3403
|
pause: "pause";
|
|
2140
3404
|
resume: "resume";
|
|
2141
3405
|
}>;
|
|
2142
3406
|
reason: z.ZodOptional<z.ZodString>;
|
|
2143
|
-
clientEventId: z.
|
|
2144
|
-
|
|
2145
|
-
paused: "paused";
|
|
2146
|
-
active: "active";
|
|
2147
|
-
}>>;
|
|
2148
|
-
expectedControlGeneration: z.ZodOptional<z.ZodNumber>;
|
|
2149
|
-
expectedWorkspaceInferenceGeneration: z.ZodOptional<z.ZodNumber>;
|
|
3407
|
+
clientEventId: z.ZodString;
|
|
3408
|
+
expectedControlEtag: z.ZodOptional<z.ZodString>;
|
|
2150
3409
|
}, z.core.$strip>;
|
|
2151
3410
|
type SessionControlRequest = z.infer<typeof SessionControlRequest>;
|
|
2152
3411
|
declare const WorkspaceInferenceControlRequest: z.ZodObject<{
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
3412
|
+
action: z.ZodEnum<{
|
|
3413
|
+
pause: "pause";
|
|
3414
|
+
resume: "resume";
|
|
2156
3415
|
}>;
|
|
2157
|
-
reason: z.ZodString
|
|
3416
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2158
3417
|
clientEventId: z.ZodString;
|
|
2159
|
-
|
|
2160
|
-
paused: "paused";
|
|
2161
|
-
active: "active";
|
|
2162
|
-
}>;
|
|
2163
|
-
expectedGeneration: z.ZodNumber;
|
|
2164
|
-
exceptSessionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3418
|
+
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
2165
3419
|
}, z.core.$strip>;
|
|
2166
3420
|
type WorkspaceInferenceControlRequest = z.infer<typeof WorkspaceInferenceControlRequest>;
|
|
2167
3421
|
declare const WorkspaceInferenceControlResponse: z.ZodObject<{
|
|
2168
|
-
|
|
3422
|
+
receipt: z.ZodObject<{
|
|
3423
|
+
id: z.ZodString;
|
|
3424
|
+
action: z.ZodString;
|
|
3425
|
+
operationKey: z.ZodString;
|
|
3426
|
+
targetSessionId: z.ZodNullable<z.ZodString>;
|
|
3427
|
+
targetTurnId: z.ZodNullable<z.ZodString>;
|
|
3428
|
+
appliedControlRevision: z.ZodNullable<z.ZodNumber>;
|
|
3429
|
+
appliedQueueVersion: z.ZodNullable<z.ZodNumber>;
|
|
3430
|
+
appliedTurnVersion: z.ZodNullable<z.ZodNumber>;
|
|
3431
|
+
appliedDraftRevision: z.ZodNullable<z.ZodNumber>;
|
|
3432
|
+
createdAt: z.ZodString;
|
|
3433
|
+
}, z.core.$strip>;
|
|
2169
3434
|
state: z.ZodEnum<{
|
|
2170
|
-
paused: "paused";
|
|
2171
3435
|
active: "active";
|
|
3436
|
+
paused: "paused";
|
|
2172
3437
|
}>;
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
exceptionSessionIds: z.ZodArray<z.ZodString>;
|
|
3438
|
+
revision: z.ZodNumber;
|
|
3439
|
+
interruptionCount: z.ZodNumber;
|
|
3440
|
+
wakeCount: z.ZodNumber;
|
|
2177
3441
|
}, z.core.$strip>;
|
|
2178
3442
|
type WorkspaceInferenceControlResponse = z.infer<typeof WorkspaceInferenceControlResponse>;
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
3443
|
+
/**
|
|
3444
|
+
* One durable workspace-wide invalidation for one committed control revision.
|
|
3445
|
+
* It is not conversation history and never becomes queue work; clients use it
|
|
3446
|
+
* only to refetch authoritative workspace/session projections.
|
|
3447
|
+
*/
|
|
3448
|
+
declare const WorkspaceControlEventTruncation: z.ZodObject<{
|
|
3449
|
+
truncated: z.ZodLiteral<true>;
|
|
3450
|
+
surface: z.ZodEnum<{
|
|
3451
|
+
durable_control: "durable_control";
|
|
3452
|
+
database_guard: "database_guard";
|
|
3453
|
+
http_projection: "http_projection";
|
|
3454
|
+
nats_legacy_guard: "nats_legacy_guard";
|
|
3455
|
+
sse_legacy_guard: "sse_legacy_guard";
|
|
3456
|
+
}>;
|
|
3457
|
+
deliveredBytes: z.ZodNumber;
|
|
3458
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
3459
|
+
field: z.ZodEnum<{
|
|
3460
|
+
reason: "reason";
|
|
3461
|
+
actor: "actor";
|
|
3462
|
+
}>;
|
|
3463
|
+
originalBytes: z.ZodNumber;
|
|
3464
|
+
deliveredBytes: z.ZodNumber;
|
|
3465
|
+
omittedBytes: z.ZodNumber;
|
|
3466
|
+
}, z.core.$strip>>;
|
|
3467
|
+
fullEvidence: z.ZodObject<{
|
|
3468
|
+
available: z.ZodLiteral<false>;
|
|
3469
|
+
reason: z.ZodLiteral<"not_retained">;
|
|
3470
|
+
}, z.core.$strip>;
|
|
3471
|
+
}, z.core.$strip>;
|
|
3472
|
+
type WorkspaceControlEventTruncation = z.infer<typeof WorkspaceControlEventTruncation>;
|
|
3473
|
+
declare const WorkspaceControlEvent: z.ZodObject<{
|
|
3474
|
+
id: z.ZodString;
|
|
3475
|
+
workspaceId: z.ZodString;
|
|
3476
|
+
sequence: z.ZodNumber;
|
|
3477
|
+
revision: z.ZodNumber;
|
|
3478
|
+
type: z.ZodLiteral<"workspace.control.changed">;
|
|
3479
|
+
scope: z.ZodEnum<{
|
|
3480
|
+
workspace: "workspace";
|
|
3481
|
+
session: "session";
|
|
3482
|
+
}>;
|
|
3483
|
+
rootSessionId: z.ZodNullable<z.ZodString>;
|
|
3484
|
+
action: z.ZodEnum<{
|
|
3485
|
+
pause: "pause";
|
|
3486
|
+
resume: "resume";
|
|
3487
|
+
}>;
|
|
3488
|
+
automatic: z.ZodBoolean;
|
|
3489
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
3490
|
+
actor: z.ZodString;
|
|
3491
|
+
occurredAt: z.ZodString;
|
|
3492
|
+
truncation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3493
|
+
truncated: z.ZodLiteral<true>;
|
|
3494
|
+
surface: z.ZodEnum<{
|
|
3495
|
+
durable_control: "durable_control";
|
|
3496
|
+
database_guard: "database_guard";
|
|
3497
|
+
http_projection: "http_projection";
|
|
3498
|
+
nats_legacy_guard: "nats_legacy_guard";
|
|
3499
|
+
sse_legacy_guard: "sse_legacy_guard";
|
|
3500
|
+
}>;
|
|
3501
|
+
deliveredBytes: z.ZodNumber;
|
|
3502
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
3503
|
+
field: z.ZodEnum<{
|
|
3504
|
+
reason: "reason";
|
|
3505
|
+
actor: "actor";
|
|
3506
|
+
}>;
|
|
3507
|
+
originalBytes: z.ZodNumber;
|
|
3508
|
+
deliveredBytes: z.ZodNumber;
|
|
3509
|
+
omittedBytes: z.ZodNumber;
|
|
3510
|
+
}, z.core.$strip>>;
|
|
3511
|
+
fullEvidence: z.ZodObject<{
|
|
3512
|
+
available: z.ZodLiteral<false>;
|
|
3513
|
+
reason: z.ZodLiteral<"not_retained">;
|
|
3514
|
+
}, z.core.$strip>;
|
|
3515
|
+
}, z.core.$strip>>>;
|
|
3516
|
+
}, z.core.$strip>;
|
|
3517
|
+
type WorkspaceControlEvent = z.infer<typeof WorkspaceControlEvent>;
|
|
3518
|
+
type WorkspaceControlBoundarySurface = WorkspaceControlEventTruncation["surface"];
|
|
3519
|
+
type BoundWorkspaceControlEventOptions = {
|
|
3520
|
+
surface?: WorkspaceControlBoundarySurface;
|
|
3521
|
+
reasonOriginalBytes?: number | null;
|
|
3522
|
+
actorOriginalBytes?: number | null;
|
|
3523
|
+
};
|
|
3524
|
+
/** UTF-8 byte count used by workspace-control storage and transport guards. */
|
|
3525
|
+
declare function workspaceControlUtf8Bytes(value: string): number;
|
|
3526
|
+
/**
|
|
3527
|
+
* Canonical bounded invalidation event. The event is not a full evidence store:
|
|
3528
|
+
* when a producer or legacy row exceeds a field cap, the retained head carries
|
|
3529
|
+
* a visible marker and structured exact byte-loss facts.
|
|
3530
|
+
*/
|
|
3531
|
+
declare function boundWorkspaceControlEvent(event: WorkspaceControlEvent, options?: BoundWorkspaceControlEventOptions): WorkspaceControlEvent;
|
|
3532
|
+
declare const SystemUpdateClassification: z.ZodEnum<{
|
|
3533
|
+
success: "success";
|
|
3534
|
+
failure: "failure";
|
|
3535
|
+
action_required: "action_required";
|
|
3536
|
+
info: "info";
|
|
3537
|
+
}>;
|
|
3538
|
+
type SystemUpdateClassification = z.infer<typeof SystemUpdateClassification>;
|
|
3539
|
+
declare const SessionSystemUpdateKind: z.ZodEnum<{
|
|
3540
|
+
scheduled_occurrence: "scheduled_occurrence";
|
|
3541
|
+
goal_continuation: "goal_continuation";
|
|
3542
|
+
agent_message: "agent_message";
|
|
3543
|
+
agent_steer_instruction: "agent_steer_instruction";
|
|
3544
|
+
child_terminal_result: "child_terminal_result";
|
|
3545
|
+
}>;
|
|
3546
|
+
type SessionSystemUpdateKind = z.infer<typeof SessionSystemUpdateKind>;
|
|
3547
|
+
declare const SessionSystemUpdatePayload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3548
|
+
type: z.ZodLiteral<"scheduled_occurrence">;
|
|
3549
|
+
text: z.ZodString;
|
|
3550
|
+
scheduledTaskId: z.ZodString;
|
|
3551
|
+
scheduledTaskRunId: z.ZodString;
|
|
3552
|
+
resources: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3553
|
+
kind: z.ZodLiteral<"repository">;
|
|
3554
|
+
uri: z.ZodString;
|
|
3555
|
+
ref: z.ZodString;
|
|
3556
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3557
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
3558
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
3559
|
+
github: "github";
|
|
3560
|
+
gitlab: "gitlab";
|
|
3561
|
+
azure_devops: "azure_devops";
|
|
3562
|
+
}>>;
|
|
3563
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
3564
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
3565
|
+
read: "read";
|
|
3566
|
+
write: "write";
|
|
3567
|
+
}>>;
|
|
3568
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3569
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3570
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3571
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
3572
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
3573
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
3574
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3575
|
+
kind: z.ZodLiteral<"file">;
|
|
3576
|
+
fileId: z.ZodString;
|
|
3577
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3578
|
+
}, z.core.$strip>], "kind">>>;
|
|
3579
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3580
|
+
kind: z.ZodLiteral<"mcp">;
|
|
3581
|
+
id: z.ZodString;
|
|
3582
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3583
|
+
}, z.core.$strip>>>;
|
|
3584
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3585
|
+
type: z.ZodLiteral<"goal_continuation">;
|
|
3586
|
+
goalId: z.ZodString;
|
|
3587
|
+
goalVersion: z.ZodNumber;
|
|
3588
|
+
prompt: z.ZodString;
|
|
3589
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3590
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3591
|
+
type: z.ZodLiteral<"agent_message">;
|
|
3592
|
+
text: z.ZodString;
|
|
3593
|
+
operationId: z.ZodString;
|
|
3594
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3595
|
+
type: z.ZodLiteral<"agent_steer_instruction">;
|
|
3596
|
+
instruction: z.ZodString;
|
|
3597
|
+
operationId: z.ZodString;
|
|
3598
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3599
|
+
type: z.ZodLiteral<"child_terminal_result">;
|
|
3600
|
+
childSessionId: z.ZodString;
|
|
3601
|
+
status: z.ZodEnum<{
|
|
3602
|
+
idle: "idle";
|
|
3603
|
+
failed: "failed";
|
|
3604
|
+
}>;
|
|
3605
|
+
}, z.core.$loose>], "type">;
|
|
3606
|
+
type SessionSystemUpdatePayload = z.infer<typeof SessionSystemUpdatePayload>;
|
|
3607
|
+
declare const SessionSystemUpdateState: z.ZodEnum<{
|
|
3608
|
+
failed: "failed";
|
|
3609
|
+
cancelled: "cancelled";
|
|
3610
|
+
pending: "pending";
|
|
3611
|
+
superseded: "superseded";
|
|
3612
|
+
deferred: "deferred";
|
|
3613
|
+
delivered: "delivered";
|
|
3614
|
+
}>;
|
|
3615
|
+
type SessionSystemUpdateState = z.infer<typeof SessionSystemUpdateState>;
|
|
3616
|
+
declare const SessionSystemUpdate: z.ZodObject<{
|
|
2202
3617
|
id: z.ZodString;
|
|
2203
3618
|
sessionId: z.ZodString;
|
|
2204
3619
|
kind: z.ZodEnum<{
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
3620
|
+
scheduled_occurrence: "scheduled_occurrence";
|
|
3621
|
+
goal_continuation: "goal_continuation";
|
|
3622
|
+
agent_message: "agent_message";
|
|
3623
|
+
agent_steer_instruction: "agent_steer_instruction";
|
|
3624
|
+
child_terminal_result: "child_terminal_result";
|
|
2209
3625
|
}>;
|
|
2210
3626
|
classification: z.ZodEnum<{
|
|
2211
3627
|
success: "success";
|
|
@@ -2216,12 +3632,71 @@ declare const SessionSystemUpdate: z.ZodObject<{
|
|
|
2216
3632
|
sourceId: z.ZodString;
|
|
2217
3633
|
dedupeKey: z.ZodString;
|
|
2218
3634
|
summary: z.ZodString;
|
|
2219
|
-
payload: z.
|
|
3635
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3636
|
+
type: z.ZodLiteral<"scheduled_occurrence">;
|
|
3637
|
+
text: z.ZodString;
|
|
3638
|
+
scheduledTaskId: z.ZodString;
|
|
3639
|
+
scheduledTaskRunId: z.ZodString;
|
|
3640
|
+
resources: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3641
|
+
kind: z.ZodLiteral<"repository">;
|
|
3642
|
+
uri: z.ZodString;
|
|
3643
|
+
ref: z.ZodString;
|
|
3644
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3645
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
3646
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
3647
|
+
github: "github";
|
|
3648
|
+
gitlab: "gitlab";
|
|
3649
|
+
azure_devops: "azure_devops";
|
|
3650
|
+
}>>;
|
|
3651
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
3652
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
3653
|
+
read: "read";
|
|
3654
|
+
write: "write";
|
|
3655
|
+
}>>;
|
|
3656
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3657
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3658
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
3659
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
3660
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
3661
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
3662
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3663
|
+
kind: z.ZodLiteral<"file">;
|
|
3664
|
+
fileId: z.ZodString;
|
|
3665
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
3666
|
+
}, z.core.$strip>], "kind">>>;
|
|
3667
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3668
|
+
kind: z.ZodLiteral<"mcp">;
|
|
3669
|
+
id: z.ZodString;
|
|
3670
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3671
|
+
}, z.core.$strip>>>;
|
|
3672
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3673
|
+
type: z.ZodLiteral<"goal_continuation">;
|
|
3674
|
+
goalId: z.ZodString;
|
|
3675
|
+
goalVersion: z.ZodNumber;
|
|
3676
|
+
prompt: z.ZodString;
|
|
3677
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3678
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3679
|
+
type: z.ZodLiteral<"agent_message">;
|
|
3680
|
+
text: z.ZodString;
|
|
3681
|
+
operationId: z.ZodString;
|
|
3682
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3683
|
+
type: z.ZodLiteral<"agent_steer_instruction">;
|
|
3684
|
+
instruction: z.ZodString;
|
|
3685
|
+
operationId: z.ZodString;
|
|
3686
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
3687
|
+
type: z.ZodLiteral<"child_terminal_result">;
|
|
3688
|
+
childSessionId: z.ZodString;
|
|
3689
|
+
status: z.ZodEnum<{
|
|
3690
|
+
idle: "idle";
|
|
3691
|
+
failed: "failed";
|
|
3692
|
+
}>;
|
|
3693
|
+
}, z.core.$loose>], "type">;
|
|
2220
3694
|
lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2221
3695
|
state: z.ZodEnum<{
|
|
2222
3696
|
failed: "failed";
|
|
2223
3697
|
cancelled: "cancelled";
|
|
2224
3698
|
pending: "pending";
|
|
3699
|
+
superseded: "superseded";
|
|
2225
3700
|
deferred: "deferred";
|
|
2226
3701
|
delivered: "delivered";
|
|
2227
3702
|
}>;
|
|
@@ -2515,8 +3990,8 @@ declare const ProposeRigChangeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2515
3990
|
}, z.core.$strip>], "kind">;
|
|
2516
3991
|
type ProposeRigChangeRequest = z.infer<typeof ProposeRigChangeRequest>;
|
|
2517
3992
|
declare const ScheduledTaskStatus: z.ZodEnum<{
|
|
2518
|
-
paused: "paused";
|
|
2519
3993
|
active: "active";
|
|
3994
|
+
paused: "paused";
|
|
2520
3995
|
}>;
|
|
2521
3996
|
type ScheduledTaskStatus = z.infer<typeof ScheduledTaskStatus>;
|
|
2522
3997
|
declare const ScheduledTaskRunStatus: z.ZodEnum<{
|
|
@@ -2579,6 +4054,11 @@ declare const ScheduledTaskAgentConfig: z.ZodObject<{
|
|
|
2579
4054
|
gitlab: "gitlab";
|
|
2580
4055
|
azure_devops: "azure_devops";
|
|
2581
4056
|
}>>;
|
|
4057
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
4058
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
4059
|
+
read: "read";
|
|
4060
|
+
write: "write";
|
|
4061
|
+
}>>;
|
|
2582
4062
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2583
4063
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2584
4064
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -2631,8 +4111,8 @@ declare const ScheduledTask: z.ZodObject<{
|
|
|
2631
4111
|
workspaceId: z.ZodString;
|
|
2632
4112
|
name: z.ZodString;
|
|
2633
4113
|
status: z.ZodEnum<{
|
|
2634
|
-
paused: "paused";
|
|
2635
4114
|
active: "active";
|
|
4115
|
+
paused: "paused";
|
|
2636
4116
|
}>;
|
|
2637
4117
|
schedule: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2638
4118
|
type: z.ZodLiteral<"once">;
|
|
@@ -2681,6 +4161,11 @@ declare const ScheduledTask: z.ZodObject<{
|
|
|
2681
4161
|
gitlab: "gitlab";
|
|
2682
4162
|
azure_devops: "azure_devops";
|
|
2683
4163
|
}>>;
|
|
4164
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
4165
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
4166
|
+
read: "read";
|
|
4167
|
+
write: "write";
|
|
4168
|
+
}>>;
|
|
2684
4169
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2685
4170
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2686
4171
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -2806,6 +4291,11 @@ declare const CreateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
2806
4291
|
gitlab: "gitlab";
|
|
2807
4292
|
azure_devops: "azure_devops";
|
|
2808
4293
|
}>>;
|
|
4294
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
4295
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
4296
|
+
read: "read";
|
|
4297
|
+
write: "write";
|
|
4298
|
+
}>>;
|
|
2809
4299
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2810
4300
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2811
4301
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -2852,8 +4342,8 @@ declare const CreateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
2852
4342
|
}, z.core.$strip>>;
|
|
2853
4343
|
}, z.core.$strip>;
|
|
2854
4344
|
status: z.ZodDefault<z.ZodEnum<{
|
|
2855
|
-
paused: "paused";
|
|
2856
4345
|
active: "active";
|
|
4346
|
+
paused: "paused";
|
|
2857
4347
|
}>>;
|
|
2858
4348
|
variableSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2859
4349
|
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2909,6 +4399,11 @@ declare const UpdateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
2909
4399
|
gitlab: "gitlab";
|
|
2910
4400
|
azure_devops: "azure_devops";
|
|
2911
4401
|
}>>;
|
|
4402
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
4403
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
4404
|
+
read: "read";
|
|
4405
|
+
write: "write";
|
|
4406
|
+
}>>;
|
|
2912
4407
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2913
4408
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
2914
4409
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -2955,8 +4450,8 @@ declare const UpdateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
2955
4450
|
}, z.core.$strip>>;
|
|
2956
4451
|
}, z.core.$strip>>;
|
|
2957
4452
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2958
|
-
paused: "paused";
|
|
2959
4453
|
active: "active";
|
|
4454
|
+
paused: "paused";
|
|
2960
4455
|
}>>;
|
|
2961
4456
|
variableSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2962
4457
|
environmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2974,9 +4469,9 @@ declare const TriggerScheduledTaskRequest: z.ZodObject<{
|
|
|
2974
4469
|
}, z.core.$strip>;
|
|
2975
4470
|
type TriggerScheduledTaskRequest = z.infer<typeof TriggerScheduledTaskRequest>;
|
|
2976
4471
|
declare const CapabilityPackConnectorAuthModel: z.ZodEnum<{
|
|
4472
|
+
api_key: "api_key";
|
|
2977
4473
|
oauth2_authorization_code_pkce: "oauth2_authorization_code_pkce";
|
|
2978
4474
|
oauth2_authorization_code: "oauth2_authorization_code";
|
|
2979
|
-
api_key: "api_key";
|
|
2980
4475
|
credential_ref: "credential_ref";
|
|
2981
4476
|
}>;
|
|
2982
4477
|
type CapabilityPackConnectorAuthModel = z.infer<typeof CapabilityPackConnectorAuthModel>;
|
|
@@ -2985,9 +4480,9 @@ declare const CapabilityPackConnector: z.ZodObject<{
|
|
|
2985
4480
|
name: z.ZodString;
|
|
2986
4481
|
category: z.ZodString;
|
|
2987
4482
|
authModel: z.ZodEnum<{
|
|
4483
|
+
api_key: "api_key";
|
|
2988
4484
|
oauth2_authorization_code_pkce: "oauth2_authorization_code_pkce";
|
|
2989
4485
|
oauth2_authorization_code: "oauth2_authorization_code";
|
|
2990
|
-
api_key: "api_key";
|
|
2991
4486
|
credential_ref: "credential_ref";
|
|
2992
4487
|
}>;
|
|
2993
4488
|
providers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -3084,9 +4579,9 @@ declare const CapabilityPack: z.ZodPreprocess<z.ZodObject<{
|
|
|
3084
4579
|
name: z.ZodString;
|
|
3085
4580
|
category: z.ZodString;
|
|
3086
4581
|
authModel: z.ZodEnum<{
|
|
4582
|
+
api_key: "api_key";
|
|
3087
4583
|
oauth2_authorization_code_pkce: "oauth2_authorization_code_pkce";
|
|
3088
4584
|
oauth2_authorization_code: "oauth2_authorization_code";
|
|
3089
|
-
api_key: "api_key";
|
|
3090
4585
|
credential_ref: "credential_ref";
|
|
3091
4586
|
}>;
|
|
3092
4587
|
providers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -3174,9 +4669,9 @@ declare const RegisterCapabilityPackRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
3174
4669
|
name: z.ZodString;
|
|
3175
4670
|
category: z.ZodString;
|
|
3176
4671
|
authModel: z.ZodEnum<{
|
|
4672
|
+
api_key: "api_key";
|
|
3177
4673
|
oauth2_authorization_code_pkce: "oauth2_authorization_code_pkce";
|
|
3178
4674
|
oauth2_authorization_code: "oauth2_authorization_code";
|
|
3179
|
-
api_key: "api_key";
|
|
3180
4675
|
credential_ref: "credential_ref";
|
|
3181
4676
|
}>;
|
|
3182
4677
|
providers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -3267,9 +4762,9 @@ declare const WorkspaceRegisteredPack: z.ZodObject<{
|
|
|
3267
4762
|
name: z.ZodString;
|
|
3268
4763
|
category: z.ZodString;
|
|
3269
4764
|
authModel: z.ZodEnum<{
|
|
4765
|
+
api_key: "api_key";
|
|
3270
4766
|
oauth2_authorization_code_pkce: "oauth2_authorization_code_pkce";
|
|
3271
4767
|
oauth2_authorization_code: "oauth2_authorization_code";
|
|
3272
|
-
api_key: "api_key";
|
|
3273
4768
|
credential_ref: "credential_ref";
|
|
3274
4769
|
}>;
|
|
3275
4770
|
providers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -3464,8 +4959,8 @@ declare const CreateSocialPostRequest: z.ZodObject<{
|
|
|
3464
4959
|
}, z.core.$strip>;
|
|
3465
4960
|
type CreateSocialPostRequest = z.infer<typeof CreateSocialPostRequest>;
|
|
3466
4961
|
declare const ConnectionKind: z.ZodEnum<{
|
|
3467
|
-
api_key: "api_key";
|
|
3468
4962
|
oauth2: "oauth2";
|
|
4963
|
+
api_key: "api_key";
|
|
3469
4964
|
app_install: "app_install";
|
|
3470
4965
|
delegated: "delegated";
|
|
3471
4966
|
}>;
|
|
@@ -3473,27 +4968,10 @@ type ConnectionKind = z.infer<typeof ConnectionKind>;
|
|
|
3473
4968
|
declare const ConnectionStatus: z.ZodEnum<{
|
|
3474
4969
|
error: "error";
|
|
3475
4970
|
active: "active";
|
|
3476
|
-
needs_reauth: "needs_reauth";
|
|
3477
4971
|
revoked: "revoked";
|
|
4972
|
+
needs_reauth: "needs_reauth";
|
|
3478
4973
|
}>;
|
|
3479
4974
|
type ConnectionStatus = z.infer<typeof ConnectionStatus>;
|
|
3480
|
-
declare const McpServerConnectionRef: z.ZodObject<{
|
|
3481
|
-
connectionId: z.ZodOptional<z.ZodString>;
|
|
3482
|
-
providerDomain: z.ZodString;
|
|
3483
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
3484
|
-
api_key: "api_key";
|
|
3485
|
-
oauth2: "oauth2";
|
|
3486
|
-
app_install: "app_install";
|
|
3487
|
-
delegated: "delegated";
|
|
3488
|
-
}>>;
|
|
3489
|
-
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3490
|
-
resource: z.ZodOptional<z.ZodString>;
|
|
3491
|
-
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
3492
|
-
workspace: "workspace";
|
|
3493
|
-
subject: "subject";
|
|
3494
|
-
}>>;
|
|
3495
|
-
}, z.core.$strict>;
|
|
3496
|
-
type McpServerConnectionRef = z.infer<typeof McpServerConnectionRef>;
|
|
3497
4975
|
declare const ConnectionMetadata: z.ZodObject<{
|
|
3498
4976
|
id: z.ZodString;
|
|
3499
4977
|
accountId: z.ZodString;
|
|
@@ -3501,16 +4979,16 @@ declare const ConnectionMetadata: z.ZodObject<{
|
|
|
3501
4979
|
subjectId: z.ZodNullable<z.ZodString>;
|
|
3502
4980
|
providerDomain: z.ZodString;
|
|
3503
4981
|
kind: z.ZodEnum<{
|
|
3504
|
-
api_key: "api_key";
|
|
3505
4982
|
oauth2: "oauth2";
|
|
4983
|
+
api_key: "api_key";
|
|
3506
4984
|
app_install: "app_install";
|
|
3507
4985
|
delegated: "delegated";
|
|
3508
4986
|
}>;
|
|
3509
4987
|
status: z.ZodEnum<{
|
|
3510
4988
|
error: "error";
|
|
3511
4989
|
active: "active";
|
|
3512
|
-
needs_reauth: "needs_reauth";
|
|
3513
4990
|
revoked: "revoked";
|
|
4991
|
+
needs_reauth: "needs_reauth";
|
|
3514
4992
|
}>;
|
|
3515
4993
|
grantedScopes: z.ZodArray<z.ZodString>;
|
|
3516
4994
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
@@ -3530,8 +5008,8 @@ type ConnectionCredentialBundle = z.infer<typeof ConnectionCredentialBundle>;
|
|
|
3530
5008
|
declare const CreateConnectionRequest: z.ZodObject<{
|
|
3531
5009
|
providerDomain: z.ZodString;
|
|
3532
5010
|
kind: z.ZodEnum<{
|
|
3533
|
-
api_key: "api_key";
|
|
3534
5011
|
oauth2: "oauth2";
|
|
5012
|
+
api_key: "api_key";
|
|
3535
5013
|
app_install: "app_install";
|
|
3536
5014
|
delegated: "delegated";
|
|
3537
5015
|
}>;
|
|
@@ -3546,16 +5024,16 @@ declare const UpdateConnectionRequest: z.ZodObject<{
|
|
|
3546
5024
|
providerDomain: z.ZodOptional<z.ZodString>;
|
|
3547
5025
|
subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3548
5026
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
3549
|
-
api_key: "api_key";
|
|
3550
5027
|
oauth2: "oauth2";
|
|
5028
|
+
api_key: "api_key";
|
|
3551
5029
|
app_install: "app_install";
|
|
3552
5030
|
delegated: "delegated";
|
|
3553
5031
|
}>>;
|
|
3554
5032
|
status: z.ZodOptional<z.ZodEnum<{
|
|
3555
5033
|
error: "error";
|
|
3556
5034
|
active: "active";
|
|
3557
|
-
needs_reauth: "needs_reauth";
|
|
3558
5035
|
revoked: "revoked";
|
|
5036
|
+
needs_reauth: "needs_reauth";
|
|
3559
5037
|
}>>;
|
|
3560
5038
|
credential: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3561
5039
|
grantedScopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -3571,16 +5049,16 @@ declare const ConnectionResponse: z.ZodObject<{
|
|
|
3571
5049
|
subjectId: z.ZodNullable<z.ZodString>;
|
|
3572
5050
|
providerDomain: z.ZodString;
|
|
3573
5051
|
kind: z.ZodEnum<{
|
|
3574
|
-
api_key: "api_key";
|
|
3575
5052
|
oauth2: "oauth2";
|
|
5053
|
+
api_key: "api_key";
|
|
3576
5054
|
app_install: "app_install";
|
|
3577
5055
|
delegated: "delegated";
|
|
3578
5056
|
}>;
|
|
3579
5057
|
status: z.ZodEnum<{
|
|
3580
5058
|
error: "error";
|
|
3581
5059
|
active: "active";
|
|
3582
|
-
needs_reauth: "needs_reauth";
|
|
3583
5060
|
revoked: "revoked";
|
|
5061
|
+
needs_reauth: "needs_reauth";
|
|
3584
5062
|
}>;
|
|
3585
5063
|
grantedScopes: z.ZodArray<z.ZodString>;
|
|
3586
5064
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
@@ -3604,16 +5082,16 @@ declare const ListConnectionsResponse: z.ZodObject<{
|
|
|
3604
5082
|
subjectId: z.ZodNullable<z.ZodString>;
|
|
3605
5083
|
providerDomain: z.ZodString;
|
|
3606
5084
|
kind: z.ZodEnum<{
|
|
3607
|
-
api_key: "api_key";
|
|
3608
5085
|
oauth2: "oauth2";
|
|
5086
|
+
api_key: "api_key";
|
|
3609
5087
|
app_install: "app_install";
|
|
3610
5088
|
delegated: "delegated";
|
|
3611
5089
|
}>;
|
|
3612
5090
|
status: z.ZodEnum<{
|
|
3613
5091
|
error: "error";
|
|
3614
5092
|
active: "active";
|
|
3615
|
-
needs_reauth: "needs_reauth";
|
|
3616
5093
|
revoked: "revoked";
|
|
5094
|
+
needs_reauth: "needs_reauth";
|
|
3617
5095
|
}>;
|
|
3618
5096
|
grantedScopes: z.ZodArray<z.ZodString>;
|
|
3619
5097
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
@@ -3674,8 +5152,8 @@ declare const MarketingDailyAnalysisTaskRequest: z.ZodObject<{
|
|
|
3674
5152
|
minute: z.ZodDefault<z.ZodNumber>;
|
|
3675
5153
|
promptInstructions: z.ZodOptional<z.ZodString>;
|
|
3676
5154
|
status: z.ZodDefault<z.ZodEnum<{
|
|
3677
|
-
paused: "paused";
|
|
3678
5155
|
active: "active";
|
|
5156
|
+
paused: "paused";
|
|
3679
5157
|
}>>;
|
|
3680
5158
|
runMode: z.ZodDefault<z.ZodEnum<{
|
|
3681
5159
|
new_session_per_run: "new_session_per_run";
|
|
@@ -3700,6 +5178,7 @@ declare const CapabilitySource: z.ZodEnum<{
|
|
|
3700
5178
|
configured: "configured";
|
|
3701
5179
|
manual: "manual";
|
|
3702
5180
|
built_in: "built_in";
|
|
5181
|
+
library: "library";
|
|
3703
5182
|
public_registry: "public_registry";
|
|
3704
5183
|
registry: "registry";
|
|
3705
5184
|
}>;
|
|
@@ -3712,8 +5191,8 @@ type CapabilityInstallationStatus = z.infer<typeof CapabilityInstallationStatus>
|
|
|
3712
5191
|
declare const CapabilityCatalogAuthKind: z.ZodEnum<{
|
|
3713
5192
|
none: "none";
|
|
3714
5193
|
unknown: "unknown";
|
|
3715
|
-
api_key: "api_key";
|
|
3716
5194
|
oauth2: "oauth2";
|
|
5195
|
+
api_key: "api_key";
|
|
3717
5196
|
}>;
|
|
3718
5197
|
type CapabilityCatalogAuthKind = z.infer<typeof CapabilityCatalogAuthKind>;
|
|
3719
5198
|
declare const CapabilityCatalogTier: z.ZodEnum<{
|
|
@@ -3743,6 +5222,7 @@ declare const CapabilityCatalogItem: z.ZodObject<{
|
|
|
3743
5222
|
configured: "configured";
|
|
3744
5223
|
manual: "manual";
|
|
3745
5224
|
built_in: "built_in";
|
|
5225
|
+
library: "library";
|
|
3746
5226
|
public_registry: "public_registry";
|
|
3747
5227
|
registry: "registry";
|
|
3748
5228
|
}>;
|
|
@@ -3761,8 +5241,8 @@ declare const CapabilityCatalogItem: z.ZodObject<{
|
|
|
3761
5241
|
authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
3762
5242
|
none: "none";
|
|
3763
5243
|
unknown: "unknown";
|
|
3764
|
-
api_key: "api_key";
|
|
3765
5244
|
oauth2: "oauth2";
|
|
5245
|
+
api_key: "api_key";
|
|
3766
5246
|
}>>>;
|
|
3767
5247
|
credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3768
5248
|
tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
@@ -3831,6 +5311,7 @@ declare const CreateCapabilityCatalogItemRequest: z.ZodObject<{
|
|
|
3831
5311
|
configured: "configured";
|
|
3832
5312
|
manual: "manual";
|
|
3833
5313
|
built_in: "built_in";
|
|
5314
|
+
library: "library";
|
|
3834
5315
|
public_registry: "public_registry";
|
|
3835
5316
|
registry: "registry";
|
|
3836
5317
|
}>>;
|
|
@@ -3850,18 +5331,23 @@ declare const EnableCapabilityRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
3850
5331
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3851
5332
|
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
3852
5333
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
5334
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
3853
5335
|
providerDomain: z.ZodString;
|
|
3854
5336
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
3855
|
-
api_key: "api_key";
|
|
3856
5337
|
oauth2: "oauth2";
|
|
5338
|
+
api_key: "api_key";
|
|
3857
5339
|
app_install: "app_install";
|
|
3858
5340
|
delegated: "delegated";
|
|
3859
5341
|
}>>;
|
|
3860
5342
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3861
5343
|
resource: z.ZodOptional<z.ZodString>;
|
|
5344
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5345
|
+
id: z.ZodString;
|
|
5346
|
+
kind: z.ZodLiteral<"repository">;
|
|
5347
|
+
}, z.core.$strict>>>;
|
|
3862
5348
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
3863
|
-
workspace: "workspace";
|
|
3864
5349
|
subject: "subject";
|
|
5350
|
+
workspace: "workspace";
|
|
3865
5351
|
}>>;
|
|
3866
5352
|
}, z.core.$strict>>;
|
|
3867
5353
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -3885,6 +5371,7 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
|
|
|
3885
5371
|
configured: "configured";
|
|
3886
5372
|
manual: "manual";
|
|
3887
5373
|
built_in: "built_in";
|
|
5374
|
+
library: "library";
|
|
3888
5375
|
public_registry: "public_registry";
|
|
3889
5376
|
registry: "registry";
|
|
3890
5377
|
}>;
|
|
@@ -3903,8 +5390,8 @@ declare const CapabilityCatalogResponse: z.ZodObject<{
|
|
|
3903
5390
|
authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
3904
5391
|
none: "none";
|
|
3905
5392
|
unknown: "unknown";
|
|
3906
|
-
api_key: "api_key";
|
|
3907
5393
|
oauth2: "oauth2";
|
|
5394
|
+
api_key: "api_key";
|
|
3908
5395
|
}>>>;
|
|
3909
5396
|
credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
3910
5397
|
tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
@@ -3977,6 +5464,7 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
|
|
|
3977
5464
|
configured: "configured";
|
|
3978
5465
|
manual: "manual";
|
|
3979
5466
|
built_in: "built_in";
|
|
5467
|
+
library: "library";
|
|
3980
5468
|
public_registry: "public_registry";
|
|
3981
5469
|
registry: "registry";
|
|
3982
5470
|
}>;
|
|
@@ -3995,8 +5483,8 @@ declare const DiscoverMcpCapabilitiesResponse: z.ZodObject<{
|
|
|
3995
5483
|
authKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
3996
5484
|
none: "none";
|
|
3997
5485
|
unknown: "unknown";
|
|
3998
|
-
api_key: "api_key";
|
|
3999
5486
|
oauth2: "oauth2";
|
|
5487
|
+
api_key: "api_key";
|
|
4000
5488
|
}>>>;
|
|
4001
5489
|
credentialFacts: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
4002
5490
|
tier: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
@@ -4045,7 +5533,6 @@ declare const Session: z.ZodObject<{
|
|
|
4045
5533
|
requires_action: "requires_action";
|
|
4046
5534
|
recovering: "recovering";
|
|
4047
5535
|
waiting_capacity: "waiting_capacity";
|
|
4048
|
-
paused: "paused";
|
|
4049
5536
|
failed: "failed";
|
|
4050
5537
|
cancelled: "cancelled";
|
|
4051
5538
|
}>;
|
|
@@ -4067,6 +5554,11 @@ declare const Session: z.ZodObject<{
|
|
|
4067
5554
|
gitlab: "gitlab";
|
|
4068
5555
|
azure_devops: "azure_devops";
|
|
4069
5556
|
}>>;
|
|
5557
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
5558
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
5559
|
+
read: "read";
|
|
5560
|
+
write: "write";
|
|
5561
|
+
}>>;
|
|
4070
5562
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4071
5563
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4072
5564
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -4084,6 +5576,15 @@ declare const Session: z.ZodObject<{
|
|
|
4084
5576
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4085
5577
|
}, z.core.$strip>>;
|
|
4086
5578
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5579
|
+
createdBy: z.ZodObject<{
|
|
5580
|
+
subjectId: z.ZodString;
|
|
5581
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5582
|
+
kind: z.ZodEnum<{
|
|
5583
|
+
service: "service";
|
|
5584
|
+
subject: "subject";
|
|
5585
|
+
}>;
|
|
5586
|
+
}, z.core.$strip>;
|
|
5587
|
+
createdByContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4087
5588
|
model: z.ZodString;
|
|
4088
5589
|
sandboxBackend: z.ZodEnum<{
|
|
4089
5590
|
docker: "docker";
|
|
@@ -4156,6 +5657,27 @@ declare const Session: z.ZodObject<{
|
|
|
4156
5657
|
url: z.ZodString;
|
|
4157
5658
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4158
5659
|
credentialVersion: z.ZodNumber;
|
|
5660
|
+
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
5661
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
5662
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
5663
|
+
providerDomain: z.ZodString;
|
|
5664
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
5665
|
+
oauth2: "oauth2";
|
|
5666
|
+
api_key: "api_key";
|
|
5667
|
+
app_install: "app_install";
|
|
5668
|
+
delegated: "delegated";
|
|
5669
|
+
}>>;
|
|
5670
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5671
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
5672
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5673
|
+
id: z.ZodString;
|
|
5674
|
+
kind: z.ZodLiteral<"repository">;
|
|
5675
|
+
}, z.core.$strict>>>;
|
|
5676
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
5677
|
+
subject: "subject";
|
|
5678
|
+
workspace: "workspace";
|
|
5679
|
+
}>>;
|
|
5680
|
+
}, z.core.$strict>>>;
|
|
4159
5681
|
}, z.core.$strict>>>;
|
|
4160
5682
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
4161
5683
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
@@ -4165,15 +5687,78 @@ declare const Session: z.ZodObject<{
|
|
|
4165
5687
|
queueVersion: z.ZodNumber;
|
|
4166
5688
|
queueHeadPosition: z.ZodNumber;
|
|
4167
5689
|
queueTailPosition: z.ZodNumber;
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
5690
|
+
effectiveControl: z.ZodObject<{
|
|
5691
|
+
state: z.ZodEnum<{
|
|
5692
|
+
active: "active";
|
|
5693
|
+
paused: "paused";
|
|
5694
|
+
}>;
|
|
5695
|
+
controlVersion: z.ZodNumber;
|
|
5696
|
+
controlEtag: z.ZodString;
|
|
5697
|
+
directState: z.ZodEnum<{
|
|
5698
|
+
active: "active";
|
|
5699
|
+
paused: "paused";
|
|
5700
|
+
}>;
|
|
5701
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
5702
|
+
kind: z.ZodEnum<{
|
|
5703
|
+
workspace: "workspace";
|
|
5704
|
+
session: "session";
|
|
5705
|
+
}>;
|
|
5706
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5707
|
+
displayName: z.ZodString;
|
|
5708
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
5709
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
5710
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
5711
|
+
revision: z.ZodNumber;
|
|
5712
|
+
}, z.core.$strip>>;
|
|
5713
|
+
additionalBlockerCount: z.ZodNumber;
|
|
5714
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
5715
|
+
kind: z.ZodEnum<{
|
|
5716
|
+
workspace: "workspace";
|
|
5717
|
+
session: "session";
|
|
5718
|
+
}>;
|
|
5719
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5720
|
+
displayName: z.ZodString;
|
|
5721
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
5722
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
5723
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
5724
|
+
revision: z.ZodNumber;
|
|
5725
|
+
}, z.core.$strip>>;
|
|
5726
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
5727
|
+
scope: z.ZodEnum<{
|
|
5728
|
+
workspace: "workspace";
|
|
5729
|
+
session: "session";
|
|
5730
|
+
selected: "selected";
|
|
5731
|
+
}>;
|
|
5732
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
5733
|
+
selectedStateAfter: z.ZodEnum<{
|
|
5734
|
+
active: "active";
|
|
5735
|
+
paused: "paused";
|
|
5736
|
+
}>;
|
|
5737
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
5738
|
+
kind: z.ZodEnum<{
|
|
5739
|
+
workspace: "workspace";
|
|
5740
|
+
session: "session";
|
|
5741
|
+
}>;
|
|
5742
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5743
|
+
displayName: z.ZodString;
|
|
5744
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
5745
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
5746
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
5747
|
+
revision: z.ZodNumber;
|
|
5748
|
+
}, z.core.$strip>>;
|
|
5749
|
+
impactCopy: z.ZodString;
|
|
5750
|
+
}, z.core.$strip>>;
|
|
5751
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
5752
|
+
rootSessionId: z.ZodString;
|
|
5753
|
+
revision: z.ZodNumber;
|
|
5754
|
+
}, z.core.$strip>>;
|
|
5755
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
5756
|
+
state: z.ZodLiteral<"stopping">;
|
|
5757
|
+
attemptCount: z.ZodNumber;
|
|
5758
|
+
interruptionPendingCount: z.ZodNumber;
|
|
5759
|
+
quiescencePendingCount: z.ZodNumber;
|
|
5760
|
+
}, z.core.$strip>>;
|
|
5761
|
+
}, z.core.$strip>;
|
|
4177
5762
|
lastSequence: z.ZodNumber;
|
|
4178
5763
|
codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
|
|
4179
5764
|
codexLastCredentialId: z.ZodNullable<z.ZodString>;
|
|
@@ -4188,33 +5773,298 @@ declare const Session: z.ZodObject<{
|
|
|
4188
5773
|
attentionDescendants: z.ZodNumber;
|
|
4189
5774
|
pausedDescendants: z.ZodNumber;
|
|
4190
5775
|
failedDescendants: z.ZodNumber;
|
|
5776
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
4191
5777
|
}, z.core.$strip>>;
|
|
4192
5778
|
createdAt: z.ZodString;
|
|
4193
5779
|
updatedAt: z.ZodString;
|
|
4194
5780
|
}, z.core.$strip>;
|
|
4195
5781
|
type Session = z.infer<typeof Session>;
|
|
4196
|
-
type SessionSummary = Session;
|
|
4197
5782
|
/**
|
|
4198
|
-
*
|
|
4199
|
-
*
|
|
4200
|
-
*
|
|
4201
|
-
* ordinary rows and ordered by pinnedAt DESC, id DESC.
|
|
5783
|
+
* Additive receipt returned only by session creation. `activeTurnId` remains an
|
|
5784
|
+
* execution pointer and is correctly null while the first turn is queued;
|
|
5785
|
+
* embedders use this immutable identity to correlate their preallocated run.
|
|
4202
5786
|
*/
|
|
4203
|
-
declare const
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
5787
|
+
declare const CreateSessionResponse: z.ZodObject<{
|
|
5788
|
+
id: z.ZodString;
|
|
5789
|
+
workspaceId: z.ZodString;
|
|
5790
|
+
accountId: z.ZodString;
|
|
5791
|
+
status: z.ZodEnum<{
|
|
5792
|
+
queued: "queued";
|
|
5793
|
+
running: "running";
|
|
5794
|
+
idle: "idle";
|
|
5795
|
+
requires_action: "requires_action";
|
|
5796
|
+
recovering: "recovering";
|
|
5797
|
+
waiting_capacity: "waiting_capacity";
|
|
5798
|
+
failed: "failed";
|
|
5799
|
+
cancelled: "cancelled";
|
|
5800
|
+
}>;
|
|
5801
|
+
initialMessage: z.ZodString;
|
|
5802
|
+
title: z.ZodNullable<z.ZodString>;
|
|
5803
|
+
titleSource: z.ZodNullable<z.ZodEnum<{
|
|
5804
|
+
user: "user";
|
|
5805
|
+
agent: "agent";
|
|
5806
|
+
}>>;
|
|
5807
|
+
instructions: z.ZodNullable<z.ZodString>;
|
|
5808
|
+
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5809
|
+
kind: z.ZodLiteral<"repository">;
|
|
5810
|
+
uri: z.ZodString;
|
|
5811
|
+
ref: z.ZodString;
|
|
5812
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
5813
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
5814
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
5815
|
+
github: "github";
|
|
5816
|
+
gitlab: "gitlab";
|
|
5817
|
+
azure_devops: "azure_devops";
|
|
5818
|
+
}>>;
|
|
5819
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
5820
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
5821
|
+
read: "read";
|
|
5822
|
+
write: "write";
|
|
5823
|
+
}>>;
|
|
5824
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
5825
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
5826
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
5827
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
5828
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
5829
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
5830
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5831
|
+
kind: z.ZodLiteral<"file">;
|
|
5832
|
+
fileId: z.ZodString;
|
|
5833
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
5834
|
+
}, z.core.$strip>], "kind">>;
|
|
5835
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
5836
|
+
kind: z.ZodLiteral<"mcp">;
|
|
5837
|
+
id: z.ZodString;
|
|
5838
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
5839
|
+
}, z.core.$strip>>;
|
|
5840
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5841
|
+
createdBy: z.ZodObject<{
|
|
5842
|
+
subjectId: z.ZodString;
|
|
5843
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5844
|
+
kind: z.ZodEnum<{
|
|
5845
|
+
service: "service";
|
|
5846
|
+
subject: "subject";
|
|
5847
|
+
}>;
|
|
5848
|
+
}, z.core.$strip>;
|
|
5849
|
+
createdByContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5850
|
+
model: z.ZodString;
|
|
5851
|
+
sandboxBackend: z.ZodEnum<{
|
|
5852
|
+
docker: "docker";
|
|
5853
|
+
modal: "modal";
|
|
5854
|
+
local: "local";
|
|
5855
|
+
none: "none";
|
|
5856
|
+
daytona: "daytona";
|
|
5857
|
+
runloop: "runloop";
|
|
5858
|
+
e2b: "e2b";
|
|
5859
|
+
blaxel: "blaxel";
|
|
5860
|
+
cloudflare: "cloudflare";
|
|
5861
|
+
vercel: "vercel";
|
|
5862
|
+
selfhosted: "selfhosted";
|
|
5863
|
+
}>;
|
|
5864
|
+
sandboxOs: z.ZodEnum<{
|
|
5865
|
+
linux: "linux";
|
|
5866
|
+
macos: "macos";
|
|
5867
|
+
windows: "windows";
|
|
5868
|
+
}>;
|
|
5869
|
+
sandboxGroupId: z.ZodString;
|
|
5870
|
+
activeSandboxId: z.ZodNullable<z.ZodString>;
|
|
5871
|
+
activeEpoch: z.ZodNumber;
|
|
5872
|
+
variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5873
|
+
environmentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5874
|
+
rigId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5875
|
+
rigVersionId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5876
|
+
firstPartyMcpPermissions: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
5877
|
+
"account:read": "account:read";
|
|
5878
|
+
"account:admin": "account:admin";
|
|
5879
|
+
"members:manage": "members:manage";
|
|
5880
|
+
"workspace:create": "workspace:create";
|
|
5881
|
+
"billing:read": "billing:read";
|
|
5882
|
+
"billing:manage": "billing:manage";
|
|
5883
|
+
"workspace:read": "workspace:read";
|
|
5884
|
+
"workspace:admin": "workspace:admin";
|
|
5885
|
+
"sessions:create": "sessions:create";
|
|
5886
|
+
"sessions:read": "sessions:read";
|
|
5887
|
+
"sessions:control": "sessions:control";
|
|
5888
|
+
"stream:view": "stream:view";
|
|
5889
|
+
"stream:control": "stream:control";
|
|
5890
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
5891
|
+
"files:upload": "files:upload";
|
|
5892
|
+
"files:read": "files:read";
|
|
5893
|
+
"files:write": "files:write";
|
|
5894
|
+
"terminal:attach": "terminal:attach";
|
|
5895
|
+
"documents:manage": "documents:manage";
|
|
5896
|
+
"documents:search": "documents:search";
|
|
5897
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
5898
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
5899
|
+
"github:manage": "github:manage";
|
|
5900
|
+
"github:use": "github:use";
|
|
5901
|
+
"api_keys:manage": "api_keys:manage";
|
|
5902
|
+
"connections:read": "connections:read";
|
|
5903
|
+
"connections:write": "connections:write";
|
|
5904
|
+
"environments:manage": "environments:manage";
|
|
5905
|
+
"environments:use": "environments:use";
|
|
5906
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
5907
|
+
"variable-sets:use": "variable-sets:use";
|
|
5908
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
5909
|
+
"toolspace:call": "toolspace:call";
|
|
5910
|
+
"goals:manage": "goals:manage";
|
|
5911
|
+
"enrollments:read": "enrollments:read";
|
|
5912
|
+
"enrollments:manage": "enrollments:manage";
|
|
5913
|
+
"rigs:use": "rigs:use";
|
|
5914
|
+
"rigs:manage": "rigs:manage";
|
|
5915
|
+
}>>>;
|
|
5916
|
+
mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5917
|
+
id: z.ZodString;
|
|
5918
|
+
name: z.ZodNullable<z.ZodString>;
|
|
5919
|
+
url: z.ZodString;
|
|
5920
|
+
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
5921
|
+
credentialVersion: z.ZodNumber;
|
|
5922
|
+
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
5923
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
5924
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
5925
|
+
providerDomain: z.ZodString;
|
|
5926
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
5927
|
+
oauth2: "oauth2";
|
|
5928
|
+
api_key: "api_key";
|
|
5929
|
+
app_install: "app_install";
|
|
5930
|
+
delegated: "delegated";
|
|
5931
|
+
}>>;
|
|
5932
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5933
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
5934
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5935
|
+
id: z.ZodString;
|
|
5936
|
+
kind: z.ZodLiteral<"repository">;
|
|
5937
|
+
}, z.core.$strict>>>;
|
|
5938
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
5939
|
+
subject: "subject";
|
|
5940
|
+
workspace: "workspace";
|
|
5941
|
+
}>>;
|
|
5942
|
+
}, z.core.$strict>>>;
|
|
5943
|
+
}, z.core.$strict>>>;
|
|
5944
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
5945
|
+
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
5946
|
+
temporalWorkflowId: z.ZodNullable<z.ZodString>;
|
|
5947
|
+
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
5948
|
+
lastInputTokens: z.ZodNullable<z.ZodNumber>;
|
|
5949
|
+
queueVersion: z.ZodNumber;
|
|
5950
|
+
queueHeadPosition: z.ZodNumber;
|
|
5951
|
+
queueTailPosition: z.ZodNumber;
|
|
5952
|
+
effectiveControl: z.ZodObject<{
|
|
5953
|
+
state: z.ZodEnum<{
|
|
5954
|
+
active: "active";
|
|
5955
|
+
paused: "paused";
|
|
5956
|
+
}>;
|
|
5957
|
+
controlVersion: z.ZodNumber;
|
|
5958
|
+
controlEtag: z.ZodString;
|
|
5959
|
+
directState: z.ZodEnum<{
|
|
5960
|
+
active: "active";
|
|
5961
|
+
paused: "paused";
|
|
5962
|
+
}>;
|
|
5963
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
5964
|
+
kind: z.ZodEnum<{
|
|
5965
|
+
workspace: "workspace";
|
|
5966
|
+
session: "session";
|
|
5967
|
+
}>;
|
|
5968
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5969
|
+
displayName: z.ZodString;
|
|
5970
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
5971
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
5972
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
5973
|
+
revision: z.ZodNumber;
|
|
5974
|
+
}, z.core.$strip>>;
|
|
5975
|
+
additionalBlockerCount: z.ZodNumber;
|
|
5976
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
5977
|
+
kind: z.ZodEnum<{
|
|
5978
|
+
workspace: "workspace";
|
|
5979
|
+
session: "session";
|
|
5980
|
+
}>;
|
|
5981
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
5982
|
+
displayName: z.ZodString;
|
|
5983
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
5984
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
5985
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
5986
|
+
revision: z.ZodNumber;
|
|
5987
|
+
}, z.core.$strip>>;
|
|
5988
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
5989
|
+
scope: z.ZodEnum<{
|
|
5990
|
+
workspace: "workspace";
|
|
5991
|
+
session: "session";
|
|
5992
|
+
selected: "selected";
|
|
5993
|
+
}>;
|
|
5994
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
5995
|
+
selectedStateAfter: z.ZodEnum<{
|
|
5996
|
+
active: "active";
|
|
5997
|
+
paused: "paused";
|
|
5998
|
+
}>;
|
|
5999
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
6000
|
+
kind: z.ZodEnum<{
|
|
6001
|
+
workspace: "workspace";
|
|
6002
|
+
session: "session";
|
|
6003
|
+
}>;
|
|
6004
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6005
|
+
displayName: z.ZodString;
|
|
6006
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6007
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6008
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6009
|
+
revision: z.ZodNumber;
|
|
6010
|
+
}, z.core.$strip>>;
|
|
6011
|
+
impactCopy: z.ZodString;
|
|
6012
|
+
}, z.core.$strip>>;
|
|
6013
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
6014
|
+
rootSessionId: z.ZodString;
|
|
6015
|
+
revision: z.ZodNumber;
|
|
6016
|
+
}, z.core.$strip>>;
|
|
6017
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
6018
|
+
state: z.ZodLiteral<"stopping">;
|
|
6019
|
+
attemptCount: z.ZodNumber;
|
|
6020
|
+
interruptionPendingCount: z.ZodNumber;
|
|
6021
|
+
quiescencePendingCount: z.ZodNumber;
|
|
6022
|
+
}, z.core.$strip>>;
|
|
6023
|
+
}, z.core.$strip>;
|
|
6024
|
+
lastSequence: z.ZodNumber;
|
|
6025
|
+
codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
|
|
6026
|
+
codexLastCredentialId: z.ZodNullable<z.ZodString>;
|
|
6027
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
6028
|
+
pinnedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6029
|
+
pinVersion: z.ZodDefault<z.ZodNumber>;
|
|
6030
|
+
treeStats: z.ZodOptional<z.ZodObject<{
|
|
6031
|
+
directChildren: z.ZodNumber;
|
|
6032
|
+
totalDescendants: z.ZodNumber;
|
|
6033
|
+
runningDescendants: z.ZodNumber;
|
|
6034
|
+
queuedDescendants: z.ZodNumber;
|
|
6035
|
+
attentionDescendants: z.ZodNumber;
|
|
6036
|
+
pausedDescendants: z.ZodNumber;
|
|
6037
|
+
failedDescendants: z.ZodNumber;
|
|
6038
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
6039
|
+
}, z.core.$strip>>;
|
|
6040
|
+
createdAt: z.ZodString;
|
|
6041
|
+
updatedAt: z.ZodString;
|
|
6042
|
+
initialTurnId: z.ZodNullable<z.ZodString>;
|
|
6043
|
+
}, z.core.$strip>;
|
|
6044
|
+
type CreateSessionResponse = z.infer<typeof CreateSessionResponse>;
|
|
6045
|
+
type SessionSummary = Session;
|
|
6046
|
+
/**
|
|
6047
|
+
* The canonical session-list page. Pinned rows are returned separately and are
|
|
6048
|
+
* excluded from `sessions`, so a cursor can page ordinary recency rows without
|
|
6049
|
+
* duplicating a pin. The newest 100 matching pins are returned, ordered by
|
|
6050
|
+
* pinnedAt DESC, id DESC; `pinnedTruncated` makes an older-pin omission
|
|
6051
|
+
* explicit. Pins are filtered by the same parent/search predicates as ordinary
|
|
6052
|
+
* rows.
|
|
6053
|
+
*/
|
|
6054
|
+
declare const SessionListResponse: z.ZodObject<{
|
|
6055
|
+
pinned: z.ZodArray<z.ZodObject<{
|
|
6056
|
+
id: z.ZodString;
|
|
6057
|
+
workspaceId: z.ZodString;
|
|
6058
|
+
accountId: z.ZodString;
|
|
6059
|
+
status: z.ZodEnum<{
|
|
6060
|
+
queued: "queued";
|
|
6061
|
+
running: "running";
|
|
6062
|
+
idle: "idle";
|
|
6063
|
+
requires_action: "requires_action";
|
|
6064
|
+
recovering: "recovering";
|
|
6065
|
+
waiting_capacity: "waiting_capacity";
|
|
6066
|
+
failed: "failed";
|
|
6067
|
+
cancelled: "cancelled";
|
|
4218
6068
|
}>;
|
|
4219
6069
|
initialMessage: z.ZodString;
|
|
4220
6070
|
title: z.ZodNullable<z.ZodString>;
|
|
@@ -4234,6 +6084,11 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4234
6084
|
gitlab: "gitlab";
|
|
4235
6085
|
azure_devops: "azure_devops";
|
|
4236
6086
|
}>>;
|
|
6087
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
6088
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
6089
|
+
read: "read";
|
|
6090
|
+
write: "write";
|
|
6091
|
+
}>>;
|
|
4237
6092
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4238
6093
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4239
6094
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -4251,6 +6106,15 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4251
6106
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4252
6107
|
}, z.core.$strip>>;
|
|
4253
6108
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6109
|
+
createdBy: z.ZodObject<{
|
|
6110
|
+
subjectId: z.ZodString;
|
|
6111
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6112
|
+
kind: z.ZodEnum<{
|
|
6113
|
+
service: "service";
|
|
6114
|
+
subject: "subject";
|
|
6115
|
+
}>;
|
|
6116
|
+
}, z.core.$strip>;
|
|
6117
|
+
createdByContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4254
6118
|
model: z.ZodString;
|
|
4255
6119
|
sandboxBackend: z.ZodEnum<{
|
|
4256
6120
|
docker: "docker";
|
|
@@ -4323,6 +6187,27 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4323
6187
|
url: z.ZodString;
|
|
4324
6188
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4325
6189
|
credentialVersion: z.ZodNumber;
|
|
6190
|
+
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6191
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
6192
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
6193
|
+
providerDomain: z.ZodString;
|
|
6194
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6195
|
+
oauth2: "oauth2";
|
|
6196
|
+
api_key: "api_key";
|
|
6197
|
+
app_install: "app_install";
|
|
6198
|
+
delegated: "delegated";
|
|
6199
|
+
}>>;
|
|
6200
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6201
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
6202
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6203
|
+
id: z.ZodString;
|
|
6204
|
+
kind: z.ZodLiteral<"repository">;
|
|
6205
|
+
}, z.core.$strict>>>;
|
|
6206
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
6207
|
+
subject: "subject";
|
|
6208
|
+
workspace: "workspace";
|
|
6209
|
+
}>>;
|
|
6210
|
+
}, z.core.$strict>>>;
|
|
4326
6211
|
}, z.core.$strict>>>;
|
|
4327
6212
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
4328
6213
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
@@ -4332,15 +6217,78 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4332
6217
|
queueVersion: z.ZodNumber;
|
|
4333
6218
|
queueHeadPosition: z.ZodNumber;
|
|
4334
6219
|
queueTailPosition: z.ZodNumber;
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
6220
|
+
effectiveControl: z.ZodObject<{
|
|
6221
|
+
state: z.ZodEnum<{
|
|
6222
|
+
active: "active";
|
|
6223
|
+
paused: "paused";
|
|
6224
|
+
}>;
|
|
6225
|
+
controlVersion: z.ZodNumber;
|
|
6226
|
+
controlEtag: z.ZodString;
|
|
6227
|
+
directState: z.ZodEnum<{
|
|
6228
|
+
active: "active";
|
|
6229
|
+
paused: "paused";
|
|
6230
|
+
}>;
|
|
6231
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
6232
|
+
kind: z.ZodEnum<{
|
|
6233
|
+
workspace: "workspace";
|
|
6234
|
+
session: "session";
|
|
6235
|
+
}>;
|
|
6236
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6237
|
+
displayName: z.ZodString;
|
|
6238
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6239
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6240
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6241
|
+
revision: z.ZodNumber;
|
|
6242
|
+
}, z.core.$strip>>;
|
|
6243
|
+
additionalBlockerCount: z.ZodNumber;
|
|
6244
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
6245
|
+
kind: z.ZodEnum<{
|
|
6246
|
+
workspace: "workspace";
|
|
6247
|
+
session: "session";
|
|
6248
|
+
}>;
|
|
6249
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6250
|
+
displayName: z.ZodString;
|
|
6251
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6252
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6253
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6254
|
+
revision: z.ZodNumber;
|
|
6255
|
+
}, z.core.$strip>>;
|
|
6256
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6257
|
+
scope: z.ZodEnum<{
|
|
6258
|
+
workspace: "workspace";
|
|
6259
|
+
session: "session";
|
|
6260
|
+
selected: "selected";
|
|
6261
|
+
}>;
|
|
6262
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
6263
|
+
selectedStateAfter: z.ZodEnum<{
|
|
6264
|
+
active: "active";
|
|
6265
|
+
paused: "paused";
|
|
6266
|
+
}>;
|
|
6267
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
6268
|
+
kind: z.ZodEnum<{
|
|
6269
|
+
workspace: "workspace";
|
|
6270
|
+
session: "session";
|
|
6271
|
+
}>;
|
|
6272
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6273
|
+
displayName: z.ZodString;
|
|
6274
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6275
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6276
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6277
|
+
revision: z.ZodNumber;
|
|
6278
|
+
}, z.core.$strip>>;
|
|
6279
|
+
impactCopy: z.ZodString;
|
|
6280
|
+
}, z.core.$strip>>;
|
|
6281
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
6282
|
+
rootSessionId: z.ZodString;
|
|
6283
|
+
revision: z.ZodNumber;
|
|
6284
|
+
}, z.core.$strip>>;
|
|
6285
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
6286
|
+
state: z.ZodLiteral<"stopping">;
|
|
6287
|
+
attemptCount: z.ZodNumber;
|
|
6288
|
+
interruptionPendingCount: z.ZodNumber;
|
|
6289
|
+
quiescencePendingCount: z.ZodNumber;
|
|
6290
|
+
}, z.core.$strip>>;
|
|
6291
|
+
}, z.core.$strip>;
|
|
4344
6292
|
lastSequence: z.ZodNumber;
|
|
4345
6293
|
codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
|
|
4346
6294
|
codexLastCredentialId: z.ZodNullable<z.ZodString>;
|
|
@@ -4355,10 +6303,12 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4355
6303
|
attentionDescendants: z.ZodNumber;
|
|
4356
6304
|
pausedDescendants: z.ZodNumber;
|
|
4357
6305
|
failedDescendants: z.ZodNumber;
|
|
6306
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
4358
6307
|
}, z.core.$strip>>;
|
|
4359
6308
|
createdAt: z.ZodString;
|
|
4360
6309
|
updatedAt: z.ZodString;
|
|
4361
6310
|
}, z.core.$strip>>;
|
|
6311
|
+
pinnedTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
4362
6312
|
sessions: z.ZodArray<z.ZodObject<{
|
|
4363
6313
|
id: z.ZodString;
|
|
4364
6314
|
workspaceId: z.ZodString;
|
|
@@ -4370,7 +6320,6 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4370
6320
|
requires_action: "requires_action";
|
|
4371
6321
|
recovering: "recovering";
|
|
4372
6322
|
waiting_capacity: "waiting_capacity";
|
|
4373
|
-
paused: "paused";
|
|
4374
6323
|
failed: "failed";
|
|
4375
6324
|
cancelled: "cancelled";
|
|
4376
6325
|
}>;
|
|
@@ -4392,6 +6341,11 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4392
6341
|
gitlab: "gitlab";
|
|
4393
6342
|
azure_devops: "azure_devops";
|
|
4394
6343
|
}>>;
|
|
6344
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
6345
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
6346
|
+
read: "read";
|
|
6347
|
+
write: "write";
|
|
6348
|
+
}>>;
|
|
4395
6349
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4396
6350
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4397
6351
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -4409,6 +6363,15 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4409
6363
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4410
6364
|
}, z.core.$strip>>;
|
|
4411
6365
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6366
|
+
createdBy: z.ZodObject<{
|
|
6367
|
+
subjectId: z.ZodString;
|
|
6368
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6369
|
+
kind: z.ZodEnum<{
|
|
6370
|
+
service: "service";
|
|
6371
|
+
subject: "subject";
|
|
6372
|
+
}>;
|
|
6373
|
+
}, z.core.$strip>;
|
|
6374
|
+
createdByContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4412
6375
|
model: z.ZodString;
|
|
4413
6376
|
sandboxBackend: z.ZodEnum<{
|
|
4414
6377
|
docker: "docker";
|
|
@@ -4481,6 +6444,27 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4481
6444
|
url: z.ZodString;
|
|
4482
6445
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4483
6446
|
credentialVersion: z.ZodNumber;
|
|
6447
|
+
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6448
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
6449
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
6450
|
+
providerDomain: z.ZodString;
|
|
6451
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6452
|
+
oauth2: "oauth2";
|
|
6453
|
+
api_key: "api_key";
|
|
6454
|
+
app_install: "app_install";
|
|
6455
|
+
delegated: "delegated";
|
|
6456
|
+
}>>;
|
|
6457
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6458
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
6459
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6460
|
+
id: z.ZodString;
|
|
6461
|
+
kind: z.ZodLiteral<"repository">;
|
|
6462
|
+
}, z.core.$strict>>>;
|
|
6463
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
6464
|
+
subject: "subject";
|
|
6465
|
+
workspace: "workspace";
|
|
6466
|
+
}>>;
|
|
6467
|
+
}, z.core.$strict>>>;
|
|
4484
6468
|
}, z.core.$strict>>>;
|
|
4485
6469
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
4486
6470
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
@@ -4490,29 +6474,93 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
4490
6474
|
queueVersion: z.ZodNumber;
|
|
4491
6475
|
queueHeadPosition: z.ZodNumber;
|
|
4492
6476
|
queueTailPosition: z.ZodNumber;
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
6477
|
+
effectiveControl: z.ZodObject<{
|
|
6478
|
+
state: z.ZodEnum<{
|
|
6479
|
+
active: "active";
|
|
6480
|
+
paused: "paused";
|
|
6481
|
+
}>;
|
|
6482
|
+
controlVersion: z.ZodNumber;
|
|
6483
|
+
controlEtag: z.ZodString;
|
|
6484
|
+
directState: z.ZodEnum<{
|
|
6485
|
+
active: "active";
|
|
6486
|
+
paused: "paused";
|
|
6487
|
+
}>;
|
|
6488
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
6489
|
+
kind: z.ZodEnum<{
|
|
6490
|
+
workspace: "workspace";
|
|
6491
|
+
session: "session";
|
|
6492
|
+
}>;
|
|
6493
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6494
|
+
displayName: z.ZodString;
|
|
6495
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6496
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6497
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6498
|
+
revision: z.ZodNumber;
|
|
6499
|
+
}, z.core.$strip>>;
|
|
6500
|
+
additionalBlockerCount: z.ZodNumber;
|
|
6501
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
6502
|
+
kind: z.ZodEnum<{
|
|
6503
|
+
workspace: "workspace";
|
|
6504
|
+
session: "session";
|
|
6505
|
+
}>;
|
|
6506
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6507
|
+
displayName: z.ZodString;
|
|
6508
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6509
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6510
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6511
|
+
revision: z.ZodNumber;
|
|
6512
|
+
}, z.core.$strip>>;
|
|
6513
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6514
|
+
scope: z.ZodEnum<{
|
|
6515
|
+
workspace: "workspace";
|
|
6516
|
+
session: "session";
|
|
6517
|
+
selected: "selected";
|
|
6518
|
+
}>;
|
|
6519
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
6520
|
+
selectedStateAfter: z.ZodEnum<{
|
|
6521
|
+
active: "active";
|
|
6522
|
+
paused: "paused";
|
|
6523
|
+
}>;
|
|
6524
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
6525
|
+
kind: z.ZodEnum<{
|
|
6526
|
+
workspace: "workspace";
|
|
6527
|
+
session: "session";
|
|
6528
|
+
}>;
|
|
6529
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6530
|
+
displayName: z.ZodString;
|
|
6531
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6532
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6533
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6534
|
+
revision: z.ZodNumber;
|
|
6535
|
+
}, z.core.$strip>>;
|
|
6536
|
+
impactCopy: z.ZodString;
|
|
6537
|
+
}, z.core.$strip>>;
|
|
6538
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
6539
|
+
rootSessionId: z.ZodString;
|
|
6540
|
+
revision: z.ZodNumber;
|
|
6541
|
+
}, z.core.$strip>>;
|
|
6542
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
6543
|
+
state: z.ZodLiteral<"stopping">;
|
|
6544
|
+
attemptCount: z.ZodNumber;
|
|
6545
|
+
interruptionPendingCount: z.ZodNumber;
|
|
6546
|
+
quiescencePendingCount: z.ZodNumber;
|
|
6547
|
+
}, z.core.$strip>>;
|
|
6548
|
+
}, z.core.$strip>;
|
|
6549
|
+
lastSequence: z.ZodNumber;
|
|
6550
|
+
codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
|
|
6551
|
+
codexLastCredentialId: z.ZodNullable<z.ZodString>;
|
|
6552
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
6553
|
+
pinnedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
6554
|
+
pinVersion: z.ZodDefault<z.ZodNumber>;
|
|
6555
|
+
treeStats: z.ZodOptional<z.ZodObject<{
|
|
6556
|
+
directChildren: z.ZodNumber;
|
|
6557
|
+
totalDescendants: z.ZodNumber;
|
|
6558
|
+
runningDescendants: z.ZodNumber;
|
|
6559
|
+
queuedDescendants: z.ZodNumber;
|
|
4513
6560
|
attentionDescendants: z.ZodNumber;
|
|
4514
6561
|
pausedDescendants: z.ZodNumber;
|
|
4515
6562
|
failedDescendants: z.ZodNumber;
|
|
6563
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
4516
6564
|
}, z.core.$strip>>;
|
|
4517
6565
|
createdAt: z.ZodString;
|
|
4518
6566
|
updatedAt: z.ZodString;
|
|
@@ -4537,7 +6585,6 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
4537
6585
|
requires_action: "requires_action";
|
|
4538
6586
|
recovering: "recovering";
|
|
4539
6587
|
waiting_capacity: "waiting_capacity";
|
|
4540
|
-
paused: "paused";
|
|
4541
6588
|
failed: "failed";
|
|
4542
6589
|
cancelled: "cancelled";
|
|
4543
6590
|
}>;
|
|
@@ -4559,6 +6606,11 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
4559
6606
|
gitlab: "gitlab";
|
|
4560
6607
|
azure_devops: "azure_devops";
|
|
4561
6608
|
}>>;
|
|
6609
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
6610
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
6611
|
+
read: "read";
|
|
6612
|
+
write: "write";
|
|
6613
|
+
}>>;
|
|
4562
6614
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4563
6615
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4564
6616
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -4576,6 +6628,15 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
4576
6628
|
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4577
6629
|
}, z.core.$strip>>;
|
|
4578
6630
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6631
|
+
createdBy: z.ZodObject<{
|
|
6632
|
+
subjectId: z.ZodString;
|
|
6633
|
+
label: z.ZodOptional<z.ZodString>;
|
|
6634
|
+
kind: z.ZodEnum<{
|
|
6635
|
+
service: "service";
|
|
6636
|
+
subject: "subject";
|
|
6637
|
+
}>;
|
|
6638
|
+
}, z.core.$strip>;
|
|
6639
|
+
createdByContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
4579
6640
|
model: z.ZodString;
|
|
4580
6641
|
sandboxBackend: z.ZodEnum<{
|
|
4581
6642
|
docker: "docker";
|
|
@@ -4648,6 +6709,27 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
4648
6709
|
url: z.ZodString;
|
|
4649
6710
|
headerNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4650
6711
|
credentialVersion: z.ZodNumber;
|
|
6712
|
+
connectionRef: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
6713
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
6714
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
6715
|
+
providerDomain: z.ZodString;
|
|
6716
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6717
|
+
oauth2: "oauth2";
|
|
6718
|
+
api_key: "api_key";
|
|
6719
|
+
app_install: "app_install";
|
|
6720
|
+
delegated: "delegated";
|
|
6721
|
+
}>>;
|
|
6722
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6723
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
6724
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6725
|
+
id: z.ZodString;
|
|
6726
|
+
kind: z.ZodLiteral<"repository">;
|
|
6727
|
+
}, z.core.$strict>>>;
|
|
6728
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
6729
|
+
subject: "subject";
|
|
6730
|
+
workspace: "workspace";
|
|
6731
|
+
}>>;
|
|
6732
|
+
}, z.core.$strict>>>;
|
|
4651
6733
|
}, z.core.$strict>>>;
|
|
4652
6734
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
4653
6735
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
@@ -4657,15 +6739,78 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
4657
6739
|
queueVersion: z.ZodNumber;
|
|
4658
6740
|
queueHeadPosition: z.ZodNumber;
|
|
4659
6741
|
queueTailPosition: z.ZodNumber;
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
6742
|
+
effectiveControl: z.ZodObject<{
|
|
6743
|
+
state: z.ZodEnum<{
|
|
6744
|
+
active: "active";
|
|
6745
|
+
paused: "paused";
|
|
6746
|
+
}>;
|
|
6747
|
+
controlVersion: z.ZodNumber;
|
|
6748
|
+
controlEtag: z.ZodString;
|
|
6749
|
+
directState: z.ZodEnum<{
|
|
6750
|
+
active: "active";
|
|
6751
|
+
paused: "paused";
|
|
6752
|
+
}>;
|
|
6753
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
6754
|
+
kind: z.ZodEnum<{
|
|
6755
|
+
workspace: "workspace";
|
|
6756
|
+
session: "session";
|
|
6757
|
+
}>;
|
|
6758
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6759
|
+
displayName: z.ZodString;
|
|
6760
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6761
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6762
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6763
|
+
revision: z.ZodNumber;
|
|
6764
|
+
}, z.core.$strip>>;
|
|
6765
|
+
additionalBlockerCount: z.ZodNumber;
|
|
6766
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
6767
|
+
kind: z.ZodEnum<{
|
|
6768
|
+
workspace: "workspace";
|
|
6769
|
+
session: "session";
|
|
6770
|
+
}>;
|
|
6771
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6772
|
+
displayName: z.ZodString;
|
|
6773
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6774
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6775
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6776
|
+
revision: z.ZodNumber;
|
|
6777
|
+
}, z.core.$strip>>;
|
|
6778
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6779
|
+
scope: z.ZodEnum<{
|
|
6780
|
+
workspace: "workspace";
|
|
6781
|
+
session: "session";
|
|
6782
|
+
selected: "selected";
|
|
6783
|
+
}>;
|
|
6784
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
6785
|
+
selectedStateAfter: z.ZodEnum<{
|
|
6786
|
+
active: "active";
|
|
6787
|
+
paused: "paused";
|
|
6788
|
+
}>;
|
|
6789
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
6790
|
+
kind: z.ZodEnum<{
|
|
6791
|
+
workspace: "workspace";
|
|
6792
|
+
session: "session";
|
|
6793
|
+
}>;
|
|
6794
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
6795
|
+
displayName: z.ZodString;
|
|
6796
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
6797
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
6798
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
6799
|
+
revision: z.ZodNumber;
|
|
6800
|
+
}, z.core.$strip>>;
|
|
6801
|
+
impactCopy: z.ZodString;
|
|
6802
|
+
}, z.core.$strip>>;
|
|
6803
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
6804
|
+
rootSessionId: z.ZodString;
|
|
6805
|
+
revision: z.ZodNumber;
|
|
6806
|
+
}, z.core.$strip>>;
|
|
6807
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
6808
|
+
state: z.ZodLiteral<"stopping">;
|
|
6809
|
+
attemptCount: z.ZodNumber;
|
|
6810
|
+
interruptionPendingCount: z.ZodNumber;
|
|
6811
|
+
quiescencePendingCount: z.ZodNumber;
|
|
6812
|
+
}, z.core.$strip>>;
|
|
6813
|
+
}, z.core.$strip>;
|
|
4669
6814
|
lastSequence: z.ZodNumber;
|
|
4670
6815
|
codexPinnedCredentialId: z.ZodNullable<z.ZodString>;
|
|
4671
6816
|
codexLastCredentialId: z.ZodNullable<z.ZodString>;
|
|
@@ -4680,6 +6825,7 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
4680
6825
|
attentionDescendants: z.ZodNumber;
|
|
4681
6826
|
pausedDescendants: z.ZodNumber;
|
|
4682
6827
|
failedDescendants: z.ZodNumber;
|
|
6828
|
+
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
4683
6829
|
}, z.core.$strip>>;
|
|
4684
6830
|
createdAt: z.ZodString;
|
|
4685
6831
|
updatedAt: z.ZodString;
|
|
@@ -4690,8 +6836,10 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
4690
6836
|
type SessionLineageResponse = z.infer<typeof SessionLineageResponse>;
|
|
4691
6837
|
declare const SessionEventType: z.ZodEnum<{
|
|
4692
6838
|
"session.created": "session.created";
|
|
6839
|
+
"session.event.envelope_omitted": "session.event.envelope_omitted";
|
|
4693
6840
|
"session.status.changed": "session.status.changed";
|
|
4694
6841
|
"session.requiresAction": "session.requiresAction";
|
|
6842
|
+
"session.humanInput.requested": "session.humanInput.requested";
|
|
4695
6843
|
"session.context.compaction.requested": "session.context.compaction.requested";
|
|
4696
6844
|
"session.context.compacted": "session.context.compacted";
|
|
4697
6845
|
"session.context.compaction.skipped": "session.context.compaction.skipped";
|
|
@@ -4699,6 +6847,7 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
4699
6847
|
"user.message": "user.message";
|
|
4700
6848
|
"user.pause": "user.pause";
|
|
4701
6849
|
"user.approvalDecision": "user.approvalDecision";
|
|
6850
|
+
"user.humanInputResponse": "user.humanInputResponse";
|
|
4702
6851
|
"turn.queued": "turn.queued";
|
|
4703
6852
|
"turn.started": "turn.started";
|
|
4704
6853
|
"turn.completed": "turn.completed";
|
|
@@ -4714,6 +6863,7 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
4714
6863
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
4715
6864
|
"agent.model.usage": "agent.model.usage";
|
|
4716
6865
|
"tool.auth_needed": "tool.auth_needed";
|
|
6866
|
+
"credential.auth_needed": "credential.auth_needed";
|
|
4717
6867
|
"agent.updated": "agent.updated";
|
|
4718
6868
|
"rig.setup.started": "rig.setup.started";
|
|
4719
6869
|
"rig.setup.completed": "rig.setup.completed";
|
|
@@ -4738,6 +6888,7 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
4738
6888
|
"session.control.steer_requested": "session.control.steer_requested";
|
|
4739
6889
|
"workspace.inference.paused": "workspace.inference.paused";
|
|
4740
6890
|
"workspace.inference.resumed": "workspace.inference.resumed";
|
|
6891
|
+
"session.queue.changed": "session.queue.changed";
|
|
4741
6892
|
"session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
|
|
4742
6893
|
"session.queue.history": "session.queue.history";
|
|
4743
6894
|
"turn.event.rejected_late": "turn.event.rejected_late";
|
|
@@ -4776,23 +6927,99 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
4776
6927
|
"machine.runner.restarted": "machine.runner.restarted";
|
|
4777
6928
|
}>;
|
|
4778
6929
|
type SessionEventType = z.infer<typeof SessionEventType>;
|
|
6930
|
+
/**
|
|
6931
|
+
* Stable semantic groups for bounded session monitoring. These are a read
|
|
6932
|
+
* projection only: an event keeps its canonical durable `type`, and callers
|
|
6933
|
+
* can always combine a class with explicit type include/exclude filters.
|
|
6934
|
+
*/
|
|
6935
|
+
declare const SessionEventSemanticClass: z.ZodEnum<{
|
|
6936
|
+
control: "control";
|
|
6937
|
+
failure: "failure";
|
|
6938
|
+
terminal: "terminal";
|
|
6939
|
+
checkpoint: "checkpoint";
|
|
6940
|
+
tool_receipt: "tool_receipt";
|
|
6941
|
+
provider_account: "provider_account";
|
|
6942
|
+
}>;
|
|
6943
|
+
type SessionEventSemanticClass = z.infer<typeof SessionEventSemanticClass>;
|
|
6944
|
+
declare const SessionEventPayloadMode: z.ZodEnum<{
|
|
6945
|
+
none: "none";
|
|
6946
|
+
summary: "summary";
|
|
6947
|
+
full: "full";
|
|
6948
|
+
}>;
|
|
6949
|
+
type SessionEventPayloadMode = z.infer<typeof SessionEventPayloadMode>;
|
|
6950
|
+
declare const SessionEventReadMode: z.ZodEnum<{
|
|
6951
|
+
monitoring: "monitoring";
|
|
6952
|
+
forensic: "forensic";
|
|
6953
|
+
}>;
|
|
6954
|
+
type SessionEventReadMode = z.infer<typeof SessionEventReadMode>;
|
|
6955
|
+
declare const SessionEventReadDirection: z.ZodEnum<{
|
|
6956
|
+
after: "after";
|
|
6957
|
+
before: "before";
|
|
6958
|
+
}>;
|
|
6959
|
+
type SessionEventReadDirection = z.infer<typeof SessionEventReadDirection>;
|
|
6960
|
+
declare const SESSION_EVENT_RAW_DELTA_TYPES: readonly ["agent.message.delta", "agent.reasoning.delta", "sandbox.command.output.delta", "terminal.pty.output.delta"];
|
|
6961
|
+
declare const SESSION_EVENT_SEMANTIC_CLASS_TYPES: {
|
|
6962
|
+
readonly control: readonly ["session.status.changed", "session.requiresAction", "session.humanInput.requested", "user.pause", "user.approvalDecision", "user.humanInputResponse", "goal.set", "goal.updated", "goal.completed", "goal.paused", "goal.resumed", "goal.cleared", "goal.continuation", "system.update.pending", "system.update.delivered", "session.control.paused", "session.control.resumed", "session.control.steer_requested", "workspace.inference.paused", "workspace.inference.resumed", "session.queue.changed", "session.queue.prompt.cancelled"];
|
|
6963
|
+
readonly terminal: readonly ["turn.completed", "turn.failed", "turn.cancelled", "turn.superseded", "goal.completed", "goal.paused", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.completed", "sandbox.operation.failed", "recording.available", "recording.failed", "terminal.pty.exited"];
|
|
6964
|
+
readonly failure: readonly ["session.event.envelope_omitted", "turn.failed", "tool.auth_needed", "credential.auth_needed", "rig.setup.failed", "sandbox.operation.failed", "recording.failed", "sandbox.box.lost", "workspace.revision.degraded", "machine.op.failed", "machine.link.lost"];
|
|
6965
|
+
readonly checkpoint: readonly ["session.context.compaction.requested", "session.context.compacted", "session.context.compaction.skipped", "session.context.cleared", "turn.recovery.requested", "session.queue.history", "sandbox.box.snapshot", "workspace.revision.captured"];
|
|
6966
|
+
readonly tool_receipt: readonly ["agent.toolCall.created", "agent.toolCall.output", "tool.auth_needed", "artifact.created"];
|
|
6967
|
+
readonly provider_account: readonly ["agent.model.usage", "codex.account.switched", "codex.credential.selected", "codex.capacity.waiting", "codex.capacity.resumed", "codex.capacity.superseded", "sandbox.box.created", "sandbox.box.lost", "sandbox.box.terminated", "sandbox.box.snapshot", "sandbox.env.drift", "session.route.reconciled", "machine.op.failed", "machine.op.recovered", "machine.link.lost", "machine.link.restored", "machine.runner.restarted"];
|
|
6968
|
+
};
|
|
6969
|
+
type ResolveSessionEventTypeFiltersInput = {
|
|
6970
|
+
includeTypes?: readonly SessionEventType[] | undefined;
|
|
6971
|
+
excludeTypes?: readonly SessionEventType[] | undefined;
|
|
6972
|
+
includeClasses?: readonly SessionEventSemanticClass[] | undefined;
|
|
6973
|
+
excludeClasses?: readonly SessionEventSemanticClass[] | undefined;
|
|
6974
|
+
/** Applied unless the same type was explicitly included by type or class. */
|
|
6975
|
+
defaultExcludeTypes?: readonly SessionEventType[] | undefined;
|
|
6976
|
+
};
|
|
6977
|
+
/** Resolve class/type filter algebra once so every read surface behaves alike. */
|
|
6978
|
+
declare function resolveSessionEventTypeFilters(input: ResolveSessionEventTypeFiltersInput): {
|
|
6979
|
+
includeTypes: SessionEventType[];
|
|
6980
|
+
excludeTypes: SessionEventType[];
|
|
6981
|
+
};
|
|
4779
6982
|
declare const ToolAuthNeededPayload: z.ZodObject<{
|
|
4780
6983
|
serverId: z.ZodString;
|
|
4781
6984
|
toolName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4782
6985
|
providerDomain: z.ZodString;
|
|
6986
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
4783
6987
|
connectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4784
6988
|
reason: z.ZodEnum<{
|
|
4785
|
-
expired: "expired";
|
|
4786
6989
|
missing_connection: "missing_connection";
|
|
6990
|
+
expired: "expired";
|
|
4787
6991
|
insufficient_scope: "insufficient_scope";
|
|
4788
6992
|
refresh_failed: "refresh_failed";
|
|
6993
|
+
unsupported_auth: "unsupported_auth";
|
|
6994
|
+
resource_scope_unavailable: "resource_scope_unavailable";
|
|
4789
6995
|
}>;
|
|
4790
6996
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4791
6997
|
resource: z.ZodOptional<z.ZodString>;
|
|
6998
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6999
|
+
id: z.ZodString;
|
|
7000
|
+
kind: z.ZodLiteral<"repository">;
|
|
7001
|
+
}, z.core.$strict>>>;
|
|
4792
7002
|
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
4793
7003
|
subjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4794
7004
|
}, z.core.$strip>;
|
|
4795
7005
|
type ToolAuthNeededPayload = z.infer<typeof ToolAuthNeededPayload>;
|
|
7006
|
+
/** A host-owned non-tool credential needed by the active run. */
|
|
7007
|
+
declare const CredentialAuthNeededPayload: z.ZodObject<{
|
|
7008
|
+
credentialClass: z.ZodLiteral<"run">;
|
|
7009
|
+
providerDomain: z.ZodOptional<z.ZodString>;
|
|
7010
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
7011
|
+
reason: z.ZodEnum<{
|
|
7012
|
+
missing_connection: "missing_connection";
|
|
7013
|
+
expired: "expired";
|
|
7014
|
+
insufficient_scope: "insufficient_scope";
|
|
7015
|
+
refresh_failed: "refresh_failed";
|
|
7016
|
+
}>;
|
|
7017
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7018
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
7019
|
+
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
7020
|
+
message: z.ZodOptional<z.ZodString>;
|
|
7021
|
+
}, z.core.$strip>;
|
|
7022
|
+
type CredentialAuthNeededPayload = z.infer<typeof CredentialAuthNeededPayload>;
|
|
4796
7023
|
declare const StreamUrlRotatedPayload: z.ZodObject<{
|
|
4797
7024
|
url: z.ZodString;
|
|
4798
7025
|
token: z.ZodNullable<z.ZodString>;
|
|
@@ -4933,8 +7160,8 @@ declare const FsChangedPayload: z.ZodObject<{
|
|
|
4933
7160
|
oldPath: z.ZodOptional<z.ZodString>;
|
|
4934
7161
|
}, z.core.$strip>>;
|
|
4935
7162
|
source: z.ZodDefault<z.ZodEnum<{
|
|
4936
|
-
agent: "agent";
|
|
4937
7163
|
write: "write";
|
|
7164
|
+
agent: "agent";
|
|
4938
7165
|
watch: "watch";
|
|
4939
7166
|
}>>;
|
|
4940
7167
|
revision: z.ZodNumber;
|
|
@@ -4981,10 +7208,10 @@ declare const TerminalPtyExitedPayload: z.ZodObject<{
|
|
|
4981
7208
|
ptyId: z.ZodString;
|
|
4982
7209
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
4983
7210
|
reason: z.ZodEnum<{
|
|
7211
|
+
timeout: "timeout";
|
|
4984
7212
|
exit: "exit";
|
|
4985
7213
|
killed: "killed";
|
|
4986
7214
|
owner_gone: "owner_gone";
|
|
4987
|
-
timeout: "timeout";
|
|
4988
7215
|
}>;
|
|
4989
7216
|
}, z.core.$strip>;
|
|
4990
7217
|
type TerminalPtyExitedPayload = z.infer<typeof TerminalPtyExitedPayload>;
|
|
@@ -5256,6 +7483,7 @@ type GitFileDiff = z.infer<typeof GitFileDiff>;
|
|
|
5256
7483
|
declare const GitDiffRequest: z.ZodObject<{
|
|
5257
7484
|
path: z.ZodDefault<z.ZodString>;
|
|
5258
7485
|
staged: z.ZodDefault<z.ZodBoolean>;
|
|
7486
|
+
includeUntracked: z.ZodDefault<z.ZodBoolean>;
|
|
5259
7487
|
fromRef: z.ZodOptional<z.ZodString>;
|
|
5260
7488
|
toRef: z.ZodOptional<z.ZodString>;
|
|
5261
7489
|
pathspec: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -5956,8 +8184,10 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
5956
8184
|
sequence: z.ZodNumber;
|
|
5957
8185
|
type: z.ZodEnum<{
|
|
5958
8186
|
"session.created": "session.created";
|
|
8187
|
+
"session.event.envelope_omitted": "session.event.envelope_omitted";
|
|
5959
8188
|
"session.status.changed": "session.status.changed";
|
|
5960
8189
|
"session.requiresAction": "session.requiresAction";
|
|
8190
|
+
"session.humanInput.requested": "session.humanInput.requested";
|
|
5961
8191
|
"session.context.compaction.requested": "session.context.compaction.requested";
|
|
5962
8192
|
"session.context.compacted": "session.context.compacted";
|
|
5963
8193
|
"session.context.compaction.skipped": "session.context.compaction.skipped";
|
|
@@ -5965,6 +8195,7 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
5965
8195
|
"user.message": "user.message";
|
|
5966
8196
|
"user.pause": "user.pause";
|
|
5967
8197
|
"user.approvalDecision": "user.approvalDecision";
|
|
8198
|
+
"user.humanInputResponse": "user.humanInputResponse";
|
|
5968
8199
|
"turn.queued": "turn.queued";
|
|
5969
8200
|
"turn.started": "turn.started";
|
|
5970
8201
|
"turn.completed": "turn.completed";
|
|
@@ -5980,6 +8211,7 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
5980
8211
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
5981
8212
|
"agent.model.usage": "agent.model.usage";
|
|
5982
8213
|
"tool.auth_needed": "tool.auth_needed";
|
|
8214
|
+
"credential.auth_needed": "credential.auth_needed";
|
|
5983
8215
|
"agent.updated": "agent.updated";
|
|
5984
8216
|
"rig.setup.started": "rig.setup.started";
|
|
5985
8217
|
"rig.setup.completed": "rig.setup.completed";
|
|
@@ -6004,6 +8236,7 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
6004
8236
|
"session.control.steer_requested": "session.control.steer_requested";
|
|
6005
8237
|
"workspace.inference.paused": "workspace.inference.paused";
|
|
6006
8238
|
"workspace.inference.resumed": "workspace.inference.resumed";
|
|
8239
|
+
"session.queue.changed": "session.queue.changed";
|
|
6007
8240
|
"session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
|
|
6008
8241
|
"session.queue.history": "session.queue.history";
|
|
6009
8242
|
"turn.event.rejected_late": "turn.event.rejected_late";
|
|
@@ -6056,20 +8289,378 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
6056
8289
|
duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6057
8290
|
}, z.core.$strip>;
|
|
6058
8291
|
type SessionEvent = z.infer<typeof SessionEvent>;
|
|
8292
|
+
/** Wire revision for the durable host event/usage export stream. */
|
|
8293
|
+
declare const OPENGENI_HOST_EXPORT_SCHEMA_REVISION: "2026-07-host-export-v1";
|
|
8294
|
+
/**
|
|
8295
|
+
* Decimal string rather than a JavaScript number: export cursors are PostgreSQL
|
|
8296
|
+
* bigint values and must remain exact beyond Number.MAX_SAFE_INTEGER.
|
|
8297
|
+
*/
|
|
8298
|
+
declare const HostExportCursor: z.ZodString;
|
|
8299
|
+
type HostExportCursor = z.infer<typeof HostExportCursor>;
|
|
8300
|
+
declare const HostExportConsumerId: z.ZodString;
|
|
8301
|
+
type HostExportConsumerId = z.infer<typeof HostExportConsumerId>;
|
|
8302
|
+
declare const HostExportInitiator: z.ZodObject<{
|
|
8303
|
+
kind: z.ZodEnum<{
|
|
8304
|
+
service: "service";
|
|
8305
|
+
subject: "subject";
|
|
8306
|
+
}>;
|
|
8307
|
+
subjectId: z.ZodString;
|
|
8308
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8309
|
+
}, z.core.$strip>;
|
|
8310
|
+
type HostExportInitiator = z.infer<typeof HostExportInitiator>;
|
|
8311
|
+
declare const HostExportInitiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8312
|
+
type HostExportInitiatorContext = z.infer<typeof HostExportInitiatorContext>;
|
|
8313
|
+
/**
|
|
8314
|
+
* Host streams are deliberately forward-tolerant across rolling upgrades.
|
|
8315
|
+
* OpenGeni's application contract enumerates the event types known to this
|
|
8316
|
+
* build, while the durable export may be read by an older host consumer after
|
|
8317
|
+
* a newer writer has committed a bounded type. The database remains the
|
|
8318
|
+
* authority for the byte bounds on these persisted strings.
|
|
8319
|
+
*/
|
|
8320
|
+
declare const HostSessionEvent: z.ZodObject<{
|
|
8321
|
+
id: z.ZodString;
|
|
8322
|
+
workspaceId: z.ZodString;
|
|
8323
|
+
sessionId: z.ZodString;
|
|
8324
|
+
sequence: z.ZodNumber;
|
|
8325
|
+
payload: z.ZodDefault<z.ZodUnknown>;
|
|
8326
|
+
occurredAt: z.ZodString;
|
|
8327
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8328
|
+
turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8329
|
+
turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8330
|
+
duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8331
|
+
type: z.ZodString;
|
|
8332
|
+
clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8333
|
+
turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8334
|
+
duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8335
|
+
}, z.core.$strip>;
|
|
8336
|
+
type HostSessionEvent = z.infer<typeof HostSessionEvent>;
|
|
8337
|
+
/** Export-bounded usage fact; custom bounded metric names remain supported. */
|
|
8338
|
+
declare const HostUsageEvent: z.ZodObject<{
|
|
8339
|
+
id: z.ZodString;
|
|
8340
|
+
workspaceId: z.ZodString;
|
|
8341
|
+
accountId: z.ZodString;
|
|
8342
|
+
quantity: z.ZodNumber;
|
|
8343
|
+
occurredAt: z.ZodString;
|
|
8344
|
+
recordedAt: z.ZodString;
|
|
8345
|
+
exportedToBillingAt: z.ZodNullable<z.ZodString>;
|
|
8346
|
+
subjectId: z.ZodNullable<z.ZodString>;
|
|
8347
|
+
eventType: z.ZodString;
|
|
8348
|
+
unit: z.ZodString;
|
|
8349
|
+
sourceResourceType: z.ZodNullable<z.ZodString>;
|
|
8350
|
+
sourceResourceId: z.ZodNullable<z.ZodString>;
|
|
8351
|
+
idempotencyKey: z.ZodString;
|
|
8352
|
+
billingProviderEventId: z.ZodNullable<z.ZodString>;
|
|
8353
|
+
}, z.core.$strip>;
|
|
8354
|
+
type HostUsageEvent = z.infer<typeof HostUsageEvent>;
|
|
8355
|
+
/**
|
|
8356
|
+
* One immutable, bounded session-event snapshot from the transactional host
|
|
8357
|
+
* outbox. Cross-session cursor order is stable but deliberately non-causal;
|
|
8358
|
+
* within a session, `event.sequence` remains authoritative and monotonic.
|
|
8359
|
+
*/
|
|
8360
|
+
declare const HostEventExport: z.ZodObject<{
|
|
8361
|
+
event: z.ZodObject<{
|
|
8362
|
+
id: z.ZodString;
|
|
8363
|
+
workspaceId: z.ZodString;
|
|
8364
|
+
sessionId: z.ZodString;
|
|
8365
|
+
sequence: z.ZodNumber;
|
|
8366
|
+
payload: z.ZodDefault<z.ZodUnknown>;
|
|
8367
|
+
occurredAt: z.ZodString;
|
|
8368
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8369
|
+
turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8370
|
+
turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8371
|
+
duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8372
|
+
type: z.ZodString;
|
|
8373
|
+
clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8374
|
+
turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8375
|
+
duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8376
|
+
}, z.core.$strip>;
|
|
8377
|
+
initiator: z.ZodNullable<z.ZodObject<{
|
|
8378
|
+
kind: z.ZodEnum<{
|
|
8379
|
+
service: "service";
|
|
8380
|
+
subject: "subject";
|
|
8381
|
+
}>;
|
|
8382
|
+
subjectId: z.ZodString;
|
|
8383
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8384
|
+
}, z.core.$strip>>;
|
|
8385
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8386
|
+
origin: z.ZodNullable<z.ZodEnum<{
|
|
8387
|
+
user: "user";
|
|
8388
|
+
scheduled_task: "scheduled_task";
|
|
8389
|
+
api: "api";
|
|
8390
|
+
goal: "goal";
|
|
8391
|
+
system: "system";
|
|
8392
|
+
compaction: "compaction";
|
|
8393
|
+
}>>;
|
|
8394
|
+
schemaRevision: z.ZodLiteral<"2026-07-host-export-v1">;
|
|
8395
|
+
cursor: z.ZodString;
|
|
8396
|
+
idempotencyKey: z.ZodString;
|
|
8397
|
+
accountId: z.ZodString;
|
|
8398
|
+
workspaceId: z.ZodString;
|
|
8399
|
+
rootSessionId: z.ZodNullable<z.ZodString>;
|
|
8400
|
+
}, z.core.$strip>;
|
|
8401
|
+
type HostEventExport = z.infer<typeof HostEventExport>;
|
|
8402
|
+
/** One exact, idempotency-keyed usage fact from the same ordered outbox. */
|
|
8403
|
+
declare const HostUsageExport: z.ZodObject<{
|
|
8404
|
+
usage: z.ZodObject<{
|
|
8405
|
+
id: z.ZodString;
|
|
8406
|
+
workspaceId: z.ZodString;
|
|
8407
|
+
accountId: z.ZodString;
|
|
8408
|
+
quantity: z.ZodNumber;
|
|
8409
|
+
occurredAt: z.ZodString;
|
|
8410
|
+
recordedAt: z.ZodString;
|
|
8411
|
+
exportedToBillingAt: z.ZodNullable<z.ZodString>;
|
|
8412
|
+
subjectId: z.ZodNullable<z.ZodString>;
|
|
8413
|
+
eventType: z.ZodString;
|
|
8414
|
+
unit: z.ZodString;
|
|
8415
|
+
sourceResourceType: z.ZodNullable<z.ZodString>;
|
|
8416
|
+
sourceResourceId: z.ZodNullable<z.ZodString>;
|
|
8417
|
+
idempotencyKey: z.ZodString;
|
|
8418
|
+
billingProviderEventId: z.ZodNullable<z.ZodString>;
|
|
8419
|
+
}, z.core.$strip>;
|
|
8420
|
+
initiator: z.ZodNullable<z.ZodObject<{
|
|
8421
|
+
kind: z.ZodEnum<{
|
|
8422
|
+
service: "service";
|
|
8423
|
+
subject: "subject";
|
|
8424
|
+
}>;
|
|
8425
|
+
subjectId: z.ZodString;
|
|
8426
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8427
|
+
}, z.core.$strip>>;
|
|
8428
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8429
|
+
origin: z.ZodNullable<z.ZodEnum<{
|
|
8430
|
+
user: "user";
|
|
8431
|
+
scheduled_task: "scheduled_task";
|
|
8432
|
+
api: "api";
|
|
8433
|
+
goal: "goal";
|
|
8434
|
+
system: "system";
|
|
8435
|
+
compaction: "compaction";
|
|
8436
|
+
}>>;
|
|
8437
|
+
schemaRevision: z.ZodLiteral<"2026-07-host-export-v1">;
|
|
8438
|
+
cursor: z.ZodString;
|
|
8439
|
+
accountId: z.ZodString;
|
|
8440
|
+
workspaceId: z.ZodString;
|
|
8441
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
8442
|
+
rootSessionId: z.ZodNullable<z.ZodString>;
|
|
8443
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
8444
|
+
turnAttemptId: z.ZodNullable<z.ZodString>;
|
|
8445
|
+
}, z.core.$strip>;
|
|
8446
|
+
type HostUsageExport = z.infer<typeof HostUsageExport>;
|
|
8447
|
+
declare const HostEventExportBatch: z.ZodObject<{
|
|
8448
|
+
schemaRevision: z.ZodLiteral<"2026-07-host-export-v1">;
|
|
8449
|
+
consumerId: z.ZodString;
|
|
8450
|
+
leaseToken: z.ZodString;
|
|
8451
|
+
checkpoint: z.ZodString;
|
|
8452
|
+
throughCursor: z.ZodString;
|
|
8453
|
+
events: z.ZodArray<z.ZodObject<{
|
|
8454
|
+
event: z.ZodObject<{
|
|
8455
|
+
id: z.ZodString;
|
|
8456
|
+
workspaceId: z.ZodString;
|
|
8457
|
+
sessionId: z.ZodString;
|
|
8458
|
+
sequence: z.ZodNumber;
|
|
8459
|
+
payload: z.ZodDefault<z.ZodUnknown>;
|
|
8460
|
+
occurredAt: z.ZodString;
|
|
8461
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8462
|
+
turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8463
|
+
turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8464
|
+
duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8465
|
+
type: z.ZodString;
|
|
8466
|
+
clientEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8467
|
+
turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8468
|
+
duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8469
|
+
}, z.core.$strip>;
|
|
8470
|
+
initiator: z.ZodNullable<z.ZodObject<{
|
|
8471
|
+
kind: z.ZodEnum<{
|
|
8472
|
+
service: "service";
|
|
8473
|
+
subject: "subject";
|
|
8474
|
+
}>;
|
|
8475
|
+
subjectId: z.ZodString;
|
|
8476
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8477
|
+
}, z.core.$strip>>;
|
|
8478
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8479
|
+
origin: z.ZodNullable<z.ZodEnum<{
|
|
8480
|
+
user: "user";
|
|
8481
|
+
scheduled_task: "scheduled_task";
|
|
8482
|
+
api: "api";
|
|
8483
|
+
goal: "goal";
|
|
8484
|
+
system: "system";
|
|
8485
|
+
compaction: "compaction";
|
|
8486
|
+
}>>;
|
|
8487
|
+
schemaRevision: z.ZodLiteral<"2026-07-host-export-v1">;
|
|
8488
|
+
cursor: z.ZodString;
|
|
8489
|
+
idempotencyKey: z.ZodString;
|
|
8490
|
+
accountId: z.ZodString;
|
|
8491
|
+
workspaceId: z.ZodString;
|
|
8492
|
+
rootSessionId: z.ZodNullable<z.ZodString>;
|
|
8493
|
+
}, z.core.$strip>>;
|
|
8494
|
+
}, z.core.$strip>;
|
|
8495
|
+
type HostEventExportBatch = z.infer<typeof HostEventExportBatch>;
|
|
8496
|
+
declare const HostUsageExportBatch: z.ZodObject<{
|
|
8497
|
+
schemaRevision: z.ZodLiteral<"2026-07-host-export-v1">;
|
|
8498
|
+
consumerId: z.ZodString;
|
|
8499
|
+
leaseToken: z.ZodString;
|
|
8500
|
+
checkpoint: z.ZodString;
|
|
8501
|
+
throughCursor: z.ZodString;
|
|
8502
|
+
events: z.ZodArray<z.ZodObject<{
|
|
8503
|
+
usage: z.ZodObject<{
|
|
8504
|
+
id: z.ZodString;
|
|
8505
|
+
workspaceId: z.ZodString;
|
|
8506
|
+
accountId: z.ZodString;
|
|
8507
|
+
quantity: z.ZodNumber;
|
|
8508
|
+
occurredAt: z.ZodString;
|
|
8509
|
+
recordedAt: z.ZodString;
|
|
8510
|
+
exportedToBillingAt: z.ZodNullable<z.ZodString>;
|
|
8511
|
+
subjectId: z.ZodNullable<z.ZodString>;
|
|
8512
|
+
eventType: z.ZodString;
|
|
8513
|
+
unit: z.ZodString;
|
|
8514
|
+
sourceResourceType: z.ZodNullable<z.ZodString>;
|
|
8515
|
+
sourceResourceId: z.ZodNullable<z.ZodString>;
|
|
8516
|
+
idempotencyKey: z.ZodString;
|
|
8517
|
+
billingProviderEventId: z.ZodNullable<z.ZodString>;
|
|
8518
|
+
}, z.core.$strip>;
|
|
8519
|
+
initiator: z.ZodNullable<z.ZodObject<{
|
|
8520
|
+
kind: z.ZodEnum<{
|
|
8521
|
+
service: "service";
|
|
8522
|
+
subject: "subject";
|
|
8523
|
+
}>;
|
|
8524
|
+
subjectId: z.ZodString;
|
|
8525
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8526
|
+
}, z.core.$strip>>;
|
|
8527
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8528
|
+
origin: z.ZodNullable<z.ZodEnum<{
|
|
8529
|
+
user: "user";
|
|
8530
|
+
scheduled_task: "scheduled_task";
|
|
8531
|
+
api: "api";
|
|
8532
|
+
goal: "goal";
|
|
8533
|
+
system: "system";
|
|
8534
|
+
compaction: "compaction";
|
|
8535
|
+
}>>;
|
|
8536
|
+
schemaRevision: z.ZodLiteral<"2026-07-host-export-v1">;
|
|
8537
|
+
cursor: z.ZodString;
|
|
8538
|
+
accountId: z.ZodString;
|
|
8539
|
+
workspaceId: z.ZodString;
|
|
8540
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
8541
|
+
rootSessionId: z.ZodNullable<z.ZodString>;
|
|
8542
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
8543
|
+
turnAttemptId: z.ZodNullable<z.ZodString>;
|
|
8544
|
+
}, z.core.$strip>>;
|
|
8545
|
+
}, z.core.$strip>;
|
|
8546
|
+
type HostUsageExportBatch = z.infer<typeof HostUsageExportBatch>;
|
|
8547
|
+
/**
|
|
8548
|
+
* Optional embedded-host sinks. Delivery is at least once: the same batch may
|
|
8549
|
+
* be repeated after a process dies between sink success and checkpoint commit,
|
|
8550
|
+
* so sinks must deduplicate by event/usage idempotency key.
|
|
8551
|
+
*/
|
|
8552
|
+
type HostEventSink = {
|
|
8553
|
+
consumerId: HostExportConsumerId;
|
|
8554
|
+
deliverEvents: (batch: HostEventExportBatch) => Promise<void>;
|
|
8555
|
+
};
|
|
8556
|
+
type HostUsageSink = {
|
|
8557
|
+
consumerId: HostExportConsumerId;
|
|
8558
|
+
deliverUsage: (batch: HostUsageExportBatch) => Promise<void>;
|
|
8559
|
+
};
|
|
8560
|
+
declare const SESSION_EVENT_TYPE_MAX_BYTES = 256;
|
|
8561
|
+
declare const SESSION_EVENT_CLIENT_EVENT_ID_MAX_BYTES: number;
|
|
8562
|
+
declare const SESSION_EVENT_TURN_ASSOCIATION_MAX_BYTES = 64;
|
|
8563
|
+
declare const SESSION_EVENT_DUPLICATE_REASON_MAX_BYTES: number;
|
|
8564
|
+
declare const SESSION_EVENT_ENVELOPE_MAX_BYTES: number;
|
|
8565
|
+
type BoundSessionEventOptions = {
|
|
8566
|
+
surface?: SessionEventBoundarySurface;
|
|
8567
|
+
maxBytes?: number;
|
|
8568
|
+
};
|
|
8569
|
+
/**
|
|
8570
|
+
* Canonical lossy projection for a complete session event. Payload bounds alone
|
|
8571
|
+
* are insufficient: a malformed retained row can also carry an oversized type,
|
|
8572
|
+
* client id, or duplicate diagnostic. Keep cursor/UUID identity intact, bound
|
|
8573
|
+
* every free-form envelope string, and assert the exact final JSON envelope.
|
|
8574
|
+
*/
|
|
8575
|
+
declare function boundSessionEvent(event: SessionEvent, options?: BoundSessionEventOptions): SessionEvent;
|
|
6059
8576
|
declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
8577
|
+
receipt: z.ZodObject<{
|
|
8578
|
+
id: z.ZodString;
|
|
8579
|
+
action: z.ZodString;
|
|
8580
|
+
operationKey: z.ZodString;
|
|
8581
|
+
targetSessionId: z.ZodNullable<z.ZodString>;
|
|
8582
|
+
targetTurnId: z.ZodNullable<z.ZodString>;
|
|
8583
|
+
appliedControlRevision: z.ZodNullable<z.ZodNumber>;
|
|
8584
|
+
appliedQueueVersion: z.ZodNullable<z.ZodNumber>;
|
|
8585
|
+
appliedTurnVersion: z.ZodNullable<z.ZodNumber>;
|
|
8586
|
+
appliedDraftRevision: z.ZodNullable<z.ZodNumber>;
|
|
8587
|
+
createdAt: z.ZodString;
|
|
8588
|
+
}, z.core.$strip>;
|
|
6060
8589
|
snapshot: z.ZodObject<{
|
|
6061
8590
|
version: z.ZodNumber;
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
8591
|
+
effectiveControl: z.ZodObject<{
|
|
8592
|
+
state: z.ZodEnum<{
|
|
8593
|
+
active: "active";
|
|
8594
|
+
paused: "paused";
|
|
8595
|
+
}>;
|
|
8596
|
+
controlVersion: z.ZodNumber;
|
|
8597
|
+
controlEtag: z.ZodString;
|
|
8598
|
+
directState: z.ZodEnum<{
|
|
8599
|
+
active: "active";
|
|
8600
|
+
paused: "paused";
|
|
8601
|
+
}>;
|
|
8602
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
8603
|
+
kind: z.ZodEnum<{
|
|
8604
|
+
workspace: "workspace";
|
|
8605
|
+
session: "session";
|
|
8606
|
+
}>;
|
|
8607
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8608
|
+
displayName: z.ZodString;
|
|
8609
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
8610
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
8611
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
8612
|
+
revision: z.ZodNumber;
|
|
8613
|
+
}, z.core.$strip>>;
|
|
8614
|
+
additionalBlockerCount: z.ZodNumber;
|
|
8615
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
8616
|
+
kind: z.ZodEnum<{
|
|
8617
|
+
workspace: "workspace";
|
|
8618
|
+
session: "session";
|
|
8619
|
+
}>;
|
|
8620
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8621
|
+
displayName: z.ZodString;
|
|
8622
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
8623
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
8624
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
8625
|
+
revision: z.ZodNumber;
|
|
8626
|
+
}, z.core.$strip>>;
|
|
8627
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
8628
|
+
scope: z.ZodEnum<{
|
|
8629
|
+
workspace: "workspace";
|
|
8630
|
+
session: "session";
|
|
8631
|
+
selected: "selected";
|
|
8632
|
+
}>;
|
|
8633
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
8634
|
+
selectedStateAfter: z.ZodEnum<{
|
|
8635
|
+
active: "active";
|
|
8636
|
+
paused: "paused";
|
|
8637
|
+
}>;
|
|
8638
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
8639
|
+
kind: z.ZodEnum<{
|
|
8640
|
+
workspace: "workspace";
|
|
8641
|
+
session: "session";
|
|
8642
|
+
}>;
|
|
8643
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8644
|
+
displayName: z.ZodString;
|
|
8645
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
8646
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
8647
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
8648
|
+
revision: z.ZodNumber;
|
|
8649
|
+
}, z.core.$strip>>;
|
|
8650
|
+
impactCopy: z.ZodString;
|
|
8651
|
+
}, z.core.$strip>>;
|
|
8652
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
8653
|
+
rootSessionId: z.ZodString;
|
|
8654
|
+
revision: z.ZodNumber;
|
|
8655
|
+
}, z.core.$strip>>;
|
|
8656
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
8657
|
+
state: z.ZodLiteral<"stopping">;
|
|
8658
|
+
attemptCount: z.ZodNumber;
|
|
8659
|
+
interruptionPendingCount: z.ZodNumber;
|
|
8660
|
+
quiescencePendingCount: z.ZodNumber;
|
|
8661
|
+
}, z.core.$strip>>;
|
|
8662
|
+
}, z.core.$strip>;
|
|
8663
|
+
stoppingPreviousAttempt: z.ZodBoolean;
|
|
6073
8664
|
items: z.ZodArray<z.ZodObject<{
|
|
6074
8665
|
id: z.ZodString;
|
|
6075
8666
|
workspaceId: z.ZodString;
|
|
@@ -6086,6 +8677,7 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
6086
8677
|
cancelled: "cancelled";
|
|
6087
8678
|
completed: "completed";
|
|
6088
8679
|
superseded: "superseded";
|
|
8680
|
+
withdrawn_for_edit: "withdrawn_for_edit";
|
|
6089
8681
|
}>;
|
|
6090
8682
|
source: z.ZodEnum<{
|
|
6091
8683
|
user: "user";
|
|
@@ -6108,6 +8700,11 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
6108
8700
|
gitlab: "gitlab";
|
|
6109
8701
|
azure_devops: "azure_devops";
|
|
6110
8702
|
}>>;
|
|
8703
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
8704
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
8705
|
+
read: "read";
|
|
8706
|
+
write: "write";
|
|
8707
|
+
}>>;
|
|
6111
8708
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6112
8709
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6113
8710
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -6156,6 +8753,15 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
6156
8753
|
executionGeneration: z.ZodNumber;
|
|
6157
8754
|
activeAttemptId: z.ZodNullable<z.ZodString>;
|
|
6158
8755
|
lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8756
|
+
initiator: z.ZodObject<{
|
|
8757
|
+
subjectId: z.ZodString;
|
|
8758
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8759
|
+
kind: z.ZodEnum<{
|
|
8760
|
+
service: "service";
|
|
8761
|
+
subject: "subject";
|
|
8762
|
+
}>;
|
|
8763
|
+
}, z.core.$strip>;
|
|
8764
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6159
8765
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
6160
8766
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
6161
8767
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -6164,238 +8770,149 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
6164
8770
|
updatedAt: z.ZodString;
|
|
6165
8771
|
}, z.core.$strip>>;
|
|
6166
8772
|
}, z.core.$strip>;
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
"goal.completed": "goal.completed";
|
|
6211
|
-
"goal.paused": "goal.paused";
|
|
6212
|
-
"goal.resumed": "goal.resumed";
|
|
6213
|
-
"goal.cleared": "goal.cleared";
|
|
6214
|
-
"goal.continuation": "goal.continuation";
|
|
6215
|
-
"system.update.pending": "system.update.pending";
|
|
6216
|
-
"system.update.delivered": "system.update.delivered";
|
|
6217
|
-
"session.control.paused": "session.control.paused";
|
|
6218
|
-
"session.control.resumed": "session.control.resumed";
|
|
6219
|
-
"session.control.steer_requested": "session.control.steer_requested";
|
|
6220
|
-
"workspace.inference.paused": "workspace.inference.paused";
|
|
6221
|
-
"workspace.inference.resumed": "workspace.inference.resumed";
|
|
6222
|
-
"session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
|
|
6223
|
-
"session.queue.history": "session.queue.history";
|
|
6224
|
-
"turn.event.rejected_late": "turn.event.rejected_late";
|
|
6225
|
-
"memory.saved": "memory.saved";
|
|
6226
|
-
"memory.corrected": "memory.corrected";
|
|
6227
|
-
"stream.url.rotated": "stream.url.rotated";
|
|
6228
|
-
"stream.opened": "stream.opened";
|
|
6229
|
-
"stream.closed": "stream.closed";
|
|
6230
|
-
"stream.revoked": "stream.revoked";
|
|
6231
|
-
"recording.started": "recording.started";
|
|
6232
|
-
"recording.available": "recording.available";
|
|
6233
|
-
"recording.failed": "recording.failed";
|
|
6234
|
-
"fs.changed": "fs.changed";
|
|
6235
|
-
"git.changed": "git.changed";
|
|
6236
|
-
"terminal.pty.started": "terminal.pty.started";
|
|
6237
|
-
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
6238
|
-
"terminal.pty.exited": "terminal.pty.exited";
|
|
6239
|
-
"session.title_set": "session.title_set";
|
|
6240
|
-
"codex.account.switched": "codex.account.switched";
|
|
6241
|
-
"codex.credential.selected": "codex.credential.selected";
|
|
6242
|
-
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
6243
|
-
"codex.capacity.resumed": "codex.capacity.resumed";
|
|
6244
|
-
"codex.capacity.superseded": "codex.capacity.superseded";
|
|
6245
|
-
"sandbox.box.created": "sandbox.box.created";
|
|
6246
|
-
"sandbox.box.lost": "sandbox.box.lost";
|
|
6247
|
-
"sandbox.box.terminated": "sandbox.box.terminated";
|
|
6248
|
-
"sandbox.box.snapshot": "sandbox.box.snapshot";
|
|
6249
|
-
"sandbox.env.drift": "sandbox.env.drift";
|
|
6250
|
-
"session.route.reconciled": "session.route.reconciled";
|
|
6251
|
-
"workspace.revision.captured": "workspace.revision.captured";
|
|
6252
|
-
"workspace.revision.degraded": "workspace.revision.degraded";
|
|
6253
|
-
"machine.op.failed": "machine.op.failed";
|
|
6254
|
-
"machine.op.recovered": "machine.op.recovered";
|
|
6255
|
-
"machine.link.lost": "machine.link.lost";
|
|
6256
|
-
"machine.link.restored": "machine.link.restored";
|
|
6257
|
-
"machine.runner.restarted": "machine.runner.restarted";
|
|
8773
|
+
draft: z.ZodOptional<z.ZodObject<{
|
|
8774
|
+
revision: z.ZodNumber;
|
|
8775
|
+
text: z.ZodString;
|
|
8776
|
+
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8777
|
+
kind: z.ZodLiteral<"repository">;
|
|
8778
|
+
uri: z.ZodString;
|
|
8779
|
+
ref: z.ZodString;
|
|
8780
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
8781
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
8782
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
8783
|
+
github: "github";
|
|
8784
|
+
gitlab: "gitlab";
|
|
8785
|
+
azure_devops: "azure_devops";
|
|
8786
|
+
}>>;
|
|
8787
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
8788
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
8789
|
+
read: "read";
|
|
8790
|
+
write: "write";
|
|
8791
|
+
}>>;
|
|
8792
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
8793
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
8794
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
8795
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
8796
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
8797
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
8798
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8799
|
+
kind: z.ZodLiteral<"file">;
|
|
8800
|
+
fileId: z.ZodString;
|
|
8801
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
8802
|
+
}, z.core.$strip>], "kind">>;
|
|
8803
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
8804
|
+
kind: z.ZodLiteral<"mcp">;
|
|
8805
|
+
id: z.ZodString;
|
|
8806
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
8807
|
+
}, z.core.$strip>>;
|
|
8808
|
+
model: z.ZodString;
|
|
8809
|
+
reasoningEffort: z.ZodEnum<{
|
|
8810
|
+
none: "none";
|
|
8811
|
+
minimal: "minimal";
|
|
8812
|
+
low: "low";
|
|
8813
|
+
medium: "medium";
|
|
8814
|
+
high: "high";
|
|
8815
|
+
xhigh: "xhigh";
|
|
6258
8816
|
}>;
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6263
|
-
turnGeneration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6264
|
-
turnAttemptId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6265
|
-
turnAssociation: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
6266
|
-
current: "current";
|
|
6267
|
-
late_rejected: "late_rejected";
|
|
6268
|
-
duplicate: "duplicate";
|
|
6269
|
-
}>>>;
|
|
6270
|
-
duplicateOfEventId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6271
|
-
duplicateReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8817
|
+
sourceTurnId: z.ZodNullable<z.ZodString>;
|
|
8818
|
+
sourceTurnVersion: z.ZodNullable<z.ZodNumber>;
|
|
8819
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
6272
8820
|
}, z.core.$strip>>;
|
|
6273
|
-
shouldWake: z.ZodBoolean;
|
|
6274
8821
|
}, z.core.$strip>;
|
|
6275
8822
|
type SessionQueueMutationResponse = z.infer<typeof SessionQueueMutationResponse>;
|
|
6276
8823
|
declare const SessionControlResponse: z.ZodObject<{
|
|
6277
|
-
|
|
6278
|
-
event: z.ZodObject<{
|
|
8824
|
+
receipt: z.ZodObject<{
|
|
6279
8825
|
id: z.ZodString;
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
"turn.queued": "turn.queued";
|
|
6295
|
-
"turn.started": "turn.started";
|
|
6296
|
-
"turn.completed": "turn.completed";
|
|
6297
|
-
"turn.failed": "turn.failed";
|
|
6298
|
-
"turn.cancelled": "turn.cancelled";
|
|
6299
|
-
"turn.superseded": "turn.superseded";
|
|
6300
|
-
"turn.recovery.requested": "turn.recovery.requested";
|
|
6301
|
-
"turn.capacity_waiting": "turn.capacity_waiting";
|
|
6302
|
-
"agent.message.delta": "agent.message.delta";
|
|
6303
|
-
"agent.message.completed": "agent.message.completed";
|
|
6304
|
-
"agent.reasoning.delta": "agent.reasoning.delta";
|
|
6305
|
-
"agent.toolCall.created": "agent.toolCall.created";
|
|
6306
|
-
"agent.toolCall.output": "agent.toolCall.output";
|
|
6307
|
-
"agent.model.usage": "agent.model.usage";
|
|
6308
|
-
"tool.auth_needed": "tool.auth_needed";
|
|
6309
|
-
"agent.updated": "agent.updated";
|
|
6310
|
-
"rig.setup.started": "rig.setup.started";
|
|
6311
|
-
"rig.setup.completed": "rig.setup.completed";
|
|
6312
|
-
"rig.setup.skipped": "rig.setup.skipped";
|
|
6313
|
-
"rig.setup.failed": "rig.setup.failed";
|
|
6314
|
-
"sandbox.operation.started": "sandbox.operation.started";
|
|
6315
|
-
"sandbox.operation.completed": "sandbox.operation.completed";
|
|
6316
|
-
"sandbox.operation.failed": "sandbox.operation.failed";
|
|
6317
|
-
"sandbox.command.output.delta": "sandbox.command.output.delta";
|
|
6318
|
-
"artifact.created": "artifact.created";
|
|
6319
|
-
"goal.set": "goal.set";
|
|
6320
|
-
"goal.updated": "goal.updated";
|
|
6321
|
-
"goal.completed": "goal.completed";
|
|
6322
|
-
"goal.paused": "goal.paused";
|
|
6323
|
-
"goal.resumed": "goal.resumed";
|
|
6324
|
-
"goal.cleared": "goal.cleared";
|
|
6325
|
-
"goal.continuation": "goal.continuation";
|
|
6326
|
-
"system.update.pending": "system.update.pending";
|
|
6327
|
-
"system.update.delivered": "system.update.delivered";
|
|
6328
|
-
"session.control.paused": "session.control.paused";
|
|
6329
|
-
"session.control.resumed": "session.control.resumed";
|
|
6330
|
-
"session.control.steer_requested": "session.control.steer_requested";
|
|
6331
|
-
"workspace.inference.paused": "workspace.inference.paused";
|
|
6332
|
-
"workspace.inference.resumed": "workspace.inference.resumed";
|
|
6333
|
-
"session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
|
|
6334
|
-
"session.queue.history": "session.queue.history";
|
|
6335
|
-
"turn.event.rejected_late": "turn.event.rejected_late";
|
|
6336
|
-
"memory.saved": "memory.saved";
|
|
6337
|
-
"memory.corrected": "memory.corrected";
|
|
6338
|
-
"stream.url.rotated": "stream.url.rotated";
|
|
6339
|
-
"stream.opened": "stream.opened";
|
|
6340
|
-
"stream.closed": "stream.closed";
|
|
6341
|
-
"stream.revoked": "stream.revoked";
|
|
6342
|
-
"recording.started": "recording.started";
|
|
6343
|
-
"recording.available": "recording.available";
|
|
6344
|
-
"recording.failed": "recording.failed";
|
|
6345
|
-
"fs.changed": "fs.changed";
|
|
6346
|
-
"git.changed": "git.changed";
|
|
6347
|
-
"terminal.pty.started": "terminal.pty.started";
|
|
6348
|
-
"terminal.pty.output.delta": "terminal.pty.output.delta";
|
|
6349
|
-
"terminal.pty.exited": "terminal.pty.exited";
|
|
6350
|
-
"session.title_set": "session.title_set";
|
|
6351
|
-
"codex.account.switched": "codex.account.switched";
|
|
6352
|
-
"codex.credential.selected": "codex.credential.selected";
|
|
6353
|
-
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
6354
|
-
"codex.capacity.resumed": "codex.capacity.resumed";
|
|
6355
|
-
"codex.capacity.superseded": "codex.capacity.superseded";
|
|
6356
|
-
"sandbox.box.created": "sandbox.box.created";
|
|
6357
|
-
"sandbox.box.lost": "sandbox.box.lost";
|
|
6358
|
-
"sandbox.box.terminated": "sandbox.box.terminated";
|
|
6359
|
-
"sandbox.box.snapshot": "sandbox.box.snapshot";
|
|
6360
|
-
"sandbox.env.drift": "sandbox.env.drift";
|
|
6361
|
-
"session.route.reconciled": "session.route.reconciled";
|
|
6362
|
-
"workspace.revision.captured": "workspace.revision.captured";
|
|
6363
|
-
"workspace.revision.degraded": "workspace.revision.degraded";
|
|
6364
|
-
"machine.op.failed": "machine.op.failed";
|
|
6365
|
-
"machine.op.recovered": "machine.op.recovered";
|
|
6366
|
-
"machine.link.lost": "machine.link.lost";
|
|
6367
|
-
"machine.link.restored": "machine.link.restored";
|
|
6368
|
-
"machine.runner.restarted": "machine.runner.restarted";
|
|
8826
|
+
action: z.ZodString;
|
|
8827
|
+
operationKey: z.ZodString;
|
|
8828
|
+
targetSessionId: z.ZodNullable<z.ZodString>;
|
|
8829
|
+
targetTurnId: z.ZodNullable<z.ZodString>;
|
|
8830
|
+
appliedControlRevision: z.ZodNullable<z.ZodNumber>;
|
|
8831
|
+
appliedQueueVersion: z.ZodNullable<z.ZodNumber>;
|
|
8832
|
+
appliedTurnVersion: z.ZodNullable<z.ZodNumber>;
|
|
8833
|
+
appliedDraftRevision: z.ZodNullable<z.ZodNumber>;
|
|
8834
|
+
createdAt: z.ZodString;
|
|
8835
|
+
}, z.core.$strip>;
|
|
8836
|
+
effectiveControl: z.ZodObject<{
|
|
8837
|
+
state: z.ZodEnum<{
|
|
8838
|
+
active: "active";
|
|
8839
|
+
paused: "paused";
|
|
6369
8840
|
}>;
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
8841
|
+
controlVersion: z.ZodNumber;
|
|
8842
|
+
controlEtag: z.ZodString;
|
|
8843
|
+
directState: z.ZodEnum<{
|
|
8844
|
+
active: "active";
|
|
8845
|
+
paused: "paused";
|
|
8846
|
+
}>;
|
|
8847
|
+
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
8848
|
+
kind: z.ZodEnum<{
|
|
8849
|
+
workspace: "workspace";
|
|
8850
|
+
session: "session";
|
|
8851
|
+
}>;
|
|
8852
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8853
|
+
displayName: z.ZodString;
|
|
8854
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
8855
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
8856
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
8857
|
+
revision: z.ZodNumber;
|
|
8858
|
+
}, z.core.$strip>>;
|
|
8859
|
+
additionalBlockerCount: z.ZodNumber;
|
|
8860
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
8861
|
+
kind: z.ZodEnum<{
|
|
8862
|
+
workspace: "workspace";
|
|
8863
|
+
session: "session";
|
|
8864
|
+
}>;
|
|
8865
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8866
|
+
displayName: z.ZodString;
|
|
8867
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
8868
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
8869
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
8870
|
+
revision: z.ZodNumber;
|
|
8871
|
+
}, z.core.$strip>>;
|
|
8872
|
+
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
8873
|
+
scope: z.ZodEnum<{
|
|
8874
|
+
workspace: "workspace";
|
|
8875
|
+
session: "session";
|
|
8876
|
+
selected: "selected";
|
|
8877
|
+
}>;
|
|
8878
|
+
targetId: z.ZodOptional<z.ZodString>;
|
|
8879
|
+
selectedStateAfter: z.ZodEnum<{
|
|
8880
|
+
active: "active";
|
|
8881
|
+
paused: "paused";
|
|
8882
|
+
}>;
|
|
8883
|
+
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
8884
|
+
kind: z.ZodEnum<{
|
|
8885
|
+
workspace: "workspace";
|
|
8886
|
+
session: "session";
|
|
8887
|
+
}>;
|
|
8888
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
8889
|
+
displayName: z.ZodString;
|
|
8890
|
+
actor: z.ZodNullable<z.ZodString>;
|
|
8891
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
8892
|
+
changedAt: z.ZodNullable<z.ZodString>;
|
|
8893
|
+
revision: z.ZodNumber;
|
|
8894
|
+
}, z.core.$strip>>;
|
|
8895
|
+
impactCopy: z.ZodString;
|
|
8896
|
+
}, z.core.$strip>>;
|
|
8897
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
8898
|
+
rootSessionId: z.ZodString;
|
|
8899
|
+
revision: z.ZodNumber;
|
|
8900
|
+
}, z.core.$strip>>;
|
|
8901
|
+
settlement: z.ZodNullable<z.ZodObject<{
|
|
8902
|
+
state: z.ZodLiteral<"stopping">;
|
|
8903
|
+
attemptCount: z.ZodNumber;
|
|
8904
|
+
interruptionPendingCount: z.ZodNumber;
|
|
8905
|
+
quiescencePendingCount: z.ZodNumber;
|
|
8906
|
+
}, z.core.$strip>>;
|
|
6383
8907
|
}, z.core.$strip>;
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
active: "active";
|
|
6387
|
-
}>;
|
|
6388
|
-
controlGeneration: z.ZodNumber;
|
|
6389
|
-
expectedActiveTurnId: z.ZodNullable<z.ZodString>;
|
|
6390
|
-
expectedExecutionGeneration: z.ZodNullable<z.ZodNumber>;
|
|
6391
|
-
expectedAttemptId: z.ZodNullable<z.ZodString>;
|
|
6392
|
-
deliveryEventId: z.ZodNullable<z.ZodString>;
|
|
6393
|
-
shouldSignalControl: z.ZodBoolean;
|
|
6394
|
-
shouldWake: z.ZodBoolean;
|
|
8908
|
+
interruptionCount: z.ZodNumber;
|
|
8909
|
+
wakeCount: z.ZodNumber;
|
|
6395
8910
|
}, z.core.$strip>;
|
|
6396
8911
|
type SessionControlResponse = z.infer<typeof SessionControlResponse>;
|
|
6397
8912
|
declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
8913
|
+
requestedSessionId: z.ZodOptional<z.ZodString>;
|
|
6398
8914
|
initialMessage: z.ZodString;
|
|
8915
|
+
turnInstructions: z.ZodOptional<z.ZodString>;
|
|
6399
8916
|
instructions: z.ZodOptional<z.ZodString>;
|
|
6400
8917
|
resources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6401
8918
|
kind: z.ZodLiteral<"repository">;
|
|
@@ -6408,6 +8925,11 @@ declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
6408
8925
|
gitlab: "gitlab";
|
|
6409
8926
|
azure_devops: "azure_devops";
|
|
6410
8927
|
}>>;
|
|
8928
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
8929
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
8930
|
+
read: "read";
|
|
8931
|
+
write: "write";
|
|
8932
|
+
}>>;
|
|
6411
8933
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6412
8934
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6413
8935
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -6508,17 +9030,212 @@ declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
6508
9030
|
cacheToolsList: z.ZodOptional<z.ZodBoolean>;
|
|
6509
9031
|
requireApproval: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodArray<z.ZodString>]>>;
|
|
6510
9032
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9033
|
+
connectionRef: z.ZodOptional<z.ZodObject<{
|
|
9034
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
9035
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
9036
|
+
providerDomain: z.ZodString;
|
|
9037
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
9038
|
+
oauth2: "oauth2";
|
|
9039
|
+
api_key: "api_key";
|
|
9040
|
+
app_install: "app_install";
|
|
9041
|
+
delegated: "delegated";
|
|
9042
|
+
}>>;
|
|
9043
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9044
|
+
resource: z.ZodOptional<z.ZodString>;
|
|
9045
|
+
selectedResources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9046
|
+
id: z.ZodString;
|
|
9047
|
+
kind: z.ZodLiteral<"repository">;
|
|
9048
|
+
}, z.core.$strict>>>;
|
|
9049
|
+
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
9050
|
+
subject: "subject";
|
|
9051
|
+
workspace: "workspace";
|
|
9052
|
+
}>>;
|
|
9053
|
+
}, z.core.$strict>>;
|
|
6511
9054
|
}, z.core.$strip>>>;
|
|
6512
9055
|
sandbox: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"shared">, z.ZodLiteral<"new">, z.ZodObject<{
|
|
6513
9056
|
groupId: z.ZodString;
|
|
6514
9057
|
}, z.core.$strip>]>>;
|
|
6515
9058
|
}, z.core.$strip>>;
|
|
6516
9059
|
type CreateSessionRequest = z.infer<typeof CreateSessionRequest>;
|
|
9060
|
+
declare const HumanInputQuestionKind: z.ZodEnum<{
|
|
9061
|
+
text: "text";
|
|
9062
|
+
single_select: "single_select";
|
|
9063
|
+
multi_select: "multi_select";
|
|
9064
|
+
}>;
|
|
9065
|
+
type HumanInputQuestionKind = z.infer<typeof HumanInputQuestionKind>;
|
|
9066
|
+
declare const HumanInputOption: z.ZodObject<{
|
|
9067
|
+
id: z.ZodString;
|
|
9068
|
+
label: z.ZodString;
|
|
9069
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9070
|
+
}, z.core.$strip>;
|
|
9071
|
+
type HumanInputOption = z.infer<typeof HumanInputOption>;
|
|
9072
|
+
declare const HumanInputQuestion: z.ZodObject<{
|
|
9073
|
+
id: z.ZodString;
|
|
9074
|
+
kind: z.ZodEnum<{
|
|
9075
|
+
text: "text";
|
|
9076
|
+
single_select: "single_select";
|
|
9077
|
+
multi_select: "multi_select";
|
|
9078
|
+
}>;
|
|
9079
|
+
prompt: z.ZodString;
|
|
9080
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9081
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9082
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9083
|
+
id: z.ZodString;
|
|
9084
|
+
label: z.ZodString;
|
|
9085
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9086
|
+
}, z.core.$strip>>>;
|
|
9087
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
9088
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
9089
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9090
|
+
minLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9091
|
+
maxLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9092
|
+
minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9093
|
+
maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9094
|
+
}, z.core.$strip>>>;
|
|
9095
|
+
}, z.core.$strip>;
|
|
9096
|
+
type HumanInputQuestion = z.infer<typeof HumanInputQuestion>;
|
|
9097
|
+
declare const HumanInputRequestStatus: z.ZodEnum<{
|
|
9098
|
+
cancelled: "cancelled";
|
|
9099
|
+
expired: "expired";
|
|
9100
|
+
pending: "pending";
|
|
9101
|
+
answered: "answered";
|
|
9102
|
+
skipped: "skipped";
|
|
9103
|
+
}>;
|
|
9104
|
+
type HumanInputRequestStatus = z.infer<typeof HumanInputRequestStatus>;
|
|
9105
|
+
declare const RequestHumanInputToolInput: z.ZodObject<{
|
|
9106
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
9107
|
+
id: z.ZodString;
|
|
9108
|
+
kind: z.ZodEnum<{
|
|
9109
|
+
text: "text";
|
|
9110
|
+
single_select: "single_select";
|
|
9111
|
+
multi_select: "multi_select";
|
|
9112
|
+
}>;
|
|
9113
|
+
prompt: z.ZodString;
|
|
9114
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9115
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9116
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9117
|
+
id: z.ZodString;
|
|
9118
|
+
label: z.ZodString;
|
|
9119
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9120
|
+
}, z.core.$strip>>>;
|
|
9121
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
9122
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
9123
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9124
|
+
minLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9125
|
+
maxLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9126
|
+
minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9127
|
+
maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9128
|
+
}, z.core.$strip>>>;
|
|
9129
|
+
}, z.core.$strip>>;
|
|
9130
|
+
allowSkip: z.ZodDefault<z.ZodBoolean>;
|
|
9131
|
+
expiresInSeconds: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9132
|
+
}, z.core.$strip>;
|
|
9133
|
+
type RequestHumanInputToolInput = z.infer<typeof RequestHumanInputToolInput>;
|
|
9134
|
+
declare const HumanInputAnswer: z.ZodObject<{
|
|
9135
|
+
questionId: z.ZodString;
|
|
9136
|
+
values: z.ZodArray<z.ZodString>;
|
|
9137
|
+
other: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9138
|
+
}, z.core.$strip>;
|
|
9139
|
+
type HumanInputAnswer = z.infer<typeof HumanInputAnswer>;
|
|
9140
|
+
declare const HumanInputResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9141
|
+
outcome: z.ZodLiteral<"answered">;
|
|
9142
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
9143
|
+
questionId: z.ZodString;
|
|
9144
|
+
values: z.ZodArray<z.ZodString>;
|
|
9145
|
+
other: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9146
|
+
}, z.core.$strip>>;
|
|
9147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9148
|
+
outcome: z.ZodLiteral<"skipped">;
|
|
9149
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9150
|
+
outcome: z.ZodLiteral<"expired">;
|
|
9151
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9152
|
+
outcome: z.ZodLiteral<"cancelled">;
|
|
9153
|
+
}, z.core.$strip>], "outcome">;
|
|
9154
|
+
type HumanInputResponse = z.infer<typeof HumanInputResponse>;
|
|
9155
|
+
declare const SubmitHumanInputResponseRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9156
|
+
outcome: z.ZodLiteral<"answered">;
|
|
9157
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
9158
|
+
questionId: z.ZodString;
|
|
9159
|
+
values: z.ZodArray<z.ZodString>;
|
|
9160
|
+
other: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9161
|
+
}, z.core.$strip>>;
|
|
9162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9163
|
+
outcome: z.ZodLiteral<"skipped">;
|
|
9164
|
+
}, z.core.$strip>], "outcome">;
|
|
9165
|
+
type SubmitHumanInputResponseRequest = z.infer<typeof SubmitHumanInputResponseRequest>;
|
|
9166
|
+
declare const SessionHumanInputRequest: z.ZodObject<{
|
|
9167
|
+
id: z.ZodString;
|
|
9168
|
+
workspaceId: z.ZodString;
|
|
9169
|
+
sessionId: z.ZodString;
|
|
9170
|
+
turnId: z.ZodString;
|
|
9171
|
+
turnGeneration: z.ZodNumber;
|
|
9172
|
+
creationAttemptId: z.ZodString;
|
|
9173
|
+
toolCallId: z.ZodString;
|
|
9174
|
+
status: z.ZodEnum<{
|
|
9175
|
+
cancelled: "cancelled";
|
|
9176
|
+
expired: "expired";
|
|
9177
|
+
pending: "pending";
|
|
9178
|
+
answered: "answered";
|
|
9179
|
+
skipped: "skipped";
|
|
9180
|
+
}>;
|
|
9181
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
9182
|
+
id: z.ZodString;
|
|
9183
|
+
kind: z.ZodEnum<{
|
|
9184
|
+
text: "text";
|
|
9185
|
+
single_select: "single_select";
|
|
9186
|
+
multi_select: "multi_select";
|
|
9187
|
+
}>;
|
|
9188
|
+
prompt: z.ZodString;
|
|
9189
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9190
|
+
helpText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9191
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9192
|
+
id: z.ZodString;
|
|
9193
|
+
label: z.ZodString;
|
|
9194
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9195
|
+
}, z.core.$strip>>>;
|
|
9196
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
9197
|
+
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
9198
|
+
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9199
|
+
minLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9200
|
+
maxLength: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9201
|
+
minSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9202
|
+
maxSelections: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9203
|
+
}, z.core.$strip>>>;
|
|
9204
|
+
}, z.core.$strip>>;
|
|
9205
|
+
allowSkip: z.ZodBoolean;
|
|
9206
|
+
response: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9207
|
+
outcome: z.ZodLiteral<"answered">;
|
|
9208
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
9209
|
+
questionId: z.ZodString;
|
|
9210
|
+
values: z.ZodArray<z.ZodString>;
|
|
9211
|
+
other: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9212
|
+
}, z.core.$strip>>;
|
|
9213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9214
|
+
outcome: z.ZodLiteral<"skipped">;
|
|
9215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9216
|
+
outcome: z.ZodLiteral<"expired">;
|
|
9217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9218
|
+
outcome: z.ZodLiteral<"cancelled">;
|
|
9219
|
+
}, z.core.$strip>], "outcome">>;
|
|
9220
|
+
respondedBy: z.ZodNullable<z.ZodString>;
|
|
9221
|
+
respondedAt: z.ZodNullable<z.ZodString>;
|
|
9222
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
9223
|
+
createdAt: z.ZodString;
|
|
9224
|
+
updatedAt: z.ZodString;
|
|
9225
|
+
}, z.core.$strip>;
|
|
9226
|
+
type SessionHumanInputRequest = z.infer<typeof SessionHumanInputRequest>;
|
|
9227
|
+
/**
|
|
9228
|
+
* Extract the stable approval identity used by both durable admission and
|
|
9229
|
+
* runtime resume. Serialized SDK interruptions may place it on the wrapper or
|
|
9230
|
+
* its raw item; malformed entries fail closed instead of inventing an id.
|
|
9231
|
+
*/
|
|
9232
|
+
declare function approvalIdentifier(value: unknown): string | null;
|
|
6517
9233
|
declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6518
9234
|
type: z.ZodLiteral<"user.message">;
|
|
6519
9235
|
clientEventId: z.ZodOptional<z.ZodString>;
|
|
6520
9236
|
payload: z.ZodObject<{
|
|
6521
9237
|
text: z.ZodString;
|
|
9238
|
+
turnInstructions: z.ZodOptional<z.ZodString>;
|
|
6522
9239
|
resources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6523
9240
|
kind: z.ZodLiteral<"repository">;
|
|
6524
9241
|
uri: z.ZodString;
|
|
@@ -6530,6 +9247,11 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6530
9247
|
gitlab: "gitlab";
|
|
6531
9248
|
azure_devops: "azure_devops";
|
|
6532
9249
|
}>>;
|
|
9250
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
9251
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
9252
|
+
read: "read";
|
|
9253
|
+
write: "write";
|
|
9254
|
+
}>>;
|
|
6533
9255
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6534
9256
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6535
9257
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -6555,6 +9277,8 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6555
9277
|
high: "high";
|
|
6556
9278
|
xhigh: "xhigh";
|
|
6557
9279
|
}>>;
|
|
9280
|
+
controlEtag: z.ZodOptional<z.ZodString>;
|
|
9281
|
+
expectedDraftRevision: z.ZodOptional<z.ZodNumber>;
|
|
6558
9282
|
mcpCredentialUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6559
9283
|
id: z.ZodString;
|
|
6560
9284
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -6571,10 +9295,27 @@ declare const ClientSessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6571
9295
|
}>;
|
|
6572
9296
|
message: z.ZodOptional<z.ZodString>;
|
|
6573
9297
|
}, z.core.$strip>;
|
|
9298
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9299
|
+
type: z.ZodLiteral<"user.humanInputResponse">;
|
|
9300
|
+
clientEventId: z.ZodOptional<z.ZodString>;
|
|
9301
|
+
payload: z.ZodObject<{
|
|
9302
|
+
requestId: z.ZodString;
|
|
9303
|
+
response: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9304
|
+
outcome: z.ZodLiteral<"answered">;
|
|
9305
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
9306
|
+
questionId: z.ZodString;
|
|
9307
|
+
values: z.ZodArray<z.ZodString>;
|
|
9308
|
+
other: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9309
|
+
}, z.core.$strip>>;
|
|
9310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9311
|
+
outcome: z.ZodLiteral<"skipped">;
|
|
9312
|
+
}, z.core.$strip>], "outcome">;
|
|
9313
|
+
}, z.core.$strip>;
|
|
6574
9314
|
}, z.core.$strip>], "type">;
|
|
6575
9315
|
type ClientSessionEvent = z.infer<typeof ClientSessionEvent>;
|
|
6576
9316
|
declare const SteerSessionMessageRequest: z.ZodObject<{
|
|
6577
9317
|
text: z.ZodString;
|
|
9318
|
+
turnInstructions: z.ZodOptional<z.ZodString>;
|
|
6578
9319
|
resources: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6579
9320
|
kind: z.ZodLiteral<"repository">;
|
|
6580
9321
|
uri: z.ZodString;
|
|
@@ -6586,6 +9327,11 @@ declare const SteerSessionMessageRequest: z.ZodObject<{
|
|
|
6586
9327
|
gitlab: "gitlab";
|
|
6587
9328
|
azure_devops: "azure_devops";
|
|
6588
9329
|
}>>;
|
|
9330
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
9331
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
9332
|
+
read: "read";
|
|
9333
|
+
write: "write";
|
|
9334
|
+
}>>;
|
|
6589
9335
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6590
9336
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6591
9337
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -6612,8 +9358,8 @@ declare const SteerSessionMessageRequest: z.ZodObject<{
|
|
|
6612
9358
|
xhigh: "xhigh";
|
|
6613
9359
|
}>>;
|
|
6614
9360
|
clientEventId: z.ZodOptional<z.ZodString>;
|
|
6615
|
-
|
|
6616
|
-
|
|
9361
|
+
controlEtag: z.ZodOptional<z.ZodString>;
|
|
9362
|
+
expectedDraftRevision: z.ZodOptional<z.ZodNumber>;
|
|
6617
9363
|
mcpCredentialUpdates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6618
9364
|
id: z.ZodString;
|
|
6619
9365
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -6628,8 +9374,10 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
6628
9374
|
sequence: z.ZodNumber;
|
|
6629
9375
|
type: z.ZodEnum<{
|
|
6630
9376
|
"session.created": "session.created";
|
|
9377
|
+
"session.event.envelope_omitted": "session.event.envelope_omitted";
|
|
6631
9378
|
"session.status.changed": "session.status.changed";
|
|
6632
9379
|
"session.requiresAction": "session.requiresAction";
|
|
9380
|
+
"session.humanInput.requested": "session.humanInput.requested";
|
|
6633
9381
|
"session.context.compaction.requested": "session.context.compaction.requested";
|
|
6634
9382
|
"session.context.compacted": "session.context.compacted";
|
|
6635
9383
|
"session.context.compaction.skipped": "session.context.compaction.skipped";
|
|
@@ -6637,6 +9385,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
6637
9385
|
"user.message": "user.message";
|
|
6638
9386
|
"user.pause": "user.pause";
|
|
6639
9387
|
"user.approvalDecision": "user.approvalDecision";
|
|
9388
|
+
"user.humanInputResponse": "user.humanInputResponse";
|
|
6640
9389
|
"turn.queued": "turn.queued";
|
|
6641
9390
|
"turn.started": "turn.started";
|
|
6642
9391
|
"turn.completed": "turn.completed";
|
|
@@ -6652,6 +9401,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
6652
9401
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
6653
9402
|
"agent.model.usage": "agent.model.usage";
|
|
6654
9403
|
"tool.auth_needed": "tool.auth_needed";
|
|
9404
|
+
"credential.auth_needed": "credential.auth_needed";
|
|
6655
9405
|
"agent.updated": "agent.updated";
|
|
6656
9406
|
"rig.setup.started": "rig.setup.started";
|
|
6657
9407
|
"rig.setup.completed": "rig.setup.completed";
|
|
@@ -6676,6 +9426,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
6676
9426
|
"session.control.steer_requested": "session.control.steer_requested";
|
|
6677
9427
|
"workspace.inference.paused": "workspace.inference.paused";
|
|
6678
9428
|
"workspace.inference.resumed": "workspace.inference.resumed";
|
|
9429
|
+
"session.queue.changed": "session.queue.changed";
|
|
6679
9430
|
"session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
|
|
6680
9431
|
"session.queue.history": "session.queue.history";
|
|
6681
9432
|
"turn.event.rejected_late": "turn.event.rejected_late";
|
|
@@ -6743,6 +9494,7 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
6743
9494
|
cancelled: "cancelled";
|
|
6744
9495
|
completed: "completed";
|
|
6745
9496
|
superseded: "superseded";
|
|
9497
|
+
withdrawn_for_edit: "withdrawn_for_edit";
|
|
6746
9498
|
}>;
|
|
6747
9499
|
source: z.ZodEnum<{
|
|
6748
9500
|
user: "user";
|
|
@@ -6765,6 +9517,11 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
6765
9517
|
gitlab: "gitlab";
|
|
6766
9518
|
azure_devops: "azure_devops";
|
|
6767
9519
|
}>>;
|
|
9520
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
9521
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
9522
|
+
read: "read";
|
|
9523
|
+
write: "write";
|
|
9524
|
+
}>>;
|
|
6768
9525
|
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6769
9526
|
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
6770
9527
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
@@ -6813,6 +9570,15 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
6813
9570
|
executionGeneration: z.ZodNumber;
|
|
6814
9571
|
activeAttemptId: z.ZodNullable<z.ZodString>;
|
|
6815
9572
|
lineage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
9573
|
+
initiator: z.ZodObject<{
|
|
9574
|
+
subjectId: z.ZodString;
|
|
9575
|
+
label: z.ZodOptional<z.ZodString>;
|
|
9576
|
+
kind: z.ZodEnum<{
|
|
9577
|
+
service: "service";
|
|
9578
|
+
subject: "subject";
|
|
9579
|
+
}>;
|
|
9580
|
+
}, z.core.$strip>;
|
|
9581
|
+
initiatorContext: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6816
9582
|
cancelledBy: z.ZodNullable<z.ZodString>;
|
|
6817
9583
|
cancelReason: z.ZodNullable<z.ZodString>;
|
|
6818
9584
|
startedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -6832,8 +9598,10 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
6832
9598
|
sequence: z.ZodNumber;
|
|
6833
9599
|
type: z.ZodEnum<{
|
|
6834
9600
|
"session.created": "session.created";
|
|
9601
|
+
"session.event.envelope_omitted": "session.event.envelope_omitted";
|
|
6835
9602
|
"session.status.changed": "session.status.changed";
|
|
6836
9603
|
"session.requiresAction": "session.requiresAction";
|
|
9604
|
+
"session.humanInput.requested": "session.humanInput.requested";
|
|
6837
9605
|
"session.context.compaction.requested": "session.context.compaction.requested";
|
|
6838
9606
|
"session.context.compacted": "session.context.compacted";
|
|
6839
9607
|
"session.context.compaction.skipped": "session.context.compaction.skipped";
|
|
@@ -6841,6 +9609,7 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
6841
9609
|
"user.message": "user.message";
|
|
6842
9610
|
"user.pause": "user.pause";
|
|
6843
9611
|
"user.approvalDecision": "user.approvalDecision";
|
|
9612
|
+
"user.humanInputResponse": "user.humanInputResponse";
|
|
6844
9613
|
"turn.queued": "turn.queued";
|
|
6845
9614
|
"turn.started": "turn.started";
|
|
6846
9615
|
"turn.completed": "turn.completed";
|
|
@@ -6856,6 +9625,7 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
6856
9625
|
"agent.toolCall.output": "agent.toolCall.output";
|
|
6857
9626
|
"agent.model.usage": "agent.model.usage";
|
|
6858
9627
|
"tool.auth_needed": "tool.auth_needed";
|
|
9628
|
+
"credential.auth_needed": "credential.auth_needed";
|
|
6859
9629
|
"agent.updated": "agent.updated";
|
|
6860
9630
|
"rig.setup.started": "rig.setup.started";
|
|
6861
9631
|
"rig.setup.completed": "rig.setup.completed";
|
|
@@ -6880,6 +9650,7 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
6880
9650
|
"session.control.steer_requested": "session.control.steer_requested";
|
|
6881
9651
|
"workspace.inference.paused": "workspace.inference.paused";
|
|
6882
9652
|
"workspace.inference.resumed": "workspace.inference.resumed";
|
|
9653
|
+
"session.queue.changed": "session.queue.changed";
|
|
6883
9654
|
"session.queue.prompt.cancelled": "session.queue.prompt.cancelled";
|
|
6884
9655
|
"session.queue.history": "session.queue.history";
|
|
6885
9656
|
"turn.event.rejected_late": "turn.event.rejected_late";
|
|
@@ -6953,6 +9724,61 @@ declare const GitHubRepository: z.ZodObject<{
|
|
|
6953
9724
|
accountType: z.ZodNullable<z.ZodString>;
|
|
6954
9725
|
}, z.core.$strip>;
|
|
6955
9726
|
type GitHubRepository = z.infer<typeof GitHubRepository>;
|
|
9727
|
+
declare const GitHubRepositoryScope: z.ZodEnum<{
|
|
9728
|
+
all: "all";
|
|
9729
|
+
selected: "selected";
|
|
9730
|
+
}>;
|
|
9731
|
+
type GitHubRepositoryScope = z.infer<typeof GitHubRepositoryScope>;
|
|
9732
|
+
declare const GitHubInstallationBinding: z.ZodObject<{
|
|
9733
|
+
installationId: z.ZodNumber;
|
|
9734
|
+
accountLogin: z.ZodNullable<z.ZodString>;
|
|
9735
|
+
accountType: z.ZodNullable<z.ZodString>;
|
|
9736
|
+
repositoryScope: z.ZodEnum<{
|
|
9737
|
+
all: "all";
|
|
9738
|
+
selected: "selected";
|
|
9739
|
+
}>;
|
|
9740
|
+
repositoryCount: z.ZodNumber;
|
|
9741
|
+
createdAt: z.ZodString;
|
|
9742
|
+
updatedAt: z.ZodString;
|
|
9743
|
+
}, z.core.$strip>;
|
|
9744
|
+
type GitHubInstallationBinding = z.infer<typeof GitHubInstallationBinding>;
|
|
9745
|
+
declare const GitHubAppInfo: z.ZodObject<{
|
|
9746
|
+
configured: z.ZodBoolean;
|
|
9747
|
+
appId: z.ZodNullable<z.ZodString>;
|
|
9748
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
9749
|
+
appSlug: z.ZodNullable<z.ZodString>;
|
|
9750
|
+
installUrl: z.ZodNullable<z.ZodString>;
|
|
9751
|
+
linkUrl: z.ZodNullable<z.ZodString>;
|
|
9752
|
+
installations: z.ZodArray<z.ZodObject<{
|
|
9753
|
+
installationId: z.ZodNumber;
|
|
9754
|
+
accountLogin: z.ZodNullable<z.ZodString>;
|
|
9755
|
+
accountType: z.ZodNullable<z.ZodString>;
|
|
9756
|
+
repositoryScope: z.ZodEnum<{
|
|
9757
|
+
all: "all";
|
|
9758
|
+
selected: "selected";
|
|
9759
|
+
}>;
|
|
9760
|
+
repositoryCount: z.ZodNumber;
|
|
9761
|
+
createdAt: z.ZodString;
|
|
9762
|
+
updatedAt: z.ZodString;
|
|
9763
|
+
}, z.core.$strip>>;
|
|
9764
|
+
missing: z.ZodArray<z.ZodString>;
|
|
9765
|
+
}, z.core.$strip>;
|
|
9766
|
+
type GitHubAppInfo = z.infer<typeof GitHubAppInfo>;
|
|
9767
|
+
declare const GitHubRepositoriesResponse: z.ZodObject<{
|
|
9768
|
+
repositories: z.ZodArray<z.ZodObject<{
|
|
9769
|
+
id: z.ZodNumber;
|
|
9770
|
+
installationId: z.ZodNumber;
|
|
9771
|
+
fullName: z.ZodString;
|
|
9772
|
+
name: z.ZodString;
|
|
9773
|
+
private: z.ZodBoolean;
|
|
9774
|
+
htmlUrl: z.ZodString;
|
|
9775
|
+
cloneUrl: z.ZodString;
|
|
9776
|
+
defaultBranch: z.ZodString;
|
|
9777
|
+
accountLogin: z.ZodString;
|
|
9778
|
+
accountType: z.ZodNullable<z.ZodString>;
|
|
9779
|
+
}, z.core.$strip>>;
|
|
9780
|
+
}, z.core.$strip>;
|
|
9781
|
+
type GitHubRepositoriesResponse = z.infer<typeof GitHubRepositoriesResponse>;
|
|
6956
9782
|
declare const ClientAuthConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6957
9783
|
mode: z.ZodLiteral<"none">;
|
|
6958
9784
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -7633,8 +10459,19 @@ declare const ClientModel: z.ZodObject<{
|
|
|
7633
10459
|
contextWindowTokens: z.ZodOptional<z.ZodNumber>;
|
|
7634
10460
|
}, z.core.$strip>;
|
|
7635
10461
|
type ClientModel = z.infer<typeof ClientModel>;
|
|
10462
|
+
/**
|
|
10463
|
+
* Exact public HTTP protocol revision spoken by this release train.
|
|
10464
|
+
*
|
|
10465
|
+
* This is deliberately independent from a deployment SHA: API and web may roll
|
|
10466
|
+
* at different instants, while incompatible request shapes must never cross
|
|
10467
|
+
* that rollout boundary. Mutating clients send this value in
|
|
10468
|
+
* `x-opengeni-api-contract`; the API rejects any other value before routing.
|
|
10469
|
+
*/
|
|
10470
|
+
declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-turn-instructions-v1";
|
|
10471
|
+
declare const OPENGENI_API_CONTRACT_HEADER: "x-opengeni-api-contract";
|
|
7636
10472
|
declare const ClientConfig: z.ZodObject<{
|
|
7637
10473
|
deploymentRevision: z.ZodString;
|
|
10474
|
+
apiContractRevision: z.ZodLiteral<"2026-07-turn-instructions-v1">;
|
|
7638
10475
|
serverVersion: z.ZodOptional<z.ZodString>;
|
|
7639
10476
|
defaultModel: z.ZodString;
|
|
7640
10477
|
allowedModels: z.ZodArray<z.ZodString>;
|
|
@@ -7729,4 +10566,4 @@ declare function evaluateWorkspaceModelPolicy(policy: WorkspaceModelPolicyContra
|
|
|
7729
10566
|
modelId: string;
|
|
7730
10567
|
}): WorkspaceModelPolicyVerdict;
|
|
7731
10568
|
|
|
7732
|
-
export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, BillingBalance, BillingMode, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CancelSessionQueueItemRequest, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EnableCapabilityRequest, EnablePackRequest, EnrollTokenExchangeRequest, EnrollTokenExchangeResponse, EnrollTokenPayload, EnrollmentArch, EnrollmentBearerPayload, EnrollmentCredentialsResponse, EnrollmentOs, EnrollmentSummary, EntitlementDecision, EntitlementValue, Entitlements, EntitlementsMode, type EntitlementsPort, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, FsChangeKind, FsChangedPayload, FsDeleteRequest, FsDeleteResponse, FsEncoding, FsListRequest, FsListResponse, FsMkdirRequest, FsMkdirResponse, FsMoveRequest, FsMoveResponse, FsNodeType, FsReadRequest, FsReadResponse, FsTreeNode, FsWriteRequest, FsWriteResponse, GetWorkspaceCaptureFileResponse, GetWorkspaceCaptureResponse, GitChangedPayload, GitCommit, GitCredentialProvider, GitCredentialRepositoryRef, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHubAppApiPort, GitHubAppManifestCreate, type GitHubInstallationSummary, GitHubRepository, GitLogRequest, GitLogResponse, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, LineageNode, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, OAuthStartRequest, OAuthStartResponse, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, ResourceRef, ResourceRefConflictError, RevokeEnrollmentResponse, Rig, RigChange, RigChangeKind, RigChangeStatus, RigChangeVerification, RigCheck, RigCheckResult, RigDefinitionEditPayload, RigSetupAppendPayload, RigVerificationHealth, RigVersion, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, Session, SessionBusMessage, SessionCapabilities, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEvent, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionLineageResponse, SessionListResponse, SessionMcpCredentialUpdateInput, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdateState, SessionTurn, SessionTurnSource, SessionTurnStatus, SetVariableSetVariableRequest, SetWorkspaceDefaultRigRequest, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, SteerSessionMessageRequest, SteerSessionMessageResponse, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SwapActiveSandboxRequest, SwapActiveSandboxResponse, SystemUpdateClassification, TERMINAL_STREAM_PORT, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TriggerScheduledTaskRequest, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionPinRequest, UpdateSessionRequest, UpdateVariableSetRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceModelPolicyRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, UsageEvent, UsageEventType, UsageLimitsMode, VariableSet, VariableSetVariableMetadata, VariableSetVariableName, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, Workspace, WorkspaceCaptureDegradedReason, WorkspaceCaptureFile, WorkspaceCaptureManifest, WorkspaceCaptureRepo, WorkspaceCaptureSignedUrl, WorkspaceCaptureStats, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, WorkspaceInferenceState, WorkspaceMember, WorkspaceMemorySearchMode, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceMemorySearchResult, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, evaluateWorkspaceModelPolicy, isClearedRunStateBlob, mergeResourceRefs, mergeToolRefs, prefixedMcpToolName, reasoningEffortForMetadata, resolveWorkspaceMemoryEnabled, resourceIdentityKey, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken };
|
|
10569
|
+
export { AccessContext, AccessGrant, AccountGrant, AccountRole, AcknowledgeStreamRequest, AcknowledgeStreamResponse, AddDocumentRequest, AddWorkspaceMemberRequest, type AdmitRunInput, ApiKey, AttachViewerRequest, type AuthorizeSessionInput, BillingBalance, BillingMode, type BoundSessionEventOptions, type BoundSessionEventPayloadOptions, type BoundWorkspaceControlEventOptions, CAPABILITY_DESCRIPTORS, CLEARED_RUN_STATE_BLOB, CLEARED_RUN_STATE_MARKER, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ComposerDraft, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSessionResponse, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, CredentialAuthNeededPayload, type CredentialAuthNeededReason, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeleteSessionQueueItemRequest, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, EditSessionQueueItemRequest, EffectiveControlBlocker, EffectiveControlResumeOption, EffectiveSessionControl, EnableCapabilityRequest, EnablePackRequest, EnrollTokenExchangeRequest, EnrollTokenExchangeResponse, EnrollTokenPayload, EnrollmentArch, EnrollmentBearerPayload, EnrollmentCredentialsResponse, EnrollmentOs, EnrollmentSummary, EntitlementDecision, EntitlementValue, Entitlements, EntitlementsMode, type EntitlementsPort, ErrorCode, ErrorEnvelope, FileAsset, FileDownloadUrlResponse, FileResourceRef, FileStatus, FileUploadStatus, FsChangeKind, FsChangedPayload, FsDeleteRequest, FsDeleteResponse, FsEncoding, FsListRequest, FsListResponse, FsMkdirRequest, FsMkdirResponse, FsMoveRequest, FsMoveResponse, FsNodeType, FsReadRequest, FsReadResponse, FsTreeNode, FsWriteRequest, FsWriteResponse, GetWorkspaceCaptureFileResponse, GetWorkspaceCaptureResponse, GitChangedPayload, GitCommit, GitCredentialBindingId, GitCredentialProvider, GitCredentialRepositoryRef, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHubAppApiPort, GitHubAppInfo, GitHubAppManifestCreate, GitHubInstallationBinding, type GitHubInstallationSummary, GitHubRepositoriesResponse, GitHubRepository, type GitHubRepositoryPermissions, GitHubRepositoryScope, type GitHubUserInstallationAccess, type GitHubUserRepositoryAccess, GitLogRequest, GitLogResponse, GitRepositoryAccess, GitShowRequest, GitShowResponse, GitStatusRequest, GitStatusResponse, GoalSpec, type HealthResponse, HostEventExport, HostEventExportBatch, type HostEventSink, HostExportConsumerId, HostExportCursor, HostExportInitiator, HostExportInitiatorContext, HostSessionEvent, HostUsageEvent, HostUsageExport, HostUsageExportBatch, type HostUsageSink, HumanInputAnswer, HumanInputOption, HumanInputQuestion, HumanInputQuestionKind, HumanInputRequestStatus, HumanInputResponse, IntegrationClientMetadata, KnowledgeMemory, KnowledgeMemoryKind, KnowledgeMemorySearchRequest, KnowledgeMemoryStatus, KnowledgeSourceKind, KnowledgeSourceRef, LimitAction, LimitDecision, LineageNode, ListConnectionsResponse, ListEnrollmentsResponse, ListWorkspaceMembersResponse, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpConnectionResourceScope, type McpCredentialAuthNeededReason, type McpCredentialResolution, type McpCredentialsRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, MoveSessionQueueItemRequest, OAuthStartRequest, OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OPENGENI_HOST_EXPORT_SCHEMA_REVISION, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, RequestHumanInputToolInput, type ResolveSessionAuthorizationListScopeInput, type ResolveSessionEventTypeFiltersInput, ResourceMountPathError, ResourceRef, ResourceRefConflictError, RevokeEnrollmentResponse, Rig, RigChange, RigChangeKind, RigChangeStatus, RigChangeVerification, RigCheck, RigCheckResult, RigDefinitionEditPayload, RigSetupAppendPayload, RigVerificationHealth, RigVersion, type RunCredentialAuthNeeded, type RunCredentialFile, type RunCredentialRedaction, type RunCredentialsRequest, type RunCredentialsResolution, SESSION_AUTHORIZATION_LIST_SCOPE_MAX_IDS, SESSION_EVENT_CLIENT_EVENT_ID_MAX_BYTES, SESSION_EVENT_DUPLICATE_REASON_MAX_BYTES, SESSION_EVENT_ENVELOPE_MAX_BYTES, SESSION_EVENT_PAYLOAD_MAX_BYTES, SESSION_EVENT_RAW_DELTA_TYPES, SESSION_EVENT_SEMANTIC_CLASS_TYPES, SESSION_EVENT_TURN_ASSOCIATION_MAX_BYTES, SESSION_EVENT_TYPE_MAX_BYTES, SESSION_OPERATION_KEY_MAX_CHARS, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, SaveComposerDraftRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, ServiceTurnInitiator, ServiceTurnInitiatorContext, Session, SessionAuthorizationActor, SessionAuthorizationDecision, SessionAuthorizationListScope, SessionAuthorizationOperation, type SessionAuthorizationPort, SessionAuthorizationSurface, SessionAuthorizationTarget, SessionBusMessage, SessionCapabilities, SessionCommandReceipt, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEvent, type SessionEventBoundarySurface, type SessionEventJsonMeasurement, type SessionEventMediaPreview, SessionEventPayloadMode, type SessionEventPayloadTruncation, SessionEventReadDirection, SessionEventReadMode, SessionEventSemanticClass, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionHumanInputRequest, SessionLineageResponse, SessionListResponse, SessionMcpCredentialUpdateInput, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdatePayload, SessionSystemUpdateState, SessionTurn, SessionTurnSource, SessionTurnStatus, SetVariableSetVariableRequest, SetWorkspaceDefaultRigRequest, SetWorkspaceEnvironmentVariableRequest, SocialConnection, SocialConnectionStatus, SocialPost, SocialProvider, StaticUsageLimits, SteerSessionMessageRequest, SteerSessionMessageResponse, SteerSessionQueueItemRequest, StreamClosedPayload, StreamOpenedPayload, StreamRevokedPayload, StreamTokenPayload, StreamUrlRotatedPayload, SubmitHumanInputResponseRequest, SwapActiveSandboxRequest, SwapActiveSandboxResponse, SystemUpdateClassification, TERMINAL_STREAM_PORT, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TranscriptionErrorCode, TranscriptionEvent, TranscriptionResultMetadata, TranscriptionSpeaker, TranscriptionTimeSpan, TranscriptionWord, TriggerScheduledTaskRequest, TurnInitiator, TurnInitiatorContext, UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionPinRequest, UpdateSessionRequest, UpdateVariableSetRequest, UpdateWorkspaceEnvironmentRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceModelPolicyRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, UsageEvent, UsageEventType, UsageLimitsMode, VariableSet, VariableSetVariableMetadata, VariableSetVariableName, ViewerHeartbeatRequest, ViewerHeartbeatResponse, ViewerHolder, WORKSPACE_CONTROL_ACTOR_MAX_BYTES, WORKSPACE_CONTROL_EVENT_MAX_BYTES, WORKSPACE_CONTROL_REASON_MAX_BYTES, Workspace, WorkspaceCaptureDegradedReason, WorkspaceCaptureFile, WorkspaceCaptureManifest, WorkspaceCaptureRepo, WorkspaceCaptureSignedUrl, WorkspaceCaptureStats, type WorkspaceControlBoundarySurface, WorkspaceControlEvent, WorkspaceControlEventTruncation, WorkspaceEnvironment, WorkspaceEnvironmentVariableMetadata, WorkspaceInferenceControlRequest, WorkspaceInferenceControlResponse, WorkspaceInferenceState, WorkspaceMember, WorkspaceMemorySearchMode, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceMemorySearchResult, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, WorkspaceTranscriptionPolicy, WorkspaceTranscriptionTarget, approvalIdentifier, approximateSessionEventTokens, assertUniqueResourceMountPaths, boundSessionEvent, boundSessionEventPayload, boundWorkspaceControlEvent, defaultRepositoryMountPath, evaluateWorkspaceModelPolicy, gitCredentialBindingIdForRepository, gitCredentialProviderForRepository, isClearedRunStateBlob, measureSessionEventJson, mergeResourceRefs, mergeToolRefs, normalizeRepositorySubpath, normalizeResourceMountPath, prefixedMcpToolName, reasoningEffortForMetadata, resolveSessionEventTypeFilters, resolveWorkspaceMemoryEnabled, resourceIdentityKey, resourceMountPath, resourceMountPathCollisionKey, sessionEventJsonBytes, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken, workspaceControlUtf8Bytes };
|