@mastra/voice-openai-realtime 0.14.9 → 0.14.10-alpha.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/dist/_types/{@internal_voice@0.0.45/dist/_types/@internal_ai-sdk-v5@0.0.96 → @internal_voice@0.0.47/dist/_types/@internal_ai-sdk-v5@0.0.98}/dist/index.d.ts +61 -2
- package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/aisdk/speech.d.ts +1 -1
- package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/aisdk/transcription.d.ts +1 -1
- package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/composite-voice.d.ts +1 -1
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/integrations-voice-openai.md +4 -4
- package/dist/docs/references/reference-voice-voice.close.md +1 -1
- package/dist/docs/references/reference-voice-voice.connect.md +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@0.0.45 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/ZodError.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/external.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/enumUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/errorUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/parseUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/partialUtil.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/typeAliases.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/util.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/locales/en.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/standard-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/types.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/aisdk/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/default-voice.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/index.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/voice.d.ts +0 -0
- /package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/package.json +0 -0
|
@@ -200,9 +200,11 @@ declare namespace _ai_sdk_provider_utils {
|
|
|
200
200
|
getRuntimeEnvironmentUserAgent,
|
|
201
201
|
injectJsonInstructionIntoMessages,
|
|
202
202
|
isAbortError,
|
|
203
|
+
isArrayBuffer,
|
|
203
204
|
isBrowserRuntime,
|
|
204
205
|
isParsableJson,
|
|
205
206
|
isSameOrigin,
|
|
207
|
+
isUint8Array,
|
|
206
208
|
isUrlSupported,
|
|
207
209
|
isValidator,
|
|
208
210
|
jsonSchema,
|
|
@@ -224,7 +226,9 @@ declare namespace _ai_sdk_provider_utils {
|
|
|
224
226
|
resolve,
|
|
225
227
|
safeParseJSON,
|
|
226
228
|
safeValidateTypes,
|
|
229
|
+
secureJsonParse,
|
|
227
230
|
standardSchemaValidator,
|
|
231
|
+
stringifyWithBigIntAndCycles,
|
|
228
232
|
tool,
|
|
229
233
|
validateDownloadUrl,
|
|
230
234
|
validateTypes,
|
|
@@ -2178,7 +2182,7 @@ declare type FetchFunction = typeof globalThis.fetch;
|
|
|
2178
2182
|
* Redirects are rejected by default. Callers using `redirect: 'manual'` must
|
|
2179
2183
|
* validate the Location target before issuing another request.
|
|
2180
2184
|
*/
|
|
2181
|
-
declare function fetchWithValidatedEndpoint({ url, init, fetch: customFetch, trustedOrigin, redirect, }: {
|
|
2185
|
+
declare function fetchWithValidatedEndpoint({ url, init, fetch: customFetch, trustedOrigin, redirect, requireDnsValidation, }: {
|
|
2182
2186
|
url: string | URL;
|
|
2183
2187
|
init?: RequestInit;
|
|
2184
2188
|
fetch?: FetchFunction;
|
|
@@ -2188,6 +2192,11 @@ declare function fetchWithValidatedEndpoint({ url, init, fetch: customFetch, tru
|
|
|
2188
2192
|
*/
|
|
2189
2193
|
trustedOrigin?: string;
|
|
2190
2194
|
redirect?: 'error' | 'manual';
|
|
2195
|
+
/**
|
|
2196
|
+
* Reject untrusted URLs on server runtimes without a DNS-pinned default
|
|
2197
|
+
* transport unless an explicit custom fetch provides equivalent validation.
|
|
2198
|
+
*/
|
|
2199
|
+
requireDnsValidation?: boolean;
|
|
2191
2200
|
}): Promise<Response>;
|
|
2192
2201
|
|
|
2193
2202
|
/**
|
|
@@ -2199,6 +2208,12 @@ declare function fetchWithValidatedEndpoint({ url, init, fetch: customFetch, tru
|
|
|
2199
2208
|
* target (e.g. an internal address) before we ever see its URL, defeating the
|
|
2200
2209
|
* SSRF guard.
|
|
2201
2210
|
*
|
|
2211
|
+
* Manually followed redirects from HTTPS to HTTP are rejected before requesting
|
|
2212
|
+
* the target.
|
|
2213
|
+
*
|
|
2214
|
+
* All caller headers except User-Agent are dropped on cross-origin redirects.
|
|
2215
|
+
* Callers must decide which credentials may be sent to the initial URL.
|
|
2216
|
+
*
|
|
2202
2217
|
* A `redirect: 'manual'` request yields an unreadable opaque response in the
|
|
2203
2218
|
* browser (and in other spec-compliant fetch implementations), so the redirect
|
|
2204
2219
|
* target cannot be validated here. In a real browser this is safe to follow
|
|
@@ -3029,13 +3044,44 @@ export declare interface GenerateTextResult<TOOLS extends ToolSet, OUTPUT> {
|
|
|
3029
3044
|
|
|
3030
3045
|
declare function getErrorMessage(error: unknown | undefined): string;
|
|
3031
3046
|
|
|
3032
|
-
declare const getFromApi: <T>({ url, headers, successfulResponseHandler, failedResponseHandler, abortSignal, fetch, }: {
|
|
3047
|
+
declare const getFromApi: <T>({ url, headers, successfulResponseHandler, failedResponseHandler, abortSignal, fetch, validateUrl, credentialedOrigin, trustedOrigin, }: {
|
|
3033
3048
|
url: string;
|
|
3034
3049
|
headers?: Record<string, string | undefined>;
|
|
3035
3050
|
failedResponseHandler: ResponseHandler<Error>;
|
|
3036
3051
|
successfulResponseHandler: ResponseHandler<T>;
|
|
3037
3052
|
abortSignal?: AbortSignal;
|
|
3038
3053
|
fetch?: FetchFunction;
|
|
3054
|
+
/**
|
|
3055
|
+
* Set `true` when `url` is untrusted (e.g. taken from a provider response
|
|
3056
|
+
* body): it is routed through {@link fetchWithValidatedRedirects}, which
|
|
3057
|
+
* rejects private/loopback/link-local targets and re-validates redirect
|
|
3058
|
+
* hops; blocked URLs throw `DownloadError`. Set `false` only for URLs built
|
|
3059
|
+
* from a developer-configured endpoint.
|
|
3060
|
+
*
|
|
3061
|
+
* Optional for backwards compatibility with existing callers; omitting it
|
|
3062
|
+
* behaves like `false` (no validation).
|
|
3063
|
+
*/
|
|
3064
|
+
validateUrl?: boolean;
|
|
3065
|
+
/**
|
|
3066
|
+
* When set, `headers` are sent only if `url` is same-origin with this origin
|
|
3067
|
+
* (the user-agent suffix is always kept). Pass the provider's configured
|
|
3068
|
+
* base URL alongside `validateUrl: true` so credentials never ride a request
|
|
3069
|
+
* to a response-supplied host on a different origin (e.g. a CDN). Redirects
|
|
3070
|
+
* that later cross origin drop all caller headers regardless (see
|
|
3071
|
+
* {@link fetchWithValidatedRedirects}).
|
|
3072
|
+
*/
|
|
3073
|
+
credentialedOrigin?: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* A developer-configured origin (e.g. the provider's `baseURL`) that is
|
|
3076
|
+
* exempt from URL validation when `validateUrl` is `true`. A response URL
|
|
3077
|
+
* (or redirect hop) that is same-origin with it is fetched without target
|
|
3078
|
+
* validation — it points at exactly the host a config-derived
|
|
3079
|
+
* `validateUrl: false` request would fetch anyway, so blocking it would
|
|
3080
|
+
* only break legitimate self-hosted / localhost deployments whose response
|
|
3081
|
+
* URLs point back at the configured host. Hops on any other origin are
|
|
3082
|
+
* still validated. Must never be derived from response data.
|
|
3083
|
+
*/
|
|
3084
|
+
trustedOrigin?: string;
|
|
3039
3085
|
}) => Promise<{
|
|
3040
3086
|
value: T;
|
|
3041
3087
|
rawValue?: unknown;
|
|
@@ -3524,6 +3570,8 @@ export declare class InvalidToolInputError extends AISDKError {
|
|
|
3524
3570
|
|
|
3525
3571
|
declare function isAbortError(error: unknown): error is Error;
|
|
3526
3572
|
|
|
3573
|
+
declare function isArrayBuffer(value: unknown): value is ArrayBuffer;
|
|
3574
|
+
|
|
3527
3575
|
/**
|
|
3528
3576
|
* Returns `true` when running in a browser.
|
|
3529
3577
|
*
|
|
@@ -3585,6 +3633,8 @@ export declare function isToolOrDynamicToolUIPart<TOOLS extends UITools>(part: U
|
|
|
3585
3633
|
|
|
3586
3634
|
export declare function isToolUIPart<TOOLS extends UITools>(part: UIMessagePart<UIDataTypes, TOOLS>): part is ToolUIPart<TOOLS>;
|
|
3587
3635
|
|
|
3636
|
+
declare function isUint8Array(value: unknown): value is Uint8Array;
|
|
3637
|
+
|
|
3588
3638
|
/**
|
|
3589
3639
|
* Checks if the given URL is supported natively by the model.
|
|
3590
3640
|
*
|
|
@@ -5833,6 +5883,8 @@ export declare type Schema<OBJECT = unknown> = Validator<OBJECT> & {
|
|
|
5833
5883
|
*/
|
|
5834
5884
|
declare const schemaSymbol: unique symbol;
|
|
5835
5885
|
|
|
5886
|
+
declare function secureJsonParse(text: string): any;
|
|
5887
|
+
|
|
5836
5888
|
export declare class SerialJobExecutor {
|
|
5837
5889
|
private queue;
|
|
5838
5890
|
private isProcessing;
|
|
@@ -7548,6 +7600,13 @@ export declare type StreamTextTransform<TOOLS extends ToolSet> = (options: {
|
|
|
7548
7600
|
stopStream: () => void;
|
|
7549
7601
|
}) => TransformStream<TextStreamPart<TOOLS>, TextStreamPart<TOOLS>>;
|
|
7550
7602
|
|
|
7603
|
+
/**
|
|
7604
|
+
* Serializes a value as JSON, representing BigInt values as decimal strings and
|
|
7605
|
+
* ancestor cycles as "[Circular]". Reused objects, toJSON methods, and other JSON
|
|
7606
|
+
* serialization behavior are preserved. Getters and toJSON methods may throw.
|
|
7607
|
+
*/
|
|
7608
|
+
declare function stringifyWithBigIntAndCycles(value: unknown): string;
|
|
7609
|
+
|
|
7551
7610
|
declare const symbol$1: unique symbol;
|
|
7552
7611
|
|
|
7553
7612
|
declare const symbol$1_2: unique symbol;
|
package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/aisdk/speech.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SpeechModel } from '../../_types/@internal_ai-sdk-v5@0.0.
|
|
1
|
+
import type { SpeechModel } from '../../_types/@internal_ai-sdk-v5@0.0.98/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@0.0.
|
|
1
|
+
import type { TranscriptionModel } from '../../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
|
|
2
2
|
import { MastraVoice } from '../voice.js';
|
|
3
3
|
export declare class AISDKTranscription extends MastraVoice {
|
|
4
4
|
private model;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TranscriptionModel, SpeechModel } from '../_types/@internal_ai-sdk-v5@0.0.
|
|
1
|
+
import type { TranscriptionModel, SpeechModel } from '../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
|
|
2
2
|
import type { ToolsInput } from '../_types/@internal_core@0.1.4/dist/types/index.js';
|
|
3
3
|
import { MastraVoice } from './voice.js';
|
|
4
4
|
import type { IMastraVoice, VoiceEventType, VoiceEventMap } from '.';
|
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.
|
|
6
|
+
version: "0.14.10-alpha.0"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -23,7 +23,7 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
23
23
|
- [Reference: voice.addInstructions()](references/reference-voice-voice.addInstructions.md) - The addInstructions() method equips a voice provider with instructions that guide the model's behavior during real-time interactions.
|
|
24
24
|
- [Reference: voice.addTools()](references/reference-voice-voice.addTools.md) - The addTools() method equips a voice provider with tools (functions) that the model can call during real-time interactions.
|
|
25
25
|
- [Reference: voice.answer()](references/reference-voice-voice.answer.md) - The answer() method is used in real-time voice providers to trigger the AI to generate a response.
|
|
26
|
-
- [Reference: voice.close()](references/reference-voice-voice.close.md) - The close() method disconnects from a real-time voice service and cleans up resources. This is important for
|
|
26
|
+
- [Reference: voice.close()](references/reference-voice-voice.close.md) - The close() method disconnects from a real-time voice service and cleans up resources. This is important for ending voice sessions and preventing resource leaks.
|
|
27
27
|
- [Reference: voice.connect()](references/reference-voice-voice.connect.md) - The connect() method establishes a WebSocket or WebRTC connection for real-time speech-to-speech communication.
|
|
28
28
|
- [Reference: voice.off()](references/reference-voice-voice.off.md) - The off() method removes event listeners previously registered with the on() method.
|
|
29
29
|
- [Reference: voice.on()](references/reference-voice-voice.on.md) - Use voice.on() to register listeners for real-time voice events, including audio, transcripts, responses, errors, and connection changes.
|
|
@@ -204,7 +204,7 @@ voice.connect()
|
|
|
204
204
|
|
|
205
205
|
**speaker** (`string`): Default voice ID for speech synthesis. (Default: `'alloy'`)
|
|
206
206
|
|
|
207
|
-
#### Voice
|
|
207
|
+
#### Voice activity detection (VAD) configuration
|
|
208
208
|
|
|
209
209
|
**type** (`string`): Type of VAD to use. Server-side VAD provides better accuracy. (Default: `'server_vad'`)
|
|
210
210
|
|
|
@@ -318,7 +318,7 @@ The OpenAIRealtimeVoice class emits the following events:
|
|
|
318
318
|
|
|
319
319
|
**error** (`event`): Emitted when an error occurs. Callback receives the error object.
|
|
320
320
|
|
|
321
|
-
#### OpenAI Realtime
|
|
321
|
+
#### OpenAI Realtime events
|
|
322
322
|
|
|
323
323
|
Every server event received from the OpenAI Realtime API is also emitted with the `openAIRealtime:` prefix, using the [OpenAI server event type](https://platform.openai.com/docs/api-reference/realtime-server-events) as the suffix. The callback receives the complete event payload.
|
|
324
324
|
|
|
@@ -328,7 +328,7 @@ voice.on('openAIRealtime:rate_limits.updated', event => {
|
|
|
328
328
|
})
|
|
329
329
|
```
|
|
330
330
|
|
|
331
|
-
#### Socket
|
|
331
|
+
#### Socket events
|
|
332
332
|
|
|
333
333
|
**open** (`event`): Emitted when the WebSocket connection to OpenAI opens.
|
|
334
334
|
|
|
@@ -354,5 +354,5 @@ The following voice options are available:
|
|
|
354
354
|
- Server-side Voice Activity Detection (VAD) provides better accuracy for speech detection
|
|
355
355
|
- All audio data is processed as Int16Array format
|
|
356
356
|
- The voice instance must be connected with `connect()` before using other methods
|
|
357
|
-
- Always call `close()` when done to
|
|
357
|
+
- Always call `close()` when done to clean up resources
|
|
358
358
|
- Memory management is handled by OpenAI Realtime API
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# voice.close()
|
|
6
6
|
|
|
7
|
-
The `close()` method disconnects from a real-time voice service and cleans up resources. This is important for
|
|
7
|
+
The `close()` method disconnects from a real-time voice service and cleans up resources. This is important for ending voice sessions and preventing resource leaks.
|
|
8
8
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
@@ -97,7 +97,7 @@ await voice.connect()
|
|
|
97
97
|
- This method is only implemented by real-time voice providers that support speech-to-speech capabilities
|
|
98
98
|
- Providers that inherit the base `connect()` implementation log a debug message and resolve without establishing a connection
|
|
99
99
|
- The connection must be established before using other real-time methods like `send()` or `answer()`
|
|
100
|
-
- When you're done with the voice instance, call `close()` to
|
|
100
|
+
- When you're done with the voice instance, call `close()` to clean up resources
|
|
101
101
|
- Some providers may automatically reconnect on connection loss, depending on their implementation
|
|
102
102
|
- Connection errors will typically be thrown as exceptions that should be caught and handled
|
|
103
103
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ToolsInput, RequestContext } from './_types/@internal_voice@0.0.
|
|
2
|
-
import { MastraVoice } from './_types/@internal_voice@0.0.
|
|
1
|
+
import type { ToolsInput, RequestContext } from './_types/@internal_voice@0.0.47/dist/index.js';
|
|
2
|
+
import { MastraVoice } from './_types/@internal_voice@0.0.47/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToolsInput } from './_types/@internal_voice@0.0.
|
|
1
|
+
import type { ToolsInput } from './_types/@internal_voice@0.0.47/dist/index.js';
|
|
2
2
|
export type OpenAIExecuteFunction = (args: any) => Promise<any>;
|
|
3
3
|
type ToolDefinition = {
|
|
4
4
|
type: 'function';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-openai-realtime",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.10-alpha.0",
|
|
4
4
|
"description": "Mastra OpenAI Realtime API integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"openai-realtime-api": "^1.0.8",
|
|
27
|
-
"ws": "^8.
|
|
27
|
+
"ws": "^8.23.0",
|
|
28
28
|
"@mastra/schema-compat": "1.4.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"typescript": "^7.0.2",
|
|
38
38
|
"vitest": "5.1.0",
|
|
39
39
|
"zod": "^4.6.7",
|
|
40
|
-
"@internal/lint": "0.0.
|
|
41
|
-
"@internal/types-builder": "0.0.
|
|
42
|
-
"@internal/voice": "0.0.
|
|
40
|
+
"@internal/lint": "0.0.151",
|
|
41
|
+
"@internal/types-builder": "0.0.126",
|
|
42
|
+
"@internal/voice": "0.0.47"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"zod": "^3.25.0 || ^4.0.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/aisdk/index.d.ts
RENAMED
|
File without changes
|
/package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/default-voice.d.ts
RENAMED
|
File without changes
|
/package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/index.d.ts
RENAMED
|
File without changes
|
/package/dist/_types/{@internal_voice@0.0.45 → @internal_voice@0.0.47}/dist/voice/voice.d.ts
RENAMED
|
File without changes
|
|
File without changes
|