@prestyj/voice 4.6.34 → 4.6.35
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/dist/bridges/ezboss.d.cts +2 -3
- package/dist/bridges/ezboss.d.ts +2 -3
- package/dist/bridges/ezcoder-rpc.d.cts +2 -3
- package/dist/bridges/ezcoder-rpc.d.ts +2 -3
- package/dist/index.d.cts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/providers/openai-codex-realtime.d.cts +2 -3
- package/dist/providers/openai-codex-realtime.d.ts +2 -3
- package/dist/providers/openai-realtime.d.cts +2 -3
- package/dist/providers/openai-realtime.d.ts +2 -3
- package/dist/{types-CaNKhyj1.d.cts → types-Dc4Q3Z6X.d.cts} +1 -1
- package/dist/{types-CaNKhyj1.d.ts → types-Dc4Q3Z6X.d.ts} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VoiceBridgeCommand, VoiceBridgeEvent, VoiceTool, JsonObject } from '../
|
|
1
|
+
import { p as VoiceBridgeCommand, q as VoiceBridgeEvent, e as VoiceTool, J as JsonObject } from '../types-Dc4Q3Z6X.cjs';
|
|
2
2
|
|
|
3
3
|
interface EzBossPromptTarget {
|
|
4
4
|
enqueueUserMessage(text: string): Promise<void> | void;
|
|
@@ -10,5 +10,4 @@ interface EzBossBridge {
|
|
|
10
10
|
declare function createEzBossBridge(target: EzBossPromptTarget): EzBossBridge;
|
|
11
11
|
declare function createRelayEzBossTool(send: (command: VoiceBridgeCommand) => Promise<JsonObject>): VoiceTool;
|
|
12
12
|
|
|
13
|
-
export { createEzBossBridge, createRelayEzBossTool };
|
|
14
|
-
export type { EzBossBridge, EzBossPromptTarget };
|
|
13
|
+
export { type EzBossBridge, type EzBossPromptTarget, createEzBossBridge, createRelayEzBossTool };
|
package/dist/bridges/ezboss.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VoiceBridgeCommand, VoiceBridgeEvent, VoiceTool, JsonObject } from '../
|
|
1
|
+
import { p as VoiceBridgeCommand, q as VoiceBridgeEvent, e as VoiceTool, J as JsonObject } from '../types-Dc4Q3Z6X.js';
|
|
2
2
|
|
|
3
3
|
interface EzBossPromptTarget {
|
|
4
4
|
enqueueUserMessage(text: string): Promise<void> | void;
|
|
@@ -10,5 +10,4 @@ interface EzBossBridge {
|
|
|
10
10
|
declare function createEzBossBridge(target: EzBossPromptTarget): EzBossBridge;
|
|
11
11
|
declare function createRelayEzBossTool(send: (command: VoiceBridgeCommand) => Promise<JsonObject>): VoiceTool;
|
|
12
12
|
|
|
13
|
-
export { createEzBossBridge, createRelayEzBossTool };
|
|
14
|
-
export type { EzBossBridge, EzBossPromptTarget };
|
|
13
|
+
export { type EzBossBridge, type EzBossPromptTarget, createEzBossBridge, createRelayEzBossTool };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VoiceBridgeCommand, VoiceTool, JsonObject, VoiceBridgeEvent } from '../
|
|
1
|
+
import { p as VoiceBridgeCommand, e as VoiceTool, J as JsonObject, q as VoiceBridgeEvent } from '../types-Dc4Q3Z6X.cjs';
|
|
2
2
|
|
|
3
3
|
interface EZCoderRpcMessageSink {
|
|
4
4
|
send(message: JsonObject, signal?: AbortSignal): Promise<void>;
|
|
@@ -15,5 +15,4 @@ declare function createEZCoderRpcBridge(options: EZCoderRpcBridgeOptions): EZCod
|
|
|
15
15
|
declare function toEZCoderRpcCommand(id: string, command: VoiceBridgeCommand): JsonObject;
|
|
16
16
|
declare function normalizeEZCoderRpcEvent(message: unknown): VoiceBridgeEvent | null;
|
|
17
17
|
|
|
18
|
-
export { createEZCoderRpcBridge, normalizeEZCoderRpcEvent, toEZCoderRpcCommand };
|
|
19
|
-
export type { EZCoderRpcBridge, EZCoderRpcBridgeOptions, EZCoderRpcMessageSink };
|
|
18
|
+
export { type EZCoderRpcBridge, type EZCoderRpcBridgeOptions, type EZCoderRpcMessageSink, createEZCoderRpcBridge, normalizeEZCoderRpcEvent, toEZCoderRpcCommand };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VoiceBridgeCommand, VoiceTool, JsonObject, VoiceBridgeEvent } from '../
|
|
1
|
+
import { p as VoiceBridgeCommand, e as VoiceTool, J as JsonObject, q as VoiceBridgeEvent } from '../types-Dc4Q3Z6X.js';
|
|
2
2
|
|
|
3
3
|
interface EZCoderRpcMessageSink {
|
|
4
4
|
send(message: JsonObject, signal?: AbortSignal): Promise<void>;
|
|
@@ -15,5 +15,4 @@ declare function createEZCoderRpcBridge(options: EZCoderRpcBridgeOptions): EZCod
|
|
|
15
15
|
declare function toEZCoderRpcCommand(id: string, command: VoiceBridgeCommand): JsonObject;
|
|
16
16
|
declare function normalizeEZCoderRpcEvent(message: unknown): VoiceBridgeEvent | null;
|
|
17
17
|
|
|
18
|
-
export { createEZCoderRpcBridge, normalizeEZCoderRpcEvent, toEZCoderRpcCommand };
|
|
19
|
-
export type { EZCoderRpcBridge, EZCoderRpcBridgeOptions, EZCoderRpcMessageSink };
|
|
18
|
+
export { type EZCoderRpcBridge, type EZCoderRpcBridgeOptions, type EZCoderRpcMessageSink, createEZCoderRpcBridge, normalizeEZCoderRpcEvent, toEZCoderRpcCommand };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { T as ToolConfirmationDecision,
|
|
1
|
+
import { V as VoiceTransport, a as VoiceSessionMetadata, b as VoiceToolResult, A as AudioInputChunk, c as VoiceSessionConfig, d as VoiceSession, e as VoiceTool, f as VoiceToolCall, g as VoiceToolContext, R as RealtimeFunctionToolDefinition, h as VoiceProvider, i as VoiceEvent, j as VoiceProviderConnectOptions, k as AudioOutputChunk, J as JsonObject } from './types-Dc4Q3Z6X.cjs';
|
|
2
|
+
export { T as ToolConfirmationDecision, l as ToolConfirmationPolicy, m as ToolConfirmationRequest, n as ToolConfirmationResolver, o as VoiceAuthConfig, p as VoiceBridgeCommand, q as VoiceBridgeEvent, r as VoiceConnectionState, s as VoiceEventHandler, t as VoiceToolExecutionError, u as VoiceToolExecutionResult, v as VoiceTransportConnectOptions, w as VoiceTransportEvent, x as VoiceTransportEventHandler, y as VoiceTransportSendEvent } from './types-Dc4Q3Z6X.cjs';
|
|
3
3
|
import { AgentTool } from '@prestyj/agent';
|
|
4
4
|
import { Tool } from '@prestyj/ai';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -87,5 +87,4 @@ interface RelayHttpClient {
|
|
|
87
87
|
send(request: RelayRequest, signal?: AbortSignal): Promise<RelayResponse>;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export { AudioInputChunk, AudioOutputChunk, JsonObject, RealtimeFunctionToolDefinition, VoiceEvent, VoiceProvider, VoiceProviderConnectOptions, VoiceSession, VoiceSessionConfig, VoiceSessionMetadata, VoiceTool, VoiceToolCall, VoiceToolContext, VoiceToolResult, VoiceTransport, agentToolToVoiceTool, createInMemoryVoiceProvider, createVoiceSession, executeVoiceToolCall, ggAiToolToRealtimeFunctionTool, ggAiToolToVoiceTool, normalizeVoiceProviderError, voiceToolToRealtimeFunctionTool };
|
|
91
|
-
export type { ExecuteVoiceToolCallOptions, InMemoryVoiceProvider, InMemoryVoiceProviderOptions, InMemoryVoiceSession, OpenUrlRequest, PlatformAudioAdapter, PlatformNotification, PlatformSecureTokenStore, PlatformUrlOpener, RelayHttpClient, RelayRequest, RelayResponse, VoiceSessionControllerOptions, VoiceToolSource };
|
|
90
|
+
export { AudioInputChunk, AudioOutputChunk, type ExecuteVoiceToolCallOptions, type InMemoryVoiceProvider, type InMemoryVoiceProviderOptions, type InMemoryVoiceSession, JsonObject, type OpenUrlRequest, type PlatformAudioAdapter, type PlatformNotification, type PlatformSecureTokenStore, type PlatformUrlOpener, RealtimeFunctionToolDefinition, type RelayHttpClient, type RelayRequest, type RelayResponse, VoiceEvent, VoiceProvider, VoiceProviderConnectOptions, VoiceSession, VoiceSessionConfig, type VoiceSessionControllerOptions, VoiceSessionMetadata, VoiceTool, VoiceToolCall, VoiceToolContext, VoiceToolResult, type VoiceToolSource, VoiceTransport, agentToolToVoiceTool, createInMemoryVoiceProvider, createVoiceSession, executeVoiceToolCall, ggAiToolToRealtimeFunctionTool, ggAiToolToVoiceTool, normalizeVoiceProviderError, voiceToolToRealtimeFunctionTool };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { T as ToolConfirmationDecision,
|
|
1
|
+
import { V as VoiceTransport, a as VoiceSessionMetadata, b as VoiceToolResult, A as AudioInputChunk, c as VoiceSessionConfig, d as VoiceSession, e as VoiceTool, f as VoiceToolCall, g as VoiceToolContext, R as RealtimeFunctionToolDefinition, h as VoiceProvider, i as VoiceEvent, j as VoiceProviderConnectOptions, k as AudioOutputChunk, J as JsonObject } from './types-Dc4Q3Z6X.js';
|
|
2
|
+
export { T as ToolConfirmationDecision, l as ToolConfirmationPolicy, m as ToolConfirmationRequest, n as ToolConfirmationResolver, o as VoiceAuthConfig, p as VoiceBridgeCommand, q as VoiceBridgeEvent, r as VoiceConnectionState, s as VoiceEventHandler, t as VoiceToolExecutionError, u as VoiceToolExecutionResult, v as VoiceTransportConnectOptions, w as VoiceTransportEvent, x as VoiceTransportEventHandler, y as VoiceTransportSendEvent } from './types-Dc4Q3Z6X.js';
|
|
3
3
|
import { AgentTool } from '@prestyj/agent';
|
|
4
4
|
import { Tool } from '@prestyj/ai';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -87,5 +87,4 @@ interface RelayHttpClient {
|
|
|
87
87
|
send(request: RelayRequest, signal?: AbortSignal): Promise<RelayResponse>;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export { AudioInputChunk, AudioOutputChunk, JsonObject, RealtimeFunctionToolDefinition, VoiceEvent, VoiceProvider, VoiceProviderConnectOptions, VoiceSession, VoiceSessionConfig, VoiceSessionMetadata, VoiceTool, VoiceToolCall, VoiceToolContext, VoiceToolResult, VoiceTransport, agentToolToVoiceTool, createInMemoryVoiceProvider, createVoiceSession, executeVoiceToolCall, ggAiToolToRealtimeFunctionTool, ggAiToolToVoiceTool, normalizeVoiceProviderError, voiceToolToRealtimeFunctionTool };
|
|
91
|
-
export type { ExecuteVoiceToolCallOptions, InMemoryVoiceProvider, InMemoryVoiceProviderOptions, InMemoryVoiceSession, OpenUrlRequest, PlatformAudioAdapter, PlatformNotification, PlatformSecureTokenStore, PlatformUrlOpener, RelayHttpClient, RelayRequest, RelayResponse, VoiceSessionControllerOptions, VoiceToolSource };
|
|
90
|
+
export { AudioInputChunk, AudioOutputChunk, type ExecuteVoiceToolCallOptions, type InMemoryVoiceProvider, type InMemoryVoiceProviderOptions, type InMemoryVoiceSession, JsonObject, type OpenUrlRequest, type PlatformAudioAdapter, type PlatformNotification, type PlatformSecureTokenStore, type PlatformUrlOpener, RealtimeFunctionToolDefinition, type RelayHttpClient, type RelayRequest, type RelayResponse, VoiceEvent, VoiceProvider, VoiceProviderConnectOptions, VoiceSession, VoiceSessionConfig, type VoiceSessionControllerOptions, VoiceSessionMetadata, VoiceTool, VoiceToolCall, VoiceToolContext, VoiceToolResult, type VoiceToolSource, VoiceTransport, agentToolToVoiceTool, createInMemoryVoiceProvider, createVoiceSession, executeVoiceToolCall, ggAiToolToRealtimeFunctionTool, ggAiToolToVoiceTool, normalizeVoiceProviderError, voiceToolToRealtimeFunctionTool };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAIRealtimeSessionConfig, OpenAIRealtimeProviderOptions, OpenAIRealtimeCallRequest } from './openai-realtime.cjs';
|
|
2
|
-
import { VoiceProvider, VoiceSessionConfig, JsonObject } from '../
|
|
2
|
+
import { h as VoiceProvider, c as VoiceSessionConfig, J as JsonObject } from '../types-Dc4Q3Z6X.cjs';
|
|
3
3
|
|
|
4
4
|
interface ExperimentalCodexRealtimeProviderOptions extends OpenAIRealtimeProviderOptions {
|
|
5
5
|
readonly baseUrl?: string;
|
|
@@ -12,5 +12,4 @@ declare function createExperimentalCodexRealtimeProvider(options?: ExperimentalC
|
|
|
12
12
|
declare function toExperimentalCodexRealtimeCallRequest(request: OpenAIRealtimeCallRequest): ExperimentalCodexRealtimeCallRequest;
|
|
13
13
|
declare function toExperimentalCodexSessionConfig(config: VoiceSessionConfig): JsonObject;
|
|
14
14
|
|
|
15
|
-
export { createExperimentalCodexRealtimeProvider, toExperimentalCodexRealtimeCallRequest, toExperimentalCodexSessionConfig };
|
|
16
|
-
export type { ExperimentalCodexRealtimeCallRequest, ExperimentalCodexRealtimeProviderOptions };
|
|
15
|
+
export { type ExperimentalCodexRealtimeCallRequest, type ExperimentalCodexRealtimeProviderOptions, createExperimentalCodexRealtimeProvider, toExperimentalCodexRealtimeCallRequest, toExperimentalCodexSessionConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAIRealtimeSessionConfig, OpenAIRealtimeProviderOptions, OpenAIRealtimeCallRequest } from './openai-realtime.js';
|
|
2
|
-
import { VoiceProvider, VoiceSessionConfig, JsonObject } from '../
|
|
2
|
+
import { h as VoiceProvider, c as VoiceSessionConfig, J as JsonObject } from '../types-Dc4Q3Z6X.js';
|
|
3
3
|
|
|
4
4
|
interface ExperimentalCodexRealtimeProviderOptions extends OpenAIRealtimeProviderOptions {
|
|
5
5
|
readonly baseUrl?: string;
|
|
@@ -12,5 +12,4 @@ declare function createExperimentalCodexRealtimeProvider(options?: ExperimentalC
|
|
|
12
12
|
declare function toExperimentalCodexRealtimeCallRequest(request: OpenAIRealtimeCallRequest): ExperimentalCodexRealtimeCallRequest;
|
|
13
13
|
declare function toExperimentalCodexSessionConfig(config: VoiceSessionConfig): JsonObject;
|
|
14
14
|
|
|
15
|
-
export { createExperimentalCodexRealtimeProvider, toExperimentalCodexRealtimeCallRequest, toExperimentalCodexSessionConfig };
|
|
16
|
-
export type { ExperimentalCodexRealtimeCallRequest, ExperimentalCodexRealtimeProviderOptions };
|
|
15
|
+
export { type ExperimentalCodexRealtimeCallRequest, type ExperimentalCodexRealtimeProviderOptions, createExperimentalCodexRealtimeProvider, toExperimentalCodexRealtimeCallRequest, toExperimentalCodexSessionConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonObject, RealtimeFunctionToolDefinition, VoiceProvider, VoiceEvent, VoiceSessionConfig } from '../
|
|
1
|
+
import { J as JsonObject, R as RealtimeFunctionToolDefinition, h as VoiceProvider, i as VoiceEvent, c as VoiceSessionConfig } from '../types-Dc4Q3Z6X.cjs';
|
|
2
2
|
|
|
3
3
|
interface OpenAIRealtimeProviderOptions {
|
|
4
4
|
readonly baseUrl?: string;
|
|
@@ -31,5 +31,4 @@ declare function createOpenAIRealtimeProvider(options?: OpenAIRealtimeProviderOp
|
|
|
31
31
|
declare function toOpenAISessionConfig(config: VoiceSessionConfig): OpenAIRealtimeSessionConfig;
|
|
32
32
|
declare function normalizeOpenAIRealtimeEvent(event: unknown): VoiceEvent | null;
|
|
33
33
|
|
|
34
|
-
export { createOpenAIRealtimeProvider, normalizeOpenAIRealtimeEvent, toOpenAISessionConfig };
|
|
35
|
-
export type { OpenAIClientSecretRequest, OpenAIRealtimeCallRequest, OpenAIRealtimeHttpClient, OpenAIRealtimeProviderOptions, OpenAIRealtimeSessionConfig };
|
|
34
|
+
export { type OpenAIClientSecretRequest, type OpenAIRealtimeCallRequest, type OpenAIRealtimeHttpClient, type OpenAIRealtimeProviderOptions, type OpenAIRealtimeSessionConfig, createOpenAIRealtimeProvider, normalizeOpenAIRealtimeEvent, toOpenAISessionConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonObject, RealtimeFunctionToolDefinition, VoiceProvider, VoiceEvent, VoiceSessionConfig } from '../
|
|
1
|
+
import { J as JsonObject, R as RealtimeFunctionToolDefinition, h as VoiceProvider, i as VoiceEvent, c as VoiceSessionConfig } from '../types-Dc4Q3Z6X.js';
|
|
2
2
|
|
|
3
3
|
interface OpenAIRealtimeProviderOptions {
|
|
4
4
|
readonly baseUrl?: string;
|
|
@@ -31,5 +31,4 @@ declare function createOpenAIRealtimeProvider(options?: OpenAIRealtimeProviderOp
|
|
|
31
31
|
declare function toOpenAISessionConfig(config: VoiceSessionConfig): OpenAIRealtimeSessionConfig;
|
|
32
32
|
declare function normalizeOpenAIRealtimeEvent(event: unknown): VoiceEvent | null;
|
|
33
33
|
|
|
34
|
-
export { createOpenAIRealtimeProvider, normalizeOpenAIRealtimeEvent, toOpenAISessionConfig };
|
|
35
|
-
export type { OpenAIClientSecretRequest, OpenAIRealtimeCallRequest, OpenAIRealtimeHttpClient, OpenAIRealtimeProviderOptions, OpenAIRealtimeSessionConfig };
|
|
34
|
+
export { type OpenAIClientSecretRequest, type OpenAIRealtimeCallRequest, type OpenAIRealtimeHttpClient, type OpenAIRealtimeProviderOptions, type OpenAIRealtimeSessionConfig, createOpenAIRealtimeProvider, normalizeOpenAIRealtimeEvent, toOpenAISessionConfig };
|
|
@@ -254,4 +254,4 @@ type VoiceBridgeEvent = {
|
|
|
254
254
|
readonly sessionId?: string;
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T,
|
|
257
|
+
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T, VoiceTransport as V, VoiceSessionMetadata as a, VoiceToolResult as b, VoiceSessionConfig as c, VoiceSession as d, VoiceTool as e, VoiceToolCall as f, VoiceToolContext as g, VoiceProvider as h, VoiceEvent as i, VoiceProviderConnectOptions as j, AudioOutputChunk as k, ToolConfirmationPolicy as l, ToolConfirmationRequest as m, ToolConfirmationResolver as n, VoiceAuthConfig as o, VoiceBridgeCommand as p, VoiceBridgeEvent as q, VoiceConnectionState as r, VoiceEventHandler as s, VoiceToolExecutionError as t, VoiceToolExecutionResult as u, VoiceTransportConnectOptions as v, VoiceTransportEvent as w, VoiceTransportEventHandler as x, VoiceTransportSendEvent as y };
|
|
@@ -254,4 +254,4 @@ type VoiceBridgeEvent = {
|
|
|
254
254
|
readonly sessionId?: string;
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T,
|
|
257
|
+
export type { AudioInputChunk as A, JsonObject as J, RealtimeFunctionToolDefinition as R, ToolConfirmationDecision as T, VoiceTransport as V, VoiceSessionMetadata as a, VoiceToolResult as b, VoiceSessionConfig as c, VoiceSession as d, VoiceTool as e, VoiceToolCall as f, VoiceToolContext as g, VoiceProvider as h, VoiceEvent as i, VoiceProviderConnectOptions as j, AudioOutputChunk as k, ToolConfirmationPolicy as l, ToolConfirmationRequest as m, ToolConfirmationResolver as n, VoiceAuthConfig as o, VoiceBridgeCommand as p, VoiceBridgeEvent as q, VoiceConnectionState as r, VoiceEventHandler as s, VoiceToolExecutionError as t, VoiceToolExecutionResult as u, VoiceTransportConnectOptions as v, VoiceTransportEvent as w, VoiceTransportEventHandler as x, VoiceTransportSendEvent as y };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prestyj/voice",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.35",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Provider-agnostic realtime voice orchestration for EZ tools and agents",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"zod": "^4.5.4",
|
|
48
|
-
"@prestyj/
|
|
49
|
-
"@prestyj/
|
|
48
|
+
"@prestyj/agent": "5.35.1",
|
|
49
|
+
"@prestyj/ai": "5.35.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "^6.0.3",
|