@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.
@@ -8201,6 +8201,12 @@ function audioTranscriptionConfigToMldev$1(fromObject) {
8201
8201
  if (fromLanguageHints != null) {
8202
8202
  setValueByPath(toObject, ['languageHints'], fromLanguageHints);
8203
8203
  }
8204
+ const fromCustomVocabulary = getValueByPath(fromObject, [
8205
+ 'customVocabulary',
8206
+ ]);
8207
+ if (fromCustomVocabulary != null) {
8208
+ setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
8209
+ }
8204
8210
  const fromAdaptationPhrases = getValueByPath(fromObject, [
8205
8211
  'adaptationPhrases',
8206
8212
  ]);
@@ -13540,7 +13546,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
13540
13546
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
13541
13547
  const USER_AGENT_HEADER = 'User-Agent';
13542
13548
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
13543
- const SDK_VERSION = '2.12.0'; // x-release-please-version
13549
+ const SDK_VERSION = '2.13.0'; // x-release-please-version
13544
13550
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
13545
13551
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
13546
13552
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -16927,6 +16933,12 @@ function audioTranscriptionConfigToMldev(fromObject) {
16927
16933
  if (fromLanguageHints != null) {
16928
16934
  setValueByPath(toObject, ['languageHints'], fromLanguageHints);
16929
16935
  }
16936
+ const fromCustomVocabulary = getValueByPath(fromObject, [
16937
+ 'customVocabulary',
16938
+ ]);
16939
+ if (fromCustomVocabulary != null) {
16940
+ setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
16941
+ }
16930
16942
  const fromAdaptationPhrases = getValueByPath(fromObject, [
16931
16943
  'adaptationPhrases',
16932
16944
  ]);
@@ -18912,7 +18924,7 @@ function serverURLFromOptions(options) {
18912
18924
  return new URL(u);
18913
18925
  }
18914
18926
  const SDK_METADATA = {
18915
- userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.913.3 v1beta @google/genai",
18927
+ userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.918.3 v1beta @google/genai",
18916
18928
  };
18917
18929
 
18918
18930
  /**
@@ -19213,10 +19225,10 @@ const DEFAULT_FETCHER = (input, init) => {
19213
19225
  };
19214
19226
  class HTTPClient {
19215
19227
  constructor(options = {}) {
19216
- this.options = options;
19217
19228
  this.requestHooks = [];
19218
19229
  this.requestErrorHooks = [];
19219
19230
  this.responseHooks = [];
19231
+ this.options = options;
19220
19232
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
19221
19233
  }
19222
19234
  async request(request) {
@@ -20320,11 +20332,10 @@ function unpackHeaders(headers) {
20320
20332
  *
20321
20333
  * g3-prettier-ignore-file
20322
20334
  */
20323
- var SecurityErrorCode;
20324
- (function (SecurityErrorCode) {
20325
- SecurityErrorCode["Incomplete"] = "incomplete";
20326
- SecurityErrorCode["UnrecognisedSecurityType"] = "unrecognized_security_type";
20327
- })(SecurityErrorCode || (SecurityErrorCode = {}));
20335
+ const SecurityErrorCode = {
20336
+ Incomplete: "incomplete",
20337
+ UnrecognisedSecurityType: "unrecognized_security_type",
20338
+ };
20328
20339
  class SecurityError extends Error {
20329
20340
  constructor(code, message) {
20330
20341
  super(message);
@@ -8179,6 +8179,12 @@ function audioTranscriptionConfigToMldev$1(fromObject) {
8179
8179
  if (fromLanguageHints != null) {
8180
8180
  setValueByPath(toObject, ['languageHints'], fromLanguageHints);
8181
8181
  }
8182
+ const fromCustomVocabulary = getValueByPath(fromObject, [
8183
+ 'customVocabulary',
8184
+ ]);
8185
+ if (fromCustomVocabulary != null) {
8186
+ setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
8187
+ }
8182
8188
  const fromAdaptationPhrases = getValueByPath(fromObject, [
8183
8189
  'adaptationPhrases',
8184
8190
  ]);
@@ -13518,7 +13524,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
13518
13524
  const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
13519
13525
  const USER_AGENT_HEADER = 'User-Agent';
13520
13526
  const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
13521
- const SDK_VERSION = '2.12.0'; // x-release-please-version
13527
+ const SDK_VERSION = '2.13.0'; // x-release-please-version
13522
13528
  const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
13523
13529
  const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
13524
13530
  const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
@@ -16905,6 +16911,12 @@ function audioTranscriptionConfigToMldev(fromObject) {
16905
16911
  if (fromLanguageHints != null) {
16906
16912
  setValueByPath(toObject, ['languageHints'], fromLanguageHints);
16907
16913
  }
16914
+ const fromCustomVocabulary = getValueByPath(fromObject, [
16915
+ 'customVocabulary',
16916
+ ]);
16917
+ if (fromCustomVocabulary != null) {
16918
+ setValueByPath(toObject, ['customVocabulary'], fromCustomVocabulary);
16919
+ }
16908
16920
  const fromAdaptationPhrases = getValueByPath(fromObject, [
16909
16921
  'adaptationPhrases',
16910
16922
  ]);
@@ -18890,7 +18902,7 @@ function serverURLFromOptions(options) {
18890
18902
  return new URL(u);
18891
18903
  }
18892
18904
  const SDK_METADATA = {
18893
- userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.913.3 v1beta @google/genai",
18905
+ userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.918.3 v1beta @google/genai",
18894
18906
  };
18895
18907
 
18896
18908
  /**
@@ -19191,10 +19203,10 @@ const DEFAULT_FETCHER = (input, init) => {
19191
19203
  };
19192
19204
  class HTTPClient {
19193
19205
  constructor(options = {}) {
19194
- this.options = options;
19195
19206
  this.requestHooks = [];
19196
19207
  this.requestErrorHooks = [];
19197
19208
  this.responseHooks = [];
19209
+ this.options = options;
19198
19210
  this.fetcher = options.fetcher || DEFAULT_FETCHER;
19199
19211
  }
19200
19212
  async request(request) {
@@ -20298,11 +20310,10 @@ function unpackHeaders(headers) {
20298
20310
  *
20299
20311
  * g3-prettier-ignore-file
20300
20312
  */
20301
- var SecurityErrorCode;
20302
- (function (SecurityErrorCode) {
20303
- SecurityErrorCode["Incomplete"] = "incomplete";
20304
- SecurityErrorCode["UnrecognisedSecurityType"] = "unrecognized_security_type";
20305
- })(SecurityErrorCode || (SecurityErrorCode = {}));
20313
+ const SecurityErrorCode = {
20314
+ Incomplete: "incomplete",
20315
+ UnrecognisedSecurityType: "unrecognized_security_type",
20316
+ };
20306
20317
  class SecurityError extends Error {
20307
20318
  constructor(code, message) {
20308
20319
  super(message);