@opengeni/sdk 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md 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;
@@ -447,6 +456,8 @@ type ConnectionMetadata = {
447
456
  lastUsedAt: string | null;
448
457
  lastError: string | null;
449
458
  version: number;
459
+ verifiedInstallAt?: string | null;
460
+ verifiedInstallVersion?: number | null;
450
461
  metadata: Record<string, unknown>;
451
462
  createdBySubjectId: string | null;
452
463
  updatedBySubjectId: string | null;
@@ -462,6 +473,12 @@ type CreateConnectionRequest = {
462
473
  expiresAt?: string | null | undefined;
463
474
  metadata?: Record<string, unknown> | undefined;
464
475
  };
476
+ type ConnectOpenGeniSlackBotRequest = {
477
+ /** Write-only Slack bot token. It is never returned by the API. */
478
+ token: string;
479
+ /** Existing OpenGeni Slack bot connection to reinstall in place. */
480
+ connectionId?: string | undefined;
481
+ };
465
482
  type UpdateConnectionRequest = {
466
483
  providerDomain?: string | undefined;
467
484
  subjectId?: string | null | undefined;
@@ -529,6 +546,7 @@ type Session = {
529
546
  resources: ResourceRef[];
530
547
  tools: ToolRef[];
531
548
  toolPolicy?: SessionToolPolicy | undefined;
549
+ toolPolicyVersion?: number | undefined;
532
550
  effectiveToolPolicy?: SessionEffectiveToolPolicy | undefined;
533
551
  metadata: Record<string, unknown>;
534
552
  /** Frozen creator fact; later turns carry their own independent initiator. */
@@ -704,7 +722,7 @@ type SessionHumanInputRequest = {
704
722
  createdAt: string;
705
723
  updatedAt: string;
706
724
  };
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"];
725
+ 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
726
  type KnownSessionEventType = (typeof SESSION_EVENT_TYPES)[number];
709
727
  /**
710
728
  * Event types the SDK knows about today, kept open so a newer OpenGeni server
@@ -1352,6 +1370,7 @@ type ScheduledTaskAgentConfig = {
1352
1370
  resources: ResourceRef[];
1353
1371
  tools: ToolRef[];
1354
1372
  metadata: Record<string, unknown>;
1373
+ slackBotConnectionId?: string | undefined;
1355
1374
  model?: string | undefined;
1356
1375
  reasoningEffort?: ReasoningEffort | undefined;
1357
1376
  sandboxBackend?: SandboxBackend | undefined;
@@ -1740,6 +1759,8 @@ type ClientAuthConfig = {
1740
1759
  };
1741
1760
  declare const OPENGENI_API_CONTRACT_REVISION: "2026-07-turn-instructions-v1";
1742
1761
  declare const OPENGENI_API_CONTRACT_HEADER: "x-opengeni-api-contract";
1762
+ /** Bounded request/response identifier shared by browser, ingress, and API diagnostics. */
1763
+ declare const OPENGENI_CORRELATION_HEADER: "x-opengeni-correlation-id";
1743
1764
  /**
1744
1765
  * Public, unauthenticated-by-default client bootstrap config returned by
1745
1766
  * `GET /v1/config/client`: which models + reasoning efforts are exposed, the
@@ -2015,6 +2036,8 @@ type NewSessionDraft = {
2015
2036
  text: string;
2016
2037
  resources: ResourceRef[];
2017
2038
  tools: ToolRef[];
2039
+ /** False inherits the workspace-default MCP policy; true preserves an explicit array. */
2040
+ toolsProvided: boolean;
2018
2041
  model: string;
2019
2042
  reasoningEffort: ReasoningEffort;
2020
2043
  options: NewSessionDraftOptions;
@@ -2126,6 +2149,7 @@ type ScheduledTaskAgentConfigInput = {
2126
2149
  resources?: ResourceRef[] | undefined;
2127
2150
  tools?: ToolRef[] | undefined;
2128
2151
  metadata?: Record<string, unknown> | undefined;
2152
+ slackBotConnectionId?: string | undefined;
2129
2153
  model?: string | undefined;
2130
2154
  reasoningEffort?: ReasoningEffort | undefined;
2131
2155
  sandboxBackend?: SandboxBackend | undefined;
@@ -2409,6 +2433,16 @@ type UploadFileInput = {
2409
2433
  type DocumentStatus = "queued" | "indexing" | "ready" | "failed";
2410
2434
  type KnowledgeSourceKind = "manual_upload" | "meeting_transcript" | "repository" | "email" | "chat" | "document" | "web" | "other";
2411
2435
  type DocumentSearchMode = "hybrid" | "vector" | "keyword";
2436
+ type DocumentVisibility = "workspace" | "private";
2437
+ type DocumentCurationStatus = "none" | "pending" | "suggested" | "auto_filed" | "failed";
2438
+ type DocumentCuration = {
2439
+ suggestedBaseId: string | null;
2440
+ suggestedBaseName: string | null;
2441
+ confidence: number;
2442
+ reason: string | null;
2443
+ originalTitle: string | null;
2444
+ model: string | null;
2445
+ };
2412
2446
  type DocumentBase = {
2413
2447
  id: string;
2414
2448
  workspaceId: string;
@@ -2436,6 +2470,13 @@ type Document = {
2436
2470
  sourceUpdatedAt: string | null;
2437
2471
  sourceVersion: string | null;
2438
2472
  aclTags: string[];
2473
+ visibility: DocumentVisibility;
2474
+ createdBy: string | null;
2475
+ agentAccess: boolean;
2476
+ summary: string | null;
2477
+ topics: string[];
2478
+ curationStatus: DocumentCurationStatus;
2479
+ curation: DocumentCuration | null;
2439
2480
  createdAt: string;
2440
2481
  updatedAt: string;
2441
2482
  };
@@ -2479,6 +2520,19 @@ type AddDocumentRequest = {
2479
2520
  sourceUpdatedAt?: string | undefined;
2480
2521
  sourceVersion?: string | undefined;
2481
2522
  aclTags?: string[] | undefined;
2523
+ visibility?: DocumentVisibility | undefined;
2524
+ agentAccess?: boolean | undefined;
2525
+ };
2526
+ type CreateKnowledgeDropRequest = {
2527
+ text?: string | undefined;
2528
+ fileId?: string | undefined;
2529
+ filename?: string | undefined;
2530
+ title?: string | undefined;
2531
+ visibility?: DocumentVisibility | undefined;
2532
+ agentAccess?: boolean | undefined;
2533
+ };
2534
+ type MoveDocumentRequest = {
2535
+ targetBaseId?: string | undefined;
2482
2536
  };
2483
2537
  type DocumentSearchRequest = {
2484
2538
  query: string;
@@ -2830,10 +2884,14 @@ type GitHubRepository = {
2830
2884
  accountType: string | null;
2831
2885
  };
2832
2886
  type GitHubRepositoryScope = "all" | "selected";
2887
+ type GitHubBindingStatus = "disabled" | "unbound" | "bound";
2888
+ type GitHubInstallationLifecycle = "active" | "suspended" | "deleted" | "unverified";
2833
2889
  type GitHubInstallationBinding = {
2834
2890
  installationId: number;
2891
+ githubAccountId: number | null;
2835
2892
  accountLogin: string | null;
2836
2893
  accountType: string | null;
2894
+ lifecycle: GitHubInstallationLifecycle;
2837
2895
  repositoryScope: GitHubRepositoryScope;
2838
2896
  repositoryCount: number;
2839
2897
  createdAt: string;
@@ -2841,12 +2899,14 @@ type GitHubInstallationBinding = {
2841
2899
  };
2842
2900
  type GitHubAppInfo = {
2843
2901
  configured: boolean;
2902
+ /** Truthful workspace binding state; server App credentials alone are not a binding. */
2903
+ status: GitHubBindingStatus;
2844
2904
  appId: string | null;
2845
2905
  clientId: string | null;
2846
2906
  appSlug: string | null;
2847
- /** Reserved compatibility field; null while new installation binding is disabled. */
2907
+ /** Fresh GitHub-controlled installation/configuration consent entry point. */
2848
2908
  installUrl: string | null;
2849
- /** Reserved compatibility field; null while new installation binding is disabled. */
2909
+ /** Compatibility alias for installUrl; no repository-admin chooser is exposed. */
2850
2910
  linkUrl: string | null;
2851
2911
  /** Installation bindings owned independently by this workspace. */
2852
2912
  installations: GitHubInstallationBinding[];
@@ -3168,6 +3228,105 @@ type WorkspaceControlStreamTransport = {
3168
3228
  */
3169
3229
  declare function streamWorkspaceControlEvents(transport: WorkspaceControlStreamTransport, options?: StreamSessionEventsOptions): AsyncGenerator<WorkspaceControlEvent, void, void>;
3170
3230
 
3231
+ type WorkspaceInstructionPolicyKind = "charter" | "policy";
3232
+ type WorkspaceInstructionPolicyScope = "global" | "role";
3233
+ type WorkspaceInstructionPolicyProvenanceSource = "human" | "onboarding" | "knowledge_proposal" | "legacy_import";
3234
+ type WorkspaceInstructionPolicyDraftProvenanceSource = Exclude<WorkspaceInstructionPolicyProvenanceSource, "legacy_import">;
3235
+ type WorkspaceInstructionPolicyActivationType = "activate" | "rollback";
3236
+ declare function normalizeWorkspaceInstructionPolicyRoleKey(value: string): string;
3237
+ type WorkspaceInstructionPolicyTarget = {
3238
+ kind: WorkspaceInstructionPolicyKind;
3239
+ scope: WorkspaceInstructionPolicyScope;
3240
+ roleKey: string | null;
3241
+ };
3242
+ type WorkspaceInstructionPolicyRevisionIdentity = {
3243
+ id: string;
3244
+ revision: number;
3245
+ contentHash: string;
3246
+ };
3247
+ type WorkspaceInstructionPolicyRevision = WorkspaceInstructionPolicyRevisionIdentity & WorkspaceInstructionPolicyTarget & {
3248
+ accountId: string;
3249
+ workspaceId: string;
3250
+ content: string;
3251
+ provenance: {
3252
+ source: WorkspaceInstructionPolicyProvenanceSource;
3253
+ sourceId: string | null;
3254
+ };
3255
+ supersedesRevisionId: string | null;
3256
+ createdBySubjectId: string;
3257
+ createdAt: string;
3258
+ };
3259
+ type WorkspaceInstructionPolicyHead = WorkspaceInstructionPolicyTarget & {
3260
+ workspaceId: string;
3261
+ revisionId: string;
3262
+ revision: number;
3263
+ contentHash: string;
3264
+ activationVersion: number;
3265
+ activatedAt: string;
3266
+ };
3267
+ type WorkspaceInstructionPolicyActivationEvent = WorkspaceInstructionPolicyTarget & {
3268
+ id: string;
3269
+ accountId: string;
3270
+ workspaceId: string;
3271
+ type: WorkspaceInstructionPolicyActivationType;
3272
+ activationVersion: number;
3273
+ oldRevision: WorkspaceInstructionPolicyRevisionIdentity | null;
3274
+ newRevision: WorkspaceInstructionPolicyRevisionIdentity;
3275
+ actorSubjectId: string;
3276
+ reason: string;
3277
+ createdAt: string;
3278
+ };
3279
+ type CreateWorkspaceInstructionPolicyDraftRequest = WorkspaceInstructionPolicyTarget & {
3280
+ content: string;
3281
+ provenanceSource?: WorkspaceInstructionPolicyDraftProvenanceSource;
3282
+ provenanceSourceId?: string | null;
3283
+ supersedesRevisionId?: string | null;
3284
+ };
3285
+ type ImportLegacyWorkspaceInstructionPolicyDraftRequest = {
3286
+ supersedesRevisionId?: string | null;
3287
+ };
3288
+ type WorkspaceInstructionPolicyListOptions = {
3289
+ kind?: WorkspaceInstructionPolicyKind;
3290
+ scope?: WorkspaceInstructionPolicyScope;
3291
+ roleKey?: string;
3292
+ afterRevision?: number;
3293
+ limit?: number;
3294
+ };
3295
+ type WorkspaceInstructionPolicyListResponse = {
3296
+ revisions: WorkspaceInstructionPolicyRevision[];
3297
+ activeHeads: WorkspaceInstructionPolicyHead[];
3298
+ activationEvents: WorkspaceInstructionPolicyActivationEvent[];
3299
+ nextAfterRevision: number | null;
3300
+ };
3301
+ type WorkspaceInstructionPolicyDiffRequest = {
3302
+ fromRevisionId: string;
3303
+ toRevisionId: string;
3304
+ };
3305
+ type WorkspaceInstructionPolicyDiffResponse = {
3306
+ from: WorkspaceInstructionPolicyRevision;
3307
+ to: WorkspaceInstructionPolicyRevision;
3308
+ format: "unified";
3309
+ diff: string;
3310
+ };
3311
+ type ActivateWorkspaceInstructionPolicyRequest = {
3312
+ expectedCurrentRevisionId: string | null;
3313
+ reason: string;
3314
+ };
3315
+ type RollbackWorkspaceInstructionPolicyRequest = {
3316
+ targetRevisionId: string;
3317
+ expectedCurrentRevisionId: string;
3318
+ reason: string;
3319
+ };
3320
+ type WorkspaceInstructionPolicyActivationResponse = {
3321
+ head: WorkspaceInstructionPolicyHead;
3322
+ event: WorkspaceInstructionPolicyActivationEvent;
3323
+ };
3324
+ type WorkspaceInstructionPolicyConflictResponse = {
3325
+ code: "WORKSPACE_INSTRUCTION_POLICY_CONFLICT";
3326
+ message: string;
3327
+ currentHead: WorkspaceInstructionPolicyHead | null;
3328
+ };
3329
+
3171
3330
  type FetchLike = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
3172
3331
  type WorkspaceControlEventPage = {
3173
3332
  events: WorkspaceControlEvent[];
@@ -3223,6 +3382,8 @@ declare class OpenGeniClient {
3223
3382
  saveNewSessionDraft(workspaceId: string, request: SaveNewSessionDraftRequest): Promise<NewSessionDraft>;
3224
3383
  getSession(workspaceId: string, sessionId: string): Promise<Session>;
3225
3384
  updateSession(workspaceId: string, sessionId: string, request: UpdateSessionRequest): Promise<Session>;
3385
+ /** Replace the durable tool policy or explicitly adopt workspace defaults. */
3386
+ updateSessionToolPolicy(workspaceId: string, sessionId: string, request: UpdateSessionToolPolicyRequest): Promise<Session>;
3226
3387
  /**
3227
3388
  * Replace one attached MCP server's approval policy. The change is captured
3228
3389
  * by the next claimed attempt; already-claimed work keeps its immutable
@@ -3508,6 +3669,15 @@ declare class OpenGeniClient {
3508
3669
  createWorkspace(request: CreateWorkspaceRequest): Promise<Workspace>;
3509
3670
  getWorkspace(workspaceId: string): Promise<Workspace>;
3510
3671
  updateWorkspace(workspaceId: string, request: UpdateWorkspaceRequest): Promise<Workspace>;
3672
+ /** Inspect immutable instruction-policy history, active heads, and activation audit evidence. */
3673
+ listWorkspaceInstructionPolicies(workspaceId: string, options?: WorkspaceInstructionPolicyListOptions): Promise<WorkspaceInstructionPolicyListResponse>;
3674
+ getWorkspaceInstructionPolicyRevision(workspaceId: string, revisionId: string): Promise<WorkspaceInstructionPolicyRevision>;
3675
+ createWorkspaceInstructionPolicyDraft(workspaceId: string, request: CreateWorkspaceInstructionPolicyDraftRequest): Promise<WorkspaceInstructionPolicyRevision>;
3676
+ /** Import the stored legacy workspace override as an inactive charter draft. */
3677
+ importLegacyWorkspaceInstructionPolicyDraft(workspaceId: string, request?: ImportLegacyWorkspaceInstructionPolicyDraftRequest): Promise<WorkspaceInstructionPolicyRevision>;
3678
+ diffWorkspaceInstructionPolicyRevisions(workspaceId: string, request: WorkspaceInstructionPolicyDiffRequest): Promise<WorkspaceInstructionPolicyDiffResponse>;
3679
+ activateWorkspaceInstructionPolicyRevision(workspaceId: string, revisionId: string, request: ActivateWorkspaceInstructionPolicyRequest): Promise<WorkspaceInstructionPolicyActivationResponse>;
3680
+ rollbackWorkspaceInstructionPolicyRevision(workspaceId: string, request: RollbackWorkspaceInstructionPolicyRequest): Promise<WorkspaceInstructionPolicyActivationResponse>;
3511
3681
  /**
3512
3682
  * Delete a workspace and everything in it. Refused (409) for the account's
3513
3683
  * only workspace and while it still has a running session. Irreversible.
@@ -3623,6 +3793,18 @@ declare class OpenGeniClient {
3623
3793
  /** Index an uploaded file into the base. The file must be `ready`. */
3624
3794
  addDocument(workspaceId: string, baseId: string, request: AddDocumentRequest): Promise<Document>;
3625
3795
  listDocuments(workspaceId: string, baseId: string): Promise<Document[]>;
3796
+ /**
3797
+ * Drop raw text or an already-uploaded file into the workspace's Default
3798
+ * base. When curation is enabled, it may name, summarize, categorize, and
3799
+ * (confidence permitting) file the document into the best-matching base;
3800
+ * provider=none leaves caller metadata and Default placement unchanged.
3801
+ */
3802
+ createKnowledgeDrop(workspaceId: string, request: CreateKnowledgeDropRequest): Promise<Document>;
3803
+ /**
3804
+ * Move a document (and its indexed chunks) to another base. With no
3805
+ * targetBaseId, applies the document's stored curation suggestion.
3806
+ */
3807
+ moveDocument(workspaceId: string, documentId: string, request?: MoveDocumentRequest): Promise<Document>;
3626
3808
  /** Retry indexing for a failed document. */
3627
3809
  reindexDocument(workspaceId: string, baseId: string, documentId: string): Promise<Document>;
3628
3810
  /**
@@ -3662,18 +3844,17 @@ declare class OpenGeniClient {
3662
3844
  }): Promise<DiscoverMcpCapabilitiesResponse>;
3663
3845
  listConnections(workspaceId: string): Promise<ConnectionMetadata[]>;
3664
3846
  createConnection(workspaceId: string, request: CreateConnectionRequest): Promise<ConnectionMetadata>;
3847
+ /** Validate and store/reinstall the workspace-shared OpenGeni Slack bot credential. */
3848
+ connectOpenGeniSlackBot(workspaceId: string, request: ConnectOpenGeniSlackBotRequest): Promise<ConnectionMetadata>;
3665
3849
  updateConnection(workspaceId: string, connectionId: string, request: UpdateConnectionRequest): Promise<ConnectionMetadata>;
3666
3850
  deleteConnection(workspaceId: string, connectionId: string): Promise<ConnectionMetadata>;
3667
3851
  /** Start an OAuth connection flow; redirect the user to the returned `authorizationUrl`. */
3668
3852
  startConnectionOAuth(workspaceId: string, request: OAuthStartRequest): Promise<OAuthStartResponse>;
3669
3853
  /** Public, immutably-cached URL for a catalog item's logo, or null when the item has none. */
3670
3854
  catalogAssetUrl(logoAssetPath: string | null): string | null;
3671
- /** GitHub App configuration status; install/link URLs are null while new binding is disabled. */
3855
+ /** GitHub App server configuration plus truthful workspace binding status. */
3672
3856
  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
- */
3857
+ /** Build the GitHub owner-consent entry URL for fresh workspace-bound state. */
3677
3858
  githubConnectUrl(workspaceId: string, state: string): string;
3678
3859
  listGitHubRepositories(workspaceId: string): Promise<GitHubRepositoriesResponse>;
3679
3860
  /** Re-sync the installation's repository list from GitHub. */
@@ -3758,8 +3939,19 @@ declare class OpenGeniClient {
3758
3939
  declare class OpenGeniApiError extends Error {
3759
3940
  readonly status: number;
3760
3941
  readonly code: string | undefined;
3942
+ readonly retryable: boolean;
3943
+ readonly correlationId: string | undefined;
3944
+ /** True only when an uncontrolled transport failed after a mutation may have been accepted. */
3945
+ readonly outcomeUnknown: boolean;
3761
3946
  readonly body: string;
3762
- constructor(status: number, body: string);
3947
+ constructor(status: number, body: string, options?: {
3948
+ code?: string | undefined;
3949
+ retryable?: boolean | undefined;
3950
+ correlationId?: string | undefined;
3951
+ outcomeUnknown?: boolean | undefined;
3952
+ displayMessage?: string | undefined;
3953
+ mutation?: boolean | undefined;
3954
+ });
3763
3955
  }
3764
3956
  /** A short-lived session-list snapshot cursor can no longer be continued. */
3765
3957
  declare class OpenGeniSessionListCursorError extends OpenGeniApiError {
@@ -3979,4 +4171,4 @@ declare function ttydInputFrame(data: string): string;
3979
4171
  /** Build a client→server RESIZE frame: "1" + JSON.stringify({ columns, rows }). */
3980
4172
  declare function ttydResizeFrame(columns: number, rows: number): string;
3981
4173
 
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 };
4174
+ export { type AccessContext, type AccessGrant, type AccountGrant, type AccountRole, type AcknowledgeStreamRequest, type AcknowledgeStreamResponse, type ActivateWorkspaceInstructionPolicyRequest, 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 ConnectOpenGeniSlackBotRequest, 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 CreateWorkspaceInstructionPolicyDraftRequest, 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 ImportLegacyWorkspaceInstructionPolicyDraftRequest, 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, type RollbackWorkspaceInstructionPolicyRequest, 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 WorkspaceInstructionPolicyActivationEvent, type WorkspaceInstructionPolicyActivationResponse, type WorkspaceInstructionPolicyActivationType, type WorkspaceInstructionPolicyConflictResponse, type WorkspaceInstructionPolicyDiffRequest, type WorkspaceInstructionPolicyDiffResponse, type WorkspaceInstructionPolicyDraftProvenanceSource, type WorkspaceInstructionPolicyHead, type WorkspaceInstructionPolicyKind, type WorkspaceInstructionPolicyListOptions, type WorkspaceInstructionPolicyListResponse, type WorkspaceInstructionPolicyProvenanceSource, type WorkspaceInstructionPolicyRevision, type WorkspaceInstructionPolicyRevisionIdentity, type WorkspaceInstructionPolicyScope, type WorkspaceInstructionPolicyTarget, 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, normalizeWorkspaceInstructionPolicyRoleKey, parseSseStream, proxySessionEventStream, resolveWorkspaceTranscriptionPolicy, resumeSequenceFromRequest, sessionEventsToSseResponse, sessionEventsToSseStream, streamSessionEvents, streamWorkspaceControlEvents, terminalSocketUrl, ttydAuthFrame, ttydInputFrame, ttydResizeFrame };