@opengeni/sdk 0.46.0 → 0.52.1
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 +94 -2
- package/dist/artifact-client.d.ts +20 -2
- package/dist/artifacts.d.ts +4 -0
- package/dist/artifacts.js +11 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/chunk-FHI4DFIG.js +128 -0
- package/dist/chunk-FHI4DFIG.js.map +1 -0
- package/dist/chunk-FRJFNDIR.js +218 -0
- package/dist/chunk-FRJFNDIR.js.map +1 -0
- package/dist/{chunk-QKV5OCLJ.js → chunk-ILQZR5N6.js} +1380 -595
- package/dist/chunk-ILQZR5N6.js.map +1 -0
- package/dist/chunk-MZWTWOX6.js +661 -0
- package/dist/chunk-MZWTWOX6.js.map +1 -0
- package/dist/chunk-VWE2QIVO.js +1162 -0
- package/dist/chunk-VWE2QIVO.js.map +1 -0
- package/dist/chunk-VYCTL62C.js +230 -0
- package/dist/chunk-VYCTL62C.js.map +1 -0
- package/dist/client.d.ts +176 -20
- package/dist/codex-realtime-controller.d.ts +6 -6
- package/dist/codex-realtime-lifecycle.d.ts +1 -1
- package/dist/codex-realtime-v3.d.ts +3 -3
- package/dist/codex-realtime.d.ts +1 -1
- package/dist/company-profile.d.ts +100 -0
- package/dist/core.d.ts +5 -5
- package/dist/core.js +9 -4
- package/dist/desktop.d.ts +1 -1
- package/dist/editable-artifact-resources.d.ts +96 -0
- package/dist/editable-artifacts/browser-session.d.ts +35 -0
- package/dist/editable-artifacts/controller.d.ts +60 -0
- package/dist/editable-artifacts/errors.d.ts +23 -0
- package/dist/editable-artifacts/http-live-transport.d.ts +46 -0
- package/dist/editable-artifacts/index.d.ts +19 -0
- package/dist/editable-artifacts/pool.d.ts +15 -0
- package/dist/editable-artifacts/session.d.ts +96 -0
- package/dist/editable-artifacts/storage.d.ts +72 -0
- package/dist/editable-artifacts/types.d.ts +416 -0
- package/dist/editable-artifacts/worker/browser-client.d.ts +80 -0
- package/dist/editable-artifacts/worker/browser-entry.d.ts +6 -0
- package/dist/editable-artifacts/worker/kernel-adapter.d.ts +45 -0
- package/dist/editable-artifacts/worker/rpc-protocol.d.ts +92 -0
- package/dist/editable-artifacts/worker/runtime.d.ts +66 -0
- package/dist/editable-artifacts/worker/wire-codec.d.ts +52 -0
- package/dist/editable-artifacts-worker.d.ts +8 -0
- package/dist/editable-artifacts-worker.js +1708 -0
- package/dist/editable-artifacts-worker.js.map +1 -0
- package/dist/editable-artifacts.d.ts +6 -0
- package/dist/editable-artifacts.js +5954 -0
- package/dist/editable-artifacts.js.map +1 -0
- package/dist/gateway-realtime-transport.d.ts +1 -1
- package/dist/index.d.ts +41 -35
- package/dist/index.js +104 -68
- package/dist/index.js.map +1 -1
- package/dist/interaction.d.ts +885 -0
- package/dist/interaction.js +55 -0
- package/dist/interaction.js.map +1 -0
- package/dist/memory-slack-client.d.ts +13 -0
- package/dist/memory-slack-delivery.d.ts +99 -0
- package/dist/memory-slack.d.ts +4 -0
- package/dist/memory-slack.js +44 -0
- package/dist/memory-slack.js.map +1 -0
- package/dist/proxy.d.ts +3 -3
- package/dist/realtime.d.ts +12 -12
- package/dist/retained-artifacts.d.ts +12 -0
- package/dist/stream.d.ts +16 -1
- package/dist/terminal.d.ts +1 -1
- package/dist/transcription.d.ts +2 -2
- package/dist/types.d.ts +1203 -23
- package/dist/workspace-control-stream.d.ts +2 -2
- package/dist/workspace-state.d.ts +1 -1
- package/package.json +29 -3
- package/src/artifact-client.ts +129 -0
- package/src/artifacts.ts +17 -0
- package/src/client.ts +1801 -206
- package/src/company-profile.ts +92 -0
- package/src/editable-artifact-resources.ts +119 -0
- package/src/editable-artifacts/browser-session.ts +176 -0
- package/src/editable-artifacts/controller.ts +2632 -0
- package/src/editable-artifacts/errors.ts +52 -0
- package/src/editable-artifacts/http-live-transport.ts +1449 -0
- package/src/editable-artifacts/index.ts +175 -0
- package/src/editable-artifacts/pool.ts +81 -0
- package/src/editable-artifacts/session.ts +778 -0
- package/src/editable-artifacts/storage.ts +1718 -0
- package/src/editable-artifacts/types.ts +499 -0
- package/src/editable-artifacts/worker/browser-client.ts +1167 -0
- package/src/editable-artifacts/worker/browser-entry.ts +57 -0
- package/src/editable-artifacts/worker/kernel-adapter.ts +1039 -0
- package/src/editable-artifacts/worker/rpc-protocol.ts +622 -0
- package/src/editable-artifacts/worker/runtime.ts +1204 -0
- package/src/editable-artifacts/worker/wire-codec.ts +852 -0
- package/src/editable-artifacts-worker.ts +8 -0
- package/src/editable-artifacts.ts +6 -0
- package/src/index.ts +194 -0
- package/src/interaction.ts +1830 -0
- package/src/memory-slack-client.ts +71 -0
- package/src/memory-slack-delivery.ts +128 -0
- package/src/memory-slack.ts +19 -0
- package/src/retained-artifacts.ts +326 -0
- package/src/stream.ts +102 -4
- package/src/transcription.ts +2 -2
- package/src/types.ts +1430 -33
- package/src/workspace-control-stream.ts +15 -5
- package/dist/chunk-QKV5OCLJ.js.map +0 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { type SessionEventStreamTransport, type StreamSessionEventsOptions } from "./stream";
|
|
2
|
-
import { type WorkspaceControlStreamTransport } from "./workspace-control-stream";
|
|
3
|
-
import
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
1
|
+
import { type SessionEventStreamTransport, type StreamSessionEventsOptions } from "./stream.js";
|
|
2
|
+
import { type WorkspaceControlStreamTransport } from "./workspace-control-stream.js";
|
|
3
|
+
import { OpenGeniInteractionClient, type AttachedBrowserDevice, type AttachedBrowserDeviceListOptions, type AttachedBrowserDeviceListResponse, type BrowserActionReceipt, type BrowserActionRequest, type BrowserDiagnosticBatch, type BrowserDiagnosticsOptions, type BrowserIdentity, type BrowserIdentityListOptions, type BrowserIdentityListResponse, type BrowserIdentityMutationResponse, type BrowserObservation, type BrowserOpenTargetRequest, type BrowserSession, type BrowserSessionAttachment, type BrowserSessionAttachmentRequest, type BrowserSessionHeartbeatResponse, type BrowserSessionLifecycleRequest, type BrowserSessionListResponse, type BrowserSessionMutationResponse, type BrowserTarget, type BrowserTargetListResponse, type BrowserRevisionListResponse, type ComputerActionReceipt, type ComputerActionRequest, type ComputerObservation, type ComputerSession, type ComputerSessionAttachment, type ComputerSessionAttachmentRequest, type ComputerSessionHeartbeatResponse, type ComputerSessionLifecycleRequest, type ComputerSessionListResponse, type ComputerSessionMutationResponse, type ComputerTargetListResponse, type CreateBrowserIdentityRequest, type CreateBrowserSessionRequest, type CreateComputerSessionRequest, type PublishBrowserRevisionRequest, type PublishBrowserRevisionResponse } from "./interaction.js";
|
|
4
|
+
import type { AccessContext, ActivateCodexRealtimeConnectionRequest, AddWorkspaceMemberRequest, ApiKey, BillingEntitlementsResponse, CodexAccount, CodexAccountsResponse, CodexAppsUpdate, CodexRotationSettings, CodexOverviewResponse, CodexAllocatorUpdate, CodexConnectionStatus, CodexRealtimeWebrtcRequest, CodexRealtimeWebrtcResponse, GatewayRealtimeConnectRequest, GatewayRealtimeConnectResponse, CodexConnectPoll, CodexConnectStart, CodexUsage, CodexUsageMap, BillingSummary, BillingUsageResponse, InsightsRange, WorkspaceInsightsResponse, BeginSessionRealtimeRequest, CapabilityCatalogItem, CapabilityCatalogResponse, CapabilityInstallation, ApiIntegrationPreview, ApiIntegrationOAuthStartRequest, ApiIntegrationUninstallPreview, InstallApiIntegrationRequest, InstalledApiIntegration, IntegrationFeatureMutationResult, IntegrationFeatureRemovalResult, IntegrationInstanceFeaturesResponse, ListApiIntegrationPresetsResponse, ListApiIntegrationsResponse, MutateIntegrationFeatureRequest, PreviewApiIntegrationRequest, UninstallApiIntegrationRequest, UninstallApiIntegrationResult, UpsertIntegrationFeatureRequest, PreviewPluginRequest, PluginPreview, InstallPluginRequest, InstalledPlugin, ListInstalledPluginsResponse, PluginUninstallPreview, UninstallPluginRequest, UninstallPluginResult, AddDocumentRequest, CreateKnowledgeDropRequest, MoveDocumentRequest, ClientConfig, WorkspaceModelCatalogResponse, WorkspaceRealtimeModelCatalogResponse, ClientSessionEventInput, CompactSessionContextResult, ConnectionMetadata, CreateApiKeyRequest, CreateApiKeyResponse, CreateCapabilityCatalogItemRequest, InstallSkillRequest, InstalledSkill, CreateCheckoutRequest, CreateCheckoutResponse, OpenGeniSlackBotInstallRequest, OpenGeniSlackBotInstallStart, SlackReactionChannelListResponse, CreateConnectionRequest, CreateDocumentBaseRequest, CreateFileUploadRequest, CreateFileUploadResponse, CreateGitHubAppManifestRequest, CreateGitHubAppManifestResponse, CreateKnowledgeMemoryRequest, CreateScheduledTaskRequest, CreateSessionRequest, CreateSessionResponse, CreateVariableSetRequest, CreateRigRequest, CreateWorkspaceRequest, DeviceEnrollmentApproveResponse, DeviceEnrollmentDenyResponse, DeviceEnrollmentLookupResponse, MintEnrollTokenResponse, EndSessionRealtimeRequest, DiscoverMcpCapabilitiesResponse, Document, DocumentBase, DocumentSearchRequest, DocumentSearchResponse, EnableCapabilityRequest, EnablePackRequest, FileAsset, FileDownloadUrlResponse, GetPackResponse, GitHubAppInfo, GitHubRepositoriesResponse, GoogleDriveBrowseResponse, GoogleDriveDisconnectRequest, SaveGoogleDriveIntegrationSourceRequest, GoogleDriveLifecycleActionRequest, KnowledgeMemory, KnowledgeMemorySearchRequest, ListPacksResponse, MachinesResponse, MetricSample, RemoveEnrollmentRequest, RemoveEnrollmentResponse, SwapActiveSandboxRequest, SwapActiveSandboxResponse, InstallPackRequest, PackInstallationPreview, PrepareSlackUserLinkAccessRequest, SlackUserLinkAccessMutationRequest, SlackUserLinkAccessRequest, ApproveSlackUserLinkAccessRequest, PackInstallation, PackUninstallPreview, LatencyMode, ReasoningEffort, RetainedScreenshotDownload, RetainedScreenshotDownloadOptions, RetainedArtifactDownload, RetainedArtifactDownloadOptions, RetainedArtifactReference, RetainedArtifactContent, RetainedArtifactContentOptions, RetainedArtifactMetadata, UpdateVideoGenerationPolicyRequest, VideoArtifactPlaybackSource, VideoGenerationOperationSummary, VideoGenerationPolicy, WorkspaceVideoGenerationSettings, RegisterCapabilityPackRequest, ResourceRef, PreviewPackInstallationRequest, PreviewSkillImportRequest, ScheduledTask, ScheduledTaskRun, Session, SessionListResponse, AgentTopologyPageResponse, UpdateSessionPinRequest, UninstallPackRequest, UninstallPackResult, SessionEvent, SessionEventCompactResult, SessionEventCompactResultOptions, SessionEventListOptions, SessionEventPage, SessionGoal, SessionHumanInputRequest, SessionLineageResponse, SessionRealtimeMutationResponse, SyncSessionRealtimeLedgerRequest, SyncSessionRealtimeLedgerResponse, RenewSessionRealtimeRequest, SessionMcpCredentialUpdateInput, SubmittedTimelineAnnotation, UpdateSessionMcpApprovalPolicyRequest, UpdateSessionMcpApprovalPolicyResponse, SessionQueueSnapshot, SessionQueueMutationResponse, ComposerDraft, DeleteSessionQueueItemRequest, EditSessionQueueItemRequest, MoveSessionQueueItemRequest, NewSessionDraft, SaveComposerDraftRequest, SaveNewSessionDraftRequest, SteerSessionQueueItemRequest, SessionControlResponse, WorkspaceInferenceControlResponse, WorkspaceControlEvent, SessionTurn, SubmitHumanInputResponseRequest, SessionCapabilities, AttachViewerRequest, AttachViewerResponse, AcknowledgeStreamRequest, AcknowledgeStreamResponse, ViewerHeartbeatRequest, ViewerHeartbeatResponse, FsListRequest, FsListResponse, FsListBatchRequest, FsListBatchResponse, FsReadRequest, FsReadResponse, FsWriteRequest, FsWriteResponse, FsDeleteRequest, FsDeleteResponse, FsMoveRequest, FsMoveResponse, FsMkdirRequest, FsMkdirResponse, GitStatusRequest, GitStatusResponse, GitDiffRequest, GitDiffResponse, GitReadBatchRequest, GitReadBatchResponse, GitLogRequest, GitLogResponse, GitShowRequest, GitShowResponse, GetWorkspaceCaptureResponse, GetWorkspaceCaptureFileResponse, TerminalExecRequest, TerminalExecResponse, PtyOpenRequest, PtyOpenResponse, PtyWriteRequest, PtyResizeRequest, PtyCloseRequest, ToolRef, TranscribeAudioResponse, TranscriptionRecordingListResponse, TranscriptionRecordingResponse, UploadTranscriptionRecordingChunkResponse, UpdateConnectionRequest, UpdateKnowledgeMemoryRequest, UpdateScheduledTaskRequest, UpdateSessionGoalRequest, UpdateSessionRequest, UpdateSessionToolPolicyRequest, UpdateVariableSetRequest, UpdateRigRequest, UpdateWorkspaceMemberRequest, UpdateWorkspaceRequest, UpdateWorkspaceSettingsRequest, SetWorkspaceDefaultRigRequest, UploadFileInput, VariableSet, VariableSetSecret, VariableSetVariableMetadata, Rig, RigVersion, RigChange, ProposeRigChangeRequest, WorkspaceMember, WorkspaceMemorySearchRequest, WorkspaceMemorySearchResponse, WorkspaceRegisteredPack, Workspace, SlackInstallationBinding, OAuthStartRequest, OAuthStartResponse, SocialConnection, SocialOAuthStartRequest, SkillImportPreview, SkillUninstallPreview, UninstallSkillRequest, UninstallSkillResult } from "./types.js";
|
|
5
|
+
import type { ActivateWorkspaceInstructionPolicyRequest, CreateWorkspaceInstructionPolicyDraftRequest, CreateWorkspaceInstructionPolicyOnboardingProposalRequest, ImportLegacyWorkspaceInstructionPolicyDraftRequest, RollbackWorkspaceInstructionPolicyRequest, WorkspaceInstructionPolicyActivationResponse, WorkspaceInstructionPolicyDiffRequest, WorkspaceInstructionPolicyDiffResponse, WorkspaceInstructionPolicyListOptions, WorkspaceInstructionPolicyListResponse, WorkspaceInstructionPolicyOnboardingProposal, WorkspaceInstructionPolicyOnboardingProposalListOptions, WorkspaceInstructionPolicyOnboardingProposalListResponse, WorkspaceInstructionPolicyRevision } from "./workspace-instruction-policies.js";
|
|
6
|
+
import type { ActivateCompanyProfileRevisionRequest, CompanyProfileDiffRequest, CompanyProfileDiffResponse, CompanyProfileListOptions, CompanyProfileListResponse, CompanyProfileMutationResponse, CompanyProfileRevision, RollbackCompanyProfileRequest, UpdateCompanyProfileRequest } from "./company-profile.js";
|
|
7
|
+
import type { WorkspaceStateExportResponse, WorkspaceStateGetOptions, WorkspaceStateResponse } from "./workspace-state.js";
|
|
8
|
+
import type { ActivatePreferenceRegistryRevisionRequest, ChangePreferenceRegistryScopeRequest, CorrectPreferenceRegistryRequest, CreatePreferenceRegistryProposalRequest, DeactivatePreferenceRegistryRequest, PreferenceRegistryDetailResponse, PreferenceRegistryFullContent, PreferenceRegistryListOptions, PreferenceRegistryListResponse, PreferenceRegistryMutationResponse, PreferenceRegistryRecord, PreferenceRegistrySnapshot, RejectPreferenceRegistryProposalRequest, SupersedePreferenceRegistryRequest } from "./preference-registry.js";
|
|
7
9
|
export type FetchLike = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
8
10
|
export type WorkspaceControlEventPage = {
|
|
9
11
|
events: WorkspaceControlEvent[];
|
|
@@ -27,6 +29,7 @@ export type OpenGeniRequestOptions = {
|
|
|
27
29
|
};
|
|
28
30
|
export type SendMessageInput = {
|
|
29
31
|
text: string;
|
|
32
|
+
annotations?: SubmittedTimelineAnnotation[];
|
|
30
33
|
/** System instructions scoped to this exact turn; never visible timeline text. */
|
|
31
34
|
turnInstructions?: string;
|
|
32
35
|
resources?: ResourceRef[];
|
|
@@ -44,6 +47,10 @@ export type SteerMessageResult = {
|
|
|
44
47
|
accepted: SessionEvent;
|
|
45
48
|
/** The exact turn created for this message in the same server transaction. */
|
|
46
49
|
turn: SessionTurn;
|
|
50
|
+
/** Number of live attempts durably asked to stop by this atomic Steer. */
|
|
51
|
+
interruptionCount?: number;
|
|
52
|
+
/** True when this response came from the command's immutable idempotency receipt. */
|
|
53
|
+
replay?: boolean;
|
|
47
54
|
};
|
|
48
55
|
export type TranscribeAudioInput = {
|
|
49
56
|
audio: Blob | File | Uint8Array;
|
|
@@ -79,6 +86,10 @@ export declare class OpenGeniClient {
|
|
|
79
86
|
private readonly baseUrl;
|
|
80
87
|
private readonly options;
|
|
81
88
|
private readonly fetchImpl;
|
|
89
|
+
private readonly readInFlight;
|
|
90
|
+
private readonly readTrailing;
|
|
91
|
+
/** Resource-oriented Browser/Computer facade over this exact authenticated client. */
|
|
92
|
+
readonly interaction: OpenGeniInteractionClient;
|
|
82
93
|
constructor(options: OpenGeniClientOptions);
|
|
83
94
|
/** Make one finalization attempt for a recording; callers may retry retained audio. */
|
|
84
95
|
transcribeAudio(workspaceId: string, input: TranscribeAudioInput): Promise<TranscribeAudioResponse>;
|
|
@@ -100,7 +111,9 @@ export declare class OpenGeniClient {
|
|
|
100
111
|
createSession(workspaceId: string, request: CreateSessionRequest): Promise<CreateSessionResponse>;
|
|
101
112
|
getNewSessionDraft(workspaceId: string): Promise<NewSessionDraft>;
|
|
102
113
|
saveNewSessionDraft(workspaceId: string, request: SaveNewSessionDraftRequest): Promise<NewSessionDraft>;
|
|
103
|
-
getSession(workspaceId: string, sessionId: string
|
|
114
|
+
getSession(workspaceId: string, sessionId: string, options?: {
|
|
115
|
+
fresh?: boolean;
|
|
116
|
+
}): Promise<Session>;
|
|
104
117
|
updateSession(workspaceId: string, sessionId: string, request: UpdateSessionRequest): Promise<Session>;
|
|
105
118
|
/** Replace the durable tool policy or explicitly adopt workspace defaults. */
|
|
106
119
|
updateSessionToolPolicy(workspaceId: string, sessionId: string, request: UpdateSessionToolPolicyRequest): Promise<Session>;
|
|
@@ -124,9 +137,17 @@ export declare class OpenGeniClient {
|
|
|
124
137
|
/** Return only the complete personal pinned projection. */
|
|
125
138
|
pinsOnly?: boolean;
|
|
126
139
|
}): Promise<SessionListResponse>;
|
|
140
|
+
/** Compact, bounded workspace agent hierarchy page. */
|
|
141
|
+
listAgentTopology(workspaceId: string, options?: {
|
|
142
|
+
limit?: number;
|
|
143
|
+
parentSessionId?: string | null;
|
|
144
|
+
cursor?: string;
|
|
145
|
+
search?: string;
|
|
146
|
+
}): Promise<AgentTopologyPageResponse>;
|
|
127
147
|
/** Set this authenticated member's personal workspace pin for a session. */
|
|
128
148
|
updateSessionPin(workspaceId: string, sessionId: string, request: UpdateSessionPinRequest): Promise<Session>;
|
|
129
149
|
getSessionLineage(workspaceId: string, sessionId: string): Promise<SessionLineageResponse>;
|
|
150
|
+
private singleFlightRead;
|
|
130
151
|
/** Negotiate one server-mediated connected-Codex GPT-Live V3 WebRTC call. */
|
|
131
152
|
negotiateCodexRealtimeWebrtc(workspaceId: string, sessionId: string, request: CodexRealtimeWebrtcRequest, options?: {
|
|
132
153
|
signal?: AbortSignal | undefined;
|
|
@@ -170,6 +191,13 @@ export declare class OpenGeniClient {
|
|
|
170
191
|
machineMetricsSeries(workspaceId: string, enrollmentId: string, options?: {
|
|
171
192
|
window?: "15m" | "1h" | "6h" | "24h";
|
|
172
193
|
}): Promise<MetricSample[]>;
|
|
194
|
+
/**
|
|
195
|
+
* Remove one connected self-hosted machine enrollment. The control-plane
|
|
196
|
+
* operation works while the agent is offline, revokes future reconnects,
|
|
197
|
+
* retains history, and returns a typed blocker when active route/lease or
|
|
198
|
+
* recovery dependencies make removal unsafe. `idempotencyKey` is replay-safe.
|
|
199
|
+
*/
|
|
200
|
+
removeEnrollment(workspaceId: string, enrollmentId: string, request?: RemoveEnrollmentRequest): Promise<RemoveEnrollmentResponse>;
|
|
173
201
|
/**
|
|
174
202
|
* Resolve a pending device-enrollment flow by its user_code for the click-Grant
|
|
175
203
|
* approve page (EnrollmentConsent). NO workspace in the path — the server
|
|
@@ -342,6 +370,8 @@ export declare class OpenGeniClient {
|
|
|
342
370
|
compactSessionContext(workspaceId: string, sessionId: string): Promise<CompactSessionContextResult>;
|
|
343
371
|
/** FileSystem: list a directory tree (feeds the Pierre file tree). */
|
|
344
372
|
fsList(workspaceId: string, sessionId: string, request?: FsListRequest, options?: OpenGeniRequestOptions): Promise<FsListResponse>;
|
|
373
|
+
/** FileSystem: hydrate several independent directories behind one sandbox lease. */
|
|
374
|
+
fsListBatch(workspaceId: string, sessionId: string, request: FsListBatchRequest, options?: OpenGeniRequestOptions): Promise<FsListBatchResponse>;
|
|
345
375
|
/** FileSystem: read a file (text or base64; binary-safe, size-capped). */
|
|
346
376
|
fsRead(workspaceId: string, sessionId: string, request: FsReadRequest, options?: OpenGeniRequestOptions): Promise<FsReadResponse>;
|
|
347
377
|
/** FileSystem: write a file (last-writer-wins; emits fs.changed). */
|
|
@@ -356,6 +386,8 @@ export declare class OpenGeniClient {
|
|
|
356
386
|
gitStatus(workspaceId: string, sessionId: string, request?: GitStatusRequest, options?: OpenGeniRequestOptions): Promise<GitStatusResponse>;
|
|
357
387
|
/** Git: structured diff hunks (the Pierre diff feed). */
|
|
358
388
|
gitDiff(workspaceId: string, sessionId: string, request?: GitDiffRequest, options?: OpenGeniRequestOptions): Promise<GitDiffResponse>;
|
|
389
|
+
/** Git: read status and optional diffs for several repositories behind one sandbox lease. */
|
|
390
|
+
gitReadBatch(workspaceId: string, sessionId: string, request: GitReadBatchRequest, options?: OpenGeniRequestOptions): Promise<GitReadBatchResponse>;
|
|
359
391
|
/** Git: commit log. */
|
|
360
392
|
gitLog(workspaceId: string, sessionId: string, request?: GitLogRequest): Promise<GitLogResponse>;
|
|
361
393
|
/** Git: show a commit (diff vs first parent) or fetch a raw blob at a ref. */
|
|
@@ -392,13 +424,11 @@ export declare class OpenGeniClient {
|
|
|
392
424
|
* The desktop viewer-attach path returns 409 until this is recorded. */
|
|
393
425
|
acknowledgeStream(workspaceId: string, sessionId: string, request?: AcknowledgeStreamRequest): Promise<AcknowledgeStreamResponse>;
|
|
394
426
|
/** Attach a viewer holder (refcounted liveness — keeps the box warm while
|
|
395
|
-
* watched/used), spinning the box up in-process when cold
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
* (`desktop` omitted/false) warms the box + mints the pty-ws terminal cell with
|
|
401
|
-
* NO consent gate. An omitted `viewerId` mints a fresh one. */
|
|
427
|
+
* watched/used), spinning the box up in-process when cold. Exact plane flags
|
|
428
|
+
* mint only the requested short-lived credentials and enforce that plane's
|
|
429
|
+
* permission. `desktop:true` alone carries the un-redacted/shared consent
|
|
430
|
+
* gate. An entirely omitted plane set retains the legacy terminal-only
|
|
431
|
+
* meaning; current clients should send all three flags. */
|
|
402
432
|
attachViewer(workspaceId: string, sessionId: string, request?: AttachViewerRequest): Promise<AttachViewerResponse>;
|
|
403
433
|
/** Heartbeat a viewer holder (Channel-A app-level liveness). A closed laptop
|
|
404
434
|
* stops sending these → the reaper drops the holder within ~90s. Echoes
|
|
@@ -406,6 +436,43 @@ export declare class OpenGeniClient {
|
|
|
406
436
|
heartbeatViewer(workspaceId: string, sessionId: string, viewerId: string, request: ViewerHeartbeatRequest): Promise<ViewerHeartbeatResponse>;
|
|
407
437
|
/** Detach a viewer (delete this holder; idempotent delete-my-row). */
|
|
408
438
|
detachViewer(workspaceId: string, sessionId: string, viewerId: string): Promise<void>;
|
|
439
|
+
listAttachedBrowsers(workspaceId: string, options?: AttachedBrowserDeviceListOptions): Promise<AttachedBrowserDeviceListResponse>;
|
|
440
|
+
getAttachedBrowser(workspaceId: string, deviceId: string, options?: OpenGeniRequestOptions): Promise<AttachedBrowserDevice>;
|
|
441
|
+
listBrowserIdentities(workspaceId: string, options?: BrowserIdentityListOptions): Promise<BrowserIdentityListResponse>;
|
|
442
|
+
getBrowserIdentity(workspaceId: string, identityId: string, options?: OpenGeniRequestOptions): Promise<BrowserIdentity>;
|
|
443
|
+
createBrowserIdentity(workspaceId: string, request: CreateBrowserIdentityRequest, options?: OpenGeniRequestOptions): Promise<BrowserIdentityMutationResponse>;
|
|
444
|
+
listBrowserRevisions(workspaceId: string, identityId: string, options?: OpenGeniRequestOptions): Promise<BrowserRevisionListResponse>;
|
|
445
|
+
/** Workspace-wide BrowserSession inventory. Associations express relevance,
|
|
446
|
+
* not access: peers and child agents intentionally remain discoverable. */
|
|
447
|
+
listBrowserSessions(workspaceId: string, options?: OpenGeniRequestOptions): Promise<BrowserSessionListResponse>;
|
|
448
|
+
getBrowserSession(workspaceId: string, browserSessionId: string, options?: OpenGeniRequestOptions): Promise<BrowserSession>;
|
|
449
|
+
createBrowserSession(workspaceId: string, request: CreateBrowserSessionRequest, options?: OpenGeniRequestOptions): Promise<BrowserSessionMutationResponse>;
|
|
450
|
+
listBrowserTargets(workspaceId: string, browserSessionId: string, options?: OpenGeniRequestOptions): Promise<BrowserTargetListResponse>;
|
|
451
|
+
openBrowserTarget(workspaceId: string, browserSessionId: string, request?: BrowserOpenTargetRequest, options?: OpenGeniRequestOptions): Promise<BrowserTarget>;
|
|
452
|
+
selectBrowserTarget(workspaceId: string, browserSessionId: string, targetId: string, options?: OpenGeniRequestOptions): Promise<BrowserTarget>;
|
|
453
|
+
closeBrowserTarget(workspaceId: string, browserSessionId: string, targetId: string, options?: OpenGeniRequestOptions): Promise<BrowserTargetListResponse>;
|
|
454
|
+
observeBrowserTarget(workspaceId: string, browserSessionId: string, targetId: string, options?: OpenGeniRequestOptions): Promise<BrowserObservation>;
|
|
455
|
+
actInBrowser(workspaceId: string, browserSessionId: string, request: BrowserActionRequest, options?: OpenGeniRequestOptions): Promise<BrowserActionReceipt>;
|
|
456
|
+
getBrowserActionReceipt(workspaceId: string, browserSessionId: string, operationId: string, options?: OpenGeniRequestOptions): Promise<BrowserActionReceipt>;
|
|
457
|
+
listBrowserDiagnostics(workspaceId: string, browserSessionId: string, targetId: string, options?: BrowserDiagnosticsOptions): Promise<BrowserDiagnosticBatch>;
|
|
458
|
+
attachBrowserSession(workspaceId: string, browserSessionId: string, request: BrowserSessionAttachmentRequest, options?: OpenGeniRequestOptions): Promise<BrowserSessionAttachment>;
|
|
459
|
+
heartbeatBrowserSession(workspaceId: string, browserSessionId: string, options?: OpenGeniRequestOptions): Promise<BrowserSessionHeartbeatResponse>;
|
|
460
|
+
publishBrowserRevision(workspaceId: string, browserSessionId: string, request: PublishBrowserRevisionRequest, options?: OpenGeniRequestOptions): Promise<PublishBrowserRevisionResponse>;
|
|
461
|
+
suspendBrowserSession(workspaceId: string, browserSessionId: string, request: BrowserSessionLifecycleRequest, options?: OpenGeniRequestOptions): Promise<BrowserSessionMutationResponse>;
|
|
462
|
+
resumeBrowserSession(workspaceId: string, browserSessionId: string, request: BrowserSessionLifecycleRequest, options?: OpenGeniRequestOptions): Promise<BrowserSessionMutationResponse>;
|
|
463
|
+
endBrowserSession(workspaceId: string, browserSessionId: string, request: BrowserSessionLifecycleRequest, options?: OpenGeniRequestOptions): Promise<BrowserSessionMutationResponse>;
|
|
464
|
+
/** Workspace-wide ComputerSession inventory. Associations express
|
|
465
|
+
* relevance, not access; peer sessions intentionally remain discoverable. */
|
|
466
|
+
listComputerSessions(workspaceId: string, options?: OpenGeniRequestOptions): Promise<ComputerSessionListResponse>;
|
|
467
|
+
getComputerSession(workspaceId: string, computerSessionId: string, options?: OpenGeniRequestOptions): Promise<ComputerSession>;
|
|
468
|
+
createComputerSession(workspaceId: string, request: CreateComputerSessionRequest, options?: OpenGeniRequestOptions): Promise<ComputerSessionMutationResponse>;
|
|
469
|
+
listComputerTargets(workspaceId: string, computerSessionId: string, options?: OpenGeniRequestOptions): Promise<ComputerTargetListResponse>;
|
|
470
|
+
observeComputerTarget(workspaceId: string, computerSessionId: string, targetId: string, options?: OpenGeniRequestOptions): Promise<ComputerObservation>;
|
|
471
|
+
actInComputer(workspaceId: string, computerSessionId: string, request: ComputerActionRequest, options?: OpenGeniRequestOptions): Promise<ComputerActionReceipt>;
|
|
472
|
+
getComputerActionReceipt(workspaceId: string, computerSessionId: string, operationId: string, options?: OpenGeniRequestOptions): Promise<ComputerActionReceipt>;
|
|
473
|
+
attachComputerSession(workspaceId: string, computerSessionId: string, request: ComputerSessionAttachmentRequest, options?: OpenGeniRequestOptions): Promise<ComputerSessionAttachment>;
|
|
474
|
+
heartbeatComputerSession(workspaceId: string, computerSessionId: string, options?: OpenGeniRequestOptions): Promise<ComputerSessionHeartbeatResponse>;
|
|
475
|
+
endComputerSession(workspaceId: string, computerSessionId: string, request: ComputerSessionLifecycleRequest, options?: OpenGeniRequestOptions): Promise<ComputerSessionMutationResponse>;
|
|
409
476
|
/**
|
|
410
477
|
* The deployment's public client bootstrap config: the host-exposed models
|
|
411
478
|
* (provider-grouped in `models`, flat in `allowedModels` for back-compat),
|
|
@@ -441,6 +508,13 @@ export declare class OpenGeniClient {
|
|
|
441
508
|
diffWorkspaceInstructionPolicyRevisions(workspaceId: string, request: WorkspaceInstructionPolicyDiffRequest): Promise<WorkspaceInstructionPolicyDiffResponse>;
|
|
442
509
|
activateWorkspaceInstructionPolicyRevision(workspaceId: string, revisionId: string, request: ActivateWorkspaceInstructionPolicyRequest): Promise<WorkspaceInstructionPolicyActivationResponse>;
|
|
443
510
|
rollbackWorkspaceInstructionPolicyRevision(workspaceId: string, request: RollbackWorkspaceInstructionPolicyRequest): Promise<WorkspaceInstructionPolicyActivationResponse>;
|
|
511
|
+
/** Read the current organization profile plus immutable revision and activation history. */
|
|
512
|
+
listCompanyProfile(workspaceId: string, options?: CompanyProfileListOptions): Promise<CompanyProfileListResponse>;
|
|
513
|
+
getCompanyProfileRevision(workspaceId: string, revisionId: string): Promise<CompanyProfileRevision>;
|
|
514
|
+
updateCompanyProfile(workspaceId: string, request: UpdateCompanyProfileRequest): Promise<CompanyProfileMutationResponse>;
|
|
515
|
+
diffCompanyProfileRevisions(workspaceId: string, request: CompanyProfileDiffRequest): Promise<CompanyProfileDiffResponse>;
|
|
516
|
+
activateCompanyProfileRevision(workspaceId: string, revisionId: string, request: ActivateCompanyProfileRevisionRequest): Promise<CompanyProfileMutationResponse>;
|
|
517
|
+
rollbackCompanyProfile(workspaceId: string, request: RollbackCompanyProfileRequest): Promise<CompanyProfileMutationResponse>;
|
|
444
518
|
listPreferenceRegistry(workspaceId: string, options?: PreferenceRegistryListOptions): Promise<PreferenceRegistryListResponse>;
|
|
445
519
|
getPreferenceRegistry(workspaceId: string, preferenceId: string): Promise<PreferenceRegistryDetailResponse>;
|
|
446
520
|
createPreferenceRegistryProposal(workspaceId: string, request: CreatePreferenceRegistryProposalRequest): Promise<PreferenceRegistryRecord>;
|
|
@@ -470,6 +544,14 @@ export declare class OpenGeniClient {
|
|
|
470
544
|
* member who can still manage the workspace.
|
|
471
545
|
*/
|
|
472
546
|
removeWorkspaceMember(workspaceId: string, subjectId: string): Promise<void>;
|
|
547
|
+
/** Exchange one signed Slack bearer for durable, token-free continuation state. */
|
|
548
|
+
prepareSlackUserLinkAccess(workspaceId: string, request: PrepareSlackUserLinkAccessRequest): Promise<SlackUserLinkAccessRequest>;
|
|
549
|
+
getSlackUserLinkAccess(workspaceId: string, requestId: string): Promise<SlackUserLinkAccessRequest>;
|
|
550
|
+
requestSlackUserLinkWorkspaceAccess(workspaceId: string, requestId: string, request: SlackUserLinkAccessMutationRequest): Promise<SlackUserLinkAccessRequest>;
|
|
551
|
+
cancelSlackUserLinkAccess(workspaceId: string, requestId: string, request: SlackUserLinkAccessMutationRequest): Promise<SlackUserLinkAccessRequest>;
|
|
552
|
+
listSlackUserLinkAccessRequests(workspaceId: string): Promise<SlackUserLinkAccessRequest[]>;
|
|
553
|
+
approveSlackUserLinkAccessRequest(workspaceId: string, requestId: string, request: ApproveSlackUserLinkAccessRequest): Promise<SlackUserLinkAccessRequest>;
|
|
554
|
+
denySlackUserLinkAccessRequest(workspaceId: string, requestId: string, request: SlackUserLinkAccessMutationRequest): Promise<SlackUserLinkAccessRequest>;
|
|
473
555
|
createScheduledTask(workspaceId: string, request: CreateScheduledTaskRequest): Promise<ScheduledTask>;
|
|
474
556
|
updateScheduledTask(workspaceId: string, taskId: string, request: UpdateScheduledTaskRequest): Promise<ScheduledTask>;
|
|
475
557
|
pauseScheduledTask(workspaceId: string, taskId: string): Promise<ScheduledTask>;
|
|
@@ -489,9 +571,10 @@ export declare class OpenGeniClient {
|
|
|
489
571
|
listVariableSets(workspaceId: string): Promise<VariableSet[]>;
|
|
490
572
|
createVariableSet(workspaceId: string, request: CreateVariableSetRequest): Promise<VariableSet>;
|
|
491
573
|
getVariableSet(workspaceId: string, variableSetId: string): Promise<VariableSet>;
|
|
574
|
+
getVariableSetVariable(workspaceId: string, variableSetId: string, name: string): Promise<VariableSetSecret>;
|
|
492
575
|
updateVariableSet(workspaceId: string, variableSetId: string, request: UpdateVariableSetRequest): Promise<VariableSet>;
|
|
493
576
|
deleteVariableSet(workspaceId: string, variableSetId: string): Promise<void>;
|
|
494
|
-
/** Create or rotate a variable.
|
|
577
|
+
/** Create or rotate a variable. Generic reads never return its value. */
|
|
495
578
|
setVariableSetVariable(workspaceId: string, variableSetId: string, name: string, value: string): Promise<VariableSetVariableMetadata>;
|
|
496
579
|
deleteVariableSetVariable(workspaceId: string, variableSetId: string, name: string): Promise<void>;
|
|
497
580
|
listRigs(workspaceId: string): Promise<Rig[]>;
|
|
@@ -542,9 +625,9 @@ export declare class OpenGeniClient {
|
|
|
542
625
|
/** @deprecated use deleteVariableSetVariable */
|
|
543
626
|
deleteEnvironmentVariable(workspaceId: string, environmentId: string, name: string): Promise<void>;
|
|
544
627
|
/** Step 1 of the upload flow: returns the pre-signed PUT target. */
|
|
545
|
-
beginFileUpload(workspaceId: string, request: CreateFileUploadRequest): Promise<CreateFileUploadResponse>;
|
|
628
|
+
beginFileUpload(workspaceId: string, request: CreateFileUploadRequest, options?: OpenGeniRequestOptions): Promise<CreateFileUploadResponse>;
|
|
546
629
|
/** Step 3 of the upload flow: server verifies the object and marks it ready. */
|
|
547
|
-
completeFileUpload(workspaceId: string, uploadId: string): Promise<FileAsset>;
|
|
630
|
+
completeFileUpload(workspaceId: string, uploadId: string, options?: OpenGeniRequestOptions): Promise<FileAsset>;
|
|
548
631
|
/**
|
|
549
632
|
* The whole upload flow as one call: begin -> PUT the bytes to the signed
|
|
550
633
|
* URL (with its required headers; no API auth is sent to object storage)
|
|
@@ -559,8 +642,26 @@ export declare class OpenGeniClient {
|
|
|
559
642
|
* deliberately does not use the ordinary signed file-download URL.
|
|
560
643
|
*/
|
|
561
644
|
getRetainedArtifactContent(workspaceId: string, artifactId: string, options?: RetainedArtifactContentOptions): Promise<RetainedArtifactContent>;
|
|
645
|
+
getSessionRetainedArtifact(workspaceId: string, sessionId: string, artifactId: string): Promise<RetainedArtifactMetadata>;
|
|
646
|
+
getSessionRetainedArtifactContent(workspaceId: string, sessionId: string, artifactId: string, options?: RetainedArtifactContentOptions): Promise<RetainedArtifactContent>;
|
|
647
|
+
/** Assemble one permanent generated-image receipt from bounded authenticated ranges. */
|
|
648
|
+
downloadRetainedArtifact(workspaceId: string, artifact: RetainedArtifactReference, options?: RetainedArtifactDownloadOptions): Promise<RetainedArtifactDownload>;
|
|
649
|
+
/** Mint a short-lived, zero-copy browser source for a validated generated image. */
|
|
650
|
+
createRetainedArtifactDownloadUrl(workspaceId: string, artifact: RetainedArtifactReference, options?: OpenGeniRequestOptions): Promise<FileDownloadUrlResponse>;
|
|
651
|
+
/** Assemble one retained screenshot from bounded authenticated API ranges. */
|
|
652
|
+
downloadRetainedScreenshot(workspaceId: string, sessionId: string, artifactId: string, options?: RetainedScreenshotDownloadOptions): Promise<RetainedScreenshotDownload>;
|
|
653
|
+
private downloadRetainedArtifactBytes;
|
|
654
|
+
private getRetainedArtifactContentAtPath;
|
|
562
655
|
/** Mint a short-lived signed download URL for a ready file. */
|
|
563
|
-
createFileDownloadUrl(workspaceId: string, fileId: string): Promise<FileDownloadUrlResponse>;
|
|
656
|
+
createFileDownloadUrl(workspaceId: string, fileId: string, options?: OpenGeniRequestOptions): Promise<FileDownloadUrlResponse>;
|
|
657
|
+
/** Read the effective workspace policy and executable Seedance capabilities. */
|
|
658
|
+
getVideoGenerationSettings(workspaceId: string, options?: OpenGeniRequestOptions): Promise<WorkspaceVideoGenerationSettings>;
|
|
659
|
+
/** Replace the enabled video models/default under optimistic policy revision control. */
|
|
660
|
+
updateVideoGenerationPolicy(workspaceId: string, request: UpdateVideoGenerationPolicyRequest, options?: OpenGeniRequestOptions): Promise<VideoGenerationPolicy>;
|
|
661
|
+
/** Read durable progress for one accepted video generation operation. */
|
|
662
|
+
getVideoGenerationOperation(workspaceId: string, operationId: string, options?: OpenGeniRequestOptions): Promise<VideoGenerationOperationSummary>;
|
|
663
|
+
/** Mint a short-lived zero-copy URL for native Range-based video playback. */
|
|
664
|
+
createVideoArtifactPlaybackSource(workspaceId: string, artifactId: string, options?: OpenGeniRequestOptions): Promise<VideoArtifactPlaybackSource>;
|
|
564
665
|
createDocumentBase(workspaceId: string, request: CreateDocumentBaseRequest): Promise<DocumentBase>;
|
|
565
666
|
listDocumentBases(workspaceId: string): Promise<DocumentBase[]>;
|
|
566
667
|
getDocumentBase(workspaceId: string, baseId: string): Promise<DocumentBase>;
|
|
@@ -603,6 +704,14 @@ export declare class OpenGeniClient {
|
|
|
603
704
|
registerPack(workspaceId: string, manifest: RegisterCapabilityPackRequest): Promise<WorkspaceRegisteredPack>;
|
|
604
705
|
getPack(workspaceId: string, packId: string): Promise<GetPackResponse>;
|
|
605
706
|
enablePack(workspaceId: string, packId: string, request?: EnablePackRequest): Promise<PackInstallation>;
|
|
707
|
+
/** Resolve pinned components, Variable Set, and Rig requirements before installation. */
|
|
708
|
+
previewPackInstallation(workspaceId: string, packId: string, request?: PreviewPackInstallationRequest): Promise<PackInstallationPreview>;
|
|
709
|
+
/** Install, update, or repair a Pack from an exact previewed manifest. */
|
|
710
|
+
installPack(workspaceId: string, packId: string, request: InstallPackRequest): Promise<PackInstallation>;
|
|
711
|
+
/** Preview which Pack-owned components will be retained by other owners. */
|
|
712
|
+
previewPackUninstall(workspaceId: string, packId: string): Promise<PackUninstallPreview>;
|
|
713
|
+
/** Safely release Pack ownership and disable only now-ownerless components. */
|
|
714
|
+
uninstallPack(workspaceId: string, packId: string, request: UninstallPackRequest): Promise<UninstallPackResult>;
|
|
606
715
|
/** Unregister a workspace-scoped pack (built-in packs cannot be deleted). */
|
|
607
716
|
deletePack(workspaceId: string, packId: string): Promise<void>;
|
|
608
717
|
listPackInstallations(workspaceId: string): Promise<PackInstallation[]>;
|
|
@@ -616,7 +725,49 @@ export declare class OpenGeniClient {
|
|
|
616
725
|
query?: string;
|
|
617
726
|
limit?: number;
|
|
618
727
|
}): Promise<DiscoverMcpCapabilitiesResponse>;
|
|
728
|
+
/** List installed protocol-neutral OpenAPI and GraphQL Integrations. */
|
|
729
|
+
listApiIntegrations(workspaceId: string): Promise<ListApiIntegrationsResponse>;
|
|
730
|
+
/** List curated provider presets without exposing deployment OAuth credentials. */
|
|
731
|
+
listApiIntegrationPresets(workspaceId: string): Promise<ListApiIntegrationPresetsResponse>;
|
|
732
|
+
/** Detect and compile an Integration without mutating workspace state. */
|
|
733
|
+
previewApiIntegration(workspaceId: string, request: PreviewApiIntegrationRequest): Promise<ApiIntegrationPreview>;
|
|
734
|
+
/** Start a signed PKCE OAuth flow for a built-in Google or Microsoft preset. */
|
|
735
|
+
startApiIntegrationOAuth(workspaceId: string, request: ApiIntegrationOAuthStartRequest): Promise<OAuthStartResponse>;
|
|
736
|
+
/** Install only the exact immutable revision and digest accepted in preview. */
|
|
737
|
+
installApiIntegration(workspaceId: string, request: InstallApiIntegrationRequest): Promise<InstalledApiIntegration>;
|
|
738
|
+
previewApiIntegrationUninstall(workspaceId: string, capabilityId: string, instanceKey: string): Promise<ApiIntegrationUninstallPreview>;
|
|
739
|
+
/** Remove one Integration instance without deleting its Connection or sibling instances. */
|
|
740
|
+
uninstallApiIntegration(workspaceId: string, capabilityId: string, instanceKey: string, request: UninstallApiIntegrationRequest): Promise<UninstallApiIntegrationResult>;
|
|
741
|
+
/** List immutable provider facets and their exact per-account bindings. */
|
|
742
|
+
listIntegrationFeatures(workspaceId: string, capabilityId: string, instanceKey: string): Promise<IntegrationInstanceFeaturesResponse>;
|
|
743
|
+
/** Configure or OCC-update one adapter-owned feature on an Integration instance. */
|
|
744
|
+
configureIntegrationFeature(workspaceId: string, capabilityId: string, instanceKey: string, featureKey: string, request: UpsertIntegrationFeatureRequest): Promise<IntegrationFeatureMutationResult>;
|
|
745
|
+
/** Browse source metadata through one exact Google Drive Integration instance. */
|
|
746
|
+
browseGoogleDriveIntegrationSource(workspaceId: string, capabilityId: string, instanceKey: string, featureKey: string, options?: {
|
|
747
|
+
parentId?: string | undefined;
|
|
748
|
+
pageToken?: string | undefined;
|
|
749
|
+
}): Promise<GoogleDriveBrowseResponse>;
|
|
750
|
+
/** Verify and bind document sources to one exact Google Drive Integration instance. */
|
|
751
|
+
saveGoogleDriveIntegrationSource(workspaceId: string, capabilityId: string, instanceKey: string, featureKey: string, request: SaveGoogleDriveIntegrationSourceRequest): Promise<IntegrationFeatureMutationResult>;
|
|
752
|
+
pauseIntegrationFeature(workspaceId: string, capabilityId: string, instanceKey: string, featureKey: string, request: MutateIntegrationFeatureRequest): Promise<IntegrationFeatureMutationResult>;
|
|
753
|
+
resumeIntegrationFeature(workspaceId: string, capabilityId: string, instanceKey: string, featureKey: string, request: MutateIntegrationFeatureRequest): Promise<IntegrationFeatureMutationResult>;
|
|
754
|
+
removeIntegrationFeature(workspaceId: string, capabilityId: string, instanceKey: string, featureKey: string, request: MutateIntegrationFeatureRequest): Promise<IntegrationFeatureRemovalResult>;
|
|
755
|
+
private mutateIntegrationFeatureLifecycle;
|
|
756
|
+
previewPlugin(workspaceId: string, request: PreviewPluginRequest): Promise<PluginPreview>;
|
|
757
|
+
listInstalledPlugins(workspaceId: string): Promise<ListInstalledPluginsResponse>;
|
|
758
|
+
installPlugin(workspaceId: string, request: InstallPluginRequest): Promise<InstalledPlugin>;
|
|
759
|
+
previewPluginUninstall(workspaceId: string, pluginKey: string): Promise<PluginUninstallPreview>;
|
|
760
|
+
uninstallPlugin(workspaceId: string, pluginKey: string, request: UninstallPluginRequest): Promise<UninstallPluginResult>;
|
|
761
|
+
/** Resolve one public skills.sh or GitHub Skill folder to an immutable review preview. */
|
|
762
|
+
previewSkillImport(workspaceId: string, request: PreviewSkillImportRequest): Promise<SkillImportPreview>;
|
|
763
|
+
/** Install only the exact commit and full-content digest accepted during preview. */
|
|
764
|
+
installSkill(workspaceId: string, request: InstallSkillRequest): Promise<InstalledSkill>;
|
|
765
|
+
previewSkillUninstall(workspaceId: string, capabilityId: string): Promise<SkillUninstallPreview>;
|
|
766
|
+
/** Remove the direct owner under an optimistic installation-version fence. */
|
|
767
|
+
uninstallSkill(workspaceId: string, capabilityId: string, request: UninstallSkillRequest): Promise<UninstallSkillResult>;
|
|
619
768
|
listConnections(workspaceId: string): Promise<ConnectionMetadata[]>;
|
|
769
|
+
/** List the secret-free Slack team -> OpenGeni tenant routing authority. */
|
|
770
|
+
listSlackInstallationBindings(workspaceId: string): Promise<SlackInstallationBinding[]>;
|
|
620
771
|
createConnection(workspaceId: string, request: CreateConnectionRequest): Promise<ConnectionMetadata>;
|
|
621
772
|
/** Start the public Slack installation flow for the workspace-shared OpenGeni bot. */
|
|
622
773
|
startOpenGeniSlackBotInstall(workspaceId: string, request?: OpenGeniSlackBotInstallRequest): Promise<OpenGeniSlackBotInstallStart>;
|
|
@@ -640,7 +791,9 @@ export declare class OpenGeniClient {
|
|
|
640
791
|
/** Public, immutably-cached URL for a catalog item's logo, or null when the item has none. */
|
|
641
792
|
catalogAssetUrl(logoAssetPath: string | null): string | null;
|
|
642
793
|
/** GitHub App server configuration plus truthful workspace binding status. */
|
|
643
|
-
getGitHubApp(workspaceId: string
|
|
794
|
+
getGitHubApp(workspaceId: string, options?: {
|
|
795
|
+
returnPath?: string;
|
|
796
|
+
}): Promise<GitHubAppInfo>;
|
|
644
797
|
/** Build the GitHub owner-consent entry URL for fresh workspace-bound state. */
|
|
645
798
|
githubConnectUrl(workspaceId: string, state: string): string;
|
|
646
799
|
listGitHubRepositories(workspaceId: string): Promise<GitHubRepositoriesResponse>;
|
|
@@ -727,7 +880,10 @@ export declare class OpenGeniClient {
|
|
|
727
880
|
pinSessionCodexAccount(workspaceId: string, sessionId: string, target: string): Promise<{
|
|
728
881
|
pinned: string;
|
|
729
882
|
}>;
|
|
730
|
-
|
|
883
|
+
/** Contract-checked JSON transport shared by opt-in typed SDK clients. */
|
|
884
|
+
requestJson<T>(method: string, path: string, body?: unknown, query?: Record<string, string>, options?: OpenGeniRequestOptions): Promise<T>;
|
|
885
|
+
/** Authenticated, contract-checked response for bounded streaming downloads. */
|
|
886
|
+
protected requestResponse(method: string, path: string, query?: Record<string, string>, options?: OpenGeniRequestOptions): Promise<Response>;
|
|
731
887
|
/** Like `requestJson` for endpoints that respond with no body (204). */
|
|
732
888
|
private requestVoid;
|
|
733
889
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { CodexRealtimeV3BridgeSnapshot } from "./codex-realtime-v3";
|
|
2
|
-
import type { SessionRealtimeLifecycleProjection } from "./codex-realtime-lifecycle";
|
|
3
|
-
import type { CodexRealtimeAudibleOutputState, CodexRealtimeConnectionHealth, CodexRealtimeMicrophoneErrorCode, CodexRealtimeWebrtcSession } from "./codex-realtime";
|
|
4
|
-
import type { ActivateCodexRealtimeConnectionRequest, BeginSessionRealtimeRequest, CodexRealtimeWebrtcRequest, CodexRealtimeWebrtcResponse, GatewayRealtimeConnectRequest, GatewayRealtimeConnectResponse, EndSessionRealtimeRequest, RenewSessionRealtimeRequest, SessionRealtimeMode, SessionRealtimeModel, SessionRealtimeMutationResponse, SyncSessionRealtimeLedgerRequest, SyncSessionRealtimeLedgerResponse } from "./types";
|
|
5
|
-
export { projectSessionRealtimeLifecycle } from "./codex-realtime-lifecycle";
|
|
6
|
-
export type { SessionRealtimeLifecycleProjection } from "./codex-realtime-lifecycle";
|
|
1
|
+
import type { CodexRealtimeV3BridgeSnapshot } from "./codex-realtime-v3.js";
|
|
2
|
+
import type { SessionRealtimeLifecycleProjection } from "./codex-realtime-lifecycle.js";
|
|
3
|
+
import type { CodexRealtimeAudibleOutputState, CodexRealtimeConnectionHealth, CodexRealtimeMicrophoneErrorCode, CodexRealtimeWebrtcSession } from "./codex-realtime.js";
|
|
4
|
+
import type { ActivateCodexRealtimeConnectionRequest, BeginSessionRealtimeRequest, CodexRealtimeWebrtcRequest, CodexRealtimeWebrtcResponse, GatewayRealtimeConnectRequest, GatewayRealtimeConnectResponse, EndSessionRealtimeRequest, RenewSessionRealtimeRequest, SessionRealtimeMode, SessionRealtimeModel, SessionRealtimeMutationResponse, SyncSessionRealtimeLedgerRequest, SyncSessionRealtimeLedgerResponse } from "./types.js";
|
|
5
|
+
export { projectSessionRealtimeLifecycle } from "./codex-realtime-lifecycle.js";
|
|
6
|
+
export type { SessionRealtimeLifecycleProjection } from "./codex-realtime-lifecycle.js";
|
|
7
7
|
export declare const CODEX_REALTIME_NEGOTIATION_TIMEOUT_MS = 20000;
|
|
8
8
|
export type CodexRealtimeControllerStatus = "idle" | "starting" | "active" | "stopping" | "recovering" | "lost_owner" | "error";
|
|
9
9
|
export type CodexRealtimeMicrophoneState = "inactive" | "acquiring" | "active" | CodexRealtimeMicrophoneErrorCode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SyncSessionRealtimeLedgerRequest, SyncSessionRealtimeLedgerResponse } from "./types";
|
|
2
|
-
export { CODEX_REALTIME_CONTEXT_APPEND_MAX_BYTES, CODEX_REALTIME_V3_MAX_EVENT_BYTES, CODEX_REALTIME_V3_MAX_IDENTIFIER_BYTES, CODEX_REALTIME_V3_MAX_TEXT_BYTES, contextAppendChunks, encodeCodexRealtimeV3DelegationContextAppend, encodeCodexRealtimeV3SessionContextAppend, parseCodexRealtimeV3Event, } from "./codex-realtime-v3-wire";
|
|
3
|
-
export type { CodexRealtimeV3ContextAppendChannel, CodexRealtimeV3DelegationContextAppend, CodexRealtimeV3Event, CodexRealtimeV3ParseFailure, CodexRealtimeV3ParseResult, CodexRealtimeV3SessionContextAppend, } from "./codex-realtime-v3-wire";
|
|
1
|
+
import type { SyncSessionRealtimeLedgerRequest, SyncSessionRealtimeLedgerResponse } from "./types.js";
|
|
2
|
+
export { CODEX_REALTIME_CONTEXT_APPEND_MAX_BYTES, CODEX_REALTIME_V3_MAX_EVENT_BYTES, CODEX_REALTIME_V3_MAX_IDENTIFIER_BYTES, CODEX_REALTIME_V3_MAX_TEXT_BYTES, contextAppendChunks, encodeCodexRealtimeV3DelegationContextAppend, encodeCodexRealtimeV3SessionContextAppend, parseCodexRealtimeV3Event, } from "./codex-realtime-v3-wire.js";
|
|
3
|
+
export type { CodexRealtimeV3ContextAppendChannel, CodexRealtimeV3DelegationContextAppend, CodexRealtimeV3Event, CodexRealtimeV3ParseFailure, CodexRealtimeV3ParseResult, CodexRealtimeV3SessionContextAppend, } from "./codex-realtime-v3-wire.js";
|
|
4
4
|
export declare const CODEX_REALTIME_V3_SYNC_MAX_ENTRIES = 64;
|
|
5
5
|
export declare const CODEX_REALTIME_V3_PENDING_MAX_ENTRIES = 256;
|
|
6
6
|
export declare const CODEX_REALTIME_V3_PENDING_MAX_BYTES: number;
|
package/dist/codex-realtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CodexRealtimeVoice, CodexRealtimeWebrtcRequest, CodexRealtimeWebrtcResponse } from "./types";
|
|
1
|
+
import type { CodexRealtimeVoice, CodexRealtimeWebrtcRequest, CodexRealtimeWebrtcResponse } from "./types.js";
|
|
2
2
|
export type CodexRealtimeNegotiator = (request: CodexRealtimeWebrtcRequest, options: {
|
|
3
3
|
signal?: AbortSignal | undefined;
|
|
4
4
|
}) => Promise<CodexRealtimeWebrtcResponse>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export declare const COMPANY_PROFILE_SCALAR_MAX_CHARS = 2048;
|
|
2
|
+
export declare const COMPANY_PROFILE_ENTRY_MAX_CHARS = 1024;
|
|
3
|
+
export declare const COMPANY_PROFILE_ENTRY_MAX_COUNT = 16;
|
|
4
|
+
export type CompanyProfileEntry = {
|
|
5
|
+
key: string;
|
|
6
|
+
content: string;
|
|
7
|
+
};
|
|
8
|
+
export type CompanyProfileContent = {
|
|
9
|
+
identity: string | null;
|
|
10
|
+
mission: string | null;
|
|
11
|
+
products: CompanyProfileEntry[];
|
|
12
|
+
customers: CompanyProfileEntry[];
|
|
13
|
+
goals: CompanyProfileEntry[];
|
|
14
|
+
constraints: CompanyProfileEntry[];
|
|
15
|
+
};
|
|
16
|
+
export type CompanyProfileRevisionIdentity = {
|
|
17
|
+
id: string;
|
|
18
|
+
revision: number;
|
|
19
|
+
contentHash: string;
|
|
20
|
+
};
|
|
21
|
+
export type CompanyProfileRevision = CompanyProfileRevisionIdentity & {
|
|
22
|
+
operationId: string;
|
|
23
|
+
accountId: string;
|
|
24
|
+
intent: "active" | "proposal";
|
|
25
|
+
profile: CompanyProfileContent;
|
|
26
|
+
provenance: {
|
|
27
|
+
source: "human" | "durable_learning" | "migration";
|
|
28
|
+
sourceId: string | null;
|
|
29
|
+
};
|
|
30
|
+
supersedesRevisionId: string | null;
|
|
31
|
+
createdBySubjectId: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
};
|
|
34
|
+
export type CompanyProfileHead = {
|
|
35
|
+
accountId: string;
|
|
36
|
+
revisionId: string;
|
|
37
|
+
revision: number;
|
|
38
|
+
contentHash: string;
|
|
39
|
+
activationVersion: number;
|
|
40
|
+
activatedAt: string;
|
|
41
|
+
};
|
|
42
|
+
export type CompanyProfileActivationEvent = {
|
|
43
|
+
id: string;
|
|
44
|
+
operationId: string;
|
|
45
|
+
accountId: string;
|
|
46
|
+
type: "activate" | "rollback";
|
|
47
|
+
activationVersion: number;
|
|
48
|
+
oldRevision: CompanyProfileRevisionIdentity | null;
|
|
49
|
+
newRevision: CompanyProfileRevisionIdentity | null;
|
|
50
|
+
actorSubjectId: string;
|
|
51
|
+
reason: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
};
|
|
54
|
+
export type CompanyProfileListOptions = {
|
|
55
|
+
afterRevision?: number;
|
|
56
|
+
limit?: number;
|
|
57
|
+
};
|
|
58
|
+
export type CompanyProfileListResponse = {
|
|
59
|
+
current: CompanyProfileHead | null;
|
|
60
|
+
activeRevision: CompanyProfileRevision | null;
|
|
61
|
+
revisions: CompanyProfileRevision[];
|
|
62
|
+
activationEvents: CompanyProfileActivationEvent[];
|
|
63
|
+
nextAfterRevision: number | null;
|
|
64
|
+
};
|
|
65
|
+
export type UpdateCompanyProfileRequest = {
|
|
66
|
+
operationId?: string;
|
|
67
|
+
profile: CompanyProfileContent;
|
|
68
|
+
expectedCurrentRevisionId: string | null;
|
|
69
|
+
expectedActivationVersion: number;
|
|
70
|
+
reason: string;
|
|
71
|
+
};
|
|
72
|
+
export type ActivateCompanyProfileRevisionRequest = {
|
|
73
|
+
operationId?: string;
|
|
74
|
+
expectedCurrentRevisionId: string | null;
|
|
75
|
+
expectedActivationVersion: number;
|
|
76
|
+
reason: string;
|
|
77
|
+
};
|
|
78
|
+
export type RollbackCompanyProfileRequest = {
|
|
79
|
+
operationId?: string;
|
|
80
|
+
targetRevisionId: string;
|
|
81
|
+
expectedCurrentRevisionId: string;
|
|
82
|
+
expectedActivationVersion: number;
|
|
83
|
+
reason: string;
|
|
84
|
+
};
|
|
85
|
+
export type CompanyProfileMutationResponse = {
|
|
86
|
+
revision: CompanyProfileRevision | null;
|
|
87
|
+
head: CompanyProfileHead | null;
|
|
88
|
+
event: CompanyProfileActivationEvent | null;
|
|
89
|
+
};
|
|
90
|
+
export type CompanyProfileDiffRequest = {
|
|
91
|
+
fromRevisionId: string;
|
|
92
|
+
toRevisionId: string;
|
|
93
|
+
};
|
|
94
|
+
export type CompanyProfileDiffResponse = {
|
|
95
|
+
from: CompanyProfileRevision;
|
|
96
|
+
to: CompanyProfileRevision;
|
|
97
|
+
format: "unified_json";
|
|
98
|
+
diff: string;
|
|
99
|
+
};
|
|
100
|
+
export declare function normalizeCompanyProfileStableKey(value: string): string;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { OpenGeniClient as OpenGeniCoreClient } from "./client";
|
|
2
|
-
export type { FetchLike, OpenGeniClientOptions, OpenGeniRequestOptions, SendMessageInput, SteerMessageResult, TranscribeAudioInput, WorkspaceControlEventPage, } from "./client";
|
|
3
|
-
export { OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniSessionListCursorError, OpenGeniStreamError, isRetryableStreamError, } from "./errors";
|
|
4
|
-
export { resolveWorkspaceVoiceInputEnabled } from "./transcription";
|
|
5
|
-
export { OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION } from "./types";
|
|
1
|
+
export { OpenGeniClient as OpenGeniCoreClient } from "./client.js";
|
|
2
|
+
export type { FetchLike, OpenGeniClientOptions, OpenGeniRequestOptions, SendMessageInput, SteerMessageResult, TranscribeAudioInput, WorkspaceControlEventPage, } from "./client.js";
|
|
3
|
+
export { OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniSessionListCursorError, OpenGeniStreamError, isRetryableStreamError, } from "./errors.js";
|
|
4
|
+
export { resolveWorkspaceVoiceInputEnabled } from "./transcription.js";
|
|
5
|
+
export { OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION } from "./types.js";
|
package/dist/core.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
OPENGENI_API_CONTRACT_HEADER,
|
|
3
|
-
OPENGENI_API_CONTRACT_REVISION,
|
|
4
|
-
OpenGeniClient,
|
|
5
2
|
resolveWorkspaceVoiceInputEnabled
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VYCTL62C.js";
|
|
4
|
+
import {
|
|
5
|
+
OpenGeniClient
|
|
6
|
+
} from "./chunk-ILQZR5N6.js";
|
|
7
7
|
import {
|
|
8
8
|
OpenGeniApiContractMismatchError,
|
|
9
9
|
OpenGeniApiError,
|
|
@@ -11,6 +11,11 @@ import {
|
|
|
11
11
|
OpenGeniStreamError,
|
|
12
12
|
isRetryableStreamError
|
|
13
13
|
} from "./chunk-V5F253OG.js";
|
|
14
|
+
import "./chunk-MZWTWOX6.js";
|
|
15
|
+
import {
|
|
16
|
+
OPENGENI_API_CONTRACT_HEADER,
|
|
17
|
+
OPENGENI_API_CONTRACT_REVISION
|
|
18
|
+
} from "./chunk-FRJFNDIR.js";
|
|
14
19
|
export {
|
|
15
20
|
OPENGENI_API_CONTRACT_HEADER,
|
|
16
21
|
OPENGENI_API_CONTRACT_REVISION,
|
package/dist/desktop.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DesktopStreamCapability, StreamUrlRotatedPayload } from "./types";
|
|
1
|
+
import type { DesktopStreamCapability, StreamUrlRotatedPayload } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Translate the negotiated desktop capability into the WebSocket URL the noVNC
|
|
4
4
|
* RFB client connects to. The scoped provider token is ALREADY embedded in the
|