@opengeni/sdk 0.48.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -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-V5F253OG.js → chunk-GU6JF75T.js} +6 -3
- package/dist/chunk-GU6JF75T.js.map +1 -0
- package/dist/chunk-HJ3HHUT5.js +222 -0
- package/dist/chunk-HJ3HHUT5.js.map +1 -0
- package/dist/{chunk-KIHGPM7H.js → chunk-JDLDDRNE.js} +20 -14
- package/dist/chunk-JDLDDRNE.js.map +1 -0
- package/dist/chunk-JRPFWI6T.js +128 -0
- package/dist/chunk-JRPFWI6T.js.map +1 -0
- package/dist/{chunk-MBGBLVUV.js → chunk-PKQ377ED.js} +1725 -555
- package/dist/chunk-PKQ377ED.js.map +1 -0
- package/dist/chunk-ST5DDKJP.js +987 -0
- package/dist/chunk-ST5DDKJP.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/{chunk-DXDL7EEW.js → chunk-YKZME56C.js} +197 -113
- package/dist/chunk-YKZME56C.js.map +1 -0
- package/dist/client.d.ts +240 -16
- package/dist/codex-realtime-controller.d.ts +9 -6
- package/dist/codex-realtime-controller.js +2 -2
- 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 +10 -5
- package/dist/desktop.d.ts +9 -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 +2 -1
- package/dist/gateway-realtime-transport.js +5 -3
- package/dist/index.d.ts +45 -35
- package/dist/index.js +134 -64
- package/dist/index.js.map +1 -1
- package/dist/interaction-revision-stream.d.ts +11 -0
- package/dist/interaction.d.ts +1484 -0
- package/dist/interaction.js +81 -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 +14 -14
- package/dist/realtime.js +11 -7
- package/dist/realtime.js.map +1 -1
- 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 +1347 -34
- package/dist/workspace-control-stream.d.ts +2 -2
- package/dist/workspace-live-stream.d.ts +14 -0
- 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 +3022 -910
- package/src/codex-realtime-controller.ts +25 -7
- package/src/codex-realtime-lifecycle.ts +1 -0
- package/src/company-profile.ts +92 -0
- package/src/desktop.ts +11 -1
- 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/errors.ts +16 -2
- package/src/gateway-realtime-transport.ts +252 -109
- package/src/index.ts +215 -1
- package/src/interaction-revision-stream.ts +117 -0
- package/src/interaction.ts +2874 -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/realtime.ts +14 -4
- package/src/retained-artifacts.ts +326 -0
- package/src/types.ts +1636 -52
- package/src/workspace-live-stream.ts +137 -0
- package/dist/chunk-DXDL7EEW.js.map +0 -1
- package/dist/chunk-KIHGPM7H.js.map +0 -1
- package/dist/chunk-MBGBLVUV.js.map +0 -1
- package/dist/chunk-V5F253OG.js.map +0 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AttachedBrowserDeviceCollection,
|
|
3
|
+
AttachedBrowserDeviceResource,
|
|
4
|
+
AuthRunCollection,
|
|
5
|
+
AuthRunResource,
|
|
6
|
+
BROWSER_CONTROL_MAX_FRAME_HEADER_BYTES,
|
|
7
|
+
BROWSER_CONTROL_WEBSOCKET_BEARER_PREFIX,
|
|
8
|
+
BROWSER_CONTROL_WEBSOCKET_PROTOCOL,
|
|
9
|
+
BROWSER_FRAME_MAX_BYTES,
|
|
10
|
+
BROWSER_FRAME_MAX_DIMENSION,
|
|
11
|
+
BROWSER_FRAME_MAX_PIXELS,
|
|
12
|
+
BrowserAuthRunCollection,
|
|
13
|
+
BrowserClipboardResource,
|
|
14
|
+
BrowserDownloadCollection,
|
|
15
|
+
BrowserDownloadResource,
|
|
16
|
+
BrowserIdentityCollection,
|
|
17
|
+
BrowserIdentityResource,
|
|
18
|
+
BrowserSessionCollection,
|
|
19
|
+
BrowserSessionResource,
|
|
20
|
+
BrowserTargetCollection,
|
|
21
|
+
COMPUTER_CONTROL_WEBSOCKET_PROTOCOL,
|
|
22
|
+
ComputerClipboardResource,
|
|
23
|
+
ComputerSessionCollection,
|
|
24
|
+
ComputerSessionResource,
|
|
25
|
+
ComputerTargetCollection,
|
|
26
|
+
INTERACTION_PROTOCOL_VERSION,
|
|
27
|
+
InteractionInterventionCollection,
|
|
28
|
+
InteractionInterventionResource,
|
|
29
|
+
NetworkRouteCollection,
|
|
30
|
+
NetworkRouteResource,
|
|
31
|
+
OpenGeniInteractionClient,
|
|
32
|
+
SiteAuthConnectionCollection,
|
|
33
|
+
SiteAuthConnectionResource,
|
|
34
|
+
browserFrameSocketUrl,
|
|
35
|
+
computerFrameSocketUrl,
|
|
36
|
+
decodeBrowserFrameMessage,
|
|
37
|
+
decodeComputerFrameMessage,
|
|
38
|
+
parseBrowserFrameMetadata,
|
|
39
|
+
parseComputerFrameMetadata
|
|
40
|
+
} from "./chunk-ST5DDKJP.js";
|
|
41
|
+
export {
|
|
42
|
+
AttachedBrowserDeviceCollection,
|
|
43
|
+
AttachedBrowserDeviceResource,
|
|
44
|
+
AuthRunCollection,
|
|
45
|
+
AuthRunResource,
|
|
46
|
+
BROWSER_CONTROL_MAX_FRAME_HEADER_BYTES,
|
|
47
|
+
BROWSER_CONTROL_WEBSOCKET_BEARER_PREFIX,
|
|
48
|
+
BROWSER_CONTROL_WEBSOCKET_PROTOCOL,
|
|
49
|
+
BROWSER_FRAME_MAX_BYTES,
|
|
50
|
+
BROWSER_FRAME_MAX_DIMENSION,
|
|
51
|
+
BROWSER_FRAME_MAX_PIXELS,
|
|
52
|
+
BrowserAuthRunCollection,
|
|
53
|
+
BrowserClipboardResource,
|
|
54
|
+
BrowserDownloadCollection,
|
|
55
|
+
BrowserDownloadResource,
|
|
56
|
+
BrowserIdentityCollection,
|
|
57
|
+
BrowserIdentityResource,
|
|
58
|
+
BrowserSessionCollection,
|
|
59
|
+
BrowserSessionResource,
|
|
60
|
+
BrowserTargetCollection,
|
|
61
|
+
COMPUTER_CONTROL_WEBSOCKET_PROTOCOL,
|
|
62
|
+
ComputerClipboardResource,
|
|
63
|
+
ComputerSessionCollection,
|
|
64
|
+
ComputerSessionResource,
|
|
65
|
+
ComputerTargetCollection,
|
|
66
|
+
INTERACTION_PROTOCOL_VERSION,
|
|
67
|
+
InteractionInterventionCollection,
|
|
68
|
+
InteractionInterventionResource,
|
|
69
|
+
NetworkRouteCollection,
|
|
70
|
+
NetworkRouteResource,
|
|
71
|
+
OpenGeniInteractionClient,
|
|
72
|
+
SiteAuthConnectionCollection,
|
|
73
|
+
SiteAuthConnectionResource,
|
|
74
|
+
browserFrameSocketUrl,
|
|
75
|
+
computerFrameSocketUrl,
|
|
76
|
+
decodeBrowserFrameMessage,
|
|
77
|
+
decodeComputerFrameMessage,
|
|
78
|
+
parseBrowserFrameMetadata,
|
|
79
|
+
parseComputerFrameMetadata
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=interaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OpenGeniClient as OpenGeniCoreClient } from "./client.js";
|
|
2
|
+
import type { MemorySlackPublication, MemorySlackPublicationActionRequest, MemorySlackPublicationConfiguration, MemorySlackPublicationConfigurationResponse, MemorySlackPublicationHistoryResponse, SlackPublicationChannelListResponse, UpdateMemorySlackPublicationConfigurationRequest } from "./memory-slack-delivery.js";
|
|
3
|
+
export type OpenGeniMemorySlackTransport = Pick<OpenGeniCoreClient, "requestJson">;
|
|
4
|
+
/** Optional Memory-to-Slack API surface, isolated from the eager core client graph. */
|
|
5
|
+
export declare class OpenGeniMemorySlackClient {
|
|
6
|
+
private readonly client;
|
|
7
|
+
constructor(client: OpenGeniMemorySlackTransport);
|
|
8
|
+
getMemorySlackPublicationConfiguration(workspaceId: string): Promise<MemorySlackPublicationConfigurationResponse>;
|
|
9
|
+
updateMemorySlackPublicationConfiguration(workspaceId: string, request: UpdateMemorySlackPublicationConfigurationRequest): Promise<MemorySlackPublicationConfiguration>;
|
|
10
|
+
listMemorySlackPublicationChannels(workspaceId: string, connectionId: string, cursor?: string): Promise<SlackPublicationChannelListResponse>;
|
|
11
|
+
listMemorySlackPublications(workspaceId: string): Promise<MemorySlackPublicationHistoryResponse>;
|
|
12
|
+
actOnMemorySlackPublication(workspaceId: string, publicationId: string, request: MemorySlackPublicationActionRequest): Promise<MemorySlackPublication>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export type MemorySlackImportance = "major" | "normal" | "minor";
|
|
2
|
+
export type MemorySlackRequestedMode = "auto" | "review" | "never";
|
|
3
|
+
export type MemorySlackPublicationDistribution = {
|
|
4
|
+
importance: MemorySlackImportance;
|
|
5
|
+
audience: "workspace";
|
|
6
|
+
slackMode: MemorySlackRequestedMode;
|
|
7
|
+
shareSummary: string;
|
|
8
|
+
};
|
|
9
|
+
export type MemorySlackPublicationConfiguration = {
|
|
10
|
+
id: string;
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
revision: number;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
connectionId: string | null;
|
|
15
|
+
slackTeamId: string | null;
|
|
16
|
+
slackChannelId: string | null;
|
|
17
|
+
slackChannelName: string | null;
|
|
18
|
+
autoImportances: MemorySlackImportance[];
|
|
19
|
+
reviewImportances: MemorySlackImportance[];
|
|
20
|
+
createdBySubjectId: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
};
|
|
23
|
+
export type UpdateMemorySlackPublicationConfigurationRequest = {
|
|
24
|
+
expectedRevision: number;
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
connectionId: string | null;
|
|
27
|
+
slackChannelId: string | null;
|
|
28
|
+
slackChannelName: string | null;
|
|
29
|
+
autoImportances: MemorySlackImportance[];
|
|
30
|
+
reviewImportances: MemorySlackImportance[];
|
|
31
|
+
};
|
|
32
|
+
export type MemorySlackPublicationConfigurationResponse = {
|
|
33
|
+
current: MemorySlackPublicationConfiguration | null;
|
|
34
|
+
history: MemorySlackPublicationConfiguration[];
|
|
35
|
+
};
|
|
36
|
+
export type MemorySlackPublicationState = "review_pending" | "queued" | "delivering" | "retry_wait" | "delivered" | "rejected" | "failed" | "cancelled";
|
|
37
|
+
export type MemorySlackPublicationReceiptKind = "enqueued" | "review_approved" | "review_rejected" | "delivery_claimed" | "retry_scheduled" | "delivered" | "failed" | "cancelled" | "manual_retry";
|
|
38
|
+
export type MemorySlackPublicationReceipt = {
|
|
39
|
+
id: string;
|
|
40
|
+
publicationId: string;
|
|
41
|
+
sequence: number;
|
|
42
|
+
kind: MemorySlackPublicationReceiptKind;
|
|
43
|
+
state: MemorySlackPublicationState;
|
|
44
|
+
attemptNumber: number;
|
|
45
|
+
actorKind: "human" | "agent" | "service";
|
|
46
|
+
actorSubjectId: string;
|
|
47
|
+
operationId: string;
|
|
48
|
+
errorCode: string | null;
|
|
49
|
+
retryAt: string | null;
|
|
50
|
+
slackChannelId: string | null;
|
|
51
|
+
slackMessageTimestamp: string | null;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
};
|
|
54
|
+
export type MemorySlackPublication = {
|
|
55
|
+
id: string;
|
|
56
|
+
workspaceId: string;
|
|
57
|
+
configurationRevision: number;
|
|
58
|
+
connectionId: string;
|
|
59
|
+
slackTeamId: string;
|
|
60
|
+
slackChannelId: string;
|
|
61
|
+
sourceType: "workspace_memory" | "durable_learning";
|
|
62
|
+
sourceId: string;
|
|
63
|
+
sourceVersion: string | null;
|
|
64
|
+
importance: MemorySlackImportance;
|
|
65
|
+
deliveryMode: "auto" | "review";
|
|
66
|
+
state: MemorySlackPublicationState;
|
|
67
|
+
summary: string;
|
|
68
|
+
sourceLabel: string;
|
|
69
|
+
authoritativePath: string | null;
|
|
70
|
+
initiatorKind: "human" | "agent" | "service";
|
|
71
|
+
initiatorSubjectId: string;
|
|
72
|
+
initiatingHumanSubjectId: string | null;
|
|
73
|
+
attemptCount: number;
|
|
74
|
+
retryAt: string | null;
|
|
75
|
+
lastErrorCode: string | null;
|
|
76
|
+
slackMessageTimestamp: string | null;
|
|
77
|
+
deliveredAt: string | null;
|
|
78
|
+
terminalAt: string | null;
|
|
79
|
+
createdAt: string;
|
|
80
|
+
updatedAt: string;
|
|
81
|
+
receipts: MemorySlackPublicationReceipt[];
|
|
82
|
+
};
|
|
83
|
+
export type MemorySlackPublicationHistoryResponse = {
|
|
84
|
+
publications: MemorySlackPublication[];
|
|
85
|
+
nextCursor: string | null;
|
|
86
|
+
};
|
|
87
|
+
export type MemorySlackPublicationActionRequest = {
|
|
88
|
+
action: "approve" | "reject" | "retry";
|
|
89
|
+
expectedState: MemorySlackPublicationState;
|
|
90
|
+
};
|
|
91
|
+
export type SlackPublicationChannel = {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string | null;
|
|
94
|
+
isPrivate: boolean;
|
|
95
|
+
};
|
|
96
|
+
export type SlackPublicationChannelListResponse = {
|
|
97
|
+
channels: SlackPublicationChannel[];
|
|
98
|
+
nextCursor: string | null;
|
|
99
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Optional Memory-to-Slack API client; import this entry only where the capability is used. */
|
|
2
|
+
export { OpenGeniMemorySlackClient } from "./memory-slack-client.js";
|
|
3
|
+
export type { OpenGeniMemorySlackTransport } from "./memory-slack-client.js";
|
|
4
|
+
export type { MemorySlackImportance, MemorySlackPublication, MemorySlackPublicationActionRequest, MemorySlackPublicationConfiguration, MemorySlackPublicationConfigurationResponse, MemorySlackPublicationDistribution, MemorySlackPublicationHistoryResponse, MemorySlackPublicationReceipt, MemorySlackPublicationReceiptKind, MemorySlackPublicationState, MemorySlackRequestedMode, SlackPublicationChannel, SlackPublicationChannelListResponse, UpdateMemorySlackPublicationConfigurationRequest, } from "./memory-slack-delivery.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/memory-slack-client.ts
|
|
2
|
+
var OpenGeniMemorySlackClient = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async getMemorySlackPublicationConfiguration(workspaceId) {
|
|
7
|
+
return await this.client.requestJson(
|
|
8
|
+
"GET",
|
|
9
|
+
`/v1/workspaces/${workspaceId}/memory-slack-publications/configuration`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
async updateMemorySlackPublicationConfiguration(workspaceId, request) {
|
|
13
|
+
return await this.client.requestJson(
|
|
14
|
+
"PUT",
|
|
15
|
+
`/v1/workspaces/${workspaceId}/memory-slack-publications/configuration`,
|
|
16
|
+
request
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
async listMemorySlackPublicationChannels(workspaceId, connectionId, cursor) {
|
|
20
|
+
const query = new URLSearchParams({ connectionId });
|
|
21
|
+
if (cursor) query.set("cursor", cursor);
|
|
22
|
+
return await this.client.requestJson(
|
|
23
|
+
"GET",
|
|
24
|
+
`/v1/workspaces/${workspaceId}/memory-slack-publications/channels?${query}`
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
async listMemorySlackPublications(workspaceId) {
|
|
28
|
+
return await this.client.requestJson(
|
|
29
|
+
"GET",
|
|
30
|
+
`/v1/workspaces/${workspaceId}/memory-slack-publications`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
async actOnMemorySlackPublication(workspaceId, publicationId, request) {
|
|
34
|
+
return await this.client.requestJson(
|
|
35
|
+
"POST",
|
|
36
|
+
`/v1/workspaces/${workspaceId}/memory-slack-publications/${encodeURIComponent(publicationId)}/action`,
|
|
37
|
+
request
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
OpenGeniMemorySlackClient
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=memory-slack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/memory-slack-client.ts"],"sourcesContent":["import type { OpenGeniClient as OpenGeniCoreClient } from \"./client\";\nimport type {\n MemorySlackPublication,\n MemorySlackPublicationActionRequest,\n MemorySlackPublicationConfiguration,\n MemorySlackPublicationConfigurationResponse,\n MemorySlackPublicationHistoryResponse,\n SlackPublicationChannelListResponse,\n UpdateMemorySlackPublicationConfigurationRequest,\n} from \"./memory-slack-delivery\";\n\nexport type OpenGeniMemorySlackTransport = Pick<OpenGeniCoreClient, \"requestJson\">;\n\n/** Optional Memory-to-Slack API surface, isolated from the eager core client graph. */\nexport class OpenGeniMemorySlackClient {\n constructor(private readonly client: OpenGeniMemorySlackTransport) {}\n\n async getMemorySlackPublicationConfiguration(\n workspaceId: string,\n ): Promise<MemorySlackPublicationConfigurationResponse> {\n return await this.client.requestJson<MemorySlackPublicationConfigurationResponse>(\n \"GET\",\n `/v1/workspaces/${workspaceId}/memory-slack-publications/configuration`,\n );\n }\n\n async updateMemorySlackPublicationConfiguration(\n workspaceId: string,\n request: UpdateMemorySlackPublicationConfigurationRequest,\n ): Promise<MemorySlackPublicationConfiguration> {\n return await this.client.requestJson<MemorySlackPublicationConfiguration>(\n \"PUT\",\n `/v1/workspaces/${workspaceId}/memory-slack-publications/configuration`,\n request,\n );\n }\n\n async listMemorySlackPublicationChannels(\n workspaceId: string,\n connectionId: string,\n cursor?: string,\n ): Promise<SlackPublicationChannelListResponse> {\n const query = new URLSearchParams({ connectionId });\n if (cursor) query.set(\"cursor\", cursor);\n return await this.client.requestJson<SlackPublicationChannelListResponse>(\n \"GET\",\n `/v1/workspaces/${workspaceId}/memory-slack-publications/channels?${query}`,\n );\n }\n\n async listMemorySlackPublications(\n workspaceId: string,\n ): Promise<MemorySlackPublicationHistoryResponse> {\n return await this.client.requestJson<MemorySlackPublicationHistoryResponse>(\n \"GET\",\n `/v1/workspaces/${workspaceId}/memory-slack-publications`,\n );\n }\n\n async actOnMemorySlackPublication(\n workspaceId: string,\n publicationId: string,\n request: MemorySlackPublicationActionRequest,\n ): Promise<MemorySlackPublication> {\n return await this.client.requestJson<MemorySlackPublication>(\n \"POST\",\n `/v1/workspaces/${workspaceId}/memory-slack-publications/${encodeURIComponent(publicationId)}/action`,\n request,\n );\n }\n}\n"],"mappings":";AAcO,IAAM,4BAAN,MAAgC;AAAA,EACrC,YAA6B,QAAsC;AAAtC;AAAA,EAAuC;AAAA,EAEpE,MAAM,uCACJ,aACsD;AACtD,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,WAAW;AAAA,IAC/B;AAAA,EACF;AAAA,EAEA,MAAM,0CACJ,aACA,SAC8C;AAC9C,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,WAAW;AAAA,MAC7B;AAAA,IACF;AAAA,EACF;AAAA,EAEA,MAAM,mCACJ,aACA,cACA,QAC8C;AAC9C,UAAM,QAAQ,IAAI,gBAAgB,EAAE,aAAa,CAAC;AAClD,QAAI,OAAQ,OAAM,IAAI,UAAU,MAAM;AACtC,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,WAAW,uCAAuC,KAAK;AAAA,IAC3E;AAAA,EACF;AAAA,EAEA,MAAM,4BACJ,aACgD;AAChD,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,WAAW;AAAA,IAC/B;AAAA,EACF;AAAA,EAEA,MAAM,4BACJ,aACA,eACA,SACiC;AACjC,WAAO,MAAM,KAAK,OAAO;AAAA,MACvB;AAAA,MACA,kBAAkB,WAAW,8BAA8B,mBAAmB,aAAa,CAAC;AAAA,MAC5F;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/proxy.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OpenGeniClient } from "./client";
|
|
2
|
-
import type { StreamSessionEventsOptions } from "./stream";
|
|
3
|
-
import type { SessionEvent } from "./types";
|
|
1
|
+
import type { OpenGeniClient } from "./client.js";
|
|
2
|
+
import type { StreamSessionEventsOptions } from "./stream.js";
|
|
3
|
+
import type { SessionEvent } from "./types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Proxy-through-your-own-API helpers.
|
|
6
6
|
*
|
package/dist/realtime.d.ts
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
* Import this subpath lazily in browser applications. The base `@opengeni/sdk`
|
|
5
5
|
* entry remains free of eager realtime transport initialization.
|
|
6
6
|
*/
|
|
7
|
-
import { createCodexRealtimeController, hasStoredSessionRealtimeOwnerProof, sessionRealtimeOwnerStorageKey, sessionRealtimeOwnerStorageNamespace, type CodexRealtimeController, type CodexRealtimeControllerClient, type CodexRealtimeControllerSnapshot, type CodexRealtimeControllerStatus, type CodexRealtimeDiagnostic, type CodexRealtimeDiagnosticKind, type CodexRealtimeMicrophoneState, type CodexRealtimeOwnerStorage, type CreateCodexRealtimeControllerOptions, type RealtimeControllerTransportStarter } from "./codex-realtime-controller";
|
|
8
|
-
import { createGatewayRealtimeTransportStarter } from "./gateway-realtime-transport";
|
|
9
|
-
import type { SessionRealtimeModel, WorkspaceRealtimeModelCatalogResponse } from "./types";
|
|
7
|
+
import { createCodexRealtimeController, hasStoredSessionRealtimeOwnerProof, sessionRealtimeOwnerStorageKey, sessionRealtimeOwnerStorageNamespace, type CodexRealtimeController, type CodexRealtimeControllerClient, type CodexRealtimeControllerSnapshot, type CodexRealtimeControllerStatus, type CodexRealtimeDiagnostic, type CodexRealtimeDiagnosticKind, type CodexRealtimeMicrophoneState, type CodexRealtimeOwnerStorage, type CreateCodexRealtimeControllerOptions, type RealtimeControllerTransportStarter } from "./codex-realtime-controller.js";
|
|
8
|
+
import { createGatewayRealtimeTransportStarter, createXaiSubscriptionRealtimeTransportStarter } from "./gateway-realtime-transport.js";
|
|
9
|
+
import type { SessionRealtimeModel, WorkspaceRealtimeModelCatalogResponse } from "./types.js";
|
|
10
10
|
/** Exact backend-facing methods required by the batteries-included realtime SDK. */
|
|
11
11
|
export type SessionRealtimeClientLike = CodexRealtimeControllerClient & {
|
|
12
12
|
getWorkspaceRealtimeModelCatalog(workspaceId: string): Promise<WorkspaceRealtimeModelCatalogResponse>;
|
|
13
13
|
};
|
|
14
|
-
export type SessionRealtimeTransportKind = "codex" | "gateway";
|
|
14
|
+
export type SessionRealtimeTransportKind = "codex" | "gateway" | "xai-subscription";
|
|
15
15
|
/** Provider-neutral names for the existing, battle-tested controller projection. */
|
|
16
16
|
export type SessionRealtimeController = CodexRealtimeController;
|
|
17
17
|
export type SessionRealtimeControllerSnapshot = CodexRealtimeControllerSnapshot;
|
|
@@ -32,14 +32,14 @@ export declare function sessionRealtimeTransportKind(model: SessionRealtimeModel
|
|
|
32
32
|
* semantics remain owned by the existing implementations below this facade.
|
|
33
33
|
*/
|
|
34
34
|
export declare function createSessionRealtimeController(options: CreateSessionRealtimeControllerOptions): SessionRealtimeController;
|
|
35
|
-
export { createCodexRealtimeController, createGatewayRealtimeTransportStarter, hasStoredSessionRealtimeOwnerProof, sessionRealtimeOwnerStorageKey, sessionRealtimeOwnerStorageNamespace, };
|
|
35
|
+
export { createCodexRealtimeController, createGatewayRealtimeTransportStarter, createXaiSubscriptionRealtimeTransportStarter, hasStoredSessionRealtimeOwnerProof, sessionRealtimeOwnerStorageKey, sessionRealtimeOwnerStorageNamespace, };
|
|
36
36
|
export type { CodexRealtimeController, CodexRealtimeControllerClient, CodexRealtimeControllerSnapshot, CodexRealtimeControllerStatus, CodexRealtimeDiagnostic, CodexRealtimeDiagnosticKind, CodexRealtimeMicrophoneState, CodexRealtimeOwnerStorage, CreateCodexRealtimeControllerOptions, RealtimeControllerTransportStarter, };
|
|
37
|
-
export { CODEX_REALTIME_NEGOTIATION_TIMEOUT_MS, projectSessionRealtimeLifecycle, } from "./codex-realtime-controller";
|
|
38
|
-
export type { SessionRealtimeLifecycleProjection } from "./codex-realtime-lifecycle";
|
|
39
|
-
export { CodexRealtimeMicrophoneError, acquireCodexRealtimeMicrophone, codexRealtimeMicrophoneHealthy, startCodexRealtimeWebrtc, } from "./codex-realtime";
|
|
40
|
-
export type { AcquireCodexRealtimeMicrophoneOptions, CodexRealtimeAudibleOutputState, CodexRealtimeConnectionHealth, CodexRealtimeMicrophoneErrorCode, CodexRealtimeNegotiator, CodexRealtimeWebrtcSession, StartCodexRealtimeWebrtcOptions, } from "./codex-realtime";
|
|
41
|
-
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, CODEX_REALTIME_V3_PENDING_MAX_BYTES, CODEX_REALTIME_V3_PENDING_MAX_ENTRIES, CODEX_REALTIME_V3_SYNC_MAX_ENTRIES, contextAppendChunks, createCodexRealtimeV3Bridge, encodeCodexRealtimeV3DelegationContextAppend, encodeCodexRealtimeV3SessionContextAppend, parseCodexRealtimeV3Event, } from "./codex-realtime-v3";
|
|
42
|
-
export type { CodexRealtimeV3Bridge, CodexRealtimeV3BridgeFatal, CodexRealtimeV3BridgeOptions, CodexRealtimeV3BridgeSnapshot, CodexRealtimeV3ContextAppendChannel, CodexRealtimeV3DelegationContextAppend, CodexRealtimeV3Event, CodexRealtimeV3ParseFailure, CodexRealtimeV3ParseResult, CodexRealtimeV3SessionContextAppend, } from "./codex-realtime-v3";
|
|
43
|
-
export { CODEX_REALTIME_INITIAL_ITEMS_MAX_COUNT, CODEX_REALTIME_INITIAL_ITEMS_MAX_TOKENS, } from "./codex-realtime-v3-wire";
|
|
44
|
-
export type { CodexRealtimeInitialItem } from "./codex-realtime-v3-wire";
|
|
45
|
-
export type { ActivateCodexRealtimeConnectionRequest, BeginSessionRealtimeRequest, CodexRealtimeVoice, CodexRealtimeWebrtcRequest, CodexRealtimeWebrtcResponse, CodexRealtimeWebrtcVersion, EndSessionRealtimeRequest, GatewayRealtimeConnectRequest, GatewayRealtimeConnectResponse, GatewayRealtimeInitialItem, RenewSessionRealtimeRequest, SessionRealtimeEndReason, SessionRealtimeLedgerEntry, SessionRealtimeMode, SessionRealtimeModel, SessionRealtimeMutationResponse, SessionRealtimeState, SyncSessionRealtimeLedgerRequest, SyncSessionRealtimeLedgerResponse, WorkspaceRealtimeModelCatalogItem, WorkspaceRealtimeModelCatalogResponse, } from "./types";
|
|
37
|
+
export { CODEX_REALTIME_NEGOTIATION_TIMEOUT_MS, projectSessionRealtimeLifecycle, } from "./codex-realtime-controller.js";
|
|
38
|
+
export type { SessionRealtimeLifecycleProjection } from "./codex-realtime-lifecycle.js";
|
|
39
|
+
export { CodexRealtimeMicrophoneError, acquireCodexRealtimeMicrophone, codexRealtimeMicrophoneHealthy, startCodexRealtimeWebrtc, } from "./codex-realtime.js";
|
|
40
|
+
export type { AcquireCodexRealtimeMicrophoneOptions, CodexRealtimeAudibleOutputState, CodexRealtimeConnectionHealth, CodexRealtimeMicrophoneErrorCode, CodexRealtimeNegotiator, CodexRealtimeWebrtcSession, StartCodexRealtimeWebrtcOptions, } from "./codex-realtime.js";
|
|
41
|
+
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, CODEX_REALTIME_V3_PENDING_MAX_BYTES, CODEX_REALTIME_V3_PENDING_MAX_ENTRIES, CODEX_REALTIME_V3_SYNC_MAX_ENTRIES, contextAppendChunks, createCodexRealtimeV3Bridge, encodeCodexRealtimeV3DelegationContextAppend, encodeCodexRealtimeV3SessionContextAppend, parseCodexRealtimeV3Event, } from "./codex-realtime-v3.js";
|
|
42
|
+
export type { CodexRealtimeV3Bridge, CodexRealtimeV3BridgeFatal, CodexRealtimeV3BridgeOptions, CodexRealtimeV3BridgeSnapshot, CodexRealtimeV3ContextAppendChannel, CodexRealtimeV3DelegationContextAppend, CodexRealtimeV3Event, CodexRealtimeV3ParseFailure, CodexRealtimeV3ParseResult, CodexRealtimeV3SessionContextAppend, } from "./codex-realtime-v3.js";
|
|
43
|
+
export { CODEX_REALTIME_INITIAL_ITEMS_MAX_COUNT, CODEX_REALTIME_INITIAL_ITEMS_MAX_TOKENS, } from "./codex-realtime-v3-wire.js";
|
|
44
|
+
export type { CodexRealtimeInitialItem } from "./codex-realtime-v3-wire.js";
|
|
45
|
+
export type { ActivateCodexRealtimeConnectionRequest, BeginSessionRealtimeRequest, CodexRealtimeVoice, CodexRealtimeWebrtcRequest, CodexRealtimeWebrtcResponse, CodexRealtimeWebrtcVersion, EndSessionRealtimeRequest, GatewayRealtimeConnectRequest, GatewayRealtimeConnectResponse, GatewayRealtimeInitialItem, RenewSessionRealtimeRequest, SessionRealtimeEndReason, SessionRealtimeLedgerEntry, SessionRealtimeMode, SessionRealtimeModel, SessionRealtimeMutationResponse, SessionRealtimeState, SyncSessionRealtimeLedgerRequest, SyncSessionRealtimeLedgerResponse, WorkspaceRealtimeModelCatalogItem, WorkspaceRealtimeModelCatalogResponse, } from "./types.js";
|
package/dist/realtime.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createGatewayRealtimeTransportStarter,
|
|
3
|
+
createXaiSubscriptionRealtimeTransportStarter
|
|
4
|
+
} from "./chunk-YKZME56C.js";
|
|
1
5
|
import {
|
|
2
6
|
CODEX_REALTIME_CONTEXT_APPEND_MAX_BYTES,
|
|
3
7
|
CODEX_REALTIME_INITIAL_ITEMS_MAX_COUNT,
|
|
@@ -23,22 +27,21 @@ import {
|
|
|
23
27
|
sessionRealtimeOwnerStorageKey,
|
|
24
28
|
sessionRealtimeOwnerStorageNamespace,
|
|
25
29
|
startCodexRealtimeWebrtc
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
createGatewayRealtimeTransportStarter
|
|
30
|
-
} from "./chunk-DXDL7EEW.js";
|
|
30
|
+
} from "./chunk-JDLDDRNE.js";
|
|
31
|
+
import "./chunk-GU6JF75T.js";
|
|
31
32
|
|
|
32
33
|
// src/realtime.ts
|
|
33
34
|
function sessionRealtimeTransportKind(model) {
|
|
34
|
-
|
|
35
|
+
if (model === "gpt-live-1-boulder-alpha") return "codex";
|
|
36
|
+
if (model === "supergrok/grok-voice-think-fast-2.0") return "xai-subscription";
|
|
37
|
+
return "gateway";
|
|
35
38
|
}
|
|
36
39
|
function createSessionRealtimeController(options) {
|
|
37
40
|
const transport = sessionRealtimeTransportKind(options.model);
|
|
38
41
|
return createCodexRealtimeController({
|
|
39
42
|
...options,
|
|
40
43
|
ownerStorageNamespace: sessionRealtimeOwnerStorageNamespace(options.model),
|
|
41
|
-
...transport === "gateway" ? { startTransport: createGatewayRealtimeTransportStarter() } : {}
|
|
44
|
+
...transport === "gateway" ? { startTransport: createGatewayRealtimeTransportStarter() } : transport === "xai-subscription" ? { startTransport: createXaiSubscriptionRealtimeTransportStarter() } : {}
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
47
|
export {
|
|
@@ -60,6 +63,7 @@ export {
|
|
|
60
63
|
createCodexRealtimeV3Bridge,
|
|
61
64
|
createGatewayRealtimeTransportStarter,
|
|
62
65
|
createSessionRealtimeController,
|
|
66
|
+
createXaiSubscriptionRealtimeTransportStarter,
|
|
63
67
|
encodeCodexRealtimeV3DelegationContextAppend,
|
|
64
68
|
encodeCodexRealtimeV3SessionContextAppend,
|
|
65
69
|
hasStoredSessionRealtimeOwnerProof,
|
package/dist/realtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/realtime.ts"],"sourcesContent":["/**\n * Public, provider-neutral realtime browser SDK.\n *\n * Import this subpath lazily in browser applications. The base `@opengeni/sdk`\n * entry remains free of eager realtime transport initialization.\n */\nimport {\n createCodexRealtimeController,\n hasStoredSessionRealtimeOwnerProof,\n sessionRealtimeOwnerStorageKey,\n sessionRealtimeOwnerStorageNamespace,\n type CodexRealtimeController,\n type CodexRealtimeControllerClient,\n type CodexRealtimeControllerSnapshot,\n type CodexRealtimeControllerStatus,\n type CodexRealtimeDiagnostic,\n type CodexRealtimeDiagnosticKind,\n type CodexRealtimeMicrophoneState,\n type CodexRealtimeOwnerStorage,\n type CreateCodexRealtimeControllerOptions,\n type RealtimeControllerTransportStarter,\n} from \"./codex-realtime-controller\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../src/realtime.ts"],"sourcesContent":["/**\n * Public, provider-neutral realtime browser SDK.\n *\n * Import this subpath lazily in browser applications. The base `@opengeni/sdk`\n * entry remains free of eager realtime transport initialization.\n */\nimport {\n createCodexRealtimeController,\n hasStoredSessionRealtimeOwnerProof,\n sessionRealtimeOwnerStorageKey,\n sessionRealtimeOwnerStorageNamespace,\n type CodexRealtimeController,\n type CodexRealtimeControllerClient,\n type CodexRealtimeControllerSnapshot,\n type CodexRealtimeControllerStatus,\n type CodexRealtimeDiagnostic,\n type CodexRealtimeDiagnosticKind,\n type CodexRealtimeMicrophoneState,\n type CodexRealtimeOwnerStorage,\n type CreateCodexRealtimeControllerOptions,\n type RealtimeControllerTransportStarter,\n} from \"./codex-realtime-controller\";\nimport {\n createGatewayRealtimeTransportStarter,\n createXaiSubscriptionRealtimeTransportStarter,\n} from \"./gateway-realtime-transport\";\nimport type { SessionRealtimeModel, WorkspaceRealtimeModelCatalogResponse } from \"./types\";\n\n/** Exact backend-facing methods required by the batteries-included realtime SDK. */\nexport type SessionRealtimeClientLike = CodexRealtimeControllerClient & {\n getWorkspaceRealtimeModelCatalog(\n workspaceId: string,\n ): Promise<WorkspaceRealtimeModelCatalogResponse>;\n};\n\nexport type SessionRealtimeTransportKind = \"codex\" | \"gateway\" | \"xai-subscription\";\n\n/** Provider-neutral names for the existing, battle-tested controller projection. */\nexport type SessionRealtimeController = CodexRealtimeController;\nexport type SessionRealtimeControllerSnapshot = CodexRealtimeControllerSnapshot;\nexport type SessionRealtimeControllerStatus = CodexRealtimeControllerStatus;\nexport type SessionRealtimeDiagnostic = CodexRealtimeDiagnostic;\nexport type SessionRealtimeDiagnosticKind = CodexRealtimeDiagnosticKind;\nexport type SessionRealtimeMicrophoneState = CodexRealtimeMicrophoneState;\nexport type SessionRealtimeOwnerStorage = CodexRealtimeOwnerStorage;\n\nexport type CreateSessionRealtimeControllerOptions = Omit<\n CreateCodexRealtimeControllerOptions,\n \"client\" | \"model\" | \"ownerStorageNamespace\" | \"startTransport\"\n> & {\n client: CodexRealtimeControllerClient;\n model: SessionRealtimeModel;\n};\n\n/** Select the existing transport without exposing provider mechanics to hosts. */\nexport function sessionRealtimeTransportKind(\n model: SessionRealtimeModel,\n): SessionRealtimeTransportKind {\n if (model === \"gpt-live-1-boulder-alpha\") return \"codex\";\n if (model === \"supergrok/grok-voice-think-fast-2.0\") return \"xai-subscription\";\n return \"gateway\";\n}\n\n/**\n * Compose the exact current controller with its existing Codex Live or AI\n * Gateway transport. Wire, ledger, delegation, recovery, and lifecycle\n * semantics remain owned by the existing implementations below this facade.\n */\nexport function createSessionRealtimeController(\n options: CreateSessionRealtimeControllerOptions,\n): SessionRealtimeController {\n const transport = sessionRealtimeTransportKind(options.model);\n return createCodexRealtimeController({\n ...options,\n ownerStorageNamespace: sessionRealtimeOwnerStorageNamespace(options.model),\n ...(transport === \"gateway\"\n ? { startTransport: createGatewayRealtimeTransportStarter() }\n : transport === \"xai-subscription\"\n ? { startTransport: createXaiSubscriptionRealtimeTransportStarter() }\n : {}),\n });\n}\n\nexport {\n createCodexRealtimeController,\n createGatewayRealtimeTransportStarter,\n createXaiSubscriptionRealtimeTransportStarter,\n hasStoredSessionRealtimeOwnerProof,\n sessionRealtimeOwnerStorageKey,\n sessionRealtimeOwnerStorageNamespace,\n};\nexport type {\n CodexRealtimeController,\n CodexRealtimeControllerClient,\n CodexRealtimeControllerSnapshot,\n CodexRealtimeControllerStatus,\n CodexRealtimeDiagnostic,\n CodexRealtimeDiagnosticKind,\n CodexRealtimeMicrophoneState,\n CodexRealtimeOwnerStorage,\n CreateCodexRealtimeControllerOptions,\n RealtimeControllerTransportStarter,\n};\n\nexport {\n CODEX_REALTIME_NEGOTIATION_TIMEOUT_MS,\n projectSessionRealtimeLifecycle,\n} from \"./codex-realtime-controller\";\nexport type { SessionRealtimeLifecycleProjection } from \"./codex-realtime-lifecycle\";\n\nexport {\n CodexRealtimeMicrophoneError,\n acquireCodexRealtimeMicrophone,\n codexRealtimeMicrophoneHealthy,\n startCodexRealtimeWebrtc,\n} from \"./codex-realtime\";\nexport type {\n AcquireCodexRealtimeMicrophoneOptions,\n CodexRealtimeAudibleOutputState,\n CodexRealtimeConnectionHealth,\n CodexRealtimeMicrophoneErrorCode,\n CodexRealtimeNegotiator,\n CodexRealtimeWebrtcSession,\n StartCodexRealtimeWebrtcOptions,\n} from \"./codex-realtime\";\n\nexport {\n CODEX_REALTIME_CONTEXT_APPEND_MAX_BYTES,\n CODEX_REALTIME_V3_MAX_EVENT_BYTES,\n CODEX_REALTIME_V3_MAX_IDENTIFIER_BYTES,\n CODEX_REALTIME_V3_MAX_TEXT_BYTES,\n CODEX_REALTIME_V3_PENDING_MAX_BYTES,\n CODEX_REALTIME_V3_PENDING_MAX_ENTRIES,\n CODEX_REALTIME_V3_SYNC_MAX_ENTRIES,\n contextAppendChunks,\n createCodexRealtimeV3Bridge,\n encodeCodexRealtimeV3DelegationContextAppend,\n encodeCodexRealtimeV3SessionContextAppend,\n parseCodexRealtimeV3Event,\n} from \"./codex-realtime-v3\";\nexport type {\n CodexRealtimeV3Bridge,\n CodexRealtimeV3BridgeFatal,\n CodexRealtimeV3BridgeOptions,\n CodexRealtimeV3BridgeSnapshot,\n CodexRealtimeV3ContextAppendChannel,\n CodexRealtimeV3DelegationContextAppend,\n CodexRealtimeV3Event,\n CodexRealtimeV3ParseFailure,\n CodexRealtimeV3ParseResult,\n CodexRealtimeV3SessionContextAppend,\n} from \"./codex-realtime-v3\";\n\nexport {\n CODEX_REALTIME_INITIAL_ITEMS_MAX_COUNT,\n CODEX_REALTIME_INITIAL_ITEMS_MAX_TOKENS,\n} from \"./codex-realtime-v3-wire\";\nexport type { CodexRealtimeInitialItem } from \"./codex-realtime-v3-wire\";\n\nexport type {\n ActivateCodexRealtimeConnectionRequest,\n BeginSessionRealtimeRequest,\n CodexRealtimeVoice,\n CodexRealtimeWebrtcRequest,\n CodexRealtimeWebrtcResponse,\n CodexRealtimeWebrtcVersion,\n EndSessionRealtimeRequest,\n GatewayRealtimeConnectRequest,\n GatewayRealtimeConnectResponse,\n GatewayRealtimeInitialItem,\n RenewSessionRealtimeRequest,\n SessionRealtimeEndReason,\n SessionRealtimeLedgerEntry,\n SessionRealtimeMode,\n SessionRealtimeModel,\n SessionRealtimeMutationResponse,\n SessionRealtimeState,\n SyncSessionRealtimeLedgerRequest,\n SyncSessionRealtimeLedgerResponse,\n WorkspaceRealtimeModelCatalogItem,\n WorkspaceRealtimeModelCatalogResponse,\n} from \"./types\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDO,SAAS,6BACd,OAC8B;AAC9B,MAAI,UAAU,2BAA4B,QAAO;AACjD,MAAI,UAAU,sCAAuC,QAAO;AAC5D,SAAO;AACT;AAOO,SAAS,gCACd,SAC2B;AAC3B,QAAM,YAAY,6BAA6B,QAAQ,KAAK;AAC5D,SAAO,8BAA8B;AAAA,IACnC,GAAG;AAAA,IACH,uBAAuB,qCAAqC,QAAQ,KAAK;AAAA,IACzE,GAAI,cAAc,YACd,EAAE,gBAAgB,sCAAsC,EAAE,IAC1D,cAAc,qBACZ,EAAE,gBAAgB,8CAA8C,EAAE,IAClE,CAAC;AAAA,EACT,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GeneratedImageReceipt, GeneratedVideoReceipt, MediaGenerationResult, RetainedArtifactReference } from "./types.js";
|
|
2
|
+
/** Zero-dependency validation for the SDK's permanent generated-image wire receipt. */
|
|
3
|
+
export declare function parseRetainedGeneratedImageReference(value: unknown, expectedWorkspaceId?: string): RetainedArtifactReference | null;
|
|
4
|
+
export declare function generatedImageSandboxPathMatches(artifact: RetainedArtifactReference, sandboxPath: unknown): sandboxPath is string;
|
|
5
|
+
/** Parse the complete closed generated-image tool result. */
|
|
6
|
+
export declare function parseGeneratedImageReceipt(value: unknown, expectedWorkspaceId?: string): GeneratedImageReceipt | null;
|
|
7
|
+
/** Zero-dependency validation for a permanent generated-video reference. */
|
|
8
|
+
export declare function parseRetainedGeneratedVideoReference(value: unknown, expectedWorkspaceId?: string): RetainedArtifactReference | null;
|
|
9
|
+
/** Parse the compact successful video result placed in model/timeline history. */
|
|
10
|
+
export declare function parseGeneratedVideoReceipt(value: unknown, expectedWorkspaceId?: string): GeneratedVideoReceipt | null;
|
|
11
|
+
/** Parse one closed terminal envelope; failures never fabricate an artifact. */
|
|
12
|
+
export declare function parseMediaGenerationResult(value: unknown, expectedWorkspaceId?: string): MediaGenerationResult | null;
|
package/dist/stream.d.ts
CHANGED
package/dist/terminal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TerminalCapability } from "./types";
|
|
1
|
+
import type { TerminalCapability } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Translate the negotiated `pty-ws` Terminal capability into the WebSocket URL
|
|
4
4
|
* the ttyd client dials. The scoped provider token is ALREADY embedded in the
|