{
  "files": [
    {
      "name": "keyapis/multiapp/v1/keyapis_multiapp_notification_template_v1.proto",
      "description": "Сервис реализует функционал управления шаблонами уведомлений",
      "package": "keyapis.multiapp.v1",
      "hasEnums": false,
      "hasExtensions": false,
      "hasMessages": true,
      "hasServices": true,
      "enums": [
        {
          "name": "DirectionType",
          "longName": "NotificationTemplatePaging.DirectionType",
          "fullName": "keyapis.multiapp.v1.NotificationTemplatePaging.DirectionType",
          "description": "Справочник типов направлений сортировки.\n# Тип: byte",
          "values": [
            {
              "name": "DIRECTION_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "DESC",
              "number": "1",
              "description": "От большего к меньшему"
            },
            {
              "name": "ASC",
              "number": "2",
              "description": "От меньшего к большему"
            }
          ]
        },
        {
          "name": "OrderByType",
          "longName": "NotificationTemplatePaging.OrderByType",
          "fullName": "keyapis.multiapp.v1.NotificationTemplatePaging.OrderByType",
          "description": "Справочник типов значений сортировки.\n# Тип: byte",
          "values": [
            {
              "name": "ORDER_BY_TYPE_UNKNOWN",
              "number": "0",
              "description": "Значение не указано"
            },
            {
              "name": "CHANGED_AT",
              "number": "1",
              "description": "Дата последнего изменения"
            },
            {
              "name": "CREATED_AT",
              "number": "2",
              "description": "Дата создания"
            },
            {
              "name": "RANK",
              "number": "3",
              "description": "По рангу для поиска по тексту.\nПрименяется когда передано поле для поиска по тексту.\nВ случае если текстовое поле не передано, применяется значение по умолчанию"
            }
          ]
        }
      ],
      "extensions": [],
      "messages": [
        {
          "name": "DeleteNotificationTemplateRequest",
          "longName": "DeleteNotificationTemplateRequest",
          "fullName": "keyapis.multiapp.v1.DeleteNotificationTemplateRequest",
          "description": "Запрос на удаление шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор шаблона уведомления.\n# Тип: Guid",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "DeleteNotificationTemplateResponse",
          "longName": "DeleteNotificationTemplateResponse",
          "fullName": "keyapis.multiapp.v1.DeleteNotificationTemplateResponse",
          "description": "Ответ на запрос удаления шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "error",
              "description": "Ошибка при удалении",
              "label": "",
              "type": "Error",
              "longType": "DeleteNotificationTemplateResponse.Error",
              "fullType": "keyapis.multiapp.v1.DeleteNotificationTemplateResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Error",
          "longName": "DeleteNotificationTemplateResponse.Error",
          "fullName": "keyapis.multiapp.v1.DeleteNotificationTemplateResponse.Error",
          "description": "Ошибка удаления шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.multiapp.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetNotificationTemplateCountRequest",
          "longName": "GetNotificationTemplateCountRequest",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateCountRequest",
          "description": "Запрос получения количества шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "NotificationTemplateFilter",
              "longType": "NotificationTemplateFilter",
              "fullType": "keyapis.multiapp.v1.NotificationTemplateFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetNotificationTemplateCountResponse",
          "longName": "GetNotificationTemplateCountResponse",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateCountResponse",
          "description": "Ответ на запрос получения количества шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Всего шаблонов уведомлений",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetNotificationTemplateCountResponse.Error",
              "fullType": "keyapis.multiapp.v1.GetNotificationTemplateCountResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetNotificationTemplateCountResponse.Error",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateCountResponse.Error",
          "description": "Ошибка запроса получения количества шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.multiapp.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetNotificationTemplateListRequest",
          "longName": "GetNotificationTemplateListRequest",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateListRequest",
          "description": "Запрос получения списка шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "filter",
              "description": "Фильтр",
              "label": "",
              "type": "NotificationTemplateFilter",
              "longType": "NotificationTemplateFilter",
              "fullType": "keyapis.multiapp.v1.NotificationTemplateFilter",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "paging",
              "description": "Пагинация",
              "label": "",
              "type": "NotificationTemplatePaging",
              "longType": "NotificationTemplatePaging",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePaging",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "pagination",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "GetNotificationTemplateListResponse",
          "longName": "GetNotificationTemplateListResponse",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateListResponse",
          "description": "Ответ на запрос получения списка шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Шаблон уведомления",
              "label": "",
              "type": "NotificationTemplate",
              "longType": "NotificationTemplate",
              "fullType": "keyapis.multiapp.v1.NotificationTemplate",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetNotificationTemplateListResponse.Error",
              "fullType": "keyapis.multiapp.v1.GetNotificationTemplateListResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetNotificationTemplateListResponse.Error",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateListResponse.Error",
          "description": "Ошибка запроса получения списка шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.multiapp.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "GetNotificationTemplateRequest",
          "longName": "GetNotificationTemplateRequest",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateRequest",
          "description": "Запрос получения шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор шаблона уведомления.\n# Тип: Guid",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "GetNotificationTemplateResponse",
          "longName": "GetNotificationTemplateResponse",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateResponse",
          "description": "Ответ на запрос получения шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Шаблон уведомления",
              "label": "",
              "type": "NotificationTemplate",
              "longType": "NotificationTemplate",
              "fullType": "keyapis.multiapp.v1.NotificationTemplate",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "GetNotificationTemplateResponse.Error",
              "fullType": "keyapis.multiapp.v1.GetNotificationTemplateResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "GetNotificationTemplateResponse.Error",
          "fullName": "keyapis.multiapp.v1.GetNotificationTemplateResponse.Error",
          "description": "Ошибка запроса получения шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.multiapp.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "NotificationTemplate",
          "longName": "NotificationTemplate",
          "fullName": "keyapis.multiapp.v1.NotificationTemplate",
          "description": "Шаблон уведомления.\n# Описание модели",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "id",
              "description": "Идентификатор.\nЕсли не передан создаётся сервером.\n# Тип: Guid",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "template_header",
              "description": "Заголовок шаблона.\nПоддерживает mustache теги в формате: {{название переменной|тип данных}}.\nНазвание переменной в теге может содержать латинские буквы (в верхнем или нижнем регистре), цифры и символ \"_\".\nТип данных может быть указан в верхнем или нижнем регистре, пробелы не допускаются, допустимые типы данных указаны в таблице.\nСимволы \"{\" и \"}\" являются служебными и могут использоваться только для формирования Mustache тегов.\n# Диапазон: 3..128",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            },
            {
              "name": "template_text",
              "description": "Тело шаблона.\nПоддерживает mustache теги в формате: {{название переменной|тип данных}}.\nНазвание переменной в теге может содержать латинские буквы (в верхнем или нижнем регистре), цифры и символ \"_\".\nТип данных может быть указан в верхнем или нижнем регистре, пробелы не допускаются, допустимые типы данных указаны в таблице.\nСимволы \"{\" и \"}\" являются служебными и могут использоваться только для формирования Mustache тегов.\n# Диапазон: 3..512",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 3
            },
            {
              "name": "created_at",
              "description": "Дата создания.\n# Тип: DateTime",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 4
            },
            {
              "name": "changed_at",
              "description": "Дата последнего изменения.\nЗаполняется и обновляется сервером.\nПри изменении должен совпадать со значением из БД.\nЯвляется версией объекта.\n# Тип: DateTime",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 5
            },
            {
              "name": "deleted_at",
              "description": "Дата удаления.\n# Тип: DateTime?",
              "label": "",
              "type": "Timestamp",
              "longType": "google.protobuf.Timestamp",
              "fullType": "google.protobuf.Timestamp",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "OUTPUT_ONLY"
                  ]
                }
              },
              "number": 6
            },
            {
              "name": "title",
              "description": "Системное наименование.\n# Диапазон: 3..256",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 7
            }
          ]
        },
        {
          "name": "SavingError",
          "longName": "NotificationTemplate.SavingError",
          "fullName": "keyapis.multiapp.v1.NotificationTemplate.SavingError",
          "description": "Ошибка сохранения.\nЭти проверки выполняются при работе с базой данных и сторонними сервисами",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "conflict",
              "description": "Конфликт версий",
              "label": "",
              "type": "Conflict",
              "longType": "NotificationTemplate.SavingError.Conflict",
              "fullType": "keyapis.multiapp.v1.NotificationTemplate.SavingError.Conflict",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Conflict",
          "longName": "NotificationTemplate.SavingError.Conflict",
          "fullName": "keyapis.multiapp.v1.NotificationTemplate.SavingError.Conflict",
          "description": "Конфликт версий.\nПричины:\n- В базе хранится другая версия строки, значения changed_at отличаются",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "NotificationTemplateFilter",
          "longName": "NotificationTemplateFilter",
          "fullName": "keyapis.multiapp.v1.NotificationTemplateFilter",
          "description": "Фильтр шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "text",
              "description": "По тексту.\nЕсли значение не передано то поиск по нему не производится.\n# Диапазон: 3..64.\n# Поиск производится по полям:\n# - Заголовок шаблона;\n# - Тело шаблона;\n# - Системное наименование",
              "label": "",
              "type": "StringValue",
              "longType": "google.protobuf.StringValue",
              "fullType": "google.protobuf.StringValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "partner_ids",
              "description": "По идентификаторам партнера.\n# Тип: Guid",
              "label": "repeated",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "is_show_deleted",
              "description": "Показывать удаленные",
              "label": "",
              "type": "BoolValue",
              "longType": "google.protobuf.BoolValue",
              "fullType": "google.protobuf.BoolValue",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            }
          ]
        },
        {
          "name": "NotificationTemplatePaging",
          "longName": "NotificationTemplatePaging",
          "fullName": "keyapis.multiapp.v1.NotificationTemplatePaging",
          "description": "Пагинация шаблонов уведомлений",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "order_by_type",
              "description": "Тип значения сортировки.\nЕсли значение не передано, то будет взято значение по умолчанию.\n# По умолчанию: CHANGED_AT",
              "label": "",
              "type": "OrderByType",
              "longType": "NotificationTemplatePaging.OrderByType",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePaging.OrderByType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "direction_type",
              "description": "Тип направления сортировки.\n# По умолчанию: DESC",
              "label": "",
              "type": "DirectionType",
              "longType": "NotificationTemplatePaging.DirectionType",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePaging.DirectionType",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "limit",
              "description": "Количество записей на страницу.\nЕсли значение 0 (не передано), то будет взято значение по умолчанию.\n# Диапазон: 0..100.\n# По умолчанию: 20",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "offset",
              "description": "Сдвиг.\n# Диапазон: 0..2147483647",
              "label": "",
              "type": "int32",
              "longType": "int32",
              "fullType": "int32",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "number": 4
            }
          ]
        },
        {
          "name": "NotificationTemplatePartner",
          "longName": "NotificationTemplatePartner",
          "fullName": "keyapis.multiapp.v1.NotificationTemplatePartner",
          "description": "Связь шаблона уведомлений и партнера.\n# Описание модели",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "notification_template_id",
              "description": "Идентификатор шаблона уведомления.\n# Тип: Guid",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            },
            {
              "name": "partner_id",
              "description": "Идентификатор партнера.\n# Тип: Guid",
              "label": "",
              "type": "string",
              "longType": "string",
              "fullType": "string",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 2
            }
          ]
        },
        {
          "name": "SavingError",
          "longName": "NotificationTemplatePartner.SavingError",
          "fullName": "keyapis.multiapp.v1.NotificationTemplatePartner.SavingError",
          "description": "Ошибка сохранения.\nЭти проверки выполняются при работе с базой данных и сторонними сервисами",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "partner_is_deleted",
              "description": "Партнер удален",
              "label": "",
              "type": "PartnerIsDeleted",
              "longType": "NotificationTemplatePartner.SavingError.PartnerIsDeleted",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePartner.SavingError.PartnerIsDeleted",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "template_is_deleted",
              "description": "Шаблон удален",
              "label": "",
              "type": "TemplateIsDeleted",
              "longType": "NotificationTemplatePartner.SavingError.TemplateIsDeleted",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePartner.SavingError.TemplateIsDeleted",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "PartnerIsDeleted",
          "longName": "NotificationTemplatePartner.SavingError.PartnerIsDeleted",
          "fullName": "keyapis.multiapp.v1.NotificationTemplatePartner.SavingError.PartnerIsDeleted",
          "description": "Партнер удален",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "TemplateIsDeleted",
          "longName": "NotificationTemplatePartner.SavingError.TemplateIsDeleted",
          "fullName": "keyapis.multiapp.v1.NotificationTemplatePartner.SavingError.TemplateIsDeleted",
          "description": "Шаблон удален",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "PostNotificationTemplateRequest",
          "longName": "PostNotificationTemplateRequest",
          "fullName": "keyapis.multiapp.v1.PostNotificationTemplateRequest",
          "description": "Запрос сохранения приложения",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Приложение",
              "label": "",
              "type": "NotificationTemplate",
              "longType": "NotificationTemplate",
              "fullType": "keyapis.multiapp.v1.NotificationTemplate",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "PostNotificationTemplateResponse",
          "longName": "PostNotificationTemplateResponse",
          "fullName": "keyapis.multiapp.v1.PostNotificationTemplateResponse",
          "description": "Ответ на запрос сохранения шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "data",
              "description": "Шаблон уведомления",
              "label": "",
              "type": "NotificationTemplate",
              "longType": "NotificationTemplate",
              "fullType": "keyapis.multiapp.v1.NotificationTemplate",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "PostNotificationTemplateResponse.Error",
              "fullType": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "Error",
          "longName": "PostNotificationTemplateResponse.Error",
          "fullName": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error",
          "description": "Ошибка запроса сохранения шаблона уведомления",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.multiapp.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "saving",
              "description": "Ошибка сохранения",
              "label": "",
              "type": "SavingError",
              "longType": "NotificationTemplate.SavingError",
              "fullType": "keyapis.multiapp.v1.NotificationTemplate.SavingError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            },
            {
              "name": "incorrect_data_type",
              "description": "Некорректный тип данных для переменной в шаблоне",
              "label": "",
              "type": "IncorrectDataTypeError",
              "longType": "PostNotificationTemplateResponse.Error.IncorrectDataTypeError",
              "fullType": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error.IncorrectDataTypeError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 3
            },
            {
              "name": "incorrect_variable_name_error",
              "description": "Некорректное наименование переменной в шаблоне",
              "label": "",
              "type": "IncorrectVariableNameError",
              "longType": "PostNotificationTemplateResponse.Error.IncorrectVariableNameError",
              "fullType": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error.IncorrectVariableNameError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 4
            },
            {
              "name": "incorrect_tag_format_error",
              "description": "Некорректный формат Mustache тегов",
              "label": "",
              "type": "IncorrectTagFormatError",
              "longType": "PostNotificationTemplateResponse.Error.IncorrectTagFormatError",
              "fullType": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error.IncorrectTagFormatError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 5
            }
          ]
        },
        {
          "name": "IncorrectDataTypeError",
          "longName": "PostNotificationTemplateResponse.Error.IncorrectDataTypeError",
          "fullName": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error.IncorrectDataTypeError",
          "description": "Некорректный тип данных для переменной в шаблоне.\nСписок допустимых типов данных:\n- Number;\n- Date;\n- Phone;\n- Time",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "IncorrectTagFormatError",
          "longName": "PostNotificationTemplateResponse.Error.IncorrectTagFormatError",
          "fullName": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error.IncorrectTagFormatError",
          "description": "Некорректный формат Mustache тегов",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "IncorrectVariableNameError",
          "longName": "PostNotificationTemplateResponse.Error.IncorrectVariableNameError",
          "fullName": "keyapis.multiapp.v1.PostNotificationTemplateResponse.Error.IncorrectVariableNameError",
          "description": "Некорректное наименование переменной в шаблоне",
          "hasExtensions": false,
          "hasFields": false,
          "hasOneofs": false,
          "extensions": [],
          "fields": []
        },
        {
          "name": "PutNotificationTemplatePartnerAttachRequest",
          "longName": "PutNotificationTemplatePartnerAttachRequest",
          "fullName": "keyapis.multiapp.v1.PutNotificationTemplatePartnerAttachRequest",
          "description": "Запрос создания связи шаблона уведомления и партнера",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "notification_template_partner",
              "description": "Связь шаблона уведомления и партнера",
              "label": "",
              "type": "NotificationTemplatePartner",
              "longType": "NotificationTemplatePartner",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePartner",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "PutNotificationTemplatePartnerAttachResponse",
          "longName": "PutNotificationTemplatePartnerAttachResponse",
          "fullName": "keyapis.multiapp.v1.PutNotificationTemplatePartnerAttachResponse",
          "description": "Ответ на запрос создания связи шаблона уведомления и партнера",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "PutNotificationTemplatePartnerAttachResponse.Error",
              "fullType": "keyapis.multiapp.v1.PutNotificationTemplatePartnerAttachResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Error",
          "longName": "PutNotificationTemplatePartnerAttachResponse.Error",
          "fullName": "keyapis.multiapp.v1.PutNotificationTemplatePartnerAttachResponse.Error",
          "description": "Ошибка запроса на создание шаблона уведомления и партнера",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.multiapp.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            },
            {
              "name": "saving",
              "description": "Ошибка сохранения",
              "label": "",
              "type": "SavingError",
              "longType": "NotificationTemplatePartner.SavingError",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePartner.SavingError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 2
            }
          ]
        },
        {
          "name": "PutNotificationTemplatePartnerDetachRequest",
          "longName": "PutNotificationTemplatePartnerDetachRequest",
          "fullName": "keyapis.multiapp.v1.PutNotificationTemplatePartnerDetachRequest",
          "description": "Запрос удаления связи шаблона уведомления и партнера",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": false,
          "extensions": [],
          "fields": [
            {
              "name": "notification_template_partner",
              "description": "Связь шаблона уведомления и партнера",
              "label": "",
              "type": "NotificationTemplatePartner",
              "longType": "NotificationTemplatePartner",
              "fullType": "keyapis.multiapp.v1.NotificationTemplatePartner",
              "ismap": false,
              "isoneof": false,
              "oneofdecl": "",
              "defaultValue": "",
              "options": {
                "google.api.field_behavior": {
                  "options": [
                    "REQUIRED"
                  ]
                }
              },
              "number": 1
            }
          ]
        },
        {
          "name": "PutNotificationTemplatePartnerDetachResponse",
          "longName": "PutNotificationTemplatePartnerDetachResponse",
          "fullName": "keyapis.multiapp.v1.PutNotificationTemplatePartnerDetachResponse",
          "description": "Ответ на запрос удаление связи шаблона уведомления и партнера",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "error",
              "description": "Ошибка",
              "label": "",
              "type": "Error",
              "longType": "PutNotificationTemplatePartnerDetachResponse.Error",
              "fullType": "keyapis.multiapp.v1.PutNotificationTemplatePartnerDetachResponse.Error",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "type",
              "defaultValue": "",
              "number": 1
            }
          ]
        },
        {
          "name": "Error",
          "longName": "PutNotificationTemplatePartnerDetachResponse.Error",
          "fullName": "keyapis.multiapp.v1.PutNotificationTemplatePartnerDetachResponse.Error",
          "description": "Ошибка запроса на удаление шаблона уведомления и партнера",
          "hasExtensions": false,
          "hasFields": true,
          "hasOneofs": true,
          "extensions": [],
          "fields": [
            {
              "name": "validation",
              "description": "Ошибка валидации",
              "label": "",
              "type": "ValidationError",
              "longType": "ValidationError",
              "fullType": "keyapis.multiapp.v1.ValidationError",
              "ismap": false,
              "isoneof": true,
              "oneofdecl": "reason",
              "defaultValue": "",
              "number": 1
            }
          ]
        }
      ],
      "services": [
        {
          "name": "NotificationTemplateService",
          "longName": "NotificationTemplateService",
          "fullName": "keyapis.multiapp.v1.NotificationTemplateService",
          "description": "Сервис шаблонов уведомлений",
          "methods": [
            {
              "name": "PostNotificationTemplate",
              "description": "Метод сохранения шаблона уведомления.\nПоддерживает создание и обновление.\nПоддерживает mustache теги в переменных template_header и template_text.\nСценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=774989444.\nМетод доступен для: admin, manager, service",
              "requestType": "PostNotificationTemplateRequest",
              "requestLongType": "PostNotificationTemplateRequest",
              "requestFullType": "keyapis.multiapp.v1.PostNotificationTemplateRequest",
              "requestStreaming": false,
              "responseType": "PostNotificationTemplateResponse",
              "responseLongType": "PostNotificationTemplateResponse",
              "responseFullType": "keyapis.multiapp.v1.PostNotificationTemplateResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "POST",
                      "pattern": "/multiapp/api/v1/notification_template",
                      "body": "*"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetNotificationTemplate",
              "description": "Метод получения шаблона уведомления.\nМетод доступен для: admin, manager, service, partner.\nРоль partner определяется по наличию заголовка X-API-KEY вместо Authorization.\nРоли partner доступны только связанные с ней шаблоны",
              "requestType": "GetNotificationTemplateRequest",
              "requestLongType": "GetNotificationTemplateRequest",
              "requestFullType": "keyapis.multiapp.v1.GetNotificationTemplateRequest",
              "requestStreaming": false,
              "responseType": "GetNotificationTemplateResponse",
              "responseLongType": "GetNotificationTemplateResponse",
              "responseFullType": "keyapis.multiapp.v1.GetNotificationTemplateResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/multiapp/api/v1/notification_template/{id}"
                    }
                  ]
                }
              }
            },
            {
              "name": "DeleteNotificationTemplate",
              "description": "Метод удаления шаблона уведомления.\nУстанавливает текущую дату и время в параметр deleted_at.\nМетод доступен для: admin, manager, service",
              "requestType": "DeleteNotificationTemplateRequest",
              "requestLongType": "DeleteNotificationTemplateRequest",
              "requestFullType": "keyapis.multiapp.v1.DeleteNotificationTemplateRequest",
              "requestStreaming": false,
              "responseType": "DeleteNotificationTemplateResponse",
              "responseLongType": "DeleteNotificationTemplateResponse",
              "responseFullType": "keyapis.multiapp.v1.DeleteNotificationTemplateResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "DELETE",
                      "pattern": "/multiapp/api/v1/notification_template/{id}"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetNotificationTemplateList",
              "description": "Метод получения списка шаблонов уведомлений.\nМетод доступен для: admin, manager, service, partner.\nРоль partner определяется по наличию заголовка X-API-KEY вместо Authorization.\nЕсли метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором",
              "requestType": "GetNotificationTemplateListRequest",
              "requestLongType": "GetNotificationTemplateListRequest",
              "requestFullType": "keyapis.multiapp.v1.GetNotificationTemplateListRequest",
              "requestStreaming": false,
              "responseType": "GetNotificationTemplateListResponse",
              "responseLongType": "GetNotificationTemplateListResponse",
              "responseFullType": "keyapis.multiapp.v1.GetNotificationTemplateListResponse",
              "responseStreaming": true,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/multiapp/api/v1/notification_template/list"
                    }
                  ]
                }
              }
            },
            {
              "name": "GetNotificationTemplateCount",
              "description": "Метод получения количества шаблонов уведомлений.\nМетод доступен для: admin, manager, service, partner.\nРоль partner определяется по наличию заголовка X-API-KEY вместо Authorization.\nЕсли метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором",
              "requestType": "GetNotificationTemplateCountRequest",
              "requestLongType": "GetNotificationTemplateCountRequest",
              "requestFullType": "keyapis.multiapp.v1.GetNotificationTemplateCountRequest",
              "requestStreaming": false,
              "responseType": "GetNotificationTemplateCountResponse",
              "responseLongType": "GetNotificationTemplateCountResponse",
              "responseFullType": "keyapis.multiapp.v1.GetNotificationTemplateCountResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "GET",
                      "pattern": "/multiapp/api/v1/notification_template/count"
                    }
                  ]
                }
              }
            },
            {
              "name": "PutNotificationTemplatePartnerAttach",
              "description": "Метод создания связи шаблона уведомления и партнера.\nМетод доступен для: admin, manager, service",
              "requestType": "PutNotificationTemplatePartnerAttachRequest",
              "requestLongType": "PutNotificationTemplatePartnerAttachRequest",
              "requestFullType": "keyapis.multiapp.v1.PutNotificationTemplatePartnerAttachRequest",
              "requestStreaming": false,
              "responseType": "PutNotificationTemplatePartnerAttachResponse",
              "responseLongType": "PutNotificationTemplatePartnerAttachResponse",
              "responseFullType": "keyapis.multiapp.v1.PutNotificationTemplatePartnerAttachResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "PUT",
                      "pattern": "/multiapp/api/v1/notification_template/{notification_template_partner.notification_template_id}/partner/{notification_template_partner.partner_id}/attach"
                    }
                  ]
                }
              }
            },
            {
              "name": "PutNotificationTemplatePartnerDetach",
              "description": "Метод удаления связи шаблона уведомления и партнера.\nМетод доступен для: admin, manager, service",
              "requestType": "PutNotificationTemplatePartnerDetachRequest",
              "requestLongType": "PutNotificationTemplatePartnerDetachRequest",
              "requestFullType": "keyapis.multiapp.v1.PutNotificationTemplatePartnerDetachRequest",
              "requestStreaming": false,
              "responseType": "PutNotificationTemplatePartnerDetachResponse",
              "responseLongType": "PutNotificationTemplatePartnerDetachResponse",
              "responseFullType": "keyapis.multiapp.v1.PutNotificationTemplatePartnerDetachResponse",
              "responseStreaming": false,
              "options": {
                "google.api.http": {
                  "rules": [
                    {
                      "method": "PUT",
                      "pattern": "/multiapp/api/v1/notification_template/{notification_template_partner.notification_template_id}/partner/{notification_template_partner.partner_id}/detach"
                    }
                  ]
                }
              }
            }
          ]
        }
      ],
      "syntax": "proto3"
    }
  ],
  "scalarValueTypes": [
    {
      "protoType": "double",
      "notes": "",
      "cppType": "double",
      "csType": "double",
      "goType": "float64",
      "javaType": "double",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "float",
      "notes": "",
      "cppType": "float",
      "csType": "float",
      "goType": "float32",
      "javaType": "float",
      "phpType": "float",
      "pythonType": "float",
      "rubyType": "Float"
    },
    {
      "protoType": "int32",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "int64",
      "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "uint32",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "uint64",
      "notes": "Uses variable-length encoding.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint32",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sint64",
      "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "fixed32",
      "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.",
      "cppType": "uint32",
      "csType": "uint",
      "goType": "uint32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "fixed64",
      "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.",
      "cppType": "uint64",
      "csType": "ulong",
      "goType": "uint64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "sfixed32",
      "notes": "Always four bytes.",
      "cppType": "int32",
      "csType": "int",
      "goType": "int32",
      "javaType": "int",
      "phpType": "integer",
      "pythonType": "int",
      "rubyType": "Bignum or Fixnum (as required)"
    },
    {
      "protoType": "sfixed64",
      "notes": "Always eight bytes.",
      "cppType": "int64",
      "csType": "long",
      "goType": "int64",
      "javaType": "long",
      "phpType": "integer/string",
      "pythonType": "int/long",
      "rubyType": "Bignum"
    },
    {
      "protoType": "bool",
      "notes": "",
      "cppType": "bool",
      "csType": "bool",
      "goType": "bool",
      "javaType": "boolean",
      "phpType": "boolean",
      "pythonType": "boolean",
      "rubyType": "TrueClass/FalseClass"
    },
    {
      "protoType": "string",
      "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.",
      "cppType": "string",
      "csType": "string",
      "goType": "string",
      "javaType": "String",
      "phpType": "string",
      "pythonType": "str/unicode",
      "rubyType": "String (UTF-8)"
    },
    {
      "protoType": "bytes",
      "notes": "May contain any arbitrary sequence of bytes.",
      "cppType": "string",
      "csType": "ByteString",
      "goType": "[]byte",
      "javaType": "ByteString",
      "phpType": "string",
      "pythonType": "str",
      "rubyType": "String (ASCII-8BIT)"
    }
  ]
}