{"openapi":"3.1.0","info":{"title":"Google Translate API (Bowmark)","version":"e833508f87ff","description":"Translate text into any of 249 languages, in a batch if you have a list, and find out what language something already is — plus the dictionary underneath: senses, definitions, synonyms, alternative wordings, the romanization and the spoken audio. Thirteen functions are built; the four account functions (saved phrases, history) take the caller's own Google sign-in.\n\nEvery function Bowmark has for Google Translate (translate.google.com) as one HTTP call. Each runs on Bowmark's infrastructure with the same billing, rules and response envelope as `POST /v1/run`. The whole API: https://api.bowmark.ai/openapi.json. Guide: https://bowmark.ai/docs/api.","contact":{"email":"support@bowmark.ai","url":"https://bowmark.ai/docs/api"}},"servers":[{"url":"https://api.bowmark.ai"}],"security":[{"bearer":[]},{"apiKeyHeader":[]}],"paths":{"/v1/sites/google_translate/translate":{"post":{"operationId":"translate","summary":"Turn text into another language.","description":"Turn text into another language. `args.text` is one string or a list translated together in one request, in order; `args.to` names the target language by name (\"Spanish\") or code (\"es\", \"pt-BR\"); `args.from` is optional and, left out, the source is detected per string, with `detected: true` and the detected code coming back on each result. Returns one `GoogleTranslateResult` per input string, aligned by position. A gendered sentence (\"I am tired and the doctor is late.\" → Spanish) also carries `genderAlternatives: [{ gender: \"feminine\", translated }, { gender: \"masculine\", translated }]`, the site's own gender-specific pair, for calls of up to 10 strings. `args.model: \"advanced\"` asks for the site's Gemini model (its web default: idiomatic where the default classic model is literal) for ONE string, through a real browser (~30 s); the result's `model` says which answered.\n\nCalls `bowmark.providers.google_translate.translate`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateResult[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TranslateArgs","description":"TypeScript: `TranslateArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/detectLanguage":{"post":{"operationId":"detectLanguage","summary":"Work out what language a string is written in.","description":"Work out what language a string is written in. Returns `language` (Google's own code) and `confidence` (0-1) rather than swallowing it — a single word can come back confidently wrong (measured 2026-09-15: \"Bonjour\" alone detects as \"en\"), so a caller reading only `language` cannot tell a guess from a sure thing. `candidates` carries every language Google's detector considered, most confident first.\n\nCalls `bowmark.providers.google_translate.detectLanguage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateLanguageDetection>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/DetectLanguageArgs","description":"TypeScript: `DetectLanguageArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/listLanguages":{"post":{"operationId":"listLanguages","summary":"Every language this site supports — the table that turns a caller's \"Portuguese\" into the `pt`/`pt-BR` code the rest of this provider takes, and the honest answer to \"can Google Translate do Cherokee\"","description":"Every language this site supports — the table that turns a caller's \"Portuguese\" into the `pt`/`pt-BR` code the rest of this provider takes, and the honest answer to \"can Google Translate do Cherokee\". `args.hl` optionally localizes the returned `name`s (`{ hl: \"es\" }` returns \"abjasio\" for `ab`); left out, names come back in English. `sourceSupported`/`targetSupported` are not both always true — `sl` alone carries `\"auto\"` (\"Detect language\") and `tl` alone carries `\"zh-TW\"`, measured 2026-09-15.\n\nCalls `bowmark.providers.google_translate.listLanguages`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateLanguage[]>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/ListLanguagesArgs","description":"TypeScript: `ListLanguagesArgs`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/lookupWord":{"post":{"operationId":"lookupWord","summary":"The full \"translations of <word>\" dictionary panel: every part of speech Google has for `args.word`, the candidate translations under each (ordered by Google's own frequency `score`), and for each can","description":"The full \"translations of <word>\" dictionary panel: every part of speech Google has for `args.word`, the candidate translations under each (ordered by Google's own frequency `score`), and for each candidate the words it itself translates back to — the difference between \"run means correr\" and knowing `ejecutar` is the software sense and `huir` is the fleeing sense. `args.from` is required, unlike `translate` — there is no \"detect it\" reading of a dictionary lookup. `senses` comes back empty when Google has no per-sense breakdown for the term (a longer phrase, or a string its dictionary does not recognize); the plain `translate` function still works on those.\n\nCalls `bowmark.providers.google_translate.lookupWord`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateWordLookup>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/LookupWordArgs","description":"TypeScript: `LookupWordArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/getDefinitions":{"post":{"operationId":"getDefinitions","summary":"What `args.word` MEANS, IN `args.language` — monolingual, unlike `lookupWord`, which translates between two.","description":"What `args.word` MEANS, IN `args.language` — monolingual, unlike `lookupWord`, which translates between two. Groups every sense by part of speech, each carrying a plain-English gloss and, where Google has one, a real usage example (its own `<b>`-highlight markup stripped). `senses` comes back empty when Google's dictionary has nothing for the term.\n\nCalls `bowmark.providers.google_translate.getDefinitions`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateWordDefinitions>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetDefinitionsArgs","description":"TypeScript: `GetDefinitionsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/getSynonyms":{"post":{"operationId":"getSynonyms","summary":"Other words that mean the same thing as `args.word`, IN `args.language` — grouped by sense (`definitionId` matches a `GoogleTranslateDefinition.definitionId` from `getDefinitions`) rather than thrown ","description":"Other words that mean the same thing as `args.word`, IN `args.language` — grouped by sense (`definitionId` matches a `GoogleTranslateDefinition.definitionId` from `getDefinitions`) rather than thrown into one list, and labelled where Google knows the register: \"informal\" synonyms for \"run\" (belt, zip, leg it, hotfoot it) come back in a separate group from the neutral ones (sprint, race, dart, dash), and a group with no `register` is the neutral case. `senses` comes back empty when Google has no synonyms for the term.\n\nCalls `bowmark.providers.google_translate.getSynonyms`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateWordSynonyms>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetSynonymsArgs","description":"TypeScript: `GetSynonymsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/getAlternativeTranslations":{"post":{"operationId":"getAlternativeTranslations","summary":"The other ways Google would have translated `args.text` — the list that appears when a person clicks a translated phrase to see what else it could have said.","description":"The other ways Google would have translated `args.text` — the list that appears when a person clicks a translated phrase to see what else it could have said. Works on a whole sentence, not just a word: `args.text` splits into `segments`, one per sentence Google recognizes, each carrying its own `alternatives` — the unit of the answer is the SEGMENT, never the whole input. `args.from` is optional and, left out, the source is detected, same as `translate`.\n\nCalls `bowmark.providers.google_translate.getAlternativeTranslations`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateAlternativeTranslations>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/GetAlternativeTranslationsArgs","description":"TypeScript: `GetAlternativeTranslationsArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/checkSpelling":{"post":{"operationId":"checkSpelling","summary":"Google Translate's own \"Did you mean …\" line for `args.text`, written in `args.language` — `correct: true` when nothing needed fixing, otherwise the corrected text plain and HTML-marked-up.","description":"Google Translate's own \"Did you mean …\" line for `args.text`, written in `args.language` — `correct: true` when nothing needed fixing, otherwise the corrected text plain and HTML-marked-up. What a caller runs before trusting a translation of something a human typed in a hurry.\n\nCalls `bowmark.providers.google_translate.checkSpelling`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateSpellCheck>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/CheckSpellingArgs","description":"TypeScript: `CheckSpellingArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/romanize":{"post":{"operationId":"romanize","summary":"A Latin-alphabet (or phonetic) rendering of `args.text` or its translation — \"Ohayōgozaimasu, ogenkidesuka?\" under a Japanese translation, \"rən\" under the English word \"run\".","description":"A Latin-alphabet (or phonetic) rendering of `args.text` or its translation — \"Ohayōgozaimasu, ogenkidesuka?\" under a Japanese translation, \"rən\" under the English word \"run\". `targetRomanization` comes back when the TARGET script is non-Latin, `sourceRomanization` when the SOURCE is — measured 2026-09-16, that includes a short Latin-script dictionary lookup, which still carries an English pronunciation guide. Both are absent on an ordinary sentence between two Latin-script languages, which is a normal answer, not a failure. `args.from` is optional and, left out, the source is detected, same as `translate`.\n\nCalls `bowmark.providers.google_translate.romanize`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateRomanization>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/RomanizeArgs","description":"TypeScript: `RomanizeArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/speak":{"post":{"operationId":"speak","summary":"Hear `args.text` spoken in `args.language`, as the MP3 the site's own speaker button plays.","description":"Hear `args.text` spoken in `args.language`, as the MP3 the site's own speaker button plays. Google's `/translate_tts` refuses anything over 200 characters with a hard 400, so this function chunks longer text on SENTENCE boundaries (never mid-sentence) and stitches the resulting MP3s into one file — confirmed 2026-09-16 that concatenating raw `/translate_tts` bytes decodes as one continuous, correctly-timed clip, since the door answers a bare MPEG stream with no container. `chunkCount` says how many `/translate_tts` calls the answer is built from. Throws when a single SENTENCE in `args.text` is itself over 200 characters — there is no boundary left to chunk on, and truncating it silently is the one thing this function must not do. `args.slow: true` is the site's slow speaker button (`ttsspeed=0.24`), for hearing a phrase at learner speed.\n\nCalls `bowmark.providers.google_translate.speak`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateSpeech>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/SpeakArgs","description":"TypeScript: `SpeakArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/translateWebPage":{"post":{"operationId":"translateWebPage","summary":"Read `args.url` in `args.to` — fetches the page with a plain GET (no browser; a page that renders its text client-side is out of reach), walks its rendered text nodes in reading order, and translates ","description":"Read `args.url` in `args.to` — fetches the page with a plain GET (no browser; a page that renders its text client-side is out of reach), walks its rendered text nodes in reading order, and translates them through this provider's own `translate` door. Measured 2026-09-16 that `<host>.translate.goog` (the site's own page-translation product) serves the ORIGINAL page plus a client-side translator script and never returns translated text browserless, which is why this fetches the caller's url directly instead. `args.from` is optional and, left out, the source is detected off the page's title. `segments` preserves the page's own reading order.\n\nCalls `bowmark.providers.google_translate.translateWebPage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateWebPage>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TranslateWebPageArgs","description":"TypeScript: `TranslateWebPageArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/translateDocument":{"post":{"operationId":"translateDocument","summary":"Translate a whole PDF, Word or PowerPoint file — the Documents tab.","description":"Translate a whole PDF, Word or PowerPoint file — the Documents tab. Takes `fileBase64` (the document, base64-encoded), `mimeType`, `to`, and optional `from` (left out, auto-detects), and returns `translatedBase64` + `mimeType` for the SAME document translated. Built on a real browser (rung 15): the RPC answers 200 to a bare browserless replay too, but silently returns the document UNTRANSLATED without a BotGuard token (`x-goog-batchexecute-bgr`) only a real browser produces — measured 2026-09-16, two earlier browserless-adjacent attempts read that 200 as success.\n\nCalls `bowmark.providers.google_translate.translateDocument`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateDocumentResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TranslateDocumentArgs","description":"TypeScript: `TranslateDocumentArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/translateImage":{"post":{"operationId":"translateImage","summary":"Read the text in a picture and translate it — the Images tab.","description":"Read the text in a picture and translate it — the Images tab. Takes `imageBase64` (the image, base64-encoded), `mimeType`, `to`, and optional `from` (left out, auto-detects), and returns `translatedImageBase64` + `mimeType` (a copy of the image with the detected text replaced in place) plus the plain `sourceText`/`translatedText` strings Google's OCR found. Shares `translateDocument`'s RPC channel and BotGuard gate (rung 15, real browser) but its own rpcid (`WqWDPb`) and upload shape — measured 2026-09-16 uploading a real PNG with rendered glyphs, verified \"Hola mundo\" → \"Bonjour le monde\" (tl=fr) and → \"Hello world\" (tl=en).\n\nCalls `bowmark.providers.google_translate.translateImage`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<GoogleTranslateImageResult>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/TranslateImageArgs","description":"TypeScript: `TranslateImageArgs`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/listSavedPhrases":{"post":{"operationId":"listSavedPhrases","summary":"The signed-in caller's own saved phrases.","description":"The signed-in caller's own saved phrases. Needs the CALLER's Google sign-in — a run without one pauses for it. Reaches translate.google.com/saved, which 302s to accounts.google.com logged out (measured 2026-09-15); a signed-in copy has never been captured, so a signed-in run refuses honestly rather than inventing rows.\n\nCalls `bowmark.providers.google_translate.listSavedPhrases`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<never>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/savePhrase":{"post":{"operationId":"savePhrase","summary":"Star a phrase into the signed-in caller's saved phrases.","description":"Star a phrase into the signed-in caller's saved phrases. Needs the caller's Google sign-in. The star request has never been captured signed in, so this refuses without writing anything rather than guessing a request.\n\nCalls `bowmark.providers.google_translate.savePhrase`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<never>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/PhraseArgs","description":"TypeScript: `PhraseArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/unsavePhrase":{"post":{"operationId":"unsavePhrase","summary":"Remove a phrase from the signed-in caller's saved phrases — savePhrase's undo.","description":"Remove a phrase from the signed-in caller's saved phrases — savePhrase's undo. Needs the caller's Google sign-in; refuses without writing anything for the same reason savePhrase does.\n\nCalls `bowmark.providers.google_translate.unsavePhrase`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<never>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/PhraseArgs","description":"TypeScript: `PhraseArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/listHistory":{"post":{"operationId":"listHistory","summary":"The signed-in caller's recent translation history.","description":"The signed-in caller's recent translation history. Needs the caller's Google sign-in. Reaches translate.google.com/history, which 302s to accounts.google.com logged out (measured 2026-09-15); a signed-in copy has never been captured, so a signed-in run refuses honestly.\n\nCalls `bowmark.providers.google_translate.listHistory`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<never>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}},"/v1/sites/google_translate/deleteHistory":{"post":{"operationId":"deleteHistory","summary":"Delete from the signed-in caller's translation history — one entry by its source text (`{ text }`, the History panel's ✕) or everything (`{ all: true }`, \"Clear all history\").","description":"Delete from the signed-in caller's translation history — one entry by its source text (`{ text }`, the History panel's ✕) or everything (`{ all: true }`, \"Clear all history\"). Needs the caller's Google sign-in. Reaches the same translate.google.com/history door as listHistory, which 302s to accounts.google.com logged out; the delete request has never been captured signed in, so a signed-in run refuses without deleting anything.\n\nCalls `bowmark.providers.google_translate.deleteHistory`. The body is the function's arguments, keyed by parameter name. `result` in the response is what it returns: `Promise<never>`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"args":{"$ref":"#/components/schemas/DeleteHistoryArgs","description":"TypeScript: `DeleteHistoryArgs`"},"opts":{"type":"object","properties":{"connection":{"type":"string"}},"required":["connection"],"additionalProperties":true,"description":"TypeScript: `ConnectionOption`"}},"required":["args"],"additionalProperties":false}}}},"responses":{"200":{"description":"The call ran. That includes a call that failed (`status: error`) or paused for a sign-in (`status: needs_user`), so branch on `status`.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/RunEnvelope"},{"type":"object","properties":{"result":{}}}]}}}},"400":{"description":"The body was malformed. `error` says what to send.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"401":{"description":"No API key, or a key that was refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"402":{"description":"The account is out of free usage, at its spend cap, or its card was declined. Fix billing at https://bowmark.ai/dashboard/billing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"404":{"$ref":"#/components/responses/NotFound"},"429":{"description":"Too many runs in flight on this account. Nothing was started or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}},"headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait."}}},"503":{"description":"A failure on Bowmark's side. Retry.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Your Bowmark API key."},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-Bowmark-Key"}},"responses":{"NotFound":{"description":"No such site or function.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}}},"schemas":{"RunEnvelope":{"type":"object","description":"What a run returns. `status` says whether the SCRIPT succeeded. A script that threw or paused for a login is still HTTP 200. Branch on `status`, not on the HTTP code.","required":["ok","status","result","logs","error","ms"],"properties":{"runId":{"type":"string","description":"Stable id for this run. Quote it in a support or `report` message."},"ok":{"type":"boolean","description":"False only when the run produced nothing usable."},"status":{"type":"string","enum":["ok","error","partial","needs_user"],"description":"`partial`: the result is real but some calls failed (see `incomplete`); `ok` stays true. `needs_user`: a person must sign in to a site first. Relay `meta.handoff.url` to them, then run again."},"egress":{"type":"string","enum":["default","link"],"description":"The egress the run was given, present only when the request asked for one. `link`: every request went through the caller's own Chrome (Bowmark Buddy)."},"result":{"description":"Whatever the script `return`ed. Any JSON value."},"logs":{"type":"array","items":{"type":"string"},"description":"Lines the script wrote with `log(...)`."},"error":{"type":["string","null"],"description":"Why the run failed, in plain words. Null on success."},"ms":{"type":"integer","description":"How long the script itself ran, in milliseconds."},"queuedMs":{"type":"integer","description":"How long the run waited for a worker before starting. Present only when it was a second or more."},"needs":{"type":"array","description":"The sign-ins this script is waiting on. Present when `status` is `needs_user`.","items":{"type":"object","required":["capability","provider","providerTitle","kind"],"properties":{"capability":{"type":"string"},"provider":{"type":"string"},"providerTitle":{"type":"string","description":"The site's name, to show a person."},"kind":{"type":"string"}}}},"incomplete":{"type":"object","description":"Present only when `status` is `partial`: which calls did not answer.","properties":{"summary":{"type":"string"},"totalCalls":{"type":"integer"}},"additionalProperties":true},"emptyHanded":{"type":"object","description":"Present when the script returned nothing while its calls returned rows, usually a filter that matched none of the site's own labels. Lists the label values the calls actually returned.","additionalProperties":true},"notes":{"type":"array","description":"Caveats a call attached to a complete answer. Never changes `status`.","items":{"type":"object","properties":{"path":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}}}},"meta":{"type":"object","properties":{"handoff":{"type":"object","description":"A single-use sign-in link for a person to open. Expires at `expiresAt`.","properties":{"ref":{"type":"string"},"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}},"concurrency":{"type":"object","description":"On a 429: how many runs are in flight and when to retry.","properties":{"limit":{"type":"integer"},"inFlight":{"type":"integer"},"retryAfterSeconds":{"type":"integer"}}}},"additionalProperties":true},"notice":{"type":"object","description":"Set when the account owner has not accepted the current Terms. Relay it to them.","additionalProperties":true}}},"CheckSpellingArgs":{"type":"object","properties":{"text":{"type":"string"},"language":{"type":"string"}},"required":["text","language"],"additionalProperties":true},"DeleteHistoryArgs":{"anyOf":[{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"additionalProperties":true},{"type":"object","properties":{"all":{"const":true}},"required":["all"],"additionalProperties":true}]},"DetectLanguageArgs":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"additionalProperties":true},"GetAlternativeTranslationsArgs":{"type":"object","properties":{"text":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"}},"required":["text","to"],"additionalProperties":true},"GetDefinitionsArgs":{"type":"object","properties":{"word":{"type":"string"},"language":{"type":"string"}},"required":["word","language"],"additionalProperties":true},"GetSynonymsArgs":{"type":"object","properties":{"word":{"type":"string"},"language":{"type":"string"}},"required":["word","language"],"additionalProperties":true},"ListLanguagesArgs":{"type":"object","properties":{"hl":{"type":"string"}},"additionalProperties":true},"LookupWordArgs":{"type":"object","properties":{"word":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"},"hl":{"type":"string"}},"required":["word","to","from"],"additionalProperties":true},"PhraseArgs":{"type":"object","properties":{"text":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["text","from","to"],"additionalProperties":true},"RomanizeArgs":{"type":"object","properties":{"text":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"}},"required":["text","to"],"additionalProperties":true},"SpeakArgs":{"type":"object","properties":{"text":{"type":"string"},"language":{"type":"string"},"slow":{"type":"boolean"}},"required":["text","language"],"additionalProperties":true},"TranslateArgs":{"type":"object","properties":{"text":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"to":{"type":"string"},"from":{"type":"string"},"model":{"anyOf":[{"const":"classic"},{"const":"advanced"}]}},"required":["text","to"],"additionalProperties":true},"TranslateDocumentArgs":{"type":"object","properties":{"fileBase64":{"type":"string"},"mimeType":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"}},"required":["fileBase64","mimeType","to"],"additionalProperties":true},"TranslateImageArgs":{"type":"object","properties":{"imageBase64":{"type":"string"},"mimeType":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"}},"required":["imageBase64","mimeType","to"],"additionalProperties":true},"TranslateWebPageArgs":{"type":"object","properties":{"url":{"type":"string"},"to":{"type":"string"},"from":{"type":"string"}},"required":["url","to"],"additionalProperties":true}}}}