@google/genai 2.10.0 → 2.12.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.
@@ -255,7 +255,7 @@ var PhishBlockThreshold;
255
255
  */
256
256
  PhishBlockThreshold["BLOCK_ONLY_EXTREMELY_HIGH"] = "BLOCK_ONLY_EXTREMELY_HIGH";
257
257
  })(PhishBlockThreshold || (PhishBlockThreshold = {}));
258
- /** Specifies the function Behavior. Currently only non-blocking functions are supported. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
258
+ /** Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. */
259
259
  var Behavior;
260
260
  (function (Behavior) {
261
261
  /**
@@ -769,6 +769,110 @@ var Modality;
769
769
  */
770
770
  Modality["VIDEO"] = "VIDEO";
771
771
  })(Modality || (Modality = {}));
772
+ /** Delivery mode for the generated content. */
773
+ var Delivery;
774
+ (function (Delivery) {
775
+ /**
776
+ * Default value. This value is unused.
777
+ */
778
+ Delivery["DELIVERY_UNSPECIFIED"] = "DELIVERY_UNSPECIFIED";
779
+ /**
780
+ * Generated bytes are returned inline in the response.
781
+ */
782
+ Delivery["INLINE"] = "INLINE";
783
+ /**
784
+ * Generated content is stored and a URI is returned.
785
+ */
786
+ Delivery["URI"] = "URI";
787
+ })(Delivery || (Delivery = {}));
788
+ /** The aspect ratio for the image output. */
789
+ var AspectRatio;
790
+ (function (AspectRatio) {
791
+ /**
792
+ * Default value. This value is unused.
793
+ */
794
+ AspectRatio["ASPECT_RATIO_UNSPECIFIED"] = "ASPECT_RATIO_UNSPECIFIED";
795
+ /**
796
+ * 1:1 aspect ratio.
797
+ */
798
+ AspectRatio["ASPECT_RATIO_ONE_BY_ONE"] = "ASPECT_RATIO_ONE_BY_ONE";
799
+ /**
800
+ * 2:3 aspect ratio.
801
+ */
802
+ AspectRatio["ASPECT_RATIO_TWO_BY_THREE"] = "ASPECT_RATIO_TWO_BY_THREE";
803
+ /**
804
+ * 3:2 aspect ratio.
805
+ */
806
+ AspectRatio["ASPECT_RATIO_THREE_BY_TWO"] = "ASPECT_RATIO_THREE_BY_TWO";
807
+ /**
808
+ * 3:4 aspect ratio.
809
+ */
810
+ AspectRatio["ASPECT_RATIO_THREE_BY_FOUR"] = "ASPECT_RATIO_THREE_BY_FOUR";
811
+ /**
812
+ * 4:3 aspect ratio.
813
+ */
814
+ AspectRatio["ASPECT_RATIO_FOUR_BY_THREE"] = "ASPECT_RATIO_FOUR_BY_THREE";
815
+ /**
816
+ * 4:5 aspect ratio.
817
+ */
818
+ AspectRatio["ASPECT_RATIO_FOUR_BY_FIVE"] = "ASPECT_RATIO_FOUR_BY_FIVE";
819
+ /**
820
+ * 5:4 aspect ratio.
821
+ */
822
+ AspectRatio["ASPECT_RATIO_FIVE_BY_FOUR"] = "ASPECT_RATIO_FIVE_BY_FOUR";
823
+ /**
824
+ * 9:16 aspect ratio.
825
+ */
826
+ AspectRatio["ASPECT_RATIO_NINE_BY_SIXTEEN"] = "ASPECT_RATIO_NINE_BY_SIXTEEN";
827
+ /**
828
+ * 16:9 aspect ratio.
829
+ */
830
+ AspectRatio["ASPECT_RATIO_SIXTEEN_BY_NINE"] = "ASPECT_RATIO_SIXTEEN_BY_NINE";
831
+ /**
832
+ * 21:9 aspect ratio.
833
+ */
834
+ AspectRatio["ASPECT_RATIO_TWENTY_ONE_BY_NINE"] = "ASPECT_RATIO_TWENTY_ONE_BY_NINE";
835
+ /**
836
+ * 1:8 aspect ratio.
837
+ */
838
+ AspectRatio["ASPECT_RATIO_ONE_BY_EIGHT"] = "ASPECT_RATIO_ONE_BY_EIGHT";
839
+ /**
840
+ * 8:1 aspect ratio.
841
+ */
842
+ AspectRatio["ASPECT_RATIO_EIGHT_BY_ONE"] = "ASPECT_RATIO_EIGHT_BY_ONE";
843
+ /**
844
+ * 1:4 aspect ratio.
845
+ */
846
+ AspectRatio["ASPECT_RATIO_ONE_BY_FOUR"] = "ASPECT_RATIO_ONE_BY_FOUR";
847
+ /**
848
+ * 4:1 aspect ratio.
849
+ */
850
+ AspectRatio["ASPECT_RATIO_FOUR_BY_ONE"] = "ASPECT_RATIO_FOUR_BY_ONE";
851
+ })(AspectRatio || (AspectRatio = {}));
852
+ /** The size of the image output. */
853
+ var ImageSize;
854
+ (function (ImageSize) {
855
+ /**
856
+ * Default value. This value is unused.
857
+ */
858
+ ImageSize["IMAGE_SIZE_UNSPECIFIED"] = "IMAGE_SIZE_UNSPECIFIED";
859
+ /**
860
+ * 512px image size.
861
+ */
862
+ ImageSize["IMAGE_SIZE_FIVE_TWELVE"] = "IMAGE_SIZE_FIVE_TWELVE";
863
+ /**
864
+ * 1K image size.
865
+ */
866
+ ImageSize["IMAGE_SIZE_ONE_K"] = "IMAGE_SIZE_ONE_K";
867
+ /**
868
+ * 2K image size.
869
+ */
870
+ ImageSize["IMAGE_SIZE_TWO_K"] = "IMAGE_SIZE_TWO_K";
871
+ /**
872
+ * 4K image size.
873
+ */
874
+ ImageSize["IMAGE_SIZE_FOUR_K"] = "IMAGE_SIZE_FOUR_K";
875
+ })(ImageSize || (ImageSize = {}));
772
876
  /** Tuning mode. This enum is not supported in Gemini API. */
