244 lines
31 KiB
TypeScript
244 lines
31 KiB
TypeScript
// PEP-234 Access Hub: «Подключения» — the user's own services for agents.
|
||
export const accessHub: Record<string, string> = {
|
||
"разрешено": "allowed",
|
||
"запрещено": "denied",
|
||
"не выполнено": "not completed",
|
||
"работает": "working",
|
||
"доступ отозван": "access revoked",
|
||
"последний запрос {ago}": "last request {ago}",
|
||
"запросов ещё не было": "no requests yet",
|
||
"Кому разрешено": "Who is allowed",
|
||
"Пока никому: агенты не могут пользоваться этим подключением.": "Nobody yet: agents can't use this connection.",
|
||
"агент {name}": "agent {name}",
|
||
"любой агент проекта": "any agent of the project",
|
||
"Любой агент проекта": "Any agent of the project",
|
||
"Разрешённые операции": "Allowed operations",
|
||
"По одной операции в строке: действие (GET — читать, POST — создавать, PUT и PATCH — менять, DELETE — удалять) и начало пути. «GET /items» разрешает читать /items и всё внутри, остальное запрещено.": "One operation per line: the action (GET — read, POST — create, PUT and PATCH — change, DELETE — delete) and the start of the path. «GET /items» allows reading /items and everything inside it; everything else is denied.",
|
||
"Новый ключ доступа": "New access key",
|
||
"Новый ключ доступа, чтобы включить снова": "New access key to turn it back on",
|
||
"Заменить ключ": "Replace key",
|
||
"Включить снова": "Turn back on",
|
||
"Отозвать доступ": "Revoke access",
|
||
"Подключение сохранено. Ключ доступа больше не показывается никому. Теперь разрешите нужным агентам операции.": "Connection saved. The access key is no longer shown to anyone. Now allow operations to the agents that need them.",
|
||
"Подключения": "Connections",
|
||
"Подключения — FORGE": "Connections — FORGE",
|
||
"Подключите свои сервисы и решите, какие агенты и что в них могут делать. Агенты не видят ключ доступа: запросы выполняет FORGE и записывает их в журнал. Без вашего разрешения агент ничего не сделает, а «Отозвать доступ» действует сразу.": "Connect your services and decide which agents may do what in them. Agents never see the access key: FORGE makes the requests and records them in the journal. Without your permission an agent can do nothing, and «Revoke access» takes effect at once.",
|
||
"Ваши подключения": "Your connections",
|
||
"Подключений пока нет.": "No connections yet.",
|
||
"Подключить сервис": "Connect a service",
|
||
"Название, например «Магазин»": "Name, for example «Shop»",
|
||
"Адрес сервиса": "Service address",
|
||
"Ключ доступа — после сохранения его не увидит никто": "Access key — nobody will see it after saving",
|
||
"Ключ доступа": "Access key",
|
||
"Как передавать ключ": "How to send the key",
|
||
"Как «Authorization: Bearer …»": "As «Authorization: Bearer …»",
|
||
"В своём заголовке": "In its own header",
|
||
"Имя заголовка": "Header name",
|
||
"Журнал запросов": "Request journal",
|
||
"Агенты ещё не обращались к вашим подключениям.": "Agents have not used your connections yet.",
|
||
"Когда": "When",
|
||
"Подключение": "Connection",
|
||
"Проект и агент": "Project and agent",
|
||
"Операция": "Operation",
|
||
"Решение": "Decision",
|
||
"запрос не от агента FORGE": "the request is not from a FORGE agent",
|
||
"агент работает без изоляции": "the agent works without isolation",
|
||
"нет такого подключения": "no such connection",
|
||
"несколько подключений с таким названием": "several connections with this name",
|
||
"подключение отозвано": "the connection is revoked",
|
||
"нет разрешения для проекта или агента": "no permission for the project or agent",
|
||
"операция не разрешена": "the operation is not allowed",
|
||
"недопустимый путь": "invalid path",
|
||
"недопустимый запрос": "invalid request",
|
||
"слишком много запросов": "too many requests",
|
||
"адрес сервиса недоступен": "the service address is not reachable",
|
||
"сервис перенаправил запрос": "the service redirected the request",
|
||
"слишком большой ответ": "the answer is too large",
|
||
"сервис не ответил вовремя": "the service did not answer in time",
|
||
"сервис недоступен": "the service is unavailable",
|
||
"Адрес сервиса должен начинаться с https:// и не содержать логин, пароль, «?» и «#»": "The service address must start with https:// and contain no login, password, «?» or «#»",
|
||
"Этот адрес сервиса недоступен: укажите адрес в интернете": "This service address is not reachable: enter an address on the internet",
|
||
"Укажите хотя бы одну операцию, например «GET /items»": "Enter at least one operation, for example «GET /items»",
|
||
"Не больше {n} операций в одном разрешении": "No more than {n} operations in one permission",
|
||
"Операция «{op}» не распознана: нужен метод (GET, POST, PUT, PATCH, DELETE) и путь с «/»": "Operation «{op}» is not recognized: it needs a method (GET, POST, PUT, PATCH, DELETE) and a path starting with «/»",
|
||
"Подключение не найдено": "Connection not found",
|
||
"Название подключения: от 1 до {n} символов": "Connection name: 1 to {n} characters",
|
||
"Название подключения содержит недопустимые символы": "The connection name contains invalid characters",
|
||
"Ключ доступа пустой": "The access key is empty",
|
||
"Ключ доступа больше 8 КБ": "The access key is larger than 8 KB",
|
||
"Ключ доступа должен быть одной строкой": "The access key must be a single line",
|
||
"Имя заголовка для ключа: латинские буквы, цифры и дефис, например X-Api-Key": "Header name for the key: Latin letters, digits and hyphens, for example X-Api-Key",
|
||
"Подключение «{name}» уже есть": "Connection «{name}» already exists",
|
||
"Подключение отозвано: сначала задайте новый ключ доступа": "The connection is revoked: set a new access key first",
|
||
"Разрешение не найдено": "Permission not found",
|
||
// PEP-249: catalog, read / write, key check.
|
||
"ключ ещё не проверялся": "key not checked yet",
|
||
"сразу": "at once",
|
||
"спрашивать меня": "ask me",
|
||
"чтение: {mode}": "read: {mode}",
|
||
"запись: {mode}": "write: {mode}",
|
||
"Выполнять сразу": "Run at once",
|
||
"Спрашивать меня": "Ask me",
|
||
"Не разрешать": "Don't allow",
|
||
"Чтение": "Read",
|
||
"Запись": "Write",
|
||
"Чтение — смотреть данные, ничего не меняя. Запись — создавать, менять, удалять и отправлять. «Спрашивать меня» пока означает отказ: подтверждение запросов появится позже.": "Read — look at data without changing anything. Write — create, change, delete and send. «Ask me» means a refusal for now: confirming requests will come later.",
|
||
"Тонкая настройка": "Fine-tuning",
|
||
"проверено {ago}": "checked {ago}",
|
||
"имя для агентов: {slug}": "name for agents: {slug}",
|
||
"Документация сервиса": "Service documentation",
|
||
"Подключение сохранено. Ключ доступа больше не показывается никому.": "Connection saved. Nobody will see the access key again.",
|
||
"Ключ работает. Теперь решите, кому из агентов его разрешить.": "The key works. Now decide which agents may use it.",
|
||
"Сервис отвечает. Ключ проверится при первом запросе агента.": "The service answers. The key will be checked on the agent's first request.",
|
||
"Сервис не принял ключ: проверьте, что скопировали его целиком, и замените ключ.": "The service didn't accept the key: make sure you copied all of it, and replace the key.",
|
||
"Сервис сейчас не отвечает. Ключ сохранён — проверьте позже кнопкой «Проверить».": "The service isn't answering right now. The key is saved — check later with «Check».",
|
||
"Свой сервис": "Own service",
|
||
"← Другой сервис": "← Another service",
|
||
"Возьмите ключ доступа": "Get an access key",
|
||
"Открыть страницу, где берут ключ": "Open the page where you get the key",
|
||
"Возьмите адрес сервиса и ключ доступа": "Get the service address and an access key",
|
||
"Они есть в описании сервиса для разработчиков или у того, кто его сделал.": "They are in the service's developer documentation or with whoever built it.",
|
||
"Вставьте его сюда": "Paste it here",
|
||
"логин:пароль — после сохранения их не увидит никто": "login:password — nobody will see them after saving",
|
||
"В адресе запроса (параметр)": "In the request address (parameter)",
|
||
"Логин и пароль": "Login and password",
|
||
"Имя заголовка или параметра": "Header or parameter name",
|
||
"Проверим ключ и решите, кому разрешить": "We'll check the key, then you decide who may use it",
|
||
"После сохранения FORGE сам сделает проверочный запрос, а вы выберете проект, агента и что можно: читать или менять.": "After saving, FORGE makes a test request itself, and you choose the project, the agent and what is allowed: reading or changing.",
|
||
"Найти сервис: почта, платежи, Stripe…": "Find a service: mail, payments, Stripe…",
|
||
"Найти сервис": "Find a service",
|
||
"Адрес и ключ вручную": "Address and key by hand",
|
||
"Такого сервиса в списке нет — подключите его как «Свой сервис».": "This service isn't in the list — connect it as «Own service».",
|
||
"Платежи": "Payments",
|
||
"Почта": "Mail",
|
||
"ИИ": "AI",
|
||
"Облако": "Cloud",
|
||
"Данные и таблицы": "Data and tables",
|
||
"Документы": "Documents",
|
||
"Карты": "Maps",
|
||
"Торговля": "Commerce",
|
||
"Settings → Developer settings → Fine-grained tokens: создайте ключ с доступом только к нужным проектам.": "Settings → Developer settings → Fine-grained tokens: create a key with access only to the projects you need.",
|
||
"В своём сервере: Настройки → Приложения → «Создать новый ключ». Адрес — ваш сервер и /api/v1 в конце.": "On your server: Settings → Applications → «Generate new token». The address is your server with /api/v1 at the end.",
|
||
"Developers → API keys. Для начала возьмите тестовый ключ (sk_test_…) или ключ с ограниченными правами.": "Developers → API keys. To start, take a test key (sk_test_…) or a restricted key.",
|
||
"Google Cloud → APIs & Services → Credentials → «Create credentials» → API key, включите Sheets API. По такому ключу открываются только таблицы с доступом по ссылке.": "Google Cloud → APIs & Services → Credentials → «Create credentials» → API key, enable the Sheets API. Such a key opens only sheets shared by link.",
|
||
"Google Cloud → APIs & Services → Credentials → API key, включите Drive API. По такому ключу видны только файлы с доступом по ссылке.": "Google Cloud → APIs & Services → Credentials → API key, enable the Drive API. Such a key sees only files shared by link.",
|
||
"Google Cloud → APIs & Services → Credentials → API key, включите Calendar API. По такому ключу видны только общедоступные календари.": "Google Cloud → APIs & Services → Credentials → API key, enable the Calendar API. Such a key sees only public calendars.",
|
||
"Отправьте @BotFather сообщение /newbot (или /token для своего бота) и вставьте ключ, который он пришлёт.": "Send @BotFather the message /newbot (or /token for your bot) and paste the key it sends you.",
|
||
"API Keys → «Create API Key». Для проверки и чтения нужен ключ с полным доступом.": "API Keys → «Create API Key». Checking and reading need a full-access key.",
|
||
"Settings → API Keys → «Create API Key», права — только нужные.": "Settings → API Keys → «Create API Key», only the permissions you need.",
|
||
"API keys → «Create new secret key». Запросы к ИИ тратят деньги на вашем счёте — это «запись».": "API keys → «Create new secret key». AI requests spend money on your account — that is «write».",
|
||
"Console → Settings → API keys → «Create Key». Запросы к ИИ тратят деньги на вашем счёте — это «запись».": "Console → Settings → API keys → «Create Key». AI requests spend money on your account — that is «write».",
|
||
"My Profile → API Tokens → «Create Token», выберите шаблон с нужными правами.": "My Profile → API Tokens → «Create Token», pick a template with the permissions you need.",
|
||
"User settings → Auth Tokens → «Create New Token». Адрес — https://sentry.io/api/0 или ваш сервер.": "User settings → Auth Tokens → «Create New Token». The address is https://sentry.io/api/0 or your server.",
|
||
"В своём сервере создайте ключ доступа администратора. Адрес — ваш сервер и /api/canonical/0 в конце.": "On your server, create an administrator access key. The address is your server with /api/canonical/0 at the end.",
|
||
"Project Settings → API Keys. Адрес — Project URL вида https://<проект>.supabase.co.": "Project Settings → API Keys. The address is the Project URL like https://<project>.supabase.co.",
|
||
"Integrations → «New integration», скопируйте секрет и дайте интеграции доступ к нужным страницам (Share → Connections).": "Integrations → «New integration», copy the secret and give the integration access to the pages you need (Share → Connections).",
|
||
"Developer hub → Personal access tokens → «Create token», выберите базы и права.": "Developer hub → Personal access tokens → «Create token», choose bases and permissions.",
|
||
"Your Apps → ваше приложение → OAuth & Permissions → Bot User OAuth Token (xoxb-…).": "Your Apps → your app → OAuth & Permissions → Bot User OAuth Token (xoxb-…).",
|
||
"Console → Account Info: вставьте «Account SID:Auth Token» через двоеточие.": "Console → Account Info: paste «Account SID:Auth Token» separated by a colon.",
|
||
"Кабинет продавца Kaspi → Настройки → Токен API: сгенерируйте и вставьте его.": "Kaspi seller cabinet → Settings → API token: generate it and paste it.",
|
||
"Кабинет 2GIS Platform Manager → ключи доступа: создайте ключ для Places API.": "2GIS Platform Manager cabinet → access keys: create a key for the Places API.",
|
||
"чтение не разрешено": "reading isn't allowed",
|
||
"запись не разрешена": "writing isn't allowed",
|
||
"нужно подтверждение владельца, а подтверждения пока не поддерживаются": "the owner's confirmation is needed, and confirmations aren't supported yet",
|
||
"проверка ключа владельцем": "key check by the owner",
|
||
"ключ работает": "key works",
|
||
"ключ не подходит": "key not accepted",
|
||
"сервис не отвечает": "service not answering",
|
||
"Для этого сервиса вставьте ключ как «логин:пароль» через двоеточие": "For this service paste the key as «login:password» with a colon",
|
||
"Ключ доступа содержит недопустимые символы": "The access key contains characters that aren't allowed",
|
||
"Такого сервиса нет в каталоге": "There is no such service in the catalog",
|
||
"Укажите адрес сервиса": "Enter the service address",
|
||
"Укажите адрес своего сервиса вместо образца": "Enter your own service address instead of the sample",
|
||
"Имя параметра для ключа: латинские буквы, цифры, дефис и подчёркивание, например key": "Key parameter name: Latin letters, digits, hyphens and underscores, for example key",
|
||
"Разрешите чтение, запись или хотя бы одну операцию": "Allow reading, writing or at least one operation",
|
||
"Ключ доступа подключения «{name}» перестал работать: агенты не смогут им пользоваться. Замените ключ в разделе «Подключения».": "The access key of connection «{name}» stopped working: agents can't use it. Replace the key in «Connections».",
|
||
"выполняется": "in progress",
|
||
"начато, итога нет": "started, no result",
|
||
"Журнал нельзя незаметно изменить: каждая запись связана с предыдущей, и раз в сутки FORGE сохраняет отметку журнала отдельно. Если запись изменят, вы и администратор получите сообщение.": "The journal can't be changed unnoticed: each entry is linked to the previous one, and once a day FORGE keeps a mark of the journal separately. If an entry is changed, you and the administrator get a message.",
|
||
"Скачать журнал (таблица)": "Download the journal (table)",
|
||
"Скачать журнал для проверки": "Download the journal for checking",
|
||
"Как проверить журнал самому": "How to check the journal yourself",
|
||
"Скачайте журнал для проверки и сохраните программу ниже рядом с ним. Запустите её так, как написано в её первой строке. Ответ «ok» значит, что журнал не меняли; иначе программа назовёт первую изменённую запись.": "Download the journal for checking and save the program below next to it. Run it as its first line says. The answer «ok» means the journal wasn't changed; otherwise the program names the first changed entry.",
|
||
"Журнал подключений: контрольные точки": "Connections journal: checkpoints",
|
||
"Журнал подключений пользователя {login} изменён в обход FORGE (запись {id}). Проверьте доступ к базе.": "The connections journal of user {login} was changed bypassing FORGE (entry {id}). Check access to the database.",
|
||
"Журнал ваших подключений изменён в обход FORGE. Администратор уже знает и разбирается; ключи доступа лучше заменить в разделе «Подключения».": "The journal of your connections was changed bypassing FORGE. The administrator already knows and is looking into it; better replace the access keys in «Connections».",
|
||
// PEP-251: databases, servers, storages and mailboxes
|
||
"«Спрашивать меня» пока означает отказ: подтверждение запросов появится позже.": "«Ask me» means a refusal for now: request confirmations will come later.",
|
||
"Адрес отправителя (пусто — логин)": "Sender address (empty — the login)",
|
||
"Адрес отправителя — почта, например shop@example.com": "The sender address is an email, for example shop@example.com",
|
||
"Адрес сервера": "Server address",
|
||
"Адрес хранилища": "Storage address",
|
||
"Адрес хранилища должен начинаться с https://": "The storage address must start with https://",
|
||
"Адрес хранилища должен начинаться с https:// и не содержать путь, логин и пароль": "The storage address must start with https:// and contain no path, login or password",
|
||
"База данных": "Database",
|
||
"Бакет": "Bucket",
|
||
"Без шифрования": "No encryption",
|
||
"Для почты Google, Яндекса и Mail.ru нужен пароль приложения: его создают в настройках безопасности почты.": "Google, Yandex and Mail.ru mail need an app password: you create it in the mail's security settings.",
|
||
"Защита соединения": "Connection protection",
|
||
"Идентификатор ключа доступа": "Access key ID",
|
||
"Ключ сервера изменился. Если сервер не переустанавливали, не принимайте новый ключ и сообщите тому, кто его обслуживает.": "The server key has changed. If the server wasn't reinstalled, don't accept the new key and tell whoever maintains it.",
|
||
"Ключ сервера подключения «{name}» изменился. Агенты не смогут им пользоваться, пока вы не проверите сервер. Если сервер переустанавливали — нажмите «Принять новый ключ сервера» в разделе «Подключения».": "The server key of the connection «{name}» has changed. Agents can't use it until you check the server. If the server was reinstalled, press «Accept the new server key» in «Connections».",
|
||
"Ключ сервера, если знаете (иначе запомним при первом подключении)": "Server key, if you know it (otherwise we remember it on the first connection)",
|
||
"Логин почтового ящика": "Mailbox login",
|
||
"Лучше заведите для агентов отдельного пользователя базы данных только с нужными правами: так даже ошибка агента ничего лишнего не изменит.": "Better create a separate database user for agents with only the rights they need: then even an agent's mistake won't change anything extra.",
|
||
"Лучше заведите для агентов отдельного пользователя на сервере. Файлы агенты видят только в папке, которую вы укажете.": "Better create a separate user on the server for agents. Agents see files only in the folder you specify.",
|
||
"Лучше создайте отдельный ключ доступа только к этому бакету. Агенты видят файлы только в папке, которую вы укажете.": "Better create a separate access key for this bucket only. Agents see files only in the folder you specify.",
|
||
"Название базы данных": "Database name",
|
||
"Новый пароль": "New password",
|
||
"Новый пароль или ключ": "New password or key",
|
||
"Новый пароль или ключ входа на сервер": "New password or server sign-in key",
|
||
"Отпечаток ключа сервера выглядит как SHA256:… — или оставьте поле пустым": "A server key fingerprint looks like SHA256:… — or leave the field empty",
|
||
"Папка в бакете (пусто — весь бакет)": "Folder in the bucket (empty — the whole bucket)",
|
||
"Папка в хранилище содержит недопустимые символы": "The storage folder contains invalid characters",
|
||
"Папка на сервере — полный путь, например /var/www": "The folder on the server is a full path, for example /var/www",
|
||
"Папка, в которой агенты работают с файлами": "Folder where agents work with files",
|
||
"Пароль или ключ больше 16 КБ": "The password or key is larger than 16 KB",
|
||
"Пароль или ключ входа на сервер": "Password or server sign-in key",
|
||
"Пароль или ключ должен быть одной строкой": "The password or key must be a single line",
|
||
"Пароль или ключ пустой": "The password or key is empty",
|
||
"Пароль или ключ содержит недопустимые символы": "The password or key contains invalid characters",
|
||
"Пароль пользователя базы данных": "Database user password",
|
||
"Пароль почтового ящика (лучше — пароль приложения)": "Mailbox password (better — an app password)",
|
||
"Порт": "Port",
|
||
"Порт — число от 1 до 65535": "The port is a number from 1 to 65535",
|
||
"После сохранения пароль и ключ не увидит никто: ни агенты, ни администраторы FORGE.": "Once saved, nobody will see the password and key: neither agents nor FORGE administrators.",
|
||
"Почтовый ящик": "Mailbox",
|
||
"Принять новый ключ сервера": "Accept the new server key",
|
||
"Регион": "Region",
|
||
"Секретный ключ доступа к хранилищу": "Secret access key of the storage",
|
||
"Сервер (SSH)": "Server (SSH)",
|
||
"Сервер входящей почты": "Incoming mail server",
|
||
"Сервер и файлы на нём": "A server and its files",
|
||
"Сервер исходящей почты": "Outgoing mail server",
|
||
"Список адресов: имена серверов или IP-адреса, не больше 50": "Address list: server names or IP addresses, at most 50",
|
||
"Такого вида подключения нет": "There is no such kind of connection",
|
||
"У этого подключения нет ключа сервера": "This connection has no server key",
|
||
"Укажите адрес сервера, например db.example.com": "Enter the server address, for example db.example.com",
|
||
"Укажите идентификатор ключа доступа": "Enter the access key ID",
|
||
"Укажите логин почтового ящика": "Enter the mailbox login",
|
||
"Укажите название базы данных": "Enter the database name",
|
||
"Укажите название бакета: строчные латинские буквы, цифры, точка и дефис": "Enter the bucket name: lowercase Latin letters, digits, dot and hyphen",
|
||
"Укажите пользователя базы данных": "Enter the database user",
|
||
"Укажите пользователя на сервере": "Enter the user on the server",
|
||
"Укажите регион хранилища, например eu-central-1": "Enter the storage region, for example eu-central-1",
|
||
"Файлы в облаке": "Files in the cloud",
|
||
"Хранилище S3": "S3 storage",
|
||
"Чтение и отправка писем": "Reading and sending letters",
|
||
"Чтение — смотреть и скачивать файлы в разрешённой папке. Запись — загружать и удалять файлы.": "Reading — view and download files in the allowed folder. Writing — upload and delete files.",
|
||
"Чтение — смотреть письма. Запись — отмечать, переносить и отправлять письма.": "Reading — view letters. Writing — mark, move and send letters.",
|
||
"Чтение — смотреть таблицы, ничего не меняя. Запись — добавлять, менять и удалять данные.": "Reading — view tables without changing anything. Writing — add, change and delete data.",
|
||
"Чтение — смотреть файлы в разрешённой папке. Запись — менять файлы и выполнять действия на сервере.": "Reading — view files in the allowed folder. Writing — change files and perform actions on the server.",
|
||
"Шифровать без проверки сертификата": "Encrypt without checking the certificate",
|
||
"Шифровать и проверять сертификат": "Encrypt and check the certificate",
|
||
"Это может только администратор FORGE": "Only a FORGE administrator can do this",
|
||
"запрос не только читает данные": "the request does more than read data",
|
||
"ключ сервера изменился": "the server key has changed",
|
||
"ключ сервера: {key}": "server key: {key}",
|
||
"не найдено": "not found",
|
||
"путь вне разрешённой папки": "the path is outside the allowed folder",
|
||
"сервис вернул ошибку": "the service returned an error",
|
||
"сервис не принял пароль или ключ": "the service didn't accept the password or key",
|
||
"у этого подключения другие операции": "this connection has other operations",
|
||
};
|