Для AI-агентов: markdown этой страницы — /docs/schema-8a59642bd8a7c5a1151d4e760b5ec23b418578a6a966943c0714a4758899206c.mdиндекс документации — /llms.txt
Схема: media_import_files: 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 | "Files the AI host attached: a download_url and a file_id each. ChatGPT fills this itself." |
| properties.files.items.additionalProperties | false |
| properties.files.items.description | "Value for files item." |
| properties.files.items.properties.download_url.description | "Value for download url." |
| properties.files.items.properties.download_url.format | "uri" |
| properties.files.items.properties.download_url.maxLength | 8192 |
| properties.files.items.properties.download_url.type | "string" |
| properties.files.items.properties.file_id.description | "Value for file id." |
| properties.files.items.properties.file_id.maxLength | 1024 |
| properties.files.items.properties.file_id.minLength | 1 |
| properties.files.items.properties.file_id.type | "string" |
| properties.files.items.properties.file_name.description | "Value for file name." |
| properties.files.items.properties.file_name.maxLength | 1024 |
| properties.files.items.properties.file_name.minLength | 1 |
| properties.files.items.properties.file_name.type | "string" |
| properties.files.items.properties.media_kind.description | "Value for media kind." |
| properties.files.items.properties.media_kind.enum | ["voice","audio","video_note"] |
| properties.files.items.properties.media_kind.type | "string" |
| properties.files.items.properties.mime_type.description | "Value for mime type." |
| properties.files.items.properties.mime_type.maxLength | 255 |
| properties.files.items.properties.mime_type.minLength | 1 |
| properties.files.items.properties.mime_type.type | "string" |
| properties.files.items.required | ["download_url","file_id"] |
| properties.files.items.type | "object" |
| properties.files.maxItems | 10 |
| properties.files.type | "array" |
| properties.idempotency_key.description | "Value for idempotency key." |
| properties.idempotency_key.maxLength | 256 |
| properties.idempotency_key.minLength | 1 |
| properties.idempotency_key.type | "string" |
| properties.sources.description | "HTTPS addresses of files on the business site or an allowed file host, or small files as data: addresses with byte_length. Up to 10 files and sources together." |
| properties.sources.items.additionalProperties | false |
| properties.sources.items.description | "Value for sources item." |
| properties.sources.items.properties.byte_length.description | "Required with a data: address: the exact number of bytes the base64 payload decodes to." |
| properties.sources.items.properties.byte_length.exclusiveMinimum | 0 |
| properties.sources.items.properties.byte_length.maximum | 9007199254740991 |
| properties.sources.items.properties.byte_length.type | "integer" |
| properties.sources.items.properties.file_name.description | "Value for file name." |
| properties.sources.items.properties.file_name.maxLength | 1024 |
| properties.sources.items.properties.file_name.minLength | 1 |
| properties.sources.items.properties.file_name.type | "string" |
| properties.sources.items.properties.media_kind.description | "Value for media kind." |
| properties.sources.items.properties.media_kind.enum | ["voice","audio","video_note"] |
| properties.sources.items.properties.media_kind.type | "string" |
| properties.sources.items.properties.mime_type.description | "Value for mime type." |
| properties.sources.items.properties.mime_type.maxLength | 255 |
| properties.sources.items.properties.mime_type.minLength | 1 |
| properties.sources.items.properties.mime_type.type | "string" |
| properties.sources.items.properties.sha256.description | "Optional with a data: address: the SHA-256 of the decoded bytes, 64 hex characters; checked against them." |
| properties.sources.items.properties.sha256.maxLength | 64 |
| properties.sources.items.properties.sha256.minLength | 64 |
| properties.sources.items.properties.sha256.type | "string" |
| properties.sources.items.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.sources.items.properties.url.maxLength | 1048576 |
| properties.sources.items.properties.url.minLength | 1 |
| properties.sources.items.properties.url.type | "string" |
| properties.sources.items.required | ["url"] |
| properties.sources.items.type | "object" |
| properties.sources.maxItems | 10 |
| properties.sources.type | "array" |
| required | ["idempotency_key"] |
| type | "object" |