@mastra/voice-openai-realtime 0.14.1-alpha.0 → 0.14.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/dist/_types/@internal_voice/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +4 -4
- package/dist/_types/@internal_voice/dist/index.d.ts +2 -2
- package/dist/_types/@internal_voice/dist/voice/aisdk/speech.d.ts +1 -1
- package/dist/_types/@internal_voice/dist/voice/aisdk/transcription.d.ts +1 -1
- package/dist/_types/@internal_voice/dist/voice/composite-voice.d.ts +2 -2
- package/dist/_types/@internal_voice/dist/voice/voice.d.ts +2 -2
- package/dist/_types/@internal_voice/package.json +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/utils.d.ts +1 -1
- package/package.json +5 -5
- package/dist/_types/@internal_voice/dist/_types/zod/v3/index.d.cts +0 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JSONSchema7 } from 'json-schema';
|
|
2
2
|
import { ServerResponse } from 'node:http';
|
|
3
3
|
import { ServerResponse as ServerResponse_2 } from 'http';
|
|
4
|
-
import { z } from '../../zod/v4/index.
|
|
5
|
-
import * as z3 from '../../zod/v3/index.
|
|
6
|
-
import * as z4 from '../../zod/v4/index.
|
|
7
|
-
import { ZodType } from '../../zod/v4/index.
|
|
4
|
+
import { z } from '../../zod/v4/index.cjs';
|
|
5
|
+
import * as z3 from '../../zod/v3/index.cjs';
|
|
6
|
+
import * as z4 from '../../zod/v4/index.cjs';
|
|
7
|
+
import { ZodType } from '../../zod/v4/index.cjs';
|
|
8
8
|
|
|
9
9
|
export declare abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
|
|
10
10
|
readonly id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './voice/index.js';
|
|
2
|
-
export type { RequestContext } from './_types/@internal_core/dist/request-context/index.
|
|
3
|
-
export type { ToolsInput } from './_types/@internal_core/dist/types/index.
|
|
2
|
+
export type { RequestContext } from './_types/@internal_core/dist/request-context/index.js';
|
|
3
|
+
export type { ToolsInput } from './_types/@internal_core/dist/types/index.js';
|
|
4
4
|
type InferToolInput<TInputSchema> = TInputSchema extends {
|
|
5
5
|
_input: infer TInput;
|
|
6
6
|
} ? TInput : unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SpeechModel } from '../../_types/@internal_ai-sdk-v5/dist/index.
|
|
1
|
+
import type { SpeechModel } from '../../_types/@internal_ai-sdk-v5/dist/index.js';
|
|
2
2
|
import { MastraVoice } from '../voice.js';
|
|
3
3
|
export declare class AISDKSpeech extends MastraVoice {
|
|
4
4
|
private model;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TranscriptionModel } from '../../_types/@internal_ai-sdk-v5/dist/index.
|
|
1
|
+
import type { TranscriptionModel } from '../../_types/@internal_ai-sdk-v5/dist/index.js';
|
|
2
2
|
import { MastraVoice } from '../voice.js';
|
|
3
3
|
export declare class AISDKTranscription extends MastraVoice {
|
|
4
4
|
private model;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TranscriptionModel, SpeechModel } from '../_types/@internal_ai-sdk-v5/dist/index.
|
|
2
|
-
import type { ToolsInput } from '../_types/@internal_core/dist/types/index.
|
|
1
|
+
import type { TranscriptionModel, SpeechModel } from '../_types/@internal_ai-sdk-v5/dist/index.js';
|
|
2
|
+
import type { ToolsInput } from '../_types/@internal_core/dist/types/index.js';
|
|
3
3
|
import { MastraVoice } from './voice.js';
|
|
4
4
|
import type { VoiceEventType, VoiceEventMap } from '.';
|
|
5
5
|
export declare class CompositeVoice extends MastraVoice<unknown, unknown, unknown, ToolsInput, VoiceEventMap> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MastraBase } from '../_types/@internal_core/dist/base/index.
|
|
2
|
-
import type { ToolsInput } from '../_types/@internal_core/dist/types/index.
|
|
1
|
+
import { MastraBase } from '../_types/@internal_core/dist/base/index.js';
|
|
2
|
+
import type { ToolsInput } from '../_types/@internal_core/dist/types/index.js';
|
|
3
3
|
export type VoiceEventType = 'speaking' | 'writing' | 'error' | string;
|
|
4
4
|
export interface VoiceEventMap {
|
|
5
5
|
speaker: NodeJS.ReadableStream;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-voice-openai-realtime
|
|
|
3
3
|
description: Documentation for @mastra/voice-openai-realtime. Use when working with @mastra/voice-openai-realtime APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/voice-openai-realtime"
|
|
6
|
-
version: "0.14.1
|
|
6
|
+
version: "0.14.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ToolsInput, RequestContext } from './_types/@internal_voice/dist/index.
|
|
2
|
-
import { MastraVoice } from './_types/@internal_voice/dist/index.
|
|
1
|
+
import type { ToolsInput, RequestContext } from './_types/@internal_voice/dist/index.js';
|
|
2
|
+
import { MastraVoice } from './_types/@internal_voice/dist/index.js';
|
|
3
3
|
import type { Realtime } from 'openai-realtime-api';
|
|
4
4
|
/**
|
|
5
5
|
* Event callback function type
|
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-openai-realtime",
|
|
3
|
-
"version": "0.14.1
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Mastra OpenAI Realtime API integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"openai-realtime-api": "^1.0.8",
|
|
27
27
|
"ws": "^8.21.3",
|
|
28
|
-
"@mastra/schema-compat": "1.3.11
|
|
28
|
+
"@mastra/schema-compat": "1.3.11"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "22.20.1",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"typescript": "^7.0.2",
|
|
39
39
|
"vitest": "4.1.11",
|
|
40
40
|
"zod": "^4.6.4",
|
|
41
|
-
"@internal/
|
|
42
|
-
"@internal/
|
|
43
|
-
"@internal/
|
|
41
|
+
"@internal/types-builder": "0.0.109",
|
|
42
|
+
"@internal/lint": "0.0.134",
|
|
43
|
+
"@internal/voice": "0.0.32"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"zod": "^3.25.0 || ^4.0.0"
|