lua-cli 3.46.0 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-exports.d.ts +125 -57
- package/dist/api-exports.js +273 -118
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +334 -177
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +54 -54
- package/dist/workflow-builder.js +198 -102
- package/dist/workflow-builder.js.map +1 -1
- package/docs/README.md +4 -4
- package/docs/api/User.md +52 -1
- package/package.json +3 -3
- package/template/package.json +1 -1
|
@@ -236,13 +236,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
237
|
kind: "inference";
|
|
238
238
|
model: string;
|
|
239
|
-
options?: Record<string, unknown> | undefined;
|
|
240
239
|
voice?: string | undefined;
|
|
240
|
+
options?: Record<string, unknown> | undefined;
|
|
241
241
|
}, {
|
|
242
242
|
kind: "inference";
|
|
243
243
|
model: string;
|
|
244
|
-
options?: Record<string, unknown> | undefined;
|
|
245
244
|
voice?: string | undefined;
|
|
245
|
+
options?: Record<string, unknown> | undefined;
|
|
246
246
|
}>, z.ZodObject<{
|
|
247
247
|
kind: z.ZodLiteral<"plugin">;
|
|
248
248
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -256,14 +256,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
256
256
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
258
|
kind: "plugin";
|
|
259
|
-
options: Record<string, unknown>;
|
|
260
259
|
provider: "deepgram" | "elevenlabs";
|
|
261
260
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
261
|
+
options: Record<string, unknown>;
|
|
262
262
|
}, {
|
|
263
263
|
kind: "plugin";
|
|
264
|
-
options: Record<string, unknown>;
|
|
265
264
|
provider: "deepgram" | "elevenlabs";
|
|
266
265
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
266
|
+
options: Record<string, unknown>;
|
|
267
267
|
}>, z.ZodObject<{
|
|
268
268
|
kind: z.ZodLiteral<"realtime">;
|
|
269
269
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -276,12 +276,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
276
276
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
278
|
kind: "realtime";
|
|
279
|
-
options: Record<string, unknown>;
|
|
280
279
|
provider: "openai" | "google" | "xai";
|
|
280
|
+
options: Record<string, unknown>;
|
|
281
281
|
}, {
|
|
282
282
|
kind: "realtime";
|
|
283
|
-
options: Record<string, unknown>;
|
|
284
283
|
provider: "openai" | "google" | "xai";
|
|
284
|
+
options: Record<string, unknown>;
|
|
285
285
|
}>]>;
|
|
286
286
|
stt: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
287
287
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -302,13 +302,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
302
302
|
}, "strip", z.ZodTypeAny, {
|
|
303
303
|
kind: "inference";
|
|
304
304
|
model: string;
|
|
305
|
-
options?: Record<string, unknown> | undefined;
|
|
306
305
|
voice?: string | undefined;
|
|
306
|
+
options?: Record<string, unknown> | undefined;
|
|
307
307
|
}, {
|
|
308
308
|
kind: "inference";
|
|
309
309
|
model: string;
|
|
310
|
-
options?: Record<string, unknown> | undefined;
|
|
311
310
|
voice?: string | undefined;
|
|
311
|
+
options?: Record<string, unknown> | undefined;
|
|
312
312
|
}>, z.ZodObject<{
|
|
313
313
|
kind: z.ZodLiteral<"plugin">;
|
|
314
314
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -322,14 +322,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
322
322
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
323
323
|
}, "strip", z.ZodTypeAny, {
|
|
324
324
|
kind: "plugin";
|
|
325
|
-
options: Record<string, unknown>;
|
|
326
325
|
provider: "deepgram" | "elevenlabs";
|
|
327
326
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
327
|
+
options: Record<string, unknown>;
|
|
328
328
|
}, {
|
|
329
329
|
kind: "plugin";
|
|
330
|
-
options: Record<string, unknown>;
|
|
331
330
|
provider: "deepgram" | "elevenlabs";
|
|
332
331
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
332
|
+
options: Record<string, unknown>;
|
|
333
333
|
}>, z.ZodObject<{
|
|
334
334
|
kind: z.ZodLiteral<"realtime">;
|
|
335
335
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -342,12 +342,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
342
342
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
343
343
|
}, "strip", z.ZodTypeAny, {
|
|
344
344
|
kind: "realtime";
|
|
345
|
-
options: Record<string, unknown>;
|
|
346
345
|
provider: "openai" | "google" | "xai";
|
|
346
|
+
options: Record<string, unknown>;
|
|
347
347
|
}, {
|
|
348
348
|
kind: "realtime";
|
|
349
|
-
options: Record<string, unknown>;
|
|
350
349
|
provider: "openai" | "google" | "xai";
|
|
350
|
+
options: Record<string, unknown>;
|
|
351
351
|
}>]>>;
|
|
352
352
|
tts: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
353
353
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -368,13 +368,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
368
368
|
}, "strip", z.ZodTypeAny, {
|
|
369
369
|
kind: "inference";
|
|
370
370
|
model: string;
|
|
371
|
-
options?: Record<string, unknown> | undefined;
|
|
372
371
|
voice?: string | undefined;
|
|
372
|
+
options?: Record<string, unknown> | undefined;
|
|
373
373
|
}, {
|
|
374
374
|
kind: "inference";
|
|
375
375
|
model: string;
|
|
376
|
-
options?: Record<string, unknown> | undefined;
|
|
377
376
|
voice?: string | undefined;
|
|
377
|
+
options?: Record<string, unknown> | undefined;
|
|
378
378
|
}>, z.ZodObject<{
|
|
379
379
|
kind: z.ZodLiteral<"plugin">;
|
|
380
380
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -388,14 +388,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
388
388
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
389
389
|
}, "strip", z.ZodTypeAny, {
|
|
390
390
|
kind: "plugin";
|
|
391
|
-
options: Record<string, unknown>;
|
|
392
391
|
provider: "deepgram" | "elevenlabs";
|
|
393
392
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
393
|
+
options: Record<string, unknown>;
|
|
394
394
|
}, {
|
|
395
395
|
kind: "plugin";
|
|
396
|
-
options: Record<string, unknown>;
|
|
397
396
|
provider: "deepgram" | "elevenlabs";
|
|
398
397
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
398
|
+
options: Record<string, unknown>;
|
|
399
399
|
}>, z.ZodObject<{
|
|
400
400
|
kind: z.ZodLiteral<"realtime">;
|
|
401
401
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -408,12 +408,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
408
408
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
409
409
|
}, "strip", z.ZodTypeAny, {
|
|
410
410
|
kind: "realtime";
|
|
411
|
-
options: Record<string, unknown>;
|
|
412
411
|
provider: "openai" | "google" | "xai";
|
|
412
|
+
options: Record<string, unknown>;
|
|
413
413
|
}, {
|
|
414
414
|
kind: "realtime";
|
|
415
|
-
options: Record<string, unknown>;
|
|
416
415
|
provider: "openai" | "google" | "xai";
|
|
416
|
+
options: Record<string, unknown>;
|
|
417
417
|
}>]>>;
|
|
418
418
|
vad: z.ZodOptional<z.ZodString>;
|
|
419
419
|
vadOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -574,50 +574,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
574
574
|
llm: {
|
|
575
575
|
kind: "inference";
|
|
576
576
|
model: string;
|
|
577
|
-
options?: Record<string, unknown> | undefined;
|
|
578
577
|
voice?: string | undefined;
|
|
578
|
+
options?: Record<string, unknown> | undefined;
|
|
579
579
|
} | {
|
|
580
580
|
kind: "plugin";
|
|
581
|
-
options: Record<string, unknown>;
|
|
582
581
|
provider: "deepgram" | "elevenlabs";
|
|
583
582
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
583
|
+
options: Record<string, unknown>;
|
|
584
584
|
} | {
|
|
585
585
|
kind: "realtime";
|
|
586
|
-
options: Record<string, unknown>;
|
|
587
586
|
provider: "openai" | "google" | "xai";
|
|
587
|
+
options: Record<string, unknown>;
|
|
588
588
|
};
|
|
589
589
|
name?: string | undefined;
|
|
590
590
|
vad?: string | undefined;
|
|
591
591
|
stt?: {
|
|
592
592
|
kind: "inference";
|
|
593
593
|
model: string;
|
|
594
|
-
options?: Record<string, unknown> | undefined;
|
|
595
594
|
voice?: string | undefined;
|
|
595
|
+
options?: Record<string, unknown> | undefined;
|
|
596
596
|
} | {
|
|
597
597
|
kind: "plugin";
|
|
598
|
-
options: Record<string, unknown>;
|
|
599
598
|
provider: "deepgram" | "elevenlabs";
|
|
600
599
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
600
|
+
options: Record<string, unknown>;
|
|
601
601
|
} | {
|
|
602
602
|
kind: "realtime";
|
|
603
|
-
options: Record<string, unknown>;
|
|
604
603
|
provider: "openai" | "google" | "xai";
|
|
604
|
+
options: Record<string, unknown>;
|
|
605
605
|
} | undefined;
|
|
606
606
|
volume?: number | undefined;
|
|
607
607
|
tts?: {
|
|
608
608
|
kind: "inference";
|
|
609
609
|
model: string;
|
|
610
|
-
options?: Record<string, unknown> | undefined;
|
|
611
610
|
voice?: string | undefined;
|
|
611
|
+
options?: Record<string, unknown> | undefined;
|
|
612
612
|
} | {
|
|
613
613
|
kind: "plugin";
|
|
614
|
-
options: Record<string, unknown>;
|
|
615
614
|
provider: "deepgram" | "elevenlabs";
|
|
616
615
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
616
|
+
options: Record<string, unknown>;
|
|
617
617
|
} | {
|
|
618
618
|
kind: "realtime";
|
|
619
|
-
options: Record<string, unknown>;
|
|
620
619
|
provider: "openai" | "google" | "xai";
|
|
620
|
+
options: Record<string, unknown>;
|
|
621
621
|
} | undefined;
|
|
622
622
|
vadOptions?: {
|
|
623
623
|
minSpeechDuration?: number | undefined;
|
|
@@ -668,50 +668,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
668
668
|
llm: {
|
|
669
669
|
kind: "inference";
|
|
670
670
|
model: string;
|
|
671
|
-
options?: Record<string, unknown> | undefined;
|
|
672
671
|
voice?: string | undefined;
|
|
672
|
+
options?: Record<string, unknown> | undefined;
|
|
673
673
|
} | {
|
|
674
674
|
kind: "plugin";
|
|
675
|
-
options: Record<string, unknown>;
|
|
676
675
|
provider: "deepgram" | "elevenlabs";
|
|
677
676
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
677
|
+
options: Record<string, unknown>;
|
|
678
678
|
} | {
|
|
679
679
|
kind: "realtime";
|
|
680
|
-
options: Record<string, unknown>;
|
|
681
680
|
provider: "openai" | "google" | "xai";
|
|
681
|
+
options: Record<string, unknown>;
|
|
682
682
|
};
|
|
683
683
|
name?: string | undefined;
|
|
684
684
|
vad?: string | undefined;
|
|
685
685
|
stt?: {
|
|
686
686
|
kind: "inference";
|
|
687
687
|
model: string;
|
|
688
|
-
options?: Record<string, unknown> | undefined;
|
|
689
688
|
voice?: string | undefined;
|
|
689
|
+
options?: Record<string, unknown> | undefined;
|
|
690
690
|
} | {
|
|
691
691
|
kind: "plugin";
|
|
692
|
-
options: Record<string, unknown>;
|
|
693
692
|
provider: "deepgram" | "elevenlabs";
|
|
694
693
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
694
|
+
options: Record<string, unknown>;
|
|
695
695
|
} | {
|
|
696
696
|
kind: "realtime";
|
|
697
|
-
options: Record<string, unknown>;
|
|
698
697
|
provider: "openai" | "google" | "xai";
|
|
698
|
+
options: Record<string, unknown>;
|
|
699
699
|
} | undefined;
|
|
700
700
|
volume?: number | undefined;
|
|
701
701
|
tts?: {
|
|
702
702
|
kind: "inference";
|
|
703
703
|
model: string;
|
|
704
|
-
options?: Record<string, unknown> | undefined;
|
|
705
704
|
voice?: string | undefined;
|
|
705
|
+
options?: Record<string, unknown> | undefined;
|
|
706
706
|
} | {
|
|
707
707
|
kind: "plugin";
|
|
708
|
-
options: Record<string, unknown>;
|
|
709
708
|
provider: "deepgram" | "elevenlabs";
|
|
710
709
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
710
|
+
options: Record<string, unknown>;
|
|
711
711
|
} | {
|
|
712
712
|
kind: "realtime";
|
|
713
|
-
options: Record<string, unknown>;
|
|
714
713
|
provider: "openai" | "google" | "xai";
|
|
714
|
+
options: Record<string, unknown>;
|
|
715
715
|
} | undefined;
|
|
716
716
|
vadOptions?: {
|
|
717
717
|
minSpeechDuration?: number | undefined;
|
|
@@ -762,50 +762,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
762
762
|
llm: {
|
|
763
763
|
kind: "inference";
|
|
764
764
|
model: string;
|
|
765
|
-
options?: Record<string, unknown> | undefined;
|
|
766
765
|
voice?: string | undefined;
|
|
766
|
+
options?: Record<string, unknown> | undefined;
|
|
767
767
|
} | {
|
|
768
768
|
kind: "plugin";
|
|
769
|
-
options: Record<string, unknown>;
|
|
770
769
|
provider: "deepgram" | "elevenlabs";
|
|
771
770
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
771
|
+
options: Record<string, unknown>;
|
|
772
772
|
} | {
|
|
773
773
|
kind: "realtime";
|
|
774
|
-
options: Record<string, unknown>;
|
|
775
774
|
provider: "openai" | "google" | "xai";
|
|
775
|
+
options: Record<string, unknown>;
|
|
776
776
|
};
|
|
777
777
|
name?: string | undefined;
|
|
778
778
|
vad?: string | undefined;
|
|
779
779
|
stt?: {
|
|
780
780
|
kind: "inference";
|
|
781
781
|
model: string;
|
|
782
|
-
options?: Record<string, unknown> | undefined;
|
|
783
782
|
voice?: string | undefined;
|
|
783
|
+
options?: Record<string, unknown> | undefined;
|
|
784
784
|
} | {
|
|
785
785
|
kind: "plugin";
|
|
786
|
-
options: Record<string, unknown>;
|
|
787
786
|
provider: "deepgram" | "elevenlabs";
|
|
788
787
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
788
|
+
options: Record<string, unknown>;
|
|
789
789
|
} | {
|
|
790
790
|
kind: "realtime";
|
|
791
|
-
options: Record<string, unknown>;
|
|
792
791
|
provider: "openai" | "google" | "xai";
|
|
792
|
+
options: Record<string, unknown>;
|
|
793
793
|
} | undefined;
|
|
794
794
|
volume?: number | undefined;
|
|
795
795
|
tts?: {
|
|
796
796
|
kind: "inference";
|
|
797
797
|
model: string;
|
|
798
|
-
options?: Record<string, unknown> | undefined;
|
|
799
798
|
voice?: string | undefined;
|
|
799
|
+
options?: Record<string, unknown> | undefined;
|
|
800
800
|
} | {
|
|
801
801
|
kind: "plugin";
|
|
802
|
-
options: Record<string, unknown>;
|
|
803
802
|
provider: "deepgram" | "elevenlabs";
|
|
804
803
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
804
|
+
options: Record<string, unknown>;
|
|
805
805
|
} | {
|
|
806
806
|
kind: "realtime";
|
|
807
|
-
options: Record<string, unknown>;
|
|
808
807
|
provider: "openai" | "google" | "xai";
|
|
808
|
+
options: Record<string, unknown>;
|
|
809
809
|
} | undefined;
|
|
810
810
|
vadOptions?: {
|
|
811
811
|
minSpeechDuration?: number | undefined;
|
|
@@ -856,50 +856,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
856
856
|
llm: {
|
|
857
857
|
kind: "inference";
|
|
858
858
|
model: string;
|
|
859
|
-
options?: Record<string, unknown> | undefined;
|
|
860
859
|
voice?: string | undefined;
|
|
860
|
+
options?: Record<string, unknown> | undefined;
|
|
861
861
|
} | {
|
|
862
862
|
kind: "plugin";
|
|
863
|
-
options: Record<string, unknown>;
|
|
864
863
|
provider: "deepgram" | "elevenlabs";
|
|
865
864
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
865
|
+
options: Record<string, unknown>;
|
|
866
866
|
} | {
|
|
867
867
|
kind: "realtime";
|
|
868
|
-
options: Record<string, unknown>;
|
|
869
868
|
provider: "openai" | "google" | "xai";
|
|
869
|
+
options: Record<string, unknown>;
|
|
870
870
|
};
|
|
871
871
|
name?: string | undefined;
|
|
872
872
|
vad?: string | undefined;
|
|
873
873
|
stt?: {
|
|
874
874
|
kind: "inference";
|
|
875
875
|
model: string;
|
|
876
|
-
options?: Record<string, unknown> | undefined;
|
|
877
876
|
voice?: string | undefined;
|
|
877
|
+
options?: Record<string, unknown> | undefined;
|
|
878
878
|
} | {
|
|
879
879
|
kind: "plugin";
|
|
880
|
-
options: Record<string, unknown>;
|
|
881
880
|
provider: "deepgram" | "elevenlabs";
|
|
882
881
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
882
|
+
options: Record<string, unknown>;
|
|
883
883
|
} | {
|
|
884
884
|
kind: "realtime";
|
|
885
|
-
options: Record<string, unknown>;
|
|
886
885
|
provider: "openai" | "google" | "xai";
|
|
886
|
+
options: Record<string, unknown>;
|
|
887
887
|
} | undefined;
|
|
888
888
|
volume?: number | undefined;
|
|
889
889
|
tts?: {
|
|
890
890
|
kind: "inference";
|
|
891
891
|
model: string;
|
|
892
|
-
options?: Record<string, unknown> | undefined;
|
|
893
892
|
voice?: string | undefined;
|
|
893
|
+
options?: Record<string, unknown> | undefined;
|
|
894
894
|
} | {
|
|
895
895
|
kind: "plugin";
|
|
896
|
-
options: Record<string, unknown>;
|
|
897
896
|
provider: "deepgram" | "elevenlabs";
|
|
898
897
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
898
|
+
options: Record<string, unknown>;
|
|
899
899
|
} | {
|
|
900
900
|
kind: "realtime";
|
|
901
|
-
options: Record<string, unknown>;
|
|
902
901
|
provider: "openai" | "google" | "xai";
|
|
902
|
+
options: Record<string, unknown>;
|
|
903
903
|
} | undefined;
|
|
904
904
|
vadOptions?: {
|
|
905
905
|
minSpeechDuration?: number | undefined;
|