{
  "service": "talenthr",
  "displayName": "TalentHR",
  "categories": [
    "Productivity"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "talenthr_api_key",
      "description": "TalentHR API key used as the Basic Auth username. Generate it in TalentHR under Settings > Domain settings > API.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://www.talenthr.io/",
  "actions": [
    {
      "id": "talenthr.change_employee_role",
      "service": "talenthr",
      "name": "change_employee_role",
      "description": "Change a TalentHR employee's user role to Employee or HR-Manager using the official employee role endpoints.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "employeeId": {
            "type": "integer",
            "maximum": 9007199254740991,
            "exclusiveMinimum": 0,
            "description": "The TalentHR employee ID whose role should be changed."
          },
          "role": {
            "type": "string",
            "enum": [
              "employee",
              "hr_manager"
            ],
            "description": "The TalentHR role to assign to the employee."
          }
        },
        "additionalProperties": false,
        "required": [
          "employeeId",
          "role"
        ],
        "description": "Request parameters for changing a TalentHR employee role."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Whether TalentHR reported that the operation succeeded."
          },
          "employeeId": {
            "type": "integer",
            "maximum": 9007199254740991,
            "exclusiveMinimum": 0,
            "description": "The TalentHR employee ID returned by the role change endpoint."
          },
          "role": {
            "type": "string",
            "enum": [
              "employee",
              "hr_manager"
            ],
            "description": "The TalentHR role to assign to the employee."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Raw TalentHR response payload."
          }
        },
        "additionalProperties": false,
        "required": [
          "success",
          "employeeId",
          "role",
          "raw"
        ],
        "description": "TalentHR employee role change response."
      }
    }
  ]
}
