{
  "service": "lingvanex_translation_api",
  "displayName": "Lingvanex Translation API",
  "categories": [
    "AI",
    "Productivity"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "LINGVANEX_API_KEY",
      "description": "Lingvanex Translation API key passed as the key query parameter. Create or view your key in the Lingvanex dashboard: https://account.lingvanex.com/dashboard/."
    }
  ],
  "homepageUrl": "https://lingvanex.com/products/translationapi/",
  "actions": [
    {
      "id": "lingvanex_translation_api.detect_language",
      "service": "lingvanex_translation_api",
      "name": "detect_language",
      "description": "Detect the language of one text value or a list of text values.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "description": "One text value to inspect."
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "description": "One text value to inspect."
                },
                "description": "Text values to inspect in one request.",
                "minItems": 1
              }
            ],
            "description": "The text values to inspect with Lingvanex."
          }
        },
        "additionalProperties": false,
        "required": [
          "q"
        ],
        "description": "The input payload for detecting languages with Lingvanex."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "detections": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "description": "The detected language code."
                  },
                  "isReliable": {
                    "anyOf": [
                      {
                        "type": "boolean",
                        "description": "The deprecated Lingvanex reliability flag when returned."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "number",
                        "description": "The deprecated Lingvanex confidence value when returned."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "raw": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "The raw object returned by Lingvanex."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "language",
                  "isReliable",
                  "confidence",
                  "raw"
                ],
                "description": "One language detection candidate returned by Lingvanex."
              },
              "description": "The detection candidates for one input text value."
            },
            "description": "Detection candidate groups corresponding to each input text value."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Lingvanex."
          }
        },
        "additionalProperties": false,
        "required": [
          "detections",
          "raw"
        ],
        "description": "The normalized Lingvanex language detection response."
      }
    },
    {
      "id": "lingvanex_translation_api.list_languages",
      "service": "lingvanex_translation_api",
      "name": "list_languages",
      "description": "List languages supported by the Lingvanex Translation API.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "target": {
            "type": "string",
            "minLength": 1,
            "description": "The language code used to localize returned language names."
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "description": "The optional translation model passed to Lingvanex."
          }
        },
        "additionalProperties": false,
        "description": "The input payload for listing Lingvanex languages."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "languages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "language": {
                  "type": "string",
                  "description": "The supported language code."
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The localized language name when a target language was requested."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Lingvanex."
                }
              },
              "additionalProperties": false,
              "required": [
                "language",
                "name",
                "raw"
              ],
              "description": "One language supported by Lingvanex."
            },
            "description": "The languages supported by Lingvanex."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Lingvanex."
          }
        },
        "additionalProperties": false,
        "required": [
          "languages",
          "raw"
        ],
        "description": "The normalized Lingvanex supported-language response."
      }
    },
    {
      "id": "lingvanex_translation_api.translate_text",
      "service": "lingvanex_translation_api",
      "name": "translate_text",
      "description": "Translate one text value or a bounded list of text values with Lingvanex.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "description": "One text value to process."
              },
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "description": "One text value to process."
                },
                "description": "A list of up to 128 text values to translate in one request.",
                "minItems": 1,
                "maxItems": 128
              }
            ],
            "description": "The text values to translate with Lingvanex."
          },
          "target": {
            "type": "string",
            "minLength": 1,
            "description": "The target language code for the translation."
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "description": "The source language code. Lingvanex detects the source language when omitted."
          },
          "format": {
            "type": "string",
            "enum": [
              "html",
              "text"
            ],
            "description": "The source text format."
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "description": "The optional translation model passed to Lingvanex."
          }
        },
        "additionalProperties": false,
        "required": [
          "q",
          "target"
        ],
        "description": "The input payload for translating text with Lingvanex."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "translations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "translatedText": {
                  "type": "string",
                  "description": "The translated text."
                },
                "detectedSourceLanguage": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The detected source language when source was not provided."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "model": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The translation model when returned by Lingvanex."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Lingvanex."
                }
              },
              "additionalProperties": false,
              "required": [
                "translatedText",
                "detectedSourceLanguage",
                "model",
                "raw"
              ],
              "description": "One translation returned by Lingvanex."
            },
            "description": "The translations returned by Lingvanex."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Lingvanex."
          }
        },
        "additionalProperties": false,
        "required": [
          "translations",
          "raw"
        ],
        "description": "The normalized Lingvanex translation response."
      }
    }
  ]
}
