210 lines
26 KiB
TypeScript
210 lines
26 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-250: agents ask for access themselves.
|
||
"Агенты просят доступ": "Agents ask for access",
|
||
"Запрос доступа — FORGE": "Access request — FORGE",
|
||
"Отказано. Агент получит вашу причину и продолжит без этого сервиса.": "Refused. The agent will get your reason and go on without this service.",
|
||
"Но сервис не принял ключ: замените его в разделе «Подключения».": "But the service didn't accept the key: replace it in «Connections».",
|
||
"Сервис сейчас не отвечает — ключ проверится при первом запросе агента.": "The service isn't answering now — the key will be checked on the agent's first request.",
|
||
"Доступ выдан. Агент получил сообщение и продолжит работу; ключ доступа он не видит.": "Access granted. The agent got a message and will go on working; it doesn't see the access key.",
|
||
"Он есть в описании сервиса для разработчиков или у того, кто его сделал.": "It's in the service's description for developers or with whoever made it.",
|
||
"Подключить и разрешить": "Connect and allow",
|
||
"Выберите подключение": "Choose a connection",
|
||
"Разрешить из уже подключённого": "Allow from what's already connected",
|
||
"Агент просит доступ к {service}": "An agent asks for access to {service}",
|
||
"Агенту нужен этот сервис для работы над задачей. Ключ доступа вы вводите один раз, агент его не увидит: запросы выполняет FORGE и записывает их в журнал. Можно и отказать — агент продолжит без сервиса.": "The agent needs this service to work on the task. You enter the access key once, and the agent won't see it: FORGE makes the requests and records them in the journal. You can also refuse — the agent will go on without the service.",
|
||
"По этому запросу уже есть решение.": "This request has already been decided.",
|
||
"агент просил ещё раз: {n}": "the agent asked again: {n}",
|
||
"Сервис": "Service",
|
||
"Что можно": "What's allowed",
|
||
"Зачем": "What for",
|
||
"Причина отказа": "Reason for refusal",
|
||
"без причины": "no reason",
|
||
"Агенты проекта смогут читать и менять данные в этом сервисе. Изменить или отозвать доступ можно в разделе «Подключения».": "The project's agents will be able to read and change data in this service. You can change or revoke the access in «Connections».",
|
||
"Агенты проекта смогут только читать данные в этом сервисе. Изменить или отозвать доступ можно в разделе «Подключения».": "The project's agents will only be able to read data in this service. You can change or revoke the access in «Connections».",
|
||
"Или разрешить из уже подключённого": "Or allow from what's already connected",
|
||
"Причина — агент её получит, например «используйте тестовые данные»": "Reason — the agent will get it, e.g. «use test data»",
|
||
"читать и менять": "read and change",
|
||
"только читать": "read only",
|
||
"ждёт вашего решения": "waiting for your decision",
|
||
"доступ выдан": "access granted",
|
||
"отказано": "refused",
|
||
"агент отменил запрос": "the agent cancelled the request",
|
||
"Посмотреть и решить": "View and decide",
|
||
"Отказано. Агент узнает об этом.": "Refused. The agent will be told.",
|
||
"Укажите адрес сервиса в интернете": "Give the service's address on the internet",
|
||
"{project}, задача {task}": "{project}, task {task}",
|
||
"{service} — читать и менять": "{service} — read and change",
|
||
"{service} — только читать": "{service} — read only",
|
||
"{who} просит доступ: {what}.": "{who} asks for access: {what}.",
|
||
"Зачем: {purpose}": "What for: {purpose}",
|
||
"Проект: {where}": "Project: {where}",
|
||
"Откройте запрос, чтобы подключить сервис или отказать.": "Open the request to connect the service or refuse.",
|
||
"Агент просит доступ": "An agent asks for access",
|
||
"Запрос не найден": "Request not found",
|
||
"По этому запросу уже есть решение": "This request has already been decided",
|
||
};
|