{"name":"site_event_notifications","title":"Настроить подтверждение билета","section":"События и билеты","mode":"write","url":"/tools/site_event_notifications","blurb":"Связывает запрошенное покупателем подтверждение с опубликованной автоматизацией и гостевой страницей.","aliases":"","kind":"Инструмент","examples":[{"label":"Рабочая задача","prompt":"Проверь, куда направляется запрос покупателя на подтверждение билета. Покажи автоматизацию и гостевую страницу.","check":"Связывает запрошенное покупателем подтверждение с опубликованной автоматизацией и гостевой страницей."},{"label":"Выбрать режим","prompt":"Для задачи «Настроить подтверждение билета» сравни режимы status и configure инструмента site_event_notifications. Какой подойдёт в моём случае и какие данные нужно подготовить?","check":"Сопоставить два режима и их аргументы."},{"label":"После сбоя","prompt":"При выполнении «Настроить подтверждение билета» связь прервалась после отправки. Для site_event_notifications проверь исходный ключ операции и текущее состояние объекта перед решением о повторе.","check":"Сопоставить результат с исходной операцией."}],"inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"operation":{"type":"string","const":"status"}},"required":["siteId","operation"],"additionalProperties":false},{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"operation":{"type":"string","const":"configure"},"enabled":{"type":"boolean","const":true},"flowId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"entryId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"ticketPath":{"type":"string","maxLength":180,"pattern":"^\\/(?:[a-zA-Z0-9_-]+\\/?)*$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}},"required":["siteId","operation","enabled","flowId","entryId","ticketPath","expectedRevision","idempotencyKey"],"additionalProperties":false},{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[A-Za-z0-9_~:@+.-]{1,128}$"},"operation":{"type":"string","const":"configure"},"enabled":{"type":"boolean","const":false},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}},"required":["siteId","operation","enabled","expectedRevision","idempotencyKey"],"additionalProperties":false}]},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"},"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}},"argumentExample":{"operation":"status","siteId":"site_demo"}}