@opencode/ai 2.1.3 → 2.1.4
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/experimental/evaluation.js +3 -10
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +148 -148
- package/dist/promise.d.ts +120 -120
- package/dist/protocols/alibaba-chat.d.ts +12 -12
- package/dist/protocols/alibaba-messages.d.ts +11 -11
- package/dist/protocols/alibaba-responses.d.ts +35 -35
- package/dist/protocols/anthropic-messages.d.ts +40 -44
- package/dist/protocols/anthropic-messages.js +3 -3
- package/dist/protocols/bedrock-converse.d.ts +30 -32
- package/dist/protocols/bedrock-converse.js +2 -3
- package/dist/protocols/cartesia-speech.d.ts +32 -32
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -32
- package/dist/protocols/elevenlabs-speech.d.ts +32 -32
- package/dist/protocols/gemini.d.ts +34 -34
- package/dist/protocols/gemini.js +2 -2
- package/dist/protocols/google-interactions.d.ts +14 -14
- package/dist/protocols/google-interactions.js +2 -2
- package/dist/protocols/google-speech.d.ts +32 -32
- package/dist/protocols/google-transcription.d.ts +32 -32
- package/dist/protocols/meta-messages.d.ts +23 -23
- package/dist/protocols/meta-responses.d.ts +78 -78
- package/dist/protocols/mistral-chat.d.ts +81 -78
- package/dist/protocols/mistral-chat.js +2 -1
- package/dist/protocols/open-responses-channel.js +47 -46
- package/dist/protocols/open-responses-continuation.d.ts +8 -2
- package/dist/protocols/open-responses-continuation.js +3 -1
- package/dist/protocols/open-responses.d.ts +398 -398
- package/dist/protocols/open-responses.js +8 -7
- package/dist/protocols/openai-chat.d.ts +60 -60
- package/dist/protocols/openai-chat.js +3 -3
- package/dist/protocols/openai-compatible-chat.d.ts +13 -14
- package/dist/protocols/openai-compatible-responses.d.ts +36 -37
- package/dist/protocols/openai-images.d.ts +32 -32
- package/dist/protocols/openai-responses.d.ts +235 -235
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +32 -32
- package/dist/protocols/openai-transcription.d.ts +32 -32
- package/dist/protocols/openai-transcription.js +12 -7
- package/dist/protocols/utils/partial-json-options.d.ts +0 -1
- package/dist/protocols/utils/partial-json-options.js +0 -1
- package/dist/protocols/utils/tool-stream.d.ts +1 -1
- package/dist/protocols/venice-chat.d.ts +52 -53
- package/dist/protocols/venice-chat.js +6 -5
- package/dist/protocols/xai-responses.d.ts +78 -78
- package/dist/protocols/zai-chat.d.ts +33 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-messages.d.ts +21 -19
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/provider-error.js +5 -3
- package/dist/providers/alibaba.d.ts +69 -69
- package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
- package/dist/providers/amazon-bedrock.d.ts +15 -15
- package/dist/providers/anthropic-compatible.d.ts +13 -13
- package/dist/providers/anthropic.d.ts +13 -13
- package/dist/providers/azure.d.ts +106 -106
- package/dist/providers/baseten.d.ts +24 -24
- package/dist/providers/cerebras.d.ts +24 -24
- package/dist/providers/cloudflare-ai-gateway.d.ts +230 -227
- package/dist/providers/cloudflare-ai-gateway.js +1 -2
- package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
- package/dist/providers/cohere.d.ts +75 -75
- package/dist/providers/deepinfra.d.ts +24 -24
- package/dist/providers/deepseek.d.ts +24 -24
- package/dist/providers/digitalocean.d.ts +36 -36
- package/dist/providers/fireworks.d.ts +24 -24
- package/dist/providers/google-vertex-chat.d.ts +12 -12
- package/dist/providers/google-vertex-messages.d.ts +13 -13
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +35 -35
- package/dist/providers/google-vertex.d.ts +17 -17
- package/dist/providers/google-vertex.js +2 -2
- package/dist/providers/google.d.ts +17 -17
- package/dist/providers/groq.d.ts +24 -24
- package/dist/providers/meta.d.ts +179 -179
- package/dist/providers/minimax.d.ts +71 -71
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +202 -202
- package/dist/providers/open-responses-options.d.ts +0 -1
- package/dist/providers/open-responses-options.js +1 -1
- package/dist/providers/openai-compatible-responses.d.ts +35 -35
- package/dist/providers/openai-compatible.d.ts +12 -12
- package/dist/providers/openai-compatible.js +1 -1
- package/dist/providers/openai-options.d.ts +0 -1
- package/dist/providers/openai-options.js +0 -1
- package/dist/providers/openai.d.ts +100 -100
- package/dist/providers/openrouter.d.ts +36 -36
- package/dist/providers/togetherai.d.ts +24 -24
- package/dist/providers/venice.d.ts +195 -20
- package/dist/providers/xai.d.ts +12 -12
- package/dist/providers/zai-coding-plan.d.ts +149 -69
- package/dist/providers/zai.d.ts +84 -19
- package/dist/route/auth-options.d.ts +0 -3
- package/dist/route/auth.d.ts +0 -2
- package/dist/route/auth.js +0 -2
- package/dist/route/client.d.ts +0 -2
- package/dist/route/client.js +3 -4
- package/dist/route/executor-service.js +1 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +148 -148
- package/dist/transcription-client.d.ts +8 -8
- package/dist/transcription.d.ts +148 -148
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +114 -114
- package/package.json +6 -5
package/dist/transcription.d.ts
CHANGED
|
@@ -396,14 +396,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
396
396
|
}>;
|
|
397
397
|
};
|
|
398
398
|
readonly isAnyOf: <const Keys>(keys: readonly Keys[]) => (value: {
|
|
399
|
-
readonly type: "generation-queued";
|
|
400
|
-
readonly id: string;
|
|
401
|
-
readonly position?: number | undefined;
|
|
402
|
-
} | {
|
|
403
|
-
readonly type: "generation-progress";
|
|
404
|
-
readonly id: string;
|
|
405
|
-
readonly progress?: number | undefined;
|
|
406
|
-
} | {
|
|
407
399
|
readonly type: "text-delta";
|
|
408
400
|
readonly delta: string;
|
|
409
401
|
} | {
|
|
@@ -414,6 +406,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
414
406
|
readonly endSeconds: number;
|
|
415
407
|
readonly speaker?: string | undefined;
|
|
416
408
|
};
|
|
409
|
+
} | {
|
|
410
|
+
readonly type: "generation-queued";
|
|
411
|
+
readonly id: string;
|
|
412
|
+
readonly position?: number | undefined;
|
|
413
|
+
} | {
|
|
414
|
+
readonly type: "generation-progress";
|
|
415
|
+
readonly id: string;
|
|
416
|
+
readonly progress?: number | undefined;
|
|
417
417
|
} | {
|
|
418
418
|
readonly text: string;
|
|
419
419
|
readonly segments?: readonly {
|
|
@@ -432,14 +432,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
432
432
|
readonly language?: string | undefined;
|
|
433
433
|
readonly durationSeconds?: number | undefined;
|
|
434
434
|
readonly usage?: {
|
|
435
|
-
readonly type: "tokens";
|
|
436
|
-
readonly input?: number | undefined;
|
|
437
|
-
readonly output?: number | undefined;
|
|
438
|
-
readonly total?: number | undefined;
|
|
439
|
-
readonly details?: {
|
|
440
|
-
readonly [x: string]: unknown;
|
|
441
|
-
} | undefined;
|
|
442
|
-
} | {
|
|
443
435
|
readonly type: "seconds";
|
|
444
436
|
readonly seconds: number;
|
|
445
437
|
} | {
|
|
@@ -451,6 +443,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
451
443
|
} | {
|
|
452
444
|
readonly type: "compute";
|
|
453
445
|
readonly seconds: number;
|
|
446
|
+
} | {
|
|
447
|
+
readonly type: "tokens";
|
|
448
|
+
readonly input?: number | undefined;
|
|
449
|
+
readonly output?: number | undefined;
|
|
450
|
+
readonly total?: number | undefined;
|
|
451
|
+
readonly details?: {
|
|
452
|
+
readonly [x: string]: unknown;
|
|
453
|
+
} | undefined;
|
|
454
454
|
} | undefined;
|
|
455
455
|
readonly notices?: readonly {
|
|
456
456
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -468,18 +468,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
468
468
|
} | undefined;
|
|
469
469
|
readonly type: "finish";
|
|
470
470
|
}) => value is Extract<{
|
|
471
|
-
readonly type: "generation-queued";
|
|
472
|
-
readonly id: string;
|
|
473
|
-
readonly position?: number | undefined;
|
|
474
|
-
}, {
|
|
475
|
-
readonly type: Keys;
|
|
476
|
-
}> | Extract<{
|
|
477
|
-
readonly type: "generation-progress";
|
|
478
|
-
readonly id: string;
|
|
479
|
-
readonly progress?: number | undefined;
|
|
480
|
-
}, {
|
|
481
|
-
readonly type: Keys;
|
|
482
|
-
}> | Extract<{
|
|
483
471
|
readonly type: "text-delta";
|
|
484
472
|
readonly delta: string;
|
|
485
473
|
}, {
|
|
@@ -494,6 +482,18 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
494
482
|
};
|
|
495
483
|
}, {
|
|
496
484
|
readonly type: Keys;
|
|
485
|
+
}> | Extract<{
|
|
486
|
+
readonly type: "generation-queued";
|
|
487
|
+
readonly id: string;
|
|
488
|
+
readonly position?: number | undefined;
|
|
489
|
+
}, {
|
|
490
|
+
readonly type: Keys;
|
|
491
|
+
}> | Extract<{
|
|
492
|
+
readonly type: "generation-progress";
|
|
493
|
+
readonly id: string;
|
|
494
|
+
readonly progress?: number | undefined;
|
|
495
|
+
}, {
|
|
496
|
+
readonly type: Keys;
|
|
497
497
|
}> | Extract<{
|
|
498
498
|
readonly text: string;
|
|
499
499
|
readonly segments?: readonly {
|
|
@@ -512,14 +512,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
512
512
|
readonly language?: string | undefined;
|
|
513
513
|
readonly durationSeconds?: number | undefined;
|
|
514
514
|
readonly usage?: {
|
|
515
|
-
readonly type: "tokens";
|
|
516
|
-
readonly input?: number | undefined;
|
|
517
|
-
readonly output?: number | undefined;
|
|
518
|
-
readonly total?: number | undefined;
|
|
519
|
-
readonly details?: {
|
|
520
|
-
readonly [x: string]: unknown;
|
|
521
|
-
} | undefined;
|
|
522
|
-
} | {
|
|
523
515
|
readonly type: "seconds";
|
|
524
516
|
readonly seconds: number;
|
|
525
517
|
} | {
|
|
@@ -531,6 +523,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
531
523
|
} | {
|
|
532
524
|
readonly type: "compute";
|
|
533
525
|
readonly seconds: number;
|
|
526
|
+
} | {
|
|
527
|
+
readonly type: "tokens";
|
|
528
|
+
readonly input?: number | undefined;
|
|
529
|
+
readonly output?: number | undefined;
|
|
530
|
+
readonly total?: number | undefined;
|
|
531
|
+
readonly details?: {
|
|
532
|
+
readonly [x: string]: unknown;
|
|
533
|
+
} | undefined;
|
|
534
534
|
} | undefined;
|
|
535
535
|
readonly notices?: readonly {
|
|
536
536
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -569,14 +569,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
569
569
|
readonly language?: string | undefined;
|
|
570
570
|
readonly durationSeconds?: number | undefined;
|
|
571
571
|
readonly usage?: {
|
|
572
|
-
readonly type: "tokens";
|
|
573
|
-
readonly input?: number | undefined;
|
|
574
|
-
readonly output?: number | undefined;
|
|
575
|
-
readonly total?: number | undefined;
|
|
576
|
-
readonly details?: {
|
|
577
|
-
readonly [x: string]: unknown;
|
|
578
|
-
} | undefined;
|
|
579
|
-
} | {
|
|
580
572
|
readonly type: "seconds";
|
|
581
573
|
readonly seconds: number;
|
|
582
574
|
} | {
|
|
@@ -588,6 +580,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
588
580
|
} | {
|
|
589
581
|
readonly type: "compute";
|
|
590
582
|
readonly seconds: number;
|
|
583
|
+
} | {
|
|
584
|
+
readonly type: "tokens";
|
|
585
|
+
readonly input?: number | undefined;
|
|
586
|
+
readonly output?: number | undefined;
|
|
587
|
+
readonly total?: number | undefined;
|
|
588
|
+
readonly details?: {
|
|
589
|
+
readonly [x: string]: unknown;
|
|
590
|
+
} | undefined;
|
|
591
591
|
} | undefined;
|
|
592
592
|
readonly notices?: readonly {
|
|
593
593
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -693,14 +693,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
693
693
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
694
694
|
readonly type: Schema.tag<"finish">;
|
|
695
695
|
}> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(value: {
|
|
696
|
-
readonly type: "generation-queued";
|
|
697
|
-
readonly id: string;
|
|
698
|
-
readonly position?: number | undefined;
|
|
699
|
-
} | {
|
|
700
|
-
readonly type: "generation-progress";
|
|
701
|
-
readonly id: string;
|
|
702
|
-
readonly progress?: number | undefined;
|
|
703
|
-
} | {
|
|
704
696
|
readonly type: "text-delta";
|
|
705
697
|
readonly delta: string;
|
|
706
698
|
} | {
|
|
@@ -711,6 +703,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
711
703
|
readonly endSeconds: number;
|
|
712
704
|
readonly speaker?: string | undefined;
|
|
713
705
|
};
|
|
706
|
+
} | {
|
|
707
|
+
readonly type: "generation-queued";
|
|
708
|
+
readonly id: string;
|
|
709
|
+
readonly position?: number | undefined;
|
|
710
|
+
} | {
|
|
711
|
+
readonly type: "generation-progress";
|
|
712
|
+
readonly id: string;
|
|
713
|
+
readonly progress?: number | undefined;
|
|
714
714
|
} | {
|
|
715
715
|
readonly text: string;
|
|
716
716
|
readonly segments?: readonly {
|
|
@@ -729,14 +729,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
729
729
|
readonly language?: string | undefined;
|
|
730
730
|
readonly durationSeconds?: number | undefined;
|
|
731
731
|
readonly usage?: {
|
|
732
|
-
readonly type: "tokens";
|
|
733
|
-
readonly input?: number | undefined;
|
|
734
|
-
readonly output?: number | undefined;
|
|
735
|
-
readonly total?: number | undefined;
|
|
736
|
-
readonly details?: {
|
|
737
|
-
readonly [x: string]: unknown;
|
|
738
|
-
} | undefined;
|
|
739
|
-
} | {
|
|
740
732
|
readonly type: "seconds";
|
|
741
733
|
readonly seconds: number;
|
|
742
734
|
} | {
|
|
@@ -748,6 +740,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
748
740
|
} | {
|
|
749
741
|
readonly type: "compute";
|
|
750
742
|
readonly seconds: number;
|
|
743
|
+
} | {
|
|
744
|
+
readonly type: "tokens";
|
|
745
|
+
readonly input?: number | undefined;
|
|
746
|
+
readonly output?: number | undefined;
|
|
747
|
+
readonly total?: number | undefined;
|
|
748
|
+
readonly details?: {
|
|
749
|
+
readonly [x: string]: unknown;
|
|
750
|
+
} | undefined;
|
|
751
751
|
} | undefined;
|
|
752
752
|
readonly notices?: readonly {
|
|
753
753
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -828,14 +828,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
828
828
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
829
829
|
readonly type: Schema.tag<"finish">;
|
|
830
830
|
}> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(cases: Cases): (value: {
|
|
831
|
-
readonly type: "generation-queued";
|
|
832
|
-
readonly id: string;
|
|
833
|
-
readonly position?: number | undefined;
|
|
834
|
-
} | {
|
|
835
|
-
readonly type: "generation-progress";
|
|
836
|
-
readonly id: string;
|
|
837
|
-
readonly progress?: number | undefined;
|
|
838
|
-
} | {
|
|
839
831
|
readonly type: "text-delta";
|
|
840
832
|
readonly delta: string;
|
|
841
833
|
} | {
|
|
@@ -846,6 +838,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
846
838
|
readonly endSeconds: number;
|
|
847
839
|
readonly speaker?: string | undefined;
|
|
848
840
|
};
|
|
841
|
+
} | {
|
|
842
|
+
readonly type: "generation-queued";
|
|
843
|
+
readonly id: string;
|
|
844
|
+
readonly position?: number | undefined;
|
|
845
|
+
} | {
|
|
846
|
+
readonly type: "generation-progress";
|
|
847
|
+
readonly id: string;
|
|
848
|
+
readonly progress?: number | undefined;
|
|
849
849
|
} | {
|
|
850
850
|
readonly text: string;
|
|
851
851
|
readonly segments?: readonly {
|
|
@@ -864,14 +864,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
864
864
|
readonly language?: string | undefined;
|
|
865
865
|
readonly durationSeconds?: number | undefined;
|
|
866
866
|
readonly usage?: {
|
|
867
|
-
readonly type: "tokens";
|
|
868
|
-
readonly input?: number | undefined;
|
|
869
|
-
readonly output?: number | undefined;
|
|
870
|
-
readonly total?: number | undefined;
|
|
871
|
-
readonly details?: {
|
|
872
|
-
readonly [x: string]: unknown;
|
|
873
|
-
} | undefined;
|
|
874
|
-
} | {
|
|
875
867
|
readonly type: "seconds";
|
|
876
868
|
readonly seconds: number;
|
|
877
869
|
} | {
|
|
@@ -883,6 +875,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
883
875
|
} | {
|
|
884
876
|
readonly type: "compute";
|
|
885
877
|
readonly seconds: number;
|
|
878
|
+
} | {
|
|
879
|
+
readonly type: "tokens";
|
|
880
|
+
readonly input?: number | undefined;
|
|
881
|
+
readonly output?: number | undefined;
|
|
882
|
+
readonly total?: number | undefined;
|
|
883
|
+
readonly details?: {
|
|
884
|
+
readonly [x: string]: unknown;
|
|
885
|
+
} | undefined;
|
|
886
886
|
} | undefined;
|
|
887
887
|
readonly notices?: readonly {
|
|
888
888
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -965,14 +965,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
965
965
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
966
966
|
readonly type: Schema.tag<"finish">;
|
|
967
967
|
}> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "segment" | "text-delta">]: never; }, OrElse extends (value: Exclude<{
|
|
968
|
-
readonly type: "generation-queued";
|
|
969
|
-
readonly id: string;
|
|
970
|
-
readonly position?: number | undefined;
|
|
971
|
-
} | {
|
|
972
|
-
readonly type: "generation-progress";
|
|
973
|
-
readonly id: string;
|
|
974
|
-
readonly progress?: number | undefined;
|
|
975
|
-
} | {
|
|
976
968
|
readonly type: "text-delta";
|
|
977
969
|
readonly delta: string;
|
|
978
970
|
} | {
|
|
@@ -983,6 +975,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
983
975
|
readonly endSeconds: number;
|
|
984
976
|
readonly speaker?: string | undefined;
|
|
985
977
|
};
|
|
978
|
+
} | {
|
|
979
|
+
readonly type: "generation-queued";
|
|
980
|
+
readonly id: string;
|
|
981
|
+
readonly position?: number | undefined;
|
|
982
|
+
} | {
|
|
983
|
+
readonly type: "generation-progress";
|
|
984
|
+
readonly id: string;
|
|
985
|
+
readonly progress?: number | undefined;
|
|
986
986
|
} | {
|
|
987
987
|
readonly text: string;
|
|
988
988
|
readonly segments?: readonly {
|
|
@@ -1001,14 +1001,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1001
1001
|
readonly language?: string | undefined;
|
|
1002
1002
|
readonly durationSeconds?: number | undefined;
|
|
1003
1003
|
readonly usage?: {
|
|
1004
|
-
readonly type: "tokens";
|
|
1005
|
-
readonly input?: number | undefined;
|
|
1006
|
-
readonly output?: number | undefined;
|
|
1007
|
-
readonly total?: number | undefined;
|
|
1008
|
-
readonly details?: {
|
|
1009
|
-
readonly [x: string]: unknown;
|
|
1010
|
-
} | undefined;
|
|
1011
|
-
} | {
|
|
1012
1004
|
readonly type: "seconds";
|
|
1013
1005
|
readonly seconds: number;
|
|
1014
1006
|
} | {
|
|
@@ -1020,6 +1012,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1020
1012
|
} | {
|
|
1021
1013
|
readonly type: "compute";
|
|
1022
1014
|
readonly seconds: number;
|
|
1015
|
+
} | {
|
|
1016
|
+
readonly type: "tokens";
|
|
1017
|
+
readonly input?: number | undefined;
|
|
1018
|
+
readonly output?: number | undefined;
|
|
1019
|
+
readonly total?: number | undefined;
|
|
1020
|
+
readonly details?: {
|
|
1021
|
+
readonly [x: string]: unknown;
|
|
1022
|
+
} | undefined;
|
|
1023
1023
|
} | undefined;
|
|
1024
1024
|
readonly notices?: readonly {
|
|
1025
1025
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -1037,14 +1037,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1037
1037
|
} | undefined;
|
|
1038
1038
|
readonly type: "finish";
|
|
1039
1039
|
}, { readonly [K in "type"]: keyof Cases; }>) => any>(value: {
|
|
1040
|
-
readonly type: "generation-queued";
|
|
1041
|
-
readonly id: string;
|
|
1042
|
-
readonly position?: number | undefined;
|
|
1043
|
-
} | {
|
|
1044
|
-
readonly type: "generation-progress";
|
|
1045
|
-
readonly id: string;
|
|
1046
|
-
readonly progress?: number | undefined;
|
|
1047
|
-
} | {
|
|
1048
1040
|
readonly type: "text-delta";
|
|
1049
1041
|
readonly delta: string;
|
|
1050
1042
|
} | {
|
|
@@ -1055,6 +1047,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1055
1047
|
readonly endSeconds: number;
|
|
1056
1048
|
readonly speaker?: string | undefined;
|
|
1057
1049
|
};
|
|
1050
|
+
} | {
|
|
1051
|
+
readonly type: "generation-queued";
|
|
1052
|
+
readonly id: string;
|
|
1053
|
+
readonly position?: number | undefined;
|
|
1054
|
+
} | {
|
|
1055
|
+
readonly type: "generation-progress";
|
|
1056
|
+
readonly id: string;
|
|
1057
|
+
readonly progress?: number | undefined;
|
|
1058
1058
|
} | {
|
|
1059
1059
|
readonly text: string;
|
|
1060
1060
|
readonly segments?: readonly {
|
|
@@ -1073,14 +1073,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1073
1073
|
readonly language?: string | undefined;
|
|
1074
1074
|
readonly durationSeconds?: number | undefined;
|
|
1075
1075
|
readonly usage?: {
|
|
1076
|
-
readonly type: "tokens";
|
|
1077
|
-
readonly input?: number | undefined;
|
|
1078
|
-
readonly output?: number | undefined;
|
|
1079
|
-
readonly total?: number | undefined;
|
|
1080
|
-
readonly details?: {
|
|
1081
|
-
readonly [x: string]: unknown;
|
|
1082
|
-
} | undefined;
|
|
1083
|
-
} | {
|
|
1084
1076
|
readonly type: "seconds";
|
|
1085
1077
|
readonly seconds: number;
|
|
1086
1078
|
} | {
|
|
@@ -1092,6 +1084,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1092
1084
|
} | {
|
|
1093
1085
|
readonly type: "compute";
|
|
1094
1086
|
readonly seconds: number;
|
|
1087
|
+
} | {
|
|
1088
|
+
readonly type: "tokens";
|
|
1089
|
+
readonly input?: number | undefined;
|
|
1090
|
+
readonly output?: number | undefined;
|
|
1091
|
+
readonly total?: number | undefined;
|
|
1092
|
+
readonly details?: {
|
|
1093
|
+
readonly [x: string]: unknown;
|
|
1094
|
+
} | undefined;
|
|
1095
1095
|
} | undefined;
|
|
1096
1096
|
readonly notices?: readonly {
|
|
1097
1097
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -1172,14 +1172,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1172
1172
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1173
1173
|
readonly type: Schema.tag<"finish">;
|
|
1174
1174
|
}> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "segment" | "text-delta">]: never; }, OrElse extends (value: Exclude<{
|
|
1175
|
-
readonly type: "generation-queued";
|
|
1176
|
-
readonly id: string;
|
|
1177
|
-
readonly position?: number | undefined;
|
|
1178
|
-
} | {
|
|
1179
|
-
readonly type: "generation-progress";
|
|
1180
|
-
readonly id: string;
|
|
1181
|
-
readonly progress?: number | undefined;
|
|
1182
|
-
} | {
|
|
1183
1175
|
readonly type: "text-delta";
|
|
1184
1176
|
readonly delta: string;
|
|
1185
1177
|
} | {
|
|
@@ -1190,6 +1182,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1190
1182
|
readonly endSeconds: number;
|
|
1191
1183
|
readonly speaker?: string | undefined;
|
|
1192
1184
|
};
|
|
1185
|
+
} | {
|
|
1186
|
+
readonly type: "generation-queued";
|
|
1187
|
+
readonly id: string;
|
|
1188
|
+
readonly position?: number | undefined;
|
|
1189
|
+
} | {
|
|
1190
|
+
readonly type: "generation-progress";
|
|
1191
|
+
readonly id: string;
|
|
1192
|
+
readonly progress?: number | undefined;
|
|
1193
1193
|
} | {
|
|
1194
1194
|
readonly text: string;
|
|
1195
1195
|
readonly segments?: readonly {
|
|
@@ -1208,14 +1208,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1208
1208
|
readonly language?: string | undefined;
|
|
1209
1209
|
readonly durationSeconds?: number | undefined;
|
|
1210
1210
|
readonly usage?: {
|
|
1211
|
-
readonly type: "tokens";
|
|
1212
|
-
readonly input?: number | undefined;
|
|
1213
|
-
readonly output?: number | undefined;
|
|
1214
|
-
readonly total?: number | undefined;
|
|
1215
|
-
readonly details?: {
|
|
1216
|
-
readonly [x: string]: unknown;
|
|
1217
|
-
} | undefined;
|
|
1218
|
-
} | {
|
|
1219
1211
|
readonly type: "seconds";
|
|
1220
1212
|
readonly seconds: number;
|
|
1221
1213
|
} | {
|
|
@@ -1227,6 +1219,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1227
1219
|
} | {
|
|
1228
1220
|
readonly type: "compute";
|
|
1229
1221
|
readonly seconds: number;
|
|
1222
|
+
} | {
|
|
1223
|
+
readonly type: "tokens";
|
|
1224
|
+
readonly input?: number | undefined;
|
|
1225
|
+
readonly output?: number | undefined;
|
|
1226
|
+
readonly total?: number | undefined;
|
|
1227
|
+
readonly details?: {
|
|
1228
|
+
readonly [x: string]: unknown;
|
|
1229
|
+
} | undefined;
|
|
1230
1230
|
} | undefined;
|
|
1231
1231
|
readonly notices?: readonly {
|
|
1232
1232
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -1244,14 +1244,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1244
1244
|
} | undefined;
|
|
1245
1245
|
readonly type: "finish";
|
|
1246
1246
|
}, { readonly [K in "type"]: keyof Cases; }>) => any>(cases: Cases, orElse: OrElse): (value: {
|
|
1247
|
-
readonly type: "generation-queued";
|
|
1248
|
-
readonly id: string;
|
|
1249
|
-
readonly position?: number | undefined;
|
|
1250
|
-
} | {
|
|
1251
|
-
readonly type: "generation-progress";
|
|
1252
|
-
readonly id: string;
|
|
1253
|
-
readonly progress?: number | undefined;
|
|
1254
|
-
} | {
|
|
1255
1247
|
readonly type: "text-delta";
|
|
1256
1248
|
readonly delta: string;
|
|
1257
1249
|
} | {
|
|
@@ -1262,6 +1254,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1262
1254
|
readonly endSeconds: number;
|
|
1263
1255
|
readonly speaker?: string | undefined;
|
|
1264
1256
|
};
|
|
1257
|
+
} | {
|
|
1258
|
+
readonly type: "generation-queued";
|
|
1259
|
+
readonly id: string;
|
|
1260
|
+
readonly position?: number | undefined;
|
|
1261
|
+
} | {
|
|
1262
|
+
readonly type: "generation-progress";
|
|
1263
|
+
readonly id: string;
|
|
1264
|
+
readonly progress?: number | undefined;
|
|
1265
1265
|
} | {
|
|
1266
1266
|
readonly text: string;
|
|
1267
1267
|
readonly segments?: readonly {
|
|
@@ -1280,14 +1280,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1280
1280
|
readonly language?: string | undefined;
|
|
1281
1281
|
readonly durationSeconds?: number | undefined;
|
|
1282
1282
|
readonly usage?: {
|
|
1283
|
-
readonly type: "tokens";
|
|
1284
|
-
readonly input?: number | undefined;
|
|
1285
|
-
readonly output?: number | undefined;
|
|
1286
|
-
readonly total?: number | undefined;
|
|
1287
|
-
readonly details?: {
|
|
1288
|
-
readonly [x: string]: unknown;
|
|
1289
|
-
} | undefined;
|
|
1290
|
-
} | {
|
|
1291
1283
|
readonly type: "seconds";
|
|
1292
1284
|
readonly seconds: number;
|
|
1293
1285
|
} | {
|
|
@@ -1299,6 +1291,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1299
1291
|
} | {
|
|
1300
1292
|
readonly type: "compute";
|
|
1301
1293
|
readonly seconds: number;
|
|
1294
|
+
} | {
|
|
1295
|
+
readonly type: "tokens";
|
|
1296
|
+
readonly input?: number | undefined;
|
|
1297
|
+
readonly output?: number | undefined;
|
|
1298
|
+
readonly total?: number | undefined;
|
|
1299
|
+
readonly details?: {
|
|
1300
|
+
readonly [x: string]: unknown;
|
|
1301
|
+
} | undefined;
|
|
1302
1302
|
} | undefined;
|
|
1303
1303
|
readonly notices?: readonly {
|
|
1304
1304
|
readonly type: "filtered" | "moderated" | "other";
|
|
@@ -1360,14 +1360,6 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1360
1360
|
readonly language?: string | undefined;
|
|
1361
1361
|
readonly durationSeconds?: number | undefined;
|
|
1362
1362
|
readonly usage?: {
|
|
1363
|
-
readonly type: "tokens";
|
|
1364
|
-
readonly input?: number | undefined;
|
|
1365
|
-
readonly output?: number | undefined;
|
|
1366
|
-
readonly total?: number | undefined;
|
|
1367
|
-
readonly details?: {
|
|
1368
|
-
readonly [x: string]: unknown;
|
|
1369
|
-
} | undefined;
|
|
1370
|
-
} | {
|
|
1371
1363
|
readonly type: "seconds";
|
|
1372
1364
|
readonly seconds: number;
|
|
1373
1365
|
} | {
|
|
@@ -1379,6 +1371,14 @@ export declare const TranscriptionEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1379
1371
|
} | {
|
|
1380
1372
|
readonly type: "compute";
|
|
1381
1373
|
readonly seconds: number;
|
|
1374
|
+
} | {
|
|
1375
|
+
readonly type: "tokens";
|
|
1376
|
+
readonly input?: number | undefined;
|
|
1377
|
+
readonly output?: number | undefined;
|
|
1378
|
+
readonly total?: number | undefined;
|
|
1379
|
+
readonly details?: {
|
|
1380
|
+
readonly [x: string]: unknown;
|
|
1381
|
+
} | undefined;
|
|
1382
1382
|
} | undefined;
|
|
1383
1383
|
readonly notices?: readonly {
|
|
1384
1384
|
readonly type: "filtered" | "moderated" | "other";
|
package/dist/video-client.d.ts
CHANGED
|
@@ -17,14 +17,6 @@ export declare const VideoClient: {
|
|
|
17
17
|
} | {
|
|
18
18
|
readonly type: "finish";
|
|
19
19
|
readonly usage?: {
|
|
20
|
-
readonly type: "tokens";
|
|
21
|
-
readonly input?: number | undefined;
|
|
22
|
-
readonly output?: number | undefined;
|
|
23
|
-
readonly total?: number | undefined;
|
|
24
|
-
readonly details?: {
|
|
25
|
-
readonly [x: string]: unknown;
|
|
26
|
-
} | undefined;
|
|
27
|
-
} | {
|
|
28
20
|
readonly type: "seconds";
|
|
29
21
|
readonly seconds: number;
|
|
30
22
|
} | {
|
|
@@ -36,6 +28,14 @@ export declare const VideoClient: {
|
|
|
36
28
|
} | {
|
|
37
29
|
readonly type: "compute";
|
|
38
30
|
readonly seconds: number;
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "tokens";
|
|
33
|
+
readonly input?: number | undefined;
|
|
34
|
+
readonly output?: number | undefined;
|
|
35
|
+
readonly total?: number | undefined;
|
|
36
|
+
readonly details?: {
|
|
37
|
+
readonly [x: string]: unknown;
|
|
38
|
+
} | undefined;
|
|
39
39
|
} | undefined;
|
|
40
40
|
readonly notices?: readonly {
|
|
41
41
|
readonly type: "filtered" | "moderated" | "other";
|