@opengeni/contracts 0.18.0 → 0.19.4
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 +970 -67
- package/dist/index.js +1378 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/codex-fleet-policy.ts +1405 -0
- package/src/index.ts +302 -6
- package/src/secret-redaction.ts +364 -0
package/dist/index.d.ts
CHANGED
|
@@ -283,6 +283,258 @@ declare function sessionEventPayloadTruncation(payload: unknown): SessionEventPa
|
|
|
283
283
|
*/
|
|
284
284
|
declare function boundSessionEventPayload<T>(payload: T, options?: BoundSessionEventPayloadOptions): T;
|
|
285
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Adaptive Codex fleet policy, replay contract, and shadow evaluator.
|
|
288
|
+
*
|
|
289
|
+
* This module is deliberately pure and browser-safe. It accepts only bounded,
|
|
290
|
+
* metadata-only snapshots whose candidate keys are opaque aliases assigned by
|
|
291
|
+
* the caller. It never accepts credential ids, account emails, labels, token
|
|
292
|
+
* material, prompts, or tenant activity. The same normalized snapshot can be
|
|
293
|
+
* persisted in a session event, replayed offline, and compared byte-for-byte.
|
|
294
|
+
*
|
|
295
|
+
* V1 is shadow-only at the runtime integration boundary. The evaluator models
|
|
296
|
+
* later placement, admission, manager priority, borrowing, emergency-fuse, and
|
|
297
|
+
* named-overlay semantics so they can be proven with deterministic simulations
|
|
298
|
+
* before any independent kill switch is allowed to affect a live allocation.
|
|
299
|
+
*/
|
|
300
|
+
declare const CODEX_FLEET_POLICY_SCHEMA_VERSION: 1;
|
|
301
|
+
declare const CODEX_FLEET_POLICY_VERSION: "adaptive-shadow-v1";
|
|
302
|
+
declare const CODEX_FLEET_POLICY_MAX_CANDIDATES = 32;
|
|
303
|
+
declare const CODEX_FLEET_POLICY_MAX_OVERLAYS_PER_CANDIDATE = 4;
|
|
304
|
+
/**
|
|
305
|
+
* Replay-integrity ordering for bounded ASCII-safe fleet keys and aliases.
|
|
306
|
+
*
|
|
307
|
+
* Locale-aware collation is intentionally forbidden here because its result
|
|
308
|
+
* can depend on locale and ICU data. Relational string comparison uses
|
|
309
|
+
* ECMAScript UTF-16 code-unit ordering and is therefore identical in Bun,
|
|
310
|
+
* Node, and browsers.
|
|
311
|
+
*/
|
|
312
|
+
declare function compareCodexFleetCanonicalStringsV1(left: string, right: string): number;
|
|
313
|
+
type CodexFleetConfidence = "unknown" | "low" | "medium" | "high";
|
|
314
|
+
type CodexFleetCandidateStatus = "active" | "needs_relogin" | "error" | "unknown";
|
|
315
|
+
type CodexFleetCacheState = "unknown" | "healthy" | "collapsed";
|
|
316
|
+
type CodexFleetPriority = "standard" | "manager";
|
|
317
|
+
type CodexFleetPlacementKind = "new" | "fenced_in_flight";
|
|
318
|
+
type CodexFleetOverlayMode = "none" | "prefer" | "isolate";
|
|
319
|
+
type CodexFleetQuotaWindowV1 = {
|
|
320
|
+
/** Provider-reported percentage from a workspace-local cache, never inferred tenant truth. */
|
|
321
|
+
usedPercent: number | null;
|
|
322
|
+
/** Relative to input.observedAtMs. Zero means the reported window has reset. */
|
|
323
|
+
resetRemainingMs: number | null;
|
|
324
|
+
};
|
|
325
|
+
type CodexFleetCandidateV1 = {
|
|
326
|
+
/** Opaque, event-local alias such as c00. Never a credential/account id. */
|
|
327
|
+
key: string;
|
|
328
|
+
status: CodexFleetCandidateStatus;
|
|
329
|
+
allocatorEnabled: boolean;
|
|
330
|
+
/** Relative cooldown. A positive value excludes only NEW placements. */
|
|
331
|
+
cooldownRemainingMs: number | null;
|
|
332
|
+
activeLeaseCount: number;
|
|
333
|
+
quota: {
|
|
334
|
+
primary: CodexFleetQuotaWindowV1;
|
|
335
|
+
secondary: CodexFleetQuotaWindowV1;
|
|
336
|
+
checkedAgeMs: number | null;
|
|
337
|
+
confidence: CodexFleetConfidence;
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* Runtime-observed cache evidence. It may be absent because the production
|
|
341
|
+
* baseline currently exists as aggregate metrics/logs rather than allocator
|
|
342
|
+
* state. Absence is explicit uncertainty, not a zero cache hit.
|
|
343
|
+
*/
|
|
344
|
+
cache: {
|
|
345
|
+
hitRatio: number | null;
|
|
346
|
+
sampledTokens: number | null;
|
|
347
|
+
checkedAgeMs: number | null;
|
|
348
|
+
confidence: CodexFleetConfidence;
|
|
349
|
+
/** Previously latched state; the evaluator applies dwell and recovery thresholds. */
|
|
350
|
+
state: CodexFleetCacheState;
|
|
351
|
+
/** Duration of the current continuous below/above-threshold observation. */
|
|
352
|
+
thresholdObservedForMs: number | null;
|
|
353
|
+
};
|
|
354
|
+
/** Workspace-local observed burn, separate from unexplained/external inference. */
|
|
355
|
+
observedBurn: {
|
|
356
|
+
primaryPercentPerHour: number | null;
|
|
357
|
+
secondaryPercentPerHour: number | null;
|
|
358
|
+
confidence: CodexFleetConfidence;
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Unexplained/external burn is an inference only. The name and confidence are
|
|
362
|
+
* load-bearing: consumers must never relabel it as provider or tenant truth.
|
|
363
|
+
*/
|
|
364
|
+
inferredUnexplainedBurn: {
|
|
365
|
+
primaryPercentPerHour: number | null;
|
|
366
|
+
secondaryPercentPerHour: number | null;
|
|
367
|
+
confidence: CodexFleetConfidence;
|
|
368
|
+
};
|
|
369
|
+
/** Opaque named-policy keys. Ignored unless overlaysEnabled is independently true. */
|
|
370
|
+
overlayKeys: string[];
|
|
371
|
+
};
|
|
372
|
+
type CodexFleetAdmissionSnapshotV1 = {
|
|
373
|
+
/** Dynamically observed capacity, not a static per-account slot allocation. */
|
|
374
|
+
dynamicCapacityUnits: number | null;
|
|
375
|
+
inUseUnits: number;
|
|
376
|
+
queuedManagerCount: number;
|
|
377
|
+
emergencyFuseActive: boolean;
|
|
378
|
+
};
|
|
379
|
+
type CodexFleetDecisionInputV1 = {
|
|
380
|
+
observedAtMs: number;
|
|
381
|
+
request: {
|
|
382
|
+
placement: CodexFleetPlacementKind;
|
|
383
|
+
priority: CodexFleetPriority;
|
|
384
|
+
currentCandidateKey: string | null;
|
|
385
|
+
waitAgeMs: number;
|
|
386
|
+
overlayKey: string | null;
|
|
387
|
+
overlayMode: CodexFleetOverlayMode;
|
|
388
|
+
};
|
|
389
|
+
admission: CodexFleetAdmissionSnapshotV1;
|
|
390
|
+
candidates: CodexFleetCandidateV1[];
|
|
391
|
+
};
|
|
392
|
+
type CodexFleetPolicyConfigV1 = {
|
|
393
|
+
maxCandidates: number;
|
|
394
|
+
quotaFreshForMs: number;
|
|
395
|
+
quotaStaleAfterMs: number;
|
|
396
|
+
placementUsageCeilingPercent: number;
|
|
397
|
+
cacheFreshForMs: number;
|
|
398
|
+
cacheCollapseThreshold: number;
|
|
399
|
+
cacheCollapseRecoveryThreshold: number;
|
|
400
|
+
cacheMinimumSampledTokens: number;
|
|
401
|
+
cacheCollapseDwellMs: number;
|
|
402
|
+
cacheRecoveryDwellMs: number;
|
|
403
|
+
activeLeaseScore: number;
|
|
404
|
+
unknownQuotaScore: number;
|
|
405
|
+
lowQuotaConfidenceScore: number;
|
|
406
|
+
mediumQuotaConfidenceScore: number;
|
|
407
|
+
inferredBurnScorePerPercentHour: number;
|
|
408
|
+
observedBurnScorePerPercentHour: number;
|
|
409
|
+
/** Maximum exhaustion-before-reset gap that contributes placement pressure. */
|
|
410
|
+
runwayRiskCapHours: number;
|
|
411
|
+
runwayScorePerAtRiskHour: number;
|
|
412
|
+
healthyCacheAffinityBenefit: number;
|
|
413
|
+
unknownCacheAffinityBenefit: number;
|
|
414
|
+
collapsedCacheAffinityBenefit: number;
|
|
415
|
+
switchHysteresisScore: number;
|
|
416
|
+
admissionPacingEnabled: boolean;
|
|
417
|
+
managerPriorityEnabled: boolean;
|
|
418
|
+
managerStandardStarvationMs: number;
|
|
419
|
+
emergencyFuseEnabled: boolean;
|
|
420
|
+
overlaysEnabled: boolean;
|
|
421
|
+
overlayPreferenceScore: number;
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* Experimental shadow defaults. None of the boolean control fields is enabled;
|
|
425
|
+
* production behavior therefore remains sticky-sharded until operators enable
|
|
426
|
+
* each independently after shadow acceptance.
|
|
427
|
+
*/
|
|
428
|
+
declare const DEFAULT_CODEX_FLEET_POLICY_V1: CodexFleetPolicyConfigV1;
|
|
429
|
+
type CodexFleetScoreV1 = {
|
|
430
|
+
candidateKey: string;
|
|
431
|
+
eligible: boolean;
|
|
432
|
+
rejectionReason: "allocator_disabled" | "unavailable" | "cooling" | "quota_ceiling" | "overlay_isolation" | null;
|
|
433
|
+
quotaPressure: number;
|
|
434
|
+
leasePressure: number;
|
|
435
|
+
observedBurnPressure: number;
|
|
436
|
+
inferredBurnPressure: number;
|
|
437
|
+
runwayPressure: number;
|
|
438
|
+
uncertaintyPressure: number;
|
|
439
|
+
cacheAffinityBenefit: number;
|
|
440
|
+
cacheState: CodexFleetCacheState;
|
|
441
|
+
overlayPreferenceBenefit: number;
|
|
442
|
+
total: number;
|
|
443
|
+
confidence: CodexFleetConfidence;
|
|
444
|
+
};
|
|
445
|
+
type CodexFleetAdmissionDecisionV1 = {
|
|
446
|
+
outcome: "admit" | "pace";
|
|
447
|
+
reason: "fenced_in_flight" | "pacing_disabled" | "capacity_unknown" | "capacity_available" | "work_conserving_borrow" | "manager_priority" | "standard_starvation_bound" | "capacity_saturated" | "emergency_fuse";
|
|
448
|
+
/** True only when standard work uses otherwise-idle capacity with no manager backlog. */
|
|
449
|
+
borrowedIdleCapacity: boolean;
|
|
450
|
+
};
|
|
451
|
+
type CodexFleetDecisionV1 = {
|
|
452
|
+
outcome: "selected" | "paced" | "none";
|
|
453
|
+
selectedCandidateKey: string | null;
|
|
454
|
+
reason: "fenced_in_flight" | "fenced_candidate_missing" | "admission_paced" | "no_eligible_candidate" | "overlay_isolated_empty" | "best_score" | "affinity_best" | "hysteresis_hold";
|
|
455
|
+
admission: CodexFleetAdmissionDecisionV1;
|
|
456
|
+
borrowedOverlayCapacity: boolean;
|
|
457
|
+
strandedEligibleCount: number;
|
|
458
|
+
confidence: CodexFleetConfidence;
|
|
459
|
+
scores: CodexFleetScoreV1[];
|
|
460
|
+
};
|
|
461
|
+
type CodexFleetReplayRecordV1 = {
|
|
462
|
+
schemaVersion: typeof CODEX_FLEET_POLICY_SCHEMA_VERSION;
|
|
463
|
+
policyVersion: typeof CODEX_FLEET_POLICY_VERSION;
|
|
464
|
+
mode: "shadow";
|
|
465
|
+
policy: CodexFleetPolicyConfigV1;
|
|
466
|
+
input: CodexFleetDecisionInputV1;
|
|
467
|
+
truncatedCandidateCount: number;
|
|
468
|
+
policyFingerprint: string;
|
|
469
|
+
inputFingerprint: string;
|
|
470
|
+
decision: CodexFleetDecisionV1;
|
|
471
|
+
decisionFingerprint: string;
|
|
472
|
+
};
|
|
473
|
+
type CodexFleetReplayVerdictV1 = {
|
|
474
|
+
matches: boolean;
|
|
475
|
+
policyFingerprintMatches: boolean;
|
|
476
|
+
inputFingerprintMatches: boolean;
|
|
477
|
+
decisionFingerprintMatches: boolean;
|
|
478
|
+
recordedDecisionFingerprintMatches: boolean;
|
|
479
|
+
decision: CodexFleetDecisionV1;
|
|
480
|
+
};
|
|
481
|
+
declare function createCodexFleetReplayRecordV1(input: CodexFleetDecisionInputV1, policy?: CodexFleetPolicyConfigV1): CodexFleetReplayRecordV1;
|
|
482
|
+
declare function replayCodexFleetDecisionV1(value: unknown): CodexFleetReplayVerdictV1;
|
|
483
|
+
/**
|
|
484
|
+
* Canonical replay bytes for already-bounded, identity-free fleet values.
|
|
485
|
+
* This is exported so offline tools can prove the exact bytes across runtimes;
|
|
486
|
+
* it performs no redaction and must not be used with raw account metadata.
|
|
487
|
+
*/
|
|
488
|
+
declare function canonicalCodexFleetReplayJsonV1(value: CodexFleetReplayRecordV1): string;
|
|
489
|
+
/**
|
|
490
|
+
* Strict reader for durable/offline replay. Unknown fields, lossy normalization,
|
|
491
|
+
* malformed decisions, and non-SHA-256 digests are rejected before comparison.
|
|
492
|
+
*/
|
|
493
|
+
declare function readCodexFleetReplayRecordV1(value: unknown): CodexFleetReplayRecordV1;
|
|
494
|
+
declare function evaluateCodexFleetDecisionV1(input: CodexFleetDecisionInputV1, policy?: CodexFleetPolicyConfigV1): CodexFleetDecisionV1;
|
|
495
|
+
declare function effectiveCodexFleetCacheStateV1(cache: CodexFleetCandidateV1["cache"], policy: CodexFleetPolicyConfigV1): CodexFleetCacheState;
|
|
496
|
+
|
|
497
|
+
type SecretForRedaction = {
|
|
498
|
+
name: string;
|
|
499
|
+
value: string;
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* Returns true only for fields whose value is itself credential material.
|
|
503
|
+
* Container fields such as `headers` and URL fields are intentionally not
|
|
504
|
+
* included: their nested/value sanitizers retain useful names, hosts, paths,
|
|
505
|
+
* and non-sensitive query parameters.
|
|
506
|
+
*/
|
|
507
|
+
declare function isSensitiveFieldName(name: string): boolean;
|
|
508
|
+
/**
|
|
509
|
+
* Return true only for header names whose values are credential material.
|
|
510
|
+
* Ordinary protocol metadata (`content-type`, `accept`, `user-agent`, and
|
|
511
|
+
* pagination/signature headers outside this allowlist) must remain intact.
|
|
512
|
+
*/
|
|
513
|
+
declare function isCredentialHeaderName(name: string): boolean;
|
|
514
|
+
/**
|
|
515
|
+
* Redact only exact known-secret provenance from a structured object key.
|
|
516
|
+
* Generic field/header heuristics intentionally do not run here: a key is
|
|
517
|
+
* metadata unless the caller has proved that its bytes are secret material.
|
|
518
|
+
*/
|
|
519
|
+
declare function redactSensitiveKey(key: string, knownSecrets?: readonly SecretForRedaction[]): string;
|
|
520
|
+
/**
|
|
521
|
+
* Redact known secret provenance and common credential-bearing text shapes.
|
|
522
|
+
* This is deliberately a conservative safety boundary, not a promise of
|
|
523
|
+
* general-purpose DLP. It never includes a matched value in a marker or error.
|
|
524
|
+
*/
|
|
525
|
+
declare function redactSensitiveText(text: string, knownSecrets?: readonly SecretForRedaction[]): string;
|
|
526
|
+
/** Deeply redact plain structured data while retaining its diagnostic shape. */
|
|
527
|
+
declare function redactSensitiveData<T>(value: T, knownSecrets?: readonly SecretForRedaction[]): T;
|
|
528
|
+
/** Build the worker-friendly single-argument redactor used at turn boundaries. */
|
|
529
|
+
declare function createSecretRedactor(knownSecrets: readonly SecretForRedaction[]): (value: unknown) => unknown;
|
|
530
|
+
/**
|
|
531
|
+
* Redact a serialized JSON checkpoint without requiring it to be valid JSON.
|
|
532
|
+
* Valid JSON retains structure; malformed/opaque text still receives text
|
|
533
|
+
* classification and exact-known-value replacement.
|
|
534
|
+
*/
|
|
535
|
+
declare function redactSerializedJson(serialized: string, knownSecrets?: readonly SecretForRedaction[]): string;
|
|
536
|
+
declare function identityRedactor<T>(value: T): T;
|
|
537
|
+
|
|
286
538
|
declare const SessionStatus: z.ZodEnum<{
|
|
287
539
|
queued: "queued";
|
|
288
540
|
running: "running";
|
|
@@ -393,6 +645,8 @@ declare const ErrorCode: z.ZodEnum<{
|
|
|
393
645
|
conflict: "conflict";
|
|
394
646
|
idempotency_conflict: "idempotency_conflict";
|
|
395
647
|
limit_exceeded: "limit_exceeded";
|
|
648
|
+
nested_agent_depth_exceeded: "nested_agent_depth_exceeded";
|
|
649
|
+
nested_agent_depth_override_forbidden: "nested_agent_depth_override_forbidden";
|
|
396
650
|
provider_verification_failed: "provider_verification_failed";
|
|
397
651
|
upstream_unavailable: "upstream_unavailable";
|
|
398
652
|
internal_error: "internal_error";
|
|
@@ -400,6 +654,7 @@ declare const ErrorCode: z.ZodEnum<{
|
|
|
400
654
|
type ErrorCode = z.infer<typeof ErrorCode>;
|
|
401
655
|
declare const ErrorEnvelope: z.ZodObject<{
|
|
402
656
|
error: z.ZodObject<{
|
|
657
|
+
status: z.ZodNumber;
|
|
403
658
|
code: z.ZodEnum<{
|
|
404
659
|
unauthenticated: "unauthenticated";
|
|
405
660
|
forbidden: "forbidden";
|
|
@@ -408,16 +663,59 @@ declare const ErrorEnvelope: z.ZodObject<{
|
|
|
408
663
|
conflict: "conflict";
|
|
409
664
|
idempotency_conflict: "idempotency_conflict";
|
|
410
665
|
limit_exceeded: "limit_exceeded";
|
|
666
|
+
nested_agent_depth_exceeded: "nested_agent_depth_exceeded";
|
|
667
|
+
nested_agent_depth_override_forbidden: "nested_agent_depth_override_forbidden";
|
|
411
668
|
provider_verification_failed: "provider_verification_failed";
|
|
412
669
|
upstream_unavailable: "upstream_unavailable";
|
|
413
670
|
internal_error: "internal_error";
|
|
414
671
|
}>;
|
|
415
672
|
message: z.ZodString;
|
|
673
|
+
retryable: z.ZodBoolean;
|
|
416
674
|
requestId: z.ZodOptional<z.ZodString>;
|
|
417
675
|
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
418
676
|
}, z.core.$strip>;
|
|
419
677
|
}, z.core.$strip>;
|
|
420
678
|
type ErrorEnvelope = z.infer<typeof ErrorEnvelope>;
|
|
679
|
+
/** Physical ceiling of the PostgreSQL integer columns that persist depth policy. */
|
|
680
|
+
declare const MAX_NESTED_AGENT_DEPTH = 2147483647;
|
|
681
|
+
declare const NestedAgentDepthValue: z.ZodNumber;
|
|
682
|
+
type NestedAgentDepthValue = z.infer<typeof NestedAgentDepthValue>;
|
|
683
|
+
/** A denied child can be one greater than the persisted PostgreSQL int ceiling. */
|
|
684
|
+
declare const NestedAgentDepthAttemptValue: z.ZodNumber;
|
|
685
|
+
declare const NestedAgentDepthPolicySource: z.ZodEnum<{
|
|
686
|
+
default: "default";
|
|
687
|
+
session: "session";
|
|
688
|
+
workspace: "workspace";
|
|
689
|
+
deployment: "deployment";
|
|
690
|
+
}>;
|
|
691
|
+
type NestedAgentDepthPolicySource = z.infer<typeof NestedAgentDepthPolicySource>;
|
|
692
|
+
/** Durable evidence for a session-create denial at the database admission boundary. */
|
|
693
|
+
declare const SessionSpawnDenial: z.ZodObject<{
|
|
694
|
+
id: z.ZodString;
|
|
695
|
+
accountId: z.ZodString;
|
|
696
|
+
workspaceId: z.ZodString;
|
|
697
|
+
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
698
|
+
rootSessionId: z.ZodNullable<z.ZodString>;
|
|
699
|
+
currentDepth: z.ZodNumber;
|
|
700
|
+
attemptedDepth: z.ZodNumber;
|
|
701
|
+
effectiveMaxNestedAgentDepth: z.ZodNumber;
|
|
702
|
+
requestedMaxNestedAgentDepthOverride: z.ZodNullable<z.ZodNumber>;
|
|
703
|
+
policySource: z.ZodEnum<{
|
|
704
|
+
default: "default";
|
|
705
|
+
session: "session";
|
|
706
|
+
workspace: "workspace";
|
|
707
|
+
deployment: "deployment";
|
|
708
|
+
}>;
|
|
709
|
+
policySessionId: z.ZodNullable<z.ZodString>;
|
|
710
|
+
subjectId: z.ZodNullable<z.ZodString>;
|
|
711
|
+
code: z.ZodEnum<{
|
|
712
|
+
nested_agent_depth_exceeded: "nested_agent_depth_exceeded";
|
|
713
|
+
nested_agent_depth_override_forbidden: "nested_agent_depth_override_forbidden";
|
|
714
|
+
}>;
|
|
715
|
+
idempotencyKey: z.ZodNullable<z.ZodString>;
|
|
716
|
+
createdAt: z.ZodString;
|
|
717
|
+
}, z.core.$strip>;
|
|
718
|
+
type SessionSpawnDenial = z.infer<typeof SessionSpawnDenial>;
|
|
421
719
|
declare const Permission: z.ZodEnum<{
|
|
422
720
|
"account:read": "account:read";
|
|
423
721
|
"account:admin": "account:admin";
|
|
@@ -832,6 +1130,7 @@ declare const WorkspaceSettingsSchema: z.ZodObject<{
|
|
|
832
1130
|
maxPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
833
1131
|
}, z.core.$strict>;
|
|
834
1132
|
}, z.core.$strict>>;
|
|
1133
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
835
1134
|
}, z.core.$loose>;
|
|
836
1135
|
type WorkspaceSettings = z.infer<typeof WorkspaceSettingsSchema>;
|
|
837
1136
|
declare function resolveWorkspaceMemoryEnabled(settings: unknown): boolean;
|
|
@@ -889,6 +1188,7 @@ declare const UpdateWorkspaceSettingsRequest: z.ZodObject<{
|
|
|
889
1188
|
maxPerMonth: z.ZodNullable<z.ZodNumber>;
|
|
890
1189
|
}, z.core.$strict>;
|
|
891
1190
|
}, z.core.$strict>>;
|
|
1191
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
892
1192
|
}, z.core.$loose>;
|
|
893
1193
|
type UpdateWorkspaceSettingsRequest = z.infer<typeof UpdateWorkspaceSettingsRequest>;
|
|
894
1194
|
declare const SetWorkspaceDefaultRigRequest: z.ZodObject<{
|
|
@@ -1934,8 +2234,8 @@ declare const McpServerConnectionRef: z.ZodObject<{
|
|
|
1934
2234
|
kind: z.ZodLiteral<"repository">;
|
|
1935
2235
|
}, z.core.$strict>>>;
|
|
1936
2236
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
1937
|
-
subject: "subject";
|
|
1938
2237
|
workspace: "workspace";
|
|
2238
|
+
subject: "subject";
|
|
1939
2239
|
}>>;
|
|
1940
2240
|
}, z.core.$strict>;
|
|
1941
2241
|
type McpServerConnectionRef = z.infer<typeof McpServerConnectionRef>;
|
|
@@ -2012,10 +2312,19 @@ type ConnectionCredentialsPort = {
|
|
|
2012
2312
|
};
|
|
2013
2313
|
type GitHubInstallationSummary = {
|
|
2014
2314
|
installationId: number;
|
|
2315
|
+
accountId: number;
|
|
2015
2316
|
accountLogin: string | null;
|
|
2016
2317
|
accountType: string | null;
|
|
2017
2318
|
suspended: boolean;
|
|
2018
2319
|
};
|
|
2320
|
+
type GitHubInstallationAuthorityKind = "personal_owner" | "organization_owner";
|
|
2321
|
+
interface GitHubInstallationBindingProof {
|
|
2322
|
+
actorId: number;
|
|
2323
|
+
actorLogin: string;
|
|
2324
|
+
authorityKind: GitHubInstallationAuthorityKind;
|
|
2325
|
+
installation: GitHubInstallationSummary;
|
|
2326
|
+
repositories: GitHubRepository[];
|
|
2327
|
+
}
|
|
2019
2328
|
type GitHubRepositoryPermissions = {
|
|
2020
2329
|
admin: boolean;
|
|
2021
2330
|
maintain: boolean;
|
|
@@ -2030,6 +2339,18 @@ type GitHubUserInstallationAccess = GitHubInstallationSummary & {
|
|
|
2030
2339
|
repositories: GitHubUserRepositoryAccess[];
|
|
2031
2340
|
};
|
|
2032
2341
|
type GitHubAppApiPort = {
|
|
2342
|
+
/**
|
|
2343
|
+
* Exchange one fresh GitHub user-authorization code and prove current
|
|
2344
|
+
* installation authority. Implementations must accept only exact personal
|
|
2345
|
+
* ownership or active organization ownership; installation visibility,
|
|
2346
|
+
* repository permission bits, and App Manager metadata are not authority.
|
|
2347
|
+
* Organization ownership must be revalidated after repository discovery,
|
|
2348
|
+
* immediately before returning the proof used by the durable bind.
|
|
2349
|
+
*/
|
|
2350
|
+
authorizeInstallationBinding?: (input: {
|
|
2351
|
+
code: string;
|
|
2352
|
+
installationId: number;
|
|
2353
|
+
}) => Promise<GitHubInstallationBindingProof>;
|
|
2033
2354
|
authorizeUser?: (input: {
|
|
2034
2355
|
code: string;
|
|
2035
2356
|
}) => Promise<GitHubUserInstallationAccess[]>;
|
|
@@ -2265,6 +2586,28 @@ declare const DocumentSearchMode: z.ZodEnum<{
|
|
|
2265
2586
|
keyword: "keyword";
|
|
2266
2587
|
}>;
|
|
2267
2588
|
type DocumentSearchMode = z.infer<typeof DocumentSearchMode>;
|
|
2589
|
+
declare const DocumentVisibility: z.ZodEnum<{
|
|
2590
|
+
workspace: "workspace";
|
|
2591
|
+
private: "private";
|
|
2592
|
+
}>;
|
|
2593
|
+
type DocumentVisibility = z.infer<typeof DocumentVisibility>;
|
|
2594
|
+
declare const DocumentCurationStatus: z.ZodEnum<{
|
|
2595
|
+
failed: "failed";
|
|
2596
|
+
none: "none";
|
|
2597
|
+
pending: "pending";
|
|
2598
|
+
suggested: "suggested";
|
|
2599
|
+
auto_filed: "auto_filed";
|
|
2600
|
+
}>;
|
|
2601
|
+
type DocumentCurationStatus = z.infer<typeof DocumentCurationStatus>;
|
|
2602
|
+
declare const DocumentCuration: z.ZodObject<{
|
|
2603
|
+
suggestedBaseId: z.ZodNullable<z.ZodString>;
|
|
2604
|
+
suggestedBaseName: z.ZodNullable<z.ZodString>;
|
|
2605
|
+
confidence: z.ZodNumber;
|
|
2606
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2607
|
+
originalTitle: z.ZodNullable<z.ZodString>;
|
|
2608
|
+
model: z.ZodNullable<z.ZodString>;
|
|
2609
|
+
}, z.core.$strip>;
|
|
2610
|
+
type DocumentCuration = z.infer<typeof DocumentCuration>;
|
|
2268
2611
|
declare const DocumentBase: z.ZodObject<{
|
|
2269
2612
|
id: z.ZodString;
|
|
2270
2613
|
workspaceId: z.ZodString;
|
|
@@ -2307,6 +2650,29 @@ declare const Document: z.ZodObject<{
|
|
|
2307
2650
|
sourceUpdatedAt: z.ZodNullable<z.ZodString>;
|
|
2308
2651
|
sourceVersion: z.ZodNullable<z.ZodString>;
|
|
2309
2652
|
aclTags: z.ZodArray<z.ZodString>;
|
|
2653
|
+
visibility: z.ZodEnum<{
|
|
2654
|
+
workspace: "workspace";
|
|
2655
|
+
private: "private";
|
|
2656
|
+
}>;
|
|
2657
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
2658
|
+
agentAccess: z.ZodBoolean;
|
|
2659
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
2660
|
+
topics: z.ZodArray<z.ZodString>;
|
|
2661
|
+
curationStatus: z.ZodEnum<{
|
|
2662
|
+
failed: "failed";
|
|
2663
|
+
none: "none";
|
|
2664
|
+
pending: "pending";
|
|
2665
|
+
suggested: "suggested";
|
|
2666
|
+
auto_filed: "auto_filed";
|
|
2667
|
+
}>;
|
|
2668
|
+
curation: z.ZodNullable<z.ZodObject<{
|
|
2669
|
+
suggestedBaseId: z.ZodNullable<z.ZodString>;
|
|
2670
|
+
suggestedBaseName: z.ZodNullable<z.ZodString>;
|
|
2671
|
+
confidence: z.ZodNumber;
|
|
2672
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
2673
|
+
originalTitle: z.ZodNullable<z.ZodString>;
|
|
2674
|
+
model: z.ZodNullable<z.ZodString>;
|
|
2675
|
+
}, z.core.$strip>>;
|
|
2310
2676
|
createdAt: z.ZodString;
|
|
2311
2677
|
updatedAt: z.ZodString;
|
|
2312
2678
|
}, z.core.$strip>;
|
|
@@ -2375,8 +2741,29 @@ declare const AddDocumentRequest: z.ZodObject<{
|
|
|
2375
2741
|
sourceUpdatedAt: z.ZodOptional<z.ZodString>;
|
|
2376
2742
|
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
2377
2743
|
aclTags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2744
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
2745
|
+
workspace: "workspace";
|
|
2746
|
+
private: "private";
|
|
2747
|
+
}>>;
|
|
2748
|
+
agentAccess: z.ZodOptional<z.ZodBoolean>;
|
|
2378
2749
|
}, z.core.$strip>;
|
|
2379
2750
|
type AddDocumentRequest = z.infer<typeof AddDocumentRequest>;
|
|
2751
|
+
declare const CreateKnowledgeDropRequest: z.ZodObject<{
|
|
2752
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2753
|
+
fileId: z.ZodOptional<z.ZodString>;
|
|
2754
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
2755
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2756
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
2757
|
+
workspace: "workspace";
|
|
2758
|
+
private: "private";
|
|
2759
|
+
}>>;
|
|
2760
|
+
agentAccess: z.ZodOptional<z.ZodBoolean>;
|
|
2761
|
+
}, z.core.$strip>;
|
|
2762
|
+
type CreateKnowledgeDropRequest = z.infer<typeof CreateKnowledgeDropRequest>;
|
|
2763
|
+
declare const MoveDocumentRequest: z.ZodObject<{
|
|
2764
|
+
targetBaseId: z.ZodOptional<z.ZodString>;
|
|
2765
|
+
}, z.core.$strip>;
|
|
2766
|
+
type MoveDocumentRequest = z.infer<typeof MoveDocumentRequest>;
|
|
2380
2767
|
declare const DocumentSearchRequest: z.ZodObject<{
|
|
2381
2768
|
query: z.ZodString;
|
|
2382
2769
|
baseIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -2805,8 +3192,8 @@ declare const SessionMcpServerInput: z.ZodObject<{
|
|
|
2805
3192
|
kind: z.ZodLiteral<"repository">;
|
|
2806
3193
|
}, z.core.$strict>>>;
|
|
2807
3194
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
2808
|
-
subject: "subject";
|
|
2809
3195
|
workspace: "workspace";
|
|
3196
|
+
subject: "subject";
|
|
2810
3197
|
}>>;
|
|
2811
3198
|
}, z.core.$strict>>;
|
|
2812
3199
|
}, z.core.$strip>;
|
|
@@ -2840,8 +3227,8 @@ declare const SessionMcpServerMetadata: z.ZodObject<{
|
|
|
2840
3227
|
kind: z.ZodLiteral<"repository">;
|
|
2841
3228
|
}, z.core.$strict>>>;
|
|
2842
3229
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
2843
|
-
subject: "subject";
|
|
2844
3230
|
workspace: "workspace";
|
|
3231
|
+
subject: "subject";
|
|
2845
3232
|
}>>;
|
|
2846
3233
|
}, z.core.$strict>>>;
|
|
2847
3234
|
}, z.core.$strict>;
|
|
@@ -2875,8 +3262,8 @@ declare const UpdateSessionMcpApprovalPolicyResponse: z.ZodObject<{
|
|
|
2875
3262
|
kind: z.ZodLiteral<"repository">;
|
|
2876
3263
|
}, z.core.$strict>>>;
|
|
2877
3264
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
2878
|
-
subject: "subject";
|
|
2879
3265
|
workspace: "workspace";
|
|
3266
|
+
subject: "subject";
|
|
2880
3267
|
}>>;
|
|
2881
3268
|
}, z.core.$strict>>>;
|
|
2882
3269
|
}, z.core.$strict>;
|
|
@@ -2946,6 +3333,57 @@ declare const SessionGoalPausedReason: z.ZodEnum<{
|
|
|
2946
3333
|
limits: "limits";
|
|
2947
3334
|
}>;
|
|
2948
3335
|
type SessionGoalPausedReason = z.infer<typeof SessionGoalPausedReason>;
|
|
3336
|
+
declare const SessionGoalContinuationState: z.ZodEnum<{
|
|
3337
|
+
running: "running";
|
|
3338
|
+
inactive: "inactive";
|
|
3339
|
+
scheduled: "scheduled";
|
|
3340
|
+
blocked: "blocked";
|
|
3341
|
+
invariant_broken: "invariant_broken";
|
|
3342
|
+
}>;
|
|
3343
|
+
type SessionGoalContinuationState = z.infer<typeof SessionGoalContinuationState>;
|
|
3344
|
+
declare const SessionGoalContinuationReason: z.ZodEnum<{
|
|
3345
|
+
goal_inactive: "goal_inactive";
|
|
3346
|
+
wake_pending: "wake_pending";
|
|
3347
|
+
continuation_pending: "continuation_pending";
|
|
3348
|
+
human_work_pending: "human_work_pending";
|
|
3349
|
+
goal_turn_running: "goal_turn_running";
|
|
3350
|
+
human_turn_running: "human_turn_running";
|
|
3351
|
+
workstream_paused: "workstream_paused";
|
|
3352
|
+
approval_required: "approval_required";
|
|
3353
|
+
provider_backpressure: "provider_backpressure";
|
|
3354
|
+
session_cancelled: "session_cancelled";
|
|
3355
|
+
system_work_pending: "system_work_pending";
|
|
3356
|
+
missing_obligation: "missing_obligation";
|
|
3357
|
+
}>;
|
|
3358
|
+
type SessionGoalContinuationReason = z.infer<typeof SessionGoalContinuationReason>;
|
|
3359
|
+
declare const SessionGoalContinuation: z.ZodObject<{
|
|
3360
|
+
state: z.ZodEnum<{
|
|
3361
|
+
running: "running";
|
|
3362
|
+
inactive: "inactive";
|
|
3363
|
+
scheduled: "scheduled";
|
|
3364
|
+
blocked: "blocked";
|
|
3365
|
+
invariant_broken: "invariant_broken";
|
|
3366
|
+
}>;
|
|
3367
|
+
reason: z.ZodEnum<{
|
|
3368
|
+
goal_inactive: "goal_inactive";
|
|
3369
|
+
wake_pending: "wake_pending";
|
|
3370
|
+
continuation_pending: "continuation_pending";
|
|
3371
|
+
human_work_pending: "human_work_pending";
|
|
3372
|
+
goal_turn_running: "goal_turn_running";
|
|
3373
|
+
human_turn_running: "human_turn_running";
|
|
3374
|
+
workstream_paused: "workstream_paused";
|
|
3375
|
+
approval_required: "approval_required";
|
|
3376
|
+
provider_backpressure: "provider_backpressure";
|
|
3377
|
+
session_cancelled: "session_cancelled";
|
|
3378
|
+
system_work_pending: "system_work_pending";
|
|
3379
|
+
missing_obligation: "missing_obligation";
|
|
3380
|
+
}>;
|
|
3381
|
+
wakeRevision: z.ZodNumber;
|
|
3382
|
+
observedRevision: z.ZodNumber;
|
|
3383
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
3384
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
3385
|
+
}, z.core.$strip>;
|
|
3386
|
+
type SessionGoalContinuation = z.infer<typeof SessionGoalContinuation>;
|
|
2949
3387
|
declare const SessionGoal: z.ZodObject<{
|
|
2950
3388
|
id: z.ZodString;
|
|
2951
3389
|
accountId: z.ZodString;
|
|
@@ -2971,6 +3409,33 @@ declare const SessionGoal: z.ZodObject<{
|
|
|
2971
3409
|
noProgressStreak: z.ZodNumber;
|
|
2972
3410
|
maxAutoContinuations: z.ZodNullable<z.ZodNumber>;
|
|
2973
3411
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3412
|
+
continuation: z.ZodOptional<z.ZodObject<{
|
|
3413
|
+
state: z.ZodEnum<{
|
|
3414
|
+
running: "running";
|
|
3415
|
+
inactive: "inactive";
|
|
3416
|
+
scheduled: "scheduled";
|
|
3417
|
+
blocked: "blocked";
|
|
3418
|
+
invariant_broken: "invariant_broken";
|
|
3419
|
+
}>;
|
|
3420
|
+
reason: z.ZodEnum<{
|
|
3421
|
+
goal_inactive: "goal_inactive";
|
|
3422
|
+
wake_pending: "wake_pending";
|
|
3423
|
+
continuation_pending: "continuation_pending";
|
|
3424
|
+
human_work_pending: "human_work_pending";
|
|
3425
|
+
goal_turn_running: "goal_turn_running";
|
|
3426
|
+
human_turn_running: "human_turn_running";
|
|
3427
|
+
workstream_paused: "workstream_paused";
|
|
3428
|
+
approval_required: "approval_required";
|
|
3429
|
+
provider_backpressure: "provider_backpressure";
|
|
3430
|
+
session_cancelled: "session_cancelled";
|
|
3431
|
+
system_work_pending: "system_work_pending";
|
|
3432
|
+
missing_obligation: "missing_obligation";
|
|
3433
|
+
}>;
|
|
3434
|
+
wakeRevision: z.ZodNumber;
|
|
3435
|
+
observedRevision: z.ZodNumber;
|
|
3436
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
3437
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
3438
|
+
}, z.core.$strip>>;
|
|
2974
3439
|
createdAt: z.ZodString;
|
|
2975
3440
|
updatedAt: z.ZodString;
|
|
2976
3441
|
}, z.core.$strip>;
|
|
@@ -2993,6 +3458,25 @@ declare const UpdateSessionRequest: z.ZodObject<{
|
|
|
2993
3458
|
title: z.ZodString;
|
|
2994
3459
|
}, z.core.$strip>;
|
|
2995
3460
|
type UpdateSessionRequest = z.infer<typeof UpdateSessionRequest>;
|
|
3461
|
+
/**
|
|
3462
|
+
* Replace an existing session's durable tool policy, or explicitly opt back in
|
|
3463
|
+
* to the current workspace defaults. The mode-less explicit shape is retained
|
|
3464
|
+
* for compatibility with clients released before workspace-default adoption
|
|
3465
|
+
* was supported.
|
|
3466
|
+
*/
|
|
3467
|
+
declare const UpdateSessionToolPolicyRequest: z.ZodUnion<readonly [z.ZodObject<{
|
|
3468
|
+
mode: z.ZodLiteral<"workspace_default">;
|
|
3469
|
+
expectedVersion: z.ZodNumber;
|
|
3470
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3471
|
+
mode: z.ZodOptional<z.ZodLiteral<"explicit">>;
|
|
3472
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
3473
|
+
kind: z.ZodLiteral<"mcp">;
|
|
3474
|
+
id: z.ZodString;
|
|
3475
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3476
|
+
}, z.core.$strip>>;
|
|
3477
|
+
expectedVersion: z.ZodNumber;
|
|
3478
|
+
}, z.core.$strict>]>;
|
|
3479
|
+
type UpdateSessionToolPolicyRequest = z.infer<typeof UpdateSessionToolPolicyRequest>;
|
|
2996
3480
|
/**
|
|
2997
3481
|
* A member's personal pin preference for a session. `expectedVersion` is
|
|
2998
3482
|
* optional: ordinary pin/unpin actions are idempotent last-write-wins, while a
|
|
@@ -3101,6 +3585,7 @@ declare const SessionAuthorizationOperation: z.ZodEnum<{
|
|
|
3101
3585
|
"session.human_input.write": "session.human_input.write";
|
|
3102
3586
|
"session.title.write": "session.title.write";
|
|
3103
3587
|
"session.mcp.approval_policy.write": "session.mcp.approval_policy.write";
|
|
3588
|
+
"session.tool_policy.write": "session.tool_policy.write";
|
|
3104
3589
|
"session.goal.read": "session.goal.read";
|
|
3105
3590
|
"session.goal.write": "session.goal.write";
|
|
3106
3591
|
"session.child.create": "session.child.create";
|
|
@@ -3301,8 +3786,8 @@ declare const SessionTurn: z.ZodObject<{
|
|
|
3301
3786
|
type SessionTurn = z.infer<typeof SessionTurn>;
|
|
3302
3787
|
declare const EffectiveControlBlocker: z.ZodObject<{
|
|
3303
3788
|
kind: z.ZodEnum<{
|
|
3304
|
-
workspace: "workspace";
|
|
3305
3789
|
session: "session";
|
|
3790
|
+
workspace: "workspace";
|
|
3306
3791
|
}>;
|
|
3307
3792
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3308
3793
|
displayName: z.ZodString;
|
|
@@ -3314,9 +3799,9 @@ declare const EffectiveControlBlocker: z.ZodObject<{
|
|
|
3314
3799
|
type EffectiveControlBlocker = z.infer<typeof EffectiveControlBlocker>;
|
|
3315
3800
|
declare const EffectiveControlResumeOption: z.ZodObject<{
|
|
3316
3801
|
scope: z.ZodEnum<{
|
|
3802
|
+
session: "session";
|
|
3317
3803
|
workspace: "workspace";
|
|
3318
3804
|
selected: "selected";
|
|
3319
|
-
session: "session";
|
|
3320
3805
|
}>;
|
|
3321
3806
|
targetId: z.ZodOptional<z.ZodString>;
|
|
3322
3807
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -3325,8 +3810,8 @@ declare const EffectiveControlResumeOption: z.ZodObject<{
|
|
|
3325
3810
|
}>;
|
|
3326
3811
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
3327
3812
|
kind: z.ZodEnum<{
|
|
3328
|
-
workspace: "workspace";
|
|
3329
3813
|
session: "session";
|
|
3814
|
+
workspace: "workspace";
|
|
3330
3815
|
}>;
|
|
3331
3816
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3332
3817
|
displayName: z.ZodString;
|
|
@@ -3351,8 +3836,8 @@ declare const EffectiveSessionControl: z.ZodObject<{
|
|
|
3351
3836
|
}>;
|
|
3352
3837
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
3353
3838
|
kind: z.ZodEnum<{
|
|
3354
|
-
workspace: "workspace";
|
|
3355
3839
|
session: "session";
|
|
3840
|
+
workspace: "workspace";
|
|
3356
3841
|
}>;
|
|
3357
3842
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3358
3843
|
displayName: z.ZodString;
|
|
@@ -3364,8 +3849,8 @@ declare const EffectiveSessionControl: z.ZodObject<{
|
|
|
3364
3849
|
additionalBlockerCount: z.ZodNumber;
|
|
3365
3850
|
blockers: z.ZodArray<z.ZodObject<{
|
|
3366
3851
|
kind: z.ZodEnum<{
|
|
3367
|
-
workspace: "workspace";
|
|
3368
3852
|
session: "session";
|
|
3853
|
+
workspace: "workspace";
|
|
3369
3854
|
}>;
|
|
3370
3855
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3371
3856
|
displayName: z.ZodString;
|
|
@@ -3376,9 +3861,9 @@ declare const EffectiveSessionControl: z.ZodObject<{
|
|
|
3376
3861
|
}, z.core.$strip>>;
|
|
3377
3862
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
3378
3863
|
scope: z.ZodEnum<{
|
|
3864
|
+
session: "session";
|
|
3379
3865
|
workspace: "workspace";
|
|
3380
3866
|
selected: "selected";
|
|
3381
|
-
session: "session";
|
|
3382
3867
|
}>;
|
|
3383
3868
|
targetId: z.ZodOptional<z.ZodString>;
|
|
3384
3869
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -3387,8 +3872,8 @@ declare const EffectiveSessionControl: z.ZodObject<{
|
|
|
3387
3872
|
}>;
|
|
3388
3873
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
3389
3874
|
kind: z.ZodEnum<{
|
|
3390
|
-
workspace: "workspace";
|
|
3391
3875
|
session: "session";
|
|
3876
|
+
workspace: "workspace";
|
|
3392
3877
|
}>;
|
|
3393
3878
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3394
3879
|
displayName: z.ZodString;
|
|
@@ -3490,8 +3975,8 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
3490
3975
|
}>;
|
|
3491
3976
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
3492
3977
|
kind: z.ZodEnum<{
|
|
3493
|
-
workspace: "workspace";
|
|
3494
3978
|
session: "session";
|
|
3979
|
+
workspace: "workspace";
|
|
3495
3980
|
}>;
|
|
3496
3981
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3497
3982
|
displayName: z.ZodString;
|
|
@@ -3503,8 +3988,8 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
3503
3988
|
additionalBlockerCount: z.ZodNumber;
|
|
3504
3989
|
blockers: z.ZodArray<z.ZodObject<{
|
|
3505
3990
|
kind: z.ZodEnum<{
|
|
3506
|
-
workspace: "workspace";
|
|
3507
3991
|
session: "session";
|
|
3992
|
+
workspace: "workspace";
|
|
3508
3993
|
}>;
|
|
3509
3994
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3510
3995
|
displayName: z.ZodString;
|
|
@@ -3515,9 +4000,9 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
3515
4000
|
}, z.core.$strip>>;
|
|
3516
4001
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
3517
4002
|
scope: z.ZodEnum<{
|
|
4003
|
+
session: "session";
|
|
3518
4004
|
workspace: "workspace";
|
|
3519
4005
|
selected: "selected";
|
|
3520
|
-
session: "session";
|
|
3521
4006
|
}>;
|
|
3522
4007
|
targetId: z.ZodOptional<z.ZodString>;
|
|
3523
4008
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -3526,8 +4011,8 @@ declare const SessionQueueSnapshot: z.ZodObject<{
|
|
|
3526
4011
|
}>;
|
|
3527
4012
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
3528
4013
|
kind: z.ZodEnum<{
|
|
3529
|
-
workspace: "workspace";
|
|
3530
4014
|
session: "session";
|
|
4015
|
+
workspace: "workspace";
|
|
3531
4016
|
}>;
|
|
3532
4017
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
3533
4018
|
displayName: z.ZodString;
|
|
@@ -3685,8 +4170,238 @@ declare const DeleteSessionQueueItemRequest: z.ZodObject<{
|
|
|
3685
4170
|
expectedTurnVersion: z.ZodNumber;
|
|
3686
4171
|
reason: z.ZodOptional<z.ZodString>;
|
|
3687
4172
|
}, z.core.$strip>;
|
|
3688
|
-
type DeleteSessionQueueItemRequest = z.infer<typeof DeleteSessionQueueItemRequest>;
|
|
3689
|
-
declare const SaveComposerDraftRequest: z.ZodObject<{
|
|
4173
|
+
type DeleteSessionQueueItemRequest = z.infer<typeof DeleteSessionQueueItemRequest>;
|
|
4174
|
+
declare const SaveComposerDraftRequest: z.ZodObject<{
|
|
4175
|
+
model: z.ZodString;
|
|
4176
|
+
text: z.ZodString;
|
|
4177
|
+
reasoningEffort: z.ZodEnum<{
|
|
4178
|
+
none: "none";
|
|
4179
|
+
minimal: "minimal";
|
|
4180
|
+
low: "low";
|
|
4181
|
+
medium: "medium";
|
|
4182
|
+
high: "high";
|
|
4183
|
+
xhigh: "xhigh";
|
|
4184
|
+
}>;
|
|
4185
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
4186
|
+
kind: z.ZodLiteral<"mcp">;
|
|
4187
|
+
id: z.ZodString;
|
|
4188
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4189
|
+
}, z.core.$strip>>;
|
|
4190
|
+
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4191
|
+
kind: z.ZodLiteral<"repository">;
|
|
4192
|
+
uri: z.ZodString;
|
|
4193
|
+
ref: z.ZodString;
|
|
4194
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
4195
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
4196
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
4197
|
+
github: "github";
|
|
4198
|
+
gitlab: "gitlab";
|
|
4199
|
+
azure_devops: "azure_devops";
|
|
4200
|
+
}>>;
|
|
4201
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
4202
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
4203
|
+
read: "read";
|
|
4204
|
+
write: "write";
|
|
4205
|
+
}>>;
|
|
4206
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4207
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4208
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4209
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
4210
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
4211
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
4212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4213
|
+
kind: z.ZodLiteral<"file">;
|
|
4214
|
+
fileId: z.ZodString;
|
|
4215
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
4216
|
+
}, z.core.$strip>], "kind">>;
|
|
4217
|
+
toolsProvided: z.ZodDefault<z.ZodBoolean>;
|
|
4218
|
+
expectedRevision: z.ZodNumber;
|
|
4219
|
+
}, z.core.$strip>;
|
|
4220
|
+
type SaveComposerDraftRequest = z.infer<typeof SaveComposerDraftRequest>;
|
|
4221
|
+
/**
|
|
4222
|
+
* Create-only options saved with an actor's private pre-session draft. This is
|
|
4223
|
+
* deliberately narrower than CreateSessionRequest: idempotency/event keys and
|
|
4224
|
+
* credential-bearing MCP server inputs are per-attempt data, never draft state.
|
|
4225
|
+
*/
|
|
4226
|
+
declare const NewSessionDraftOptions: z.ZodObject<{
|
|
4227
|
+
sandboxBackend: z.ZodOptional<z.ZodEnum<{
|
|
4228
|
+
docker: "docker";
|
|
4229
|
+
modal: "modal";
|
|
4230
|
+
local: "local";
|
|
4231
|
+
none: "none";
|
|
4232
|
+
daytona: "daytona";
|
|
4233
|
+
runloop: "runloop";
|
|
4234
|
+
e2b: "e2b";
|
|
4235
|
+
blaxel: "blaxel";
|
|
4236
|
+
cloudflare: "cloudflare";
|
|
4237
|
+
vercel: "vercel";
|
|
4238
|
+
selfhosted: "selfhosted";
|
|
4239
|
+
}>>;
|
|
4240
|
+
targetSandboxId: z.ZodOptional<z.ZodString>;
|
|
4241
|
+
workingDir: z.ZodOptional<z.ZodString>;
|
|
4242
|
+
variableSetId: z.ZodOptional<z.ZodString>;
|
|
4243
|
+
rigId: z.ZodOptional<z.ZodString>;
|
|
4244
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
4245
|
+
text: z.ZodString;
|
|
4246
|
+
successCriteria: z.ZodOptional<z.ZodString>;
|
|
4247
|
+
maxAutoContinuations: z.ZodOptional<z.ZodNumber>;
|
|
4248
|
+
}, z.core.$strip>>;
|
|
4249
|
+
firstPartyMcpPermissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4250
|
+
"account:read": "account:read";
|
|
4251
|
+
"account:admin": "account:admin";
|
|
4252
|
+
"members:manage": "members:manage";
|
|
4253
|
+
"workspace:create": "workspace:create";
|
|
4254
|
+
"billing:read": "billing:read";
|
|
4255
|
+
"billing:manage": "billing:manage";
|
|
4256
|
+
"workspace:read": "workspace:read";
|
|
4257
|
+
"workspace:admin": "workspace:admin";
|
|
4258
|
+
"sessions:create": "sessions:create";
|
|
4259
|
+
"sessions:read": "sessions:read";
|
|
4260
|
+
"sessions:control": "sessions:control";
|
|
4261
|
+
"stream:view": "stream:view";
|
|
4262
|
+
"stream:control": "stream:control";
|
|
4263
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
4264
|
+
"files:upload": "files:upload";
|
|
4265
|
+
"files:read": "files:read";
|
|
4266
|
+
"files:write": "files:write";
|
|
4267
|
+
"terminal:attach": "terminal:attach";
|
|
4268
|
+
"documents:manage": "documents:manage";
|
|
4269
|
+
"documents:search": "documents:search";
|
|
4270
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
4271
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
4272
|
+
"github:manage": "github:manage";
|
|
4273
|
+
"github:use": "github:use";
|
|
4274
|
+
"api_keys:manage": "api_keys:manage";
|
|
4275
|
+
"connections:read": "connections:read";
|
|
4276
|
+
"connections:write": "connections:write";
|
|
4277
|
+
"environments:manage": "environments:manage";
|
|
4278
|
+
"environments:use": "environments:use";
|
|
4279
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
4280
|
+
"variable-sets:use": "variable-sets:use";
|
|
4281
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
4282
|
+
"toolspace:call": "toolspace:call";
|
|
4283
|
+
"goals:manage": "goals:manage";
|
|
4284
|
+
"enrollments:read": "enrollments:read";
|
|
4285
|
+
"enrollments:manage": "enrollments:manage";
|
|
4286
|
+
"rigs:use": "rigs:use";
|
|
4287
|
+
"rigs:manage": "rigs:manage";
|
|
4288
|
+
}>>>;
|
|
4289
|
+
}, z.core.$strip>;
|
|
4290
|
+
type NewSessionDraftOptions = z.infer<typeof NewSessionDraftOptions>;
|
|
4291
|
+
/** Actor-private, server-authoritative composer state before a session exists. */
|
|
4292
|
+
declare const NewSessionDraft: z.ZodObject<{
|
|
4293
|
+
revision: z.ZodNumber;
|
|
4294
|
+
text: z.ZodString;
|
|
4295
|
+
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4296
|
+
kind: z.ZodLiteral<"repository">;
|
|
4297
|
+
uri: z.ZodString;
|
|
4298
|
+
ref: z.ZodString;
|
|
4299
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
4300
|
+
subpath: z.ZodOptional<z.ZodString>;
|
|
4301
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
4302
|
+
github: "github";
|
|
4303
|
+
gitlab: "gitlab";
|
|
4304
|
+
azure_devops: "azure_devops";
|
|
4305
|
+
}>>;
|
|
4306
|
+
credentialBindingId: z.ZodOptional<z.ZodString>;
|
|
4307
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
4308
|
+
read: "read";
|
|
4309
|
+
write: "write";
|
|
4310
|
+
}>>;
|
|
4311
|
+
repositoryId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4312
|
+
installationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4313
|
+
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
4314
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
4315
|
+
githubInstallationId: z.ZodOptional<z.ZodNumber>;
|
|
4316
|
+
githubRepositoryId: z.ZodOptional<z.ZodNumber>;
|
|
4317
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4318
|
+
kind: z.ZodLiteral<"file">;
|
|
4319
|
+
fileId: z.ZodString;
|
|
4320
|
+
mountPath: z.ZodOptional<z.ZodString>;
|
|
4321
|
+
}, z.core.$strip>], "kind">>;
|
|
4322
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
4323
|
+
kind: z.ZodLiteral<"mcp">;
|
|
4324
|
+
id: z.ZodString;
|
|
4325
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4326
|
+
}, z.core.$strip>>;
|
|
4327
|
+
toolsProvided: z.ZodDefault<z.ZodBoolean>;
|
|
4328
|
+
model: z.ZodString;
|
|
4329
|
+
reasoningEffort: z.ZodEnum<{
|
|
4330
|
+
none: "none";
|
|
4331
|
+
minimal: "minimal";
|
|
4332
|
+
low: "low";
|
|
4333
|
+
medium: "medium";
|
|
4334
|
+
high: "high";
|
|
4335
|
+
xhigh: "xhigh";
|
|
4336
|
+
}>;
|
|
4337
|
+
options: z.ZodObject<{
|
|
4338
|
+
sandboxBackend: z.ZodOptional<z.ZodEnum<{
|
|
4339
|
+
docker: "docker";
|
|
4340
|
+
modal: "modal";
|
|
4341
|
+
local: "local";
|
|
4342
|
+
none: "none";
|
|
4343
|
+
daytona: "daytona";
|
|
4344
|
+
runloop: "runloop";
|
|
4345
|
+
e2b: "e2b";
|
|
4346
|
+
blaxel: "blaxel";
|
|
4347
|
+
cloudflare: "cloudflare";
|
|
4348
|
+
vercel: "vercel";
|
|
4349
|
+
selfhosted: "selfhosted";
|
|
4350
|
+
}>>;
|
|
4351
|
+
targetSandboxId: z.ZodOptional<z.ZodString>;
|
|
4352
|
+
workingDir: z.ZodOptional<z.ZodString>;
|
|
4353
|
+
variableSetId: z.ZodOptional<z.ZodString>;
|
|
4354
|
+
rigId: z.ZodOptional<z.ZodString>;
|
|
4355
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
4356
|
+
text: z.ZodString;
|
|
4357
|
+
successCriteria: z.ZodOptional<z.ZodString>;
|
|
4358
|
+
maxAutoContinuations: z.ZodOptional<z.ZodNumber>;
|
|
4359
|
+
}, z.core.$strip>>;
|
|
4360
|
+
firstPartyMcpPermissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4361
|
+
"account:read": "account:read";
|
|
4362
|
+
"account:admin": "account:admin";
|
|
4363
|
+
"members:manage": "members:manage";
|
|
4364
|
+
"workspace:create": "workspace:create";
|
|
4365
|
+
"billing:read": "billing:read";
|
|
4366
|
+
"billing:manage": "billing:manage";
|
|
4367
|
+
"workspace:read": "workspace:read";
|
|
4368
|
+
"workspace:admin": "workspace:admin";
|
|
4369
|
+
"sessions:create": "sessions:create";
|
|
4370
|
+
"sessions:read": "sessions:read";
|
|
4371
|
+
"sessions:control": "sessions:control";
|
|
4372
|
+
"stream:view": "stream:view";
|
|
4373
|
+
"stream:control": "stream:control";
|
|
4374
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
4375
|
+
"files:upload": "files:upload";
|
|
4376
|
+
"files:read": "files:read";
|
|
4377
|
+
"files:write": "files:write";
|
|
4378
|
+
"terminal:attach": "terminal:attach";
|
|
4379
|
+
"documents:manage": "documents:manage";
|
|
4380
|
+
"documents:search": "documents:search";
|
|
4381
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
4382
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
4383
|
+
"github:manage": "github:manage";
|
|
4384
|
+
"github:use": "github:use";
|
|
4385
|
+
"api_keys:manage": "api_keys:manage";
|
|
4386
|
+
"connections:read": "connections:read";
|
|
4387
|
+
"connections:write": "connections:write";
|
|
4388
|
+
"environments:manage": "environments:manage";
|
|
4389
|
+
"environments:use": "environments:use";
|
|
4390
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
4391
|
+
"variable-sets:use": "variable-sets:use";
|
|
4392
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
4393
|
+
"toolspace:call": "toolspace:call";
|
|
4394
|
+
"goals:manage": "goals:manage";
|
|
4395
|
+
"enrollments:read": "enrollments:read";
|
|
4396
|
+
"enrollments:manage": "enrollments:manage";
|
|
4397
|
+
"rigs:use": "rigs:use";
|
|
4398
|
+
"rigs:manage": "rigs:manage";
|
|
4399
|
+
}>>>;
|
|
4400
|
+
}, z.core.$strip>;
|
|
4401
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
4402
|
+
}, z.core.$strip>;
|
|
4403
|
+
type NewSessionDraft = z.infer<typeof NewSessionDraft>;
|
|
4404
|
+
declare const SaveNewSessionDraftRequest: z.ZodObject<{
|
|
3690
4405
|
model: z.ZodString;
|
|
3691
4406
|
text: z.ZodString;
|
|
3692
4407
|
reasoningEffort: z.ZodEnum<{
|
|
@@ -3697,6 +4412,11 @@ declare const SaveComposerDraftRequest: z.ZodObject<{
|
|
|
3697
4412
|
high: "high";
|
|
3698
4413
|
xhigh: "xhigh";
|
|
3699
4414
|
}>;
|
|
4415
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
4416
|
+
kind: z.ZodLiteral<"mcp">;
|
|
4417
|
+
id: z.ZodString;
|
|
4418
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
4419
|
+
}, z.core.$strip>>;
|
|
3700
4420
|
resources: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3701
4421
|
kind: z.ZodLiteral<"repository">;
|
|
3702
4422
|
uri: z.ZodString;
|
|
@@ -3724,15 +4444,74 @@ declare const SaveComposerDraftRequest: z.ZodObject<{
|
|
|
3724
4444
|
fileId: z.ZodString;
|
|
3725
4445
|
mountPath: z.ZodOptional<z.ZodString>;
|
|
3726
4446
|
}, z.core.$strip>], "kind">>;
|
|
3727
|
-
tools: z.ZodArray<z.ZodObject<{
|
|
3728
|
-
kind: z.ZodLiteral<"mcp">;
|
|
3729
|
-
id: z.ZodString;
|
|
3730
|
-
optional: z.ZodOptional<z.ZodBoolean>;
|
|
3731
|
-
}, z.core.$strip>>;
|
|
3732
4447
|
toolsProvided: z.ZodDefault<z.ZodBoolean>;
|
|
4448
|
+
options: z.ZodObject<{
|
|
4449
|
+
sandboxBackend: z.ZodOptional<z.ZodEnum<{
|
|
4450
|
+
docker: "docker";
|
|
4451
|
+
modal: "modal";
|
|
4452
|
+
local: "local";
|
|
4453
|
+
none: "none";
|
|
4454
|
+
daytona: "daytona";
|
|
4455
|
+
runloop: "runloop";
|
|
4456
|
+
e2b: "e2b";
|
|
4457
|
+
blaxel: "blaxel";
|
|
4458
|
+
cloudflare: "cloudflare";
|
|
4459
|
+
vercel: "vercel";
|
|
4460
|
+
selfhosted: "selfhosted";
|
|
4461
|
+
}>>;
|
|
4462
|
+
targetSandboxId: z.ZodOptional<z.ZodString>;
|
|
4463
|
+
workingDir: z.ZodOptional<z.ZodString>;
|
|
4464
|
+
variableSetId: z.ZodOptional<z.ZodString>;
|
|
4465
|
+
rigId: z.ZodOptional<z.ZodString>;
|
|
4466
|
+
goal: z.ZodOptional<z.ZodObject<{
|
|
4467
|
+
text: z.ZodString;
|
|
4468
|
+
successCriteria: z.ZodOptional<z.ZodString>;
|
|
4469
|
+
maxAutoContinuations: z.ZodOptional<z.ZodNumber>;
|
|
4470
|
+
}, z.core.$strip>>;
|
|
4471
|
+
firstPartyMcpPermissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
4472
|
+
"account:read": "account:read";
|
|
4473
|
+
"account:admin": "account:admin";
|
|
4474
|
+
"members:manage": "members:manage";
|
|
4475
|
+
"workspace:create": "workspace:create";
|
|
4476
|
+
"billing:read": "billing:read";
|
|
4477
|
+
"billing:manage": "billing:manage";
|
|
4478
|
+
"workspace:read": "workspace:read";
|
|
4479
|
+
"workspace:admin": "workspace:admin";
|
|
4480
|
+
"sessions:create": "sessions:create";
|
|
4481
|
+
"sessions:read": "sessions:read";
|
|
4482
|
+
"sessions:control": "sessions:control";
|
|
4483
|
+
"stream:view": "stream:view";
|
|
4484
|
+
"stream:control": "stream:control";
|
|
4485
|
+
"stream:acknowledge": "stream:acknowledge";
|
|
4486
|
+
"files:upload": "files:upload";
|
|
4487
|
+
"files:read": "files:read";
|
|
4488
|
+
"files:write": "files:write";
|
|
4489
|
+
"terminal:attach": "terminal:attach";
|
|
4490
|
+
"documents:manage": "documents:manage";
|
|
4491
|
+
"documents:search": "documents:search";
|
|
4492
|
+
"scheduled_tasks:manage": "scheduled_tasks:manage";
|
|
4493
|
+
"scheduled_tasks:run": "scheduled_tasks:run";
|
|
4494
|
+
"github:manage": "github:manage";
|
|
4495
|
+
"github:use": "github:use";
|
|
4496
|
+
"api_keys:manage": "api_keys:manage";
|
|
4497
|
+
"connections:read": "connections:read";
|
|
4498
|
+
"connections:write": "connections:write";
|
|
4499
|
+
"environments:manage": "environments:manage";
|
|
4500
|
+
"environments:use": "environments:use";
|
|
4501
|
+
"variable-sets:manage": "variable-sets:manage";
|
|
4502
|
+
"variable-sets:use": "variable-sets:use";
|
|
4503
|
+
"mcp_servers:attach": "mcp_servers:attach";
|
|
4504
|
+
"toolspace:call": "toolspace:call";
|
|
4505
|
+
"goals:manage": "goals:manage";
|
|
4506
|
+
"enrollments:read": "enrollments:read";
|
|
4507
|
+
"enrollments:manage": "enrollments:manage";
|
|
4508
|
+
"rigs:use": "rigs:use";
|
|
4509
|
+
"rigs:manage": "rigs:manage";
|
|
4510
|
+
}>>>;
|
|
4511
|
+
}, z.core.$strip>;
|
|
3733
4512
|
expectedRevision: z.ZodNumber;
|
|
3734
4513
|
}, z.core.$strip>;
|
|
3735
|
-
type
|
|
4514
|
+
type SaveNewSessionDraftRequest = z.infer<typeof SaveNewSessionDraftRequest>;
|
|
3736
4515
|
declare const WORKSPACE_CONTROL_REASON_MAX_BYTES: number;
|
|
3737
4516
|
declare const WORKSPACE_CONTROL_ACTOR_MAX_BYTES = 1024;
|
|
3738
4517
|
declare const WORKSPACE_CONTROL_EVENT_MAX_BYTES: number;
|
|
@@ -3815,8 +4594,8 @@ declare const WorkspaceControlEvent: z.ZodObject<{
|
|
|
3815
4594
|
revision: z.ZodNumber;
|
|
3816
4595
|
type: z.ZodLiteral<"workspace.control.changed">;
|
|
3817
4596
|
scope: z.ZodEnum<{
|
|
3818
|
-
workspace: "workspace";
|
|
3819
4597
|
session: "session";
|
|
4598
|
+
workspace: "workspace";
|
|
3820
4599
|
}>;
|
|
3821
4600
|
rootSessionId: z.ZodNullable<z.ZodString>;
|
|
3822
4601
|
action: z.ZodEnum<{
|
|
@@ -4441,6 +5220,7 @@ declare const ScheduledTaskAgentConfig: z.ZodObject<{
|
|
|
4441
5220
|
successCriteria: z.ZodOptional<z.ZodString>;
|
|
4442
5221
|
maxAutoContinuations: z.ZodOptional<z.ZodNumber>;
|
|
4443
5222
|
}, z.core.$strip>>;
|
|
5223
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodNumber>;
|
|
4444
5224
|
}, z.core.$strip>;
|
|
4445
5225
|
type ScheduledTaskAgentConfig = z.infer<typeof ScheduledTaskAgentConfig>;
|
|
4446
5226
|
declare const ScheduledTask: z.ZodObject<{
|
|
@@ -4548,6 +5328,7 @@ declare const ScheduledTask: z.ZodObject<{
|
|
|
4548
5328
|
successCriteria: z.ZodOptional<z.ZodString>;
|
|
4549
5329
|
maxAutoContinuations: z.ZodOptional<z.ZodNumber>;
|
|
4550
5330
|
}, z.core.$strip>>;
|
|
5331
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodNumber>;
|
|
4551
5332
|
}, z.core.$strip>;
|
|
4552
5333
|
reusableSessionId: z.ZodNullable<z.ZodString>;
|
|
4553
5334
|
variableSetId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -4678,6 +5459,7 @@ declare const CreateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
4678
5459
|
successCriteria: z.ZodOptional<z.ZodString>;
|
|
4679
5460
|
maxAutoContinuations: z.ZodOptional<z.ZodNumber>;
|
|
4680
5461
|
}, z.core.$strip>>;
|
|
5462
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodNumber>;
|
|
4681
5463
|
}, z.core.$strip>;
|
|
4682
5464
|
status: z.ZodDefault<z.ZodEnum<{
|
|
4683
5465
|
active: "active";
|
|
@@ -4786,6 +5568,7 @@ declare const UpdateScheduledTaskRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
4786
5568
|
successCriteria: z.ZodOptional<z.ZodString>;
|
|
4787
5569
|
maxAutoContinuations: z.ZodOptional<z.ZodNumber>;
|
|
4788
5570
|
}, z.core.$strip>>;
|
|
5571
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodNumber>;
|
|
4789
5572
|
}, z.core.$strip>>;
|
|
4790
5573
|
status: z.ZodOptional<z.ZodEnum<{
|
|
4791
5574
|
active: "active";
|
|
@@ -5718,8 +6501,8 @@ declare const EnableCapabilityRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
5718
6501
|
kind: z.ZodLiteral<"repository">;
|
|
5719
6502
|
}, z.core.$strict>>>;
|
|
5720
6503
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
5721
|
-
subject: "subject";
|
|
5722
6504
|
workspace: "workspace";
|
|
6505
|
+
subject: "subject";
|
|
5723
6506
|
}>>;
|
|
5724
6507
|
}, z.core.$strict>>;
|
|
5725
6508
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -5982,6 +6765,7 @@ declare const Session: z.ZodObject<{
|
|
|
5982
6765
|
}>;
|
|
5983
6766
|
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
5984
6767
|
}, z.core.$strip>>;
|
|
6768
|
+
toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
|
|
5985
6769
|
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
5986
6770
|
mode: z.ZodEnum<{
|
|
5987
6771
|
explicit: "explicit";
|
|
@@ -6112,12 +6896,23 @@ declare const Session: z.ZodObject<{
|
|
|
6112
6896
|
kind: z.ZodLiteral<"repository">;
|
|
6113
6897
|
}, z.core.$strict>>>;
|
|
6114
6898
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
6115
|
-
subject: "subject";
|
|
6116
6899
|
workspace: "workspace";
|
|
6900
|
+
subject: "subject";
|
|
6117
6901
|
}>>;
|
|
6118
6902
|
}, z.core.$strict>>>;
|
|
6119
6903
|
}, z.core.$strict>>>;
|
|
6120
6904
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
6905
|
+
rootSessionId: z.ZodString;
|
|
6906
|
+
nestedAgentDepth: z.ZodNumber;
|
|
6907
|
+
maxNestedAgentDepthOverride: z.ZodNullable<z.ZodNumber>;
|
|
6908
|
+
effectiveMaxNestedAgentDepth: z.ZodNumber;
|
|
6909
|
+
nestedAgentDepthPolicySource: z.ZodEnum<{
|
|
6910
|
+
default: "default";
|
|
6911
|
+
session: "session";
|
|
6912
|
+
workspace: "workspace";
|
|
6913
|
+
deployment: "deployment";
|
|
6914
|
+
}>;
|
|
6915
|
+
nestedAgentDepthPolicySessionId: z.ZodNullable<z.ZodString>;
|
|
6121
6916
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
6122
6917
|
temporalWorkflowId: z.ZodNullable<z.ZodString>;
|
|
6123
6918
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
@@ -6138,8 +6933,8 @@ declare const Session: z.ZodObject<{
|
|
|
6138
6933
|
}>;
|
|
6139
6934
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
6140
6935
|
kind: z.ZodEnum<{
|
|
6141
|
-
workspace: "workspace";
|
|
6142
6936
|
session: "session";
|
|
6937
|
+
workspace: "workspace";
|
|
6143
6938
|
}>;
|
|
6144
6939
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6145
6940
|
displayName: z.ZodString;
|
|
@@ -6151,8 +6946,8 @@ declare const Session: z.ZodObject<{
|
|
|
6151
6946
|
additionalBlockerCount: z.ZodNumber;
|
|
6152
6947
|
blockers: z.ZodArray<z.ZodObject<{
|
|
6153
6948
|
kind: z.ZodEnum<{
|
|
6154
|
-
workspace: "workspace";
|
|
6155
6949
|
session: "session";
|
|
6950
|
+
workspace: "workspace";
|
|
6156
6951
|
}>;
|
|
6157
6952
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6158
6953
|
displayName: z.ZodString;
|
|
@@ -6163,9 +6958,9 @@ declare const Session: z.ZodObject<{
|
|
|
6163
6958
|
}, z.core.$strip>>;
|
|
6164
6959
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6165
6960
|
scope: z.ZodEnum<{
|
|
6961
|
+
session: "session";
|
|
6166
6962
|
workspace: "workspace";
|
|
6167
6963
|
selected: "selected";
|
|
6168
|
-
session: "session";
|
|
6169
6964
|
}>;
|
|
6170
6965
|
targetId: z.ZodOptional<z.ZodString>;
|
|
6171
6966
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -6174,8 +6969,8 @@ declare const Session: z.ZodObject<{
|
|
|
6174
6969
|
}>;
|
|
6175
6970
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
6176
6971
|
kind: z.ZodEnum<{
|
|
6177
|
-
workspace: "workspace";
|
|
6178
6972
|
session: "session";
|
|
6973
|
+
workspace: "workspace";
|
|
6179
6974
|
}>;
|
|
6180
6975
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6181
6976
|
displayName: z.ZodString;
|
|
@@ -6284,6 +7079,7 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
6284
7079
|
}>;
|
|
6285
7080
|
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6286
7081
|
}, z.core.$strip>>;
|
|
7082
|
+
toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
|
|
6287
7083
|
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6288
7084
|
mode: z.ZodEnum<{
|
|
6289
7085
|
explicit: "explicit";
|
|
@@ -6414,12 +7210,23 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
6414
7210
|
kind: z.ZodLiteral<"repository">;
|
|
6415
7211
|
}, z.core.$strict>>>;
|
|
6416
7212
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
6417
|
-
subject: "subject";
|
|
6418
7213
|
workspace: "workspace";
|
|
7214
|
+
subject: "subject";
|
|
6419
7215
|
}>>;
|
|
6420
7216
|
}, z.core.$strict>>>;
|
|
6421
7217
|
}, z.core.$strict>>>;
|
|
6422
7218
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
7219
|
+
rootSessionId: z.ZodString;
|
|
7220
|
+
nestedAgentDepth: z.ZodNumber;
|
|
7221
|
+
maxNestedAgentDepthOverride: z.ZodNullable<z.ZodNumber>;
|
|
7222
|
+
effectiveMaxNestedAgentDepth: z.ZodNumber;
|
|
7223
|
+
nestedAgentDepthPolicySource: z.ZodEnum<{
|
|
7224
|
+
default: "default";
|
|
7225
|
+
session: "session";
|
|
7226
|
+
workspace: "workspace";
|
|
7227
|
+
deployment: "deployment";
|
|
7228
|
+
}>;
|
|
7229
|
+
nestedAgentDepthPolicySessionId: z.ZodNullable<z.ZodString>;
|
|
6423
7230
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
6424
7231
|
temporalWorkflowId: z.ZodNullable<z.ZodString>;
|
|
6425
7232
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
@@ -6440,8 +7247,8 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
6440
7247
|
}>;
|
|
6441
7248
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
6442
7249
|
kind: z.ZodEnum<{
|
|
6443
|
-
workspace: "workspace";
|
|
6444
7250
|
session: "session";
|
|
7251
|
+
workspace: "workspace";
|
|
6445
7252
|
}>;
|
|
6446
7253
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6447
7254
|
displayName: z.ZodString;
|
|
@@ -6453,8 +7260,8 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
6453
7260
|
additionalBlockerCount: z.ZodNumber;
|
|
6454
7261
|
blockers: z.ZodArray<z.ZodObject<{
|
|
6455
7262
|
kind: z.ZodEnum<{
|
|
6456
|
-
workspace: "workspace";
|
|
6457
7263
|
session: "session";
|
|
7264
|
+
workspace: "workspace";
|
|
6458
7265
|
}>;
|
|
6459
7266
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6460
7267
|
displayName: z.ZodString;
|
|
@@ -6465,9 +7272,9 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
6465
7272
|
}, z.core.$strip>>;
|
|
6466
7273
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6467
7274
|
scope: z.ZodEnum<{
|
|
7275
|
+
session: "session";
|
|
6468
7276
|
workspace: "workspace";
|
|
6469
7277
|
selected: "selected";
|
|
6470
|
-
session: "session";
|
|
6471
7278
|
}>;
|
|
6472
7279
|
targetId: z.ZodOptional<z.ZodString>;
|
|
6473
7280
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -6476,8 +7283,8 @@ declare const CreateSessionResponse: z.ZodObject<{
|
|
|
6476
7283
|
}>;
|
|
6477
7284
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
6478
7285
|
kind: z.ZodEnum<{
|
|
6479
|
-
workspace: "workspace";
|
|
6480
7286
|
session: "session";
|
|
7287
|
+
workspace: "workspace";
|
|
6481
7288
|
}>;
|
|
6482
7289
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6483
7290
|
displayName: z.ZodString;
|
|
@@ -6592,6 +7399,7 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6592
7399
|
}>;
|
|
6593
7400
|
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6594
7401
|
}, z.core.$strip>>;
|
|
7402
|
+
toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
|
|
6595
7403
|
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6596
7404
|
mode: z.ZodEnum<{
|
|
6597
7405
|
explicit: "explicit";
|
|
@@ -6722,12 +7530,23 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6722
7530
|
kind: z.ZodLiteral<"repository">;
|
|
6723
7531
|
}, z.core.$strict>>>;
|
|
6724
7532
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
6725
|
-
subject: "subject";
|
|
6726
7533
|
workspace: "workspace";
|
|
7534
|
+
subject: "subject";
|
|
6727
7535
|
}>>;
|
|
6728
7536
|
}, z.core.$strict>>>;
|
|
6729
7537
|
}, z.core.$strict>>>;
|
|
6730
7538
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
7539
|
+
rootSessionId: z.ZodString;
|
|
7540
|
+
nestedAgentDepth: z.ZodNumber;
|
|
7541
|
+
maxNestedAgentDepthOverride: z.ZodNullable<z.ZodNumber>;
|
|
7542
|
+
effectiveMaxNestedAgentDepth: z.ZodNumber;
|
|
7543
|
+
nestedAgentDepthPolicySource: z.ZodEnum<{
|
|
7544
|
+
default: "default";
|
|
7545
|
+
session: "session";
|
|
7546
|
+
workspace: "workspace";
|
|
7547
|
+
deployment: "deployment";
|
|
7548
|
+
}>;
|
|
7549
|
+
nestedAgentDepthPolicySessionId: z.ZodNullable<z.ZodString>;
|
|
6731
7550
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
6732
7551
|
temporalWorkflowId: z.ZodNullable<z.ZodString>;
|
|
6733
7552
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
@@ -6748,8 +7567,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6748
7567
|
}>;
|
|
6749
7568
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
6750
7569
|
kind: z.ZodEnum<{
|
|
6751
|
-
workspace: "workspace";
|
|
6752
7570
|
session: "session";
|
|
7571
|
+
workspace: "workspace";
|
|
6753
7572
|
}>;
|
|
6754
7573
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6755
7574
|
displayName: z.ZodString;
|
|
@@ -6761,8 +7580,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6761
7580
|
additionalBlockerCount: z.ZodNumber;
|
|
6762
7581
|
blockers: z.ZodArray<z.ZodObject<{
|
|
6763
7582
|
kind: z.ZodEnum<{
|
|
6764
|
-
workspace: "workspace";
|
|
6765
7583
|
session: "session";
|
|
7584
|
+
workspace: "workspace";
|
|
6766
7585
|
}>;
|
|
6767
7586
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6768
7587
|
displayName: z.ZodString;
|
|
@@ -6773,9 +7592,9 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6773
7592
|
}, z.core.$strip>>;
|
|
6774
7593
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
6775
7594
|
scope: z.ZodEnum<{
|
|
7595
|
+
session: "session";
|
|
6776
7596
|
workspace: "workspace";
|
|
6777
7597
|
selected: "selected";
|
|
6778
|
-
session: "session";
|
|
6779
7598
|
}>;
|
|
6780
7599
|
targetId: z.ZodOptional<z.ZodString>;
|
|
6781
7600
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -6784,8 +7603,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6784
7603
|
}>;
|
|
6785
7604
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
6786
7605
|
kind: z.ZodEnum<{
|
|
6787
|
-
workspace: "workspace";
|
|
6788
7606
|
session: "session";
|
|
7607
|
+
workspace: "workspace";
|
|
6789
7608
|
}>;
|
|
6790
7609
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
6791
7610
|
displayName: z.ZodString;
|
|
@@ -6889,6 +7708,7 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
6889
7708
|
}>;
|
|
6890
7709
|
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
6891
7710
|
}, z.core.$strip>>;
|
|
7711
|
+
toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
|
|
6892
7712
|
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
6893
7713
|
mode: z.ZodEnum<{
|
|
6894
7714
|
explicit: "explicit";
|
|
@@ -7019,12 +7839,23 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
7019
7839
|
kind: z.ZodLiteral<"repository">;
|
|
7020
7840
|
}, z.core.$strict>>>;
|
|
7021
7841
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
7022
|
-
subject: "subject";
|
|
7023
7842
|
workspace: "workspace";
|
|
7843
|
+
subject: "subject";
|
|
7024
7844
|
}>>;
|
|
7025
7845
|
}, z.core.$strict>>>;
|
|
7026
7846
|
}, z.core.$strict>>>;
|
|
7027
7847
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
7848
|
+
rootSessionId: z.ZodString;
|
|
7849
|
+
nestedAgentDepth: z.ZodNumber;
|
|
7850
|
+
maxNestedAgentDepthOverride: z.ZodNullable<z.ZodNumber>;
|
|
7851
|
+
effectiveMaxNestedAgentDepth: z.ZodNumber;
|
|
7852
|
+
nestedAgentDepthPolicySource: z.ZodEnum<{
|
|
7853
|
+
default: "default";
|
|
7854
|
+
session: "session";
|
|
7855
|
+
workspace: "workspace";
|
|
7856
|
+
deployment: "deployment";
|
|
7857
|
+
}>;
|
|
7858
|
+
nestedAgentDepthPolicySessionId: z.ZodNullable<z.ZodString>;
|
|
7028
7859
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
7029
7860
|
temporalWorkflowId: z.ZodNullable<z.ZodString>;
|
|
7030
7861
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
@@ -7045,8 +7876,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
7045
7876
|
}>;
|
|
7046
7877
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
7047
7878
|
kind: z.ZodEnum<{
|
|
7048
|
-
workspace: "workspace";
|
|
7049
7879
|
session: "session";
|
|
7880
|
+
workspace: "workspace";
|
|
7050
7881
|
}>;
|
|
7051
7882
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
7052
7883
|
displayName: z.ZodString;
|
|
@@ -7058,8 +7889,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
7058
7889
|
additionalBlockerCount: z.ZodNumber;
|
|
7059
7890
|
blockers: z.ZodArray<z.ZodObject<{
|
|
7060
7891
|
kind: z.ZodEnum<{
|
|
7061
|
-
workspace: "workspace";
|
|
7062
7892
|
session: "session";
|
|
7893
|
+
workspace: "workspace";
|
|
7063
7894
|
}>;
|
|
7064
7895
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
7065
7896
|
displayName: z.ZodString;
|
|
@@ -7070,9 +7901,9 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
7070
7901
|
}, z.core.$strip>>;
|
|
7071
7902
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
7072
7903
|
scope: z.ZodEnum<{
|
|
7904
|
+
session: "session";
|
|
7073
7905
|
workspace: "workspace";
|
|
7074
7906
|
selected: "selected";
|
|
7075
|
-
session: "session";
|
|
7076
7907
|
}>;
|
|
7077
7908
|
targetId: z.ZodOptional<z.ZodString>;
|
|
7078
7909
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -7081,8 +7912,8 @@ declare const SessionListResponse: z.ZodObject<{
|
|
|
7081
7912
|
}>;
|
|
7082
7913
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
7083
7914
|
kind: z.ZodEnum<{
|
|
7084
|
-
workspace: "workspace";
|
|
7085
7915
|
session: "session";
|
|
7916
|
+
workspace: "workspace";
|
|
7086
7917
|
}>;
|
|
7087
7918
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
7088
7919
|
displayName: z.ZodString;
|
|
@@ -7194,6 +8025,7 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
7194
8025
|
}>;
|
|
7195
8026
|
inheritedFromSessionId: z.ZodNullable<z.ZodString>;
|
|
7196
8027
|
}, z.core.$strip>>;
|
|
8028
|
+
toolPolicyVersion: z.ZodOptional<z.ZodNumber>;
|
|
7197
8029
|
effectiveToolPolicy: z.ZodOptional<z.ZodObject<{
|
|
7198
8030
|
mode: z.ZodEnum<{
|
|
7199
8031
|
explicit: "explicit";
|
|
@@ -7324,12 +8156,23 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
7324
8156
|
kind: z.ZodLiteral<"repository">;
|
|
7325
8157
|
}, z.core.$strict>>>;
|
|
7326
8158
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
7327
|
-
subject: "subject";
|
|
7328
8159
|
workspace: "workspace";
|
|
8160
|
+
subject: "subject";
|
|
7329
8161
|
}>>;
|
|
7330
8162
|
}, z.core.$strict>>>;
|
|
7331
8163
|
}, z.core.$strict>>>;
|
|
7332
8164
|
parentSessionId: z.ZodNullable<z.ZodString>;
|
|
8165
|
+
rootSessionId: z.ZodString;
|
|
8166
|
+
nestedAgentDepth: z.ZodNumber;
|
|
8167
|
+
maxNestedAgentDepthOverride: z.ZodNullable<z.ZodNumber>;
|
|
8168
|
+
effectiveMaxNestedAgentDepth: z.ZodNumber;
|
|
8169
|
+
nestedAgentDepthPolicySource: z.ZodEnum<{
|
|
8170
|
+
default: "default";
|
|
8171
|
+
session: "session";
|
|
8172
|
+
workspace: "workspace";
|
|
8173
|
+
deployment: "deployment";
|
|
8174
|
+
}>;
|
|
8175
|
+
nestedAgentDepthPolicySessionId: z.ZodNullable<z.ZodString>;
|
|
7333
8176
|
createIdempotencyKey: z.ZodNullable<z.ZodString>;
|
|
7334
8177
|
temporalWorkflowId: z.ZodNullable<z.ZodString>;
|
|
7335
8178
|
activeTurnId: z.ZodNullable<z.ZodString>;
|
|
@@ -7350,8 +8193,8 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
7350
8193
|
}>;
|
|
7351
8194
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
7352
8195
|
kind: z.ZodEnum<{
|
|
7353
|
-
workspace: "workspace";
|
|
7354
8196
|
session: "session";
|
|
8197
|
+
workspace: "workspace";
|
|
7355
8198
|
}>;
|
|
7356
8199
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
7357
8200
|
displayName: z.ZodString;
|
|
@@ -7363,8 +8206,8 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
7363
8206
|
additionalBlockerCount: z.ZodNumber;
|
|
7364
8207
|
blockers: z.ZodArray<z.ZodObject<{
|
|
7365
8208
|
kind: z.ZodEnum<{
|
|
7366
|
-
workspace: "workspace";
|
|
7367
8209
|
session: "session";
|
|
8210
|
+
workspace: "workspace";
|
|
7368
8211
|
}>;
|
|
7369
8212
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
7370
8213
|
displayName: z.ZodString;
|
|
@@ -7375,9 +8218,9 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
7375
8218
|
}, z.core.$strip>>;
|
|
7376
8219
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
7377
8220
|
scope: z.ZodEnum<{
|
|
8221
|
+
session: "session";
|
|
7378
8222
|
workspace: "workspace";
|
|
7379
8223
|
selected: "selected";
|
|
7380
|
-
session: "session";
|
|
7381
8224
|
}>;
|
|
7382
8225
|
targetId: z.ZodOptional<z.ZodString>;
|
|
7383
8226
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -7386,8 +8229,8 @@ declare const SessionLineageResponse: z.ZodObject<{
|
|
|
7386
8229
|
}>;
|
|
7387
8230
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
7388
8231
|
kind: z.ZodEnum<{
|
|
7389
|
-
workspace: "workspace";
|
|
7390
8232
|
session: "session";
|
|
8233
|
+
workspace: "workspace";
|
|
7391
8234
|
}>;
|
|
7392
8235
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
7393
8236
|
displayName: z.ZodString;
|
|
@@ -7507,8 +8350,10 @@ declare const SessionEventType: z.ZodEnum<{
|
|
|
7507
8350
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
7508
8351
|
"session.title_set": "session.title_set";
|
|
7509
8352
|
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
8353
|
+
"session.tool_policy.updated": "session.tool_policy.updated";
|
|
7510
8354
|
"codex.account.switched": "codex.account.switched";
|
|
7511
8355
|
"codex.credential.selected": "codex.credential.selected";
|
|
8356
|
+
"codex.fleet.decision": "codex.fleet.decision";
|
|
7512
8357
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
7513
8358
|
"codex.capacity.resumed": "codex.capacity.resumed";
|
|
7514
8359
|
"codex.capacity.superseded": "codex.capacity.superseded";
|
|
@@ -7581,7 +8426,7 @@ declare const SessionEventReadDirection: z.ZodEnum<{
|
|
|
7581
8426
|
type SessionEventReadDirection = z.infer<typeof SessionEventReadDirection>;
|
|
7582
8427
|
declare const SESSION_EVENT_RAW_DELTA_TYPES: readonly ["agent.message.delta", "agent.reasoning.delta", "sandbox.command.output.delta", "terminal.pty.output.delta"];
|
|
7583
8428
|
declare const SESSION_EVENT_SEMANTIC_CLASS_TYPES: {
|
|
7584
|
-
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", "session.mcp.approval_policy.updated"];
|
|
8429
|
+
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", "session.mcp.approval_policy.updated", "session.tool_policy.updated"];
|
|
7585
8430
|
readonly terminal: readonly ["turn.completed", "agent.message.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"];
|
|
7586
8431
|
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"];
|
|
7587
8432
|
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"];
|
|
@@ -7834,6 +8679,7 @@ declare const TerminalPtyExitedPayload: z.ZodObject<{
|
|
|
7834
8679
|
exit: "exit";
|
|
7835
8680
|
killed: "killed";
|
|
7836
8681
|
owner_gone: "owner_gone";
|
|
8682
|
+
lost: "lost";
|
|
7837
8683
|
}>;
|
|
7838
8684
|
}, z.core.$strip>;
|
|
7839
8685
|
type TerminalPtyExitedPayload = z.infer<typeof TerminalPtyExitedPayload>;
|
|
@@ -8747,8 +9593,8 @@ type TerminalExecRequest = z.infer<typeof TerminalExecRequest>;
|
|
|
8747
9593
|
declare const TerminalExecResponse: z.ZodObject<{
|
|
8748
9594
|
stdout: z.ZodString;
|
|
8749
9595
|
stderr: z.ZodString;
|
|
8750
|
-
exitCode: z.
|
|
8751
|
-
running: z.
|
|
9596
|
+
exitCode: z.ZodNumber;
|
|
9597
|
+
running: z.ZodLiteral<false>;
|
|
8752
9598
|
wallTimeSeconds: z.ZodNumber;
|
|
8753
9599
|
}, z.core.$strip>;
|
|
8754
9600
|
type TerminalExecResponse = z.infer<typeof TerminalExecResponse>;
|
|
@@ -8879,8 +9725,10 @@ declare const SessionEvent: z.ZodObject<{
|
|
|
8879
9725
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
8880
9726
|
"session.title_set": "session.title_set";
|
|
8881
9727
|
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
9728
|
+
"session.tool_policy.updated": "session.tool_policy.updated";
|
|
8882
9729
|
"codex.account.switched": "codex.account.switched";
|
|
8883
9730
|
"codex.credential.selected": "codex.credential.selected";
|
|
9731
|
+
"codex.fleet.decision": "codex.fleet.decision";
|
|
8884
9732
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
8885
9733
|
"codex.capacity.resumed": "codex.capacity.resumed";
|
|
8886
9734
|
"codex.capacity.superseded": "codex.capacity.superseded";
|
|
@@ -9281,8 +10129,8 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
9281
10129
|
}>;
|
|
9282
10130
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
9283
10131
|
kind: z.ZodEnum<{
|
|
9284
|
-
workspace: "workspace";
|
|
9285
10132
|
session: "session";
|
|
10133
|
+
workspace: "workspace";
|
|
9286
10134
|
}>;
|
|
9287
10135
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9288
10136
|
displayName: z.ZodString;
|
|
@@ -9294,8 +10142,8 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
9294
10142
|
additionalBlockerCount: z.ZodNumber;
|
|
9295
10143
|
blockers: z.ZodArray<z.ZodObject<{
|
|
9296
10144
|
kind: z.ZodEnum<{
|
|
9297
|
-
workspace: "workspace";
|
|
9298
10145
|
session: "session";
|
|
10146
|
+
workspace: "workspace";
|
|
9299
10147
|
}>;
|
|
9300
10148
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9301
10149
|
displayName: z.ZodString;
|
|
@@ -9306,9 +10154,9 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
9306
10154
|
}, z.core.$strip>>;
|
|
9307
10155
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
9308
10156
|
scope: z.ZodEnum<{
|
|
10157
|
+
session: "session";
|
|
9309
10158
|
workspace: "workspace";
|
|
9310
10159
|
selected: "selected";
|
|
9311
|
-
session: "session";
|
|
9312
10160
|
}>;
|
|
9313
10161
|
targetId: z.ZodOptional<z.ZodString>;
|
|
9314
10162
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -9317,8 +10165,8 @@ declare const SessionQueueMutationResponse: z.ZodObject<{
|
|
|
9317
10165
|
}>;
|
|
9318
10166
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
9319
10167
|
kind: z.ZodEnum<{
|
|
9320
|
-
workspace: "workspace";
|
|
9321
10168
|
session: "session";
|
|
10169
|
+
workspace: "workspace";
|
|
9322
10170
|
}>;
|
|
9323
10171
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9324
10172
|
displayName: z.ZodString;
|
|
@@ -9528,8 +10376,8 @@ declare const SessionControlResponse: z.ZodObject<{
|
|
|
9528
10376
|
}>;
|
|
9529
10377
|
primaryBlocker: z.ZodNullable<z.ZodObject<{
|
|
9530
10378
|
kind: z.ZodEnum<{
|
|
9531
|
-
workspace: "workspace";
|
|
9532
10379
|
session: "session";
|
|
10380
|
+
workspace: "workspace";
|
|
9533
10381
|
}>;
|
|
9534
10382
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9535
10383
|
displayName: z.ZodString;
|
|
@@ -9541,8 +10389,8 @@ declare const SessionControlResponse: z.ZodObject<{
|
|
|
9541
10389
|
additionalBlockerCount: z.ZodNumber;
|
|
9542
10390
|
blockers: z.ZodArray<z.ZodObject<{
|
|
9543
10391
|
kind: z.ZodEnum<{
|
|
9544
|
-
workspace: "workspace";
|
|
9545
10392
|
session: "session";
|
|
10393
|
+
workspace: "workspace";
|
|
9546
10394
|
}>;
|
|
9547
10395
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9548
10396
|
displayName: z.ZodString;
|
|
@@ -9553,9 +10401,9 @@ declare const SessionControlResponse: z.ZodObject<{
|
|
|
9553
10401
|
}, z.core.$strip>>;
|
|
9554
10402
|
resumeOptions: z.ZodArray<z.ZodObject<{
|
|
9555
10403
|
scope: z.ZodEnum<{
|
|
10404
|
+
session: "session";
|
|
9556
10405
|
workspace: "workspace";
|
|
9557
10406
|
selected: "selected";
|
|
9558
|
-
session: "session";
|
|
9559
10407
|
}>;
|
|
9560
10408
|
targetId: z.ZodOptional<z.ZodString>;
|
|
9561
10409
|
selectedStateAfter: z.ZodEnum<{
|
|
@@ -9564,8 +10412,8 @@ declare const SessionControlResponse: z.ZodObject<{
|
|
|
9564
10412
|
}>;
|
|
9565
10413
|
remainingPrimaryBlocker: z.ZodOptional<z.ZodObject<{
|
|
9566
10414
|
kind: z.ZodEnum<{
|
|
9567
|
-
workspace: "workspace";
|
|
9568
10415
|
session: "session";
|
|
10416
|
+
workspace: "workspace";
|
|
9569
10417
|
}>;
|
|
9570
10418
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
9571
10419
|
displayName: z.ZodString;
|
|
@@ -9663,6 +10511,8 @@ declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
9663
10511
|
}, z.core.$strip>>;
|
|
9664
10512
|
clientEventId: z.ZodOptional<z.ZodString>;
|
|
9665
10513
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
10514
|
+
expectedNewSessionDraftRevision: z.ZodOptional<z.ZodNumber>;
|
|
10515
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodNumber>;
|
|
9666
10516
|
firstPartyMcpPermissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
9667
10517
|
"account:read": "account:read";
|
|
9668
10518
|
"account:admin": "account:admin";
|
|
@@ -9729,8 +10579,8 @@ declare const CreateSessionRequest: z.ZodPreprocess<z.ZodObject<{
|
|
|
9729
10579
|
kind: z.ZodLiteral<"repository">;
|
|
9730
10580
|
}, z.core.$strict>>>;
|
|
9731
10581
|
subjectScope: z.ZodOptional<z.ZodEnum<{
|
|
9732
|
-
subject: "subject";
|
|
9733
10582
|
workspace: "workspace";
|
|
10583
|
+
subject: "subject";
|
|
9734
10584
|
}>>;
|
|
9735
10585
|
}, z.core.$strict>>;
|
|
9736
10586
|
}, z.core.$strip>>>;
|
|
@@ -10129,8 +10979,10 @@ declare const SteerSessionMessageResponse: z.ZodObject<{
|
|
|
10129
10979
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
10130
10980
|
"session.title_set": "session.title_set";
|
|
10131
10981
|
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
10982
|
+
"session.tool_policy.updated": "session.tool_policy.updated";
|
|
10132
10983
|
"codex.account.switched": "codex.account.switched";
|
|
10133
10984
|
"codex.credential.selected": "codex.credential.selected";
|
|
10985
|
+
"codex.fleet.decision": "codex.fleet.decision";
|
|
10134
10986
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
10135
10987
|
"codex.capacity.resumed": "codex.capacity.resumed";
|
|
10136
10988
|
"codex.capacity.superseded": "codex.capacity.superseded";
|
|
@@ -10356,8 +11208,10 @@ declare const SessionBusMessage: z.ZodObject<{
|
|
|
10356
11208
|
"terminal.pty.exited": "terminal.pty.exited";
|
|
10357
11209
|
"session.title_set": "session.title_set";
|
|
10358
11210
|
"session.mcp.approval_policy.updated": "session.mcp.approval_policy.updated";
|
|
11211
|
+
"session.tool_policy.updated": "session.tool_policy.updated";
|
|
10359
11212
|
"codex.account.switched": "codex.account.switched";
|
|
10360
11213
|
"codex.credential.selected": "codex.credential.selected";
|
|
11214
|
+
"codex.fleet.decision": "codex.fleet.decision";
|
|
10361
11215
|
"codex.capacity.waiting": "codex.capacity.waiting";
|
|
10362
11216
|
"codex.capacity.resumed": "codex.capacity.resumed";
|
|
10363
11217
|
"codex.capacity.superseded": "codex.capacity.superseded";
|
|
@@ -10416,10 +11270,30 @@ declare const GitHubRepositoryScope: z.ZodEnum<{
|
|
|
10416
11270
|
all: "all";
|
|
10417
11271
|
}>;
|
|
10418
11272
|
type GitHubRepositoryScope = z.infer<typeof GitHubRepositoryScope>;
|
|
11273
|
+
declare const GitHubBindingStatus: z.ZodEnum<{
|
|
11274
|
+
disabled: "disabled";
|
|
11275
|
+
unbound: "unbound";
|
|
11276
|
+
bound: "bound";
|
|
11277
|
+
}>;
|
|
11278
|
+
type GitHubBindingStatus = z.infer<typeof GitHubBindingStatus>;
|
|
11279
|
+
declare const GitHubInstallationLifecycle: z.ZodEnum<{
|
|
11280
|
+
active: "active";
|
|
11281
|
+
deleted: "deleted";
|
|
11282
|
+
unverified: "unverified";
|
|
11283
|
+
suspended: "suspended";
|
|
11284
|
+
}>;
|
|
11285
|
+
type GitHubInstallationLifecycle = z.infer<typeof GitHubInstallationLifecycle>;
|
|
10419
11286
|
declare const GitHubInstallationBinding: z.ZodObject<{
|
|
10420
11287
|
installationId: z.ZodNumber;
|
|
11288
|
+
githubAccountId: z.ZodNullable<z.ZodNumber>;
|
|
10421
11289
|
accountLogin: z.ZodNullable<z.ZodString>;
|
|
10422
11290
|
accountType: z.ZodNullable<z.ZodString>;
|
|
11291
|
+
lifecycle: z.ZodEnum<{
|
|
11292
|
+
active: "active";
|
|
11293
|
+
deleted: "deleted";
|
|
11294
|
+
unverified: "unverified";
|
|
11295
|
+
suspended: "suspended";
|
|
11296
|
+
}>;
|
|
10423
11297
|
repositoryScope: z.ZodEnum<{
|
|
10424
11298
|
selected: "selected";
|
|
10425
11299
|
all: "all";
|
|
@@ -10431,6 +11305,11 @@ declare const GitHubInstallationBinding: z.ZodObject<{
|
|
|
10431
11305
|
type GitHubInstallationBinding = z.infer<typeof GitHubInstallationBinding>;
|
|
10432
11306
|
declare const GitHubAppInfo: z.ZodObject<{
|
|
10433
11307
|
configured: z.ZodBoolean;
|
|
11308
|
+
status: z.ZodEnum<{
|
|
11309
|
+
disabled: "disabled";
|
|
11310
|
+
unbound: "unbound";
|
|
11311
|
+
bound: "bound";
|
|
11312
|
+
}>;
|
|
10434
11313
|
appId: z.ZodNullable<z.ZodString>;
|
|
10435
11314
|
clientId: z.ZodNullable<z.ZodString>;
|
|
10436
11315
|
appSlug: z.ZodNullable<z.ZodString>;
|
|
@@ -10438,8 +11317,15 @@ declare const GitHubAppInfo: z.ZodObject<{
|
|
|
10438
11317
|
linkUrl: z.ZodNullable<z.ZodString>;
|
|
10439
11318
|
installations: z.ZodArray<z.ZodObject<{
|
|
10440
11319
|
installationId: z.ZodNumber;
|
|
11320
|
+
githubAccountId: z.ZodNullable<z.ZodNumber>;
|
|
10441
11321
|
accountLogin: z.ZodNullable<z.ZodString>;
|
|
10442
11322
|
accountType: z.ZodNullable<z.ZodString>;
|
|
11323
|
+
lifecycle: z.ZodEnum<{
|
|
11324
|
+
active: "active";
|
|
11325
|
+
deleted: "deleted";
|
|
11326
|
+
unverified: "unverified";
|
|
11327
|
+
suspended: "suspended";
|
|
11328
|
+
}>;
|
|
10443
11329
|
repositoryScope: z.ZodEnum<{
|
|
10444
11330
|
selected: "selected";
|
|
10445
11331
|
all: "all";
|
|
@@ -10520,6 +11406,9 @@ declare const SessionCapabilities: z.ZodObject<{
|
|
|
10520
11406
|
draining: "draining";
|
|
10521
11407
|
}>;
|
|
10522
11408
|
leaseEpoch: z.ZodNumber;
|
|
11409
|
+
workspaceGeneration: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
11410
|
+
archiveGeneration: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
11411
|
+
archiveComplete: z.ZodDefault<z.ZodBoolean>;
|
|
10523
11412
|
viewerHeartbeatIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
10524
11413
|
FileSystem: z.ZodObject<{
|
|
10525
11414
|
available: z.ZodBoolean;
|
|
@@ -10681,6 +11570,9 @@ declare const ViewerHolder: z.ZodObject<{
|
|
|
10681
11570
|
draining: "draining";
|
|
10682
11571
|
}>;
|
|
10683
11572
|
leaseEpoch: z.ZodNumber;
|
|
11573
|
+
workspaceGeneration: z.ZodNullable<z.ZodNumber>;
|
|
11574
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
11575
|
+
archiveComplete: z.ZodBoolean;
|
|
10684
11576
|
viewerHeartbeatIntervalMs: z.ZodNumber;
|
|
10685
11577
|
dataPlaneUrl: z.ZodNullable<z.ZodString>;
|
|
10686
11578
|
}, z.core.$strip>;
|
|
@@ -11003,6 +11895,9 @@ declare const MachineView: z.ZodObject<{
|
|
|
11003
11895
|
}>;
|
|
11004
11896
|
active: z.ZodBoolean;
|
|
11005
11897
|
isSessionGroup: z.ZodBoolean;
|
|
11898
|
+
workspaceGeneration: z.ZodNullable<z.ZodNumber>;
|
|
11899
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
11900
|
+
archiveComplete: z.ZodBoolean;
|
|
11006
11901
|
os: z.ZodString;
|
|
11007
11902
|
arch: z.ZodString;
|
|
11008
11903
|
hasDisplay: z.ZodBoolean;
|
|
@@ -11052,6 +11947,9 @@ declare const MachinesResponse: z.ZodObject<{
|
|
|
11052
11947
|
}>;
|
|
11053
11948
|
active: z.ZodBoolean;
|
|
11054
11949
|
isSessionGroup: z.ZodBoolean;
|
|
11950
|
+
workspaceGeneration: z.ZodNullable<z.ZodNumber>;
|
|
11951
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
11952
|
+
archiveComplete: z.ZodBoolean;
|
|
11055
11953
|
os: z.ZodString;
|
|
11056
11954
|
arch: z.ZodString;
|
|
11057
11955
|
hasDisplay: z.ZodBoolean;
|
|
@@ -11103,6 +12001,9 @@ declare const SwapActiveSandboxResponse: z.ZodObject<{
|
|
|
11103
12001
|
unsupported_backend_context: "unsupported_backend_context";
|
|
11104
12002
|
transient_establishment: "transient_establishment";
|
|
11105
12003
|
concurrent_swap: "concurrent_swap";
|
|
12004
|
+
recovery_in_progress: "recovery_in_progress";
|
|
12005
|
+
recovery_degraded: "recovery_degraded";
|
|
12006
|
+
recovery_unrecoverable: "recovery_unrecoverable";
|
|
11106
12007
|
}>>;
|
|
11107
12008
|
}, z.core.$strip>;
|
|
11108
12009
|
type SwapActiveSandboxResponse = z.infer<typeof SwapActiveSandboxResponse>;
|
|
@@ -11290,16 +12191,16 @@ declare const ModelBillingAttributionV1: z.ZodObject<{
|
|
|
11290
12191
|
type ModelBillingAttributionV1 = z.infer<typeof ModelBillingAttributionV1>;
|
|
11291
12192
|
declare const TURN_EXECUTION_POLICY_METADATA_KEY: "turnExecutionPolicyV1";
|
|
11292
12193
|
declare const TurnExecutionModelSourceV1: z.ZodEnum<{
|
|
11293
|
-
explicit: "explicit";
|
|
11294
12194
|
session: "session";
|
|
11295
12195
|
deployment: "deployment";
|
|
12196
|
+
explicit: "explicit";
|
|
11296
12197
|
continuation: "continuation";
|
|
11297
12198
|
}>;
|
|
11298
12199
|
type TurnExecutionModelSourceV1 = z.infer<typeof TurnExecutionModelSourceV1>;
|
|
11299
12200
|
declare const TurnExecutionReasoningSourceV1: z.ZodEnum<{
|
|
11300
|
-
explicit: "explicit";
|
|
11301
12201
|
session: "session";
|
|
11302
12202
|
deployment: "deployment";
|
|
12203
|
+
explicit: "explicit";
|
|
11303
12204
|
continuation: "continuation";
|
|
11304
12205
|
}>;
|
|
11305
12206
|
type TurnExecutionReasoningSourceV1 = z.infer<typeof TurnExecutionReasoningSourceV1>;
|
|
@@ -11316,9 +12217,9 @@ declare const TurnExecutionPolicyV1: z.ZodObject<{
|
|
|
11316
12217
|
productModelId: z.ZodString;
|
|
11317
12218
|
requestedModelId: z.ZodNullable<z.ZodString>;
|
|
11318
12219
|
modelSource: z.ZodEnum<{
|
|
11319
|
-
explicit: "explicit";
|
|
11320
12220
|
session: "session";
|
|
11321
12221
|
deployment: "deployment";
|
|
12222
|
+
explicit: "explicit";
|
|
11322
12223
|
continuation: "continuation";
|
|
11323
12224
|
}>;
|
|
11324
12225
|
reasoningEffort: z.ZodEnum<{
|
|
@@ -11330,9 +12231,9 @@ declare const TurnExecutionPolicyV1: z.ZodObject<{
|
|
|
11330
12231
|
xhigh: "xhigh";
|
|
11331
12232
|
}>;
|
|
11332
12233
|
reasoningSource: z.ZodEnum<{
|
|
11333
|
-
explicit: "explicit";
|
|
11334
12234
|
session: "session";
|
|
11335
12235
|
deployment: "deployment";
|
|
12236
|
+
explicit: "explicit";
|
|
11336
12237
|
continuation: "continuation";
|
|
11337
12238
|
}>;
|
|
11338
12239
|
providerId: z.ZodString;
|
|
@@ -12116,6 +13017,8 @@ type WorkspaceModelCatalogResponse = z.infer<typeof WorkspaceModelCatalogRespons
|
|
|
12116
13017
|
*/
|
|
12117
13018
|
declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-turn-instructions-v1";
|
|
12118
13019
|
declare const OPENGENI_API_CONTRACT_HEADER: "x-opengeni-api-contract";
|
|
13020
|
+
/** Bounded request/response identifier shared by browser, ingress, and API diagnostics. */
|
|
13021
|
+
declare const OPENGENI_CORRELATION_HEADER: "x-opengeni-correlation-id";
|
|
12119
13022
|
declare const ClientConfig: z.ZodObject<{
|
|
12120
13023
|
deploymentRevision: z.ZodString;
|
|
12121
13024
|
apiContractRevision: z.ZodLiteral<"2026-07-turn-instructions-v1">;
|
|
@@ -12389,4 +13292,4 @@ declare function evaluateWorkspaceModelPolicy(policy: WorkspaceModelPolicyContra
|
|
|
12389
13292
|
modelId: string;
|
|
12390
13293
|
}): WorkspaceModelPolicyVerdict;
|
|
12391
13294
|
|
|
12392
|
-
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, DEFAULT_FIRST_PARTY_MCP_PERMISSIONS, 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 GitCredentialTransport, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHttpBrokerRepositoryRoute, 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, ModelAvailabilityV1, ModelBillingAttributionV1, ModelCapabilitiesV1, ModelCapabilityStateV1, ModelCapabilitySupportV1, ModelCredentialReadinessV1, ModelCredentialSourceV1, ModelPricingScheduleV1, ModelPricingV1, 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, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, RETAINED_OUTPUT_RECEIPT_MAX_BYTES, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, RequestHumanInputToolInput, type ResolveSessionAuthorizationListScopeInput, type ResolveSessionEventTypeFiltersInput, ResourceMountPathError, ResourceRef, ResourceRefConflictError, type RetainedArtifactFileInput, type RetainedArtifactMetadata, RetainedArtifactMetadataSchema, type RetainedArtifactReference, RetainedArtifactReferenceSchema, type RetainedArtifactUnavailable, RetainedArtifactUnavailableSchema, type RetainedOutputAvailableEvidence, type RetainedOutputEvidence, RetainedOutputEvidenceSchema, RetainedOutputKind, type RetainedOutputRangeResolution, type RetainedOutputResolvedRange, RetainedOutputUnavailableReason, 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_EFFECTIVE_TOOL_POLICY_ID_LIMIT, SESSION_EFFECTIVE_TOOL_POLICY_ID_MAX_LENGTH, 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_MCP_APPROVAL_POLICY_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_TOOL_NAMES, SESSION_MCP_APPROVAL_TOOL_NAME_MAX_BYTES, SESSION_MCP_SERVERS_MAX, 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, SessionEffectiveToolPolicy, SessionEvent, type SessionEventBoundarySurface, type SessionEventCompactResult, type SessionEventJsonMeasurement, SessionEventLatestClass, type SessionEventMediaPreview, SessionEventPayloadMode, type SessionEventPayloadTruncation, SessionEventReadDirection, SessionEventReadMode, SessionEventResultMode, SessionEventSemanticClass, SessionEventType, SessionGoal, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionHumanInputRequest, SessionLineageResponse, SessionListResponse, SessionMcpApprovalPolicy, SessionMcpCredentialUpdateInput, SessionMcpServerId, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdatePayload, SessionSystemUpdateState, SessionToolPolicy, 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, TURN_EXECUTION_POLICY_METADATA_KEY, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TranscriptionErrorCode, TranscriptionEvent, TranscriptionResultMetadata, TranscriptionSpeaker, TranscriptionTimeSpan, TranscriptionWord, TriggerScheduledTaskRequest, TurnExecutionModelSourceV1, type TurnExecutionPolicyReadV1, TurnExecutionPolicyV1, TurnExecutionReasoningSourceV1, TurnInitiator, TurnInitiatorContext, UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionMcpApprovalPolicyRequest, UpdateSessionMcpApprovalPolicyResponse, 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, WorkspaceModelCatalogModel, WorkspaceModelCatalogResponse, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, WorkspaceTranscriptionPolicy, WorkspaceTranscriptionTarget, approvalIdentifier, approximateSessionEventTokens, assertUniqueResourceMountPaths, boundSessionEvent, boundSessionEventPayload, boundWorkspaceControlEvent, capabilityCatalogItemIsTrustedForExposure, compactSessionEventResult, defaultRepositoryMountPath, evaluateWorkspaceModelPolicy, gitCredentialBindingIdForRepository, gitCredentialProviderForRepository, isClearedRunStateBlob, measureSessionEventJson, mergeResourceRefs, mergeToolRefs, metadataWithTurnExecutionPolicyV1, normalizeRepositorySubpath, normalizeResourceMountPath, prefixedMcpToolName, readTurnExecutionPolicyV1, reasoningEffortForMetadata, resolveRetainedOutputRange, resolveSessionEventTypeFilters, resolveWorkspaceMemoryEnabled, resourceIdentityKey, resourceMountPath, resourceMountPathCollisionKey, retainedArtifactReferenceFromFile, retainedOutputUnavailable, sessionEventJsonBytes, sessionEventLatestClassToSemanticClass, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, turnExecutionPolicyAuditMetadata, validateRetainedOutputEvidence, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken, workspaceControlUtf8Bytes };
|
|
13295
|
+
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, CODEX_FLEET_POLICY_MAX_CANDIDATES, CODEX_FLEET_POLICY_MAX_OVERLAYS_PER_CANDIDATE, CODEX_FLEET_POLICY_SCHEMA_VERSION, CODEX_FLEET_POLICY_VERSION, CapabilityCatalogAuthKind, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityCatalogTier, type CapabilityDescriptor, CapabilityInstallation, CapabilityInstallationStatus, CapabilityKind, CapabilityPack, CapabilityPackConnector, CapabilityPackConnectorAuthModel, CapabilityPackKnowledge, CapabilityPackScheduledTaskTemplate, CapabilityPackSkill, CapabilityPackSkillFile, CapabilityRuntime, CapabilitySource, CapabilityUnavailableReason, ClearSessionContextRequest, ClientAuthConfig, ClientConfig, ClientModel, ClientSessionEvent, type CodexFleetAdmissionDecisionV1, type CodexFleetAdmissionSnapshotV1, type CodexFleetCacheState, type CodexFleetCandidateStatus, type CodexFleetCandidateV1, type CodexFleetConfidence, type CodexFleetDecisionInputV1, type CodexFleetDecisionV1, type CodexFleetOverlayMode, type CodexFleetPlacementKind, type CodexFleetPolicyConfigV1, type CodexFleetPriority, type CodexFleetQuotaWindowV1, type CodexFleetReplayRecordV1, type CodexFleetReplayVerdictV1, type CodexFleetScoreV1, CompactSessionContextRequest, CompactSessionContextResult, CompleteFileUploadResponse, ComposerDraft, ConnectionCredentialBundle, type ConnectionCredentialsPort, ConnectionKind, ConnectionMetadata, ConnectionResponse, ConnectionStatus, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateKnowledgeDropRequest, CreateKnowledgeMemoryRequest, CreateRigRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSessionResponse, CreateSocialConnectionRequest, CreateSocialPostRequest, CreateVariableSetRequest, CreateWorkspaceEnvironmentRequest, CreateWorkspaceRequest, CredentialAuthNeededPayload, type CredentialAuthNeededReason, DEFAULT_CODEX_FLEET_POLICY_V1, DEFAULT_FIRST_PARTY_MCP_PERMISSIONS, DESKTOP_STREAM_PORT, DelegatedAccessTokenPayload, DeleteSessionQueueItemRequest, DeviceEnrollmentApproveRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyRequest, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupMachine, DeviceEnrollmentLookupRequest, DeviceEnrollmentLookupResponse, DeviceEnrollmentPollRequest, DeviceEnrollmentPollResponse, DeviceEnrollmentStartRequest, DeviceEnrollmentStartResponse, DeviceEnrollmentState, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentCuration, DocumentCurationStatus, DocumentSearchMode, DocumentSearchRequest, DocumentSearchResult, DocumentStatus, DocumentVisibility, 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 GitCredentialTransport, type GitCredentials, type GitCredentialsRequest, GitDiffHunk, GitDiffLine, GitDiffLineType, GitDiffRequest, GitDiffResponse, GitFileDiff, GitFileStatus, GitFileStatusCode, type GitHttpBrokerRepositoryRoute, type GitHubAppApiPort, GitHubAppInfo, GitHubAppManifestCreate, GitHubBindingStatus, type GitHubInstallationAuthorityKind, GitHubInstallationBinding, type GitHubInstallationBindingProof, GitHubInstallationLifecycle, 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, MAX_NESTED_AGENT_DEPTH, MachineKind, MachineMetricsSeriesResponse, MachineState, MachineView, MachinesResponse, ManagedAccount, MarketingDailyAnalysisTaskRequest, McpConnectionResourceScope, type McpCredentialAuthNeededReason, type McpCredentialResolution, type McpCredentialsRequest, McpServerConnectionRef, MetricSample, MintEnrollTokenRequest, MintEnrollTokenResponse, ModelAvailabilityV1, ModelBillingAttributionV1, ModelCapabilitiesV1, ModelCapabilityStateV1, ModelCapabilitySupportV1, ModelCredentialReadinessV1, ModelCredentialSourceV1, ModelPricingScheduleV1, ModelPricingV1, MoveDocumentRequest, MoveSessionQueueItemRequest, NestedAgentDepthAttemptValue, NestedAgentDepthPolicySource, NestedAgentDepthValue, NewSessionDraft, NewSessionDraftOptions, OAuthStartRequest, OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OPENGENI_CORRELATION_HEADER, OPENGENI_HOST_EXPORT_SCHEMA_REVISION, PackInstallation, PackInstallationStatus, Permission, type PortExposureKind, ProductAccessMode, ProposeRigChangeRequest, PtyCloseRequest, PtyOpenRequest, PtyOpenResponse, PtyResizeRequest, PtyWriteRequest, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, RETAINED_OUTPUT_RECEIPT_MAX_BYTES, ReasoningEffort, RecordingAvailablePayload, RecordingCodec, RecordingContentType, RecordingFailedPayload, RecordingFailedReason, RecordingMode, RecordingStartedPayload, RegisterCapabilityPackRequest, RelayTokenPayload, RepositoryResourceRef, RequestHumanInputToolInput, type ResolveSessionAuthorizationListScopeInput, type ResolveSessionEventTypeFiltersInput, ResourceMountPathError, ResourceRef, ResourceRefConflictError, type RetainedArtifactFileInput, type RetainedArtifactMetadata, RetainedArtifactMetadataSchema, type RetainedArtifactReference, RetainedArtifactReferenceSchema, type RetainedArtifactUnavailable, RetainedArtifactUnavailableSchema, type RetainedOutputAvailableEvidence, type RetainedOutputEvidence, RetainedOutputEvidenceSchema, RetainedOutputKind, type RetainedOutputRangeResolution, type RetainedOutputResolvedRange, RetainedOutputUnavailableReason, 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_EFFECTIVE_TOOL_POLICY_ID_LIMIT, SESSION_EFFECTIVE_TOOL_POLICY_ID_MAX_LENGTH, 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_MCP_APPROVAL_POLICY_MAX_BYTES, SESSION_MCP_APPROVAL_POLICY_MAX_TOOL_NAMES, SESSION_MCP_APPROVAL_TOOL_NAME_MAX_BYTES, SESSION_MCP_SERVERS_MAX, SESSION_OPERATION_KEY_MAX_CHARS, SandboxBackend, SandboxCapabilityName, SandboxCommandOutputDeltaPayload, SandboxOs, type SandboxSecrets, type SandboxSecretsRequest, SaveComposerDraftRequest, SaveNewSessionDraftRequest, ScheduledTask, ScheduledTaskAgentConfig, ScheduledTaskOverlapPolicy, ScheduledTaskRun, ScheduledTaskRunMode, ScheduledTaskRunStatus, ScheduledTaskScheduleSpec, ScheduledTaskStatus, ScheduledTaskTriggerType, type SecretForRedaction, ServiceTurnInitiator, ServiceTurnInitiatorContext, Session, SessionAuthorizationActor, SessionAuthorizationDecision, SessionAuthorizationListScope, SessionAuthorizationOperation, type SessionAuthorizationPort, SessionAuthorizationSurface, SessionAuthorizationTarget, SessionBusMessage, SessionCapabilities, SessionCommandReceipt, SessionControlRequest, SessionControlResponse, SessionControlState, SessionEffectiveToolPolicy, SessionEvent, type SessionEventBoundarySurface, type SessionEventCompactResult, type SessionEventJsonMeasurement, SessionEventLatestClass, type SessionEventMediaPreview, SessionEventPayloadMode, type SessionEventPayloadTruncation, SessionEventReadDirection, SessionEventReadMode, SessionEventResultMode, SessionEventSemanticClass, SessionEventType, SessionGoal, SessionGoalContinuation, SessionGoalContinuationReason, SessionGoalContinuationState, SessionGoalCreatedBy, SessionGoalPausedReason, SessionGoalStatus, SessionHumanInputRequest, SessionLineageResponse, SessionListResponse, SessionMcpApprovalPolicy, SessionMcpCredentialUpdateInput, SessionMcpServerId, SessionMcpServerInput, SessionMcpServerMetadata, SessionQueueMutationResponse, SessionQueueSnapshot, SessionSpawnDenial, SessionStatus, SessionStructuredCapabilities, type SessionSummary, SessionSystemUpdate, SessionSystemUpdateKind, SessionSystemUpdatePayload, SessionSystemUpdateState, SessionToolPolicy, 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, TURN_EXECUTION_POLICY_METADATA_KEY, TerminalExecRequest, TerminalExecResponse, TerminalPtyExitedPayload, TerminalPtyOutputDeltaPayload, TerminalPtyStartedPayload, ToolAuthNeededPayload, ToolRef, TranscriptionErrorCode, TranscriptionEvent, TranscriptionResultMetadata, TranscriptionSpeaker, TranscriptionTimeSpan, TranscriptionWord, TriggerScheduledTaskRequest, TurnExecutionModelSourceV1, type TurnExecutionPolicyReadV1, TurnExecutionPolicyV1, TurnExecutionReasoningSourceV1, TurnInitiator, TurnInitiatorContext, UNATTRIBUTED_LEGACY_INITIATOR_SUBJECT_ID, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateRigRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionMcpApprovalPolicyRequest, UpdateSessionMcpApprovalPolicyResponse, UpdateSessionPinRequest, UpdateSessionRequest, UpdateSessionToolPolicyRequest, 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, WorkspaceModelCatalogModel, WorkspaceModelCatalogResponse, type WorkspaceModelPolicyContract, type WorkspaceModelPolicyVerdict, WorkspaceRegisteredPack, WorkspaceRevisionCapturedPayload, WorkspaceRevisionDegradedPayload, type WorkspaceSettings, WorkspaceSettingsSchema, WorkspaceTranscriptionPolicy, WorkspaceTranscriptionTarget, approvalIdentifier, approximateSessionEventTokens, assertUniqueResourceMountPaths, boundSessionEvent, boundSessionEventPayload, boundWorkspaceControlEvent, canonicalCodexFleetReplayJsonV1, capabilityCatalogItemIsTrustedForExposure, compactSessionEventResult, compareCodexFleetCanonicalStringsV1, createCodexFleetReplayRecordV1, createSecretRedactor, defaultRepositoryMountPath, effectiveCodexFleetCacheStateV1, evaluateCodexFleetDecisionV1, evaluateWorkspaceModelPolicy, gitCredentialBindingIdForRepository, gitCredentialProviderForRepository, identityRedactor, isClearedRunStateBlob, isCredentialHeaderName, isSensitiveFieldName, measureSessionEventJson, mergeResourceRefs, mergeToolRefs, metadataWithTurnExecutionPolicyV1, normalizeRepositorySubpath, normalizeResourceMountPath, prefixedMcpToolName, readCodexFleetReplayRecordV1, readTurnExecutionPolicyV1, reasoningEffortForMetadata, redactSensitiveData, redactSensitiveKey, redactSensitiveText, redactSerializedJson, replayCodexFleetDecisionV1, resolveRetainedOutputRange, resolveSessionEventTypeFilters, resolveWorkspaceMemoryEnabled, resourceIdentityKey, resourceMountPath, resourceMountPathCollisionKey, retainedArtifactReferenceFromFile, retainedOutputUnavailable, sessionEventJsonBytes, sessionEventLatestClassToSemanticClass, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, signDelegatedAccessToken, signEnrollToken, signEnrollmentBearer, signRelayToken, signStreamToken, stableJson, turnExecutionPolicyAuditMetadata, validateRetainedOutputEvidence, verifyDelegatedAccessToken, verifyEnrollToken, verifyEnrollmentBearer, verifyRelayToken, verifyStreamToken, workspaceControlUtf8Bytes };
|