@opengeni/sdk 0.48.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 +93 -1
- 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-MBGBLVUV.js → chunk-ILQZR5N6.js} +1088 -577
- 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 +150 -16
- 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 +1 -1
- package/dist/terminal.d.ts +1 -1
- package/dist/types.d.ts +1128 -18
- 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 +1511 -200
- 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 +185 -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/types.ts +1343 -28
- package/dist/chunk-MBGBLVUV.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;
|
|
@@ -81,6 +88,8 @@ export declare class OpenGeniClient {
|
|
|
81
88
|
private readonly fetchImpl;
|
|
82
89
|
private readonly readInFlight;
|
|
83
90
|
private readonly readTrailing;
|
|
91
|
+
/** Resource-oriented Browser/Computer facade over this exact authenticated client. */
|
|
92
|
+
readonly interaction: OpenGeniInteractionClient;
|
|
84
93
|
constructor(options: OpenGeniClientOptions);
|
|
85
94
|
/** Make one finalization attempt for a recording; callers may retry retained audio. */
|
|
86
95
|
transcribeAudio(workspaceId: string, input: TranscribeAudioInput): Promise<TranscribeAudioResponse>;
|
|
@@ -128,6 +137,13 @@ export declare class OpenGeniClient {
|
|
|
128
137
|
/** Return only the complete personal pinned projection. */
|
|
129
138
|
pinsOnly?: boolean;
|
|
130
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>;
|
|
131
147
|
/** Set this authenticated member's personal workspace pin for a session. */
|
|
132
148
|
updateSessionPin(workspaceId: string, sessionId: string, request: UpdateSessionPinRequest): Promise<Session>;
|
|
133
149
|
getSessionLineage(workspaceId: string, sessionId: string): Promise<SessionLineageResponse>;
|
|
@@ -408,13 +424,11 @@ export declare class OpenGeniClient {
|
|
|
408
424
|
* The desktop viewer-attach path returns 409 until this is recorded. */
|
|
409
425
|
acknowledgeStream(workspaceId: string, sessionId: string, request?: AcknowledgeStreamRequest): Promise<AcknowledgeStreamResponse>;
|
|
410
426
|
/** Attach a viewer holder (refcounted liveness — keeps the box warm while
|
|
411
|
-
* watched/used), spinning the box up in-process when cold
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
* (`desktop` omitted/false) warms the box + mints the pty-ws terminal cell with
|
|
417
|
-
* 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. */
|
|
418
432
|
attachViewer(workspaceId: string, sessionId: string, request?: AttachViewerRequest): Promise<AttachViewerResponse>;
|
|
419
433
|
/** Heartbeat a viewer holder (Channel-A app-level liveness). A closed laptop
|
|
420
434
|
* stops sending these → the reaper drops the holder within ~90s. Echoes
|
|
@@ -422,6 +436,43 @@ export declare class OpenGeniClient {
|
|
|
422
436
|
heartbeatViewer(workspaceId: string, sessionId: string, viewerId: string, request: ViewerHeartbeatRequest): Promise<ViewerHeartbeatResponse>;
|
|
423
437
|
/** Detach a viewer (delete this holder; idempotent delete-my-row). */
|
|
424
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>;
|
|
425
476
|
/**
|
|
426
477
|
* The deployment's public client bootstrap config: the host-exposed models
|
|
427
478
|
* (provider-grouped in `models`, flat in `allowedModels` for back-compat),
|
|
@@ -457,6 +508,13 @@ export declare class OpenGeniClient {
|
|
|
457
508
|
diffWorkspaceInstructionPolicyRevisions(workspaceId: string, request: WorkspaceInstructionPolicyDiffRequest): Promise<WorkspaceInstructionPolicyDiffResponse>;
|
|
458
509
|
activateWorkspaceInstructionPolicyRevision(workspaceId: string, revisionId: string, request: ActivateWorkspaceInstructionPolicyRequest): Promise<WorkspaceInstructionPolicyActivationResponse>;
|
|
459
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>;
|
|
460
518
|
listPreferenceRegistry(workspaceId: string, options?: PreferenceRegistryListOptions): Promise<PreferenceRegistryListResponse>;
|
|
461
519
|
getPreferenceRegistry(workspaceId: string, preferenceId: string): Promise<PreferenceRegistryDetailResponse>;
|
|
462
520
|
createPreferenceRegistryProposal(workspaceId: string, request: CreatePreferenceRegistryProposalRequest): Promise<PreferenceRegistryRecord>;
|
|
@@ -486,6 +544,14 @@ export declare class OpenGeniClient {
|
|
|
486
544
|
* member who can still manage the workspace.
|
|
487
545
|
*/
|
|
488
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>;
|
|
489
555
|
createScheduledTask(workspaceId: string, request: CreateScheduledTaskRequest): Promise<ScheduledTask>;
|
|
490
556
|
updateScheduledTask(workspaceId: string, taskId: string, request: UpdateScheduledTaskRequest): Promise<ScheduledTask>;
|
|
491
557
|
pauseScheduledTask(workspaceId: string, taskId: string): Promise<ScheduledTask>;
|
|
@@ -578,11 +644,24 @@ export declare class OpenGeniClient {
|
|
|
578
644
|
getRetainedArtifactContent(workspaceId: string, artifactId: string, options?: RetainedArtifactContentOptions): Promise<RetainedArtifactContent>;
|
|
579
645
|
getSessionRetainedArtifact(workspaceId: string, sessionId: string, artifactId: string): Promise<RetainedArtifactMetadata>;
|
|
580
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>;
|
|
581
651
|
/** Assemble one retained screenshot from bounded authenticated API ranges. */
|
|
582
652
|
downloadRetainedScreenshot(workspaceId: string, sessionId: string, artifactId: string, options?: RetainedScreenshotDownloadOptions): Promise<RetainedScreenshotDownload>;
|
|
653
|
+
private downloadRetainedArtifactBytes;
|
|
583
654
|
private getRetainedArtifactContentAtPath;
|
|
584
655
|
/** Mint a short-lived signed download URL for a ready file. */
|
|
585
|
-
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>;
|
|
586
665
|
createDocumentBase(workspaceId: string, request: CreateDocumentBaseRequest): Promise<DocumentBase>;
|
|
587
666
|
listDocumentBases(workspaceId: string): Promise<DocumentBase[]>;
|
|
588
667
|
getDocumentBase(workspaceId: string, baseId: string): Promise<DocumentBase>;
|
|
@@ -625,6 +704,14 @@ export declare class OpenGeniClient {
|
|
|
625
704
|
registerPack(workspaceId: string, manifest: RegisterCapabilityPackRequest): Promise<WorkspaceRegisteredPack>;
|
|
626
705
|
getPack(workspaceId: string, packId: string): Promise<GetPackResponse>;
|
|
627
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>;
|
|
628
715
|
/** Unregister a workspace-scoped pack (built-in packs cannot be deleted). */
|
|
629
716
|
deletePack(workspaceId: string, packId: string): Promise<void>;
|
|
630
717
|
listPackInstallations(workspaceId: string): Promise<PackInstallation[]>;
|
|
@@ -638,7 +725,49 @@ export declare class OpenGeniClient {
|
|
|
638
725
|
query?: string;
|
|
639
726
|
limit?: number;
|
|
640
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>;
|
|
641
768
|
listConnections(workspaceId: string): Promise<ConnectionMetadata[]>;
|
|
769
|
+
/** List the secret-free Slack team -> OpenGeni tenant routing authority. */
|
|
770
|
+
listSlackInstallationBindings(workspaceId: string): Promise<SlackInstallationBinding[]>;
|
|
642
771
|
createConnection(workspaceId: string, request: CreateConnectionRequest): Promise<ConnectionMetadata>;
|
|
643
772
|
/** Start the public Slack installation flow for the workspace-shared OpenGeni bot. */
|
|
644
773
|
startOpenGeniSlackBotInstall(workspaceId: string, request?: OpenGeniSlackBotInstallRequest): Promise<OpenGeniSlackBotInstallStart>;
|
|
@@ -662,7 +791,9 @@ export declare class OpenGeniClient {
|
|
|
662
791
|
/** Public, immutably-cached URL for a catalog item's logo, or null when the item has none. */
|
|
663
792
|
catalogAssetUrl(logoAssetPath: string | null): string | null;
|
|
664
793
|
/** GitHub App server configuration plus truthful workspace binding status. */
|
|
665
|
-
getGitHubApp(workspaceId: string
|
|
794
|
+
getGitHubApp(workspaceId: string, options?: {
|
|
795
|
+
returnPath?: string;
|
|
796
|
+
}): Promise<GitHubAppInfo>;
|
|
666
797
|
/** Build the GitHub owner-consent entry URL for fresh workspace-bound state. */
|
|
667
798
|
githubConnectUrl(workspaceId: string, state: string): string;
|
|
668
799
|
listGitHubRepositories(workspaceId: string): Promise<GitHubRepositoriesResponse>;
|
|
@@ -749,7 +880,10 @@ export declare class OpenGeniClient {
|
|
|
749
880
|
pinSessionCodexAccount(workspaceId: string, sessionId: string, target: string): Promise<{
|
|
750
881
|
pinned: string;
|
|
751
882
|
}>;
|
|
752
|
-
|
|
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>;
|
|
753
887
|
/** Like `requestJson` for endpoints that respond with no body (204). */
|
|
754
888
|
private requestVoid;
|
|
755
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
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { OpenGeniRequestOptions } from "./client.js";
|
|
2
|
+
import type { EditableArtifactModality } from "./editable-artifacts/types.js";
|
|
3
|
+
/** Durable metadata returned by the editable-artifact product API. */
|
|
4
|
+
export type EditableArtifactResource = Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
modality: EditableArtifactModality;
|
|
7
|
+
title: string;
|
|
8
|
+
lifecycle: "active" | "archived";
|
|
9
|
+
headSequence: number;
|
|
10
|
+
stateHash: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
}>;
|
|
14
|
+
export type EditableArtifactListResource = Readonly<{
|
|
15
|
+
artifacts: readonly EditableArtifactResource[];
|
|
16
|
+
}>;
|
|
17
|
+
export type CreateEditableArtifactResourceRequest = Readonly<{
|
|
18
|
+
/** Stable across transport retries; conflicting reuse is rejected. */
|
|
19
|
+
idempotencyKey: string;
|
|
20
|
+
/** Exact writer replica that will open the first live editing session. */
|
|
21
|
+
replicaId: string;
|
|
22
|
+
modality: EditableArtifactModality;
|
|
23
|
+
title: string;
|
|
24
|
+
}>;
|
|
25
|
+
export type ImportEditableArtifactResourceRequest = Readonly<{
|
|
26
|
+
idempotencyKey: string;
|
|
27
|
+
replicaId: string;
|
|
28
|
+
modality: EditableArtifactModality;
|
|
29
|
+
title: string;
|
|
30
|
+
sourceFileId: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type ReadEditableArtifactResourceOptions = OpenGeniRequestOptions & Readonly<{
|
|
33
|
+
/** Writer/read replica used to mint artifact-scoped authority. */
|
|
34
|
+
replicaId: string;
|
|
35
|
+
}>;
|
|
36
|
+
export type ListSessionEditableArtifactResourcesOptions = OpenGeniRequestOptions & Readonly<{
|
|
37
|
+
replicaId: string;
|
|
38
|
+
}>;
|
|
39
|
+
export type EditableArtifactMaterializationFormat = "xlsx" | "pptx" | "docx" | "pdf" | "png" | "webp";
|
|
40
|
+
export type EditableArtifactPinnedVersionResource = Readonly<{
|
|
41
|
+
id: string;
|
|
42
|
+
artifactId: string;
|
|
43
|
+
modality: EditableArtifactModality;
|
|
44
|
+
snapshotId: string;
|
|
45
|
+
headSequence: number;
|
|
46
|
+
causalFrontier: readonly Readonly<{
|
|
47
|
+
replicaId: string;
|
|
48
|
+
counter: number;
|
|
49
|
+
}>[] | null;
|
|
50
|
+
nativeRevision: number | null;
|
|
51
|
+
stateHash: string;
|
|
52
|
+
name: string;
|
|
53
|
+
pinned: true;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
replayed: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
export type PinEditableArtifactVersionRequest = Readonly<{
|
|
58
|
+
replicaId: string;
|
|
59
|
+
idempotencyKey: string;
|
|
60
|
+
name: string;
|
|
61
|
+
}>;
|
|
62
|
+
export type EditableArtifactMaterializationResultResource = Readonly<{
|
|
63
|
+
id: string;
|
|
64
|
+
byteSize: number;
|
|
65
|
+
contentHash: string;
|
|
66
|
+
mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/pdf" | "image/png" | "image/webp";
|
|
67
|
+
verifiedAt: string;
|
|
68
|
+
createdAt: string;
|
|
69
|
+
}>;
|
|
70
|
+
export type EditableArtifactMaterializationJobResource = Readonly<{
|
|
71
|
+
id: string;
|
|
72
|
+
artifactId: string;
|
|
73
|
+
versionId: string;
|
|
74
|
+
inputSnapshotId: string;
|
|
75
|
+
targetHeadSequence: number;
|
|
76
|
+
stateHash: string;
|
|
77
|
+
format: EditableArtifactMaterializationFormat;
|
|
78
|
+
state: "pending" | "running" | "succeeded" | "failed";
|
|
79
|
+
attemptCount: number;
|
|
80
|
+
errorCode: string | null;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
startedAt: string | null;
|
|
83
|
+
completedAt: string | null;
|
|
84
|
+
result: EditableArtifactMaterializationResultResource | null;
|
|
85
|
+
replayed?: boolean;
|
|
86
|
+
}>;
|
|
87
|
+
export type CreateEditableArtifactMaterializationRequest = Readonly<{
|
|
88
|
+
replicaId: string;
|
|
89
|
+
idempotencyKey: string;
|
|
90
|
+
versionId: string;
|
|
91
|
+
format: EditableArtifactMaterializationFormat;
|
|
92
|
+
options?: Readonly<Record<string, unknown>>;
|
|
93
|
+
}>;
|
|
94
|
+
export type ReadEditableArtifactMaterializationOptions = OpenGeniRequestOptions & Readonly<{
|
|
95
|
+
replicaId: string;
|
|
96
|
+
}>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { EditableArtifactCacheAuthority } from "./controller.js";
|
|
2
|
+
import { type CreateEditableArtifactHttpLiveTransportOptions } from "./http-live-transport.js";
|
|
3
|
+
import { type EditableArtifactSession } from "./session.js";
|
|
4
|
+
import type { EditableArtifactStoragePort } from "./storage.js";
|
|
5
|
+
import type { EditableArtifactModality } from "./types.js";
|
|
6
|
+
import { type CreateBrowserEditableArtifactWorkerKernelOptions } from "./worker/browser-client.js";
|
|
7
|
+
export type EditableArtifactBrowserRuntime = Omit<CreateBrowserEditableArtifactWorkerKernelOptions, "modality" | "kernelVersion" | "protocolVersion" | "modelSchemaVersion" | "commandVersion"> & Readonly<{
|
|
8
|
+
/** Exact native/WASM build identity admitted by the API. */
|
|
9
|
+
kernelVersion: string;
|
|
10
|
+
modelSchemaVersion: number;
|
|
11
|
+
protocolVersion?: number;
|
|
12
|
+
commandVersion: number;
|
|
13
|
+
}>;
|
|
14
|
+
export type CreateBrowserEditableArtifactSessionOptions = Readonly<{
|
|
15
|
+
baseUrl: string | URL;
|
|
16
|
+
workspaceId: string;
|
|
17
|
+
artifact: Readonly<{
|
|
18
|
+
id: string;
|
|
19
|
+
modality: EditableArtifactModality;
|
|
20
|
+
}>;
|
|
21
|
+
/** Exact login/grant partition; rotate authorizationEpoch on authority changes. */
|
|
22
|
+
storageAuthority: EditableArtifactCacheAuthority;
|
|
23
|
+
runtime: EditableArtifactBrowserRuntime;
|
|
24
|
+
transport?: Omit<CreateEditableArtifactHttpLiveTransportOptions, "baseUrl" | "workspaceId" | "protocolVersion" | "kernelVersion" | "modelSchemaVersion">;
|
|
25
|
+
storage?: EditableArtifactStoragePort;
|
|
26
|
+
/** Reuse the replica used to create the artifact when opening it immediately. */
|
|
27
|
+
replicaId?: string;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* One production browser composition point: verified WASM Worker, durable WAL,
|
|
31
|
+
* authenticated HTTP/WebSocket transport, replay, and modality projections.
|
|
32
|
+
*/
|
|
33
|
+
export declare function createBrowserEditableArtifactSession(options: CreateBrowserEditableArtifactSessionOptions): EditableArtifactSession;
|
|
34
|
+
/** Generates the portable 64-bit nonzero replica identity used by create/open. */
|
|
35
|
+
export declare function createEditableArtifactReplicaId(): string;
|