Для AI-агентов: markdown этой страницы — /docs/schema-9f0abda9f93f8d9ecf0352fd5fd4e18993a05e9e167c1c95a015412f83fb1ba3.mdиндекс документации — /llms.txt
Схема: list_customers: outputSchema
Обновлено
| Поле | Значение |
|---|---|
| $schema | "https://json-schema.org/draft/2020-12/schema" |
| additionalProperties | false |
| properties.customers.items.additionalProperties | false |
| properties.customers.items.properties.channel.enum | ["telegram","max","vk"] |
| properties.customers.items.properties.channel.type | "string" |
| properties.customers.items.properties.channel_user_id.maxLength | 128 |
| properties.customers.items.properties.channel_user_id.minLength | 1 |
| properties.customers.items.properties.channel_user_id.type | "string" |
| properties.customers.items.properties.chat_status.description | "Who answers the customer now: the bot, an AI agent or a human manager" |
| properties.customers.items.properties.chat_status.enum | ["bot","ai_qualifier","ai_manager","ai_coach","manager"] |
| properties.customers.items.properties.chat_status.type | "string" |
| properties.customers.items.properties.created_at.format | "date-time" |
| properties.customers.items.properties.created_at.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))$" |
| properties.customers.items.properties.created_at.type | "string" |
| properties.customers.items.properties.email.type | ["string","null"] |
| properties.customers.items.properties.first_name.type | ["string","null"] |
| properties.customers.items.properties.has_coach_access.type | "boolean" |
| properties.customers.items.properties.id.maximum | 2147483647 |
| properties.customers.items.properties.id.minimum | 1 |
| properties.customers.items.properties.id.type | "integer" |
| properties.customers.items.properties.invite_code.anyOf.0.maxLength | 64 |
| properties.customers.items.properties.invite_code.anyOf.0.minLength | 1 |
| properties.customers.items.properties.invite_code.anyOf.0.type | "string" |
| properties.customers.items.properties.invite_code.anyOf.1.type | "null" |
| properties.customers.items.properties.invite_code.description | "The customer personal invitation code when they have one" |
| properties.customers.items.properties.invited_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.invited_at.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))$" |
| properties.customers.items.properties.invited_at.anyOf.0.type | "string" |
| properties.customers.items.properties.invited_at.anyOf.1.type | "null" |
| properties.customers.items.properties.inviter_id.anyOf.0.maximum | 2147483647 |
| properties.customers.items.properties.inviter_id.anyOf.0.minimum | 1 |
| properties.customers.items.properties.inviter_id.anyOf.0.type | "integer" |
| properties.customers.items.properties.inviter_id.anyOf.1.type | "null" |
| properties.customers.items.properties.inviter_id.description | "Who invited the customer (the referral program); set once and never changed; null when none" |
| properties.customers.items.properties.is_banned.type | "boolean" |
| properties.customers.items.properties.is_bot_blocked.description | "The customer blocked the bot; messages to them are not delivered" |
| properties.customers.items.properties.is_bot_blocked.type | "boolean" |
| properties.customers.items.properties.is_premium.type | "boolean" |
| properties.customers.items.properties.is_restricted.type | "boolean" |
| properties.customers.items.properties.language_code.type | ["string","null"] |
| properties.customers.items.properties.last_activity_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.last_activity_at.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))$" |
| properties.customers.items.properties.last_activity_at.anyOf.0.type | "string" |
| properties.customers.items.properties.last_activity_at.anyOf.1.type | "null" |
| properties.customers.items.properties.last_message_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.last_message_at.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))$" |
| properties.customers.items.properties.last_message_at.anyOf.0.type | "string" |
| properties.customers.items.properties.last_message_at.anyOf.1.type | "null" |
| properties.customers.items.properties.last_name.type | ["string","null"] |
| properties.customers.items.properties.last_paid_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.last_paid_at.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))$" |
| properties.customers.items.properties.last_paid_at.anyOf.0.type | "string" |
| properties.customers.items.properties.last_paid_at.anyOf.1.type | "null" |
| properties.customers.items.properties.marketing_consent.description | "The newest answer to the marketing consent: true granted, false refused, null never asked. A refusal excludes the customer from broadcasts only" |
| properties.customers.items.properties.marketing_consent.type | ["boolean","null"] |
| properties.customers.items.properties.partner_assigned_at.anyOf.0.format | "date-time" |
| properties.customers.items.properties.partner_assigned_at.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))$" |
| properties.customers.items.properties.partner_assigned_at.anyOf.0.type | "string" |
| properties.customers.items.properties.partner_assigned_at.anyOf.1.type | "null" |
| properties.customers.items.properties.partner_id.anyOf.0.maximum | 2147483647 |
| properties.customers.items.properties.partner_id.anyOf.0.minimum | 1 |
| properties.customers.items.properties.partner_id.anyOf.0.type | "integer" |
| properties.customers.items.properties.partner_id.anyOf.1.type | "null" |
| properties.customers.items.properties.partner_id.description | "The partner the customer is attached to now for payouts (the partner program); null when none" |
| properties.customers.items.properties.phone.type | ["string","null"] |
| properties.customers.items.properties.stat_payments_amount.description | "Decimal string, sum of paid amounts" |
| properties.customers.items.properties.stat_payments_amount.type | "string" |
| properties.customers.items.properties.stat_payments_count.maximum | 9007199254740991 |
| properties.customers.items.properties.stat_payments_count.minimum | 0 |
| properties.customers.items.properties.stat_payments_count.type | "integer" |
| properties.customers.items.properties.stat_referrals_count.maximum | 9007199254740991 |
| properties.customers.items.properties.stat_referrals_count.minimum | 0 |
| properties.customers.items.properties.stat_referrals_count.type | "integer" |
| properties.customers.items.properties.tags.items.type | "string" |
| properties.customers.items.properties.tags.type | "array" |
| properties.customers.items.properties.topic_url.anyOf.0.format | "uri" |
| properties.customers.items.properties.topic_url.anyOf.0.type | "string" |
| properties.customers.items.properties.topic_url.anyOf.1.type | "null" |
| properties.customers.items.properties.topic_url.description | "Link to the customer topic in the Open Lines supergroup; null until the topic exists" |
| properties.customers.items.properties.updated_at.format | "date-time" |
| properties.customers.items.properties.updated_at.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))$" |
| properties.customers.items.properties.updated_at.type | "string" |
| properties.customers.items.properties.username.type | ["string","null"] |
| properties.customers.items.required | ["id","channel","channel_user_id","username","first_name","last_name","language_code","email","phone","is_premium","chat_status","is_banned","is_restricted","is_bot_blocked","has_coach_access","tags","stat_payments_count","stat_payments_amount","stat_referrals_count","partner_id","partner_assigned_at","inviter_id","invited_at","marketing_consent","topic_url","invite_code","last_message_at","last_activity_at","last_paid_at","created_at","updated_at"] |
| properties.customers.items.type | "object" |
| properties.customers.type | "array" |
| properties.next_after_id.anyOf.0.maximum | 2147483647 |
| properties.next_after_id.anyOf.0.minimum | 1 |
| properties.next_after_id.anyOf.0.type | "integer" |
| properties.next_after_id.anyOf.1.type | "null" |
| required | ["customers","next_after_id"] |
| type | "object" |