pagegraph 0.13.0 → 0.14.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.
Files changed (80) hide show
  1. package/README.md +48 -41
  2. package/dist/anthropic-messages-TqKpKmfW.js +1067 -0
  3. package/dist/anthropic-messages-TqKpKmfW.js.map +1 -0
  4. package/dist/audit.d.ts +2 -0
  5. package/dist/audit.js +1 -1
  6. package/dist/audit.js.map +1 -1
  7. package/dist/azure-openai-responses-DJjBLwoI.js +231 -0
  8. package/dist/azure-openai-responses-DJjBLwoI.js.map +1 -0
  9. package/dist/cli.js +10487 -38044
  10. package/dist/cli.js.map +1 -1
  11. package/dist/cloudflare-workers-ai-system-one-f3ZrvNYZ.js +41 -0
  12. package/dist/cloudflare-workers-ai-system-one-f3ZrvNYZ.js.map +1 -0
  13. package/dist/config.d.ts +6 -6
  14. package/dist/config.js.map +1 -1
  15. package/dist/diagnostics-Wt5faNDM.js +108 -0
  16. package/dist/diagnostics-Wt5faNDM.js.map +1 -0
  17. package/dist/dist-B6zg_Z3Z.js +4794 -0
  18. package/dist/dist-B6zg_Z3Z.js.map +1 -0
  19. package/dist/env-api-keys-C-OA0yM-.js +124 -0
  20. package/dist/env-api-keys-C-OA0yM-.js.map +1 -0
  21. package/dist/error-body-CyiejW4b.js +103 -0
  22. package/dist/error-body-CyiejW4b.js.map +1 -0
  23. package/dist/github-copilot-headers-CEpMOpQF.js +24 -0
  24. package/dist/github-copilot-headers-CEpMOpQF.js.map +1 -0
  25. package/dist/google-generative-ai-BxABKIKO.js +330 -0
  26. package/dist/google-generative-ai-BxABKIKO.js.map +1 -0
  27. package/dist/google-shared-0gpM2jFi.js +19471 -0
  28. package/dist/google-shared-0gpM2jFi.js.map +1 -0
  29. package/dist/google-vertex-D8Eb5cbu.js +376 -0
  30. package/dist/google-vertex-D8Eb5cbu.js.map +1 -0
  31. package/dist/hash-Dp7EzZUo.js +18 -0
  32. package/dist/hash-Dp7EzZUo.js.map +1 -0
  33. package/dist/headers-BRNMVpzu.js +19 -0
  34. package/dist/headers-BRNMVpzu.js.map +1 -0
  35. package/dist/json-parse-C10znB7l.js +383 -0
  36. package/dist/json-parse-C10znB7l.js.map +1 -0
  37. package/dist/mistral-conversations-CvaqBWjR.js +690 -0
  38. package/dist/mistral-conversations-CvaqBWjR.js.map +1 -0
  39. package/dist/models-DcT5qOEL.js +1203 -0
  40. package/dist/models-DcT5qOEL.js.map +1 -0
  41. package/dist/node-Ccvru9GE.js +26 -0
  42. package/dist/node-Ccvru9GE.js.map +1 -0
  43. package/dist/node-MEosBOF2.js +2403 -0
  44. package/dist/node-MEosBOF2.js.map +1 -0
  45. package/dist/openai-BCBEd2eO.js +17350 -0
  46. package/dist/openai-BCBEd2eO.js.map +1 -0
  47. package/dist/openai-codex-responses-vJqxeeRC.js +1268 -0
  48. package/dist/openai-codex-responses-vJqxeeRC.js.map +1 -0
  49. package/dist/openai-completions-Cb_fRAbI.js +989 -0
  50. package/dist/openai-completions-Cb_fRAbI.js.map +1 -0
  51. package/dist/openai-prompt-cache-Bc6qNWt0.js +10 -0
  52. package/dist/openai-prompt-cache-Bc6qNWt0.js.map +1 -0
  53. package/dist/openai-responses-sDuh82G5.js +268 -0
  54. package/dist/openai-responses-sDuh82G5.js.map +1 -0
  55. package/dist/openai-responses-shared-mhuo1Jov.js +599 -0
  56. package/dist/openai-responses-shared-mhuo1Jov.js.map +1 -0
  57. package/dist/openrouter-images-CRmBkzpX.js +127 -0
  58. package/dist/openrouter-images-CRmBkzpX.js.map +1 -0
  59. package/dist/pi-Bvw6J0gh.js +56795 -0
  60. package/dist/pi-Bvw6J0gh.js.map +1 -0
  61. package/dist/pi-messages-CejiVYvO.js +308 -0
  62. package/dist/pi-messages-CejiVYvO.js.map +1 -0
  63. package/dist/provider-env-t38GK5FF.js +39 -0
  64. package/dist/provider-env-t38GK5FF.js.map +1 -0
  65. package/dist/provider-retry-DzKoh1X7.js +80 -0
  66. package/dist/provider-retry-DzKoh1X7.js.map +1 -0
  67. package/dist/rolldown-runtime-B-lAHAz2.js +37 -0
  68. package/dist/sanitize-unicode-Ds14l9Om.js +28 -0
  69. package/dist/sanitize-unicode-Ds14l9Om.js.map +1 -0
  70. package/dist/sdk-C9_wiO6w.js +12503 -0
  71. package/dist/sdk-C9_wiO6w.js.map +1 -0
  72. package/dist/state-BuJP_3Lr.js +28102 -0
  73. package/dist/state-BuJP_3Lr.js.map +1 -0
  74. package/dist/system-one-shared-Dl10ZF7Z.js +167 -0
  75. package/dist/system-one-shared-Dl10ZF7Z.js.map +1 -0
  76. package/dist/transform-messages-BLJ8EfK6.js +468 -0
  77. package/dist/transform-messages-BLJ8EfK6.js.map +1 -0
  78. package/dist/typesafe-system-one-CwEWMV8P.js +25 -0
  79. package/dist/typesafe-system-one-CwEWMV8P.js.map +1 -0
  80. package/package.json +4 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-shared-0gpM2jFi.js","names":["valueAsRecord","op","inlineResponsesObj","responseItemObj","responseObj","error","pRetry","resp","callableTool","GoogleSdkThinkingLevel","_exhaustive"],"sources":["../node_modules/retry/lib/retry_operation.js","../node_modules/retry/lib/retry.js","../node_modules/retry/index.js","../node_modules/p-retry/index.js","../node_modules/@google/genai/dist/index.mjs","../node_modules/@earendil-works/pi-ai/dist/api/google-shared.js"],"sourcesContent":["function RetryOperation(timeouts, options) {\n // Compatibility for the old (timeouts, retryForever) signature\n if (typeof options === 'boolean') {\n options = { forever: options };\n }\n\n this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));\n this._timeouts = timeouts;\n this._options = options || {};\n this._maxRetryTime = options && options.maxRetryTime || Infinity;\n this._fn = null;\n this._errors = [];\n this._attempts = 1;\n this._operationTimeout = null;\n this._operationTimeoutCb = null;\n this._timeout = null;\n this._operationStart = null;\n this._timer = null;\n\n if (this._options.forever) {\n this._cachedTimeouts = this._timeouts.slice(0);\n }\n}\nmodule.exports = RetryOperation;\n\nRetryOperation.prototype.reset = function() {\n this._attempts = 1;\n this._timeouts = this._originalTimeouts.slice(0);\n}\n\nRetryOperation.prototype.stop = function() {\n if (this._timeout) {\n clearTimeout(this._timeout);\n }\n if (this._timer) {\n clearTimeout(this._timer);\n }\n\n this._timeouts = [];\n this._cachedTimeouts = null;\n};\n\nRetryOperation.prototype.retry = function(err) {\n if (this._timeout) {\n clearTimeout(this._timeout);\n }\n\n if (!err) {\n return false;\n }\n var currentTime = new Date().getTime();\n if (err && currentTime - this._operationStart >= this._maxRetryTime) {\n this._errors.push(err);\n this._errors.unshift(new Error('RetryOperation timeout occurred'));\n return false;\n }\n\n this._errors.push(err);\n\n var timeout = this._timeouts.shift();\n if (timeout === undefined) {\n if (this._cachedTimeouts) {\n // retry forever, only keep last error\n this._errors.splice(0, this._errors.length - 1);\n timeout = this._cachedTimeouts.slice(-1);\n } else {\n return false;\n }\n }\n\n var self = this;\n this._timer = setTimeout(function() {\n self._attempts++;\n\n if (self._operationTimeoutCb) {\n self._timeout = setTimeout(function() {\n self._operationTimeoutCb(self._attempts);\n }, self._operationTimeout);\n\n if (self._options.unref) {\n self._timeout.unref();\n }\n }\n\n self._fn(self._attempts);\n }, timeout);\n\n if (this._options.unref) {\n this._timer.unref();\n }\n\n return true;\n};\n\nRetryOperation.prototype.attempt = function(fn, timeoutOps) {\n this._fn = fn;\n\n if (timeoutOps) {\n if (timeoutOps.timeout) {\n this._operationTimeout = timeoutOps.timeout;\n }\n if (timeoutOps.cb) {\n this._operationTimeoutCb = timeoutOps.cb;\n }\n }\n\n var self = this;\n if (this._operationTimeoutCb) {\n this._timeout = setTimeout(function() {\n self._operationTimeoutCb();\n }, self._operationTimeout);\n }\n\n this._operationStart = new Date().getTime();\n\n this._fn(this._attempts);\n};\n\nRetryOperation.prototype.try = function(fn) {\n console.log('Using RetryOperation.try() is deprecated');\n this.attempt(fn);\n};\n\nRetryOperation.prototype.start = function(fn) {\n console.log('Using RetryOperation.start() is deprecated');\n this.attempt(fn);\n};\n\nRetryOperation.prototype.start = RetryOperation.prototype.try;\n\nRetryOperation.prototype.errors = function() {\n return this._errors;\n};\n\nRetryOperation.prototype.attempts = function() {\n return this._attempts;\n};\n\nRetryOperation.prototype.mainError = function() {\n if (this._errors.length === 0) {\n return null;\n }\n\n var counts = {};\n var mainError = null;\n var mainErrorCount = 0;\n\n for (var i = 0; i < this._errors.length; i++) {\n var error = this._errors[i];\n var message = error.message;\n var count = (counts[message] || 0) + 1;\n\n counts[message] = count;\n\n if (count >= mainErrorCount) {\n mainError = error;\n mainErrorCount = count;\n }\n }\n\n return mainError;\n};\n","var RetryOperation = require('./retry_operation');\n\nexports.operation = function(options) {\n var timeouts = exports.timeouts(options);\n return new RetryOperation(timeouts, {\n forever: options && (options.forever || options.retries === Infinity),\n unref: options && options.unref,\n maxRetryTime: options && options.maxRetryTime\n });\n};\n\nexports.timeouts = function(options) {\n if (options instanceof Array) {\n return [].concat(options);\n }\n\n var opts = {\n retries: 10,\n factor: 2,\n minTimeout: 1 * 1000,\n maxTimeout: Infinity,\n randomize: false\n };\n for (var key in options) {\n opts[key] = options[key];\n }\n\n if (opts.minTimeout > opts.maxTimeout) {\n throw new Error('minTimeout is greater than maxTimeout');\n }\n\n var timeouts = [];\n for (var i = 0; i < opts.retries; i++) {\n timeouts.push(this.createTimeout(i, opts));\n }\n\n if (options && options.forever && !timeouts.length) {\n timeouts.push(this.createTimeout(i, opts));\n }\n\n // sort the array numerically ascending\n timeouts.sort(function(a,b) {\n return a - b;\n });\n\n return timeouts;\n};\n\nexports.createTimeout = function(attempt, opts) {\n var random = (opts.randomize)\n ? (Math.random() + 1)\n : 1;\n\n var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt));\n timeout = Math.min(timeout, opts.maxTimeout);\n\n return timeout;\n};\n\nexports.wrap = function(obj, options, methods) {\n if (options instanceof Array) {\n methods = options;\n options = null;\n }\n\n if (!methods) {\n methods = [];\n for (var key in obj) {\n if (typeof obj[key] === 'function') {\n methods.push(key);\n }\n }\n }\n\n for (var i = 0; i < methods.length; i++) {\n var method = methods[i];\n var original = obj[method];\n\n obj[method] = function retryWrapper(original) {\n var op = exports.operation(options);\n var args = Array.prototype.slice.call(arguments, 1);\n var callback = args.pop();\n\n args.push(function(err) {\n if (op.retry(err)) {\n return;\n }\n if (err) {\n arguments[0] = op.mainError();\n }\n callback.apply(this, arguments);\n });\n\n op.attempt(function() {\n original.apply(obj, args);\n });\n }.bind(obj, original);\n obj[method].options = options;\n }\n};\n","module.exports = require('./lib/retry');","'use strict';\nconst retry = require('retry');\n\nconst networkErrorMsgs = [\n\t'Failed to fetch', // Chrome\n\t'NetworkError when attempting to fetch resource.', // Firefox\n\t'The Internet connection appears to be offline.', // Safari\n\t'Network request failed' // `cross-fetch`\n];\n\nclass AbortError extends Error {\n\tconstructor(message) {\n\t\tsuper();\n\n\t\tif (message instanceof Error) {\n\t\t\tthis.originalError = message;\n\t\t\t({message} = message);\n\t\t} else {\n\t\t\tthis.originalError = new Error(message);\n\t\t\tthis.originalError.stack = this.stack;\n\t\t}\n\n\t\tthis.name = 'AbortError';\n\t\tthis.message = message;\n\t}\n}\n\nconst decorateErrorWithCounts = (error, attemptNumber, options) => {\n\t// Minus 1 from attemptNumber because the first attempt does not count as a retry\n\tconst retriesLeft = options.retries - (attemptNumber - 1);\n\n\terror.attemptNumber = attemptNumber;\n\terror.retriesLeft = retriesLeft;\n\treturn error;\n};\n\nconst isNetworkError = errorMessage => networkErrorMsgs.includes(errorMessage);\n\nconst pRetry = (input, options) => new Promise((resolve, reject) => {\n\toptions = {\n\t\tonFailedAttempt: () => {},\n\t\tretries: 10,\n\t\t...options\n\t};\n\n\tconst operation = retry.operation(options);\n\n\toperation.attempt(async attemptNumber => {\n\t\ttry {\n\t\t\tresolve(await input(attemptNumber));\n\t\t} catch (error) {\n\t\t\tif (!(error instanceof Error)) {\n\t\t\t\treject(new TypeError(`Non-error was thrown: \"${error}\". You should only throw errors.`));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (error instanceof AbortError) {\n\t\t\t\toperation.stop();\n\t\t\t\treject(error.originalError);\n\t\t\t} else if (error instanceof TypeError && !isNetworkError(error.message)) {\n\t\t\t\toperation.stop();\n\t\t\t\treject(error);\n\t\t\t} else {\n\t\t\t\tdecorateErrorWithCounts(error, attemptNumber, options);\n\n\t\t\t\ttry {\n\t\t\t\t\tawait options.onFailedAttempt(error);\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (!operation.retry(error)) {\n\t\t\t\t\treject(operation.mainError());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n});\n\nmodule.exports = pRetry;\n// TODO: remove this in the next major version\nmodule.exports.default = pRetry;\n\nmodule.exports.AbortError = AbortError;\n","import pRetry from 'p-retry';\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Overrides the base URLs for the Gemini API and Vertex AI API.\n *\n * @remarks This function should be called before initializing the SDK. If the\n * base URLs are set after initializing the SDK, the base URLs will not be\n * updated. Base URLs provided in the HttpOptions will also take precedence over\n * URLs set here.\n *\n * @example\n * ```ts\n * import {GoogleGenAI, setDefaultBaseUrls} from '@google/genai';\n * // Override the base URL for the Gemini API.\n * setDefaultBaseUrls({geminiUrl:'https://gemini.google.com'});\n *\n * // Override the base URL for the Vertex AI API.\n * setDefaultBaseUrls({vertexUrl: 'https://vertexai.googleapis.com'});\n *\n * const ai = new GoogleGenAI({apiKey: 'GEMINI_API_KEY'});\n * ```\n */\nfunction setDefaultBaseUrls(baseUrlParams) {\n baseUrlParams.geminiUrl;\n baseUrlParams.vertexUrl;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass BaseModule {\n}\nfunction formatMap(templateString, valueMap) {\n // Use a regular expression to find all placeholders in the template string\n const regex = /\\{([^}]+)\\}/g;\n // Replace each placeholder with its corresponding value from the valueMap\n return templateString.replace(regex, (match, key) => {\n if (Object.prototype.hasOwnProperty.call(valueMap, key)) {\n const value = valueMap[key];\n // Convert the value to a string if it's not a string already\n return value !== undefined && value !== null ? String(value) : '';\n }\n else {\n // Handle missing keys\n throw new Error(`Key '${key}' not found in valueMap.`);\n }\n });\n}\nfunction setValueByPath(data, keys, value) {\n for (let i = 0; i < keys.length - 1; i++) {\n const key = keys[i];\n if (key.endsWith('[]')) {\n const keyName = key.slice(0, -2);\n if (!(keyName in data)) {\n if (Array.isArray(value)) {\n data[keyName] = Array.from({ length: value.length }, () => ({}));\n }\n else {\n throw new Error(`Value must be a list given an array path ${key}`);\n }\n }\n if (Array.isArray(data[keyName])) {\n const arrayData = data[keyName];\n if (Array.isArray(value)) {\n for (let j = 0; j < arrayData.length; j++) {\n const entry = arrayData[j];\n setValueByPath(entry, keys.slice(i + 1), value[j]);\n }\n }\n else {\n for (const d of arrayData) {\n setValueByPath(d, keys.slice(i + 1), value);\n }\n }\n }\n return;\n }\n else if (key.endsWith('[0]')) {\n const keyName = key.slice(0, -3);\n if (!(keyName in data)) {\n data[keyName] = [{}];\n }\n const arrayData = data[keyName];\n setValueByPath(arrayData[0], keys.slice(i + 1), value);\n return;\n }\n if (!data[key] || typeof data[key] !== 'object') {\n data[key] = {};\n }\n data = data[key];\n }\n const keyToSet = keys[keys.length - 1];\n const existingData = data[keyToSet];\n if (existingData !== undefined) {\n if (!value ||\n (typeof value === 'object' && Object.keys(value).length === 0)) {\n return;\n }\n if (value === existingData) {\n return;\n }\n if (typeof existingData === 'object' &&\n typeof value === 'object' &&\n existingData !== null &&\n value !== null) {\n Object.assign(existingData, value);\n }\n else {\n throw new Error(`Cannot set value for an existing key. Key: ${keyToSet}`);\n }\n }\n else {\n if (keyToSet === '_self' &&\n typeof value === 'object' &&\n value !== null &&\n !Array.isArray(value)) {\n const valueAsRecord = value;\n Object.assign(data, valueAsRecord);\n }\n else {\n data[keyToSet] = value;\n }\n }\n}\nfunction getValueByPath(data, keys, defaultValue = undefined) {\n try {\n if (keys.length === 1 && keys[0] === '_self') {\n return data;\n }\n for (let i = 0; i < keys.length; i++) {\n if (typeof data !== 'object' || data === null) {\n return defaultValue;\n }\n const key = keys[i];\n if (key.endsWith('[]')) {\n const keyName = key.slice(0, -2);\n if (keyName in data) {\n const arrayData = data[keyName];\n if (!Array.isArray(arrayData)) {\n return defaultValue;\n }\n return arrayData.map((d) => getValueByPath(d, keys.slice(i + 1), defaultValue));\n }\n else {\n return defaultValue;\n }\n }\n else {\n data = data[key];\n }\n }\n return data;\n }\n catch (error) {\n if (error instanceof TypeError) {\n return defaultValue;\n }\n throw error;\n }\n}\n/**\n * Moves values from source paths to destination paths.\n *\n * Examples:\n * moveValueByPath(\n * {'requests': [{'content': v1}, {'content': v2}]},\n * {'requests[].*': 'requests[].request.*'}\n * )\n * -> {'requests': [{'request': {'content': v1}}, {'request': {'content': v2}}]}\n */\nfunction moveValueByPath(data, paths) {\n for (const [sourcePath, destPath] of Object.entries(paths)) {\n const sourceKeys = sourcePath.split('.');\n const destKeys = destPath.split('.');\n // Determine keys to exclude from wildcard to avoid cyclic references\n const excludeKeys = new Set();\n let wildcardIdx = -1;\n for (let i = 0; i < sourceKeys.length; i++) {\n if (sourceKeys[i] === '*') {\n wildcardIdx = i;\n break;\n }\n }\n if (wildcardIdx !== -1 && destKeys.length > wildcardIdx) {\n // Extract the intermediate key between source and dest paths\n // Example: source=['requests[]', '*'], dest=['requests[]', 'request', '*']\n // We want to exclude 'request'\n for (let i = wildcardIdx; i < destKeys.length; i++) {\n const key = destKeys[i];\n if (key !== '*' && !key.endsWith('[]') && !key.endsWith('[0]')) {\n excludeKeys.add(key);\n }\n }\n }\n _moveValueRecursive(data, sourceKeys, destKeys, 0, excludeKeys);\n }\n}\n/**\n * Recursively moves values from source path to destination path.\n */\nfunction _moveValueRecursive(data, sourceKeys, destKeys, keyIdx, excludeKeys) {\n if (keyIdx >= sourceKeys.length) {\n return;\n }\n if (typeof data !== 'object' || data === null) {\n return;\n }\n const key = sourceKeys[keyIdx];\n if (key.endsWith('[]')) {\n const keyName = key.slice(0, -2);\n const dataRecord = data;\n if (keyName in dataRecord && Array.isArray(dataRecord[keyName])) {\n for (const item of dataRecord[keyName]) {\n _moveValueRecursive(item, sourceKeys, destKeys, keyIdx + 1, excludeKeys);\n }\n }\n }\n else if (key === '*') {\n // wildcard - move all fields\n if (typeof data === 'object' && data !== null && !Array.isArray(data)) {\n const dataRecord = data;\n const keysToMove = Object.keys(dataRecord).filter((k) => !k.startsWith('_') && !excludeKeys.has(k));\n const valuesToMove = {};\n for (const k of keysToMove) {\n valuesToMove[k] = dataRecord[k];\n }\n // Set values at destination\n for (const [k, v] of Object.entries(valuesToMove)) {\n const newDestKeys = [];\n for (const dk of destKeys.slice(keyIdx)) {\n if (dk === '*') {\n newDestKeys.push(k);\n }\n else {\n newDestKeys.push(dk);\n }\n }\n setValueByPath(dataRecord, newDestKeys, v);\n }\n for (const k of keysToMove) {\n delete dataRecord[k];\n }\n }\n }\n else {\n // Navigate to next level\n const dataRecord = data;\n if (key in dataRecord) {\n _moveValueRecursive(dataRecord[key], sourceKeys, destKeys, keyIdx + 1, excludeKeys);\n }\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction tBytes$1(fromBytes) {\n if (typeof fromBytes !== 'string') {\n throw new Error('fromImageBytes must be a string');\n }\n // TODO(b/389133914): Remove dummy bytes converter.\n return fromBytes;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Code generated by the Google Gen AI SDK generator DO NOT EDIT.\nfunction fetchPredictOperationParametersToVertex(fromObject) {\n const toObject = {};\n const fromOperationName = getValueByPath(fromObject, [\n 'operationName',\n ]);\n if (fromOperationName != null) {\n setValueByPath(toObject, ['operationName'], fromOperationName);\n }\n const fromResourceName = getValueByPath(fromObject, ['resourceName']);\n if (fromResourceName != null) {\n setValueByPath(toObject, ['_url', 'resourceName'], fromResourceName);\n }\n return toObject;\n}\nfunction generateVideosOperationFromMldev$1(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromResponse = getValueByPath(fromObject, [\n 'response',\n 'generateVideoResponse',\n ]);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], generateVideosResponseFromMldev$1(fromResponse));\n }\n return toObject;\n}\nfunction generateVideosOperationFromVertex$1(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromResponse = getValueByPath(fromObject, ['response']);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], generateVideosResponseFromVertex$1(fromResponse));\n }\n return toObject;\n}\nfunction generateVideosResponseFromMldev$1(fromObject) {\n const toObject = {};\n const fromGeneratedVideos = getValueByPath(fromObject, [\n 'generatedSamples',\n ]);\n if (fromGeneratedVideos != null) {\n let transformedList = fromGeneratedVideos;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedVideoFromMldev$1(item);\n });\n }\n setValueByPath(toObject, ['generatedVideos'], transformedList);\n }\n const fromRaiMediaFilteredCount = getValueByPath(fromObject, [\n 'raiMediaFilteredCount',\n ]);\n if (fromRaiMediaFilteredCount != null) {\n setValueByPath(toObject, ['raiMediaFilteredCount'], fromRaiMediaFilteredCount);\n }\n const fromRaiMediaFilteredReasons = getValueByPath(fromObject, [\n 'raiMediaFilteredReasons',\n ]);\n if (fromRaiMediaFilteredReasons != null) {\n setValueByPath(toObject, ['raiMediaFilteredReasons'], fromRaiMediaFilteredReasons);\n }\n return toObject;\n}\nfunction generateVideosResponseFromVertex$1(fromObject) {\n const toObject = {};\n const fromGeneratedVideos = getValueByPath(fromObject, ['videos']);\n if (fromGeneratedVideos != null) {\n let transformedList = fromGeneratedVideos;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedVideoFromVertex$1(item);\n });\n }\n setValueByPath(toObject, ['generatedVideos'], transformedList);\n }\n const fromRaiMediaFilteredCount = getValueByPath(fromObject, [\n 'raiMediaFilteredCount',\n ]);\n if (fromRaiMediaFilteredCount != null) {\n setValueByPath(toObject, ['raiMediaFilteredCount'], fromRaiMediaFilteredCount);\n }\n const fromRaiMediaFilteredReasons = getValueByPath(fromObject, [\n 'raiMediaFilteredReasons',\n ]);\n if (fromRaiMediaFilteredReasons != null) {\n setValueByPath(toObject, ['raiMediaFilteredReasons'], fromRaiMediaFilteredReasons);\n }\n return toObject;\n}\nfunction generatedVideoFromMldev$1(fromObject) {\n const toObject = {};\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['video'], videoFromMldev$1(fromVideo));\n }\n return toObject;\n}\nfunction generatedVideoFromVertex$1(fromObject) {\n const toObject = {};\n const fromVideo = getValueByPath(fromObject, ['_self']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['video'], videoFromVertex$1(fromVideo));\n }\n return toObject;\n}\nfunction getOperationParametersToMldev(fromObject) {\n const toObject = {};\n const fromOperationName = getValueByPath(fromObject, [\n 'operationName',\n ]);\n if (fromOperationName != null) {\n setValueByPath(toObject, ['_url', 'operationName'], fromOperationName);\n }\n return toObject;\n}\nfunction getOperationParametersToVertex(fromObject) {\n const toObject = {};\n const fromOperationName = getValueByPath(fromObject, [\n 'operationName',\n ]);\n if (fromOperationName != null) {\n setValueByPath(toObject, ['_url', 'operationName'], fromOperationName);\n }\n return toObject;\n}\nfunction importFileOperationFromMldev$1(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromResponse = getValueByPath(fromObject, ['response']);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], importFileResponseFromMldev$1(fromResponse));\n }\n return toObject;\n}\nfunction importFileResponseFromMldev$1(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromParent = getValueByPath(fromObject, ['parent']);\n if (fromParent != null) {\n setValueByPath(toObject, ['parent'], fromParent);\n }\n const fromDocumentName = getValueByPath(fromObject, ['documentName']);\n if (fromDocumentName != null) {\n setValueByPath(toObject, ['documentName'], fromDocumentName);\n }\n return toObject;\n}\nfunction uploadToFileSearchStoreOperationFromMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromResponse = getValueByPath(fromObject, ['response']);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], uploadToFileSearchStoreResponseFromMldev(fromResponse));\n }\n return toObject;\n}\nfunction uploadToFileSearchStoreResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromParent = getValueByPath(fromObject, ['parent']);\n if (fromParent != null) {\n setValueByPath(toObject, ['parent'], fromParent);\n }\n const fromDocumentName = getValueByPath(fromObject, ['documentName']);\n if (fromDocumentName != null) {\n setValueByPath(toObject, ['documentName'], fromDocumentName);\n }\n return toObject;\n}\nfunction videoFromMldev$1(fromObject) {\n const toObject = {};\n const fromUri = getValueByPath(fromObject, ['uri']);\n if (fromUri != null) {\n setValueByPath(toObject, ['uri'], fromUri);\n }\n const fromVideoBytes = getValueByPath(fromObject, ['encodedVideo']);\n if (fromVideoBytes != null) {\n setValueByPath(toObject, ['videoBytes'], tBytes$1(fromVideoBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['encoding']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction videoFromVertex$1(fromObject) {\n const toObject = {};\n const fromUri = getValueByPath(fromObject, ['gcsUri']);\n if (fromUri != null) {\n setValueByPath(toObject, ['uri'], fromUri);\n }\n const fromVideoBytes = getValueByPath(fromObject, [\n 'bytesBase64Encoded',\n ]);\n if (fromVideoBytes != null) {\n setValueByPath(toObject, ['videoBytes'], tBytes$1(fromVideoBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/** Outcome of the code execution. */\nvar Outcome;\n(function (Outcome) {\n /**\n * Unspecified status. This value should not be used.\n */\n Outcome[\"OUTCOME_UNSPECIFIED\"] = \"OUTCOME_UNSPECIFIED\";\n /**\n * Code execution completed successfully. `output` contains the stdout, if any.\n */\n Outcome[\"OUTCOME_OK\"] = \"OUTCOME_OK\";\n /**\n * Code execution failed. `output` contains the stderr and stdout, if any.\n */\n Outcome[\"OUTCOME_FAILED\"] = \"OUTCOME_FAILED\";\n /**\n * Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.\n */\n Outcome[\"OUTCOME_DEADLINE_EXCEEDED\"] = \"OUTCOME_DEADLINE_EXCEEDED\";\n})(Outcome || (Outcome = {}));\n/** Programming language of the `code`. */\nvar Language;\n(function (Language) {\n /**\n * Unspecified language. This value should not be used.\n */\n Language[\"LANGUAGE_UNSPECIFIED\"] = \"LANGUAGE_UNSPECIFIED\";\n /**\n * Python >= 3.10, with numpy and simpy available.\n */\n Language[\"PYTHON\"] = \"PYTHON\";\n})(Language || (Language = {}));\n/** Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. */\nvar FunctionResponseScheduling;\n(function (FunctionResponseScheduling) {\n /**\n * This value is unused.\n */\n FunctionResponseScheduling[\"SCHEDULING_UNSPECIFIED\"] = \"SCHEDULING_UNSPECIFIED\";\n /**\n * Only add the result to the conversation context, do not interrupt or trigger generation.\n */\n FunctionResponseScheduling[\"SILENT\"] = \"SILENT\";\n /**\n * Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.\n */\n FunctionResponseScheduling[\"WHEN_IDLE\"] = \"WHEN_IDLE\";\n /**\n * Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.\n */\n FunctionResponseScheduling[\"INTERRUPT\"] = \"INTERRUPT\";\n})(FunctionResponseScheduling || (FunctionResponseScheduling = {}));\n/** Data type of the schema field. */\nvar Type;\n(function (Type) {\n /**\n * Not specified, should not be used.\n */\n Type[\"TYPE_UNSPECIFIED\"] = \"TYPE_UNSPECIFIED\";\n /**\n * OpenAPI string type\n */\n Type[\"STRING\"] = \"STRING\";\n /**\n * OpenAPI number type\n */\n Type[\"NUMBER\"] = \"NUMBER\";\n /**\n * OpenAPI integer type\n */\n Type[\"INTEGER\"] = \"INTEGER\";\n /**\n * OpenAPI boolean type\n */\n Type[\"BOOLEAN\"] = \"BOOLEAN\";\n /**\n * OpenAPI array type\n */\n Type[\"ARRAY\"] = \"ARRAY\";\n /**\n * OpenAPI object type\n */\n Type[\"OBJECT\"] = \"OBJECT\";\n /**\n * Null type\n */\n Type[\"NULL\"] = \"NULL\";\n})(Type || (Type = {}));\n/** Type of auth scheme. This enum is not supported in Gemini API. */\nvar AuthType;\n(function (AuthType) {\n AuthType[\"AUTH_TYPE_UNSPECIFIED\"] = \"AUTH_TYPE_UNSPECIFIED\";\n /**\n * No Auth.\n */\n AuthType[\"NO_AUTH\"] = \"NO_AUTH\";\n /**\n * API Key Auth.\n */\n AuthType[\"API_KEY_AUTH\"] = \"API_KEY_AUTH\";\n /**\n * HTTP Basic Auth.\n */\n AuthType[\"HTTP_BASIC_AUTH\"] = \"HTTP_BASIC_AUTH\";\n /**\n * Google Service Account Auth.\n */\n AuthType[\"GOOGLE_SERVICE_ACCOUNT_AUTH\"] = \"GOOGLE_SERVICE_ACCOUNT_AUTH\";\n /**\n * OAuth auth.\n */\n AuthType[\"OAUTH\"] = \"OAUTH\";\n /**\n * OpenID Connect (OIDC) Auth.\n */\n AuthType[\"OIDC_AUTH\"] = \"OIDC_AUTH\";\n})(AuthType || (AuthType = {}));\n/** The location of the API key. This enum is not supported in Gemini API. */\nvar HttpElementLocation;\n(function (HttpElementLocation) {\n HttpElementLocation[\"HTTP_IN_UNSPECIFIED\"] = \"HTTP_IN_UNSPECIFIED\";\n /**\n * Element is in the HTTP request query.\n */\n HttpElementLocation[\"HTTP_IN_QUERY\"] = \"HTTP_IN_QUERY\";\n /**\n * Element is in the HTTP request header.\n */\n HttpElementLocation[\"HTTP_IN_HEADER\"] = \"HTTP_IN_HEADER\";\n /**\n * Element is in the HTTP request path.\n */\n HttpElementLocation[\"HTTP_IN_PATH\"] = \"HTTP_IN_PATH\";\n /**\n * Element is in the HTTP request body.\n */\n HttpElementLocation[\"HTTP_IN_BODY\"] = \"HTTP_IN_BODY\";\n /**\n * Element is in the HTTP request cookie.\n */\n HttpElementLocation[\"HTTP_IN_COOKIE\"] = \"HTTP_IN_COOKIE\";\n})(HttpElementLocation || (HttpElementLocation = {}));\n/** The API spec that the external API implements. This enum is not supported in Gemini API. */\nvar ApiSpec;\n(function (ApiSpec) {\n /**\n * Unspecified API spec. This value should not be used.\n */\n ApiSpec[\"API_SPEC_UNSPECIFIED\"] = \"API_SPEC_UNSPECIFIED\";\n /**\n * Simple search API spec.\n */\n ApiSpec[\"SIMPLE_SEARCH\"] = \"SIMPLE_SEARCH\";\n /**\n * Elastic search API spec.\n */\n ApiSpec[\"ELASTIC_SEARCH\"] = \"ELASTIC_SEARCH\";\n})(ApiSpec || (ApiSpec = {}));\n/** The environment being operated. */\nvar Environment;\n(function (Environment) {\n /**\n * Defaults to browser.\n */\n Environment[\"ENVIRONMENT_UNSPECIFIED\"] = \"ENVIRONMENT_UNSPECIFIED\";\n /**\n * Operates in a web browser.\n */\n Environment[\"ENVIRONMENT_BROWSER\"] = \"ENVIRONMENT_BROWSER\";\n /**\n * Operates in a mobile environment.\n */\n Environment[\"ENVIRONMENT_MOBILE\"] = \"ENVIRONMENT_MOBILE\";\n /**\n * Operates in a desktop environment.\n */\n Environment[\"ENVIRONMENT_DESKTOP\"] = \"ENVIRONMENT_DESKTOP\";\n})(Environment || (Environment = {}));\n/** SafetyPolicy */\nvar SafetyPolicy;\n(function (SafetyPolicy) {\n /**\n * Unspecified safety policy.\n */\n SafetyPolicy[\"SAFETY_POLICY_UNSPECIFIED\"] = \"SAFETY_POLICY_UNSPECIFIED\";\n /**\n * Safety policy for financial transactions.\n */\n SafetyPolicy[\"FINANCIAL_TRANSACTIONS\"] = \"FINANCIAL_TRANSACTIONS\";\n /**\n * Safety policy for sensitive data modification.\n */\n SafetyPolicy[\"SENSITIVE_DATA_MODIFICATION\"] = \"SENSITIVE_DATA_MODIFICATION\";\n /**\n * Safety policy for communication tools (e.g. Gmail, Chat, Meet).\n */\n SafetyPolicy[\"COMMUNICATION_TOOL\"] = \"COMMUNICATION_TOOL\";\n /**\n * Safety policy for account creation.\n */\n SafetyPolicy[\"ACCOUNT_CREATION\"] = \"ACCOUNT_CREATION\";\n /**\n * Safety policy for data modification.\n */\n SafetyPolicy[\"DATA_MODIFICATION\"] = \"DATA_MODIFICATION\";\n /**\n * Safety policy for user consent management.\n */\n SafetyPolicy[\"USER_CONSENT_MANAGEMENT\"] = \"USER_CONSENT_MANAGEMENT\";\n /**\n * Safety policy for legal terms and agreements.\n */\n SafetyPolicy[\"LEGAL_TERMS_AND_AGREEMENTS\"] = \"LEGAL_TERMS_AND_AGREEMENTS\";\n})(SafetyPolicy || (SafetyPolicy = {}));\n/** Sites with confidence level chosen & above this value will be blocked from the search results. This enum is not supported in Gemini API. */\nvar PhishBlockThreshold;\n(function (PhishBlockThreshold) {\n /**\n * Defaults to unspecified.\n */\n PhishBlockThreshold[\"PHISH_BLOCK_THRESHOLD_UNSPECIFIED\"] = \"PHISH_BLOCK_THRESHOLD_UNSPECIFIED\";\n /**\n * Blocks Low and above confidence URL that is risky.\n */\n PhishBlockThreshold[\"BLOCK_LOW_AND_ABOVE\"] = \"BLOCK_LOW_AND_ABOVE\";\n /**\n * Blocks Medium and above confidence URL that is risky.\n */\n PhishBlockThreshold[\"BLOCK_MEDIUM_AND_ABOVE\"] = \"BLOCK_MEDIUM_AND_ABOVE\";\n /**\n * Blocks High and above confidence URL that is risky.\n */\n PhishBlockThreshold[\"BLOCK_HIGH_AND_ABOVE\"] = \"BLOCK_HIGH_AND_ABOVE\";\n /**\n * Blocks Higher and above confidence URL that is risky.\n */\n PhishBlockThreshold[\"BLOCK_HIGHER_AND_ABOVE\"] = \"BLOCK_HIGHER_AND_ABOVE\";\n /**\n * Blocks Very high and above confidence URL that is risky.\n */\n PhishBlockThreshold[\"BLOCK_VERY_HIGH_AND_ABOVE\"] = \"BLOCK_VERY_HIGH_AND_ABOVE\";\n /**\n * Blocks Extremely high confidence URL that is risky.\n */\n PhishBlockThreshold[\"BLOCK_ONLY_EXTREMELY_HIGH\"] = \"BLOCK_ONLY_EXTREMELY_HIGH\";\n})(PhishBlockThreshold || (PhishBlockThreshold = {}));\n/** 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. */\nvar Behavior;\n(function (Behavior) {\n /**\n * This value is unspecified.\n */\n Behavior[\"UNSPECIFIED\"] = \"UNSPECIFIED\";\n /**\n * If set, the system will wait to receive the function response before continuing the conversation.\n */\n Behavior[\"BLOCKING\"] = \"BLOCKING\";\n /**\n * If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.\n */\n Behavior[\"NON_BLOCKING\"] = \"NON_BLOCKING\";\n})(Behavior || (Behavior = {}));\n/** The mode of the predictor to be used in dynamic retrieval. */\nvar DynamicRetrievalConfigMode;\n(function (DynamicRetrievalConfigMode) {\n /**\n * Always trigger retrieval.\n */\n DynamicRetrievalConfigMode[\"MODE_UNSPECIFIED\"] = \"MODE_UNSPECIFIED\";\n /**\n * Run retrieval only when system decides it is necessary.\n */\n DynamicRetrievalConfigMode[\"MODE_DYNAMIC\"] = \"MODE_DYNAMIC\";\n})(DynamicRetrievalConfigMode || (DynamicRetrievalConfigMode = {}));\n/** The number of thoughts tokens that the model should generate. */\nvar ThinkingLevel;\n(function (ThinkingLevel) {\n /**\n * Unspecified thinking level.\n */\n ThinkingLevel[\"THINKING_LEVEL_UNSPECIFIED\"] = \"THINKING_LEVEL_UNSPECIFIED\";\n /**\n * MINIMAL thinking level.\n */\n ThinkingLevel[\"MINIMAL\"] = \"MINIMAL\";\n /**\n * Low thinking level.\n */\n ThinkingLevel[\"LOW\"] = \"LOW\";\n /**\n * Medium thinking level.\n */\n ThinkingLevel[\"MEDIUM\"] = \"MEDIUM\";\n /**\n * High thinking level.\n */\n ThinkingLevel[\"HIGH\"] = \"HIGH\";\n})(ThinkingLevel || (ThinkingLevel = {}));\n/** Enum that controls the generation of people. */\nvar PersonGeneration;\n(function (PersonGeneration) {\n /**\n * Block generation of images of people.\n */\n PersonGeneration[\"DONT_ALLOW\"] = \"DONT_ALLOW\";\n /**\n * Generate images of adults, but not children.\n */\n PersonGeneration[\"ALLOW_ADULT\"] = \"ALLOW_ADULT\";\n /**\n * Generate images that include adults and children.\n */\n PersonGeneration[\"ALLOW_ALL\"] = \"ALLOW_ALL\";\n})(PersonGeneration || (PersonGeneration = {}));\n/** Controls whether prominent people (celebrities) generation is allowed. If used with personGeneration, personGeneration enum would take precedence. For instance, if ALLOW_NONE is set, all person generation would be blocked. If this field is unspecified, the default behavior is to allow prominent people. This enum is not supported in Gemini API. */\nvar ProminentPeople;\n(function (ProminentPeople) {\n /**\n * Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.\n */\n ProminentPeople[\"PROMINENT_PEOPLE_UNSPECIFIED\"] = \"PROMINENT_PEOPLE_UNSPECIFIED\";\n /**\n * Allows the model to generate images of prominent people.\n */\n ProminentPeople[\"ALLOW_PROMINENT_PEOPLE\"] = \"ALLOW_PROMINENT_PEOPLE\";\n /**\n * Prevents the model from generating images of prominent people.\n */\n ProminentPeople[\"BLOCK_PROMINENT_PEOPLE\"] = \"BLOCK_PROMINENT_PEOPLE\";\n})(ProminentPeople || (ProminentPeople = {}));\n/** The harm category to be blocked. */\nvar HarmCategory;\n(function (HarmCategory) {\n /**\n * Default value. This value is unused.\n */\n HarmCategory[\"HARM_CATEGORY_UNSPECIFIED\"] = \"HARM_CATEGORY_UNSPECIFIED\";\n /**\n * Abusive, threatening, or content intended to bully, torment, or ridicule.\n */\n HarmCategory[\"HARM_CATEGORY_HARASSMENT\"] = \"HARM_CATEGORY_HARASSMENT\";\n /**\n * Content that promotes violence or incites hatred against individuals or groups based on certain attributes.\n */\n HarmCategory[\"HARM_CATEGORY_HATE_SPEECH\"] = \"HARM_CATEGORY_HATE_SPEECH\";\n /**\n * Content that contains sexually explicit material.\n */\n HarmCategory[\"HARM_CATEGORY_SEXUALLY_EXPLICIT\"] = \"HARM_CATEGORY_SEXUALLY_EXPLICIT\";\n /**\n * Content that promotes, facilitates, or enables dangerous activities.\n */\n HarmCategory[\"HARM_CATEGORY_DANGEROUS_CONTENT\"] = \"HARM_CATEGORY_DANGEROUS_CONTENT\";\n /**\n * Deprecated: Election filter is not longer supported. The harm category is civic integrity.\n */\n HarmCategory[\"HARM_CATEGORY_CIVIC_INTEGRITY\"] = \"HARM_CATEGORY_CIVIC_INTEGRITY\";\n /**\n * Prompts designed to bypass safety filters.\n */\n HarmCategory[\"HARM_CATEGORY_JAILBREAK\"] = \"HARM_CATEGORY_JAILBREAK\";\n /**\n * Images that contain hate speech. This enum value is not supported in Gemini API.\n */\n HarmCategory[\"HARM_CATEGORY_IMAGE_HATE\"] = \"HARM_CATEGORY_IMAGE_HATE\";\n /**\n * Images that contain dangerous content. This enum value is not supported in Gemini API.\n */\n HarmCategory[\"HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT\"] = \"HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT\";\n /**\n * Images that contain harassment. This enum value is not supported in Gemini API.\n */\n HarmCategory[\"HARM_CATEGORY_IMAGE_HARASSMENT\"] = \"HARM_CATEGORY_IMAGE_HARASSMENT\";\n /**\n * Images that contain sexually explicit content. This enum value is not supported in Gemini API.\n */\n HarmCategory[\"HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT\"] = \"HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT\";\n})(HarmCategory || (HarmCategory = {}));\n/** The method for blocking content. If not specified, the default behavior is to use the probability score. This enum is not supported in Gemini API. */\nvar HarmBlockMethod;\n(function (HarmBlockMethod) {\n /**\n * The harm block method is unspecified.\n */\n HarmBlockMethod[\"HARM_BLOCK_METHOD_UNSPECIFIED\"] = \"HARM_BLOCK_METHOD_UNSPECIFIED\";\n /**\n * The harm block method uses both probability and severity scores.\n */\n HarmBlockMethod[\"SEVERITY\"] = \"SEVERITY\";\n /**\n * The harm block method uses the probability score.\n */\n HarmBlockMethod[\"PROBABILITY\"] = \"PROBABILITY\";\n})(HarmBlockMethod || (HarmBlockMethod = {}));\n/** The threshold for blocking content. If the harm probability exceeds this threshold, the content will be blocked. */\nvar HarmBlockThreshold;\n(function (HarmBlockThreshold) {\n /**\n * The harm block threshold is unspecified.\n */\n HarmBlockThreshold[\"HARM_BLOCK_THRESHOLD_UNSPECIFIED\"] = \"HARM_BLOCK_THRESHOLD_UNSPECIFIED\";\n /**\n * Block content with a low harm probability or higher.\n */\n HarmBlockThreshold[\"BLOCK_LOW_AND_ABOVE\"] = \"BLOCK_LOW_AND_ABOVE\";\n /**\n * Block content with a medium harm probability or higher.\n */\n HarmBlockThreshold[\"BLOCK_MEDIUM_AND_ABOVE\"] = \"BLOCK_MEDIUM_AND_ABOVE\";\n /**\n * Block content with a high harm probability.\n */\n HarmBlockThreshold[\"BLOCK_ONLY_HIGH\"] = \"BLOCK_ONLY_HIGH\";\n /**\n * Do not block any content, regardless of its harm probability.\n */\n HarmBlockThreshold[\"BLOCK_NONE\"] = \"BLOCK_NONE\";\n /**\n * Turn off the safety filter entirely.\n */\n HarmBlockThreshold[\"OFF\"] = \"OFF\";\n})(HarmBlockThreshold || (HarmBlockThreshold = {}));\n/** Function calling mode. */\nvar FunctionCallingConfigMode;\n(function (FunctionCallingConfigMode) {\n /**\n * Unspecified function calling mode. This value should not be used.\n */\n FunctionCallingConfigMode[\"MODE_UNSPECIFIED\"] = \"MODE_UNSPECIFIED\";\n /**\n * Default model behavior, model decides to predict either function calls or natural language response.\n */\n FunctionCallingConfigMode[\"AUTO\"] = \"AUTO\";\n /**\n * Model is constrained to always predicting function calls only. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\".\n */\n FunctionCallingConfigMode[\"ANY\"] = \"ANY\";\n /**\n * Model will not predict any function calls. Model behavior is same as when not passing any function declarations.\n */\n FunctionCallingConfigMode[\"NONE\"] = \"NONE\";\n /**\n * Model is constrained to predict either function calls or natural language response. If \"allowed_function_names\" are set, the predicted function calls will be limited to any one of \"allowed_function_names\", else the predicted function calls will be any one of the provided \"function_declarations\".\n */\n FunctionCallingConfigMode[\"VALIDATED\"] = \"VALIDATED\";\n})(FunctionCallingConfigMode || (FunctionCallingConfigMode = {}));\n/** Output only. The reason why the model stopped generating tokens.\n\nIf empty, the model has not stopped generating the tokens. */\nvar FinishReason;\n(function (FinishReason) {\n /**\n * The finish reason is unspecified.\n */\n FinishReason[\"FINISH_REASON_UNSPECIFIED\"] = \"FINISH_REASON_UNSPECIFIED\";\n /**\n * Token generation reached a natural stopping point or a configured stop sequence.\n */\n FinishReason[\"STOP\"] = \"STOP\";\n /**\n * Token generation reached the configured maximum output tokens.\n */\n FinishReason[\"MAX_TOKENS\"] = \"MAX_TOKENS\";\n /**\n * Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, [content][] is empty if content filters blocks the output.\n */\n FinishReason[\"SAFETY\"] = \"SAFETY\";\n /**\n * The token generation stopped because of potential recitation.\n */\n FinishReason[\"RECITATION\"] = \"RECITATION\";\n /**\n * The token generation stopped because of using an unsupported language.\n */\n FinishReason[\"LANGUAGE\"] = \"LANGUAGE\";\n /**\n * All other reasons that stopped the token generation.\n */\n FinishReason[\"OTHER\"] = \"OTHER\";\n /**\n * Token generation stopped because the content contains forbidden terms.\n */\n FinishReason[\"BLOCKLIST\"] = \"BLOCKLIST\";\n /**\n * Token generation stopped for potentially containing prohibited content.\n */\n FinishReason[\"PROHIBITED_CONTENT\"] = \"PROHIBITED_CONTENT\";\n /**\n * Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).\n */\n FinishReason[\"SPII\"] = \"SPII\";\n /**\n * The function call generated by the model is invalid.\n */\n FinishReason[\"MALFORMED_FUNCTION_CALL\"] = \"MALFORMED_FUNCTION_CALL\";\n /**\n * Token generation stopped because generated images have safety violations.\n */\n FinishReason[\"IMAGE_SAFETY\"] = \"IMAGE_SAFETY\";\n /**\n * The tool call generated by the model is invalid.\n */\n FinishReason[\"UNEXPECTED_TOOL_CALL\"] = \"UNEXPECTED_TOOL_CALL\";\n /**\n * Model called too many tools consecutively, thus the system exited execution.\n */\n FinishReason[\"TOO_MANY_TOOL_CALLS\"] = \"TOO_MANY_TOOL_CALLS\";\n /**\n * Image generation stopped because the generated images have prohibited content.\n */\n FinishReason[\"IMAGE_PROHIBITED_CONTENT\"] = \"IMAGE_PROHIBITED_CONTENT\";\n /**\n * The model was expected to generate an image, but none was generated.\n */\n FinishReason[\"NO_IMAGE\"] = \"NO_IMAGE\";\n /**\n * Image generation stopped because the generated image may be a recitation from a source.\n */\n FinishReason[\"IMAGE_RECITATION\"] = \"IMAGE_RECITATION\";\n /**\n * Image generation stopped for a reason not otherwise specified.\n */\n FinishReason[\"IMAGE_OTHER\"] = \"IMAGE_OTHER\";\n})(FinishReason || (FinishReason = {}));\n/** Output only. The probability of harm for this category. */\nvar HarmProbability;\n(function (HarmProbability) {\n /**\n * The harm probability is unspecified.\n */\n HarmProbability[\"HARM_PROBABILITY_UNSPECIFIED\"] = \"HARM_PROBABILITY_UNSPECIFIED\";\n /**\n * The harm probability is negligible.\n */\n HarmProbability[\"NEGLIGIBLE\"] = \"NEGLIGIBLE\";\n /**\n * The harm probability is low.\n */\n HarmProbability[\"LOW\"] = \"LOW\";\n /**\n * The harm probability is medium.\n */\n HarmProbability[\"MEDIUM\"] = \"MEDIUM\";\n /**\n * The harm probability is high.\n */\n HarmProbability[\"HIGH\"] = \"HIGH\";\n})(HarmProbability || (HarmProbability = {}));\n/** Output only. The severity of harm for this category. This enum is not supported in Gemini API. */\nvar HarmSeverity;\n(function (HarmSeverity) {\n /**\n * The harm severity is unspecified.\n */\n HarmSeverity[\"HARM_SEVERITY_UNSPECIFIED\"] = \"HARM_SEVERITY_UNSPECIFIED\";\n /**\n * The harm severity is negligible.\n */\n HarmSeverity[\"HARM_SEVERITY_NEGLIGIBLE\"] = \"HARM_SEVERITY_NEGLIGIBLE\";\n /**\n * The harm severity is low.\n */\n HarmSeverity[\"HARM_SEVERITY_LOW\"] = \"HARM_SEVERITY_LOW\";\n /**\n * The harm severity is medium.\n */\n HarmSeverity[\"HARM_SEVERITY_MEDIUM\"] = \"HARM_SEVERITY_MEDIUM\";\n /**\n * The harm severity is high.\n */\n HarmSeverity[\"HARM_SEVERITY_HIGH\"] = \"HARM_SEVERITY_HIGH\";\n})(HarmSeverity || (HarmSeverity = {}));\n/** The status of the URL retrieval. */\nvar UrlRetrievalStatus;\n(function (UrlRetrievalStatus) {\n /**\n * Default value. This value is unused.\n */\n UrlRetrievalStatus[\"URL_RETRIEVAL_STATUS_UNSPECIFIED\"] = \"URL_RETRIEVAL_STATUS_UNSPECIFIED\";\n /**\n * The URL was retrieved successfully.\n */\n UrlRetrievalStatus[\"URL_RETRIEVAL_STATUS_SUCCESS\"] = \"URL_RETRIEVAL_STATUS_SUCCESS\";\n /**\n * The URL retrieval failed.\n */\n UrlRetrievalStatus[\"URL_RETRIEVAL_STATUS_ERROR\"] = \"URL_RETRIEVAL_STATUS_ERROR\";\n /**\n * Url retrieval is failed because the content is behind paywall. This enum value is not supported in Vertex AI.\n */\n UrlRetrievalStatus[\"URL_RETRIEVAL_STATUS_PAYWALL\"] = \"URL_RETRIEVAL_STATUS_PAYWALL\";\n /**\n * Url retrieval is failed because the content is unsafe. This enum value is not supported in Vertex AI.\n */\n UrlRetrievalStatus[\"URL_RETRIEVAL_STATUS_UNSAFE\"] = \"URL_RETRIEVAL_STATUS_UNSAFE\";\n})(UrlRetrievalStatus || (UrlRetrievalStatus = {}));\n/** Output only. The reason why the prompt was blocked. */\nvar BlockedReason;\n(function (BlockedReason) {\n /**\n * The blocked reason is unspecified.\n */\n BlockedReason[\"BLOCKED_REASON_UNSPECIFIED\"] = \"BLOCKED_REASON_UNSPECIFIED\";\n /**\n * The prompt was blocked for safety reasons.\n */\n BlockedReason[\"SAFETY\"] = \"SAFETY\";\n /**\n * The prompt was blocked for other reasons. For example, it may be due to the prompt's language, or because it contains other harmful content.\n */\n BlockedReason[\"OTHER\"] = \"OTHER\";\n /**\n * The prompt was blocked because it contains a term from the terminology blocklist.\n */\n BlockedReason[\"BLOCKLIST\"] = \"BLOCKLIST\";\n /**\n * The prompt was blocked because it contains prohibited content.\n */\n BlockedReason[\"PROHIBITED_CONTENT\"] = \"PROHIBITED_CONTENT\";\n /**\n * The prompt was blocked because it contains content that is unsafe for image generation.\n */\n BlockedReason[\"IMAGE_SAFETY\"] = \"IMAGE_SAFETY\";\n /**\n * The prompt was blocked by Model Armor. This enum value is not supported in Gemini API.\n */\n BlockedReason[\"MODEL_ARMOR\"] = \"MODEL_ARMOR\";\n /**\n * The prompt was blocked as a jailbreak attempt. This enum value is not supported in Gemini API.\n */\n BlockedReason[\"JAILBREAK\"] = \"JAILBREAK\";\n})(BlockedReason || (BlockedReason = {}));\n/** Output only. The traffic type for this request. This enum is not supported in Gemini API. */\nvar TrafficType;\n(function (TrafficType) {\n /**\n * Unspecified request traffic type.\n */\n TrafficType[\"TRAFFIC_TYPE_UNSPECIFIED\"] = \"TRAFFIC_TYPE_UNSPECIFIED\";\n /**\n * The request was processed using Pay-As-You-Go quota.\n */\n TrafficType[\"ON_DEMAND\"] = \"ON_DEMAND\";\n /**\n * Type for Priority Pay-As-You-Go traffic.\n */\n TrafficType[\"ON_DEMAND_PRIORITY\"] = \"ON_DEMAND_PRIORITY\";\n /**\n * Type for Flex traffic.\n */\n TrafficType[\"ON_DEMAND_FLEX\"] = \"ON_DEMAND_FLEX\";\n /**\n * Type for Provisioned Throughput traffic.\n */\n TrafficType[\"PROVISIONED_THROUGHPUT\"] = \"PROVISIONED_THROUGHPUT\";\n})(TrafficType || (TrafficType = {}));\n/** The modality that this token count applies to. */\nvar MediaModality;\n(function (MediaModality) {\n /**\n * When a modality is not specified, it is treated as `TEXT`.\n */\n MediaModality[\"MODALITY_UNSPECIFIED\"] = \"MODALITY_UNSPECIFIED\";\n /**\n * The `Part` contains plain text.\n */\n MediaModality[\"TEXT\"] = \"TEXT\";\n /**\n * The `Part` contains an image.\n */\n MediaModality[\"IMAGE\"] = \"IMAGE\";\n /**\n * The `Part` contains a video.\n */\n MediaModality[\"VIDEO\"] = \"VIDEO\";\n /**\n * The `Part` contains audio.\n */\n MediaModality[\"AUDIO\"] = \"AUDIO\";\n /**\n * The `Part` contains a document, such as a PDF.\n */\n MediaModality[\"DOCUMENT\"] = \"DOCUMENT\";\n})(MediaModality || (MediaModality = {}));\n/** The stage of the underlying model. This enum is not supported in Vertex AI. */\nvar ModelStage;\n(function (ModelStage) {\n /**\n * Unspecified model stage.\n */\n ModelStage[\"MODEL_STAGE_UNSPECIFIED\"] = \"MODEL_STAGE_UNSPECIFIED\";\n /**\n * The underlying model is subject to lots of tunings.\n */\n ModelStage[\"UNSTABLE_EXPERIMENTAL\"] = \"UNSTABLE_EXPERIMENTAL\";\n /**\n * Models in this stage are for experimental purposes only.\n */\n ModelStage[\"EXPERIMENTAL\"] = \"EXPERIMENTAL\";\n /**\n * Models in this stage are more mature than experimental models.\n */\n ModelStage[\"PREVIEW\"] = \"PREVIEW\";\n /**\n * Models in this stage are considered stable and ready for production use.\n */\n ModelStage[\"STABLE\"] = \"STABLE\";\n /**\n * If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.\n */\n ModelStage[\"LEGACY\"] = \"LEGACY\";\n /**\n * Models in this stage are deprecated. These models cannot be used.\n */\n ModelStage[\"DEPRECATED\"] = \"DEPRECATED\";\n /**\n * Models in this stage are retired. These models cannot be used.\n */\n ModelStage[\"RETIRED\"] = \"RETIRED\";\n})(ModelStage || (ModelStage = {}));\n/** The media resolution to use. */\nvar MediaResolution;\n(function (MediaResolution) {\n /**\n * Media resolution has not been set\n */\n MediaResolution[\"MEDIA_RESOLUTION_UNSPECIFIED\"] = \"MEDIA_RESOLUTION_UNSPECIFIED\";\n /**\n * Media resolution set to low (64 tokens).\n */\n MediaResolution[\"MEDIA_RESOLUTION_LOW\"] = \"MEDIA_RESOLUTION_LOW\";\n /**\n * Media resolution set to medium (256 tokens).\n */\n MediaResolution[\"MEDIA_RESOLUTION_MEDIUM\"] = \"MEDIA_RESOLUTION_MEDIUM\";\n /**\n * Media resolution set to high (zoomed reframing with 256 tokens).\n */\n MediaResolution[\"MEDIA_RESOLUTION_HIGH\"] = \"MEDIA_RESOLUTION_HIGH\";\n})(MediaResolution || (MediaResolution = {}));\n/** Server content modalities. */\nvar Modality;\n(function (Modality) {\n /**\n * The modality is unspecified.\n */\n Modality[\"MODALITY_UNSPECIFIED\"] = \"MODALITY_UNSPECIFIED\";\n /**\n * Indicates the model should return text\n */\n Modality[\"TEXT\"] = \"TEXT\";\n /**\n * Indicates the model should return images.\n */\n Modality[\"IMAGE\"] = \"IMAGE\";\n /**\n * Indicates the model should return audio.\n */\n Modality[\"AUDIO\"] = \"AUDIO\";\n /**\n * Indicates the model should return video.\n */\n Modality[\"VIDEO\"] = \"VIDEO\";\n})(Modality || (Modality = {}));\n/** Delivery mode for the generated content. */\nvar Delivery;\n(function (Delivery) {\n /**\n * Default value. This value is unused.\n */\n Delivery[\"DELIVERY_UNSPECIFIED\"] = \"DELIVERY_UNSPECIFIED\";\n /**\n * Generated bytes are returned inline in the response.\n */\n Delivery[\"INLINE\"] = \"INLINE\";\n /**\n * Generated content is stored and a URI is returned.\n */\n Delivery[\"URI\"] = \"URI\";\n})(Delivery || (Delivery = {}));\n/** The aspect ratio for the image output. */\nvar AspectRatio;\n(function (AspectRatio) {\n /**\n * Default value. This value is unused.\n */\n AspectRatio[\"ASPECT_RATIO_UNSPECIFIED\"] = \"ASPECT_RATIO_UNSPECIFIED\";\n /**\n * 1:1 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_ONE_BY_ONE\"] = \"ASPECT_RATIO_ONE_BY_ONE\";\n /**\n * 2:3 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_TWO_BY_THREE\"] = \"ASPECT_RATIO_TWO_BY_THREE\";\n /**\n * 3:2 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_THREE_BY_TWO\"] = \"ASPECT_RATIO_THREE_BY_TWO\";\n /**\n * 3:4 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_THREE_BY_FOUR\"] = \"ASPECT_RATIO_THREE_BY_FOUR\";\n /**\n * 4:3 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_FOUR_BY_THREE\"] = \"ASPECT_RATIO_FOUR_BY_THREE\";\n /**\n * 4:5 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_FOUR_BY_FIVE\"] = \"ASPECT_RATIO_FOUR_BY_FIVE\";\n /**\n * 5:4 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_FIVE_BY_FOUR\"] = \"ASPECT_RATIO_FIVE_BY_FOUR\";\n /**\n * 9:16 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_NINE_BY_SIXTEEN\"] = \"ASPECT_RATIO_NINE_BY_SIXTEEN\";\n /**\n * 16:9 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_SIXTEEN_BY_NINE\"] = \"ASPECT_RATIO_SIXTEEN_BY_NINE\";\n /**\n * 21:9 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_TWENTY_ONE_BY_NINE\"] = \"ASPECT_RATIO_TWENTY_ONE_BY_NINE\";\n /**\n * 1:8 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_ONE_BY_EIGHT\"] = \"ASPECT_RATIO_ONE_BY_EIGHT\";\n /**\n * 8:1 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_EIGHT_BY_ONE\"] = \"ASPECT_RATIO_EIGHT_BY_ONE\";\n /**\n * 1:4 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_ONE_BY_FOUR\"] = \"ASPECT_RATIO_ONE_BY_FOUR\";\n /**\n * 4:1 aspect ratio.\n */\n AspectRatio[\"ASPECT_RATIO_FOUR_BY_ONE\"] = \"ASPECT_RATIO_FOUR_BY_ONE\";\n})(AspectRatio || (AspectRatio = {}));\n/** The size of the image output. */\nvar ImageSize;\n(function (ImageSize) {\n /**\n * Default value. This value is unused.\n */\n ImageSize[\"IMAGE_SIZE_UNSPECIFIED\"] = \"IMAGE_SIZE_UNSPECIFIED\";\n /**\n * 512px image size.\n */\n ImageSize[\"IMAGE_SIZE_FIVE_TWELVE\"] = \"IMAGE_SIZE_FIVE_TWELVE\";\n /**\n * 1K image size.\n */\n ImageSize[\"IMAGE_SIZE_ONE_K\"] = \"IMAGE_SIZE_ONE_K\";\n /**\n * 2K image size.\n */\n ImageSize[\"IMAGE_SIZE_TWO_K\"] = \"IMAGE_SIZE_TWO_K\";\n /**\n * 4K image size.\n */\n ImageSize[\"IMAGE_SIZE_FOUR_K\"] = \"IMAGE_SIZE_FOUR_K\";\n})(ImageSize || (ImageSize = {}));\n/** Tuning mode. This enum is not supported in Gemini API. */\nvar TuningMode;\n(function (TuningMode) {\n /**\n * Tuning mode is unspecified.\n */\n TuningMode[\"TUNING_MODE_UNSPECIFIED\"] = \"TUNING_MODE_UNSPECIFIED\";\n /**\n * Full fine-tuning mode.\n */\n TuningMode[\"TUNING_MODE_FULL\"] = \"TUNING_MODE_FULL\";\n /**\n * PEFT adapter tuning mode.\n */\n TuningMode[\"TUNING_MODE_PEFT_ADAPTER\"] = \"TUNING_MODE_PEFT_ADAPTER\";\n})(TuningMode || (TuningMode = {}));\n/** Adapter size for tuning. This enum is not supported in Gemini API. */\nvar AdapterSize;\n(function (AdapterSize) {\n /**\n * Adapter size is unspecified.\n */\n AdapterSize[\"ADAPTER_SIZE_UNSPECIFIED\"] = \"ADAPTER_SIZE_UNSPECIFIED\";\n /**\n * Adapter size 1.\n */\n AdapterSize[\"ADAPTER_SIZE_ONE\"] = \"ADAPTER_SIZE_ONE\";\n /**\n * Adapter size 2.\n */\n AdapterSize[\"ADAPTER_SIZE_TWO\"] = \"ADAPTER_SIZE_TWO\";\n /**\n * Adapter size 4.\n */\n AdapterSize[\"ADAPTER_SIZE_FOUR\"] = \"ADAPTER_SIZE_FOUR\";\n /**\n * Adapter size 8.\n */\n AdapterSize[\"ADAPTER_SIZE_EIGHT\"] = \"ADAPTER_SIZE_EIGHT\";\n /**\n * Adapter size 16.\n */\n AdapterSize[\"ADAPTER_SIZE_SIXTEEN\"] = \"ADAPTER_SIZE_SIXTEEN\";\n /**\n * Adapter size 32.\n */\n AdapterSize[\"ADAPTER_SIZE_THIRTY_TWO\"] = \"ADAPTER_SIZE_THIRTY_TWO\";\n})(AdapterSize || (AdapterSize = {}));\n/** Defines the type for parsing sample response. This enum is not supported in Gemini API. */\nvar ResponseParseType;\n(function (ResponseParseType) {\n /**\n * Default value. Fallback to IDENTITY\n */\n ResponseParseType[\"RESPONSE_PARSE_TYPE_UNSPECIFIED\"] = \"RESPONSE_PARSE_TYPE_UNSPECIFIED\";\n /**\n * Returns the sample response as is.\n */\n ResponseParseType[\"IDENTITY\"] = \"IDENTITY\";\n /**\n * 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.\n */\n ResponseParseType[\"REGEX_EXTRACT\"] = \"REGEX_EXTRACT\";\n})(ResponseParseType || (ResponseParseType = {}));\n/** Match operation to use for evaluating rewards. This enum is not supported in Gemini API. */\nvar MatchOperation;\n(function (MatchOperation) {\n /**\n * Default value. A user error will be returned if not set.\n */\n MatchOperation[\"MATCH_OPERATION_UNSPECIFIED\"] = \"MATCH_OPERATION_UNSPECIFIED\";\n /**\n * Equivalent to [GoogleSQL](https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#regexp_contains) `REGEX_CONTAINS(target, expression)`.\n */\n MatchOperation[\"REGEX_CONTAINS\"] = \"REGEX_CONTAINS\";\n /**\n * The match operation returns `true` if expression is a substring of the target.\n */\n MatchOperation[\"PARTIAL_MATCH\"] = \"PARTIAL_MATCH\";\n /**\n * The match operation returns `true` expression is an exact match of the target.\n */\n MatchOperation[\"EXACT_MATCH\"] = \"EXACT_MATCH\";\n})(MatchOperation || (MatchOperation = {}));\n/** Represents how much to think for the tuning job. */\nvar ReinforcementTuningThinkingLevel;\n(function (ReinforcementTuningThinkingLevel) {\n /**\n * Unspecified thinking level.\n */\n ReinforcementTuningThinkingLevel[\"REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED\"] = \"REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED\";\n /**\n * Little to no thinking.\n */\n ReinforcementTuningThinkingLevel[\"MINIMAL\"] = \"MINIMAL\";\n /**\n * High thinking level.\n */\n ReinforcementTuningThinkingLevel[\"HIGH\"] = \"HIGH\";\n})(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));\n/** Job state. */\nvar JobState;\n(function (JobState) {\n /**\n * The job state is unspecified.\n */\n JobState[\"JOB_STATE_UNSPECIFIED\"] = \"JOB_STATE_UNSPECIFIED\";\n /**\n * The job has been just created or resumed and processing has not yet begun.\n */\n JobState[\"JOB_STATE_QUEUED\"] = \"JOB_STATE_QUEUED\";\n /**\n * The service is preparing to run the job.\n */\n JobState[\"JOB_STATE_PENDING\"] = \"JOB_STATE_PENDING\";\n /**\n * The job is in progress.\n */\n JobState[\"JOB_STATE_RUNNING\"] = \"JOB_STATE_RUNNING\";\n /**\n * The job completed successfully.\n */\n JobState[\"JOB_STATE_SUCCEEDED\"] = \"JOB_STATE_SUCCEEDED\";\n /**\n * The job failed.\n */\n JobState[\"JOB_STATE_FAILED\"] = \"JOB_STATE_FAILED\";\n /**\n * The job is being cancelled. From this state the job may only go to either `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.\n */\n JobState[\"JOB_STATE_CANCELLING\"] = \"JOB_STATE_CANCELLING\";\n /**\n * The job has been cancelled.\n */\n JobState[\"JOB_STATE_CANCELLED\"] = \"JOB_STATE_CANCELLED\";\n /**\n * The job has been stopped, and can be resumed.\n */\n JobState[\"JOB_STATE_PAUSED\"] = \"JOB_STATE_PAUSED\";\n /**\n * The job has expired.\n */\n JobState[\"JOB_STATE_EXPIRED\"] = \"JOB_STATE_EXPIRED\";\n /**\n * The job is being updated. Only jobs in the `JOB_STATE_RUNNING` state can be updated. After updating, the job goes back to the `JOB_STATE_RUNNING` state.\n */\n JobState[\"JOB_STATE_UPDATING\"] = \"JOB_STATE_UPDATING\";\n /**\n * The job is partially succeeded, some results may be missing due to errors.\n */\n JobState[\"JOB_STATE_PARTIALLY_SUCCEEDED\"] = \"JOB_STATE_PARTIALLY_SUCCEEDED\";\n})(JobState || (JobState = {}));\n/** Output only. The detail state of the tuning job (while the overall `JobState` is running). This enum is not supported in Gemini API. */\nvar TuningJobState;\n(function (TuningJobState) {\n /**\n * Default tuning job state.\n */\n TuningJobState[\"TUNING_JOB_STATE_UNSPECIFIED\"] = \"TUNING_JOB_STATE_UNSPECIFIED\";\n /**\n * Tuning job is waiting for job quota.\n */\n TuningJobState[\"TUNING_JOB_STATE_WAITING_FOR_QUOTA\"] = \"TUNING_JOB_STATE_WAITING_FOR_QUOTA\";\n /**\n * Tuning job is validating the dataset.\n */\n TuningJobState[\"TUNING_JOB_STATE_PROCESSING_DATASET\"] = \"TUNING_JOB_STATE_PROCESSING_DATASET\";\n /**\n * Tuning job is waiting for hardware capacity.\n */\n TuningJobState[\"TUNING_JOB_STATE_WAITING_FOR_CAPACITY\"] = \"TUNING_JOB_STATE_WAITING_FOR_CAPACITY\";\n /**\n * Tuning job is running.\n */\n TuningJobState[\"TUNING_JOB_STATE_TUNING\"] = \"TUNING_JOB_STATE_TUNING\";\n /**\n * Tuning job is doing some post processing steps.\n */\n TuningJobState[\"TUNING_JOB_STATE_POST_PROCESSING\"] = \"TUNING_JOB_STATE_POST_PROCESSING\";\n})(TuningJobState || (TuningJobState = {}));\n/** Aggregation metric. This enum is not supported in Gemini API. */\nvar AggregationMetric;\n(function (AggregationMetric) {\n /**\n * Unspecified aggregation metric.\n */\n AggregationMetric[\"AGGREGATION_METRIC_UNSPECIFIED\"] = \"AGGREGATION_METRIC_UNSPECIFIED\";\n /**\n * Average aggregation metric. Not supported for Pairwise metric.\n */\n AggregationMetric[\"AVERAGE\"] = \"AVERAGE\";\n /**\n * Mode aggregation metric.\n */\n AggregationMetric[\"MODE\"] = \"MODE\";\n /**\n * Standard deviation aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"STANDARD_DEVIATION\"] = \"STANDARD_DEVIATION\";\n /**\n * Variance aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"VARIANCE\"] = \"VARIANCE\";\n /**\n * Minimum aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"MINIMUM\"] = \"MINIMUM\";\n /**\n * Maximum aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"MAXIMUM\"] = \"MAXIMUM\";\n /**\n * Median aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"MEDIAN\"] = \"MEDIAN\";\n /**\n * 90th percentile aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"PERCENTILE_P90\"] = \"PERCENTILE_P90\";\n /**\n * 95th percentile aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"PERCENTILE_P95\"] = \"PERCENTILE_P95\";\n /**\n * 99th percentile aggregation metric. Not supported for pairwise metric.\n */\n AggregationMetric[\"PERCENTILE_P99\"] = \"PERCENTILE_P99\";\n})(AggregationMetric || (AggregationMetric = {}));\n/** Output only. Pairwise metric choice. This enum is not supported in Gemini API. */\nvar PairwiseChoice;\n(function (PairwiseChoice) {\n /**\n * Unspecified prediction choice.\n */\n PairwiseChoice[\"PAIRWISE_CHOICE_UNSPECIFIED\"] = \"PAIRWISE_CHOICE_UNSPECIFIED\";\n /**\n * Baseline prediction wins\n */\n PairwiseChoice[\"BASELINE\"] = \"BASELINE\";\n /**\n * Candidate prediction wins\n */\n PairwiseChoice[\"CANDIDATE\"] = \"CANDIDATE\";\n /**\n * Winner cannot be determined\n */\n PairwiseChoice[\"TIE\"] = \"TIE\";\n})(PairwiseChoice || (PairwiseChoice = {}));\n/** The orientation of the video. Defaults to LANDSCAPE. This enum is not supported in Gemini API. */\nvar VideoOrientation;\n(function (VideoOrientation) {\n /**\n * Unspecified video orientation. Defaults to landscape.\n */\n VideoOrientation[\"VIDEO_ORIENTATION_UNSPECIFIED\"] = \"VIDEO_ORIENTATION_UNSPECIFIED\";\n /**\n * Landscape orientation (e.g. 16:9, 1280x720).\n */\n VideoOrientation[\"LANDSCAPE\"] = \"LANDSCAPE\";\n /**\n * Portrait orientation (e.g. 9:16, 720x1280).\n */\n VideoOrientation[\"PORTRAIT\"] = \"PORTRAIT\";\n})(VideoOrientation || (VideoOrientation = {}));\n/** The speed of the tuning job. Only supported for Veo 3.0 models. This enum is not supported in Gemini API. */\nvar TuningSpeed;\n(function (TuningSpeed) {\n /**\n * The default / unset value. For Veo 3.0 models, this defaults to FAST.\n */\n TuningSpeed[\"TUNING_SPEED_UNSPECIFIED\"] = \"TUNING_SPEED_UNSPECIFIED\";\n /**\n * Regular tuning speed.\n */\n TuningSpeed[\"REGULAR\"] = \"REGULAR\";\n /**\n * Fast tuning speed.\n */\n TuningSpeed[\"FAST\"] = \"FAST\";\n})(TuningSpeed || (TuningSpeed = {}));\n/** The tuning task for Veo. This enum is not supported in Gemini API. */\nvar TuningTask;\n(function (TuningTask) {\n /**\n * Default value. This value is unused.\n */\n TuningTask[\"TUNING_TASK_UNSPECIFIED\"] = \"TUNING_TASK_UNSPECIFIED\";\n /**\n * Tuning task for image to video.\n */\n TuningTask[\"TUNING_TASK_I2V\"] = \"TUNING_TASK_I2V\";\n /**\n * Tuning task for text to video.\n */\n TuningTask[\"TUNING_TASK_T2V\"] = \"TUNING_TASK_T2V\";\n /**\n * Tuning task for reference to video.\n */\n TuningTask[\"TUNING_TASK_R2V\"] = \"TUNING_TASK_R2V\";\n})(TuningTask || (TuningTask = {}));\n/** Output only. Current state of the `Document`. This enum is not supported in Vertex AI. */\nvar DocumentState;\n(function (DocumentState) {\n /**\n * The default value. This value is used if the state is omitted.\n */\n DocumentState[\"STATE_UNSPECIFIED\"] = \"STATE_UNSPECIFIED\";\n /**\n * Some `Chunks` of the `Document` are being processed (embedding and vector storage).\n */\n DocumentState[\"STATE_PENDING\"] = \"STATE_PENDING\";\n /**\n * All `Chunks` of the `Document` is processed and available for querying.\n */\n DocumentState[\"STATE_ACTIVE\"] = \"STATE_ACTIVE\";\n /**\n * Some `Chunks` of the `Document` failed processing.\n */\n DocumentState[\"STATE_FAILED\"] = \"STATE_FAILED\";\n})(DocumentState || (DocumentState = {}));\n/** Pricing and performance service tier. */\nvar ServiceTier;\n(function (ServiceTier) {\n /**\n * Default service tier, which is standard.\n */\n ServiceTier[\"UNSPECIFIED\"] = \"unspecified\";\n /**\n * Flex service tier.\n */\n ServiceTier[\"FLEX\"] = \"flex\";\n /**\n * Standard service tier.\n */\n ServiceTier[\"STANDARD\"] = \"standard\";\n /**\n * Priority service tier.\n */\n ServiceTier[\"PRIORITY\"] = \"priority\";\n})(ServiceTier || (ServiceTier = {}));\n/** How the model processes input media for understanding. */\nvar MediaProcessing;\n(function (MediaProcessing) {\n /**\n * Default. Uses model-specific processing\n */\n MediaProcessing[\"MEDIA_PROCESSING_UNSPECIFIED\"] = \"MEDIA_PROCESSING_UNSPECIFIED\";\n /**\n * Fixed-rate frame extraction. All frames placed in context.\n */\n MediaProcessing[\"STATIC\"] = \"STATIC\";\n /**\n * Model-driven dynamic navigation. Recommended for most use cases.\n */\n MediaProcessing[\"AGENTIC\"] = \"AGENTIC\";\n})(MediaProcessing || (MediaProcessing = {}));\n/** The tokenization quality used for given media. */\nvar PartMediaResolutionLevel;\n(function (PartMediaResolutionLevel) {\n /**\n * Media resolution has not been set.\n */\n PartMediaResolutionLevel[\"MEDIA_RESOLUTION_UNSPECIFIED\"] = \"MEDIA_RESOLUTION_UNSPECIFIED\";\n /**\n * Media resolution set to low.\n */\n PartMediaResolutionLevel[\"MEDIA_RESOLUTION_LOW\"] = \"MEDIA_RESOLUTION_LOW\";\n /**\n * Media resolution set to medium.\n */\n PartMediaResolutionLevel[\"MEDIA_RESOLUTION_MEDIUM\"] = \"MEDIA_RESOLUTION_MEDIUM\";\n /**\n * Media resolution set to high.\n */\n PartMediaResolutionLevel[\"MEDIA_RESOLUTION_HIGH\"] = \"MEDIA_RESOLUTION_HIGH\";\n /**\n * Media resolution set to ultra high.\n */\n PartMediaResolutionLevel[\"MEDIA_RESOLUTION_ULTRA_HIGH\"] = \"MEDIA_RESOLUTION_ULTRA_HIGH\";\n})(PartMediaResolutionLevel || (PartMediaResolutionLevel = {}));\n/** The type of tool in the function call. */\nvar ToolType;\n(function (ToolType) {\n /**\n * Unspecified tool type.\n */\n ToolType[\"TOOL_TYPE_UNSPECIFIED\"] = \"TOOL_TYPE_UNSPECIFIED\";\n /**\n * Google search tool, maps to Tool.google_search.search_types.web_search.\n */\n ToolType[\"GOOGLE_SEARCH_WEB\"] = \"GOOGLE_SEARCH_WEB\";\n /**\n * Image search tool, maps to Tool.google_search.search_types.image_search.\n */\n ToolType[\"GOOGLE_SEARCH_IMAGE\"] = \"GOOGLE_SEARCH_IMAGE\";\n /**\n * URL context tool, maps to Tool.url_context.\n */\n ToolType[\"URL_CONTEXT\"] = \"URL_CONTEXT\";\n /**\n * Google maps tool, maps to Tool.google_maps.\n */\n ToolType[\"GOOGLE_MAPS\"] = \"GOOGLE_MAPS\";\n /**\n * File search tool, maps to Tool.file_search.\n */\n ToolType[\"FILE_SEARCH\"] = \"FILE_SEARCH\";\n /**\n * Media processing tool.\n */\n ToolType[\"MEDIA_PROCESSING\"] = \"MEDIA_PROCESSING\";\n})(ToolType || (ToolType = {}));\n/** Resource scope. */\nvar ResourceScope;\n(function (ResourceScope) {\n /**\n * When setting base_url, this value configures resource scope to be the collection.\n The resource name will not include api version, project, or location.\n For example, if base_url is set to \"https://aiplatform.googleapis.com\",\n then the resource name for a Model would be\n \"https://aiplatform.googleapis.com/publishers/google/models/gemini-3-pro-preview\n */\n ResourceScope[\"COLLECTION\"] = \"COLLECTION\";\n})(ResourceScope || (ResourceScope = {}));\n/** Options for feature selection preference. */\nvar FeatureSelectionPreference;\n(function (FeatureSelectionPreference) {\n FeatureSelectionPreference[\"FEATURE_SELECTION_PREFERENCE_UNSPECIFIED\"] = \"FEATURE_SELECTION_PREFERENCE_UNSPECIFIED\";\n FeatureSelectionPreference[\"PRIORITIZE_QUALITY\"] = \"PRIORITIZE_QUALITY\";\n FeatureSelectionPreference[\"BALANCED\"] = \"BALANCED\";\n FeatureSelectionPreference[\"PRIORITIZE_COST\"] = \"PRIORITIZE_COST\";\n})(FeatureSelectionPreference || (FeatureSelectionPreference = {}));\n/** Enum representing the Gemini Enterprise Agent Platform embedding API to use. */\nvar EmbeddingApiType;\n(function (EmbeddingApiType) {\n /**\n * predict API endpoint (default)\n */\n EmbeddingApiType[\"PREDICT\"] = \"PREDICT\";\n /**\n * embedContent API Endpoint\n */\n EmbeddingApiType[\"EMBED_CONTENT\"] = \"EMBED_CONTENT\";\n})(EmbeddingApiType || (EmbeddingApiType = {}));\n/** Enum that controls the safety filter level for objectionable content. */\nvar SafetyFilterLevel;\n(function (SafetyFilterLevel) {\n SafetyFilterLevel[\"BLOCK_LOW_AND_ABOVE\"] = \"BLOCK_LOW_AND_ABOVE\";\n SafetyFilterLevel[\"BLOCK_MEDIUM_AND_ABOVE\"] = \"BLOCK_MEDIUM_AND_ABOVE\";\n SafetyFilterLevel[\"BLOCK_ONLY_HIGH\"] = \"BLOCK_ONLY_HIGH\";\n SafetyFilterLevel[\"BLOCK_NONE\"] = \"BLOCK_NONE\";\n})(SafetyFilterLevel || (SafetyFilterLevel = {}));\n/** Enum that specifies the language of the text in the prompt. */\nvar ImagePromptLanguage;\n(function (ImagePromptLanguage) {\n /**\n * Auto-detect the language.\n */\n ImagePromptLanguage[\"auto\"] = \"auto\";\n /**\n * English\n */\n ImagePromptLanguage[\"en\"] = \"en\";\n /**\n * Japanese\n */\n ImagePromptLanguage[\"ja\"] = \"ja\";\n /**\n * Korean\n */\n ImagePromptLanguage[\"ko\"] = \"ko\";\n /**\n * Hindi\n */\n ImagePromptLanguage[\"hi\"] = \"hi\";\n /**\n * Chinese\n */\n ImagePromptLanguage[\"zh\"] = \"zh\";\n /**\n * Portuguese\n */\n ImagePromptLanguage[\"pt\"] = \"pt\";\n /**\n * Spanish\n */\n ImagePromptLanguage[\"es\"] = \"es\";\n})(ImagePromptLanguage || (ImagePromptLanguage = {}));\n/** Enum representing the mask mode of a mask reference image. */\nvar MaskReferenceMode;\n(function (MaskReferenceMode) {\n MaskReferenceMode[\"MASK_MODE_DEFAULT\"] = \"MASK_MODE_DEFAULT\";\n MaskReferenceMode[\"MASK_MODE_USER_PROVIDED\"] = \"MASK_MODE_USER_PROVIDED\";\n MaskReferenceMode[\"MASK_MODE_BACKGROUND\"] = \"MASK_MODE_BACKGROUND\";\n MaskReferenceMode[\"MASK_MODE_FOREGROUND\"] = \"MASK_MODE_FOREGROUND\";\n MaskReferenceMode[\"MASK_MODE_SEMANTIC\"] = \"MASK_MODE_SEMANTIC\";\n})(MaskReferenceMode || (MaskReferenceMode = {}));\n/** Enum representing the control type of a control reference image. */\nvar ControlReferenceType;\n(function (ControlReferenceType) {\n ControlReferenceType[\"CONTROL_TYPE_DEFAULT\"] = \"CONTROL_TYPE_DEFAULT\";\n ControlReferenceType[\"CONTROL_TYPE_CANNY\"] = \"CONTROL_TYPE_CANNY\";\n ControlReferenceType[\"CONTROL_TYPE_SCRIBBLE\"] = \"CONTROL_TYPE_SCRIBBLE\";\n ControlReferenceType[\"CONTROL_TYPE_FACE_MESH\"] = \"CONTROL_TYPE_FACE_MESH\";\n})(ControlReferenceType || (ControlReferenceType = {}));\n/** Enum representing the subject type of a subject reference image. */\nvar SubjectReferenceType;\n(function (SubjectReferenceType) {\n SubjectReferenceType[\"SUBJECT_TYPE_DEFAULT\"] = \"SUBJECT_TYPE_DEFAULT\";\n SubjectReferenceType[\"SUBJECT_TYPE_PERSON\"] = \"SUBJECT_TYPE_PERSON\";\n SubjectReferenceType[\"SUBJECT_TYPE_ANIMAL\"] = \"SUBJECT_TYPE_ANIMAL\";\n SubjectReferenceType[\"SUBJECT_TYPE_PRODUCT\"] = \"SUBJECT_TYPE_PRODUCT\";\n})(SubjectReferenceType || (SubjectReferenceType = {}));\n/** Enum representing the editing mode. */\nvar EditMode;\n(function (EditMode) {\n EditMode[\"EDIT_MODE_DEFAULT\"] = \"EDIT_MODE_DEFAULT\";\n EditMode[\"EDIT_MODE_INPAINT_REMOVAL\"] = \"EDIT_MODE_INPAINT_REMOVAL\";\n EditMode[\"EDIT_MODE_INPAINT_INSERTION\"] = \"EDIT_MODE_INPAINT_INSERTION\";\n EditMode[\"EDIT_MODE_OUTPAINT\"] = \"EDIT_MODE_OUTPAINT\";\n EditMode[\"EDIT_MODE_CONTROLLED_EDITING\"] = \"EDIT_MODE_CONTROLLED_EDITING\";\n EditMode[\"EDIT_MODE_STYLE\"] = \"EDIT_MODE_STYLE\";\n EditMode[\"EDIT_MODE_BGSWAP\"] = \"EDIT_MODE_BGSWAP\";\n EditMode[\"EDIT_MODE_PRODUCT_IMAGE\"] = \"EDIT_MODE_PRODUCT_IMAGE\";\n})(EditMode || (EditMode = {}));\n/** Enum that represents the segmentation mode. */\nvar SegmentMode;\n(function (SegmentMode) {\n SegmentMode[\"FOREGROUND\"] = \"FOREGROUND\";\n SegmentMode[\"BACKGROUND\"] = \"BACKGROUND\";\n SegmentMode[\"PROMPT\"] = \"PROMPT\";\n SegmentMode[\"SEMANTIC\"] = \"SEMANTIC\";\n SegmentMode[\"INTERACTIVE\"] = \"INTERACTIVE\";\n})(SegmentMode || (SegmentMode = {}));\n/** Enum for the reference type of a video generation reference image. */\nvar VideoGenerationReferenceType;\n(function (VideoGenerationReferenceType) {\n /**\n * A reference image that provides assets to the generated video,\n such as the scene, an object, a character, etc.\n */\n VideoGenerationReferenceType[\"ASSET\"] = \"ASSET\";\n /**\n * A reference image that provides aesthetics including colors,\n lighting, texture, etc., to be used as the style of the generated video,\n such as 'anime', 'photography', 'origami', etc.\n */\n VideoGenerationReferenceType[\"STYLE\"] = \"STYLE\";\n})(VideoGenerationReferenceType || (VideoGenerationReferenceType = {}));\n/** Enum for the mask mode of a video generation mask. */\nvar VideoGenerationMaskMode;\n(function (VideoGenerationMaskMode) {\n /**\n * The image mask contains a masked rectangular region which is\n applied on the first frame of the input video. The object described in\n the prompt is inserted into this region and will appear in subsequent\n frames.\n */\n VideoGenerationMaskMode[\"INSERT\"] = \"INSERT\";\n /**\n * The image mask is used to determine an object in the\n first video frame to track. This object is removed from the video.\n */\n VideoGenerationMaskMode[\"REMOVE\"] = \"REMOVE\";\n /**\n * The image mask is used to determine a region in the\n video. Objects in this region will be removed.\n */\n VideoGenerationMaskMode[\"REMOVE_STATIC\"] = \"REMOVE_STATIC\";\n /**\n * The image mask contains a masked rectangular region where\n the input video will go. The remaining area will be generated. Video\n masks are not supported.\n */\n VideoGenerationMaskMode[\"OUTPAINT\"] = \"OUTPAINT\";\n})(VideoGenerationMaskMode || (VideoGenerationMaskMode = {}));\n/** Enum that controls the compression quality of the generated videos. */\nvar VideoCompressionQuality;\n(function (VideoCompressionQuality) {\n /**\n * Optimized video compression quality. This will produce videos\n with a compressed, smaller file size.\n */\n VideoCompressionQuality[\"OPTIMIZED\"] = \"OPTIMIZED\";\n /**\n * Lossless video compression quality. This will produce videos\n with a larger file size.\n */\n VideoCompressionQuality[\"LOSSLESS\"] = \"LOSSLESS\";\n})(VideoCompressionQuality || (VideoCompressionQuality = {}));\n/** Resize mode for the image input for video generation. */\nvar ImageResizeMode;\n(function (ImageResizeMode) {\n /**\n * Crop the image to fit the correct aspect ratio (so we lose parts\n of the image in the process).\n */\n ImageResizeMode[\"CROP\"] = \"CROP\";\n /**\n * Pad the image to fit the correct aspect ratio (so we don't lose\n any parts of the image in the process).\n */\n ImageResizeMode[\"PAD\"] = \"PAD\";\n})(ImageResizeMode || (ImageResizeMode = {}));\n/** Enum representing the tuning method. */\nvar TuningMethod;\n(function (TuningMethod) {\n /**\n * Supervised fine tuning.\n */\n TuningMethod[\"SUPERVISED_FINE_TUNING\"] = \"SUPERVISED_FINE_TUNING\";\n /**\n * Preference optimization tuning.\n */\n TuningMethod[\"PREFERENCE_TUNING\"] = \"PREFERENCE_TUNING\";\n /**\n * Distillation tuning.\n */\n TuningMethod[\"DISTILLATION\"] = \"DISTILLATION\";\n /**\n * Reinforcement tuning.\n */\n TuningMethod[\"REINFORCEMENT_TUNING\"] = \"REINFORCEMENT_TUNING\";\n})(TuningMethod || (TuningMethod = {}));\n/** State for the lifecycle of a File. */\nvar FileState;\n(function (FileState) {\n FileState[\"STATE_UNSPECIFIED\"] = \"STATE_UNSPECIFIED\";\n FileState[\"PROCESSING\"] = \"PROCESSING\";\n FileState[\"ACTIVE\"] = \"ACTIVE\";\n FileState[\"FAILED\"] = \"FAILED\";\n})(FileState || (FileState = {}));\n/** Source of the File. */\nvar FileSource;\n(function (FileSource) {\n FileSource[\"SOURCE_UNSPECIFIED\"] = \"SOURCE_UNSPECIFIED\";\n FileSource[\"UPLOADED\"] = \"UPLOADED\";\n FileSource[\"GENERATED\"] = \"GENERATED\";\n FileSource[\"REGISTERED\"] = \"REGISTERED\";\n})(FileSource || (FileSource = {}));\n/** The reason why the turn is complete. */\nvar TurnCompleteReason;\n(function (TurnCompleteReason) {\n /**\n * Default value. Reason is unspecified.\n */\n TurnCompleteReason[\"TURN_COMPLETE_REASON_UNSPECIFIED\"] = \"TURN_COMPLETE_REASON_UNSPECIFIED\";\n /**\n * The function call generated by the model is invalid.\n */\n TurnCompleteReason[\"MALFORMED_FUNCTION_CALL\"] = \"MALFORMED_FUNCTION_CALL\";\n /**\n * The response is rejected by the model.\n */\n TurnCompleteReason[\"RESPONSE_REJECTED\"] = \"RESPONSE_REJECTED\";\n /**\n * Needs more input from the user.\n */\n TurnCompleteReason[\"NEED_MORE_INPUT\"] = \"NEED_MORE_INPUT\";\n /**\n * Input content is prohibited.\n */\n TurnCompleteReason[\"PROHIBITED_INPUT_CONTENT\"] = \"PROHIBITED_INPUT_CONTENT\";\n /**\n * Input image contains prohibited content.\n */\n TurnCompleteReason[\"IMAGE_PROHIBITED_INPUT_CONTENT\"] = \"IMAGE_PROHIBITED_INPUT_CONTENT\";\n /**\n * Input text contains prominent person reference.\n */\n TurnCompleteReason[\"INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED\"] = \"INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED\";\n /**\n * Input image contains celebrity.\n */\n TurnCompleteReason[\"INPUT_IMAGE_CELEBRITY\"] = \"INPUT_IMAGE_CELEBRITY\";\n /**\n * Input image contains photo realistic child.\n */\n TurnCompleteReason[\"INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED\"] = \"INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED\";\n /**\n * Input text contains NCII content.\n */\n TurnCompleteReason[\"INPUT_TEXT_NCII_PROHIBITED\"] = \"INPUT_TEXT_NCII_PROHIBITED\";\n /**\n * Other input safety issue.\n */\n TurnCompleteReason[\"INPUT_OTHER\"] = \"INPUT_OTHER\";\n /**\n * Input contains IP violation.\n */\n TurnCompleteReason[\"INPUT_IP_PROHIBITED\"] = \"INPUT_IP_PROHIBITED\";\n /**\n * Input matched blocklist.\n */\n TurnCompleteReason[\"BLOCKLIST\"] = \"BLOCKLIST\";\n /**\n * Input is unsafe for image generation.\n */\n TurnCompleteReason[\"UNSAFE_PROMPT_FOR_IMAGE_GENERATION\"] = \"UNSAFE_PROMPT_FOR_IMAGE_GENERATION\";\n /**\n * Generated image failed safety check.\n */\n TurnCompleteReason[\"GENERATED_IMAGE_SAFETY\"] = \"GENERATED_IMAGE_SAFETY\";\n /**\n * Generated content failed safety check.\n */\n TurnCompleteReason[\"GENERATED_CONTENT_SAFETY\"] = \"GENERATED_CONTENT_SAFETY\";\n /**\n * Generated audio failed safety check.\n */\n TurnCompleteReason[\"GENERATED_AUDIO_SAFETY\"] = \"GENERATED_AUDIO_SAFETY\";\n /**\n * Generated video failed safety check.\n */\n TurnCompleteReason[\"GENERATED_VIDEO_SAFETY\"] = \"GENERATED_VIDEO_SAFETY\";\n /**\n * Generated content is prohibited.\n */\n TurnCompleteReason[\"GENERATED_CONTENT_PROHIBITED\"] = \"GENERATED_CONTENT_PROHIBITED\";\n /**\n * Generated content matched blocklist.\n */\n TurnCompleteReason[\"GENERATED_CONTENT_BLOCKLIST\"] = \"GENERATED_CONTENT_BLOCKLIST\";\n /**\n * Generated image is prohibited.\n */\n TurnCompleteReason[\"GENERATED_IMAGE_PROHIBITED\"] = \"GENERATED_IMAGE_PROHIBITED\";\n /**\n * Generated image contains celebrity.\n */\n TurnCompleteReason[\"GENERATED_IMAGE_CELEBRITY\"] = \"GENERATED_IMAGE_CELEBRITY\";\n /**\n * Generated image contains prominent people detected by rewriter.\n */\n TurnCompleteReason[\"GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER\"] = \"GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER\";\n /**\n * Generated image contains identifiable people.\n */\n TurnCompleteReason[\"GENERATED_IMAGE_IDENTIFIABLE_PEOPLE\"] = \"GENERATED_IMAGE_IDENTIFIABLE_PEOPLE\";\n /**\n * Generated image contains minors.\n */\n TurnCompleteReason[\"GENERATED_IMAGE_MINORS\"] = \"GENERATED_IMAGE_MINORS\";\n /**\n * Generated image contains IP violation.\n */\n TurnCompleteReason[\"OUTPUT_IMAGE_IP_PROHIBITED\"] = \"OUTPUT_IMAGE_IP_PROHIBITED\";\n /**\n * Other generated content issue.\n */\n TurnCompleteReason[\"GENERATED_OTHER\"] = \"GENERATED_OTHER\";\n /**\n * Max regeneration attempts reached.\n */\n TurnCompleteReason[\"MAX_REGENERATION_REACHED\"] = \"MAX_REGENERATION_REACHED\";\n})(TurnCompleteReason || (TurnCompleteReason = {}));\n/** The different activity states of the live session. */\nvar InteractionStatus;\n(function (InteractionStatus) {\n /**\n * Unspecified interaction status.\n */\n InteractionStatus[\"INTERACTION_STATUS_UNSPECIFIED\"] = \"INTERACTION_STATUS_UNSPECIFIED\";\n /**\n * The server is still actively processing user input or running background reasoning. More model output may follow.\n */\n InteractionStatus[\"IN_PROGRESS\"] = \"IN_PROGRESS\";\n /**\n * Deprecated: Use IDLE instead.\n */\n InteractionStatus[\"REQUIRES_ACTION\"] = \"REQUIRES_ACTION\";\n /**\n * The server has completed all processing and background reasoning.\n */\n InteractionStatus[\"IDLE\"] = \"IDLE\";\n})(InteractionStatus || (InteractionStatus = {}));\n/** The type of the VAD signal. */\nvar VadSignalType;\n(function (VadSignalType) {\n /**\n * The default is VAD_SIGNAL_TYPE_UNSPECIFIED.\n */\n VadSignalType[\"VAD_SIGNAL_TYPE_UNSPECIFIED\"] = \"VAD_SIGNAL_TYPE_UNSPECIFIED\";\n /**\n * Start of sentence signal.\n */\n VadSignalType[\"VAD_SIGNAL_TYPE_SOS\"] = \"VAD_SIGNAL_TYPE_SOS\";\n /**\n * End of sentence signal.\n */\n VadSignalType[\"VAD_SIGNAL_TYPE_EOS\"] = \"VAD_SIGNAL_TYPE_EOS\";\n})(VadSignalType || (VadSignalType = {}));\n/** The type of the voice activity signal. */\nvar VoiceActivityType;\n(function (VoiceActivityType) {\n /**\n * The default is VOICE_ACTIVITY_TYPE_UNSPECIFIED.\n */\n VoiceActivityType[\"TYPE_UNSPECIFIED\"] = \"TYPE_UNSPECIFIED\";\n /**\n * Start of sentence signal.\n */\n VoiceActivityType[\"ACTIVITY_START\"] = \"ACTIVITY_START\";\n /**\n * End of sentence signal.\n */\n VoiceActivityType[\"ACTIVITY_END\"] = \"ACTIVITY_END\";\n})(VoiceActivityType || (VoiceActivityType = {}));\n/** Start of speech sensitivity. */\nvar StartSensitivity;\n(function (StartSensitivity) {\n /**\n * The default is START_SENSITIVITY_LOW for Gemini Enterprise Agent Platform and START_SENSITIVITY_HIGH for Gemini Live.\n */\n StartSensitivity[\"START_SENSITIVITY_UNSPECIFIED\"] = \"START_SENSITIVITY_UNSPECIFIED\";\n /**\n * Automatic detection will detect the start of speech more often.\n */\n StartSensitivity[\"START_SENSITIVITY_HIGH\"] = \"START_SENSITIVITY_HIGH\";\n /**\n * Automatic detection will detect the start of speech less often.\n */\n StartSensitivity[\"START_SENSITIVITY_LOW\"] = \"START_SENSITIVITY_LOW\";\n})(StartSensitivity || (StartSensitivity = {}));\n/** End of speech sensitivity. */\nvar EndSensitivity;\n(function (EndSensitivity) {\n /**\n * The default is END_SENSITIVITY_LOW for Gemini Enterprise Agent Platform and END_SENSITIVITY_HIGH for Gemini Live.\n */\n EndSensitivity[\"END_SENSITIVITY_UNSPECIFIED\"] = \"END_SENSITIVITY_UNSPECIFIED\";\n /**\n * Automatic detection ends speech more often.\n */\n EndSensitivity[\"END_SENSITIVITY_HIGH\"] = \"END_SENSITIVITY_HIGH\";\n /**\n * Automatic detection ends speech less often.\n */\n EndSensitivity[\"END_SENSITIVITY_LOW\"] = \"END_SENSITIVITY_LOW\";\n})(EndSensitivity || (EndSensitivity = {}));\n/** The different ways of handling user activity. */\nvar ActivityHandling;\n(function (ActivityHandling) {\n /**\n * If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.\n */\n ActivityHandling[\"ACTIVITY_HANDLING_UNSPECIFIED\"] = \"ACTIVITY_HANDLING_UNSPECIFIED\";\n /**\n * If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.\n */\n ActivityHandling[\"START_OF_ACTIVITY_INTERRUPTS\"] = \"START_OF_ACTIVITY_INTERRUPTS\";\n /**\n * The model's response will not be interrupted.\n */\n ActivityHandling[\"NO_INTERRUPTION\"] = \"NO_INTERRUPTION\";\n})(ActivityHandling || (ActivityHandling = {}));\n/** Options about which input is included in the user's turn. */\nvar TurnCoverage;\n(function (TurnCoverage) {\n /**\n * If unspecified, the default behavior is `TURN_INCLUDES_ONLY_ACTIVITY`.\n */\n TurnCoverage[\"TURN_COVERAGE_UNSPECIFIED\"] = \"TURN_COVERAGE_UNSPECIFIED\";\n /**\n * The users turn only includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream). This is the default behavior.\n */\n TurnCoverage[\"TURN_INCLUDES_ONLY_ACTIVITY\"] = \"TURN_INCLUDES_ONLY_ACTIVITY\";\n /**\n * The users turn includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).\n */\n TurnCoverage[\"TURN_INCLUDES_ALL_INPUT\"] = \"TURN_INCLUDES_ALL_INPUT\";\n /**\n * Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence.\n */\n TurnCoverage[\"TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO\"] = \"TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO\";\n})(TurnCoverage || (TurnCoverage = {}));\n/** Transcription mode. */\nvar AudioTranscriptionConfigMode;\n(function (AudioTranscriptionConfigMode) {\n /**\n * Unspecified transcription mode.\n */\n AudioTranscriptionConfigMode[\"MODE_UNSPECIFIED\"] = \"MODE_UNSPECIFIED\";\n /**\n * Verbatim transcription mode.\n */\n AudioTranscriptionConfigMode[\"VERBATIM\"] = \"VERBATIM\";\n /**\n * Smart transcription mode.\n */\n AudioTranscriptionConfigMode[\"SMART\"] = \"SMART\";\n})(AudioTranscriptionConfigMode || (AudioTranscriptionConfigMode = {}));\n/** Scale of the generated music. */\nvar Scale;\n(function (Scale) {\n /**\n * Default value. This value is unused.\n */\n Scale[\"SCALE_UNSPECIFIED\"] = \"SCALE_UNSPECIFIED\";\n /**\n * C major or A minor.\n */\n Scale[\"C_MAJOR_A_MINOR\"] = \"C_MAJOR_A_MINOR\";\n /**\n * Db major or Bb minor.\n */\n Scale[\"D_FLAT_MAJOR_B_FLAT_MINOR\"] = \"D_FLAT_MAJOR_B_FLAT_MINOR\";\n /**\n * D major or B minor.\n */\n Scale[\"D_MAJOR_B_MINOR\"] = \"D_MAJOR_B_MINOR\";\n /**\n * Eb major or C minor\n */\n Scale[\"E_FLAT_MAJOR_C_MINOR\"] = \"E_FLAT_MAJOR_C_MINOR\";\n /**\n * E major or Db minor.\n */\n Scale[\"E_MAJOR_D_FLAT_MINOR\"] = \"E_MAJOR_D_FLAT_MINOR\";\n /**\n * F major or D minor.\n */\n Scale[\"F_MAJOR_D_MINOR\"] = \"F_MAJOR_D_MINOR\";\n /**\n * Gb major or Eb minor.\n */\n Scale[\"G_FLAT_MAJOR_E_FLAT_MINOR\"] = \"G_FLAT_MAJOR_E_FLAT_MINOR\";\n /**\n * G major or E minor.\n */\n Scale[\"G_MAJOR_E_MINOR\"] = \"G_MAJOR_E_MINOR\";\n /**\n * Ab major or F minor.\n */\n Scale[\"A_FLAT_MAJOR_F_MINOR\"] = \"A_FLAT_MAJOR_F_MINOR\";\n /**\n * A major or Gb minor.\n */\n Scale[\"A_MAJOR_G_FLAT_MINOR\"] = \"A_MAJOR_G_FLAT_MINOR\";\n /**\n * Bb major or G minor.\n */\n Scale[\"B_FLAT_MAJOR_G_MINOR\"] = \"B_FLAT_MAJOR_G_MINOR\";\n /**\n * B major or Ab minor.\n */\n Scale[\"B_MAJOR_A_FLAT_MINOR\"] = \"B_MAJOR_A_FLAT_MINOR\";\n})(Scale || (Scale = {}));\n/** The mode of music generation. */\nvar MusicGenerationMode;\n(function (MusicGenerationMode) {\n /**\n * Rely on the server default generation mode.\n */\n MusicGenerationMode[\"MUSIC_GENERATION_MODE_UNSPECIFIED\"] = \"MUSIC_GENERATION_MODE_UNSPECIFIED\";\n /**\n * Steer text prompts to regions of latent space with higher quality\n music.\n */\n MusicGenerationMode[\"QUALITY\"] = \"QUALITY\";\n /**\n * Steer text prompts to regions of latent space with a larger\n diversity of music.\n */\n MusicGenerationMode[\"DIVERSITY\"] = \"DIVERSITY\";\n /**\n * Steer text prompts to regions of latent space more likely to\n generate music with vocals.\n */\n MusicGenerationMode[\"VOCALIZATION\"] = \"VOCALIZATION\";\n})(MusicGenerationMode || (MusicGenerationMode = {}));\n/** The playback control signal to apply to the music generation. */\nvar LiveMusicPlaybackControl;\n(function (LiveMusicPlaybackControl) {\n /**\n * This value is unused.\n */\n LiveMusicPlaybackControl[\"PLAYBACK_CONTROL_UNSPECIFIED\"] = \"PLAYBACK_CONTROL_UNSPECIFIED\";\n /**\n * Start generating the music.\n */\n LiveMusicPlaybackControl[\"PLAY\"] = \"PLAY\";\n /**\n * Hold the music generation. Use PLAY to resume from the current position.\n */\n LiveMusicPlaybackControl[\"PAUSE\"] = \"PAUSE\";\n /**\n * Stop the music generation and reset the context (prompts retained).\n Use PLAY to restart the music generation.\n */\n LiveMusicPlaybackControl[\"STOP\"] = \"STOP\";\n /**\n * Reset the context of the music generation without stopping it.\n Retains the current prompts and config.\n */\n LiveMusicPlaybackControl[\"RESET_CONTEXT\"] = \"RESET_CONTEXT\";\n})(LiveMusicPlaybackControl || (LiveMusicPlaybackControl = {}));\n/** The output from a server-side `ToolCall` execution.\n\nThis message contains the results of a tool invocation that was initiated by a\n`ToolCall` from the model. The client should pass this `ToolResponse` back to\nthe API in a subsequent turn within a `Content` message, along with the\ncorresponding `ToolCall`. */\nclass ToolResponse {\n}\n/** URI based data for function response. This data type is not supported in Gemini API. */\nclass FunctionResponseFileData {\n}\n/** Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field. */\nclass FunctionResponseBlob {\n}\n/** A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes. */\nclass FunctionResponsePart {\n}\n/**\n * Creates a `FunctionResponsePart` object from a `base64` encoded `string`.\n */\nfunction createFunctionResponsePartFromBase64(data, mimeType) {\n return {\n inlineData: {\n data: data,\n mimeType: mimeType,\n },\n };\n}\n/**\n * Creates a `FunctionResponsePart` object from a `URI` string.\n */\nfunction createFunctionResponsePartFromUri(uri, mimeType) {\n return {\n fileData: {\n fileUri: uri,\n mimeType: mimeType,\n },\n };\n}\n/** The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. */\nclass FunctionResponse {\n}\n/**\n * Creates a `Part` object from a `URI` string.\n */\nfunction createPartFromUri(uri, mimeType, mediaResolution) {\n return Object.assign({ fileData: {\n fileUri: uri,\n mimeType: mimeType,\n } }, (mediaResolution && { mediaResolution: { level: mediaResolution } }));\n}\n/**\n * Creates a `Part` object from a `text` string.\n */\nfunction createPartFromText(text) {\n return {\n text: text,\n };\n}\n/**\n * Creates a `Part` object from a `FunctionCall` object.\n */\nfunction createPartFromFunctionCall(name, args) {\n return {\n functionCall: {\n name: name,\n args: args,\n },\n };\n}\n/**\n * Creates a `Part` object from a `FunctionResponse` object.\n */\nfunction createPartFromFunctionResponse(id, name, response, parts = []) {\n return {\n functionResponse: Object.assign({ id: id, name: name, response: response }, (parts.length > 0 && { parts })),\n };\n}\n/**\n * Creates a `Part` object from a `base64` encoded `string`.\n */\nfunction createPartFromBase64(data, mimeType, mediaResolution) {\n return Object.assign({ inlineData: {\n data: data,\n mimeType: mimeType,\n } }, (mediaResolution && { mediaResolution: { level: mediaResolution } }));\n}\n/**\n * Creates a `Part` object from the `outcome` and `output` of a `CodeExecutionResult` object.\n */\nfunction createPartFromCodeExecutionResult(outcome, output) {\n return {\n codeExecutionResult: {\n outcome: outcome,\n output: output,\n },\n };\n}\n/**\n * Creates a `Part` object from the `code` and `language` of an `ExecutableCode` object.\n */\nfunction createPartFromExecutableCode(code, language) {\n return {\n executableCode: {\n code: code,\n language: language,\n },\n };\n}\nfunction _isPart(obj) {\n if (typeof obj === 'object' && obj !== null) {\n return ('fileData' in obj ||\n 'text' in obj ||\n 'functionCall' in obj ||\n 'functionResponse' in obj ||\n 'inlineData' in obj ||\n 'videoMetadata' in obj ||\n 'codeExecutionResult' in obj ||\n 'executableCode' in obj);\n }\n return false;\n}\nfunction _toParts(partOrString) {\n const parts = [];\n if (typeof partOrString === 'string') {\n parts.push(createPartFromText(partOrString));\n }\n else if (_isPart(partOrString)) {\n parts.push(partOrString);\n }\n else if (Array.isArray(partOrString)) {\n if (partOrString.length === 0) {\n throw new Error('partOrString cannot be an empty array');\n }\n for (const part of partOrString) {\n if (typeof part === 'string') {\n parts.push(createPartFromText(part));\n }\n else if (_isPart(part)) {\n parts.push(part);\n }\n else {\n throw new Error('element in PartUnion must be a Part object or string');\n }\n }\n }\n else {\n throw new Error('partOrString must be a Part object, string, or array');\n }\n return parts;\n}\n/**\n * Creates a `Content` object with a user role from a `PartListUnion` object or `string`.\n */\nfunction createUserContent(partOrString) {\n return {\n role: 'user',\n parts: _toParts(partOrString),\n };\n}\n/**\n * Creates a `Content` object with a model role from a `PartListUnion` object or `string`.\n */\nfunction createModelContent(partOrString) {\n return {\n role: 'model',\n parts: _toParts(partOrString),\n };\n}\n/** A wrapper class for the http response. */\nclass HttpResponse {\n constructor(response) {\n // Process the headers.\n const headers = {};\n for (const pair of response.headers.entries()) {\n headers[pair[0]] = pair[1];\n }\n this.headers = headers;\n // Keep the original response.\n this.responseInternal = response;\n }\n json() {\n return this.responseInternal.json();\n }\n}\n/** Content filter results for a prompt sent in the request. Note: This is sent only in the first stream chunk and only if no candidates were generated due to content violations. */\nclass GenerateContentResponsePromptFeedback {\n}\n/** Usage metadata about the content generation request and response. This message provides a detailed breakdown of token usage and other relevant metrics. This data type is not supported in Gemini API. */\nclass GenerateContentResponseUsageMetadata {\n}\n/** Response message for PredictionService.GenerateContent. */\nclass GenerateContentResponse {\n /**\n * Returns the concatenation of all text parts from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the text from the first\n * one will be returned.\n * If there are non-text parts in the response, the concatenation of all text\n * parts will be returned, and a warning will be logged.\n * If there are thought parts in the response, the concatenation of all text\n * parts excluding the thought parts will be returned.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents:\n * 'Why is the sky blue?',\n * });\n *\n * console.debug(response.text);\n * ```\n */\n get text() {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n if (((_d = (_c = (_b = (_a = this.candidates) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.parts) === null || _d === void 0 ? void 0 : _d.length) === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn('there are multiple candidates in the response, returning text from the first one.');\n }\n let text = '';\n let anyTextPartText = false;\n const nonTextParts = [];\n for (const part of (_h = (_g = (_f = (_e = this.candidates) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.content) === null || _g === void 0 ? void 0 : _g.parts) !== null && _h !== void 0 ? _h : []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (fieldName !== 'text' &&\n fieldName !== 'thought' &&\n fieldName !== 'thoughtSignature' &&\n (fieldValue !== null || fieldValue !== undefined)) {\n nonTextParts.push(fieldName);\n }\n }\n if (typeof part.text === 'string') {\n if (typeof part.thought === 'boolean' && part.thought) {\n continue;\n }\n anyTextPartText = true;\n text += part.text;\n }\n }\n if (nonTextParts.length > 0) {\n console.warn(`there are non-text parts ${nonTextParts} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`);\n }\n // part.text === '' is different from part.text is null\n return anyTextPartText ? text : undefined;\n }\n /**\n * Returns the concatenation of all inline data parts from the first candidate\n * in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the inline data from the\n * first one will be returned. If there are non-inline data parts in the\n * response, the concatenation of all inline data parts will be returned, and\n * a warning will be logged.\n */\n get data() {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n if (((_d = (_c = (_b = (_a = this.candidates) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.parts) === null || _d === void 0 ? void 0 : _d.length) === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn('there are multiple candidates in the response, returning data from the first one.');\n }\n let data = '';\n const nonDataParts = [];\n for (const part of (_h = (_g = (_f = (_e = this.candidates) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.content) === null || _g === void 0 ? void 0 : _g.parts) !== null && _h !== void 0 ? _h : []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (fieldName !== 'inlineData' &&\n (fieldValue !== null || fieldValue !== undefined)) {\n nonDataParts.push(fieldName);\n }\n }\n if (part.inlineData && typeof part.inlineData.data === 'string') {\n data += atob(part.inlineData.data);\n }\n }\n if (nonDataParts.length > 0) {\n console.warn(`there are non-data parts ${nonDataParts} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`);\n }\n return data.length > 0 ? btoa(data) : undefined;\n }\n /**\n * Returns the function calls from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the function calls from\n * the first one will be returned.\n * If there are no function calls in the response, undefined will be returned.\n *\n * @example\n * ```ts\n * const controlLightFunctionDeclaration: FunctionDeclaration = {\n * name: 'controlLight',\n * parameters: {\n * type: Type.OBJECT,\n * description: 'Set the brightness and color temperature of a room light.',\n * properties: {\n * brightness: {\n * type: Type.NUMBER,\n * description:\n * 'Light level from 0 to 100. Zero is off and 100 is full brightness.',\n * },\n * colorTemperature: {\n * type: Type.STRING,\n * description:\n * 'Color temperature of the light fixture which can be `daylight`, `cool` or `warm`.',\n * },\n * },\n * required: ['brightness', 'colorTemperature'],\n * };\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents: 'Dim the lights so the room feels cozy and warm.',\n * config: {\n * tools: [{functionDeclarations: [controlLightFunctionDeclaration]}],\n * toolConfig: {\n * functionCallingConfig: {\n * mode: FunctionCallingConfigMode.ANY,\n * allowedFunctionNames: ['controlLight'],\n * },\n * },\n * },\n * });\n * console.debug(JSON.stringify(response.functionCalls));\n * ```\n */\n get functionCalls() {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n if (((_d = (_c = (_b = (_a = this.candidates) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.parts) === null || _d === void 0 ? void 0 : _d.length) === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn('there are multiple candidates in the response, returning function calls from the first one.');\n }\n const functionCalls = (_h = (_g = (_f = (_e = this.candidates) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.content) === null || _g === void 0 ? void 0 : _g.parts) === null || _h === void 0 ? void 0 : _h.filter((part) => part.functionCall).map((part) => part.functionCall).filter((functionCall) => functionCall !== undefined);\n if ((functionCalls === null || functionCalls === void 0 ? void 0 : functionCalls.length) === 0) {\n return undefined;\n }\n return functionCalls;\n }\n /**\n * Returns the first executable code from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the executable code from\n * the first one will be returned.\n * If there are no executable code in the response, undefined will be\n * returned.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents:\n * 'What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50.'\n * config: {\n * tools: [{codeExecution: {}}],\n * },\n * });\n *\n * console.debug(response.executableCode);\n * ```\n */\n get executableCode() {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j;\n if (((_d = (_c = (_b = (_a = this.candidates) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.parts) === null || _d === void 0 ? void 0 : _d.length) === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn('there are multiple candidates in the response, returning executable code from the first one.');\n }\n const executableCode = (_h = (_g = (_f = (_e = this.candidates) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.content) === null || _g === void 0 ? void 0 : _g.parts) === null || _h === void 0 ? void 0 : _h.filter((part) => part.executableCode).map((part) => part.executableCode).filter((executableCode) => executableCode !== undefined);\n if ((executableCode === null || executableCode === void 0 ? void 0 : executableCode.length) === 0) {\n return undefined;\n }\n return (_j = executableCode === null || executableCode === void 0 ? void 0 : executableCode[0]) === null || _j === void 0 ? void 0 : _j.code;\n }\n /**\n * Returns the first code execution result from the first candidate in the response.\n *\n * @remarks\n * If there are multiple candidates in the response, the code execution result from\n * the first one will be returned.\n * If there are no code execution result in the response, undefined will be returned.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents:\n * 'What is the sum of the first 50 prime numbers? Generate and run code for the calculation, and make sure you get all 50.'\n * config: {\n * tools: [{codeExecution: {}}],\n * },\n * });\n *\n * console.debug(response.codeExecutionResult);\n * ```\n */\n get codeExecutionResult() {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j;\n if (((_d = (_c = (_b = (_a = this.candidates) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.content) === null || _c === void 0 ? void 0 : _c.parts) === null || _d === void 0 ? void 0 : _d.length) === 0) {\n return undefined;\n }\n if (this.candidates && this.candidates.length > 1) {\n console.warn('there are multiple candidates in the response, returning code execution result from the first one.');\n }\n const codeExecutionResult = (_h = (_g = (_f = (_e = this.candidates) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.content) === null || _g === void 0 ? void 0 : _g.parts) === null || _h === void 0 ? void 0 : _h.filter((part) => part.codeExecutionResult).map((part) => part.codeExecutionResult).filter((codeExecutionResult) => codeExecutionResult !== undefined);\n if ((codeExecutionResult === null || codeExecutionResult === void 0 ? void 0 : codeExecutionResult.length) === 0) {\n return undefined;\n }\n return (_j = codeExecutionResult === null || codeExecutionResult === void 0 ? void 0 : codeExecutionResult[0]) === null || _j === void 0 ? void 0 : _j.output;\n }\n}\n/** Response for the embed_content method. */\nclass EmbedContentResponse {\n}\n/** The output images response. */\nclass GenerateImagesResponse {\n}\n/** Response for the request to edit an image. */\nclass EditImageResponse {\n}\nclass UpscaleImageResponse {\n}\n/** The output images response. */\nclass RecontextImageResponse {\n}\n/** The output images response. */\nclass SegmentImageResponse {\n}\nclass ListModelsResponse {\n}\nclass DeleteModelResponse {\n}\n/** Configuration for audio-specific output formatting. */\nclass AudioResponseFormat {\n}\n/** Configuration for image-specific output formatting. */\nclass ImageResponseFormat {\n}\n/** Configuration for text-specific output formatting. */\nclass TextResponseFormat {\n}\n/** Configuration for video-specific output formatting. This data type is not supported in Gemini API. */\nclass VideoResponseFormat {\n}\n/** Configuration for the model to configure output formatting and delivery. This data type is not supported in Gemini API. */\nclass ResponseFormat {\n}\n/** Response for counting tokens. */\nclass CountTokensResponse {\n}\n/** Response for computing tokens. */\nclass ComputeTokensResponse {\n}\n/** Response with generated videos. */\nclass GenerateVideosResponse {\n}\n/** A video generation operation. */\nclass GenerateVideosOperation {\n /**\n * Instantiates an Operation of the same type as the one being called with the fields set from the API response.\n */\n _fromAPIResponse({ apiResponse, _isVertexAI, }) {\n const operation = new GenerateVideosOperation();\n let response;\n const op = apiResponse;\n if (_isVertexAI) {\n response = generateVideosOperationFromVertex$1(op);\n }\n else {\n response = generateVideosOperationFromMldev$1(op);\n }\n Object.assign(operation, response);\n return operation;\n }\n}\n/** Defines how to parse sample response config for reinforcement tuning. The parsed response (i.e., substring) will be passed to the reward functions. For example, the input prompt might be: > \"Perform step-by-step thoughts first to problem A, finally output answer in the <ans> </ans> block.\" The sample response from the model under tuning might look like: > \"<ans>Yes</ans>\" Here, users can define the following parse config: ``` { \"parseType\": \"REGEX_EXTRACT\", \"regexExtractExpression\": \".*(.*?)\" } ``` The resulting parsed response would be `\"Yes\"` and will be passed to the reward functions for evaluating rewards. This data type is not supported in Gemini API. */\nclass ReinforcementTuningParseResponseConfig {\n}\n/** Scores responses by directly converting the parsed autorater response to a float reward. Note: Reward is clipped to be within `[-1, 1]`, i.e., `reward = max(min(reward, 1.0), -1.0)`. This data type is not supported in Gemini API. */\nclass ReinforcementTuningAutoraterScorerParsedResponseConversionScorer {\n}\n/** The results from an evaluation run performed by the EvaluationService. This data type is not supported in Gemini API. */\nclass EvaluateDatasetResponse {\n}\n/** Response for the list tuning jobs method. */\nclass ListTuningJobsResponse {\n}\n/** Empty response for tunings.cancel method. */\nclass CancelTuningJobResponse {\n}\n/** Response for the validate_reward method.\n\nContains the computed reward for a reinforcement tuning reward\nconfiguration. */\nclass ValidateRewardResponse {\n}\n/** Empty response for caches.delete method. */\nclass DeleteCachedContentResponse {\n}\nclass ListCachedContentsResponse {\n}\n/** Config for documents.list return value. */\nclass ListDocumentsResponse {\n}\n/** Config for file_search_stores.list return value. */\nclass ListFileSearchStoresResponse {\n}\n/** Response for the resumable upload method. */\nclass UploadToFileSearchStoreResumableResponse {\n}\n/** Response for ImportFile to import a File API file with a file search store. */\nclass ImportFileResponse {\n}\n/** Long-running operation for importing a file to a FileSearchStore. */\nclass ImportFileOperation {\n /**\n * Instantiates an Operation of the same type as the one being called with the fields set from the API response.\n */\n _fromAPIResponse({ apiResponse, _isVertexAI, }) {\n const operation = new ImportFileOperation();\n const op = apiResponse;\n const response = importFileOperationFromMldev$1(op);\n Object.assign(operation, response);\n return operation;\n }\n}\n/** Response for the list files method. */\nclass ListFilesResponse {\n}\n/** Response for the create file method. */\nclass CreateFileResponse {\n}\n/** Response for the delete file method. */\nclass DeleteFileResponse {\n}\n/** Response for the _register file method. */\nclass RegisterFilesResponse {\n}\n/** Config for `inlined_responses` parameter. */\nclass InlinedResponse {\n}\n/** Config for `response` parameter. */\nclass SingleEmbedContentResponse {\n}\n/** Config for `inlined_embedding_responses` parameter. */\nclass InlinedEmbedContentResponse {\n}\n/** Config for batches.list return value. */\nclass ListBatchJobsResponse {\n}\n/** Represents a single response in a replay. */\nclass ReplayResponse {\n}\n/** A raw reference image.\n\nA raw reference image represents the base image to edit, provided by the user.\nIt can optionally be provided in addition to a mask reference image or\na style reference image. */\nclass RawReferenceImage {\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI() {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_RAW',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n };\n return referenceImageAPI;\n }\n}\n/** A mask reference image.\n\nThis encapsulates either a mask image provided by the user and configs for\nthe user provided mask, or only config parameters for the model to generate\na mask.\n\nA mask image is an image whose non-zero values indicate where to edit the base\nimage. If the user provides a mask image, the mask must be in the same\ndimensions as the raw image. */\nclass MaskReferenceImage {\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI() {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_MASK',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n maskImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n/** A control reference image.\n\nThe image of the control reference image is either a control image provided\nby the user, or a regular image which the backend will use to generate a\ncontrol image of. In the case of the latter, the\nenable_control_image_computation field in the config should be set to True.\n\nA control image is an image that represents a sketch image of areas for the\nmodel to fill in based on the prompt. */\nclass ControlReferenceImage {\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI() {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_CONTROL',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n controlImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n/** A style reference image.\n\nThis encapsulates a style reference image provided by the user, and\nadditionally optional config parameters for the style reference image.\n\nA raw reference image can also be provided as a destination for the style to\nbe applied to. */\nclass StyleReferenceImage {\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI() {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_STYLE',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n styleImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n/** A subject reference image.\n\nThis encapsulates a subject reference image provided by the user, and\nadditionally optional config parameters for the subject reference image.\n\nA raw reference image can also be provided as a destination for the subject to\nbe applied to. */\nclass SubjectReferenceImage {\n /* Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI() {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_SUBJECT',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n subjectImageConfig: this.config,\n };\n return referenceImageAPI;\n }\n}\n/** A content reference image.\n\nA content reference image represents a subject to reference (ex. person,\nproduct, animal) provided by the user. It can optionally be provided in\naddition to a style reference image (ex. background, style reference). */\nclass ContentReferenceImage {\n /** Internal method to convert to ReferenceImageAPIInternal. */\n toReferenceImageAPI() {\n const referenceImageAPI = {\n referenceType: 'REFERENCE_TYPE_CONTENT',\n referenceImage: this.referenceImage,\n referenceId: this.referenceId,\n };\n return referenceImageAPI;\n }\n}\n/** Response message for API call. */\nclass LiveServerMessage {\n /**\n * Returns the concatenation of all text parts from the server content if present.\n *\n * @remarks\n * If there are non-text parts in the response, the concatenation of all text\n * parts will be returned, and a warning will be logged.\n */\n get text() {\n var _a, _b, _c;\n let text = '';\n let anyTextPartFound = false;\n const nonTextParts = [];\n for (const part of (_c = (_b = (_a = this.serverContent) === null || _a === void 0 ? void 0 : _a.modelTurn) === null || _b === void 0 ? void 0 : _b.parts) !== null && _c !== void 0 ? _c : []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (fieldName !== 'text' &&\n fieldName !== 'thought' &&\n fieldValue !== null) {\n nonTextParts.push(fieldName);\n }\n }\n if (typeof part.text === 'string') {\n if (typeof part.thought === 'boolean' && part.thought) {\n continue;\n }\n anyTextPartFound = true;\n text += part.text;\n }\n }\n if (nonTextParts.length > 0) {\n console.warn(`there are non-text parts ${nonTextParts} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`);\n }\n // part.text === '' is different from part.text is null\n return anyTextPartFound ? text : undefined;\n }\n /**\n * Returns the concatenation of all inline data parts from the server content if present.\n *\n * @remarks\n * If there are non-inline data parts in the\n * response, the concatenation of all inline data parts will be returned, and\n * a warning will be logged.\n */\n get data() {\n var _a, _b, _c;\n let data = '';\n const nonDataParts = [];\n for (const part of (_c = (_b = (_a = this.serverContent) === null || _a === void 0 ? void 0 : _a.modelTurn) === null || _b === void 0 ? void 0 : _b.parts) !== null && _c !== void 0 ? _c : []) {\n for (const [fieldName, fieldValue] of Object.entries(part)) {\n if (fieldName !== 'inlineData' && fieldValue !== null) {\n nonDataParts.push(fieldName);\n }\n }\n if (part.inlineData && typeof part.inlineData.data === 'string') {\n data += atob(part.inlineData.data);\n }\n }\n if (nonDataParts.length > 0) {\n console.warn(`there are non-data parts ${nonDataParts} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`);\n }\n return data.length > 0 ? btoa(data) : undefined;\n }\n}\n/** Client generated response to a `ToolCall` received from the server.\n\nIndividual `FunctionResponse` objects are matched to the respective\n`FunctionCall` objects by the `id` field.\n\nNote that in the unary and server-streaming GenerateContent APIs function\ncalling happens by exchanging the `Content` parts, while in the bidi\nGenerateContent APIs function calling happens over this dedicated set of\nmessages. */\nclass LiveClientToolResponse {\n}\n/** Parameters for sending tool responses to the live API. */\nclass LiveSendToolResponseParameters {\n constructor() {\n /** Tool responses to send to the session. */\n this.functionResponses = [];\n }\n}\n/** Response message for the LiveMusicClientMessage call. */\nclass LiveMusicServerMessage {\n /**\n * Returns the first audio chunk from the server content, if present.\n *\n * @remarks\n * If there are no audio chunks in the response, undefined will be returned.\n */\n get audioChunk() {\n if (this.serverContent &&\n this.serverContent.audioChunks &&\n this.serverContent.audioChunks.length > 0) {\n return this.serverContent.audioChunks[0];\n }\n return undefined;\n }\n}\n/** The response when long-running operation for uploading a file to a FileSearchStore complete. */\nclass UploadToFileSearchStoreResponse {\n}\n/** Long-running operation for uploading a file to a FileSearchStore. */\nclass UploadToFileSearchStoreOperation {\n /**\n * Instantiates an Operation of the same type as the one being called with the fields set from the API response.\n */\n _fromAPIResponse({ apiResponse, _isVertexAI, }) {\n const operation = new UploadToFileSearchStoreOperation();\n const op = apiResponse;\n const response = uploadToFileSearchStoreOperationFromMldev(op);\n Object.assign(operation, response);\n return operation;\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction tModel(apiClient, model) {\n if (!model || typeof model !== 'string') {\n throw new Error('model is required and must be a string');\n }\n if (model.includes('..') || model.includes('?') || model.includes('&')) {\n throw new Error('invalid model parameter');\n }\n if (apiClient.isVertexAI()) {\n if (model.startsWith('publishers/') ||\n model.startsWith('projects/') ||\n model.startsWith('models/')) {\n return model;\n }\n else if (model.indexOf('/') >= 0) {\n const parts = model.split('/', 2);\n return `publishers/${parts[0]}/models/${parts[1]}`;\n }\n else {\n return `publishers/google/models/${model}`;\n }\n }\n else {\n if (model.startsWith('models/') || model.startsWith('tunedModels/')) {\n return model;\n }\n else {\n return `models/${model}`;\n }\n }\n}\nfunction tCachesModel(apiClient, model) {\n const transformedModel = tModel(apiClient, model);\n if (!transformedModel) {\n return '';\n }\n if (transformedModel.startsWith('publishers/') && apiClient.isVertexAI()) {\n // vertex caches only support model name start with projects.\n return `projects/${apiClient.getProject()}/locations/${apiClient.getLocation()}/${transformedModel}`;\n }\n else if (transformedModel.startsWith('models/') && apiClient.isVertexAI()) {\n return `projects/${apiClient.getProject()}/locations/${apiClient.getLocation()}/publishers/google/${transformedModel}`;\n }\n else {\n return transformedModel;\n }\n}\nfunction tBlobs(blobs) {\n if (Array.isArray(blobs)) {\n return blobs.map((blob) => tBlob(blob));\n }\n else {\n return [tBlob(blobs)];\n }\n}\nfunction tBlob(blob) {\n if (typeof blob === 'object' && blob !== null) {\n return blob;\n }\n throw new Error(`Could not parse input as Blob. Unsupported blob type: ${typeof blob}`);\n}\nfunction tImageBlob(blob) {\n const transformedBlob = tBlob(blob);\n if (transformedBlob.mimeType &&\n transformedBlob.mimeType.startsWith('image/')) {\n return transformedBlob;\n }\n throw new Error(`Unsupported mime type: ${transformedBlob.mimeType}`);\n}\nfunction tAudioBlob(blob) {\n const transformedBlob = tBlob(blob);\n if (transformedBlob.mimeType &&\n transformedBlob.mimeType.startsWith('audio/')) {\n return transformedBlob;\n }\n throw new Error(`Unsupported mime type: ${transformedBlob.mimeType}`);\n}\nfunction tPart(origin) {\n if (origin === null || origin === undefined) {\n throw new Error('PartUnion is required');\n }\n if (typeof origin === 'object') {\n return origin;\n }\n if (typeof origin === 'string') {\n return { text: origin };\n }\n throw new Error(`Unsupported part type: ${typeof origin}`);\n}\nfunction tParts(origin) {\n if (origin === null ||\n origin === undefined ||\n (Array.isArray(origin) && origin.length === 0)) {\n throw new Error('PartListUnion is required');\n }\n if (Array.isArray(origin)) {\n return origin.map((item) => tPart(item));\n }\n return [tPart(origin)];\n}\nfunction _isContent(origin) {\n return (origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'parts' in origin &&\n Array.isArray(origin.parts));\n}\nfunction _isFunctionCallPart(origin) {\n return (origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'functionCall' in origin);\n}\nfunction _isFunctionResponsePart(origin) {\n return (origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'functionResponse' in origin);\n}\nfunction tContent(origin) {\n if (origin === null || origin === undefined) {\n throw new Error('ContentUnion is required');\n }\n if (_isContent(origin)) {\n // _isContent is a utility function that checks if the\n // origin is a Content.\n return origin;\n }\n return {\n role: 'user',\n parts: tParts(origin),\n };\n}\nfunction tContentsForEmbed(apiClient, origin) {\n if (!origin) {\n return [];\n }\n if (apiClient.isVertexAI() && Array.isArray(origin)) {\n return origin.flatMap((item) => {\n const content = tContent(item);\n if (content.parts &&\n content.parts.length > 0 &&\n content.parts[0].text !== undefined) {\n return [content.parts[0].text];\n }\n return [];\n });\n }\n else if (apiClient.isVertexAI()) {\n const content = tContent(origin);\n if (content.parts &&\n content.parts.length > 0 &&\n content.parts[0].text !== undefined) {\n return [content.parts[0].text];\n }\n return [];\n }\n if (Array.isArray(origin)) {\n return origin.map((item) => tContent(item));\n }\n return [tContent(origin)];\n}\nfunction tContents(origin) {\n if (origin === null ||\n origin === undefined ||\n (Array.isArray(origin) && origin.length === 0)) {\n throw new Error('contents are required');\n }\n if (!Array.isArray(origin)) {\n // If it's not an array, it's a single content or a single PartUnion.\n if (_isFunctionCallPart(origin) || _isFunctionResponsePart(origin)) {\n throw new Error('To specify functionCall or functionResponse parts, please wrap them in a Content object, specifying the role for them');\n }\n return [tContent(origin)];\n }\n const result = [];\n const accumulatedParts = [];\n const isContentArray = _isContent(origin[0]);\n for (const item of origin) {\n const isContent = _isContent(item);\n if (isContent != isContentArray) {\n throw new Error('Mixing Content and Parts is not supported, please group the parts into a the appropriate Content objects and specify the roles for them');\n }\n if (isContent) {\n // `isContent` contains the result of _isContent, which is a utility\n // function that checks if the item is a Content.\n result.push(item);\n }\n else if (_isFunctionCallPart(item) || _isFunctionResponsePart(item)) {\n throw new Error('To specify functionCall or functionResponse parts, please wrap them, and any other parts, in Content objects as appropriate, specifying the role for them');\n }\n else {\n accumulatedParts.push(item);\n }\n }\n if (!isContentArray) {\n result.push({ role: 'user', parts: tParts(accumulatedParts) });\n }\n return result;\n}\n/*\nTransform the type field from an array of types to an array of anyOf fields.\nExample:\n {type: ['STRING', 'NUMBER']}\nwill be transformed to\n {anyOf: [{type: 'STRING'}, {type: 'NUMBER'}]}\n*/\nfunction flattenTypeArrayToAnyOf(typeList, resultingSchema) {\n if (typeList.includes('null')) {\n resultingSchema['nullable'] = true;\n }\n const listWithoutNull = typeList.filter((type) => type !== 'null');\n if (listWithoutNull.length === 1) {\n resultingSchema['type'] = Object.values(Type).includes(listWithoutNull[0].toUpperCase())\n ? listWithoutNull[0].toUpperCase()\n : Type.TYPE_UNSPECIFIED;\n }\n else {\n resultingSchema['anyOf'] = [];\n for (const i of listWithoutNull) {\n resultingSchema['anyOf'].push({\n 'type': Object.values(Type).includes(i.toUpperCase())\n ? i.toUpperCase()\n : Type.TYPE_UNSPECIFIED,\n });\n }\n }\n}\nfunction processJsonSchema(_jsonSchema) {\n const genAISchema = {};\n const schemaFieldNames = ['items'];\n const listSchemaFieldNames = ['anyOf'];\n const dictSchemaFieldNames = ['properties'];\n if (_jsonSchema['type'] && _jsonSchema['anyOf']) {\n throw new Error('type and anyOf cannot be both populated.');\n }\n /*\n This is to handle the nullable array or object. The _jsonSchema will\n be in the format of {anyOf: [{type: 'null'}, {type: 'object'}]}. The\n logic is to check if anyOf has 2 elements and one of the element is null,\n if so, the anyOf field is unnecessary, so we need to get rid of the anyOf\n field and make the schema nullable. Then use the other element as the new\n _jsonSchema for processing. This is because the backend doesn't have a null\n type.\n This has to be checked before we process any other fields.\n For example:\n const objectNullable = z.object({\n nullableArray: z.array(z.string()).nullable(),\n });\n Will have the raw _jsonSchema as:\n {\n type: 'OBJECT',\n properties: {\n nullableArray: {\n anyOf: [\n {type: 'null'},\n {\n type: 'array',\n items: {type: 'string'},\n },\n ],\n }\n },\n required: [ 'nullableArray' ],\n }\n Will result in following schema compatible with Gemini API:\n {\n type: 'OBJECT',\n properties: {\n nullableArray: {\n nullable: true,\n type: 'ARRAY',\n items: {type: 'string'},\n }\n },\n required: [ 'nullableArray' ],\n }\n */\n const incomingAnyOf = _jsonSchema['anyOf'];\n if (incomingAnyOf != null && incomingAnyOf.length == 2) {\n if (incomingAnyOf[0]['type'] === 'null') {\n genAISchema['nullable'] = true;\n _jsonSchema = incomingAnyOf[1];\n }\n else if (incomingAnyOf[1]['type'] === 'null') {\n genAISchema['nullable'] = true;\n _jsonSchema = incomingAnyOf[0];\n }\n }\n if (_jsonSchema['type'] instanceof Array) {\n flattenTypeArrayToAnyOf(_jsonSchema['type'], genAISchema);\n }\n for (const [fieldName, fieldValue] of Object.entries(_jsonSchema)) {\n // Skip if the fieldvalue is undefined or null.\n if (fieldValue == null) {\n continue;\n }\n if (fieldName == 'type') {\n if (fieldValue === 'null') {\n throw new Error('type: null can not be the only possible type for the field.');\n }\n if (fieldValue instanceof Array) {\n // we have already handled the type field with array of types in the\n // beginning of this function.\n continue;\n }\n genAISchema['type'] = Object.values(Type).includes(fieldValue.toUpperCase())\n ? fieldValue.toUpperCase()\n : Type.TYPE_UNSPECIFIED;\n }\n else if (schemaFieldNames.includes(fieldName)) {\n genAISchema[fieldName] =\n processJsonSchema(fieldValue);\n }\n else if (listSchemaFieldNames.includes(fieldName)) {\n const listSchemaFieldValue = [];\n for (const item of fieldValue) {\n if (item['type'] == 'null') {\n genAISchema['nullable'] = true;\n continue;\n }\n listSchemaFieldValue.push(processJsonSchema(item));\n }\n genAISchema[fieldName] =\n listSchemaFieldValue;\n }\n else if (dictSchemaFieldNames.includes(fieldName)) {\n const dictSchemaFieldValue = {};\n for (const [key, value] of Object.entries(fieldValue)) {\n dictSchemaFieldValue[key] = processJsonSchema(value);\n }\n genAISchema[fieldName] =\n dictSchemaFieldValue;\n }\n else {\n // additionalProperties is not included in JSONSchema, skipping it.\n if (fieldName === 'additionalProperties') {\n continue;\n }\n genAISchema[fieldName] = fieldValue;\n }\n }\n return genAISchema;\n}\n// we take the unknown in the schema field because we want enable user to pass\n// the output of major schema declaration tools without casting. Tools such as\n// zodToJsonSchema, typebox, zodToJsonSchema function can return JsonSchema7Type\n// or object, see details in\n// https://github.com/StefanTerdell/zod-to-json-schema/blob/70525efe555cd226691e093d171370a3b10921d1/src/zodToJsonSchema.ts#L7\n// typebox can return unknown, see details in\n// https://github.com/sinclairzx81/typebox/blob/5a5431439f7d5ca6b494d0d18fbfd7b1a356d67c/src/type/create/type.ts#L35\n// Note: proper json schemas with the $schema field set never arrive to this\n// transformer. Schemas with $schema are routed to the equivalent API json\n// schema field.\nfunction tSchema(schema) {\n return processJsonSchema(schema);\n}\nfunction tJsonSchema(schema) {\n return schema;\n}\nfunction tSpeechConfig(speechConfig) {\n if (typeof speechConfig === 'object') {\n return speechConfig;\n }\n else if (typeof speechConfig === 'string') {\n return {\n voiceConfig: {\n prebuiltVoiceConfig: {\n voiceName: speechConfig,\n },\n },\n };\n }\n else {\n throw new Error(`Unsupported speechConfig type: ${typeof speechConfig}`);\n }\n}\nfunction tLiveSpeechConfig(speechConfig) {\n if ('multiSpeakerVoiceConfig' in speechConfig) {\n throw new Error('multiSpeakerVoiceConfig is not supported in the live API.');\n }\n return speechConfig;\n}\nfunction tTool(tool) {\n if (tool.functionDeclarations) {\n for (const functionDeclaration of tool.functionDeclarations) {\n if (functionDeclaration.parameters) {\n if (!Object.keys(functionDeclaration.parameters).includes('$schema')) {\n functionDeclaration.parameters = processJsonSchema(functionDeclaration.parameters);\n }\n else {\n if (!functionDeclaration.parametersJsonSchema) {\n functionDeclaration.parametersJsonSchema =\n functionDeclaration.parameters;\n delete functionDeclaration.parameters;\n }\n }\n }\n if (functionDeclaration.response) {\n if (!Object.keys(functionDeclaration.response).includes('$schema')) {\n functionDeclaration.response = processJsonSchema(functionDeclaration.response);\n }\n else {\n if (!functionDeclaration.responseJsonSchema) {\n functionDeclaration.responseJsonSchema =\n functionDeclaration.response;\n delete functionDeclaration.response;\n }\n }\n }\n }\n }\n return tool;\n}\nfunction tTools(tools) {\n // Check if the incoming type is defined.\n if (tools === undefined || tools === null) {\n throw new Error('tools is required');\n }\n if (!Array.isArray(tools)) {\n throw new Error('tools is required and must be an array of Tools');\n }\n const result = [];\n for (const tool of tools) {\n result.push(tool);\n }\n return result;\n}\n/**\n * Prepends resource name with project, location, resource_prefix if needed.\n *\n * @param client The API client.\n * @param resourceName The resource name.\n * @param resourcePrefix The resource prefix.\n * @param splitsAfterPrefix The number of splits after the prefix.\n * @returns The completed resource name.\n *\n * Examples:\n *\n * ```\n * resource_name = '123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = True\n * client.project = 'bar'\n * client.location = 'us-west1'\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * returns: 'projects/bar/locations/us-west1/cachedContents/123'\n * ```\n *\n * ```\n * resource_name = 'projects/foo/locations/us-central1/cachedContents/123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = True\n * client.project = 'bar'\n * client.location = 'us-west1'\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * returns: 'projects/foo/locations/us-central1/cachedContents/123'\n * ```\n *\n * ```\n * resource_name = '123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = False\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * returns 'cachedContents/123'\n * ```\n *\n * ```\n * resource_name = 'some/wrong/cachedContents/resource/name/123'\n * resource_prefix = 'cachedContents'\n * splits_after_prefix = 1\n * client.vertexai = False\n * # client.vertexai = True\n * _resource_name(client, resource_name, resource_prefix, splits_after_prefix)\n * -> 'some/wrong/resource/name/123'\n * ```\n */\nfunction resourceName(client, resourceName, resourcePrefix, splitsAfterPrefix = 1) {\n const shouldAppendPrefix = !resourceName.startsWith(`${resourcePrefix}/`) &&\n resourceName.split('/').length === splitsAfterPrefix;\n if (client.isVertexAI()) {\n if (resourceName.startsWith('projects/')) {\n return resourceName;\n }\n else if (resourceName.startsWith('locations/')) {\n return `projects/${client.getProject()}/${resourceName}`;\n }\n else if (resourceName.startsWith(`${resourcePrefix}/`)) {\n return `projects/${client.getProject()}/locations/${client.getLocation()}/${resourceName}`;\n }\n else if (shouldAppendPrefix) {\n return `projects/${client.getProject()}/locations/${client.getLocation()}/${resourcePrefix}/${resourceName}`;\n }\n else {\n return resourceName;\n }\n }\n if (shouldAppendPrefix) {\n return `${resourcePrefix}/${resourceName}`;\n }\n return resourceName;\n}\nfunction tCachedContentName(apiClient, name) {\n if (typeof name !== 'string') {\n throw new Error('name must be a string');\n }\n return resourceName(apiClient, name, 'cachedContents');\n}\nfunction tTuningJobStatus(status) {\n switch (status) {\n case 'STATE_UNSPECIFIED':\n return 'JOB_STATE_UNSPECIFIED';\n case 'CREATING':\n return 'JOB_STATE_RUNNING';\n case 'ACTIVE':\n return 'JOB_STATE_SUCCEEDED';\n case 'FAILED':\n return 'JOB_STATE_FAILED';\n default:\n return status;\n }\n}\nfunction tBytes(fromImageBytes) {\n return tBytes$1(fromImageBytes);\n}\nfunction _isFile(origin) {\n return (origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'name' in origin);\n}\nfunction isGeneratedVideo(origin) {\n return (origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'video' in origin);\n}\nfunction isVideo(origin) {\n return (origin !== null &&\n origin !== undefined &&\n typeof origin === 'object' &&\n 'uri' in origin);\n}\nfunction tFileName(fromName) {\n var _a;\n let name;\n if (_isFile(fromName)) {\n name = fromName.name;\n }\n if (isVideo(fromName)) {\n name = fromName.uri;\n if (name === undefined) {\n return undefined;\n }\n }\n if (isGeneratedVideo(fromName)) {\n name = (_a = fromName.video) === null || _a === void 0 ? void 0 : _a.uri;\n if (name === undefined) {\n return undefined;\n }\n }\n if (typeof fromName === 'string') {\n name = fromName;\n }\n if (name === undefined) {\n throw new Error('Could not extract file name from the provided input.');\n }\n if (name.startsWith('https://')) {\n const suffix = name.split('files/')[1];\n const match = suffix.match(/[a-z0-9]+/);\n if (match === null) {\n throw new Error(`Could not extract file name from URI ${name}`);\n }\n name = match[0];\n }\n else if (name.startsWith('files/')) {\n name = name.split('files/')[1];\n }\n return name;\n}\nfunction tModelsUrl(apiClient, baseModels) {\n let res;\n if (apiClient.isVertexAI()) {\n res = baseModels ? 'publishers/google/models' : 'models';\n }\n else {\n res = baseModels ? 'models' : 'tunedModels';\n }\n return res;\n}\nfunction tExtractModels(response) {\n for (const key of ['models', 'tunedModels', 'publisherModels']) {\n if (hasField(response, key)) {\n return response[key];\n }\n }\n return [];\n}\nfunction hasField(data, fieldName) {\n return data !== null && typeof data === 'object' && fieldName in data;\n}\nfunction mcpToGeminiTool(mcpTool, config = {}) {\n const mcpToolSchema = mcpTool;\n const functionDeclaration = {\n name: mcpToolSchema['name'],\n description: mcpToolSchema['description'],\n parametersJsonSchema: mcpToolSchema['inputSchema'],\n };\n if (mcpToolSchema['outputSchema']) {\n functionDeclaration['responseJsonSchema'] = mcpToolSchema['outputSchema'];\n }\n if (config.behavior) {\n functionDeclaration['behavior'] = config.behavior;\n }\n const geminiTool = {\n functionDeclarations: [\n functionDeclaration,\n ],\n };\n return geminiTool;\n}\n/**\n * Converts a list of MCP tools to a single Gemini tool with a list of function\n * declarations.\n */\nfunction mcpToolsToGeminiTool(mcpTools, config = {}) {\n const functionDeclarations = [];\n const toolNames = new Set();\n for (const mcpTool of mcpTools) {\n const mcpToolName = mcpTool.name;\n if (toolNames.has(mcpToolName)) {\n throw new Error(`Duplicate function name ${mcpToolName} found in MCP tools. Please ensure function names are unique.`);\n }\n toolNames.add(mcpToolName);\n const geminiTool = mcpToGeminiTool(mcpTool, config);\n if (geminiTool.functionDeclarations) {\n functionDeclarations.push(...geminiTool.functionDeclarations);\n }\n }\n return { functionDeclarations: functionDeclarations };\n}\n// Transforms a source input into a BatchJobSource object with validation.\nfunction tBatchJobSource(client, src) {\n let sourceObj;\n if (typeof src === 'string') {\n if (client.isVertexAI()) {\n if (src.startsWith('gs://')) {\n sourceObj = { format: 'jsonl', gcsUri: [src] };\n }\n else if (src.startsWith('bq://')) {\n sourceObj = { format: 'bigquery', bigqueryUri: src };\n }\n else if (/^projects\\/[^/]+\\/locations\\/[^/]+\\/datasets\\/[^/]+$/.test(src)) {\n sourceObj = { format: 'vertex-dataset', vertexDatasetName: src };\n }\n else {\n throw new Error(`Unsupported string source for Vertex AI: ${src}`);\n }\n }\n else {\n // MLDEV\n if (src.startsWith('files/')) {\n sourceObj = { fileName: src }; // Default to fileName for string input\n }\n else {\n throw new Error(`Unsupported string source for Gemini API: ${src}`);\n }\n }\n }\n else if (Array.isArray(src)) {\n if (client.isVertexAI()) {\n throw new Error('InlinedRequest[] is not supported in Vertex AI.');\n }\n sourceObj = { inlinedRequests: src };\n }\n else {\n // It's already a BatchJobSource object\n sourceObj = src;\n }\n // Validation logic\n const vertexSourcesCount = [\n sourceObj.gcsUri,\n sourceObj.bigqueryUri,\n sourceObj.vertexDatasetName,\n ].filter(Boolean).length;\n const mldevSourcesCount = [\n sourceObj.inlinedRequests,\n sourceObj.fileName,\n ].filter(Boolean).length;\n if (client.isVertexAI()) {\n if (mldevSourcesCount > 0 || vertexSourcesCount !== 1) {\n throw new Error('Exactly one of `gcsUri`, `bigqueryUri`, or `vertexDatasetName` must be set for Vertex AI.');\n }\n }\n else {\n // MLDEV\n if (vertexSourcesCount > 0 || mldevSourcesCount !== 1) {\n throw new Error('Exactly one of `inlinedRequests`, `fileName`, ' +\n 'must be set for Gemini API.');\n }\n }\n return sourceObj;\n}\nfunction tBatchJobDestination(dest) {\n if (typeof dest !== 'string') {\n return dest;\n }\n const destString = dest;\n if (destString.startsWith('gs://')) {\n return {\n format: 'jsonl',\n gcsUri: destString,\n };\n }\n else if (destString.startsWith('bq://')) {\n return {\n format: 'bigquery',\n bigqueryUri: destString,\n };\n }\n else {\n throw new Error(`Unsupported destination: ${destString}`);\n }\n}\nfunction tRecvBatchJobDestination(dest) {\n // Ensure dest is a non-null object before proceeding.\n if (typeof dest !== 'object' || dest === null) {\n // If the input is not an object, it cannot be a valid BatchJobDestination\n // based on the operations performed. Return it cast, or handle as an error.\n // Casting an empty object might be a safe default.\n return {};\n }\n // Cast to Record<string, unknown> to allow string property access.\n const obj = dest;\n // Safely access nested properties.\n const inlineResponsesVal = obj['inlinedResponses'];\n if (typeof inlineResponsesVal !== 'object' || inlineResponsesVal === null) {\n return dest;\n }\n const inlineResponsesObj = inlineResponsesVal;\n const responsesArray = inlineResponsesObj['inlinedResponses'];\n if (!Array.isArray(responsesArray) || responsesArray.length === 0) {\n return dest;\n }\n // Check if any response has the 'embedding' property.\n let hasEmbedding = false;\n for (const responseItem of responsesArray) {\n if (typeof responseItem !== 'object' || responseItem === null) {\n continue;\n }\n const responseItemObj = responseItem;\n const responseVal = responseItemObj['response'];\n if (typeof responseVal !== 'object' || responseVal === null) {\n continue;\n }\n const responseObj = responseVal;\n // Check for the existence of the 'embedding' key.\n if (responseObj['embedding'] !== undefined) {\n hasEmbedding = true;\n break;\n }\n }\n // Perform the transformation if an embedding was found.\n if (hasEmbedding) {\n obj['inlinedEmbedContentResponses'] = obj['inlinedResponses'];\n delete obj['inlinedResponses'];\n }\n // Cast the (potentially) modified object to the target type.\n return dest;\n}\nfunction tBatchJobName(apiClient, name) {\n const nameString = name;\n if (!apiClient.isVertexAI()) {\n const mldevPattern = /batches\\/[^/]+$/;\n if (mldevPattern.test(nameString)) {\n return nameString.split('/').pop();\n }\n else {\n throw new Error(`Invalid batch job name: ${nameString}.`);\n }\n }\n const vertexPattern = /^projects\\/[^/]+\\/locations\\/[^/]+\\/batchPredictionJobs\\/[^/]+$/;\n if (vertexPattern.test(nameString)) {\n return nameString.split('/').pop();\n }\n else if (/^\\d+$/.test(nameString)) {\n return nameString;\n }\n else {\n throw new Error(`Invalid batch job name: ${nameString}.`);\n }\n}\nfunction tJobState(state) {\n const stateString = state;\n if (stateString === 'BATCH_STATE_UNSPECIFIED') {\n return 'JOB_STATE_UNSPECIFIED';\n }\n else if (stateString === 'BATCH_STATE_PENDING') {\n return 'JOB_STATE_PENDING';\n }\n else if (stateString === 'BATCH_STATE_RUNNING') {\n return 'JOB_STATE_RUNNING';\n }\n else if (stateString === 'BATCH_STATE_SUCCEEDED') {\n return 'JOB_STATE_SUCCEEDED';\n }\n else if (stateString === 'BATCH_STATE_FAILED') {\n return 'JOB_STATE_FAILED';\n }\n else if (stateString === 'BATCH_STATE_CANCELLED') {\n return 'JOB_STATE_CANCELLED';\n }\n else if (stateString === 'BATCH_STATE_EXPIRED') {\n return 'JOB_STATE_EXPIRED';\n }\n else {\n return stateString;\n }\n}\nfunction tIsVertexEmbedContentModel(model) {\n return ((model.includes('gemini') && model !== 'gemini-embedding-001') ||\n model.includes('maas'));\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction authConfigToMldev$4(fromObject) {\n const toObject = {};\n const fromApiKey = getValueByPath(fromObject, ['apiKey']);\n if (fromApiKey != null) {\n setValueByPath(toObject, ['apiKey'], fromApiKey);\n }\n if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {\n throw new Error('apiKeyConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['authType']) !== undefined) {\n throw new Error('authType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==\n undefined) {\n throw new Error('googleServiceAccountConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {\n throw new Error('httpBasicAuthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {\n throw new Error('oauthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {\n throw new Error('oidcConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction batchJobDestinationFromMldev(fromObject) {\n const toObject = {};\n const fromFileName = getValueByPath(fromObject, ['responsesFile']);\n if (fromFileName != null) {\n setValueByPath(toObject, ['fileName'], fromFileName);\n }\n const fromInlinedResponses = getValueByPath(fromObject, [\n 'inlinedResponses',\n 'inlinedResponses',\n ]);\n if (fromInlinedResponses != null) {\n let transformedList = fromInlinedResponses;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return inlinedResponseFromMldev(item);\n });\n }\n setValueByPath(toObject, ['inlinedResponses'], transformedList);\n }\n const fromInlinedEmbedContentResponses = getValueByPath(fromObject, [\n 'inlinedEmbedContentResponses',\n 'inlinedResponses',\n ]);\n if (fromInlinedEmbedContentResponses != null) {\n let transformedList = fromInlinedEmbedContentResponses;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['inlinedEmbedContentResponses'], transformedList);\n }\n return toObject;\n}\nfunction batchJobDestinationFromVertex(fromObject) {\n const toObject = {};\n const fromFormat = getValueByPath(fromObject, ['predictionsFormat']);\n if (fromFormat != null) {\n setValueByPath(toObject, ['format'], fromFormat);\n }\n const fromGcsUri = getValueByPath(fromObject, [\n 'gcsDestination',\n 'outputUriPrefix',\n ]);\n if (fromGcsUri != null) {\n setValueByPath(toObject, ['gcsUri'], fromGcsUri);\n }\n const fromBigqueryUri = getValueByPath(fromObject, [\n 'bigqueryDestination',\n 'outputUri',\n ]);\n if (fromBigqueryUri != null) {\n setValueByPath(toObject, ['bigqueryUri'], fromBigqueryUri);\n }\n const fromVertexDataset = getValueByPath(fromObject, [\n 'vertexMultimodalDatasetDestination',\n ]);\n if (fromVertexDataset != null) {\n setValueByPath(toObject, ['vertexDataset'], vertexMultimodalDatasetDestinationFromVertex(fromVertexDataset));\n }\n return toObject;\n}\nfunction batchJobDestinationToVertex(fromObject) {\n const toObject = {};\n const fromFormat = getValueByPath(fromObject, ['format']);\n if (fromFormat != null) {\n setValueByPath(toObject, ['predictionsFormat'], fromFormat);\n }\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (fromGcsUri != null) {\n setValueByPath(toObject, ['gcsDestination', 'outputUriPrefix'], fromGcsUri);\n }\n const fromBigqueryUri = getValueByPath(fromObject, ['bigqueryUri']);\n if (fromBigqueryUri != null) {\n setValueByPath(toObject, ['bigqueryDestination', 'outputUri'], fromBigqueryUri);\n }\n const fromVertexDataset = getValueByPath(fromObject, [\n 'vertexDataset',\n ]);\n if (fromVertexDataset != null) {\n setValueByPath(toObject, ['vertexMultimodalDatasetDestination'], vertexMultimodalDatasetDestinationToVertex(fromVertexDataset));\n }\n if (getValueByPath(fromObject, ['fileName']) !== undefined) {\n throw new Error('fileName parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['inlinedResponses']) !== undefined) {\n throw new Error('inlinedResponses parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['inlinedEmbedContentResponses']) !==\n undefined) {\n throw new Error('inlinedEmbedContentResponses parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction batchJobFromMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromDisplayName = getValueByPath(fromObject, [\n 'metadata',\n 'displayName',\n ]);\n if (fromDisplayName != null) {\n setValueByPath(toObject, ['displayName'], fromDisplayName);\n }\n const fromState = getValueByPath(fromObject, ['metadata', 'state']);\n if (fromState != null) {\n setValueByPath(toObject, ['state'], tJobState(fromState));\n }\n const fromCreateTime = getValueByPath(fromObject, [\n 'metadata',\n 'createTime',\n ]);\n if (fromCreateTime != null) {\n setValueByPath(toObject, ['createTime'], fromCreateTime);\n }\n const fromEndTime = getValueByPath(fromObject, [\n 'metadata',\n 'endTime',\n ]);\n if (fromEndTime != null) {\n setValueByPath(toObject, ['endTime'], fromEndTime);\n }\n const fromUpdateTime = getValueByPath(fromObject, [\n 'metadata',\n 'updateTime',\n ]);\n if (fromUpdateTime != null) {\n setValueByPath(toObject, ['updateTime'], fromUpdateTime);\n }\n const fromModel = getValueByPath(fromObject, ['metadata', 'model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['model'], fromModel);\n }\n const fromDest = getValueByPath(fromObject, ['metadata', 'output']);\n if (fromDest != null) {\n setValueByPath(toObject, ['dest'], batchJobDestinationFromMldev(tRecvBatchJobDestination(fromDest)));\n }\n return toObject;\n}\nfunction batchJobFromVertex(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (fromDisplayName != null) {\n setValueByPath(toObject, ['displayName'], fromDisplayName);\n }\n const fromState = getValueByPath(fromObject, ['state']);\n if (fromState != null) {\n setValueByPath(toObject, ['state'], tJobState(fromState));\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromCreateTime = getValueByPath(fromObject, ['createTime']);\n if (fromCreateTime != null) {\n setValueByPath(toObject, ['createTime'], fromCreateTime);\n }\n const fromStartTime = getValueByPath(fromObject, ['startTime']);\n if (fromStartTime != null) {\n setValueByPath(toObject, ['startTime'], fromStartTime);\n }\n const fromEndTime = getValueByPath(fromObject, ['endTime']);\n if (fromEndTime != null) {\n setValueByPath(toObject, ['endTime'], fromEndTime);\n }\n const fromUpdateTime = getValueByPath(fromObject, ['updateTime']);\n if (fromUpdateTime != null) {\n setValueByPath(toObject, ['updateTime'], fromUpdateTime);\n }\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['model'], fromModel);\n }\n const fromSrc = getValueByPath(fromObject, ['inputConfig']);\n if (fromSrc != null) {\n setValueByPath(toObject, ['src'], batchJobSourceFromVertex(fromSrc));\n }\n const fromDest = getValueByPath(fromObject, ['outputConfig']);\n if (fromDest != null) {\n setValueByPath(toObject, ['dest'], batchJobDestinationFromVertex(tRecvBatchJobDestination(fromDest)));\n }\n const fromOutputInfo = getValueByPath(fromObject, ['outputInfo']);\n if (fromOutputInfo != null) {\n setValueByPath(toObject, ['outputInfo'], fromOutputInfo);\n }\n const fromCompletionStats = getValueByPath(fromObject, [\n 'completionStats',\n ]);\n if (fromCompletionStats != null) {\n setValueByPath(toObject, ['completionStats'], fromCompletionStats);\n }\n return toObject;\n}\nfunction batchJobSourceFromVertex(fromObject) {\n const toObject = {};\n const fromFormat = getValueByPath(fromObject, ['instancesFormat']);\n if (fromFormat != null) {\n setValueByPath(toObject, ['format'], fromFormat);\n }\n const fromGcsUri = getValueByPath(fromObject, ['gcsSource', 'uris']);\n if (fromGcsUri != null) {\n setValueByPath(toObject, ['gcsUri'], fromGcsUri);\n }\n const fromBigqueryUri = getValueByPath(fromObject, [\n 'bigquerySource',\n 'inputUri',\n ]);\n if (fromBigqueryUri != null) {\n setValueByPath(toObject, ['bigqueryUri'], fromBigqueryUri);\n }\n const fromVertexDatasetName = getValueByPath(fromObject, [\n 'vertexMultimodalDatasetSource',\n 'datasetName',\n ]);\n if (fromVertexDatasetName != null) {\n setValueByPath(toObject, ['vertexDatasetName'], fromVertexDatasetName);\n }\n return toObject;\n}\nfunction batchJobSourceToMldev(apiClient, fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['format']) !== undefined) {\n throw new Error('format parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['gcsUri']) !== undefined) {\n throw new Error('gcsUri parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['bigqueryUri']) !== undefined) {\n throw new Error('bigqueryUri parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['vertexDatasetName']) !== undefined) {\n throw new Error('vertexDatasetName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFileName = getValueByPath(fromObject, ['fileName']);\n if (fromFileName != null) {\n setValueByPath(toObject, ['fileName'], fromFileName);\n }\n const fromInlinedRequests = getValueByPath(fromObject, [\n 'inlinedRequests',\n ]);\n if (fromInlinedRequests != null) {\n let transformedList = fromInlinedRequests;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return inlinedRequestToMldev(apiClient, item);\n });\n }\n setValueByPath(toObject, ['requests', 'requests'], transformedList);\n }\n return toObject;\n}\nfunction batchJobSourceToVertex(fromObject) {\n const toObject = {};\n const fromFormat = getValueByPath(fromObject, ['format']);\n if (fromFormat != null) {\n setValueByPath(toObject, ['instancesFormat'], fromFormat);\n }\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (fromGcsUri != null) {\n setValueByPath(toObject, ['gcsSource', 'uris'], fromGcsUri);\n }\n const fromBigqueryUri = getValueByPath(fromObject, ['bigqueryUri']);\n if (fromBigqueryUri != null) {\n setValueByPath(toObject, ['bigquerySource', 'inputUri'], fromBigqueryUri);\n }\n const fromVertexDatasetName = getValueByPath(fromObject, [\n 'vertexDatasetName',\n ]);\n if (fromVertexDatasetName != null) {\n setValueByPath(toObject, ['vertexMultimodalDatasetSource', 'datasetName'], fromVertexDatasetName);\n }\n if (getValueByPath(fromObject, ['fileName']) !== undefined) {\n throw new Error('fileName parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['inlinedRequests']) !== undefined) {\n throw new Error('inlinedRequests parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction blobToMldev$4(fromObject) {\n const toObject = {};\n const fromData = getValueByPath(fromObject, ['data']);\n if (fromData != null) {\n setValueByPath(toObject, ['data'], fromData);\n }\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction cancelBatchJobParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tBatchJobName(apiClient, fromName));\n }\n return toObject;\n}\nfunction cancelBatchJobParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tBatchJobName(apiClient, fromName));\n }\n return toObject;\n}\nfunction candidateFromMldev$1(fromObject) {\n const toObject = {};\n const fromContent = getValueByPath(fromObject, ['content']);\n if (fromContent != null) {\n setValueByPath(toObject, ['content'], fromContent);\n }\n const fromCitationMetadata = getValueByPath(fromObject, [\n 'citationMetadata',\n ]);\n if (fromCitationMetadata != null) {\n setValueByPath(toObject, ['citationMetadata'], citationMetadataFromMldev$1(fromCitationMetadata));\n }\n const fromTokenCount = getValueByPath(fromObject, ['tokenCount']);\n if (fromTokenCount != null) {\n setValueByPath(toObject, ['tokenCount'], fromTokenCount);\n }\n const fromFinishReason = getValueByPath(fromObject, ['finishReason']);\n if (fromFinishReason != null) {\n setValueByPath(toObject, ['finishReason'], fromFinishReason);\n }\n const fromGroundingMetadata = getValueByPath(fromObject, [\n 'groundingMetadata',\n ]);\n if (fromGroundingMetadata != null) {\n setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);\n }\n const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);\n if (fromAvgLogprobs != null) {\n setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);\n }\n const fromIndex = getValueByPath(fromObject, ['index']);\n if (fromIndex != null) {\n setValueByPath(toObject, ['index'], fromIndex);\n }\n const fromLogprobsResult = getValueByPath(fromObject, [\n 'logprobsResult',\n ]);\n if (fromLogprobsResult != null) {\n setValueByPath(toObject, ['logprobsResult'], fromLogprobsResult);\n }\n const fromSafetyRatings = getValueByPath(fromObject, [\n 'safetyRatings',\n ]);\n if (fromSafetyRatings != null) {\n let transformedList = fromSafetyRatings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['safetyRatings'], transformedList);\n }\n const fromUrlContextMetadata = getValueByPath(fromObject, [\n 'urlContextMetadata',\n ]);\n if (fromUrlContextMetadata != null) {\n setValueByPath(toObject, ['urlContextMetadata'], fromUrlContextMetadata);\n }\n return toObject;\n}\nfunction citationMetadataFromMldev$1(fromObject) {\n const toObject = {};\n const fromCitations = getValueByPath(fromObject, ['citationSources']);\n if (fromCitations != null) {\n let transformedList = fromCitations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['citations'], transformedList);\n }\n return toObject;\n}\nfunction contentToMldev$4(fromObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToMldev$4(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction createBatchJobConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['batch', 'displayName'], fromDisplayName);\n }\n if (getValueByPath(fromObject, ['dest']) !== undefined) {\n throw new Error('dest parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromWebhookConfig = getValueByPath(fromObject, [\n 'webhookConfig',\n ]);\n if (parentObject !== undefined && fromWebhookConfig != null) {\n setValueByPath(parentObject, ['batch', 'webhookConfig'], fromWebhookConfig);\n }\n return toObject;\n}\nfunction createBatchJobConfigToVertex(fromObject, parentObject) {\n const toObject = {};\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromDisplayName);\n }\n const fromDest = getValueByPath(fromObject, ['dest']);\n if (parentObject !== undefined && fromDest != null) {\n setValueByPath(parentObject, ['outputConfig'], batchJobDestinationToVertex(tBatchJobDestination(fromDest)));\n }\n if (getValueByPath(fromObject, ['webhookConfig']) !== undefined) {\n throw new Error('webhookConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction createBatchJobParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromSrc = getValueByPath(fromObject, ['src']);\n if (fromSrc != null) {\n setValueByPath(toObject, ['batch', 'inputConfig'], batchJobSourceToMldev(apiClient, tBatchJobSource(apiClient, fromSrc)));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createBatchJobConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction createBatchJobParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['model'], tModel(apiClient, fromModel));\n }\n const fromSrc = getValueByPath(fromObject, ['src']);\n if (fromSrc != null) {\n setValueByPath(toObject, ['inputConfig'], batchJobSourceToVertex(tBatchJobSource(apiClient, fromSrc)));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createBatchJobConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction createEmbeddingsBatchJobConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['batch', 'displayName'], fromDisplayName);\n }\n return toObject;\n}\nfunction createEmbeddingsBatchJobParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromSrc = getValueByPath(fromObject, ['src']);\n if (fromSrc != null) {\n setValueByPath(toObject, ['batch', 'inputConfig'], embeddingsBatchJobSourceToMldev(apiClient, fromSrc));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createEmbeddingsBatchJobConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction deleteBatchJobParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tBatchJobName(apiClient, fromName));\n }\n return toObject;\n}\nfunction deleteBatchJobParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tBatchJobName(apiClient, fromName));\n }\n return toObject;\n}\nfunction deleteResourceJobFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n return toObject;\n}\nfunction deleteResourceJobFromVertex(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n return toObject;\n}\nfunction embedContentBatchToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContentsForEmbed(apiClient, fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['requests[]', 'request', 'content'], transformedList);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['_self'], embedContentConfigToMldev$1(fromConfig, toObject));\n moveValueByPath(toObject, { 'requests[].*': 'requests[].request.*' });\n }\n return toObject;\n}\nfunction embedContentConfigToMldev$1(fromObject, parentObject) {\n const toObject = {};\n const fromTaskType = getValueByPath(fromObject, ['taskType']);\n if (parentObject !== undefined && fromTaskType != null) {\n setValueByPath(parentObject, ['requests[]', 'taskType'], fromTaskType);\n }\n const fromTitle = getValueByPath(fromObject, ['title']);\n if (parentObject !== undefined && fromTitle != null) {\n setValueByPath(parentObject, ['requests[]', 'title'], fromTitle);\n }\n const fromOutputDimensionality = getValueByPath(fromObject, [\n 'outputDimensionality',\n ]);\n if (parentObject !== undefined && fromOutputDimensionality != null) {\n setValueByPath(parentObject, ['requests[]', 'outputDimensionality'], fromOutputDimensionality);\n }\n if (getValueByPath(fromObject, ['mimeType']) !== undefined) {\n throw new Error('mimeType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['autoTruncate']) !== undefined) {\n throw new Error('autoTruncate parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['documentOcr']) !== undefined) {\n throw new Error('documentOcr parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['audioTrackExtraction']) !== undefined) {\n throw new Error('audioTrackExtraction parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction embeddingsBatchJobSourceToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromFileName = getValueByPath(fromObject, ['fileName']);\n if (fromFileName != null) {\n setValueByPath(toObject, ['file_name'], fromFileName);\n }\n const fromInlinedRequests = getValueByPath(fromObject, [\n 'inlinedRequests',\n ]);\n if (fromInlinedRequests != null) {\n setValueByPath(toObject, ['requests'], embedContentBatchToMldev(apiClient, fromInlinedRequests));\n }\n return toObject;\n}\nfunction fileDataToMldev$4(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFileUri = getValueByPath(fromObject, ['fileUri']);\n if (fromFileUri != null) {\n setValueByPath(toObject, ['fileUri'], fromFileUri);\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction functionCallToMldev$4(fromObject) {\n const toObject = {};\n const fromArgs = getValueByPath(fromObject, ['args']);\n if (fromArgs != null) {\n setValueByPath(toObject, ['args'], fromArgs);\n }\n const fromId = getValueByPath(fromObject, ['id']);\n if (fromId != null) {\n setValueByPath(toObject, ['id'], fromId);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n if (getValueByPath(fromObject, ['partialArgs']) !== undefined) {\n throw new Error('partialArgs parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['willContinue']) !== undefined) {\n throw new Error('willContinue parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction functionCallingConfigToMldev$2(fromObject) {\n const toObject = {};\n const fromAllowedFunctionNames = getValueByPath(fromObject, [\n 'allowedFunctionNames',\n ]);\n if (fromAllowedFunctionNames != null) {\n setValueByPath(toObject, ['allowedFunctionNames'], fromAllowedFunctionNames);\n }\n const fromMode = getValueByPath(fromObject, ['mode']);\n if (fromMode != null) {\n setValueByPath(toObject, ['mode'], fromMode);\n }\n if (getValueByPath(fromObject, ['streamFunctionCallArguments']) !==\n undefined) {\n throw new Error('streamFunctionCallArguments parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction generateContentConfigToMldev$1(apiClient, fromObject, parentObject) {\n const toObject = {};\n const fromServiceTier = getValueByPath(fromObject, ['serviceTier']);\n if (parentObject !== undefined && fromServiceTier != null) {\n setValueByPath(parentObject, ['serviceTier'], fromServiceTier);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['systemInstruction'], contentToMldev$4(tContent(fromSystemInstruction)));\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (fromTemperature != null) {\n setValueByPath(toObject, ['temperature'], fromTemperature);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (fromTopP != null) {\n setValueByPath(toObject, ['topP'], fromTopP);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (fromTopK != null) {\n setValueByPath(toObject, ['topK'], fromTopK);\n }\n const fromCandidateCount = getValueByPath(fromObject, [\n 'candidateCount',\n ]);\n if (fromCandidateCount != null) {\n setValueByPath(toObject, ['candidateCount'], fromCandidateCount);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (fromMaxOutputTokens != null) {\n setValueByPath(toObject, ['maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromStopSequences = getValueByPath(fromObject, [\n 'stopSequences',\n ]);\n if (fromStopSequences != null) {\n setValueByPath(toObject, ['stopSequences'], fromStopSequences);\n }\n const fromResponseLogprobs = getValueByPath(fromObject, [\n 'responseLogprobs',\n ]);\n if (fromResponseLogprobs != null) {\n setValueByPath(toObject, ['responseLogprobs'], fromResponseLogprobs);\n }\n const fromLogprobs = getValueByPath(fromObject, ['logprobs']);\n if (fromLogprobs != null) {\n setValueByPath(toObject, ['logprobs'], fromLogprobs);\n }\n const fromPresencePenalty = getValueByPath(fromObject, [\n 'presencePenalty',\n ]);\n if (fromPresencePenalty != null) {\n setValueByPath(toObject, ['presencePenalty'], fromPresencePenalty);\n }\n const fromFrequencyPenalty = getValueByPath(fromObject, [\n 'frequencyPenalty',\n ]);\n if (fromFrequencyPenalty != null) {\n setValueByPath(toObject, ['frequencyPenalty'], fromFrequencyPenalty);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (fromSeed != null) {\n setValueByPath(toObject, ['seed'], fromSeed);\n }\n const fromResponseMimeType = getValueByPath(fromObject, [\n 'responseMimeType',\n ]);\n if (fromResponseMimeType != null) {\n setValueByPath(toObject, ['responseMimeType'], fromResponseMimeType);\n }\n const fromResponseSchema = getValueByPath(fromObject, [\n 'responseSchema',\n ]);\n if (fromResponseSchema != null) {\n setValueByPath(toObject, ['responseSchema'], tSchema(fromResponseSchema));\n }\n const fromResponseJsonSchema = getValueByPath(fromObject, [\n 'responseJsonSchema',\n ]);\n if (fromResponseJsonSchema != null) {\n setValueByPath(toObject, ['responseJsonSchema'], tJsonSchema(fromResponseJsonSchema));\n }\n if (getValueByPath(fromObject, ['routingConfig']) !== undefined) {\n throw new Error('routingConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['modelSelectionConfig']) !== undefined) {\n throw new Error('modelSelectionConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromSafetySettings = getValueByPath(fromObject, [\n 'safetySettings',\n ]);\n if (parentObject !== undefined && fromSafetySettings != null) {\n let transformedList = fromSafetySettings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return safetySettingToMldev$3(item);\n });\n }\n setValueByPath(parentObject, ['safetySettings'], transformedList);\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = tTools(fromTools);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToMldev$4(tTool(item));\n });\n }\n setValueByPath(parentObject, ['tools'], transformedList);\n }\n const fromToolConfig = getValueByPath(fromObject, ['toolConfig']);\n if (parentObject !== undefined && fromToolConfig != null) {\n setValueByPath(parentObject, ['toolConfig'], toolConfigToMldev$2(fromToolConfig));\n }\n if (getValueByPath(fromObject, ['labels']) !== undefined) {\n throw new Error('labels parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromCachedContent = getValueByPath(fromObject, [\n 'cachedContent',\n ]);\n if (parentObject !== undefined && fromCachedContent != null) {\n setValueByPath(parentObject, ['cachedContent'], tCachedContentName(apiClient, fromCachedContent));\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (fromResponseModalities != null) {\n setValueByPath(toObject, ['responseModalities'], fromResponseModalities);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (fromSpeechConfig != null) {\n setValueByPath(toObject, ['speechConfig'], tSpeechConfig(fromSpeechConfig));\n }\n if (getValueByPath(fromObject, ['audioTimestamp']) !== undefined) {\n throw new Error('audioTimestamp parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (fromThinkingConfig != null) {\n setValueByPath(toObject, ['thinkingConfig'], fromThinkingConfig);\n }\n const fromAudioTranscriptionConfig = getValueByPath(fromObject, [\n 'audioTranscriptionConfig',\n ]);\n if (fromAudioTranscriptionConfig != null) {\n setValueByPath(toObject, ['audioTranscriptionConfig'], fromAudioTranscriptionConfig);\n }\n const fromImageConfig = getValueByPath(fromObject, ['imageConfig']);\n if (fromImageConfig != null) {\n setValueByPath(toObject, ['imageConfig'], imageConfigToMldev$1(fromImageConfig));\n }\n const fromEnableEnhancedCivicAnswers = getValueByPath(fromObject, [\n 'enableEnhancedCivicAnswers',\n ]);\n if (fromEnableEnhancedCivicAnswers != null) {\n setValueByPath(toObject, ['enableEnhancedCivicAnswers'], fromEnableEnhancedCivicAnswers);\n }\n if (getValueByPath(fromObject, ['modelArmorConfig']) !== undefined) {\n throw new Error('modelArmorConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction generateContentResponseFromMldev$1(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromCandidates = getValueByPath(fromObject, ['candidates']);\n if (fromCandidates != null) {\n let transformedList = fromCandidates;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return candidateFromMldev$1(item);\n });\n }\n setValueByPath(toObject, ['candidates'], transformedList);\n }\n const fromModelVersion = getValueByPath(fromObject, ['modelVersion']);\n if (fromModelVersion != null) {\n setValueByPath(toObject, ['modelVersion'], fromModelVersion);\n }\n const fromPromptFeedback = getValueByPath(fromObject, [\n 'promptFeedback',\n ]);\n if (fromPromptFeedback != null) {\n setValueByPath(toObject, ['promptFeedback'], fromPromptFeedback);\n }\n const fromResponseId = getValueByPath(fromObject, ['responseId']);\n if (fromResponseId != null) {\n setValueByPath(toObject, ['responseId'], fromResponseId);\n }\n const fromUsageMetadata = getValueByPath(fromObject, [\n 'usageMetadata',\n ]);\n if (fromUsageMetadata != null) {\n setValueByPath(toObject, ['usageMetadata'], fromUsageMetadata);\n }\n const fromModelStatus = getValueByPath(fromObject, ['modelStatus']);\n if (fromModelStatus != null) {\n setValueByPath(toObject, ['modelStatus'], fromModelStatus);\n }\n return toObject;\n}\nfunction getBatchJobParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tBatchJobName(apiClient, fromName));\n }\n return toObject;\n}\nfunction getBatchJobParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tBatchJobName(apiClient, fromName));\n }\n return toObject;\n}\nfunction googleMapsToMldev$4(fromObject) {\n const toObject = {};\n const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);\n if (fromAuthConfig != null) {\n setValueByPath(toObject, ['authConfig'], authConfigToMldev$4(fromAuthConfig));\n }\n const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);\n if (fromEnableWidget != null) {\n setValueByPath(toObject, ['enableWidget'], fromEnableWidget);\n }\n if (getValueByPath(fromObject, ['groundingTypes']) !== undefined) {\n throw new Error('groundingTypes parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction googleSearchToMldev$4(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {\n throw new Error('blockingConfidence parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {\n throw new Error('excludeDomains parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);\n if (fromSearchTypes != null) {\n setValueByPath(toObject, ['searchTypes'], fromSearchTypes);\n }\n const fromTimeRangeFilter = getValueByPath(fromObject, [\n 'timeRangeFilter',\n ]);\n if (fromTimeRangeFilter != null) {\n setValueByPath(toObject, ['timeRangeFilter'], fromTimeRangeFilter);\n }\n return toObject;\n}\nfunction imageConfigToMldev$1(fromObject) {\n const toObject = {};\n const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);\n if (fromAspectRatio != null) {\n setValueByPath(toObject, ['aspectRatio'], fromAspectRatio);\n }\n const fromImageSize = getValueByPath(fromObject, ['imageSize']);\n if (fromImageSize != null) {\n setValueByPath(toObject, ['imageSize'], fromImageSize);\n }\n if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {\n throw new Error('personGeneration parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {\n throw new Error('outputMimeType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['outputCompressionQuality']) !==\n undefined) {\n throw new Error('outputCompressionQuality parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {\n throw new Error('imageOutputOptions parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['prominentPeople']) !== undefined) {\n throw new Error('prominentPeople parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction inlinedRequestToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['request', 'model'], tModel(apiClient, fromModel));\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToMldev$4(item);\n });\n }\n setValueByPath(toObject, ['request', 'contents'], transformedList);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['request', 'generationConfig'], generateContentConfigToMldev$1(apiClient, fromConfig, getValueByPath(toObject, ['request'], {})));\n }\n return toObject;\n}\nfunction inlinedResponseFromMldev(fromObject) {\n const toObject = {};\n const fromResponse = getValueByPath(fromObject, ['response']);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], generateContentResponseFromMldev$1(fromResponse));\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n return toObject;\n}\nfunction listBatchJobsConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n if (getValueByPath(fromObject, ['filter']) !== undefined) {\n throw new Error('filter parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction listBatchJobsConfigToVertex(fromObject, parentObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n const fromFilter = getValueByPath(fromObject, ['filter']);\n if (parentObject !== undefined && fromFilter != null) {\n setValueByPath(parentObject, ['_query', 'filter'], fromFilter);\n }\n return toObject;\n}\nfunction listBatchJobsParametersToMldev(fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listBatchJobsConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listBatchJobsParametersToVertex(fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listBatchJobsConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listBatchJobsResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromBatchJobs = getValueByPath(fromObject, ['operations']);\n if (fromBatchJobs != null) {\n let transformedList = fromBatchJobs;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return batchJobFromMldev(item);\n });\n }\n setValueByPath(toObject, ['batchJobs'], transformedList);\n }\n return toObject;\n}\nfunction listBatchJobsResponseFromVertex(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromBatchJobs = getValueByPath(fromObject, [\n 'batchPredictionJobs',\n ]);\n if (fromBatchJobs != null) {\n let transformedList = fromBatchJobs;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return batchJobFromVertex(item);\n });\n }\n setValueByPath(toObject, ['batchJobs'], transformedList);\n }\n return toObject;\n}\nfunction partToMldev$4(fromObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromToolCall = getValueByPath(fromObject, ['toolCall']);\n if (fromToolCall != null) {\n setValueByPath(toObject, ['toolCall'], fromToolCall);\n }\n const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);\n if (fromToolResponse != null) {\n setValueByPath(toObject, ['toolResponse'], fromToolResponse);\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fileDataToMldev$4(fromFileData));\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], functionCallToMldev$4(fromFunctionCall));\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], blobToMldev$4(fromInlineData));\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);\n if (fromPartMetadata != null) {\n setValueByPath(toObject, ['partMetadata'], fromPartMetadata);\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction safetySettingToMldev$3(fromObject) {\n const toObject = {};\n const fromCategory = getValueByPath(fromObject, ['category']);\n if (fromCategory != null) {\n setValueByPath(toObject, ['category'], fromCategory);\n }\n if (getValueByPath(fromObject, ['method']) !== undefined) {\n throw new Error('method parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromThreshold = getValueByPath(fromObject, ['threshold']);\n if (fromThreshold != null) {\n setValueByPath(toObject, ['threshold'], fromThreshold);\n }\n return toObject;\n}\nfunction toolConfigToMldev$2(fromObject) {\n const toObject = {};\n const fromFunctionCallingConfig = getValueByPath(fromObject, [\n 'functionCallingConfig',\n ]);\n if (fromFunctionCallingConfig != null) {\n setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$2(fromFunctionCallingConfig));\n }\n const fromRetrievalConfig = getValueByPath(fromObject, [\n 'retrievalConfig',\n ]);\n if (fromRetrievalConfig != null) {\n setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);\n }\n const fromIncludeServerSideToolInvocations = getValueByPath(fromObject, ['includeServerSideToolInvocations']);\n if (fromIncludeServerSideToolInvocations != null) {\n setValueByPath(toObject, ['includeServerSideToolInvocations'], fromIncludeServerSideToolInvocations);\n }\n return toObject;\n}\nfunction toolToMldev$4(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['retrieval']) !== undefined) {\n throw new Error('retrieval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$4(fromGoogleMaps));\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], fromComputerUse);\n }\n if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {\n throw new Error('enterpriseWebSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {\n throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$4(fromGoogleSearch));\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {\n throw new Error('parallelAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n const fromFileSearch = getValueByPath(fromObject, ['fileSearch']);\n if (fromFileSearch != null) {\n setValueByPath(toObject, ['fileSearch'], fromFileSearch);\n }\n return toObject;\n}\nfunction vertexMultimodalDatasetDestinationFromVertex(fromObject) {\n const toObject = {};\n const fromBigqueryDestination = getValueByPath(fromObject, [\n 'bigqueryDestination',\n 'outputUri',\n ]);\n if (fromBigqueryDestination != null) {\n setValueByPath(toObject, ['bigqueryDestination'], fromBigqueryDestination);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (fromDisplayName != null) {\n setValueByPath(toObject, ['displayName'], fromDisplayName);\n }\n return toObject;\n}\nfunction vertexMultimodalDatasetDestinationToVertex(fromObject) {\n const toObject = {};\n const fromBigqueryDestination = getValueByPath(fromObject, [\n 'bigqueryDestination',\n ]);\n if (fromBigqueryDestination != null) {\n setValueByPath(toObject, ['bigqueryDestination', 'outputUri'], fromBigqueryDestination);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (fromDisplayName != null) {\n setValueByPath(toObject, ['displayName'], fromDisplayName);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nvar PagedItem;\n(function (PagedItem) {\n PagedItem[\"PAGED_ITEM_BATCH_JOBS\"] = \"batchJobs\";\n PagedItem[\"PAGED_ITEM_MODELS\"] = \"models\";\n PagedItem[\"PAGED_ITEM_TUNING_JOBS\"] = \"tuningJobs\";\n PagedItem[\"PAGED_ITEM_FILES\"] = \"files\";\n PagedItem[\"PAGED_ITEM_CACHED_CONTENTS\"] = \"cachedContents\";\n PagedItem[\"PAGED_ITEM_FILE_SEARCH_STORES\"] = \"fileSearchStores\";\n PagedItem[\"PAGED_ITEM_DOCUMENTS\"] = \"documents\";\n PagedItem[\"PAGED_ITEM_SKILLS\"] = \"skills\";\n})(PagedItem || (PagedItem = {}));\n/**\n * Pager class for iterating through paginated results.\n */\nclass Pager {\n constructor(name, request, response, params) {\n this.pageInternal = [];\n this.paramsInternal = {};\n this.requestInternal = request;\n this.init(name, response, params);\n }\n init(name, response, params) {\n var _a, _b;\n this.nameInternal = name;\n this.pageInternal = response[this.nameInternal] || [];\n this.sdkHttpResponseInternal = response === null || response === void 0 ? void 0 : response.sdkHttpResponse;\n this.idxInternal = 0;\n let requestParams = { config: {} };\n if (!params || Object.keys(params).length === 0) {\n requestParams = { config: {} };\n }\n else if (typeof params === 'object') {\n requestParams = Object.assign({}, params);\n }\n else {\n requestParams = params;\n }\n if (requestParams['config']) {\n requestParams['config']['pageToken'] = response['nextPageToken'];\n }\n this.paramsInternal = requestParams;\n this.pageInternalSize =\n (_b = (_a = requestParams['config']) === null || _a === void 0 ? void 0 : _a['pageSize']) !== null && _b !== void 0 ? _b : this.pageInternal.length;\n }\n initNextPage(response) {\n this.init(this.nameInternal, response, this.paramsInternal);\n }\n /**\n * Returns the current page, which is a list of items.\n *\n * @remarks\n * The first page is retrieved when the pager is created. The returned list of\n * items could be a subset of the entire list.\n */\n get page() {\n return this.pageInternal;\n }\n /**\n * Returns the type of paged item (for example, ``batch_jobs``).\n */\n get name() {\n return this.nameInternal;\n }\n /**\n * Returns the length of the page fetched each time by this pager.\n *\n * @remarks\n * The number of items in the page is less than or equal to the page length.\n */\n get pageSize() {\n return this.pageInternalSize;\n }\n /**\n * Returns the headers of the API response.\n */\n get sdkHttpResponse() {\n return this.sdkHttpResponseInternal;\n }\n /**\n * Returns the parameters when making the API request for the next page.\n *\n * @remarks\n * Parameters contain a set of optional configs that can be\n * used to customize the API request. For example, the `pageToken` parameter\n * contains the token to request the next page.\n */\n get params() {\n return this.paramsInternal;\n }\n /**\n * Returns the total number of items in the current page.\n */\n get pageLength() {\n return this.pageInternal.length;\n }\n /**\n * Returns the item at the given index.\n */\n getItem(index) {\n return this.pageInternal[index];\n }\n /**\n * Returns an async iterator that support iterating through all items\n * retrieved from the API.\n *\n * @remarks\n * The iterator will automatically fetch the next page if there are more items\n * to fetch from the API.\n *\n * @example\n *\n * ```ts\n * const pager = await ai.files.list({config: {pageSize: 10}});\n * for await (const file of pager) {\n * console.log(file.name);\n * }\n * ```\n */\n [Symbol.asyncIterator]() {\n return {\n next: async () => {\n if (this.idxInternal >= this.pageLength) {\n if (this.hasNextPage()) {\n await this.nextPage();\n }\n else {\n return { value: undefined, done: true };\n }\n }\n const item = this.getItem(this.idxInternal);\n this.idxInternal += 1;\n return { value: item, done: false };\n },\n return: async () => {\n return { value: undefined, done: true };\n },\n };\n }\n /**\n * Fetches the next page of items. This makes a new API request.\n *\n * @throws {Error} If there are no more pages to fetch.\n *\n * @example\n *\n * ```ts\n * const pager = await ai.files.list({config: {pageSize: 10}});\n * let page = pager.page;\n * while (true) {\n * for (const file of page) {\n * console.log(file.name);\n * }\n * if (!pager.hasNextPage()) {\n * break;\n * }\n * page = await pager.nextPage();\n * }\n * ```\n */\n async nextPage() {\n if (!this.hasNextPage()) {\n throw new Error('No more pages to fetch.');\n }\n const response = await this.requestInternal(this.params);\n this.initNextPage(response);\n return this.page;\n }\n /**\n * Returns true if there are more pages to fetch from the API.\n */\n hasNextPage() {\n var _a;\n if (((_a = this.params['config']) === null || _a === void 0 ? void 0 : _a['pageToken']) !== undefined) {\n return true;\n }\n return false;\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass Batches extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n /**\n * Lists batch jobs.\n *\n * @param params - The parameters for the list request.\n * @return - A pager of batch jobs.\n *\n * @example\n * ```ts\n * const batchJobs = await ai.batches.list({config: {'pageSize': 2}});\n * for await (const batchJob of batchJobs) {\n * console.log(batchJob);\n * }\n * ```\n */\n this.list = async (params = {}) => {\n return new Pager(PagedItem.PAGED_ITEM_BATCH_JOBS, (x) => this.listInternal(x), await this.listInternal(params), params);\n };\n /**\n * Create batch job.\n *\n * @param params - The parameters for create batch job request.\n * @return The created batch job.\n *\n * @example\n * ```ts\n * const response = await ai.batches.create({\n * model: 'gemini-2.0-flash',\n * src: {gcsUri: 'gs://bucket/path/to/file.jsonl', format: 'jsonl'},\n * config: {\n * dest: {gcsUri: 'gs://bucket/path/output/directory', format: 'jsonl'},\n * }\n * });\n * console.log(response);\n * ```\n */\n this.create = async (params) => {\n if (this.apiClient.isVertexAI()) {\n // Format destination if not provided\n // Cast params.src as Vertex AI path does not handle InlinedRequest[]\n params.config = this.formatDestination(params.src, params.config);\n }\n return this.createInternal(params);\n };\n /**\n * **Experimental** Creates an embedding batch job.\n *\n * @param params - The parameters for create embedding batch job request.\n * @return The created batch job.\n *\n * @example\n * ```ts\n * const response = await ai.batches.createEmbeddings({\n * model: 'text-embedding-004',\n * src: {fileName: 'files/my_embedding_input'},\n * });\n * console.log(response);\n * ```\n */\n this.createEmbeddings = async (params) => {\n console.warn('batches.createEmbeddings() is experimental and may change without notice.');\n if (this.apiClient.isVertexAI()) {\n throw new Error('Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support batches.createEmbeddings.');\n }\n return this.createEmbeddingsInternal(params);\n };\n }\n // Helper function to handle inlined generate content requests\n createInlinedGenerateContentRequest(params) {\n const body = createBatchJobParametersToMldev(this.apiClient, // Use instance apiClient\n params);\n const urlParams = body['_url'];\n const path = formatMap('{model}:batchGenerateContent', urlParams);\n const batch = body['batch'];\n const inputConfig = batch['inputConfig'];\n const requestsWrapper = inputConfig['requests'];\n const requests = requestsWrapper['requests'];\n const newRequests = [];\n for (const request of requests) {\n const requestDict = Object.assign({}, request); // Clone\n if (requestDict['systemInstruction']) {\n const systemInstructionValue = requestDict['systemInstruction'];\n delete requestDict['systemInstruction'];\n const requestContent = requestDict['request'];\n requestContent['systemInstruction'] = systemInstructionValue;\n requestDict['request'] = requestContent;\n }\n newRequests.push(requestDict);\n }\n requestsWrapper['requests'] = newRequests;\n delete body['config'];\n delete body['_url'];\n delete body['_query'];\n return { path, body };\n }\n // Helper function to get the first GCS URI\n getGcsUri(src) {\n if (typeof src === 'string') {\n return src.startsWith('gs://') ? src : undefined;\n }\n if (!Array.isArray(src) && src.gcsUri && src.gcsUri.length > 0) {\n return src.gcsUri[0];\n }\n return undefined;\n }\n // Helper function to get the BigQuery URI\n getBigqueryUri(src) {\n if (typeof src === 'string') {\n return src.startsWith('bq://') ? src : undefined;\n }\n if (!Array.isArray(src)) {\n return src.bigqueryUri;\n }\n return undefined;\n }\n // Function to format the destination configuration for Vertex AI\n formatDestination(src, config) {\n const newConfig = config ? Object.assign({}, config) : {};\n const timestampStr = Date.now().toString();\n if (!newConfig.displayName) {\n newConfig.displayName = `genaiBatchJob_${timestampStr}`;\n }\n if (newConfig.dest === undefined) {\n const gcsUri = this.getGcsUri(src);\n const bigqueryUri = this.getBigqueryUri(src);\n if (gcsUri) {\n if (gcsUri.endsWith('.jsonl')) {\n // For .jsonl files, remove suffix and add /dest\n newConfig.dest = `${gcsUri.slice(0, -6)}/dest`;\n }\n else {\n // Fallback for other GCS URIs\n newConfig.dest = `${gcsUri}_dest_${timestampStr}`;\n }\n }\n else if (bigqueryUri) {\n newConfig.dest = `${bigqueryUri}_dest_${timestampStr}`;\n }\n else {\n throw new Error('Unsupported source for Gemini Enterprise Agent Platform (previously known as Vertex AI): No GCS or BigQuery URI found.');\n }\n }\n return newConfig;\n }\n /**\n * Internal method to create batch job.\n *\n * @param params - The parameters for create batch job request.\n * @return The created batch job.\n *\n */\n async createInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = createBatchJobParametersToVertex(this.apiClient, params);\n path = formatMap('batchPredictionJobs', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = batchJobFromVertex(apiResponse);\n return resp;\n });\n }\n else {\n const body = createBatchJobParametersToMldev(this.apiClient, params);\n path = formatMap('{model}:batchGenerateContent', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = batchJobFromMldev(apiResponse);\n return resp;\n });\n }\n }\n /**\n * Internal method to create batch job.\n *\n * @param params - The parameters for create batch job request.\n * @return The created batch job.\n *\n */\n async createEmbeddingsInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = createEmbeddingsBatchJobParametersToMldev(this.apiClient, params);\n path = formatMap('{model}:asyncBatchEmbedContent', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = batchJobFromMldev(apiResponse);\n return resp;\n });\n }\n }\n /**\n * Gets batch job configurations.\n *\n * @param params - The parameters for the get request.\n * @return The batch job.\n *\n * @example\n * ```ts\n * await ai.batches.get({name: '...'}); // The server-generated resource name.\n * ```\n */\n async get(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = getBatchJobParametersToVertex(this.apiClient, params);\n path = formatMap('batchPredictionJobs/{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = batchJobFromVertex(apiResponse);\n return resp;\n });\n }\n else {\n const body = getBatchJobParametersToMldev(this.apiClient, params);\n path = formatMap('batches/{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = batchJobFromMldev(apiResponse);\n return resp;\n });\n }\n }\n /**\n * Cancels a batch job.\n *\n * @param params - The parameters for the cancel request.\n * @return The empty response returned by the API.\n *\n * @example\n * ```ts\n * await ai.batches.cancel({name: '...'}); // The server-generated resource name.\n * ```\n */\n async cancel(params) {\n var _a, _b, _c, _d;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = cancelBatchJobParametersToVertex(this.apiClient, params);\n path = formatMap('batchPredictionJobs/{name}:cancel', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n await this.apiClient.request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n });\n }\n else {\n const body = cancelBatchJobParametersToMldev(this.apiClient, params);\n path = formatMap('batches/{name}:cancel', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n await this.apiClient.request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n });\n }\n }\n async listInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = listBatchJobsParametersToVertex(params);\n path = formatMap('batchPredictionJobs', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listBatchJobsResponseFromVertex(apiResponse);\n const typedResp = new ListBatchJobsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = listBatchJobsParametersToMldev(params);\n path = formatMap('batches', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listBatchJobsResponseFromMldev(apiResponse);\n const typedResp = new ListBatchJobsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Deletes a batch job.\n *\n * @param params - The parameters for the delete request.\n * @return The empty response returned by the API.\n *\n * @example\n * ```ts\n * await ai.batches.delete({name: '...'}); // The server-generated resource name.\n * ```\n */\n async delete(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = deleteBatchJobParametersToVertex(this.apiClient, params);\n path = formatMap('batchPredictionJobs/{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = deleteResourceJobFromVertex(apiResponse);\n return resp;\n });\n }\n else {\n const body = deleteBatchJobParametersToMldev(this.apiClient, params);\n path = formatMap('batches/{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = deleteResourceJobFromMldev(apiResponse);\n return resp;\n });\n }\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction authConfigToMldev$3(fromObject) {\n const toObject = {};\n const fromApiKey = getValueByPath(fromObject, ['apiKey']);\n if (fromApiKey != null) {\n setValueByPath(toObject, ['apiKey'], fromApiKey);\n }\n if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {\n throw new Error('apiKeyConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['authType']) !== undefined) {\n throw new Error('authType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==\n undefined) {\n throw new Error('googleServiceAccountConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {\n throw new Error('httpBasicAuthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {\n throw new Error('oauthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {\n throw new Error('oidcConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction blobToMldev$3(fromObject) {\n const toObject = {};\n const fromData = getValueByPath(fromObject, ['data']);\n if (fromData != null) {\n setValueByPath(toObject, ['data'], fromData);\n }\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction computerUseToVertex$2(fromObject) {\n const toObject = {};\n const fromEnablePromptInjectionDetection = getValueByPath(fromObject, [\n 'enablePromptInjectionDetection',\n ]);\n if (fromEnablePromptInjectionDetection != null) {\n setValueByPath(toObject, ['enablePromptInjectionDetection'], fromEnablePromptInjectionDetection);\n }\n const fromEnvironment = getValueByPath(fromObject, ['environment']);\n if (fromEnvironment != null) {\n setValueByPath(toObject, ['environment'], fromEnvironment);\n }\n const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [\n 'excludedPredefinedFunctions',\n ]);\n if (fromExcludedPredefinedFunctions != null) {\n setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);\n }\n if (getValueByPath(fromObject, ['disabledSafetyPolicies']) !== undefined) {\n throw new Error('disabledSafetyPolicies parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction contentToMldev$3(fromObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToMldev$3(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction contentToVertex$3(fromObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToVertex$3(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction createCachedContentConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromTtl = getValueByPath(fromObject, ['ttl']);\n if (parentObject !== undefined && fromTtl != null) {\n setValueByPath(parentObject, ['ttl'], fromTtl);\n }\n const fromExpireTime = getValueByPath(fromObject, ['expireTime']);\n if (parentObject !== undefined && fromExpireTime != null) {\n setValueByPath(parentObject, ['expireTime'], fromExpireTime);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromDisplayName);\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (parentObject !== undefined && fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToMldev$3(item);\n });\n }\n setValueByPath(parentObject, ['contents'], transformedList);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['systemInstruction'], contentToMldev$3(tContent(fromSystemInstruction)));\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = fromTools;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToMldev$3(item);\n });\n }\n setValueByPath(parentObject, ['tools'], transformedList);\n }\n const fromToolConfig = getValueByPath(fromObject, ['toolConfig']);\n if (parentObject !== undefined && fromToolConfig != null) {\n setValueByPath(parentObject, ['toolConfig'], toolConfigToMldev$1(fromToolConfig));\n }\n if (getValueByPath(fromObject, ['kmsKeyName']) !== undefined) {\n throw new Error('kmsKeyName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction createCachedContentConfigToVertex(fromObject, parentObject) {\n const toObject = {};\n const fromTtl = getValueByPath(fromObject, ['ttl']);\n if (parentObject !== undefined && fromTtl != null) {\n setValueByPath(parentObject, ['ttl'], fromTtl);\n }\n const fromExpireTime = getValueByPath(fromObject, ['expireTime']);\n if (parentObject !== undefined && fromExpireTime != null) {\n setValueByPath(parentObject, ['expireTime'], fromExpireTime);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromDisplayName);\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (parentObject !== undefined && fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToVertex$3(item);\n });\n }\n setValueByPath(parentObject, ['contents'], transformedList);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['systemInstruction'], contentToVertex$3(tContent(fromSystemInstruction)));\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = fromTools;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToVertex$2(item);\n });\n }\n setValueByPath(parentObject, ['tools'], transformedList);\n }\n const fromToolConfig = getValueByPath(fromObject, ['toolConfig']);\n if (parentObject !== undefined && fromToolConfig != null) {\n setValueByPath(parentObject, ['toolConfig'], toolConfigToVertex$1(fromToolConfig));\n }\n const fromKmsKeyName = getValueByPath(fromObject, ['kmsKeyName']);\n if (parentObject !== undefined && fromKmsKeyName != null) {\n setValueByPath(parentObject, ['encryption_spec', 'kmsKeyName'], fromKmsKeyName);\n }\n return toObject;\n}\nfunction createCachedContentParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['model'], tCachesModel(apiClient, fromModel));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createCachedContentConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction createCachedContentParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['model'], tCachesModel(apiClient, fromModel));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createCachedContentConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction deleteCachedContentParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tCachedContentName(apiClient, fromName));\n }\n return toObject;\n}\nfunction deleteCachedContentParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tCachedContentName(apiClient, fromName));\n }\n return toObject;\n}\nfunction deleteCachedContentResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction deleteCachedContentResponseFromVertex(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction fileDataToMldev$3(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFileUri = getValueByPath(fromObject, ['fileUri']);\n if (fromFileUri != null) {\n setValueByPath(toObject, ['fileUri'], fromFileUri);\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction functionCallToMldev$3(fromObject) {\n const toObject = {};\n const fromArgs = getValueByPath(fromObject, ['args']);\n if (fromArgs != null) {\n setValueByPath(toObject, ['args'], fromArgs);\n }\n const fromId = getValueByPath(fromObject, ['id']);\n if (fromId != null) {\n setValueByPath(toObject, ['id'], fromId);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n if (getValueByPath(fromObject, ['partialArgs']) !== undefined) {\n throw new Error('partialArgs parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['willContinue']) !== undefined) {\n throw new Error('willContinue parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction functionCallingConfigToMldev$1(fromObject) {\n const toObject = {};\n const fromAllowedFunctionNames = getValueByPath(fromObject, [\n 'allowedFunctionNames',\n ]);\n if (fromAllowedFunctionNames != null) {\n setValueByPath(toObject, ['allowedFunctionNames'], fromAllowedFunctionNames);\n }\n const fromMode = getValueByPath(fromObject, ['mode']);\n if (fromMode != null) {\n setValueByPath(toObject, ['mode'], fromMode);\n }\n if (getValueByPath(fromObject, ['streamFunctionCallArguments']) !==\n undefined) {\n throw new Error('streamFunctionCallArguments parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction getCachedContentParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tCachedContentName(apiClient, fromName));\n }\n return toObject;\n}\nfunction getCachedContentParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tCachedContentName(apiClient, fromName));\n }\n return toObject;\n}\nfunction googleMapsToMldev$3(fromObject) {\n const toObject = {};\n const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);\n if (fromAuthConfig != null) {\n setValueByPath(toObject, ['authConfig'], authConfigToMldev$3(fromAuthConfig));\n }\n const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);\n if (fromEnableWidget != null) {\n setValueByPath(toObject, ['enableWidget'], fromEnableWidget);\n }\n if (getValueByPath(fromObject, ['groundingTypes']) !== undefined) {\n throw new Error('groundingTypes parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction googleSearchToMldev$3(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {\n throw new Error('blockingConfidence parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {\n throw new Error('excludeDomains parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);\n if (fromSearchTypes != null) {\n setValueByPath(toObject, ['searchTypes'], fromSearchTypes);\n }\n const fromTimeRangeFilter = getValueByPath(fromObject, [\n 'timeRangeFilter',\n ]);\n if (fromTimeRangeFilter != null) {\n setValueByPath(toObject, ['timeRangeFilter'], fromTimeRangeFilter);\n }\n return toObject;\n}\nfunction listCachedContentsConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n return toObject;\n}\nfunction listCachedContentsConfigToVertex(fromObject, parentObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n return toObject;\n}\nfunction listCachedContentsParametersToMldev(fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listCachedContentsConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listCachedContentsParametersToVertex(fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listCachedContentsConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listCachedContentsResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromCachedContents = getValueByPath(fromObject, [\n 'cachedContents',\n ]);\n if (fromCachedContents != null) {\n let transformedList = fromCachedContents;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['cachedContents'], transformedList);\n }\n return toObject;\n}\nfunction listCachedContentsResponseFromVertex(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromCachedContents = getValueByPath(fromObject, [\n 'cachedContents',\n ]);\n if (fromCachedContents != null) {\n let transformedList = fromCachedContents;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['cachedContents'], transformedList);\n }\n return toObject;\n}\nfunction mcpServerToVertex$2(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['name']) !== undefined) {\n throw new Error('name parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['streamableHttpTransport']) !== undefined) {\n throw new Error('streamableHttpTransport parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction partToMldev$3(fromObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromToolCall = getValueByPath(fromObject, ['toolCall']);\n if (fromToolCall != null) {\n setValueByPath(toObject, ['toolCall'], fromToolCall);\n }\n const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);\n if (fromToolResponse != null) {\n setValueByPath(toObject, ['toolResponse'], fromToolResponse);\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fileDataToMldev$3(fromFileData));\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], functionCallToMldev$3(fromFunctionCall));\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], blobToMldev$3(fromInlineData));\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);\n if (fromPartMetadata != null) {\n setValueByPath(toObject, ['partMetadata'], fromPartMetadata);\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction partToVertex$3(fromObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n if (getValueByPath(fromObject, ['toolCall']) !== undefined) {\n throw new Error('toolCall parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {\n throw new Error('toolResponse parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fromFileData);\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], fromFunctionCall);\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], fromInlineData);\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {\n throw new Error('partMetadata parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction toolConfigToMldev$1(fromObject) {\n const toObject = {};\n const fromFunctionCallingConfig = getValueByPath(fromObject, [\n 'functionCallingConfig',\n ]);\n if (fromFunctionCallingConfig != null) {\n setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev$1(fromFunctionCallingConfig));\n }\n const fromRetrievalConfig = getValueByPath(fromObject, [\n 'retrievalConfig',\n ]);\n if (fromRetrievalConfig != null) {\n setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);\n }\n const fromIncludeServerSideToolInvocations = getValueByPath(fromObject, ['includeServerSideToolInvocations']);\n if (fromIncludeServerSideToolInvocations != null) {\n setValueByPath(toObject, ['includeServerSideToolInvocations'], fromIncludeServerSideToolInvocations);\n }\n return toObject;\n}\nfunction toolConfigToVertex$1(fromObject) {\n const toObject = {};\n const fromFunctionCallingConfig = getValueByPath(fromObject, [\n 'functionCallingConfig',\n ]);\n if (fromFunctionCallingConfig != null) {\n setValueByPath(toObject, ['functionCallingConfig'], fromFunctionCallingConfig);\n }\n const fromRetrievalConfig = getValueByPath(fromObject, [\n 'retrievalConfig',\n ]);\n if (fromRetrievalConfig != null) {\n setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);\n }\n if (getValueByPath(fromObject, ['includeServerSideToolInvocations']) !==\n undefined) {\n throw new Error('includeServerSideToolInvocations parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction toolToMldev$3(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['retrieval']) !== undefined) {\n throw new Error('retrieval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$3(fromGoogleMaps));\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], fromComputerUse);\n }\n if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {\n throw new Error('enterpriseWebSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {\n throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$3(fromGoogleSearch));\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {\n throw new Error('parallelAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n const fromFileSearch = getValueByPath(fromObject, ['fileSearch']);\n if (fromFileSearch != null) {\n setValueByPath(toObject, ['fileSearch'], fromFileSearch);\n }\n return toObject;\n}\nfunction toolToVertex$2(fromObject) {\n const toObject = {};\n const fromRetrieval = getValueByPath(fromObject, ['retrieval']);\n if (fromRetrieval != null) {\n setValueByPath(toObject, ['retrieval'], fromRetrieval);\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return mcpServerToVertex$2(item);\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], computerUseToVertex$2(fromComputerUse));\n }\n const fromEnterpriseWebSearch = getValueByPath(fromObject, [\n 'enterpriseWebSearch',\n ]);\n if (fromEnterpriseWebSearch != null) {\n setValueByPath(toObject, ['enterpriseWebSearch'], fromEnterpriseWebSearch);\n }\n const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);\n if (fromExaAiSearch != null) {\n setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n const fromParallelAiSearch = getValueByPath(fromObject, [\n 'parallelAiSearch',\n ]);\n if (fromParallelAiSearch != null) {\n setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {\n throw new Error('fileSearch parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction updateCachedContentConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromTtl = getValueByPath(fromObject, ['ttl']);\n if (parentObject !== undefined && fromTtl != null) {\n setValueByPath(parentObject, ['ttl'], fromTtl);\n }\n const fromExpireTime = getValueByPath(fromObject, ['expireTime']);\n if (parentObject !== undefined && fromExpireTime != null) {\n setValueByPath(parentObject, ['expireTime'], fromExpireTime);\n }\n return toObject;\n}\nfunction updateCachedContentConfigToVertex(fromObject, parentObject) {\n const toObject = {};\n const fromTtl = getValueByPath(fromObject, ['ttl']);\n if (parentObject !== undefined && fromTtl != null) {\n setValueByPath(parentObject, ['ttl'], fromTtl);\n }\n const fromExpireTime = getValueByPath(fromObject, ['expireTime']);\n if (parentObject !== undefined && fromExpireTime != null) {\n setValueByPath(parentObject, ['expireTime'], fromExpireTime);\n }\n return toObject;\n}\nfunction updateCachedContentParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tCachedContentName(apiClient, fromName));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n updateCachedContentConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction updateCachedContentParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], tCachedContentName(apiClient, fromName));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n updateCachedContentConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass Caches extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n /**\n * Lists cached contents.\n *\n * @param params - The parameters for the list request.\n * @return - A pager of cached contents.\n *\n * @example\n * ```ts\n * const cachedContents = await ai.caches.list({config: {'pageSize': 2}});\n * for await (const cachedContent of cachedContents) {\n * console.log(cachedContent);\n * }\n * ```\n */\n this.list = async (params = {}) => {\n return new Pager(PagedItem.PAGED_ITEM_CACHED_CONTENTS, (x) => this.listInternal(x), await this.listInternal(params), params);\n };\n }\n /**\n * Creates a cached contents resource.\n *\n * @remarks\n * Context caching is only supported for specific models. See [Gemini\n * Developer API reference](https://ai.google.dev/gemini-api/docs/caching?lang=node/context-cac)\n * and [Gemini Enterprise Agent Platform reference](https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview#supported_models)\n * for more information.\n *\n * @param params - The parameters for the create request.\n * @return The created cached content.\n *\n * @example\n * ```ts\n * const contents = ...; // Initialize the content to cache.\n * const response = await ai.caches.create({\n * model: 'gemini-2.0-flash-001',\n * config: {\n * 'contents': contents,\n * 'displayName': 'test cache',\n * 'systemInstruction': 'What is the sum of the two pdfs?',\n * 'ttl': '86400s',\n * }\n * });\n * ```\n */\n async create(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = createCachedContentParametersToVertex(this.apiClient, params);\n path = formatMap('cachedContents', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n else {\n const body = createCachedContentParametersToMldev(this.apiClient, params);\n path = formatMap('cachedContents', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n /**\n * Gets cached content configurations.\n *\n * @param params - The parameters for the get request.\n * @return The cached content.\n *\n * @example\n * ```ts\n * await ai.caches.get({name: '...'}); // The server-generated resource name.\n * ```\n */\n async get(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = getCachedContentParametersToVertex(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n else {\n const body = getCachedContentParametersToMldev(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n /**\n * Deletes cached content.\n *\n * @param params - The parameters for the delete request.\n * @return The empty response returned by the API.\n *\n * @example\n * ```ts\n * await ai.caches.delete({name: '...'}); // The server-generated resource name.\n * ```\n */\n async delete(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = deleteCachedContentParametersToVertex(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = deleteCachedContentResponseFromVertex(apiResponse);\n const typedResp = new DeleteCachedContentResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = deleteCachedContentParametersToMldev(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = deleteCachedContentResponseFromMldev(apiResponse);\n const typedResp = new DeleteCachedContentResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Updates cached content configurations.\n *\n * @param params - The parameters for the update request.\n * @return The updated cached content.\n *\n * @example\n * ```ts\n * const response = await ai.caches.update({\n * name: '...', // The server-generated resource name.\n * config: {'ttl': '7600s'}\n * });\n * ```\n */\n async update(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = updateCachedContentParametersToVertex(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'PATCH',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n else {\n const body = updateCachedContentParametersToMldev(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'PATCH',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n async listInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = listCachedContentsParametersToVertex(params);\n path = formatMap('cachedContents', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listCachedContentsResponseFromVertex(apiResponse);\n const typedResp = new ListCachedContentsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = listCachedContentsParametersToMldev(params);\n path = formatMap('cachedContents', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listCachedContentsResponseFromMldev(apiResponse);\n const typedResp = new ListCachedContentsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n}\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Returns true if the response is valid, false otherwise.\n */\nfunction isValidResponse(response) {\n var _a;\n if (response.candidates == undefined || response.candidates.length === 0) {\n return false;\n }\n const content = (_a = response.candidates[0]) === null || _a === void 0 ? void 0 : _a.content;\n if (content === undefined) {\n return false;\n }\n return isValidContent(content);\n}\nfunction isValidContent(content) {\n if (content.parts === undefined || content.parts.length === 0) {\n return false;\n }\n for (const part of content.parts) {\n if (part === undefined || Object.keys(part).length === 0) {\n return false;\n }\n }\n return true;\n}\n/**\n * Validates the history contains the correct roles.\n *\n * @throws Error if the history does not start with a user turn.\n * @throws Error if the history contains an invalid role.\n */\nfunction validateHistory(history) {\n // Empty history is valid.\n if (history.length === 0) {\n return;\n }\n for (const content of history) {\n if (content.role !== 'user' && content.role !== 'model') {\n throw new Error(`Role must be user or model, but got ${content.role}.`);\n }\n }\n}\n/**\n * Extracts the curated (valid) history from a comprehensive history.\n *\n * @remarks\n * The model may sometimes generate invalid or empty contents(e.g., due to safty\n * filters or recitation). Extracting valid turns from the history\n * ensures that subsequent requests could be accpeted by the model.\n */\nfunction extractCuratedHistory(comprehensiveHistory) {\n if (comprehensiveHistory === undefined || comprehensiveHistory.length === 0) {\n return [];\n }\n const curatedHistory = [];\n const length = comprehensiveHistory.length;\n let i = 0;\n while (i < length) {\n if (comprehensiveHistory[i].role === 'user') {\n curatedHistory.push(comprehensiveHistory[i]);\n i++;\n }\n else {\n const modelOutput = [];\n let isValid = true;\n while (i < length && comprehensiveHistory[i].role === 'model') {\n modelOutput.push(comprehensiveHistory[i]);\n if (isValid && !isValidContent(comprehensiveHistory[i])) {\n isValid = false;\n }\n i++;\n }\n if (isValid) {\n curatedHistory.push(...modelOutput);\n }\n else {\n // Remove the last user input when model content is invalid.\n curatedHistory.pop();\n }\n }\n }\n return curatedHistory;\n}\n/**\n * A utility class to create a chat session.\n */\nclass Chats {\n constructor(modelsModule, apiClient) {\n this.modelsModule = modelsModule;\n this.apiClient = apiClient;\n }\n /**\n * Creates a new chat session.\n *\n * @remarks\n * The config in the params will be used for all requests within the chat\n * session unless overridden by a per-request `config` in\n * @see {@link types.SendMessageParameters#config}.\n *\n * @param params - Parameters for creating a chat session.\n * @returns A new chat session.\n *\n * @example\n * ```ts\n * const chat = ai.chats.create({\n * model: 'gemini-2.0-flash'\n * config: {\n * temperature: 0.5,\n * maxOutputTokens: 1024,\n * }\n * });\n * ```\n */\n create(params) {\n return new Chat(this.apiClient, this.modelsModule, params.model, params.config, \n // Deep copy the history to avoid mutating the history outside of the\n // chat session.\n structuredClone(params.history));\n }\n}\n/**\n * Chat session that enables sending messages to the model with previous\n * conversation context.\n *\n * @remarks\n * The session maintains all the turns between user and model.\n */\nclass Chat {\n constructor(apiClient, modelsModule, model, config = {}, history = []) {\n this.apiClient = apiClient;\n this.modelsModule = modelsModule;\n this.model = model;\n this.config = config;\n this.history = history;\n // A promise to represent the current state of the message being sent to the\n // model.\n this.sendPromise = Promise.resolve();\n validateHistory(history);\n }\n /**\n * Sends a message to the model and returns the response.\n *\n * @remarks\n * This method will wait for the previous message to be processed before\n * sending the next message.\n *\n * @see {@link Chat#sendMessageStream} for streaming method.\n * @param params - parameters for sending messages within a chat session.\n * @returns The model's response.\n *\n * @example\n * ```ts\n * const chat = ai.chats.create({model: 'gemini-2.0-flash'});\n * const response = await chat.sendMessage({\n * message: 'Why is the sky blue?'\n * });\n * console.log(response.text);\n * ```\n */\n async sendMessage(params) {\n var _a;\n await this.sendPromise;\n const inputContent = tContent(params.message);\n const responsePromise = this.modelsModule.generateContent({\n model: this.model,\n contents: this.getHistory(true).concat(inputContent),\n config: (_a = params.config) !== null && _a !== void 0 ? _a : this.config,\n });\n this.sendPromise = (async () => {\n var _a, _b, _c;\n const response = await responsePromise;\n const outputContent = (_b = (_a = response.candidates) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.content;\n // Because the AFC input contains the entire curated chat history in\n // addition to the new user input, we need to truncate the AFC history\n // to deduplicate the existing chat history.\n const fullAutomaticFunctionCallingHistory = response.automaticFunctionCallingHistory;\n const index = this.getHistory(true).length;\n let automaticFunctionCallingHistory = [];\n if (fullAutomaticFunctionCallingHistory != null) {\n automaticFunctionCallingHistory =\n (_c = fullAutomaticFunctionCallingHistory.slice(index)) !== null && _c !== void 0 ? _c : [];\n }\n const modelOutput = outputContent ? [outputContent] : [];\n this.recordHistory(inputContent, modelOutput, automaticFunctionCallingHistory);\n return;\n })();\n await this.sendPromise.catch(() => {\n // Resets sendPromise to avoid subsequent calls failing\n this.sendPromise = Promise.resolve();\n });\n return responsePromise;\n }\n /**\n * Sends a message to the model and returns the response in chunks.\n *\n * @remarks\n * This method will wait for the previous message to be processed before\n * sending the next message.\n *\n * @see {@link Chat#sendMessage} for non-streaming method.\n * @param params - parameters for sending the message.\n * @return The model's response.\n *\n * @example\n * ```ts\n * const chat = ai.chats.create({model: 'gemini-2.0-flash'});\n * const response = await chat.sendMessageStream({\n * message: 'Why is the sky blue?'\n * });\n * for await (const chunk of response) {\n * console.log(chunk.text);\n * }\n * ```\n */\n async sendMessageStream(params) {\n var _a;\n await this.sendPromise;\n const inputContent = tContent(params.message);\n const streamResponse = this.modelsModule.generateContentStream({\n model: this.model,\n contents: this.getHistory(true).concat(inputContent),\n config: (_a = params.config) !== null && _a !== void 0 ? _a : this.config,\n });\n // Resolve the internal tracking of send completion promise - `sendPromise`\n // for both success and failure response. The actual failure is still\n // propagated by the `await streamResponse`.\n this.sendPromise = streamResponse\n .then(() => undefined)\n .catch(() => undefined);\n const response = await streamResponse;\n const result = this.processStreamResponse(response, inputContent);\n return result;\n }\n /**\n * Returns the chat history.\n *\n * @remarks\n * The history is a list of contents alternating between user and model.\n *\n * There are two types of history:\n * - The `curated history` contains only the valid turns between user and\n * model, which will be included in the subsequent requests sent to the model.\n * - The `comprehensive history` contains all turns, including invalid or\n * empty model outputs, providing a complete record of the history.\n *\n * The history is updated after receiving the response from the model,\n * for streaming response, it means receiving the last chunk of the response.\n *\n * The `comprehensive history` is returned by default. To get the `curated\n * history`, set the `curated` parameter to `true`.\n *\n * @param curated - whether to return the curated history or the comprehensive\n * history.\n * @return History contents alternating between user and model for the entire\n * chat session.\n */\n getHistory(curated = false) {\n const history = curated\n ? extractCuratedHistory(this.history)\n : this.history;\n // Deep copy the history to avoid mutating the history outside of the\n // chat session.\n return structuredClone(history);\n }\n processStreamResponse(streamResponse, inputContent) {\n return __asyncGenerator(this, arguments, function* processStreamResponse_1() {\n var _a, e_1, _b, _c;\n var _d, _e;\n const outputContent = [];\n try {\n for (var _f = true, streamResponse_1 = __asyncValues(streamResponse), streamResponse_1_1; streamResponse_1_1 = yield __await(streamResponse_1.next()), _a = streamResponse_1_1.done, !_a; _f = true) {\n _c = streamResponse_1_1.value;\n _f = false;\n const chunk = _c;\n if (isValidResponse(chunk)) {\n const content = (_e = (_d = chunk.candidates) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.content;\n if (content !== undefined) {\n outputContent.push(content);\n }\n }\n yield yield __await(chunk);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (!_f && !_a && (_b = streamResponse_1.return)) yield __await(_b.call(streamResponse_1));\n }\n finally { if (e_1) throw e_1.error; }\n }\n this.recordHistory(inputContent, outputContent);\n });\n }\n recordHistory(userInput, modelOutput, automaticFunctionCallingHistory) {\n let outputContents = [];\n if (modelOutput.length > 0 &&\n modelOutput.every((content) => content.role !== undefined)) {\n outputContents = modelOutput;\n }\n else {\n // Appends an empty content when model returns empty response, so that the\n // history is always alternating between user and model.\n outputContents.push({\n role: 'model',\n parts: [],\n });\n }\n if (automaticFunctionCallingHistory &&\n automaticFunctionCallingHistory.length > 0) {\n this.history.push(...extractCuratedHistory(automaticFunctionCallingHistory));\n }\n else {\n this.history.push(userInput);\n }\n this.history.push(...outputContents);\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction createFileSearchStoreConfigToMldev(apiClient, fromObject, parentObject) {\n const toObject = {};\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromDisplayName);\n }\n const fromEmbeddingModel = getValueByPath(fromObject, [\n 'embeddingModel',\n ]);\n if (parentObject !== undefined && fromEmbeddingModel != null) {\n setValueByPath(parentObject, ['embeddingModel'], tModel(apiClient, fromEmbeddingModel));\n }\n return toObject;\n}\nfunction createFileSearchStoreParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createFileSearchStoreConfigToMldev(apiClient, fromConfig, toObject);\n }\n return toObject;\n}\nfunction deleteFileSearchStoreConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromForce = getValueByPath(fromObject, ['force']);\n if (parentObject !== undefined && fromForce != null) {\n setValueByPath(parentObject, ['_query', 'force'], fromForce);\n }\n return toObject;\n}\nfunction deleteFileSearchStoreParametersToMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n deleteFileSearchStoreConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction getFileSearchStoreParametersToMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n return toObject;\n}\nfunction importFileConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromCustomMetadata = getValueByPath(fromObject, [\n 'customMetadata',\n ]);\n if (parentObject !== undefined && fromCustomMetadata != null) {\n let transformedList = fromCustomMetadata;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(parentObject, ['customMetadata'], transformedList);\n }\n const fromChunkingConfig = getValueByPath(fromObject, [\n 'chunkingConfig',\n ]);\n if (parentObject !== undefined && fromChunkingConfig != null) {\n setValueByPath(parentObject, ['chunkingConfig'], fromChunkingConfig);\n }\n return toObject;\n}\nfunction importFileOperationFromMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromResponse = getValueByPath(fromObject, ['response']);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], importFileResponseFromMldev(fromResponse));\n }\n return toObject;\n}\nfunction importFileParametersToMldev(fromObject) {\n const toObject = {};\n const fromFileSearchStoreName = getValueByPath(fromObject, [\n 'fileSearchStoreName',\n ]);\n if (fromFileSearchStoreName != null) {\n setValueByPath(toObject, ['_url', 'file_search_store_name'], fromFileSearchStoreName);\n }\n const fromFileName = getValueByPath(fromObject, ['fileName']);\n if (fromFileName != null) {\n setValueByPath(toObject, ['fileName'], fromFileName);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n importFileConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction importFileResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromParent = getValueByPath(fromObject, ['parent']);\n if (fromParent != null) {\n setValueByPath(toObject, ['parent'], fromParent);\n }\n const fromDocumentName = getValueByPath(fromObject, ['documentName']);\n if (fromDocumentName != null) {\n setValueByPath(toObject, ['documentName'], fromDocumentName);\n }\n return toObject;\n}\nfunction listFileSearchStoresConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n return toObject;\n}\nfunction listFileSearchStoresParametersToMldev(fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listFileSearchStoresConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listFileSearchStoresResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromFileSearchStores = getValueByPath(fromObject, [\n 'fileSearchStores',\n ]);\n if (fromFileSearchStores != null) {\n let transformedList = fromFileSearchStores;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['fileSearchStores'], transformedList);\n }\n return toObject;\n}\nfunction uploadToFileSearchStoreConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (parentObject !== undefined && fromMimeType != null) {\n setValueByPath(parentObject, ['mimeType'], fromMimeType);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromDisplayName);\n }\n const fromCustomMetadata = getValueByPath(fromObject, [\n 'customMetadata',\n ]);\n if (parentObject !== undefined && fromCustomMetadata != null) {\n let transformedList = fromCustomMetadata;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(parentObject, ['customMetadata'], transformedList);\n }\n const fromChunkingConfig = getValueByPath(fromObject, [\n 'chunkingConfig',\n ]);\n if (parentObject !== undefined && fromChunkingConfig != null) {\n setValueByPath(parentObject, ['chunkingConfig'], fromChunkingConfig);\n }\n return toObject;\n}\nfunction uploadToFileSearchStoreParametersToMldev(fromObject) {\n const toObject = {};\n const fromFileSearchStoreName = getValueByPath(fromObject, [\n 'fileSearchStoreName',\n ]);\n if (fromFileSearchStoreName != null) {\n setValueByPath(toObject, ['_url', 'file_search_store_name'], fromFileSearchStoreName);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n uploadToFileSearchStoreConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction uploadToFileSearchStoreResumableResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * API errors raised by the GenAI API.\n */\nclass ApiError extends Error {\n constructor(options) {\n super(options.message);\n this.name = 'ApiError';\n this.status = options.status;\n Object.setPrototypeOf(this, ApiError.prototype);\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst CONTENT_TYPE_HEADER = 'Content-Type';\nconst SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';\nconst USER_AGENT_HEADER = 'User-Agent';\nconst GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';\nconst SDK_VERSION = '2.21.0'; // x-release-please-version\nconst LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;\nconst VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';\nconst GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';\nconst MULTI_REGIONAL_LOCATIONS = new Set(['us', 'eu']);\n/**\n * Raises Undici's internal header/body timeouts to at least `timeout` ms.\n *\n * In Node > 18 the built-in fetch is backed by Undici, which sets a global\n * dispatcher tracking its own headersTimeout and bodyTimeout via Symbol\n * properties. Those would otherwise fire before a longer caller-supplied\n * timeout.\n */\nfunction raiseUndiciTimeouts(timeout) {\n const dispatcherSymbol = Symbol.for('undici.globalDispatcher.1');\n const globalDispatcher = globalThis[dispatcherSymbol];\n if (!globalDispatcher) {\n return;\n }\n for (const sym of Object.getOwnPropertySymbols(globalDispatcher)) {\n const desc = sym.description;\n if ((desc === null || desc === void 0 ? void 0 : desc.includes('headers timeout')) || (desc === null || desc === void 0 ? void 0 : desc.includes('body timeout'))) {\n const currentTimeout = globalDispatcher[sym];\n if (typeof currentTimeout === 'number') {\n globalDispatcher[sym] = Math.max(currentTimeout, timeout);\n }\n }\n }\n}\n/**\n * Creates the abort plumbing for one attempt.\n *\n * A fresh signal per attempt is what makes `HttpOptions.timeout` a per-attempt\n * deadline rather than a budget shared across every retry and backoff.\n */\nfunction createAttemptSignal(timeout, callerSignal) {\n const noop = () => { };\n if (!(timeout && timeout > 0) && !callerSignal) {\n return { signal: undefined, dispose: noop };\n }\n const controller = new AbortController();\n let timeoutHandle;\n if (timeout && timeout > 0) {\n timeoutHandle = setTimeout(() => controller.abort(), timeout);\n if (timeoutHandle &&\n typeof timeoutHandle.unref === 'function') {\n // call unref to prevent nodejs process from hanging, see\n // https://nodejs.org/api/timers.html#timeoutunref\n timeoutHandle.unref();\n }\n }\n const onCallerAbort = () => controller.abort();\n if (callerSignal) {\n if (callerSignal.aborted) {\n controller.abort();\n }\n else {\n callerSignal.addEventListener('abort', onCallerAbort);\n }\n }\n return {\n signal: controller.signal,\n dispose: () => {\n if (timeoutHandle !== undefined) {\n clearTimeout(timeoutHandle);\n }\n callerSignal === null || callerSignal === void 0 ? void 0 : callerSignal.removeEventListener('abort', onCallerAbort);\n },\n };\n}\n// Default retry options.\n// The config is based on https://cloud.google.com/storage/docs/retry-strategy.\n// LINT.IfChange\nconst DEFAULT_RETRY_ATTEMPTS = 5; // Including the initial call\nconst DEFAULT_RETRY_INITIAL_DELAY = 1.0; // seconds\nconst DEFAULT_RETRY_MAX_DELAY = 60.0; // seconds\nconst DEFAULT_RETRY_EXP_BASE = 2;\nconst DEFAULT_RETRY_JITTER = 1;\nconst DEFAULT_RETRY_HTTP_STATUS_CODES = [\n 408, // Request timeout\n 429, // Too many requests\n 500, // Internal server error\n 502, // Bad gateway\n 503, // Service unavailable\n 504, // Gateway timeout\n];\n/**\n * The ApiClient class is used to send requests to the Gemini API or Vertex AI\n * endpoints.\n *\n * WARNING: This is an internal API and may change without notice. Direct usage\n * is not supported and may break your application.\n */\nclass ApiClient {\n constructor(opts) {\n var _a, _b, _c;\n this.clientOptions = Object.assign({}, opts);\n this.customBaseUrl = (_a = opts.httpOptions) === null || _a === void 0 ? void 0 : _a.baseUrl;\n const initHttpOptions = {};\n if (this.clientOptions.vertexai) {\n if (!this.clientOptions.location &&\n !this.clientOptions.apiKey &&\n !this.customBaseUrl) {\n this.clientOptions.location = 'global';\n }\n const hasSufficientAuth = (this.clientOptions.project && this.clientOptions.location) ||\n this.clientOptions.apiKey;\n if (!hasSufficientAuth && !this.customBaseUrl) {\n throw new Error('Authentication is not set up. Please provide either a project and location, or an API key, or a custom base URL.');\n }\n const hasConstructorAuth = (opts.project && opts.location) || !!opts.apiKey;\n if (this.customBaseUrl && !hasConstructorAuth) {\n initHttpOptions.baseUrl = this.customBaseUrl;\n this.clientOptions.project = undefined;\n this.clientOptions.location = undefined;\n }\n else if ((this.clientOptions.apiKey && !this.clientOptions.project) ||\n this.clientOptions.location === 'global') {\n // Vertex Express or global endpoint case.\n initHttpOptions.baseUrl = 'https://aiplatform.googleapis.com/';\n }\n else if (this.clientOptions.project &&\n this.clientOptions.location &&\n MULTI_REGIONAL_LOCATIONS.has(this.clientOptions.location)) {\n initHttpOptions.baseUrl = `https://aiplatform.${this.clientOptions.location}.rep.googleapis.com/`;\n }\n else if (this.clientOptions.project && this.clientOptions.location) {\n initHttpOptions.baseUrl = `https://${this.clientOptions.location}-aiplatform.googleapis.com/`;\n }\n initHttpOptions.apiVersion =\n (_b = this.clientOptions.apiVersion) !== null && _b !== void 0 ? _b : VERTEX_AI_API_DEFAULT_VERSION;\n }\n else {\n // Gemini API\n if (!this.clientOptions.apiKey) {\n console.warn('API key should be set when using the Gemini API.');\n }\n initHttpOptions.apiVersion =\n (_c = this.clientOptions.apiVersion) !== null && _c !== void 0 ? _c : GOOGLE_AI_API_DEFAULT_VERSION;\n initHttpOptions.baseUrl = `https://generativelanguage.googleapis.com/`;\n }\n initHttpOptions.headers = this.getDefaultHeaders();\n this.clientOptions.httpOptions = initHttpOptions;\n if (opts.httpOptions) {\n this.clientOptions.httpOptions = this.patchHttpOptions(initHttpOptions, opts.httpOptions);\n }\n }\n isVertexAI() {\n var _a;\n return (_a = this.clientOptions.vertexai) !== null && _a !== void 0 ? _a : false;\n }\n getProject() {\n return this.clientOptions.project;\n }\n getLocation() {\n return this.clientOptions.location;\n }\n getCustomBaseUrl() {\n return this.customBaseUrl;\n }\n async getAuthHeaders() {\n const headers = new Headers();\n await this.clientOptions.auth.addAuthHeaders(headers);\n return headers;\n }\n getApiVersion() {\n if (this.clientOptions.httpOptions &&\n this.clientOptions.httpOptions.apiVersion !== undefined) {\n return this.clientOptions.httpOptions.apiVersion;\n }\n throw new Error('API version is not set.');\n }\n getBaseUrl() {\n if (this.clientOptions.httpOptions &&\n this.clientOptions.httpOptions.baseUrl !== undefined) {\n return this.clientOptions.httpOptions.baseUrl;\n }\n throw new Error('Base URL is not set.');\n }\n getRequestUrl() {\n return this.getRequestUrlInternal(this.clientOptions.httpOptions);\n }\n getHeaders() {\n if (this.clientOptions.httpOptions &&\n this.clientOptions.httpOptions.headers !== undefined) {\n return this.clientOptions.httpOptions.headers;\n }\n else {\n throw new Error('Headers are not set.');\n }\n }\n getRequestUrlInternal(httpOptions) {\n if (!httpOptions ||\n httpOptions.baseUrl === undefined ||\n httpOptions.apiVersion === undefined) {\n throw new Error('HTTP options are not correctly set.');\n }\n const baseUrl = httpOptions.baseUrl.endsWith('/')\n ? httpOptions.baseUrl.slice(0, -1)\n : httpOptions.baseUrl;\n const urlElement = [baseUrl];\n if (httpOptions.apiVersion && httpOptions.apiVersion !== '') {\n urlElement.push(httpOptions.apiVersion);\n }\n return urlElement.join('/');\n }\n getBaseResourcePath() {\n return `projects/${this.clientOptions.project}/locations/${this.clientOptions.location}`;\n }\n getApiKey() {\n return this.clientOptions.apiKey;\n }\n getWebsocketBaseUrl() {\n const baseUrl = this.getBaseUrl();\n const urlParts = new URL(baseUrl);\n urlParts.protocol = urlParts.protocol == 'http:' ? 'ws' : 'wss';\n return urlParts.toString();\n }\n setBaseUrl(url) {\n if (this.clientOptions.httpOptions) {\n this.clientOptions.httpOptions.baseUrl = url;\n }\n else {\n throw new Error('HTTP options are not correctly set.');\n }\n }\n constructUrl(path, httpOptions, prependProjectLocation) {\n const urlElement = [this.getRequestUrlInternal(httpOptions)];\n if (prependProjectLocation) {\n urlElement.push(this.getBaseResourcePath());\n }\n if (path !== '') {\n urlElement.push(path);\n }\n const url = new URL(`${urlElement.join('/')}`);\n return url;\n }\n shouldPrependVertexProjectPath(request, httpOptions) {\n if (httpOptions.baseUrl &&\n httpOptions.baseUrlResourceScope === ResourceScope.COLLECTION) {\n return false;\n }\n if (!this.clientOptions.vertexai) {\n return false;\n }\n if (!this.clientOptions.project || !this.clientOptions.location) {\n return false;\n }\n if (request.path.startsWith('projects/')) {\n // Assume the path already starts with\n // `projects/<project>/location/<location>`.\n return false;\n }\n if (request.httpMethod === 'GET' &&\n request.path.startsWith('publishers/google/models')) {\n // These paths are used by Vertex's models.get and models.list\n // calls. For base models Vertex does not accept a project/location\n // prefix (for tuned model the prefix is required).\n return false;\n }\n return true;\n }\n async request(request) {\n let patchedHttpOptions = this.clientOptions.httpOptions;\n if (request.httpOptions) {\n patchedHttpOptions = this.patchHttpOptions(this.clientOptions.httpOptions, request.httpOptions);\n }\n const prependProjectLocation = this.shouldPrependVertexProjectPath(request, patchedHttpOptions);\n const url = this.constructUrl(request.path, patchedHttpOptions, prependProjectLocation);\n if (request.queryParams) {\n for (const [key, value] of Object.entries(request.queryParams)) {\n url.searchParams.append(key, String(value));\n }\n }\n let requestInit = {};\n if (request.httpMethod === 'GET') {\n if (request.body && request.body !== '{}') {\n throw new Error('Request body should be empty for GET request, but got non empty request body');\n }\n }\n else {\n requestInit.body = request.body;\n }\n requestInit = await this.includeExtraHttpOptionsToRequestInit(requestInit, patchedHttpOptions, url.toString());\n return this.unaryApiCall(url, requestInit, request.httpMethod, patchedHttpOptions.retryOptions, patchedHttpOptions.timeout, request.abortSignal);\n }\n patchHttpOptions(baseHttpOptions, requestHttpOptions) {\n const patchedHttpOptions = JSON.parse(JSON.stringify(baseHttpOptions));\n for (const [key, value] of Object.entries(requestHttpOptions)) {\n // Records compile to objects.\n if (typeof value === 'object') {\n // @ts-expect-error TS2345TS7053: Element implicitly has an 'any' type\n // because expression of type 'string' can't be used to index type\n // 'HttpOptions'.\n patchedHttpOptions[key] = Object.assign(Object.assign({}, patchedHttpOptions[key]), value);\n }\n else if (value !== undefined) {\n // @ts-expect-error TS2345TS7053: Element implicitly has an 'any' type\n // because expression of type 'string' can't be used to index type\n // 'HttpOptions'.\n patchedHttpOptions[key] = value;\n }\n }\n return patchedHttpOptions;\n }\n async requestStream(request) {\n let patchedHttpOptions = this.clientOptions.httpOptions;\n if (request.httpOptions) {\n patchedHttpOptions = this.patchHttpOptions(this.clientOptions.httpOptions, request.httpOptions);\n }\n const prependProjectLocation = this.shouldPrependVertexProjectPath(request, patchedHttpOptions);\n const url = this.constructUrl(request.path, patchedHttpOptions, prependProjectLocation);\n if (!url.searchParams.has('alt') || url.searchParams.get('alt') !== 'sse') {\n url.searchParams.set('alt', 'sse');\n }\n let requestInit = {};\n requestInit.body = request.body;\n requestInit = await this.includeExtraHttpOptionsToRequestInit(requestInit, patchedHttpOptions, url.toString());\n return this.streamApiCall(url, requestInit, request.httpMethod, patchedHttpOptions.retryOptions, patchedHttpOptions.timeout, request.abortSignal);\n }\n async includeExtraHttpOptionsToRequestInit(requestInit, httpOptions, url) {\n if ((httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.timeout) && httpOptions.timeout > 0) {\n raiseUndiciTimeouts(httpOptions.timeout);\n }\n if (httpOptions && httpOptions.extraBody !== null) {\n includeExtraBodyToRequestInit(requestInit, httpOptions.extraBody);\n }\n requestInit.headers = await this.getHeadersInternal(httpOptions, url);\n return requestInit;\n }\n async unaryApiCall(url, requestInit, httpMethod, retryOptions, timeout, abortSignal) {\n return this.apiCall(url.toString(), Object.assign(Object.assign({}, requestInit), { method: httpMethod }), retryOptions, timeout, abortSignal)\n .then(async (response) => {\n await throwErrorIfNotOK(response);\n return new HttpResponse(response);\n })\n .catch((e) => {\n if (e instanceof Error) {\n throw e;\n }\n else {\n throw new Error(`exception ${e} sending request`, { cause: e });\n }\n });\n }\n async streamApiCall(url, requestInit, httpMethod, retryOptions, timeout, abortSignal) {\n return this.apiCall(url.toString(), Object.assign(Object.assign({}, requestInit), { method: httpMethod }), retryOptions, timeout, abortSignal)\n .then(async (response) => {\n await throwErrorIfNotOK(response);\n return this.processStreamResponse(response);\n })\n .catch((e) => {\n if (e instanceof Error) {\n throw e;\n }\n else {\n throw new Error(`exception ${e} sending request`, { cause: e });\n }\n });\n }\n processStreamResponse(response) {\n return __asyncGenerator(this, arguments, function* processStreamResponse_1() {\n var _a;\n const reader = (_a = response === null || response === void 0 ? void 0 : response.body) === null || _a === void 0 ? void 0 : _a.getReader();\n const decoder = new TextDecoder('utf-8');\n if (!reader) {\n throw new Error('Response body is empty');\n }\n try {\n let buffer = '';\n const dataPrefix = 'data:';\n const delimiters = ['\\n\\n', '\\r\\r', '\\r\\n\\r\\n'];\n while (true) {\n const { done, value } = yield __await(reader.read());\n if (done) {\n if (buffer.trim().length > 0) {\n throw new Error('Incomplete JSON segment at the end');\n }\n break;\n }\n const chunkString = decoder.decode(value, { stream: true });\n // Parse and throw an error if the chunk contains an error.\n try {\n const chunkJson = JSON.parse(chunkString);\n if ('error' in chunkJson) {\n const errorJson = JSON.parse(JSON.stringify(chunkJson['error']));\n const status = errorJson['status'];\n const code = errorJson['code'];\n const errorMessage = `got status: ${status}. ${JSON.stringify(chunkJson)}`;\n if (code >= 400 && code < 600) {\n const apiError = new ApiError({\n message: errorMessage,\n status: code,\n });\n throw apiError;\n }\n }\n }\n catch (e) {\n const error = e;\n if (error.name === 'ApiError') {\n throw e;\n }\n }\n buffer += chunkString;\n let delimiterIndex = -1;\n let delimiterLength = 0;\n while (true) {\n delimiterIndex = -1;\n delimiterLength = 0;\n for (const delimiter of delimiters) {\n const index = buffer.indexOf(delimiter);\n if (index !== -1 &&\n (delimiterIndex === -1 || index < delimiterIndex)) {\n delimiterIndex = index;\n delimiterLength = delimiter.length;\n }\n }\n if (delimiterIndex === -1) {\n break; // No complete event in buffer\n }\n const eventString = buffer.substring(0, delimiterIndex);\n buffer = buffer.substring(delimiterIndex + delimiterLength);\n const trimmedEvent = eventString.trim();\n if (trimmedEvent.startsWith(dataPrefix)) {\n const processedChunkString = trimmedEvent\n .substring(dataPrefix.length)\n .trim();\n try {\n const partialResponse = new Response(processedChunkString, {\n headers: response === null || response === void 0 ? void 0 : response.headers,\n status: response === null || response === void 0 ? void 0 : response.status,\n statusText: response === null || response === void 0 ? void 0 : response.statusText,\n });\n yield yield __await(new HttpResponse(partialResponse));\n }\n catch (e) {\n throw new Error(`exception parsing stream chunk ${processedChunkString}. ${e}`);\n }\n }\n }\n }\n }\n finally {\n reader.releaseLock();\n }\n });\n }\n async apiCall(url, requestInit, retryOptions, timeout, abortSignal) {\n var _a, _b, _c, _d, _e, _f;\n const retryableStatusCodes = (_a = retryOptions === null || retryOptions === void 0 ? void 0 : retryOptions.httpStatusCodes) !== null && _a !== void 0 ? _a : DEFAULT_RETRY_HTTP_STATUS_CODES;\n const runFetch = async () => {\n // A fresh signal per attempt, so that `timeout` bounds this attempt\n // rather than the whole retry sequence.\n const attempt = createAttemptSignal(timeout, abortSignal);\n let response;\n try {\n response = await fetch(url, Object.assign(Object.assign({}, requestInit), { signal: attempt.signal }));\n }\n catch (e) {\n attempt.dispose();\n throw e;\n }\n if (!retryOptions ||\n response.ok ||\n !retryableStatusCodes.includes(response.status)) {\n // Either a success, or a failure that must not be retried.\n //\n // The attempt is deliberately not disposed: ownership of the response\n // passes to the caller, and the timeout must stay armed while the body\n // is consumed.\n return response;\n }\n // Retryable failure, and this response is about to be discarded, so the\n // attempt's timeout is no longer needed.\n try {\n // Throw the typed `ApiError` so that callers can still rely on\n // `error.status` once the retries are exhausted.\n await throwErrorIfNotOK(response);\n }\n finally {\n attempt.dispose();\n }\n // Unreachable: throwErrorIfNotOK always throws for a non-ok response.\n return response;\n };\n if (!retryOptions) {\n return runFetch();\n }\n // `attempts` counts the initial call, so p-retry gets one less.\n const attempts = Math.max(1, (_b = retryOptions.attempts) !== null && _b !== void 0 ? _b : DEFAULT_RETRY_ATTEMPTS);\n const minTimeout = Math.round(((_c = retryOptions.initialDelay) !== null && _c !== void 0 ? _c : DEFAULT_RETRY_INITIAL_DELAY) * 1000);\n const maxTimeout = Math.max(minTimeout, Math.round(((_d = retryOptions.maxDelay) !== null && _d !== void 0 ? _d : DEFAULT_RETRY_MAX_DELAY) * 1000));\n return pRetry(runFetch, {\n retries: attempts - 1,\n factor: (_e = retryOptions.expBase) !== null && _e !== void 0 ? _e : DEFAULT_RETRY_EXP_BASE,\n minTimeout,\n maxTimeout,\n randomize: ((_f = retryOptions.jitter) !== null && _f !== void 0 ? _f : DEFAULT_RETRY_JITTER) > 0,\n onFailedAttempt: (info) => {\n var _a;\n if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) {\n throw (_a = info.error) !== null && _a !== void 0 ? _a : info;\n }\n },\n });\n }\n getDefaultHeaders() {\n const headers = {};\n const versionHeaderValue = LIBRARY_LABEL + ' ' + this.clientOptions.userAgentExtra;\n headers[USER_AGENT_HEADER] = versionHeaderValue;\n headers[GOOGLE_API_CLIENT_HEADER] = versionHeaderValue;\n headers[CONTENT_TYPE_HEADER] = 'application/json';\n return headers;\n }\n async getHeadersInternal(httpOptions, url) {\n const headers = new Headers();\n if (httpOptions && httpOptions.headers) {\n for (const [key, value] of Object.entries(httpOptions.headers)) {\n headers.append(key, value);\n }\n }\n // Append a timeout header if it is set, note that the timeout option is\n // in milliseconds but the header is in seconds.\n // NOTE: This is intentionally outside the httpOptions.headers guard above\n // so that the X-Server-Timeout header is always sent whenever a timeout\n // is configured, even if the caller did not supply any custom headers.\n if ((httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.timeout) && httpOptions.timeout > 0) {\n headers.append(SERVER_TIMEOUT_HEADER, String(Math.ceil(httpOptions.timeout / 1000)));\n }\n await this.clientOptions.auth.addAuthHeaders(headers, url);\n return headers;\n }\n getFileName(file) {\n var _a;\n let fileName = '';\n if (typeof file === 'string') {\n fileName = file.replace(/[/\\\\]+$/, '');\n fileName = (_a = fileName.split(/[/\\\\]/).pop()) !== null && _a !== void 0 ? _a : '';\n }\n return fileName;\n }\n /**\n * Uploads a file asynchronously using Gemini API only, this is not supported\n * in Vertex AI.\n *\n * @param file The string path to the file to be uploaded or a Blob object.\n * @param config Optional parameters specified in the `UploadFileConfig`\n * interface. @see {@link types.UploadFileConfig}\n * @return A promise that resolves to a `File` object.\n * @throws An error if called on a Vertex AI client.\n * @throws An error if the `mimeType` is not provided and can not be inferred,\n */\n async uploadFile(file, config) {\n var _a;\n const fileToUpload = {};\n if (config != null) {\n fileToUpload.mimeType = config.mimeType;\n fileToUpload.name = config.name;\n fileToUpload.displayName = config.displayName;\n }\n if (fileToUpload.name && !fileToUpload.name.startsWith('files/')) {\n fileToUpload.name = `files/${fileToUpload.name}`;\n }\n const uploader = this.clientOptions.uploader;\n const fileStat = await uploader.stat(file);\n fileToUpload.sizeBytes = String(fileStat.size);\n const mimeType = (_a = config === null || config === void 0 ? void 0 : config.mimeType) !== null && _a !== void 0 ? _a : fileStat.type;\n if (mimeType === undefined || mimeType === '') {\n throw new Error('Can not determine mimeType. Please provide mimeType in the config.');\n }\n fileToUpload.mimeType = mimeType;\n const body = {\n file: fileToUpload,\n };\n const fileName = this.getFileName(file);\n const path = formatMap('upload/v1beta/files', body['_url']);\n const uploadUrl = await this.fetchUploadUrl(path, fileToUpload.sizeBytes, fileToUpload.mimeType, fileName, body, config === null || config === void 0 ? void 0 : config.httpOptions);\n return uploader.upload(file, uploadUrl, this);\n }\n /**\n * Uploads a file to a given file search store asynchronously using Gemini API only, this is not supported\n * in Vertex AI.\n *\n * @param fileSearchStoreName The name of the file search store to upload the file to.\n * @param file The string path to the file to be uploaded or a Blob object.\n * @param config Optional parameters specified in the `UploadFileConfig`\n * interface. @see {@link UploadFileConfig}\n * @return A promise that resolves to a `File` object.\n * @throws An error if called on a Vertex AI client.\n * @throws An error if the `mimeType` is not provided and can not be inferred,\n */\n async uploadFileToFileSearchStore(fileSearchStoreName, file, config) {\n var _a;\n const uploader = this.clientOptions.uploader;\n const fileStat = await uploader.stat(file);\n const sizeBytes = String(fileStat.size);\n const mimeType = (_a = config === null || config === void 0 ? void 0 : config.mimeType) !== null && _a !== void 0 ? _a : fileStat.type;\n if (mimeType === undefined || mimeType === '') {\n throw new Error('Can not determine mimeType. Please provide mimeType in the config.');\n }\n const path = `upload/v1beta/${fileSearchStoreName}:uploadToFileSearchStore`;\n const fileName = this.getFileName(file);\n const body = {};\n if (config != null) {\n uploadToFileSearchStoreConfigToMldev(config, body);\n }\n const uploadUrl = await this.fetchUploadUrl(path, sizeBytes, mimeType, fileName, body, config === null || config === void 0 ? void 0 : config.httpOptions);\n return uploader.uploadToFileSearchStore(file, uploadUrl, this);\n }\n /**\n * Downloads a file asynchronously to the specified path.\n *\n * @params params - The parameters for the download request, see {@link\n * types.DownloadFileParameters}\n */\n async downloadFile(params) {\n const downloader = this.clientOptions.downloader;\n await downloader.download(params, this);\n }\n async fetchUploadUrl(path, sizeBytes, mimeType, fileName, body, configHttpOptions) {\n var _a;\n let httpOptions = {};\n if (configHttpOptions) {\n httpOptions = configHttpOptions;\n }\n else {\n httpOptions = {\n apiVersion: '', // api-version is set in the path.\n headers: Object.assign({ 'Content-Type': 'application/json', 'X-Goog-Upload-Protocol': 'resumable', 'X-Goog-Upload-Command': 'start', 'X-Goog-Upload-Header-Content-Length': `${sizeBytes}`, 'X-Goog-Upload-Header-Content-Type': `${mimeType}` }, (fileName ? { 'X-Goog-Upload-File-Name': fileName } : {})),\n };\n }\n const httpResponse = await this.request({\n path,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions,\n });\n if (!httpResponse || !(httpResponse === null || httpResponse === void 0 ? void 0 : httpResponse.headers)) {\n throw new Error('Server did not return an HttpResponse or the returned HttpResponse did not have headers.');\n }\n const uploadUrl = (_a = httpResponse === null || httpResponse === void 0 ? void 0 : httpResponse.headers) === null || _a === void 0 ? void 0 : _a['x-goog-upload-url'];\n if (uploadUrl === undefined) {\n throw new Error('Failed to get upload url. Server did not return the x-google-upload-url in the headers');\n }\n return uploadUrl;\n }\n}\nasync function throwErrorIfNotOK(response) {\n var _a;\n if (response === undefined) {\n throw new Error('response is undefined');\n }\n if (!response.ok) {\n const status = response.status;\n let errorBody;\n if ((_a = response.headers.get('content-type')) === null || _a === void 0 ? void 0 : _a.includes('application/json')) {\n errorBody = await response.json();\n }\n else {\n errorBody = {\n error: {\n message: await response.text(),\n code: response.status,\n status: response.statusText,\n },\n };\n }\n const errorMessage = JSON.stringify(errorBody);\n if (status >= 400 && status < 600) {\n const apiError = new ApiError({\n message: errorMessage,\n status: status,\n });\n throw apiError;\n }\n throw new Error(errorMessage);\n }\n}\n/**\n * Recursively updates the `requestInit.body` with values from an `extraBody` object.\n *\n * If `requestInit.body` is a string, it's assumed to be JSON and will be parsed.\n * The `extraBody` is then deeply merged into this parsed object.\n * If `requestInit.body` is a Blob, `extraBody` will be ignored, and a warning logged,\n * as merging structured data into an opaque Blob is not supported.\n *\n * The function does not enforce that updated values from `extraBody` have the\n * same type as existing values in `requestInit.body`. Type mismatches during\n * the merge will result in a warning, but the value from `extraBody` will overwrite\n * the original. `extraBody` users are responsible for ensuring `extraBody` has the correct structure.\n *\n * @param requestInit The RequestInit object whose body will be updated.\n * @param extraBody The object containing updates to be merged into `requestInit.body`.\n */\nfunction includeExtraBodyToRequestInit(requestInit, extraBody) {\n if (!extraBody || Object.keys(extraBody).length === 0) {\n return;\n }\n if (requestInit.body instanceof Blob) {\n console.warn('includeExtraBodyToRequestInit: extraBody provided but current request body is a Blob. extraBody will be ignored as merging is not supported for Blob bodies.');\n return;\n }\n let currentBodyObject = {};\n // If adding new type to HttpRequest.body, please check the code below to\n // see if we need to update the logic.\n if (typeof requestInit.body === 'string' && requestInit.body.length > 0) {\n try {\n const parsedBody = JSON.parse(requestInit.body);\n if (typeof parsedBody === 'object' &&\n parsedBody !== null &&\n !Array.isArray(parsedBody)) {\n currentBodyObject = parsedBody;\n }\n else {\n console.warn('includeExtraBodyToRequestInit: Original request body is valid JSON but not a non-array object. Skip applying extraBody to the request body.');\n return;\n }\n /* eslint-disable-next-line @typescript-eslint/no-unused-vars */\n }\n catch (e) {\n console.warn('includeExtraBodyToRequestInit: Original request body is not valid JSON. Skip applying extraBody to the request body.');\n return;\n }\n }\n function deepMerge(target, source) {\n const output = Object.assign({}, target);\n for (const key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n const sourceValue = source[key];\n const targetValue = output[key];\n if (sourceValue &&\n typeof sourceValue === 'object' &&\n !Array.isArray(sourceValue) &&\n targetValue &&\n typeof targetValue === 'object' &&\n !Array.isArray(targetValue)) {\n output[key] = deepMerge(targetValue, sourceValue);\n }\n else {\n if (targetValue &&\n sourceValue &&\n typeof targetValue !== typeof sourceValue) {\n console.warn(`includeExtraBodyToRequestInit:deepMerge: Type mismatch for key \"${key}\". Original type: ${typeof targetValue}, New type: ${typeof sourceValue}. Overwriting.`);\n }\n output[key] = sourceValue;\n }\n }\n }\n return output;\n }\n const mergedBody = deepMerge(currentBodyObject, extraBody);\n requestInit.body = JSON.stringify(mergedBody);\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction crossError() {\n // TODO(b/399934880): this message needs a link to a help page explaining how to enable conditional exports\n return new Error(`This feature requires the web or Node specific @google/genai implementation, you can fix this by either:\n\n*Enabling conditional exports for your project [recommended]*\n\n*Using a platform specific import* - Make sure your code imports either '@google/genai/web' or '@google/genai/node' instead of '@google/genai'.\n`);\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass CrossDownloader {\n async download(_params, _apiClient) {\n throw crossError();\n }\n}\n\nconst MAX_CHUNK_SIZE = 1024 * 1024 * 8; // bytes\nconst MAX_RETRY_COUNT = 3;\nconst INITIAL_RETRY_DELAY_MS = 1000;\nconst DELAY_MULTIPLIER = 2;\nconst X_GOOG_UPLOAD_STATUS_HEADER_FIELD = 'x-goog-upload-status';\nclass CrossUploader {\n async upload(file, uploadUrl, apiClient, httpOptions) {\n if (typeof file === 'string') {\n throw crossError();\n }\n else {\n return uploadBlob(file, uploadUrl, apiClient, httpOptions);\n }\n }\n async uploadToFileSearchStore(file, uploadUrl, apiClient, httpOptions) {\n if (typeof file === 'string') {\n throw crossError();\n }\n else {\n return uploadBlobToFileSearchStore(file, uploadUrl, apiClient, httpOptions);\n }\n }\n async stat(file) {\n if (typeof file === 'string') {\n throw crossError();\n }\n else {\n return getBlobStat(file);\n }\n }\n}\nasync function uploadBlob(file, uploadUrl, apiClient, httpOptions) {\n var _a;\n const response = await uploadBlobInternal(file, uploadUrl, apiClient, httpOptions);\n const responseJson = (await (response === null || response === void 0 ? void 0 : response.json()));\n if (((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'final') {\n throw new Error('Failed to upload file: Upload status is not finalized.');\n }\n return responseJson['file'];\n}\nasync function uploadBlobToFileSearchStore(file, uploadUrl, apiClient, httpOptions) {\n var _a;\n const response = await uploadBlobInternal(file, uploadUrl, apiClient, httpOptions);\n const responseJson = (await (response === null || response === void 0 ? void 0 : response.json()));\n if (((_a = response === null || response === void 0 ? void 0 : response.headers) === null || _a === void 0 ? void 0 : _a[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'final') {\n throw new Error('Failed to upload file: Upload status is not finalized.');\n }\n const resp = uploadToFileSearchStoreOperationFromMldev(responseJson);\n const typedResp = new UploadToFileSearchStoreOperation();\n Object.assign(typedResp, resp);\n return typedResp;\n}\nasync function uploadBlobInternal(file, uploadUrl, apiClient, httpOptions) {\n var _a, _b, _c;\n let finalUrl = uploadUrl;\n const effectiveBaseUrl = (httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.baseUrl) || ((_a = apiClient.clientOptions.httpOptions) === null || _a === void 0 ? void 0 : _a.baseUrl);\n if (effectiveBaseUrl) {\n const baseUri = new URL(effectiveBaseUrl);\n const uploadUri = new URL(uploadUrl);\n uploadUri.protocol = baseUri.protocol;\n uploadUri.host = baseUri.host;\n uploadUri.port = baseUri.port;\n finalUrl = uploadUri.toString();\n }\n let fileSize = 0;\n let offset = 0;\n let response = new HttpResponse(new Response());\n let uploadCommand = 'upload';\n fileSize = file.size;\n while (offset < fileSize) {\n const chunkSize = Math.min(MAX_CHUNK_SIZE, fileSize - offset);\n const chunk = file.slice(offset, offset + chunkSize);\n if (offset + chunkSize >= fileSize) {\n uploadCommand += ', finalize';\n }\n let retryCount = 0;\n let currentDelayMs = INITIAL_RETRY_DELAY_MS;\n while (retryCount < MAX_RETRY_COUNT) {\n const mergedHeaders = Object.assign(Object.assign({}, ((httpOptions === null || httpOptions === void 0 ? void 0 : httpOptions.headers) || {})), { 'X-Goog-Upload-Command': uploadCommand, 'X-Goog-Upload-Offset': String(offset) });\n response = await apiClient.request({\n path: '',\n body: chunk,\n httpMethod: 'POST',\n httpOptions: Object.assign(Object.assign({}, httpOptions), { apiVersion: '', baseUrl: finalUrl, headers: mergedHeaders }),\n });\n if ((_b = response === null || response === void 0 ? void 0 : response.headers) === null || _b === void 0 ? void 0 : _b[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) {\n break;\n }\n retryCount++;\n await sleep(currentDelayMs);\n currentDelayMs = currentDelayMs * DELAY_MULTIPLIER;\n }\n offset += chunkSize;\n // The `x-goog-upload-status` header field can be `active`, `final` and\n //`cancelled` in resposne.\n if (((_c = response === null || response === void 0 ? void 0 : response.headers) === null || _c === void 0 ? void 0 : _c[X_GOOG_UPLOAD_STATUS_HEADER_FIELD]) !== 'active') {\n break;\n }\n // TODO(b/401391430) Investigate why the upload status is not finalized\n // even though all content has been uploaded.\n if (fileSize <= offset) {\n throw new Error('All content has been uploaded, but the upload status is not finalized.');\n }\n }\n return response;\n}\nasync function getBlobStat(file) {\n const fileStat = { size: file.size, type: file.type };\n return fileStat;\n}\nfunction sleep(ms) {\n return new Promise((resolvePromise) => setTimeout(resolvePromise, ms));\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass CrossWebSocketFactory {\n create(_url, _headers, _callbacks) {\n throw crossError();\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Code generated by the Google Gen AI SDK generator DO NOT EDIT.\nfunction createFileParametersToMldev(fromObject) {\n const toObject = {};\n const fromFile = getValueByPath(fromObject, ['file']);\n if (fromFile != null) {\n setValueByPath(toObject, ['file'], fromFile);\n }\n return toObject;\n}\nfunction createFileResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction deleteFileParametersToMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'file'], tFileName(fromName));\n }\n return toObject;\n}\nfunction deleteFileResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction getFileParametersToMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'file'], tFileName(fromName));\n }\n return toObject;\n}\nfunction internalRegisterFilesParametersToMldev(fromObject) {\n const toObject = {};\n const fromUris = getValueByPath(fromObject, ['uris']);\n if (fromUris != null) {\n setValueByPath(toObject, ['uris'], fromUris);\n }\n return toObject;\n}\nfunction listFilesConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n return toObject;\n}\nfunction listFilesParametersToMldev(fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listFilesConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listFilesResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromFiles = getValueByPath(fromObject, ['files']);\n if (fromFiles != null) {\n let transformedList = fromFiles;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['files'], transformedList);\n }\n return toObject;\n}\nfunction registerFilesResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromFiles = getValueByPath(fromObject, ['files']);\n if (fromFiles != null) {\n let transformedList = fromFiles;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['files'], transformedList);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nlet Files$1 = class Files extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n /**\n * Lists files.\n *\n * @param params - The parameters for the list request.\n * @return - A pager of files.\n *\n * @example\n * ```ts\n * const files = await ai.files.list({config: {'pageSize': 2}});\n * for await (const file of files) {\n * console.log(file);\n * }\n * ```\n */\n this.list = async (params = {}) => {\n return new Pager(PagedItem.PAGED_ITEM_FILES, (x) => this.listInternal(x), await this.listInternal(params), params);\n };\n }\n /**\n * Uploads a file asynchronously to the Gemini API.\n * This method is not available in Gemini Enterprise Agent Platform (previously known as Vertex AI).\n * Supported upload sources:\n * - Node.js: File path (string) or Blob object.\n * - Browser: Blob object (e.g., File).\n *\n * @remarks\n * The `mimeType` can be specified in the `config` parameter. If omitted:\n * - For file path (string) inputs, the `mimeType` will be inferred from the\n * file extension.\n * - For Blob object inputs, the `mimeType` will be set to the Blob's `type`\n * property.\n * Some examples for file extension to mimeType mapping:\n * .txt -> text/plain\n * .json -> application/json\n * .jpg -> image/jpeg\n * .png -> image/png\n * .mp3 -> audio/mpeg\n * .mp4 -> video/mp4\n *\n * This section can contain multiple paragraphs and code examples.\n *\n * @param params - Optional parameters specified in the\n * `types.UploadFileParameters` interface.\n * @see {@link types.UploadFileParameters#config} for the optional\n * config in the parameters.\n * @return A promise that resolves to a `types.File` object.\n * @throws An error if called on a Gemini Enterprise Agent Platform (previously known as Vertex AI) client.\n * @throws An error if the `mimeType` is not provided and can not be inferred,\n * the `mimeType` can be provided in the `params.config` parameter.\n * @throws An error occurs if a suitable upload location cannot be established.\n *\n * @example\n * The following code uploads a file to Gemini API.\n *\n * ```ts\n * const file = await ai.files.upload({file: 'file.txt', config: {\n * mimeType: 'text/plain',\n * }});\n * console.log(file.name);\n * ```\n */\n async upload(params) {\n if (this.apiClient.isVertexAI()) {\n throw new Error('Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files. You can share files through a GCS bucket.');\n }\n return this.apiClient\n .uploadFile(params.file, params.config)\n .then((resp) => {\n return resp;\n });\n }\n /**\n * Downloads a remotely stored file asynchronously to a location specified in\n * the `params` object. This method only works on Node environment, to\n * download files in the browser, use a browser compliant method like an <a>\n * tag.\n *\n * @param params - The parameters for the download request.\n *\n * @example\n * The following code downloads an example file named \"files/mehozpxf877d\" as\n * \"file.txt\".\n *\n * ```ts\n * await ai.files.download({file: file.name, downloadPath: 'file.txt'});\n * ```\n */\n async download(params) {\n await this.apiClient.downloadFile(params);\n }\n /**\n * Registers Google Cloud Storage files for use with the API.\n * This method is only available in Node.js environments.\n */\n async registerFiles(params) {\n throw new Error('registerFiles is only supported in Node.js environments.');\n }\n async _registerFiles(params) {\n return this.registerFilesInternal(params);\n }\n async listInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = listFilesParametersToMldev(params);\n path = formatMap('files', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listFilesResponseFromMldev(apiResponse);\n const typedResp = new ListFilesResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n async createInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = createFileParametersToMldev(params);\n path = formatMap('upload/v1beta/files', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = createFileResponseFromMldev(apiResponse);\n const typedResp = new CreateFileResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Retrieves the file information from the service.\n *\n * @param params - The parameters for the get request\n * @return The Promise that resolves to the types.File object requested.\n *\n * @example\n * ```ts\n * const config: GetFileParameters = {\n * name: fileName,\n * };\n * file = await ai.files.get(config);\n * console.log(file.name);\n * ```\n */\n async get(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = getFileParametersToMldev(params);\n path = formatMap('files/{file}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n /**\n * Deletes a remotely stored file.\n *\n * @param params - The parameters for the delete request.\n * @return The DeleteFileResponse, the response for the delete method.\n *\n * @example\n * The following code deletes an example file named \"files/mehozpxf877d\".\n *\n * ```ts\n * await ai.files.delete({name: file.name});\n * ```\n */\n async delete(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = deleteFileParametersToMldev(params);\n path = formatMap('files/{file}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = deleteFileResponseFromMldev(apiResponse);\n const typedResp = new DeleteFileResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n async registerFilesInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = internalRegisterFilesParametersToMldev(params);\n path = formatMap('files:register', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = registerFilesResponseFromMldev(apiResponse);\n const typedResp = new RegisterFilesResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n};\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Code generated by the Google Gen AI SDK generator DO NOT EDIT.\nfunction deleteDocumentConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromForce = getValueByPath(fromObject, ['force']);\n if (parentObject !== undefined && fromForce != null) {\n setValueByPath(parentObject, ['_query', 'force'], fromForce);\n }\n return toObject;\n}\nfunction deleteDocumentParametersToMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n deleteDocumentConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction getDocumentParametersToMldev(fromObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n return toObject;\n}\nfunction listDocumentsConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n return toObject;\n}\nfunction listDocumentsParametersToMldev(fromObject) {\n const toObject = {};\n const fromParent = getValueByPath(fromObject, ['parent']);\n if (fromParent != null) {\n setValueByPath(toObject, ['_url', 'parent'], fromParent);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listDocumentsConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listDocumentsResponseFromMldev(fromObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromDocuments = getValueByPath(fromObject, ['documents']);\n if (fromDocuments != null) {\n let transformedList = fromDocuments;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['documents'], transformedList);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass Documents extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n /**\n * Lists documents.\n *\n * @param params - The parameters for the list request.\n * @return - A pager of documents.\n *\n * @example\n * ```ts\n * const documents = await ai.documents.list({parent:'rag_store_name', config: {'pageSize': 2}});\n * for await (const document of documents) {\n * console.log(document);\n * }\n * ```\n */\n this.list = async (params) => {\n return new Pager(PagedItem.PAGED_ITEM_DOCUMENTS, (x) => this.listInternal({ parent: params.parent, config: x.config }), await this.listInternal(params), params);\n };\n }\n /**\n * Gets a Document.\n *\n * @param params - The parameters for getting a document.\n * @return Document.\n */\n async get(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = getDocumentParametersToMldev(params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n /**\n * Deletes a Document.\n *\n * @param params - The parameters for deleting a document.\n */\n async delete(params) {\n var _a, _b;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = deleteDocumentParametersToMldev(params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n await this.apiClient.request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n });\n }\n }\n async listInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = listDocumentsParametersToMldev(params);\n path = formatMap('{parent}/documents', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = listDocumentsResponseFromMldev(apiResponse);\n const typedResp = new ListDocumentsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass FileSearchStores extends BaseModule {\n constructor(apiClient, documents = new Documents(apiClient)) {\n super();\n this.apiClient = apiClient;\n this.documents = documents;\n /**\n * Lists file search stores.\n *\n * @param params - The parameters for the list request.\n * @return - A pager of file search stores.\n *\n * @example\n * ```ts\n * const fileSearchStores = await ai.fileSearchStores.list({config: {'pageSize': 2}});\n * for await (const fileSearchStore of fileSearchStores) {\n * console.log(fileSearchStore);\n * }\n * ```\n */\n this.list = async (params = {}) => {\n return new Pager(PagedItem.PAGED_ITEM_FILE_SEARCH_STORES, (x) => this.listInternal(x), await this.listInternal(params), params);\n };\n }\n /**\n * Uploads a file asynchronously to a given File Search Store.\n * This method is not available in Gemini Enterprise Agent Platform (previously known as Vertex AI).\n * Supported upload sources:\n * - Node.js: File path (string) or Blob object.\n * - Browser: Blob object (e.g., File).\n *\n * @remarks\n * The `mimeType` can be specified in the `config` parameter. If omitted:\n * - For file path (string) inputs, the `mimeType` will be inferred from the\n * file extension.\n * - For Blob object inputs, the `mimeType` will be set to the Blob's `type`\n * property.\n *\n * This section can contain multiple paragraphs and code examples.\n *\n * @param params - Optional parameters specified in the\n * `types.UploadToFileSearchStoreParameters` interface.\n * @see {@link types.UploadToFileSearchStoreParameters#config} for the optional\n * config in the parameters.\n * @return A promise that resolves to a long running operation.\n * @throws An error if called on a Gemini Enterprise Agent Platform (previously known as Vertex AI) client.\n * @throws An error if the `mimeType` is not provided and can not be inferred,\n * the `mimeType` can be provided in the `params.config` parameter.\n * @throws An error occurs if a suitable upload location cannot be established.\n *\n * @example\n * The following code uploads a file to a given file search store.\n *\n * ```ts\n * const operation = await ai.fileSearchStores.upload({fileSearchStoreName: 'fileSearchStores/foo-bar', file: 'file.txt', config: {\n * mimeType: 'text/plain',\n * }});\n * console.log(operation.name);\n * ```\n */\n async uploadToFileSearchStore(params) {\n if (this.apiClient.isVertexAI()) {\n throw new Error('Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files to a file search store.');\n }\n return this.apiClient.uploadFileToFileSearchStore(params.fileSearchStoreName, params.file, params.config);\n }\n /**\n * Downloads media using a Media ID or URI.\n * This method is only supported in the Gemini Developer client.\n *\n * @param uri - The URI or Media ID of the blob.\n * @param config - Optional configuration for the download.\n * @returns A promise that resolves to the blob data as a Uint8Array.\n */\n async downloadMedia(uri, config) {\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported in the Gemini Developer client.');\n }\n const parsedUri = new URL(uri, 'http://dummy.com');\n let pathname = parsedUri.pathname;\n if (pathname.startsWith('/')) {\n pathname = pathname.slice(1);\n }\n if (!pathname.includes('/media/')) {\n throw new Error(`Invalid uri format: ${uri}. Expected to contain /media/`);\n }\n const queryParams = {};\n parsedUri.searchParams.forEach((value, key) => {\n queryParams[key] = value;\n });\n queryParams['alt'] = 'media';\n const httpOptions = Object.assign({}, config === null || config === void 0 ? void 0 : config.httpOptions);\n const response = await this.apiClient.request({\n path: pathname,\n httpMethod: 'GET',\n queryParams: queryParams,\n httpOptions: httpOptions,\n });\n if (response instanceof HttpResponse) {\n const arrayBuffer = await response.responseInternal.arrayBuffer();\n return new Uint8Array(arrayBuffer);\n }\n else {\n throw new Error('Unexpected response type from downloadMedia');\n }\n }\n /**\n * Creates a File Search Store.\n *\n * @param params - The parameters for creating a File Search Store.\n * @return FileSearchStore.\n */\n async create(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = createFileSearchStoreParametersToMldev(this.apiClient, params);\n path = formatMap('fileSearchStores', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n /**\n * Gets a File Search Store.\n *\n * @param params - The parameters for getting a File Search Store.\n * @return FileSearchStore.\n */\n async get(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = getFileSearchStoreParametersToMldev(params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n /**\n * Deletes a File Search Store.\n *\n * @param params - The parameters for deleting a File Search Store.\n */\n async delete(params) {\n var _a, _b;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = deleteFileSearchStoreParametersToMldev(params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n await this.apiClient.request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n });\n }\n }\n async listInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = listFileSearchStoresParametersToMldev(params);\n path = formatMap('fileSearchStores', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = listFileSearchStoresResponseFromMldev(apiResponse);\n const typedResp = new ListFileSearchStoresResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n async uploadToFileSearchStoreInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = uploadToFileSearchStoreParametersToMldev(params);\n path = formatMap('upload/v1beta/{file_search_store_name}:uploadToFileSearchStore', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = uploadToFileSearchStoreResumableResponseFromMldev(apiResponse);\n const typedResp = new UploadToFileSearchStoreResumableResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Imports a File from File Service to a FileSearchStore.\n *\n * This is a long-running operation, see aip.dev/151\n *\n * @param params - The parameters for importing a file to a file search store.\n * @return ImportFileOperation.\n */\n async importFile(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = importFileParametersToMldev(params);\n path = formatMap('{file_search_store_name}:importFile', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = importFileOperationFromMldev(apiResponse);\n const typedResp = new ImportFileOperation();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Checks for the existence of the Deno global object to determine the environment.\n * @returns {boolean} True if the runtime is Deno, false otherwise.\n */\nfunction isDeno() {\n if (\"Deno\" in globalThis) {\n return true;\n }\n return false;\n}\nlet envMemo = undefined;\n/**\n * Reads and validates environment variables.\n */\nfunction env() {\n var _a, _b, _c, _d, _e, _f;\n if (envMemo) {\n return envMemo;\n }\n const globals = globalThis;\n let envObject = {};\n if (isDeno()) {\n envObject = (_d = (_c = (_b = (_a = globals.Deno) === null || _a === void 0 ? void 0 : _a.env) === null || _b === void 0 ? void 0 : _b.toObject) === null || _c === void 0 ? void 0 : _c.call(_b)) !== null && _d !== void 0 ? _d : {};\n }\n else {\n envObject = (_f = (_e = globals.process) === null || _e === void 0 ? void 0 : _e.env) !== null && _f !== void 0 ? _f : {};\n }\n envMemo = envObject;\n return envMemo;\n}\n/**\n * Populates global parameters with environment variables.\n */\nfunction fillGlobals(options) {\n var _a, _b;\n const clone = Object.assign({}, options);\n const envVars = env();\n if (typeof envVars.GOOGLE_GENAI_API_VERSION !== \"undefined\") {\n (_a = clone.api_version) !== null && _a !== void 0 ? _a : (clone.api_version = envVars.GOOGLE_GENAI_API_VERSION);\n }\n if (typeof envVars.GOOGLE_GENAI_USER_PROJECT !== \"undefined\") {\n (_b = clone.user_project) !== null && _b !== void 0 ? _b : (clone.user_project = envVars.GOOGLE_GENAI_USER_PROJECT);\n }\n return clone;\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nclass GoogleGenAISecurityProvider {\n constructor(options) {\n this.options = options;\n }\n getDefaultHeaders() {\n return this.options.defaultHeaders;\n }\n async resolveGoogleGenAISecurity(url) {\n return securityFromHeaders(await this.options.getAuthHeaders(url));\n }\n}\nclass GoogleGenAIAuthHook {\n beforeCreateRequest(_hookCtx, input) {\n return Object.assign(Object.assign({}, input), { url: decodeSDKLevelAPIVersionPath(input.url) });\n }\n async beforeRequest(hookCtx, request) {\n applyDefaultHeaders(request.headers, getStaticDefaultHeaders(hookCtx.security_source));\n applyUserProject(hookCtx, request.headers);\n if (hasAuthHeaders(request.headers)) {\n return request;\n }\n const security = await resolveSecurity$1(hookCtx.security_source, request.url);\n applyDefaultHeaders(request.headers, security === null || security === void 0 ? void 0 : security.default_headers);\n applyAuth(request.headers, security);\n return request;\n }\n}\nfunction decodeSDKLevelAPIVersionPath(url) {\n const [, apiVersion, ...rest] = url.pathname.split(\"/\");\n if (!apiVersion) {\n return url;\n }\n const decodedAPIVersion = decodeURIComponent(apiVersion);\n if (!decodedAPIVersion.includes(\"/\")) {\n return url;\n }\n const nextURL = new URL(url);\n nextURL.pathname = `/${decodedAPIVersion}/${rest.join(\"/\")}`;\n return nextURL;\n}\nasync function resolveSecurity$1(securitySource, requestURL) {\n if (isSecurityResolver(securitySource)) {\n return securitySource.resolveGoogleGenAISecurity(requestURL);\n }\n const security = typeof securitySource === \"function\"\n ? await securitySource()\n : securitySource;\n if (isSecurity(security)) {\n return withEnvSecurity(security);\n }\n return withEnvSecurity(undefined);\n}\nfunction getStaticDefaultHeaders(securitySource) {\n var _a, _b;\n if (isSecurityResolver(securitySource)) {\n return ((_b = (_a = securitySource.getDefaultHeaders) === null || _a === void 0 ? void 0 : _a.call(securitySource)) !== null && _b !== void 0 ? _b : securitySource.defaultHeaders);\n }\n if (isSecurity(securitySource)) {\n return securitySource.default_headers;\n }\n return undefined;\n}\nfunction withEnvSecurity(security) {\n var _a, _b;\n const envVars = env();\n const nextSecurity = Object.assign(Object.assign({}, security), { api_key: (_a = security === null || security === void 0 ? void 0 : security.api_key) !== null && _a !== void 0 ? _a : envVars.GOOGLE_GENAI_API_KEY, access_token: (_b = security === null || security === void 0 ? void 0 : security.access_token) !== null && _b !== void 0 ? _b : envVars.GOOGLE_GENAI_ACCESS_TOKEN });\n return hasSecurityValue(nextSecurity) ? nextSecurity : undefined;\n}\nfunction securityFromHeaders(headers) {\n var _a, _b;\n const defaultHeaders = {};\n for (const [key, value] of headers) {\n const lowerKey = key.toLowerCase();\n if (lowerKey !== \"authorization\" && lowerKey !== \"x-goog-api-key\") {\n defaultHeaders[key] = value;\n }\n }\n const security = {\n access_token: (_a = headers.get(\"authorization\")) !== null && _a !== void 0 ? _a : undefined,\n api_key: (_b = headers.get(\"x-goog-api-key\")) !== null && _b !== void 0 ? _b : undefined,\n default_headers: Object.keys(defaultHeaders).length\n ? defaultHeaders\n : undefined,\n };\n return hasSecurityValue(security) ? security : undefined;\n}\nfunction applyDefaultHeaders(target, source) {\n if (!source) {\n return;\n }\n for (const [key, value] of new Headers(source)) {\n if (target.get(key) === null) {\n target.set(key, value);\n }\n }\n}\nfunction applyUserProject(hookCtx, headers) {\n if (hookCtx.options.user_project !== undefined &&\n headers.get(\"x-goog-user-project\") === null) {\n headers.set(\"x-goog-user-project\", hookCtx.options.user_project);\n }\n}\nfunction applyAuth(headers, security) {\n if (!security) {\n return;\n }\n if (security.api_key) {\n headers.set(\"x-goog-api-key\", security.api_key);\n return;\n }\n if (security.access_token) {\n headers.set(\"Authorization\", bearer(security.access_token));\n }\n}\nfunction hasAuthHeaders(headers) {\n return (headers.get(\"authorization\") !== null ||\n headers.get(\"x-goog-api-key\") !== null);\n}\nfunction bearer(token) {\n return token.slice(0, 7).toLowerCase() === \"bearer \"\n ? token\n : `Bearer ${token}`;\n}\nfunction isSecurity(value) {\n return typeof value === \"object\" && value !== null;\n}\nfunction isSecurityResolver(value) {\n return (typeof value === \"object\" &&\n value !== null &&\n \"resolveGoogleGenAISecurity\" in value &&\n typeof value.resolveGoogleGenAISecurity === \"function\");\n}\nfunction hasSecurityValue(security) {\n return (security.api_key !== undefined ||\n security.access_token !== undefined ||\n security.default_headers !== undefined);\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\n/**\n * Base class for all HTTP errors.\n */\nclass HTTPClientError extends Error {\n constructor(message, opts) {\n let msg = message;\n if (opts === null || opts === void 0 ? void 0 : opts.cause) {\n msg += `: ${opts.cause}`;\n }\n super(msg, opts);\n this.name = \"HTTPClientError\";\n // In older runtimes, the cause field would not have been assigned through\n // the super() call.\n if (typeof this.cause === \"undefined\") {\n this.cause = opts === null || opts === void 0 ? void 0 : opts.cause;\n }\n }\n}\n/**\n * An error to capture unrecognised or unexpected errors when making HTTP calls.\n */\nclass UnexpectedClientError extends HTTPClientError {\n constructor() {\n super(...arguments);\n this.name = \"UnexpectedClientError\";\n }\n}\n/**\n * An error that is raised when any inputs used to create a request are invalid.\n */\nclass InvalidRequestError extends HTTPClientError {\n constructor() {\n super(...arguments);\n this.name = \"InvalidRequestError\";\n }\n}\n/**\n * An error that is raised when a HTTP request was aborted by the client error.\n */\nclass RequestAbortedError extends HTTPClientError {\n constructor() {\n super(...arguments);\n this.name = \"RequestAbortedError\";\n }\n}\n/**\n * An error that is raised when a HTTP request timed out due to an AbortSignal\n * signal timeout.\n */\nclass RequestTimeoutError extends HTTPClientError {\n constructor() {\n super(...arguments);\n this.name = \"RequestTimeoutError\";\n }\n}\n/**\n * An error that is raised when a HTTP client is unable to make a request to\n * a server.\n */\nclass ConnectionError extends HTTPClientError {\n constructor() {\n super(...arguments);\n this.name = \"ConnectionError\";\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\n/** The base class for all HTTP error responses */\nclass GoogleGenAiError extends Error {\n constructor(message, httpMeta) {\n var _a, _b, _c, _d;\n super(message);\n this.statusCode = (_a = httpMeta === null || httpMeta === void 0 ? void 0 : httpMeta.response) === null || _a === void 0 ? void 0 : _a.status;\n this.body = (_b = httpMeta === null || httpMeta === void 0 ? void 0 : httpMeta.body) !== null && _b !== void 0 ? _b : \"\";\n this.headers = (_c = httpMeta === null || httpMeta === void 0 ? void 0 : httpMeta.response) === null || _c === void 0 ? void 0 : _c.headers;\n this.contentType = ((_d = httpMeta === null || httpMeta === void 0 ? void 0 : httpMeta.response) === null || _d === void 0 ? void 0 : _d.headers.get(\"content-type\")) || \"\";\n this.rawResponse = httpMeta === null || httpMeta === void 0 ? void 0 : httpMeta.response;\n this.name = \"GoogleGenAiError\";\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nclass GeminiNextGenAPIClientError extends Error {\n}\n/** General errors raised by the GenAI API. */\nclass APIError extends GeminiNextGenAPIClientError {\n constructor(status, error, message, headers) {\n super(APIError.makeMessage(status, error, message));\n this.status = status;\n this.headers = headers;\n this.error = error;\n this.statusCode = status;\n this.body = stringifyErrorBody(error);\n this.contentType = (headers === null || headers === void 0 ? void 0 : headers.get(\"content-type\")) || \"\";\n this.rawResponse = undefined;\n this.cause = undefined;\n this.name = this.constructor.name;\n Object.setPrototypeOf(this, new.target.prototype);\n }\n static makeMessage(status, error, message) {\n var _a;\n const errorMessage = error && isPlainObject$2(error) && typeof error[\"message\"] === \"string\"\n ? error[\"message\"]\n : undefined;\n const errorBody = stringifyErrorBody(error);\n const msg = (_a = errorMessage !== null && errorMessage !== void 0 ? errorMessage : message) !== null && _a !== void 0 ? _a : (errorBody || \"An error occurred\");\n const statusText = status ? `${status} ` : \"\";\n return `${statusText}${msg}`;\n }\n static generate(status, errorResponse, message, headers) {\n if (!status || !headers) {\n return new APIConnectionError({\n message,\n cause: errorResponse instanceof Error ? errorResponse : undefined,\n });\n }\n if (status === 400) {\n return new BadRequestError(status, errorResponse, message, headers);\n }\n if (status === 401) {\n return new AuthenticationError(status, errorResponse, message, headers);\n }\n if (status === 403) {\n return new PermissionDeniedError(status, errorResponse, message, headers);\n }\n if (status === 404) {\n return new NotFoundError(status, errorResponse, message, headers);\n }\n if (status === 409) {\n return new ConflictError(status, errorResponse, message, headers);\n }\n if (status === 422) {\n return new UnprocessableEntityError(status, errorResponse, message, headers);\n }\n if (status === 429) {\n return new RateLimitError(status, errorResponse, message, headers);\n }\n if (status >= 500) {\n return new InternalServerError(status, errorResponse, message, headers);\n }\n return new APIError(status, errorResponse, message, headers);\n }\n}\nclass APIUserAbortError extends APIError {\n constructor({ message } = {}) {\n super(undefined, undefined, message || \"Request was aborted.\", undefined);\n }\n}\nclass APIConnectionError extends APIError {\n constructor({ message, cause, }) {\n super(undefined, undefined, message || \"Connection error.\", undefined);\n this.cause = cause;\n }\n}\nclass APIConnectionTimeoutError extends APIConnectionError {\n constructor({ message } = {}) {\n super({\n message: message ||\n \"Request timed out. This is a client-side timeout. You can increase the timeout by setting the `timeout` argument in your request or client http options.\",\n });\n }\n}\nclass BadRequestError extends APIError {\n}\nclass AuthenticationError extends APIError {\n}\nclass PermissionDeniedError extends APIError {\n}\nclass NotFoundError extends APIError {\n}\nclass ConflictError extends APIError {\n}\nclass UnprocessableEntityError extends APIError {\n}\nclass RateLimitError extends APIError {\n}\nclass InternalServerError extends APIError {\n}\nfunction wrapSDKError(error) {\n if (isCompatAPIErrorInstance(error)) {\n return error;\n }\n if (error instanceof GoogleGenAiError) {\n return wrapAPIError(error);\n }\n if (error instanceof HTTPClientError) {\n return wrapHTTPClientError(error);\n }\n return error;\n}\nfunction wrapAPIError(error) {\n const errorPayload = getErrorPayload(error);\n const wrapped = APIError.generate(error.statusCode, errorPayload, error.message, error.headers);\n defineReadonly(wrapped, \"body\", error.body);\n defineReadonly(wrapped, \"contentType\", error.contentType);\n defineReadonly(wrapped, \"rawResponse\", error.rawResponse);\n defineReadonly(wrapped, \"statusCode\", error.statusCode);\n defineReadonly(wrapped, \"cause\", error);\n return wrapped;\n}\nfunction wrapHTTPClientError(error) {\n if (error instanceof RequestTimeoutError) {\n return new APIConnectionTimeoutError({ message: error.message });\n }\n if (error instanceof RequestAbortedError) {\n return new APIUserAbortError({ message: error.message });\n }\n if (error instanceof ConnectionError) {\n return new APIConnectionError({ message: error.message, cause: error });\n }\n return new APIConnectionError({ message: error.message, cause: error });\n}\nfunction getErrorPayload(error) {\n const data = getObjectProperty(error, \"data$\");\n if (data && typeof data === \"object\") {\n return data;\n }\n try {\n const parsed = JSON.parse(error.body);\n if (parsed && typeof parsed === \"object\") {\n return parsed;\n }\n }\n catch (_a) {\n // Fall through to generated error.error below.\n }\n const dataError = getObjectProperty(error, \"error\");\n return dataError && typeof dataError === \"object\"\n ? dataError\n : undefined;\n}\nfunction getObjectProperty(value, key) {\n return value && typeof value === \"object\"\n ? value[key]\n : undefined;\n}\nfunction stringifyErrorBody(error) {\n if (!error)\n return \"\";\n try {\n return JSON.stringify(error);\n }\n catch (_a) {\n return String(error);\n }\n}\nfunction isPlainObject$2(value) {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n}\nfunction isCompatAPIErrorInstance(value) {\n // Avoid instanceof here so this guard never depends on Symbol.hasInstance.\n return typeof value === \"object\" && value !== null\n ? APIError.prototype.isPrototypeOf(value)\n : false;\n}\nfunction defineReadonly(target, key, value) {\n Object.defineProperty(target, key, {\n configurable: true,\n enumerable: true,\n value,\n writable: false,\n });\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * This file is only ever generated once on the first generation and then is free to be modified.\n * Any hooks you wish to add should be registered in the initHooks function. Feel free to define them\n * in this file or in separate files in the hooks folder.\n */\nfunction initHooks(hooks) {\n // Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook\n // with an instance of a hook that implements that specific Hook interface\n // Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance\n const googleGenAIAuthHook = new GoogleGenAIAuthHook();\n hooks.registerBeforeCreateRequestHook(googleGenAIAuthHook);\n hooks.registerBeforeRequestHook(googleGenAIAuthHook);\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nclass SDKHooks {\n constructor() {\n this.sdkInitHooks = [];\n this.beforeCreateRequestHooks = [];\n this.beforeRequestHooks = [];\n this.afterSuccessHooks = [];\n this.afterErrorHooks = [];\n const presetHooks = [];\n for (const hook of presetHooks) {\n if (\"sdkInit\" in hook) {\n this.registerSDKInitHook(hook);\n }\n if (\"beforeCreateRequest\" in hook) {\n this.registerBeforeCreateRequestHook(hook);\n }\n if (\"beforeRequest\" in hook) {\n this.registerBeforeRequestHook(hook);\n }\n if (\"afterSuccess\" in hook) {\n this.registerAfterSuccessHook(hook);\n }\n if (\"afterError\" in hook) {\n this.registerAfterErrorHook(hook);\n }\n }\n initHooks(this);\n }\n registerSDKInitHook(hook) {\n this.sdkInitHooks.push(hook);\n }\n registerBeforeCreateRequestHook(hook) {\n this.beforeCreateRequestHooks.push(hook);\n }\n registerBeforeRequestHook(hook) {\n this.beforeRequestHooks.push(hook);\n }\n registerAfterSuccessHook(hook) {\n this.afterSuccessHooks.push(hook);\n }\n registerAfterErrorHook(hook) {\n this.afterErrorHooks.push(hook);\n }\n sdkInit(opts) {\n return this.sdkInitHooks.reduce((opts, hook) => hook.sdkInit(opts), opts);\n }\n beforeCreateRequest(hookCtx, input) {\n let inp = input;\n for (const hook of this.beforeCreateRequestHooks) {\n inp = hook.beforeCreateRequest(hookCtx, inp);\n }\n return inp;\n }\n async beforeRequest(hookCtx, request) {\n let req = request;\n for (const hook of this.beforeRequestHooks) {\n req = await hook.beforeRequest(hookCtx, req);\n }\n return req;\n }\n async afterSuccess(hookCtx, response) {\n let res = response;\n for (const hook of this.afterSuccessHooks) {\n res = await hook.afterSuccess(hookCtx, res);\n }\n return res;\n }\n async afterError(hookCtx, response, error) {\n let res = response;\n let err = error;\n for (const hook of this.afterErrorHooks) {\n const result = await hook.afterError(hookCtx, res, err);\n res = result.response;\n err = result.error;\n }\n return { response: res, error: err };\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nfunction OK(value) {\n return { ok: true, value };\n}\nfunction ERR(error) {\n return { ok: false, error };\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nfunction bytesToBase64(u8arr) {\n return btoa(String.fromCodePoint(...u8arr));\n}\nfunction stringToBytes(str) {\n return new TextEncoder().encode(str);\n}\nfunction stringToBase64(str) {\n return bytesToBase64(stringToBytes(str));\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nconst hasOwn = Object.prototype.hasOwnProperty;\nfunction pathToFunc(pathPattern, options) {\n const paramRE = /\\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\\}/g;\n return function buildURLPath(params = {}) {\n return pathPattern\n .replace(paramRE, function (_, placeholder) {\n if (!hasOwn.call(params, placeholder)) {\n throw new Error(`Parameter '${placeholder}' is required`);\n }\n const value = params[placeholder];\n if (typeof value !== \"string\" && typeof value !== \"number\") {\n throw new Error(`Parameter '${placeholder}' must be a string or number`);\n }\n return `${value}`;\n })\n .replace(/^\\/+/, \"\");\n };\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Contains the list of servers available to the SDK\n */\nconst ServerList = [\n /**\n * Global Endpoint\n */\n \"https://generativelanguage.googleapis.com\",\n];\nfunction serverURLFromOptions(options) {\n var _a;\n let serverURL = options.server_url;\n const params = {};\n if (!serverURL) {\n const serverIdx = (_a = options.server_idx) !== null && _a !== void 0 ? _a : 0;\n if (serverIdx < 0 || serverIdx >= ServerList.length) {\n throw new Error(`Invalid server index ${serverIdx}`);\n }\n serverURL = ServerList[serverIdx] || \"\";\n }\n const u = pathToFunc(serverURL)(params);\n return new URL(u);\n}\nconst SDK_METADATA = {\n userAgent: \"speakeasy-sdk/typescript 2.4.1-preview.4 internal v1beta @google/genai\",\n};\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nfunction combineSignals(...signals) {\n const filtered = [];\n for (const signal of signals) {\n if (signal) {\n filtered.push(signal);\n }\n }\n switch (filtered.length) {\n case 0:\n case 1:\n return filtered[0] || null;\n default:\n if (\"any\" in AbortSignal && typeof AbortSignal.any === \"function\") {\n return AbortSignal.any(filtered);\n }\n return abortSignalAny(filtered);\n }\n}\nfunction abortSignalAny(signals) {\n const controller = new AbortController();\n const result = controller.signal;\n if (!signals.length) {\n return controller.signal;\n }\n if (signals.length === 1) {\n return signals[0] || controller.signal;\n }\n for (const signal of signals) {\n if (signal.aborted) {\n return signal;\n }\n }\n function abort() {\n controller.abort(this.reason);\n clean();\n }\n const signalRefs = [];\n function clean() {\n for (const signalRef of signalRefs) {\n const signal = signalRef.deref();\n if (signal) {\n signal.removeEventListener(\"abort\", abort);\n }\n }\n }\n for (const signal of signals) {\n signalRefs.push(new WeakRef(signal));\n signal.addEventListener(\"abort\", abort);\n }\n return result;\n}\nfunction compactMap(values) {\n const out = {};\n for (const [k, v] of Object.entries(values)) {\n if (typeof v !== \"undefined\") {\n out[k] = v;\n }\n }\n return out;\n}\nfunction isPlainObject$1(value) {\n if (value === null || typeof value !== \"object\")\n return false;\n if (Object.prototype.toString.call(value) !== \"[object Object]\")\n return false;\n const proto = Object.getPrototypeOf(value);\n if (proto === null || proto === Object.prototype)\n return true;\n // cross-realm plain objects (vm contexts, iframes) inherit from a\n // different realm's Object.prototype, which itself has a null prototype\n try {\n return Object.getPrototypeOf(proto) === null;\n }\n catch (_a) {\n return false;\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nfunction formEncoder(sep) {\n return (key, value, options) => {\n let out = \"\";\n const pairs = (options === null || options === void 0 ? void 0 : options.explode)\n ? explode(key, value)\n : [[key, value]];\n if (pairs.every(([_, v]) => v == null)) {\n return;\n }\n const encodeString = (v) => {\n return (options === null || options === void 0 ? void 0 : options.charEncoding) === \"percent\" ? encodeURIComponent(v) : v;\n };\n const encodeValue = (v) => encodeString(serializeValue(v));\n const encodedSep = encodeString(sep);\n pairs.forEach(([pk, pv]) => {\n var _a, _b;\n let tmp = \"\";\n let encValue = null;\n if (pv == null) {\n return;\n }\n else if (Array.isArray(pv)) {\n encValue = (_a = mapDefined(pv, (v) => `${encodeValue(v)}`)) === null || _a === void 0 ? void 0 : _a.join(encodedSep);\n }\n else if (isPlainObject$1(pv)) {\n encValue = (_b = mapDefinedEntries(Object.entries(pv), ([k, v]) => {\n return `${encodeString(k)}${encodedSep}${encodeValue(v)}`;\n })) === null || _b === void 0 ? void 0 : _b.join(encodedSep);\n }\n else {\n encValue = `${encodeValue(pv)}`;\n }\n if (encValue == null) {\n return;\n }\n tmp = `${encodeString(pk)}=${encValue}`;\n // If we end up with the nothing then skip forward\n if (!tmp || tmp === \"=\") {\n return;\n }\n out += `&${tmp}`;\n });\n return out.slice(1);\n };\n}\nconst encodeForm = formEncoder(\",\");\nfunction encodeJSON(key, value, options) {\n if (typeof value === \"undefined\") {\n return;\n }\n const encodeString = (v) => {\n return (options === null || options === void 0 ? void 0 : options.charEncoding) === \"percent\" ? encodeURIComponent(v) : v;\n };\n const encVal = encodeString(JSON.stringify(value, jsonReplacer));\n return (options === null || options === void 0 ? void 0 : options.explode) ? encVal : `${encodeString(key)}=${encVal}`;\n}\nconst encodeSimple = (key, value, options) => {\n let out = \"\";\n const pairs = (options === null || options === void 0 ? void 0 : options.explode)\n ? explode(key, value)\n : [[key, value]];\n if (pairs.every(([_, v]) => v == null)) {\n return;\n }\n const encodeString = (v) => {\n return (options === null || options === void 0 ? void 0 : options.charEncoding) === \"percent\" ? encodeURIComponent(v) : v;\n };\n const encodeValue = (v) => encodeString(serializeValue(v));\n pairs.forEach(([pk, pv]) => {\n var _a;\n let tmp = \"\";\n if (pv == null) {\n return;\n }\n else if (Array.isArray(pv)) {\n tmp = (_a = mapDefined(pv, (v) => `${encodeValue(v)}`)) === null || _a === void 0 ? void 0 : _a.join(\",\");\n }\n else if (isPlainObject$1(pv)) {\n const mapped = mapDefinedEntries(Object.entries(pv), ([k, v]) => {\n return `,${encodeString(k)},${encodeValue(v)}`;\n });\n tmp = mapped === null || mapped === void 0 ? void 0 : mapped.join(\"\").slice(1);\n }\n else {\n const k = (options === null || options === void 0 ? void 0 : options.explode) && isPlainObject$1(value) ? `${pk}=` : \"\";\n tmp = `${k}${encodeValue(pv)}`;\n }\n out += tmp ? `,${tmp}` : \"\";\n });\n return out.slice(1);\n};\nfunction explode(key, value) {\n if (Array.isArray(value)) {\n return value.map((v) => [key, v]);\n }\n else if (isPlainObject$1(value)) {\n const o = value !== null && value !== void 0 ? value : {};\n return Object.entries(o).map(([k, v]) => [k, v]);\n }\n else {\n return [[key, value]];\n }\n}\nfunction serializeValue(value) {\n if (value == null) {\n return \"\";\n }\n else if (value instanceof Date) {\n return value.toISOString();\n }\n else if (value instanceof Uint8Array) {\n return bytesToBase64(value);\n }\n else if (typeof value === \"object\") {\n return JSON.stringify(value, jsonReplacer);\n }\n return `${value}`;\n}\nfunction jsonReplacer(_, value) {\n if (value instanceof Uint8Array) {\n return bytesToBase64(value);\n }\n else {\n return value;\n }\n}\nfunction mapDefined(inp, mapper) {\n const res = inp.reduce((acc, v) => {\n if (v == null) {\n return acc;\n }\n const m = mapper(v);\n if (m == null) {\n return acc;\n }\n acc.push(m);\n return acc;\n }, []);\n return res.length ? res : null;\n}\nfunction mapDefinedEntries(inp, mapper) {\n const acc = [];\n for (const [k, v] of inp) {\n if (v == null) {\n continue;\n }\n const m = mapper([k, v]);\n if (m == null) {\n continue;\n }\n acc.push(m);\n }\n return acc.length ? acc : null;\n}\nfunction queryJoin(...args) {\n return args.filter(Boolean).join(\"&\");\n}\nfunction queryEncoder(f) {\n const bulkEncode = function (values, options) {\n var _a, _b, _c;\n const opts = Object.assign(Object.assign({}, options), { explode: (_a = options === null || options === void 0 ? void 0 : options.explode) !== null && _a !== void 0 ? _a : true, charEncoding: (_b = options === null || options === void 0 ? void 0 : options.charEncoding) !== null && _b !== void 0 ? _b : \"percent\" });\n const allowEmptySet = new Set((_c = options === null || options === void 0 ? void 0 : options.allowEmptyValue) !== null && _c !== void 0 ? _c : []);\n const encoded = Object.entries(values).map(([key, value]) => {\n if (allowEmptySet.has(key)) {\n if (value === undefined\n || value === null\n || value === \"\"\n || (Array.isArray(value) && value.length === 0)) {\n return `${encodeURIComponent(key)}=`;\n }\n }\n return f(key, value, opts);\n });\n return queryJoin(...encoded);\n };\n return bulkEncode;\n}\nconst encodeFormQuery = queryEncoder(encodeForm);\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nconst DEFAULT_FETCHER = (input, init) => {\n // If input is a Request and init is undefined, Bun will discard the method,\n // headers, body and other options that were set on the request object.\n // Node.js and browers would ignore an undefined init value. This check is\n // therefore needed for interop with Bun.\n if (init == null) {\n return fetch(input);\n }\n else {\n return fetch(input, init);\n }\n};\nclass HTTPClient {\n constructor(options = {}) {\n this.requestHooks = [];\n this.requestErrorHooks = [];\n this.responseHooks = [];\n this.options = options;\n this.fetcher = options.fetcher || DEFAULT_FETCHER;\n }\n async request(request) {\n let req = request;\n for (const hook of this.requestHooks) {\n const nextRequest = await hook(req);\n if (nextRequest) {\n req = nextRequest;\n }\n }\n try {\n const res = await this.fetcher(req);\n for (const hook of this.responseHooks) {\n await hook(res, req);\n }\n return res;\n }\n catch (err) {\n for (const hook of this.requestErrorHooks) {\n await hook(err, req);\n }\n throw err;\n }\n }\n addHook(...args) {\n if (args[0] === \"beforeRequest\") {\n this.requestHooks.push(args[1]);\n }\n else if (args[0] === \"requestError\") {\n this.requestErrorHooks.push(args[1]);\n }\n else if (args[0] === \"response\") {\n this.responseHooks.push(args[1]);\n }\n else {\n throw new Error(`Invalid hook type: ${args[0]}`);\n }\n return this;\n }\n removeHook(...args) {\n let target;\n if (args[0] === \"beforeRequest\") {\n target = this.requestHooks;\n }\n else if (args[0] === \"requestError\") {\n target = this.requestErrorHooks;\n }\n else if (args[0] === \"response\") {\n target = this.responseHooks;\n }\n else {\n throw new Error(`Invalid hook type: ${args[0]}`);\n }\n const index = target.findIndex((v) => v === args[1]);\n if (index >= 0) {\n target.splice(index, 1);\n }\n return this;\n }\n clone() {\n const child = new HTTPClient(this.options);\n child.requestHooks = this.requestHooks.slice();\n child.requestErrorHooks = this.requestErrorHooks.slice();\n child.responseHooks = this.responseHooks.slice();\n return child;\n }\n}\n// A semicolon surrounded by optional whitespace characters is used to separate\n// segments in a media type string.\nconst mediaParamSeparator = /\\s*;\\s*/g;\nfunction matchContentType(response, pattern) {\n var _a;\n // `*` is a special case which means anything is acceptable.\n if (pattern === \"*\") {\n return true;\n }\n let contentType = ((_a = response.headers.get(\"content-type\")) === null || _a === void 0 ? void 0 : _a.trim()) || \"application/octet-stream\";\n contentType = contentType.toLowerCase();\n const wantParts = pattern.toLowerCase().trim().split(mediaParamSeparator);\n const [wantType = \"\", ...wantParams] = wantParts;\n if (wantType.split(\"/\").length !== 2) {\n return false;\n }\n const gotParts = contentType.split(mediaParamSeparator);\n const [gotType = \"\", ...gotParams] = gotParts;\n const [type = \"\", subtype = \"\"] = gotType.split(\"/\");\n if (!type || !subtype) {\n return false;\n }\n if (wantType !== \"*/*\" &&\n gotType !== wantType &&\n `${type}/*` !== wantType &&\n `*/${subtype}` !== wantType) {\n return false;\n }\n if (gotParams.length < wantParams.length) {\n return false;\n }\n const params = new Set(gotParams);\n for (const wantParam of wantParams) {\n if (!params.has(wantParam)) {\n return false;\n }\n }\n return true;\n}\nconst codeRangeRE$1 = new RegExp(\"^[0-9]xx$\", \"i\");\nfunction matchStatusCode(response, codes) {\n const actual = `${response.status}`;\n const expectedCodes = Array.isArray(codes) ? codes : [codes];\n if (!expectedCodes.length) {\n return false;\n }\n return expectedCodes.some((ec) => {\n const code = `${ec}`;\n if (code === \"default\") {\n return true;\n }\n if (!codeRangeRE$1.test(`${code}`)) {\n return code === actual;\n }\n const expectFamily = code.charAt(0);\n if (!expectFamily) {\n throw new Error(\"Invalid status code range\");\n }\n const actualFamily = actual.charAt(0);\n if (!actualFamily) {\n throw new Error(`Invalid response status code: ${actual}`);\n }\n return actualFamily === expectFamily;\n });\n}\nfunction matchResponse(response, code, contentTypePattern) {\n return (matchStatusCode(response, code) &&\n matchContentType(response, contentTypePattern));\n}\n/**\n * Uses various heurisitics to determine if an error is a connection error.\n */\nfunction isConnectionError(err) {\n if (typeof err !== \"object\" || err == null) {\n return false;\n }\n // Covers fetch in Deno as well\n const isBrowserErr = err instanceof TypeError &&\n err.message.toLowerCase().startsWith(\"failed to fetch\");\n const isNodeErr = err instanceof TypeError &&\n err.message.toLowerCase().startsWith(\"fetch failed\");\n const isBunErr = \"name\" in err && err.name === \"ConnectionError\";\n const isGenericErr = \"code\" in err &&\n typeof err.code === \"string\" &&\n err.code.toLowerCase() === \"econnreset\";\n return isBrowserErr || isNodeErr || isGenericErr || isBunErr;\n}\n/**\n * Uses various heurisitics to determine if an error is a timeout error.\n */\nfunction isTimeoutError(err) {\n if (typeof err !== \"object\" || err == null) {\n return false;\n }\n // Fetch in browser, Node.js, Bun, Deno\n const isNative = \"name\" in err && err.name === \"TimeoutError\";\n const isLegacyNative = \"code\" in err && err.code === 23;\n // Node.js HTTP client and Axios\n const isGenericErr = \"code\" in err &&\n typeof err.code === \"string\" &&\n err.code.toLowerCase() === \"econnaborted\";\n return isNative || isLegacyNative || isGenericErr;\n}\n/**\n * Uses various heurisitics to determine if an error is a abort error.\n */\nfunction isAbortError(err) {\n if (typeof err !== \"object\" || err == null) {\n return false;\n }\n // Fetch in browser, Node.js, Bun, Deno\n const isNative = \"name\" in err && err.name === \"AbortError\";\n const isLegacyNative = \"code\" in err && err.code === 20;\n // Node.js HTTP client and Axios\n const isGenericErr = \"code\" in err &&\n typeof err.code === \"string\" &&\n err.code.toLowerCase() === \"econnaborted\";\n return isNative || isLegacyNative || isGenericErr;\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nconst defaultBackoff = {\n initialInterval: 500,\n maxInterval: 60000,\n exponent: 1.5,\n maxElapsedTime: 3600000,\n};\n/**\n * PermanentError is an error that is not recoverable. Throwing this error will\n * cause a retry loop to terminate.\n */\nclass PermanentError extends Error {\n constructor(message, options) {\n let msg = message;\n if (options === null || options === void 0 ? void 0 : options.cause) {\n msg += `: ${options.cause}`;\n }\n super(msg, options);\n this.name = \"PermanentError\";\n // In older runtimes, the cause field would not have been assigned through\n // the super() call.\n if (typeof this.cause === \"undefined\") {\n this.cause = options === null || options === void 0 ? void 0 : options.cause;\n }\n Object.setPrototypeOf(this, PermanentError.prototype);\n }\n}\n/**\n * TemporaryError is an error is used to signal that an HTTP request can be\n * retried as part of a retry loop. If retry attempts are exhausted and this\n * error is thrown, the response will be returned to the caller.\n */\nclass TemporaryError extends Error {\n constructor(message, response) {\n super(message);\n this.response = response;\n this.name = \"TemporaryError\";\n Object.setPrototypeOf(this, TemporaryError.prototype);\n }\n}\nasync function retry(fetchFn, options) {\n var _a;\n switch (options.config.strategy) {\n case \"backoff\":\n return retryBackoff(wrapFetcher(fetchFn, {\n statusCodes: options.statusCodes,\n retryConnectionErrors: !!options.config.retryConnectionErrors,\n }), (_a = options.config.backoff) !== null && _a !== void 0 ? _a : defaultBackoff);\n case \"attempt-count-backoff\":\n return retryAttemptCountBackoff(wrapFetcher(fetchFn, {\n statusCodes: options.statusCodes,\n retryConnectionErrors: !!options.config.retryConnectionErrors,\n }), Object.assign(Object.assign({}, defaultBackoff), options.config.backoff), options.config);\n default:\n return await fetchFn(0);\n }\n}\nfunction wrapFetcher(fn, options) {\n return async (attempt) => {\n try {\n const res = await fn(attempt);\n if (isRetryableResponse(res, options.statusCodes)) {\n throw new TemporaryError(\"Response failed with retryable status code\", res);\n }\n return res;\n }\n catch (err) {\n if (err instanceof TemporaryError) {\n throw err;\n }\n if (options.retryConnectionErrors &&\n (isTimeoutError(err) || isConnectionError(err))) {\n throw err;\n }\n throw new PermanentError(\"Permanent error\", { cause: err });\n }\n };\n}\nconst codeRangeRE = new RegExp(\"^[0-9]xx$\", \"i\");\nfunction isRetryableResponse(res, statusCodes) {\n const actual = `${res.status}`;\n return statusCodes.some((code) => {\n if (!codeRangeRE.test(code)) {\n return code === actual;\n }\n const expectFamily = code.charAt(0);\n if (!expectFamily) {\n throw new Error(\"Invalid status code range\");\n }\n const actualFamily = actual.charAt(0);\n if (!actualFamily) {\n throw new Error(`Invalid response status code: ${actual}`);\n }\n return actualFamily === expectFamily;\n });\n}\nasync function retryBackoff(fn, strategy) {\n const { maxElapsedTime, initialInterval, exponent, maxInterval } = strategy;\n const start = Date.now();\n let x = 0;\n while (true) {\n try {\n const res = await fn(x);\n return res;\n }\n catch (err) {\n if (err instanceof PermanentError) {\n throw err.cause;\n }\n const elapsed = Date.now() - start;\n if (elapsed > maxElapsedTime) {\n if (err instanceof TemporaryError) {\n return err.response;\n }\n throw err;\n }\n let retryInterval = 0;\n if (err instanceof TemporaryError) {\n retryInterval = retryIntervalFromResponse(err.response);\n }\n if (retryInterval <= 0) {\n retryInterval =\n initialInterval * Math.pow(x, exponent) + Math.random() * 1000;\n }\n const d = Math.min(retryInterval, maxInterval);\n await delay(d);\n x++;\n }\n }\n}\nasync function retryAttemptCountBackoff(fn, strategy, config) {\n let attempt = 0;\n while (true) {\n try {\n return await fn(attempt);\n }\n catch (err) {\n if (err instanceof PermanentError) {\n throw err.cause;\n }\n if (attempt >= config.maxRetries) {\n if (err instanceof TemporaryError) {\n return err.response;\n }\n throw err;\n }\n let retryInterval = 0;\n if (err instanceof TemporaryError) {\n retryInterval = retryIntervalFromResponse(err.response);\n }\n if (retryInterval <= 0) {\n retryInterval =\n strategy.initialInterval *\n Math.pow(strategy.exponent, attempt) *\n (1 - Math.random() * 0.25);\n }\n const d = Math.min(retryInterval, strategy.maxInterval);\n await delay(d);\n attempt++;\n }\n }\n}\nfunction retryIntervalFromResponse(res) {\n const retryAfterMsVal = res.headers.get(\"retry-after-ms\");\n if (retryAfterMsVal) {\n const parsedMs = Number(retryAfterMsVal);\n if (Number.isFinite(parsedMs) && parsedMs >= 0) {\n return parsedMs;\n }\n }\n const retryVal = res.headers.get(\"retry-after\") || \"\";\n if (!retryVal) {\n return 0;\n }\n const parsedNumber = Number(retryVal);\n if (Number.isInteger(parsedNumber)) {\n return parsedNumber * 1000;\n }\n const parsedDate = Date.parse(retryVal);\n if (Number.isInteger(parsedDate)) {\n const deltaMS = parsedDate - Date.now();\n return deltaMS > 0 ? Math.ceil(deltaMS) : 0;\n }\n return 0;\n}\nasync function delay(delay) {\n return new Promise((resolve) => setTimeout(resolve, delay));\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nconst gt = typeof globalThis === \"undefined\" ? null : globalThis;\nconst webWorkerLike = typeof gt === \"object\"\n && gt != null\n && \"importScripts\" in gt\n && typeof gt[\"importScripts\"] === \"function\";\nconst isBrowserLike = webWorkerLike\n || (typeof navigator !== \"undefined\" && \"serviceWorker\" in navigator)\n || (typeof window === \"object\" && typeof window.document !== \"undefined\");\nclass ClientSDK {\n constructor(options = {}) {\n const opt = options;\n if (typeof opt === \"object\"\n && opt != null\n && \"hooks\" in opt\n && opt.hooks instanceof SDKHooks) {\n this._hooks = opt.hooks;\n }\n else {\n this._hooks = new SDKHooks();\n }\n const defaultHttpClient = new HTTPClient();\n options.http_client = options.http_client || defaultHttpClient;\n options = this._hooks.sdkInit(options);\n const url = serverURLFromOptions(options);\n if (url) {\n url.pathname = url.pathname.replace(/\\/+$/, \"\") + \"/\";\n }\n this._baseURL = url;\n this._httpClient = options.http_client || defaultHttpClient;\n this._options = Object.assign(Object.assign({}, fillGlobals(options)), { hooks: this._hooks });\n this._logger = this._options.debug_logger;\n if (!this._logger && env().GOOGLE_GENAI_DEBUG) {\n this._logger = console;\n }\n }\n _createRequest(context, conf, options) {\n var _a, _b, _c, _d, _e;\n const { method, path, query, headers: opHeaders, security } = conf;\n const base = (_a = conf.baseURL) !== null && _a !== void 0 ? _a : this._baseURL;\n if (!base) {\n return ERR(new InvalidRequestError(\"No base URL provided for operation\"));\n }\n const baseURL = new URL(base);\n let reqURL;\n if (path) {\n baseURL.pathname = baseURL.pathname.replace(/\\/+$/, \"\") + \"/\";\n reqURL = new URL(path, baseURL);\n if (!reqURL.search && baseURL.search) {\n reqURL.search = baseURL.search;\n }\n }\n else {\n reqURL = baseURL;\n }\n reqURL.hash = \"\";\n // Appends already-encoded query pairs to a query string, replacing any\n // existing pairs with the same key so later sources take precedence.\n const mergeQuery = (current, additions) => {\n if (!additions) {\n return current;\n }\n const additionKeys = new Set(additions\n .split(\"&\")\n .filter((pair) => pair !== \"\")\n .map((pair) => { var _a; return (_a = pair.split(\"=\")[0]) !== null && _a !== void 0 ? _a : \"\"; }));\n const kept = current.split(\"&\").filter((pair) => {\n var _a;\n return pair !== \"\" && !additionKeys.has((_a = pair.split(\"=\")[0]) !== null && _a !== void 0 ? _a : \"\");\n });\n return [...kept, additions].join(\"&\");\n };\n const encodeQueryRecord = (record) => {\n return Object.entries(record)\n .map(([k, v]) => {\n if (v == null) {\n return undefined;\n }\n const value = isPlainObject$1(v) ? JSON.stringify(v) : v;\n return encodeForm(k, value, {\n explode: Array.isArray(value),\n charEncoding: \"percent\",\n });\n })\n .filter((pair) => typeof pair !== \"undefined\")\n .join(\"&\");\n };\n const finalQuery = [\n query || \"\",\n encodeQueryRecord((options === null || options === void 0 ? void 0 : options.extra_query) || {}),\n encodeQueryRecord((security === null || security === void 0 ? void 0 : security.queryParams) || {}),\n ].reduce(mergeQuery, reqURL.search.slice(1));\n if (finalQuery) {\n reqURL.search = `?${finalQuery}`;\n }\n const headers = new Headers(opHeaders);\n const username = security === null || security === void 0 ? void 0 : security.basic.username;\n const password = security === null || security === void 0 ? void 0 : security.basic.password;\n if (username != null || password != null) {\n const encoded = stringToBase64([username || \"\", password || \"\"].join(\":\"));\n headers.set(\"Authorization\", `Basic ${encoded}`);\n }\n const securityHeaders = new Headers((security === null || security === void 0 ? void 0 : security.headers) || {});\n for (const [k, v] of securityHeaders) {\n headers.set(k, v);\n }\n let cookie = headers.get(\"cookie\") || \"\";\n for (const [k, v] of Object.entries((security === null || security === void 0 ? void 0 : security.cookies) || {})) {\n cookie += `; ${k}=${v}`;\n }\n cookie = cookie.startsWith(\"; \") ? cookie.slice(2) : cookie;\n headers.set(\"cookie\", cookie);\n const userHeaders = new Headers((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : (_c = options === null || options === void 0 ? void 0 : options.fetch_options) === null || _c === void 0 ? void 0 : _c.headers);\n for (const [k, v] of userHeaders) {\n headers.set(k, v);\n }\n // Only set user agent header in non-browser-like environments since CORS\n // policy disallows setting it in browsers e.g. Chrome throws an error.\n if (!isBrowserLike) {\n headers.set((_d = conf.uaHeader) !== null && _d !== void 0 ? _d : \"user-agent\", (_e = conf.userAgent) !== null && _e !== void 0 ? _e : SDK_METADATA.userAgent);\n }\n let reqBody = conf.body;\n const extraBody = Object.fromEntries(Object.entries((options === null || options === void 0 ? void 0 : options.extra_body) || {}).filter(([, v]) => typeof v !== \"undefined\"));\n if (Object.keys(extraBody).length > 0) {\n const contentType = new Headers(opHeaders).get(\"content-type\") || \"\";\n const isJSON = /^(application|text)\\/([^+]+\\+)*json/.test(contentType);\n if (!isJSON || (typeof reqBody !== \"string\" && reqBody != null)) {\n return ERR(new InvalidRequestError(\"extra_body can only be merged into JSON object request bodies\"));\n }\n let parsedBody;\n try {\n parsedBody = reqBody ? JSON.parse(reqBody) : {};\n }\n catch (err) {\n return ERR(new InvalidRequestError(\"extra_body can only be merged into JSON object request bodies\", { cause: err }));\n }\n if (!isPlainObject$1(parsedBody)) {\n return ERR(new InvalidRequestError(\"extra_body can only be merged into JSON object request bodies\"));\n }\n reqBody = JSON.stringify(Object.assign(Object.assign({}, parsedBody), extraBody));\n headers.delete(\"content-length\");\n }\n const fetchOptions = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.fetch_options), options);\n if (!(fetchOptions === null || fetchOptions === void 0 ? void 0 : fetchOptions.signal) && conf.timeout_ms != null && conf.timeout_ms > 0) {\n context.timeout_ms = conf.timeout_ms;\n }\n if (conf.body instanceof ReadableStream) {\n Object.assign(fetchOptions, { duplex: \"half\" });\n }\n let input;\n try {\n input = this._hooks.beforeCreateRequest(context, {\n url: reqURL,\n options: Object.assign(Object.assign({}, fetchOptions), { body: reqBody !== null && reqBody !== void 0 ? reqBody : null, headers,\n method }),\n });\n }\n catch (err) {\n return ERR(new UnexpectedClientError(\"Create request hook failed to execute\", {\n cause: err,\n }));\n }\n return OK(new Request(input.url, input.options));\n }\n async _do(request, options) {\n const { context, isErrorStatusCode } = options;\n const timeout_ms = context.timeout_ms;\n return retry(async () => {\n var _a;\n const cloned = request.clone();\n let attempt = cloned;\n if (timeout_ms != null && timeout_ms > 0) {\n const timeoutSignal = AbortSignal.timeout(timeout_ms);\n const combined = (_a = combineSignals(cloned.signal, timeoutSignal)) !== null && _a !== void 0 ? _a : timeoutSignal;\n attempt = new Request(cloned, { signal: combined });\n }\n const req = await this._hooks.beforeRequest(context, attempt);\n await logRequest(this._logger, req).catch((e) => { var _a; return (_a = this._logger) === null || _a === void 0 ? void 0 : _a.log(\"Failed to log request:\", e); });\n let response = await this._httpClient.request(req);\n try {\n if (isErrorStatusCode(response.status)) {\n const result = await this._hooks.afterError(context, response, null);\n if (result.error) {\n throw result.error;\n }\n response = result.response || response;\n }\n else {\n response = await this._hooks.afterSuccess(context, response);\n }\n }\n finally {\n await logResponse(this._logger, response, req)\n .catch(e => { var _a; return (_a = this._logger) === null || _a === void 0 ? void 0 : _a.log(\"Failed to log response:\", e); });\n }\n return response;\n }, { config: options.retryConfig, statusCodes: options.retryCodes }).then((r) => OK(r), (err) => {\n switch (true) {\n case isAbortError(err):\n return ERR(new RequestAbortedError(\"Request aborted by client\", {\n cause: err,\n }));\n case isTimeoutError(err):\n return ERR(new RequestTimeoutError(\"Request timed out\", { cause: err }));\n case isConnectionError(err):\n return ERR(new ConnectionError(\"Unable to make request\", { cause: err }));\n default:\n return ERR(new UnexpectedClientError(\"Unexpected HTTP client error\", {\n cause: err,\n }));\n }\n });\n }\n}\nconst jsonLikeContentTypeRE = /^(application|text)\\/([^+]+\\+)*json.*/;\nconst jsonlLikeContentTypeRE = /^(application|text)\\/([^+]+\\+)*(jsonl|x-ndjson)\\b.*/;\nasync function logRequest(logger, req) {\n if (!logger) {\n return;\n }\n const contentType = req.headers.get(\"content-type\");\n const ct = (contentType === null || contentType === void 0 ? void 0 : contentType.split(\";\")[0]) || \"\";\n logger.group(`> Request: ${req.method} ${req.url}`);\n logger.group(\"Headers:\");\n for (const [k, v] of req.headers.entries()) {\n logger.log(`${k}: ${v}`);\n }\n logger.groupEnd();\n logger.group(\"Body:\");\n switch (true) {\n case jsonLikeContentTypeRE.test(ct):\n logger.log(await req.clone().json());\n break;\n case ct.startsWith(\"text/\"):\n logger.log(await req.clone().text());\n break;\n case ct === \"multipart/form-data\": {\n const body = await req.clone().formData();\n for (const [k, v] of body) {\n const vlabel = v instanceof Blob ? \"<Blob>\" : v;\n logger.log(`${k}: ${vlabel}`);\n }\n break;\n }\n default:\n logger.log(`<${contentType}>`);\n break;\n }\n logger.groupEnd();\n logger.groupEnd();\n}\nasync function logResponse(logger, res, req) {\n if (!logger) {\n return;\n }\n const contentType = res.headers.get(\"content-type\");\n const ct = (contentType === null || contentType === void 0 ? void 0 : contentType.split(\";\")[0]) || \"\";\n logger.group(`< Response: ${req.method} ${req.url}`);\n logger.log(\"Status Code:\", res.status, res.statusText);\n logger.group(\"Headers:\");\n for (const [k, v] of res.headers.entries()) {\n logger.log(`${k}: ${v}`);\n }\n logger.groupEnd();\n logger.group(\"Body:\");\n switch (true) {\n case matchContentType(res, \"application/json\")\n || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct):\n logger.log(await res.clone().json());\n break;\n case matchContentType(res, \"application/jsonl\")\n || jsonlLikeContentTypeRE.test(ct):\n case matchContentType(res, \"text/event-stream\"):\n logger.log(`<${contentType}>`);\n break;\n case matchContentType(res, \"text/*\"):\n logger.log(await res.clone().text());\n break;\n case matchContentType(res, \"multipart/form-data\"): {\n const body = await res.clone().formData();\n for (const [k, v] of body) {\n const vlabel = v instanceof Blob ? \"<Blob>\" : v;\n logger.log(`${k}: ${vlabel}`);\n }\n break;\n }\n default:\n logger.log(`<${contentType}>`);\n break;\n }\n logger.groupEnd();\n logger.groupEnd();\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\n/** The fallback error class if no more specific error class is matched */\nclass GoogleGenAiDefaultError extends GoogleGenAiError {\n constructor(message, httpMeta) {\n if (message) {\n message += `: `;\n }\n message += `Status ${httpMeta.response.status}`;\n const contentType = httpMeta.response.headers.get(\"content-type\") || `\"\"`;\n if (contentType !== \"application/json\") {\n message += ` Content-Type ${contentType.includes(\" \") ? `\"${contentType}\"` : contentType}`;\n }\n const body = httpMeta.body || `\"\"`;\n message += body.length > 100 ? \"\\n\" : \". \";\n let bodyDisplay = body;\n if (body.length > 10000) {\n const truncated = body.substring(0, 10000);\n const remaining = body.length - 10000;\n bodyDisplay = `${truncated}...and ${remaining} more chars`;\n }\n message += `Body: ${bodyDisplay}`;\n message = message.trim();\n super(message, httpMeta);\n this.name = \"GoogleGenAiDefaultError\";\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nfunction tryParseJson(s) {\n try {\n return JSON.parse(s);\n }\n catch (_a) {\n return s;\n }\n}\nfunction wrapEventStreamResponse(body, opts = {}) {\n var _a, _b;\n const flattened = opts.flattened === true;\n const sentinel = (_a = opts.sentinel) !== null && _a !== void 0 ? _a : \"\";\n return new Stream(body, (rawEvent) => {\n if (sentinel !== \"\" && rawEvent.data === sentinel) {\n return { done: true, value: undefined };\n }\n if (flattened) {\n const data = rawEvent.data == null\n ? undefined\n : tryParseJson(rawEvent.data);\n return { done: false, value: data };\n }\n return {\n done: false,\n value: Object.assign(Object.assign({}, rawEvent), { data: rawEvent.data == null\n ? rawEvent.data\n : tryParseJson(rawEvent.data) }),\n };\n }, { dataRequired: (_b = opts.dataRequired) !== null && _b !== void 0 ? _b : true });\n}\nclass Stream extends ReadableStream {\n constructor(responseBody, parse, opts) {\n var _a;\n const upstream = responseBody.getReader();\n let buffer = new Uint8Array(4096);\n let bufferLen = 0;\n let searchStart = 0;\n const state = { eventId: undefined };\n const dataRequired = (_a = opts === null || opts === void 0 ? void 0 : opts.dataRequired) !== null && _a !== void 0 ? _a : true;\n super({\n async pull(downstream) {\n try {\n while (true) {\n const match = findBoundary(buffer, bufferLen, searchStart);\n if (!match) {\n // Bytes before the trailing MAX_BOUNDARY_LEN-1 were already\n // scanned with full lookahead and cannot start a boundary even\n // once more data arrives, so the next scan can skip them.\n searchStart = Math.max(0, bufferLen - MAX_BOUNDARY_LEN + 1);\n const chunk = await upstream.read();\n if (chunk.done)\n return downstream.close();\n if (bufferLen + chunk.value.length > buffer.length) {\n const grown = new Uint8Array(Math.max(buffer.length * 2, bufferLen + chunk.value.length));\n grown.set(buffer.subarray(0, bufferLen));\n buffer = grown;\n }\n buffer.set(chunk.value, bufferLen);\n bufferLen += chunk.value.length;\n continue;\n }\n const message = buffer.slice(0, match.index);\n buffer.copyWithin(0, match.index + match.length, bufferLen);\n bufferLen -= match.index + match.length;\n if (buffer.length > 4096 && bufferLen <= buffer.length >> 2) {\n // Release oversized capacity retained after an unusually large\n // event so long-lived streams do not hold peak memory.\n const shrunk = new Uint8Array(Math.max(4096, bufferLen * 2));\n shrunk.set(buffer.subarray(0, bufferLen));\n buffer = shrunk;\n }\n searchStart = 0;\n const item = parseMessage(message, parse, state, dataRequired);\n if (item && !item.done)\n return downstream.enqueue(item.value);\n if (item === null || item === void 0 ? void 0 : item.done) {\n await upstream.cancel(\"done\");\n return downstream.close();\n }\n }\n }\n catch (e) {\n downstream.error(e);\n await upstream.cancel(e);\n }\n },\n cancel: reason => upstream.cancel(reason),\n });\n }\n [Symbol.asyncIterator](options) {\n const fn = ReadableStream.prototype[Symbol.asyncIterator];\n if (typeof fn === \"function\")\n return fn.call(this, options);\n const reader = this.getReader();\n const iterator = {\n next: async () => {\n const r = await reader.read();\n if (r.done) {\n reader.releaseLock();\n return { done: true, value: undefined };\n }\n return { done: false, value: r.value };\n },\n throw: async (e) => {\n await reader.cancel(e);\n reader.releaseLock();\n return { done: true, value: undefined };\n },\n return: async () => {\n await reader.cancel(\"done\");\n reader.releaseLock();\n return { done: true, value: undefined };\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n const asyncDispose = Symbol.asyncDispose;\n if (asyncDispose) {\n iterator[asyncDispose] = async () => {\n var _a;\n await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));\n };\n }\n return iterator;\n }\n values(options) {\n return this[Symbol.asyncIterator](options);\n }\n}\nconst CR = 13;\nconst LF = 10;\nconst BOUNDARIES = [\n [CR, LF, CR, LF], // \\r\\n\\r\\n\n [CR, LF, CR], // \\r\\n\\r\n [CR, LF, LF], // \\r\\n\\n\n [CR, CR, LF], // \\r\\r\\n\n [LF, CR, LF], // \\n\\r\\n\n [CR, CR], // \\r\\r\n [LF, CR], // \\n\\r\n [LF, LF], // \\n\\n\n];\nconst MAX_BOUNDARY_LEN = BOUNDARIES.reduce((m, b) => Math.max(m, b.length), 0);\nfunction findBoundary(buf, len, from) {\n for (let i = from; i < len; i++) {\n if (buf[i] !== CR && buf[i] !== LF)\n continue;\n for (const boundary of BOUNDARIES) {\n if (i + boundary.length > len)\n continue;\n let match = true;\n for (let j = 0; j < boundary.length; j++) {\n if (buf[i + j] !== boundary[j]) {\n match = false;\n break;\n }\n }\n if (match)\n return { index: i, length: boundary.length };\n }\n }\n return null;\n}\nfunction parseMessage(chunk, parse, state, dataRequired) {\n const text = new TextDecoder().decode(chunk);\n const lines = text.split(/\\r\\n|\\r|\\n/);\n const dataLines = [];\n const ret = {};\n let ignore = true;\n for (const line of lines) {\n if (!line || line.startsWith(\":\"))\n continue;\n ignore = false;\n const i = line.indexOf(\":\");\n let field = line;\n let value = \"\";\n if (i > 0) {\n field = line.slice(0, i);\n value = line[i + 1] === \" \" ? line.slice(i + 2) : line.slice(i + 1);\n }\n if (field === \"data\")\n dataLines.push(value);\n else if (field === \"event\")\n ret.event = value;\n else if (field === \"id\" && !value.includes(\"\\0\"))\n state.eventId = value;\n else if (field === \"retry\" && /^\\d+$/.test(value)) {\n ret.retry = Number(value);\n }\n }\n if (ignore)\n return;\n ret.id = state.eventId;\n if (dataLines.length)\n ret.data = dataLines.join(\"\\n\");\n else if (dataRequired)\n return; // skip data-less events when data is required\n return parse(ret);\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nconst DEFAULT_CONTENT_TYPES = {\n jsonl: \"application/jsonl\",\n json: \"application/json\",\n text: \"text/plain\",\n bytes: \"application/octet-stream\",\n stream: \"application/octet-stream\",\n sse: \"text/event-stream\",\n nil: \"*\",\n fail: \"*\",\n};\nfunction jsonErr(codes, errorClass, options) {\n return Object.assign(Object.assign({}, options), { err: true, enc: \"json\", codes, errorClass });\n}\nfunction json(codes, options) {\n return Object.assign(Object.assign({}, options), { enc: \"json\", codes });\n}\nfunction sse(codes, sse, options) {\n return Object.assign(Object.assign(Object.assign({}, options), { enc: \"sse\", codes }), (sse ? { sse } : {}));\n}\nfunction nil(codes, options) {\n return Object.assign(Object.assign({}, options), { enc: \"nil\", codes });\n}\nfunction fail(codes) {\n return { enc: \"fail\", codes };\n}\nfunction match(...matchers) {\n return async function matchFunc(response, request, options) {\n let raw;\n let matcher;\n for (const match of matchers) {\n const { codes } = match;\n const ctpattern = \"ctype\" in match\n ? match.ctype\n : DEFAULT_CONTENT_TYPES[match.enc];\n if (ctpattern && matchResponse(response, codes, ctpattern)) {\n matcher = match;\n break;\n }\n else if (!ctpattern && matchStatusCode(response, codes)) {\n matcher = match;\n break;\n }\n }\n if (!matcher) {\n return [{\n ok: false,\n error: new GoogleGenAiDefaultError(\"Unexpected Status or Content-Type\", {\n response,\n request,\n body: await response.text().catch(() => \"\"),\n }),\n }, raw];\n }\n const encoding = matcher.enc;\n let body = \"\";\n switch (encoding) {\n case \"json\":\n body = await response.text();\n try {\n raw = JSON.parse(body);\n }\n catch (err) {\n // Passthrough for malformed error bodies; success bodies must be valid.\n if (!(\"err\" in matcher)) {\n throw err;\n }\n raw = body;\n }\n break;\n case \"jsonl\":\n raw = response.body;\n break;\n case \"bytes\":\n raw = new Uint8Array(await response.arrayBuffer());\n break;\n case \"stream\":\n raw = response.body;\n break;\n case \"text\":\n body = await response.text();\n raw = body;\n break;\n case \"sse\":\n if (response.body) {\n const sseOpts = (\"sse\" in matcher && matcher.sse) || {};\n raw = wrapEventStreamResponse(response.body, sseOpts);\n }\n else {\n raw = null;\n }\n break;\n case \"nil\":\n body = await response.text();\n raw = undefined;\n break;\n case \"fail\":\n body = await response.text();\n raw = body;\n break;\n default:\n throw new Error(`Unsupported response type: ${encoding}`);\n }\n if (matcher.enc === \"fail\") {\n return [{\n ok: false,\n error: new GoogleGenAiDefaultError(\"API error occurred\", {\n request,\n response,\n body,\n }),\n }, raw];\n }\n const resultKey = matcher.key || (options === null || options === void 0 ? void 0 : options.resultKey);\n let data;\n const headersField = matcher.hdrs\n ? { headers: unpackHeaders(response.headers) }\n : null;\n if (\"err\" in matcher) {\n data = Object.assign(Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.extraFields), headersField), (isPlainObject$1(raw) ? raw : null));\n }\n else if (resultKey) {\n data = Object.assign(Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.extraFields), headersField), { [resultKey]: raw });\n }\n else if (matcher.hdrs) {\n data = Object.assign(Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.extraFields), headersField), (isPlainObject$1(raw) ? raw : null));\n }\n else {\n data = raw;\n }\n if (\"err\" in matcher) {\n // When the spec error response is a single error class, instantiate\n // it with the data + httpMeta. When the spec defines a discriminated\n // union of error variants (no class), `errorClass` is undefined and\n // we pass the parsed payload through as the error value directly.\n const errValue = matcher.errorClass\n ? new matcher.errorClass(data, { request, response, body })\n : data;\n return [{ ok: false, error: errValue }, raw];\n }\n return [{ ok: true, value: data }, raw];\n };\n}\nconst headerValRE = /, */;\n/**\n * Iterates over a Headers object and returns an object with all the header\n * entries. Values are represented as an array to account for repeated headers.\n */\nfunction unpackHeaders(headers) {\n const out = {};\n for (const [k, v] of headers.entries()) {\n out[k] = v.split(headerValRE);\n }\n return out;\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nconst SecurityErrorCode = {\n Incomplete: \"incomplete\",\n UnrecognisedSecurityType: \"unrecognized_security_type\",\n};\nclass SecurityError extends Error {\n constructor(code, message) {\n super(message);\n this.code = code;\n this.name = \"SecurityError\";\n }\n static incomplete() {\n return new SecurityError(SecurityErrorCode.Incomplete, \"Security requirements not met in order to perform the operation\");\n }\n static unrecognizedType(type) {\n return new SecurityError(SecurityErrorCode.UnrecognisedSecurityType, `Unrecognised security type: ${type}`);\n }\n}\nfunction resolveSecurity(...options) {\n const state = {\n basic: {},\n headers: {},\n queryParams: {},\n cookies: {},\n oauth2: { type: \"none\" },\n };\n const option = options.find((opts) => {\n return opts.every((o) => {\n if (o.value == null) {\n return false;\n }\n else if (o.type === \"http:basic\") {\n return o.value.username != null || o.value.password != null;\n }\n else if (o.type === \"http:custom\") {\n return null;\n }\n else if (o.type === \"oauth2:password\") {\n return (typeof o.value === \"string\" && !!o.value);\n }\n else if (o.type === \"oauth2:client_credentials\") {\n if (typeof o.value == \"string\") {\n return !!o.value;\n }\n return o.value.client_id != null || o.value.client_secret != null;\n }\n else if (typeof o.value === \"string\") {\n return !!o.value;\n }\n else {\n throw new Error(`Unrecognized security type: ${o.type} (value type: ${typeof o\n .value})`);\n }\n });\n });\n if (option == null) {\n return null;\n }\n option.forEach((spec) => {\n if (spec.value == null) {\n return;\n }\n const { type } = spec;\n switch (type) {\n case \"apiKey:header\":\n state.headers[spec.fieldName] = spec.value;\n break;\n case \"apiKey:query\":\n state.queryParams[spec.fieldName] = spec.value;\n break;\n case \"apiKey:cookie\":\n state.cookies[spec.fieldName] = spec.value;\n break;\n case \"http:basic\":\n applyBasic(state, spec);\n break;\n case \"http:custom\":\n break;\n case \"http:bearer\":\n applyBearer(state, spec);\n break;\n case \"oauth2\":\n applyBearer(state, spec);\n break;\n case \"oauth2:password\":\n applyBearer(state, spec);\n break;\n case \"oauth2:client_credentials\":\n break;\n case \"openIdConnect\":\n applyBearer(state, spec);\n break;\n default:\n throw SecurityError.unrecognizedType((type));\n }\n });\n return state;\n}\nfunction applyBasic(state, spec) {\n if (spec.value == null) {\n return;\n }\n state.basic = spec.value;\n}\nfunction applyBearer(state, spec) {\n if (typeof spec.value !== \"string\" || !spec.value) {\n return;\n }\n let value = spec.value;\n if (value.slice(0, 7).toLowerCase() !== \"bearer \") {\n value = `Bearer ${value}`;\n }\n if (spec.fieldName !== undefined) {\n state.headers[spec.fieldName] = value;\n }\n}\nfunction resolveGlobalSecurity(security, allowedFields) {\n var _a, _b;\n let inputs = [\n [\n {\n fieldName: \"accessToken\",\n type: \"http:custom\",\n value: (_a = security === null || security === void 0 ? void 0 : security.access_token) !== null && _a !== void 0 ? _a : env().GOOGLE_GENAI_ACCESS_TOKEN,\n },\n {\n fieldName: \"apiKey\",\n type: \"http:custom\",\n value: (_b = security === null || security === void 0 ? void 0 : security.api_key) !== null && _b !== void 0 ? _b : env().GOOGLE_GENAI_API_KEY,\n },\n {\n fieldName: \"defaultHeaders\",\n type: \"http:custom\",\n value: security === null || security === void 0 ? void 0 : security.default_headers,\n },\n ],\n ];\n return resolveSecurity(...inputs);\n}\nasync function extractSecurity(sec) {\n if (sec == null) {\n return;\n }\n return typeof sec === \"function\" ? sec() : sec;\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nvar _a;\nclass APIPromise {\n constructor(p, callSource) {\n this[_a] = \"APIPromise\";\n this._promise = p instanceof Promise ? p : Promise.resolve(p);\n this._unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);\n this._callSource = callSource !== null && callSource !== void 0 ? callSource : null;\n }\n _getUnwrapped() {\n var _b;\n return ((_b = this._unwrapped) !== null && _b !== void 0 ? _b : (this._unwrapped = this._promise.then(([value]) => value)));\n }\n then(onfulfilled, onrejected) {\n return this._promise.then(onfulfilled ? ([value]) => onfulfilled(value) : void 0, onrejected);\n }\n catch(onrejected) {\n return this._getUnwrapped().catch(onrejected);\n }\n finally(onfinally) {\n return this._getUnwrapped().finally(onfinally);\n }\n $inspect() {\n return this._promise;\n }\n asResponse() {\n var _b;\n const src = ((_b = this._callSource) !== null && _b !== void 0 ? _b : (this._callSource = this._promise.then(([, call]) => call)));\n return src.then((call) => {\n if (!call.response) {\n throw new Error(\"APIPromise.asResponse: response unavailable\");\n }\n return call.response;\n });\n }\n async withResponse() {\n const [[data], response] = await Promise.all([\n this._promise,\n this.asResponse(),\n ]);\n return { data, response };\n }\n _thenUnwrap(transform) {\n var _b;\n const data = this._promise.then(([value, call]) => [transform(value), call]);\n data.catch(() => { });\n return new APIPromise(data, (_b = this._callSource) !== null && _b !== void 0 ? _b : undefined);\n }\n}\n_a = Symbol.toStringTag;\nfunction unwrapAsAPIPromise(p) {\n const inner = p.$inspect();\n const data = inner.then(([r, call]) => {\n if (!r.ok) {\n throw r.error;\n }\n return [r.value, call];\n });\n const callSource = inner.then(([r, call]) => {\n var _b;\n if (!r.ok && !((_b = call.response) === null || _b === void 0 ? void 0 : _b.ok)) {\n throw r.error;\n }\n return call;\n });\n data.catch(() => { });\n callSource.catch(() => { });\n return new APIPromise(data, callSource);\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Creates a new Agent (Typed version for SDK).\n */\nfunction agentsCreate(client, body, api_version, options) {\n return new APIPromise($do$q(client, body, api_version, options));\n}\nasync function $do$q(client, body, api_version, options) {\n var _a, _b, _c;\n const input = {\n body: body,\n api_version: api_version,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/agents\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"CreateAgent\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Deletes an Agent.\n */\nfunction agentsDelete(client, id, api_version, options) {\n return new APIPromise($do$p(client, id, api_version, options));\n}\nasync function $do$p(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/agents/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"DeleteAgent\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"DELETE\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Gets a specific Agent.\n */\nfunction agentsGet(client, id, api_version, options) {\n return new APIPromise($do$o(client, id, api_version, options));\n}\nasync function $do$o(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/agents/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"GetAgent\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Lists all Agents.\n */\nfunction agentsList(client, api_version, page_size, page_token, parent, options) {\n return new APIPromise($do$n(client, api_version, page_size, page_token, parent, options));\n}\nasync function $do$n(client, api_version, page_size, page_token, parent, options) {\n var _a, _b, _c;\n const input = {\n api_version: api_version,\n page_size: page_size,\n page_token: page_token,\n parent: parent,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload === null || payload === void 0 ? void 0 : payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/agents\")(pathParams);\n const query = encodeFormQuery({\n \"page_size\": payload === null || payload === void 0 ? void 0 : payload.page_size,\n \"page_token\": payload === null || payload === void 0 ? void 0 : payload.page_token,\n \"parent\": payload === null || payload === void 0 ? void 0 : payload.parent,\n });\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"ListAgents\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n query: query,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nclass Agents extends ClientSDK {\n /**\n * Lists all Agents.\n */\n list(params, options) {\n return unwrapAsAPIPromise(agentsList(this, params === null || params === void 0 ? void 0 : params.api_version, params === null || params === void 0 ? void 0 : params.page_size, params === null || params === void 0 ? void 0 : params.page_token, params === null || params === void 0 ? void 0 : params.parent, options));\n }\n /**\n * Creates a new Agent (Typed version for SDK).\n */\n create(params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapAsAPIPromise(agentsCreate(this, body, api_version, options));\n }\n /**\n * Deletes an Agent.\n */\n delete(id, params, options) {\n return unwrapAsAPIPromise(agentsDelete(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n /**\n * Gets a specific Agent.\n */\n get(id, params, options) {\n return unwrapAsAPIPromise(agentsGet(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Creates an environment.\n */\nfunction environmentsCreateEnvironment(client, body, api_version, options) {\n return new APIPromise($do$m(client, body, api_version, options));\n}\nasync function $do$m(client, body, api_version, options) {\n var _a, _b, _c;\n const input = {\n body: body,\n api_version: api_version,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/environments\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"CreateEnvironment\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Deletes an environment.\n */\nfunction environmentsDeleteEnvironment(client, id, api_version, options) {\n return new APIPromise($do$l(client, id, api_version, options));\n}\nasync function $do$l(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/environments/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"DeleteEnvironment\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"DELETE\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Gets an environment.\n */\nfunction environmentsGetEnvironment(client, id, api_version, options) {\n return new APIPromise($do$k(client, id, api_version, options));\n}\nasync function $do$k(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/environments/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"GetEnvironment\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Lists environments.\n */\nfunction environmentsListEnvironments(client, api_version, page_size, page_token, options) {\n return new APIPromise($do$j(client, api_version, page_size, page_token, options));\n}\nasync function $do$j(client, api_version, page_size, page_token, options) {\n var _a, _b, _c;\n const input = {\n api_version: api_version,\n page_size: page_size,\n page_token: page_token,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload === null || payload === void 0 ? void 0 : payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/environments\")(pathParams);\n const query = encodeFormQuery({\n \"page_size\": payload === null || payload === void 0 ? void 0 : payload.page_size,\n \"page_token\": payload === null || payload === void 0 ? void 0 : payload.page_token,\n });\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"ListEnvironments\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n query: query,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Retrieves file metadata or directory contents from an environment's snapshot. To download file contents directly, pass ?alt=media or use the files.download helper.\n */\nfunction environmentsFilesList(client, environment, path, api_version, page_size, page_token, recursive, options) {\n return new APIPromise($do$i(client, environment, path, api_version, page_size, page_token, recursive, options));\n}\nasync function $do$i(client, environment, path, api_version, page_size, page_token, recursive, options) {\n var _a, _b, _c;\n const input = {\n environment: environment,\n path: path,\n api_version: api_version,\n page_size: page_size,\n page_token: page_token,\n recursive: recursive,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n environment: encodeSimple(\"environment\", payload.environment, {\n explode: false,\n charEncoding: \"percent\",\n }),\n path: encodeSimple(\"path\", payload.path, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path$ = pathToFunc(\"/{api_version}/environments/{environment}/files/{path}\")(pathParams);\n const query = encodeFormQuery({\n \"page_size\": payload.page_size,\n \"page_token\": payload.page_token,\n \"recursive\": payload.recursive,\n });\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"GetEnvironmentFiles\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path$,\n headers: headers,\n query: query,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nclass Files extends ClientSDK {\n /**\n * Retrieves file metadata or directory contents from an environment's snapshot. To download file contents directly, pass ?alt=media or use the files.download helper.\n */\n list(environment, path, params, options) {\n return unwrapAsAPIPromise(environmentsFilesList(this, environment, path, params === null || params === void 0 ? void 0 : params.api_version, params === null || params === void 0 ? void 0 : params.page_size, params === null || params === void 0 ? void 0 : params.page_token, params === null || params === void 0 ? void 0 : params.recursive, options));\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nclass Environments extends ClientSDK {\n get files() {\n var _a;\n return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Files(this._options)));\n }\n /**\n * Lists environments.\n */\n listEnvironments(params, options) {\n return unwrapAsAPIPromise(environmentsListEnvironments(this, params === null || params === void 0 ? void 0 : params.api_version, params === null || params === void 0 ? void 0 : params.page_size, params === null || params === void 0 ? void 0 : params.page_token, options));\n }\n /**\n * Creates an environment.\n */\n createEnvironment(body, api_version, options) {\n return unwrapAsAPIPromise(environmentsCreateEnvironment(this, body, api_version, options));\n }\n /**\n * Deletes an environment.\n */\n deleteEnvironment(id, params, options) {\n return unwrapAsAPIPromise(environmentsDeleteEnvironment(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n /**\n * Gets an environment.\n */\n getEnvironment(id, params, options) {\n return unwrapAsAPIPromise(environmentsGetEnvironment(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Error cancelling interaction\n */\nclass CancelInteractionByIdServerError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"CancelInteractionByIdServerError\";\n }\n}\n/**\n * Error cancelling interaction\n */\nclass CancelInteractionByIdClientError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"CancelInteractionByIdClientError\";\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Error creating interaction\n */\nclass CreateInteractionServerError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"CreateInteractionServerError\";\n }\n}\n/**\n * Error creating interaction\n */\nclass CreateInteractionClientError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"CreateInteractionClientError\";\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Error deleting interaction\n */\nclass DeleteInteractionServerError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"DeleteInteractionServerError\";\n }\n}\n/**\n * Error deleting interaction\n */\nclass DeleteInteractionClientError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"DeleteInteractionClientError\";\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Error getting interaction\n */\nclass GetInteractionByIdServerError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"GetInteractionByIdServerError\";\n }\n}\n/**\n * Error getting interaction\n */\nclass GetInteractionByIdClientError extends GoogleGenAiError {\n constructor(err, httpMeta) {\n var _a;\n const message = ((_a = err.error) === null || _a === void 0 ? void 0 : _a.message)\n || `API error occurred: ${JSON.stringify(err)}`;\n super(message, httpMeta);\n this.data$ = err;\n this.error = err.error;\n this.name = \"GetInteractionByIdClientError\";\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Canceling an interaction\n *\n * @remarks\n * Cancels an interaction by id. This only applies to background interactions that are still running.\n */\nfunction interactionsCancel(client, id, api_version, options) {\n return new APIPromise($do$h(client, id, api_version, options));\n}\nasync function $do$h(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/interactions/{id}/cancel\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"cancelInteractionById\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const responseFields = {\n httpMeta: { response: response, request: req },\n };\n const [result] = await match(json(200), jsonErr(\"4XX\", CancelInteractionByIdClientError), jsonErr(\"5XX\", CancelInteractionByIdServerError))(response, req, { extraFields: responseFields });\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nfunction interactionsCreate(client, body, api_version, options) {\n return new APIPromise($do$g(client, body, api_version, options));\n}\nasync function $do$g(client, body, api_version, options) {\n var _a, _b, _c, _d;\n const input = {\n body: body,\n api_version: api_version,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/interactions\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: ((_b = input === null || input === void 0 ? void 0 : input.body) === null || _b === void 0 ? void 0 : _b.stream) ? \"text/event-stream\" : \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_d = (_c = options === null || options === void 0 ? void 0 : options.server_url) !== null && _c !== void 0 ? _c : client._baseURL) !== null && _d !== void 0 ? _d : \"\",\n operation_id: \"CreateInteraction\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const responseFields = {\n httpMeta: { response: response, request: req },\n };\n const [result] = await match(json(200), sse(200, {\n sentinel: \"[DONE]\",\n flattened: true,\n }), jsonErr(\"4XX\", CreateInteractionClientError), jsonErr(\"5XX\", CreateInteractionServerError))(response, req, { extraFields: responseFields });\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Deleting an interaction\n *\n * @remarks\n * Deletes the interaction by id.\n */\nfunction interactionsDelete(client, id, api_version, options) {\n return new APIPromise($do$f(client, id, api_version, options));\n}\nasync function $do$f(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/interactions/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"deleteInteraction\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"DELETE\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const responseFields = {\n httpMeta: { response: response, request: req },\n };\n const [result] = await match(nil(200), jsonErr(\"4XX\", DeleteInteractionClientError), jsonErr(\"5XX\", DeleteInteractionServerError))(response, req, { extraFields: responseFields });\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nfunction interactionsGet(client, id, api_version, include_input, last_event_id, stream, options) {\n return new APIPromise($do$e(client, id, api_version, include_input, last_event_id, stream, options));\n}\nasync function $do$e(client, id, api_version, include_input, last_event_id, stream, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n include_input: include_input,\n last_event_id: last_event_id,\n stream: stream,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/interactions/{id}\")(pathParams);\n const query = encodeFormQuery({\n \"include_input\": payload.include_input,\n \"last_event_id\": payload.last_event_id,\n \"stream\": payload.stream,\n });\n const headers = new Headers(compactMap({\n Accept: (input === null || input === void 0 ? void 0 : input.stream) ? \"text/event-stream\" : \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"getInteractionById\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n query: query,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const responseFields = {\n httpMeta: { response: response, request: req },\n };\n const [result] = await match(json(200), sse(200, {\n sentinel: \"[DONE]\",\n flattened: true,\n }), jsonErr(\"4XX\", GetInteractionByIdClientError), jsonErr(\"5XX\", GetInteractionByIdServerError))(response, req, { extraFields: responseFields });\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nclass Interactions extends ClientSDK {\n create(params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapAsAPIPromise(interactionsCreate(this, body, api_version, options));\n }\n /**\n * Deleting an interaction\n *\n * @remarks\n * Deletes the interaction by id.\n */\n delete(id, params, options) {\n return unwrapAsAPIPromise(interactionsDelete(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n get(id, params, options) {\n return unwrapAsAPIPromise(interactionsGet(this, id, params === null || params === void 0 ? void 0 : params.api_version, params === null || params === void 0 ? void 0 : params.include_input, params === null || params === void 0 ? void 0 : params.last_event_id, params === null || params === void 0 ? void 0 : params.stream, options));\n }\n /**\n * Canceling an interaction\n *\n * @remarks\n * Cancels an interaction by id. This only applies to background interactions that are still running.\n */\n cancel(id, params, options) {\n return unwrapAsAPIPromise(interactionsCancel(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Creates a new trigger that will invoke the specified agent on the given cron schedule.\n */\nfunction triggersCreate(client, body, api_version, options) {\n return new APIPromise($do$d(client, body, api_version, options));\n}\nasync function $do$d(client, body, api_version, options) {\n var _a, _b, _c;\n const input = {\n body: body,\n api_version: api_version,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/triggers\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"CreateTrigger\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Deletes a trigger.\n */\nfunction triggersDelete(client, id, api_version, options) {\n return new APIPromise($do$c(client, id, api_version, options));\n}\nasync function $do$c(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/triggers/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"DeleteTrigger\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"DELETE\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Gets details of a single trigger.\n */\nfunction triggersGet(client, id, api_version, options) {\n return new APIPromise($do$b(client, id, api_version, options));\n}\nasync function $do$b(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/triggers/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"GetTrigger\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Lists executions for a trigger.\n */\nfunction triggersListExecutions(client, trigger_id, api_version, page_size, page_token, options) {\n return new APIPromise($do$a(client, trigger_id, api_version, page_size, page_token, options));\n}\nasync function $do$a(client, trigger_id, api_version, page_size, page_token, options) {\n var _a, _b, _c;\n const input = {\n trigger_id: trigger_id,\n api_version: api_version,\n page_size: page_size,\n page_token: page_token,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n trigger_id: encodeSimple(\"trigger_id\", payload.trigger_id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/triggers/{trigger_id}/executions\")(pathParams);\n const query = encodeFormQuery({\n \"page_size\": payload.page_size,\n \"page_token\": payload.page_token,\n });\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"ListTriggerExecutions\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n query: query,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Lists triggers for a project.\n */\nfunction triggersList(client, api_version, filter, page_size, page_token, options) {\n return new APIPromise($do$9(client, api_version, filter, page_size, page_token, options));\n}\nasync function $do$9(client, api_version, filter, page_size, page_token, options) {\n var _a, _b, _c;\n const input = {\n api_version: api_version,\n filter: filter,\n page_size: page_size,\n page_token: page_token,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload === null || payload === void 0 ? void 0 : payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/triggers\")(pathParams);\n const query = encodeFormQuery({\n \"filter\": payload === null || payload === void 0 ? void 0 : payload.filter,\n \"page_size\": payload === null || payload === void 0 ? void 0 : payload.page_size,\n \"page_token\": payload === null || payload === void 0 ? void 0 : payload.page_token,\n });\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"ListTriggers\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n query: query,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Runs a trigger immediately.\n */\nfunction triggersRun(client, trigger_id, api_version, options) {\n return new APIPromise($do$8(client, trigger_id, api_version, options));\n}\nasync function $do$8(client, trigger_id, api_version, options) {\n var _a, _b, _c;\n const input = {\n trigger_id: trigger_id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n trigger_id: encodeSimple(\"trigger_id\", payload.trigger_id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/triggers/{trigger_id}/executions\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"RunTrigger\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Updates a trigger.\n */\nfunction triggersUpdate(client, id, body, api_version, options) {\n return new APIPromise($do$7(client, id, body, api_version, options));\n}\nasync function $do$7(client, id, body, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n body: body,\n api_version: api_version,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/triggers/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"UpdateTrigger\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"PATCH\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(json(200), fail(\"4XX\"), fail(\"5XX\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nclass Triggers extends ClientSDK {\n /**\n * Lists triggers for a project.\n */\n list(params, options) {\n return unwrapAsAPIPromise(triggersList(this, params === null || params === void 0 ? void 0 : params.api_version, params === null || params === void 0 ? void 0 : params.filter, params === null || params === void 0 ? void 0 : params.page_size, params === null || params === void 0 ? void 0 : params.page_token, options));\n }\n /**\n * Creates a new trigger that will invoke the specified agent on the given cron schedule.\n */\n create(params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapAsAPIPromise(triggersCreate(this, body, api_version, options));\n }\n /**\n * Deletes a trigger.\n */\n delete(id, params, options) {\n return unwrapAsAPIPromise(triggersDelete(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n /**\n * Gets details of a single trigger.\n */\n get(id, params, options) {\n return unwrapAsAPIPromise(triggersGet(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n /**\n * Updates a trigger.\n */\n update(id, params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapAsAPIPromise(triggersUpdate(this, id, body, api_version, options));\n }\n /**\n * Lists executions for a trigger.\n */\n listExecutions(trigger_id, params, options) {\n return unwrapAsAPIPromise(triggersListExecutions(this, trigger_id, params === null || params === void 0 ? void 0 : params.api_version, params === null || params === void 0 ? void 0 : params.page_size, params === null || params === void 0 ? void 0 : params.page_token, options));\n }\n /**\n * Runs a trigger immediately.\n */\n run(trigger_id, params, options) {\n return unwrapAsAPIPromise(triggersRun(this, trigger_id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Creates a new Webhook.\n */\nfunction webhooksCreate(client, body, api_version, options) {\n return new APIPromise($do$6(client, body, api_version, options));\n}\nasync function $do$6(client, body, api_version, options) {\n var _a, _b, _c;\n const input = {\n body: body,\n api_version: api_version,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/webhooks\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"CreateWebhook\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Deletes a Webhook.\n */\nfunction webhooksDelete(client, id, api_version, options) {\n return new APIPromise($do$5(client, id, api_version, options));\n}\nasync function $do$5(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/webhooks/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"DeleteWebhook\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"DELETE\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Gets a specific Webhook.\n */\nfunction webhooksGet(client, id, api_version, options) {\n return new APIPromise($do$4(client, id, api_version, options));\n}\nasync function $do$4(client, id, api_version, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/webhooks/{id}\")(pathParams);\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"GetWebhook\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Lists all Webhooks.\n */\nfunction webhooksList(client, api_version, page_size, page_token, options) {\n return new APIPromise($do$3(client, api_version, page_size, page_token, options));\n}\nasync function $do$3(client, api_version, page_size, page_token, options) {\n var _a, _b, _c;\n const input = {\n api_version: api_version,\n page_size: page_size,\n page_token: page_token,\n };\n const payload = input;\n const body = null;\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload === null || payload === void 0 ? void 0 : payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n };\n const path = pathToFunc(\"/{api_version}/webhooks\")(pathParams);\n const query = encodeFormQuery({\n \"page_size\": payload === null || payload === void 0 ? void 0 : payload.page_size,\n \"page_token\": payload === null || payload === void 0 ? void 0 : payload.page_token,\n });\n const headers = new Headers(compactMap({\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"ListWebhooks\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"GET\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n query: query,\n body: body,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Sends a ping event to a Webhook.\n */\nfunction webhooksPing(client, id, api_version, body, options) {\n return new APIPromise($do$2(client, id, api_version, body, options));\n}\nasync function $do$2(client, id, api_version, body, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n body: body,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/webhooks/{id}:ping\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"PingWebhook\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Generates a new signing secret for a Webhook.\n */\nfunction webhooksRotateSigningSecret(client, id, api_version, body, options) {\n return new APIPromise($do$1(client, id, api_version, body, options));\n}\nasync function $do$1(client, id, api_version, body, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n body: body,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/webhooks/{id}:rotateSigningSecret\")(pathParams);\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"RotateSigningSecret\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"POST\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/**\n * Updates an existing Webhook.\n */\nfunction webhooksUpdate(client, id, api_version, update_mask, body, options) {\n return new APIPromise($do(client, id, api_version, update_mask, body, options));\n}\nasync function $do(client, id, api_version, update_mask, body, options) {\n var _a, _b, _c;\n const input = {\n id: id,\n api_version: api_version,\n update_mask: update_mask,\n body: body,\n };\n const payload = input;\n const body$ = encodeJSON(\"body\", payload.body, { explode: true });\n const pathParams = {\n api_version: encodeSimple(\"api_version\", (_a = payload.api_version) !== null && _a !== void 0 ? _a : client._options.api_version, { explode: false, charEncoding: \"percent\" }),\n id: encodeSimple(\"id\", payload.id, {\n explode: false,\n charEncoding: \"percent\",\n }),\n };\n const path = pathToFunc(\"/{api_version}/webhooks/{id}\")(pathParams);\n const query = encodeFormQuery({\n \"update_mask\": payload.update_mask,\n });\n const headers = new Headers(compactMap({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n }));\n const securityInput = await extractSecurity(client._options.security);\n const requestSecurity = resolveGlobalSecurity(securityInput);\n const context = {\n options: client._options,\n base_url: (_c = (_b = options === null || options === void 0 ? void 0 : options.server_url) !== null && _b !== void 0 ? _b : client._baseURL) !== null && _c !== void 0 ? _c : \"\",\n operation_id: \"UpdateWebhook\",\n o_auth2_scopes: null,\n resolved_security: requestSecurity,\n security_source: client._options.security,\n retry_config: (options === null || options === void 0 ? void 0 : options.retries)\n || client._options.retry_config\n || {\n strategy: \"attempt-count-backoff\",\n backoff: {\n initialInterval: 500,\n maxInterval: 8000,\n exponent: 2,\n maxElapsedTime: 30000,\n },\n retryConnectionErrors: true,\n maxRetries: 4,\n }\n || { strategy: \"none\" },\n retry_codes: (options === null || options === void 0 ? void 0 : options.retry_codes) || [\"408\", \"409\", \"429\", \"5XX\"],\n };\n const requestRes = client._createRequest(context, {\n security: requestSecurity,\n method: \"PATCH\",\n baseURL: options === null || options === void 0 ? void 0 : options.server_url,\n path: path,\n headers: headers,\n query: query,\n body: body$,\n userAgent: client._options.user_agent,\n timeout_ms: (options === null || options === void 0 ? void 0 : options.timeout_ms) || client._options.timeout_ms || -1,\n }, options);\n if (!requestRes.ok) {\n return [requestRes, { status: \"invalid\" }];\n }\n const req = requestRes.value;\n const doResult = await client._do(req, {\n context,\n isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, [\"4XX\", \"5XX\"]),\n retryConfig: context.retry_config,\n retryCodes: context.retry_codes,\n });\n if (!doResult.ok) {\n return [doResult, { status: \"request-error\", request: req }];\n }\n const response = doResult.value;\n const [result] = await match(fail(\"4XX\"), fail(\"5XX\"), json(\"default\"))(response, req);\n if (!result.ok) {\n return [result, { status: \"complete\", request: req, response }];\n }\n return [result, { status: \"complete\", request: req, response }];\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nclass Webhooks extends ClientSDK {\n /**\n * Lists all Webhooks.\n */\n list(params, options) {\n return unwrapAsAPIPromise(webhooksList(this, params === null || params === void 0 ? void 0 : params.api_version, params === null || params === void 0 ? void 0 : params.page_size, params === null || params === void 0 ? void 0 : params.page_token, options));\n }\n /**\n * Creates a new Webhook.\n */\n create(params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapAsAPIPromise(webhooksCreate(this, body, api_version, options));\n }\n /**\n * Deletes a Webhook.\n */\n delete(id, params, options) {\n return unwrapAsAPIPromise(webhooksDelete(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n /**\n * Gets a specific Webhook.\n */\n get(id, params, options) {\n return unwrapAsAPIPromise(webhooksGet(this, id, params === null || params === void 0 ? void 0 : params.api_version, options));\n }\n /**\n * Updates an existing Webhook.\n */\n update(id, params, options) {\n const _a = params !== null && params !== void 0 ? params : {}, { api_version, update_mask } = _a, body$body = __rest(_a, [\"api_version\", \"update_mask\"]);\n const body = params === undefined || Object.keys(body$body).length === 0\n ? undefined\n : body$body;\n return unwrapAsAPIPromise(webhooksUpdate(this, id, api_version, update_mask, body, options));\n }\n /**\n * Sends a ping event to a Webhook.\n */\n ping(id, api_version, body, options) {\n return unwrapAsAPIPromise(webhooksPing(this, id, api_version, body, options));\n }\n /**\n * Generates a new signing secret for a Webhook.\n */\n rotateSigningSecret(id, api_version, body, options) {\n return unwrapAsAPIPromise(webhooksRotateSigningSecret(this, id, api_version, body, options));\n }\n}\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\n/*\n * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.\n */\nlet GoogleGenAI$1 = class GoogleGenAI extends ClientSDK {\n get agents() {\n var _a;\n return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Agents(this._options)));\n }\n get environments() {\n var _a;\n return ((_a = this._environments) !== null && _a !== void 0 ? _a : (this._environments = new Environments(this._options)));\n }\n get interactions() {\n var _a;\n return ((_a = this._interactions) !== null && _a !== void 0 ? _a : (this._interactions = new Interactions(this._options)));\n }\n get triggers() {\n var _a;\n return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Triggers(this._options)));\n }\n get webhooks() {\n var _a;\n return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Webhooks(this._options)));\n }\n};\n\n/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n *\n * g3-prettier-ignore-file\n */\nconst LEGACY_LYRIA_MODELS = new Set([\n \"lyria-3-pro-preview\",\n \"lyria-3-clip-preview\",\n]);\nfunction getGoogleGenAIServerURL(parentClient) {\n const serverURL = parentClient.getBaseUrl();\n if (!serverURL) {\n throw new Error(\"Base URL must be set.\");\n }\n return serverURL.replace(/\\/+$/, \"\");\n}\nfunction getGoogleGenAIAPIVersion(parentClient) {\n const apiVersion = trimSlashes(parentClient.getApiVersion());\n const project = parentClient.getProject();\n const location = parentClient.getLocation();\n if (parentClient.isVertexAI() && apiVersion && project && location) {\n return (`${apiVersion}/projects/${encodeURIComponent(project)}` +\n `/locations/${encodeURIComponent(location)}`);\n }\n return apiVersion;\n}\nfunction buildGoogleGenAIClient(parentClient, options = {}) {\n var _a, _b, _c, _d, _e;\n const sdk = new GoogleGenAI$1(Object.assign(Object.assign({}, options), { api_version: (_a = options.api_version) !== null && _a !== void 0 ? _a : getGoogleGenAIAPIVersion(parentClient), security: (_b = options.security) !== null && _b !== void 0 ? _b : new GoogleGenAISecurityProvider({\n defaultHeaders: Object.assign(Object.assign({}, (_c = parentClient.getDefaultHeaders) === null || _c === void 0 ? void 0 : _c.call(parentClient)), (_d = parentClient.getHeaders) === null || _d === void 0 ? void 0 : _d.call(parentClient)),\n getAuthHeaders: (url) => parentClient.getAuthHeaders(url),\n }), server_url: (_e = options.server_url) !== null && _e !== void 0 ? _e : getGoogleGenAIServerURL(parentClient) }));\n return sdk;\n}\nclass GeminiNextGenInteractions {\n constructor(parentClient) {\n this.parentClient = parentClient;\n }\n async create(params, options) {\n const { api_version } = params, request = __rest(params, [\"api_version\"]);\n if (request.stream === true) {\n const response = await wrapSDKCall(() => this.getClient(api_version).interactions.create(Object.assign(Object.assign({}, request), { stream: true, api_version }), toGoogleGenAIRequestOptions(options, true)));\n return wrapStreamErrors(response);\n }\n const response = await unwrapWithSdkHttpResponse(interactionsCreate(this.getClient(api_version), request, api_version, toGoogleGenAIRequestOptions(options)));\n return addOutputPropertiesIfInteraction(response);\n }\n async get(id, params = {}, options) {\n const { api_version, stream = false, last_event_id, include_input, } = params !== null && params !== void 0 ? params : {};\n if (stream === true) {\n const response = await wrapSDKCall(() => this.getClient(api_version).interactions.get(id, { stream, last_event_id, include_input, api_version }, toGoogleGenAIRequestOptions(options, true)));\n return wrapStreamErrors(response);\n }\n const response = await unwrapWithSdkHttpResponse(interactionsGet(this.getClient(api_version), id, api_version, include_input, last_event_id, stream, toGoogleGenAIRequestOptions(options)));\n return addOutputPropertiesIfInteraction(response);\n }\n async delete(id, params = {}, options) {\n return wrapSDKCall(() => this.getClient(params === null || params === void 0 ? void 0 : params.api_version).interactions.delete(id, { api_version: params === null || params === void 0 ? void 0 : params.api_version }, toGoogleGenAIRequestOptions(options)));\n }\n async cancel(id, params = {}, options) {\n return addOutputPropertiesIfInteraction(await unwrapWithSdkHttpResponse(interactionsCancel(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options))));\n }\n getClient(apiVersion) {\n var _a;\n if (apiVersion) {\n return buildGoogleGenAIClient(this.parentClient, {\n api_version: apiVersion,\n });\n }\n (_a = this.sdk) !== null && _a !== void 0 ? _a : (this.sdk = buildGoogleGenAIClient(this.parentClient));\n return this.sdk;\n }\n}\nclass GeminiNextGenAgents {\n constructor(parentClient) {\n this.parentClient = parentClient;\n }\n async create(params = {}, options) {\n const _a = params !== null && params !== void 0 ? params : {}, { api_version } = _a, body = __rest(_a, [\"api_version\"]);\n return unwrapWithSdkHttpResponse(agentsCreate(this.getClient(api_version), body, api_version, toGoogleGenAIRequestOptions(options)));\n }\n async list(params = {}, options) {\n const { api_version, pageSize, pageToken, parent } = params !== null && params !== void 0 ? params : {};\n return unwrapWithSdkHttpResponse(agentsList(this.getClient(api_version), api_version, pageSize, pageToken, parent, toGoogleGenAIRequestOptions(options)));\n }\n async get(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(agentsGet(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n async delete(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(agentsDelete(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n getClient(apiVersion) {\n var _a;\n if (apiVersion) {\n return buildGoogleGenAIClient(this.parentClient, {\n api_version: apiVersion,\n });\n }\n (_a = this.sdk) !== null && _a !== void 0 ? _a : (this.sdk = buildGoogleGenAIClient(this.parentClient));\n return this.sdk;\n }\n}\nclass GeminiNextGenWebhooks {\n constructor(parentClient) {\n this.parentClient = parentClient;\n }\n async create(params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapWithSdkHttpResponse(webhooksCreate(this.getClient(), body, api_version, toGoogleGenAIRequestOptions(options)));\n }\n async list(params = {}, options) {\n const { api_version, page_size, page_token } = params !== null && params !== void 0 ? params : {};\n return unwrapWithSdkHttpResponse(webhooksList(this.getClient(), api_version, page_size, page_token, toGoogleGenAIRequestOptions(options)));\n }\n async get(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(webhooksGet(this.getClient(), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n async update(id, params = {}, options) {\n const _a = params !== null && params !== void 0 ? params : {}, { api_version, update_mask } = _a, body = __rest(_a, [\"api_version\", \"update_mask\"]);\n return unwrapWithSdkHttpResponse(webhooksUpdate(this.getClient(), id, api_version, update_mask, body, toGoogleGenAIRequestOptions(options)));\n }\n async delete(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(webhooksDelete(this.getClient(), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n async rotateSigningSecret(id, params = {}, options) {\n const _a = params !== null && params !== void 0 ? params : {}, { api_version } = _a, body = __rest(_a, [\"api_version\"]);\n return unwrapWithSdkHttpResponse(webhooksRotateSigningSecret(this.getClient(), id, api_version, body, toGoogleGenAIRequestOptions(options)));\n }\n async ping(id, params = undefined, options) {\n const { api_version, body } = params !== null && params !== void 0 ? params : {};\n return unwrapWithSdkHttpResponse(webhooksPing(this.getClient(), id, api_version, body, toGoogleGenAIRequestOptions(options)));\n }\n getClient() {\n var _a;\n (_a = this.sdk) !== null && _a !== void 0 ? _a : (this.sdk = buildGoogleGenAIClient(this.parentClient));\n return this.sdk;\n }\n}\nclass GeminiNextGenTriggers {\n constructor(parentClient) {\n this.parentClient = parentClient;\n }\n async create(params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapWithSdkHttpResponse(triggersCreate(this.getClient(api_version), body, api_version, toGoogleGenAIRequestOptions(options)));\n }\n async list(params = {}, options) {\n const { api_version, filter, pageSize, pageToken } = params !== null && params !== void 0 ? params : {};\n return unwrapWithSdkHttpResponse(triggersList(this.getClient(api_version), api_version, filter, pageSize, pageToken, toGoogleGenAIRequestOptions(options)));\n }\n async get(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(triggersGet(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n async update(id, params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapWithSdkHttpResponse(triggersUpdate(this.getClient(api_version), id, body, api_version, toGoogleGenAIRequestOptions(options)));\n }\n async delete(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(triggersDelete(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n async run(trigger_id, params = {}, options) {\n return unwrapWithSdkHttpResponse(triggersRun(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), trigger_id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n async listExecutions(trigger_id, params = {}, options) {\n const { api_version, pageSize, pageToken } = params !== null && params !== void 0 ? params : {};\n return unwrapWithSdkHttpResponse(triggersListExecutions(this.getClient(api_version), trigger_id, api_version, pageSize, pageToken, toGoogleGenAIRequestOptions(options)));\n }\n getClient(apiVersion) {\n var _a;\n if (apiVersion) {\n return buildGoogleGenAIClient(this.parentClient, {\n api_version: apiVersion,\n });\n }\n (_a = this.sdk) !== null && _a !== void 0 ? _a : (this.sdk = buildGoogleGenAIClient(this.parentClient));\n return this.sdk;\n }\n}\nfunction trimSlashes(value) {\n return value.replace(/^\\/+|\\/+$/g, \"\");\n}\nfunction toGoogleGenAIRequestOptions(options, streaming = false) {\n var _a, _b, _c, _d;\n if (!options && !streaming) {\n return undefined;\n }\n const _e = options !== null && options !== void 0 ? options : {}, { timeout, maxRetries, defaultBaseURL, query, body, fetchOptions } = _e, rest = __rest(_e, [\"timeout\", \"maxRetries\", \"defaultBaseURL\", \"query\", \"body\", \"fetchOptions\"]);\n const nextOptions = Object.assign({}, rest);\n if (isPlainObject(query)) {\n nextOptions.extra_query = query;\n }\n else {\n warnIgnoredOption(\"query\", query);\n }\n if (isPlainObject(body)) {\n nextOptions.extra_body = body;\n }\n else {\n warnIgnoredOption(\"body\", body);\n }\n const fetch_options = (_a = rest.fetch_options) !== null && _a !== void 0 ? _a : fetchOptions;\n if (fetch_options) {\n nextOptions.fetch_options = fetch_options;\n }\n const server_url = (_b = rest.server_url) !== null && _b !== void 0 ? _b : defaultBaseURL;\n if (server_url) {\n nextOptions.server_url = server_url;\n }\n const timeout_ms = (_c = rest.timeout_ms) !== null && _c !== void 0 ? _c : timeout;\n if (timeout_ms !== undefined) {\n nextOptions.timeout_ms = timeout_ms;\n }\n if (maxRetries !== undefined) {\n nextOptions.retries = {\n strategy: \"attempt-count-backoff\",\n retryConnectionErrors: true,\n maxRetries,\n };\n }\n if (streaming) {\n const headers = new Headers((_d = nextOptions.headers) !== null && _d !== void 0 ? _d : fetch_options === null || fetch_options === void 0 ? void 0 : fetch_options.headers);\n headers.set(\"Accept\", \"text/event-stream\");\n nextOptions.headers = headers;\n }\n return nextOptions;\n}\nfunction warnIgnoredOption(name, value) {\n if (value !== undefined && value !== null) {\n console.warn(`GoogleGenAI.interactions: request option ${name} is not supported by the Google GenAI interactions bridge and will be ignored.`);\n }\n}\nasync function unwrapWithSdkHttpResponse(promise) {\n const [result, call] = await promise.$inspect();\n if (!result.ok) {\n throw wrapSDKError(result.error);\n }\n return attachSdkHttpResponse(result.value, call);\n}\nasync function wrapSDKCall(operation) {\n try {\n return await operation();\n }\n catch (error) {\n throw wrapSDKError(error);\n }\n}\nfunction wrapStreamErrors(stream) {\n const asyncIterable = stream;\n return new Proxy(stream, {\n get(target, property) {\n if (property !== Symbol.asyncIterator) {\n const value = Reflect.get(target, property, target);\n return typeof value === \"function\" ? value.bind(target) : value;\n }\n return function wrappedAsyncIterator() {\n const iterator = asyncIterable[Symbol.asyncIterator]();\n return {\n async next(...args) {\n try {\n return await iterator.next(...args);\n }\n catch (error) {\n throw wrapSDKError(error);\n }\n },\n async return(value) {\n if (!iterator.return) {\n return { done: true, value };\n }\n try {\n return await iterator.return(value);\n }\n catch (error) {\n throw wrapSDKError(error);\n }\n },\n async throw(error) {\n if (!iterator.throw) {\n throw wrapSDKError(error);\n }\n try {\n return await iterator.throw(error);\n }\n catch (caught) {\n throw wrapSDKError(caught);\n }\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n };\n };\n },\n });\n}\nfunction attachSdkHttpResponse(value, call) {\n if (!isPlainObject(value) || call.status !== \"complete\") {\n return value;\n }\n return Object.assign(Object.assign({}, value), { sdkHttpResponse: createSdkHttpResponse(call.response, value) });\n}\nfunction createSdkHttpResponse(response, parsedBody) {\n const headers = {};\n for (const [key, value] of response.headers.entries()) {\n headers[key] = value;\n }\n return {\n headers,\n responseInternal: response,\n json: async () => parsedBody,\n };\n}\nfunction addOutputPropertiesIfInteraction(value) {\n const interaction = normalizeInteractionShape(value);\n if (!interaction) {\n return value;\n }\n return addOutputProperties(interaction);\n}\nfunction normalizeInteractionShape(value) {\n if (!isPlainObject(value)) {\n return undefined;\n }\n if (Array.isArray(value[\"steps\"])) {\n return value;\n }\n if (isLegacyLyriaInteraction(value)) {\n const outputs = value[\"outputs\"];\n if (Array.isArray(outputs)) {\n const { outputs: _outputs } = value, rest = __rest(value, [\"outputs\"]);\n return Object.assign(Object.assign({}, rest), { steps: [{ type: \"model_output\", content: outputs }] });\n }\n }\n // Every interaction response carries a steps array on the public surface\n // even when the wire payload omits it (e.g. Lyria envelopes).\n return Object.assign(Object.assign({}, value), { steps: [] });\n}\nfunction isLegacyLyriaInteraction(value) {\n const model = value[\"model\"];\n return typeof model === \"string\" && LEGACY_LYRIA_MODELS.has(model);\n}\nfunction isPlainObject(value) {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction addOutputProperties(interaction) {\n var _a, _b;\n const normalized = normalizeInteractionDates(interaction);\n const steps = (_a = normalized[\"steps\"]) !== null && _a !== void 0 ? _a : [];\n const textParts = [];\n let collecting = false;\n outer: for (let i = steps.length - 1; i >= 0; i--) {\n const step = steps[i];\n if (step.type === \"user_input\") {\n break;\n }\n if (step.type !== \"model_output\" || !step.content) {\n if (collecting) {\n break;\n }\n continue;\n }\n const content = step.content;\n for (let j = content.length - 1; j >= 0; j--) {\n const item = content[j];\n if (item.type === \"text\") {\n collecting = true;\n textParts.push((_b = item.text) !== null && _b !== void 0 ? _b : \"\");\n }\n else if (collecting) {\n break outer;\n }\n }\n }\n let output_image;\n let output_audio;\n let output_video;\n for (let i = steps.length - 1; i >= 0; i--) {\n const step = steps[i];\n if (step.type === \"user_input\") {\n break;\n }\n if (step.type === \"model_output\" && step.content) {\n for (let j = step.content.length - 1; j >= 0; j--) {\n const content = step.content[j];\n if (content.type === \"image\" && !output_image) {\n output_image = content;\n }\n if (content.type === \"audio\" && !output_audio) {\n output_audio = content;\n }\n if (content.type === \"video\" && !output_video) {\n output_video = content;\n }\n }\n }\n }\n const output_text = textParts.reverse().join(\"\");\n return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, normalized), (output_text && { output_text })), (output_image ? { output_image } : {})), (output_audio ? { output_audio } : {})), (output_video ? { output_video } : {}));\n}\nfunction normalizeInteractionDates(interaction) {\n return Object.assign(Object.assign({}, interaction), { created: normalizeDateLike(interaction[\"created\"]), updated: normalizeDateLike(interaction[\"updated\"]) });\n}\nfunction normalizeDateLike(value) {\n return value instanceof Date ? value.toISOString() : value;\n}\nclass GeminiNextGenEnvironmentFiles {\n constructor(resolveClient) {\n this.resolveClient = resolveClient;\n }\n async list(params, options) {\n const { environment, path, page_size, page_token, recursive, api_version } = params;\n return unwrapWithSdkHttpResponse(environmentsFilesList(this.resolveClient(api_version), environment, path, api_version, page_size, page_token, recursive, toGoogleGenAIRequestOptions(options)));\n }\n}\nclass GeminiNextGenEnvironments {\n constructor(parentClient) {\n this.parentClient = parentClient;\n this.files = new GeminiNextGenEnvironmentFiles((apiVersion) => this.getClient(apiVersion));\n }\n async create(params, options) {\n const { api_version } = params, body = __rest(params, [\"api_version\"]);\n return unwrapWithSdkHttpResponse(environmentsCreateEnvironment(this.getClient(api_version), body, api_version, toGoogleGenAIRequestOptions(options)));\n }\n async list(params = {}, options) {\n const { api_version, page_size, page_token } = params !== null && params !== void 0 ? params : {};\n return unwrapWithSdkHttpResponse(environmentsListEnvironments(this.getClient(api_version), api_version, page_size, page_token, toGoogleGenAIRequestOptions(options)));\n }\n async get(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(environmentsGetEnvironment(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n async delete(id, params = {}, options) {\n return unwrapWithSdkHttpResponse(environmentsDeleteEnvironment(this.getClient(params === null || params === void 0 ? void 0 : params.api_version), id, params === null || params === void 0 ? void 0 : params.api_version, toGoogleGenAIRequestOptions(options)));\n }\n getClient(apiVersion) {\n var _a;\n if (apiVersion) {\n return buildGoogleGenAIClient(this.parentClient, {\n api_version: apiVersion,\n });\n }\n (_a = this.sdk) !== null && _a !== void 0 ? _a : (this.sdk = buildGoogleGenAIClient(this.parentClient));\n return this.sdk;\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction authConfigToMldev$2(fromObject) {\n const toObject = {};\n const fromApiKey = getValueByPath(fromObject, ['apiKey']);\n if (fromApiKey != null) {\n setValueByPath(toObject, ['apiKey'], fromApiKey);\n }\n if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {\n throw new Error('apiKeyConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['authType']) !== undefined) {\n throw new Error('authType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==\n undefined) {\n throw new Error('googleServiceAccountConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {\n throw new Error('httpBasicAuthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {\n throw new Error('oauthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {\n throw new Error('oidcConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction blobToMldev$2(fromObject) {\n const toObject = {};\n const fromData = getValueByPath(fromObject, ['data']);\n if (fromData != null) {\n setValueByPath(toObject, ['data'], fromData);\n }\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction computerUseToVertex$1(fromObject) {\n const toObject = {};\n const fromEnablePromptInjectionDetection = getValueByPath(fromObject, [\n 'enablePromptInjectionDetection',\n ]);\n if (fromEnablePromptInjectionDetection != null) {\n setValueByPath(toObject, ['enablePromptInjectionDetection'], fromEnablePromptInjectionDetection);\n }\n const fromEnvironment = getValueByPath(fromObject, ['environment']);\n if (fromEnvironment != null) {\n setValueByPath(toObject, ['environment'], fromEnvironment);\n }\n const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [\n 'excludedPredefinedFunctions',\n ]);\n if (fromExcludedPredefinedFunctions != null) {\n setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);\n }\n if (getValueByPath(fromObject, ['disabledSafetyPolicies']) !== undefined) {\n throw new Error('disabledSafetyPolicies parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction contentToMldev$2(fromObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToMldev$2(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction contentToVertex$2(fromObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToVertex$2(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction fileDataToMldev$2(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFileUri = getValueByPath(fromObject, ['fileUri']);\n if (fromFileUri != null) {\n setValueByPath(toObject, ['fileUri'], fromFileUri);\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction functionCallToMldev$2(fromObject) {\n const toObject = {};\n const fromArgs = getValueByPath(fromObject, ['args']);\n if (fromArgs != null) {\n setValueByPath(toObject, ['args'], fromArgs);\n }\n const fromId = getValueByPath(fromObject, ['id']);\n if (fromId != null) {\n setValueByPath(toObject, ['id'], fromId);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n if (getValueByPath(fromObject, ['partialArgs']) !== undefined) {\n throw new Error('partialArgs parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['willContinue']) !== undefined) {\n throw new Error('willContinue parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction generationConfigToVertex$1(fromObject) {\n const toObject = {};\n const fromModelSelectionConfig = getValueByPath(fromObject, [\n 'modelSelectionConfig',\n ]);\n if (fromModelSelectionConfig != null) {\n setValueByPath(toObject, ['modelConfig'], fromModelSelectionConfig);\n }\n const fromResponseJsonSchema = getValueByPath(fromObject, [\n 'responseJsonSchema',\n ]);\n if (fromResponseJsonSchema != null) {\n setValueByPath(toObject, ['responseJsonSchema'], tJsonSchema(fromResponseJsonSchema));\n }\n const fromAudioTranscriptionConfig = getValueByPath(fromObject, [\n 'audioTranscriptionConfig',\n ]);\n if (fromAudioTranscriptionConfig != null) {\n setValueByPath(toObject, ['audioTranscriptionConfig'], fromAudioTranscriptionConfig);\n }\n const fromAudioTimestamp = getValueByPath(fromObject, [\n 'audioTimestamp',\n ]);\n if (fromAudioTimestamp != null) {\n setValueByPath(toObject, ['audioTimestamp'], fromAudioTimestamp);\n }\n const fromCandidateCount = getValueByPath(fromObject, [\n 'candidateCount',\n ]);\n if (fromCandidateCount != null) {\n setValueByPath(toObject, ['candidateCount'], fromCandidateCount);\n }\n const fromEnableAffectiveDialog = getValueByPath(fromObject, [\n 'enableAffectiveDialog',\n ]);\n if (fromEnableAffectiveDialog != null) {\n setValueByPath(toObject, ['enableAffectiveDialog'], fromEnableAffectiveDialog);\n }\n const fromFrequencyPenalty = getValueByPath(fromObject, [\n 'frequencyPenalty',\n ]);\n if (fromFrequencyPenalty != null) {\n setValueByPath(toObject, ['frequencyPenalty'], fromFrequencyPenalty);\n }\n const fromLogprobs = getValueByPath(fromObject, ['logprobs']);\n if (fromLogprobs != null) {\n setValueByPath(toObject, ['logprobs'], fromLogprobs);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (fromMaxOutputTokens != null) {\n setValueByPath(toObject, ['maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromPresencePenalty = getValueByPath(fromObject, [\n 'presencePenalty',\n ]);\n if (fromPresencePenalty != null) {\n setValueByPath(toObject, ['presencePenalty'], fromPresencePenalty);\n }\n const fromResponseFormat = getValueByPath(fromObject, [\n 'responseFormat',\n ]);\n if (fromResponseFormat != null) {\n let transformedList = fromResponseFormat;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['responseFormat'], transformedList);\n }\n const fromResponseLogprobs = getValueByPath(fromObject, [\n 'responseLogprobs',\n ]);\n if (fromResponseLogprobs != null) {\n setValueByPath(toObject, ['responseLogprobs'], fromResponseLogprobs);\n }\n const fromResponseMimeType = getValueByPath(fromObject, [\n 'responseMimeType',\n ]);\n if (fromResponseMimeType != null) {\n setValueByPath(toObject, ['responseMimeType'], fromResponseMimeType);\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (fromResponseModalities != null) {\n setValueByPath(toObject, ['responseModalities'], fromResponseModalities);\n }\n const fromResponseSchema = getValueByPath(fromObject, [\n 'responseSchema',\n ]);\n if (fromResponseSchema != null) {\n setValueByPath(toObject, ['responseSchema'], fromResponseSchema);\n }\n const fromRoutingConfig = getValueByPath(fromObject, [\n 'routingConfig',\n ]);\n if (fromRoutingConfig != null) {\n setValueByPath(toObject, ['routingConfig'], fromRoutingConfig);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (fromSeed != null) {\n setValueByPath(toObject, ['seed'], fromSeed);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (fromSpeechConfig != null) {\n setValueByPath(toObject, ['speechConfig'], speechConfigToVertex$1(fromSpeechConfig));\n }\n const fromStopSequences = getValueByPath(fromObject, [\n 'stopSequences',\n ]);\n if (fromStopSequences != null) {\n setValueByPath(toObject, ['stopSequences'], fromStopSequences);\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (fromTemperature != null) {\n setValueByPath(toObject, ['temperature'], fromTemperature);\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (fromThinkingConfig != null) {\n setValueByPath(toObject, ['thinkingConfig'], fromThinkingConfig);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (fromTopK != null) {\n setValueByPath(toObject, ['topK'], fromTopK);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (fromTopP != null) {\n setValueByPath(toObject, ['topP'], fromTopP);\n }\n if (getValueByPath(fromObject, ['enableEnhancedCivicAnswers']) !==\n undefined) {\n throw new Error('enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['translationConfig']) !== undefined) {\n throw new Error('translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction googleMapsToMldev$2(fromObject) {\n const toObject = {};\n const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);\n if (fromAuthConfig != null) {\n setValueByPath(toObject, ['authConfig'], authConfigToMldev$2(fromAuthConfig));\n }\n const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);\n if (fromEnableWidget != null) {\n setValueByPath(toObject, ['enableWidget'], fromEnableWidget);\n }\n if (getValueByPath(fromObject, ['groundingTypes']) !== undefined) {\n throw new Error('groundingTypes parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction googleSearchToMldev$2(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {\n throw new Error('blockingConfidence parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {\n throw new Error('excludeDomains parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);\n if (fromSearchTypes != null) {\n setValueByPath(toObject, ['searchTypes'], fromSearchTypes);\n }\n const fromTimeRangeFilter = getValueByPath(fromObject, [\n 'timeRangeFilter',\n ]);\n if (fromTimeRangeFilter != null) {\n setValueByPath(toObject, ['timeRangeFilter'], fromTimeRangeFilter);\n }\n return toObject;\n}\nfunction liveConnectConfigToMldev$1(fromObject, parentObject) {\n const toObject = {};\n const fromGenerationConfig = getValueByPath(fromObject, [\n 'generationConfig',\n ]);\n if (parentObject !== undefined && fromGenerationConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig'], fromGenerationConfig);\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (parentObject !== undefined && fromResponseModalities != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'responseModalities'], fromResponseModalities);\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (parentObject !== undefined && fromTemperature != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'temperature'], fromTemperature);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (parentObject !== undefined && fromTopP != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'topP'], fromTopP);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (parentObject !== undefined && fromTopK != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'topK'], fromTopK);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (parentObject !== undefined && fromMaxOutputTokens != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (parentObject !== undefined && fromMediaResolution != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'mediaResolution'], fromMediaResolution);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (parentObject !== undefined && fromSeed != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'seed'], fromSeed);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (parentObject !== undefined && fromSpeechConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], tLiveSpeechConfig(fromSpeechConfig));\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (parentObject !== undefined && fromThinkingConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'thinkingConfig'], fromThinkingConfig);\n }\n const fromEnableAffectiveDialog = getValueByPath(fromObject, [\n 'enableAffectiveDialog',\n ]);\n if (parentObject !== undefined && fromEnableAffectiveDialog != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'enableAffectiveDialog'], fromEnableAffectiveDialog);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev$2(tContent(fromSystemInstruction)));\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = tTools(fromTools);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToMldev$2(tTool(item));\n });\n }\n setValueByPath(parentObject, ['setup', 'tools'], transformedList);\n }\n const fromSessionResumption = getValueByPath(fromObject, [\n 'sessionResumption',\n ]);\n if (parentObject !== undefined && fromSessionResumption != null) {\n setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev$1(fromSessionResumption));\n }\n const fromInputAudioTranscription = getValueByPath(fromObject, [\n 'inputAudioTranscription',\n ]);\n if (parentObject !== undefined && fromInputAudioTranscription != null) {\n setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], fromInputAudioTranscription);\n }\n const fromOutputAudioTranscription = getValueByPath(fromObject, [\n 'outputAudioTranscription',\n ]);\n if (parentObject !== undefined && fromOutputAudioTranscription != null) {\n setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], fromOutputAudioTranscription);\n }\n const fromRealtimeInputConfig = getValueByPath(fromObject, [\n 'realtimeInputConfig',\n ]);\n if (parentObject !== undefined && fromRealtimeInputConfig != null) {\n setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], fromRealtimeInputConfig);\n }\n const fromContextWindowCompression = getValueByPath(fromObject, [\n 'contextWindowCompression',\n ]);\n if (parentObject !== undefined && fromContextWindowCompression != null) {\n setValueByPath(parentObject, ['setup', 'contextWindowCompression'], fromContextWindowCompression);\n }\n const fromProactivity = getValueByPath(fromObject, ['proactivity']);\n if (parentObject !== undefined && fromProactivity != null) {\n setValueByPath(parentObject, ['setup', 'proactivity'], fromProactivity);\n }\n if (getValueByPath(fromObject, ['explicitVadSignal']) !== undefined) {\n throw new Error('explicitVadSignal parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromAvatarConfig = getValueByPath(fromObject, ['avatarConfig']);\n if (parentObject !== undefined && fromAvatarConfig != null) {\n setValueByPath(parentObject, ['setup', 'avatarConfig'], fromAvatarConfig);\n }\n const fromSafetySettings = getValueByPath(fromObject, [\n 'safetySettings',\n ]);\n if (parentObject !== undefined && fromSafetySettings != null) {\n let transformedList = fromSafetySettings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return safetySettingToMldev$2(item);\n });\n }\n setValueByPath(parentObject, ['setup', 'safetySettings'], transformedList);\n }\n const fromTranslationConfig = getValueByPath(fromObject, [\n 'translationConfig',\n ]);\n if (parentObject !== undefined && fromTranslationConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'translationConfig'], fromTranslationConfig);\n }\n return toObject;\n}\nfunction liveConnectConfigToVertex(fromObject, parentObject) {\n const toObject = {};\n const fromGenerationConfig = getValueByPath(fromObject, [\n 'generationConfig',\n ]);\n if (parentObject !== undefined && fromGenerationConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig'], generationConfigToVertex$1(fromGenerationConfig));\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (parentObject !== undefined && fromResponseModalities != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'responseModalities'], fromResponseModalities);\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (parentObject !== undefined && fromTemperature != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'temperature'], fromTemperature);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (parentObject !== undefined && fromTopP != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'topP'], fromTopP);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (parentObject !== undefined && fromTopK != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'topK'], fromTopK);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (parentObject !== undefined && fromMaxOutputTokens != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (parentObject !== undefined && fromMediaResolution != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'mediaResolution'], fromMediaResolution);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (parentObject !== undefined && fromSeed != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'seed'], fromSeed);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (parentObject !== undefined && fromSpeechConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], speechConfigToVertex$1(tLiveSpeechConfig(fromSpeechConfig)));\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (parentObject !== undefined && fromThinkingConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'thinkingConfig'], fromThinkingConfig);\n }\n const fromEnableAffectiveDialog = getValueByPath(fromObject, [\n 'enableAffectiveDialog',\n ]);\n if (parentObject !== undefined && fromEnableAffectiveDialog != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'enableAffectiveDialog'], fromEnableAffectiveDialog);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToVertex$2(tContent(fromSystemInstruction)));\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = tTools(fromTools);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToVertex$1(tTool(item));\n });\n }\n setValueByPath(parentObject, ['setup', 'tools'], transformedList);\n }\n const fromSessionResumption = getValueByPath(fromObject, [\n 'sessionResumption',\n ]);\n if (parentObject !== undefined && fromSessionResumption != null) {\n setValueByPath(parentObject, ['setup', 'sessionResumption'], fromSessionResumption);\n }\n const fromInputAudioTranscription = getValueByPath(fromObject, [\n 'inputAudioTranscription',\n ]);\n if (parentObject !== undefined && fromInputAudioTranscription != null) {\n setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], fromInputAudioTranscription);\n }\n const fromOutputAudioTranscription = getValueByPath(fromObject, [\n 'outputAudioTranscription',\n ]);\n if (parentObject !== undefined && fromOutputAudioTranscription != null) {\n setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], fromOutputAudioTranscription);\n }\n const fromRealtimeInputConfig = getValueByPath(fromObject, [\n 'realtimeInputConfig',\n ]);\n if (parentObject !== undefined && fromRealtimeInputConfig != null) {\n setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], fromRealtimeInputConfig);\n }\n const fromContextWindowCompression = getValueByPath(fromObject, [\n 'contextWindowCompression',\n ]);\n if (parentObject !== undefined && fromContextWindowCompression != null) {\n setValueByPath(parentObject, ['setup', 'contextWindowCompression'], fromContextWindowCompression);\n }\n const fromProactivity = getValueByPath(fromObject, ['proactivity']);\n if (parentObject !== undefined && fromProactivity != null) {\n setValueByPath(parentObject, ['setup', 'proactivity'], fromProactivity);\n }\n const fromExplicitVadSignal = getValueByPath(fromObject, [\n 'explicitVadSignal',\n ]);\n if (parentObject !== undefined && fromExplicitVadSignal != null) {\n setValueByPath(parentObject, ['setup', 'explicitVadSignal'], fromExplicitVadSignal);\n }\n const fromAvatarConfig = getValueByPath(fromObject, ['avatarConfig']);\n if (parentObject !== undefined && fromAvatarConfig != null) {\n setValueByPath(parentObject, ['setup', 'avatarConfig'], fromAvatarConfig);\n }\n const fromSafetySettings = getValueByPath(fromObject, [\n 'safetySettings',\n ]);\n if (parentObject !== undefined && fromSafetySettings != null) {\n let transformedList = fromSafetySettings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(parentObject, ['setup', 'safetySettings'], transformedList);\n }\n const fromTranslationConfig = getValueByPath(fromObject, [\n 'translationConfig',\n ]);\n if (parentObject !== undefined && fromTranslationConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'translationConfig'], fromTranslationConfig);\n }\n return toObject;\n}\nfunction liveConnectParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['setup', 'model'], tModel(apiClient, fromModel));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['config'], liveConnectConfigToMldev$1(fromConfig, toObject));\n }\n return toObject;\n}\nfunction liveConnectParametersToVertex(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['setup', 'model'], tModel(apiClient, fromModel));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['config'], liveConnectConfigToVertex(fromConfig, toObject));\n }\n return toObject;\n}\nfunction liveMusicSetConfigParametersToMldev(fromObject) {\n const toObject = {};\n const fromMusicGenerationConfig = getValueByPath(fromObject, [\n 'musicGenerationConfig',\n ]);\n if (fromMusicGenerationConfig != null) {\n setValueByPath(toObject, ['musicGenerationConfig'], fromMusicGenerationConfig);\n }\n return toObject;\n}\nfunction liveMusicSetWeightedPromptsParametersToMldev(fromObject) {\n const toObject = {};\n const fromWeightedPrompts = getValueByPath(fromObject, [\n 'weightedPrompts',\n ]);\n if (fromWeightedPrompts != null) {\n let transformedList = fromWeightedPrompts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['weightedPrompts'], transformedList);\n }\n return toObject;\n}\nfunction liveSendRealtimeInputParametersToMldev(fromObject) {\n const toObject = {};\n const fromMedia = getValueByPath(fromObject, ['media']);\n if (fromMedia != null) {\n let transformedList = tBlobs(fromMedia);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return blobToMldev$2(item);\n });\n }\n setValueByPath(toObject, ['mediaChunks'], transformedList);\n }\n const fromAudio = getValueByPath(fromObject, ['audio']);\n if (fromAudio != null) {\n setValueByPath(toObject, ['audio'], blobToMldev$2(tAudioBlob(fromAudio)));\n }\n const fromAudioStreamEnd = getValueByPath(fromObject, [\n 'audioStreamEnd',\n ]);\n if (fromAudioStreamEnd != null) {\n setValueByPath(toObject, ['audioStreamEnd'], fromAudioStreamEnd);\n }\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['video'], blobToMldev$2(tImageBlob(fromVideo)));\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromActivityStart = getValueByPath(fromObject, [\n 'activityStart',\n ]);\n if (fromActivityStart != null) {\n setValueByPath(toObject, ['activityStart'], fromActivityStart);\n }\n const fromActivityEnd = getValueByPath(fromObject, ['activityEnd']);\n if (fromActivityEnd != null) {\n setValueByPath(toObject, ['activityEnd'], fromActivityEnd);\n }\n return toObject;\n}\nfunction liveSendRealtimeInputParametersToVertex(fromObject) {\n const toObject = {};\n const fromMedia = getValueByPath(fromObject, ['media']);\n if (fromMedia != null) {\n let transformedList = tBlobs(fromMedia);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['mediaChunks'], transformedList);\n }\n const fromAudio = getValueByPath(fromObject, ['audio']);\n if (fromAudio != null) {\n setValueByPath(toObject, ['audio'], tAudioBlob(fromAudio));\n }\n const fromAudioStreamEnd = getValueByPath(fromObject, [\n 'audioStreamEnd',\n ]);\n if (fromAudioStreamEnd != null) {\n setValueByPath(toObject, ['audioStreamEnd'], fromAudioStreamEnd);\n }\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['video'], tImageBlob(fromVideo));\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromActivityStart = getValueByPath(fromObject, [\n 'activityStart',\n ]);\n if (fromActivityStart != null) {\n setValueByPath(toObject, ['activityStart'], fromActivityStart);\n }\n const fromActivityEnd = getValueByPath(fromObject, ['activityEnd']);\n if (fromActivityEnd != null) {\n setValueByPath(toObject, ['activityEnd'], fromActivityEnd);\n }\n return toObject;\n}\nfunction liveServerMessageFromVertex(fromObject) {\n const toObject = {};\n const fromSetupComplete = getValueByPath(fromObject, [\n 'setupComplete',\n ]);\n if (fromSetupComplete != null) {\n setValueByPath(toObject, ['setupComplete'], fromSetupComplete);\n }\n const fromServerContent = getValueByPath(fromObject, [\n 'serverContent',\n ]);\n if (fromServerContent != null) {\n setValueByPath(toObject, ['serverContent'], fromServerContent);\n }\n const fromToolCall = getValueByPath(fromObject, ['toolCall']);\n if (fromToolCall != null) {\n setValueByPath(toObject, ['toolCall'], fromToolCall);\n }\n const fromToolCallCancellation = getValueByPath(fromObject, [\n 'toolCallCancellation',\n ]);\n if (fromToolCallCancellation != null) {\n setValueByPath(toObject, ['toolCallCancellation'], fromToolCallCancellation);\n }\n const fromUsageMetadata = getValueByPath(fromObject, [\n 'usageMetadata',\n ]);\n if (fromUsageMetadata != null) {\n setValueByPath(toObject, ['usageMetadata'], usageMetadataFromVertex(fromUsageMetadata));\n }\n const fromGoAway = getValueByPath(fromObject, ['goAway']);\n if (fromGoAway != null) {\n setValueByPath(toObject, ['goAway'], fromGoAway);\n }\n const fromSessionResumptionUpdate = getValueByPath(fromObject, [\n 'sessionResumptionUpdate',\n ]);\n if (fromSessionResumptionUpdate != null) {\n setValueByPath(toObject, ['sessionResumptionUpdate'], fromSessionResumptionUpdate);\n }\n const fromVoiceActivityDetectionSignal = getValueByPath(fromObject, [\n 'voiceActivityDetectionSignal',\n ]);\n if (fromVoiceActivityDetectionSignal != null) {\n setValueByPath(toObject, ['voiceActivityDetectionSignal'], fromVoiceActivityDetectionSignal);\n }\n const fromVoiceActivity = getValueByPath(fromObject, [\n 'voiceActivity',\n ]);\n if (fromVoiceActivity != null) {\n setValueByPath(toObject, ['voiceActivity'], voiceActivityFromVertex(fromVoiceActivity));\n }\n return toObject;\n}\nfunction mcpServerToVertex$1(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['name']) !== undefined) {\n throw new Error('name parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['streamableHttpTransport']) !== undefined) {\n throw new Error('streamableHttpTransport parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction multiSpeakerVoiceConfigToVertex$1(fromObject) {\n const toObject = {};\n const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [\n 'speakerVoiceConfigs',\n ]);\n if (fromSpeakerVoiceConfigs != null) {\n let transformedList = fromSpeakerVoiceConfigs;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return speakerVoiceConfigToVertex$1(item);\n });\n }\n setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);\n }\n return toObject;\n}\nfunction partToMldev$2(fromObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromToolCall = getValueByPath(fromObject, ['toolCall']);\n if (fromToolCall != null) {\n setValueByPath(toObject, ['toolCall'], fromToolCall);\n }\n const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);\n if (fromToolResponse != null) {\n setValueByPath(toObject, ['toolResponse'], fromToolResponse);\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fileDataToMldev$2(fromFileData));\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], functionCallToMldev$2(fromFunctionCall));\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], blobToMldev$2(fromInlineData));\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);\n if (fromPartMetadata != null) {\n setValueByPath(toObject, ['partMetadata'], fromPartMetadata);\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction partToVertex$2(fromObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n if (getValueByPath(fromObject, ['toolCall']) !== undefined) {\n throw new Error('toolCall parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {\n throw new Error('toolResponse parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fromFileData);\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], fromFunctionCall);\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], fromInlineData);\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {\n throw new Error('partMetadata parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction replicatedVoiceConfigToVertex$1(fromObject) {\n const toObject = {};\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n const fromVoiceSampleAudio = getValueByPath(fromObject, [\n 'voiceSampleAudio',\n ]);\n if (fromVoiceSampleAudio != null) {\n setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);\n }\n if (getValueByPath(fromObject, ['consentAudio']) !== undefined) {\n throw new Error('consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['voiceConsentSignature']) !== undefined) {\n throw new Error('voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction safetySettingToMldev$2(fromObject) {\n const toObject = {};\n const fromCategory = getValueByPath(fromObject, ['category']);\n if (fromCategory != null) {\n setValueByPath(toObject, ['category'], fromCategory);\n }\n if (getValueByPath(fromObject, ['method']) !== undefined) {\n throw new Error('method parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromThreshold = getValueByPath(fromObject, ['threshold']);\n if (fromThreshold != null) {\n setValueByPath(toObject, ['threshold'], fromThreshold);\n }\n return toObject;\n}\nfunction sessionResumptionConfigToMldev$1(fromObject) {\n const toObject = {};\n const fromHandle = getValueByPath(fromObject, ['handle']);\n if (fromHandle != null) {\n setValueByPath(toObject, ['handle'], fromHandle);\n }\n if (getValueByPath(fromObject, ['transparent']) !== undefined) {\n throw new Error('transparent parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction speakerVoiceConfigToVertex$1(fromObject) {\n const toObject = {};\n const fromSpeaker = getValueByPath(fromObject, ['speaker']);\n if (fromSpeaker != null) {\n setValueByPath(toObject, ['speaker'], fromSpeaker);\n }\n const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);\n if (fromVoiceConfig != null) {\n setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));\n }\n return toObject;\n}\nfunction speechConfigToVertex$1(fromObject) {\n const toObject = {};\n const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);\n if (fromVoiceConfig != null) {\n setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex$1(fromVoiceConfig));\n }\n const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);\n if (fromLanguageCode != null) {\n setValueByPath(toObject, ['languageCode'], fromLanguageCode);\n }\n const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [\n 'multiSpeakerVoiceConfig',\n ]);\n if (fromMultiSpeakerVoiceConfig != null) {\n setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex$1(fromMultiSpeakerVoiceConfig));\n }\n return toObject;\n}\nfunction toolToMldev$2(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['retrieval']) !== undefined) {\n throw new Error('retrieval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$2(fromGoogleMaps));\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], fromComputerUse);\n }\n if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {\n throw new Error('enterpriseWebSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {\n throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$2(fromGoogleSearch));\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {\n throw new Error('parallelAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n const fromFileSearch = getValueByPath(fromObject, ['fileSearch']);\n if (fromFileSearch != null) {\n setValueByPath(toObject, ['fileSearch'], fromFileSearch);\n }\n return toObject;\n}\nfunction toolToVertex$1(fromObject) {\n const toObject = {};\n const fromRetrieval = getValueByPath(fromObject, ['retrieval']);\n if (fromRetrieval != null) {\n setValueByPath(toObject, ['retrieval'], fromRetrieval);\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return mcpServerToVertex$1(item);\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], computerUseToVertex$1(fromComputerUse));\n }\n const fromEnterpriseWebSearch = getValueByPath(fromObject, [\n 'enterpriseWebSearch',\n ]);\n if (fromEnterpriseWebSearch != null) {\n setValueByPath(toObject, ['enterpriseWebSearch'], fromEnterpriseWebSearch);\n }\n const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);\n if (fromExaAiSearch != null) {\n setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n const fromParallelAiSearch = getValueByPath(fromObject, [\n 'parallelAiSearch',\n ]);\n if (fromParallelAiSearch != null) {\n setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {\n throw new Error('fileSearch parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction usageMetadataFromVertex(fromObject) {\n const toObject = {};\n const fromResponseTokenCount = getValueByPath(fromObject, [\n 'candidatesTokenCount',\n ]);\n if (fromResponseTokenCount != null) {\n setValueByPath(toObject, ['responseTokenCount'], fromResponseTokenCount);\n }\n const fromResponseTokensDetails = getValueByPath(fromObject, [\n 'candidatesTokensDetails',\n ]);\n if (fromResponseTokensDetails != null) {\n let transformedList = fromResponseTokensDetails;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['responseTokensDetails'], transformedList);\n }\n const fromCacheTokensDetails = getValueByPath(fromObject, [\n 'cacheTokensDetails',\n ]);\n if (fromCacheTokensDetails != null) {\n let transformedList = fromCacheTokensDetails;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['cacheTokensDetails'], transformedList);\n }\n const fromCachedContentTokenCount = getValueByPath(fromObject, [\n 'cachedContentTokenCount',\n ]);\n if (fromCachedContentTokenCount != null) {\n setValueByPath(toObject, ['cachedContentTokenCount'], fromCachedContentTokenCount);\n }\n const fromPromptTokenCount = getValueByPath(fromObject, [\n 'promptTokenCount',\n ]);\n if (fromPromptTokenCount != null) {\n setValueByPath(toObject, ['promptTokenCount'], fromPromptTokenCount);\n }\n const fromPromptTokensDetails = getValueByPath(fromObject, [\n 'promptTokensDetails',\n ]);\n if (fromPromptTokensDetails != null) {\n let transformedList = fromPromptTokensDetails;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['promptTokensDetails'], transformedList);\n }\n const fromThoughtsTokenCount = getValueByPath(fromObject, [\n 'thoughtsTokenCount',\n ]);\n if (fromThoughtsTokenCount != null) {\n setValueByPath(toObject, ['thoughtsTokenCount'], fromThoughtsTokenCount);\n }\n const fromToolUsePromptTokenCount = getValueByPath(fromObject, [\n 'toolUsePromptTokenCount',\n ]);\n if (fromToolUsePromptTokenCount != null) {\n setValueByPath(toObject, ['toolUsePromptTokenCount'], fromToolUsePromptTokenCount);\n }\n const fromToolUsePromptTokensDetails = getValueByPath(fromObject, [\n 'toolUsePromptTokensDetails',\n ]);\n if (fromToolUsePromptTokensDetails != null) {\n let transformedList = fromToolUsePromptTokensDetails;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['toolUsePromptTokensDetails'], transformedList);\n }\n const fromTotalTokenCount = getValueByPath(fromObject, [\n 'totalTokenCount',\n ]);\n if (fromTotalTokenCount != null) {\n setValueByPath(toObject, ['totalTokenCount'], fromTotalTokenCount);\n }\n const fromTrafficType = getValueByPath(fromObject, ['trafficType']);\n if (fromTrafficType != null) {\n setValueByPath(toObject, ['trafficType'], fromTrafficType);\n }\n return toObject;\n}\nfunction voiceActivityFromVertex(fromObject) {\n const toObject = {};\n const fromVoiceActivityType = getValueByPath(fromObject, ['type']);\n if (fromVoiceActivityType != null) {\n setValueByPath(toObject, ['voiceActivityType'], fromVoiceActivityType);\n }\n const fromAudioOffset = getValueByPath(fromObject, ['audioOffset']);\n if (fromAudioOffset != null) {\n setValueByPath(toObject, ['audioOffset'], fromAudioOffset);\n }\n return toObject;\n}\nfunction voiceConfigToVertex$1(fromObject) {\n const toObject = {};\n const fromReplicatedVoiceConfig = getValueByPath(fromObject, [\n 'replicatedVoiceConfig',\n ]);\n if (fromReplicatedVoiceConfig != null) {\n setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex$1(fromReplicatedVoiceConfig));\n }\n const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [\n 'prebuiltVoiceConfig',\n ]);\n if (fromPrebuiltVoiceConfig != null) {\n setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction authConfigToMldev$1(fromObject, _rootObject) {\n const toObject = {};\n const fromApiKey = getValueByPath(fromObject, ['apiKey']);\n if (fromApiKey != null) {\n setValueByPath(toObject, ['apiKey'], fromApiKey);\n }\n if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {\n throw new Error('apiKeyConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['authType']) !== undefined) {\n throw new Error('authType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==\n undefined) {\n throw new Error('googleServiceAccountConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {\n throw new Error('httpBasicAuthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {\n throw new Error('oauthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {\n throw new Error('oidcConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction blobToMldev$1(fromObject, _rootObject) {\n const toObject = {};\n const fromData = getValueByPath(fromObject, ['data']);\n if (fromData != null) {\n setValueByPath(toObject, ['data'], fromData);\n }\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction candidateFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromContent = getValueByPath(fromObject, ['content']);\n if (fromContent != null) {\n setValueByPath(toObject, ['content'], fromContent);\n }\n const fromCitationMetadata = getValueByPath(fromObject, [\n 'citationMetadata',\n ]);\n if (fromCitationMetadata != null) {\n setValueByPath(toObject, ['citationMetadata'], citationMetadataFromMldev(fromCitationMetadata));\n }\n const fromTokenCount = getValueByPath(fromObject, ['tokenCount']);\n if (fromTokenCount != null) {\n setValueByPath(toObject, ['tokenCount'], fromTokenCount);\n }\n const fromFinishReason = getValueByPath(fromObject, ['finishReason']);\n if (fromFinishReason != null) {\n setValueByPath(toObject, ['finishReason'], fromFinishReason);\n }\n const fromGroundingMetadata = getValueByPath(fromObject, [\n 'groundingMetadata',\n ]);\n if (fromGroundingMetadata != null) {\n setValueByPath(toObject, ['groundingMetadata'], fromGroundingMetadata);\n }\n const fromAvgLogprobs = getValueByPath(fromObject, ['avgLogprobs']);\n if (fromAvgLogprobs != null) {\n setValueByPath(toObject, ['avgLogprobs'], fromAvgLogprobs);\n }\n const fromIndex = getValueByPath(fromObject, ['index']);\n if (fromIndex != null) {\n setValueByPath(toObject, ['index'], fromIndex);\n }\n const fromLogprobsResult = getValueByPath(fromObject, [\n 'logprobsResult',\n ]);\n if (fromLogprobsResult != null) {\n setValueByPath(toObject, ['logprobsResult'], fromLogprobsResult);\n }\n const fromSafetyRatings = getValueByPath(fromObject, [\n 'safetyRatings',\n ]);\n if (fromSafetyRatings != null) {\n let transformedList = fromSafetyRatings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['safetyRatings'], transformedList);\n }\n const fromUrlContextMetadata = getValueByPath(fromObject, [\n 'urlContextMetadata',\n ]);\n if (fromUrlContextMetadata != null) {\n setValueByPath(toObject, ['urlContextMetadata'], fromUrlContextMetadata);\n }\n return toObject;\n}\nfunction citationMetadataFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromCitations = getValueByPath(fromObject, ['citationSources']);\n if (fromCitations != null) {\n let transformedList = fromCitations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['citations'], transformedList);\n }\n return toObject;\n}\nfunction computeTokensParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToVertex$1(item);\n });\n }\n setValueByPath(toObject, ['contents'], transformedList);\n }\n return toObject;\n}\nfunction computeTokensResponseFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromTokensInfo = getValueByPath(fromObject, ['tokensInfo']);\n if (fromTokensInfo != null) {\n let transformedList = fromTokensInfo;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['tokensInfo'], transformedList);\n }\n return toObject;\n}\nfunction computerUseToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromEnablePromptInjectionDetection = getValueByPath(fromObject, [\n 'enablePromptInjectionDetection',\n ]);\n if (fromEnablePromptInjectionDetection != null) {\n setValueByPath(toObject, ['enablePromptInjectionDetection'], fromEnablePromptInjectionDetection);\n }\n const fromEnvironment = getValueByPath(fromObject, ['environment']);\n if (fromEnvironment != null) {\n setValueByPath(toObject, ['environment'], fromEnvironment);\n }\n const fromExcludedPredefinedFunctions = getValueByPath(fromObject, [\n 'excludedPredefinedFunctions',\n ]);\n if (fromExcludedPredefinedFunctions != null) {\n setValueByPath(toObject, ['excludedPredefinedFunctions'], fromExcludedPredefinedFunctions);\n }\n if (getValueByPath(fromObject, ['disabledSafetyPolicies']) !== undefined) {\n throw new Error('disabledSafetyPolicies parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction contentEmbeddingFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromValues = getValueByPath(fromObject, ['values']);\n if (fromValues != null) {\n setValueByPath(toObject, ['values'], fromValues);\n }\n const fromStatistics = getValueByPath(fromObject, ['statistics']);\n if (fromStatistics != null) {\n setValueByPath(toObject, ['statistics'], contentEmbeddingStatisticsFromVertex(fromStatistics));\n }\n return toObject;\n}\nfunction contentEmbeddingStatisticsFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromTruncated = getValueByPath(fromObject, ['truncated']);\n if (fromTruncated != null) {\n setValueByPath(toObject, ['truncated'], fromTruncated);\n }\n const fromTokenCount = getValueByPath(fromObject, ['token_count']);\n if (fromTokenCount != null) {\n setValueByPath(toObject, ['tokenCount'], fromTokenCount);\n }\n const fromTokensDetails = getValueByPath(fromObject, [\n 'tokensDetails',\n ]);\n if (fromTokensDetails != null) {\n let transformedList = fromTokensDetails;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['tokensDetails'], transformedList);\n }\n return toObject;\n}\nfunction contentToMldev$1(fromObject, rootObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToMldev$1(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction contentToVertex$1(fromObject, rootObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToVertex$1(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction controlReferenceConfigToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromControlType = getValueByPath(fromObject, ['controlType']);\n if (fromControlType != null) {\n setValueByPath(toObject, ['controlType'], fromControlType);\n }\n const fromEnableControlImageComputation = getValueByPath(fromObject, [\n 'enableControlImageComputation',\n ]);\n if (fromEnableControlImageComputation != null) {\n setValueByPath(toObject, ['computeControl'], fromEnableControlImageComputation);\n }\n return toObject;\n}\nfunction countTokensConfigToMldev(fromObject, _rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['systemInstruction']) !== undefined) {\n throw new Error('systemInstruction parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['tools']) !== undefined) {\n throw new Error('tools parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['generationConfig']) !== undefined) {\n throw new Error('generationConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction countTokensConfigToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['systemInstruction'], contentToVertex$1(tContent(fromSystemInstruction)));\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = fromTools;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToVertex(item);\n });\n }\n setValueByPath(parentObject, ['tools'], transformedList);\n }\n const fromGenerationConfig = getValueByPath(fromObject, [\n 'generationConfig',\n ]);\n if (parentObject !== undefined && fromGenerationConfig != null) {\n setValueByPath(parentObject, ['generationConfig'], generationConfigToVertex(fromGenerationConfig));\n }\n return toObject;\n}\nfunction countTokensParametersToMldev(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToMldev$1(item);\n });\n }\n setValueByPath(toObject, ['contents'], transformedList);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n countTokensConfigToMldev(fromConfig);\n }\n return toObject;\n}\nfunction countTokensParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToVertex$1(item);\n });\n }\n setValueByPath(toObject, ['contents'], transformedList);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n countTokensConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction countTokensResponseFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);\n if (fromTotalTokens != null) {\n setValueByPath(toObject, ['totalTokens'], fromTotalTokens);\n }\n const fromCachedContentTokenCount = getValueByPath(fromObject, [\n 'cachedContentTokenCount',\n ]);\n if (fromCachedContentTokenCount != null) {\n setValueByPath(toObject, ['cachedContentTokenCount'], fromCachedContentTokenCount);\n }\n return toObject;\n}\nfunction countTokensResponseFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromTotalTokens = getValueByPath(fromObject, ['totalTokens']);\n if (fromTotalTokens != null) {\n setValueByPath(toObject, ['totalTokens'], fromTotalTokens);\n }\n return toObject;\n}\nfunction deleteModelParametersToMldev(apiClient, fromObject, _rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'name'], tModel(apiClient, fromModel));\n }\n return toObject;\n}\nfunction deleteModelParametersToVertex(apiClient, fromObject, _rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'name'], tModel(apiClient, fromModel));\n }\n return toObject;\n}\nfunction deleteModelResponseFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction deleteModelResponseFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction editImageConfigToVertex(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);\n if (parentObject !== undefined && fromOutputGcsUri != null) {\n setValueByPath(parentObject, ['parameters', 'storageUri'], fromOutputGcsUri);\n }\n const fromNegativePrompt = getValueByPath(fromObject, [\n 'negativePrompt',\n ]);\n if (parentObject !== undefined && fromNegativePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'negativePrompt'], fromNegativePrompt);\n }\n const fromNumberOfImages = getValueByPath(fromObject, [\n 'numberOfImages',\n ]);\n if (parentObject !== undefined && fromNumberOfImages != null) {\n setValueByPath(parentObject, ['parameters', 'sampleCount'], fromNumberOfImages);\n }\n const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);\n if (parentObject !== undefined && fromAspectRatio != null) {\n setValueByPath(parentObject, ['parameters', 'aspectRatio'], fromAspectRatio);\n }\n const fromGuidanceScale = getValueByPath(fromObject, [\n 'guidanceScale',\n ]);\n if (parentObject !== undefined && fromGuidanceScale != null) {\n setValueByPath(parentObject, ['parameters', 'guidanceScale'], fromGuidanceScale);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (parentObject !== undefined && fromSeed != null) {\n setValueByPath(parentObject, ['parameters', 'seed'], fromSeed);\n }\n const fromSafetyFilterLevel = getValueByPath(fromObject, [\n 'safetyFilterLevel',\n ]);\n if (parentObject !== undefined && fromSafetyFilterLevel != null) {\n setValueByPath(parentObject, ['parameters', 'safetySetting'], fromSafetyFilterLevel);\n }\n const fromPersonGeneration = getValueByPath(fromObject, [\n 'personGeneration',\n ]);\n if (parentObject !== undefined && fromPersonGeneration != null) {\n setValueByPath(parentObject, ['parameters', 'personGeneration'], fromPersonGeneration);\n }\n const fromIncludeSafetyAttributes = getValueByPath(fromObject, [\n 'includeSafetyAttributes',\n ]);\n if (parentObject !== undefined && fromIncludeSafetyAttributes != null) {\n setValueByPath(parentObject, ['parameters', 'includeSafetyAttributes'], fromIncludeSafetyAttributes);\n }\n const fromIncludeRaiReason = getValueByPath(fromObject, [\n 'includeRaiReason',\n ]);\n if (parentObject !== undefined && fromIncludeRaiReason != null) {\n setValueByPath(parentObject, ['parameters', 'includeRaiReason'], fromIncludeRaiReason);\n }\n const fromLanguage = getValueByPath(fromObject, ['language']);\n if (parentObject !== undefined && fromLanguage != null) {\n setValueByPath(parentObject, ['parameters', 'language'], fromLanguage);\n }\n const fromOutputMimeType = getValueByPath(fromObject, [\n 'outputMimeType',\n ]);\n if (parentObject !== undefined && fromOutputMimeType != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'mimeType'], fromOutputMimeType);\n }\n const fromOutputCompressionQuality = getValueByPath(fromObject, [\n 'outputCompressionQuality',\n ]);\n if (parentObject !== undefined && fromOutputCompressionQuality != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'compressionQuality'], fromOutputCompressionQuality);\n }\n const fromAddWatermark = getValueByPath(fromObject, ['addWatermark']);\n if (parentObject !== undefined && fromAddWatermark != null) {\n setValueByPath(parentObject, ['parameters', 'addWatermark'], fromAddWatermark);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n const fromEditMode = getValueByPath(fromObject, ['editMode']);\n if (parentObject !== undefined && fromEditMode != null) {\n setValueByPath(parentObject, ['parameters', 'editMode'], fromEditMode);\n }\n const fromBaseSteps = getValueByPath(fromObject, ['baseSteps']);\n if (parentObject !== undefined && fromBaseSteps != null) {\n setValueByPath(parentObject, ['parameters', 'editConfig', 'baseSteps'], fromBaseSteps);\n }\n return toObject;\n}\nfunction editImageParametersInternalToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (fromPrompt != null) {\n setValueByPath(toObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromReferenceImages = getValueByPath(fromObject, [\n 'referenceImages',\n ]);\n if (fromReferenceImages != null) {\n let transformedList = fromReferenceImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return referenceImageAPIInternalToVertex(item);\n });\n }\n setValueByPath(toObject, ['instances[0]', 'referenceImages'], transformedList);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n editImageConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction editImageResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromGeneratedImages = getValueByPath(fromObject, [\n 'predictions',\n ]);\n if (fromGeneratedImages != null) {\n let transformedList = fromGeneratedImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedImageFromVertex(item);\n });\n }\n setValueByPath(toObject, ['generatedImages'], transformedList);\n }\n return toObject;\n}\nfunction embedContentConfigToMldev(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromTaskType = getValueByPath(fromObject, ['taskType']);\n if (parentObject !== undefined && fromTaskType != null) {\n setValueByPath(parentObject, ['requests[]', 'taskType'], fromTaskType);\n }\n const fromTitle = getValueByPath(fromObject, ['title']);\n if (parentObject !== undefined && fromTitle != null) {\n setValueByPath(parentObject, ['requests[]', 'title'], fromTitle);\n }\n const fromOutputDimensionality = getValueByPath(fromObject, [\n 'outputDimensionality',\n ]);\n if (parentObject !== undefined && fromOutputDimensionality != null) {\n setValueByPath(parentObject, ['requests[]', 'outputDimensionality'], fromOutputDimensionality);\n }\n if (getValueByPath(fromObject, ['mimeType']) !== undefined) {\n throw new Error('mimeType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['autoTruncate']) !== undefined) {\n throw new Error('autoTruncate parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['documentOcr']) !== undefined) {\n throw new Error('documentOcr parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['audioTrackExtraction']) !== undefined) {\n throw new Error('audioTrackExtraction parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction embedContentConfigToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n let discriminatorTaskType = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorTaskType === undefined) {\n discriminatorTaskType = 'PREDICT';\n }\n if (discriminatorTaskType === 'PREDICT') {\n const fromTaskType = getValueByPath(fromObject, ['taskType']);\n if (parentObject !== undefined && fromTaskType != null) {\n setValueByPath(parentObject, ['instances[]', 'task_type'], fromTaskType);\n }\n }\n else if (discriminatorTaskType === 'EMBED_CONTENT') {\n const fromTaskType = getValueByPath(fromObject, ['taskType']);\n if (parentObject !== undefined && fromTaskType != null) {\n setValueByPath(parentObject, ['embedContentConfig', 'taskType'], fromTaskType);\n }\n }\n let discriminatorTitle = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorTitle === undefined) {\n discriminatorTitle = 'PREDICT';\n }\n if (discriminatorTitle === 'PREDICT') {\n const fromTitle = getValueByPath(fromObject, ['title']);\n if (parentObject !== undefined && fromTitle != null) {\n setValueByPath(parentObject, ['instances[]', 'title'], fromTitle);\n }\n }\n else if (discriminatorTitle === 'EMBED_CONTENT') {\n const fromTitle = getValueByPath(fromObject, ['title']);\n if (parentObject !== undefined && fromTitle != null) {\n setValueByPath(parentObject, ['embedContentConfig', 'title'], fromTitle);\n }\n }\n let discriminatorOutputDimensionality = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorOutputDimensionality === undefined) {\n discriminatorOutputDimensionality = 'PREDICT';\n }\n if (discriminatorOutputDimensionality === 'PREDICT') {\n const fromOutputDimensionality = getValueByPath(fromObject, [\n 'outputDimensionality',\n ]);\n if (parentObject !== undefined && fromOutputDimensionality != null) {\n setValueByPath(parentObject, ['parameters', 'outputDimensionality'], fromOutputDimensionality);\n }\n }\n else if (discriminatorOutputDimensionality === 'EMBED_CONTENT') {\n const fromOutputDimensionality = getValueByPath(fromObject, [\n 'outputDimensionality',\n ]);\n if (parentObject !== undefined && fromOutputDimensionality != null) {\n setValueByPath(parentObject, ['embedContentConfig', 'outputDimensionality'], fromOutputDimensionality);\n }\n }\n let discriminatorMimeType = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorMimeType === undefined) {\n discriminatorMimeType = 'PREDICT';\n }\n if (discriminatorMimeType === 'PREDICT') {\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (parentObject !== undefined && fromMimeType != null) {\n setValueByPath(parentObject, ['instances[]', 'mimeType'], fromMimeType);\n }\n }\n let discriminatorAutoTruncate = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorAutoTruncate === undefined) {\n discriminatorAutoTruncate = 'PREDICT';\n }\n if (discriminatorAutoTruncate === 'PREDICT') {\n const fromAutoTruncate = getValueByPath(fromObject, [\n 'autoTruncate',\n ]);\n if (parentObject !== undefined && fromAutoTruncate != null) {\n setValueByPath(parentObject, ['parameters', 'autoTruncate'], fromAutoTruncate);\n }\n }\n else if (discriminatorAutoTruncate === 'EMBED_CONTENT') {\n const fromAutoTruncate = getValueByPath(fromObject, [\n 'autoTruncate',\n ]);\n if (parentObject !== undefined && fromAutoTruncate != null) {\n setValueByPath(parentObject, ['embedContentConfig', 'autoTruncate'], fromAutoTruncate);\n }\n }\n let discriminatorDocumentOcr = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorDocumentOcr === undefined) {\n discriminatorDocumentOcr = 'PREDICT';\n }\n if (discriminatorDocumentOcr === 'EMBED_CONTENT') {\n const fromDocumentOcr = getValueByPath(fromObject, ['documentOcr']);\n if (parentObject !== undefined && fromDocumentOcr != null) {\n setValueByPath(parentObject, ['embedContentConfig', 'documentOcr'], fromDocumentOcr);\n }\n }\n let discriminatorAudioTrackExtraction = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorAudioTrackExtraction === undefined) {\n discriminatorAudioTrackExtraction = 'PREDICT';\n }\n if (discriminatorAudioTrackExtraction === 'EMBED_CONTENT') {\n const fromAudioTrackExtraction = getValueByPath(fromObject, [\n 'audioTrackExtraction',\n ]);\n if (parentObject !== undefined && fromAudioTrackExtraction != null) {\n setValueByPath(parentObject, ['embedContentConfig', 'audioTrackExtraction'], fromAudioTrackExtraction);\n }\n }\n return toObject;\n}\nfunction embedContentParametersPrivateToMldev(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContentsForEmbed(apiClient, fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['requests[]', 'content'], transformedList);\n }\n const fromContent = getValueByPath(fromObject, ['content']);\n if (fromContent != null) {\n contentToMldev$1(tContent(fromContent));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n embedContentConfigToMldev(fromConfig, toObject);\n }\n const fromModelForEmbedContent = getValueByPath(fromObject, ['model']);\n if (fromModelForEmbedContent !== undefined) {\n setValueByPath(toObject, ['requests[]', 'model'], tModel(apiClient, fromModelForEmbedContent));\n }\n return toObject;\n}\nfunction embedContentParametersPrivateToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n let discriminatorContents = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorContents === undefined) {\n discriminatorContents = 'PREDICT';\n }\n if (discriminatorContents === 'PREDICT') {\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContentsForEmbed(apiClient, fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['instances[]', 'content'], transformedList);\n }\n }\n let discriminatorContent = getValueByPath(rootObject, [\n 'embeddingApiType',\n ]);\n if (discriminatorContent === undefined) {\n discriminatorContent = 'PREDICT';\n }\n if (discriminatorContent === 'EMBED_CONTENT') {\n const fromContent = getValueByPath(fromObject, ['content']);\n if (fromContent != null) {\n setValueByPath(toObject, ['content'], contentToVertex$1(tContent(fromContent)));\n }\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n embedContentConfigToVertex(fromConfig, toObject, rootObject);\n }\n return toObject;\n}\nfunction embedContentResponseFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromEmbeddings = getValueByPath(fromObject, ['embeddings']);\n if (fromEmbeddings != null) {\n let transformedList = fromEmbeddings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['embeddings'], transformedList);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n return toObject;\n}\nfunction embedContentResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromEmbeddings = getValueByPath(fromObject, [\n 'predictions[]',\n 'embeddings',\n ]);\n if (fromEmbeddings != null) {\n let transformedList = fromEmbeddings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentEmbeddingFromVertex(item);\n });\n }\n setValueByPath(toObject, ['embeddings'], transformedList);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n if (rootObject &&\n getValueByPath(rootObject, ['embeddingApiType']) === 'EMBED_CONTENT') {\n const embedding = getValueByPath(fromObject, ['embedding']);\n const usageMetadata = getValueByPath(fromObject, ['usageMetadata']);\n const truncated = getValueByPath(fromObject, ['truncated']);\n if (embedding) {\n const stats = {};\n if (usageMetadata &&\n usageMetadata['promptTokenCount']) {\n stats.tokenCount = usageMetadata['promptTokenCount'];\n }\n if (usageMetadata &&\n usageMetadata['promptTokensDetails']) {\n stats.tokensDetails = usageMetadata['promptTokensDetails'];\n }\n if (truncated) {\n stats.truncated = truncated;\n }\n embedding.statistics = stats;\n setValueByPath(toObject, ['embeddings'], [embedding]);\n }\n }\n return toObject;\n}\nfunction endpointFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['endpoint']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromDeployedModelId = getValueByPath(fromObject, [\n 'deployedModelId',\n ]);\n if (fromDeployedModelId != null) {\n setValueByPath(toObject, ['deployedModelId'], fromDeployedModelId);\n }\n return toObject;\n}\nfunction fileDataToMldev$1(fromObject, _rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFileUri = getValueByPath(fromObject, ['fileUri']);\n if (fromFileUri != null) {\n setValueByPath(toObject, ['fileUri'], fromFileUri);\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction functionCallToMldev$1(fromObject, _rootObject) {\n const toObject = {};\n const fromArgs = getValueByPath(fromObject, ['args']);\n if (fromArgs != null) {\n setValueByPath(toObject, ['args'], fromArgs);\n }\n const fromId = getValueByPath(fromObject, ['id']);\n if (fromId != null) {\n setValueByPath(toObject, ['id'], fromId);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n if (getValueByPath(fromObject, ['partialArgs']) !== undefined) {\n throw new Error('partialArgs parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['willContinue']) !== undefined) {\n throw new Error('willContinue parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction functionCallingConfigToMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromAllowedFunctionNames = getValueByPath(fromObject, [\n 'allowedFunctionNames',\n ]);\n if (fromAllowedFunctionNames != null) {\n setValueByPath(toObject, ['allowedFunctionNames'], fromAllowedFunctionNames);\n }\n const fromMode = getValueByPath(fromObject, ['mode']);\n if (fromMode != null) {\n setValueByPath(toObject, ['mode'], fromMode);\n }\n if (getValueByPath(fromObject, ['streamFunctionCallArguments']) !==\n undefined) {\n throw new Error('streamFunctionCallArguments parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction generateContentConfigToMldev(apiClient, fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromServiceTier = getValueByPath(fromObject, ['serviceTier']);\n if (parentObject !== undefined && fromServiceTier != null) {\n setValueByPath(parentObject, ['serviceTier'], fromServiceTier);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['systemInstruction'], contentToMldev$1(tContent(fromSystemInstruction)));\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (fromTemperature != null) {\n setValueByPath(toObject, ['temperature'], fromTemperature);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (fromTopP != null) {\n setValueByPath(toObject, ['topP'], fromTopP);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (fromTopK != null) {\n setValueByPath(toObject, ['topK'], fromTopK);\n }\n const fromCandidateCount = getValueByPath(fromObject, [\n 'candidateCount',\n ]);\n if (fromCandidateCount != null) {\n setValueByPath(toObject, ['candidateCount'], fromCandidateCount);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (fromMaxOutputTokens != null) {\n setValueByPath(toObject, ['maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromStopSequences = getValueByPath(fromObject, [\n 'stopSequences',\n ]);\n if (fromStopSequences != null) {\n setValueByPath(toObject, ['stopSequences'], fromStopSequences);\n }\n const fromResponseLogprobs = getValueByPath(fromObject, [\n 'responseLogprobs',\n ]);\n if (fromResponseLogprobs != null) {\n setValueByPath(toObject, ['responseLogprobs'], fromResponseLogprobs);\n }\n const fromLogprobs = getValueByPath(fromObject, ['logprobs']);\n if (fromLogprobs != null) {\n setValueByPath(toObject, ['logprobs'], fromLogprobs);\n }\n const fromPresencePenalty = getValueByPath(fromObject, [\n 'presencePenalty',\n ]);\n if (fromPresencePenalty != null) {\n setValueByPath(toObject, ['presencePenalty'], fromPresencePenalty);\n }\n const fromFrequencyPenalty = getValueByPath(fromObject, [\n 'frequencyPenalty',\n ]);\n if (fromFrequencyPenalty != null) {\n setValueByPath(toObject, ['frequencyPenalty'], fromFrequencyPenalty);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (fromSeed != null) {\n setValueByPath(toObject, ['seed'], fromSeed);\n }\n const fromResponseMimeType = getValueByPath(fromObject, [\n 'responseMimeType',\n ]);\n if (fromResponseMimeType != null) {\n setValueByPath(toObject, ['responseMimeType'], fromResponseMimeType);\n }\n const fromResponseSchema = getValueByPath(fromObject, [\n 'responseSchema',\n ]);\n if (fromResponseSchema != null) {\n setValueByPath(toObject, ['responseSchema'], tSchema(fromResponseSchema));\n }\n const fromResponseJsonSchema = getValueByPath(fromObject, [\n 'responseJsonSchema',\n ]);\n if (fromResponseJsonSchema != null) {\n setValueByPath(toObject, ['responseJsonSchema'], tJsonSchema(fromResponseJsonSchema));\n }\n if (getValueByPath(fromObject, ['routingConfig']) !== undefined) {\n throw new Error('routingConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['modelSelectionConfig']) !== undefined) {\n throw new Error('modelSelectionConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromSafetySettings = getValueByPath(fromObject, [\n 'safetySettings',\n ]);\n if (parentObject !== undefined && fromSafetySettings != null) {\n let transformedList = fromSafetySettings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return safetySettingToMldev$1(item);\n });\n }\n setValueByPath(parentObject, ['safetySettings'], transformedList);\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = tTools(fromTools);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToMldev$1(tTool(item));\n });\n }\n setValueByPath(parentObject, ['tools'], transformedList);\n }\n const fromToolConfig = getValueByPath(fromObject, ['toolConfig']);\n if (parentObject !== undefined && fromToolConfig != null) {\n setValueByPath(parentObject, ['toolConfig'], toolConfigToMldev(fromToolConfig));\n }\n if (getValueByPath(fromObject, ['labels']) !== undefined) {\n throw new Error('labels parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromCachedContent = getValueByPath(fromObject, [\n 'cachedContent',\n ]);\n if (parentObject !== undefined && fromCachedContent != null) {\n setValueByPath(parentObject, ['cachedContent'], tCachedContentName(apiClient, fromCachedContent));\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (fromResponseModalities != null) {\n setValueByPath(toObject, ['responseModalities'], fromResponseModalities);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (fromSpeechConfig != null) {\n setValueByPath(toObject, ['speechConfig'], tSpeechConfig(fromSpeechConfig));\n }\n if (getValueByPath(fromObject, ['audioTimestamp']) !== undefined) {\n throw new Error('audioTimestamp parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (fromThinkingConfig != null) {\n setValueByPath(toObject, ['thinkingConfig'], fromThinkingConfig);\n }\n const fromAudioTranscriptionConfig = getValueByPath(fromObject, [\n 'audioTranscriptionConfig',\n ]);\n if (fromAudioTranscriptionConfig != null) {\n setValueByPath(toObject, ['audioTranscriptionConfig'], fromAudioTranscriptionConfig);\n }\n const fromImageConfig = getValueByPath(fromObject, ['imageConfig']);\n if (fromImageConfig != null) {\n setValueByPath(toObject, ['imageConfig'], imageConfigToMldev(fromImageConfig));\n }\n const fromEnableEnhancedCivicAnswers = getValueByPath(fromObject, [\n 'enableEnhancedCivicAnswers',\n ]);\n if (fromEnableEnhancedCivicAnswers != null) {\n setValueByPath(toObject, ['enableEnhancedCivicAnswers'], fromEnableEnhancedCivicAnswers);\n }\n if (getValueByPath(fromObject, ['modelArmorConfig']) !== undefined) {\n throw new Error('modelArmorConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction generateContentConfigToVertex(apiClient, fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromServiceTier = getValueByPath(fromObject, ['serviceTier']);\n if (parentObject !== undefined && fromServiceTier != null) {\n setValueByPath(parentObject, ['serviceTier'], fromServiceTier);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['systemInstruction'], contentToVertex$1(tContent(fromSystemInstruction)));\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (fromTemperature != null) {\n setValueByPath(toObject, ['temperature'], fromTemperature);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (fromTopP != null) {\n setValueByPath(toObject, ['topP'], fromTopP);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (fromTopK != null) {\n setValueByPath(toObject, ['topK'], fromTopK);\n }\n const fromCandidateCount = getValueByPath(fromObject, [\n 'candidateCount',\n ]);\n if (fromCandidateCount != null) {\n setValueByPath(toObject, ['candidateCount'], fromCandidateCount);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (fromMaxOutputTokens != null) {\n setValueByPath(toObject, ['maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromStopSequences = getValueByPath(fromObject, [\n 'stopSequences',\n ]);\n if (fromStopSequences != null) {\n setValueByPath(toObject, ['stopSequences'], fromStopSequences);\n }\n const fromResponseLogprobs = getValueByPath(fromObject, [\n 'responseLogprobs',\n ]);\n if (fromResponseLogprobs != null) {\n setValueByPath(toObject, ['responseLogprobs'], fromResponseLogprobs);\n }\n const fromLogprobs = getValueByPath(fromObject, ['logprobs']);\n if (fromLogprobs != null) {\n setValueByPath(toObject, ['logprobs'], fromLogprobs);\n }\n const fromPresencePenalty = getValueByPath(fromObject, [\n 'presencePenalty',\n ]);\n if (fromPresencePenalty != null) {\n setValueByPath(toObject, ['presencePenalty'], fromPresencePenalty);\n }\n const fromFrequencyPenalty = getValueByPath(fromObject, [\n 'frequencyPenalty',\n ]);\n if (fromFrequencyPenalty != null) {\n setValueByPath(toObject, ['frequencyPenalty'], fromFrequencyPenalty);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (fromSeed != null) {\n setValueByPath(toObject, ['seed'], fromSeed);\n }\n const fromResponseMimeType = getValueByPath(fromObject, [\n 'responseMimeType',\n ]);\n if (fromResponseMimeType != null) {\n setValueByPath(toObject, ['responseMimeType'], fromResponseMimeType);\n }\n const fromResponseSchema = getValueByPath(fromObject, [\n 'responseSchema',\n ]);\n if (fromResponseSchema != null) {\n setValueByPath(toObject, ['responseSchema'], tSchema(fromResponseSchema));\n }\n const fromResponseJsonSchema = getValueByPath(fromObject, [\n 'responseJsonSchema',\n ]);\n if (fromResponseJsonSchema != null) {\n setValueByPath(toObject, ['responseJsonSchema'], tJsonSchema(fromResponseJsonSchema));\n }\n const fromRoutingConfig = getValueByPath(fromObject, [\n 'routingConfig',\n ]);\n if (fromRoutingConfig != null) {\n setValueByPath(toObject, ['routingConfig'], fromRoutingConfig);\n }\n const fromModelSelectionConfig = getValueByPath(fromObject, [\n 'modelSelectionConfig',\n ]);\n if (fromModelSelectionConfig != null) {\n setValueByPath(toObject, ['modelConfig'], fromModelSelectionConfig);\n }\n const fromSafetySettings = getValueByPath(fromObject, [\n 'safetySettings',\n ]);\n if (parentObject !== undefined && fromSafetySettings != null) {\n let transformedList = fromSafetySettings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(parentObject, ['safetySettings'], transformedList);\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = tTools(fromTools);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToVertex(tTool(item));\n });\n }\n setValueByPath(parentObject, ['tools'], transformedList);\n }\n const fromToolConfig = getValueByPath(fromObject, ['toolConfig']);\n if (parentObject !== undefined && fromToolConfig != null) {\n setValueByPath(parentObject, ['toolConfig'], toolConfigToVertex(fromToolConfig));\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n const fromCachedContent = getValueByPath(fromObject, [\n 'cachedContent',\n ]);\n if (parentObject !== undefined && fromCachedContent != null) {\n setValueByPath(parentObject, ['cachedContent'], tCachedContentName(apiClient, fromCachedContent));\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (fromResponseModalities != null) {\n setValueByPath(toObject, ['responseModalities'], fromResponseModalities);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (fromSpeechConfig != null) {\n setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(tSpeechConfig(fromSpeechConfig)));\n }\n const fromAudioTimestamp = getValueByPath(fromObject, [\n 'audioTimestamp',\n ]);\n if (fromAudioTimestamp != null) {\n setValueByPath(toObject, ['audioTimestamp'], fromAudioTimestamp);\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (fromThinkingConfig != null) {\n setValueByPath(toObject, ['thinkingConfig'], fromThinkingConfig);\n }\n const fromAudioTranscriptionConfig = getValueByPath(fromObject, [\n 'audioTranscriptionConfig',\n ]);\n if (fromAudioTranscriptionConfig != null) {\n setValueByPath(toObject, ['audioTranscriptionConfig'], fromAudioTranscriptionConfig);\n }\n const fromImageConfig = getValueByPath(fromObject, ['imageConfig']);\n if (fromImageConfig != null) {\n setValueByPath(toObject, ['imageConfig'], imageConfigToVertex(fromImageConfig));\n }\n if (getValueByPath(fromObject, ['enableEnhancedCivicAnswers']) !==\n undefined) {\n throw new Error('enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromModelArmorConfig = getValueByPath(fromObject, [\n 'modelArmorConfig',\n ]);\n if (parentObject !== undefined && fromModelArmorConfig != null) {\n setValueByPath(parentObject, ['modelArmorConfig'], fromModelArmorConfig);\n }\n return toObject;\n}\nfunction generateContentParametersToMldev(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToMldev$1(item);\n });\n }\n setValueByPath(toObject, ['contents'], transformedList);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['generationConfig'], generateContentConfigToMldev(apiClient, fromConfig, toObject));\n }\n return toObject;\n}\nfunction generateContentParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = tContents(fromContents);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToVertex$1(item);\n });\n }\n setValueByPath(toObject, ['contents'], transformedList);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['generationConfig'], generateContentConfigToVertex(apiClient, fromConfig, toObject));\n }\n return toObject;\n}\nfunction generateContentResponseFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromCandidates = getValueByPath(fromObject, ['candidates']);\n if (fromCandidates != null) {\n let transformedList = fromCandidates;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return candidateFromMldev(item);\n });\n }\n setValueByPath(toObject, ['candidates'], transformedList);\n }\n const fromModelVersion = getValueByPath(fromObject, ['modelVersion']);\n if (fromModelVersion != null) {\n setValueByPath(toObject, ['modelVersion'], fromModelVersion);\n }\n const fromPromptFeedback = getValueByPath(fromObject, [\n 'promptFeedback',\n ]);\n if (fromPromptFeedback != null) {\n setValueByPath(toObject, ['promptFeedback'], fromPromptFeedback);\n }\n const fromResponseId = getValueByPath(fromObject, ['responseId']);\n if (fromResponseId != null) {\n setValueByPath(toObject, ['responseId'], fromResponseId);\n }\n const fromUsageMetadata = getValueByPath(fromObject, [\n 'usageMetadata',\n ]);\n if (fromUsageMetadata != null) {\n setValueByPath(toObject, ['usageMetadata'], fromUsageMetadata);\n }\n const fromModelStatus = getValueByPath(fromObject, ['modelStatus']);\n if (fromModelStatus != null) {\n setValueByPath(toObject, ['modelStatus'], fromModelStatus);\n }\n return toObject;\n}\nfunction generateContentResponseFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromCandidates = getValueByPath(fromObject, ['candidates']);\n if (fromCandidates != null) {\n let transformedList = fromCandidates;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['candidates'], transformedList);\n }\n const fromCreateTime = getValueByPath(fromObject, ['createTime']);\n if (fromCreateTime != null) {\n setValueByPath(toObject, ['createTime'], fromCreateTime);\n }\n const fromModelVersion = getValueByPath(fromObject, ['modelVersion']);\n if (fromModelVersion != null) {\n setValueByPath(toObject, ['modelVersion'], fromModelVersion);\n }\n const fromPromptFeedback = getValueByPath(fromObject, [\n 'promptFeedback',\n ]);\n if (fromPromptFeedback != null) {\n setValueByPath(toObject, ['promptFeedback'], fromPromptFeedback);\n }\n const fromResponseId = getValueByPath(fromObject, ['responseId']);\n if (fromResponseId != null) {\n setValueByPath(toObject, ['responseId'], fromResponseId);\n }\n const fromUsageMetadata = getValueByPath(fromObject, [\n 'usageMetadata',\n ]);\n if (fromUsageMetadata != null) {\n setValueByPath(toObject, ['usageMetadata'], fromUsageMetadata);\n }\n return toObject;\n}\nfunction generateImagesConfigToVertex(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);\n if (parentObject !== undefined && fromOutputGcsUri != null) {\n setValueByPath(parentObject, ['parameters', 'storageUri'], fromOutputGcsUri);\n }\n const fromNegativePrompt = getValueByPath(fromObject, [\n 'negativePrompt',\n ]);\n if (parentObject !== undefined && fromNegativePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'negativePrompt'], fromNegativePrompt);\n }\n const fromNumberOfImages = getValueByPath(fromObject, [\n 'numberOfImages',\n ]);\n if (parentObject !== undefined && fromNumberOfImages != null) {\n setValueByPath(parentObject, ['parameters', 'sampleCount'], fromNumberOfImages);\n }\n const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);\n if (parentObject !== undefined && fromAspectRatio != null) {\n setValueByPath(parentObject, ['parameters', 'aspectRatio'], fromAspectRatio);\n }\n const fromGuidanceScale = getValueByPath(fromObject, [\n 'guidanceScale',\n ]);\n if (parentObject !== undefined && fromGuidanceScale != null) {\n setValueByPath(parentObject, ['parameters', 'guidanceScale'], fromGuidanceScale);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (parentObject !== undefined && fromSeed != null) {\n setValueByPath(parentObject, ['parameters', 'seed'], fromSeed);\n }\n const fromSafetyFilterLevel = getValueByPath(fromObject, [\n 'safetyFilterLevel',\n ]);\n if (parentObject !== undefined && fromSafetyFilterLevel != null) {\n setValueByPath(parentObject, ['parameters', 'safetySetting'], fromSafetyFilterLevel);\n }\n const fromPersonGeneration = getValueByPath(fromObject, [\n 'personGeneration',\n ]);\n if (parentObject !== undefined && fromPersonGeneration != null) {\n setValueByPath(parentObject, ['parameters', 'personGeneration'], fromPersonGeneration);\n }\n const fromIncludeSafetyAttributes = getValueByPath(fromObject, [\n 'includeSafetyAttributes',\n ]);\n if (parentObject !== undefined && fromIncludeSafetyAttributes != null) {\n setValueByPath(parentObject, ['parameters', 'includeSafetyAttributes'], fromIncludeSafetyAttributes);\n }\n const fromIncludeRaiReason = getValueByPath(fromObject, [\n 'includeRaiReason',\n ]);\n if (parentObject !== undefined && fromIncludeRaiReason != null) {\n setValueByPath(parentObject, ['parameters', 'includeRaiReason'], fromIncludeRaiReason);\n }\n const fromLanguage = getValueByPath(fromObject, ['language']);\n if (parentObject !== undefined && fromLanguage != null) {\n setValueByPath(parentObject, ['parameters', 'language'], fromLanguage);\n }\n const fromOutputMimeType = getValueByPath(fromObject, [\n 'outputMimeType',\n ]);\n if (parentObject !== undefined && fromOutputMimeType != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'mimeType'], fromOutputMimeType);\n }\n const fromOutputCompressionQuality = getValueByPath(fromObject, [\n 'outputCompressionQuality',\n ]);\n if (parentObject !== undefined && fromOutputCompressionQuality != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'compressionQuality'], fromOutputCompressionQuality);\n }\n const fromAddWatermark = getValueByPath(fromObject, ['addWatermark']);\n if (parentObject !== undefined && fromAddWatermark != null) {\n setValueByPath(parentObject, ['parameters', 'addWatermark'], fromAddWatermark);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n const fromImageSize = getValueByPath(fromObject, ['imageSize']);\n if (parentObject !== undefined && fromImageSize != null) {\n setValueByPath(parentObject, ['parameters', 'sampleImageSize'], fromImageSize);\n }\n const fromEnhancePrompt = getValueByPath(fromObject, [\n 'enhancePrompt',\n ]);\n if (parentObject !== undefined && fromEnhancePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'enhancePrompt'], fromEnhancePrompt);\n }\n return toObject;\n}\nfunction generateImagesParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (fromPrompt != null) {\n setValueByPath(toObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n generateImagesConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction generateImagesResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromGeneratedImages = getValueByPath(fromObject, [\n 'predictions',\n ]);\n if (fromGeneratedImages != null) {\n let transformedList = fromGeneratedImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedImageFromVertex(item);\n });\n }\n setValueByPath(toObject, ['generatedImages'], transformedList);\n }\n const fromPositivePromptSafetyAttributes = getValueByPath(fromObject, [\n 'positivePromptSafetyAttributes',\n ]);\n if (fromPositivePromptSafetyAttributes != null) {\n setValueByPath(toObject, ['positivePromptSafetyAttributes'], safetyAttributesFromVertex(fromPositivePromptSafetyAttributes));\n }\n return toObject;\n}\nfunction generateVideosConfigToMldev(fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromNumberOfVideos = getValueByPath(fromObject, [\n 'numberOfVideos',\n ]);\n if (parentObject !== undefined && fromNumberOfVideos != null) {\n setValueByPath(parentObject, ['parameters', 'sampleCount'], fromNumberOfVideos);\n }\n if (getValueByPath(fromObject, ['outputGcsUri']) !== undefined) {\n throw new Error('outputGcsUri parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['fps']) !== undefined) {\n throw new Error('fps parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromDurationSeconds = getValueByPath(fromObject, [\n 'durationSeconds',\n ]);\n if (parentObject !== undefined && fromDurationSeconds != null) {\n setValueByPath(parentObject, ['parameters', 'durationSeconds'], fromDurationSeconds);\n }\n if (getValueByPath(fromObject, ['seed']) !== undefined) {\n throw new Error('seed parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);\n if (parentObject !== undefined && fromAspectRatio != null) {\n setValueByPath(parentObject, ['parameters', 'aspectRatio'], fromAspectRatio);\n }\n const fromResolution = getValueByPath(fromObject, ['resolution']);\n if (parentObject !== undefined && fromResolution != null) {\n setValueByPath(parentObject, ['parameters', 'resolution'], fromResolution);\n }\n const fromPersonGeneration = getValueByPath(fromObject, [\n 'personGeneration',\n ]);\n if (parentObject !== undefined && fromPersonGeneration != null) {\n setValueByPath(parentObject, ['parameters', 'personGeneration'], fromPersonGeneration);\n }\n if (getValueByPath(fromObject, ['pubsubTopic']) !== undefined) {\n throw new Error('pubsubTopic parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromNegativePrompt = getValueByPath(fromObject, [\n 'negativePrompt',\n ]);\n if (parentObject !== undefined && fromNegativePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'negativePrompt'], fromNegativePrompt);\n }\n const fromEnhancePrompt = getValueByPath(fromObject, [\n 'enhancePrompt',\n ]);\n if (parentObject !== undefined && fromEnhancePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'enhancePrompt'], fromEnhancePrompt);\n }\n if (getValueByPath(fromObject, ['generateAudio']) !== undefined) {\n throw new Error('generateAudio parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromLastFrame = getValueByPath(fromObject, ['lastFrame']);\n if (parentObject !== undefined && fromLastFrame != null) {\n setValueByPath(parentObject, ['instances[0]', 'lastFrame'], imageToMldev(fromLastFrame));\n }\n const fromReferenceImages = getValueByPath(fromObject, [\n 'referenceImages',\n ]);\n if (parentObject !== undefined && fromReferenceImages != null) {\n let transformedList = fromReferenceImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return videoGenerationReferenceImageToMldev(item);\n });\n }\n setValueByPath(parentObject, ['instances[0]', 'referenceImages'], transformedList);\n }\n if (getValueByPath(fromObject, ['mask']) !== undefined) {\n throw new Error('mask parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['compressionQuality']) !== undefined) {\n throw new Error('compressionQuality parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['labels']) !== undefined) {\n throw new Error('labels parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromWebhookConfig = getValueByPath(fromObject, [\n 'webhookConfig',\n ]);\n if (parentObject !== undefined && fromWebhookConfig != null) {\n setValueByPath(parentObject, ['webhookConfig'], fromWebhookConfig);\n }\n if (getValueByPath(fromObject, ['resizeMode']) !== undefined) {\n throw new Error('resizeMode parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction generateVideosConfigToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromNumberOfVideos = getValueByPath(fromObject, [\n 'numberOfVideos',\n ]);\n if (parentObject !== undefined && fromNumberOfVideos != null) {\n setValueByPath(parentObject, ['parameters', 'sampleCount'], fromNumberOfVideos);\n }\n const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);\n if (parentObject !== undefined && fromOutputGcsUri != null) {\n setValueByPath(parentObject, ['parameters', 'storageUri'], fromOutputGcsUri);\n }\n const fromFps = getValueByPath(fromObject, ['fps']);\n if (parentObject !== undefined && fromFps != null) {\n setValueByPath(parentObject, ['parameters', 'fps'], fromFps);\n }\n const fromDurationSeconds = getValueByPath(fromObject, [\n 'durationSeconds',\n ]);\n if (parentObject !== undefined && fromDurationSeconds != null) {\n setValueByPath(parentObject, ['parameters', 'durationSeconds'], fromDurationSeconds);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (parentObject !== undefined && fromSeed != null) {\n setValueByPath(parentObject, ['parameters', 'seed'], fromSeed);\n }\n const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);\n if (parentObject !== undefined && fromAspectRatio != null) {\n setValueByPath(parentObject, ['parameters', 'aspectRatio'], fromAspectRatio);\n }\n const fromResolution = getValueByPath(fromObject, ['resolution']);\n if (parentObject !== undefined && fromResolution != null) {\n setValueByPath(parentObject, ['parameters', 'resolution'], fromResolution);\n }\n const fromPersonGeneration = getValueByPath(fromObject, [\n 'personGeneration',\n ]);\n if (parentObject !== undefined && fromPersonGeneration != null) {\n setValueByPath(parentObject, ['parameters', 'personGeneration'], fromPersonGeneration);\n }\n const fromPubsubTopic = getValueByPath(fromObject, ['pubsubTopic']);\n if (parentObject !== undefined && fromPubsubTopic != null) {\n setValueByPath(parentObject, ['parameters', 'pubsubTopic'], fromPubsubTopic);\n }\n const fromNegativePrompt = getValueByPath(fromObject, [\n 'negativePrompt',\n ]);\n if (parentObject !== undefined && fromNegativePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'negativePrompt'], fromNegativePrompt);\n }\n const fromEnhancePrompt = getValueByPath(fromObject, [\n 'enhancePrompt',\n ]);\n if (parentObject !== undefined && fromEnhancePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'enhancePrompt'], fromEnhancePrompt);\n }\n const fromGenerateAudio = getValueByPath(fromObject, [\n 'generateAudio',\n ]);\n if (parentObject !== undefined && fromGenerateAudio != null) {\n setValueByPath(parentObject, ['parameters', 'generateAudio'], fromGenerateAudio);\n }\n const fromLastFrame = getValueByPath(fromObject, ['lastFrame']);\n if (parentObject !== undefined && fromLastFrame != null) {\n setValueByPath(parentObject, ['instances[0]', 'lastFrame'], imageToVertex(fromLastFrame));\n }\n const fromReferenceImages = getValueByPath(fromObject, [\n 'referenceImages',\n ]);\n if (parentObject !== undefined && fromReferenceImages != null) {\n let transformedList = fromReferenceImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return videoGenerationReferenceImageToVertex(item);\n });\n }\n setValueByPath(parentObject, ['instances[0]', 'referenceImages'], transformedList);\n }\n const fromMask = getValueByPath(fromObject, ['mask']);\n if (parentObject !== undefined && fromMask != null) {\n setValueByPath(parentObject, ['instances[0]', 'mask'], videoGenerationMaskToVertex(fromMask));\n }\n const fromCompressionQuality = getValueByPath(fromObject, [\n 'compressionQuality',\n ]);\n if (parentObject !== undefined && fromCompressionQuality != null) {\n setValueByPath(parentObject, ['parameters', 'compressionQuality'], fromCompressionQuality);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n if (getValueByPath(fromObject, ['webhookConfig']) !== undefined) {\n throw new Error('webhookConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromResizeMode = getValueByPath(fromObject, ['resizeMode']);\n if (parentObject !== undefined && fromResizeMode != null) {\n setValueByPath(parentObject, ['parameters', 'resizeMode'], fromResizeMode);\n }\n return toObject;\n}\nfunction generateVideosOperationFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromResponse = getValueByPath(fromObject, [\n 'response',\n 'generateVideoResponse',\n ]);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], generateVideosResponseFromMldev(fromResponse));\n }\n return toObject;\n}\nfunction generateVideosOperationFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromResponse = getValueByPath(fromObject, ['response']);\n if (fromResponse != null) {\n setValueByPath(toObject, ['response'], generateVideosResponseFromVertex(fromResponse));\n }\n return toObject;\n}\nfunction generateVideosParametersToMldev(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (fromPrompt != null) {\n setValueByPath(toObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromImage = getValueByPath(fromObject, ['image']);\n if (fromImage != null) {\n setValueByPath(toObject, ['instances[0]', 'image'], imageToMldev(fromImage));\n }\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['instances[0]', 'video'], videoToMldev(fromVideo));\n }\n const fromSource = getValueByPath(fromObject, ['source']);\n if (fromSource != null) {\n generateVideosSourceToMldev(fromSource, toObject);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n generateVideosConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction generateVideosParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (fromPrompt != null) {\n setValueByPath(toObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromImage = getValueByPath(fromObject, ['image']);\n if (fromImage != null) {\n setValueByPath(toObject, ['instances[0]', 'image'], imageToVertex(fromImage));\n }\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['instances[0]', 'video'], videoToVertex(fromVideo));\n }\n const fromSource = getValueByPath(fromObject, ['source']);\n if (fromSource != null) {\n generateVideosSourceToVertex(fromSource, toObject);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n generateVideosConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction generateVideosResponseFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromGeneratedVideos = getValueByPath(fromObject, [\n 'generatedSamples',\n ]);\n if (fromGeneratedVideos != null) {\n let transformedList = fromGeneratedVideos;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedVideoFromMldev(item);\n });\n }\n setValueByPath(toObject, ['generatedVideos'], transformedList);\n }\n const fromRaiMediaFilteredCount = getValueByPath(fromObject, [\n 'raiMediaFilteredCount',\n ]);\n if (fromRaiMediaFilteredCount != null) {\n setValueByPath(toObject, ['raiMediaFilteredCount'], fromRaiMediaFilteredCount);\n }\n const fromRaiMediaFilteredReasons = getValueByPath(fromObject, [\n 'raiMediaFilteredReasons',\n ]);\n if (fromRaiMediaFilteredReasons != null) {\n setValueByPath(toObject, ['raiMediaFilteredReasons'], fromRaiMediaFilteredReasons);\n }\n return toObject;\n}\nfunction generateVideosResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromGeneratedVideos = getValueByPath(fromObject, ['videos']);\n if (fromGeneratedVideos != null) {\n let transformedList = fromGeneratedVideos;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedVideoFromVertex(item);\n });\n }\n setValueByPath(toObject, ['generatedVideos'], transformedList);\n }\n const fromRaiMediaFilteredCount = getValueByPath(fromObject, [\n 'raiMediaFilteredCount',\n ]);\n if (fromRaiMediaFilteredCount != null) {\n setValueByPath(toObject, ['raiMediaFilteredCount'], fromRaiMediaFilteredCount);\n }\n const fromRaiMediaFilteredReasons = getValueByPath(fromObject, [\n 'raiMediaFilteredReasons',\n ]);\n if (fromRaiMediaFilteredReasons != null) {\n setValueByPath(toObject, ['raiMediaFilteredReasons'], fromRaiMediaFilteredReasons);\n }\n return toObject;\n}\nfunction generateVideosSourceToMldev(fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (parentObject !== undefined && fromPrompt != null) {\n setValueByPath(parentObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromImage = getValueByPath(fromObject, ['image']);\n if (parentObject !== undefined && fromImage != null) {\n setValueByPath(parentObject, ['instances[0]', 'image'], imageToMldev(fromImage));\n }\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (parentObject !== undefined && fromVideo != null) {\n setValueByPath(parentObject, ['instances[0]', 'video'], videoToMldev(fromVideo));\n }\n return toObject;\n}\nfunction generateVideosSourceToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (parentObject !== undefined && fromPrompt != null) {\n setValueByPath(parentObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromImage = getValueByPath(fromObject, ['image']);\n if (parentObject !== undefined && fromImage != null) {\n setValueByPath(parentObject, ['instances[0]', 'image'], imageToVertex(fromImage));\n }\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (parentObject !== undefined && fromVideo != null) {\n setValueByPath(parentObject, ['instances[0]', 'video'], videoToVertex(fromVideo));\n }\n return toObject;\n}\nfunction generatedImageFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromImage = getValueByPath(fromObject, ['_self']);\n if (fromImage != null) {\n setValueByPath(toObject, ['image'], imageFromVertex(fromImage));\n }\n const fromRaiFilteredReason = getValueByPath(fromObject, [\n 'raiFilteredReason',\n ]);\n if (fromRaiFilteredReason != null) {\n setValueByPath(toObject, ['raiFilteredReason'], fromRaiFilteredReason);\n }\n const fromSafetyAttributes = getValueByPath(fromObject, ['_self']);\n if (fromSafetyAttributes != null) {\n setValueByPath(toObject, ['safetyAttributes'], safetyAttributesFromVertex(fromSafetyAttributes));\n }\n const fromEnhancedPrompt = getValueByPath(fromObject, ['prompt']);\n if (fromEnhancedPrompt != null) {\n setValueByPath(toObject, ['enhancedPrompt'], fromEnhancedPrompt);\n }\n return toObject;\n}\nfunction generatedImageMaskFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromMask = getValueByPath(fromObject, ['_self']);\n if (fromMask != null) {\n setValueByPath(toObject, ['mask'], imageFromVertex(fromMask));\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (fromLabels != null) {\n let transformedList = fromLabels;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['labels'], transformedList);\n }\n return toObject;\n}\nfunction generatedVideoFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromVideo = getValueByPath(fromObject, ['video']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['video'], videoFromMldev(fromVideo));\n }\n return toObject;\n}\nfunction generatedVideoFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromVideo = getValueByPath(fromObject, ['_self']);\n if (fromVideo != null) {\n setValueByPath(toObject, ['video'], videoFromVertex(fromVideo));\n }\n return toObject;\n}\nfunction generationConfigToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromModelSelectionConfig = getValueByPath(fromObject, [\n 'modelSelectionConfig',\n ]);\n if (fromModelSelectionConfig != null) {\n setValueByPath(toObject, ['modelConfig'], fromModelSelectionConfig);\n }\n const fromResponseJsonSchema = getValueByPath(fromObject, [\n 'responseJsonSchema',\n ]);\n if (fromResponseJsonSchema != null) {\n setValueByPath(toObject, ['responseJsonSchema'], tJsonSchema(fromResponseJsonSchema));\n }\n const fromAudioTranscriptionConfig = getValueByPath(fromObject, [\n 'audioTranscriptionConfig',\n ]);\n if (fromAudioTranscriptionConfig != null) {\n setValueByPath(toObject, ['audioTranscriptionConfig'], fromAudioTranscriptionConfig);\n }\n const fromAudioTimestamp = getValueByPath(fromObject, [\n 'audioTimestamp',\n ]);\n if (fromAudioTimestamp != null) {\n setValueByPath(toObject, ['audioTimestamp'], fromAudioTimestamp);\n }\n const fromCandidateCount = getValueByPath(fromObject, [\n 'candidateCount',\n ]);\n if (fromCandidateCount != null) {\n setValueByPath(toObject, ['candidateCount'], fromCandidateCount);\n }\n const fromEnableAffectiveDialog = getValueByPath(fromObject, [\n 'enableAffectiveDialog',\n ]);\n if (fromEnableAffectiveDialog != null) {\n setValueByPath(toObject, ['enableAffectiveDialog'], fromEnableAffectiveDialog);\n }\n const fromFrequencyPenalty = getValueByPath(fromObject, [\n 'frequencyPenalty',\n ]);\n if (fromFrequencyPenalty != null) {\n setValueByPath(toObject, ['frequencyPenalty'], fromFrequencyPenalty);\n }\n const fromLogprobs = getValueByPath(fromObject, ['logprobs']);\n if (fromLogprobs != null) {\n setValueByPath(toObject, ['logprobs'], fromLogprobs);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (fromMaxOutputTokens != null) {\n setValueByPath(toObject, ['maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromPresencePenalty = getValueByPath(fromObject, [\n 'presencePenalty',\n ]);\n if (fromPresencePenalty != null) {\n setValueByPath(toObject, ['presencePenalty'], fromPresencePenalty);\n }\n const fromResponseFormat = getValueByPath(fromObject, [\n 'responseFormat',\n ]);\n if (fromResponseFormat != null) {\n let transformedList = fromResponseFormat;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['responseFormat'], transformedList);\n }\n const fromResponseLogprobs = getValueByPath(fromObject, [\n 'responseLogprobs',\n ]);\n if (fromResponseLogprobs != null) {\n setValueByPath(toObject, ['responseLogprobs'], fromResponseLogprobs);\n }\n const fromResponseMimeType = getValueByPath(fromObject, [\n 'responseMimeType',\n ]);\n if (fromResponseMimeType != null) {\n setValueByPath(toObject, ['responseMimeType'], fromResponseMimeType);\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (fromResponseModalities != null) {\n setValueByPath(toObject, ['responseModalities'], fromResponseModalities);\n }\n const fromResponseSchema = getValueByPath(fromObject, [\n 'responseSchema',\n ]);\n if (fromResponseSchema != null) {\n setValueByPath(toObject, ['responseSchema'], fromResponseSchema);\n }\n const fromRoutingConfig = getValueByPath(fromObject, [\n 'routingConfig',\n ]);\n if (fromRoutingConfig != null) {\n setValueByPath(toObject, ['routingConfig'], fromRoutingConfig);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (fromSeed != null) {\n setValueByPath(toObject, ['seed'], fromSeed);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (fromSpeechConfig != null) {\n setValueByPath(toObject, ['speechConfig'], speechConfigToVertex(fromSpeechConfig));\n }\n const fromStopSequences = getValueByPath(fromObject, [\n 'stopSequences',\n ]);\n if (fromStopSequences != null) {\n setValueByPath(toObject, ['stopSequences'], fromStopSequences);\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (fromTemperature != null) {\n setValueByPath(toObject, ['temperature'], fromTemperature);\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (fromThinkingConfig != null) {\n setValueByPath(toObject, ['thinkingConfig'], fromThinkingConfig);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (fromTopK != null) {\n setValueByPath(toObject, ['topK'], fromTopK);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (fromTopP != null) {\n setValueByPath(toObject, ['topP'], fromTopP);\n }\n if (getValueByPath(fromObject, ['enableEnhancedCivicAnswers']) !==\n undefined) {\n throw new Error('enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['translationConfig']) !== undefined) {\n throw new Error('translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction getModelParametersToMldev(apiClient, fromObject, _rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'name'], tModel(apiClient, fromModel));\n }\n return toObject;\n}\nfunction getModelParametersToVertex(apiClient, fromObject, _rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'name'], tModel(apiClient, fromModel));\n }\n return toObject;\n}\nfunction googleMapsToMldev$1(fromObject, rootObject) {\n const toObject = {};\n const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);\n if (fromAuthConfig != null) {\n setValueByPath(toObject, ['authConfig'], authConfigToMldev$1(fromAuthConfig));\n }\n const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);\n if (fromEnableWidget != null) {\n setValueByPath(toObject, ['enableWidget'], fromEnableWidget);\n }\n if (getValueByPath(fromObject, ['groundingTypes']) !== undefined) {\n throw new Error('groundingTypes parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction googleSearchToMldev$1(fromObject, _rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {\n throw new Error('blockingConfidence parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {\n throw new Error('excludeDomains parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);\n if (fromSearchTypes != null) {\n setValueByPath(toObject, ['searchTypes'], fromSearchTypes);\n }\n const fromTimeRangeFilter = getValueByPath(fromObject, [\n 'timeRangeFilter',\n ]);\n if (fromTimeRangeFilter != null) {\n setValueByPath(toObject, ['timeRangeFilter'], fromTimeRangeFilter);\n }\n return toObject;\n}\nfunction imageConfigToMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);\n if (fromAspectRatio != null) {\n setValueByPath(toObject, ['aspectRatio'], fromAspectRatio);\n }\n const fromImageSize = getValueByPath(fromObject, ['imageSize']);\n if (fromImageSize != null) {\n setValueByPath(toObject, ['imageSize'], fromImageSize);\n }\n if (getValueByPath(fromObject, ['personGeneration']) !== undefined) {\n throw new Error('personGeneration parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['outputMimeType']) !== undefined) {\n throw new Error('outputMimeType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['outputCompressionQuality']) !==\n undefined) {\n throw new Error('outputCompressionQuality parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['imageOutputOptions']) !== undefined) {\n throw new Error('imageOutputOptions parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['prominentPeople']) !== undefined) {\n throw new Error('prominentPeople parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction imageConfigToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromAspectRatio = getValueByPath(fromObject, ['aspectRatio']);\n if (fromAspectRatio != null) {\n setValueByPath(toObject, ['aspectRatio'], fromAspectRatio);\n }\n const fromImageSize = getValueByPath(fromObject, ['imageSize']);\n if (fromImageSize != null) {\n setValueByPath(toObject, ['imageSize'], fromImageSize);\n }\n const fromPersonGeneration = getValueByPath(fromObject, [\n 'personGeneration',\n ]);\n if (fromPersonGeneration != null) {\n setValueByPath(toObject, ['personGeneration'], fromPersonGeneration);\n }\n const fromOutputMimeType = getValueByPath(fromObject, [\n 'outputMimeType',\n ]);\n if (fromOutputMimeType != null) {\n setValueByPath(toObject, ['imageOutputOptions', 'mimeType'], fromOutputMimeType);\n }\n const fromOutputCompressionQuality = getValueByPath(fromObject, [\n 'outputCompressionQuality',\n ]);\n if (fromOutputCompressionQuality != null) {\n setValueByPath(toObject, ['imageOutputOptions', 'compressionQuality'], fromOutputCompressionQuality);\n }\n const fromImageOutputOptions = getValueByPath(fromObject, [\n 'imageOutputOptions',\n ]);\n if (fromImageOutputOptions != null) {\n setValueByPath(toObject, ['imageOutputOptions'], fromImageOutputOptions);\n }\n const fromProminentPeople = getValueByPath(fromObject, [\n 'prominentPeople',\n ]);\n if (fromProminentPeople != null) {\n setValueByPath(toObject, ['prominentPeople'], fromProminentPeople);\n }\n return toObject;\n}\nfunction imageFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (fromGcsUri != null) {\n setValueByPath(toObject, ['gcsUri'], fromGcsUri);\n }\n const fromImageBytes = getValueByPath(fromObject, [\n 'bytesBase64Encoded',\n ]);\n if (fromImageBytes != null) {\n setValueByPath(toObject, ['imageBytes'], tBytes(fromImageBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction imageToMldev(fromObject, _rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['gcsUri']) !== undefined) {\n throw new Error('gcsUri parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromImageBytes = getValueByPath(fromObject, ['imageBytes']);\n if (fromImageBytes != null) {\n setValueByPath(toObject, ['bytesBase64Encoded'], tBytes(fromImageBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction imageToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (fromGcsUri != null) {\n setValueByPath(toObject, ['gcsUri'], fromGcsUri);\n }\n const fromImageBytes = getValueByPath(fromObject, ['imageBytes']);\n if (fromImageBytes != null) {\n setValueByPath(toObject, ['bytesBase64Encoded'], tBytes(fromImageBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction listModelsConfigToMldev(apiClient, fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n const fromFilter = getValueByPath(fromObject, ['filter']);\n if (parentObject !== undefined && fromFilter != null) {\n setValueByPath(parentObject, ['_query', 'filter'], fromFilter);\n }\n const fromQueryBase = getValueByPath(fromObject, ['queryBase']);\n if (parentObject !== undefined && fromQueryBase != null) {\n setValueByPath(parentObject, ['_url', 'models_url'], tModelsUrl(apiClient, fromQueryBase));\n }\n return toObject;\n}\nfunction listModelsConfigToVertex(apiClient, fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n const fromFilter = getValueByPath(fromObject, ['filter']);\n if (parentObject !== undefined && fromFilter != null) {\n setValueByPath(parentObject, ['_query', 'filter'], fromFilter);\n }\n const fromQueryBase = getValueByPath(fromObject, ['queryBase']);\n if (parentObject !== undefined && fromQueryBase != null) {\n setValueByPath(parentObject, ['_url', 'models_url'], tModelsUrl(apiClient, fromQueryBase));\n }\n return toObject;\n}\nfunction listModelsParametersToMldev(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listModelsConfigToMldev(apiClient, fromConfig, toObject);\n }\n return toObject;\n}\nfunction listModelsParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listModelsConfigToVertex(apiClient, fromConfig, toObject);\n }\n return toObject;\n}\nfunction listModelsResponseFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromModels = getValueByPath(fromObject, ['_self']);\n if (fromModels != null) {\n let transformedList = tExtractModels(fromModels);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return modelFromMldev(item);\n });\n }\n setValueByPath(toObject, ['models'], transformedList);\n }\n return toObject;\n}\nfunction listModelsResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromModels = getValueByPath(fromObject, ['_self']);\n if (fromModels != null) {\n let transformedList = tExtractModels(fromModels);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return modelFromVertex(item);\n });\n }\n setValueByPath(toObject, ['models'], transformedList);\n }\n return toObject;\n}\nfunction maskReferenceConfigToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromMaskMode = getValueByPath(fromObject, ['maskMode']);\n if (fromMaskMode != null) {\n setValueByPath(toObject, ['maskMode'], fromMaskMode);\n }\n const fromSegmentationClasses = getValueByPath(fromObject, [\n 'segmentationClasses',\n ]);\n if (fromSegmentationClasses != null) {\n setValueByPath(toObject, ['maskClasses'], fromSegmentationClasses);\n }\n const fromMaskDilation = getValueByPath(fromObject, ['maskDilation']);\n if (fromMaskDilation != null) {\n setValueByPath(toObject, ['dilation'], fromMaskDilation);\n }\n return toObject;\n}\nfunction mcpServerToVertex(fromObject, _rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['name']) !== undefined) {\n throw new Error('name parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['streamableHttpTransport']) !== undefined) {\n throw new Error('streamableHttpTransport parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction modelFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (fromDisplayName != null) {\n setValueByPath(toObject, ['displayName'], fromDisplayName);\n }\n const fromDescription = getValueByPath(fromObject, ['description']);\n if (fromDescription != null) {\n setValueByPath(toObject, ['description'], fromDescription);\n }\n const fromVersion = getValueByPath(fromObject, ['version']);\n if (fromVersion != null) {\n setValueByPath(toObject, ['version'], fromVersion);\n }\n const fromTunedModelInfo = getValueByPath(fromObject, ['_self']);\n if (fromTunedModelInfo != null) {\n setValueByPath(toObject, ['tunedModelInfo'], tunedModelInfoFromMldev(fromTunedModelInfo));\n }\n const fromInputTokenLimit = getValueByPath(fromObject, [\n 'inputTokenLimit',\n ]);\n if (fromInputTokenLimit != null) {\n setValueByPath(toObject, ['inputTokenLimit'], fromInputTokenLimit);\n }\n const fromOutputTokenLimit = getValueByPath(fromObject, [\n 'outputTokenLimit',\n ]);\n if (fromOutputTokenLimit != null) {\n setValueByPath(toObject, ['outputTokenLimit'], fromOutputTokenLimit);\n }\n const fromSupportedActions = getValueByPath(fromObject, [\n 'supportedGenerationMethods',\n ]);\n if (fromSupportedActions != null) {\n setValueByPath(toObject, ['supportedActions'], fromSupportedActions);\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (fromTemperature != null) {\n setValueByPath(toObject, ['temperature'], fromTemperature);\n }\n const fromMaxTemperature = getValueByPath(fromObject, [\n 'maxTemperature',\n ]);\n if (fromMaxTemperature != null) {\n setValueByPath(toObject, ['maxTemperature'], fromMaxTemperature);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (fromTopP != null) {\n setValueByPath(toObject, ['topP'], fromTopP);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (fromTopK != null) {\n setValueByPath(toObject, ['topK'], fromTopK);\n }\n const fromThinking = getValueByPath(fromObject, ['thinking']);\n if (fromThinking != null) {\n setValueByPath(toObject, ['thinking'], fromThinking);\n }\n return toObject;\n}\nfunction modelFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (fromDisplayName != null) {\n setValueByPath(toObject, ['displayName'], fromDisplayName);\n }\n const fromDescription = getValueByPath(fromObject, ['description']);\n if (fromDescription != null) {\n setValueByPath(toObject, ['description'], fromDescription);\n }\n const fromVersion = getValueByPath(fromObject, ['versionId']);\n if (fromVersion != null) {\n setValueByPath(toObject, ['version'], fromVersion);\n }\n const fromEndpoints = getValueByPath(fromObject, ['deployedModels']);\n if (fromEndpoints != null) {\n let transformedList = fromEndpoints;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return endpointFromVertex(item);\n });\n }\n setValueByPath(toObject, ['endpoints'], transformedList);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (fromLabels != null) {\n setValueByPath(toObject, ['labels'], fromLabels);\n }\n const fromTunedModelInfo = getValueByPath(fromObject, ['_self']);\n if (fromTunedModelInfo != null) {\n setValueByPath(toObject, ['tunedModelInfo'], tunedModelInfoFromVertex(fromTunedModelInfo));\n }\n const fromDefaultCheckpointId = getValueByPath(fromObject, [\n 'defaultCheckpointId',\n ]);\n if (fromDefaultCheckpointId != null) {\n setValueByPath(toObject, ['defaultCheckpointId'], fromDefaultCheckpointId);\n }\n const fromCheckpoints = getValueByPath(fromObject, ['checkpoints']);\n if (fromCheckpoints != null) {\n let transformedList = fromCheckpoints;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['checkpoints'], transformedList);\n }\n return toObject;\n}\nfunction multiSpeakerVoiceConfigToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [\n 'speakerVoiceConfigs',\n ]);\n if (fromSpeakerVoiceConfigs != null) {\n let transformedList = fromSpeakerVoiceConfigs;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return speakerVoiceConfigToVertex(item);\n });\n }\n setValueByPath(toObject, ['speakerVoiceConfigs'], transformedList);\n }\n return toObject;\n}\nfunction partToMldev$1(fromObject, rootObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromToolCall = getValueByPath(fromObject, ['toolCall']);\n if (fromToolCall != null) {\n setValueByPath(toObject, ['toolCall'], fromToolCall);\n }\n const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);\n if (fromToolResponse != null) {\n setValueByPath(toObject, ['toolResponse'], fromToolResponse);\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fileDataToMldev$1(fromFileData));\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], functionCallToMldev$1(fromFunctionCall));\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], blobToMldev$1(fromInlineData));\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);\n if (fromPartMetadata != null) {\n setValueByPath(toObject, ['partMetadata'], fromPartMetadata);\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction partToVertex$1(fromObject, _rootObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n if (getValueByPath(fromObject, ['toolCall']) !== undefined) {\n throw new Error('toolCall parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {\n throw new Error('toolResponse parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fromFileData);\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], fromFunctionCall);\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], fromInlineData);\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {\n throw new Error('partMetadata parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction productImageToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromProductImage = getValueByPath(fromObject, ['productImage']);\n if (fromProductImage != null) {\n setValueByPath(toObject, ['image'], imageToVertex(fromProductImage));\n }\n return toObject;\n}\nfunction recontextImageConfigToVertex(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromNumberOfImages = getValueByPath(fromObject, [\n 'numberOfImages',\n ]);\n if (parentObject !== undefined && fromNumberOfImages != null) {\n setValueByPath(parentObject, ['parameters', 'sampleCount'], fromNumberOfImages);\n }\n const fromBaseSteps = getValueByPath(fromObject, ['baseSteps']);\n if (parentObject !== undefined && fromBaseSteps != null) {\n setValueByPath(parentObject, ['parameters', 'baseSteps'], fromBaseSteps);\n }\n const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);\n if (parentObject !== undefined && fromOutputGcsUri != null) {\n setValueByPath(parentObject, ['parameters', 'storageUri'], fromOutputGcsUri);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (parentObject !== undefined && fromSeed != null) {\n setValueByPath(parentObject, ['parameters', 'seed'], fromSeed);\n }\n const fromSafetyFilterLevel = getValueByPath(fromObject, [\n 'safetyFilterLevel',\n ]);\n if (parentObject !== undefined && fromSafetyFilterLevel != null) {\n setValueByPath(parentObject, ['parameters', 'safetySetting'], fromSafetyFilterLevel);\n }\n const fromPersonGeneration = getValueByPath(fromObject, [\n 'personGeneration',\n ]);\n if (parentObject !== undefined && fromPersonGeneration != null) {\n setValueByPath(parentObject, ['parameters', 'personGeneration'], fromPersonGeneration);\n }\n const fromAddWatermark = getValueByPath(fromObject, ['addWatermark']);\n if (parentObject !== undefined && fromAddWatermark != null) {\n setValueByPath(parentObject, ['parameters', 'addWatermark'], fromAddWatermark);\n }\n const fromOutputMimeType = getValueByPath(fromObject, [\n 'outputMimeType',\n ]);\n if (parentObject !== undefined && fromOutputMimeType != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'mimeType'], fromOutputMimeType);\n }\n const fromOutputCompressionQuality = getValueByPath(fromObject, [\n 'outputCompressionQuality',\n ]);\n if (parentObject !== undefined && fromOutputCompressionQuality != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'compressionQuality'], fromOutputCompressionQuality);\n }\n const fromEnhancePrompt = getValueByPath(fromObject, [\n 'enhancePrompt',\n ]);\n if (parentObject !== undefined && fromEnhancePrompt != null) {\n setValueByPath(parentObject, ['parameters', 'enhancePrompt'], fromEnhancePrompt);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n return toObject;\n}\nfunction recontextImageParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromSource = getValueByPath(fromObject, ['source']);\n if (fromSource != null) {\n recontextImageSourceToVertex(fromSource, toObject);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n recontextImageConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction recontextImageResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromGeneratedImages = getValueByPath(fromObject, [\n 'predictions',\n ]);\n if (fromGeneratedImages != null) {\n let transformedList = fromGeneratedImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedImageFromVertex(item);\n });\n }\n setValueByPath(toObject, ['generatedImages'], transformedList);\n }\n return toObject;\n}\nfunction recontextImageSourceToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (parentObject !== undefined && fromPrompt != null) {\n setValueByPath(parentObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromPersonImage = getValueByPath(fromObject, ['personImage']);\n if (parentObject !== undefined && fromPersonImage != null) {\n setValueByPath(parentObject, ['instances[0]', 'personImage', 'image'], imageToVertex(fromPersonImage));\n }\n const fromProductImages = getValueByPath(fromObject, [\n 'productImages',\n ]);\n if (parentObject !== undefined && fromProductImages != null) {\n let transformedList = fromProductImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return productImageToVertex(item);\n });\n }\n setValueByPath(parentObject, ['instances[0]', 'productImages'], transformedList);\n }\n return toObject;\n}\nfunction referenceImageAPIInternalToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromReferenceImage = getValueByPath(fromObject, [\n 'referenceImage',\n ]);\n if (fromReferenceImage != null) {\n setValueByPath(toObject, ['referenceImage'], imageToVertex(fromReferenceImage));\n }\n const fromReferenceId = getValueByPath(fromObject, ['referenceId']);\n if (fromReferenceId != null) {\n setValueByPath(toObject, ['referenceId'], fromReferenceId);\n }\n const fromReferenceType = getValueByPath(fromObject, [\n 'referenceType',\n ]);\n if (fromReferenceType != null) {\n setValueByPath(toObject, ['referenceType'], fromReferenceType);\n }\n const fromMaskImageConfig = getValueByPath(fromObject, [\n 'maskImageConfig',\n ]);\n if (fromMaskImageConfig != null) {\n setValueByPath(toObject, ['maskImageConfig'], maskReferenceConfigToVertex(fromMaskImageConfig));\n }\n const fromControlImageConfig = getValueByPath(fromObject, [\n 'controlImageConfig',\n ]);\n if (fromControlImageConfig != null) {\n setValueByPath(toObject, ['controlImageConfig'], controlReferenceConfigToVertex(fromControlImageConfig));\n }\n const fromStyleImageConfig = getValueByPath(fromObject, [\n 'styleImageConfig',\n ]);\n if (fromStyleImageConfig != null) {\n setValueByPath(toObject, ['styleImageConfig'], fromStyleImageConfig);\n }\n const fromSubjectImageConfig = getValueByPath(fromObject, [\n 'subjectImageConfig',\n ]);\n if (fromSubjectImageConfig != null) {\n setValueByPath(toObject, ['subjectImageConfig'], fromSubjectImageConfig);\n }\n return toObject;\n}\nfunction replicatedVoiceConfigToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n const fromVoiceSampleAudio = getValueByPath(fromObject, [\n 'voiceSampleAudio',\n ]);\n if (fromVoiceSampleAudio != null) {\n setValueByPath(toObject, ['voiceSampleAudio'], fromVoiceSampleAudio);\n }\n if (getValueByPath(fromObject, ['consentAudio']) !== undefined) {\n throw new Error('consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['voiceConsentSignature']) !== undefined) {\n throw new Error('voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction safetyAttributesFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromCategories = getValueByPath(fromObject, [\n 'safetyAttributes',\n 'categories',\n ]);\n if (fromCategories != null) {\n setValueByPath(toObject, ['categories'], fromCategories);\n }\n const fromScores = getValueByPath(fromObject, [\n 'safetyAttributes',\n 'scores',\n ]);\n if (fromScores != null) {\n setValueByPath(toObject, ['scores'], fromScores);\n }\n const fromContentType = getValueByPath(fromObject, ['contentType']);\n if (fromContentType != null) {\n setValueByPath(toObject, ['contentType'], fromContentType);\n }\n return toObject;\n}\nfunction safetySettingToMldev$1(fromObject, _rootObject) {\n const toObject = {};\n const fromCategory = getValueByPath(fromObject, ['category']);\n if (fromCategory != null) {\n setValueByPath(toObject, ['category'], fromCategory);\n }\n if (getValueByPath(fromObject, ['method']) !== undefined) {\n throw new Error('method parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromThreshold = getValueByPath(fromObject, ['threshold']);\n if (fromThreshold != null) {\n setValueByPath(toObject, ['threshold'], fromThreshold);\n }\n return toObject;\n}\nfunction scribbleImageToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromImage = getValueByPath(fromObject, ['image']);\n if (fromImage != null) {\n setValueByPath(toObject, ['image'], imageToVertex(fromImage));\n }\n return toObject;\n}\nfunction segmentImageConfigToVertex(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromMode = getValueByPath(fromObject, ['mode']);\n if (parentObject !== undefined && fromMode != null) {\n setValueByPath(parentObject, ['parameters', 'mode'], fromMode);\n }\n const fromMaxPredictions = getValueByPath(fromObject, [\n 'maxPredictions',\n ]);\n if (parentObject !== undefined && fromMaxPredictions != null) {\n setValueByPath(parentObject, ['parameters', 'maxPredictions'], fromMaxPredictions);\n }\n const fromConfidenceThreshold = getValueByPath(fromObject, [\n 'confidenceThreshold',\n ]);\n if (parentObject !== undefined && fromConfidenceThreshold != null) {\n setValueByPath(parentObject, ['parameters', 'confidenceThreshold'], fromConfidenceThreshold);\n }\n const fromMaskDilation = getValueByPath(fromObject, ['maskDilation']);\n if (parentObject !== undefined && fromMaskDilation != null) {\n setValueByPath(parentObject, ['parameters', 'maskDilation'], fromMaskDilation);\n }\n const fromBinaryColorThreshold = getValueByPath(fromObject, [\n 'binaryColorThreshold',\n ]);\n if (parentObject !== undefined && fromBinaryColorThreshold != null) {\n setValueByPath(parentObject, ['parameters', 'binaryColorThreshold'], fromBinaryColorThreshold);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n return toObject;\n}\nfunction segmentImageParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromSource = getValueByPath(fromObject, ['source']);\n if (fromSource != null) {\n segmentImageSourceToVertex(fromSource, toObject);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n segmentImageConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction segmentImageResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromGeneratedMasks = getValueByPath(fromObject, ['predictions']);\n if (fromGeneratedMasks != null) {\n let transformedList = fromGeneratedMasks;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedImageMaskFromVertex(item);\n });\n }\n setValueByPath(toObject, ['generatedMasks'], transformedList);\n }\n return toObject;\n}\nfunction segmentImageSourceToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n const fromPrompt = getValueByPath(fromObject, ['prompt']);\n if (parentObject !== undefined && fromPrompt != null) {\n setValueByPath(parentObject, ['instances[0]', 'prompt'], fromPrompt);\n }\n const fromImage = getValueByPath(fromObject, ['image']);\n if (parentObject !== undefined && fromImage != null) {\n setValueByPath(parentObject, ['instances[0]', 'image'], imageToVertex(fromImage));\n }\n const fromScribbleImage = getValueByPath(fromObject, [\n 'scribbleImage',\n ]);\n if (parentObject !== undefined && fromScribbleImage != null) {\n setValueByPath(parentObject, ['instances[0]', 'scribble'], scribbleImageToVertex(fromScribbleImage));\n }\n return toObject;\n}\nfunction speakerVoiceConfigToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSpeaker = getValueByPath(fromObject, ['speaker']);\n if (fromSpeaker != null) {\n setValueByPath(toObject, ['speaker'], fromSpeaker);\n }\n const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);\n if (fromVoiceConfig != null) {\n setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));\n }\n return toObject;\n}\nfunction speechConfigToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromVoiceConfig = getValueByPath(fromObject, ['voiceConfig']);\n if (fromVoiceConfig != null) {\n setValueByPath(toObject, ['voiceConfig'], voiceConfigToVertex(fromVoiceConfig));\n }\n const fromLanguageCode = getValueByPath(fromObject, ['languageCode']);\n if (fromLanguageCode != null) {\n setValueByPath(toObject, ['languageCode'], fromLanguageCode);\n }\n const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [\n 'multiSpeakerVoiceConfig',\n ]);\n if (fromMultiSpeakerVoiceConfig != null) {\n setValueByPath(toObject, ['multiSpeakerVoiceConfig'], multiSpeakerVoiceConfigToVertex(fromMultiSpeakerVoiceConfig));\n }\n return toObject;\n}\nfunction toolConfigToMldev(fromObject, rootObject) {\n const toObject = {};\n const fromFunctionCallingConfig = getValueByPath(fromObject, [\n 'functionCallingConfig',\n ]);\n if (fromFunctionCallingConfig != null) {\n setValueByPath(toObject, ['functionCallingConfig'], functionCallingConfigToMldev(fromFunctionCallingConfig));\n }\n const fromRetrievalConfig = getValueByPath(fromObject, [\n 'retrievalConfig',\n ]);\n if (fromRetrievalConfig != null) {\n setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);\n }\n const fromIncludeServerSideToolInvocations = getValueByPath(fromObject, ['includeServerSideToolInvocations']);\n if (fromIncludeServerSideToolInvocations != null) {\n setValueByPath(toObject, ['includeServerSideToolInvocations'], fromIncludeServerSideToolInvocations);\n }\n return toObject;\n}\nfunction toolConfigToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromFunctionCallingConfig = getValueByPath(fromObject, [\n 'functionCallingConfig',\n ]);\n if (fromFunctionCallingConfig != null) {\n setValueByPath(toObject, ['functionCallingConfig'], fromFunctionCallingConfig);\n }\n const fromRetrievalConfig = getValueByPath(fromObject, [\n 'retrievalConfig',\n ]);\n if (fromRetrievalConfig != null) {\n setValueByPath(toObject, ['retrievalConfig'], fromRetrievalConfig);\n }\n if (getValueByPath(fromObject, ['includeServerSideToolInvocations']) !==\n undefined) {\n throw new Error('includeServerSideToolInvocations parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction toolToMldev$1(fromObject, rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['retrieval']) !== undefined) {\n throw new Error('retrieval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], googleMapsToMldev$1(fromGoogleMaps));\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], fromComputerUse);\n }\n if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {\n throw new Error('enterpriseWebSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {\n throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], googleSearchToMldev$1(fromGoogleSearch));\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {\n throw new Error('parallelAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n const fromFileSearch = getValueByPath(fromObject, ['fileSearch']);\n if (fromFileSearch != null) {\n setValueByPath(toObject, ['fileSearch'], fromFileSearch);\n }\n return toObject;\n}\nfunction toolToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromRetrieval = getValueByPath(fromObject, ['retrieval']);\n if (fromRetrieval != null) {\n setValueByPath(toObject, ['retrieval'], fromRetrieval);\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], fromGoogleMaps);\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return mcpServerToVertex(item);\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], computerUseToVertex(fromComputerUse));\n }\n const fromEnterpriseWebSearch = getValueByPath(fromObject, [\n 'enterpriseWebSearch',\n ]);\n if (fromEnterpriseWebSearch != null) {\n setValueByPath(toObject, ['enterpriseWebSearch'], fromEnterpriseWebSearch);\n }\n const fromExaAiSearch = getValueByPath(fromObject, ['exaAiSearch']);\n if (fromExaAiSearch != null) {\n setValueByPath(toObject, ['exaAiSearch'], fromExaAiSearch);\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], fromGoogleSearch);\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n const fromParallelAiSearch = getValueByPath(fromObject, [\n 'parallelAiSearch',\n ]);\n if (fromParallelAiSearch != null) {\n setValueByPath(toObject, ['parallelAiSearch'], fromParallelAiSearch);\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n if (getValueByPath(fromObject, ['fileSearch']) !== undefined) {\n throw new Error('fileSearch parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction tunedModelInfoFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromBaseModel = getValueByPath(fromObject, ['baseModel']);\n if (fromBaseModel != null) {\n setValueByPath(toObject, ['baseModel'], fromBaseModel);\n }\n const fromCreateTime = getValueByPath(fromObject, ['createTime']);\n if (fromCreateTime != null) {\n setValueByPath(toObject, ['createTime'], fromCreateTime);\n }\n const fromUpdateTime = getValueByPath(fromObject, ['updateTime']);\n if (fromUpdateTime != null) {\n setValueByPath(toObject, ['updateTime'], fromUpdateTime);\n }\n return toObject;\n}\nfunction tunedModelInfoFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromBaseModel = getValueByPath(fromObject, [\n 'labels',\n 'google-vertex-llm-tuning-base-model-id',\n ]);\n if (fromBaseModel != null) {\n setValueByPath(toObject, ['baseModel'], fromBaseModel);\n }\n const fromCreateTime = getValueByPath(fromObject, ['createTime']);\n if (fromCreateTime != null) {\n setValueByPath(toObject, ['createTime'], fromCreateTime);\n }\n const fromUpdateTime = getValueByPath(fromObject, ['updateTime']);\n if (fromUpdateTime != null) {\n setValueByPath(toObject, ['updateTime'], fromUpdateTime);\n }\n return toObject;\n}\nfunction updateModelConfigToMldev(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromDisplayName);\n }\n const fromDescription = getValueByPath(fromObject, ['description']);\n if (parentObject !== undefined && fromDescription != null) {\n setValueByPath(parentObject, ['description'], fromDescription);\n }\n const fromDefaultCheckpointId = getValueByPath(fromObject, [\n 'defaultCheckpointId',\n ]);\n if (parentObject !== undefined && fromDefaultCheckpointId != null) {\n setValueByPath(parentObject, ['defaultCheckpointId'], fromDefaultCheckpointId);\n }\n return toObject;\n}\nfunction updateModelConfigToVertex(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromDisplayName = getValueByPath(fromObject, ['displayName']);\n if (parentObject !== undefined && fromDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromDisplayName);\n }\n const fromDescription = getValueByPath(fromObject, ['description']);\n if (parentObject !== undefined && fromDescription != null) {\n setValueByPath(parentObject, ['description'], fromDescription);\n }\n const fromDefaultCheckpointId = getValueByPath(fromObject, [\n 'defaultCheckpointId',\n ]);\n if (parentObject !== undefined && fromDefaultCheckpointId != null) {\n setValueByPath(parentObject, ['defaultCheckpointId'], fromDefaultCheckpointId);\n }\n return toObject;\n}\nfunction updateModelParametersToMldev(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'name'], tModel(apiClient, fromModel));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n updateModelConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction updateModelParametersToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n updateModelConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction upscaleImageAPIConfigInternalToVertex(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromOutputGcsUri = getValueByPath(fromObject, ['outputGcsUri']);\n if (parentObject !== undefined && fromOutputGcsUri != null) {\n setValueByPath(parentObject, ['parameters', 'storageUri'], fromOutputGcsUri);\n }\n const fromSafetyFilterLevel = getValueByPath(fromObject, [\n 'safetyFilterLevel',\n ]);\n if (parentObject !== undefined && fromSafetyFilterLevel != null) {\n setValueByPath(parentObject, ['parameters', 'safetySetting'], fromSafetyFilterLevel);\n }\n const fromPersonGeneration = getValueByPath(fromObject, [\n 'personGeneration',\n ]);\n if (parentObject !== undefined && fromPersonGeneration != null) {\n setValueByPath(parentObject, ['parameters', 'personGeneration'], fromPersonGeneration);\n }\n const fromIncludeRaiReason = getValueByPath(fromObject, [\n 'includeRaiReason',\n ]);\n if (parentObject !== undefined && fromIncludeRaiReason != null) {\n setValueByPath(parentObject, ['parameters', 'includeRaiReason'], fromIncludeRaiReason);\n }\n const fromOutputMimeType = getValueByPath(fromObject, [\n 'outputMimeType',\n ]);\n if (parentObject !== undefined && fromOutputMimeType != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'mimeType'], fromOutputMimeType);\n }\n const fromOutputCompressionQuality = getValueByPath(fromObject, [\n 'outputCompressionQuality',\n ]);\n if (parentObject !== undefined && fromOutputCompressionQuality != null) {\n setValueByPath(parentObject, ['parameters', 'outputOptions', 'compressionQuality'], fromOutputCompressionQuality);\n }\n const fromEnhanceInputImage = getValueByPath(fromObject, [\n 'enhanceInputImage',\n ]);\n if (parentObject !== undefined && fromEnhanceInputImage != null) {\n setValueByPath(parentObject, ['parameters', 'upscaleConfig', 'enhanceInputImage'], fromEnhanceInputImage);\n }\n const fromImagePreservationFactor = getValueByPath(fromObject, [\n 'imagePreservationFactor',\n ]);\n if (parentObject !== undefined && fromImagePreservationFactor != null) {\n setValueByPath(parentObject, ['parameters', 'upscaleConfig', 'imagePreservationFactor'], fromImagePreservationFactor);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n const fromNumberOfImages = getValueByPath(fromObject, [\n 'numberOfImages',\n ]);\n if (parentObject !== undefined && fromNumberOfImages != null) {\n setValueByPath(parentObject, ['parameters', 'sampleCount'], fromNumberOfImages);\n }\n const fromMode = getValueByPath(fromObject, ['mode']);\n if (parentObject !== undefined && fromMode != null) {\n setValueByPath(parentObject, ['parameters', 'mode'], fromMode);\n }\n return toObject;\n}\nfunction upscaleImageAPIParametersInternalToVertex(apiClient, fromObject, rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['_url', 'model'], tModel(apiClient, fromModel));\n }\n const fromImage = getValueByPath(fromObject, ['image']);\n if (fromImage != null) {\n setValueByPath(toObject, ['instances[0]', 'image'], imageToVertex(fromImage));\n }\n const fromUpscaleFactor = getValueByPath(fromObject, [\n 'upscaleFactor',\n ]);\n if (fromUpscaleFactor != null) {\n setValueByPath(toObject, ['parameters', 'upscaleConfig', 'upscaleFactor'], fromUpscaleFactor);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n upscaleImageAPIConfigInternalToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction upscaleImageResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromGeneratedImages = getValueByPath(fromObject, [\n 'predictions',\n ]);\n if (fromGeneratedImages != null) {\n let transformedList = fromGeneratedImages;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return generatedImageFromVertex(item);\n });\n }\n setValueByPath(toObject, ['generatedImages'], transformedList);\n }\n return toObject;\n}\nfunction videoFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromUri = getValueByPath(fromObject, ['uri']);\n if (fromUri != null) {\n setValueByPath(toObject, ['uri'], fromUri);\n }\n const fromVideoBytes = getValueByPath(fromObject, ['encodedVideo']);\n if (fromVideoBytes != null) {\n setValueByPath(toObject, ['videoBytes'], tBytes(fromVideoBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['encoding']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction videoFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromUri = getValueByPath(fromObject, ['gcsUri']);\n if (fromUri != null) {\n setValueByPath(toObject, ['uri'], fromUri);\n }\n const fromVideoBytes = getValueByPath(fromObject, [\n 'bytesBase64Encoded',\n ]);\n if (fromVideoBytes != null) {\n setValueByPath(toObject, ['videoBytes'], tBytes(fromVideoBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction videoGenerationMaskToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromImage = getValueByPath(fromObject, ['image']);\n if (fromImage != null) {\n setValueByPath(toObject, ['_self'], imageToVertex(fromImage));\n }\n const fromMaskMode = getValueByPath(fromObject, ['maskMode']);\n if (fromMaskMode != null) {\n setValueByPath(toObject, ['maskMode'], fromMaskMode);\n }\n return toObject;\n}\nfunction videoGenerationReferenceImageToMldev(fromObject, rootObject) {\n const toObject = {};\n const fromImage = getValueByPath(fromObject, ['image']);\n if (fromImage != null) {\n setValueByPath(toObject, ['image'], imageToMldev(fromImage));\n }\n const fromReferenceType = getValueByPath(fromObject, [\n 'referenceType',\n ]);\n if (fromReferenceType != null) {\n setValueByPath(toObject, ['referenceType'], fromReferenceType);\n }\n return toObject;\n}\nfunction videoGenerationReferenceImageToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromImage = getValueByPath(fromObject, ['image']);\n if (fromImage != null) {\n setValueByPath(toObject, ['image'], imageToVertex(fromImage));\n }\n const fromReferenceType = getValueByPath(fromObject, [\n 'referenceType',\n ]);\n if (fromReferenceType != null) {\n setValueByPath(toObject, ['referenceType'], fromReferenceType);\n }\n return toObject;\n}\nfunction videoToMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromUri = getValueByPath(fromObject, ['uri']);\n if (fromUri != null) {\n setValueByPath(toObject, ['uri'], fromUri);\n }\n const fromVideoBytes = getValueByPath(fromObject, ['videoBytes']);\n if (fromVideoBytes != null) {\n setValueByPath(toObject, ['encodedVideo'], tBytes(fromVideoBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['encoding'], fromMimeType);\n }\n return toObject;\n}\nfunction videoToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromUri = getValueByPath(fromObject, ['uri']);\n if (fromUri != null) {\n setValueByPath(toObject, ['gcsUri'], fromUri);\n }\n const fromVideoBytes = getValueByPath(fromObject, ['videoBytes']);\n if (fromVideoBytes != null) {\n setValueByPath(toObject, ['bytesBase64Encoded'], tBytes(fromVideoBytes));\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction voiceConfigToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromReplicatedVoiceConfig = getValueByPath(fromObject, [\n 'replicatedVoiceConfig',\n ]);\n if (fromReplicatedVoiceConfig != null) {\n setValueByPath(toObject, ['replicatedVoiceConfig'], replicatedVoiceConfigToVertex(fromReplicatedVoiceConfig));\n }\n const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [\n 'prebuiltVoiceConfig',\n ]);\n if (fromPrebuiltVoiceConfig != null) {\n setValueByPath(toObject, ['prebuiltVoiceConfig'], fromPrebuiltVoiceConfig);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// TODO: b/416041229 - Determine how to retrieve the MCP package version.\nconst MCP_LABEL = 'mcp_used/unknown';\n// Whether MCP tool usage is detected from mcpToTool. This is used for\n// telemetry.\nlet hasMcpToolUsageFromMcpToTool = false;\n// Checks whether the list of tools contains any MCP tools.\nfunction hasMcpToolUsage(tools) {\n for (const tool of tools) {\n if (isMcpCallableTool(tool)) {\n return true;\n }\n if (typeof tool === 'object' && 'inputSchema' in tool) {\n return true;\n }\n }\n return hasMcpToolUsageFromMcpToTool;\n}\n// Sets the MCP version label in the Google API client header.\nfunction setMcpUsageHeader(headers) {\n var _a;\n const existingHeader = (_a = headers[GOOGLE_API_CLIENT_HEADER]) !== null && _a !== void 0 ? _a : '';\n headers[GOOGLE_API_CLIENT_HEADER] = (existingHeader + ` ${MCP_LABEL}`).trimStart();\n}\n// Returns true if the object is a MCP CallableTool, otherwise false.\nfunction isMcpCallableTool(object) {\n return (object !== null &&\n typeof object === 'object' &&\n object instanceof McpCallableTool);\n}\n// List all tools from the MCP client.\nfunction listAllTools(mcpClient_1) {\n return __asyncGenerator(this, arguments, function* listAllTools_1(mcpClient, maxTools = 100) {\n let cursor = undefined;\n let numTools = 0;\n while (numTools < maxTools) {\n const t = yield __await(mcpClient.listTools({ cursor }));\n for (const tool of t.tools) {\n yield yield __await(tool);\n numTools++;\n }\n if (!t.nextCursor) {\n break;\n }\n cursor = t.nextCursor;\n }\n });\n}\n/**\n * McpCallableTool can be used for model inference and invoking MCP clients with\n * given function call arguments.\n *\n * @experimental Built-in MCP support is an experimental feature, may change in future\n * versions.\n */\nclass McpCallableTool {\n constructor(mcpClients = [], config) {\n this.mcpTools = [];\n this.functionNameToMcpClient = {};\n this.mcpClients = mcpClients;\n this.config = config;\n }\n /**\n * Creates a McpCallableTool.\n */\n static create(mcpClients, config) {\n return new McpCallableTool(mcpClients, config);\n }\n /**\n * Validates the function names are not duplicate and initialize the function\n * name to MCP client mapping.\n *\n * @throws {Error} if the MCP tools from the MCP clients have duplicate tool\n * names.\n */\n async initialize() {\n var _a, e_1, _b, _c;\n if (this.mcpTools.length > 0) {\n return;\n }\n const functionMap = {};\n const mcpTools = [];\n for (const mcpClient of this.mcpClients) {\n try {\n for (var _d = true, _e = (e_1 = void 0, __asyncValues(listAllTools(mcpClient))), _f; _f = await _e.next(), _a = _f.done, !_a; _d = true) {\n _c = _f.value;\n _d = false;\n const mcpTool = _c;\n mcpTools.push(mcpTool);\n const mcpToolName = mcpTool.name;\n if (functionMap[mcpToolName]) {\n throw new Error(`Duplicate function name ${mcpToolName} found in MCP tools. Please ensure function names are unique.`);\n }\n functionMap[mcpToolName] = mcpClient;\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (!_d && !_a && (_b = _e.return)) await _b.call(_e);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n this.mcpTools = mcpTools;\n this.functionNameToMcpClient = functionMap;\n }\n async tool() {\n await this.initialize();\n return mcpToolsToGeminiTool(this.mcpTools, this.config);\n }\n async callTool(functionCalls) {\n await this.initialize();\n const functionCallResponseParts = [];\n for (const functionCall of functionCalls) {\n if (functionCall.name in this.functionNameToMcpClient) {\n const mcpClient = this.functionNameToMcpClient[functionCall.name];\n let requestOptions = undefined;\n // TODO: b/424238654 - Add support for finer grained timeout control.\n if (this.config.timeout) {\n requestOptions = {\n timeout: this.config.timeout,\n };\n }\n const callToolResponse = await mcpClient.callTool({\n name: functionCall.name,\n arguments: functionCall.args,\n }, \n // Set the result schema to undefined to allow MCP to rely on the\n // default schema.\n undefined, requestOptions);\n functionCallResponseParts.push({\n functionResponse: {\n name: functionCall.name,\n response: callToolResponse.isError\n ? { error: callToolResponse }\n : callToolResponse,\n },\n });\n }\n }\n return functionCallResponseParts;\n }\n}\nfunction isMcpClient(client) {\n return (client !== null &&\n typeof client === 'object' &&\n 'listTools' in client &&\n typeof client.listTools === 'function');\n}\n/**\n * Creates a McpCallableTool from MCP clients and an optional config.\n *\n * The callable tool can invoke the MCP clients with given function call\n * arguments. (often for automatic function calling).\n * Use the config to modify tool parameters such as behavior.\n *\n * @experimental Built-in MCP support is an experimental feature, may change in future\n * versions.\n */\nfunction mcpToTool(...args) {\n // Set MCP usage for telemetry.\n hasMcpToolUsageFromMcpToTool = true;\n if (args.length === 0) {\n throw new Error('No MCP clients provided');\n }\n const maybeConfig = args[args.length - 1];\n if (isMcpClient(maybeConfig)) {\n return McpCallableTool.create(args, {});\n }\n return McpCallableTool.create(args.slice(0, args.length - 1), maybeConfig);\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Handles incoming messages from the WebSocket.\n *\n * @remarks\n * This function is responsible for parsing incoming messages, transforming them\n * into LiveMusicServerMessage, and then calling the onmessage callback.\n * Note that the first message which is received from the server is a\n * setupComplete message.\n *\n * @param apiClient The ApiClient instance.\n * @param onmessage The user-provided onmessage callback (if any).\n * @param event The MessageEvent from the WebSocket.\n */\nasync function handleWebSocketMessage$1(apiClient, onmessage, event) {\n const serverMessage = new LiveMusicServerMessage();\n let data;\n if (event.data instanceof Blob) {\n data = JSON.parse(await event.data.text());\n }\n else {\n data = JSON.parse(event.data);\n }\n Object.assign(serverMessage, data);\n onmessage(serverMessage);\n}\n/**\n LiveMusic class encapsulates the configuration for live music\n generation via Lyria Live models.\n\n @experimental\n */\nclass LiveMusic {\n constructor(apiClient, auth, webSocketFactory) {\n this.apiClient = apiClient;\n this.auth = auth;\n this.webSocketFactory = webSocketFactory;\n }\n /**\n Establishes a connection to the specified model and returns a\n LiveMusicSession object representing that connection.\n \n @experimental\n \n @remarks\n \n @param params - The parameters for establishing a connection to the model.\n @return A live session.\n \n @example\n ```ts\n let model = 'models/lyria-realtime-exp';\n const session = await ai.live.music.connect({\n model: model,\n callbacks: {\n onmessage: (e: MessageEvent) => {\n console.log('Received message from the server: %s\\n', debug(e.data));\n },\n onerror: (e: ErrorEvent) => {\n console.log('Error occurred: %s\\n', debug(e.error));\n },\n onclose: (e: CloseEvent) => {\n console.log('Connection closed.');\n },\n },\n });\n ```\n */\n async connect(params) {\n var _a, _b;\n if (this.apiClient.isVertexAI()) {\n throw new Error('Live music is not supported for Vertex AI.');\n }\n console.warn('Live music generation is experimental and may change in future versions.');\n const websocketBaseUrl = this.apiClient.getWebsocketBaseUrl();\n const apiVersion = this.apiClient.getApiVersion();\n const headers = mapToHeaders$1(this.apiClient.getDefaultHeaders());\n const apiKey = this.apiClient.getApiKey();\n const url = `${websocketBaseUrl}/ws/google.ai.generativelanguage.${apiVersion}.GenerativeService.BidiGenerateMusic?key=${apiKey}`;\n let onopenResolve = () => { };\n const onopenPromise = new Promise((resolve) => {\n onopenResolve = resolve;\n });\n const callbacks = params.callbacks;\n const onopenAwaitedCallback = function () {\n onopenResolve({});\n };\n const apiClient = this.apiClient;\n const websocketCallbacks = {\n onopen: onopenAwaitedCallback,\n onmessage: (event) => {\n void handleWebSocketMessage$1(apiClient, callbacks.onmessage, event);\n },\n onerror: (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onerror) !== null && _a !== void 0 ? _a : function (e) {\n },\n onclose: (_b = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onclose) !== null && _b !== void 0 ? _b : function (e) {\n },\n };\n const conn = this.webSocketFactory.create(url, headersToMap$1(headers), websocketCallbacks);\n conn.connect();\n // Wait for the websocket to open before sending requests.\n await onopenPromise;\n const model = tModel(this.apiClient, params.model);\n const setup = { model };\n const clientMessage = { setup };\n conn.send(JSON.stringify(clientMessage));\n return new LiveMusicSession(conn, this.apiClient);\n }\n}\n/**\n Represents a connection to the API.\n\n @experimental\n */\nclass LiveMusicSession {\n constructor(conn, apiClient) {\n this.conn = conn;\n this.apiClient = apiClient;\n }\n /**\n Sets inputs to steer music generation. Updates the session's current\n weighted prompts.\n \n @param params - Contains one property, `weightedPrompts`.\n \n - `weightedPrompts` to send to the model; weights are normalized to\n sum to 1.0.\n \n @experimental\n */\n async setWeightedPrompts(params) {\n if (!params.weightedPrompts ||\n Object.keys(params.weightedPrompts).length === 0) {\n throw new Error('Weighted prompts must be set and contain at least one entry.');\n }\n const clientContent = liveMusicSetWeightedPromptsParametersToMldev(params);\n this.conn.send(JSON.stringify({ clientContent }));\n }\n /**\n Sets a configuration to the model. Updates the session's current\n music generation config.\n \n @param params - Contains one property, `musicGenerationConfig`.\n \n - `musicGenerationConfig` to set in the model. Passing an empty or\n undefined config to the model will reset the config to defaults.\n \n @experimental\n */\n async setMusicGenerationConfig(params) {\n if (!params.musicGenerationConfig) {\n params.musicGenerationConfig = {};\n }\n const setConfigParameters = liveMusicSetConfigParametersToMldev(params);\n this.conn.send(JSON.stringify(setConfigParameters));\n }\n sendPlaybackControl(playbackControl) {\n const clientMessage = { playbackControl };\n this.conn.send(JSON.stringify(clientMessage));\n }\n /**\n * Start the music stream.\n *\n * @experimental\n */\n play() {\n this.sendPlaybackControl(LiveMusicPlaybackControl.PLAY);\n }\n /**\n * Temporarily halt the music stream. Use `play` to resume from the current\n * position.\n *\n * @experimental\n */\n pause() {\n this.sendPlaybackControl(LiveMusicPlaybackControl.PAUSE);\n }\n /**\n * Stop the music stream and reset the state. Retains the current prompts\n * and config.\n *\n * @experimental\n */\n stop() {\n this.sendPlaybackControl(LiveMusicPlaybackControl.STOP);\n }\n /**\n * Resets the context of the music generation without stopping it.\n * Retains the current prompts and config.\n *\n * @experimental\n */\n resetContext() {\n this.sendPlaybackControl(LiveMusicPlaybackControl.RESET_CONTEXT);\n }\n /**\n Terminates the WebSocket connection.\n \n @experimental\n */\n close() {\n this.conn.close();\n }\n}\n// Converts an headers object to a \"map\" object as expected by the WebSocket\n// constructor. We use this as the Auth interface works with Headers objects\n// while the WebSocket constructor takes a map.\nfunction headersToMap$1(headers) {\n const headerMap = {};\n headers.forEach((value, key) => {\n headerMap[key] = value;\n });\n return headerMap;\n}\n// Converts a \"map\" object to a headers object. We use this as the Auth\n// interface works with Headers objects while the API client default headers\n// returns a map.\nfunction mapToHeaders$1(map) {\n const headers = new Headers();\n for (const [key, value] of Object.entries(map)) {\n headers.append(key, value);\n }\n return headers;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst FUNCTION_RESPONSE_REQUIRES_ID = 'FunctionResponse request must have an `id` field from the response of a ToolCall.FunctionalCalls in Google AI.';\n/**\n * Handles incoming messages from the WebSocket.\n *\n * @remarks\n * This function is responsible for parsing incoming messages, transforming them\n * into LiveServerMessages, and then calling the onmessage callback. Note that\n * the first message which is received from the server is a setupComplete\n * message.\n *\n * @param apiClient The ApiClient instance.\n * @param onmessage The user-provided onmessage callback (if any).\n * @param event The MessageEvent from the WebSocket.\n */\nasync function handleWebSocketMessage(apiClient, onmessage, event) {\n const serverMessage = new LiveServerMessage();\n let jsonData;\n if (event.data instanceof Blob) {\n jsonData = await event.data.text();\n }\n else if (event.data instanceof ArrayBuffer) {\n jsonData = new TextDecoder().decode(event.data);\n }\n else {\n jsonData = event.data;\n }\n const data = JSON.parse(jsonData);\n if (apiClient.isVertexAI()) {\n const resp = liveServerMessageFromVertex(data);\n Object.assign(serverMessage, resp);\n }\n else {\n const resp = data;\n Object.assign(serverMessage, resp);\n }\n onmessage(serverMessage);\n}\n/**\n Live class encapsulates the configuration for live interaction with the\n Generative Language API. It embeds ApiClient for general API settings.\n\n @experimental\n */\nclass Live {\n constructor(apiClient, auth, webSocketFactory) {\n this.apiClient = apiClient;\n this.auth = auth;\n this.webSocketFactory = webSocketFactory;\n this.music = new LiveMusic(this.apiClient, this.auth, this.webSocketFactory);\n }\n /**\n Establishes a connection to the specified model with the given\n configuration and returns a Session object representing that connection.\n \n @experimental Built-in MCP support is an experimental feature, may change in\n future versions.\n \n @remarks\n \n @param params - The parameters for establishing a connection to the model.\n @return A live session.\n \n @example\n ```ts\n let model: string;\n if (GOOGLE_GENAI_USE_VERTEXAI) {\n model = 'gemini-2.0-flash-live-preview-04-09';\n } else {\n model = 'gemini-live-2.5-flash-preview';\n }\n const session = await ai.live.connect({\n model: model,\n config: {\n responseModalities: [Modality.AUDIO],\n },\n callbacks: {\n onopen: () => {\n console.log('Connected to the socket.');\n },\n onmessage: (e: MessageEvent) => {\n console.log('Received message from the server: %s\\n', debug(e.data));\n },\n onerror: (e: ErrorEvent) => {\n console.log('Error occurred: %s\\n', debug(e.error));\n },\n onclose: (e: CloseEvent) => {\n console.log('Connection closed.');\n },\n },\n });\n ```\n */\n async connect(params) {\n var _a, _b, _c, _d, _e, _f;\n // TODO: b/404946746 - Support per request HTTP options.\n if (params.config && params.config.httpOptions) {\n throw new Error('The Live module does not support httpOptions at request-level in' +\n ' LiveConnectConfig yet. Please use the client-level httpOptions' +\n ' configuration instead.');\n }\n const websocketBaseUrl = this.apiClient.getWebsocketBaseUrl();\n const apiVersion = this.apiClient.getApiVersion();\n let url;\n const clientHeaders = this.apiClient.getHeaders();\n if (params.config &&\n params.config.tools &&\n hasMcpToolUsage(params.config.tools)) {\n setMcpUsageHeader(clientHeaders);\n }\n const headers = mapToHeaders(clientHeaders);\n if (this.apiClient.isVertexAI()) {\n const project = this.apiClient.getProject();\n const location = this.apiClient.getLocation();\n const apiKey = this.apiClient.getApiKey();\n const hasStandardAuth = (!!project && !!location) || !!apiKey;\n if (this.apiClient.getCustomBaseUrl() && !hasStandardAuth) {\n // Custom base URL without standard auth (e.g., proxy).\n url = websocketBaseUrl;\n // Auth headers are assumed to be in `clientHeaders` from httpOptions.\n }\n else {\n url = `${websocketBaseUrl}/ws/google.cloud.aiplatform.${apiVersion}.LlmBidiService/BidiGenerateContent`;\n await this.auth.addAuthHeaders(headers, url);\n }\n }\n else {\n const apiKey = this.apiClient.getApiKey();\n let method = 'BidiGenerateContent';\n let keyName = 'key';\n if (apiKey === null || apiKey === void 0 ? void 0 : apiKey.startsWith('auth_tokens/')) {\n console.warn('Warning: Ephemeral token support is experimental and may change in future versions.');\n if (apiVersion !== 'v1alpha') {\n console.warn(\"Warning: The SDK's ephemeral token support is in v1alpha only. Please use const ai = new GoogleGenAI({apiKey: token.name, httpOptions: { apiVersion: 'v1alpha' }}); before session connection.\");\n }\n method = 'BidiGenerateContentConstrained';\n keyName = 'access_token';\n }\n url = `${websocketBaseUrl}/ws/google.ai.generativelanguage.${apiVersion}.GenerativeService.${method}?${keyName}=${apiKey}`;\n }\n let onopenResolve = () => { };\n const onopenPromise = new Promise((resolve) => {\n onopenResolve = resolve;\n });\n const callbacks = params.callbacks;\n const onopenAwaitedCallback = function () {\n var _a;\n (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onopen) === null || _a === void 0 ? void 0 : _a.call(callbacks);\n onopenResolve({});\n };\n const apiClient = this.apiClient;\n let sessionResolved = false;\n const messageQueue = [];\n let setupCompleteResolve = () => { };\n const setupCompletePromise = new Promise((resolve) => {\n setupCompleteResolve = resolve;\n });\n const websocketCallbacks = {\n onopen: onopenAwaitedCallback,\n onmessage: (event) => {\n void handleWebSocketMessage(apiClient, (msg) => {\n if (msg['setupComplete'] && !session.setupComplete) {\n session.setupComplete = msg['setupComplete'];\n setupCompleteResolve({});\n }\n if (sessionResolved) {\n callbacks.onmessage(msg);\n }\n else {\n messageQueue.push(msg);\n }\n }, event);\n },\n onerror: (_a = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onerror) !== null && _a !== void 0 ? _a : function (e) {\n },\n onclose: (_b = callbacks === null || callbacks === void 0 ? void 0 : callbacks.onclose) !== null && _b !== void 0 ? _b : function (e) {\n },\n };\n const conn = this.webSocketFactory.create(url, headersToMap(headers), websocketCallbacks);\n conn.connect();\n // Wait for the websocket to open before sending requests.\n await onopenPromise;\n let transformedModel = tModel(this.apiClient, params.model);\n if (this.apiClient.isVertexAI() &&\n transformedModel.startsWith('publishers/')) {\n const project = this.apiClient.getProject();\n const location = this.apiClient.getLocation();\n if (project && location) {\n transformedModel =\n `projects/${project}/locations/${location}/` + transformedModel;\n }\n }\n let clientMessage = {};\n if (this.apiClient.isVertexAI() &&\n ((_c = params.config) === null || _c === void 0 ? void 0 : _c.responseModalities) === undefined) {\n // Set default to AUDIO to align with MLDev API.\n if (params.config === undefined) {\n params.config = { responseModalities: [Modality.AUDIO] };\n }\n else {\n params.config.responseModalities = [Modality.AUDIO];\n }\n }\n if ((_d = params.config) === null || _d === void 0 ? void 0 : _d.generationConfig) {\n // Raise deprecation warning for generationConfig.\n console.warn('Setting `LiveConnectConfig.generation_config` is deprecated, please set the fields on `LiveConnectConfig` directly. It will be removed in the next major version (not before 7/31/2026).');\n }\n const inputTools = (_f = (_e = params.config) === null || _e === void 0 ? void 0 : _e.tools) !== null && _f !== void 0 ? _f : [];\n const convertedTools = [];\n for (const tool of inputTools) {\n if (this.isCallableTool(tool)) {\n const callableTool = tool;\n convertedTools.push(await callableTool.tool());\n }\n else {\n convertedTools.push(tool);\n }\n }\n if (convertedTools.length > 0) {\n params.config.tools = convertedTools;\n }\n const liveConnectParameters = {\n model: transformedModel,\n config: params.config,\n callbacks: params.callbacks,\n };\n if (this.apiClient.isVertexAI()) {\n clientMessage = liveConnectParametersToVertex(this.apiClient, liveConnectParameters);\n }\n else {\n clientMessage = liveConnectParametersToMldev(this.apiClient, liveConnectParameters);\n }\n delete clientMessage['config'];\n const session = new Session(conn, this.apiClient);\n conn.send(JSON.stringify(clientMessage));\n await setupCompletePromise;\n sessionResolved = true;\n for (const msg of messageQueue) {\n callbacks.onmessage(msg);\n }\n return session;\n }\n // TODO: b/416041229 - Abstract this method to a common place.\n isCallableTool(tool) {\n return 'callTool' in tool && typeof tool.callTool === 'function';\n }\n}\nconst defaultLiveSendClientContentParamerters = {\n turnComplete: true,\n};\n/**\n Represents a connection to the API.\n\n @experimental\n */\nclass Session {\n constructor(conn, apiClient) {\n this.conn = conn;\n this.apiClient = apiClient;\n }\n tLiveClientContent(apiClient, params) {\n if (params.turns !== null && params.turns !== undefined) {\n let contents = [];\n try {\n contents = tContents(params.turns);\n if (!apiClient.isVertexAI()) {\n contents = contents.map((item) => contentToMldev$1(item));\n }\n }\n catch (_a) {\n throw new Error(`Failed to parse client content \"turns\", type: '${typeof params.turns}'`);\n }\n return {\n clientContent: { turns: contents, turnComplete: params.turnComplete },\n };\n }\n return {\n clientContent: { turnComplete: params.turnComplete },\n };\n }\n tLiveClienttToolResponse(apiClient, params) {\n let functionResponses = [];\n if (params.functionResponses == null) {\n throw new Error('functionResponses is required.');\n }\n if (!Array.isArray(params.functionResponses)) {\n functionResponses = [params.functionResponses];\n }\n else {\n functionResponses = params.functionResponses;\n }\n if (functionResponses.length === 0) {\n throw new Error('functionResponses is required.');\n }\n for (const functionResponse of functionResponses) {\n if (typeof functionResponse !== 'object' ||\n functionResponse === null ||\n !('name' in functionResponse) ||\n !('response' in functionResponse)) {\n throw new Error(`Could not parse function response, type '${typeof functionResponse}'.`);\n }\n if (!apiClient.isVertexAI() && !('id' in functionResponse)) {\n throw new Error(FUNCTION_RESPONSE_REQUIRES_ID);\n }\n }\n const clientMessage = {\n toolResponse: { 'functionResponses': functionResponses },\n };\n return clientMessage;\n }\n /**\n Send a message over the established connection.\n \n @param params - Contains two **optional** properties, `turns` and\n `turnComplete`.\n \n - `turns` will be converted to a `Content[]`\n - `turnComplete: true` [default] indicates that you are done sending\n content and expect a response. If `turnComplete: false`, the server\n will wait for additional messages before starting generation.\n \n @experimental\n \n @remarks\n There are two ways to send messages to the live API:\n `sendClientContent` and `sendRealtimeInput`.\n \n `sendClientContent` messages are added to the model context **in order**.\n Having a conversation using `sendClientContent` messages is roughly\n equivalent to using the `Chat.sendMessageStream`, except that the state of\n the `chat` history is stored on the API server instead of locally.\n \n Because of `sendClientContent`'s order guarantee, the model cannot respons\n as quickly to `sendClientContent` messages as to `sendRealtimeInput`\n messages. This makes the biggest difference when sending objects that have\n significant preprocessing time (typically images).\n \n The `sendClientContent` message sends a `Content[]`\n which has more options than the `Blob` sent by `sendRealtimeInput`.\n \n So the main use-cases for `sendClientContent` over `sendRealtimeInput` are:\n \n - Sending anything that can't be represented as a `Blob` (text,\n `sendClientContent({turns=\"Hello?\"}`)).\n - Managing turns when not using audio input and voice activity detection.\n (`sendClientContent({turnComplete:true})` or the short form\n `sendClientContent()`)\n - Prefilling a conversation context\n ```\n sendClientContent({\n turns: [\n Content({role:user, parts:...}),\n Content({role:user, parts:...}),\n ...\n ]\n })\n ```\n @experimental\n */\n sendClientContent(params) {\n params = Object.assign(Object.assign({}, defaultLiveSendClientContentParamerters), params);\n const clientMessage = this.tLiveClientContent(this.apiClient, params);\n this.conn.send(JSON.stringify(clientMessage));\n }\n /**\n Send a realtime message over the established connection.\n \n @param params - Contains one property, `media`.\n \n - `media` will be converted to a `Blob`\n \n @experimental\n \n @remarks\n Use `sendRealtimeInput` for realtime audio chunks and video frames (images).\n \n With `sendRealtimeInput` the api will respond to audio automatically\n based on voice activity detection (VAD).\n \n `sendRealtimeInput` is optimized for responsivness at the expense of\n deterministic ordering guarantees. Audio and video tokens are to the\n context when they become available.\n \n Note: The Call signature expects a `Blob` object, but only a subset\n of audio and image mimetypes are allowed.\n */\n sendRealtimeInput(params) {\n let clientMessage = {};\n if (this.apiClient.isVertexAI()) {\n clientMessage = {\n 'realtimeInput': liveSendRealtimeInputParametersToVertex(params),\n };\n }\n else {\n clientMessage = {\n 'realtimeInput': liveSendRealtimeInputParametersToMldev(params),\n };\n }\n this.conn.send(JSON.stringify(clientMessage));\n }\n /**\n Send a function response message over the established connection.\n \n @param params - Contains property `functionResponses`.\n \n - `functionResponses` will be converted to a `functionResponses[]`\n \n @remarks\n Use `sendFunctionResponse` to reply to `LiveServerToolCall` from the server.\n \n Use {@link types.LiveConnectConfig#tools} to configure the callable functions.\n \n @experimental\n */\n sendToolResponse(params) {\n if (params.functionResponses == null) {\n throw new Error('Tool response parameters are required.');\n }\n const clientMessage = this.tLiveClienttToolResponse(this.apiClient, params);\n this.conn.send(JSON.stringify(clientMessage));\n }\n /**\n Terminates the WebSocket connection.\n \n @experimental\n \n @example\n ```ts\n let model: string;\n if (GOOGLE_GENAI_USE_VERTEXAI) {\n model = 'gemini-2.0-flash-live-preview-04-09';\n } else {\n model = 'gemini-live-2.5-flash-preview';\n }\n const session = await ai.live.connect({\n model: model,\n config: {\n responseModalities: [Modality.AUDIO],\n }\n });\n \n session.close();\n ```\n */\n close() {\n this.conn.close();\n }\n}\n// Converts an headers object to a \"map\" object as expected by the WebSocket\n// constructor. We use this as the Auth interface works with Headers objects\n// while the WebSocket constructor takes a map.\nfunction headersToMap(headers) {\n const headerMap = {};\n headers.forEach((value, key) => {\n headerMap[key] = value;\n });\n return headerMap;\n}\n// Converts a \"map\" object to a headers object. We use this as the Auth\n// interface works with Headers objects while the API client default headers\n// returns a map.\nfunction mapToHeaders(map) {\n const headers = new Headers();\n for (const [key, value] of Object.entries(map)) {\n headers.append(key, value);\n }\n return headers;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst DEFAULT_MAX_REMOTE_CALLS = 10;\n/** Returns whether automatic function calling is disabled. */\nfunction shouldDisableAfc(config) {\n var _a, _b, _c;\n if ((_a = config === null || config === void 0 ? void 0 : config.automaticFunctionCalling) === null || _a === void 0 ? void 0 : _a.disable) {\n return true;\n }\n let callableToolsPresent = false;\n for (const tool of (_b = config === null || config === void 0 ? void 0 : config.tools) !== null && _b !== void 0 ? _b : []) {\n if (isCallableTool(tool)) {\n callableToolsPresent = true;\n break;\n }\n }\n if (!callableToolsPresent) {\n return true;\n }\n const maxCalls = (_c = config === null || config === void 0 ? void 0 : config.automaticFunctionCalling) === null || _c === void 0 ? void 0 : _c.maximumRemoteCalls;\n if ((maxCalls && (maxCalls < 0 || !Number.isInteger(maxCalls))) ||\n maxCalls == 0) {\n console.warn('Invalid maximumRemoteCalls value provided for automatic function calling. Disabled automatic function calling. Please provide a valid integer value greater than 0. maximumRemoteCalls provided:', maxCalls);\n return true;\n }\n return false;\n}\nfunction isCallableTool(tool) {\n return 'callTool' in tool && typeof tool.callTool === 'function';\n}\n// Checks whether the list of tools contains any CallableTools. Will return true\n// if there is at least one CallableTool.\nfunction hasCallableTools(params) {\n var _a, _b, _c;\n return (_c = (_b = (_a = params.config) === null || _a === void 0 ? void 0 : _a.tools) === null || _b === void 0 ? void 0 : _b.some((tool) => isCallableTool(tool))) !== null && _c !== void 0 ? _c : false;\n}\n/**\n * Returns the indexes of the tools that are not compatible with AFC.\n */\nfunction findAfcIncompatibleToolIndexes(params) {\n var _a;\n // Use number[] for an array of numbers in TypeScript\n const afcIncompatibleToolIndexes = [];\n if (!((_a = params === null || params === void 0 ? void 0 : params.config) === null || _a === void 0 ? void 0 : _a.tools)) {\n return afcIncompatibleToolIndexes;\n }\n params.config.tools.forEach((tool, index) => {\n if (isCallableTool(tool)) {\n return;\n }\n const geminiTool = tool;\n if (geminiTool.functionDeclarations &&\n geminiTool.functionDeclarations.length > 0) {\n afcIncompatibleToolIndexes.push(index);\n }\n });\n return afcIncompatibleToolIndexes;\n}\n/**\n * Returns whether to append automatic function calling history to the\n * response.\n */\nfunction shouldAppendAfcHistory(config) {\n var _a;\n return !((_a = config === null || config === void 0 ? void 0 : config.automaticFunctionCalling) === null || _a === void 0 ? void 0 : _a.ignoreCallHistory);\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass Models extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n /**\n * Calculates embeddings for the given contents.\n *\n * @param params - The parameters for embedding contents.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.embedContent({\n * model: 'text-embedding-004',\n * contents: [\n * 'What is your name?',\n * 'What is your favorite color?',\n * ],\n * config: {\n * outputDimensionality: 64,\n * },\n * });\n * console.log(response);\n * ```\n */\n this.embedContent = async (params) => {\n if (!this.apiClient.isVertexAI()) {\n const isGeminiEmbedding2Model = params.model.includes('gemini-embedding-2');\n if (isGeminiEmbedding2Model) {\n params.contents = tContents(params.contents);\n }\n return await this.embedContentInternal(params);\n }\n const isVertexEmbedContentModel = (params.model.includes('gemini') &&\n params.model !== 'gemini-embedding-001') ||\n params.model.includes('maas');\n if (isVertexEmbedContentModel) {\n const contents = tContents(params.contents);\n if (contents.length > 1) {\n throw new Error('The embedContent API for this model only supports one content at a time.');\n }\n const paramsPrivate = Object.assign(Object.assign({}, params), { content: contents[0], embeddingApiType: EmbeddingApiType.EMBED_CONTENT });\n return await this.embedContentInternal(paramsPrivate);\n }\n else {\n const paramsPrivate = Object.assign(Object.assign({}, params), { embeddingApiType: EmbeddingApiType.PREDICT });\n return await this.embedContentInternal(paramsPrivate);\n }\n };\n /**\n * Makes an API request to generate content with a given model.\n *\n * For the `model` parameter, supported formats for Gemini Enterprise Agent Platform API include:\n * - The Gemini model ID, for example: 'gemini-2.0-flash'\n * - The full resource name starts with 'projects/', for example:\n * 'projects/my-project-id/locations/us-central1/publishers/google/models/gemini-2.0-flash'\n * - The partial resource name with 'publishers/', for example:\n * 'publishers/google/models/gemini-2.0-flash' or\n * 'publishers/meta/models/llama-3.1-405b-instruct-maas'\n * - `/` separated publisher and model name, for example:\n * 'google/gemini-2.0-flash' or 'meta/llama-3.1-405b-instruct-maas'\n *\n * For the `model` parameter, supported formats for Gemini API include:\n * - The Gemini model ID, for example: 'gemini-2.0-flash'\n * - The model name starts with 'models/', for example:\n * 'models/gemini-2.0-flash'\n * - For tuned models, the model name starts with 'tunedModels/',\n * for example:\n * 'tunedModels/1234567890123456789'\n *\n * Some models support multimodal input and output.\n *\n * @param params - The parameters for generating content.\n * @return The response from generating content.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContent({\n * model: 'gemini-2.0-flash',\n * contents: 'why is the sky blue?',\n * config: {\n * candidateCount: 2,\n * }\n * });\n * console.log(response);\n * ```\n */\n this.generateContent = async (params) => {\n var _a, _b, _c, _d, _e;\n const transformedParams = await this.processParamsMaybeAddMcpUsage(params);\n this.maybeMoveToResponseJsonSchema(params);\n if (!hasCallableTools(params) || shouldDisableAfc(params.config)) {\n return await this.generateContentInternal(transformedParams);\n }\n const incompatibleToolIndexes = findAfcIncompatibleToolIndexes(params);\n if (incompatibleToolIndexes.length > 0) {\n const formattedIndexes = incompatibleToolIndexes\n .map((index) => `tools[${index}]`)\n .join(', ');\n throw new Error(`Automatic function calling with CallableTools (or MCP objects) and basic FunctionDeclarations is not yet supported. Incompatible tools found at ${formattedIndexes}.`);\n }\n let response;\n let functionResponseContent;\n const automaticFunctionCallingHistory = tContents(transformedParams.contents);\n const maxRemoteCalls = (_c = (_b = (_a = transformedParams.config) === null || _a === void 0 ? void 0 : _a.automaticFunctionCalling) === null || _b === void 0 ? void 0 : _b.maximumRemoteCalls) !== null && _c !== void 0 ? _c : DEFAULT_MAX_REMOTE_CALLS;\n let remoteCalls = 0;\n while (remoteCalls < maxRemoteCalls) {\n response = await this.generateContentInternal(transformedParams);\n if (!response.functionCalls || response.functionCalls.length === 0) {\n break;\n }\n const responseContent = response.candidates[0].content;\n const functionResponseParts = [];\n for (const tool of (_e = (_d = params.config) === null || _d === void 0 ? void 0 : _d.tools) !== null && _e !== void 0 ? _e : []) {\n if (isCallableTool(tool)) {\n const callableTool = tool;\n const parts = await callableTool.callTool(response.functionCalls);\n functionResponseParts.push(...parts);\n }\n }\n remoteCalls++;\n functionResponseContent = {\n role: 'user',\n parts: functionResponseParts,\n };\n transformedParams.contents = tContents(transformedParams.contents);\n transformedParams.contents.push(responseContent);\n transformedParams.contents.push(functionResponseContent);\n if (shouldAppendAfcHistory(transformedParams.config)) {\n automaticFunctionCallingHistory.push(responseContent);\n automaticFunctionCallingHistory.push(functionResponseContent);\n }\n }\n if (shouldAppendAfcHistory(transformedParams.config)) {\n response.automaticFunctionCallingHistory =\n automaticFunctionCallingHistory;\n }\n return response;\n };\n /**\n * Makes an API request to generate content with a given model and yields the\n * response in chunks.\n *\n * For the `model` parameter, supported formats for Gemini Enterprise Agent Platform API include:\n * - The Gemini model ID, for example: 'gemini-2.0-flash'\n * - The full resource name starts with 'projects/', for example:\n * 'projects/my-project-id/locations/us-central1/publishers/google/models/gemini-2.0-flash'\n * - The partial resource name with 'publishers/', for example:\n * 'publishers/google/models/gemini-2.0-flash' or\n * 'publishers/meta/models/llama-3.1-405b-instruct-maas'\n * - `/` separated publisher and model name, for example:\n * 'google/gemini-2.0-flash' or 'meta/llama-3.1-405b-instruct-maas'\n *\n * For the `model` parameter, supported formats for Gemini API include:\n * - The Gemini model ID, for example: 'gemini-2.0-flash'\n * - The model name starts with 'models/', for example:\n * 'models/gemini-2.0-flash'\n * - For tuned models, the model name starts with 'tunedModels/',\n * for example:\n * 'tunedModels/1234567890123456789'\n *\n * Some models support multimodal input and output.\n *\n * @param params - The parameters for generating content with streaming response.\n * @return The response from generating content.\n *\n * @example\n * ```ts\n * const response = await ai.models.generateContentStream({\n * model: 'gemini-2.0-flash',\n * contents: 'why is the sky blue?',\n * config: {\n * maxOutputTokens: 200,\n * }\n * });\n * for await (const chunk of response) {\n * console.log(chunk);\n * }\n * ```\n */\n this.generateContentStream = async (params) => {\n var _a, _b, _c, _d, _e;\n this.maybeMoveToResponseJsonSchema(params);\n if (shouldDisableAfc(params.config)) {\n const transformedParams = await this.processParamsMaybeAddMcpUsage(params);\n return await this.generateContentStreamInternal(transformedParams);\n }\n const incompatibleToolIndexes = findAfcIncompatibleToolIndexes(params);\n if (incompatibleToolIndexes.length > 0) {\n const formattedIndexes = incompatibleToolIndexes\n .map((index) => `tools[${index}]`)\n .join(', ');\n throw new Error(`Incompatible tools found at ${formattedIndexes}. Automatic function calling with CallableTools (or MCP objects) and basic FunctionDeclarations\" is not yet supported.`);\n }\n // With tool compatibility confirmed, validate that the configuration are\n // compatible with each other and raise an error if invalid.\n const streamFunctionCall = (_c = (_b = (_a = params === null || params === void 0 ? void 0 : params.config) === null || _a === void 0 ? void 0 : _a.toolConfig) === null || _b === void 0 ? void 0 : _b.functionCallingConfig) === null || _c === void 0 ? void 0 : _c.streamFunctionCallArguments;\n const disableAfc = (_e = (_d = params === null || params === void 0 ? void 0 : params.config) === null || _d === void 0 ? void 0 : _d.automaticFunctionCalling) === null || _e === void 0 ? void 0 : _e.disable;\n if (streamFunctionCall && !disableAfc) {\n throw new Error(\"Running in streaming mode with 'streamFunctionCallArguments' enabled, \" +\n 'this feature is not compatible with automatic function calling (AFC). ' +\n \"Please set 'config.automaticFunctionCalling.disable' to true to disable AFC \" +\n \"or leave 'config.toolConfig.functionCallingConfig.streamFunctionCallArguments' \" +\n 'to be undefined or set to false to disable streaming function call arguments feature.');\n }\n return await this.processAfcStream(params);\n };\n /**\n * Generates an image based on a text description and configuration.\n *\n * @param params - The parameters for generating images.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await client.models.generateImages({\n * model: 'imagen-4.0-generate-001',\n * prompt: 'Robot holding a red skateboard',\n * config: {\n * numberOfImages: 1,\n * includeRaiReason: true,\n * },\n * });\n * console.log(response?.generatedImages?.[0]?.image?.imageBytes);\n * ```\n */\n this.generateImages = async (params) => {\n if (!Models.loggedGenerateImagesWarning) {\n Models.loggedGenerateImagesWarning = true;\n console.warn('The generateImages method is deprecated and will be removed in the next major release (not before Jan. 1 2027). Please use the generateContent method with image models instead. See https://ai.google.dev/gemini-api/docs/deprecations#imagen-models and https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/image-generation#generate-images');\n }\n return await this.generateImagesInternal(params).then((apiResponse) => {\n var _a;\n let positivePromptSafetyAttributes;\n const generatedImages = [];\n if (apiResponse === null || apiResponse === void 0 ? void 0 : apiResponse.generatedImages) {\n for (const generatedImage of apiResponse.generatedImages) {\n if (generatedImage &&\n (generatedImage === null || generatedImage === void 0 ? void 0 : generatedImage.safetyAttributes) &&\n ((_a = generatedImage === null || generatedImage === void 0 ? void 0 : generatedImage.safetyAttributes) === null || _a === void 0 ? void 0 : _a.contentType) === 'Positive Prompt') {\n positivePromptSafetyAttributes = generatedImage === null || generatedImage === void 0 ? void 0 : generatedImage.safetyAttributes;\n }\n else {\n generatedImages.push(generatedImage);\n }\n }\n }\n let response;\n if (positivePromptSafetyAttributes) {\n response = {\n generatedImages: generatedImages,\n positivePromptSafetyAttributes: positivePromptSafetyAttributes,\n sdkHttpResponse: apiResponse.sdkHttpResponse,\n };\n }\n else {\n response = {\n generatedImages: generatedImages,\n sdkHttpResponse: apiResponse.sdkHttpResponse,\n };\n }\n return response;\n });\n };\n this.list = async (params) => {\n var _a;\n const defaultConfig = {\n queryBase: true,\n };\n const actualConfig = Object.assign(Object.assign({}, defaultConfig), params === null || params === void 0 ? void 0 : params.config);\n const actualParams = {\n config: actualConfig,\n };\n if (this.apiClient.isVertexAI()) {\n if (!actualParams.config.queryBase) {\n if ((_a = actualParams.config) === null || _a === void 0 ? void 0 : _a.filter) {\n throw new Error('Filtering tuned models list is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n else {\n actualParams.config.filter = 'labels.tune-type:*';\n }\n }\n }\n return new Pager(PagedItem.PAGED_ITEM_MODELS, (x) => this.listInternal(x), await this.listInternal(actualParams), actualParams);\n };\n /**\n * Edits an image based on a prompt, list of reference images, and configuration.\n *\n * @param params - The parameters for editing an image.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await client.models.editImage({\n * model: 'imagen-3.0-capability-001',\n * prompt: 'Generate an image containing a mug with the product logo [1] visible on the side of the mug.',\n * referenceImages: [subjectReferenceImage]\n * config: {\n * numberOfImages: 1,\n * includeRaiReason: true,\n * },\n * });\n * console.log(response?.generatedImages?.[0]?.image?.imageBytes);\n * ```\n */\n this.editImage = async (params) => {\n if (!Models.loggedEditImageWarning) {\n Models.loggedEditImageWarning = true;\n console.warn('The editImage method is deprecated and will be removed in the next major release (not before Jan. 1 2027). Please use the generateContent method with image models instead. See https://ai.google.dev/gemini-api/docs/deprecations#imagen-models and https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/capabilities/gemini-edit-images#edit-an-image');\n }\n const paramsInternal = {\n model: params.model,\n prompt: params.prompt,\n referenceImages: [],\n config: params.config,\n };\n if (params.referenceImages) {\n if (params.referenceImages) {\n paramsInternal.referenceImages = params.referenceImages.map((img) => img.toReferenceImageAPI());\n }\n }\n return await this.editImageInternal(paramsInternal);\n };\n /**\n * Upscales an image based on an image, upscale factor, and configuration.\n * Only supported in Gemini Enterprise Agent Platform currently.\n *\n * @param params - The parameters for upscaling an image.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await client.models.upscaleImage({\n * model: 'imagen-4.0-upscale-preview',\n * image: image,\n * upscaleFactor: 'x2',\n * config: {\n * includeRaiReason: true,\n * },\n * });\n * console.log(response?.generatedImages?.[0]?.image?.imageBytes);\n * ```\n */\n this.upscaleImage = async (params) => {\n let apiConfig = {\n numberOfImages: 1,\n mode: 'upscale',\n };\n if (params.config) {\n apiConfig = Object.assign(Object.assign({}, apiConfig), params.config);\n }\n const apiParams = {\n model: params.model,\n image: params.image,\n upscaleFactor: params.upscaleFactor,\n config: apiConfig,\n };\n return await this.upscaleImageInternal(apiParams);\n };\n /**\n * Generates videos based on a text description and configuration.\n *\n * @param params - The parameters for generating videos.\n * @return A Promise<GenerateVideosOperation> which allows you to track the progress and eventually retrieve the generated videos using the operations.get method.\n *\n * @example\n * ```ts\n * const operation = await ai.models.generateVideos({\n * model: 'veo-2.0-generate-001',\n * source: {\n * prompt: 'A neon hologram of a cat driving at top speed',\n * },\n * config: {\n * numberOfVideos: 1\n * });\n *\n * while (!operation.done) {\n * await new Promise(resolve => setTimeout(resolve, 10000));\n * operation = await ai.operations.getVideosOperation({operation: operation});\n * }\n *\n * console.log(operation.response?.generatedVideos?.[0]?.video?.uri);\n * ```\n */\n this.generateVideos = async (params) => {\n var _a, _b, _c, _d, _e, _f;\n if ((params.prompt || params.image || params.video) && params.source) {\n throw new Error('Source and prompt/image/video are mutually exclusive. Please only use source.');\n }\n if (params.prompt || params.image || params.video) {\n if (!Models.loggedGenerateVideosWarning) {\n Models.loggedGenerateVideosWarning = true;\n console.warn('The generateVideos method with prompt/image/video arguments is deprecated and will be removed in a future major release (not before 2026-07-31). Please use the source argument instead.');\n }\n }\n // Gemini API does not support video bytes.\n if (!this.apiClient.isVertexAI()) {\n if (((_a = params.video) === null || _a === void 0 ? void 0 : _a.uri) && ((_b = params.video) === null || _b === void 0 ? void 0 : _b.videoBytes)) {\n params.video = {\n uri: params.video.uri,\n mimeType: params.video.mimeType,\n };\n }\n else if (((_d = (_c = params.source) === null || _c === void 0 ? void 0 : _c.video) === null || _d === void 0 ? void 0 : _d.uri) &&\n ((_f = (_e = params.source) === null || _e === void 0 ? void 0 : _e.video) === null || _f === void 0 ? void 0 : _f.videoBytes)) {\n params.source.video = {\n uri: params.source.video.uri,\n mimeType: params.source.video.mimeType,\n };\n }\n }\n return await this.generateVideosInternal(params);\n };\n }\n /**\n * This logic is needed for GenerateContentConfig only.\n * Previously we made GenerateContentConfig.responseSchema field to accept\n * unknown. Since v1.9.0, we switch to use backend JSON schema support.\n * To maintain backward compatibility, we move the data that was treated as\n * JSON schema from the responseSchema field to the responseJsonSchema field.\n */\n maybeMoveToResponseJsonSchema(params) {\n if (params.config && params.config.responseSchema) {\n if (!params.config.responseJsonSchema) {\n if (Object.keys(params.config.responseSchema).includes('$schema')) {\n params.config.responseJsonSchema = params.config.responseSchema;\n delete params.config.responseSchema;\n }\n }\n }\n return;\n }\n /**\n * Transforms the CallableTools in the parameters to be simply Tools, it\n * copies the params into a new object and replaces the tools, it does not\n * modify the original params. Also sets the MCP usage header if there are\n * MCP tools in the parameters.\n */\n async processParamsMaybeAddMcpUsage(params) {\n var _a, _b, _c;\n const tools = (_a = params.config) === null || _a === void 0 ? void 0 : _a.tools;\n if (!tools) {\n return params;\n }\n const transformedTools = await Promise.all(tools.map(async (tool) => {\n if (isCallableTool(tool)) {\n const callableTool = tool;\n return await callableTool.tool();\n }\n return tool;\n }));\n const newParams = {\n model: params.model,\n contents: params.contents,\n config: Object.assign(Object.assign({}, params.config), { tools: transformedTools }),\n };\n newParams.config.tools = transformedTools;\n if (params.config &&\n params.config.tools &&\n hasMcpToolUsage(params.config.tools)) {\n const headers = (_c = (_b = params.config.httpOptions) === null || _b === void 0 ? void 0 : _b.headers) !== null && _c !== void 0 ? _c : {};\n let newHeaders = Object.assign({}, headers);\n if (Object.keys(newHeaders).length === 0) {\n newHeaders = this.apiClient.getDefaultHeaders();\n }\n setMcpUsageHeader(newHeaders);\n newParams.config.httpOptions = Object.assign(Object.assign({}, params.config.httpOptions), { headers: newHeaders });\n }\n return newParams;\n }\n async initAfcToolsMap(params) {\n var _a, _b, _c;\n const afcTools = new Map();\n for (const tool of (_b = (_a = params.config) === null || _a === void 0 ? void 0 : _a.tools) !== null && _b !== void 0 ? _b : []) {\n if (isCallableTool(tool)) {\n const callableTool = tool;\n const toolDeclaration = await callableTool.tool();\n for (const declaration of (_c = toolDeclaration.functionDeclarations) !== null && _c !== void 0 ? _c : []) {\n if (!declaration.name) {\n throw new Error('Function declaration name is required.');\n }\n if (afcTools.has(declaration.name)) {\n throw new Error(`Duplicate tool declaration name: ${declaration.name}`);\n }\n afcTools.set(declaration.name, callableTool);\n }\n }\n }\n return afcTools;\n }\n async processAfcStream(params) {\n var _a, _b, _c;\n const maxRemoteCalls = (_c = (_b = (_a = params.config) === null || _a === void 0 ? void 0 : _a.automaticFunctionCalling) === null || _b === void 0 ? void 0 : _b.maximumRemoteCalls) !== null && _c !== void 0 ? _c : DEFAULT_MAX_REMOTE_CALLS;\n let wereFunctionsCalled = false;\n let remoteCallCount = 0;\n const afcToolsMap = await this.initAfcToolsMap(params);\n return (function (models, afcTools, params) {\n return __asyncGenerator(this, arguments, function* () {\n var _a, e_1, _b, _c;\n var _d, _e;\n while (remoteCallCount < maxRemoteCalls) {\n if (wereFunctionsCalled) {\n remoteCallCount++;\n wereFunctionsCalled = false;\n }\n const transformedParams = yield __await(models.processParamsMaybeAddMcpUsage(params));\n const response = yield __await(models.generateContentStreamInternal(transformedParams));\n const functionResponses = [];\n const responseContents = [];\n try {\n for (var _f = true, response_1 = (e_1 = void 0, __asyncValues(response)), response_1_1; response_1_1 = yield __await(response_1.next()), _a = response_1_1.done, !_a; _f = true) {\n _c = response_1_1.value;\n _f = false;\n const chunk = _c;\n yield yield __await(chunk);\n if (chunk.candidates && ((_d = chunk.candidates[0]) === null || _d === void 0 ? void 0 : _d.content)) {\n responseContents.push(chunk.candidates[0].content);\n for (const part of (_e = chunk.candidates[0].content.parts) !== null && _e !== void 0 ? _e : []) {\n if (remoteCallCount < maxRemoteCalls && part.functionCall) {\n if (!part.functionCall.name) {\n throw new Error('Function call name was not returned by the model.');\n }\n if (!afcTools.has(part.functionCall.name)) {\n throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${afcTools.keys()}, missing tool: ${part.functionCall.name}`);\n }\n else {\n const responseParts = yield __await(afcTools\n .get(part.functionCall.name)\n .callTool([part.functionCall]));\n functionResponses.push(...responseParts);\n }\n }\n }\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (!_f && !_a && (_b = response_1.return)) yield __await(_b.call(response_1));\n }\n finally { if (e_1) throw e_1.error; }\n }\n if (functionResponses.length > 0) {\n wereFunctionsCalled = true;\n const typedResponseChunk = new GenerateContentResponse();\n typedResponseChunk.candidates = [\n {\n content: {\n role: 'user',\n parts: functionResponses,\n },\n },\n ];\n yield yield __await(typedResponseChunk);\n const newContents = [];\n newContents.push(...responseContents);\n newContents.push({\n role: 'user',\n parts: functionResponses,\n });\n const updatedContents = tContents(params.contents).concat(newContents);\n params.contents = updatedContents;\n }\n else {\n break;\n }\n }\n });\n })(this, afcToolsMap, params);\n }\n async generateContentInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = generateContentParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:generateContent', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = generateContentResponseFromVertex(apiResponse);\n const typedResp = new GenerateContentResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = generateContentParametersToMldev(this.apiClient, params);\n path = formatMap('{model}:generateContent', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = generateContentResponseFromMldev(apiResponse);\n const typedResp = new GenerateContentResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n async generateContentStreamInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = generateContentParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:streamGenerateContent?alt=sse', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n const apiClient = this.apiClient;\n response = apiClient.requestStream({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n });\n return response.then(function (apiResponse) {\n return __asyncGenerator(this, arguments, function* () {\n var _a, e_2, _b, _c;\n try {\n for (var _d = true, apiResponse_1 = __asyncValues(apiResponse), apiResponse_1_1; apiResponse_1_1 = yield __await(apiResponse_1.next()), _a = apiResponse_1_1.done, !_a; _d = true) {\n _c = apiResponse_1_1.value;\n _d = false;\n const chunk = _c;\n const resp = generateContentResponseFromVertex((yield __await(chunk.json())), params);\n resp['sdkHttpResponse'] = {\n headers: chunk.headers,\n };\n const typedResp = new GenerateContentResponse();\n Object.assign(typedResp, resp);\n yield yield __await(typedResp);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (!_d && !_a && (_b = apiResponse_1.return)) yield __await(_b.call(apiResponse_1));\n }\n finally { if (e_2) throw e_2.error; }\n }\n });\n });\n }\n else {\n const body = generateContentParametersToMldev(this.apiClient, params);\n path = formatMap('{model}:streamGenerateContent?alt=sse', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n const apiClient = this.apiClient;\n response = apiClient.requestStream({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n });\n return response.then(function (apiResponse) {\n return __asyncGenerator(this, arguments, function* () {\n var _a, e_3, _b, _c;\n try {\n for (var _d = true, apiResponse_2 = __asyncValues(apiResponse), apiResponse_2_1; apiResponse_2_1 = yield __await(apiResponse_2.next()), _a = apiResponse_2_1.done, !_a; _d = true) {\n _c = apiResponse_2_1.value;\n _d = false;\n const chunk = _c;\n const resp = generateContentResponseFromMldev((yield __await(chunk.json())), params);\n resp['sdkHttpResponse'] = {\n headers: chunk.headers,\n };\n const typedResp = new GenerateContentResponse();\n Object.assign(typedResp, resp);\n yield yield __await(typedResp);\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (!_d && !_a && (_b = apiResponse_2.return)) yield __await(_b.call(apiResponse_2));\n }\n finally { if (e_3) throw e_3.error; }\n }\n });\n });\n }\n }\n /**\n * Calculates embeddings for the given contents. Only text is supported.\n *\n * @param params - The parameters for embedding contents.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.embedContent({\n * model: 'text-embedding-004',\n * contents: [\n * 'What is your name?',\n * 'What is your favorite color?',\n * ],\n * config: {\n * outputDimensionality: 64,\n * },\n * });\n * console.log(response);\n * ```\n */\n async embedContentInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = embedContentParametersPrivateToVertex(this.apiClient, params, params);\n const endpointUrl = tIsVertexEmbedContentModel(params.model)\n ? '{model}:embedContent'\n : '{model}:predict';\n path = formatMap(endpointUrl, body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = embedContentResponseFromVertex(apiResponse, params);\n const typedResp = new EmbedContentResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = embedContentParametersPrivateToMldev(this.apiClient, params);\n path = formatMap('{model}:batchEmbedContents', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = embedContentResponseFromMldev(apiResponse);\n const typedResp = new EmbedContentResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Private method for generating images.\n */\n async generateImagesInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = generateImagesParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:predict', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = generateImagesResponseFromVertex(apiResponse);\n const typedResp = new GenerateImagesResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n /**\n * Private method for editing an image.\n */\n async editImageInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = editImageParametersInternalToVertex(this.apiClient, params);\n path = formatMap('{model}:predict', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = editImageResponseFromVertex(apiResponse);\n const typedResp = new EditImageResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n /**\n * Private method for upscaling an image.\n */\n async upscaleImageInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = upscaleImageAPIParametersInternalToVertex(this.apiClient, params);\n path = formatMap('{model}:predict', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = upscaleImageResponseFromVertex(apiResponse);\n const typedResp = new UpscaleImageResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n /**\n * Recontextualizes an image.\n *\n * There is one type of recontextualization currently supported:\n * 1) Virtual Try-On: Generate images of persons modeling fashion products.\n *\n * @param params - The parameters for recontextualizing an image.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.recontextImage({\n * model: 'virtual-try-on-001',\n * source: {\n * personImage: personImage,\n * productImages: [productImage],\n * },\n * config: {\n * numberOfImages: 1,\n * },\n * });\n * console.log(response?.generatedImages?.[0]?.image?.imageBytes);\n * ```\n */\n async recontextImage(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = recontextImageParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:predict', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = recontextImageResponseFromVertex(apiResponse);\n const typedResp = new RecontextImageResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n /**\n * Segments an image, creating a mask of a specified area.\n *\n * @param params - The parameters for segmenting an image.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.segmentImage({\n * model: 'image-segmentation-001',\n * source: {\n * image: image,\n * },\n * config: {\n * mode: 'foreground',\n * },\n * });\n * console.log(response?.generatedMasks?.[0]?.mask?.imageBytes);\n * ```\n */\n async segmentImage(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = segmentImageParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:predict', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = segmentImageResponseFromVertex(apiResponse);\n const typedResp = new SegmentImageResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n /**\n * Fetches information about a model by name.\n *\n * @example\n * ```ts\n * const modelInfo = await ai.models.get({model: 'gemini-2.0-flash'});\n * ```\n */\n async get(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = getModelParametersToVertex(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = modelFromVertex(apiResponse);\n return resp;\n });\n }\n else {\n const body = getModelParametersToMldev(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = modelFromMldev(apiResponse);\n return resp;\n });\n }\n }\n async listInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = listModelsParametersToVertex(this.apiClient, params);\n path = formatMap('{models_url}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listModelsResponseFromVertex(apiResponse);\n const typedResp = new ListModelsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = listModelsParametersToMldev(this.apiClient, params);\n path = formatMap('{models_url}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listModelsResponseFromMldev(apiResponse);\n const typedResp = new ListModelsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Updates a tuned model by its name.\n *\n * @param params - The parameters for updating the model.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.update({\n * model: 'tuned-model-name',\n * config: {\n * displayName: 'New display name',\n * description: 'New description',\n * },\n * });\n * ```\n */\n async update(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = updateModelParametersToVertex(this.apiClient, params);\n path = formatMap('{model}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'PATCH',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = modelFromVertex(apiResponse);\n return resp;\n });\n }\n else {\n const body = updateModelParametersToMldev(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'PATCH',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = modelFromMldev(apiResponse);\n return resp;\n });\n }\n }\n /**\n * Deletes a tuned model by its name.\n *\n * @param params - The parameters for deleting the model.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.delete({model: 'tuned-model-name'});\n * ```\n */\n async delete(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = deleteModelParametersToVertex(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = deleteModelResponseFromVertex(apiResponse);\n const typedResp = new DeleteModelResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = deleteModelParametersToMldev(this.apiClient, params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'DELETE',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = deleteModelResponseFromMldev(apiResponse);\n const typedResp = new DeleteModelResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Counts the number of tokens in the given contents. Multimodal input is\n * supported for Gemini models.\n *\n * @param params - The parameters for counting tokens.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.countTokens({\n * model: 'gemini-2.0-flash',\n * contents: 'The quick brown fox jumps over the lazy dog.'\n * });\n * console.log(response);\n * ```\n */\n async countTokens(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = countTokensParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:countTokens', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = countTokensResponseFromVertex(apiResponse);\n const typedResp = new CountTokensResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = countTokensParametersToMldev(this.apiClient, params);\n path = formatMap('{model}:countTokens', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = countTokensResponseFromMldev(apiResponse);\n const typedResp = new CountTokensResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n /**\n * Given a list of contents, returns a corresponding TokensInfo containing\n * the list of tokens and list of token ids.\n *\n * This method is not supported by the Gemini Developer API.\n *\n * @param params - The parameters for computing tokens.\n * @return The response from the API.\n *\n * @example\n * ```ts\n * const response = await ai.models.computeTokens({\n * model: 'gemini-2.0-flash',\n * contents: 'What is your name?'\n * });\n * console.log(response);\n * ```\n */\n async computeTokens(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = computeTokensParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:computeTokens', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = computeTokensResponseFromVertex(apiResponse);\n const typedResp = new ComputeTokensResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n /**\n * Private method for generating videos.\n */\n async generateVideosInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = generateVideosParametersToVertex(this.apiClient, params);\n path = formatMap('{model}:predictLongRunning', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = generateVideosOperationFromVertex(apiResponse);\n const typedResp = new GenerateVideosOperation();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = generateVideosParametersToMldev(this.apiClient, params);\n path = formatMap('{model}:predictLongRunning', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((apiResponse) => {\n const resp = generateVideosOperationFromMldev(apiResponse);\n const typedResp = new GenerateVideosOperation();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n}\nModels.loggedGenerateImagesWarning = false;\nModels.loggedEditImageWarning = false;\nModels.loggedGenerateVideosWarning = false;\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass Operations extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n }\n /**\n * Gets the status of a long-running operation.\n *\n * @param parameters The parameters for the get operation request.\n * @return The updated Operation object, with the latest status or result.\n */\n async getVideosOperation(parameters) {\n const operation = parameters.operation;\n const config = parameters.config;\n if (operation.name === undefined || operation.name === '') {\n throw new Error('Operation name is required.');\n }\n if (this.apiClient.isVertexAI()) {\n const resourceName = operation.name.split('/operations/')[0];\n let httpOptions = undefined;\n if (config && 'httpOptions' in config) {\n httpOptions = config.httpOptions;\n }\n const rawOperation = await this.fetchPredictVideosOperationInternal({\n operationName: operation.name,\n resourceName: resourceName,\n config: { httpOptions: httpOptions },\n });\n return operation._fromAPIResponse({\n apiResponse: rawOperation,\n _isVertexAI: true,\n });\n }\n else {\n const rawOperation = await this.getVideosOperationInternal({\n operationName: operation.name,\n config: config,\n });\n return operation._fromAPIResponse({\n apiResponse: rawOperation,\n _isVertexAI: false,\n });\n }\n }\n /**\n * Gets the status of a long-running operation.\n *\n * @param parameters The parameters for the get operation request.\n * @return The updated Operation object, with the latest status or result.\n */\n async get(parameters) {\n const operation = parameters.operation;\n const config = parameters.config;\n if (operation.name === undefined || operation.name === '') {\n throw new Error('Operation name is required.');\n }\n if (this.apiClient.isVertexAI()) {\n const resourceName = operation.name.split('/operations/')[0];\n let httpOptions = undefined;\n if (config && 'httpOptions' in config) {\n httpOptions = config.httpOptions;\n }\n const rawOperation = await this.fetchPredictVideosOperationInternal({\n operationName: operation.name,\n resourceName: resourceName,\n config: { httpOptions: httpOptions },\n });\n return operation._fromAPIResponse({\n apiResponse: rawOperation,\n _isVertexAI: true,\n });\n }\n else {\n const rawOperation = await this.getVideosOperationInternal({\n operationName: operation.name,\n config: config,\n });\n return operation._fromAPIResponse({\n apiResponse: rawOperation,\n _isVertexAI: false,\n });\n }\n }\n async getVideosOperationInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = getOperationParametersToVertex(params);\n path = formatMap('{operationName}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response;\n }\n else {\n const body = getOperationParametersToMldev(params);\n path = formatMap('{operationName}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response;\n }\n }\n async fetchPredictVideosOperationInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = fetchPredictOperationParametersToVertex(params);\n path = formatMap('{resourceName}:fetchPredictOperation', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response;\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nfunction authConfigToMldev(fromObject) {\n const toObject = {};\n const fromApiKey = getValueByPath(fromObject, ['apiKey']);\n if (fromApiKey != null) {\n setValueByPath(toObject, ['apiKey'], fromApiKey);\n }\n if (getValueByPath(fromObject, ['apiKeyConfig']) !== undefined) {\n throw new Error('apiKeyConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['authType']) !== undefined) {\n throw new Error('authType parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['googleServiceAccountConfig']) !==\n undefined) {\n throw new Error('googleServiceAccountConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['httpBasicAuthConfig']) !== undefined) {\n throw new Error('httpBasicAuthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oauthConfig']) !== undefined) {\n throw new Error('oauthConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['oidcConfig']) !== undefined) {\n throw new Error('oidcConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction blobToMldev(fromObject) {\n const toObject = {};\n const fromData = getValueByPath(fromObject, ['data']);\n if (fromData != null) {\n setValueByPath(toObject, ['data'], fromData);\n }\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction contentToMldev(fromObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToMldev(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction createAuthTokenConfigToMldev(apiClient, fromObject, parentObject) {\n const toObject = {};\n const fromExpireTime = getValueByPath(fromObject, ['expireTime']);\n if (parentObject !== undefined && fromExpireTime != null) {\n setValueByPath(parentObject, ['expireTime'], fromExpireTime);\n }\n const fromNewSessionExpireTime = getValueByPath(fromObject, [\n 'newSessionExpireTime',\n ]);\n if (parentObject !== undefined && fromNewSessionExpireTime != null) {\n setValueByPath(parentObject, ['newSessionExpireTime'], fromNewSessionExpireTime);\n }\n const fromUses = getValueByPath(fromObject, ['uses']);\n if (parentObject !== undefined && fromUses != null) {\n setValueByPath(parentObject, ['uses'], fromUses);\n }\n const fromLiveConnectConstraints = getValueByPath(fromObject, [\n 'liveConnectConstraints',\n ]);\n if (parentObject !== undefined && fromLiveConnectConstraints != null) {\n setValueByPath(parentObject, ['bidiGenerateContentSetup'], liveConnectConstraintsToMldev(apiClient, fromLiveConnectConstraints));\n }\n const fromLockAdditionalFields = getValueByPath(fromObject, [\n 'lockAdditionalFields',\n ]);\n if (parentObject !== undefined && fromLockAdditionalFields != null) {\n setValueByPath(parentObject, ['fieldMask'], fromLockAdditionalFields);\n }\n return toObject;\n}\nfunction createAuthTokenParametersToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['config'], createAuthTokenConfigToMldev(apiClient, fromConfig, toObject));\n }\n return toObject;\n}\nfunction fileDataToMldev(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['displayName']) !== undefined) {\n throw new Error('displayName parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFileUri = getValueByPath(fromObject, ['fileUri']);\n if (fromFileUri != null) {\n setValueByPath(toObject, ['fileUri'], fromFileUri);\n }\n const fromMimeType = getValueByPath(fromObject, ['mimeType']);\n if (fromMimeType != null) {\n setValueByPath(toObject, ['mimeType'], fromMimeType);\n }\n return toObject;\n}\nfunction functionCallToMldev(fromObject) {\n const toObject = {};\n const fromArgs = getValueByPath(fromObject, ['args']);\n if (fromArgs != null) {\n setValueByPath(toObject, ['args'], fromArgs);\n }\n const fromId = getValueByPath(fromObject, ['id']);\n if (fromId != null) {\n setValueByPath(toObject, ['id'], fromId);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n if (getValueByPath(fromObject, ['partialArgs']) !== undefined) {\n throw new Error('partialArgs parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['willContinue']) !== undefined) {\n throw new Error('willContinue parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction googleMapsToMldev(fromObject) {\n const toObject = {};\n const fromAuthConfig = getValueByPath(fromObject, ['authConfig']);\n if (fromAuthConfig != null) {\n setValueByPath(toObject, ['authConfig'], authConfigToMldev(fromAuthConfig));\n }\n const fromEnableWidget = getValueByPath(fromObject, ['enableWidget']);\n if (fromEnableWidget != null) {\n setValueByPath(toObject, ['enableWidget'], fromEnableWidget);\n }\n if (getValueByPath(fromObject, ['groundingTypes']) !== undefined) {\n throw new Error('groundingTypes parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction googleSearchToMldev(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['blockingConfidence']) !== undefined) {\n throw new Error('blockingConfidence parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['excludeDomains']) !== undefined) {\n throw new Error('excludeDomains parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromSearchTypes = getValueByPath(fromObject, ['searchTypes']);\n if (fromSearchTypes != null) {\n setValueByPath(toObject, ['searchTypes'], fromSearchTypes);\n }\n const fromTimeRangeFilter = getValueByPath(fromObject, [\n 'timeRangeFilter',\n ]);\n if (fromTimeRangeFilter != null) {\n setValueByPath(toObject, ['timeRangeFilter'], fromTimeRangeFilter);\n }\n return toObject;\n}\nfunction liveConnectConfigToMldev(fromObject, parentObject) {\n const toObject = {};\n const fromGenerationConfig = getValueByPath(fromObject, [\n 'generationConfig',\n ]);\n if (parentObject !== undefined && fromGenerationConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig'], fromGenerationConfig);\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (parentObject !== undefined && fromResponseModalities != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'responseModalities'], fromResponseModalities);\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (parentObject !== undefined && fromTemperature != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'temperature'], fromTemperature);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (parentObject !== undefined && fromTopP != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'topP'], fromTopP);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (parentObject !== undefined && fromTopK != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'topK'], fromTopK);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (parentObject !== undefined && fromMaxOutputTokens != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (parentObject !== undefined && fromMediaResolution != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'mediaResolution'], fromMediaResolution);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (parentObject !== undefined && fromSeed != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'seed'], fromSeed);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (parentObject !== undefined && fromSpeechConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'speechConfig'], tLiveSpeechConfig(fromSpeechConfig));\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (parentObject !== undefined && fromThinkingConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'thinkingConfig'], fromThinkingConfig);\n }\n const fromEnableAffectiveDialog = getValueByPath(fromObject, [\n 'enableAffectiveDialog',\n ]);\n if (parentObject !== undefined && fromEnableAffectiveDialog != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'enableAffectiveDialog'], fromEnableAffectiveDialog);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (parentObject !== undefined && fromSystemInstruction != null) {\n setValueByPath(parentObject, ['setup', 'systemInstruction'], contentToMldev(tContent(fromSystemInstruction)));\n }\n const fromTools = getValueByPath(fromObject, ['tools']);\n if (parentObject !== undefined && fromTools != null) {\n let transformedList = tTools(fromTools);\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return toolToMldev(tTool(item));\n });\n }\n setValueByPath(parentObject, ['setup', 'tools'], transformedList);\n }\n const fromSessionResumption = getValueByPath(fromObject, [\n 'sessionResumption',\n ]);\n if (parentObject !== undefined && fromSessionResumption != null) {\n setValueByPath(parentObject, ['setup', 'sessionResumption'], sessionResumptionConfigToMldev(fromSessionResumption));\n }\n const fromInputAudioTranscription = getValueByPath(fromObject, [\n 'inputAudioTranscription',\n ]);\n if (parentObject !== undefined && fromInputAudioTranscription != null) {\n setValueByPath(parentObject, ['setup', 'inputAudioTranscription'], fromInputAudioTranscription);\n }\n const fromOutputAudioTranscription = getValueByPath(fromObject, [\n 'outputAudioTranscription',\n ]);\n if (parentObject !== undefined && fromOutputAudioTranscription != null) {\n setValueByPath(parentObject, ['setup', 'outputAudioTranscription'], fromOutputAudioTranscription);\n }\n const fromRealtimeInputConfig = getValueByPath(fromObject, [\n 'realtimeInputConfig',\n ]);\n if (parentObject !== undefined && fromRealtimeInputConfig != null) {\n setValueByPath(parentObject, ['setup', 'realtimeInputConfig'], fromRealtimeInputConfig);\n }\n const fromContextWindowCompression = getValueByPath(fromObject, [\n 'contextWindowCompression',\n ]);\n if (parentObject !== undefined && fromContextWindowCompression != null) {\n setValueByPath(parentObject, ['setup', 'contextWindowCompression'], fromContextWindowCompression);\n }\n const fromProactivity = getValueByPath(fromObject, ['proactivity']);\n if (parentObject !== undefined && fromProactivity != null) {\n setValueByPath(parentObject, ['setup', 'proactivity'], fromProactivity);\n }\n if (getValueByPath(fromObject, ['explicitVadSignal']) !== undefined) {\n throw new Error('explicitVadSignal parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromAvatarConfig = getValueByPath(fromObject, ['avatarConfig']);\n if (parentObject !== undefined && fromAvatarConfig != null) {\n setValueByPath(parentObject, ['setup', 'avatarConfig'], fromAvatarConfig);\n }\n const fromSafetySettings = getValueByPath(fromObject, [\n 'safetySettings',\n ]);\n if (parentObject !== undefined && fromSafetySettings != null) {\n let transformedList = fromSafetySettings;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return safetySettingToMldev(item);\n });\n }\n setValueByPath(parentObject, ['setup', 'safetySettings'], transformedList);\n }\n const fromTranslationConfig = getValueByPath(fromObject, [\n 'translationConfig',\n ]);\n if (parentObject !== undefined && fromTranslationConfig != null) {\n setValueByPath(parentObject, ['setup', 'generationConfig', 'translationConfig'], fromTranslationConfig);\n }\n return toObject;\n}\nfunction liveConnectConstraintsToMldev(apiClient, fromObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['model']);\n if (fromModel != null) {\n setValueByPath(toObject, ['setup', 'model'], tModel(apiClient, fromModel));\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n setValueByPath(toObject, ['config'], liveConnectConfigToMldev(fromConfig, toObject));\n }\n return toObject;\n}\nfunction partToMldev(fromObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromToolCall = getValueByPath(fromObject, ['toolCall']);\n if (fromToolCall != null) {\n setValueByPath(toObject, ['toolCall'], fromToolCall);\n }\n const fromToolResponse = getValueByPath(fromObject, ['toolResponse']);\n if (fromToolResponse != null) {\n setValueByPath(toObject, ['toolResponse'], fromToolResponse);\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fileDataToMldev(fromFileData));\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], functionCallToMldev(fromFunctionCall));\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], blobToMldev(fromInlineData));\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n const fromPartMetadata = getValueByPath(fromObject, ['partMetadata']);\n if (fromPartMetadata != null) {\n setValueByPath(toObject, ['partMetadata'], fromPartMetadata);\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction safetySettingToMldev(fromObject) {\n const toObject = {};\n const fromCategory = getValueByPath(fromObject, ['category']);\n if (fromCategory != null) {\n setValueByPath(toObject, ['category'], fromCategory);\n }\n if (getValueByPath(fromObject, ['method']) !== undefined) {\n throw new Error('method parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromThreshold = getValueByPath(fromObject, ['threshold']);\n if (fromThreshold != null) {\n setValueByPath(toObject, ['threshold'], fromThreshold);\n }\n return toObject;\n}\nfunction sessionResumptionConfigToMldev(fromObject) {\n const toObject = {};\n const fromHandle = getValueByPath(fromObject, ['handle']);\n if (fromHandle != null) {\n setValueByPath(toObject, ['handle'], fromHandle);\n }\n if (getValueByPath(fromObject, ['transparent']) !== undefined) {\n throw new Error('transparent parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction toolToMldev(fromObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['retrieval']) !== undefined) {\n throw new Error('retrieval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromGoogleMaps = getValueByPath(fromObject, ['googleMaps']);\n if (fromGoogleMaps != null) {\n setValueByPath(toObject, ['googleMaps'], googleMapsToMldev(fromGoogleMaps));\n }\n const fromMcpServers = getValueByPath(fromObject, ['mcpServers']);\n if (fromMcpServers != null) {\n let transformedList = fromMcpServers;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['mcpServers'], transformedList);\n }\n const fromCodeExecution = getValueByPath(fromObject, [\n 'codeExecution',\n ]);\n if (fromCodeExecution != null) {\n setValueByPath(toObject, ['codeExecution'], fromCodeExecution);\n }\n const fromComputerUse = getValueByPath(fromObject, ['computerUse']);\n if (fromComputerUse != null) {\n setValueByPath(toObject, ['computerUse'], fromComputerUse);\n }\n if (getValueByPath(fromObject, ['enterpriseWebSearch']) !== undefined) {\n throw new Error('enterpriseWebSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['exaAiSearch']) !== undefined) {\n throw new Error('exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromFunctionDeclarations = getValueByPath(fromObject, [\n 'functionDeclarations',\n ]);\n if (fromFunctionDeclarations != null) {\n let transformedList = fromFunctionDeclarations;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['functionDeclarations'], transformedList);\n }\n const fromGoogleSearch = getValueByPath(fromObject, ['googleSearch']);\n if (fromGoogleSearch != null) {\n setValueByPath(toObject, ['googleSearch'], googleSearchToMldev(fromGoogleSearch));\n }\n const fromGoogleSearchRetrieval = getValueByPath(fromObject, [\n 'googleSearchRetrieval',\n ]);\n if (fromGoogleSearchRetrieval != null) {\n setValueByPath(toObject, ['googleSearchRetrieval'], fromGoogleSearchRetrieval);\n }\n if (getValueByPath(fromObject, ['parallelAiSearch']) !== undefined) {\n throw new Error('parallelAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromUrlContext = getValueByPath(fromObject, ['urlContext']);\n if (fromUrlContext != null) {\n setValueByPath(toObject, ['urlContext'], fromUrlContext);\n }\n const fromFileSearch = getValueByPath(fromObject, ['fileSearch']);\n if (fromFileSearch != null) {\n setValueByPath(toObject, ['fileSearch'], fromFileSearch);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Returns a comma-separated list of field masks from a given object.\n *\n * @param setup The object to extract field masks from.\n * @return A comma-separated list of field masks.\n */\nfunction getFieldMasks(setup) {\n const fields = [];\n for (const key in setup) {\n if (Object.prototype.hasOwnProperty.call(setup, key)) {\n const value = setup[key];\n // 2nd layer, recursively get field masks see TODO(b/418290100)\n if (typeof value === 'object' &&\n value != null &&\n Object.keys(value).length > 0) {\n const field = Object.keys(value).map((kk) => `${key}.${kk}`);\n fields.push(...field);\n }\n else {\n fields.push(key); // 1st layer\n }\n }\n }\n return fields.join(',');\n}\n/**\n * Converts bidiGenerateContentSetup.\n * @param requestDict - The request dictionary.\n * @param config - The configuration object.\n * @return - The modified request dictionary.\n */\nfunction convertBidiSetupToTokenSetup(requestDict, config) {\n // Convert bidiGenerateContentSetup from bidiGenerateContentSetup.setup.\n let setupForMaskGeneration = null;\n const bidiGenerateContentSetupValue = requestDict['bidiGenerateContentSetup'];\n if (typeof bidiGenerateContentSetupValue === 'object' &&\n bidiGenerateContentSetupValue !== null &&\n 'setup' in bidiGenerateContentSetupValue) {\n // Now we know bidiGenerateContentSetupValue is an object and has a 'setup'\n // property.\n const innerSetup = bidiGenerateContentSetupValue\n .setup;\n if (typeof innerSetup === 'object' && innerSetup !== null) {\n // Valid inner setup found.\n requestDict['bidiGenerateContentSetup'] = innerSetup;\n setupForMaskGeneration = innerSetup;\n }\n else {\n // `bidiGenerateContentSetupValue.setup` is not a valid object; treat as\n // if bidiGenerateContentSetup is invalid.\n delete requestDict['bidiGenerateContentSetup'];\n }\n }\n else if (bidiGenerateContentSetupValue !== undefined) {\n // `bidiGenerateContentSetup` exists but not in the expected\n // shape {setup: {...}}; treat as invalid.\n delete requestDict['bidiGenerateContentSetup'];\n }\n const preExistingFieldMask = requestDict['fieldMask'];\n // Handle mask generation setup.\n if (setupForMaskGeneration) {\n const generatedMaskFromBidi = getFieldMasks(setupForMaskGeneration);\n if (Array.isArray(config === null || config === void 0 ? void 0 : config.lockAdditionalFields) &&\n (config === null || config === void 0 ? void 0 : config.lockAdditionalFields.length) === 0) {\n // Case 1: lockAdditionalFields is an empty array. Lock only fields from\n // bidi setup.\n if (generatedMaskFromBidi) {\n // Only assign if mask is not empty\n requestDict['fieldMask'] = generatedMaskFromBidi;\n }\n else {\n delete requestDict['fieldMask']; // If mask is empty, effectively no\n // specific fields locked by bidi\n }\n }\n else if ((config === null || config === void 0 ? void 0 : config.lockAdditionalFields) &&\n config.lockAdditionalFields.length > 0 &&\n preExistingFieldMask !== null &&\n Array.isArray(preExistingFieldMask) &&\n preExistingFieldMask.length > 0) {\n // Case 2: Lock fields from bidi setup + additional fields\n // (preExistingFieldMask).\n const generationConfigFields = [\n 'temperature',\n 'topK',\n 'topP',\n 'maxOutputTokens',\n 'responseModalities',\n 'seed',\n 'speechConfig',\n ];\n let mappedFieldsFromPreExisting = [];\n if (preExistingFieldMask.length > 0) {\n mappedFieldsFromPreExisting = preExistingFieldMask.map((field) => {\n if (generationConfigFields.includes(field)) {\n return `generationConfig.${field}`;\n }\n return field; // Keep original field name if not in\n // generationConfigFields\n });\n }\n const finalMaskParts = [];\n if (generatedMaskFromBidi) {\n finalMaskParts.push(generatedMaskFromBidi);\n }\n if (mappedFieldsFromPreExisting.length > 0) {\n finalMaskParts.push(...mappedFieldsFromPreExisting);\n }\n if (finalMaskParts.length > 0) {\n requestDict['fieldMask'] = finalMaskParts.join(',');\n }\n else {\n // If no fields from bidi and no valid additional fields from\n // pre-existing mask.\n delete requestDict['fieldMask'];\n }\n }\n else {\n // Case 3: \"Lock all fields\" (meaning, don't send a field_mask, let server\n // defaults apply or all are mutable). This is hit if:\n // - `config.lockAdditionalFields` is undefined.\n // - `config.lockAdditionalFields` is non-empty, BUT\n // `preExistingFieldMask` is null, not a string, or an empty string.\n delete requestDict['fieldMask'];\n }\n }\n else {\n // No valid `bidiGenerateContentSetup` was found or extracted.\n // \"Lock additional null fields if any\".\n if (preExistingFieldMask !== null &&\n Array.isArray(preExistingFieldMask) &&\n preExistingFieldMask.length > 0) {\n // If there's a pre-existing field mask, it's a string, and it's not\n // empty, then we should lock all fields.\n requestDict['fieldMask'] = preExistingFieldMask.join(',');\n }\n else {\n delete requestDict['fieldMask'];\n }\n }\n return requestDict;\n}\nclass Tokens extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n }\n /**\n * Creates an ephemeral auth token resource.\n *\n * @experimental\n *\n * @remarks\n * Ephemeral auth tokens is only supported in the Gemini Developer API.\n * It can be used for the session connection to the Live constrained API.\n * Support in v1alpha only.\n *\n * @param params - The parameters for the create request.\n * @return The created auth token.\n *\n * @example\n * ```ts\n * const ai = new GoogleGenAI({\n * apiKey: token.name,\n * httpOptions: { apiVersion: 'v1alpha' } // Support in v1alpha only.\n * });\n *\n * // Case 1: If LiveEphemeralParameters is unset, unlock LiveConnectConfig\n * // when using the token in Live API sessions. Each session connection can\n * // use a different configuration.\n * const config: CreateAuthTokenConfig = {\n * uses: 3,\n * expireTime: '2025-05-01T00:00:00Z',\n * }\n * const token = await ai.tokens.create(config);\n *\n * // Case 2: If LiveEphemeralParameters is set, lock all fields in\n * // LiveConnectConfig when using the token in Live API sessions. For\n * // example, changing `outputAudioTranscription` in the Live API\n * // connection will be ignored by the API.\n * const config: CreateAuthTokenConfig =\n * uses: 3,\n * expireTime: '2025-05-01T00:00:00Z',\n * LiveEphemeralParameters: {\n * model: 'gemini-2.0-flash-001',\n * config: {\n * 'responseModalities': ['AUDIO'],\n * 'systemInstruction': 'Always answer in English.',\n * }\n * }\n * }\n * const token = await ai.tokens.create(config);\n *\n * // Case 3: If LiveEphemeralParameters is set and lockAdditionalFields is\n * // set, lock LiveConnectConfig with set and additional fields (e.g.\n * // responseModalities, systemInstruction, temperature in this example) when\n * // using the token in Live API sessions.\n * const config: CreateAuthTokenConfig =\n * uses: 3,\n * expireTime: '2025-05-01T00:00:00Z',\n * LiveEphemeralParameters: {\n * model: 'gemini-2.0-flash-001',\n * config: {\n * 'responseModalities': ['AUDIO'],\n * 'systemInstruction': 'Always answer in English.',\n * }\n * },\n * lockAdditionalFields: ['temperature'],\n * }\n * const token = await ai.tokens.create(config);\n *\n * // Case 4: If LiveEphemeralParameters is set and lockAdditionalFields is\n * // empty array, lock LiveConnectConfig with set fields (e.g.\n * // responseModalities, systemInstruction in this example) when using the\n * // token in Live API sessions.\n * const config: CreateAuthTokenConfig =\n * uses: 3,\n * expireTime: '2025-05-01T00:00:00Z',\n * LiveEphemeralParameters: {\n * model: 'gemini-2.0-flash-001',\n * config: {\n * 'responseModalities': ['AUDIO'],\n * 'systemInstruction': 'Always answer in English.',\n * }\n * },\n * lockAdditionalFields: [],\n * }\n * const token = await ai.tokens.create(config);\n * ```\n */\n async create(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('The client.tokens.create method is only supported by the Gemini Developer API.');\n }\n else {\n const body = createAuthTokenParametersToMldev(this.apiClient, params);\n path = formatMap('auth_tokens', body['_url']);\n queryParams = body['_query'];\n delete body['config'];\n delete body['_url'];\n delete body['_query'];\n const transformedBody = convertBidiSetupToTokenSetup(body, params.config);\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(transformedBody),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json();\n });\n return response.then((resp) => {\n return resp;\n });\n }\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Code generated by the Google Gen AI SDK generator DO NOT EDIT.\nfunction cancelTuningJobParametersToMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n return toObject;\n}\nfunction cancelTuningJobParametersToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n return toObject;\n}\nfunction cancelTuningJobResponseFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction cancelTuningJobResponseFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n return toObject;\n}\nfunction contentToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromParts = getValueByPath(fromObject, ['parts']);\n if (fromParts != null) {\n let transformedList = fromParts;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return partToVertex(item);\n });\n }\n setValueByPath(toObject, ['parts'], transformedList);\n }\n const fromRole = getValueByPath(fromObject, ['role']);\n if (fromRole != null) {\n setValueByPath(toObject, ['role'], fromRole);\n }\n return toObject;\n}\nfunction createTuningJobConfigToMldev(fromObject, parentObject, _rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['validationDataset']) !== undefined) {\n throw new Error('validationDataset parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromTunedModelDisplayName = getValueByPath(fromObject, [\n 'tunedModelDisplayName',\n ]);\n if (parentObject !== undefined && fromTunedModelDisplayName != null) {\n setValueByPath(parentObject, ['displayName'], fromTunedModelDisplayName);\n }\n if (getValueByPath(fromObject, ['description']) !== undefined) {\n throw new Error('description parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromEpochCount = getValueByPath(fromObject, ['epochCount']);\n if (parentObject !== undefined && fromEpochCount != null) {\n setValueByPath(parentObject, ['tuningTask', 'hyperparameters', 'epochCount'], fromEpochCount);\n }\n const fromLearningRateMultiplier = getValueByPath(fromObject, [\n 'learningRateMultiplier',\n ]);\n if (fromLearningRateMultiplier != null) {\n setValueByPath(toObject, ['tuningTask', 'hyperparameters', 'learningRateMultiplier'], fromLearningRateMultiplier);\n }\n if (getValueByPath(fromObject, ['exportLastCheckpointOnly']) !==\n undefined) {\n throw new Error('exportLastCheckpointOnly parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['preTunedModelCheckpointId']) !==\n undefined) {\n throw new Error('preTunedModelCheckpointId parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['adapterSize']) !== undefined) {\n throw new Error('adapterSize parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['tuningMode']) !== undefined) {\n throw new Error('tuningMode parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['customBaseModel']) !== undefined) {\n throw new Error('customBaseModel parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromBatchSize = getValueByPath(fromObject, ['batchSize']);\n if (parentObject !== undefined && fromBatchSize != null) {\n setValueByPath(parentObject, ['tuningTask', 'hyperparameters', 'batchSize'], fromBatchSize);\n }\n const fromLearningRate = getValueByPath(fromObject, ['learningRate']);\n if (parentObject !== undefined && fromLearningRate != null) {\n setValueByPath(parentObject, ['tuningTask', 'hyperparameters', 'learningRate'], fromLearningRate);\n }\n if (getValueByPath(fromObject, ['labels']) !== undefined) {\n throw new Error('labels parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['beta']) !== undefined) {\n throw new Error('beta parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['baseTeacherModel']) !== undefined) {\n throw new Error('baseTeacherModel parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['tunedTeacherModelSource']) !== undefined) {\n throw new Error('tunedTeacherModelSource parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['sftLossWeightMultiplier']) !== undefined) {\n throw new Error('sftLossWeightMultiplier parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['outputUri']) !== undefined) {\n throw new Error('outputUri parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['rewardConfig']) !== undefined) {\n throw new Error('rewardConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['compositeRewardConfig']) !== undefined) {\n throw new Error('compositeRewardConfig parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['samplesPerPrompt']) !== undefined) {\n throw new Error('samplesPerPrompt parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['evaluateInterval']) !== undefined) {\n throw new Error('evaluateInterval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['checkpointInterval']) !== undefined) {\n throw new Error('checkpointInterval parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['maxOutputTokens']) !== undefined) {\n throw new Error('maxOutputTokens parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['thinkingLevel']) !== undefined) {\n throw new Error('thinkingLevel parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['validationDatasetUri']) !== undefined) {\n throw new Error('validationDatasetUri parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['encryptionSpec']) !== undefined) {\n throw new Error('encryptionSpec parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n return toObject;\n}\nfunction createTuningJobConfigToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n let discriminatorValidationDataset = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorValidationDataset === undefined) {\n discriminatorValidationDataset = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorValidationDataset === 'SUPERVISED_FINE_TUNING') {\n const fromValidationDataset = getValueByPath(fromObject, [\n 'validationDataset',\n ]);\n if (parentObject !== undefined && fromValidationDataset != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec'], tuningValidationDatasetToVertex(fromValidationDataset));\n }\n }\n else if (discriminatorValidationDataset === 'PREFERENCE_TUNING') {\n const fromValidationDataset = getValueByPath(fromObject, [\n 'validationDataset',\n ]);\n if (parentObject !== undefined && fromValidationDataset != null) {\n setValueByPath(parentObject, ['preferenceOptimizationSpec'], tuningValidationDatasetToVertex(fromValidationDataset));\n }\n }\n else if (discriminatorValidationDataset === 'DISTILLATION') {\n const fromValidationDataset = getValueByPath(fromObject, [\n 'validationDataset',\n ]);\n if (parentObject !== undefined && fromValidationDataset != null) {\n setValueByPath(parentObject, ['distillationSpec'], tuningValidationDatasetToVertex(fromValidationDataset));\n }\n }\n else if (discriminatorValidationDataset === 'REINFORCEMENT_TUNING') {\n const fromValidationDataset = getValueByPath(fromObject, [\n 'validationDataset',\n ]);\n if (parentObject !== undefined && fromValidationDataset != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec'], tuningValidationDatasetToVertex(fromValidationDataset));\n }\n }\n const fromTunedModelDisplayName = getValueByPath(fromObject, [\n 'tunedModelDisplayName',\n ]);\n if (parentObject !== undefined && fromTunedModelDisplayName != null) {\n setValueByPath(parentObject, ['tunedModelDisplayName'], fromTunedModelDisplayName);\n }\n const fromDescription = getValueByPath(fromObject, ['description']);\n if (parentObject !== undefined && fromDescription != null) {\n setValueByPath(parentObject, ['description'], fromDescription);\n }\n let discriminatorEpochCount = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorEpochCount === undefined) {\n discriminatorEpochCount = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorEpochCount === 'SUPERVISED_FINE_TUNING') {\n const fromEpochCount = getValueByPath(fromObject, ['epochCount']);\n if (parentObject !== undefined && fromEpochCount != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'epochCount'], fromEpochCount);\n }\n }\n else if (discriminatorEpochCount === 'PREFERENCE_TUNING') {\n const fromEpochCount = getValueByPath(fromObject, ['epochCount']);\n if (parentObject !== undefined && fromEpochCount != null) {\n setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'epochCount'], fromEpochCount);\n }\n }\n else if (discriminatorEpochCount === 'DISTILLATION') {\n const fromEpochCount = getValueByPath(fromObject, ['epochCount']);\n if (parentObject !== undefined && fromEpochCount != null) {\n setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'epochCount'], fromEpochCount);\n }\n }\n else if (discriminatorEpochCount === 'REINFORCEMENT_TUNING') {\n const fromEpochCount = getValueByPath(fromObject, ['epochCount']);\n if (parentObject !== undefined && fromEpochCount != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'epochCount'], fromEpochCount);\n }\n }\n let discriminatorLearningRateMultiplier = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorLearningRateMultiplier === undefined) {\n discriminatorLearningRateMultiplier = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorLearningRateMultiplier === 'SUPERVISED_FINE_TUNING') {\n const fromLearningRateMultiplier = getValueByPath(fromObject, [\n 'learningRateMultiplier',\n ]);\n if (parentObject !== undefined && fromLearningRateMultiplier != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'learningRateMultiplier'], fromLearningRateMultiplier);\n }\n }\n else if (discriminatorLearningRateMultiplier === 'PREFERENCE_TUNING') {\n const fromLearningRateMultiplier = getValueByPath(fromObject, [\n 'learningRateMultiplier',\n ]);\n if (parentObject !== undefined && fromLearningRateMultiplier != null) {\n setValueByPath(parentObject, [\n 'preferenceOptimizationSpec',\n 'hyperParameters',\n 'learningRateMultiplier',\n ], fromLearningRateMultiplier);\n }\n }\n else if (discriminatorLearningRateMultiplier === 'DISTILLATION') {\n const fromLearningRateMultiplier = getValueByPath(fromObject, [\n 'learningRateMultiplier',\n ]);\n if (parentObject !== undefined && fromLearningRateMultiplier != null) {\n setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'learningRateMultiplier'], fromLearningRateMultiplier);\n }\n }\n else if (discriminatorLearningRateMultiplier === 'REINFORCEMENT_TUNING') {\n const fromLearningRateMultiplier = getValueByPath(fromObject, [\n 'learningRateMultiplier',\n ]);\n if (parentObject !== undefined && fromLearningRateMultiplier != null) {\n setValueByPath(parentObject, [\n 'reinforcementTuningSpec',\n 'hyperParameters',\n 'learningRateMultiplier',\n ], fromLearningRateMultiplier);\n }\n }\n let discriminatorExportLastCheckpointOnly = getValueByPath(rootObject, ['config', 'method']);\n if (discriminatorExportLastCheckpointOnly === undefined) {\n discriminatorExportLastCheckpointOnly = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorExportLastCheckpointOnly === 'SUPERVISED_FINE_TUNING') {\n const fromExportLastCheckpointOnly = getValueByPath(fromObject, [\n 'exportLastCheckpointOnly',\n ]);\n if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);\n }\n }\n else if (discriminatorExportLastCheckpointOnly === 'PREFERENCE_TUNING') {\n const fromExportLastCheckpointOnly = getValueByPath(fromObject, [\n 'exportLastCheckpointOnly',\n ]);\n if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {\n setValueByPath(parentObject, ['preferenceOptimizationSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);\n }\n }\n else if (discriminatorExportLastCheckpointOnly === 'DISTILLATION') {\n const fromExportLastCheckpointOnly = getValueByPath(fromObject, [\n 'exportLastCheckpointOnly',\n ]);\n if (parentObject !== undefined && fromExportLastCheckpointOnly != null) {\n setValueByPath(parentObject, ['distillationSpec', 'exportLastCheckpointOnly'], fromExportLastCheckpointOnly);\n }\n }\n let discriminatorAdapterSize = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorAdapterSize === undefined) {\n discriminatorAdapterSize = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorAdapterSize === 'SUPERVISED_FINE_TUNING') {\n const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);\n if (parentObject !== undefined && fromAdapterSize != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);\n }\n }\n else if (discriminatorAdapterSize === 'PREFERENCE_TUNING') {\n const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);\n if (parentObject !== undefined && fromAdapterSize != null) {\n setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);\n }\n }\n else if (discriminatorAdapterSize === 'DISTILLATION') {\n const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);\n if (parentObject !== undefined && fromAdapterSize != null) {\n setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);\n }\n }\n else if (discriminatorAdapterSize === 'REINFORCEMENT_TUNING') {\n const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);\n if (parentObject !== undefined && fromAdapterSize != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'adapterSize'], fromAdapterSize);\n }\n }\n let discriminatorTuningMode = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorTuningMode === undefined) {\n discriminatorTuningMode = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorTuningMode === 'SUPERVISED_FINE_TUNING') {\n const fromTuningMode = getValueByPath(fromObject, ['tuningMode']);\n if (parentObject !== undefined && fromTuningMode != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'tuningMode'], fromTuningMode);\n }\n }\n else if (discriminatorTuningMode === 'DISTILLATION') {\n const fromTuningMode = getValueByPath(fromObject, ['tuningMode']);\n if (parentObject !== undefined && fromTuningMode != null) {\n setValueByPath(parentObject, ['distillationSpec', 'tuningMode'], fromTuningMode);\n }\n }\n const fromCustomBaseModel = getValueByPath(fromObject, [\n 'customBaseModel',\n ]);\n if (parentObject !== undefined && fromCustomBaseModel != null) {\n setValueByPath(parentObject, ['customBaseModel'], fromCustomBaseModel);\n }\n let discriminatorBatchSize = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorBatchSize === undefined) {\n discriminatorBatchSize = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorBatchSize === 'SUPERVISED_FINE_TUNING') {\n const fromBatchSize = getValueByPath(fromObject, ['batchSize']);\n if (parentObject !== undefined && fromBatchSize != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'batchSize'], fromBatchSize);\n }\n }\n else if (discriminatorBatchSize === 'DISTILLATION') {\n const fromBatchSize = getValueByPath(fromObject, ['batchSize']);\n if (parentObject !== undefined && fromBatchSize != null) {\n setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'batchSize'], fromBatchSize);\n }\n }\n else if (discriminatorBatchSize === 'REINFORCEMENT_TUNING') {\n const fromBatchSize = getValueByPath(fromObject, ['batchSize']);\n if (parentObject !== undefined && fromBatchSize != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'batchSize'], fromBatchSize);\n }\n }\n let discriminatorLearningRate = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorLearningRate === undefined) {\n discriminatorLearningRate = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorLearningRate === 'SUPERVISED_FINE_TUNING') {\n const fromLearningRate = getValueByPath(fromObject, [\n 'learningRate',\n ]);\n if (parentObject !== undefined && fromLearningRate != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'hyperParameters', 'learningRate'], fromLearningRate);\n }\n }\n else if (discriminatorLearningRate === 'DISTILLATION') {\n const fromLearningRate = getValueByPath(fromObject, [\n 'learningRate',\n ]);\n if (parentObject !== undefined && fromLearningRate != null) {\n setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'learningRate'], fromLearningRate);\n }\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (parentObject !== undefined && fromLabels != null) {\n setValueByPath(parentObject, ['labels'], fromLabels);\n }\n const fromBeta = getValueByPath(fromObject, ['beta']);\n if (parentObject !== undefined && fromBeta != null) {\n setValueByPath(parentObject, ['preferenceOptimizationSpec', 'hyperParameters', 'beta'], fromBeta);\n }\n const fromBaseTeacherModel = getValueByPath(fromObject, [\n 'baseTeacherModel',\n ]);\n if (parentObject !== undefined && fromBaseTeacherModel != null) {\n setValueByPath(parentObject, ['distillationSpec', 'baseTeacherModel'], fromBaseTeacherModel);\n }\n const fromTunedTeacherModelSource = getValueByPath(fromObject, [\n 'tunedTeacherModelSource',\n ]);\n if (parentObject !== undefined && fromTunedTeacherModelSource != null) {\n setValueByPath(parentObject, ['distillationSpec', 'tunedTeacherModelSource'], fromTunedTeacherModelSource);\n }\n const fromSftLossWeightMultiplier = getValueByPath(fromObject, [\n 'sftLossWeightMultiplier',\n ]);\n if (parentObject !== undefined && fromSftLossWeightMultiplier != null) {\n setValueByPath(parentObject, ['distillationSpec', 'hyperParameters', 'sftLossWeightMultiplier'], fromSftLossWeightMultiplier);\n }\n const fromOutputUri = getValueByPath(fromObject, ['outputUri']);\n if (parentObject !== undefined && fromOutputUri != null) {\n setValueByPath(parentObject, ['outputUri'], fromOutputUri);\n }\n const fromRewardConfig = getValueByPath(fromObject, ['rewardConfig']);\n if (parentObject !== undefined && fromRewardConfig != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'singleRewardConfig'], fromRewardConfig);\n }\n const fromCompositeRewardConfig = getValueByPath(fromObject, [\n 'compositeRewardConfig',\n ]);\n if (parentObject !== undefined && fromCompositeRewardConfig != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'compositeRewardConfig'], fromCompositeRewardConfig);\n }\n const fromSamplesPerPrompt = getValueByPath(fromObject, [\n 'samplesPerPrompt',\n ]);\n if (parentObject !== undefined && fromSamplesPerPrompt != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'samplesPerPrompt'], fromSamplesPerPrompt);\n }\n const fromEvaluateInterval = getValueByPath(fromObject, [\n 'evaluateInterval',\n ]);\n if (parentObject !== undefined && fromEvaluateInterval != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'evaluateInterval'], fromEvaluateInterval);\n }\n const fromCheckpointInterval = getValueByPath(fromObject, [\n 'checkpointInterval',\n ]);\n if (parentObject !== undefined && fromCheckpointInterval != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'checkpointInterval'], fromCheckpointInterval);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (parentObject !== undefined && fromMaxOutputTokens != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromThinkingLevel = getValueByPath(fromObject, [\n 'thinkingLevel',\n ]);\n if (parentObject !== undefined && fromThinkingLevel != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'hyperParameters', 'thinkingLevel'], fromThinkingLevel);\n }\n const fromValidationDatasetUri = getValueByPath(fromObject, [\n 'validationDatasetUri',\n ]);\n if (parentObject !== undefined && fromValidationDatasetUri != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'validationDatasetUri'], fromValidationDatasetUri);\n }\n const fromEncryptionSpec = getValueByPath(fromObject, [\n 'encryptionSpec',\n ]);\n if (parentObject !== undefined && fromEncryptionSpec != null) {\n setValueByPath(parentObject, ['encryptionSpec'], fromEncryptionSpec);\n }\n return toObject;\n}\nfunction createTuningJobParametersPrivateToMldev(fromObject, rootObject) {\n const toObject = {};\n const fromBaseModel = getValueByPath(fromObject, ['baseModel']);\n if (fromBaseModel != null) {\n setValueByPath(toObject, ['baseModel'], fromBaseModel);\n }\n const fromPreTunedModel = getValueByPath(fromObject, [\n 'preTunedModel',\n ]);\n if (fromPreTunedModel != null) {\n setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);\n }\n const fromTrainingDataset = getValueByPath(fromObject, [\n 'trainingDataset',\n ]);\n if (fromTrainingDataset != null) {\n tuningDatasetToMldev(fromTrainingDataset);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createTuningJobConfigToMldev(fromConfig, toObject);\n }\n return toObject;\n}\nfunction createTuningJobParametersPrivateToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromBaseModel = getValueByPath(fromObject, ['baseModel']);\n if (fromBaseModel != null) {\n setValueByPath(toObject, ['baseModel'], fromBaseModel);\n }\n const fromPreTunedModel = getValueByPath(fromObject, [\n 'preTunedModel',\n ]);\n if (fromPreTunedModel != null) {\n setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);\n }\n const fromTrainingDataset = getValueByPath(fromObject, [\n 'trainingDataset',\n ]);\n if (fromTrainingDataset != null) {\n tuningDatasetToVertex(fromTrainingDataset, toObject, rootObject);\n }\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n createTuningJobConfigToVertex(fromConfig, toObject, rootObject);\n }\n return toObject;\n}\nfunction distillationHyperParametersFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromEpochCount = getValueByPath(fromObject, ['epochCount']);\n if (fromEpochCount != null) {\n setValueByPath(toObject, ['epochCount'], fromEpochCount);\n }\n const fromLearningRateMultiplier = getValueByPath(fromObject, [\n 'learningRateMultiplier',\n ]);\n if (fromLearningRateMultiplier != null) {\n setValueByPath(toObject, ['learningRateMultiplier'], fromLearningRateMultiplier);\n }\n const fromAdapterSize = getValueByPath(fromObject, ['adapterSize']);\n if (fromAdapterSize != null) {\n setValueByPath(toObject, ['adapterSize'], fromAdapterSize);\n }\n const fromBatchSize = getValueByPath(fromObject, ['batchSize']);\n if (fromBatchSize != null) {\n setValueByPath(toObject, ['batchSize'], fromBatchSize);\n }\n const fromLearningRate = getValueByPath(fromObject, ['learningRate']);\n if (fromLearningRate != null) {\n setValueByPath(toObject, ['learningRate'], fromLearningRate);\n }\n const fromGenerationConfig = getValueByPath(fromObject, [\n 'generationConfig',\n ]);\n if (fromGenerationConfig != null) {\n setValueByPath(toObject, ['generationConfig'], generationConfigFromVertex(fromGenerationConfig));\n }\n return toObject;\n}\nfunction distillationSamplingSpecFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromPromptDatasetUri = getValueByPath(fromObject, [\n 'promptDatasetUri',\n ]);\n if (fromPromptDatasetUri != null) {\n setValueByPath(toObject, ['promptDatasetUri'], fromPromptDatasetUri);\n }\n const fromValidationDatasetUri = getValueByPath(fromObject, [\n 'validationDatasetUri',\n ]);\n if (fromValidationDatasetUri != null) {\n setValueByPath(toObject, ['validationDatasetUri'], fromValidationDatasetUri);\n }\n const fromBaseTeacherModel = getValueByPath(fromObject, [\n 'baseTeacherModel',\n ]);\n if (fromBaseTeacherModel != null) {\n setValueByPath(toObject, ['baseTeacherModel'], fromBaseTeacherModel);\n }\n const fromTunedTeacherModelSource = getValueByPath(fromObject, [\n 'tunedTeacherModelSource',\n ]);\n if (fromTunedTeacherModelSource != null) {\n setValueByPath(toObject, ['tunedTeacherModelSource'], fromTunedTeacherModelSource);\n }\n const fromHyperparameters = getValueByPath(fromObject, [\n 'hyperparameters',\n ]);\n if (fromHyperparameters != null) {\n setValueByPath(toObject, ['hyperparameters'], distillationHyperParametersFromVertex(fromHyperparameters));\n }\n return toObject;\n}\nfunction distillationSpecFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromBaseTeacherModel = getValueByPath(fromObject, [\n 'baseTeacherModel',\n ]);\n if (fromBaseTeacherModel != null) {\n setValueByPath(toObject, ['baseTeacherModel'], fromBaseTeacherModel);\n }\n const fromHyperParameters = getValueByPath(fromObject, [\n 'hyperParameters',\n ]);\n if (fromHyperParameters != null) {\n setValueByPath(toObject, ['hyperParameters'], distillationHyperParametersFromVertex(fromHyperParameters));\n }\n const fromPipelineRootDirectory = getValueByPath(fromObject, [\n 'pipelineRootDirectory',\n ]);\n if (fromPipelineRootDirectory != null) {\n setValueByPath(toObject, ['pipelineRootDirectory'], fromPipelineRootDirectory);\n }\n const fromPromptDatasetUri = getValueByPath(fromObject, [\n 'promptDatasetUri',\n ]);\n if (fromPromptDatasetUri != null) {\n setValueByPath(toObject, ['promptDatasetUri'], fromPromptDatasetUri);\n }\n const fromStudentModel = getValueByPath(fromObject, ['studentModel']);\n if (fromStudentModel != null) {\n setValueByPath(toObject, ['studentModel'], fromStudentModel);\n }\n const fromTrainingDatasetUri = getValueByPath(fromObject, [\n 'trainingDatasetUri',\n ]);\n if (fromTrainingDatasetUri != null) {\n setValueByPath(toObject, ['trainingDatasetUri'], fromTrainingDatasetUri);\n }\n const fromTunedTeacherModelSource = getValueByPath(fromObject, [\n 'tunedTeacherModelSource',\n ]);\n if (fromTunedTeacherModelSource != null) {\n setValueByPath(toObject, ['tunedTeacherModelSource'], fromTunedTeacherModelSource);\n }\n const fromTuningMode = getValueByPath(fromObject, ['tuningMode']);\n if (fromTuningMode != null) {\n setValueByPath(toObject, ['tuningMode'], fromTuningMode);\n }\n const fromValidationDatasetUri = getValueByPath(fromObject, [\n 'validationDatasetUri',\n ]);\n if (fromValidationDatasetUri != null) {\n setValueByPath(toObject, ['validationDatasetUri'], fromValidationDatasetUri);\n }\n return toObject;\n}\nfunction generationConfigFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromModelSelectionConfig = getValueByPath(fromObject, [\n 'modelConfig',\n ]);\n if (fromModelSelectionConfig != null) {\n setValueByPath(toObject, ['modelSelectionConfig'], fromModelSelectionConfig);\n }\n const fromResponseJsonSchema = getValueByPath(fromObject, [\n 'responseJsonSchema',\n ]);\n if (fromResponseJsonSchema != null) {\n setValueByPath(toObject, ['responseJsonSchema'], tJsonSchema(fromResponseJsonSchema));\n }\n const fromAudioTranscriptionConfig = getValueByPath(fromObject, [\n 'audioTranscriptionConfig',\n ]);\n if (fromAudioTranscriptionConfig != null) {\n setValueByPath(toObject, ['audioTranscriptionConfig'], fromAudioTranscriptionConfig);\n }\n const fromAudioTimestamp = getValueByPath(fromObject, [\n 'audioTimestamp',\n ]);\n if (fromAudioTimestamp != null) {\n setValueByPath(toObject, ['audioTimestamp'], fromAudioTimestamp);\n }\n const fromCandidateCount = getValueByPath(fromObject, [\n 'candidateCount',\n ]);\n if (fromCandidateCount != null) {\n setValueByPath(toObject, ['candidateCount'], fromCandidateCount);\n }\n const fromEnableAffectiveDialog = getValueByPath(fromObject, [\n 'enableAffectiveDialog',\n ]);\n if (fromEnableAffectiveDialog != null) {\n setValueByPath(toObject, ['enableAffectiveDialog'], fromEnableAffectiveDialog);\n }\n const fromFrequencyPenalty = getValueByPath(fromObject, [\n 'frequencyPenalty',\n ]);\n if (fromFrequencyPenalty != null) {\n setValueByPath(toObject, ['frequencyPenalty'], fromFrequencyPenalty);\n }\n const fromLogprobs = getValueByPath(fromObject, ['logprobs']);\n if (fromLogprobs != null) {\n setValueByPath(toObject, ['logprobs'], fromLogprobs);\n }\n const fromMaxOutputTokens = getValueByPath(fromObject, [\n 'maxOutputTokens',\n ]);\n if (fromMaxOutputTokens != null) {\n setValueByPath(toObject, ['maxOutputTokens'], fromMaxOutputTokens);\n }\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n const fromPresencePenalty = getValueByPath(fromObject, [\n 'presencePenalty',\n ]);\n if (fromPresencePenalty != null) {\n setValueByPath(toObject, ['presencePenalty'], fromPresencePenalty);\n }\n const fromResponseFormat = getValueByPath(fromObject, [\n 'responseFormat',\n ]);\n if (fromResponseFormat != null) {\n let transformedList = fromResponseFormat;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['responseFormat'], transformedList);\n }\n const fromResponseLogprobs = getValueByPath(fromObject, [\n 'responseLogprobs',\n ]);\n if (fromResponseLogprobs != null) {\n setValueByPath(toObject, ['responseLogprobs'], fromResponseLogprobs);\n }\n const fromResponseMimeType = getValueByPath(fromObject, [\n 'responseMimeType',\n ]);\n if (fromResponseMimeType != null) {\n setValueByPath(toObject, ['responseMimeType'], fromResponseMimeType);\n }\n const fromResponseModalities = getValueByPath(fromObject, [\n 'responseModalities',\n ]);\n if (fromResponseModalities != null) {\n setValueByPath(toObject, ['responseModalities'], fromResponseModalities);\n }\n const fromResponseSchema = getValueByPath(fromObject, [\n 'responseSchema',\n ]);\n if (fromResponseSchema != null) {\n setValueByPath(toObject, ['responseSchema'], fromResponseSchema);\n }\n const fromRoutingConfig = getValueByPath(fromObject, [\n 'routingConfig',\n ]);\n if (fromRoutingConfig != null) {\n setValueByPath(toObject, ['routingConfig'], fromRoutingConfig);\n }\n const fromSeed = getValueByPath(fromObject, ['seed']);\n if (fromSeed != null) {\n setValueByPath(toObject, ['seed'], fromSeed);\n }\n const fromSpeechConfig = getValueByPath(fromObject, ['speechConfig']);\n if (fromSpeechConfig != null) {\n setValueByPath(toObject, ['speechConfig'], fromSpeechConfig);\n }\n const fromStopSequences = getValueByPath(fromObject, [\n 'stopSequences',\n ]);\n if (fromStopSequences != null) {\n setValueByPath(toObject, ['stopSequences'], fromStopSequences);\n }\n const fromTemperature = getValueByPath(fromObject, ['temperature']);\n if (fromTemperature != null) {\n setValueByPath(toObject, ['temperature'], fromTemperature);\n }\n const fromThinkingConfig = getValueByPath(fromObject, [\n 'thinkingConfig',\n ]);\n if (fromThinkingConfig != null) {\n setValueByPath(toObject, ['thinkingConfig'], fromThinkingConfig);\n }\n const fromTopK = getValueByPath(fromObject, ['topK']);\n if (fromTopK != null) {\n setValueByPath(toObject, ['topK'], fromTopK);\n }\n const fromTopP = getValueByPath(fromObject, ['topP']);\n if (fromTopP != null) {\n setValueByPath(toObject, ['topP'], fromTopP);\n }\n return toObject;\n}\nfunction getTuningJobParametersToMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n return toObject;\n}\nfunction getTuningJobParametersToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['_url', 'name'], fromName);\n }\n return toObject;\n}\nfunction listTuningJobsConfigToVertex(fromObject, parentObject, _rootObject) {\n const toObject = {};\n const fromPageSize = getValueByPath(fromObject, ['pageSize']);\n if (parentObject !== undefined && fromPageSize != null) {\n setValueByPath(parentObject, ['_query', 'pageSize'], fromPageSize);\n }\n const fromPageToken = getValueByPath(fromObject, ['pageToken']);\n if (parentObject !== undefined && fromPageToken != null) {\n setValueByPath(parentObject, ['_query', 'pageToken'], fromPageToken);\n }\n const fromFilter = getValueByPath(fromObject, ['filter']);\n if (parentObject !== undefined && fromFilter != null) {\n setValueByPath(parentObject, ['_query', 'filter'], fromFilter);\n }\n return toObject;\n}\nfunction listTuningJobsParametersToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromConfig = getValueByPath(fromObject, ['config']);\n if (fromConfig != null) {\n listTuningJobsConfigToVertex(fromConfig, toObject);\n }\n return toObject;\n}\nfunction listTuningJobsResponseFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromNextPageToken = getValueByPath(fromObject, [\n 'nextPageToken',\n ]);\n if (fromNextPageToken != null) {\n setValueByPath(toObject, ['nextPageToken'], fromNextPageToken);\n }\n const fromTuningJobs = getValueByPath(fromObject, ['tuningJobs']);\n if (fromTuningJobs != null) {\n let transformedList = fromTuningJobs;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return tuningJobFromVertex(item);\n });\n }\n setValueByPath(toObject, ['tuningJobs'], transformedList);\n }\n return toObject;\n}\nfunction partToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromMediaResolution = getValueByPath(fromObject, [\n 'mediaResolution',\n ]);\n if (fromMediaResolution != null) {\n setValueByPath(toObject, ['mediaResolution'], fromMediaResolution);\n }\n if (getValueByPath(fromObject, ['toolCall']) !== undefined) {\n throw new Error('toolCall parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n if (getValueByPath(fromObject, ['toolResponse']) !== undefined) {\n throw new Error('toolResponse parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromAudioTranscription = getValueByPath(fromObject, [\n 'audioTranscription',\n ]);\n if (fromAudioTranscription != null) {\n setValueByPath(toObject, ['audioTranscription'], fromAudioTranscription);\n }\n const fromCodeExecutionResult = getValueByPath(fromObject, [\n 'codeExecutionResult',\n ]);\n if (fromCodeExecutionResult != null) {\n setValueByPath(toObject, ['codeExecutionResult'], fromCodeExecutionResult);\n }\n const fromExecutableCode = getValueByPath(fromObject, [\n 'executableCode',\n ]);\n if (fromExecutableCode != null) {\n setValueByPath(toObject, ['executableCode'], fromExecutableCode);\n }\n const fromFileData = getValueByPath(fromObject, ['fileData']);\n if (fromFileData != null) {\n setValueByPath(toObject, ['fileData'], fromFileData);\n }\n const fromFunctionCall = getValueByPath(fromObject, ['functionCall']);\n if (fromFunctionCall != null) {\n setValueByPath(toObject, ['functionCall'], fromFunctionCall);\n }\n const fromFunctionResponse = getValueByPath(fromObject, [\n 'functionResponse',\n ]);\n if (fromFunctionResponse != null) {\n setValueByPath(toObject, ['functionResponse'], fromFunctionResponse);\n }\n const fromInlineData = getValueByPath(fromObject, ['inlineData']);\n if (fromInlineData != null) {\n setValueByPath(toObject, ['inlineData'], fromInlineData);\n }\n const fromText = getValueByPath(fromObject, ['text']);\n if (fromText != null) {\n setValueByPath(toObject, ['text'], fromText);\n }\n const fromThought = getValueByPath(fromObject, ['thought']);\n if (fromThought != null) {\n setValueByPath(toObject, ['thought'], fromThought);\n }\n const fromThoughtSignature = getValueByPath(fromObject, [\n 'thoughtSignature',\n ]);\n if (fromThoughtSignature != null) {\n setValueByPath(toObject, ['thoughtSignature'], fromThoughtSignature);\n }\n const fromVideoMetadata = getValueByPath(fromObject, [\n 'videoMetadata',\n ]);\n if (fromVideoMetadata != null) {\n setValueByPath(toObject, ['videoMetadata'], fromVideoMetadata);\n }\n if (getValueByPath(fromObject, ['partMetadata']) !== undefined) {\n throw new Error('partMetadata parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n const fromMediaProcessing = getValueByPath(fromObject, [\n 'mediaProcessing',\n ]);\n if (fromMediaProcessing != null) {\n setValueByPath(toObject, ['mediaProcessing'], fromMediaProcessing);\n }\n return toObject;\n}\nfunction reinforcementTuningExampleToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromReferences = getValueByPath(fromObject, ['references']);\n if (fromReferences != null) {\n setValueByPath(toObject, ['references'], fromReferences);\n }\n const fromContents = getValueByPath(fromObject, ['contents']);\n if (fromContents != null) {\n let transformedList = fromContents;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return contentToVertex(item);\n });\n }\n setValueByPath(toObject, ['contents'], transformedList);\n }\n const fromSystemInstruction = getValueByPath(fromObject, [\n 'systemInstruction',\n ]);\n if (fromSystemInstruction != null) {\n setValueByPath(toObject, ['systemInstruction'], contentToVertex(fromSystemInstruction));\n }\n return toObject;\n}\nfunction tunedModelFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromModel = getValueByPath(fromObject, ['name']);\n if (fromModel != null) {\n setValueByPath(toObject, ['model'], fromModel);\n }\n const fromEndpoint = getValueByPath(fromObject, ['name']);\n if (fromEndpoint != null) {\n setValueByPath(toObject, ['endpoint'], fromEndpoint);\n }\n return toObject;\n}\nfunction tuningDatasetToMldev(fromObject, _rootObject) {\n const toObject = {};\n if (getValueByPath(fromObject, ['gcsUri']) !== undefined) {\n throw new Error('gcsUri parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n if (getValueByPath(fromObject, ['vertexDatasetResource']) !== undefined) {\n throw new Error('vertexDatasetResource parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.');\n }\n const fromExamples = getValueByPath(fromObject, ['examples']);\n if (fromExamples != null) {\n let transformedList = fromExamples;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['examples', 'examples'], transformedList);\n }\n return toObject;\n}\nfunction tuningDatasetToVertex(fromObject, parentObject, rootObject) {\n const toObject = {};\n let discriminatorGcsUri = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorGcsUri === undefined) {\n discriminatorGcsUri = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorGcsUri === 'SUPERVISED_FINE_TUNING') {\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (parentObject !== undefined && fromGcsUri != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'trainingDatasetUri'], fromGcsUri);\n }\n }\n else if (discriminatorGcsUri === 'PREFERENCE_TUNING') {\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (parentObject !== undefined && fromGcsUri != null) {\n setValueByPath(parentObject, ['preferenceOptimizationSpec', 'trainingDatasetUri'], fromGcsUri);\n }\n }\n else if (discriminatorGcsUri === 'DISTILLATION') {\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (parentObject !== undefined && fromGcsUri != null) {\n setValueByPath(parentObject, ['distillationSpec', 'promptDatasetUri'], fromGcsUri);\n }\n }\n else if (discriminatorGcsUri === 'REINFORCEMENT_TUNING') {\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (parentObject !== undefined && fromGcsUri != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'trainingDatasetUri'], fromGcsUri);\n }\n }\n let discriminatorVertexDatasetResource = getValueByPath(rootObject, [\n 'config',\n 'method',\n ]);\n if (discriminatorVertexDatasetResource === undefined) {\n discriminatorVertexDatasetResource = 'SUPERVISED_FINE_TUNING';\n }\n if (discriminatorVertexDatasetResource === 'SUPERVISED_FINE_TUNING') {\n const fromVertexDatasetResource = getValueByPath(fromObject, [\n 'vertexDatasetResource',\n ]);\n if (parentObject !== undefined && fromVertexDatasetResource != null) {\n setValueByPath(parentObject, ['supervisedTuningSpec', 'trainingDatasetUri'], fromVertexDatasetResource);\n }\n }\n else if (discriminatorVertexDatasetResource === 'PREFERENCE_TUNING') {\n const fromVertexDatasetResource = getValueByPath(fromObject, [\n 'vertexDatasetResource',\n ]);\n if (parentObject !== undefined && fromVertexDatasetResource != null) {\n setValueByPath(parentObject, ['preferenceOptimizationSpec', 'trainingDatasetUri'], fromVertexDatasetResource);\n }\n }\n else if (discriminatorVertexDatasetResource === 'DISTILLATION') {\n const fromVertexDatasetResource = getValueByPath(fromObject, [\n 'vertexDatasetResource',\n ]);\n if (parentObject !== undefined && fromVertexDatasetResource != null) {\n setValueByPath(parentObject, ['distillationSpec', 'promptDatasetUri'], fromVertexDatasetResource);\n }\n }\n else if (discriminatorVertexDatasetResource === 'REINFORCEMENT_TUNING') {\n const fromVertexDatasetResource = getValueByPath(fromObject, [\n 'vertexDatasetResource',\n ]);\n if (parentObject !== undefined && fromVertexDatasetResource != null) {\n setValueByPath(parentObject, ['reinforcementTuningSpec', 'trainingDatasetUri'], fromVertexDatasetResource);\n }\n }\n if (getValueByPath(fromObject, ['examples']) !== undefined) {\n throw new Error('examples parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.');\n }\n return toObject;\n}\nfunction tuningJobFromMldev(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromState = getValueByPath(fromObject, ['state']);\n if (fromState != null) {\n setValueByPath(toObject, ['state'], tTuningJobStatus(fromState));\n }\n const fromCreateTime = getValueByPath(fromObject, ['createTime']);\n if (fromCreateTime != null) {\n setValueByPath(toObject, ['createTime'], fromCreateTime);\n }\n const fromStartTime = getValueByPath(fromObject, [\n 'tuningTask',\n 'startTime',\n ]);\n if (fromStartTime != null) {\n setValueByPath(toObject, ['startTime'], fromStartTime);\n }\n const fromEndTime = getValueByPath(fromObject, [\n 'tuningTask',\n 'completeTime',\n ]);\n if (fromEndTime != null) {\n setValueByPath(toObject, ['endTime'], fromEndTime);\n }\n const fromUpdateTime = getValueByPath(fromObject, ['updateTime']);\n if (fromUpdateTime != null) {\n setValueByPath(toObject, ['updateTime'], fromUpdateTime);\n }\n const fromDescription = getValueByPath(fromObject, ['description']);\n if (fromDescription != null) {\n setValueByPath(toObject, ['description'], fromDescription);\n }\n const fromBaseModel = getValueByPath(fromObject, ['baseModel']);\n if (fromBaseModel != null) {\n setValueByPath(toObject, ['baseModel'], fromBaseModel);\n }\n const fromTunedModel = getValueByPath(fromObject, ['_self']);\n if (fromTunedModel != null) {\n setValueByPath(toObject, ['tunedModel'], tunedModelFromMldev(fromTunedModel));\n }\n return toObject;\n}\nfunction tuningJobFromVertex(fromObject, rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromState = getValueByPath(fromObject, ['state']);\n if (fromState != null) {\n setValueByPath(toObject, ['state'], tTuningJobStatus(fromState));\n }\n const fromCreateTime = getValueByPath(fromObject, ['createTime']);\n if (fromCreateTime != null) {\n setValueByPath(toObject, ['createTime'], fromCreateTime);\n }\n const fromStartTime = getValueByPath(fromObject, ['startTime']);\n if (fromStartTime != null) {\n setValueByPath(toObject, ['startTime'], fromStartTime);\n }\n const fromEndTime = getValueByPath(fromObject, ['endTime']);\n if (fromEndTime != null) {\n setValueByPath(toObject, ['endTime'], fromEndTime);\n }\n const fromUpdateTime = getValueByPath(fromObject, ['updateTime']);\n if (fromUpdateTime != null) {\n setValueByPath(toObject, ['updateTime'], fromUpdateTime);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromDescription = getValueByPath(fromObject, ['description']);\n if (fromDescription != null) {\n setValueByPath(toObject, ['description'], fromDescription);\n }\n const fromBaseModel = getValueByPath(fromObject, ['baseModel']);\n if (fromBaseModel != null) {\n setValueByPath(toObject, ['baseModel'], fromBaseModel);\n }\n const fromTunedModel = getValueByPath(fromObject, ['tunedModel']);\n if (fromTunedModel != null) {\n setValueByPath(toObject, ['tunedModel'], fromTunedModel);\n }\n const fromPreTunedModel = getValueByPath(fromObject, [\n 'preTunedModel',\n ]);\n if (fromPreTunedModel != null) {\n setValueByPath(toObject, ['preTunedModel'], fromPreTunedModel);\n }\n const fromSupervisedTuningSpec = getValueByPath(fromObject, [\n 'supervisedTuningSpec',\n ]);\n if (fromSupervisedTuningSpec != null) {\n setValueByPath(toObject, ['supervisedTuningSpec'], fromSupervisedTuningSpec);\n }\n const fromPreferenceOptimizationSpec = getValueByPath(fromObject, [\n 'preferenceOptimizationSpec',\n ]);\n if (fromPreferenceOptimizationSpec != null) {\n setValueByPath(toObject, ['preferenceOptimizationSpec'], fromPreferenceOptimizationSpec);\n }\n const fromDistillationSamplingSpec = getValueByPath(fromObject, [\n 'distillationSamplingSpec',\n ]);\n if (fromDistillationSamplingSpec != null) {\n setValueByPath(toObject, ['distillationSamplingSpec'], distillationSamplingSpecFromVertex(fromDistillationSamplingSpec));\n }\n const fromDistillationSpec = getValueByPath(fromObject, [\n 'distillationSpec',\n ]);\n if (fromDistillationSpec != null) {\n setValueByPath(toObject, ['distillationSpec'], distillationSpecFromVertex(fromDistillationSpec));\n }\n const fromReinforcementTuningSpec = getValueByPath(fromObject, [\n 'reinforcementTuningSpec',\n ]);\n if (fromReinforcementTuningSpec != null) {\n setValueByPath(toObject, ['reinforcementTuningSpec'], fromReinforcementTuningSpec);\n }\n const fromTuningDataStats = getValueByPath(fromObject, [\n 'tuningDataStats',\n ]);\n if (fromTuningDataStats != null) {\n setValueByPath(toObject, ['tuningDataStats'], fromTuningDataStats);\n }\n const fromEncryptionSpec = getValueByPath(fromObject, [\n 'encryptionSpec',\n ]);\n if (fromEncryptionSpec != null) {\n setValueByPath(toObject, ['encryptionSpec'], fromEncryptionSpec);\n }\n const fromPartnerModelTuningSpec = getValueByPath(fromObject, [\n 'partnerModelTuningSpec',\n ]);\n if (fromPartnerModelTuningSpec != null) {\n setValueByPath(toObject, ['partnerModelTuningSpec'], fromPartnerModelTuningSpec);\n }\n const fromCustomBaseModel = getValueByPath(fromObject, [\n 'customBaseModel',\n ]);\n if (fromCustomBaseModel != null) {\n setValueByPath(toObject, ['customBaseModel'], fromCustomBaseModel);\n }\n const fromEvaluateDatasetRuns = getValueByPath(fromObject, [\n 'evaluateDatasetRuns',\n ]);\n if (fromEvaluateDatasetRuns != null) {\n let transformedList = fromEvaluateDatasetRuns;\n if (Array.isArray(transformedList)) {\n transformedList = transformedList.map((item) => {\n return item;\n });\n }\n setValueByPath(toObject, ['evaluateDatasetRuns'], transformedList);\n }\n const fromExperiment = getValueByPath(fromObject, ['experiment']);\n if (fromExperiment != null) {\n setValueByPath(toObject, ['experiment'], fromExperiment);\n }\n const fromFullFineTuningSpec = getValueByPath(fromObject, [\n 'fullFineTuningSpec',\n ]);\n if (fromFullFineTuningSpec != null) {\n setValueByPath(toObject, ['fullFineTuningSpec'], fromFullFineTuningSpec);\n }\n const fromLabels = getValueByPath(fromObject, ['labels']);\n if (fromLabels != null) {\n setValueByPath(toObject, ['labels'], fromLabels);\n }\n const fromOutputUri = getValueByPath(fromObject, ['outputUri']);\n if (fromOutputUri != null) {\n setValueByPath(toObject, ['outputUri'], fromOutputUri);\n }\n const fromPipelineJob = getValueByPath(fromObject, ['pipelineJob']);\n if (fromPipelineJob != null) {\n setValueByPath(toObject, ['pipelineJob'], fromPipelineJob);\n }\n const fromServiceAccount = getValueByPath(fromObject, [\n 'serviceAccount',\n ]);\n if (fromServiceAccount != null) {\n setValueByPath(toObject, ['serviceAccount'], fromServiceAccount);\n }\n const fromTunedModelDisplayName = getValueByPath(fromObject, [\n 'tunedModelDisplayName',\n ]);\n if (fromTunedModelDisplayName != null) {\n setValueByPath(toObject, ['tunedModelDisplayName'], fromTunedModelDisplayName);\n }\n const fromTuningJobMetadata = getValueByPath(fromObject, [\n 'tuningJobMetadata',\n ]);\n if (fromTuningJobMetadata != null) {\n setValueByPath(toObject, ['tuningJobMetadata'], fromTuningJobMetadata);\n }\n const fromTuningJobState = getValueByPath(fromObject, [\n 'tuningJobState',\n ]);\n if (fromTuningJobState != null) {\n setValueByPath(toObject, ['tuningJobState'], fromTuningJobState);\n }\n const fromVeoLoraTuningSpec = getValueByPath(fromObject, [\n 'veoLoraTuningSpec',\n ]);\n if (fromVeoLoraTuningSpec != null) {\n setValueByPath(toObject, ['veoLoraTuningSpec'], fromVeoLoraTuningSpec);\n }\n const fromVeoTuningSpec = getValueByPath(fromObject, [\n 'veoTuningSpec',\n ]);\n if (fromVeoTuningSpec != null) {\n setValueByPath(toObject, ['veoTuningSpec'], fromVeoTuningSpec);\n }\n return toObject;\n}\nfunction tuningOperationFromMldev(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromName = getValueByPath(fromObject, ['name']);\n if (fromName != null) {\n setValueByPath(toObject, ['name'], fromName);\n }\n const fromMetadata = getValueByPath(fromObject, ['metadata']);\n if (fromMetadata != null) {\n setValueByPath(toObject, ['metadata'], fromMetadata);\n }\n const fromDone = getValueByPath(fromObject, ['done']);\n if (fromDone != null) {\n setValueByPath(toObject, ['done'], fromDone);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n return toObject;\n}\nfunction tuningValidationDatasetToVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromGcsUri = getValueByPath(fromObject, ['gcsUri']);\n if (fromGcsUri != null) {\n setValueByPath(toObject, ['validationDatasetUri'], fromGcsUri);\n }\n const fromVertexDatasetResource = getValueByPath(fromObject, [\n 'vertexDatasetResource',\n ]);\n if (fromVertexDatasetResource != null) {\n setValueByPath(toObject, ['validationDatasetUri'], fromVertexDatasetResource);\n }\n return toObject;\n}\nfunction validateRewardParametersToVertex(fromObject, rootObject) {\n const toObject = {};\n const fromParent = getValueByPath(fromObject, ['parent']);\n if (fromParent != null) {\n setValueByPath(toObject, ['_url', 'parent'], fromParent);\n }\n const fromSampleResponse = getValueByPath(fromObject, [\n 'sampleResponse',\n ]);\n if (fromSampleResponse != null) {\n setValueByPath(toObject, ['sampleResponse'], contentToVertex(fromSampleResponse));\n }\n const fromExample = getValueByPath(fromObject, ['example']);\n if (fromExample != null) {\n setValueByPath(toObject, ['example'], reinforcementTuningExampleToVertex(fromExample));\n }\n const fromSingleRewardConfig = getValueByPath(fromObject, [\n 'singleRewardConfig',\n ]);\n if (fromSingleRewardConfig != null) {\n setValueByPath(toObject, ['singleRewardConfig'], fromSingleRewardConfig);\n }\n const fromCompositeRewardConfig = getValueByPath(fromObject, [\n 'compositeRewardConfig',\n ]);\n if (fromCompositeRewardConfig != null) {\n setValueByPath(toObject, ['compositeRewardConfig'], fromCompositeRewardConfig);\n }\n return toObject;\n}\nfunction validateRewardResponseFromVertex(fromObject, _rootObject) {\n const toObject = {};\n const fromSdkHttpResponse = getValueByPath(fromObject, [\n 'sdkHttpResponse',\n ]);\n if (fromSdkHttpResponse != null) {\n setValueByPath(toObject, ['sdkHttpResponse'], fromSdkHttpResponse);\n }\n const fromOverallReward = getValueByPath(fromObject, [\n 'overallReward',\n ]);\n if (fromOverallReward != null) {\n setValueByPath(toObject, ['overallReward'], fromOverallReward);\n }\n const fromError = getValueByPath(fromObject, ['error']);\n if (fromError != null) {\n setValueByPath(toObject, ['error'], fromError);\n }\n const fromRewardInfoDetails = getValueByPath(fromObject, [\n 'rewardInfoDetails',\n ]);\n if (fromRewardInfoDetails != null) {\n setValueByPath(toObject, ['rewardInfoDetails'], fromRewardInfoDetails);\n }\n return toObject;\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nclass Tunings extends BaseModule {\n constructor(apiClient) {\n super();\n this.apiClient = apiClient;\n /**\n * Lists tuning jobs.\n *\n * @param params - The parameters for the list request.\n * @return - A pager of tuning jobs.\n *\n * @example\n * ```ts\n * const tuningJobs = await ai.tunings.list({config: {'pageSize': 2}});\n * for await (const tuningJob of tuningJobs) {\n * console.log(tuningJob);\n * }\n * ```\n */\n this.list = async (params = {}) => {\n return new Pager(PagedItem.PAGED_ITEM_TUNING_JOBS, (x) => this.listInternal(x), await this.listInternal(params), params);\n };\n /**\n * Gets a TuningJob.\n *\n * @param name - The resource name of the tuning job.\n * @return - A TuningJob object.\n *\n * @experimental - The SDK's tuning implementation is experimental, and may\n * change in future versions.\n */\n this.get = async (params) => {\n return await this.getInternal(params);\n };\n /**\n * Creates a supervised fine-tuning job.\n *\n * @param params - The parameters for the tuning job.\n * @return - A TuningJob operation.\n *\n * @experimental - The SDK's tuning implementation is experimental, and may\n * change in future versions.\n */\n this.tune = async (params) => {\n var _a;\n if (this.apiClient.isVertexAI()) {\n if (params.baseModel.startsWith('projects/')) {\n const preTunedModel = {\n tunedModelName: params.baseModel,\n };\n if ((_a = params.config) === null || _a === void 0 ? void 0 : _a.preTunedModelCheckpointId) {\n preTunedModel.checkpointId = params.config.preTunedModelCheckpointId;\n }\n const paramsPrivate = Object.assign(Object.assign({}, params), { preTunedModel: preTunedModel });\n paramsPrivate.baseModel = undefined;\n return await this.tuneInternal(paramsPrivate);\n }\n else {\n const paramsPrivate = Object.assign({}, params);\n return await this.tuneInternal(paramsPrivate);\n }\n }\n else {\n const paramsPrivate = Object.assign({}, params);\n const operation = await this.tuneMldevInternal(paramsPrivate);\n let tunedModelName = '';\n if (operation['metadata'] !== undefined &&\n operation['metadata']['tunedModel'] !== undefined) {\n tunedModelName = operation['metadata']['tunedModel'];\n }\n else if (operation['name'] !== undefined &&\n operation['name'].includes('/operations/')) {\n tunedModelName = operation['name'].split('/operations/')[0];\n }\n const tuningJob = {\n name: tunedModelName,\n state: JobState.JOB_STATE_QUEUED,\n };\n return tuningJob;\n }\n };\n }\n async getInternal(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = getTuningJobParametersToVertex(params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = tuningJobFromVertex(apiResponse);\n return resp;\n });\n }\n else {\n const body = getTuningJobParametersToMldev(params);\n path = formatMap('{name}', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = tuningJobFromMldev(apiResponse);\n return resp;\n });\n }\n }\n async listInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = listTuningJobsParametersToVertex(params);\n path = formatMap('tuningJobs', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'GET',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = listTuningJobsResponseFromVertex(apiResponse);\n const typedResp = new ListTuningJobsResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n /**\n * Cancels a tuning job.\n *\n * @param params - The parameters for the cancel request.\n * @return The empty response returned by the API.\n *\n * @example\n * ```ts\n * await ai.tunings.cancel({name: '...'}); // The server-generated resource name.\n * ```\n */\n async cancel(params) {\n var _a, _b, _c, _d;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = cancelTuningJobParametersToVertex(params);\n path = formatMap('{name}:cancel', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = cancelTuningJobResponseFromVertex(apiResponse);\n const typedResp = new CancelTuningJobResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n const body = cancelTuningJobParametersToMldev(params);\n path = formatMap('{name}:cancel', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_c = params.config) === null || _c === void 0 ? void 0 : _c.httpOptions,\n abortSignal: (_d = params.config) === null || _d === void 0 ? void 0 : _d.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = cancelTuningJobResponseFromMldev(apiResponse);\n const typedResp = new CancelTuningJobResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n }\n async tuneInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = createTuningJobParametersPrivateToVertex(params, params);\n path = formatMap('tuningJobs', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = tuningJobFromVertex(apiResponse);\n return resp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n async tuneMldevInternal(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n throw new Error('This method is only supported by the Gemini Developer API.');\n }\n else {\n const body = createTuningJobParametersPrivateToMldev(params);\n path = formatMap('tunedModels', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = tuningOperationFromMldev(apiResponse);\n return resp;\n });\n }\n }\n async validateReward(params) {\n var _a, _b;\n let response;\n let path = '';\n let queryParams = {};\n if (this.apiClient.isVertexAI()) {\n const body = validateRewardParametersToVertex(params);\n path = formatMap('{parent}/tuningJobs:validateReinforcementTuningReward', body['_url']);\n queryParams = body['_query'];\n delete body['_url'];\n delete body['_query'];\n response = this.apiClient\n .request({\n path: path,\n queryParams: queryParams,\n body: JSON.stringify(body),\n httpMethod: 'POST',\n httpOptions: (_a = params.config) === null || _a === void 0 ? void 0 : _a.httpOptions,\n abortSignal: (_b = params.config) === null || _b === void 0 ? void 0 : _b.abortSignal,\n })\n .then((httpResponse) => {\n return httpResponse.json().then((jsonResponse) => {\n const response = jsonResponse;\n response.sdkHttpResponse = {\n headers: httpResponse.headers,\n };\n return response;\n });\n });\n return response.then((apiResponse) => {\n const resp = validateRewardResponseFromVertex(apiResponse);\n const typedResp = new ValidateRewardResponse();\n Object.assign(typedResp, resp);\n return typedResp;\n });\n }\n else {\n throw new Error('This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).');\n }\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst GOOGLE_API_KEY_HEADER = 'x-goog-api-key';\n// TODO(b/395122533): We need a secure client side authentication mechanism.\nclass WebAuth {\n constructor(apiKey) {\n this.apiKey = apiKey;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async addAuthHeaders(headers, url) {\n if (headers.get(GOOGLE_API_KEY_HEADER) !== null) {\n return;\n }\n if (this.apiKey.startsWith('auth_tokens/')) {\n throw new Error('Ephemeral tokens are only supported by the live API.');\n }\n // Check if API key is empty or null\n if (!this.apiKey) {\n throw new Error('API key is missing. Please provide a valid API key.');\n }\n headers.append(GOOGLE_API_KEY_HEADER, this.apiKey);\n }\n}\n\n/**\n * @license\n * Copyright 2025 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst LANGUAGE_LABEL_PREFIX = 'gl-node/';\n/**\n * The Google GenAI SDK.\n *\n * @remarks\n * Provides access to the GenAI features through either the {@link https://cloud.google.com/vertex-ai/docs/reference/rest | Gemini API}\n * or the {@link https://cloud.google.com/vertex-ai/docs/reference/rest | Vertex AI API}.\n *\n * The {@link GoogleGenAIOptions.vertexai} value determines which of the API services to use.\n *\n * When using the Gemini API, a {@link GoogleGenAIOptions.apiKey} must also be set,\n * when using Vertex AI {@link GoogleGenAIOptions.project} and {@link GoogleGenAIOptions.location} must also be set.\n *\n * @example\n * Initializing the SDK for using the Gemini API:\n * ```ts\n * import {GoogleGenAI} from '@google/genai';\n * const ai = new GoogleGenAI({apiKey: 'GEMINI_API_KEY'});\n * ```\n *\n * @example\n * Initializing the SDK for using the Vertex AI API:\n * ```ts\n * import {GoogleGenAI} from '@google/genai';\n * const ai = new GoogleGenAI({\n * vertexai: true,\n * project: 'PROJECT_ID',\n * location: 'PROJECT_LOCATION'\n * });\n * ```\n *\n */\nclass GoogleGenAI {\n getNextGenClient() {\n const httpOpts = this.httpOptions;\n if (this._nextGenClient === undefined) {\n this._nextGenClient = buildGoogleGenAIClient(this.apiClient, {\n timeout_ms: httpOpts === null || httpOpts === void 0 ? void 0 : httpOpts.timeout,\n });\n }\n if (httpOpts === null || httpOpts === void 0 ? void 0 : httpOpts.extraBody) {\n console.warn('GoogleGenAI: Client level httpOptions.extraBody is not supported by the Gemini NextGen client and will be ignored.');\n }\n return this._nextGenClient;\n }\n get interactions() {\n if (this._interactions !== undefined) {\n return this._interactions;\n }\n this._interactions = new GeminiNextGenInteractions(this.apiClient);\n return this._interactions;\n }\n get webhooks() {\n if (this._webhooks !== undefined) {\n return this._webhooks;\n }\n this._webhooks = new GeminiNextGenWebhooks(this.apiClient);\n return this._webhooks;\n }\n get agents() {\n if (this._agents !== undefined) {\n return this._agents;\n }\n console.warn('GoogleGenAI.agents: Agents usage is experimental and may change in future versions.');\n this._agents = new GeminiNextGenAgents(this.apiClient);\n return this._agents;\n }\n get triggers() {\n if (this._triggers !== undefined) {\n return this._triggers;\n }\n console.warn('GoogleGenAI.triggers: Triggers usage is experimental and may change in future versions.');\n this._triggers = new GeminiNextGenTriggers(this.apiClient);\n return this._triggers;\n }\n get environments() {\n if (this._environments !== undefined) {\n return this._environments;\n }\n console.warn('GoogleGenAI.environments: Environments usage is experimental and may change in future versions.');\n this._environments = new GeminiNextGenEnvironments(this.apiClient);\n return this._environments;\n }\n constructor(options = {}) {\n var _a, _b;\n if (options.apiKey == null) {\n throw new Error(`An API Key must be set when running in an unspecified environment.\\n + ${crossError().message}`);\n }\n if (options.enterprise !== undefined &&\n options.vertexai !== undefined &&\n options.enterprise !== options.vertexai) {\n throw new Error('enterprise and vertexAI flags have conflicting values, please set enterprise value only.');\n }\n this.vertexai = (_b = (_a = options.enterprise) !== null && _a !== void 0 ? _a : options.vertexai) !== null && _b !== void 0 ? _b : false;\n this.apiKey = options.apiKey;\n this.apiVersion = options.apiVersion;\n this.httpOptions = options.httpOptions;\n const auth = new WebAuth(this.apiKey);\n this.apiClient = new ApiClient({\n auth: auth,\n apiVersion: this.apiVersion,\n apiKey: this.apiKey,\n vertexai: this.vertexai,\n httpOptions: this.httpOptions,\n userAgentExtra: LANGUAGE_LABEL_PREFIX + 'cross',\n uploader: new CrossUploader(),\n downloader: new CrossDownloader(),\n });\n this.models = new Models(this.apiClient);\n this.live = new Live(this.apiClient, auth, new CrossWebSocketFactory());\n this.chats = new Chats(this.models, this.apiClient);\n this.batches = new Batches(this.apiClient);\n this.caches = new Caches(this.apiClient);\n this.files = new Files$1(this.apiClient);\n this.operations = new Operations(this.apiClient);\n this.authTokens = new Tokens(this.apiClient);\n this.tunings = new Tunings(this.apiClient);\n this.fileSearchStores = new FileSearchStores(this.apiClient);\n }\n}\n\nexport { ActivityHandling, AdapterSize, AggregationMetric, ApiError, ApiSpec, AspectRatio, AudioResponseFormat, AudioTranscriptionConfigMode, AuthType, Batches, Behavior, BlockedReason, Caches, CancelTuningJobResponse, Chat, Chats, ComputeTokensResponse, ContentReferenceImage, ControlReferenceImage, ControlReferenceType, CountTokensResponse, CreateFileResponse, DeleteCachedContentResponse, DeleteFileResponse, DeleteModelResponse, Delivery, DocumentState, DynamicRetrievalConfigMode, EditImageResponse, EditMode, EmbedContentResponse, EmbeddingApiType, EndSensitivity, Environment, EvaluateDatasetResponse, FeatureSelectionPreference, FileSource, FileState, Files$1 as Files, FinishReason, FunctionCallingConfigMode, FunctionResponse, FunctionResponseBlob, FunctionResponseFileData, FunctionResponsePart, FunctionResponseScheduling, GenerateContentResponse, GenerateContentResponsePromptFeedback, GenerateContentResponseUsageMetadata, GenerateImagesResponse, GenerateVideosOperation, GenerateVideosResponse, GoogleGenAI, HarmBlockMethod, HarmBlockThreshold, HarmCategory, HarmProbability, HarmSeverity, HttpElementLocation, HttpResponse, ImagePromptLanguage, ImageResizeMode, ImageResponseFormat, ImageSize, ImportFileOperation, ImportFileResponse, InlinedEmbedContentResponse, InlinedResponse, InteractionStatus, JobState, Language, ListBatchJobsResponse, ListCachedContentsResponse, ListDocumentsResponse, ListFileSearchStoresResponse, ListFilesResponse, ListModelsResponse, ListTuningJobsResponse, Live, LiveClientToolResponse, LiveMusicPlaybackControl, LiveMusicServerMessage, LiveSendToolResponseParameters, LiveServerMessage, MaskReferenceImage, MaskReferenceMode, MatchOperation, MediaModality, MediaProcessing, MediaResolution, Modality, ModelStage, Models, MusicGenerationMode, Operations, Outcome, PagedItem, Pager, PairwiseChoice, PartMediaResolutionLevel, PersonGeneration, PhishBlockThreshold, ProminentPeople, RawReferenceImage, RecontextImageResponse, RegisterFilesResponse, ReinforcementTuningAutoraterScorerParsedResponseConversionScorer, ReinforcementTuningParseResponseConfig, ReinforcementTuningThinkingLevel, ReplayResponse, ResourceScope, ResponseFormat, ResponseParseType, SafetyFilterLevel, SafetyPolicy, Scale, SegmentImageResponse, SegmentMode, ServiceTier, Session, SingleEmbedContentResponse, StartSensitivity, StyleReferenceImage, SubjectReferenceImage, SubjectReferenceType, TextResponseFormat, ThinkingLevel, Tokens, ToolResponse, ToolType, TrafficType, TuningJobState, TuningMethod, TuningMode, TuningSpeed, TuningTask, TurnCompleteReason, TurnCoverage, Type, UploadToFileSearchStoreOperation, UploadToFileSearchStoreResponse, UploadToFileSearchStoreResumableResponse, UpscaleImageResponse, UrlRetrievalStatus, VadSignalType, ValidateRewardResponse, VideoCompressionQuality, VideoGenerationMaskMode, VideoGenerationReferenceType, VideoOrientation, VideoResponseFormat, VoiceActivityType, createFunctionResponsePartFromBase64, createFunctionResponsePartFromUri, createModelContent, createPartFromBase64, createPartFromCodeExecutionResult, createPartFromExecutableCode, createPartFromFunctionCall, createPartFromFunctionResponse, createPartFromText, createPartFromUri, createUserContent, mcpToTool, setDefaultBaseUrls };\n//# sourceMappingURL=index.mjs.map\n","/**\n * Shared utilities for Google Generative AI and Google Vertex providers.\n */\nimport { FinishReason, FunctionCallingConfigMode, ThinkingLevel as GoogleSdkThinkingLevel, } from \"@google/genai\";\nimport { clampThinkingLevel } from \"../models.js\";\nimport { retryProviderRequest } from \"../utils/provider-retry.js\";\nimport { sanitizeSurrogates } from \"../utils/sanitize-unicode.js\";\nimport { collapseSystemMessages, withoutInitialSystemMessage } from \"../utils/transcript.js\";\nimport { getJsonSchemaToolParameters, resolveJsonSchemaStrictSampling } from \"./constrained-sampling.js\";\nimport { transformMessages } from \"./transform-messages.js\";\nconst GOOGLE_SDK_THINKING_LEVEL_MAP = {\n THINKING_LEVEL_UNSPECIFIED: GoogleSdkThinkingLevel.THINKING_LEVEL_UNSPECIFIED,\n MINIMAL: GoogleSdkThinkingLevel.MINIMAL,\n LOW: GoogleSdkThinkingLevel.LOW,\n MEDIUM: GoogleSdkThinkingLevel.MEDIUM,\n HIGH: GoogleSdkThinkingLevel.HIGH,\n};\n/** Resolve a supported pi level or model-specific Google mapping to a standard Google level. */\nexport function resolveGoogleThinkingLevel(model, level) {\n const mapped = model.thinkingLevelMap?.[level];\n const resolvedLevel = typeof mapped === \"string\" ? mapped.toLowerCase() : level;\n switch (resolvedLevel) {\n case \"minimal\":\n case \"low\":\n case \"medium\":\n case \"high\":\n return resolvedLevel;\n default:\n throw new Error(`Unsupported Google thinking level mapping for ${model.provider}/${model.id}: ${level} -> ${String(mapped)}`);\n }\n}\n/**\n * Whether this model uses Gemini's discrete `thinkingLevel` control instead of\n * the token-based `thinkingBudget` control. Supported levels come from the\n * model's `thinkingLevelMap`; this only selects the Google wire format.\n */\nexport function usesGoogleThinkingLevel(model) {\n const id = model.id.toLowerCase();\n return (\n // Match Gemini 3 Pro/Flash IDs with or without a minor version, such as\n // gemini-3-flash-preview, gemini-3.1-pro-preview, and gemini-3.8-flash.\n /gemini-3(?:\\.\\d+)?-(?:pro|flash)/.test(id) ||\n id === \"gemini-flash-latest\" ||\n id === \"gemini-flash-lite-latest\" ||\n // Match both hosted Gemma 4 naming forms: gemma-4-* and gemma4-*.\n /gemma-?4/.test(id));\n}\nexport function toGoogleThinkingLevel(level) {\n switch (level) {\n case \"minimal\":\n return \"MINIMAL\";\n case \"low\":\n return \"LOW\";\n case \"medium\":\n return \"MEDIUM\";\n case \"high\":\n return \"HIGH\";\n }\n}\nexport function toGoogleSdkThinkingLevel(level) {\n return GOOGLE_SDK_THINKING_LEVEL_MAP[level];\n}\nexport function getDisabledGoogleThinkingConfig(model) {\n if (!usesGoogleThinkingLevel(model))\n return { thinkingBudget: 0 };\n const fallback = clampThinkingLevel(model, \"off\");\n if (fallback === \"off\")\n return { thinkingBudget: 0 };\n const resolvedLevel = resolveGoogleThinkingLevel(model, fallback);\n const apiLevel = toGoogleThinkingLevel(resolvedLevel);\n return { thinkingLevel: toGoogleSdkThinkingLevel(apiLevel) };\n}\n/**\n * Determines whether a streamed Gemini `Part` should be treated as \"thinking\".\n *\n * Protocol note (Gemini / Vertex AI thought signatures):\n * - `thought: true` is the definitive marker for thinking content (thought summaries).\n * - `thoughtSignature` is an encrypted representation of the model's internal thought process\n * used to preserve reasoning context across multi-turn interactions.\n * - `thoughtSignature` can appear on ANY part type (text, functionCall, etc.) - it does NOT\n * indicate the part itself is thinking content.\n * - For non-functionCall responses, the signature appears on the last part for context replay.\n * - When persisting/replaying model outputs, signature-bearing parts must be preserved as-is;\n * do not merge/move signatures across parts.\n *\n * See: https://ai.google.dev/gemini-api/docs/thought-signatures\n */\nexport function isThinkingPart(part) {\n return part.thought === true;\n}\n/**\n * Retain thought signatures during streaming.\n *\n * Some backends only send `thoughtSignature` on the first delta for a given part/block; later deltas may omit it.\n * This helper preserves the last non-empty signature for the current block.\n *\n * Note: this does NOT merge or move signatures across distinct response parts. It only prevents\n * a signature from being overwritten with `undefined` within the same streamed block.\n */\nexport function retainThoughtSignature(existing, incoming) {\n if (typeof incoming === \"string\" && incoming.length > 0)\n return incoming;\n return existing;\n}\n// Thought signatures must be base64 for Google APIs (TYPE_BYTES).\nconst base64SignaturePattern = /^[A-Za-z0-9+/]+={0,2}$/;\nfunction isValidThoughtSignature(signature) {\n if (!signature)\n return false;\n if (signature.length % 4 !== 0)\n return false;\n return base64SignaturePattern.test(signature);\n}\n/**\n * Only keep signatures from the same provider/model and with valid base64.\n */\nfunction resolveThoughtSignature(isSameProviderAndModel, signature) {\n return isSameProviderAndModel && isValidThoughtSignature(signature) ? signature : undefined;\n}\n/**\n * Models via Google APIs that require explicit tool call IDs in function calls/responses.\n */\nexport function requiresToolCallId(modelId) {\n const geminiMajorVersion = getGeminiMajorVersion(modelId);\n return (modelId.startsWith(\"claude-\") ||\n modelId.startsWith(\"gpt-oss-\") ||\n (geminiMajorVersion !== undefined && geminiMajorVersion >= 3));\n}\nfunction getGeminiMajorVersion(modelId) {\n const match = modelId.toLowerCase().match(/^gemini(?:-live)?-(\\d+)/);\n if (!match)\n return undefined;\n return Number.parseInt(match[1], 10);\n}\nfunction supportsMultimodalFunctionResponse(modelId) {\n const geminiMajorVersion = getGeminiMajorVersion(modelId);\n if (geminiMajorVersion !== undefined) {\n return geminiMajorVersion >= 3;\n }\n return true;\n}\n/**\n * Convert internal messages to Gemini Content[] format.\n */\nexport function convertMessages(model, context) {\n // Gemini has no mid-conversation system messages; the leading prompt is sent as systemInstruction.\n const conversation = withoutInitialSystemMessage(collapseSystemMessages(context).messages);\n const contents = [];\n const normalizeToolCallId = (id) => {\n if (!requiresToolCallId(model.id))\n return id;\n return id.replace(/[^a-zA-Z0-9_-]/g, \"_\").slice(0, 64);\n };\n const transformedMessages = transformMessages(conversation, model, normalizeToolCallId);\n for (const msg of transformedMessages) {\n if (msg.role === \"user\") {\n if (typeof msg.content === \"string\") {\n contents.push({\n role: \"user\",\n parts: [{ text: sanitizeSurrogates(msg.content) }],\n });\n }\n else {\n const parts = msg.content.map((item) => {\n if (item.type === \"text\") {\n return { text: sanitizeSurrogates(item.text) };\n }\n else {\n return {\n inlineData: {\n mimeType: item.mimeType,\n data: item.data,\n },\n };\n }\n });\n if (parts.length === 0)\n continue;\n contents.push({\n role: \"user\",\n parts,\n });\n }\n }\n else if (msg.role === \"assistant\") {\n const parts = [];\n // Check if message is from same provider and model - only then keep thinking blocks\n const isSameProviderAndModel = msg.provider === model.provider && msg.model === model.id;\n for (const block of msg.content) {\n if (block.type === \"text\") {\n const thoughtSignature = resolveThoughtSignature(isSameProviderAndModel, block.textSignature);\n // Skip empty text blocks — unless they carry a thought signature. Gemini can attach\n // the signature to a part whose visible text is empty and requires it echoed back;\n // dropping it breaks the reasoning chain and the model intermittently ends mid-task\n // turns with a thought-only STOP (empty completion, no tool call).\n if ((!block.text || block.text.trim() === \"\") && !thoughtSignature)\n continue;\n parts.push({\n text: sanitizeSurrogates(block.text),\n ...(thoughtSignature && { thoughtSignature }),\n });\n }\n else if (block.type === \"thinking\") {\n // Only keep as thinking block if same provider AND same model\n // Otherwise convert to plain text (no tags to avoid model mimicking them)\n if (isSameProviderAndModel) {\n const thoughtSignature = resolveThoughtSignature(isSameProviderAndModel, block.thinkingSignature);\n // Same rule as text blocks: an empty thinking block is dropped only when it\n // carries no signature (mirrors the anthropic converter's handling).\n if ((!block.thinking || block.thinking.trim() === \"\") && !thoughtSignature)\n continue;\n parts.push({\n thought: true,\n text: sanitizeSurrogates(block.thinking),\n ...(thoughtSignature && { thoughtSignature }),\n });\n }\n else {\n // Cross-provider/model: the signature is unusable, empty blocks stay dropped.\n if (!block.thinking || block.thinking.trim() === \"\")\n continue;\n parts.push({\n text: sanitizeSurrogates(block.thinking),\n });\n }\n }\n else if (block.type === \"toolCall\") {\n const thoughtSignature = resolveThoughtSignature(isSameProviderAndModel, block.thoughtSignature);\n const part = {\n functionCall: {\n name: block.name,\n args: block.arguments ?? {},\n ...(requiresToolCallId(model.id) ? { id: block.id } : {}),\n },\n ...(thoughtSignature && { thoughtSignature }),\n };\n parts.push(part);\n }\n }\n if (parts.length === 0)\n continue;\n contents.push({\n role: \"model\",\n parts,\n });\n }\n else if (msg.role === \"toolResult\") {\n // Extract text and image content\n const textContent = msg.content.filter((c) => c.type === \"text\");\n const textResult = textContent.map((c) => c.text).join(\"\\n\");\n const imageContent = model.input.includes(\"image\")\n ? msg.content.filter((c) => c.type === \"image\")\n : [];\n const hasText = textResult.length > 0;\n const hasImages = imageContent.length > 0;\n // Gemini 3+ models support multimodal function responses with images nested inside\n // functionResponse.parts. Claude and other non-Gemini models behind Cloud Code Assist /\n // Gemini < 3 still needs a separate user image turn.\n const modelSupportsMultimodalFunctionResponse = supportsMultimodalFunctionResponse(model.id);\n // Use \"output\" key for success, \"error\" key for errors as per SDK documentation\n const responseValue = hasText ? sanitizeSurrogates(textResult) : hasImages ? \"(see attached image)\" : \"\";\n const imageParts = imageContent.map((imageBlock) => ({\n inlineData: {\n mimeType: imageBlock.mimeType,\n data: imageBlock.data,\n },\n }));\n const includeId = requiresToolCallId(model.id);\n const functionResponsePart = {\n functionResponse: {\n name: msg.toolName,\n response: msg.isError ? { error: responseValue } : { output: responseValue },\n ...(hasImages && modelSupportsMultimodalFunctionResponse && { parts: imageParts }),\n ...(includeId ? { id: msg.toolCallId } : {}),\n },\n };\n // Cloud Code Assist API requires all function responses to be in a single user turn.\n // Check if the last content is already a user turn with function responses and merge.\n const lastContent = contents[contents.length - 1];\n if (lastContent?.role === \"user\" && lastContent.parts?.some((p) => p.functionResponse)) {\n lastContent.parts.push(functionResponsePart);\n }\n else {\n contents.push({\n role: \"user\",\n parts: [functionResponsePart],\n });\n }\n // For Gemini < 3, add images in a separate user message\n if (hasImages && !modelSupportsMultimodalFunctionResponse) {\n contents.push({\n role: \"user\",\n parts: [{ text: \"Tool result image:\" }, ...imageParts],\n });\n }\n }\n }\n return contents;\n}\nconst JSON_SCHEMA_META_DECLARATIONS = new Set([\n \"$schema\",\n \"$id\",\n \"$anchor\",\n \"$dynamicAnchor\",\n \"$vocabulary\",\n \"$comment\",\n \"$defs\",\n \"definitions\", // pre-draft-2019-09 equivalent of $defs\n]);\n/**\n * Strip meta-declarations from a schema obj\n */\nfunction sanitizeForOpenApi(schema) {\n if (typeof schema !== \"object\" || schema === null || Array.isArray(schema)) {\n return schema;\n }\n const result = {};\n for (const [key, value] of Object.entries(schema)) {\n if (JSON_SCHEMA_META_DECLARATIONS.has(key))\n continue;\n result[key] = sanitizeForOpenApi(value);\n }\n return result;\n}\n/**\n * Convert tools to Gemini function declarations format.\n *\n * By default uses `parametersJsonSchema` which supports full JSON Schema (including\n * anyOf, oneOf, const, etc.). Set `useParameters` to true to use the legacy `parameters`\n * field instead (OpenAPI 3.03 Schema). This is needed for Cloud Code Assist with Claude\n * models, where the API translates `parameters` into Anthropic's `input_schema`.\n */\nexport function convertTools(tools, useParameters = false, supportsStrictMode = true) {\n if (tools.length === 0)\n return undefined;\n return [\n {\n functionDeclarations: tools.map((tool) => {\n const strict = resolveJsonSchemaStrictSampling(tool, supportsStrictMode);\n const parameters = getJsonSchemaToolParameters(tool, strict);\n return {\n name: tool.name,\n description: tool.description,\n ...(useParameters\n ? { parameters: sanitizeForOpenApi(parameters) }\n : { parametersJsonSchema: parameters }),\n };\n }),\n },\n ];\n}\n/** Gemini 3+ enforces required function parameters in validated tool-calling modes. */\nexport function supportsGoogleStrictToolSampling(modelId) {\n const majorVersion = getGeminiMajorVersion(modelId);\n return majorVersion !== undefined && majorVersion >= 3;\n}\n/** Map tool choice string to Gemini FunctionCallingConfigMode. */\nexport function mapToolChoice(choice) {\n switch (choice) {\n case \"auto\":\n return FunctionCallingConfigMode.AUTO;\n case \"none\":\n return FunctionCallingConfigMode.NONE;\n case \"any\":\n return FunctionCallingConfigMode.ANY;\n default:\n return FunctionCallingConfigMode.AUTO;\n }\n}\nexport function resolveGoogleFunctionCallingMode(tools, toolChoice, supportsStrictMode) {\n const useStrictMode = tools.some((tool) => resolveJsonSchemaStrictSampling(tool, supportsStrictMode) === true);\n if (toolChoice === \"none\" || toolChoice === \"any\") {\n return mapToolChoice(toolChoice);\n }\n if (useStrictMode) {\n return FunctionCallingConfigMode.VALIDATED;\n }\n return toolChoice ? mapToolChoice(toolChoice) : undefined;\n}\n/**\n * Map Gemini FinishReason to our StopReason.\n */\nexport function mapStopReason(reason) {\n switch (reason) {\n case FinishReason.STOP:\n return \"stop\";\n case FinishReason.MAX_TOKENS:\n return \"length\";\n case FinishReason.BLOCKLIST:\n case FinishReason.PROHIBITED_CONTENT:\n case FinishReason.SPII:\n case FinishReason.SAFETY:\n case FinishReason.IMAGE_SAFETY:\n case FinishReason.IMAGE_PROHIBITED_CONTENT:\n case FinishReason.IMAGE_RECITATION:\n case FinishReason.IMAGE_OTHER:\n case FinishReason.RECITATION:\n case FinishReason.FINISH_REASON_UNSPECIFIED:\n case FinishReason.OTHER:\n case FinishReason.LANGUAGE:\n case FinishReason.MALFORMED_FUNCTION_CALL:\n case FinishReason.UNEXPECTED_TOOL_CALL:\n case FinishReason.TOO_MANY_TOOL_CALLS:\n case FinishReason.NO_IMAGE:\n return \"error\";\n default: {\n const _exhaustive = reason;\n throw new Error(`Unhandled stop reason: ${_exhaustive}`);\n }\n }\n}\n/**\n * Map string finish reason to our StopReason (for raw API responses).\n */\nexport function mapStopReasonString(reason) {\n switch (reason) {\n case \"STOP\":\n return \"stop\";\n case \"MAX_TOKENS\":\n return \"length\";\n default:\n return \"error\";\n }\n}\n/**\n * Run a Google GenAI SDK request with the shared provider retry policy\n * (408/409/429/5xx with backoff, honoring retry-after), mirroring how the\n * Anthropic and OpenAI adapters wrap their initial request in\n * retryProviderRequest. The SDK's ApiError has a `status` property but no\n * `headers` property, and retryProviderRequest only retries errors that carry\n * both, so normalize the error by adding the missing `headers` before\n * rethrowing.\n */\nexport function retryGoogleRequest(request, options) {\n return retryProviderRequest(async () => {\n try {\n return await request();\n }\n catch (error) {\n if (error instanceof Error && \"status\" in error && !(\"headers\" in error)) {\n error.headers = undefined;\n }\n throw error;\n }\n }, {\n maxRetries: options?.maxRetries,\n maxRetryDelayMs: options?.maxRetryDelayMs,\n signal: options?.signal,\n });\n}\n//# sourceMappingURL=google-shared.js.map"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":";;;;;;;CAAA,SAAS,eAAe,UAAU,SAAS;EAEzC,IAAI,OAAO,YAAY,WACrB,UAAU,EAAE,SAAS,QAAQ;EAG/B,KAAK,oBAAoB,KAAK,MAAM,KAAK,UAAU,QAAQ,CAAC;EAC5D,KAAK,YAAY;EACjB,KAAK,WAAW,WAAW,CAAC;EAC5B,KAAK,gBAAgB,WAAW,QAAQ,gBAAgB;EACxD,KAAK,MAAM;EACX,KAAK,UAAU,CAAC;EAChB,KAAK,YAAY;EACjB,KAAK,oBAAoB;EACzB,KAAK,sBAAsB;EAC3B,KAAK,WAAW;EAChB,KAAK,kBAAkB;EACvB,KAAK,SAAS;EAEd,IAAI,KAAK,SAAS,SAChB,KAAK,kBAAkB,KAAK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