{
  "service": "tencent_docs",
  "displayName": "Tencent Docs",
  "categories": [
    "Productivity",
    "Storage"
  ],
  "authTypes": [
    "oauth2"
  ],
  "auth": [
    {
      "type": "oauth2",
      "authorizationUrl": "https://docs.qq.com/oauth/v2/authorize",
      "tokenUrl": "https://docs.qq.com/oauth/v2/token",
      "scopes": [
        "scope.user.info.base",
        "scope.drive.creatable",
        "scope.drive.editable",
        "scope.drive.file.metadata",
        "scope.drive.file.metadata.readonly",
        "scope.drive.readonly",
        "scope.drive.exportable",
        "scope.doc",
        "scope.sheet",
        "scope.smartsheet.readonly",
        "scope.form"
      ],
      "tokenEndpointAuthMethod": "client_secret_post",
      "authorizationParams": {
        "scope": "all"
      }
    }
  ],
  "homepageUrl": "https://docs.qq.com",
  "actions": [
    {
      "id": "tencent_docs.batch_update_doc",
      "service": "tencent_docs",
      "name": "batch_update_doc",
      "description": "Apply up to thirty Tencent Docs document V3 batch update operations.",
      "requiredScopes": [
        "tencent_docs.doc.write"
      ],
      "providerPermissions": [
        "scope.doc"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs document file ID."
          },
          "requests": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A provider-defined Tencent Docs request object."
            },
            "description": "The Tencent Docs document batch update requests.",
            "minItems": 1,
            "maxItems": 30
          },
          "version": {
            "type": "integer",
            "description": "The document version used for optimistic concurrency."
          }
        },
        "additionalProperties": false,
        "required": [
          "fileID",
          "requests"
        ],
        "description": "Input for batch-updating a Tencent Docs document."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs document batch update response."
      }
    },
    {
      "id": "tencent_docs.batch_update_sheet",
      "service": "tencent_docs",
      "name": "batch_update_sheet",
      "description": "Apply up to five Tencent Docs spreadsheet V3 batch update operations.",
      "requiredScopes": [
        "tencent_docs.sheet.write"
      ],
      "providerPermissions": [
        "scope.sheet"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs spreadsheet file ID."
          },
          "requests": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "A provider-defined Tencent Docs request object."
            },
            "description": "The Tencent Docs spreadsheet batch update requests.",
            "minItems": 1,
            "maxItems": 5
          }
        },
        "additionalProperties": false,
        "description": "Input for batch-updating a Tencent Docs sheet."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "responses": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {},
              "additionalProperties": true,
              "description": "The raw object returned by Tencent Docs."
            },
            "description": "The per-operation responses returned by Tencent Docs."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs spreadsheet batch update response."
      }
    },
    {
      "id": "tencent_docs.convert_file_id",
      "service": "tencent_docs",
      "name": "convert_file_id",
      "description": "Convert between Tencent Docs fileID and encodedID values.",
      "requiredScopes": [
        "tencent_docs.drive.read"
      ],
      "providerPermissions": [
        "scope.drive.readonly",
        "scope.drive.file.metadata",
        "scope.drive.file.metadata.readonly"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2,
            "description": "The conversion type. Use 1 for fileID to encodedID or 2 for encodedID to fileID."
          },
          "value": {
            "type": "string",
            "minLength": 1,
            "description": "The ID value to convert."
          }
        },
        "additionalProperties": false,
        "description": "Input for converting Tencent Docs file IDs."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "fileID": {
            "anyOf": [
              {
                "type": "string",
                "description": "The Tencent Docs file ID when converting from encodedID."
              },
              {
                "type": "null"
              }
            ]
          },
          "encodedID": {
            "anyOf": [
              {
                "type": "string",
                "description": "The Tencent Docs encoded ID when converting from fileID."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs file ID conversion response."
      }
    },
    {
      "id": "tencent_docs.create_file",
      "service": "tencent_docs",
      "name": "create_file",
      "description": "Create a Tencent Docs online document, sheet, form, slide, or smart sheet.",
      "requiredScopes": [
        "tencent_docs.drive.create"
      ],
      "providerPermissions": [
        "scope.drive.creatable"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "description": "The document title. Tencent Docs limits it to 36 characters."
          },
          "type": {
            "type": "string",
            "enum": [
              "doc",
              "sheet",
              "form",
              "slide",
              "mind",
              "flowchart",
              "addon",
              "smartsheet"
            ],
            "description": "The Tencent Docs file type to create."
          },
          "templateID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs official template ID to use."
          },
          "templateVersion": {
            "type": "string",
            "minLength": 1,
            "description": "The template version to use. Defaults to 0."
          },
          "folderID": {
            "type": "string",
            "minLength": 1,
            "description": "The parent folder ID. Defaults to the root folder."
          },
          "ext": {
            "type": "string",
            "minLength": 1,
            "description": "The Drive plugin thumbnail type. Required only for addon documents."
          }
        },
        "additionalProperties": false,
        "required": [
          "title",
          "type"
        ],
        "description": "Input for creating a Tencent Docs online file."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "file": {
            "type": "object",
            "properties": {
              "ID": {
                "type": "string",
                "description": "The Tencent Docs file or folder ID."
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The file or folder title."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Tencent Docs file type, such as doc, sheet, form, or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The browser URL for opening the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The file or folder status returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isCreator": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the authorized user created the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOwner": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the authorized user owns the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The creation time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "creatorName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The creator display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownerName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The owner display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownerID": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The owner Open ID returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastModifyTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The last modification time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastModifyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The last modifier display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastBrowseTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The last browse time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "starred": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the file is starred."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pinned": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the file is pinned."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fileSource": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The source classification for the file when returned by search."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "highlight": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The highlighted search snippet when returned by search."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Tencent Docs."
              }
            },
            "additionalProperties": false,
            "description": "A Tencent Docs file or folder item."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs create-file response."
      }
    },
    {
      "id": "tencent_docs.generate_form_result",
      "service": "tencent_docs",
      "name": "generate_form_result",
      "description": "Generate the result spreadsheet for a Tencent Docs form.",
      "requiredScopes": [
        "tencent_docs.form.write"
      ],
      "providerPermissions": [
        "scope.form"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "formID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs form ID."
          }
        },
        "additionalProperties": false,
        "description": "Input containing a Tencent Docs form ID."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "file": {
            "type": "object",
            "properties": {
              "ID": {
                "type": "string",
                "description": "The Tencent Docs file or folder ID."
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The file or folder title."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Tencent Docs file type, such as doc, sheet, form, or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The browser URL for opening the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The file or folder status returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isCreator": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the authorized user created the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOwner": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the authorized user owns the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The creation time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "creatorName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The creator display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownerName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The owner display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownerID": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The owner Open ID returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastModifyTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The last modification time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastModifyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The last modifier display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastBrowseTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The last browse time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "starred": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the file is starred."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pinned": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the file is pinned."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fileSource": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The source classification for the file when returned by search."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "highlight": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The highlighted search snippet when returned by search."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Tencent Docs."
              }
            },
            "additionalProperties": false,
            "description": "A Tencent Docs file or folder item."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs form result generation response."
      }
    },
    {
      "id": "tencent_docs.get_current_user",
      "service": "tencent_docs",
      "name": "get_current_user",
      "description": "Get the current Tencent Docs user profile for the OAuth access token.",
      "requiredScopes": [
        "tencent_docs.user.read"
      ],
      "providerPermissions": [
        "scope.user.info.base"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "No input is required to get the current Tencent Docs user."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "user": {
            "type": "object",
            "properties": {
              "openID": {
                "type": "string",
                "description": "The Tencent Docs Open ID for the authorized user."
              },
              "nick": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The display nickname returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "avatar": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The user avatar URL returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The user authorization source, such as wx or qq."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "bindSource": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account binding source, such as wx or qq."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unionID": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The developer-account scoped Tencent Docs union ID."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Tencent Docs."
              }
            },
            "additionalProperties": false,
            "description": "A Tencent Docs user profile."
          }
        },
        "additionalProperties": false,
        "description": "The current Tencent Docs user profile response."
      }
    },
    {
      "id": "tencent_docs.get_doc_content",
      "service": "tencent_docs",
      "name": "get_doc_content",
      "description": "Get the structured content and version of a Tencent Docs document.",
      "requiredScopes": [
        "tencent_docs.doc.read"
      ],
      "providerPermissions": [
        "scope.doc"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs file ID."
          }
        },
        "additionalProperties": false,
        "description": "Input containing a Tencent Docs file ID."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "document": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          },
          "version": {
            "type": "integer",
            "description": "The Tencent Docs document version."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs document content response."
      }
    },
    {
      "id": "tencent_docs.get_export_progress",
      "service": "tencent_docs",
      "name": "get_export_progress",
      "description": "Check a Tencent Docs asynchronous export operation and return the download URL when ready.",
      "requiredScopes": [
        "tencent_docs.drive.export"
      ],
      "providerPermissions": [
        "scope.drive.exportable"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "exportHandle": {
            "type": "string",
            "minLength": 1,
            "description": "The opaque export handle returned by start_export."
          },
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs file ID being exported."
          },
          "operationID": {
            "type": "string",
            "minLength": 1,
            "description": "The export operation ID returned by start_export."
          }
        },
        "additionalProperties": false,
        "description": "Input for checking Tencent Docs export progress. Provide exportHandle, or both fileID and operationID."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "succeeded",
              "failed"
            ],
            "description": "The normalized export status."
          },
          "progress": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "description": "The export progress from 0 to 100."
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "The temporary download URL when export has succeeded.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs export progress response."
      }
    },
    {
      "id": "tencent_docs.get_file_metadata",
      "service": "tencent_docs",
      "name": "get_file_metadata",
      "description": "Get Tencent Docs metadata for one file by file ID.",
      "requiredScopes": [
        "tencent_docs.drive.read"
      ],
      "providerPermissions": [
        "scope.drive.readonly",
        "scope.drive.file.metadata",
        "scope.drive.file.metadata.readonly"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs file ID."
          }
        },
        "additionalProperties": false,
        "description": "Input containing a Tencent Docs file ID."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "file": {
            "type": "object",
            "properties": {
              "ID": {
                "type": "string",
                "description": "The Tencent Docs file or folder ID."
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The file or folder title."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The Tencent Docs file type, such as doc, sheet, form, or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The browser URL for opening the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The file or folder status returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isCreator": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the authorized user created the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOwner": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the authorized user owns the file or folder."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The creation time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "creatorName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The creator display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownerName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The owner display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownerID": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The owner Open ID returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastModifyTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The last modification time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastModifyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The last modifier display name returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastBrowseTime": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The last browse time returned by Tencent Docs."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "starred": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the file is starred."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pinned": {
                "anyOf": [
                  {
                    "type": "boolean",
                    "description": "Whether the file is pinned."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fileSource": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The source classification for the file when returned by search."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "highlight": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The highlighted search snippet when returned by search."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Tencent Docs."
              }
            },
            "additionalProperties": false,
            "description": "A Tencent Docs file or folder item."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs file metadata response."
      }
    },
    {
      "id": "tencent_docs.get_sheet_range",
      "service": "tencent_docs",
      "name": "get_sheet_range",
      "description": "Read cell values and metadata from a Tencent Docs spreadsheet range.",
      "requiredScopes": [
        "tencent_docs.sheet.read"
      ],
      "providerPermissions": [
        "scope.sheet"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs spreadsheet file ID."
          },
          "sheetID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs spreadsheet sheet ID."
          },
          "range": {
            "type": "string",
            "minLength": 1,
            "description": "The A1-style range to read, such as A1:D10."
          }
        },
        "additionalProperties": false,
        "description": "Input for reading a Tencent Docs spreadsheet range."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "gridData": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs spreadsheet range response."
      }
    },
    {
      "id": "tencent_docs.list_folder",
      "service": "tencent_docs",
      "name": "list_folder",
      "description": "List files and folders in a Tencent Docs folder.",
      "requiredScopes": [
        "tencent_docs.drive.read"
      ],
      "providerPermissions": [
        "scope.drive.readonly"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "folderID": {
            "type": "string",
            "minLength": 1,
            "description": "The folder ID to list. Omit it to list the root folder."
          },
          "sortType": {
            "type": "string",
            "minLength": 1,
            "description": "The sort type, such as browse."
          },
          "asc": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1,
            "description": "The sort direction. Use 1 for ascending or 0 for descending."
          },
          "start": {
            "type": "integer",
            "minimum": 0,
            "description": "The start offset. Defaults to 0."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of items to return. Defaults to 20."
          }
        },
        "additionalProperties": false,
        "description": "Input for listing Tencent Docs folder contents."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "next": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The next offset returned by Tencent Docs."
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ID": {
                  "type": "string",
                  "description": "The Tencent Docs file or folder ID."
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The file or folder title."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Tencent Docs file type, such as doc, sheet, form, or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "url": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The browser URL for opening the file or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The file or folder status returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isCreator": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the authorized user created the file or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isOwner": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the authorized user owns the file or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createTime": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The creation time returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "creatorName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The creator display name returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ownerName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The owner display name returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ownerID": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The owner Open ID returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastModifyTime": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The last modification time returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastModifyName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The last modifier display name returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastBrowseTime": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The last browse time returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "starred": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the file is starred."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "pinned": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the file is pinned."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fileSource": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The source classification for the file when returned by search."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "highlight": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The highlighted search snippet when returned by search."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Tencent Docs."
                }
              },
              "additionalProperties": false,
              "description": "A Tencent Docs file or folder item."
            },
            "description": "The files and folders in the folder."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs folder listing response."
      }
    },
    {
      "id": "tencent_docs.list_smartsheet_sheets",
      "service": "tencent_docs",
      "name": "list_smartsheet_sheets",
      "description": "List child sheets inside a Tencent Docs Smartsheet file.",
      "requiredScopes": [
        "tencent_docs.smartsheet.read"
      ],
      "providerPermissions": [
        "scope.smartsheet.readonly"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs file ID."
          }
        },
        "additionalProperties": false,
        "description": "Input containing a Tencent Docs file ID."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "sheets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sheetID": {
                  "type": "string",
                  "description": "The Tencent Docs Smartsheet sheet ID."
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The sheet title returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isVisible": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the sheet is visible."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rowCount": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The row count returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "columnCount": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The column count returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Tencent Docs."
                }
              },
              "additionalProperties": false,
              "description": "A Tencent Docs Smartsheet child sheet."
            },
            "description": "The Smartsheet child sheets returned by Tencent Docs."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs Smartsheet sheet listing response."
      }
    },
    {
      "id": "tencent_docs.rename_file",
      "service": "tencent_docs",
      "name": "rename_file",
      "description": "Rename a Tencent Docs file by file ID.",
      "requiredScopes": [
        "tencent_docs.drive.rename"
      ],
      "providerPermissions": [
        "scope.drive.editable",
        "scope.drive.file.metadata"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs file ID."
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "description": "The new file title. Tencent Docs limits it to 36 characters."
          }
        },
        "additionalProperties": false,
        "description": "Input for renaming a Tencent Docs file."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs rename-file response."
      }
    },
    {
      "id": "tencent_docs.search_files",
      "service": "tencent_docs",
      "name": "search_files",
      "description": "Search Tencent Docs files by title keyword or owner nickname.",
      "requiredScopes": [
        "tencent_docs.drive.read"
      ],
      "providerPermissions": [
        "scope.drive.readonly"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchKey": {
            "type": "string",
            "minLength": 1,
            "description": "The keyword to search for."
          },
          "searchType": {
            "type": "string",
            "enum": [
              "title",
              "owner"
            ],
            "description": "The search mode."
          },
          "resultType": {
            "type": "string",
            "enum": [
              "all",
              "folder"
            ],
            "description": "The result type filter."
          },
          "folderID": {
            "type": "string",
            "minLength": 1,
            "description": "The folder ID that limits the search scope."
          },
          "offset": {
            "type": "integer",
            "minimum": 0,
            "description": "The result offset. Defaults to 0."
          },
          "size": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "The maximum result count. Tencent Docs allows up to 50."
          },
          "sortType": {
            "type": "string",
            "enum": [
              "modify",
              "create",
              "browse"
            ],
            "description": "The tie-break sort rule."
          },
          "asc": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1,
            "description": "The sort direction. Use 1 for ascending or 0 for descending."
          },
          "byOwnership": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1,
            "description": "Whether to filter by files owned by the requester. Use 1 for yes or 0 for no."
          },
          "fileTypes": {
            "type": "string",
            "minLength": 1,
            "description": "A Tencent Docs file-type filter. Use hyphen-separated values for multiple types."
          }
        },
        "additionalProperties": false,
        "required": [
          "searchKey",
          "searchType"
        ],
        "description": "Input for searching Tencent Docs files."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "next": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The next offset returned by Tencent Docs."
              },
              {
                "type": "null"
              }
            ]
          },
          "total": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total matching item count returned by Tencent Docs."
              },
              {
                "type": "null"
              }
            ]
          },
          "hasMore": {
            "anyOf": [
              {
                "type": "boolean",
                "description": "Whether Tencent Docs has more search results."
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ID": {
                  "type": "string",
                  "description": "The Tencent Docs file or folder ID."
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The file or folder title."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The Tencent Docs file type, such as doc, sheet, form, or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "url": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The browser URL for opening the file or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The file or folder status returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isCreator": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the authorized user created the file or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isOwner": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the authorized user owns the file or folder."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createTime": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The creation time returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "creatorName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The creator display name returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ownerName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The owner display name returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ownerID": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The owner Open ID returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastModifyTime": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The last modification time returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastModifyName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The last modifier display name returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastBrowseTime": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "description": "The last browse time returned by Tencent Docs."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "starred": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the file is starred."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "pinned": {
                  "anyOf": [
                    {
                      "type": "boolean",
                      "description": "Whether the file is pinned."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "fileSource": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The source classification for the file when returned by search."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "highlight": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The highlighted search snippet when returned by search."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Tencent Docs."
                }
              },
              "additionalProperties": false,
              "description": "A Tencent Docs file or folder item."
            },
            "description": "The search result files and folders."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw object returned by Tencent Docs."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs search response."
      }
    },
    {
      "id": "tencent_docs.start_export",
      "service": "tencent_docs",
      "name": "start_export",
      "description": "Start an asynchronous Tencent Docs file export and return the operation ID.",
      "requiredScopes": [
        "tencent_docs.drive.export"
      ],
      "providerPermissions": [
        "scope.drive.exportable"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "fileID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs file ID to export."
          },
          "exportType": {
            "type": "string",
            "enum": [
              "doc",
              "pdf",
              "sheet",
              "slide"
            ],
            "description": "The target export type when converting document type."
          }
        },
        "additionalProperties": false,
        "required": [
          "fileID"
        ],
        "description": "Input for starting an asynchronous Tencent Docs export."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          },
          "fileID": {
            "type": "string",
            "description": "The Tencent Docs file ID being exported."
          },
          "operationID": {
            "type": "string",
            "description": "The Tencent Docs export operation ID."
          },
          "exportHandle": {
            "type": "string",
            "description": "An opaque handle that can be passed to get_export_progress."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs export submission response."
      }
    },
    {
      "id": "tencent_docs.update_form_collection_deadline",
      "service": "tencent_docs",
      "name": "update_form_collection_deadline",
      "description": "Publish, pause, or update the collection deadline for a Tencent Docs form.",
      "requiredScopes": [
        "tencent_docs.form.write"
      ],
      "providerPermissions": [
        "scope.form"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "formID": {
            "type": "string",
            "minLength": 1,
            "description": "The Tencent Docs form ID."
          },
          "endTime": {
            "type": "integer",
            "minimum": 0,
            "description": "The collection end timestamp in seconds. Use 0 to publish without an end time."
          }
        },
        "additionalProperties": false,
        "required": [
          "formID"
        ],
        "description": "Input for updating a Tencent Docs form collection deadline."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "ret": {
            "type": "integer",
            "description": "The Tencent Docs business response code. 0 means success."
          },
          "msg": {
            "type": "string",
            "description": "The Tencent Docs business response message."
          }
        },
        "additionalProperties": false,
        "description": "The Tencent Docs form deadline update response."
      }
    }
  ]
}
