@mastra/voice-google 0.14.5-alpha.0 → 0.14.6-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.
Files changed (134) hide show
  1. package/dist/_types/{@internal_voice@0.0.43/dist/_types/@internal_ai-sdk-v5@0.0.94 → @internal_voice@0.0.47/dist/_types/@internal_ai-sdk-v5@0.0.98}/dist/index.d.ts +62 -3
  2. package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +19 -0
  3. package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/voice/aisdk/speech.d.ts +1 -1
  4. package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/voice/aisdk/transcription.d.ts +1 -1
  5. package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/voice/composite-voice.d.ts +1 -1
  6. package/dist/docs/SKILL.md +1 -5
  7. package/dist/docs/assets/SOURCE_MAP.json +8 -2
  8. package/dist/docs/references/integrations-voice-google.md +12 -12
  9. package/dist/index.cjs +0 -2
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +0 -2
  12. package/package.json +9 -8
  13. package/dist/docs/references/reference-voice-overview.md +0 -1233
  14. package/dist/index.cjs.map +0 -1
  15. package/dist/index.d.ts.map +0 -1
  16. package/dist/index.js.map +0 -1
  17. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
  18. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
  19. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
  20. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/ZodError.d.ts +0 -0
  21. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/errors.d.ts +0 -0
  22. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/external.d.ts +0 -0
  23. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/enumUtil.d.ts +0 -0
  24. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/errorUtil.d.ts +0 -0
  25. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/parseUtil.d.ts +0 -0
  26. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/partialUtil.d.ts +0 -0
  27. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/typeAliases.d.ts +0 -0
  28. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/helpers/util.d.ts +0 -0
  29. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/index.d.ts +0 -0
  30. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/locales/en.d.ts +0 -0
  31. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/standard-schema.d.ts +0 -0
  32. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v3/types.d.ts +0 -0
  33. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
  34. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
  35. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
  36. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
  37. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
  38. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
  39. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
  40. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
  41. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
  42. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
  43. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
  44. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
  45. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
  46. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
  47. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
  48. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
  49. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
  50. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
  51. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
  52. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
  53. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
  54. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
  55. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
  56. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
  57. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
  58. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
  59. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
  60. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
  61. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
  62. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
  63. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
  64. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
  65. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
  66. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
  67. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
  68. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
  69. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
  70. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
  71. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
  72. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
  73. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
  74. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
  75. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
  76. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
  77. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
  78. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
  79. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
  80. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
  81. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
  82. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
  83. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
  84. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
  85. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
  86. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
  87. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
  88. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
  89. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
  90. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
  91. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
  92. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
  93. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
  94. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
  95. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
  96. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
  97. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
  98. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
  99. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
  100. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
  101. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
  102. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
  103. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
  104. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
  105. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
  106. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
  107. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
  108. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
  109. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
  110. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
  111. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
  112. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
  113. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
  114. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
  115. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
  116. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
  117. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
  118. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
  119. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
  120. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
  121. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
  122. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
  123. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
  124. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
  125. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
  126. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
  127. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
  128. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
  129. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/index.d.ts +0 -0
  130. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/voice/aisdk/index.d.ts +0 -0
  131. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/voice/default-voice.d.ts +0 -0
  132. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/voice/index.d.ts +0 -0
  133. /package/dist/_types/{@internal_voice@0.0.43 → @internal_voice@0.0.47}/dist/voice/voice.d.ts +0 -0
  134. /package/dist/_types/{@internal_voice@0.0.43 → @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
@@ -2421,7 +2436,7 @@ declare interface GatewayLanguageModelEntry {
2421
2436
 
2422
2437
  declare type GatewayLanguageModelSpecification = Pick<LanguageModelV2, 'specificationVersion' | 'provider' | 'modelId'>;
2423
2438
 
2424
- export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-flash' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'alibaba/qwen3.8-2.4t-a95b' | 'alibaba/qwen3.8-27b' | 'alibaba/qwen3.8-flash' | 'alibaba/qwen3.8-max' | 'alibaba/qwen3.8-max-0902' | 'alibaba/qwen3.8-max-prime' | 'alibaba/qwen3.8-omni-flash' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-fable-5' | 'anthropic/claude-fable-5-batch' | 'anthropic/claude-fable-5.1' | 'anthropic/claude-fable-5.1-batch' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-haiku-4.5-batch' | 'anthropic/claude-haiku-5.5' | 'anthropic/claude-haiku-5.5-batch' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.5-batch' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.6-batch' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.7-batch' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-batch' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-5-batch' | 'anthropic/claude-opus-5-fast' | 'anthropic/claude-opus-5.5' | 'anthropic/claude-opus-5.5-batch' | 'anthropic/claude-opus-5.5-fast' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.5-batch' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-4.6-batch' | 'anthropic/claude-sonnet-5' | 'anthropic/claude-sonnet-5-batch' | 'anthropic/claude-sonnet-5.5' | 'anthropic/claude-sonnet-5.5-batch' | 'arcee-ai/trinity-large-thinking' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'bytedance/seed-2.1-turbo' | 'callstack/apex' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-flash-0731' | 'deepseek/deepseek-v4-flash-vision-exp' | 'deepseek/deepseek-v4-pro' | 'deepseek/deepseek-v4-pro-0813' | 'deepseek/deepseek-v4.1-flash' | 'deepseek/deepseek-v4.1-flash-1017' | 'deepseek/deepseek-v4.1-flash-1017-fast' | 'deepseek/deepseek-v4.1-flash-fast' | 'elorian/glimpse' | 'fireworks/ember-1' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-batch' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-batch' | 'google/gemini-2.5-pro' | 'google/gemini-2.5-pro-batch' | 'google/gemini-3-flash' | 'google/gemini-3-flash-batch' | 'google/gemini-3-pro-image' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-batch' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.1-pro-preview-batch' | 'google/gemini-3.5-flash' | 'google/gemini-3.5-flash-batch' | 'google/gemini-3.5-flash-lite' | 'google/gemini-3.5-flash-lite-batch' | 'google/gemini-3.6-flash' | 'google/gemini-3.6-flash-batch' | 'google/gemini-3.7-flash' | 'google/gemini-3.7-flash-batch' | 'google/gemini-3.8-flash' | 'google/gemini-4-argon' | 'google/gemini-nano-banana-2.1' | 'google/gemini-omni-flash-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-2.5' | 'inception/mercury-3' | 'inception/mercury-coder-small' | 'inclusionai/ling-3.0-flash' | 'inclusionai/ling-3.0-flash-fin' | 'inclusionai/ling-3.0-flash-sante' | 'inclusionai/ling-3.0-flash-vl' | 'inclusionai/ling-3.1-flash' | 'inference-net/schematron-v2-small' | 'inference-net/schematron-v2-turbo' | 'interfaze/interfaze-beta' | 'liquid/lfm2.5-24b-a2b' | 'meituan/longcat-2.5-preview' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'meta/muse-glimmer-30b' | 'meta/muse-spark-1.1' | 'meta/muse-spark-1.2' | 'meta/muse-spark-1.2-contributor' | 'meta/muse-spark-1.3' | 'meta/muse-spark-1.3-contributor' | 'meta/muse-spark-open' | 'meta/muse-wonder-1.0' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'minimax/minimax-m3.1-flash' | 'mistral/codestral' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-large-4' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mixedbread/toast-1' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'moonshotai/kimi-k2.7-code-highspeed' | 'moonshotai/kimi-k3' | 'moonshotai/kimi-k3-fast' | 'moonshotai/kimi-k3.1-pro' | 'moonshotai/kimi-k3.1-pro-highspeed' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-3.5-lightning' | 'nvidia/nemotron-3.5-lightning-free' | 'nvidia/nemotron-3.5-super-vl' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-4.1' | 'openai/gpt-4.1-batch' | 'openai/gpt-4.1-fast' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-mini-batch' | 'openai/gpt-4.1-mini-fast' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-batch' | 'openai/gpt-4o-fast' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-batch' | 'openai/gpt-4o-mini-fast' | 'openai/gpt-5' | 'openai/gpt-5-batch' | 'openai/gpt-5-codex' | 'openai/gpt-5-fast' | 'openai/gpt-5-mini' | 'openai/gpt-5-mini-batch' | 'openai/gpt-5-mini-fast' | 'openai/gpt-5-nano' | 'openai/gpt-5-nano-batch' | 'openai/gpt-5-pro' | 'openai/gpt-5-pro-batch' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.1-thinking-fast' | 'openai/gpt-5.2' | 'openai/gpt-5.2-batch' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-fast' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.3-codex-fast' | 'openai/gpt-5.4' | 'openai/gpt-5.4-batch' | 'openai/gpt-5.4-fast' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-mini-batch' | 'openai/gpt-5.4-mini-fast' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-nano-batch' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-batch' | 'openai/gpt-5.5-fast' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.5-pro-batch' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-luna-batch' | 'openai/gpt-5.6-luna-fast' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-sol-batch' | 'openai/gpt-5.6-sol-fast' | 'openai/gpt-5.6-terra' | 'openai/gpt-5.6-terra-batch' | 'openai/gpt-5.6-terra-fast' | 'openai/gpt-6-astra' | 'openai/gpt-6-astra-batch' | 'openai/gpt-6-astra-fast' | 'openai/gpt-6-luna' | 'openai/gpt-6-luna-batch' | 'openai/gpt-6-luna-fast' | 'openai/gpt-6-sol' | 'openai/gpt-6-sol-batch' | 'openai/gpt-6-sol-fast' | 'openai/gpt-6.1-sol' | 'openai/gpt-6.1-sol-batch' | 'openai/gpt-6.1-sol-fast' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-120b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-fast' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'perplexity/sonar' | 'poolside/laguna-s-2.1' | 'poolside/laguna-s-2.1-free' | 'quiverai/arrow-2' | 'quiverai/arrow-2-telos' | 'reflection/beam' | 'reflection/beam-free' | 'sakana/fugu-max' | 'sakana/fugu-ultra' | 'sakana/fugu-ultra-v2' | 'sakana/namazu' | 'scaledown/scaledown-extract-1' | 'scaledown/scaledown-summarize-1' | 'spacexai/grok-4.20-multi-agent' | 'spacexai/grok-4.20-multi-agent-batch' | 'spacexai/grok-4.20-multi-agent-beta' | 'spacexai/grok-4.20-non-reasoning' | 'spacexai/grok-4.20-non-reasoning-batch' | 'spacexai/grok-4.20-non-reasoning-beta' | 'spacexai/grok-4.20-reasoning' | 'spacexai/grok-4.20-reasoning-batch' | 'spacexai/grok-4.20-reasoning-beta' | 'spacexai/grok-4.3' | 'spacexai/grok-4.3-batch' | 'spacexai/grok-4.5' | 'spacexai/grok-4.6' | 'spacexai/grok-4.7' | 'spacexai/grok-build-0.1' | 'stealth/glyph-cluster' | 'stepfun/step-3.7-flash' | 'stepfun/step-5-preview' | 'tencent/hy-mt2-lite' | 'tencent/hy-mt2-plus' | 'tencent/hy-mt2-pro' | 'tencent/hy3' | 'tencent/hy4-preview' | 'thinkingmachines/inkling' | 'thinkingmachines/inkling-small' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'xiaomi/mimo-v2.6-flash' | 'xiaomi/mimo-v2.6-pro' | 'xiaomi/mimo-v2.6-pro-ultraspeed' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5.2' | 'zai/glm-5.2-fast' | 'zai/glm-5.3' | 'zai/glm-5.3-fast' | 'zai/glm-5.3-flash' | 'zai/glm-5.3-flashx' | 'zai/glm-5v-turbo' | (string & {});
2439
+ export declare type GatewayModelId = 'alibaba/qwen-3-14b' | 'alibaba/qwen-3-235b' | 'alibaba/qwen-3-30b' | 'alibaba/qwen-3-32b' | 'alibaba/qwen3-coder' | 'alibaba/qwen3-coder-30b-a3b' | 'alibaba/qwen3-coder-next' | 'alibaba/qwen3-max-thinking' | 'alibaba/qwen3-next-80b-a3b-instruct' | 'alibaba/qwen3-next-80b-a3b-thinking' | 'alibaba/qwen3-vl-instruct' | 'alibaba/qwen3.5-flash' | 'alibaba/qwen3.5-plus' | 'alibaba/qwen3.6-27b' | 'alibaba/qwen3.6-plus' | 'alibaba/qwen3.7-flash' | 'alibaba/qwen3.7-max' | 'alibaba/qwen3.7-plus' | 'alibaba/qwen3.8-2.4t-a95b' | 'alibaba/qwen3.8-27b' | 'alibaba/qwen3.8-flash' | 'alibaba/qwen3.8-max' | 'alibaba/qwen3.8-max-0902' | 'alibaba/qwen3.8-max-prime' | 'alibaba/qwen3.8-omni-flash' | 'amazon/nova-2-lite' | 'amazon/nova-lite' | 'amazon/nova-micro' | 'amazon/nova-pro' | 'anthropic/claude-fable-5' | 'anthropic/claude-fable-5-batch' | 'anthropic/claude-fable-5.1' | 'anthropic/claude-fable-5.1-batch' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-haiku-4.5-batch' | 'anthropic/claude-haiku-5.5' | 'anthropic/claude-haiku-5.5-batch' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-opus-4.5-batch' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-opus-4.6-batch' | 'anthropic/claude-opus-4.7' | 'anthropic/claude-opus-4.7-batch' | 'anthropic/claude-opus-4.8' | 'anthropic/claude-opus-4.8-batch' | 'anthropic/claude-opus-4.8-fast' | 'anthropic/claude-opus-5' | 'anthropic/claude-opus-5-batch' | 'anthropic/claude-opus-5-fast' | 'anthropic/claude-opus-5.5' | 'anthropic/claude-opus-5.5-batch' | 'anthropic/claude-opus-5.5-fast' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-sonnet-4.5-batch' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-4.6-batch' | 'anthropic/claude-sonnet-5' | 'anthropic/claude-sonnet-5-batch' | 'anthropic/claude-sonnet-5.5' | 'anthropic/claude-sonnet-5.5-batch' | 'arcee-ai/trinity-large-thinking' | 'bytedance/seed-1.6' | 'bytedance/seed-1.8' | 'bytedance/seed-2.1-turbo' | 'callstack/apex' | 'cohere/command-a' | 'deepseek/deepseek-r1' | 'deepseek/deepseek-v3.1' | 'deepseek/deepseek-v3.2' | 'deepseek/deepseek-v3.2-thinking' | 'deepseek/deepseek-v4-flash' | 'deepseek/deepseek-v4-flash-0731' | 'deepseek/deepseek-v4-flash-vision-exp' | 'deepseek/deepseek-v4-pro' | 'deepseek/deepseek-v4-pro-0813' | 'deepseek/deepseek-v4.1-flash' | 'deepseek/deepseek-v4.1-flash-1017' | 'deepseek/deepseek-v4.1-flash-1017-fast' | 'deepseek/deepseek-v4.1-flash-fast' | 'elorian/glimpse' | 'fireworks/ember-1' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-flash-batch' | 'google/gemini-2.5-flash-image' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-flash-lite-batch' | 'google/gemini-2.5-pro' | 'google/gemini-2.5-pro-batch' | 'google/gemini-3-flash' | 'google/gemini-3-flash-batch' | 'google/gemini-3-pro-image' | 'google/gemini-3.1-flash-image' | 'google/gemini-3.1-flash-image-preview' | 'google/gemini-3.1-flash-lite' | 'google/gemini-3.1-flash-lite-batch' | 'google/gemini-3.1-flash-lite-image' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3.1-pro-preview-batch' | 'google/gemini-3.5-flash' | 'google/gemini-3.5-flash-batch' | 'google/gemini-3.5-flash-lite' | 'google/gemini-3.5-flash-lite-batch' | 'google/gemini-3.6-flash' | 'google/gemini-3.6-flash-batch' | 'google/gemini-3.7-flash' | 'google/gemini-3.7-flash-batch' | 'google/gemini-3.8-flash' | 'google/gemini-4-argon' | 'google/gemini-nano-banana-2.1' | 'google/gemini-omni-flash-preview' | 'google/gemma-4-26b-a4b-it' | 'google/gemma-4-31b-it' | 'inception/mercury-2' | 'inception/mercury-2.5' | 'inception/mercury-3' | 'inception/mercury-coder-small' | 'inclusionai/ling-3.0-flash' | 'inclusionai/ling-3.0-flash-fin' | 'inclusionai/ling-3.0-flash-sante' | 'inclusionai/ling-3.0-flash-vl' | 'inclusionai/ling-3.1-flash' | 'inclusionai/ling-3.1-flash-1019' | 'inference-net/schematron-v2-small' | 'inference-net/schematron-v2-turbo' | 'interfaze/interfaze-beta' | 'liquid/lfm2.5-24b-a2b' | 'meituan/longcat-2.5-preview' | 'meta/llama-3.1-70b' | 'meta/llama-3.1-8b' | 'meta/llama-3.3-70b' | 'meta/llama-4-maverick' | 'meta/llama-4-scout' | 'meta/muse-glimmer-30b' | 'meta/muse-spark-1.1' | 'meta/muse-spark-1.2' | 'meta/muse-spark-1.2-contributor' | 'meta/muse-spark-1.3' | 'meta/muse-spark-1.3-contributor' | 'meta/muse-spark-open' | 'meta/muse-wonder-1.0' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.1-lightning' | 'minimax/minimax-m2.5' | 'minimax/minimax-m2.5-highspeed' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.7-highspeed' | 'minimax/minimax-m3' | 'minimax/minimax-m3.1-flash' | 'mistral/codestral' | 'mistral/ministral-14b' | 'mistral/ministral-3b' | 'mistral/ministral-8b' | 'mistral/mistral-large-3' | 'mistral/mistral-large-4' | 'mistral/mistral-medium-3.5' | 'mistral/mistral-nemo' | 'mistral/mistral-small' | 'mixedbread/toast-1' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2.6' | 'moonshotai/kimi-k2.7-code' | 'moonshotai/kimi-k2.7-code-highspeed' | 'moonshotai/kimi-k3' | 'moonshotai/kimi-k3-fast' | 'moonshotai/kimi-k3.1-pro' | 'moonshotai/kimi-k3.1-pro-highspeed' | 'morph/morph-v3-fast' | 'morph/morph-v3-large' | 'nvidia/nemotron-3-nano-30b-a3b' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-3-ultra-550b-a55b' | 'nvidia/nemotron-3.5-lightning' | 'nvidia/nemotron-3.5-lightning-free' | 'nvidia/nemotron-3.5-super-vl' | 'nvidia/nemotron-nano-12b-v2-vl' | 'nvidia/nemotron-nano-9b-v2' | 'openai/gpt-4.1' | 'openai/gpt-4.1-batch' | 'openai/gpt-4.1-fast' | 'openai/gpt-4.1-mini' | 'openai/gpt-4.1-mini-batch' | 'openai/gpt-4.1-mini-fast' | 'openai/gpt-4.1-nano' | 'openai/gpt-4o' | 'openai/gpt-4o-batch' | 'openai/gpt-4o-fast' | 'openai/gpt-4o-mini' | 'openai/gpt-4o-mini-batch' | 'openai/gpt-4o-mini-fast' | 'openai/gpt-5' | 'openai/gpt-5-batch' | 'openai/gpt-5-codex' | 'openai/gpt-5-fast' | 'openai/gpt-5-mini' | 'openai/gpt-5-mini-batch' | 'openai/gpt-5-mini-fast' | 'openai/gpt-5-nano' | 'openai/gpt-5-nano-batch' | 'openai/gpt-5-pro' | 'openai/gpt-5-pro-batch' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.1-thinking' | 'openai/gpt-5.1-thinking-fast' | 'openai/gpt-5.2' | 'openai/gpt-5.2-batch' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.2-fast' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.3-codex' | 'openai/gpt-5.3-codex-fast' | 'openai/gpt-5.4' | 'openai/gpt-5.4-batch' | 'openai/gpt-5.4-fast' | 'openai/gpt-5.4-mini' | 'openai/gpt-5.4-mini-batch' | 'openai/gpt-5.4-mini-fast' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.4-nano-batch' | 'openai/gpt-5.4-pro' | 'openai/gpt-5.5' | 'openai/gpt-5.5-batch' | 'openai/gpt-5.5-fast' | 'openai/gpt-5.5-pro' | 'openai/gpt-5.5-pro-batch' | 'openai/gpt-5.6-luna' | 'openai/gpt-5.6-luna-batch' | 'openai/gpt-5.6-luna-fast' | 'openai/gpt-5.6-sol' | 'openai/gpt-5.6-sol-batch' | 'openai/gpt-5.6-sol-fast' | 'openai/gpt-5.6-terra' | 'openai/gpt-5.6-terra-batch' | 'openai/gpt-5.6-terra-fast' | 'openai/gpt-6-astra' | 'openai/gpt-6-astra-batch' | 'openai/gpt-6-astra-fast' | 'openai/gpt-6-luna' | 'openai/gpt-6-luna-batch' | 'openai/gpt-6-luna-fast' | 'openai/gpt-6-sol' | 'openai/gpt-6-sol-batch' | 'openai/gpt-6-sol-fast' | 'openai/gpt-6.1-sol' | 'openai/gpt-6.1-sol-batch' | 'openai/gpt-6.1-sol-fast' | 'openai/gpt-6.1-terra' | 'openai/gpt-6.1-terra-fast' | 'openai/gpt-oss-120b' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-safeguard-120b' | 'openai/gpt-oss-safeguard-20b' | 'openai/o1' | 'openai/o3' | 'openai/o3-fast' | 'openai/o3-mini' | 'openai/o3-pro' | 'openai/o4-mini' | 'particle/particle-1' | 'perplexity/sonar' | 'poolside/laguna-s-2.1' | 'poolside/laguna-s-2.1-free' | 'quiverai/arrow-2' | 'quiverai/arrow-2-telos' | 'reflection/beam' | 'reflection/beam-free' | 'sakana/fugu-max' | 'sakana/fugu-ultra' | 'sakana/fugu-ultra-v2' | 'sakana/namazu' | 'scaledown/scaledown-extract-1' | 'scaledown/scaledown-summarize-1' | 'spacexai/grok-4.20-multi-agent' | 'spacexai/grok-4.20-multi-agent-batch' | 'spacexai/grok-4.20-multi-agent-beta' | 'spacexai/grok-4.20-non-reasoning' | 'spacexai/grok-4.20-non-reasoning-batch' | 'spacexai/grok-4.20-non-reasoning-beta' | 'spacexai/grok-4.20-reasoning' | 'spacexai/grok-4.20-reasoning-batch' | 'spacexai/grok-4.20-reasoning-beta' | 'spacexai/grok-4.3' | 'spacexai/grok-4.3-batch' | 'spacexai/grok-4.5' | 'spacexai/grok-4.6' | 'spacexai/grok-4.7' | 'spacexai/grok-build-0.1' | 'stealth/glyph-cluster' | 'stepfun/step-3.7-flash' | 'stepfun/step-5-preview' | 'tencent/hy-mt2-lite' | 'tencent/hy-mt2-plus' | 'tencent/hy-mt2-pro' | 'tencent/hy3' | 'tencent/hy4-preview' | 'thinkingmachines/inkling' | 'thinkingmachines/inkling-small' | 'xiaomi/mimo-v2.5' | 'xiaomi/mimo-v2.5-pro' | 'xiaomi/mimo-v2.6-flash' | 'xiaomi/mimo-v2.6-pro' | 'xiaomi/mimo-v2.6-pro-ultraspeed' | 'zai/glm-4.5' | 'zai/glm-4.5-air' | 'zai/glm-4.5v' | 'zai/glm-4.6' | 'zai/glm-4.7' | 'zai/glm-4.7-flash' | 'zai/glm-4.7-flashx' | 'zai/glm-5' | 'zai/glm-5-turbo' | 'zai/glm-5.1' | 'zai/glm-5.2' | 'zai/glm-5.2-fast' | 'zai/glm-5.3' | 'zai/glm-5.3-fast' | 'zai/glm-5.3-flash' | 'zai/glm-5.3-flashx' | 'zai/glm-5v-turbo' | (string & {});
2425
2440
 
2426
2441
  declare interface GatewayProvider extends ProviderV2 {
2427
2442
  (modelId: GatewayModelId): LanguageModelV2;
@@ -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;
@@ -88,6 +88,25 @@ export declare const MASTRA_INHERITED_MEMORY_KEY = "mastra__inheritedMemory";
88
88
  * ```
89
89
  */
90
90
  export declare const MASTRA_MESSAGE_AUTHOR_KEY = "mastra__messageAuthor";
91
+ /**
92
+ * Reserved key holding the authenticated end user, normalized to the
93
+ * `MastraUser` shape (`{ id, name?, email?, avatarUrl?, role? }`).
94
+ *
95
+ * Set by the server auth middleware after an auth provider authenticates the
96
+ * request (via `MastraAuthProvider.toMastraUser()`). Read at
97
+ * `DynamicArgument` resolution time so config callbacks receive an optional
98
+ * `user` argument. The raw provider-specific user object is stored separately
99
+ * under `mastra__user`.
100
+ */
101
+ export declare const MASTRA_NORMALIZED_USER_KEY = "mastra__normalizedUser";
102
+ /**
103
+ * Returns a copy of a persisted request context without the keys that belong to
104
+ * the request that wrote it (the bearer token and the authenticated user, roles
105
+ * and permissions). Workflow and durable-agent resume, restart and time travel
106
+ * use this so those values come from the request doing the resuming, and a
107
+ * resume without a signed-in user can't act as the user who started the run.
108
+ */
109
+ export declare function withoutLiveRequestKeys(requestContext: Record<string, any> | undefined): Record<string, any>;
91
110
  /**
92
111
  * Whether a request-context key is reserved for Mastra itself.
93
112
  *
@@ -1,4 +1,4 @@
1
- import type { SpeechModel } from '../../_types/@internal_ai-sdk-v5@0.0.94/dist/index.js';
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.94/dist/index.js';
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.94/dist/index.js';
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 '.';
@@ -3,7 +3,7 @@ name: mastra-voice-google
3
3
  description: Documentation for @mastra/voice-google. Use when working with @mastra/voice-google APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/voice-google"
6
- version: "0.14.5-alpha.0"
6
+ version: "0.14.6-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -18,9 +18,5 @@ Read the individual reference documents for detailed explanations and code examp
18
18
 
19
19
  - [Google](references/integrations-voice-google.md) - Add Google Cloud text-to-speech and speech-to-text to Mastra with configurable voices, languages, audio encoding, streaming, and authentication.
20
20
 
21
- ### Reference
22
-
23
- - [Voice in Mastra](references/reference-voice-overview.md) - Use Mastra Voice for text-to-speech, speech-to-text, and real-time speech-to-speech interactions through a unified provider interface.
24
-
25
21
 
26
22
  Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -1,6 +1,12 @@
1
1
  {
2
- "version": "0.14.5-alpha.0",
2
+ "version": "0.14.6-alpha.0",
3
3
  "package": "@mastra/voice-google",
4
- "exports": {},
4
+ "exports": {
5
+ "GoogleVoice": {
6
+ "types": "dist/index.d.ts",
7
+ "implementation": "dist/index.js",
8
+ "line": 435
9
+ }
10
+ },
5
11
  "modules": {}
6
12
  }
@@ -164,7 +164,7 @@ Returns: `string` - The location (default: `'us-central1'`)
164
164
 
165
165
  The Google Voice provider supports two authentication methods:
166
166
 
167
- #### Standard Mode (API Key)
167
+ #### Standard mode (API key)
168
168
 
169
169
  Uses a Google Cloud API key for authentication. Suitable for development and basic use cases.
170
170
 
@@ -180,7 +180,7 @@ const voice = new GoogleVoice({
180
180
  })
181
181
  ```
182
182
 
183
- #### Vertex AI Mode (Service Account)
183
+ #### Vertex AI mode (service account)
184
184
 
185
185
  Uses Google Cloud project-based authentication with service accounts. Recommended for production and enterprise deployments.
186
186
 
@@ -228,9 +228,9 @@ const voice = new GoogleVoice({
228
228
  })
229
229
  ```
230
230
 
231
- ##### Required Permissions
231
+ ##### Required permissions
232
232
 
233
- ##### IAM Roles
233
+ ##### IAM roles
234
234
 
235
235
  For Text-to-Speech:
236
236
 
@@ -242,7 +242,7 @@ For Speech-to-Text:
242
242
 
243
243
  - `roles/speech.client` - Speech-to-Text Client
244
244
 
245
- ##### OAuth Scopes
245
+ ##### OAuth scopes
246
246
 
247
247
  For synchronous Text-to-Speech synthesis:
248
248
 
@@ -271,7 +271,7 @@ For long-audio Text-to-Speech operations:
271
271
 
272
272
  5. The `speak()` method supports advanced audio configuration through the Google Cloud Text-to-Speech API.
273
273
 
274
- 6. The `listen()` method supports various recognition configurations through the Google Cloud Speech-to-Text API.
274
+ 6. The `listen()` method supports recognition configurations through the Google Cloud Speech-to-Text API.
275
275
 
276
276
  7. Available voices can be filtered by language code using the `getSpeakers()` method.
277
277
 
@@ -511,7 +511,7 @@ Returns: `Promise<Array<{ voiceId: string; description?: string }>>`
511
511
 
512
512
  #### `disconnect()`
513
513
 
514
- Disconnects from the Gemini Live session and cleans up resources. This is the async method that properly handles cleanup.
514
+ Disconnects from the Gemini Live session and cleans up resources. This is the async method that handles cleanup.
515
515
 
516
516
  Returns: `Promise<void>`
517
517
 
@@ -599,7 +599,7 @@ The following voice options are available:
599
599
 
600
600
  ### Authentication methods
601
601
 
602
- #### Gemini API (Development)
602
+ #### Gemini API (development)
603
603
 
604
604
  The simplest method using an API key from [Google AI Studio](https://makersuite.google.com/app/apikey):
605
605
 
@@ -610,7 +610,7 @@ const voice = new GeminiLiveVoice({
610
610
  })
611
611
  ```
612
612
 
613
- #### Vertex AI (Production)
613
+ #### Vertex AI (production)
614
614
 
615
615
  For production use with OAuth authentication and Google Cloud Platform:
616
616
 
@@ -641,7 +641,7 @@ const voice = new GeminiLiveVoice({
641
641
 
642
642
  ### Advanced features
643
643
 
644
- #### Session Management
644
+ #### Session management
645
645
 
646
646
  The Gemini Live API supports session resumption for handling network interruptions:
647
647
 
@@ -660,7 +660,7 @@ const voice = new GeminiLiveVoice({
660
660
  })
661
661
  ```
662
662
 
663
- #### Tool Calling
663
+ #### Tool calling
664
664
 
665
665
  Enable the model to call functions during conversations:
666
666
 
@@ -690,7 +690,7 @@ voice.on('toolCall', ({ name, args, id }) => {
690
690
  - The Gemini Live API uses WebSockets for real-time communication
691
691
  - Audio is processed as 16kHz PCM16 for input and 24kHz PCM16 for output
692
692
  - The voice instance must be connected with `connect()` before using other methods
693
- - Always call `close()` when done to properly clean up resources
693
+ - Always call `close()` when done to clean up resources
694
694
  - Vertex AI authentication requires appropriate IAM permissions (`aiplatform.user` role)
695
695
  - Session resumption allows recovery from network interruptions
696
696
  - The API supports real-time interactions with text and audio
package/dist/index.cjs CHANGED
@@ -636,5 +636,3 @@ var GoogleVoice = class extends MastraVoice {
636
636
  }
637
637
  };
638
638
  exports.GoogleVoice = GoogleVoice;
639
-
640
- //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { google as SpeechTypes } from '@google-cloud/speech/build/protos/protos';
2
2
  import type { google as TextToSpeechTypes } from '@google-cloud/text-to-speech/build/protos/protos';
3
- import { MastraVoice } from './_types/@internal_voice@0.0.43/dist/index.js';
3
+ import { MastraVoice } from './_types/@internal_voice@0.0.47/dist/index.js';
4
4
  /**
5
5
  * Configuration for Google Cloud Voice models
6
6
  * @interface GoogleModelConfig
package/dist/index.js CHANGED
@@ -635,5 +635,3 @@ var GoogleVoice = class extends MastraVoice {
635
635
  }
636
636
  };
637
637
  export { GoogleVoice };
638
-
639
- //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@mastra/voice-google",
3
- "version": "0.14.5-alpha.0",
3
+ "version": "0.14.6-alpha.0",
4
4
  "description": "Mastra Google voice integration",
5
5
  "type": "module",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "!dist/**/*.d.*ts.map"
8
9
  ],
9
10
  "main": "dist/index.js",
10
11
  "types": "dist/index.d.ts",
@@ -28,15 +29,15 @@
28
29
  },
29
30
  "devDependencies": {
30
31
  "@types/node": "22.19.15",
31
- "@vitest/coverage-v8": "4.1.12",
32
- "@vitest/ui": "4.1.12",
32
+ "@vitest/coverage-v8": "5.1.0",
33
+ "@vitest/ui": "5.1.0",
33
34
  "tsdown": "0.23.1",
34
35
  "tsx": "^4.23.15",
35
36
  "typescript": "^7.0.2",
36
- "vitest": "4.1.12",
37
- "@internal/lint": "0.0.147",
38
- "@internal/types-builder": "0.0.122",
39
- "@internal/voice": "0.0.43"
37
+ "vitest": "5.1.0",
38
+ "@internal/lint": "0.0.151",
39
+ "@internal/types-builder": "0.0.126",
40
+ "@internal/voice": "0.0.47"
40
41
  },
41
42
  "peerDependencies": {
42
43
  "zod": "^3.25.0 || ^4.0.0"