@google/genai 2.12.0 → 2.13.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.
@@ -8171,6 +8171,12 @@ function audioTranscriptionConfigToMldev$1(fromObject) {
8171
8171
  if (fromLanguageHints != null) {
8172
8172
  setValueByPath(toObject, ['languageHints'], fromLanguageHints);
8173
8173
  }
8174
+ const fromCustomVocabulary = getValueByPath(fromObject, [
8175
+ 'customVocabulary',
8176
+ ]);
8177
+ if (fromCustomVocabulary != null) {
8178
+ setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
8179
+ }
8174
8180
  const fromAdaptationPhrases = getValueByPath(fromObject, [
8175
8181
  'adaptationPhrases',
8176
8182
  ]);
@@ -13510,7 +13516,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
13510
13516
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
13511
13517
  const USER_AGENT_HEADER = 'User-Agent';
13512
13518
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
13513
- const SDK_VERSION = '2.12.0'; // x-release-please-version
13519
+ const SDK_VERSION = '2.13.0'; // x-release-please-version
13514
13520
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
13515
13521
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
13516
13522
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -16897,6 +16903,12 @@ function audioTranscriptionConfigToMldev(fromObject) {
16897
16903
  if (fromLanguageHints != null) {
16898
16904
  setValueByPath(toObject, ['languageHints'], fromLanguageHints);
16899
16905
  }
16906
+ const fromCustomVocabulary = getValueByPath(fromObject, [
16907
+ 'customVocabulary',
16908
+ ]);
16909
+ if (fromCustomVocabulary != null) {
16910
+ setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
16911
+ }
16900
16912
  const fromAdaptationPhrases = getValueByPath(fromObject, [
16901
16913
  'adaptationPhrases',
16902
16914
  ]);
@@ -18882,7 +18894,7 @@ function serverURLFromOptions(options) {
18882
18894
  return new URL(u);
18883
18895
  }
18884
18896
  const SDK_METADATA = {
18885
- userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.913.3 v1beta @google/genai",
18897
+ userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.918.3 v1beta @google/genai",
18886
18898
  };
18887
18899
 
18888
18900
  /**
@@ -19183,10 +19195,10 @@ const DEFAULT_FETCHER = (input, init) => {
19183
19195
  };
19184
19196
  class HTTPClient {
19185
19197
  constructor(options = {}) {
19186
- this.options = options;
19187
19198
  this.requestHooks = [];
19188
19199
  this.requestErrorHooks = [];
19189
19200
  this.responseHooks = [];
19201
+ this.options = options;
19190
19202
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
19191
19203
  }
19192
19204
  async request(request) {
@@ -20290,11 +20302,10 @@ function unpackHeaders(headers) {
20290
20302
  *
20291
20303
  * g3-prettier-ignore-file
20292
20304
  */
20293
- var SecurityErrorCode;
20294
- (function (SecurityErrorCode) {
20295
- SecurityErrorCode["Incomplete"] = "incomplete";
20296
- SecurityErrorCode["UnrecognisedSecurityType"] = "unrecognized_security_type";
20297
- })(SecurityErrorCode || (SecurityErrorCode = {}));
20305
+ const SecurityErrorCode = {
20306
+ Incomplete: "incomplete",
20307
+ UnrecognisedSecurityType: "unrecognized_security_type",
20308
+ };
20298
20309
  class SecurityError extends Error {
20299
20310
  constructor(code, message) {
20300
20311
  super(message);