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