From 8f1bb3010a49fa64aa421f546e5216c537429089 Mon Sep 17 00:00:00 2001 From: Pavel Antonov <antonov@perx.ru> Date: Wed, 20 Nov 2024 11:01:53 +0000 Subject: [PATCH] =?UTF-8?q?feat(extensions):=20=D0=94=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=20ActionReques?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: https://git.perx.ru/perxis/perxis/-/issues/2905 --- proto/extensions/extension.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/proto/extensions/extension.proto b/proto/extensions/extension.proto index e1db1ee..75745a1 100644 --- a/proto/extensions/extension.proto +++ b/proto/extensions/extension.proto @@ -170,4 +170,14 @@ message ActionRequest { // Ссылка на документ с параметрами выполнения Action. // Чтобы при выполнении действия открывалась форма параметров, необходимо указать `Action.params_collection` content.references.Reference params = 11020; + + // Параметры запроса пользователя + message UserPreferences { + string timezone = 1000; // Timezone в формате IANA. Пример: "Europe/Moscow", "America/New_York" https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + string locale = 1020; // Текущая локаль пользователя в UI + string theme = 1030; // Текущая тема пользователя в UI + string agent = 1040; // Браузера или приложение пользователя + } + + UserPreferences user = 11030; } -- GitLab