@google/genai 1.19.0 → 1.20.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/genai.d.ts +56 -1
- package/dist/index.cjs +72 -1
- package/dist/index.mjs +73 -2
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +72 -1
- package/dist/node/index.mjs +73 -2
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +56 -1
- package/dist/web/index.mjs +73 -2
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +56 -1
- package/package.json +4 -1
package/dist/web/web.d.ts
CHANGED
|
@@ -4711,6 +4711,12 @@ export declare interface LiveServerContent {
|
|
|
4711
4711
|
outputTranscription?: Transcription;
|
|
4712
4712
|
/** Metadata related to url context retrieval tool. */
|
|
4713
4713
|
urlContextMetadata?: UrlContextMetadata;
|
|
4714
|
+
/** Reason for the turn is complete. */
|
|
4715
|
+
turnCompleteReason?: TurnCompleteReason;
|
|
4716
|
+
/** If true, indicates that the model is not generating content because
|
|
4717
|
+
it is waiting for more input from the user, e.g. because it expects the
|
|
4718
|
+
user to continue talking. */
|
|
4719
|
+
waitingForInput?: boolean;
|
|
4714
4720
|
}
|
|
4715
4721
|
|
|
4716
4722
|
/** Server will not be able to service client soon. */
|
|
@@ -7015,6 +7021,26 @@ export declare interface TuningValidationDataset {
|
|
|
7015
7021
|
vertexDatasetResource?: string;
|
|
7016
7022
|
}
|
|
7017
7023
|
|
|
7024
|
+
/** The reason why the turn is complete. */
|
|
7025
|
+
export declare enum TurnCompleteReason {
|
|
7026
|
+
/**
|
|
7027
|
+
* Default value. Reason is unspecified.
|
|
7028
|
+
*/
|
|
7029
|
+
TURN_COMPLETE_REASON_UNSPECIFIED = "TURN_COMPLETE_REASON_UNSPECIFIED",
|
|
7030
|
+
/**
|
|
7031
|
+
* The function call generated by the model is invalid.
|
|
7032
|
+
*/
|
|
7033
|
+
MALFORMED_FUNCTION_CALL = "MALFORMED_FUNCTION_CALL",
|
|
7034
|
+
/**
|
|
7035
|
+
* The response is rejected by the model.
|
|
7036
|
+
*/
|
|
7037
|
+
RESPONSE_REJECTED = "RESPONSE_REJECTED",
|
|
7038
|
+
/**
|
|
7039
|
+
* Needs more input from the user.
|
|
7040
|
+
*/
|
|
7041
|
+
NEED_MORE_INPUT = "NEED_MORE_INPUT"
|
|
7042
|
+
}
|
|
7043
|
+
|
|
7018
7044
|
/** Options about which input is included in the user's turn. */
|
|
7019
7045
|
export declare enum TurnCoverage {
|
|
7020
7046
|
/**
|
|
@@ -7112,9 +7138,11 @@ declare namespace types {
|
|
|
7112
7138
|
EditMode,
|
|
7113
7139
|
SegmentMode,
|
|
7114
7140
|
VideoGenerationReferenceType,
|
|
7141
|
+
VideoGenerationMaskMode,
|
|
7115
7142
|
VideoCompressionQuality,
|
|
7116
7143
|
FileState,
|
|
7117
7144
|
FileSource,
|
|
7145
|
+
TurnCompleteReason,
|
|
7118
7146
|
MediaModality,
|
|
7119
7147
|
StartSensitivity,
|
|
7120
7148
|
EndSensitivity,
|
|
@@ -7757,7 +7785,34 @@ export declare interface VideoGenerationMask {
|
|
|
7757
7785
|
/** Describes how the mask will be used. Inpainting masks must
|
|
7758
7786
|
match the aspect ratio of the input video. Outpainting masks can be
|
|
7759
7787
|
either 9:16 or 16:9. */
|
|
7760
|
-
maskMode?:
|
|
7788
|
+
maskMode?: VideoGenerationMaskMode;
|
|
7789
|
+
}
|
|
7790
|
+
|
|
7791
|
+
/** Enum for the mask mode of a video generation mask. */
|
|
7792
|
+
export declare enum VideoGenerationMaskMode {
|
|
7793
|
+
/**
|
|
7794
|
+
* The image mask contains a masked rectangular region which is
|
|
7795
|
+
applied on the first frame of the input video. The object described in
|
|
7796
|
+
the prompt is inserted into this region and will appear in subsequent
|
|
7797
|
+
frames.
|
|
7798
|
+
*/
|
|
7799
|
+
INSERT = "INSERT",
|
|
7800
|
+
/**
|
|
7801
|
+
* The image mask is used to determine an object in the
|
|
7802
|
+
first video frame to track. This object is removed from the video.
|
|
7803
|
+
*/
|
|
7804
|
+
REMOVE = "REMOVE",
|
|
7805
|
+
/**
|
|
7806
|
+
* The image mask is used to determine a region in the
|
|
7807
|
+
video. Objects in this region will be removed.
|
|
7808
|
+
*/
|
|
7809
|
+
REMOVE_STATIC = "REMOVE_STATIC",
|
|
7810
|
+
/**
|
|
7811
|
+
* The image mask contains a masked rectangular region where
|
|
7812
|
+
the input video will go. The remaining area will be generated. Video
|
|
7813
|
+
masks are not supported.
|
|
7814
|
+
*/
|
|
7815
|
+
OUTPAINT = "OUTPAINT"
|
|
7761
7816
|
}
|
|
7762
7817
|
|
|
7763
7818
|
/** A reference image for video generation. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google/genai",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.mjs",
|
|
@@ -61,6 +61,9 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=20.0.0"
|
|
63
63
|
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"tmp": "^0.2.4"
|
|
66
|
+
},
|
|
64
67
|
"files": [
|
|
65
68
|
"dist/genai.d.ts",
|
|
66
69
|
"dist/index.mjs",
|