@volley/recognition-client-sdk 0.1.621 → 0.1.622

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.
@@ -260,6 +260,7 @@ declare const TranscriptionResultSchemaV1: z.ZodObject<{
260
260
  voiceStart: z.ZodOptional<z.ZodNumber>;
261
261
  voiceDuration: z.ZodOptional<z.ZodNumber>;
262
262
  voiceEnd: z.ZodOptional<z.ZodNumber>;
263
+ lastNonSilence: z.ZodOptional<z.ZodNumber>;
263
264
  startTimestamp: z.ZodOptional<z.ZodNumber>;
264
265
  endTimestamp: z.ZodOptional<z.ZodNumber>;
265
266
  receivedAtMs: z.ZodOptional<z.ZodNumber>;
@@ -278,6 +279,7 @@ declare const TranscriptionResultSchemaV1: z.ZodObject<{
278
279
  voiceStart?: number | undefined;
279
280
  voiceDuration?: number | undefined;
280
281
  voiceEnd?: number | undefined;
282
+ lastNonSilence?: number | undefined;
281
283
  startTimestamp?: number | undefined;
282
284
  endTimestamp?: number | undefined;
283
285
  receivedAtMs?: number | undefined;
@@ -296,6 +298,7 @@ declare const TranscriptionResultSchemaV1: z.ZodObject<{
296
298
  voiceStart?: number | undefined;
297
299
  voiceDuration?: number | undefined;
298
300
  voiceEnd?: number | undefined;
301
+ lastNonSilence?: number | undefined;
299
302
  startTimestamp?: number | undefined;
300
303
  endTimestamp?: number | undefined;
301
304
  receivedAtMs?: number | undefined;
@@ -260,6 +260,7 @@ declare const TranscriptionResultSchemaV1: z.ZodObject<{
260
260
  voiceStart: z.ZodOptional<z.ZodNumber>;
261
261
  voiceDuration: z.ZodOptional<z.ZodNumber>;
262
262
  voiceEnd: z.ZodOptional<z.ZodNumber>;
263
+ lastNonSilence: z.ZodOptional<z.ZodNumber>;
263
264
  startTimestamp: z.ZodOptional<z.ZodNumber>;
264
265
  endTimestamp: z.ZodOptional<z.ZodNumber>;
265
266
  receivedAtMs: z.ZodOptional<z.ZodNumber>;
@@ -278,6 +279,7 @@ declare const TranscriptionResultSchemaV1: z.ZodObject<{
278
279
  voiceStart?: number | undefined;
279
280
  voiceDuration?: number | undefined;
280
281
  voiceEnd?: number | undefined;
282
+ lastNonSilence?: number | undefined;
281
283
  startTimestamp?: number | undefined;
282
284
  endTimestamp?: number | undefined;
283
285
  receivedAtMs?: number | undefined;
@@ -296,6 +298,7 @@ declare const TranscriptionResultSchemaV1: z.ZodObject<{
296
298
  voiceStart?: number | undefined;
297
299
  voiceDuration?: number | undefined;
298
300
  voiceEnd?: number | undefined;
301
+ lastNonSilence?: number | undefined;
299
302
  startTimestamp?: number | undefined;
300
303
  endTimestamp?: number | undefined;
301
304
  receivedAtMs?: number | undefined;
@@ -537,9 +540,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
537
540
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
538
541
  message: z.ZodString;
539
542
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
540
- description: z.ZodOptional<z.ZodString>;
541
543
  audioUtteranceId: z.ZodOptional<z.ZodString>;
542
544
  timestamp: z.ZodOptional<z.ZodNumber>;
545
+ description: z.ZodOptional<z.ZodString>;
543
546
  errorType: z.ZodLiteral<ErrorTypeV1.AUTHENTICATION_ERROR>;
544
547
  isImmediatelyAvailable: z.ZodLiteral<false>;
545
548
  service: z.ZodOptional<z.ZodString>;
@@ -550,9 +553,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
550
553
  isImmediatelyAvailable: false;
551
554
  code?: string | number | undefined;
552
555
  provider?: RecognitionProvider | undefined;
553
- description?: string | undefined;
554
556
  audioUtteranceId?: string | undefined;
555
557
  timestamp?: number | undefined;
558
+ description?: string | undefined;
556
559
  service?: string | undefined;
557
560
  authMethod?: string | undefined;
558
561
  }, {
@@ -561,9 +564,9 @@ declare const AuthenticationExceptionSchema: z.ZodObject<{
561
564
  isImmediatelyAvailable: false;
562
565
  code?: string | number | undefined;
563
566
  provider?: RecognitionProvider | undefined;
564
- description?: string | undefined;
565
567
  audioUtteranceId?: string | undefined;
566
568
  timestamp?: number | undefined;
569
+ description?: string | undefined;
567
570
  service?: string | undefined;
568
571
  authMethod?: string | undefined;
569
572
  }>;
@@ -577,9 +580,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
577
580
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
578
581
  message: z.ZodString;
579
582
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
580
- description: z.ZodOptional<z.ZodString>;
581
583
  audioUtteranceId: z.ZodOptional<z.ZodString>;
582
584
  timestamp: z.ZodOptional<z.ZodNumber>;
585
+ description: z.ZodOptional<z.ZodString>;
583
586
  errorType: z.ZodLiteral<ErrorTypeV1.VALIDATION_ERROR>;
584
587
  isImmediatelyAvailable: z.ZodLiteral<true>;
585
588
  field: z.ZodOptional<z.ZodString>;
@@ -591,9 +594,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
591
594
  isImmediatelyAvailable: true;
592
595
  code?: string | number | undefined;
593
596
  provider?: RecognitionProvider | undefined;
594
- description?: string | undefined;
595
597
  audioUtteranceId?: string | undefined;
596
598
  timestamp?: number | undefined;
599
+ description?: string | undefined;
597
600
  field?: string | undefined;
598
601
  expected?: string | undefined;
599
602
  received?: string | undefined;
@@ -603,9 +606,9 @@ declare const ValidationExceptionSchema: z.ZodObject<{
603
606
  isImmediatelyAvailable: true;
604
607
  code?: string | number | undefined;
605
608
  provider?: RecognitionProvider | undefined;
606
- description?: string | undefined;
607
609
  audioUtteranceId?: string | undefined;
608
610
  timestamp?: number | undefined;
611
+ description?: string | undefined;
609
612
  field?: string | undefined;
610
613
  expected?: string | undefined;
611
614
  received?: string | undefined;
@@ -619,9 +622,9 @@ type ValidationException = z.infer<typeof ValidationExceptionSchema>;
619
622
  declare const ProviderExceptionSchema: z.ZodObject<{
620
623
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
621
624
  message: z.ZodString;
622
- description: z.ZodOptional<z.ZodString>;
623
625
  audioUtteranceId: z.ZodOptional<z.ZodString>;
624
626
  timestamp: z.ZodOptional<z.ZodNumber>;
627
+ description: z.ZodOptional<z.ZodString>;
625
628
  errorType: z.ZodLiteral<ErrorTypeV1.PROVIDER_ERROR>;
626
629
  isImmediatelyAvailable: z.ZodLiteral<false>;
627
630
  provider: z.ZodOptional<z.ZodString>;
@@ -632,9 +635,9 @@ declare const ProviderExceptionSchema: z.ZodObject<{
632
635
  errorType: ErrorTypeV1.PROVIDER_ERROR;
633
636
  isImmediatelyAvailable: false;
634
637
  code?: string | number | undefined;
635
- description?: string | undefined;
636
638
  audioUtteranceId?: string | undefined;
637
639
  timestamp?: number | undefined;
640
+ description?: string | undefined;
638
641
  provider?: string | undefined;
639
642
  providerErrorCode?: string | number | undefined;
640
643
  isTransient?: boolean | undefined;
@@ -643,9 +646,9 @@ declare const ProviderExceptionSchema: z.ZodObject<{
643
646
  errorType: ErrorTypeV1.PROVIDER_ERROR;
644
647
  isImmediatelyAvailable: false;
645
648
  code?: string | number | undefined;
646
- description?: string | undefined;
647
649
  audioUtteranceId?: string | undefined;
648
650
  timestamp?: number | undefined;
651
+ description?: string | undefined;
649
652
  provider?: string | undefined;
650
653
  providerErrorCode?: string | number | undefined;
651
654
  isTransient?: boolean | undefined;
@@ -660,9 +663,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
660
663
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
661
664
  message: z.ZodString;
662
665
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
663
- description: z.ZodOptional<z.ZodString>;
664
666
  audioUtteranceId: z.ZodOptional<z.ZodString>;
665
667
  timestamp: z.ZodOptional<z.ZodNumber>;
668
+ description: z.ZodOptional<z.ZodString>;
666
669
  errorType: z.ZodLiteral<ErrorTypeV1.TIMEOUT_ERROR>;
667
670
  isImmediatelyAvailable: z.ZodLiteral<true>;
668
671
  timeoutMs: z.ZodOptional<z.ZodNumber>;
@@ -673,9 +676,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
673
676
  isImmediatelyAvailable: true;
674
677
  code?: string | number | undefined;
675
678
  provider?: RecognitionProvider | undefined;
676
- description?: string | undefined;
677
679
  audioUtteranceId?: string | undefined;
678
680
  timestamp?: number | undefined;
681
+ description?: string | undefined;
679
682
  timeoutMs?: number | undefined;
680
683
  operation?: string | undefined;
681
684
  }, {
@@ -684,9 +687,9 @@ declare const TimeoutExceptionSchema: z.ZodObject<{
684
687
  isImmediatelyAvailable: true;
685
688
  code?: string | number | undefined;
686
689
  provider?: RecognitionProvider | undefined;
687
- description?: string | undefined;
688
690
  audioUtteranceId?: string | undefined;
689
691
  timestamp?: number | undefined;
692
+ description?: string | undefined;
690
693
  timeoutMs?: number | undefined;
691
694
  operation?: string | undefined;
692
695
  }>;
@@ -700,9 +703,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
700
703
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
701
704
  message: z.ZodString;
702
705
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
703
- description: z.ZodOptional<z.ZodString>;
704
706
  audioUtteranceId: z.ZodOptional<z.ZodString>;
705
707
  timestamp: z.ZodOptional<z.ZodNumber>;
708
+ description: z.ZodOptional<z.ZodString>;
706
709
  errorType: z.ZodLiteral<ErrorTypeV1.QUOTA_EXCEEDED>;
707
710
  isImmediatelyAvailable: z.ZodLiteral<true>;
708
711
  quotaType: z.ZodOptional<z.ZodString>;
@@ -714,9 +717,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
714
717
  isImmediatelyAvailable: true;
715
718
  code?: string | number | undefined;
716
719
  provider?: RecognitionProvider | undefined;
717
- description?: string | undefined;
718
720
  audioUtteranceId?: string | undefined;
719
721
  timestamp?: number | undefined;
722
+ description?: string | undefined;
720
723
  quotaType?: string | undefined;
721
724
  resetAt?: number | undefined;
722
725
  retryAfterSeconds?: number | undefined;
@@ -726,9 +729,9 @@ declare const QuotaExceededExceptionSchema: z.ZodObject<{
726
729
  isImmediatelyAvailable: true;
727
730
  code?: string | number | undefined;
728
731
  provider?: RecognitionProvider | undefined;
729
- description?: string | undefined;
730
732
  audioUtteranceId?: string | undefined;
731
733
  timestamp?: number | undefined;
734
+ description?: string | undefined;
732
735
  quotaType?: string | undefined;
733
736
  resetAt?: number | undefined;
734
737
  retryAfterSeconds?: number | undefined;
@@ -743,9 +746,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
743
746
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
744
747
  message: z.ZodString;
745
748
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
746
- description: z.ZodOptional<z.ZodString>;
747
749
  audioUtteranceId: z.ZodOptional<z.ZodString>;
748
750
  timestamp: z.ZodOptional<z.ZodNumber>;
751
+ description: z.ZodOptional<z.ZodString>;
749
752
  errorType: z.ZodLiteral<ErrorTypeV1.CONNECTION_ERROR>;
750
753
  isImmediatelyAvailable: z.ZodLiteral<true>;
751
754
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -757,9 +760,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
757
760
  isImmediatelyAvailable: true;
758
761
  code?: string | number | undefined;
759
762
  provider?: RecognitionProvider | undefined;
760
- description?: string | undefined;
761
763
  audioUtteranceId?: string | undefined;
762
764
  timestamp?: number | undefined;
765
+ description?: string | undefined;
763
766
  attempts?: number | undefined;
764
767
  url?: string | undefined;
765
768
  underlyingError?: string | undefined;
@@ -769,9 +772,9 @@ declare const ConnectionExceptionSchema: z.ZodObject<{
769
772
  isImmediatelyAvailable: true;
770
773
  code?: string | number | undefined;
771
774
  provider?: RecognitionProvider | undefined;
772
- description?: string | undefined;
773
775
  audioUtteranceId?: string | undefined;
774
776
  timestamp?: number | undefined;
777
+ description?: string | undefined;
775
778
  attempts?: number | undefined;
776
779
  url?: string | undefined;
777
780
  underlyingError?: string | undefined;
@@ -786,9 +789,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
786
789
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
787
790
  message: z.ZodString;
788
791
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
789
- description: z.ZodOptional<z.ZodString>;
790
792
  audioUtteranceId: z.ZodOptional<z.ZodString>;
791
793
  timestamp: z.ZodOptional<z.ZodNumber>;
794
+ description: z.ZodOptional<z.ZodString>;
792
795
  errorType: z.ZodLiteral<ErrorTypeV1.UNKNOWN_ERROR>;
793
796
  isImmediatelyAvailable: z.ZodLiteral<false>;
794
797
  stack: z.ZodOptional<z.ZodString>;
@@ -799,9 +802,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
799
802
  isImmediatelyAvailable: false;
800
803
  code?: string | number | undefined;
801
804
  provider?: RecognitionProvider | undefined;
802
- description?: string | undefined;
803
805
  audioUtteranceId?: string | undefined;
804
806
  timestamp?: number | undefined;
807
+ description?: string | undefined;
805
808
  stack?: string | undefined;
806
809
  context?: Record<string, unknown> | undefined;
807
810
  }, {
@@ -810,9 +813,9 @@ declare const UnknownExceptionSchema: z.ZodObject<{
810
813
  isImmediatelyAvailable: false;
811
814
  code?: string | number | undefined;
812
815
  provider?: RecognitionProvider | undefined;
813
- description?: string | undefined;
814
816
  audioUtteranceId?: string | undefined;
815
817
  timestamp?: number | undefined;
818
+ description?: string | undefined;
816
819
  stack?: string | undefined;
817
820
  context?: Record<string, unknown> | undefined;
818
821
  }>;
@@ -825,9 +828,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
825
828
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
826
829
  message: z.ZodString;
827
830
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
828
- description: z.ZodOptional<z.ZodString>;
829
831
  audioUtteranceId: z.ZodOptional<z.ZodString>;
830
832
  timestamp: z.ZodOptional<z.ZodNumber>;
833
+ description: z.ZodOptional<z.ZodString>;
831
834
  errorType: z.ZodLiteral<ErrorTypeV1.AUTHENTICATION_ERROR>;
832
835
  isImmediatelyAvailable: z.ZodLiteral<false>;
833
836
  service: z.ZodOptional<z.ZodString>;
@@ -838,9 +841,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
838
841
  isImmediatelyAvailable: false;
839
842
  code?: string | number | undefined;
840
843
  provider?: RecognitionProvider | undefined;
841
- description?: string | undefined;
842
844
  audioUtteranceId?: string | undefined;
843
845
  timestamp?: number | undefined;
846
+ description?: string | undefined;
844
847
  service?: string | undefined;
845
848
  authMethod?: string | undefined;
846
849
  }, {
@@ -849,18 +852,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
849
852
  isImmediatelyAvailable: false;
850
853
  code?: string | number | undefined;
851
854
  provider?: RecognitionProvider | undefined;
852
- description?: string | undefined;
853
855
  audioUtteranceId?: string | undefined;
854
856
  timestamp?: number | undefined;
857
+ description?: string | undefined;
855
858
  service?: string | undefined;
856
859
  authMethod?: string | undefined;
857
860
  }>, z.ZodObject<{
858
861
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
859
862
  message: z.ZodString;
860
863
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
861
- description: z.ZodOptional<z.ZodString>;
862
864
  audioUtteranceId: z.ZodOptional<z.ZodString>;
863
865
  timestamp: z.ZodOptional<z.ZodNumber>;
866
+ description: z.ZodOptional<z.ZodString>;
864
867
  errorType: z.ZodLiteral<ErrorTypeV1.VALIDATION_ERROR>;
865
868
  isImmediatelyAvailable: z.ZodLiteral<true>;
866
869
  field: z.ZodOptional<z.ZodString>;
@@ -872,9 +875,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
872
875
  isImmediatelyAvailable: true;
873
876
  code?: string | number | undefined;
874
877
  provider?: RecognitionProvider | undefined;
875
- description?: string | undefined;
876
878
  audioUtteranceId?: string | undefined;
877
879
  timestamp?: number | undefined;
880
+ description?: string | undefined;
878
881
  field?: string | undefined;
879
882
  expected?: string | undefined;
880
883
  received?: string | undefined;
@@ -884,18 +887,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
884
887
  isImmediatelyAvailable: true;
885
888
  code?: string | number | undefined;
886
889
  provider?: RecognitionProvider | undefined;
887
- description?: string | undefined;
888
890
  audioUtteranceId?: string | undefined;
889
891
  timestamp?: number | undefined;
892
+ description?: string | undefined;
890
893
  field?: string | undefined;
891
894
  expected?: string | undefined;
892
895
  received?: string | undefined;
893
896
  }>, z.ZodObject<{
894
897
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
895
898
  message: z.ZodString;
896
- description: z.ZodOptional<z.ZodString>;
897
899
  audioUtteranceId: z.ZodOptional<z.ZodString>;
898
900
  timestamp: z.ZodOptional<z.ZodNumber>;
901
+ description: z.ZodOptional<z.ZodString>;
899
902
  errorType: z.ZodLiteral<ErrorTypeV1.PROVIDER_ERROR>;
900
903
  isImmediatelyAvailable: z.ZodLiteral<false>;
901
904
  provider: z.ZodOptional<z.ZodString>;
@@ -906,9 +909,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
906
909
  errorType: ErrorTypeV1.PROVIDER_ERROR;
907
910
  isImmediatelyAvailable: false;
908
911
  code?: string | number | undefined;
909
- description?: string | undefined;
910
912
  audioUtteranceId?: string | undefined;
911
913
  timestamp?: number | undefined;
914
+ description?: string | undefined;
912
915
  provider?: string | undefined;
913
916
  providerErrorCode?: string | number | undefined;
914
917
  isTransient?: boolean | undefined;
@@ -917,9 +920,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
917
920
  errorType: ErrorTypeV1.PROVIDER_ERROR;
918
921
  isImmediatelyAvailable: false;
919
922
  code?: string | number | undefined;
920
- description?: string | undefined;
921
923
  audioUtteranceId?: string | undefined;
922
924
  timestamp?: number | undefined;
925
+ description?: string | undefined;
923
926
  provider?: string | undefined;
924
927
  providerErrorCode?: string | number | undefined;
925
928
  isTransient?: boolean | undefined;
@@ -927,9 +930,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
927
930
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
928
931
  message: z.ZodString;
929
932
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
930
- description: z.ZodOptional<z.ZodString>;
931
933
  audioUtteranceId: z.ZodOptional<z.ZodString>;
932
934
  timestamp: z.ZodOptional<z.ZodNumber>;
935
+ description: z.ZodOptional<z.ZodString>;
933
936
  errorType: z.ZodLiteral<ErrorTypeV1.TIMEOUT_ERROR>;
934
937
  isImmediatelyAvailable: z.ZodLiteral<true>;
935
938
  timeoutMs: z.ZodOptional<z.ZodNumber>;
@@ -940,9 +943,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
940
943
  isImmediatelyAvailable: true;
941
944
  code?: string | number | undefined;
942
945
  provider?: RecognitionProvider | undefined;
943
- description?: string | undefined;
944
946
  audioUtteranceId?: string | undefined;
945
947
  timestamp?: number | undefined;
948
+ description?: string | undefined;
946
949
  timeoutMs?: number | undefined;
947
950
  operation?: string | undefined;
948
951
  }, {
@@ -951,18 +954,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
951
954
  isImmediatelyAvailable: true;
952
955
  code?: string | number | undefined;
953
956
  provider?: RecognitionProvider | undefined;
954
- description?: string | undefined;
955
957
  audioUtteranceId?: string | undefined;
956
958
  timestamp?: number | undefined;
959
+ description?: string | undefined;
957
960
  timeoutMs?: number | undefined;
958
961
  operation?: string | undefined;
959
962
  }>, z.ZodObject<{
960
963
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
961
964
  message: z.ZodString;
962
965
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
963
- description: z.ZodOptional<z.ZodString>;
964
966
  audioUtteranceId: z.ZodOptional<z.ZodString>;
965
967
  timestamp: z.ZodOptional<z.ZodNumber>;
968
+ description: z.ZodOptional<z.ZodString>;
966
969
  errorType: z.ZodLiteral<ErrorTypeV1.QUOTA_EXCEEDED>;
967
970
  isImmediatelyAvailable: z.ZodLiteral<true>;
968
971
  quotaType: z.ZodOptional<z.ZodString>;
@@ -974,9 +977,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
974
977
  isImmediatelyAvailable: true;
975
978
  code?: string | number | undefined;
976
979
  provider?: RecognitionProvider | undefined;
977
- description?: string | undefined;
978
980
  audioUtteranceId?: string | undefined;
979
981
  timestamp?: number | undefined;
982
+ description?: string | undefined;
980
983
  quotaType?: string | undefined;
981
984
  resetAt?: number | undefined;
982
985
  retryAfterSeconds?: number | undefined;
@@ -986,9 +989,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
986
989
  isImmediatelyAvailable: true;
987
990
  code?: string | number | undefined;
988
991
  provider?: RecognitionProvider | undefined;
989
- description?: string | undefined;
990
992
  audioUtteranceId?: string | undefined;
991
993
  timestamp?: number | undefined;
994
+ description?: string | undefined;
992
995
  quotaType?: string | undefined;
993
996
  resetAt?: number | undefined;
994
997
  retryAfterSeconds?: number | undefined;
@@ -996,9 +999,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
996
999
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
997
1000
  message: z.ZodString;
998
1001
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
999
- description: z.ZodOptional<z.ZodString>;
1000
1002
  audioUtteranceId: z.ZodOptional<z.ZodString>;
1001
1003
  timestamp: z.ZodOptional<z.ZodNumber>;
1004
+ description: z.ZodOptional<z.ZodString>;
1002
1005
  errorType: z.ZodLiteral<ErrorTypeV1.CONNECTION_ERROR>;
1003
1006
  isImmediatelyAvailable: z.ZodLiteral<true>;
1004
1007
  attempts: z.ZodOptional<z.ZodNumber>;
@@ -1010,9 +1013,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
1010
1013
  isImmediatelyAvailable: true;
1011
1014
  code?: string | number | undefined;
1012
1015
  provider?: RecognitionProvider | undefined;
1013
- description?: string | undefined;
1014
1016
  audioUtteranceId?: string | undefined;
1015
1017
  timestamp?: number | undefined;
1018
+ description?: string | undefined;
1016
1019
  attempts?: number | undefined;
1017
1020
  url?: string | undefined;
1018
1021
  underlyingError?: string | undefined;
@@ -1022,18 +1025,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
1022
1025
  isImmediatelyAvailable: true;
1023
1026
  code?: string | number | undefined;
1024
1027
  provider?: RecognitionProvider | undefined;
1025
- description?: string | undefined;
1026
1028
  audioUtteranceId?: string | undefined;
1027
1029
  timestamp?: number | undefined;
1030
+ description?: string | undefined;
1028
1031
  attempts?: number | undefined;
1029
1032
  url?: string | undefined;
1030
1033
  underlyingError?: string | undefined;
1031
1034
  }>, z.ZodObject<{
1032
1035
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1033
1036
  message: z.ZodString;
1034
- description: z.ZodOptional<z.ZodString>;
1035
1037
  audioUtteranceId: z.ZodOptional<z.ZodString>;
1036
1038
  timestamp: z.ZodOptional<z.ZodNumber>;
1039
+ description: z.ZodOptional<z.ZodString>;
1037
1040
  errorType: z.ZodLiteral<ErrorTypeV1.CIRCUIT_BREAKER_OPEN>;
1038
1041
  isImmediatelyAvailable: z.ZodLiteral<true>;
1039
1042
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
@@ -1043,9 +1046,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
1043
1046
  errorType: ErrorTypeV1.CIRCUIT_BREAKER_OPEN;
1044
1047
  isImmediatelyAvailable: true;
1045
1048
  code?: string | number | undefined;
1046
- description?: string | undefined;
1047
1049
  audioUtteranceId?: string | undefined;
1048
1050
  timestamp?: number | undefined;
1051
+ description?: string | undefined;
1049
1052
  provider?: RecognitionProvider | undefined;
1050
1053
  model?: string | undefined;
1051
1054
  }, {
@@ -1053,18 +1056,18 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
1053
1056
  errorType: ErrorTypeV1.CIRCUIT_BREAKER_OPEN;
1054
1057
  isImmediatelyAvailable: true;
1055
1058
  code?: string | number | undefined;
1056
- description?: string | undefined;
1057
1059
  audioUtteranceId?: string | undefined;
1058
1060
  timestamp?: number | undefined;
1061
+ description?: string | undefined;
1059
1062
  provider?: RecognitionProvider | undefined;
1060
1063
  model?: string | undefined;
1061
1064
  }>, z.ZodObject<{
1062
1065
  code: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1063
1066
  message: z.ZodString;
1064
1067
  provider: z.ZodOptional<z.ZodNativeEnum<typeof RecognitionProvider>>;
1065
- description: z.ZodOptional<z.ZodString>;
1066
1068
  audioUtteranceId: z.ZodOptional<z.ZodString>;
1067
1069
  timestamp: z.ZodOptional<z.ZodNumber>;
1070
+ description: z.ZodOptional<z.ZodString>;
1068
1071
  errorType: z.ZodLiteral<ErrorTypeV1.UNKNOWN_ERROR>;
1069
1072
  isImmediatelyAvailable: z.ZodLiteral<false>;
1070
1073
  stack: z.ZodOptional<z.ZodString>;
@@ -1075,9 +1078,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
1075
1078
  isImmediatelyAvailable: false;
1076
1079
  code?: string | number | undefined;
1077
1080
  provider?: RecognitionProvider | undefined;
1078
- description?: string | undefined;
1079
1081
  audioUtteranceId?: string | undefined;
1080
1082
  timestamp?: number | undefined;
1083
+ description?: string | undefined;
1081
1084
  stack?: string | undefined;
1082
1085
  context?: Record<string, unknown> | undefined;
1083
1086
  }, {
@@ -1086,9 +1089,9 @@ declare const RecognitionExceptionSchema: z.ZodDiscriminatedUnion<"errorType", [
1086
1089
  isImmediatelyAvailable: false;
1087
1090
  code?: string | number | undefined;
1088
1091
  provider?: RecognitionProvider | undefined;
1089
- description?: string | undefined;
1090
1092
  audioUtteranceId?: string | undefined;
1091
1093
  timestamp?: number | undefined;
1094
+ description?: string | undefined;
1092
1095
  stack?: string | undefined;
1093
1096
  context?: Record<string, unknown> | undefined;
1094
1097
  }>]>;
@@ -2405,6 +2408,8 @@ declare const RecognitionVGFStateSchema: z.ZodObject<{
2405
2408
  transcriptionStatus: z.ZodOptional<z.ZodString>;
2406
2409
  finalTranscript: z.ZodOptional<z.ZodString>;
2407
2410
  finalConfidence: z.ZodOptional<z.ZodNumber>;
2411
+ voiceEnd: z.ZodOptional<z.ZodNumber>;
2412
+ lastNonSilence: z.ZodOptional<z.ZodNumber>;
2408
2413
  asrConfig: z.ZodOptional<z.ZodString>;
2409
2414
  startRecordingTimestamp: z.ZodOptional<z.ZodString>;
2410
2415
  finalRecordingTimestamp: z.ZodOptional<z.ZodString>;
@@ -2423,6 +2428,8 @@ declare const RecognitionVGFStateSchema: z.ZodObject<{
2423
2428
  transcriptionStatus?: string | undefined;
2424
2429
  finalTranscript?: string | undefined;
2425
2430
  finalConfidence?: number | undefined;
2431
+ voiceEnd?: number | undefined;
2432
+ lastNonSilence?: number | undefined;
2426
2433
  asrConfig?: string | undefined;
2427
2434
  startRecordingTimestamp?: string | undefined;
2428
2435
  finalRecordingTimestamp?: string | undefined;
@@ -2439,6 +2446,8 @@ declare const RecognitionVGFStateSchema: z.ZodObject<{
2439
2446
  transcriptionStatus?: string | undefined;
2440
2447
  finalTranscript?: string | undefined;
2441
2448
  finalConfidence?: number | undefined;
2449
+ voiceEnd?: number | undefined;
2450
+ lastNonSilence?: number | undefined;
2442
2451
  asrConfig?: string | undefined;
2443
2452
  startRecordingTimestamp?: string | undefined;
2444
2453
  finalRecordingTimestamp?: string | undefined;
@@ -2728,5 +2737,5 @@ declare function getRecognitionConductorHttpBase(stage?: Stage | string | null |
2728
2737
  declare function getRecognitionConductorWsBase(stage?: Stage | string | null | undefined): string;
2729
2738
  declare function getRecognitionConductorHost(stage?: Stage | string | null | undefined): string;
2730
2739
 
2731
- export { AudioEncoding, ClientControlActionV1, ClientState, ConfigBuilder, ConnectionError, ControlSignalTypeV1 as ControlSignal, ControlSignalTypeV1, DashScopeModel, DeepgramModel, ElevenLabsModel, ErrorTypeV1, FinalTranscriptStability, FireworksModel, GeminiModel, GoogleModel, Language, MistralVoxtralModel, OpenAIModel, RECOGNITION_CONDUCTOR_BASES, RECOGNITION_SERVICE_BASES, RealTimeTwoWayWebSocketRecognitionClient, RecognitionContextTypeV1, RecognitionError, RecognitionProvider, RecognitionResultTypeV1, RecognitionVGFStateSchema, RecordingStatus, STAGES, SampleRate, SimplifiedVGFRecognitionClient, TimeoutError, TranscriptionStatus, ValidationError, createClient, createClientWithBuilder, createDefaultASRConfig, createInitialRecognitionState, createSimplifiedVGFClient, getRecognitionConductorBase, getRecognitionConductorHost, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionServiceBase, getRecognitionServiceHost, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getUserFriendlyMessage, isExceptionImmediatelyAvailable, isNormalDisconnection, isValidRecordingStatusTransition, normalizeStage, resetRecognitionVGFState };
2740
+ export { AudioEncoding, ClientControlActionV1, ClientState, ConfigBuilder, ConnectionError, ControlSignalTypeV1 as ControlSignal, ControlSignalTypeV1, DashScopeModel, DeepgramModel, ElevenLabsModel, ErrorTypeV1, FinalTranscriptStability, FireworksModel, GeminiModel, GoogleModel, Language, MistralVoxtralModel, OpenAIModel, OpenAIRealtimeModel, RECOGNITION_CONDUCTOR_BASES, RECOGNITION_SERVICE_BASES, RealTimeTwoWayWebSocketRecognitionClient, RecognitionContextTypeV1, RecognitionError, RecognitionProvider, RecognitionResultTypeV1, RecognitionVGFStateSchema, RecordingStatus, STAGES, SampleRate, SimplifiedVGFRecognitionClient, TimeoutError, TranscriptionStatus, ValidationError, createClient, createClientWithBuilder, createDefaultASRConfig, createInitialRecognitionState, createSimplifiedVGFClient, getRecognitionConductorBase, getRecognitionConductorHost, getRecognitionConductorHttpBase, getRecognitionConductorWsBase, getRecognitionServiceBase, getRecognitionServiceHost, getRecognitionServiceHttpBase, getRecognitionServiceWsBase, getUserFriendlyMessage, isExceptionImmediatelyAvailable, isNormalDisconnection, isValidRecordingStatusTransition, normalizeStage, resetRecognitionVGFState };
2732
2741
  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, GoogleModel, GeminiModel, OpenAIModel, MistralVoxtralModel, 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, GoogleModel, GeminiModel, OpenAIModel, OpenAIRealtimeModel, MistralVoxtralModel, DashScopeModel, 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
@@ -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,YAAY,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAGrE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EAChB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,+BAA+B,EAC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