@volley/recognition-client-sdk 0.1.670 → 0.1.707
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/browser.bundled.d.ts +59 -2
- package/dist/config-builder.d.ts +14 -1
- package/dist/config-builder.d.ts.map +1 -1
- package/dist/index.bundled.d.ts +118 -48
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +66 -4
- package/dist/index.js.map +3 -3
- package/dist/recog-client-sdk.browser.js +43 -4
- package/dist/recog-client-sdk.browser.js.map +3 -3
- package/dist/recognition-client.d.ts.map +1 -1
- package/dist/recognition-client.types.d.ts +7 -1
- package/dist/recognition-client.types.d.ts.map +1 -1
- package/dist/utils/message-handler.d.ts +2 -1
- package/dist/utils/message-handler.d.ts.map +1 -1
- package/dist/utils/url-builder.d.ts +4 -0
- package/dist/utils/url-builder.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/config-builder.ts +26 -0
- package/src/index.ts +1 -0
- package/src/recognition-client.ts +7 -1
- package/src/recognition-client.types.ts +10 -0
- package/src/utils/message-handler.ts +7 -1
- package/src/utils/url-builder.ts +14 -0
package/dist/index.bundled.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare enum RecognitionProvider {
|
|
|
21
21
|
MISTRAL_VOXTRAL = "mistral-voxtral",
|
|
22
22
|
CARTESIA = "cartesia",
|
|
23
23
|
DASHSCOPE = "dashscope",
|
|
24
|
+
BEDROCK = "bedrock",
|
|
24
25
|
TEST_ASR_PROVIDER_QUOTA = "test-asr-provider-quota",
|
|
25
26
|
TEST_ASR_STREAMING = "test-asr-streaming"
|
|
26
27
|
}
|
|
@@ -119,6 +120,15 @@ declare enum DashScopeModel {
|
|
|
119
120
|
QWEN3_ASR_FLASH_REALTIME_2602 = "qwen3-asr-flash-realtime-2026-02-10",
|
|
120
121
|
QWEN3_ASR_FLASH_REALTIME = "qwen3-asr-flash-realtime"
|
|
121
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* AWS Bedrock batch transcription models
|
|
125
|
+
* Accessed via AWS Bedrock InvokeModelWithResponseStream
|
|
126
|
+
* @see https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-mistral.html
|
|
127
|
+
*/
|
|
128
|
+
declare enum BedrockModel {
|
|
129
|
+
VOXTRAL_MINI_3B_2507 = "mistral.voxtral-mini-3b-2507",
|
|
130
|
+
VOXTRAL_SMALL_24B_2507 = "mistral.voxtral-small-24b-2507"
|
|
131
|
+
}
|
|
122
132
|
/**
|
|
123
133
|
* Self-serve vLLM batch transcription models
|
|
124
134
|
* Backed by recognition-inference / RunPod `/transcribe`
|
|
@@ -129,7 +139,7 @@ declare enum SelfServeVllmModel {
|
|
|
129
139
|
/**
|
|
130
140
|
* Type alias for any model from any provider
|
|
131
141
|
*/
|
|
132
|
-
type RecognitionModel = DeepgramModel | GoogleModel | FireworksModel | GladiaModel | ElevenLabsModel | OpenAIRealtimeModel | MistralVoxtralModel | CartesiaModel | DashScopeModel | SelfServeVllmModel | string;
|
|
142
|
+
type RecognitionModel = DeepgramModel | GoogleModel | FireworksModel | GladiaModel | ElevenLabsModel | OpenAIRealtimeModel | MistralVoxtralModel | CartesiaModel | DashScopeModel | SelfServeVllmModel | BedrockModel | string;
|
|
133
143
|
|
|
134
144
|
/**
|
|
135
145
|
* Audio encoding types
|
|
@@ -264,7 +274,8 @@ declare enum RecognitionResultTypeV1 {
|
|
|
264
274
|
METADATA = "Metadata",
|
|
265
275
|
ERROR = "Error",
|
|
266
276
|
CLIENT_CONTROL_MESSAGE = "ClientControlMessage",
|
|
267
|
-
AUDIO_METRICS = "AudioMetrics"
|
|
277
|
+
AUDIO_METRICS = "AudioMetrics",
|
|
278
|
+
SESSION_CONFIGURED = "SessionConfigured"
|
|
268
279
|
}
|
|
269
280
|
/**
|
|
270
281
|
* Transcription result V1 - contains transcript message
|
|
@@ -552,6 +563,46 @@ declare enum ClientControlActionV1 {
|
|
|
552
563
|
READY_FOR_UPLOADING_RECORDING = "ready_for_uploading_recording",
|
|
553
564
|
STOP_RECORDING = "stop_recording"
|
|
554
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* Session configured message V1 - sent after ASR provider is selected and configured
|
|
568
|
+
* Fires after circuit breaker checks pass and provider/model are finalized,
|
|
569
|
+
* before audio streaming begins. Contains the actual ASR config that will be used.
|
|
570
|
+
*/
|
|
571
|
+
declare const SessionConfiguredSchemaV1: z.ZodObject<{
|
|
572
|
+
type: z.ZodLiteral<RecognitionResultTypeV1.SESSION_CONFIGURED>;
|
|
573
|
+
audioUtteranceId: z.ZodString;
|
|
574
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
575
|
+
model: z.ZodOptional<z.ZodString>;
|
|
576
|
+
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
577
|
+
encoding: z.ZodOptional<z.ZodString>;
|
|
578
|
+
apiType: z.ZodOptional<z.ZodNativeEnum<typeof ASRApiType>>;
|
|
579
|
+
isFallback: z.ZodOptional<z.ZodBoolean>;
|
|
580
|
+
asrRequest: z.ZodOptional<z.ZodString>;
|
|
581
|
+
providerConfig: z.ZodOptional<z.ZodString>;
|
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
|
583
|
+
type: RecognitionResultTypeV1.SESSION_CONFIGURED;
|
|
584
|
+
audioUtteranceId: string;
|
|
585
|
+
provider?: string | undefined;
|
|
586
|
+
model?: string | undefined;
|
|
587
|
+
sampleRate?: number | undefined;
|
|
588
|
+
encoding?: string | undefined;
|
|
589
|
+
apiType?: ASRApiType | undefined;
|
|
590
|
+
isFallback?: boolean | undefined;
|
|
591
|
+
asrRequest?: string | undefined;
|
|
592
|
+
providerConfig?: string | undefined;
|
|
593
|
+
}, {
|
|
594
|
+
type: RecognitionResultTypeV1.SESSION_CONFIGURED;
|
|
595
|
+
audioUtteranceId: string;
|
|
596
|
+
provider?: string | undefined;
|
|
597
|
+
model?: string | undefined;
|
|
598
|
+
sampleRate?: number | undefined;
|
|
599
|
+
encoding?: string | undefined;
|
|
600
|
+
apiType?: ASRApiType | undefined;
|
|
601
|
+
isFallback?: boolean | undefined;
|
|
602
|
+
asrRequest?: string | undefined;
|
|
603
|
+
providerConfig?: string | undefined;
|
|
604
|
+
}>;
|
|
605
|
+
type SessionConfiguredV1 = z.infer<typeof SessionConfiguredSchemaV1>;
|
|
555
606
|
|
|
556
607
|
/**
|
|
557
608
|
* Error Exception Types
|
|
@@ -570,9 +621,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
|
|
|
570
621
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
571
622
|
message: z.ZodString;
|
|
572
623
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
624
|
+
description: z.ZodOptional<z.ZodString>;
|
|
573
625
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
574
626
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
575
|
-
description: z.ZodOptional<z.ZodString>;
|
|
576
627
|
errorType: z.ZodLiteral<ErrorTypeV1.AUTHENTICATION_ERROR>;
|
|
577
628
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
578
629
|
service: z.ZodOptional<z.ZodString>;
|
|
@@ -583,9 +634,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
|
|
|
583
634
|
isImmediatelyAvailable: false;
|
|
584
635
|
code?: string | number | undefined;
|
|
585
636
|
provider?: RecognitionProvider | undefined;
|
|
637
|
+
description?: string | undefined;
|
|
586
638
|
audioUtteranceId?: string | undefined;
|
|
587
639
|
timestamp?: number | undefined;
|
|
588
|
-
description?: string | undefined;
|
|
589
640
|
service?: string | undefined;
|
|
590
641
|
authMethod?: string | undefined;
|
|
591
642
|
}, {
|
|
@@ -594,9 +645,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
|
|
|
594
645
|
isImmediatelyAvailable: false;
|
|
595
646
|
code?: string | number | undefined;
|
|
596
647
|
provider?: RecognitionProvider | undefined;
|
|
648
|
+
description?: string | undefined;
|
|
597
649
|
audioUtteranceId?: string | undefined;
|
|
598
650
|
timestamp?: number | undefined;
|
|
599
|
-
description?: string | undefined;
|
|
600
651
|
service?: string | undefined;
|
|
601
652
|
authMethod?: string | undefined;
|
|
602
653
|
}>;
|
|
@@ -610,9 +661,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
|
|
|
610
661
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
611
662
|
message: z.ZodString;
|
|
612
663
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
664
|
+
description: z.ZodOptional<z.ZodString>;
|
|
613
665
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
614
666
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
615
|
-
description: z.ZodOptional<z.ZodString>;
|
|
616
667
|
errorType: z.ZodLiteral<ErrorTypeV1.VALIDATION_ERROR>;
|
|
617
668
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
618
669
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -624,9 +675,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
|
|
|
624
675
|
isImmediatelyAvailable: true;
|
|
625
676
|
code?: string | number | undefined;
|
|
626
677
|
provider?: RecognitionProvider | undefined;
|
|
678
|
+
description?: string | undefined;
|
|
627
679
|
audioUtteranceId?: string | undefined;
|
|
628
680
|
timestamp?: number | undefined;
|
|
629
|
-
description?: string | undefined;
|
|
630
681
|
field?: string | undefined;
|
|
631
682
|
expected?: string | undefined;
|
|
632
683
|
received?: string | undefined;
|
|
@@ -636,9 +687,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
|
|
|
636
687
|
isImmediatelyAvailable: true;
|
|
637
688
|
code?: string | number | undefined;
|
|
638
689
|
provider?: RecognitionProvider | undefined;
|
|
690
|
+
description?: string | undefined;
|
|
639
691
|
audioUtteranceId?: string | undefined;
|
|
640
692
|
timestamp?: number | undefined;
|
|
641
|
-
description?: string | undefined;
|
|
642
693
|
field?: string | undefined;
|
|
643
694
|
expected?: string | undefined;
|
|
644
695
|
received?: string | undefined;
|
|
@@ -652,9 +703,9 @@ type ValidationException = z.infer<typeof ValidationExceptionSchema>;
|
|
|
652
703
|
declare const ProviderExceptionSchema: z.ZodObject<{
|
|
653
704
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
654
705
|
message: z.ZodString;
|
|
706
|
+
description: z.ZodOptional<z.ZodString>;
|
|
655
707
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
656
708
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
657
|
-
description: z.ZodOptional<z.ZodString>;
|
|
658
709
|
errorType: z.ZodLiteral<ErrorTypeV1.PROVIDER_ERROR>;
|
|
659
710
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
660
711
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -665,9 +716,9 @@ declare const ProviderExceptionSchema: z.ZodObject<{
|
|
|
665
716
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
666
717
|
isImmediatelyAvailable: false;
|
|
667
718
|
code?: string | number | undefined;
|
|
719
|
+
description?: string | undefined;
|
|
668
720
|
audioUtteranceId?: string | undefined;
|
|
669
721
|
timestamp?: number | undefined;
|
|
670
|
-
description?: string | undefined;
|
|
671
722
|
provider?: string | undefined;
|
|
672
723
|
providerErrorCode?: string | number | undefined;
|
|
673
724
|
isTransient?: boolean | undefined;
|
|
@@ -676,9 +727,9 @@ declare const ProviderExceptionSchema: z.ZodObject<{
|
|
|
676
727
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
677
728
|
isImmediatelyAvailable: false;
|
|
678
729
|
code?: string | number | undefined;
|
|
730
|
+
description?: string | undefined;
|
|
679
731
|
audioUtteranceId?: string | undefined;
|
|
680
732
|
timestamp?: number | undefined;
|
|
681
|
-
description?: string | undefined;
|
|
682
733
|
provider?: string | undefined;
|
|
683
734
|
providerErrorCode?: string | number | undefined;
|
|
684
735
|
isTransient?: boolean | undefined;
|
|
@@ -693,9 +744,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
|
|
|
693
744
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
694
745
|
message: z.ZodString;
|
|
695
746
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
747
|
+
description: z.ZodOptional<z.ZodString>;
|
|
696
748
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
697
749
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
698
|
-
description: z.ZodOptional<z.ZodString>;
|
|
699
750
|
errorType: z.ZodLiteral<ErrorTypeV1.TIMEOUT_ERROR>;
|
|
700
751
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
701
752
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -706,9 +757,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
|
|
|
706
757
|
isImmediatelyAvailable: true;
|
|
707
758
|
code?: string | number | undefined;
|
|
708
759
|
provider?: RecognitionProvider | undefined;
|
|
760
|
+
description?: string | undefined;
|
|
709
761
|
audioUtteranceId?: string | undefined;
|
|
710
762
|
timestamp?: number | undefined;
|
|
711
|
-
description?: string | undefined;
|
|
712
763
|
timeoutMs?: number | undefined;
|
|
713
764
|
operation?: string | undefined;
|
|
714
765
|
}, {
|
|
@@ -717,9 +768,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
|
|
|
717
768
|
isImmediatelyAvailable: true;
|
|
718
769
|
code?: string | number | undefined;
|
|
719
770
|
provider?: RecognitionProvider | undefined;
|
|
771
|
+
description?: string | undefined;
|
|
720
772
|
audioUtteranceId?: string | undefined;
|
|
721
773
|
timestamp?: number | undefined;
|
|
722
|
-
description?: string | undefined;
|
|
723
774
|
timeoutMs?: number | undefined;
|
|
724
775
|
operation?: string | undefined;
|
|
725
776
|
}>;
|
|
@@ -733,9 +784,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
|
|
|
733
784
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
734
785
|
message: z.ZodString;
|
|
735
786
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
787
|
+
description: z.ZodOptional<z.ZodString>;
|
|
736
788
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
737
789
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
738
|
-
description: z.ZodOptional<z.ZodString>;
|
|
739
790
|
errorType: z.ZodLiteral<ErrorTypeV1.QUOTA_EXCEEDED>;
|
|
740
791
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
741
792
|
quotaType: z.ZodOptional<z.ZodString>;
|
|
@@ -747,9 +798,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
|
|
|
747
798
|
isImmediatelyAvailable: true;
|
|
748
799
|
code?: string | number | undefined;
|
|
749
800
|
provider?: RecognitionProvider | undefined;
|
|
801
|
+
description?: string | undefined;
|
|
750
802
|
audioUtteranceId?: string | undefined;
|
|
751
803
|
timestamp?: number | undefined;
|
|
752
|
-
description?: string | undefined;
|
|
753
804
|
quotaType?: string | undefined;
|
|
754
805
|
resetAt?: number | undefined;
|
|
755
806
|
retryAfterSeconds?: number | undefined;
|
|
@@ -759,9 +810,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
|
|
|
759
810
|
isImmediatelyAvailable: true;
|
|
760
811
|
code?: string | number | undefined;
|
|
761
812
|
provider?: RecognitionProvider | undefined;
|
|
813
|
+
description?: string | undefined;
|
|
762
814
|
audioUtteranceId?: string | undefined;
|
|
763
815
|
timestamp?: number | undefined;
|
|
764
|
-
description?: string | undefined;
|
|
765
816
|
quotaType?: string | undefined;
|
|
766
817
|
resetAt?: number | undefined;
|
|
767
818
|
retryAfterSeconds?: number | undefined;
|
|
@@ -776,9 +827,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
|
|
|
776
827
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
777
828
|
message: z.ZodString;
|
|
778
829
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
830
|
+
description: z.ZodOptional<z.ZodString>;
|
|
779
831
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
780
832
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
781
|
-
description: z.ZodOptional<z.ZodString>;
|
|
782
833
|
errorType: z.ZodLiteral<ErrorTypeV1.CONNECTION_ERROR>;
|
|
783
834
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
784
835
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -790,9 +841,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
|
|
|
790
841
|
isImmediatelyAvailable: true;
|
|
791
842
|
code?: string | number | undefined;
|
|
792
843
|
provider?: RecognitionProvider | undefined;
|
|
844
|
+
description?: string | undefined;
|
|
793
845
|
audioUtteranceId?: string | undefined;
|
|
794
846
|
timestamp?: number | undefined;
|
|
795
|
-
description?: string | undefined;
|
|
796
847
|
attempts?: number | undefined;
|
|
797
848
|
url?: string | undefined;
|
|
798
849
|
underlyingError?: string | undefined;
|
|
@@ -802,9 +853,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
|
|
|
802
853
|
isImmediatelyAvailable: true;
|
|
803
854
|
code?: string | number | undefined;
|
|
804
855
|
provider?: RecognitionProvider | undefined;
|
|
856
|
+
description?: string | undefined;
|
|
805
857
|
audioUtteranceId?: string | undefined;
|
|
806
858
|
timestamp?: number | undefined;
|
|
807
|
-
description?: string | undefined;
|
|
808
859
|
attempts?: number | undefined;
|
|
809
860
|
url?: string | undefined;
|
|
810
861
|
underlyingError?: string | undefined;
|
|
@@ -819,9 +870,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
|
|
|
819
870
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
820
871
|
message: z.ZodString;
|
|
821
872
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
873
|
+
description: z.ZodOptional<z.ZodString>;
|
|
822
874
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
823
875
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
824
|
-
description: z.ZodOptional<z.ZodString>;
|
|
825
876
|
errorType: z.ZodLiteral<ErrorTypeV1.UNKNOWN_ERROR>;
|
|
826
877
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
827
878
|
stack: z.ZodOptional<z.ZodString>;
|
|
@@ -832,9 +883,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
|
|
|
832
883
|
isImmediatelyAvailable: false;
|
|
833
884
|
code?: string | number | undefined;
|
|
834
885
|
provider?: RecognitionProvider | undefined;
|
|
886
|
+
description?: string | undefined;
|
|
835
887
|
audioUtteranceId?: string | undefined;
|
|
836
888
|
timestamp?: number | undefined;
|
|
837
|
-
description?: string | undefined;
|
|
838
889
|
stack?: string | undefined;
|
|
839
890
|
context?: Record<string, unknown> | undefined;
|
|
840
891
|
}, {
|
|
@@ -843,9 +894,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
|
|
|
843
894
|
isImmediatelyAvailable: false;
|
|
844
895
|
code?: string | number | undefined;
|
|
845
896
|
provider?: RecognitionProvider | undefined;
|
|
897
|
+
description?: string | undefined;
|
|
846
898
|
audioUtteranceId?: string | undefined;
|
|
847
899
|
timestamp?: number | undefined;
|
|
848
|
-
description?: string | undefined;
|
|
849
900
|
stack?: string | undefined;
|
|
850
901
|
context?: Record<string, unknown> | undefined;
|
|
851
902
|
}>;
|
|
@@ -858,9 +909,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
858
909
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
859
910
|
message: z.ZodString;
|
|
860
911
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
912
|
+
description: z.ZodOptional<z.ZodString>;
|
|
861
913
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
862
914
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
863
|
-
description: z.ZodOptional<z.ZodString>;
|
|
864
915
|
errorType: z.ZodLiteral<ErrorTypeV1.AUTHENTICATION_ERROR>;
|
|
865
916
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
866
917
|
service: z.ZodOptional<z.ZodString>;
|
|
@@ -871,9 +922,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
871
922
|
isImmediatelyAvailable: false;
|
|
872
923
|
code?: string | number | undefined;
|
|
873
924
|
provider?: RecognitionProvider | undefined;
|
|
925
|
+
description?: string | undefined;
|
|
874
926
|
audioUtteranceId?: string | undefined;
|
|
875
927
|
timestamp?: number | undefined;
|
|
876
|
-
description?: string | undefined;
|
|
877
928
|
service?: string | undefined;
|
|
878
929
|
authMethod?: string | undefined;
|
|
879
930
|
}, {
|
|
@@ -882,18 +933,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
882
933
|
isImmediatelyAvailable: false;
|
|
883
934
|
code?: string | number | undefined;
|
|
884
935
|
provider?: RecognitionProvider | undefined;
|
|
936
|
+
description?: string | undefined;
|
|
885
937
|
audioUtteranceId?: string | undefined;
|
|
886
938
|
timestamp?: number | undefined;
|
|
887
|
-
description?: string | undefined;
|
|
888
939
|
service?: string | undefined;
|
|
889
940
|
authMethod?: string | undefined;
|
|
890
941
|
}>, z.ZodObject<{
|
|
891
942
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
892
943
|
message: z.ZodString;
|
|
893
944
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
945
|
+
description: z.ZodOptional<z.ZodString>;
|
|
894
946
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
895
947
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
896
|
-
description: z.ZodOptional<z.ZodString>;
|
|
897
948
|
errorType: z.ZodLiteral<ErrorTypeV1.VALIDATION_ERROR>;
|
|
898
949
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
899
950
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -905,9 +956,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
905
956
|
isImmediatelyAvailable: true;
|
|
906
957
|
code?: string | number | undefined;
|
|
907
958
|
provider?: RecognitionProvider | undefined;
|
|
959
|
+
description?: string | undefined;
|
|
908
960
|
audioUtteranceId?: string | undefined;
|
|
909
961
|
timestamp?: number | undefined;
|
|
910
|
-
description?: string | undefined;
|
|
911
962
|
field?: string | undefined;
|
|
912
963
|
expected?: string | undefined;
|
|
913
964
|
received?: string | undefined;
|
|
@@ -917,18 +968,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
917
968
|
isImmediatelyAvailable: true;
|
|
918
969
|
code?: string | number | undefined;
|
|
919
970
|
provider?: RecognitionProvider | undefined;
|
|
971
|
+
description?: string | undefined;
|
|
920
972
|
audioUtteranceId?: string | undefined;
|
|
921
973
|
timestamp?: number | undefined;
|
|
922
|
-
description?: string | undefined;
|
|
923
974
|
field?: string | undefined;
|
|
924
975
|
expected?: string | undefined;
|
|
925
976
|
received?: string | undefined;
|
|
926
977
|
}>, z.ZodObject<{
|
|
927
978
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
928
979
|
message: z.ZodString;
|
|
980
|
+
description: z.ZodOptional<z.ZodString>;
|
|
929
981
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
930
982
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
931
|
-
description: z.ZodOptional<z.ZodString>;
|
|
932
983
|
errorType: z.ZodLiteral<ErrorTypeV1.PROVIDER_ERROR>;
|
|
933
984
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
934
985
|
provider: z.ZodOptional<z.ZodString>;
|
|
@@ -939,9 +990,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
939
990
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
940
991
|
isImmediatelyAvailable: false;
|
|
941
992
|
code?: string | number | undefined;
|
|
993
|
+
description?: string | undefined;
|
|
942
994
|
audioUtteranceId?: string | undefined;
|
|
943
995
|
timestamp?: number | undefined;
|
|
944
|
-
description?: string | undefined;
|
|
945
996
|
provider?: string | undefined;
|
|
946
997
|
providerErrorCode?: string | number | undefined;
|
|
947
998
|
isTransient?: boolean | undefined;
|
|
@@ -950,9 +1001,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
950
1001
|
errorType: ErrorTypeV1.PROVIDER_ERROR;
|
|
951
1002
|
isImmediatelyAvailable: false;
|
|
952
1003
|
code?: string | number | undefined;
|
|
1004
|
+
description?: string | undefined;
|
|
953
1005
|
audioUtteranceId?: string | undefined;
|
|
954
1006
|
timestamp?: number | undefined;
|
|
955
|
-
description?: string | undefined;
|
|
956
1007
|
provider?: string | undefined;
|
|
957
1008
|
providerErrorCode?: string | number | undefined;
|
|
958
1009
|
isTransient?: boolean | undefined;
|
|
@@ -960,9 +1011,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
960
1011
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
961
1012
|
message: z.ZodString;
|
|
962
1013
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1014
|
+
description: z.ZodOptional<z.ZodString>;
|
|
963
1015
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
964
1016
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
965
|
-
description: z.ZodOptional<z.ZodString>;
|
|
966
1017
|
errorType: z.ZodLiteral<ErrorTypeV1.TIMEOUT_ERROR>;
|
|
967
1018
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
968
1019
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -973,9 +1024,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
973
1024
|
isImmediatelyAvailable: true;
|
|
974
1025
|
code?: string | number | undefined;
|
|
975
1026
|
provider?: RecognitionProvider | undefined;
|
|
1027
|
+
description?: string | undefined;
|
|
976
1028
|
audioUtteranceId?: string | undefined;
|
|
977
1029
|
timestamp?: number | undefined;
|
|
978
|
-
description?: string | undefined;
|
|
979
1030
|
timeoutMs?: number | undefined;
|
|
980
1031
|
operation?: string | undefined;
|
|
981
1032
|
}, {
|
|
@@ -984,18 +1035,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
984
1035
|
isImmediatelyAvailable: true;
|
|
985
1036
|
code?: string | number | undefined;
|
|
986
1037
|
provider?: RecognitionProvider | undefined;
|
|
1038
|
+
description?: string | undefined;
|
|
987
1039
|
audioUtteranceId?: string | undefined;
|
|
988
1040
|
timestamp?: number | undefined;
|
|
989
|
-
description?: string | undefined;
|
|
990
1041
|
timeoutMs?: number | undefined;
|
|
991
1042
|
operation?: string | undefined;
|
|
992
1043
|
}>, z.ZodObject<{
|
|
993
1044
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
994
1045
|
message: z.ZodString;
|
|
995
1046
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1047
|
+
description: z.ZodOptional<z.ZodString>;
|
|
996
1048
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
997
1049
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
998
|
-
description: z.ZodOptional<z.ZodString>;
|
|
999
1050
|
errorType: z.ZodLiteral<ErrorTypeV1.QUOTA_EXCEEDED>;
|
|
1000
1051
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
1001
1052
|
quotaType: z.ZodOptional<z.ZodString>;
|
|
@@ -1007,9 +1058,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1007
1058
|
isImmediatelyAvailable: true;
|
|
1008
1059
|
code?: string | number | undefined;
|
|
1009
1060
|
provider?: RecognitionProvider | undefined;
|
|
1061
|
+
description?: string | undefined;
|
|
1010
1062
|
audioUtteranceId?: string | undefined;
|
|
1011
1063
|
timestamp?: number | undefined;
|
|
1012
|
-
description?: string | undefined;
|
|
1013
1064
|
quotaType?: string | undefined;
|
|
1014
1065
|
resetAt?: number | undefined;
|
|
1015
1066
|
retryAfterSeconds?: number | undefined;
|
|
@@ -1019,9 +1070,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1019
1070
|
isImmediatelyAvailable: true;
|
|
1020
1071
|
code?: string | number | undefined;
|
|
1021
1072
|
provider?: RecognitionProvider | undefined;
|
|
1073
|
+
description?: string | undefined;
|
|
1022
1074
|
audioUtteranceId?: string | undefined;
|
|
1023
1075
|
timestamp?: number | undefined;
|
|
1024
|
-
description?: string | undefined;
|
|
1025
1076
|
quotaType?: string | undefined;
|
|
1026
1077
|
resetAt?: number | undefined;
|
|
1027
1078
|
retryAfterSeconds?: number | undefined;
|
|
@@ -1029,9 +1080,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1029
1080
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1030
1081
|
message: z.ZodString;
|
|
1031
1082
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1083
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1032
1084
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1033
1085
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1034
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1035
1086
|
errorType: z.ZodLiteral<ErrorTypeV1.CONNECTION_ERROR>;
|
|
1036
1087
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
1037
1088
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1043,9 +1094,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1043
1094
|
isImmediatelyAvailable: true;
|
|
1044
1095
|
code?: string | number | undefined;
|
|
1045
1096
|
provider?: RecognitionProvider | undefined;
|
|
1097
|
+
description?: string | undefined;
|
|
1046
1098
|
audioUtteranceId?: string | undefined;
|
|
1047
1099
|
timestamp?: number | undefined;
|
|
1048
|
-
description?: string | undefined;
|
|
1049
1100
|
attempts?: number | undefined;
|
|
1050
1101
|
url?: string | undefined;
|
|
1051
1102
|
underlyingError?: string | undefined;
|
|
@@ -1055,18 +1106,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1055
1106
|
isImmediatelyAvailable: true;
|
|
1056
1107
|
code?: string | number | undefined;
|
|
1057
1108
|
provider?: RecognitionProvider | undefined;
|
|
1109
|
+
description?: string | undefined;
|
|
1058
1110
|
audioUtteranceId?: string | undefined;
|
|
1059
1111
|
timestamp?: number | undefined;
|
|
1060
|
-
description?: string | undefined;
|
|
1061
1112
|
attempts?: number | undefined;
|
|
1062
1113
|
url?: string | undefined;
|
|
1063
1114
|
underlyingError?: string | undefined;
|
|
1064
1115
|
}>, z.ZodObject<{
|
|
1065
1116
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1066
1117
|
message: z.ZodString;
|
|
1118
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1067
1119
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1068
1120
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1069
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1070
1121
|
errorType: z.ZodLiteral<ErrorTypeV1.CIRCUIT_BREAKER_OPEN>;
|
|
1071
1122
|
isImmediatelyAvailable: z.ZodLiteral<true>;
|
|
1072
1123
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
@@ -1076,9 +1127,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1076
1127
|
errorType: ErrorTypeV1.CIRCUIT_BREAKER_OPEN;
|
|
1077
1128
|
isImmediatelyAvailable: true;
|
|
1078
1129
|
code?: string | number | undefined;
|
|
1130
|
+
description?: string | undefined;
|
|
1079
1131
|
audioUtteranceId?: string | undefined;
|
|
1080
1132
|
timestamp?: number | undefined;
|
|
1081
|
-
description?: string | undefined;
|
|
1082
1133
|
provider?: RecognitionProvider | undefined;
|
|
1083
1134
|
model?: string | undefined;
|
|
1084
1135
|
}, {
|
|
@@ -1086,18 +1137,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1086
1137
|
errorType: ErrorTypeV1.CIRCUIT_BREAKER_OPEN;
|
|
1087
1138
|
isImmediatelyAvailable: true;
|
|
1088
1139
|
code?: string | number | undefined;
|
|
1140
|
+
description?: string | undefined;
|
|
1089
1141
|
audioUtteranceId?: string | undefined;
|
|
1090
1142
|
timestamp?: number | undefined;
|
|
1091
|
-
description?: string | undefined;
|
|
1092
1143
|
provider?: RecognitionProvider | undefined;
|
|
1093
1144
|
model?: string | undefined;
|
|
1094
1145
|
}>, z.ZodObject<{
|
|
1095
1146
|
code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1096
1147
|
message: z.ZodString;
|
|
1097
1148
|
provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
|
|
1149
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1098
1150
|
audioUtteranceId: z.ZodOptional<z.ZodString>;
|
|
1099
1151
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1101
1152
|
errorType: z.ZodLiteral<ErrorTypeV1.UNKNOWN_ERROR>;
|
|
1102
1153
|
isImmediatelyAvailable: z.ZodLiteral<false>;
|
|
1103
1154
|
stack: z.ZodOptional<z.ZodString>;
|
|
@@ -1108,9 +1159,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1108
1159
|
isImmediatelyAvailable: false;
|
|
1109
1160
|
code?: string | number | undefined;
|
|
1110
1161
|
provider?: RecognitionProvider | undefined;
|
|
1162
|
+
description?: string | undefined;
|
|
1111
1163
|
audioUtteranceId?: string | undefined;
|
|
1112
1164
|
timestamp?: number | undefined;
|
|
1113
|
-
description?: string | undefined;
|
|
1114
1165
|
stack?: string | undefined;
|
|
1115
1166
|
context?: Record<string, unknown> | undefined;
|
|
1116
1167
|
}, {
|
|
@@ -1119,9 +1170,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
|
|
|
1119
1170
|
isImmediatelyAvailable: false;
|
|
1120
1171
|
code?: string | number | undefined;
|
|
1121
1172
|
provider?: RecognitionProvider | undefined;
|
|
1173
|
+
description?: string | undefined;
|
|
1122
1174
|
audioUtteranceId?: string | undefined;
|
|
1123
1175
|
timestamp?: number | undefined;
|
|
1124
|
-
description?: string | undefined;
|
|
1125
1176
|
stack?: string | undefined;
|
|
1126
1177
|
context?: Record<string, unknown> | undefined;
|
|
1127
1178
|
}>]>;
|
|
@@ -1862,6 +1913,10 @@ interface IRecognitionClientConfig {
|
|
|
1862
1913
|
questionAnswerId?: string;
|
|
1863
1914
|
/** Platform for audio recording device (optional, e.g., 'ios', 'android', 'web', 'unity') */
|
|
1864
1915
|
platform?: string;
|
|
1916
|
+
/** Experiment cohort (optional). Defaults to 'control' if not provided. */
|
|
1917
|
+
experimentCohort?: 'treatment' | 'control';
|
|
1918
|
+
/** Explicit major version for ASR config selection (e.g. 1, 3). Takes precedence over experimentCohort. */
|
|
1919
|
+
experimentMajorVersion?: number;
|
|
1865
1920
|
/** Callback when transcript is received */
|
|
1866
1921
|
onTranscript?: (result: TranscriptionResultV1) => void;
|
|
1867
1922
|
/**
|
|
@@ -1871,6 +1926,8 @@ interface IRecognitionClientConfig {
|
|
|
1871
1926
|
onFunctionCall?: (result: FunctionCallResultV1) => void;
|
|
1872
1927
|
/** Callback when metadata is received. Only once after transcription is complete.*/
|
|
1873
1928
|
onMetadata?: (metadata: MetadataResultV1) => void;
|
|
1929
|
+
/** Callback when session is configured with actual ASR provider/model (optional) */
|
|
1930
|
+
onSessionConfigured?: (config: SessionConfiguredV1) => void;
|
|
1874
1931
|
/** Callback when error occurs */
|
|
1875
1932
|
onError?: (error: ErrorResultV1) => void;
|
|
1876
1933
|
/** Callback when connected to WebSocket */
|
|
@@ -2297,6 +2354,15 @@ declare class ConfigBuilder {
|
|
|
2297
2354
|
* Set platform
|
|
2298
2355
|
*/
|
|
2299
2356
|
platform(platform: string): this;
|
|
2357
|
+
/**
|
|
2358
|
+
* Set experiment cohort (optional, defaults to 'control')
|
|
2359
|
+
*/
|
|
2360
|
+
experimentCohort(cohort: 'treatment' | 'control'): this;
|
|
2361
|
+
/**
|
|
2362
|
+
* Set explicit major version for ASR config selection.
|
|
2363
|
+
* Takes precedence over experimentCohort-based version resolution.
|
|
2364
|
+
*/
|
|
2365
|
+
experimentMajorVersion(version: number): this;
|
|
2300
2366
|
/**
|
|
2301
2367
|
* Set transcript callback
|
|
2302
2368
|
*/
|
|
@@ -2305,6 +2371,10 @@ declare class ConfigBuilder {
|
|
|
2305
2371
|
* Set metadata callback
|
|
2306
2372
|
*/
|
|
2307
2373
|
onMetadata(callback: (metadata: MetadataResultV1) => void): this;
|
|
2374
|
+
/**
|
|
2375
|
+
* Set session configured callback (optional)
|
|
2376
|
+
*/
|
|
2377
|
+
onSessionConfigured(callback: (config: SessionConfiguredV1) => void): this;
|
|
2308
2378
|
/**
|
|
2309
2379
|
* Set error callback
|
|
2310
2380
|
*/
|
|
@@ -2767,5 +2837,5 @@ declare function getRecognitionConductorHttpBase(stage?: Stage | string | null |
|
|
|
2767
2837
|
declare function getRecognitionConductorWsBase(stage?: Stage | string | null | undefined): string;
|
|
2768
2838
|
declare function getRecognitionConductorHost(stage?: Stage | string | null | undefined): string;
|
|
2769
2839
|
|
|
2770
|
-
export { AudioEncoding, CartesiaModel, ClientControlActionV1, ClientState, ConfigBuilder, ConnectionError, ControlSignalTypeV1 as ControlSignal, ControlSignalTypeV1, DashScopeModel, DeepgramModel, ElevenLabsModel, ErrorTypeV1, FinalTranscriptStability, FireworksModel, GeminiModel, GladiaModel, GoogleModel, Language, MistralVoxtralModel, OpenAIModel, OpenAIRealtimeModel, RECOGNITION_CONDUCTOR_BASES, RECOGNITION_SERVICE_BASES, RealTimeTwoWayWebSocketRecognitionClient, RecognitionContextTypeV1, RecognitionError, RecognitionProvider, RecognitionResultTypeV1, RecognitionVGFStateSchema, RecordingStatus, STAGES, SampleRate, SelfServeVllmModel, SimplifiedVGFRecognitionClient, TimeoutError, TranscriptionStatus, ValidationError, createClient, createClientWithBuilder, createDefaultASRConfig, createInitialRecognitionState, createSimplifiedVGFClient, getRecognitionConductorBase, getRecognitionConductorHost, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionServiceBase, getRecognitionServiceHost, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getUserFriendlyMessage, isExceptionImmediatelyAvailable, isNormalDisconnection, isValidRecordingStatusTransition, normalizeStage, resetRecognitionVGFState };
|
|
2840
|
+
export { AudioEncoding, BedrockModel, CartesiaModel, ClientControlActionV1, ClientState, ConfigBuilder, ConnectionError, ControlSignalTypeV1 as ControlSignal, ControlSignalTypeV1, DashScopeModel, DeepgramModel, ElevenLabsModel, ErrorTypeV1, FinalTranscriptStability, FireworksModel, GeminiModel, GladiaModel, GoogleModel, Language, MistralVoxtralModel, OpenAIModel, OpenAIRealtimeModel, RECOGNITION_CONDUCTOR_BASES, RECOGNITION_SERVICE_BASES, RealTimeTwoWayWebSocketRecognitionClient, RecognitionContextTypeV1, RecognitionError, RecognitionProvider, RecognitionResultTypeV1, RecognitionVGFStateSchema, RecordingStatus, STAGES, SampleRate, SelfServeVllmModel, SimplifiedVGFRecognitionClient, TimeoutError, TranscriptionStatus, ValidationError, createClient, createClientWithBuilder, createDefaultASRConfig, createInitialRecognitionState, createSimplifiedVGFClient, getRecognitionConductorBase, getRecognitionConductorHost, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionServiceBase, getRecognitionServiceHost, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getUserFriendlyMessage, isExceptionImmediatelyAvailable, isNormalDisconnection, isValidRecordingStatusTransition, normalizeStage, resetRecognitionVGFState };
|
|
2771
2841
|
export type { ASRRequestConfig, ASRRequestV1, AuthenticationException, ConnectionException, ErrorResultV1, FunctionCallResultV1, GameContextV1, IRecognitionClient, IRecognitionClientConfig, IRecognitionClientStats, ISimplifiedVGFRecognitionClient, MetadataResultV1, ProviderException, QuotaExceededException, RealTimeTwoWayWebSocketRecognitionClientConfig, RecognitionCallbackUrl, RecognitionException, RecognitionState, RecordingStatusType, SimplifiedVGFClientConfig, SlotMap, Stage, TimeoutException, TranscriptionResult, TranscriptionResultV1, TranscriptionStatusType, UnknownException, ValidationException };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export { type RecognitionState, RecognitionVGFStateSchema, RecordingStatus, Tran
|
|
|
11
11
|
export { resetRecognitionVGFState } from './vgf-recognition-mapper.js';
|
|
12
12
|
export { AudioEncoding } from '@recog/websocket';
|
|
13
13
|
export { type GameContextV1, type SlotMap, RecognitionContextTypeV1, ControlSignalTypeV1, ControlSignalTypeV1 as ControlSignal, // Alias for backward compatibility
|
|
14
|
-
type TranscriptionResultV1, type FunctionCallResultV1, type MetadataResultV1, type ErrorResultV1, RecognitionResultTypeV1, ClientControlActionV1, type ASRRequestConfig, type ASRRequestV1, FinalTranscriptStability, createDefaultASRConfig, RecognitionProvider, DeepgramModel, ElevenLabsModel, FireworksModel, GladiaModel, GoogleModel, GeminiModel, OpenAIModel, SelfServeVllmModel, OpenAIRealtimeModel, MistralVoxtralModel, CartesiaModel, DashScopeModel, Language, SampleRate, STAGES, type Stage } from '@recog/shared-types';
|
|
14
|
+
type TranscriptionResultV1, type FunctionCallResultV1, type MetadataResultV1, type ErrorResultV1, RecognitionResultTypeV1, ClientControlActionV1, type ASRRequestConfig, type ASRRequestV1, FinalTranscriptStability, createDefaultASRConfig, RecognitionProvider, DeepgramModel, ElevenLabsModel, FireworksModel, GladiaModel, GoogleModel, GeminiModel, OpenAIModel, SelfServeVllmModel, OpenAIRealtimeModel, MistralVoxtralModel, CartesiaModel, DashScopeModel, BedrockModel, Language, SampleRate, STAGES, type Stage } from '@recog/shared-types';
|
|
15
15
|
export { getRecognitionServiceBase, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getRecognitionServiceHost, getRecognitionConductorBase, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionConductorHost, normalizeStage, RECOGNITION_SERVICE_BASES, RECOGNITION_CONDUCTOR_BASES } from '@recog/shared-config';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wCAAwC,EACxC,KAAK,8CAA8C,EACnD,KAAK,mBAAmB,EACxB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,WAAW,EACZ,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,OAAO,EAAE,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