@opengeni/sdk 0.20.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.d.ts +466 -7
- package/dist/index.js +281 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +368 -49
- package/src/errors.ts +22 -1
- package/src/index.ts +43 -0
- package/src/types.ts +545 -5
package/dist/index.d.ts
CHANGED
|
@@ -196,6 +196,9 @@ type SessionCapabilities = {
|
|
|
196
196
|
os: SandboxOs;
|
|
197
197
|
liveness: "cold" | "warming" | "warm" | "draining";
|
|
198
198
|
leaseEpoch: number;
|
|
199
|
+
workspaceGeneration: number | null;
|
|
200
|
+
archiveGeneration: number | null;
|
|
201
|
+
archiveComplete: boolean;
|
|
199
202
|
viewerHeartbeatIntervalMs: number;
|
|
200
203
|
FileSystem: {
|
|
201
204
|
available: boolean;
|
|
@@ -283,6 +286,9 @@ type ViewerHolder = {
|
|
|
283
286
|
sandboxGroupId: string;
|
|
284
287
|
liveness: "cold" | "warming" | "warm" | "draining";
|
|
285
288
|
leaseEpoch: number;
|
|
289
|
+
workspaceGeneration: number | null;
|
|
290
|
+
archiveGeneration: number | null;
|
|
291
|
+
archiveComplete: boolean;
|
|
286
292
|
viewerHeartbeatIntervalMs: number;
|
|
287
293
|
dataPlaneUrl: string | null;
|
|
288
294
|
};
|
|
@@ -346,6 +352,33 @@ type ResourceRef = RepositoryResourceRef | FileResourceRef;
|
|
|
346
352
|
type ToolRef = {
|
|
347
353
|
kind: "mcp";
|
|
348
354
|
id: string;
|
|
355
|
+
optional?: boolean | undefined;
|
|
356
|
+
};
|
|
357
|
+
type SessionToolPolicy = {
|
|
358
|
+
mode: "workspace_default" | "explicit" | "inherited" | "legacy";
|
|
359
|
+
inheritedFromSessionId: string | null;
|
|
360
|
+
};
|
|
361
|
+
type SessionEffectiveToolPolicy = {
|
|
362
|
+
mode: SessionToolPolicy["mode"];
|
|
363
|
+
inheritedFromSessionId: string | null;
|
|
364
|
+
selectedIds: string[];
|
|
365
|
+
effectiveIds: string[];
|
|
366
|
+
mandatoryIds: string[];
|
|
367
|
+
lazyRouter: {
|
|
368
|
+
state: "required" | "disabled";
|
|
369
|
+
deferredIds: string[];
|
|
370
|
+
};
|
|
371
|
+
configuredIds: string[];
|
|
372
|
+
droppedIds: string[];
|
|
373
|
+
counts: {
|
|
374
|
+
selected: number;
|
|
375
|
+
effective: number;
|
|
376
|
+
mandatory: number;
|
|
377
|
+
deferred: number;
|
|
378
|
+
configured: number;
|
|
379
|
+
dropped: number;
|
|
380
|
+
};
|
|
381
|
+
idsTruncated: boolean;
|
|
349
382
|
};
|
|
350
383
|
type GoalSpec = {
|
|
351
384
|
text: string;
|
|
@@ -368,14 +401,23 @@ type SessionMcpCredentialUpdateInput = {
|
|
|
368
401
|
id: string;
|
|
369
402
|
headers: Record<string, string>;
|
|
370
403
|
};
|
|
404
|
+
type SessionMcpApprovalPolicy = boolean | string[];
|
|
371
405
|
type SessionMcpServerMetadata = {
|
|
372
406
|
id: string;
|
|
373
407
|
name: string | null;
|
|
374
408
|
url: string;
|
|
375
409
|
headerNames: string[];
|
|
376
410
|
credentialVersion: number;
|
|
411
|
+
requireApproval: SessionMcpApprovalPolicy;
|
|
377
412
|
connectionRef: McpServerConnectionRef | null;
|
|
378
413
|
};
|
|
414
|
+
type UpdateSessionMcpApprovalPolicyRequest = {
|
|
415
|
+
requireApproval: SessionMcpApprovalPolicy;
|
|
416
|
+
};
|
|
417
|
+
type UpdateSessionMcpApprovalPolicyResponse = {
|
|
418
|
+
server: SessionMcpServerMetadata;
|
|
419
|
+
effectiveFrom: "next_attempt";
|
|
420
|
+
};
|
|
379
421
|
type ConnectionKind = "oauth2" | "api_key" | "app_install" | "delegated";
|
|
380
422
|
type ConnectionStatus = "active" | "needs_reauth" | "revoked" | "error";
|
|
381
423
|
type McpServerConnectionRef = {
|
|
@@ -486,6 +528,8 @@ type Session = {
|
|
|
486
528
|
instructions: string | null;
|
|
487
529
|
resources: ResourceRef[];
|
|
488
530
|
tools: ToolRef[];
|
|
531
|
+
toolPolicy?: SessionToolPolicy | undefined;
|
|
532
|
+
effectiveToolPolicy?: SessionEffectiveToolPolicy | undefined;
|
|
489
533
|
metadata: Record<string, unknown>;
|
|
490
534
|
/** Frozen creator fact; later turns carry their own independent initiator. */
|
|
491
535
|
createdBy: TurnInitiator;
|
|
@@ -504,6 +548,13 @@ type Session = {
|
|
|
504
548
|
firstPartyMcpPermissions: string[] | null;
|
|
505
549
|
mcpServers: SessionMcpServerMetadata[];
|
|
506
550
|
parentSessionId: string | null;
|
|
551
|
+
/** Immutable server-authored nested-agent lineage and policy snapshot. */
|
|
552
|
+
rootSessionId: string;
|
|
553
|
+
nestedAgentDepth: number;
|
|
554
|
+
maxNestedAgentDepthOverride: number | null;
|
|
555
|
+
effectiveMaxNestedAgentDepth: number;
|
|
556
|
+
nestedAgentDepthPolicySource: "session" | "workspace" | "deployment" | "default";
|
|
557
|
+
nestedAgentDepthPolicySessionId: string | null;
|
|
507
558
|
createIdempotencyKey: string | null;
|
|
508
559
|
temporalWorkflowId: string | null;
|
|
509
560
|
activeTurnId: string | null;
|
|
@@ -577,6 +628,7 @@ type SessionTurn = {
|
|
|
577
628
|
prompt: string;
|
|
578
629
|
resources: ResourceRef[];
|
|
579
630
|
tools: ToolRef[];
|
|
631
|
+
toolsProvided?: boolean | undefined;
|
|
580
632
|
model: string;
|
|
581
633
|
reasoningEffort: ReasoningEffort;
|
|
582
634
|
sandboxBackend: SandboxBackend;
|
|
@@ -652,7 +704,7 @@ type SessionHumanInputRequest = {
|
|
|
652
704
|
createdAt: string;
|
|
653
705
|
updatedAt: string;
|
|
654
706
|
};
|
|
655
|
-
declare const SESSION_EVENT_TYPES: readonly ["session.created", "session.event.envelope_omitted", "session.status.changed", "session.requiresAction", "session.humanInput.requested", "session.context.compaction.requested", "session.context.compacted", "session.context.compaction.skipped", "session.context.cleared", "user.message", "user.pause", "user.approvalDecision", "user.humanInputResponse", "turn.queued", "turn.started", "turn.completed", "turn.failed", "turn.cancelled", "turn.superseded", "turn.recovery.requested", "turn.capacity_waiting", "agent.message.delta", "agent.message.completed", "agent.reasoning.delta", "agent.toolCall.created", "agent.toolCall.output", "agent.model.usage", "tool.auth_needed", "credential.auth_needed", "agent.updated", "rig.setup.started", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.started", "sandbox.operation.completed", "sandbox.operation.failed", "sandbox.command.output.delta", "artifact.created", "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.queue.history", "turn.event.rejected_late", "memory.saved", "memory.corrected", "stream.url.rotated", "stream.opened", "stream.closed", "stream.revoked", "recording.started", "recording.available", "recording.failed", "fs.changed", "git.changed", "terminal.pty.started", "terminal.pty.output.delta", "terminal.pty.exited", "session.title_set", "codex.account.switched", "codex.credential.selected", "codex.capacity.waiting", "codex.capacity.resumed", "codex.capacity.superseded", "sandbox.box.created", "sandbox.box.lost", "sandbox.box.terminated", "sandbox.box.snapshot", "sandbox.env.drift", "session.route.reconciled", "workspace.revision.captured", "workspace.revision.degraded", "machine.op.failed", "machine.op.recovered", "machine.link.lost", "machine.link.restored", "machine.runner.restarted"];
|
|
707
|
+
declare const SESSION_EVENT_TYPES: readonly ["session.created", "session.event.envelope_omitted", "session.status.changed", "session.requiresAction", "session.humanInput.requested", "session.context.compaction.requested", "session.context.compacted", "session.context.compaction.skipped", "session.context.cleared", "user.message", "user.pause", "user.approvalDecision", "user.humanInputResponse", "turn.queued", "turn.started", "turn.completed", "turn.failed", "turn.cancelled", "turn.superseded", "turn.recovery.requested", "turn.capacity_waiting", "agent.message.delta", "agent.message.completed", "agent.reasoning.delta", "agent.toolCall.created", "agent.toolCall.output", "agent.model.request", "agent.model.usage", "tool.auth_needed", "credential.auth_needed", "agent.updated", "rig.setup.started", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.started", "sandbox.operation.completed", "sandbox.operation.failed", "sandbox.command.output.delta", "artifact.created", "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.queue.history", "turn.event.rejected_late", "memory.saved", "memory.corrected", "stream.url.rotated", "stream.opened", "stream.closed", "stream.revoked", "recording.started", "recording.available", "recording.failed", "fs.changed", "git.changed", "terminal.pty.started", "terminal.pty.output.delta", "terminal.pty.exited", "session.title_set", "session.mcp.approval_policy.updated", "codex.account.switched", "codex.credential.selected", "codex.fleet.decision", "codex.capacity.waiting", "codex.capacity.resumed", "codex.capacity.superseded", "sandbox.box.created", "sandbox.box.lost", "sandbox.box.terminated", "sandbox.box.snapshot", "sandbox.env.drift", "session.route.reconciled", "workspace.revision.captured", "workspace.revision.degraded", "machine.op.failed", "machine.op.recovered", "machine.link.lost", "machine.link.restored", "machine.runner.restarted"];
|
|
656
708
|
type KnownSessionEventType = (typeof SESSION_EVENT_TYPES)[number];
|
|
657
709
|
/**
|
|
658
710
|
* Event types the SDK knows about today, kept open so a newer OpenGeni server
|
|
@@ -677,9 +729,11 @@ type SessionEvent = {
|
|
|
677
729
|
duplicateReason?: string | null | undefined;
|
|
678
730
|
};
|
|
679
731
|
type SessionEventSemanticClass = "control" | "terminal" | "failure" | "checkpoint" | "tool_receipt" | "provider_account";
|
|
732
|
+
type SessionEventLatestClass = SessionEventSemanticClass | "receipt";
|
|
680
733
|
type SessionEventPayloadMode = "none" | "summary" | "full";
|
|
681
734
|
type SessionEventReadMode = "monitoring" | "forensic";
|
|
682
735
|
type SessionEventReadDirection = "after" | "before";
|
|
736
|
+
type SessionEventResultMode = "events" | "compact";
|
|
683
737
|
type SessionEventListCommonOptions = {
|
|
684
738
|
after?: number;
|
|
685
739
|
before?: number;
|
|
@@ -688,6 +742,7 @@ type SessionEventListCommonOptions = {
|
|
|
688
742
|
mode?: SessionEventReadMode;
|
|
689
743
|
direction?: SessionEventReadDirection;
|
|
690
744
|
payloadMode?: SessionEventPayloadMode;
|
|
745
|
+
resultMode?: "events";
|
|
691
746
|
};
|
|
692
747
|
type SessionEventListOptions = SessionEventListCommonOptions & ({
|
|
693
748
|
latest?: never;
|
|
@@ -697,12 +752,62 @@ type SessionEventListOptions = SessionEventListCommonOptions & ({
|
|
|
697
752
|
excludeClasses?: SessionEventSemanticClass[];
|
|
698
753
|
} | {
|
|
699
754
|
/** Exclusive lookup for the newest event in exactly this semantic class. */
|
|
700
|
-
latest:
|
|
755
|
+
latest: SessionEventLatestClass;
|
|
701
756
|
includeTypes?: never;
|
|
702
757
|
excludeTypes?: never;
|
|
703
758
|
includeClasses?: never;
|
|
704
759
|
excludeClasses?: never;
|
|
705
760
|
});
|
|
761
|
+
type SessionEventCompactResult = {
|
|
762
|
+
version: 1;
|
|
763
|
+
semanticClass: SessionEventSemanticClass;
|
|
764
|
+
source: {
|
|
765
|
+
id: string;
|
|
766
|
+
type: SessionEventType;
|
|
767
|
+
sequence: number;
|
|
768
|
+
occurredAt: string;
|
|
769
|
+
turnId: string | null;
|
|
770
|
+
turnGeneration: number | null;
|
|
771
|
+
turnAttemptId: string | null;
|
|
772
|
+
turnAssociation: SessionEvent["turnAssociation"];
|
|
773
|
+
};
|
|
774
|
+
id: string;
|
|
775
|
+
type: SessionEventType;
|
|
776
|
+
sequence: number;
|
|
777
|
+
occurredAt: string;
|
|
778
|
+
turnId: string | null;
|
|
779
|
+
turnGeneration: number | null;
|
|
780
|
+
turnAttemptId: string | null;
|
|
781
|
+
turnAssociation: SessionEvent["turnAssociation"];
|
|
782
|
+
coveredSequence: {
|
|
783
|
+
first: number;
|
|
784
|
+
last: number;
|
|
785
|
+
};
|
|
786
|
+
status: "completed" | "failed" | "cancelled" | "superseded" | "checkpoint" | "receipt" | "unknown";
|
|
787
|
+
text: string | null;
|
|
788
|
+
output: unknown;
|
|
789
|
+
result: unknown;
|
|
790
|
+
failure: {
|
|
791
|
+
error: string | null;
|
|
792
|
+
code: string | null;
|
|
793
|
+
retryable: boolean | null;
|
|
794
|
+
recovery: string | null;
|
|
795
|
+
} | null;
|
|
796
|
+
checkpoint: unknown;
|
|
797
|
+
receipt: unknown;
|
|
798
|
+
truncation: {
|
|
799
|
+
truncated: boolean;
|
|
800
|
+
fields: string[];
|
|
801
|
+
originalBytes: number | null;
|
|
802
|
+
deliveredBytes: number;
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
type SessionEventCompactResultOptions = {
|
|
806
|
+
latest: SessionEventLatestClass;
|
|
807
|
+
resultMode: "compact";
|
|
808
|
+
mode?: SessionEventReadMode;
|
|
809
|
+
payloadMode?: SessionEventPayloadMode;
|
|
810
|
+
};
|
|
706
811
|
type SessionEventPage = {
|
|
707
812
|
events: SessionEvent[];
|
|
708
813
|
mode: SessionEventReadMode;
|
|
@@ -756,6 +861,62 @@ type AgentToolCallOutputPayload = {
|
|
|
756
861
|
type SessionStatusChangedPayload = {
|
|
757
862
|
status: SessionStatus;
|
|
758
863
|
};
|
|
864
|
+
type CodexFleetConfidence = "unknown" | "low" | "medium" | "high";
|
|
865
|
+
type CodexFleetCacheState = "unknown" | "healthy" | "collapsed";
|
|
866
|
+
type CodexFleetShadowComparison = "match" | "different_candidate" | "different_outcome" | "not_comparable_truncated";
|
|
867
|
+
type CodexFleetDecisionScore = {
|
|
868
|
+
candidateKey: string;
|
|
869
|
+
eligible: boolean;
|
|
870
|
+
rejectionReason: "allocator_disabled" | "unavailable" | "cooling" | "quota_ceiling" | "overlay_isolation" | null;
|
|
871
|
+
quotaPressure: number;
|
|
872
|
+
leasePressure: number;
|
|
873
|
+
observedBurnPressure: number;
|
|
874
|
+
inferredBurnPressure: number;
|
|
875
|
+
runwayPressure: number;
|
|
876
|
+
uncertaintyPressure: number;
|
|
877
|
+
cacheAffinityBenefit: number;
|
|
878
|
+
cacheState: CodexFleetCacheState;
|
|
879
|
+
overlayPreferenceBenefit: number;
|
|
880
|
+
total: number;
|
|
881
|
+
confidence: CodexFleetConfidence;
|
|
882
|
+
};
|
|
883
|
+
type CodexFleetDecisionEventPayload = {
|
|
884
|
+
schemaVersion: 1;
|
|
885
|
+
mode: "shadow";
|
|
886
|
+
actual: {
|
|
887
|
+
outcome: "selected" | "waiting" | "none";
|
|
888
|
+
candidateKey: string | null;
|
|
889
|
+
reason: "lease_reused" | "pin" | "rotation" | "active" | "all_capped" | "none";
|
|
890
|
+
};
|
|
891
|
+
comparison: CodexFleetShadowComparison;
|
|
892
|
+
replay: {
|
|
893
|
+
schemaVersion: 1;
|
|
894
|
+
policyVersion: "adaptive-shadow-v1";
|
|
895
|
+
mode: "shadow";
|
|
896
|
+
input: {
|
|
897
|
+
candidates: Array<{
|
|
898
|
+
key: string;
|
|
899
|
+
}>;
|
|
900
|
+
} & Record<string, unknown>;
|
|
901
|
+
truncatedCandidateCount: number;
|
|
902
|
+
inputFingerprint: string;
|
|
903
|
+
decisionFingerprint: string;
|
|
904
|
+
decision: {
|
|
905
|
+
outcome: "selected" | "paced" | "none";
|
|
906
|
+
selectedCandidateKey: string | null;
|
|
907
|
+
reason: "fenced_in_flight" | "fenced_candidate_missing" | "admission_paced" | "no_eligible_candidate" | "overlay_isolated_empty" | "best_score" | "affinity_best" | "hysteresis_hold";
|
|
908
|
+
admission: {
|
|
909
|
+
outcome: "admit" | "pace";
|
|
910
|
+
reason: "fenced_in_flight" | "pacing_disabled" | "capacity_unknown" | "capacity_available" | "work_conserving_borrow" | "manager_priority" | "standard_starvation_bound" | "capacity_saturated" | "emergency_fuse";
|
|
911
|
+
borrowedIdleCapacity: boolean;
|
|
912
|
+
};
|
|
913
|
+
borrowedOverlayCapacity: boolean;
|
|
914
|
+
strandedEligibleCount: number;
|
|
915
|
+
confidence: CodexFleetConfidence;
|
|
916
|
+
scores: CodexFleetDecisionScore[];
|
|
917
|
+
};
|
|
918
|
+
} & Record<string, unknown>;
|
|
919
|
+
};
|
|
759
920
|
type RecordingMode = "manual" | "on-turn" | "on-verify";
|
|
760
921
|
type RecordingCodec = "h264-mp4" | "vp9-webm";
|
|
761
922
|
type RecordingContentType = "video/mp4" | "video/webm";
|
|
@@ -831,7 +992,7 @@ type TerminalPtyOutputDeltaPayload = {
|
|
|
831
992
|
type TerminalPtyExitedPayload = {
|
|
832
993
|
ptyId: string;
|
|
833
994
|
exitCode: number | null;
|
|
834
|
-
reason: "exit" | "killed" | "owner_gone" | "timeout";
|
|
995
|
+
reason: "exit" | "killed" | "owner_gone" | "timeout" | "lost";
|
|
835
996
|
};
|
|
836
997
|
type FsNodeType = "file" | "dir" | "symlink" | "other";
|
|
837
998
|
type FsTreeNode = {
|
|
@@ -1121,8 +1282,8 @@ type TerminalExecRequest = {
|
|
|
1121
1282
|
type TerminalExecResponse = {
|
|
1122
1283
|
stdout: string;
|
|
1123
1284
|
stderr: string;
|
|
1124
|
-
exitCode: number
|
|
1125
|
-
running:
|
|
1285
|
+
exitCode: number;
|
|
1286
|
+
running: false;
|
|
1126
1287
|
wallTimeSeconds: number;
|
|
1127
1288
|
};
|
|
1128
1289
|
type PtyOpenRequest = {
|
|
@@ -1195,6 +1356,7 @@ type ScheduledTaskAgentConfig = {
|
|
|
1195
1356
|
reasoningEffort?: ReasoningEffort | undefined;
|
|
1196
1357
|
sandboxBackend?: SandboxBackend | undefined;
|
|
1197
1358
|
goal?: GoalSpec | undefined;
|
|
1359
|
+
maxNestedAgentDepth?: number | undefined;
|
|
1198
1360
|
};
|
|
1199
1361
|
type ScheduledTask = {
|
|
1200
1362
|
id: string;
|
|
@@ -1237,6 +1399,8 @@ type CreateSessionRequest = {
|
|
|
1237
1399
|
goal?: GoalSpec | undefined;
|
|
1238
1400
|
clientEventId?: string | undefined;
|
|
1239
1401
|
idempotencyKey?: string | undefined;
|
|
1402
|
+
expectedNewSessionDraftRevision?: number | undefined;
|
|
1403
|
+
maxNestedAgentDepth?: number | undefined;
|
|
1240
1404
|
firstPartyMcpPermissions?: string[] | undefined;
|
|
1241
1405
|
mcpServers?: SessionMcpServerInput[] | undefined;
|
|
1242
1406
|
sandbox?: "shared" | "new" | {
|
|
@@ -1251,6 +1415,65 @@ type KnownPermission = (typeof KNOWN_PERMISSIONS)[number];
|
|
|
1251
1415
|
*/
|
|
1252
1416
|
type Permission = KnownPermission | (string & {});
|
|
1253
1417
|
type ProductAccessMode = "local" | "configured" | "managed";
|
|
1418
|
+
type ModelCapabilitySupportV1 = "supported" | "unsupported" | "unknown";
|
|
1419
|
+
type ModelCapabilityStateV1 = {
|
|
1420
|
+
upstream: ModelCapabilitySupportV1;
|
|
1421
|
+
runnable: boolean;
|
|
1422
|
+
};
|
|
1423
|
+
type ModelCapabilitiesV1 = {
|
|
1424
|
+
reasoning: ModelCapabilityStateV1 & {
|
|
1425
|
+
efforts: ReasoningEffort[];
|
|
1426
|
+
defaultEffort: ReasoningEffort | null;
|
|
1427
|
+
required: boolean;
|
|
1428
|
+
};
|
|
1429
|
+
functionCalling: ModelCapabilityStateV1;
|
|
1430
|
+
structuredOutput: ModelCapabilityStateV1;
|
|
1431
|
+
hostedTools: {
|
|
1432
|
+
webSearch: ModelCapabilityStateV1;
|
|
1433
|
+
xSearch: ModelCapabilityStateV1;
|
|
1434
|
+
codeExecution: ModelCapabilityStateV1;
|
|
1435
|
+
};
|
|
1436
|
+
inputModalities: Array<"text" | "image" | "audio">;
|
|
1437
|
+
outputModalities: Array<"text" | "image" | "audio">;
|
|
1438
|
+
transports: {
|
|
1439
|
+
sse: ModelCapabilityStateV1;
|
|
1440
|
+
responsesWebSocket: ModelCapabilityStateV1;
|
|
1441
|
+
realtimeAudio: ModelCapabilityStateV1;
|
|
1442
|
+
};
|
|
1443
|
+
latencyModes: Array<{
|
|
1444
|
+
id: "standard" | "priority" | "fast";
|
|
1445
|
+
upstream: ModelCapabilitySupportV1;
|
|
1446
|
+
runnable: boolean;
|
|
1447
|
+
billingMultiplierBps?: number | undefined;
|
|
1448
|
+
}>;
|
|
1449
|
+
};
|
|
1450
|
+
type ModelCredentialSourceV1 = {
|
|
1451
|
+
kind: "deployment";
|
|
1452
|
+
mechanism: "api_key" | "azure_ad_bearer";
|
|
1453
|
+
} | {
|
|
1454
|
+
kind: "connected_subscription";
|
|
1455
|
+
provider: "codex";
|
|
1456
|
+
} | {
|
|
1457
|
+
kind: "workspace_connection";
|
|
1458
|
+
mechanism: "api_key";
|
|
1459
|
+
};
|
|
1460
|
+
type ModelBillingAttributionV1 = {
|
|
1461
|
+
upstreamPayer: "deployment" | "workspace" | "connected_subscription";
|
|
1462
|
+
metering: "opengeni_credits" | "external";
|
|
1463
|
+
};
|
|
1464
|
+
type ModelPricingV1 = {
|
|
1465
|
+
inputMicrosPerMillionTokens: number;
|
|
1466
|
+
cachedInputMicrosPerMillionTokens?: number | undefined;
|
|
1467
|
+
outputMicrosPerMillionTokens: number;
|
|
1468
|
+
marginBps?: number | undefined;
|
|
1469
|
+
};
|
|
1470
|
+
type ModelPricingScheduleV1 = {
|
|
1471
|
+
default: ModelPricingV1;
|
|
1472
|
+
inputTokenTiers?: Array<{
|
|
1473
|
+
minimumInputTokens: number;
|
|
1474
|
+
pricing: ModelPricingV1;
|
|
1475
|
+
}> | undefined;
|
|
1476
|
+
};
|
|
1254
1477
|
/**
|
|
1255
1478
|
* One model a client may select at send time, plus the provider that serves it.
|
|
1256
1479
|
* The wire API (`responses` | `chat`) lets a client reason about provider
|
|
@@ -1265,6 +1488,42 @@ type ClientModel = {
|
|
|
1265
1488
|
providerLabel: string;
|
|
1266
1489
|
api: "responses" | "chat";
|
|
1267
1490
|
contextWindowTokens?: number | undefined;
|
|
1491
|
+
schemaVersion?: 1 | undefined;
|
|
1492
|
+
aliases?: string[] | undefined;
|
|
1493
|
+
deployment?: {
|
|
1494
|
+
upstreamModelId: string;
|
|
1495
|
+
wireApi: "responses" | "chat";
|
|
1496
|
+
} | undefined;
|
|
1497
|
+
executionLimits?: {
|
|
1498
|
+
contextWindowTokens: number | null;
|
|
1499
|
+
effectiveContextWindowTokens: number | null;
|
|
1500
|
+
autoCompactTokenLimit: number | null;
|
|
1501
|
+
toolOutputTruncationTokens: number | null;
|
|
1502
|
+
} | undefined;
|
|
1503
|
+
credentialSource?: ModelCredentialSourceV1 | undefined;
|
|
1504
|
+
billing?: ModelBillingAttributionV1 | undefined;
|
|
1505
|
+
capabilities?: ModelCapabilitiesV1 | undefined;
|
|
1506
|
+
pricing?: ModelPricingScheduleV1 | undefined;
|
|
1507
|
+
definitionVersion?: string | undefined;
|
|
1508
|
+
};
|
|
1509
|
+
type ModelAvailabilityV1 = {
|
|
1510
|
+
status: "available" | "unavailable" | "degraded" | "unknown";
|
|
1511
|
+
selectable: boolean;
|
|
1512
|
+
reason: "missing_credential" | "needs_reauth" | "credential_not_ready" | "not_entitled" | "provider_unhealthy" | "policy_blocked" | "unsupported" | null;
|
|
1513
|
+
checkedAt: string | null;
|
|
1514
|
+
};
|
|
1515
|
+
type ModelCredentialReadinessV1 = {
|
|
1516
|
+
status: "ready" | "not_ready" | "error";
|
|
1517
|
+
reason: "missing_credential" | "needs_reauth" | "prerequisites_missing" | "resolver_error" | "observation_stale" | null;
|
|
1518
|
+
basis: "configuration" | "connection" | "resolver";
|
|
1519
|
+
checkedAt: string | null;
|
|
1520
|
+
};
|
|
1521
|
+
type WorkspaceModelCatalogModel = ClientModel & {
|
|
1522
|
+
credentialReadiness: ModelCredentialReadinessV1;
|
|
1523
|
+
availability: ModelAvailabilityV1;
|
|
1524
|
+
};
|
|
1525
|
+
type WorkspaceModelCatalogResponse = {
|
|
1526
|
+
models: WorkspaceModelCatalogModel[];
|
|
1268
1527
|
};
|
|
1269
1528
|
/**
|
|
1270
1529
|
* Connection state of a workspace's Codex (ChatGPT) subscription, returned by
|
|
@@ -1313,6 +1572,11 @@ type CodexUsagePayload = {
|
|
|
1313
1572
|
weekly: CodexUsageWindow | null;
|
|
1314
1573
|
limitReached: boolean;
|
|
1315
1574
|
fetchedAt: string;
|
|
1575
|
+
/** Authoritative count-only summary from /wham/usage; never synthesized rows. */
|
|
1576
|
+
rateLimitResetCredits?: {
|
|
1577
|
+
availableCount: number;
|
|
1578
|
+
credits: null;
|
|
1579
|
+
} | null;
|
|
1316
1580
|
/** Present only on an auth/refresh failure path. */
|
|
1317
1581
|
reason?: "needs_relogin";
|
|
1318
1582
|
additionalLimits?: Array<{
|
|
@@ -1344,6 +1608,73 @@ type CodexAccount = {
|
|
|
1344
1608
|
weekly?: CodexUsageWindow | null;
|
|
1345
1609
|
usageCheckedAt?: string | null;
|
|
1346
1610
|
exhaustedUntil?: string | null;
|
|
1611
|
+
/** Controls only NEW automatic allocations. */
|
|
1612
|
+
allocatorEnabled: boolean;
|
|
1613
|
+
/** Independent OCC sequence; credential/token `version` is never exposed. */
|
|
1614
|
+
allocatorVersion: number;
|
|
1615
|
+
allocatorUpdatedAt?: string | null;
|
|
1616
|
+
/** Cached authoritative summary count, never detailed redemption authority. */
|
|
1617
|
+
resetCreditAvailableCount?: number | null;
|
|
1618
|
+
resetCreditsCheckedAt?: string | null;
|
|
1619
|
+
};
|
|
1620
|
+
type CodexResetCredit = {
|
|
1621
|
+
id: string;
|
|
1622
|
+
resetType: "codexRateLimits" | "unknown";
|
|
1623
|
+
status: "available" | "redeeming" | "redeemed" | "unknown";
|
|
1624
|
+
/** Unix seconds from the provider contract. */
|
|
1625
|
+
grantedAt: number;
|
|
1626
|
+
/** Unix seconds, or null when the provider reports no expiry. */
|
|
1627
|
+
expiresAt: number | null;
|
|
1628
|
+
title: string | null;
|
|
1629
|
+
description: string | null;
|
|
1630
|
+
/** True only for fresh, complete, owning-human provider detail. */
|
|
1631
|
+
actionable: boolean;
|
|
1632
|
+
};
|
|
1633
|
+
/** Owning-human recovery metadata. It contains no token, browser-session hash, or provider key. */
|
|
1634
|
+
type CodexResetRedemptionRecovery = {
|
|
1635
|
+
attemptId: string;
|
|
1636
|
+
creditId: string;
|
|
1637
|
+
status: "provider_started" | "completed";
|
|
1638
|
+
outcome: "reset" | "nothingToReset" | "noCredit" | "alreadyRedeemed" | null;
|
|
1639
|
+
providerStartedAt: string | null;
|
|
1640
|
+
completedAt: string | null;
|
|
1641
|
+
createdAt: string;
|
|
1642
|
+
updatedAt: string;
|
|
1643
|
+
};
|
|
1644
|
+
type CodexAccountOverview = {
|
|
1645
|
+
accountId: string;
|
|
1646
|
+
usage: {
|
|
1647
|
+
source: "provider" | "cache" | "none";
|
|
1648
|
+
fetchedAt: string | null;
|
|
1649
|
+
stale: boolean;
|
|
1650
|
+
error: string | null;
|
|
1651
|
+
value: CodexUsagePayload | null;
|
|
1652
|
+
};
|
|
1653
|
+
resetCredits: {
|
|
1654
|
+
source: "provider" | "cache" | "none";
|
|
1655
|
+
fetchedAt: string | null;
|
|
1656
|
+
stale: boolean;
|
|
1657
|
+
error: string | null;
|
|
1658
|
+
detailState: "detailed" | "count_only" | "capped" | "unsupported" | "unknown" | "error";
|
|
1659
|
+
detailsComplete: boolean;
|
|
1660
|
+
availableCount: number | null;
|
|
1661
|
+
credits: CodexResetCredit[];
|
|
1662
|
+
};
|
|
1663
|
+
canRedeem: boolean;
|
|
1664
|
+
/** Owning managed-cookie human may replay durable completion without a healthy provider token. */
|
|
1665
|
+
canResumeRedemption: boolean;
|
|
1666
|
+
/** Durable owner-scoped ambiguity/completion discovery; never redemption authority for agents. */
|
|
1667
|
+
redemptions: CodexResetRedemptionRecovery[];
|
|
1668
|
+
};
|
|
1669
|
+
/** Independently settled live overview keyed by workspace credential id. */
|
|
1670
|
+
type CodexOverviewResponse = {
|
|
1671
|
+
accounts: Record<string, CodexAccountOverview>;
|
|
1672
|
+
};
|
|
1673
|
+
type CodexAllocatorUpdate = {
|
|
1674
|
+
allocatorEnabled: boolean;
|
|
1675
|
+
allocatorVersion: number;
|
|
1676
|
+
allocatorUpdatedAt: string | null;
|
|
1677
|
+
changed: boolean;
|
|
1347
1678
|
};
|
|
1348
1679
|
/** Per-workspace Codex rotation/active settings. P1: rotation inert, only activeCredentialId loads. */
|
|
1349
1680
|
type CodexRotationSettings = {
|
|
@@ -1492,11 +1823,13 @@ type Workspace = {
|
|
|
1492
1823
|
type WorkspaceSettings = {
|
|
1493
1824
|
memoryEnabled?: boolean | undefined;
|
|
1494
1825
|
transcription?: WorkspaceTranscriptionPolicy | undefined;
|
|
1826
|
+
maxNestedAgentDepth?: number | null | undefined;
|
|
1495
1827
|
[key: string]: unknown;
|
|
1496
1828
|
};
|
|
1497
1829
|
type UpdateWorkspaceSettingsRequest = {
|
|
1498
1830
|
memoryEnabled?: boolean | undefined;
|
|
1499
1831
|
transcription?: WorkspaceTranscriptionPolicy | undefined;
|
|
1832
|
+
maxNestedAgentDepth?: number | null | undefined;
|
|
1500
1833
|
[key: string]: unknown;
|
|
1501
1834
|
};
|
|
1502
1835
|
type SetWorkspaceDefaultRigRequest = {
|
|
@@ -1562,6 +1895,16 @@ type UpdateWorkspaceMemberRequest = {
|
|
|
1562
1895
|
};
|
|
1563
1896
|
type SessionGoalStatus = "active" | "paused" | "completed";
|
|
1564
1897
|
type SessionGoalCreatedBy = "api" | "agent" | "scheduled_task";
|
|
1898
|
+
type SessionGoalContinuationState = "inactive" | "scheduled" | "running" | "blocked" | "invariant_broken";
|
|
1899
|
+
type SessionGoalContinuationReason = "goal_inactive" | "wake_pending" | "continuation_pending" | "human_work_pending" | "goal_turn_running" | "human_turn_running" | "workstream_paused" | "approval_required" | "provider_backpressure" | "session_cancelled" | "system_work_pending" | "missing_obligation";
|
|
1900
|
+
type SessionGoalContinuation = {
|
|
1901
|
+
state: SessionGoalContinuationState;
|
|
1902
|
+
reason: SessionGoalContinuationReason;
|
|
1903
|
+
wakeRevision: number;
|
|
1904
|
+
observedRevision: number;
|
|
1905
|
+
nextAttemptAt: string | null;
|
|
1906
|
+
lastError: string | null;
|
|
1907
|
+
};
|
|
1565
1908
|
type SessionGoal = {
|
|
1566
1909
|
id: string;
|
|
1567
1910
|
accountId: string;
|
|
@@ -1579,6 +1922,8 @@ type SessionGoal = {
|
|
|
1579
1922
|
noProgressStreak: number;
|
|
1580
1923
|
maxAutoContinuations: number | null;
|
|
1581
1924
|
metadata: Record<string, unknown>;
|
|
1925
|
+
/** Optional for source compatibility; the API always supplies this projection. */
|
|
1926
|
+
continuation?: SessionGoalContinuation | undefined;
|
|
1582
1927
|
createdAt: string;
|
|
1583
1928
|
updatedAt: string;
|
|
1584
1929
|
};
|
|
@@ -1648,12 +1993,33 @@ type ComposerDraft = {
|
|
|
1648
1993
|
text: string;
|
|
1649
1994
|
resources: ResourceRef[];
|
|
1650
1995
|
tools: ToolRef[];
|
|
1996
|
+
/** False inherits the session policy; true preserves an explicit array. */
|
|
1997
|
+
toolsProvided: boolean;
|
|
1651
1998
|
model: string;
|
|
1652
1999
|
reasoningEffort: ReasoningEffort;
|
|
1653
2000
|
sourceTurnId: string | null;
|
|
1654
2001
|
sourceTurnVersion: number | null;
|
|
1655
2002
|
updatedAt: string | null;
|
|
1656
2003
|
};
|
|
2004
|
+
type NewSessionDraftOptions = {
|
|
2005
|
+
sandboxBackend?: SandboxBackend | undefined;
|
|
2006
|
+
targetSandboxId?: string | undefined;
|
|
2007
|
+
workingDir?: string | undefined;
|
|
2008
|
+
variableSetId?: string | undefined;
|
|
2009
|
+
rigId?: string | undefined;
|
|
2010
|
+
goal?: GoalSpec | undefined;
|
|
2011
|
+
firstPartyMcpPermissions?: Permission[] | undefined;
|
|
2012
|
+
};
|
|
2013
|
+
type NewSessionDraft = {
|
|
2014
|
+
revision: number;
|
|
2015
|
+
text: string;
|
|
2016
|
+
resources: ResourceRef[];
|
|
2017
|
+
tools: ToolRef[];
|
|
2018
|
+
model: string;
|
|
2019
|
+
reasoningEffort: ReasoningEffort;
|
|
2020
|
+
options: NewSessionDraftOptions;
|
|
2021
|
+
updatedAt: string | null;
|
|
2022
|
+
};
|
|
1657
2023
|
type SessionQueueSnapshot = {
|
|
1658
2024
|
version: number;
|
|
1659
2025
|
effectiveControl: EffectiveSessionControl;
|
|
@@ -1751,6 +2117,9 @@ type DeleteSessionQueueItemRequest = {
|
|
|
1751
2117
|
type SaveComposerDraftRequest = Omit<ComposerDraft, "revision" | "sourceTurnId" | "sourceTurnVersion" | "updatedAt"> & {
|
|
1752
2118
|
expectedRevision: number;
|
|
1753
2119
|
};
|
|
2120
|
+
type SaveNewSessionDraftRequest = Omit<NewSessionDraft, "revision" | "updatedAt"> & {
|
|
2121
|
+
expectedRevision: number;
|
|
2122
|
+
};
|
|
1754
2123
|
/** Input shape for agent config on create/update (server applies defaults). */
|
|
1755
2124
|
type ScheduledTaskAgentConfigInput = {
|
|
1756
2125
|
prompt: string;
|
|
@@ -1761,6 +2130,7 @@ type ScheduledTaskAgentConfigInput = {
|
|
|
1761
2130
|
reasoningEffort?: ReasoningEffort | undefined;
|
|
1762
2131
|
sandboxBackend?: SandboxBackend | undefined;
|
|
1763
2132
|
goal?: GoalSpec | undefined;
|
|
2133
|
+
maxNestedAgentDepth?: number | undefined;
|
|
1764
2134
|
};
|
|
1765
2135
|
type CreateScheduledTaskRequest = {
|
|
1766
2136
|
name: string;
|
|
@@ -1962,6 +2332,49 @@ type FileAsset = {
|
|
|
1962
2332
|
createdAt: string;
|
|
1963
2333
|
updatedAt: string;
|
|
1964
2334
|
};
|
|
2335
|
+
/** Mirrors the closed, provider-neutral retained-output contract. */
|
|
2336
|
+
declare const RETAINED_OUTPUT_DEFAULT_PAGE_BYTES: number;
|
|
2337
|
+
declare const RETAINED_OUTPUT_MAX_PAGE_BYTES: number;
|
|
2338
|
+
type RetainedOutputKind = "tool_result" | "assistant_completion" | "internal_update" | "event_media" | "file";
|
|
2339
|
+
type RetainedOutputUnavailableReason = "not_retained" | "pending" | "failed" | "expired" | "deleted" | "missing_storage" | "storage_write_failed" | "unsupported";
|
|
2340
|
+
type RetainedArtifactReference = {
|
|
2341
|
+
available: true;
|
|
2342
|
+
artifactId: string;
|
|
2343
|
+
kind: RetainedOutputKind;
|
|
2344
|
+
contentType: string;
|
|
2345
|
+
originalBytes: number;
|
|
2346
|
+
sha256: string;
|
|
2347
|
+
retainedAt: string;
|
|
2348
|
+
retention: {
|
|
2349
|
+
policy: "workspace_file";
|
|
2350
|
+
expiresAt: null;
|
|
2351
|
+
};
|
|
2352
|
+
retrieval: {
|
|
2353
|
+
method: "GET";
|
|
2354
|
+
path: string;
|
|
2355
|
+
acceptRanges: "bytes";
|
|
2356
|
+
maxRangeBytes: number;
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
2359
|
+
type RetainedArtifactUnavailable = {
|
|
2360
|
+
available: false;
|
|
2361
|
+
artifactId: string;
|
|
2362
|
+
reason: RetainedOutputUnavailableReason;
|
|
2363
|
+
};
|
|
2364
|
+
type RetainedArtifactMetadata = RetainedArtifactReference | RetainedArtifactUnavailable;
|
|
2365
|
+
type RetainedArtifactContentOptions = {
|
|
2366
|
+
/** One RFC-style bytes range, for example `bytes=1048576-2097151`. */
|
|
2367
|
+
range?: string | undefined;
|
|
2368
|
+
signal?: AbortSignal | undefined;
|
|
2369
|
+
};
|
|
2370
|
+
type RetainedArtifactContent = {
|
|
2371
|
+
bytes: Uint8Array;
|
|
2372
|
+
status: 200 | 206;
|
|
2373
|
+
contentType: string;
|
|
2374
|
+
contentLength: number;
|
|
2375
|
+
contentRange: string | null;
|
|
2376
|
+
acceptRanges: "bytes";
|
|
2377
|
+
};
|
|
1965
2378
|
type CreateFileUploadRequest = {
|
|
1966
2379
|
filename: string;
|
|
1967
2380
|
contentType: string;
|
|
@@ -2304,6 +2717,11 @@ type CapabilityRuntime = {
|
|
|
2304
2717
|
mcpServerId?: string | undefined;
|
|
2305
2718
|
transport?: string | undefined;
|
|
2306
2719
|
notes: string | null;
|
|
2720
|
+
/** Secret-safe server-derived registry exposure state. */
|
|
2721
|
+
catalogTrust?: {
|
|
2722
|
+
state: "trusted" | "legacy_active" | "unverified";
|
|
2723
|
+
reason: "trusted_source" | "verified_probe" | "active_installation_compatibility" | "missing_verification";
|
|
2724
|
+
} | undefined;
|
|
2307
2725
|
};
|
|
2308
2726
|
type CapabilityCatalogItem = {
|
|
2309
2727
|
id: string;
|
|
@@ -2566,6 +2984,9 @@ type MachineView = {
|
|
|
2566
2984
|
state: MachineState;
|
|
2567
2985
|
active: boolean;
|
|
2568
2986
|
isSessionGroup: boolean;
|
|
2987
|
+
workspaceGeneration: number | null;
|
|
2988
|
+
archiveGeneration: number | null;
|
|
2989
|
+
archiveComplete: boolean;
|
|
2569
2990
|
os: string;
|
|
2570
2991
|
arch: string;
|
|
2571
2992
|
hasDisplay: boolean;
|
|
@@ -2604,7 +3025,7 @@ type SwapActiveSandboxResponse = {
|
|
|
2604
3025
|
activeSandboxId: string | null;
|
|
2605
3026
|
activeEpoch: number;
|
|
2606
3027
|
reason?: string;
|
|
2607
|
-
code?: "stale_pointer" | "offline_enrollment" | "unsupported_backend_context" | "transient_establishment" | "concurrent_swap";
|
|
3028
|
+
code?: "stale_pointer" | "offline_enrollment" | "unsupported_backend_context" | "transient_establishment" | "concurrent_swap" | "recovery_in_progress" | "recovery_degraded" | "recovery_unrecoverable";
|
|
2608
3029
|
};
|
|
2609
3030
|
/** Mirror of `@opengeni/contracts` EnrollmentOs. */
|
|
2610
3031
|
type EnrollmentOs = "linux" | "macos" | "windows";
|
|
@@ -2798,8 +3219,16 @@ declare class OpenGeniClient {
|
|
|
2798
3219
|
private readonly fetchImpl;
|
|
2799
3220
|
constructor(options: OpenGeniClientOptions);
|
|
2800
3221
|
createSession(workspaceId: string, request: CreateSessionRequest): Promise<CreateSessionResponse>;
|
|
3222
|
+
getNewSessionDraft(workspaceId: string): Promise<NewSessionDraft>;
|
|
3223
|
+
saveNewSessionDraft(workspaceId: string, request: SaveNewSessionDraftRequest): Promise<NewSessionDraft>;
|
|
2801
3224
|
getSession(workspaceId: string, sessionId: string): Promise<Session>;
|
|
2802
3225
|
updateSession(workspaceId: string, sessionId: string, request: UpdateSessionRequest): Promise<Session>;
|
|
3226
|
+
/**
|
|
3227
|
+
* Replace one attached MCP server's approval policy. The change is captured
|
|
3228
|
+
* by the next claimed attempt; already-claimed work keeps its immutable
|
|
3229
|
+
* policy snapshot.
|
|
3230
|
+
*/
|
|
3231
|
+
updateSessionMcpApprovalPolicy(workspaceId: string, sessionId: string, serverId: string, request: UpdateSessionMcpApprovalPolicyRequest): Promise<UpdateSessionMcpApprovalPolicyResponse>;
|
|
2803
3232
|
listSessions(workspaceId: string, options?: {
|
|
2804
3233
|
limit?: number;
|
|
2805
3234
|
parentSessionId?: string | null;
|
|
@@ -2811,6 +3240,8 @@ declare class OpenGeniClient {
|
|
|
2811
3240
|
parentSessionId?: string | null;
|
|
2812
3241
|
cursor?: string;
|
|
2813
3242
|
search?: string;
|
|
3243
|
+
/** Return only the complete personal pinned projection. */
|
|
3244
|
+
pinsOnly?: boolean;
|
|
2814
3245
|
}): Promise<SessionListResponse>;
|
|
2815
3246
|
/** Set this authenticated member's personal workspace pin for a session. */
|
|
2816
3247
|
updateSessionPin(workspaceId: string, sessionId: string, request: UpdateSessionPinRequest): Promise<Session>;
|
|
@@ -2888,7 +3319,15 @@ declare class OpenGeniClient {
|
|
|
2888
3319
|
*/
|
|
2889
3320
|
listEvents(workspaceId: string, sessionId: string, options?: SessionEventListOptions): Promise<SessionEvent[]>;
|
|
2890
3321
|
/** Bounded durable/monitoring page plus exact projection and cursor facts. */
|
|
3322
|
+
listEventPage(workspaceId: string, sessionId: string, options: SessionEventCompactResultOptions): Promise<SessionEventCompactResult | null>;
|
|
2891
3323
|
listEventPage(workspaceId: string, sessionId: string, options?: SessionEventListOptions): Promise<SessionEventPage>;
|
|
3324
|
+
/**
|
|
3325
|
+
* Fetch the authoritative newest-sequence semantic result directly. This is
|
|
3326
|
+
* the callback-loss recovery path: it reads one compact durable result and
|
|
3327
|
+
* never creates a model turn. `latest: "receipt"` aliases `tool_receipt`;
|
|
3328
|
+
* turn generation remains scoped retry metadata.
|
|
3329
|
+
*/
|
|
3330
|
+
getLatestEventResult(workspaceId: string, sessionId: string, options?: Omit<SessionEventCompactResultOptions, "resultMode">): Promise<SessionEventCompactResult | null>;
|
|
2892
3331
|
/** POST a user/control event to the session. Returns the accepted event. */
|
|
2893
3332
|
sendEvent(workspaceId: string, sessionId: string, event: ClientSessionEventInput): Promise<SessionEvent>;
|
|
2894
3333
|
sendMessage(workspaceId: string, sessionId: string, message: string | SendMessageInput): Promise<SessionEvent>;
|
|
@@ -3061,6 +3500,8 @@ declare class OpenGeniClient {
|
|
|
3061
3500
|
* knowledge of the host setup; safe to call before any auth is established.
|
|
3062
3501
|
*/
|
|
3063
3502
|
getClientConfig(): Promise<ClientConfig>;
|
|
3503
|
+
/** Authenticated model definitions plus workspace-specific selectability. */
|
|
3504
|
+
getWorkspaceModelCatalog(workspaceId: string): Promise<WorkspaceModelCatalogResponse>;
|
|
3064
3505
|
/** The caller's access context: subject, account + workspace grants, defaults. */
|
|
3065
3506
|
getAccessContext(): Promise<AccessContext>;
|
|
3066
3507
|
listWorkspaces(): Promise<Workspace[]>;
|
|
@@ -3167,6 +3608,13 @@ declare class OpenGeniClient {
|
|
|
3167
3608
|
*/
|
|
3168
3609
|
uploadFile(workspaceId: string, input: UploadFileInput): Promise<FileAsset>;
|
|
3169
3610
|
getFile(workspaceId: string, fileId: string): Promise<FileAsset>;
|
|
3611
|
+
/** Read provider-neutral retained evidence metadata; never returns a storage location. */
|
|
3612
|
+
getRetainedArtifact(workspaceId: string, artifactId: string): Promise<RetainedArtifactMetadata>;
|
|
3613
|
+
/**
|
|
3614
|
+
* Read at most one authenticated retained-evidence range from the API. This
|
|
3615
|
+
* deliberately does not use the ordinary signed file-download URL.
|
|
3616
|
+
*/
|
|
3617
|
+
getRetainedArtifactContent(workspaceId: string, artifactId: string, options?: RetainedArtifactContentOptions): Promise<RetainedArtifactContent>;
|
|
3170
3618
|
/** Mint a short-lived signed download URL for a ready file. */
|
|
3171
3619
|
createFileDownloadUrl(workspaceId: string, fileId: string): Promise<FileDownloadUrlResponse>;
|
|
3172
3620
|
createDocumentBase(workspaceId: string, request: CreateDocumentBaseRequest): Promise<DocumentBase>;
|
|
@@ -3267,6 +3715,8 @@ declare class OpenGeniClient {
|
|
|
3267
3715
|
refreshCodexUsage(workspaceId: string): Promise<{
|
|
3268
3716
|
usage: CodexUsageMap;
|
|
3269
3717
|
}>;
|
|
3718
|
+
/** Live independently-settled quota + reset-credit overview for every account. */
|
|
3719
|
+
codexOverview(workspaceId: string): Promise<CodexOverviewResponse>;
|
|
3270
3720
|
/** Disconnect ALL accounts (legacy workspace-wide). Prefer `disconnectCodexAccount`. */
|
|
3271
3721
|
codexDisconnect(workspaceId: string): Promise<{
|
|
3272
3722
|
disconnected: boolean;
|
|
@@ -3283,6 +3733,11 @@ declare class OpenGeniClient {
|
|
|
3283
3733
|
rotationEnabled?: boolean;
|
|
3284
3734
|
rotationStrategy?: CodexRotationSettings["rotationStrategy"];
|
|
3285
3735
|
}): Promise<CodexRotationSettings>;
|
|
3736
|
+
/** Toggle only NEW automatic allocations under independent allocator OCC. */
|
|
3737
|
+
setCodexAccountAllocator(workspaceId: string, accountId: string, input: {
|
|
3738
|
+
enabled: boolean;
|
|
3739
|
+
expectedVersion: number;
|
|
3740
|
+
}): Promise<CodexAllocatorUpdate>;
|
|
3286
3741
|
/** Disconnect ONE Codex account by id (re-picks active when the removed one was active). */
|
|
3287
3742
|
disconnectCodexAccount(workspaceId: string, accountId: string): Promise<{
|
|
3288
3743
|
disconnected: boolean;
|
|
@@ -3302,9 +3757,13 @@ declare class OpenGeniClient {
|
|
|
3302
3757
|
/** Error for a non-2xx OpenGeni API response. */
|
|
3303
3758
|
declare class OpenGeniApiError extends Error {
|
|
3304
3759
|
readonly status: number;
|
|
3760
|
+
readonly code: string | undefined;
|
|
3305
3761
|
readonly body: string;
|
|
3306
3762
|
constructor(status: number, body: string);
|
|
3307
3763
|
}
|
|
3764
|
+
/** A short-lived session-list snapshot cursor can no longer be continued. */
|
|
3765
|
+
declare class OpenGeniSessionListCursorError extends OpenGeniApiError {
|
|
3766
|
+
}
|
|
3308
3767
|
/** The browser bundle and API disagree about their state-changing wire contract. */
|
|
3309
3768
|
declare class OpenGeniApiContractMismatchError extends Error {
|
|
3310
3769
|
readonly expected: string;
|
|
@@ -3520,4 +3979,4 @@ declare function ttydInputFrame(data: string): string;
|
|
|
3520
3979
|
/** Build a client→server RESIZE frame: "1" + JSON.stringify({ columns, rows }). */
|
|
3521
3980
|
declare function ttydResizeFrame(columns: number, rows: number): string;
|
|
3522
3981
|
|
|
3523
|
-
export { type AccessContext, type AccessGrant, type AccountGrant, type AccountRole, type AcknowledgeStreamRequest, type AcknowledgeStreamResponse, type AddDocumentRequest, type AddWorkspaceMemberRequest, type AgentMessageCompletedPayload, type AgentTextDeltaPayload, type AgentToolCallCreatedPayload, type AgentToolCallOutputPayload, type ApiKey, type AttachViewerRequest, type AttachViewerResponse, type BillingBalance, type BillingEntitlementsResponse, type BillingMode, type BillingSummary, type BillingUsageResponse, type CapabilityCatalogItem, type CapabilityCatalogResponse, type CapabilityInstallation, type CapabilityInstallationStatus, type CapabilityKind, type CapabilityPack, type CapabilityPackConnector, type CapabilityPackConnectorAuthModel, type CapabilityPackKnowledge, type CapabilityPackScheduledTaskTemplate, type CapabilityPackSkill, type CapabilityPackSkillFile, type CapabilityPackVariableSetSpec, type CapabilityRuntime, type CapabilitySource, type CapabilityUnavailableReason, type ClientAuthConfig, type ClientConfig, type ClientModel, type ClientSessionEventInput, type CodexAccount, type CodexAccountSwitchedPayload, type CodexAccountsResponse, type CodexConnectPoll, type CodexConnectStart, type CodexConnectionStatus, type CodexRotationSettings, type CodexUsage, type CodexUsageMap, type CodexUsagePayload, type CodexUsageWindow, type CompactSessionContextResult, type CompleteFileUploadResponse, type ComposerDraft, type ComputerUseCapability, type ConnectionKind, type ConnectionMetadata, type ConnectionResponse, type ConnectionStatus, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateCapabilityCatalogItemRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CreateConnectionRequest, type CreateDocumentBaseRequest, type CreateFileUploadRequest, type CreateFileUploadResponse, type CreateGitHubAppManifestRequest, type CreateGitHubAppManifestResponse, type CreateKnowledgeMemoryRequest, type CreateRigRequest, type CreateScheduledTaskRequest, type CreateSessionRequest, type CreateVariableSetRequest, type CreateWorkspaceEnvironmentRequest, type CreateWorkspaceRequest, DEFAULT_WORKSPACE_TRANSCRIPTION_POLICY, type DeleteSessionQueueItemRequest, type DesktopConnectionState, type DesktopRfbFactory, type DesktopRfbLike, type DesktopStreamCapability, type DesktopStreamEvent, type DeviceEnrollmentApproveRequest, type DeviceEnrollmentApproveResponse, type DeviceEnrollmentDenyRequest, type DeviceEnrollmentDenyResponse, type DeviceEnrollmentLookupMachine, type DeviceEnrollmentLookupRequest, type DeviceEnrollmentLookupResponse, type DiscoverMcpCapabilitiesResponse, type Document, type DocumentBase, type DocumentSearchMode, type DocumentSearchRequest, type DocumentSearchResponse, type DocumentSearchResult, type DocumentStatus, type EditSessionQueueItemRequest, type EffectiveControlBlocker, type EffectiveControlResumeOption, type EffectiveSessionControl, type EnableCapabilityRequest, type EnablePackRequest, type EnrollTokenExchangeRequest, type EnrollTokenExchangeResponse, type EnrollmentCredentials, type EnrollmentOs, type EntitlementValue, type Entitlements, type EntitlementsMode, type FetchLike, type FileAsset, type FileDownloadUrlResponse, type FileResourceRef, type FileStatus, type FileSystemCapability, type FileUploadData, type FsChangeKind, type FsChangedPayload, type FsDeleteRequest, type FsDeleteResponse, type FsEncoding, type FsListRequest, type FsListResponse, type FsMkdirRequest, type FsMkdirResponse, type FsMoveRequest, type FsMoveResponse, type FsNodeType, type FsReadRequest, type FsReadResponse, type FsTreeNode, type FsWriteRequest, type FsWriteResponse, type GetPackResponse, type GetWorkspaceCaptureFileResponse, type GetWorkspaceCaptureResponse, type GitCapability, type GitChangedPayload, type GitCommit, type GitCredentialBindingId, type GitCredentialProvider, type GitDiffHunk, type GitDiffLine, type GitDiffLineType, type GitDiffRequest, type GitDiffResponse, type GitFileDiff, type GitFileStatus, type GitFileStatusCode, type GitHubAppInfo, type GitHubInstallationBinding, type GitHubRepositoriesResponse, type GitHubRepository, type GitHubRepositoryScope, type GitLogRequest, type GitLogResponse, type GitRepositoryAccess, type GitShowRequest, type GitShowResponse, type GitStatusRequest, type GitStatusResponse, type GoalSpec, type HumanInputAnswer, type HumanInputOption, type HumanInputQuestion, type HumanInputQuestionKind, type HumanInputResponse, type IntegrationClientMetadata, KNOWN_PERMISSIONS, KNOWN_USAGE_EVENT_TYPES, type KnowledgeMemory, type KnowledgeMemoryKind, type KnowledgeMemorySearchRequest, type KnowledgeMemoryStatus, type KnowledgeSourceKind, type KnowledgeSourceRef, type KnownPermission, type KnownSessionEventType, type KnownUsageEventType, type LineageNode, type ListApiKeysResponse, type ListConnectionsResponse, type ListPacksResponse, type ListWorkspaceMembersResponse, type MachineKind, type MachineMetricsSeriesResponse, type MachineState, type MachineView, type MachinesResponse, type McpServerConnectionRef, type MetricSample, type MintEnrollTokenRequest, type MintEnrollTokenResponse, type MoveSessionQueueItemRequest, type OAuthStartRequest, type OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniClient, type OpenGeniClientOptions, type OpenGeniRequestOptions, OpenGeniStreamError, type PackInstallation, type PackInstallationStatus, type Permission, type ProductAccessMode, type ProposeRigChangeRequest, type ProxySessionEventStreamOptions, type PtyCloseRequest, type PtyOpenRequest, type PtyOpenResponse, type PtyResizeRequest, type PtyWriteRequest, type ReasoningEffort, type RecordingAvailablePayload, type RecordingCapability, type RecordingCodec, type RecordingContentType, type RecordingFailedPayload, type RecordingFailedReason, type RecordingMode, type RecordingStartedPayload, type RegisterCapabilityPackRequest, type RepositoryResourceRef, type ResourceRef, type Rig, type RigChange, type RigChangeKind, type RigChangeStatus, type RigChangeVerification, type RigCheck, type RigCheckResult, type RigDefinitionEditPayload, type RigSetupAppendPayload, type RigVersion, SESSION_EVENT_TYPES, type SandboxBackend, type SandboxCapabilityName, type SandboxCommandOutputDeltaPayload, type SandboxOs, type SaveComposerDraftRequest, type ScheduledTask, type ScheduledTaskAgentConfig, type ScheduledTaskAgentConfigInput, type ScheduledTaskDayOfWeek, type ScheduledTaskOverlapPolicy, type ScheduledTaskRun, type ScheduledTaskRunMode, type ScheduledTaskRunStatus, type ScheduledTaskScheduleSpec, type ScheduledTaskStatus, type ScheduledTaskTriggerType, type SendMessageInput, type ServiceTurnInitiator, type ServiceTurnInitiatorContext, type Session, type SessionCapabilities, type SessionCommandReceipt, type SessionControlResponse, type SessionEvent, type SessionEventListOptions, type SessionEventPage, type SessionEventPayloadMode, type SessionEventReadDirection, type SessionEventReadMode, type SessionEventSemanticClass, type SessionEventStreamTransport, type SessionEventType, type SessionGoal, type SessionGoalCreatedBy, type SessionGoalStatus, type SessionHumanInputRequest, type SessionLineageResponse, type SessionListResponse, type SessionMcpCredentialUpdateInput, type SessionMcpServerInput, type SessionMcpServerMetadata, type SessionQueueMutationResponse, type SessionQueueSnapshot, type SessionStatus, type SessionStatusChangedPayload, type SessionStructuredCapabilities, type SessionSummary, type SessionSystemUpdate, type SessionSystemUpdateKind, type SessionSystemUpdateState, type SessionTurn, type SessionTurnSource, type SessionTurnStatus, type SetWorkspaceEnvironmentVariableRequest, type SseMessage, type SseReStreamOptions, type SteerMessageResult, type SteerSessionQueueItemRequest, type StreamClosedPayload, type StreamConnectionState, type StreamOpenedPayload, type StreamRevokedPayload, type StreamSessionEventsOptions, type StreamUrlRotatedPayload, type SubmitHumanInputResponseRequest, type SwapActiveSandboxRequest, type SwapActiveSandboxResponse, TTYD_SUBPROTOCOL, type TerminalCapability, type TerminalExecRequest, type TerminalExecResponse, type TerminalPtyExitedPayload, type TerminalPtyOutputDeltaPayload, type TerminalPtyStartedPayload, type ToolAuthNeededPayload, type ToolRef, type TranscriptionAdapter, type TranscriptionAdapterDescriptor, type TranscriptionAdapterStartContext, type TranscriptionAuthorization, type TranscriptionCredentialMode, type TranscriptionDiagnostic, type TranscriptionErrorCode, type TranscriptionEvent, type TranscriptionEventListener, type TranscriptionLifecycleStatus, type TranscriptionPolicyBlockReason, type TranscriptionResultMetadata, type TranscriptionSession, type TranscriptionSessionRequest, type TranscriptionSpeaker, type TranscriptionTargetSelection, type TranscriptionTimeSpan, type TranscriptionWord, TtydClientCommand, TtydServerCommand, type TurnInitiator, type UpdateConnectionRequest, type UpdateKnowledgeMemoryRequest, type UpdateRigRequest, type UpdateScheduledTaskRequest, type UpdateSessionGoalRequest, type UpdateSessionPinRequest, type UpdateSessionRequest, type UpdateVariableSetRequest, type UpdateWorkspaceEnvironmentRequest, type UpdateWorkspaceMemberRequest, type UpdateWorkspaceRequest, type UpdateWorkspaceSettingsRequest, type UploadFileInput, type UsageEvent, type UsageEventType, type UserApprovalDecisionEventInput, type UserHumanInputResponseEventInput, type UserMessageEventInput, type VariableSet, type VariableSetVariableMetadata, type ViewerHeartbeatRequest, type ViewerHeartbeatResponse, type ViewerHolder, type Workspace, type WorkspaceCaptureDegradedReason, type WorkspaceCaptureFile, type WorkspaceCaptureManifest, type WorkspaceCaptureRepo, type WorkspaceCaptureSignedUrl, type WorkspaceCaptureStats, type WorkspaceControlEvent, type WorkspaceControlEventPage, type WorkspaceControlStreamTransport, type WorkspaceEnvironment, type WorkspaceEnvironmentVariableMetadata, type WorkspaceInferenceControlResponse, type WorkspaceMember, type WorkspaceMemorySearchMode, type WorkspaceMemorySearchRequest, type WorkspaceMemorySearchResponse, type WorkspaceMemorySearchResult, type WorkspaceRegisteredPack, type WorkspaceRevisionCapturedPayload, type WorkspaceRevisionDegradedPayload, type WorkspaceSettings, type WorkspaceTranscriptionPolicy, type WorkspaceTranscriptionTarget, applyUrlRotation, authorizeTranscriptionAdapter, createTranscriptionSessionRequest, desktopSocketUrl, formatSseEvent, isRetryableStreamError, nextDesktopState, parseSseStream, proxySessionEventStream, resolveWorkspaceTranscriptionPolicy, resumeSequenceFromRequest, sessionEventsToSseResponse, sessionEventsToSseStream, streamSessionEvents, streamWorkspaceControlEvents, terminalSocketUrl, ttydAuthFrame, ttydInputFrame, ttydResizeFrame };
|
|
3982
|
+
export { type AccessContext, type AccessGrant, type AccountGrant, type AccountRole, type AcknowledgeStreamRequest, type AcknowledgeStreamResponse, type AddDocumentRequest, type AddWorkspaceMemberRequest, type AgentMessageCompletedPayload, type AgentTextDeltaPayload, type AgentToolCallCreatedPayload, type AgentToolCallOutputPayload, type ApiKey, type AttachViewerRequest, type AttachViewerResponse, type BillingBalance, type BillingEntitlementsResponse, type BillingMode, type BillingSummary, type BillingUsageResponse, type CapabilityCatalogItem, type CapabilityCatalogResponse, type CapabilityInstallation, type CapabilityInstallationStatus, type CapabilityKind, type CapabilityPack, type CapabilityPackConnector, type CapabilityPackConnectorAuthModel, type CapabilityPackKnowledge, type CapabilityPackScheduledTaskTemplate, type CapabilityPackSkill, type CapabilityPackSkillFile, type CapabilityPackVariableSetSpec, type CapabilityRuntime, type CapabilitySource, type CapabilityUnavailableReason, type ClientAuthConfig, type ClientConfig, type ClientModel, type ClientSessionEventInput, type CodexAccount, type CodexAccountOverview, type CodexAccountSwitchedPayload, type CodexAccountsResponse, type CodexAllocatorUpdate, type CodexConnectPoll, type CodexConnectStart, type CodexConnectionStatus, type CodexFleetCacheState, type CodexFleetConfidence, type CodexFleetDecisionEventPayload, type CodexFleetDecisionScore, type CodexFleetShadowComparison, type CodexOverviewResponse, type CodexResetCredit, type CodexResetRedemptionRecovery, type CodexRotationSettings, type CodexUsage, type CodexUsageMap, type CodexUsagePayload, type CodexUsageWindow, type CompactSessionContextResult, type CompleteFileUploadResponse, type ComposerDraft, type ComputerUseCapability, type ConnectionKind, type ConnectionMetadata, type ConnectionResponse, type ConnectionStatus, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateCapabilityCatalogItemRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CreateConnectionRequest, type CreateDocumentBaseRequest, type CreateFileUploadRequest, type CreateFileUploadResponse, type CreateGitHubAppManifestRequest, type CreateGitHubAppManifestResponse, type CreateKnowledgeMemoryRequest, type CreateRigRequest, type CreateScheduledTaskRequest, type CreateSessionRequest, type CreateVariableSetRequest, type CreateWorkspaceEnvironmentRequest, type CreateWorkspaceRequest, DEFAULT_WORKSPACE_TRANSCRIPTION_POLICY, type DeleteSessionQueueItemRequest, type DesktopConnectionState, type DesktopRfbFactory, type DesktopRfbLike, type DesktopStreamCapability, type DesktopStreamEvent, type DeviceEnrollmentApproveRequest, type DeviceEnrollmentApproveResponse, type DeviceEnrollmentDenyRequest, type DeviceEnrollmentDenyResponse, type DeviceEnrollmentLookupMachine, type DeviceEnrollmentLookupRequest, type DeviceEnrollmentLookupResponse, type DiscoverMcpCapabilitiesResponse, type Document, type DocumentBase, type DocumentSearchMode, type DocumentSearchRequest, type DocumentSearchResponse, type DocumentSearchResult, type DocumentStatus, type EditSessionQueueItemRequest, type EffectiveControlBlocker, type EffectiveControlResumeOption, type EffectiveSessionControl, type EnableCapabilityRequest, type EnablePackRequest, type EnrollTokenExchangeRequest, type EnrollTokenExchangeResponse, type EnrollmentCredentials, type EnrollmentOs, type EntitlementValue, type Entitlements, type EntitlementsMode, type FetchLike, type FileAsset, type FileDownloadUrlResponse, type FileResourceRef, type FileStatus, type FileSystemCapability, type FileUploadData, type FsChangeKind, type FsChangedPayload, type FsDeleteRequest, type FsDeleteResponse, type FsEncoding, type FsListRequest, type FsListResponse, type FsMkdirRequest, type FsMkdirResponse, type FsMoveRequest, type FsMoveResponse, type FsNodeType, type FsReadRequest, type FsReadResponse, type FsTreeNode, type FsWriteRequest, type FsWriteResponse, type GetPackResponse, type GetWorkspaceCaptureFileResponse, type GetWorkspaceCaptureResponse, type GitCapability, type GitChangedPayload, type GitCommit, type GitCredentialBindingId, type GitCredentialProvider, type GitDiffHunk, type GitDiffLine, type GitDiffLineType, type GitDiffRequest, type GitDiffResponse, type GitFileDiff, type GitFileStatus, type GitFileStatusCode, type GitHubAppInfo, type GitHubInstallationBinding, type GitHubRepositoriesResponse, type GitHubRepository, type GitHubRepositoryScope, type GitLogRequest, type GitLogResponse, type GitRepositoryAccess, type GitShowRequest, type GitShowResponse, type GitStatusRequest, type GitStatusResponse, type GoalSpec, type HumanInputAnswer, type HumanInputOption, type HumanInputQuestion, type HumanInputQuestionKind, type HumanInputResponse, type IntegrationClientMetadata, KNOWN_PERMISSIONS, KNOWN_USAGE_EVENT_TYPES, type KnowledgeMemory, type KnowledgeMemoryKind, type KnowledgeMemorySearchRequest, type KnowledgeMemoryStatus, type KnowledgeSourceKind, type KnowledgeSourceRef, type KnownPermission, type KnownSessionEventType, type KnownUsageEventType, type LineageNode, type ListApiKeysResponse, type ListConnectionsResponse, type ListPacksResponse, type ListWorkspaceMembersResponse, type MachineKind, type MachineMetricsSeriesResponse, type MachineState, type MachineView, type MachinesResponse, type McpServerConnectionRef, type MetricSample, type MintEnrollTokenRequest, type MintEnrollTokenResponse, type ModelAvailabilityV1, type ModelBillingAttributionV1, type ModelCapabilitiesV1, type ModelCapabilityStateV1, type ModelCapabilitySupportV1, type ModelCredentialReadinessV1, type ModelCredentialSourceV1, type ModelPricingScheduleV1, type ModelPricingV1, type MoveSessionQueueItemRequest, type NewSessionDraft, type NewSessionDraftOptions, type OAuthStartRequest, type OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniClient, type OpenGeniClientOptions, type OpenGeniRequestOptions, OpenGeniSessionListCursorError, OpenGeniStreamError, type PackInstallation, type PackInstallationStatus, type Permission, type ProductAccessMode, type ProposeRigChangeRequest, type ProxySessionEventStreamOptions, type PtyCloseRequest, type PtyOpenRequest, type PtyOpenResponse, type PtyResizeRequest, type PtyWriteRequest, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, type ReasoningEffort, type RecordingAvailablePayload, type RecordingCapability, type RecordingCodec, type RecordingContentType, type RecordingFailedPayload, type RecordingFailedReason, type RecordingMode, type RecordingStartedPayload, type RegisterCapabilityPackRequest, type RepositoryResourceRef, type ResourceRef, type RetainedArtifactContent, type RetainedArtifactContentOptions, type RetainedArtifactMetadata, type RetainedArtifactReference, type RetainedArtifactUnavailable, type RetainedOutputKind, type RetainedOutputUnavailableReason, type Rig, type RigChange, type RigChangeKind, type RigChangeStatus, type RigChangeVerification, type RigCheck, type RigCheckResult, type RigDefinitionEditPayload, type RigSetupAppendPayload, type RigVersion, SESSION_EVENT_TYPES, type SandboxBackend, type SandboxCapabilityName, type SandboxCommandOutputDeltaPayload, type SandboxOs, type SaveComposerDraftRequest, type SaveNewSessionDraftRequest, type ScheduledTask, type ScheduledTaskAgentConfig, type ScheduledTaskAgentConfigInput, type ScheduledTaskDayOfWeek, type ScheduledTaskOverlapPolicy, type ScheduledTaskRun, type ScheduledTaskRunMode, type ScheduledTaskRunStatus, type ScheduledTaskScheduleSpec, type ScheduledTaskStatus, type ScheduledTaskTriggerType, type SendMessageInput, type ServiceTurnInitiator, type ServiceTurnInitiatorContext, type Session, type SessionCapabilities, type SessionCommandReceipt, type SessionControlResponse, type SessionEffectiveToolPolicy, type SessionEvent, type SessionEventCompactResult, type SessionEventCompactResultOptions, type SessionEventLatestClass, type SessionEventListOptions, type SessionEventPage, type SessionEventPayloadMode, type SessionEventReadDirection, type SessionEventReadMode, type SessionEventResultMode, type SessionEventSemanticClass, type SessionEventStreamTransport, type SessionEventType, type SessionGoal, type SessionGoalCreatedBy, type SessionGoalStatus, type SessionHumanInputRequest, type SessionLineageResponse, type SessionListResponse, type SessionMcpApprovalPolicy, type SessionMcpCredentialUpdateInput, type SessionMcpServerInput, type SessionMcpServerMetadata, type SessionQueueMutationResponse, type SessionQueueSnapshot, type SessionStatus, type SessionStatusChangedPayload, type SessionStructuredCapabilities, type SessionSummary, type SessionSystemUpdate, type SessionSystemUpdateKind, type SessionSystemUpdateState, type SessionToolPolicy, type SessionTurn, type SessionTurnSource, type SessionTurnStatus, type SetWorkspaceEnvironmentVariableRequest, type SseMessage, type SseReStreamOptions, type SteerMessageResult, type SteerSessionQueueItemRequest, type StreamClosedPayload, type StreamConnectionState, type StreamOpenedPayload, type StreamRevokedPayload, type StreamSessionEventsOptions, type StreamUrlRotatedPayload, type SubmitHumanInputResponseRequest, type SwapActiveSandboxRequest, type SwapActiveSandboxResponse, TTYD_SUBPROTOCOL, type TerminalCapability, type TerminalExecRequest, type TerminalExecResponse, type TerminalPtyExitedPayload, type TerminalPtyOutputDeltaPayload, type TerminalPtyStartedPayload, type ToolAuthNeededPayload, type ToolRef, type TranscriptionAdapter, type TranscriptionAdapterDescriptor, type TranscriptionAdapterStartContext, type TranscriptionAuthorization, type TranscriptionCredentialMode, type TranscriptionDiagnostic, type TranscriptionErrorCode, type TranscriptionEvent, type TranscriptionEventListener, type TranscriptionLifecycleStatus, type TranscriptionPolicyBlockReason, type TranscriptionResultMetadata, type TranscriptionSession, type TranscriptionSessionRequest, type TranscriptionSpeaker, type TranscriptionTargetSelection, type TranscriptionTimeSpan, type TranscriptionWord, TtydClientCommand, TtydServerCommand, type TurnInitiator, type UpdateConnectionRequest, type UpdateKnowledgeMemoryRequest, type UpdateRigRequest, type UpdateScheduledTaskRequest, type UpdateSessionGoalRequest, type UpdateSessionMcpApprovalPolicyRequest, type UpdateSessionMcpApprovalPolicyResponse, type UpdateSessionPinRequest, type UpdateSessionRequest, type UpdateVariableSetRequest, type UpdateWorkspaceEnvironmentRequest, type UpdateWorkspaceMemberRequest, type UpdateWorkspaceRequest, type UpdateWorkspaceSettingsRequest, type UploadFileInput, type UsageEvent, type UsageEventType, type UserApprovalDecisionEventInput, type UserHumanInputResponseEventInput, type UserMessageEventInput, type VariableSet, type VariableSetVariableMetadata, type ViewerHeartbeatRequest, type ViewerHeartbeatResponse, type ViewerHolder, type Workspace, type WorkspaceCaptureDegradedReason, type WorkspaceCaptureFile, type WorkspaceCaptureManifest, type WorkspaceCaptureRepo, type WorkspaceCaptureSignedUrl, type WorkspaceCaptureStats, type WorkspaceControlEvent, type WorkspaceControlEventPage, type WorkspaceControlStreamTransport, type WorkspaceEnvironment, type WorkspaceEnvironmentVariableMetadata, type WorkspaceInferenceControlResponse, type WorkspaceMember, type WorkspaceMemorySearchMode, type WorkspaceMemorySearchRequest, type WorkspaceMemorySearchResponse, type WorkspaceMemorySearchResult, type WorkspaceModelCatalogModel, type WorkspaceModelCatalogResponse, type WorkspaceRegisteredPack, type WorkspaceRevisionCapturedPayload, type WorkspaceRevisionDegradedPayload, type WorkspaceSettings, type WorkspaceTranscriptionPolicy, type WorkspaceTranscriptionTarget, applyUrlRotation, authorizeTranscriptionAdapter, createTranscriptionSessionRequest, desktopSocketUrl, formatSseEvent, isRetryableStreamError, nextDesktopState, parseSseStream, proxySessionEventStream, resolveWorkspaceTranscriptionPolicy, resumeSequenceFromRequest, sessionEventsToSseResponse, sessionEventsToSseStream, streamSessionEvents, streamWorkspaceControlEvents, terminalSocketUrl, ttydAuthFrame, ttydInputFrame, ttydResizeFrame };
|