@mastra/voice-gladia 0.12.1-alpha.0 → 0.12.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/voice-gladia
|
|
2
2
|
|
|
3
|
+
## 0.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Moved shared voice primitives and route metadata into the new `@internal/voice` package so voice providers no longer depend on `@mastra/core` and server voice routes share the same route definitions. ([#16725](https://github.com/mastra-ai/mastra/pull/16725))
|
|
8
|
+
|
|
9
|
+
`@mastra/core/voice` continues to re-export the voice APIs for backwards compatibility.
|
|
10
|
+
|
|
3
11
|
## 0.12.1-alpha.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import { JSONSchema7Definition } from 'json-schema';
|
|
1
3
|
import { ServerResponse } from 'node:http';
|
|
2
4
|
import { ServerResponse as ServerResponse_2 } from 'http';
|
|
3
5
|
import { z } from '../../zod/v4/index.d.cts';
|
|
@@ -3507,164 +3509,7 @@ export declare function jsonSchema<OBJECT = unknown>(jsonSchema: JSONSchema7 | (
|
|
|
3507
3509
|
validate?: (value: unknown) => ValidationResult<OBJECT> | PromiseLike<ValidationResult<OBJECT>>;
|
|
3508
3510
|
}): Schema<OBJECT>;
|
|
3509
3511
|
|
|
3510
|
-
export
|
|
3511
|
-
$id?: string | undefined;
|
|
3512
|
-
$ref?: string | undefined;
|
|
3513
|
-
$schema?: JSONSchema7Version | undefined;
|
|
3514
|
-
$comment?: string | undefined;
|
|
3515
|
-
|
|
3516
|
-
/**
|
|
3517
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
|
|
3518
|
-
* @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
|
|
3519
|
-
*/
|
|
3520
|
-
$defs?: {
|
|
3521
|
-
[key: string]: JSONSchema7Definition;
|
|
3522
|
-
} | undefined;
|
|
3523
|
-
|
|
3524
|
-
/**
|
|
3525
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
3526
|
-
*/
|
|
3527
|
-
type?: JSONSchema7TypeName | JSONSchema7TypeName[] | undefined;
|
|
3528
|
-
enum?: JSONSchema7Type[] | undefined;
|
|
3529
|
-
const?: JSONSchema7Type | undefined;
|
|
3530
|
-
|
|
3531
|
-
/**
|
|
3532
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
3533
|
-
*/
|
|
3534
|
-
multipleOf?: number | undefined;
|
|
3535
|
-
maximum?: number | undefined;
|
|
3536
|
-
exclusiveMaximum?: number | undefined;
|
|
3537
|
-
minimum?: number | undefined;
|
|
3538
|
-
exclusiveMinimum?: number | undefined;
|
|
3539
|
-
|
|
3540
|
-
/**
|
|
3541
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
3542
|
-
*/
|
|
3543
|
-
maxLength?: number | undefined;
|
|
3544
|
-
minLength?: number | undefined;
|
|
3545
|
-
pattern?: string | undefined;
|
|
3546
|
-
|
|
3547
|
-
/**
|
|
3548
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
3549
|
-
*/
|
|
3550
|
-
items?: JSONSchema7Definition | JSONSchema7Definition[] | undefined;
|
|
3551
|
-
additionalItems?: JSONSchema7Definition | undefined;
|
|
3552
|
-
maxItems?: number | undefined;
|
|
3553
|
-
minItems?: number | undefined;
|
|
3554
|
-
uniqueItems?: boolean | undefined;
|
|
3555
|
-
contains?: JSONSchema7Definition | undefined;
|
|
3556
|
-
|
|
3557
|
-
/**
|
|
3558
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
3559
|
-
*/
|
|
3560
|
-
maxProperties?: number | undefined;
|
|
3561
|
-
minProperties?: number | undefined;
|
|
3562
|
-
required?: string[] | undefined;
|
|
3563
|
-
properties?: {
|
|
3564
|
-
[key: string]: JSONSchema7Definition;
|
|
3565
|
-
} | undefined;
|
|
3566
|
-
patternProperties?: {
|
|
3567
|
-
[key: string]: JSONSchema7Definition;
|
|
3568
|
-
} | undefined;
|
|
3569
|
-
additionalProperties?: JSONSchema7Definition | undefined;
|
|
3570
|
-
dependencies?: {
|
|
3571
|
-
[key: string]: JSONSchema7Definition | string[];
|
|
3572
|
-
} | undefined;
|
|
3573
|
-
propertyNames?: JSONSchema7Definition | undefined;
|
|
3574
|
-
|
|
3575
|
-
/**
|
|
3576
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
3577
|
-
*/
|
|
3578
|
-
if?: JSONSchema7Definition | undefined;
|
|
3579
|
-
then?: JSONSchema7Definition | undefined;
|
|
3580
|
-
else?: JSONSchema7Definition | undefined;
|
|
3581
|
-
|
|
3582
|
-
/**
|
|
3583
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
3584
|
-
*/
|
|
3585
|
-
allOf?: JSONSchema7Definition[] | undefined;
|
|
3586
|
-
anyOf?: JSONSchema7Definition[] | undefined;
|
|
3587
|
-
oneOf?: JSONSchema7Definition[] | undefined;
|
|
3588
|
-
not?: JSONSchema7Definition | undefined;
|
|
3589
|
-
|
|
3590
|
-
/**
|
|
3591
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
3592
|
-
*/
|
|
3593
|
-
format?: string | undefined;
|
|
3594
|
-
|
|
3595
|
-
/**
|
|
3596
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
3597
|
-
*/
|
|
3598
|
-
contentMediaType?: string | undefined;
|
|
3599
|
-
contentEncoding?: string | undefined;
|
|
3600
|
-
|
|
3601
|
-
/**
|
|
3602
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
3603
|
-
*/
|
|
3604
|
-
definitions?: {
|
|
3605
|
-
[key: string]: JSONSchema7Definition;
|
|
3606
|
-
} | undefined;
|
|
3607
|
-
|
|
3608
|
-
/**
|
|
3609
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
3610
|
-
*/
|
|
3611
|
-
title?: string | undefined;
|
|
3612
|
-
description?: string | undefined;
|
|
3613
|
-
default?: JSONSchema7Type | undefined;
|
|
3614
|
-
readOnly?: boolean | undefined;
|
|
3615
|
-
writeOnly?: boolean | undefined;
|
|
3616
|
-
examples?: JSONSchema7Type | undefined;
|
|
3617
|
-
}
|
|
3618
|
-
|
|
3619
|
-
declare interface JSONSchema7Array extends Array<JSONSchema7Type> {}
|
|
3620
|
-
|
|
3621
|
-
/**
|
|
3622
|
-
* JSON Schema v7
|
|
3623
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
3624
|
-
*/
|
|
3625
|
-
declare type JSONSchema7Definition = JSONSchema7 | boolean;
|
|
3626
|
-
|
|
3627
|
-
declare interface JSONSchema7Object {
|
|
3628
|
-
[key: string]: JSONSchema7Type;
|
|
3629
|
-
}
|
|
3630
|
-
|
|
3631
|
-
/**
|
|
3632
|
-
* Primitive type
|
|
3633
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
3634
|
-
*/
|
|
3635
|
-
declare type JSONSchema7Type =
|
|
3636
|
-
| string //
|
|
3637
|
-
| number
|
|
3638
|
-
| boolean
|
|
3639
|
-
| JSONSchema7Object
|
|
3640
|
-
| JSONSchema7Array
|
|
3641
|
-
| null;
|
|
3642
|
-
|
|
3643
|
-
/**
|
|
3644
|
-
* Primitive type
|
|
3645
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
3646
|
-
*/
|
|
3647
|
-
declare type JSONSchema7TypeName =
|
|
3648
|
-
| "string" //
|
|
3649
|
-
| "number"
|
|
3650
|
-
| "integer"
|
|
3651
|
-
| "boolean"
|
|
3652
|
-
| "object"
|
|
3653
|
-
| "array"
|
|
3654
|
-
| "null";
|
|
3655
|
-
|
|
3656
|
-
/**
|
|
3657
|
-
* Meta schema
|
|
3658
|
-
*
|
|
3659
|
-
* Recommended values:
|
|
3660
|
-
* - 'http://json-schema.org/schema#'
|
|
3661
|
-
* - 'http://json-schema.org/hyper-schema#'
|
|
3662
|
-
* - 'http://json-schema.org/draft-07/schema#'
|
|
3663
|
-
* - 'http://json-schema.org/draft-07/hyper-schema#'
|
|
3664
|
-
*
|
|
3665
|
-
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
3666
|
-
*/
|
|
3667
|
-
declare type JSONSchema7Version = string;
|
|
3512
|
+
export { JSONSchema7 }
|
|
3668
3513
|
|
|
3669
3514
|
export declare class JsonToSseTransformStream extends TransformStream<unknown, string> {
|
|
3670
3515
|
constructor();
|
|
@@ -9039,5 +8884,5 @@ export declare function zodSchema<OBJECT>(zodSchema: z4.core.$ZodType<OBJECT, an
|
|
|
9039
8884
|
}): Schema<OBJECT>;
|
|
9040
8885
|
|
|
9041
8886
|
export { }
|
|
9042
|
-
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, FlexibleValidator as FlexibleValidator, ValidationResult as ValidationResult, LanguageModelV2ToolResultOutput as LanguageModelV2ToolResultOutput, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, LanguageModelV2ToolResultPart as LanguageModelV2ToolResultPart, FlexibleSchema as FlexibleSchema,
|
|
8887
|
+
export { GatewayProviderSettings as GatewayProviderSettings, GatewayProvider as GatewayProvider, ParseResult as ParseResult, FlexibleValidator as FlexibleValidator, ValidationResult as ValidationResult, LanguageModelV2ToolResultOutput as LanguageModelV2ToolResultOutput, ProviderOptions as ProviderOptions, ReasoningPart as ReasoningPart, ToolOutputProperties as ToolOutputProperties, LanguageModelV2ToolResultPart as LanguageModelV2ToolResultPart, FlexibleSchema as FlexibleSchema, ImageModelV2CallWarning as ImageModelV2CallWarning, SpeechModelV2CallWarning as SpeechModelV2CallWarning, TranscriptionModelV2CallWarning as TranscriptionModelV2CallWarning, AttributeValue as AttributeValue, Tracer as Tracer, EmbeddingModelV2Embedding as EmbeddingModelV2Embedding, ImageModelV2ProviderMetadata as ImageModelV2ProviderMetadata, GlobalProviderModelId as GlobalProviderModelId, LanguageModelV2FinishReason as LanguageModelV2FinishReason, LanguageModelV2CallWarning as LanguageModelV2CallWarning, LanguageModelV2Middleware as LanguageModelV2Middleware, SharedV2ProviderMetadata as SharedV2ProviderMetadata, LanguageModelV2Usage as LanguageModelV2Usage, Source as Source, ResponseMessage as ResponseMessage, DeepPartialInternal as DeepPartialInternal, LanguageModelV2ToolCall as LanguageModelV2ToolCall, StreamTextOnAbortCallback as StreamTextOnAbortCallback, ValueOf as ValueOf, asUITool as asUITool, _ai_sdk_provider_utils as _ai_sdk_provider_utils, _ai_sdk_provider as _ai_sdk_provider, DataUIMessageChunk as DataUIMessageChunk, ConsumeStreamOptions as ConsumeStreamOptions, Output_2 as Output_2, InferAgentTools as InferAgentTools, SingleRequestTextStreamPart as SingleRequestTextStreamPart, RetryErrorReason as RetryErrorReason, InferSchema as InferSchema, Job as Job, StreamObjectOnErrorCallback as StreamObjectOnErrorCallback, JSONValue_2 as JSONValue_2, LanguageModelV2CallOptions as LanguageModelV2CallOptions, LanguageModelV2 as LanguageModelV2, EmbeddingModelV2 as EmbeddingModelV2, ImageModelV2 as ImageModelV2, TranscriptionModelV2 as TranscriptionModelV2, SpeechModelV2 as SpeechModelV2, ExtractModelId as ExtractModelId, ExtractLiteralUnion as ExtractLiteralUnion, ProviderV2 as ProviderV2, getOriginalFetch as getOriginalFetch, UIMessageStreamResponseInit as UIMessageStreamResponseInit, InferUIMessageToolCall as InferUIMessageToolCall, Validator as Validator, StandardSchemaV1 as StandardSchemaV1, UIDataTypesToSchemas as UIDataTypesToSchemas, InferUIMessageData as InferUIMessageData, InferUIMessageMetadata as InferUIMessageMetadata, InferUIMessageTools as InferUIMessageTools, Resolvable as Resolvable, FetchFunction as FetchFunction };
|
|
9043
8888
|
export { schemaSymbol, symbol$1, symbol$1_2, symbol$2, symbol$2_2, symbol$3, symbol$3_2, symbol$4, symbol$4_2, symbol$5, symbol$5_2, symbol$6, symbol$6_2, symbol$7, symbol$7_2, symbol$8, symbol$8_2, symbol$9, symbol$9_2, symbol$a, symbol$a_2, symbol$b, symbol$b_2, symbol$c, symbol$c_2, symbol$d, symbol$d_2, symbol$e, symbol, symbol_2, symbol_3, validatorSymbol };
|
package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ type VersionSelector = {
|
|
|
52
52
|
};
|
|
53
53
|
type VersionOverrides = {
|
|
54
54
|
agents?: Record<string, VersionSelector>;
|
|
55
|
+
/** Fallback status for sub-agents (and future primitives) without an explicit entry. */
|
|
56
|
+
defaultStatus?: 'draft' | 'published';
|
|
55
57
|
};
|
|
56
58
|
declare function mergeVersionOverrides(base?: VersionOverrides, overrides?: VersionOverrides): VersionOverrides | undefined;
|
|
57
59
|
declare class RequestContext<Values extends Record<string, any> | unknown = unknown> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/voice-gladia",
|
|
3
|
-
"version": "0.12.1
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Mastra Gladia AI voice integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"typescript": "^6.0.3",
|
|
34
34
|
"vitest": "4.1.5",
|
|
35
35
|
"zod": "^4.4.3",
|
|
36
|
-
"@internal/
|
|
37
|
-
"@internal/
|
|
38
|
-
"@internal/
|
|
36
|
+
"@internal/lint": "0.0.100",
|
|
37
|
+
"@internal/types-builder": "0.0.75",
|
|
38
|
+
"@internal/voice": "0.0.1"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
41
41
|
"mastra",
|