Для AI-агентов: markdown этой страницы — /docs/schema-3d47910dba441d3faf6aff33415e31980c7ae1e9b3285101e6e74511febc4c25.mdиндекс документации — /llms.txt
Схема: site_request_upload: inputSchema
Обновлено
| Поле | Значение |
|---|---|
| $schema | "https://json-schema.org/draft/2020-12/schema" |
| additionalProperties | false |
| properties.bot.description | "Optional slug of the bot you expect to act on (get_active_bot). If the active bot differs, the call is refused with ACTIVE_BOT_CHANGED and nothing runs." |
| properties.bot.maxLength | 128 |
| properties.bot.minLength | 1 |
| properties.bot.type | "string" |
| properties.files.description | "Value for files." |
| properties.files.items.additionalProperties | false |
| properties.files.items.description | "Value for files item." |
| properties.files.items.properties.content_type.description | "Value for content type." |
| properties.files.items.properties.content_type.maxLength | 255 |
| properties.files.items.properties.content_type.minLength | 1 |
| properties.files.items.properties.content_type.type | "string" |
| properties.files.items.properties.path.description | "Value for path." |
| properties.files.items.properties.path.maxLength | 512 |
| properties.files.items.properties.path.minLength | 1 |
| properties.files.items.properties.path.type | "string" |
| properties.files.items.properties.references.description | "Value for references." |
| properties.files.items.properties.references.items.description | "Value for references item." |
| properties.files.items.properties.references.items.maxLength | 512 |
| properties.files.items.properties.references.items.minLength | 1 |
| properties.files.items.properties.references.items.type | "string" |
| properties.files.items.properties.references.type | "array" |
| properties.files.items.properties.size_bytes.description | "Exact byte size of a file you PUT. With `source` it may be omitted: the server takes the size from the source." |
| properties.files.items.properties.size_bytes.maximum | 9007199254740991 |
| properties.files.items.properties.size_bytes.minimum | 0 |
| properties.files.items.properties.size_bytes.type | "integer" |
| properties.files.items.properties.source.additionalProperties | false |
| properties.files.items.properties.source.description | "Where the server fetches this file itself, so you do not PUT it: an https address on an allowed file host, or data:<mime>;base64,<payload> with byte_length for a small file. The upload then reports status `fetching`; site_publish waits for it." |
| properties.files.items.properties.source.properties.byte_length.description | "Required with a data: address: the exact number of bytes the base64 payload decodes to." |
| properties.files.items.properties.source.properties.byte_length.exclusiveMinimum | 0 |
| properties.files.items.properties.source.properties.byte_length.maximum | 9007199254740991 |
| properties.files.items.properties.source.properties.byte_length.type | "integer" |
| properties.files.items.properties.source.properties.file_name.description | "Value for file name." |
| properties.files.items.properties.source.properties.file_name.maxLength | 1024 |
| properties.files.items.properties.source.properties.file_name.minLength | 1 |
| properties.files.items.properties.source.properties.file_name.type | "string" |
| properties.files.items.properties.source.properties.media_kind.description | "Value for media kind." |
| properties.files.items.properties.source.properties.media_kind.enum | ["voice","audio","video_note"] |
| properties.files.items.properties.source.properties.media_kind.type | "string" |
| properties.files.items.properties.source.properties.mime_type.description | "Value for mime type." |
| properties.files.items.properties.source.properties.mime_type.maxLength | 255 |
| properties.files.items.properties.source.properties.mime_type.minLength | 1 |
| properties.files.items.properties.source.properties.mime_type.type | "string" |
| properties.files.items.properties.source.properties.sha256.description | "Optional with a data: address: the SHA-256 of the decoded bytes, 64 hex characters; checked against them." |
| properties.files.items.properties.source.properties.sha256.maxLength | 64 |
| properties.files.items.properties.source.properties.sha256.minLength | 64 |
| properties.files.items.properties.source.properties.sha256.type | "string" |
| properties.files.items.properties.source.properties.url.description | "An https address, or for a small file (at most 131072 bytes after decoding) data:<mime>;base64,<payload>. A larger file goes through media_request_upload." |
| properties.files.items.properties.source.properties.url.maxLength | 1048576 |
| properties.files.items.properties.source.properties.url.minLength | 1 |
| properties.files.items.properties.source.properties.url.type | "string" |
| properties.files.items.properties.source.required | ["url"] |
| properties.files.items.properties.source.type | "object" |
| properties.files.items.required | ["path","content_type"] |
| properties.files.items.type | "object" |
| properties.files.minItems | 1 |
| properties.files.type | "array" |
| properties.host.description | "Value for host." |
| properties.host.maxLength | 253 |
| properties.host.minLength | 4 |
| properties.host.pattern | "^(?=.{4,253}$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\.?$" |
| properties.host.type | "string" |
| properties.mode.default | "merge" |
| properties.mode.description | "Value for mode." |
| properties.mode.enum | ["merge","replace"] |
| properties.mode.type | "string" |
| required | ["host","mode","files"] |
| type | "object" |