@opengeni/sdk 0.23.0 → 0.25.5
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 +52 -0
- package/dist/index.d.ts +206 -14
- package/dist/index.js +286 -75
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +302 -81
- package/src/errors.ts +89 -12
- package/src/index.ts +18 -0
- package/src/types.ts +236 -6
package/README.md
CHANGED
|
@@ -30,6 +30,34 @@ for await (const event of client.streamEvents(workspaceId, session.id)) {
|
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
## Error handling
|
|
34
|
+
|
|
35
|
+
Non-2xx responses throw `OpenGeniApiError` with stable transport metadata:
|
|
36
|
+
`status`, optional `code`, `retryable`, optional `correlationId`,
|
|
37
|
+
`outcomeUnknown`, and a bounded structured `body`. The SDK sends a fresh bounded
|
|
38
|
+
correlation ID on each API request and includes the safe returned reference in
|
|
39
|
+
the display message.
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { OpenGeniApiError } from "@opengeni/sdk";
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
await client.sendMessage(workspaceId, sessionId, input);
|
|
46
|
+
} catch (error) {
|
|
47
|
+
if (error instanceof OpenGeniApiError && error.outcomeUnknown) {
|
|
48
|
+
// Reconcile durable state, then retry only with input.clientEventId unchanged.
|
|
49
|
+
}
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Error bodies are read only when they are JSON and no larger than 16 KiB; raw
|
|
55
|
+
gateway HTML/plain text and oversized bodies are discarded. A controlled typed
|
|
56
|
+
API rejection has `outcomeUnknown: false`. A raw `502`/`503`/`504` or an
|
|
57
|
+
unexpected successful non-JSON response to a mutation has `outcomeUnknown:
|
|
58
|
+
true` because the mutation might already have been accepted. Never turn that
|
|
59
|
+
condition into a new operation by changing its idempotency key.
|
|
60
|
+
|
|
33
61
|
## Streaming guarantees
|
|
34
62
|
|
|
35
63
|
`client.streamEvents(...)` (and the underlying `streamSessionEvents`) delivers
|
|
@@ -151,6 +179,30 @@ await client.resumeSession(workspaceId, sessionId, {
|
|
|
151
179
|
await client.sendApprovalDecision(workspaceId, sessionId, { approvalId, decision: "approve" });
|
|
152
180
|
```
|
|
153
181
|
|
|
182
|
+
## Session tool policy and native web search
|
|
183
|
+
|
|
184
|
+
Omitting `tools` when creating a top-level session selects the current
|
|
185
|
+
workspace-default capability policy. Supported Responses providers can then
|
|
186
|
+
attach their native bounded web-search tool without requiring a sandbox.
|
|
187
|
+
Passing `tools`, including `[]`, is an intentional fixed narrowing.
|
|
188
|
+
|
|
189
|
+
Existing explicit sessions are not widened when a new default capability is
|
|
190
|
+
introduced. Opt one in explicitly with the current optimistic-concurrency
|
|
191
|
+
version; the audited change takes effect on its next attempt:
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
const session = await client.getSession(workspaceId, sessionId);
|
|
195
|
+
const updated = await client.updateSessionToolPolicy(workspaceId, sessionId, {
|
|
196
|
+
mode: "workspace_default",
|
|
197
|
+
expectedVersion: session.toolPolicyVersion ?? 1,
|
|
198
|
+
});
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
To keep a fixed MCP allow-list instead, use the backward-compatible explicit
|
|
202
|
+
shape `{ tools, expectedVersion }`. `tool_search` discovers deferred MCP
|
|
203
|
+
schemas; it is not public web search. Unsupported providers do not receive a
|
|
204
|
+
cross-provider, MCP, or sandbox fallback.
|
|
205
|
+
|
|
154
206
|
## Goals
|
|
155
207
|
|
|
156
208
|
```ts
|
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
|
};
|
|
@@ -352,6 +358,15 @@ type SessionToolPolicy = {
|
|
|
352
358
|
mode: "workspace_default" | "explicit" | "inherited" | "legacy";
|
|
353
359
|
inheritedFromSessionId: string | null;
|
|
354
360
|
};
|
|
361
|
+
type UpdateSessionToolPolicyRequest = {
|
|
362
|
+
mode: "workspace_default";
|
|
363
|
+
expectedVersion: number;
|
|
364
|
+
} | {
|
|
365
|
+
/** Omitted for compatibility with the original explicit-only API. */
|
|
366
|
+
mode?: "explicit" | undefined;
|
|
367
|
+
tools: ToolRef[];
|
|
368
|
+
expectedVersion: number;
|
|
369
|
+
};
|
|
355
370
|
type SessionEffectiveToolPolicy = {
|
|
356
371
|
mode: SessionToolPolicy["mode"];
|
|
357
372
|
inheritedFromSessionId: string | null;
|
|
@@ -523,6 +538,7 @@ type Session = {
|
|
|
523
538
|
resources: ResourceRef[];
|
|
524
539
|
tools: ToolRef[];
|
|
525
540
|
toolPolicy?: SessionToolPolicy | undefined;
|
|
541
|
+
toolPolicyVersion?: number | undefined;
|
|
526
542
|
effectiveToolPolicy?: SessionEffectiveToolPolicy | undefined;
|
|
527
543
|
metadata: Record<string, unknown>;
|
|
528
544
|
/** Frozen creator fact; later turns carry their own independent initiator. */
|
|
@@ -542,6 +558,13 @@ type Session = {
|
|
|
542
558
|
firstPartyMcpPermissions: string[] | null;
|
|
543
559
|
mcpServers: SessionMcpServerMetadata[];
|
|
544
560
|
parentSessionId: string | null;
|
|
561
|
+
/** Immutable server-authored nested-agent lineage and policy snapshot. */
|
|
562
|
+
rootSessionId: string;
|
|
563
|
+
nestedAgentDepth: number;
|
|
564
|
+
maxNestedAgentDepthOverride: number | null;
|
|
565
|
+
effectiveMaxNestedAgentDepth: number;
|
|
566
|
+
nestedAgentDepthPolicySource: "session" | "workspace" | "deployment" | "default";
|
|
567
|
+
nestedAgentDepthPolicySessionId: string | null;
|
|
545
568
|
createIdempotencyKey: string | null;
|
|
546
569
|
temporalWorkflowId: string | null;
|
|
547
570
|
activeTurnId: string | null;
|
|
@@ -691,7 +714,7 @@ type SessionHumanInputRequest = {
|
|
|
691
714
|
createdAt: string;
|
|
692
715
|
updatedAt: string;
|
|
693
716
|
};
|
|
694
|
-
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.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"];
|
|
717
|
+
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", "session.tool_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"];
|
|
695
718
|
type KnownSessionEventType = (typeof SESSION_EVENT_TYPES)[number];
|
|
696
719
|
/**
|
|
697
720
|
* Event types the SDK knows about today, kept open so a newer OpenGeni server
|
|
@@ -848,6 +871,62 @@ type AgentToolCallOutputPayload = {
|
|
|
848
871
|
type SessionStatusChangedPayload = {
|
|
849
872
|
status: SessionStatus;
|
|
850
873
|
};
|
|
874
|
+
type CodexFleetConfidence = "unknown" | "low" | "medium" | "high";
|
|
875
|
+
type CodexFleetCacheState = "unknown" | "healthy" | "collapsed";
|
|
876
|
+
type CodexFleetShadowComparison = "match" | "different_candidate" | "different_outcome" | "not_comparable_truncated";
|
|
877
|
+
type CodexFleetDecisionScore = {
|
|
878
|
+
candidateKey: string;
|
|
879
|
+
eligible: boolean;
|
|
880
|
+
rejectionReason: "allocator_disabled" | "unavailable" | "cooling" | "quota_ceiling" | "overlay_isolation" | null;
|
|
881
|
+
quotaPressure: number;
|
|
882
|
+
leasePressure: number;
|
|
883
|
+
observedBurnPressure: number;
|
|
884
|
+
inferredBurnPressure: number;
|
|
885
|
+
runwayPressure: number;
|
|
886
|
+
uncertaintyPressure: number;
|
|
887
|
+
cacheAffinityBenefit: number;
|
|
888
|
+
cacheState: CodexFleetCacheState;
|
|
889
|
+
overlayPreferenceBenefit: number;
|
|
890
|
+
total: number;
|
|
891
|
+
confidence: CodexFleetConfidence;
|
|
892
|
+
};
|
|
893
|
+
type CodexFleetDecisionEventPayload = {
|
|
894
|
+
schemaVersion: 1;
|
|
895
|
+
mode: "shadow";
|
|
896
|
+
actual: {
|
|
897
|
+
outcome: "selected" | "waiting" | "none";
|
|
898
|
+
candidateKey: string | null;
|
|
899
|
+
reason: "lease_reused" | "pin" | "rotation" | "active" | "all_capped" | "none";
|
|
900
|
+
};
|
|
901
|
+
comparison: CodexFleetShadowComparison;
|
|
902
|
+
replay: {
|
|
903
|
+
schemaVersion: 1;
|
|
904
|
+
policyVersion: "adaptive-shadow-v1";
|
|
905
|
+
mode: "shadow";
|
|
906
|
+
input: {
|
|
907
|
+
candidates: Array<{
|
|
908
|
+
key: string;
|
|
909
|
+
}>;
|
|
910
|
+
} & Record<string, unknown>;
|
|
911
|
+
truncatedCandidateCount: number;
|
|
912
|
+
inputFingerprint: string;
|
|
913
|
+
decisionFingerprint: string;
|
|
914
|
+
decision: {
|
|
915
|
+
outcome: "selected" | "paced" | "none";
|
|
916
|
+
selectedCandidateKey: string | null;
|
|
917
|
+
reason: "fenced_in_flight" | "fenced_candidate_missing" | "admission_paced" | "no_eligible_candidate" | "overlay_isolated_empty" | "best_score" | "affinity_best" | "hysteresis_hold";
|
|
918
|
+
admission: {
|
|
919
|
+
outcome: "admit" | "pace";
|
|
920
|
+
reason: "fenced_in_flight" | "pacing_disabled" | "capacity_unknown" | "capacity_available" | "work_conserving_borrow" | "manager_priority" | "standard_starvation_bound" | "capacity_saturated" | "emergency_fuse";
|
|
921
|
+
borrowedIdleCapacity: boolean;
|
|
922
|
+
};
|
|
923
|
+
borrowedOverlayCapacity: boolean;
|
|
924
|
+
strandedEligibleCount: number;
|
|
925
|
+
confidence: CodexFleetConfidence;
|
|
926
|
+
scores: CodexFleetDecisionScore[];
|
|
927
|
+
};
|
|
928
|
+
} & Record<string, unknown>;
|
|
929
|
+
};
|
|
851
930
|
type RecordingMode = "manual" | "on-turn" | "on-verify";
|
|
852
931
|
type RecordingCodec = "h264-mp4" | "vp9-webm";
|
|
853
932
|
type RecordingContentType = "video/mp4" | "video/webm";
|
|
@@ -923,7 +1002,7 @@ type TerminalPtyOutputDeltaPayload = {
|
|
|
923
1002
|
type TerminalPtyExitedPayload = {
|
|
924
1003
|
ptyId: string;
|
|
925
1004
|
exitCode: number | null;
|
|
926
|
-
reason: "exit" | "killed" | "owner_gone" | "timeout";
|
|
1005
|
+
reason: "exit" | "killed" | "owner_gone" | "timeout" | "lost";
|
|
927
1006
|
};
|
|
928
1007
|
type FsNodeType = "file" | "dir" | "symlink" | "other";
|
|
929
1008
|
type FsTreeNode = {
|
|
@@ -1213,8 +1292,8 @@ type TerminalExecRequest = {
|
|
|
1213
1292
|
type TerminalExecResponse = {
|
|
1214
1293
|
stdout: string;
|
|
1215
1294
|
stderr: string;
|
|
1216
|
-
exitCode: number
|
|
1217
|
-
running:
|
|
1295
|
+
exitCode: number;
|
|
1296
|
+
running: false;
|
|
1218
1297
|
wallTimeSeconds: number;
|
|
1219
1298
|
};
|
|
1220
1299
|
type PtyOpenRequest = {
|
|
@@ -1287,6 +1366,7 @@ type ScheduledTaskAgentConfig = {
|
|
|
1287
1366
|
reasoningEffort?: ReasoningEffort | undefined;
|
|
1288
1367
|
sandboxBackend?: SandboxBackend | undefined;
|
|
1289
1368
|
goal?: GoalSpec | undefined;
|
|
1369
|
+
maxNestedAgentDepth?: number | undefined;
|
|
1290
1370
|
};
|
|
1291
1371
|
type ScheduledTask = {
|
|
1292
1372
|
id: string;
|
|
@@ -1329,6 +1409,8 @@ type CreateSessionRequest = {
|
|
|
1329
1409
|
goal?: GoalSpec | undefined;
|
|
1330
1410
|
clientEventId?: string | undefined;
|
|
1331
1411
|
idempotencyKey?: string | undefined;
|
|
1412
|
+
expectedNewSessionDraftRevision?: number | undefined;
|
|
1413
|
+
maxNestedAgentDepth?: number | undefined;
|
|
1332
1414
|
firstPartyMcpPermissions?: string[] | undefined;
|
|
1333
1415
|
mcpServers?: SessionMcpServerInput[] | undefined;
|
|
1334
1416
|
sandbox?: "shared" | "new" | {
|
|
@@ -1668,6 +1750,8 @@ type ClientAuthConfig = {
|
|
|
1668
1750
|
};
|
|
1669
1751
|
declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-turn-instructions-v1";
|
|
1670
1752
|
declare const OPENGENI_API_CONTRACT_HEADER: "x-opengeni-api-contract";
|
|
1753
|
+
/** Bounded request/response identifier shared by browser, ingress, and API diagnostics. */
|
|
1754
|
+
declare const OPENGENI_CORRELATION_HEADER: "x-opengeni-correlation-id";
|
|
1671
1755
|
/**
|
|
1672
1756
|
* Public, unauthenticated-by-default client bootstrap config returned by
|
|
1673
1757
|
* `GET /v1/config/client`: which models + reasoning efforts are exposed, the
|
|
@@ -1751,11 +1835,13 @@ type Workspace = {
|
|
|
1751
1835
|
type WorkspaceSettings = {
|
|
1752
1836
|
memoryEnabled?: boolean | undefined;
|
|
1753
1837
|
transcription?: WorkspaceTranscriptionPolicy | undefined;
|
|
1838
|
+
maxNestedAgentDepth?: number | null | undefined;
|
|
1754
1839
|
[key: string]: unknown;
|
|
1755
1840
|
};
|
|
1756
1841
|
type UpdateWorkspaceSettingsRequest = {
|
|
1757
1842
|
memoryEnabled?: boolean | undefined;
|
|
1758
1843
|
transcription?: WorkspaceTranscriptionPolicy | undefined;
|
|
1844
|
+
maxNestedAgentDepth?: number | null | undefined;
|
|
1759
1845
|
[key: string]: unknown;
|
|
1760
1846
|
};
|
|
1761
1847
|
type SetWorkspaceDefaultRigRequest = {
|
|
@@ -1821,6 +1907,16 @@ type UpdateWorkspaceMemberRequest = {
|
|
|
1821
1907
|
};
|
|
1822
1908
|
type SessionGoalStatus = "active" | "paused" | "completed";
|
|
1823
1909
|
type SessionGoalCreatedBy = "api" | "agent" | "scheduled_task";
|
|
1910
|
+
type SessionGoalContinuationState = "inactive" | "scheduled" | "running" | "blocked" | "invariant_broken";
|
|
1911
|
+
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";
|
|
1912
|
+
type SessionGoalContinuation = {
|
|
1913
|
+
state: SessionGoalContinuationState;
|
|
1914
|
+
reason: SessionGoalContinuationReason;
|
|
1915
|
+
wakeRevision: number;
|
|
1916
|
+
observedRevision: number;
|
|
1917
|
+
nextAttemptAt: string | null;
|
|
1918
|
+
lastError: string | null;
|
|
1919
|
+
};
|
|
1824
1920
|
type SessionGoal = {
|
|
1825
1921
|
id: string;
|
|
1826
1922
|
accountId: string;
|
|
@@ -1838,6 +1934,8 @@ type SessionGoal = {
|
|
|
1838
1934
|
noProgressStreak: number;
|
|
1839
1935
|
maxAutoContinuations: number | null;
|
|
1840
1936
|
metadata: Record<string, unknown>;
|
|
1937
|
+
/** Optional for source compatibility; the API always supplies this projection. */
|
|
1938
|
+
continuation?: SessionGoalContinuation | undefined;
|
|
1841
1939
|
createdAt: string;
|
|
1842
1940
|
updatedAt: string;
|
|
1843
1941
|
};
|
|
@@ -1915,6 +2013,27 @@ type ComposerDraft = {
|
|
|
1915
2013
|
sourceTurnVersion: number | null;
|
|
1916
2014
|
updatedAt: string | null;
|
|
1917
2015
|
};
|
|
2016
|
+
type NewSessionDraftOptions = {
|
|
2017
|
+
sandboxBackend?: SandboxBackend | undefined;
|
|
2018
|
+
targetSandboxId?: string | undefined;
|
|
2019
|
+
workingDir?: string | undefined;
|
|
2020
|
+
variableSetId?: string | undefined;
|
|
2021
|
+
rigId?: string | undefined;
|
|
2022
|
+
goal?: GoalSpec | undefined;
|
|
2023
|
+
firstPartyMcpPermissions?: Permission[] | undefined;
|
|
2024
|
+
};
|
|
2025
|
+
type NewSessionDraft = {
|
|
2026
|
+
revision: number;
|
|
2027
|
+
text: string;
|
|
2028
|
+
resources: ResourceRef[];
|
|
2029
|
+
tools: ToolRef[];
|
|
2030
|
+
/** False inherits the workspace-default MCP policy; true preserves an explicit array. */
|
|
2031
|
+
toolsProvided: boolean;
|
|
2032
|
+
model: string;
|
|
2033
|
+
reasoningEffort: ReasoningEffort;
|
|
2034
|
+
options: NewSessionDraftOptions;
|
|
2035
|
+
updatedAt: string | null;
|
|
2036
|
+
};
|
|
1918
2037
|
type SessionQueueSnapshot = {
|
|
1919
2038
|
version: number;
|
|
1920
2039
|
effectiveControl: EffectiveSessionControl;
|
|
@@ -2012,6 +2131,9 @@ type DeleteSessionQueueItemRequest = {
|
|
|
2012
2131
|
type SaveComposerDraftRequest = Omit<ComposerDraft, "revision" | "sourceTurnId" | "sourceTurnVersion" | "updatedAt"> & {
|
|
2013
2132
|
expectedRevision: number;
|
|
2014
2133
|
};
|
|
2134
|
+
type SaveNewSessionDraftRequest = Omit<NewSessionDraft, "revision" | "updatedAt"> & {
|
|
2135
|
+
expectedRevision: number;
|
|
2136
|
+
};
|
|
2015
2137
|
/** Input shape for agent config on create/update (server applies defaults). */
|
|
2016
2138
|
type ScheduledTaskAgentConfigInput = {
|
|
2017
2139
|
prompt: string;
|
|
@@ -2022,6 +2144,7 @@ type ScheduledTaskAgentConfigInput = {
|
|
|
2022
2144
|
reasoningEffort?: ReasoningEffort | undefined;
|
|
2023
2145
|
sandboxBackend?: SandboxBackend | undefined;
|
|
2024
2146
|
goal?: GoalSpec | undefined;
|
|
2147
|
+
maxNestedAgentDepth?: number | undefined;
|
|
2025
2148
|
};
|
|
2026
2149
|
type CreateScheduledTaskRequest = {
|
|
2027
2150
|
name: string;
|
|
@@ -2300,6 +2423,16 @@ type UploadFileInput = {
|
|
|
2300
2423
|
type DocumentStatus = "queued" | "indexing" | "ready" | "failed";
|
|
2301
2424
|
type KnowledgeSourceKind = "manual_upload" | "meeting_transcript" | "repository" | "email" | "chat" | "document" | "web" | "other";
|
|
2302
2425
|
type DocumentSearchMode = "hybrid" | "vector" | "keyword";
|
|
2426
|
+
type DocumentVisibility = "workspace" | "private";
|
|
2427
|
+
type DocumentCurationStatus = "none" | "pending" | "suggested" | "auto_filed" | "failed";
|
|
2428
|
+
type DocumentCuration = {
|
|
2429
|
+
suggestedBaseId: string | null;
|
|
2430
|
+
suggestedBaseName: string | null;
|
|
2431
|
+
confidence: number;
|
|
2432
|
+
reason: string | null;
|
|
2433
|
+
originalTitle: string | null;
|
|
2434
|
+
model: string | null;
|
|
2435
|
+
};
|
|
2303
2436
|
type DocumentBase = {
|
|
2304
2437
|
id: string;
|
|
2305
2438
|
workspaceId: string;
|
|
@@ -2327,6 +2460,13 @@ type Document = {
|
|
|
2327
2460
|
sourceUpdatedAt: string | null;
|
|
2328
2461
|
sourceVersion: string | null;
|
|
2329
2462
|
aclTags: string[];
|
|
2463
|
+
visibility: DocumentVisibility;
|
|
2464
|
+
createdBy: string | null;
|
|
2465
|
+
agentAccess: boolean;
|
|
2466
|
+
summary: string | null;
|
|
2467
|
+
topics: string[];
|
|
2468
|
+
curationStatus: DocumentCurationStatus;
|
|
2469
|
+
curation: DocumentCuration | null;
|
|
2330
2470
|
createdAt: string;
|
|
2331
2471
|
updatedAt: string;
|
|
2332
2472
|
};
|
|
@@ -2370,6 +2510,19 @@ type AddDocumentRequest = {
|
|
|
2370
2510
|
sourceUpdatedAt?: string | undefined;
|
|
2371
2511
|
sourceVersion?: string | undefined;
|
|
2372
2512
|
aclTags?: string[] | undefined;
|
|
2513
|
+
visibility?: DocumentVisibility | undefined;
|
|
2514
|
+
agentAccess?: boolean | undefined;
|
|
2515
|
+
};
|
|
2516
|
+
type CreateKnowledgeDropRequest = {
|
|
2517
|
+
text?: string | undefined;
|
|
2518
|
+
fileId?: string | undefined;
|
|
2519
|
+
filename?: string | undefined;
|
|
2520
|
+
title?: string | undefined;
|
|
2521
|
+
visibility?: DocumentVisibility | undefined;
|
|
2522
|
+
agentAccess?: boolean | undefined;
|
|
2523
|
+
};
|
|
2524
|
+
type MoveDocumentRequest = {
|
|
2525
|
+
targetBaseId?: string | undefined;
|
|
2373
2526
|
};
|
|
2374
2527
|
type DocumentSearchRequest = {
|
|
2375
2528
|
query: string;
|
|
@@ -2721,10 +2874,14 @@ type GitHubRepository = {
|
|
|
2721
2874
|
accountType: string | null;
|
|
2722
2875
|
};
|
|
2723
2876
|
type GitHubRepositoryScope = "all" | "selected";
|
|
2877
|
+
type GitHubBindingStatus = "disabled" | "unbound" | "bound";
|
|
2878
|
+
type GitHubInstallationLifecycle = "active" | "suspended" | "deleted" | "unverified";
|
|
2724
2879
|
type GitHubInstallationBinding = {
|
|
2725
2880
|
installationId: number;
|
|
2881
|
+
githubAccountId: number | null;
|
|
2726
2882
|
accountLogin: string | null;
|
|
2727
2883
|
accountType: string | null;
|
|
2884
|
+
lifecycle: GitHubInstallationLifecycle;
|
|
2728
2885
|
repositoryScope: GitHubRepositoryScope;
|
|
2729
2886
|
repositoryCount: number;
|
|
2730
2887
|
createdAt: string;
|
|
@@ -2732,12 +2889,14 @@ type GitHubInstallationBinding = {
|
|
|
2732
2889
|
};
|
|
2733
2890
|
type GitHubAppInfo = {
|
|
2734
2891
|
configured: boolean;
|
|
2892
|
+
/** Truthful workspace binding state; server App credentials alone are not a binding. */
|
|
2893
|
+
status: GitHubBindingStatus;
|
|
2735
2894
|
appId: string | null;
|
|
2736
2895
|
clientId: string | null;
|
|
2737
2896
|
appSlug: string | null;
|
|
2738
|
-
/**
|
|
2897
|
+
/** Fresh GitHub-controlled installation/configuration consent entry point. */
|
|
2739
2898
|
installUrl: string | null;
|
|
2740
|
-
/**
|
|
2899
|
+
/** Compatibility alias for installUrl; no repository-admin chooser is exposed. */
|
|
2741
2900
|
linkUrl: string | null;
|
|
2742
2901
|
/** Installation bindings owned independently by this workspace. */
|
|
2743
2902
|
installations: GitHubInstallationBinding[];
|
|
@@ -2875,6 +3034,9 @@ type MachineView = {
|
|
|
2875
3034
|
state: MachineState;
|
|
2876
3035
|
active: boolean;
|
|
2877
3036
|
isSessionGroup: boolean;
|
|
3037
|
+
workspaceGeneration: number | null;
|
|
3038
|
+
archiveGeneration: number | null;
|
|
3039
|
+
archiveComplete: boolean;
|
|
2878
3040
|
os: string;
|
|
2879
3041
|
arch: string;
|
|
2880
3042
|
hasDisplay: boolean;
|
|
@@ -2913,7 +3075,7 @@ type SwapActiveSandboxResponse = {
|
|
|
2913
3075
|
activeSandboxId: string | null;
|
|
2914
3076
|
activeEpoch: number;
|
|
2915
3077
|
reason?: string;
|
|
2916
|
-
code?: "stale_pointer" | "offline_enrollment" | "unsupported_backend_context" | "transient_establishment" | "concurrent_swap";
|
|
3078
|
+
code?: "stale_pointer" | "offline_enrollment" | "unsupported_backend_context" | "transient_establishment" | "concurrent_swap" | "recovery_in_progress" | "recovery_degraded" | "recovery_unrecoverable";
|
|
2917
3079
|
};
|
|
2918
3080
|
/** Mirror of `@opengeni/contracts` EnrollmentOs. */
|
|
2919
3081
|
type EnrollmentOs = "linux" | "macos" | "windows";
|
|
@@ -3107,8 +3269,12 @@ declare class OpenGeniClient {
|
|
|
3107
3269
|
private readonly fetchImpl;
|
|
3108
3270
|
constructor(options: OpenGeniClientOptions);
|
|
3109
3271
|
createSession(workspaceId: string, request: CreateSessionRequest): Promise<CreateSessionResponse>;
|
|
3272
|
+
getNewSessionDraft(workspaceId: string): Promise<NewSessionDraft>;
|
|
3273
|
+
saveNewSessionDraft(workspaceId: string, request: SaveNewSessionDraftRequest): Promise<NewSessionDraft>;
|
|
3110
3274
|
getSession(workspaceId: string, sessionId: string): Promise<Session>;
|
|
3111
3275
|
updateSession(workspaceId: string, sessionId: string, request: UpdateSessionRequest): Promise<Session>;
|
|
3276
|
+
/** Replace the durable tool policy or explicitly adopt workspace defaults. */
|
|
3277
|
+
updateSessionToolPolicy(workspaceId: string, sessionId: string, request: UpdateSessionToolPolicyRequest): Promise<Session>;
|
|
3112
3278
|
/**
|
|
3113
3279
|
* Replace one attached MCP server's approval policy. The change is captured
|
|
3114
3280
|
* by the next claimed attempt; already-claimed work keeps its immutable
|
|
@@ -3126,6 +3292,8 @@ declare class OpenGeniClient {
|
|
|
3126
3292
|
parentSessionId?: string | null;
|
|
3127
3293
|
cursor?: string;
|
|
3128
3294
|
search?: string;
|
|
3295
|
+
/** Return only the complete personal pinned projection. */
|
|
3296
|
+
pinsOnly?: boolean;
|
|
3129
3297
|
}): Promise<SessionListResponse>;
|
|
3130
3298
|
/** Set this authenticated member's personal workspace pin for a session. */
|
|
3131
3299
|
updateSessionPin(workspaceId: string, sessionId: string, request: UpdateSessionPinRequest): Promise<Session>;
|
|
@@ -3507,6 +3675,18 @@ declare class OpenGeniClient {
|
|
|
3507
3675
|
/** Index an uploaded file into the base. The file must be `ready`. */
|
|
3508
3676
|
addDocument(workspaceId: string, baseId: string, request: AddDocumentRequest): Promise<Document>;
|
|
3509
3677
|
listDocuments(workspaceId: string, baseId: string): Promise<Document[]>;
|
|
3678
|
+
/**
|
|
3679
|
+
* Drop raw text or an already-uploaded file into the workspace's Default
|
|
3680
|
+
* base. When curation is enabled, it may name, summarize, categorize, and
|
|
3681
|
+
* (confidence permitting) file the document into the best-matching base;
|
|
3682
|
+
* provider=none leaves caller metadata and Default placement unchanged.
|
|
3683
|
+
*/
|
|
3684
|
+
createKnowledgeDrop(workspaceId: string, request: CreateKnowledgeDropRequest): Promise<Document>;
|
|
3685
|
+
/**
|
|
3686
|
+
* Move a document (and its indexed chunks) to another base. With no
|
|
3687
|
+
* targetBaseId, applies the document's stored curation suggestion.
|
|
3688
|
+
*/
|
|
3689
|
+
moveDocument(workspaceId: string, documentId: string, request?: MoveDocumentRequest): Promise<Document>;
|
|
3510
3690
|
/** Retry indexing for a failed document. */
|
|
3511
3691
|
reindexDocument(workspaceId: string, baseId: string, documentId: string): Promise<Document>;
|
|
3512
3692
|
/**
|
|
@@ -3552,12 +3732,9 @@ declare class OpenGeniClient {
|
|
|
3552
3732
|
startConnectionOAuth(workspaceId: string, request: OAuthStartRequest): Promise<OAuthStartResponse>;
|
|
3553
3733
|
/** Public, immutably-cached URL for a catalog item's logo, or null when the item has none. */
|
|
3554
3734
|
catalogAssetUrl(logoAssetPath: string | null): string | null;
|
|
3555
|
-
/** GitHub App configuration
|
|
3735
|
+
/** GitHub App server configuration plus truthful workspace binding status. */
|
|
3556
3736
|
getGitHubApp(workspaceId: string): Promise<GitHubAppInfo>;
|
|
3557
|
-
/**
|
|
3558
|
-
* Compatibility URL for previously issued state. New installation binding is
|
|
3559
|
-
* disabled, so the endpoint validates state and terminates with HTTP 410.
|
|
3560
|
-
*/
|
|
3737
|
+
/** Build the GitHub owner-consent entry URL for fresh workspace-bound state. */
|
|
3561
3738
|
githubConnectUrl(workspaceId: string, state: string): string;
|
|
3562
3739
|
listGitHubRepositories(workspaceId: string): Promise<GitHubRepositoriesResponse>;
|
|
3563
3740
|
/** Re-sync the installation's repository list from GitHub. */
|
|
@@ -3641,8 +3818,23 @@ declare class OpenGeniClient {
|
|
|
3641
3818
|
/** Error for a non-2xx OpenGeni API response. */
|
|
3642
3819
|
declare class OpenGeniApiError extends Error {
|
|
3643
3820
|
readonly status: number;
|
|
3821
|
+
readonly code: string | undefined;
|
|
3822
|
+
readonly retryable: boolean;
|
|
3823
|
+
readonly correlationId: string | undefined;
|
|
3824
|
+
/** True only when an uncontrolled transport failed after a mutation may have been accepted. */
|
|
3825
|
+
readonly outcomeUnknown: boolean;
|
|
3644
3826
|
readonly body: string;
|
|
3645
|
-
constructor(status: number, body: string
|
|
3827
|
+
constructor(status: number, body: string, options?: {
|
|
3828
|
+
code?: string | undefined;
|
|
3829
|
+
retryable?: boolean | undefined;
|
|
3830
|
+
correlationId?: string | undefined;
|
|
3831
|
+
outcomeUnknown?: boolean | undefined;
|
|
3832
|
+
displayMessage?: string | undefined;
|
|
3833
|
+
mutation?: boolean | undefined;
|
|
3834
|
+
});
|
|
3835
|
+
}
|
|
3836
|
+
/** A short-lived session-list snapshot cursor can no longer be continued. */
|
|
3837
|
+
declare class OpenGeniSessionListCursorError extends OpenGeniApiError {
|
|
3646
3838
|
}
|
|
3647
3839
|
/** The browser bundle and API disagree about their state-changing wire contract. */
|
|
3648
3840
|
declare class OpenGeniApiContractMismatchError extends Error {
|
|
@@ -3859,4 +4051,4 @@ declare function ttydInputFrame(data: string): string;
|
|
|
3859
4051
|
/** Build a client→server RESIZE frame: "1" + JSON.stringify({ columns, rows }). */
|
|
3860
4052
|
declare function ttydResizeFrame(columns: number, rows: number): string;
|
|
3861
4053
|
|
|
3862
|
-
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 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 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, 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 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 };
|
|
4054
|
+
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 CreateKnowledgeDropRequest, 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 DocumentCuration, type DocumentCurationStatus, type DocumentSearchMode, type DocumentSearchRequest, type DocumentSearchResponse, type DocumentSearchResult, type DocumentStatus, type DocumentVisibility, 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 GitHubBindingStatus, type GitHubInstallationBinding, type GitHubInstallationLifecycle, 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 MoveDocumentRequest, type MoveSessionQueueItemRequest, type NewSessionDraft, type NewSessionDraftOptions, type OAuthStartRequest, type OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OPENGENI_CORRELATION_HEADER, 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 UpdateSessionToolPolicyRequest, 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 };
|