К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/schema-633d5b642aeb71faca33d893c1eafc4d9556d3c79efcec84759a62991f1cb613.mdиндекс документации — /llms.txt

Схема: manage_promo_codes: inputSchema

Обновлено

ПолеЗначение
$schema"https://json-schema.org/draft/2020-12/schema"
oneOf.0.additionalPropertiesfalse
oneOf.0.description"Value for input option."
oneOf.0.properties.action.const"list"
oneOf.0.properties.action.description"Value for action."
oneOf.0.properties.action.type"string"
oneOf.0.properties.after_id.description"Value for after id."
oneOf.0.properties.after_id.maximum2147483647
oneOf.0.properties.after_id.minimum1
oneOf.0.properties.after_id.type"integer"
oneOf.0.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."
oneOf.0.properties.bot.maxLength128
oneOf.0.properties.bot.minLength1
oneOf.0.properties.bot.type"string"
oneOf.0.properties.limit.description"Value for limit."
oneOf.0.properties.limit.maximum200
oneOf.0.properties.limit.minimum1
oneOf.0.properties.limit.type"integer"
oneOf.0.required["action"]
oneOf.0.type"object"
oneOf.1.additionalPropertiesfalse
oneOf.1.description"Value for input option."
oneOf.1.properties.action.const"create"
oneOf.1.properties.action.description"Value for action."
oneOf.1.properties.action.type"string"
oneOf.1.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."
oneOf.1.properties.bot.maxLength128
oneOf.1.properties.bot.minLength1
oneOf.1.properties.bot.type"string"
oneOf.1.properties.currency.anyOf.0.description"Value for currency option."
oneOf.1.properties.currency.anyOf.0.enum["RUB","USD","EUR"]
oneOf.1.properties.currency.anyOf.0.type"string"
oneOf.1.properties.currency.anyOf.1.description"Value for currency option."
oneOf.1.properties.currency.anyOf.1.type"null"
oneOf.1.properties.currency.description"Value for currency."
oneOf.1.properties.is_active.description"Value for is active."
oneOf.1.properties.is_active.type"boolean"
oneOf.1.properties.kind.description"Value for kind."
oneOf.1.properties.kind.enum["percent","fixed"]
oneOf.1.properties.kind.type"string"
oneOf.1.properties.limit_per_user.anyOf.0.description"Value for limit per user option."
oneOf.1.properties.limit_per_user.anyOf.0.maximum2147483647
oneOf.1.properties.limit_per_user.anyOf.0.minimum1
oneOf.1.properties.limit_per_user.anyOf.0.type"integer"
oneOf.1.properties.limit_per_user.anyOf.1.description"Value for limit per user option."
oneOf.1.properties.limit_per_user.anyOf.1.type"null"
oneOf.1.properties.limit_per_user.description"Value for limit per user."
oneOf.1.properties.limit_total.anyOf.0.description"Value for limit total option."
oneOf.1.properties.limit_total.anyOf.0.maximum2147483647
oneOf.1.properties.limit_total.anyOf.0.minimum1
oneOf.1.properties.limit_total.anyOf.0.type"integer"
oneOf.1.properties.limit_total.anyOf.1.description"Value for limit total option."
oneOf.1.properties.limit_total.anyOf.1.type"null"
oneOf.1.properties.limit_total.description"Value for limit total."
oneOf.1.properties.scope.description"Value for scope."
oneOf.1.properties.scope.enum["order","catalog_ids","group_ids"]
oneOf.1.properties.scope.type"string"
oneOf.1.properties.scope_refs.description"Value for scope refs."
oneOf.1.properties.scope_refs.items.description"Value for scope refs item."
oneOf.1.properties.scope_refs.items.maximum2147483647
oneOf.1.properties.scope_refs.items.minimum1
oneOf.1.properties.scope_refs.items.type"integer"
oneOf.1.properties.scope_refs.maxItems100
oneOf.1.properties.scope_refs.type"array"
oneOf.1.properties.text.description"Value for text."
oneOf.1.properties.text.maxLength64
oneOf.1.properties.text.minLength1
oneOf.1.properties.text.type"string"
oneOf.1.properties.valid_from.anyOf.0.description"Value for valid from option."
oneOf.1.properties.valid_from.anyOf.0.format"date-time"
oneOf.1.properties.valid_from.anyOf.0.pattern"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
oneOf.1.properties.valid_from.anyOf.0.type"string"
oneOf.1.properties.valid_from.anyOf.1.description"Value for valid from option."
oneOf.1.properties.valid_from.anyOf.1.type"null"
oneOf.1.properties.valid_from.description"Value for valid from."
oneOf.1.properties.valid_until.anyOf.0.description"Value for valid until option."
oneOf.1.properties.valid_until.anyOf.0.format"date-time"
oneOf.1.properties.valid_until.anyOf.0.pattern"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
oneOf.1.properties.valid_until.anyOf.0.type"string"
oneOf.1.properties.valid_until.anyOf.1.description"Value for valid until option."
oneOf.1.properties.valid_until.anyOf.1.type"null"
oneOf.1.properties.valid_until.description"Value for valid until."
oneOf.1.properties.value.description"Value for value."
oneOf.1.properties.value.pattern"^\\d+(\\.\\d{1,8})?$"
oneOf.1.properties.value.type"string"
oneOf.1.required["action","text","kind","value"]
oneOf.1.type"object"
oneOf.2.additionalPropertiesfalse
oneOf.2.description"Value for input option."
oneOf.2.properties.action.const"update"
oneOf.2.properties.action.description"Value for action."
oneOf.2.properties.action.type"string"
oneOf.2.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."
oneOf.2.properties.bot.maxLength128
oneOf.2.properties.bot.minLength1
oneOf.2.properties.bot.type"string"
oneOf.2.properties.currency.anyOf.0.description"Value for currency option."
oneOf.2.properties.currency.anyOf.0.enum["RUB","USD","EUR"]
oneOf.2.properties.currency.anyOf.0.type"string"
oneOf.2.properties.currency.anyOf.1.description"Value for currency option."
oneOf.2.properties.currency.anyOf.1.type"null"
oneOf.2.properties.currency.description"Value for currency."
oneOf.2.properties.expected_version.description"Value for expected version."
oneOf.2.properties.expected_version.maximum9007199254740991
oneOf.2.properties.expected_version.minimum0
oneOf.2.properties.expected_version.type"integer"
oneOf.2.properties.id.description"Value for id."
oneOf.2.properties.id.maximum2147483647
oneOf.2.properties.id.minimum1
oneOf.2.properties.id.type"integer"
oneOf.2.properties.is_active.description"Value for is active."
oneOf.2.properties.is_active.type"boolean"
oneOf.2.properties.kind.description"Value for kind."
oneOf.2.properties.kind.enum["percent","fixed"]
oneOf.2.properties.kind.type"string"
oneOf.2.properties.limit_per_user.anyOf.0.description"Value for limit per user option."
oneOf.2.properties.limit_per_user.anyOf.0.maximum2147483647
oneOf.2.properties.limit_per_user.anyOf.0.minimum1
oneOf.2.properties.limit_per_user.anyOf.0.type"integer"
oneOf.2.properties.limit_per_user.anyOf.1.description"Value for limit per user option."
oneOf.2.properties.limit_per_user.anyOf.1.type"null"
oneOf.2.properties.limit_per_user.description"Value for limit per user."
oneOf.2.properties.limit_total.anyOf.0.description"Value for limit total option."
oneOf.2.properties.limit_total.anyOf.0.maximum2147483647
oneOf.2.properties.limit_total.anyOf.0.minimum1
oneOf.2.properties.limit_total.anyOf.0.type"integer"
oneOf.2.properties.limit_total.anyOf.1.description"Value for limit total option."
oneOf.2.properties.limit_total.anyOf.1.type"null"
oneOf.2.properties.limit_total.description"Value for limit total."
oneOf.2.properties.scope.description"Value for scope."
oneOf.2.properties.scope.enum["order","catalog_ids","group_ids"]
oneOf.2.properties.scope.type"string"
oneOf.2.properties.scope_refs.description"Value for scope refs."
oneOf.2.properties.scope_refs.items.description"Value for scope refs item."
oneOf.2.properties.scope_refs.items.maximum2147483647
oneOf.2.properties.scope_refs.items.minimum1
oneOf.2.properties.scope_refs.items.type"integer"
oneOf.2.properties.scope_refs.maxItems100
oneOf.2.properties.scope_refs.type"array"
oneOf.2.properties.text.description"Value for text."
oneOf.2.properties.text.maxLength64
oneOf.2.properties.text.minLength1
oneOf.2.properties.text.type"string"
oneOf.2.properties.valid_from.anyOf.0.description"Value for valid from option."
oneOf.2.properties.valid_from.anyOf.0.format"date-time"
oneOf.2.properties.valid_from.anyOf.0.pattern"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
oneOf.2.properties.valid_from.anyOf.0.type"string"
oneOf.2.properties.valid_from.anyOf.1.description"Value for valid from option."
oneOf.2.properties.valid_from.anyOf.1.type"null"
oneOf.2.properties.valid_from.description"Value for valid from."
oneOf.2.properties.valid_until.anyOf.0.description"Value for valid until option."
oneOf.2.properties.valid_until.anyOf.0.format"date-time"
oneOf.2.properties.valid_until.anyOf.0.pattern"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
oneOf.2.properties.valid_until.anyOf.0.type"string"
oneOf.2.properties.valid_until.anyOf.1.description"Value for valid until option."
oneOf.2.properties.valid_until.anyOf.1.type"null"
oneOf.2.properties.valid_until.description"Value for valid until."
oneOf.2.properties.value.description"Value for value."
oneOf.2.properties.value.pattern"^\\d+(\\.\\d{1,8})?$"
oneOf.2.properties.value.type"string"
oneOf.2.required["action","id","expected_version"]
oneOf.2.type"object"
oneOf.3.additionalPropertiesfalse
oneOf.3.description"Value for input option."
oneOf.3.properties.action.const"pause"
oneOf.3.properties.action.description"Value for action."
oneOf.3.properties.action.type"string"
oneOf.3.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."
oneOf.3.properties.bot.maxLength128
oneOf.3.properties.bot.minLength1
oneOf.3.properties.bot.type"string"
oneOf.3.properties.expected_version.description"Value for expected version."
oneOf.3.properties.expected_version.maximum9007199254740991
oneOf.3.properties.expected_version.minimum0
oneOf.3.properties.expected_version.type"integer"
oneOf.3.properties.id.description"Value for id."
oneOf.3.properties.id.maximum2147483647
oneOf.3.properties.id.minimum1
oneOf.3.properties.id.type"integer"
oneOf.3.properties.paused.description"Value for paused."
oneOf.3.properties.paused.type"boolean"
oneOf.3.required["action","id","paused","expected_version"]
oneOf.3.type"object"
oneOf.4.additionalPropertiesfalse
oneOf.4.description"Value for input option."
oneOf.4.properties.action.const"delete"
oneOf.4.properties.action.description"Value for action."
oneOf.4.properties.action.type"string"
oneOf.4.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."
oneOf.4.properties.bot.maxLength128
oneOf.4.properties.bot.minLength1
oneOf.4.properties.bot.type"string"
oneOf.4.properties.id.description"Value for id."
oneOf.4.properties.id.maximum2147483647
oneOf.4.properties.id.minimum1
oneOf.4.properties.id.type"integer"
oneOf.4.required["action","id"]
oneOf.4.type"object"
oneOf.5.additionalPropertiesfalse
oneOf.5.description"Value for input option."
oneOf.5.properties.action.const"usage"
oneOf.5.properties.action.description"Value for action."
oneOf.5.properties.action.type"string"
oneOf.5.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."
oneOf.5.properties.bot.maxLength128
oneOf.5.properties.bot.minLength1
oneOf.5.properties.bot.type"string"
oneOf.5.properties.id.description"Value for id."
oneOf.5.properties.id.maximum2147483647
oneOf.5.properties.id.minimum1
oneOf.5.properties.id.type"integer"
oneOf.5.required["action","id"]
oneOf.5.type"object"