SPB Git

Repository Public

en.adm.keys.ts 17.8 KB 293 lines typescript

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : SP Mail8 * File             : web/src/i18n/en.adm.keys.ts9 * Module           : i18n10 * Repository       : https://git.spboucher.ai/sp-mail11 * Project Website  : https://mail.spboucher.ai12 * Created          : 2026-11-1913 * Last Modified    : 2026-11-2014 *15 * Author           : Simon-Pierre Boucher16 * Position         : Professor of Finance17 * Institution      : Université du Québec en Outaouais (UQO)18 * Organization     : SP Boucher19 * Website          : https://spboucher.ai20 * Git              : https://git.spboucher.ai21 *22 * Preferred Contact: support@spboucher.ai23 * Development      : dev@spboucher.ai24 * Support          : support@spboucher.ai25 * Security/Admin   : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License          : None specified (no license file in this repository)34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243// Administration "keys" strings (en).44import type { frAdmKeys } from "./fr.adm.keys"4546export const enAdmKeys: Record<keyof typeof frAdmKeys, string> = {47  // ---- list48  "adm.keys.new": "New key",49  "adm.keys.showInactive": "Show revoked or expired keys",50  "adm.keys.count": "{n} active key|{n} active keys",51  "adm.keys.countInactive": "{n} revoked or expired|{n} revoked or expired",52  "adm.keys.empty": "No API keys. Create one to let a program or an agent access mail with precise permissions.",53  "adm.keys.emptyActive": "No active keys. Revoked or expired keys are hidden.",54  "adm.keys.rotated": "Created by rotation",55  "adm.keys.col.name": "Name",56  "adm.keys.col.scopes": "Scopes",57  "adm.keys.col.addresses": "Addresses",58  "adm.keys.col.policy": "External sending",59  "adm.keys.col.limits": "Limits",60  "adm.keys.col.lastUsed": "Last used",61  "adm.keys.col.expiry": "Expiry",62  "adm.keys.col.state": "Status",63  "adm.keys.state.active": "Active",64  "adm.keys.state.revoked": "Revoked",65  "adm.keys.state.expired": "Expired",66  "adm.keys.state.revoking": "Active until {date}",67  "adm.keys.action.usage": "Usage",68  "adm.keys.action.usageOf": "Usage for key {name}",69  "adm.keys.action.editOf": "Edit key {name}",70  "adm.keys.action.rotate": "Rotate",71  "adm.keys.action.rotateOf": "Rotate key {name}",72  "adm.keys.action.revoke": "Revoke",73  "adm.keys.action.revokeOf": "Revoke key {name}",74  "adm.keys.policyShort.approval": "With approval",75  "adm.keys.policyShort.deny": "Denied",76  "adm.keys.policyShort.allow": "Allowed",77  "adm.keys.domains.only": "Recipients limited to: {list}",78  "adm.keys.domains.any": "No domain restriction",79  "adm.keys.limits.summary": "{rate} requests/min · {daily} sends/day",8081  // ---- wizard82  "adm.keys.create.title": "New API key",83  "adm.keys.create.submit": "Create key",84  "adm.keys.edit.title": "Edit key {name}",85  "adm.keys.edit.submit": "Save permissions",86  "adm.keys.edit.done": "Key {name} was updated. The new permissions apply starting with its next request.",87  "adm.keys.edit.unchanged": "Nothing to save.",88  "adm.keys.wizard.steps": "Steps",89  "adm.keys.wizard.stepOf": "Step {n} of {total}",90  "adm.keys.wizard.previous": "Back",91  "adm.keys.wizard.next": "Next",92  "adm.keys.wizard.leave": "Discard what you entered? Nothing has been saved yet.",93  "adm.keys.wizard.stay": "Keep editing",94  "adm.keys.wizard.discard": "Discard",95  "adm.keys.step.identity": "Name",96  "adm.keys.step.scopes": "Scopes",97  "adm.keys.step.addresses": "Addresses",98  "adm.keys.step.policy": "External sending",99  "adm.keys.step.limits": "Limits",100  "adm.keys.step.review": "Review",101  "adm.keys.identity.intro": "An API key gives a program or an agent limited access to mail. Give it a name that says what it is for: that is what you will see in logs and approval requests.",102  "adm.keys.field.name": "Key name",103  "adm.keys.field.nameHint": "For example \"server-alerts\" or \"triage-agent\". 80 characters at most.",104  "adm.keys.field.description": "Description (optional)",105  "adm.keys.field.descriptionHint": "Who uses this key, and what for.",106107  "adm.keys.scopes.intro": "Scopes define what the key may do. Start from a profile, then adjust if needed: grant as little as possible.",108  "adm.keys.scopes.presets": "Profiles",109  "adm.keys.scopes.matches": "Selected profile: {preset}.",110  "adm.keys.scopes.custom": "Custom selection: {n} scope.|Custom selection: {n} scopes.",111  "adm.keys.scopes.powerful": "Sensitive",112  "adm.keys.scopes.adminNote": "\"Administration\" includes every other scope, creating and deleting mailboxes, and allows access to all addresses. Keep it for your own tools.",113  "adm.keys.preset.send_only": "Send only (notifications)",114  "adm.keys.presetDesc.send_only": "Sends messages from the allowed addresses and tracks their delivery. Reads no mail.",115  "adm.keys.preset.read_only": "Read only (agent)",116  "adm.keys.presetDesc.read_only": "Reads, searches and downloads attachments. Changes nothing and sends nothing.",117  "adm.keys.preset.agent_drafts": "Agent: read + drafts",118  "adm.keys.presetDesc.agent_drafts": "Reads mail and prepares drafts for a person to review. Sends nothing.",119  "adm.keys.preset.agent_send_approval": "Agent: send with approval",120  "adm.keys.presetDesc.agent_send_approval": "Reads, drafts and sends. Every external send waits for your approval.",121  "adm.keys.preset.admin": "Administration",122  "adm.keys.presetDesc.admin": "Every permission, including mailbox management. Keep it for your own tools.",123  "adm.keys.group.send": "Write and send",124  "adm.keys.group.read": "Read",125  "adm.keys.group.modify": "Organize and delete",126  "adm.keys.group.manage": "Addresses and webhooks",127  "adm.keys.group.admin": "Administration",128  "adm.keys.scope.mail.send": "Send",129  "adm.keys.scopeDesc.mail.send": "Send messages and replies, schedule a send, track delivery.",130  "adm.keys.scope.mail.read": "Read",131  "adm.keys.scopeDesc.mail.read": "List and read messages, threads and folders; follow changes.",132  "adm.keys.scope.mail.search": "Search",133  "adm.keys.scopeDesc.mail.search": "Filter by sender, recipient, subject, text or label.",134  "adm.keys.scope.mail.modify": "Organize",135  "adm.keys.scopeDesc.mail.modify": "Mark read or unread, star, label, move, archive, trash, create folders.",136  "adm.keys.scope.mail.delete": "Delete permanently",137  "adm.keys.scopeDesc.mail.delete": "Delete messages for good (also allows moving to Trash).",138  "adm.keys.scope.mail.drafts": "Drafts",139  "adm.keys.scopeDesc.mail.drafts": "Create, read, update and discard drafts. Does not allow sending them.",140  "adm.keys.scope.mail.attachments.read": "Read attachments",141  "adm.keys.scopeDesc.mail.attachments.read": "List and download the attachments of visible messages.",142  "adm.keys.scope.mail.attachments.write": "Attach files",143  "adm.keys.scopeDesc.mail.attachments.write": "Upload files and attach them to a send or a draft.",144  "adm.keys.scope.mail.addresses.read": "View addresses",145  "adm.keys.scopeDesc.mail.addresses.read": "List the allowed addresses and read their automation rules.",146  "adm.keys.scope.mail.addresses.manage": "Manage addresses",147  "adm.keys.scopeDesc.mail.addresses.manage": "Create, update and delete aliases in the allowed mailboxes; write automation rules.",148  "adm.keys.scope.mail.aliases.manage": "Manage aliases",149  "adm.keys.scopeDesc.mail.aliases.manage": "Create, update and delete aliases in the allowed mailboxes.",150  "adm.keys.scope.mail.webhooks.manage": "Manage its own webhooks",151  "adm.keys.scopeDesc.mail.webhooks.manage": "Create and manage this key's webhooks, view and replay their deliveries.",152  "adm.keys.scope.mail.admin": "Administration",153  "adm.keys.scopeDesc.mail.admin": "All of the above, plus: create, suspend and delete mailboxes, protect an address, write raw Sieve.",154155  "adm.keys.addresses.intro": "A key only acts for the addresses selected here. With a mailbox's primary address it sees the whole mailbox; with an alias alone, only that alias's mail.",156  "adm.keys.addresses.legend": "Allowed addresses",157  "adm.keys.addresses.hint": "Nothing is selected by default. An address created later is never added automatically.",158  "adm.keys.addresses.all": "All addresses, present and future",159  "adm.keys.addresses.allHint": "An explicit choice, only available with the \"Administration\" scope.",160  "adm.keys.addresses.allUnavailable": "Access to all addresses is only available to a key with \"Administration\": pick the addresses one by one.",161  "adm.keys.addresses.allWarn": "This key will act for every mailbox and alias, including those created later. Whoever gets its secret can read and send all mail.",162  "adm.keys.addresses.allBadge": "All addresses",163  "adm.keys.addresses.noneBadge": "No addresses",164  "adm.keys.addresses.emptyWarn": "Without an address, this key sees nothing and cannot send anything.",165  "adm.keys.addresses.more": "and {n} more|and {n} more",166  "adm.keys.addresses.unknown": "(deleted address)",167168  "adm.keys.policy.intro": "A recipient is \"external\" when its domain is not hosted by this server. This setting decides what happens when the key sends to external recipients.",169  "adm.keys.policy.legend": "External sending",170  "adm.keys.policy.approval": "With approval (recommended)",171  "adm.keys.policyDesc.approval": "The message is held: nothing is sent, not even to internal recipients, until an administrator approves it under \"Approvals\". With no decision after 7 days, it is cancelled.",172  "adm.keys.policy.deny": "Denied",173  "adm.keys.policyDesc.deny": "Any send with an external recipient is refused. The key only writes to addresses hosted here.",174  "adm.keys.policy.allow": "Allowed without approval",175  "adm.keys.policyDesc.allow": "Messages go straight to any recipient, with no human check.",176  "adm.keys.policy.allowWarn": "With this choice, a faulty program or a manipulated agent can write to anyone on your behalf. At least restrict the domains and the daily send limit.",177  "adm.keys.policy.cannotSend": "This key cannot send: this setting only matters if you later grant it the \"Send\" scope.",178  "adm.keys.policy.cannotSendShort": "No effect: the key cannot send.",179  "adm.keys.policy.invalidDomains": "Unrecognized domains: {list}",180  "adm.keys.field.domains": "Allowed recipient domains (optional)",181  "adm.keys.field.domainsHint": "Empty: no restriction. Otherwise any recipient outside these domains is refused. Separate with commas or new lines.",182183  "adm.keys.limits.intro": "Limits contain the damage if the key leaks or the program runs out of control.",184  "adm.keys.field.rate": "Requests per minute",185  "adm.keys.field.rateHint": "From 1 to {max}. Beyond that, the key gets a 429 error until the next minute.",186  "adm.keys.field.daily": "Sends per day",187  "adm.keys.field.dailyHint": "From 0 to {max}. At 0, the key cannot send anything.",188  "adm.keys.field.expiry": "Expiry",189  "adm.keys.field.expiryHint": "After that date, the key is rejected outright.",190  "adm.keys.field.expiryDate": "Expiry date (end of day)",191  "adm.keys.expiry.never": "No expiry",192  "adm.keys.expiry.keep": "Keep the current expiry ({date})",193  "adm.keys.expiry.30": "In 30 days",194  "adm.keys.expiry.90": "In 90 days",195  "adm.keys.expiry.365": "In one year",196  "adm.keys.expiry.date": "On a specific date",197198  "adm.keys.review.intro": "Check the permissions before creating the key.",199  "adm.keys.review.introEdit": "Check the permissions before saving them. The key's secret does not change.",200  "adm.keys.review.secretNote": "On creation, the secret is shown exactly once. Have somewhere ready to keep it (password manager, secrets vault).",201202  "adm.keys.err.name_required": "Give the key a name.",203  "adm.keys.err.name_too_long": "The name is longer than 80 characters.",204  "adm.keys.err.description_too_long": "The description is longer than 500 characters.",205  "adm.keys.err.scopes_required": "Choose a profile or select at least one scope.",206  "adm.keys.err.addresses_required": "Select at least one address: a key never has access to \"everything\" by default.",207  "adm.keys.err.too_many_addresses": "A key can have up to 500 addresses.",208  "adm.keys.err.all_requires_admin": "\"All addresses\" is only possible with the \"Administration\" scope.",209  "adm.keys.err.domains_invalid": "One of the domains is not valid (expected format: example.org).",210  "adm.keys.err.too_many_domains": "100 domains at most.",211  "adm.keys.err.rate_invalid": "Requests per minute must be a whole number from 1 to 6,000.",212  "adm.keys.err.daily_invalid": "Sends per day must be a whole number from 0 to 100,000.",213  "adm.keys.err.expiry_invalid": "Enter a valid expiry date.",214  "adm.keys.err.expiry_past": "The expiry date must be in the future.",215  "adm.keys.api.unknownAddress": "One of the chosen addresses no longer exists. Go back to the \"Addresses\" step and check the selection.",216  "adm.keys.api.invalidScope": "The server does not recognize one of the requested scopes.",217  "adm.keys.api.invalid": "The server rejected these settings: check each step.",218  "adm.keys.api.notFound": "This key no longer exists. Refresh the list.",219  "adm.keys.api.revoked": "This key is already revoked: it can no longer be rotated.",220  "adm.keys.api.reauth": "The passkey confirmation expired before the operation finished. Try again.",221222  // ---- secret, rotation, revocation223  "adm.keys.secret.createdTitle": "Secret for key {name}",224  "adm.keys.secret.rotatedTitle": "New secret for key {name}",225  "adm.keys.secret.body": "Copy this secret now: it will never be shown again. SP Mail only keeps a fingerprint of it. If it is lost, rotate the key.",226  "adm.keys.secret.rotatedNow": "The old secret no longer works.",227  "adm.keys.secret.rotatedGrace": "The old secret still works until the end of the grace period.",228  "adm.keys.rotate.title": "Rotate key {name}",229  "adm.keys.rotate.body": "Rotation creates a new secret with exactly the same permissions. The old secret stops working immediately, or after a grace period that gives you time to update your programs.",230  "adm.keys.rotate.grace": "The old secret stops working",231  "adm.keys.rotate.graceHint": "If the secret leaked, choose \"immediately\".",232  "adm.keys.rotate.grace.0": "Immediately",233  "adm.keys.rotate.grace.3600": "In 1 hour",234  "adm.keys.rotate.grace.86400": "In 24 hours",235  "adm.keys.rotate.grace.604800": "In 7 days",236  "adm.keys.rotate.webhooks": "The key's webhooks follow the rotation. The usage history of the old secret remains available.",237  "adm.keys.rotate.submit": "Rotate",238  "adm.keys.revoke.title": "Revoke key {name}?",239  "adm.keys.revoke.body": "The key is rejected starting with its next request, with no delay. This is final: a revoked key cannot be reactivated. Its scheduled sends and those awaiting approval will not be sent.",240  "adm.keys.revoke.pending": "This key is in a grace period after a rotation: revoking it now ends that period immediately.",241  "adm.keys.revoke.confirm": "Revoke key",242  "adm.keys.revoke.done": "Key {name} is revoked.",243244  // ---- usage245  "adm.keys.usage.intro": "Every request made with a key is logged for 90 days: time, method, route template, status, duration, IP address. Never the content, the secret or identifiers.",246  "adm.keys.usage.key": "Key",247  "adm.keys.usage.choose": "Choose a key…",248  "adm.keys.usage.pickOne": "Choose a key to see its usage.",249  "adm.keys.usage.unknownKey": "The key requested in the address does not exist.",250  "adm.keys.usage.noKeys": "No API keys: there is nothing to log yet.",251  "adm.keys.usage.toKeys": "Open \"API keys\"",252  "adm.keys.usage.period": "Period",253  "adm.keys.usage.days": "Last 24 hours|Last {n} days",254  "adm.keys.usage.summary": "Usage for key {name}",255  "adm.keys.usage.summaryNote": "Over the last 24 hours.|Over the last {n} days.",256  "adm.keys.usage.requests": "Requests",257  "adm.keys.usage.errors": "Errors (4xx, 5xx)",258  "adm.keys.usage.sends": "Sends",259  "adm.keys.usage.explorerCalls": "From the explorer",260  "adm.keys.usage.sendsByStatus": "Sends by status",261  "adm.keys.usage.noSends": "No sends in the period.",262  "adm.keys.usage.byDay": "By day (UTC)",263  "adm.keys.usage.byRoute": "By route",264  "adm.keys.usage.noCalls": "No calls in the period.",265  "adm.keys.usage.noMatch": "No calls match these filters.",266  "adm.keys.usage.recent": "Recent calls",267  "adm.keys.usage.recentNote": "The key's last 200 calls, most recent first.",268  "adm.keys.usage.count": "{n} call shown out of {total}|{n} calls shown out of {total}",269  "adm.keys.usage.showAll": "Show all {n} calls",270  "adm.keys.usage.ms": "{n} ms",271  "adm.keys.usage.explorerBadge": "Explorer",272  "adm.keys.usage.col.day": "Day",273  "adm.keys.usage.col.at": "Time",274  "adm.keys.usage.col.method": "Method",275  "adm.keys.usage.col.route": "Route",276  "adm.keys.usage.col.status": "Status",277  "adm.keys.usage.col.duration": "Duration",278  "adm.keys.usage.col.avg": "Average duration",279  "adm.keys.usage.col.ip": "IP address",280  "adm.keys.usage.filter.status": "Response status",281  "adm.keys.usage.filter.method": "Method",282  "adm.keys.usage.filter.explorer": "Origin",283  "adm.keys.usage.status.all": "All statuses",284  "adm.keys.usage.status.2xx": "Successes (2xx)",285  "adm.keys.usage.status.3xx": "Redirects (3xx)",286  "adm.keys.usage.status.4xx": "Client errors (4xx)",287  "adm.keys.usage.status.5xx": "Failures (5xx)",288  "adm.keys.usage.method.all": "All methods",289  "adm.keys.usage.explorer.all": "All origins",290  "adm.keys.usage.explorer.without": "Excluding the explorer",291  "adm.keys.usage.explorer.only": "Explorer only",292}293
Files main
Menu

Theme