@opengeni/sdk 0.25.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 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
@@ -358,6 +358,15 @@ type SessionToolPolicy = {
358
358
  mode: "workspace_default" | "explicit" | "inherited" | "legacy";
359
359
  inheritedFromSessionId: string | null;
360
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
+ };
361
370
  type SessionEffectiveToolPolicy = {
362
371
  mode: SessionToolPolicy["mode"];
363
372
  inheritedFromSessionId: string | null;
@@ -529,6 +538,7 @@ type Session = {
529
538
  resources: ResourceRef[];
530
539
  tools: ToolRef[];
531
540
  toolPolicy?: SessionToolPolicy | undefined;
541
+ toolPolicyVersion?: number | undefined;
532
542
  effectiveToolPolicy?: SessionEffectiveToolPolicy | undefined;
533
543
  metadata: Record<string, unknown>;
534
544
  /** Frozen creator fact; later turns carry their own independent initiator. */
@@ -704,7 +714,7 @@ type SessionHumanInputRequest = {
704
714
  createdAt: string;
705
715
  updatedAt: string;
706
716
  };
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"];
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"];
708
718
  type KnownSessionEventType = (typeof SESSION_EVENT_TYPES)[number];
709
719
  /**
710
720
  * Event types the SDK knows about today, kept open so a newer OpenGeni server
@@ -1740,6 +1750,8 @@ type ClientAuthConfig = {
1740
1750
  };
1741
1751
  declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-turn-instructions-v1";
1742
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";
1743
1755
  /**
1744
1756
  * Public, unauthenticated-by-default client bootstrap config returned by
1745
1757
  * `GET /v1/config/client`: which models + reasoning efforts are exposed, the
@@ -2015,6 +2027,8 @@ type NewSessionDraft = {
2015
2027
  text: string;
2016
2028
  resources: ResourceRef[];
2017
2029
  tools: ToolRef[];
2030
+ /** False inherits the workspace-default MCP policy; true preserves an explicit array. */
2031
+ toolsProvided: boolean;
2018
2032
  model: string;
2019
2033
  reasoningEffort: ReasoningEffort;
2020
2034
  options: NewSessionDraftOptions;
@@ -2409,6 +2423,16 @@ type UploadFileInput = {
2409
2423
  type DocumentStatus = "queued" | "indexing" | "ready" | "failed";
2410
2424
  type KnowledgeSourceKind = "manual_upload" | "meeting_transcript" | "repository" | "email" | "chat" | "document" | "web" | "other";
2411
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
+ };
2412
2436
  type DocumentBase = {
2413
2437
  id: string;
2414
2438
  workspaceId: string;
@@ -2436,6 +2460,13 @@ type Document = {
2436
2460
  sourceUpdatedAt: string | null;
2437
2461
  sourceVersion: string | null;
2438
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;
2439
2470
  createdAt: string;
2440
2471
  updatedAt: string;
2441
2472
  };
@@ -2479,6 +2510,19 @@ type AddDocumentRequest = {
2479
2510
  sourceUpdatedAt?: string | undefined;
2480
2511
  sourceVersion?: string | undefined;
2481
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;
2482
2526
  };
2483
2527
  type DocumentSearchRequest = {
2484
2528
  query: string;
@@ -2830,10 +2874,14 @@ type GitHubRepository = {
2830
2874
  accountType: string | null;
2831
2875
  };
2832
2876
  type GitHubRepositoryScope = "all" | "selected";
2877
+ type GitHubBindingStatus = "disabled" | "unbound" | "bound";
2878
+ type GitHubInstallationLifecycle = "active" | "suspended" | "deleted" | "unverified";
2833
2879
  type GitHubInstallationBinding = {
2834
2880
  installationId: number;
2881
+ githubAccountId: number | null;
2835
2882
  accountLogin: string | null;
2836
2883
  accountType: string | null;
2884
+ lifecycle: GitHubInstallationLifecycle;
2837
2885
  repositoryScope: GitHubRepositoryScope;
2838
2886
  repositoryCount: number;
2839
2887
  createdAt: string;
@@ -2841,12 +2889,14 @@ type GitHubInstallationBinding = {
2841
2889
  };
2842
2890
  type GitHubAppInfo = {
2843
2891
  configured: boolean;
2892
+ /** Truthful workspace binding state; server App credentials alone are not a binding. */
2893
+ status: GitHubBindingStatus;
2844
2894
  appId: string | null;
2845
2895
  clientId: string | null;
2846
2896
  appSlug: string | null;
2847
- /** Reserved compatibility field; null while new installation binding is disabled. */
2897
+ /** Fresh GitHub-controlled installation/configuration consent entry point. */
2848
2898
  installUrl: string | null;
2849
- /** Reserved compatibility field; null while new installation binding is disabled. */
2899
+ /** Compatibility alias for installUrl; no repository-admin chooser is exposed. */
2850
2900
  linkUrl: string | null;
2851
2901
  /** Installation bindings owned independently by this workspace. */
2852
2902
  installations: GitHubInstallationBinding[];
@@ -3223,6 +3273,8 @@ declare class OpenGeniClient {
3223
3273
  saveNewSessionDraft(workspaceId: string, request: SaveNewSessionDraftRequest): Promise<NewSessionDraft>;
3224
3274
  getSession(workspaceId: string, sessionId: string): Promise<Session>;
3225
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>;
3226
3278
  /**
3227
3279
  * Replace one attached MCP server's approval policy. The change is captured
3228
3280
  * by the next claimed attempt; already-claimed work keeps its immutable
@@ -3623,6 +3675,18 @@ declare class OpenGeniClient {
3623
3675
  /** Index an uploaded file into the base. The file must be `ready`. */
3624
3676
  addDocument(workspaceId: string, baseId: string, request: AddDocumentRequest): Promise<Document>;
3625
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>;
3626
3690
  /** Retry indexing for a failed document. */
3627
3691
  reindexDocument(workspaceId: string, baseId: string, documentId: string): Promise<Document>;
3628
3692
  /**
@@ -3668,12 +3732,9 @@ declare class OpenGeniClient {
3668
3732
  startConnectionOAuth(workspaceId: string, request: OAuthStartRequest): Promise<OAuthStartResponse>;
3669
3733
  /** Public, immutably-cached URL for a catalog item's logo, or null when the item has none. */
3670
3734
  catalogAssetUrl(logoAssetPath: string | null): string | null;
3671
- /** GitHub App configuration status; install/link URLs are null while new binding is disabled. */
3735
+ /** GitHub App server configuration plus truthful workspace binding status. */
3672
3736
  getGitHubApp(workspaceId: string): Promise<GitHubAppInfo>;
3673
- /**
3674
- * Compatibility URL for previously issued state. New installation binding is
3675
- * disabled, so the endpoint validates state and terminates with HTTP 410.
3676
- */
3737
+ /** Build the GitHub owner-consent entry URL for fresh workspace-bound state. */
3677
3738
  githubConnectUrl(workspaceId: string, state: string): string;
3678
3739
  listGitHubRepositories(workspaceId: string): Promise<GitHubRepositoriesResponse>;
3679
3740
  /** Re-sync the installation's repository list from GitHub. */
@@ -3758,8 +3819,19 @@ declare class OpenGeniClient {
3758
3819
  declare class OpenGeniApiError extends Error {
3759
3820
  readonly status: number;
3760
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;
3761
3826
  readonly body: string;
3762
- 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
+ });
3763
3835
  }
3764
3836
  /** A short-lived session-list snapshot cursor can no longer be continued. */
3765
3837
  declare class OpenGeniSessionListCursorError extends OpenGeniApiError {
@@ -3979,4 +4051,4 @@ declare function ttydInputFrame(data: string): string;
3979
4051
  /** Build a client→server RESIZE frame: "1" + JSON.stringify({ columns, rows }). */
3980
4052
  declare function ttydResizeFrame(columns: number, rows: number): string;
3981
4053
 
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 };
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 };