773
877
  var TuningMode;
774
878
  (function (TuningMode) {
@@ -817,6 +921,58 @@ var AdapterSize;
817
921
  */
818
922
  AdapterSize["ADAPTER_SIZE_THIRTY_TWO"] = "ADAPTER_SIZE_THIRTY_TWO";
819
923
  })(AdapterSize || (AdapterSize = {}));
924
+ /** Defines the type for parsing sample response. This enum is not supported in Gemini API. */
925
+ var ResponseParseType;
926
+ (function (ResponseParseType) {
927
+ /**
928
+ * Default value. Fallback to IDENTITY
929
+ */
930
+ ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
931
+ /**
932
+ * Returns the sample response as is.
933
+ */
934
+ ResponseParseType["IDENTITY"] = "IDENTITY";
935
+ /**
936
+ * Uses regex to extract the important part of sample response. Similar to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_extract) `REGEX_EXTRACT(response, regex_extract_expression)`, but different in that if there are multiple matches, the last match will be returned.
937
+ */
938
+ ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
939
+ })(ResponseParseType || (ResponseParseType = {}));
940
+ /** Match operation to use for evaluating rewards. This enum is not supported in Gemini API. */
941
+ var MatchOperation;
942
+ (function (MatchOperation) {
943
+ /**
944
+ * Default value. A user error will be returned if not set.
945
+ */
946
+ MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
947
+ /**
948
+ * Equivalent to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_contains) `REGEX_CONTAINS(target, expression)`.
949
+ */
950
+ MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
951
+ /**
952
+ * The match operation returns `true` if expression is a substring of the target.
953
+ */
954
+ MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
955
+ /**
956
+ * The match operation returns `true` expression is an exact match of the target.
957
+ */
958
+ MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
959
+ })(MatchOperation || (MatchOperation = {}));
960
+ /** Represents how much to think for the tuning job. */
961
+ var ReinforcementTuningThinkingLevel;
962
+ (function (ReinforcementTuningThinkingLevel) {
963
+ /**
964
+ * Unspecified thinking level.
965
+ */
966
+ ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
967
+ /**
968
+ * Little to no thinking.
969
+ */
970
+ ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
971
+ /**
972
+ * High thinking level.
973
+ */
974
+ ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
975
+ })(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
820
976
  /** Job state. */
821
977
  var JobState;
822
978
  (function (JobState) {
@@ -1301,58 +1457,6 @@ var ImageResizeMode;
1301
1457
  */
1302
1458
  ImageResizeMode["PAD"] = "PAD";
1303
1459
  })(ImageResizeMode || (ImageResizeMode = {}));
1304
- /** Defines how to parse sample response. */
1305
- var ResponseParseType;
1306
- (function (ResponseParseType) {
1307
- /**
1308
- * Default value. This value is unused.
1309
- */
1310
- ResponseParseType["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
1311
- /**
1312
- * Use the sample response as is.
1313
- */
1314
- ResponseParseType["IDENTITY"] = "IDENTITY";
1315
- /**
1316
- * Use regex to extract the important part of sample response.
1317
- */
1318
- ResponseParseType["REGEX_EXTRACT"] = "REGEX_EXTRACT";
1319
- })(ResponseParseType || (ResponseParseType = {}));
1320
- /** Match operation to use for evaluation. */
1321
- var MatchOperation;
1322
- (function (MatchOperation) {
1323
- /**
1324
- * Default value. This value is unused.
1325
- */
1326
- MatchOperation["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
1327
- /**
1328
- * Equivalent to GoogleSQL `REGEX_CONTAINS(target, expression)`.
1329
- */
1330
- MatchOperation["REGEX_CONTAINS"] = "REGEX_CONTAINS";
1331
- /**
1332
- * `expression` is a substring of target.
1333
- */
1334
- MatchOperation["PARTIAL_MATCH"] = "PARTIAL_MATCH";
1335
- /**
1336
- * `expression` is an exact match of target.
1337
- */
1338
- MatchOperation["EXACT_MATCH"] = "EXACT_MATCH";
1339
- })(MatchOperation || (MatchOperation = {}));
1340
- /** Represents how much to think for the tuning job. */
1341
- var ReinforcementTuningThinkingLevel;
1342
- (function (ReinforcementTuningThinkingLevel) {
1343
- /**
1344
- * Unspecified thinking level.
1345
- */
1346
- ReinforcementTuningThinkingLevel["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
1347
- /**
1348
- * Little to no thinking.
1349
- */
1350
- ReinforcementTuningThinkingLevel["MINIMAL"] = "MINIMAL";
1351
- /**
1352
- * High thinking level.
1353
- */
1354
- ReinforcementTuningThinkingLevel["HIGH"] = "HIGH";
1355
- })(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
1356
1460
  /** Enum representing the tuning method. */
1357
1461
  var TuningMethod;
1358
1462
  (function (TuningMethod) {