Для AI-агентов: markdown этой страницы — /docs/schema-0dadaf5a00f6ff56ddfda2812570118abef48c21ee3704a99865dc86d62a1bf4.mdиндекс документации — /llms.txt
Схема: get_content_draft: outputSchema
Обновлено
| Поле | Значение |
|---|---|
| $schema | "https://json-schema.org/draft/2020-12/schema" |
| additionalProperties | false |
| properties.bound.description | "Whether the content is attached to its item; true exactly when id is present." |
| properties.bound.type | "boolean" |
| properties.created_at.format | "date-time" |
| 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.created_at.type | "string" |
| properties.draft_handle.type | "string" |
| properties.failure.anyOf.0.additionalProperties | false |
| properties.failure.anyOf.0.description | "Why the write stopped: a public error code, and recovery when the request can be corrected and sent again." |
| properties.failure.anyOf.0.properties.code.enum | ["INVALID_REQUEST","MALFORMED_JSON","IDEMPOTENCY_KEY_REQUIRED","MISSING_REQUIRED_FIELD","INVALID_API_VERSION","INVALID_PRICING_QUOTE","MALFORMED_IF_MATCH","FIRST_PAYMENT_PURCHASE_ZONE_CONFLICT","FIRST_PAYMENT_PURCHASE_ZONE_REQUIRED","FIRST_PAYMENT_CURRENCY_UNSUPPORTED","FIRST_PAYMENT_AMOUNT_INVALID","FIRST_PAYMENT_AMOUNT_BELOW_MINIMUM","FIRST_PAYMENT_AMOUNT_EXCEEDS_STORAGE","UNAUTHORIZED","INVALID_API_KEY","INVALID_JWT","EXPIRED_JWT","INVALID_REFRESH_TOKEN","MFA_REQUIRED","FORBIDDEN","INSUFFICIENT_SCOPE","ACCOUNT_DISABLED","WEBHOOK_DISABLED","SUBSCRIPTION_INACTIVE","PLATFORM_OFFER_ACCEPTANCE_REQUIRED","NO_ACTIVE_BOT","PUBLISHABLE_KEY_NOT_ALLOWED","PLAN_UPGRADE_REQUIRED","NOT_FOUND","RESOURCE_NOT_FOUND","SESSION_NOT_FOUND","ORDER_NOT_FOUND","USER_NOT_FOUND","PRODUCT_NOT_FOUND","PAYMENT_NOT_FOUND","EXPORT_NOT_FOUND","CART_NOT_FOUND","DIALOG_NOT_FOUND","REPLY_TARGET_NOT_FOUND","TOOL_NOT_FOUND","SLUG_TAKEN","SLUG_IMMUTABLE","UNPAID_BOT_LIMIT","ONBOARDING_BUSY","ONBOARDING_STEP_OUT_OF_ORDER","BOT_ALREADY_CONNECTED","BOT_RESERVED","BOT_SETTINGS_INCOMPLETE","GROUPS_ALREADY_BOUND","ACTIVE_SUBSCRIPTION_EXISTS","CONFLICT","SITE_BUNDLE_STALE","SITE_SOURCE_FETCH_PENDING","IDEMPOTENCY_CONFLICT","IDEMPOTENCY_KEY_IN_FLIGHT","IDEMPOTENCY_KEY_FAILED","EXTERNAL_ORDER_REF_CONFLICT","ORDER_NOT_LINKABLE","SESSION_ALREADY_APPROVED","WEBHOOK_URL_CONFLICT","PRICE_CHANGED","ORDER_ITEM_VERSION_CONFLICT","ORDER_ALREADY_PAID","ORDER_CLOSED","ORDER_BOUND_TO_BOOKING","CART_INACTIVE","DRAFT_NOT_PENDING","TENANT_ARCHIVED","VARIANT_KEY_IMMUTABLE","VARIANT_KEY_REUSED","CATEGORY_HAS_CHILDREN","EVENT_SEATS_BELOW_HELD","ORDER_NOT_REFRESHABLE","ORDER_ALREADY_LINKED","DUPLICATE_ORDER","SUBSCRIPTION_UPGRADE_REFUSED","ACQUISITION_REJECTED","PLATFORM_TARGET_UNRESOLVED","ORDER_LOCK_CONTENDED","QUEST_PRODUCT_FREE_TEST_PRICE_REQUIRED","FIRST_PAYMENT_PRODUCT_CHANGED","FIRST_PAYMENT_CURRENT_PROVIDER_REQUIRED","FIRST_PAYMENT_EXECUTION_ALREADY_ACCEPTED","FIRST_PAYMENT_EXECUTION_MISMATCH","FIRST_PAYMENT_PREPARATION_CHANGED","FIRST_PAYMENT_PROVIDER_CHANGED","FIRST_PAYMENT_INFRASTRUCTURE_REQUIRED","FIRST_PAYMENT_TEST_PRODUCT_REQUIRED","FIRST_PAYMENT_PROVIDER_UNAVAILABLE","FIRST_PAYMENT_DELIVERED_TEST_REQUIRED","ONBOARDING_JOURNEY_NOT_READY","ONBOARDING_FIRST_PAYMENT_NOT_READY","ONBOARDING_JOURNEY_ALREADY_COMPLETED","REPLACE_IN_PROGRESS","DIALOGS_SWITCHED_OFF","MEDIA_PREPARING","MEDIA_UNAVAILABLE","REPLY_BATCH_DUPLICATE_RECIPIENT","REPLY_BATCH_PAYLOAD_TOO_LARGE","REPLY_BATCH_USER_WROTE_AFTER_PREPARE","BOT_TOKEN_REVOKED","STOCK_EXHAUSTED","PURCHASE_LIMIT_REACHED","CART_SCENARIO_CONFLICT","DELIVERY_QUOTE_PENDING","SESSION_EXPIRED","APPROVAL_CODE_EXPIRED","PREPARED_SCENARIO_UNAVAILABLE","INTENT_EXPIRED","PRECONDITION_FAILED","BOT_CONNECTION_NOT_READY","ETAG_STALE","ACTIVE_BOT_CHANGED","PREPARED_SCENARIO_TENANT_CHANGED","PREPARED_SCENARIO_MISMATCH","ITEM_COUNT_EXCEEDED","PAYLOAD_TOO_LARGE","SLUG_INVALID","INVALID_BOT_TOKEN","SG_NOT_FORUM","SG_BIND_LINK_INVALID","SG_BIND_NOT_OWNER","SG_BIND_BOT_RIGHTS_MISSING","SG_ALREADY_BOUND","SG_BIND_ROLE_BOUND","SA_NOT_MEMBER","SA_NOT_ADMIN","SA_RIGHTS_MISSING","SA_ANONYMOUS","PAYMENT_TAX_PROFILE_MISSING","VALIDATION_ERROR","VALIDATION_FAILED","IDEMPOTENCY_KEY_MISMATCH","ZONE_REQUIRED","SITE_PATH_OUTSIDE_PUBLISHABLE_PREFIX","SITE_PATH_RESERVED","SITE_CONSENT_BANNER_INCOMPLETE","SITE_CONSENT_BANNER_HAS_SCRIPT","SITE_PRIVACY_COOKIE_SECTION_MISSING","SITE_TRACKER_NOT_GATEABLE","SITE_INVITE_PAGE_REFERRAL_SCRIPT_MISSING","SITE_INVITE_PAGE_BOT_LINK_MISSING","SITE_INVITE_PAGE_BOT_LINK_FALLBACK_MISSING","INVALID_PROVIDER_CURRENCY","PROVIDER_NOT_CONFIGURED","CATALOG_FIELD_READ_ONLY","MEDIA_ABORTED","MEDIA_MAGIC_MISMATCH","MEDIA_MANIFEST_CONFLICT","MEDIA_OUTCOME_CONFLICT","MEDIA_SIZE_MISMATCH","MEDIA_SLOT_NOT_FOUND","CATALOG_BOOKING_CONFIG_INVALID","CATALOG_BOOKING_RESOURCE_NOT_FOUND","TEXT_TOO_LONG","INVALID_BUTTON_CONFIG","INVALID_MEDIA","INVALID_SCOPE","INVALID_CURSOR","INVALID_FILTER","LIMIT_EXCEEDED","EXPORT_MAX_ROWS_EXCEEDED","TOKEN_PASSTHROUGH_FORBIDDEN","AUDIENCE_MISMATCH","INVALID_OAUTH_STATE","INVALID_OAUTH_REDIRECT_URI","ITEMS_REQUIRED","VARIANTS_NOT_AVAILABLE","INVALID_QUANTITY","MIXED_CURRENCY","NO_COMMON_PAYMENT_PROVIDER","SINGLETON_ORDER_REQUIRED","MIXED_PARTNER_RATES","PRODUCT_NOT_CART_ELIGIBLE","OPTION_UNAVAILABLE","QUANTITY_LIMIT","OUTSIDE_WINDOW","MERGE_REJECTED","DELIVERY_ADDRESS_REQUIRED","POSTAL_CODE_REQUIRED","INVALID_DELIVERY_ADDRESS","PAYMENT_PROVIDERS_UNAVAILABLE","PAYMENT_LINKS_UNAVAILABLE","FISCAL_PROVIDER_BASIS_UNSUPPORTED","MEETING_PROVIDER_NOT_CONNECTED","MEETING_PROVIDER_UNAVAILABLE","INVALID_INPUT","FAILED_PRECONDITION","FORM_REDIRECT_HOST_NOT_ALLOWED","SITE_HTML_TAG_TOO_LARGE","SITE_VIDEO_TOO_LARGE","SITE_BUNDLE_TOO_LARGE","SITE_TOO_MANY_FILES","MEDIA_SOURCE_NOT_ALLOWED","MEDIA_SOURCE_UNAVAILABLE","MEDIA_SOURCE_REDIRECT_REFUSED","MEDIA_MIME_MISMATCH","MEDIA_LENGTH_REQUIRED","MEDIA_TOO_LARGE","MEDIA_DATA_URI_TOO_LARGE","MEDIA_BATCH_TOO_LARGE","MEDIA_TOO_MANY_FILES","MEDIA_TRANSFER_TIMEOUT","MEDIA_METHOD_UNSUPPORTED","CONTENT_TOPIC_NOT_CONFIGURED","CONTENT_INVALID_HTML","CONTENT_TOO_LONG","CONTENT_SOURCE_UNREADABLE","CONTENT_PUBLICATION_UNCONFIRMED","SITE_NUDGE_PAGE_NOT_ELIGIBLE","SITE_NUDGE_DELAY_OUT_OF_RANGE","SITE_NUDGE_STEP_NOT_FOUND","SITE_NUDGE_GOAL_LINK_NOT_FOUND","SITE_NUDGE_AI_NOT_ON_PLAN","SITE_NUDGE_AI_PROMPT_REQUIRED","SITE_GATE_FILE_RETIRED","SITE_ACCESS_RULE_INVALID","SITE_ACCESS_CATALOG_NOT_FOUND","SITE_ACCESS_CATALOG_NOT_SUBSCRIPTION","SITE_ACCESS_CHANNEL_NOT_CONNECTED","SITE_ACCESS_SAVED_SEGMENT_NOT_FOUND","SITE_ACCESS_SEGMENT_INVALID","SITE_ACCESS_RULE_LIMIT","SITE_PASSWORD_NOT_FOUND","SITE_PASSWORD_IN_USE","SITE_PASSWORD_TOO_SHORT","SITE_PASSWORD_LIMIT","SITE_ACCESS_LOGIN_PATH_GATED","SITE_ACCESS_LOGIN_PATH_WITHOUT_PASSWORD","BOT_PROFILE_PHOTO_TYPE","BOT_PROFILE_PHOTO_TOO_LARGE","REFERRAL_GOAL_TARGET_UNAVAILABLE","PREPARED_ARGUMENTS_CHANGED","PREPARED_TOOL_MISMATCH","WELCOME_MARKUP_UNSUPPORTED","WELCOME_TOO_LONG","VOICE_UNKNOWN","VOICE_PARAM_INVALID","VOICE_SETTING_LINE_INVALID","VOICE_SETTING_CONFLICT","SITE_LEGAL_REQUIRED_LINKS_MISSING","CHAIN_STEP_TOO_MANY_TRANSITIONS","LINE_LIMIT_EXCEEDED","RECURRING_CONSENT_REQUIRED","DELIVERY_TAX_PROFILE_INCOMPLETE","VARIANT_LIMIT_EXCEEDED","PRICING_RULE_REFERENCE_UNKNOWN","PROMO_CODE_NOT_FOUND","PROMO_CODE_EXPIRED","PROMO_CODE_USAGE_EXHAUSTED","PROMO_CODE_NOT_APPLICABLE","CATALOG_PUBLICATION_MODE_INCOMPATIBLE","PRECONDITION_REQUIRED","PRICING_QUOTE_REQUIRED","ETAG_REQUIRED","CATALOG_UNAVAILABLE","CATALOG_LOCK_ORDER","UNSUPPORTED_QUOTE_CURRENCY","PREPARATION_REQUIRED","PREPARED_SECRETS_REQUIRED","RATE_LIMIT_EXCEEDED","EXPORT_LIMIT_EXCEEDED","REFRESH_LIMIT_EXCEEDED","RATE_LIMIT_UNAVAILABLE","MINT_QUOTA_EXCEEDED","HOLD_LIMIT_REACHED","INTERNAL_ERROR","SERVICE_UNAVAILABLE","PRICING_UNAVAILABLE","MINT_QUOTA_UNAVAILABLE","REPLY_SEND_FAILED"] |
| properties.failure.anyOf.0.properties.code.type | "string" |
| properties.failure.anyOf.0.properties.recovery.type | "string" |
| properties.failure.anyOf.0.required | ["code"] |
| properties.failure.anyOf.0.type | "object" |
| properties.failure.anyOf.1.type | "null" |
| properties.id.anyOf.0.maximum | 2147483647 |
| properties.id.anyOf.0.minimum | 1 |
| properties.id.anyOf.0.type | "integer" |
| properties.id.anyOf.1.type | "null" |
| properties.media_refs.items.additionalProperties | false |
| properties.media_refs.items.properties.caption.maxLength | 1024 |
| properties.media_refs.items.properties.caption.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.additionalProperties | false |
| properties.media_refs.items.properties.caption_entities.items.properties.custom_emoji_id.maxLength | 32 |
| properties.media_refs.items.properties.caption_entities.items.properties.custom_emoji_id.minLength | 1 |
| properties.media_refs.items.properties.caption_entities.items.properties.custom_emoji_id.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.language.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.length.exclusiveMinimum | 0 |
| properties.media_refs.items.properties.caption_entities.items.properties.length.maximum | 9007199254740991 |
| properties.media_refs.items.properties.caption_entities.items.properties.length.type | "integer" |
| properties.media_refs.items.properties.caption_entities.items.properties.offset.maximum | 9007199254740991 |
| properties.media_refs.items.properties.caption_entities.items.properties.offset.minimum | 0 |
| properties.media_refs.items.properties.caption_entities.items.properties.offset.type | "integer" |
| properties.media_refs.items.properties.caption_entities.items.properties.type.enum | ["mention","hashtag","cashtag","bot_command","url","email","phone_number","bold","italic","underline","strikethrough","spoiler","blockquote","expandable_blockquote","code","pre","text_link","text_mention","custom_emoji"] |
| properties.media_refs.items.properties.caption_entities.items.properties.type.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.url.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.user.additionalProperties | false |
| properties.media_refs.items.properties.caption_entities.items.properties.user.properties.first_name.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.user.properties.id.pattern | "^-?\\d+$" |
| properties.media_refs.items.properties.caption_entities.items.properties.user.properties.id.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.user.properties.last_name.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.user.properties.username.type | "string" |
| properties.media_refs.items.properties.caption_entities.items.properties.user.required | ["id"] |
| properties.media_refs.items.properties.caption_entities.items.properties.user.type | "object" |
| properties.media_refs.items.properties.caption_entities.items.required | ["type","offset","length"] |
| properties.media_refs.items.properties.caption_entities.items.type | "object" |
| properties.media_refs.items.properties.caption_entities.type | "array" |
| properties.media_refs.items.properties.caption_html.maxLength | 16384 |
| properties.media_refs.items.properties.caption_html.minLength | 1 |
| properties.media_refs.items.properties.caption_html.type | "string" |
| properties.media_refs.items.properties.expected_size_bytes.exclusiveMinimum | 0 |
| properties.media_refs.items.properties.expected_size_bytes.maximum | 4294967296 |
| properties.media_refs.items.properties.expected_size_bytes.type | "integer" |
| properties.media_refs.items.properties.generated_file_name.maxLength | 255 |
| properties.media_refs.items.properties.generated_file_name.minLength | 1 |
| properties.media_refs.items.properties.generated_file_name.type | "string" |
| properties.media_refs.items.properties.kind.enum | ["voice","audio","video_note"] |
| properties.media_refs.items.properties.kind.type | "string" |
| properties.media_refs.items.properties.media_ref.maxLength | 512 |
| properties.media_refs.items.properties.media_ref.pattern | "^media-ingress\\/v1\\/[a-f0-9]{64}\\/[A-Za-z0-9_-]{16,128}\\/objects\\/[a-z][a-z0-9-]{0,63}\\/[a-f0-9]{64}\\/[a-f0-9]{24}\\.blob$" |
| properties.media_refs.items.properties.media_ref.type | "string" |
| properties.media_refs.items.properties.mime_type.maxLength | 255 |
| properties.media_refs.items.properties.mime_type.minLength | 1 |
| properties.media_refs.items.properties.mime_type.type | "string" |
| properties.media_refs.items.properties.sha256.pattern | "^[0-9a-f]{64}$" |
| properties.media_refs.items.properties.sha256.type | "string" |
| properties.media_refs.items.properties.type.enum | ["photo","video","document"] |
| properties.media_refs.items.properties.type.type | "string" |
| properties.media_refs.items.required | ["type","media_ref","expected_size_bytes","sha256","mime_type"] |
| properties.media_refs.items.type | "object" |
| properties.media_refs.type | "array" |
| properties.payload_mode.enum | ["ready_message","source_link"] |
| properties.payload_mode.type | "string" |
| properties.published_message_ids.items.maxLength | 128 |
| properties.published_message_ids.items.minLength | 1 |
| properties.published_message_ids.items.type | "string" |
| properties.published_message_ids.type | "array" |
| properties.source.enum | ["crm","hub_api","onboarding"] |
| properties.source.type | "string" |
| properties.source_url.type | ["string","null"] |
| properties.status.enum | ["pending","publishing","published","failed","cancelled"] |
| properties.status.type | "string" |
| properties.target_topic.enum | ["catalog","order_statuses","marketing","broadcasts","message_chains","events","resources"] |
| properties.target_topic.type | "string" |
| properties.text.type | ["string","null"] |
| properties.updated_at.format | "date-time" |
| 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.updated_at.type | "string" |
| required | ["draft_handle","target_topic","source","payload_mode","text","media_refs","source_url","status","bound","id","published_message_ids","failure","created_at","updated_at"] |
| type | "object" |