/** * `nylorun tenant`: the Management API (`/v1/tenant/*`) of the installation's one Tenant, with a * management key (`target.ts` picks the installation). Issuing a management key is the one * exception: only the Runtime's machine does it, through `nylorun-operate` (`stack/keys.ts`). */ import type { ManagementClient } from "@nylorun/admin"; import { type StackDeps } from "../stack/commands.js"; import { type Connection } from "./target.js"; export declare const tenantUsage = "nylorun tenant \n\nThe Management API of the installation's one Tenant, with a management key: the local Tenant\n--tenant names (else the linked project's, else the default one), or the installation that\nNYLORUN_RUNTIME_URL and NYLORUN_MANAGEMENT_KEY name.\n\n reset [--sessions|--agents|--all] [--yes] [--tenant ]\n clear the Tenant's sessions, its Agents (their vaults,\n disks and sessions) or all its data (the Project link and\n keys stay)\n keys put [--management] [--tenant ]\n create the Tenant's application key (--management: a\n management key, on the Runtime's machine only), or rotate it\n (the old key stops working); prints the key once\n keys list [--tenant ] [--json]\n the Tenant's keys: id, role, when issued (never the keys)\n keys rm [--tenant ] delete key : it stops working at once\n signing-keys list [--tenant ]\n the Tenant's token signing keys\n signing-keys rotate [--force] [--tenant ]\n rotate; --force ends outstanding links and run tokens\n signing-keys revoke [--tenant ]\n revoke a previous or standby key\n models catalog [--tenant ] [--json]\n every provider and model the Runtime knows\n models providers [--tenant ] [--json]\n the providers with a credential, and the one in use\n models get [--tenant ] [--json]\n the Tenant's model\n models set [--tenant ] sign in to a model provider and set the Tenant's model\n models set --provider --model [--base-url ] [--tenant ]\n the same with an API key piped in on stdin (CI)\n models set --provider google-vertex --model --host-identity --project --location [--tenant ]\n the same with the Host's Google identity, no key: on a Host\n whose operator sets NYLORUN_MODEL_HOST_IDENTITY\n models select [--model ] [--tenant ]\n use a provider that has a credential (default: its model)\n usage [--scope tenant|manifest|turn] [--id ] [--period day|month|total] [--tenant ]\n what the model calls used and cost (JSON); --scope\n manifest: the Agents made from agent manifest \n calls [--after ] [--limit ] [--tenant ]\n every recorded model call, one JSON line each, until\n caught up; prints the cursor to resume from on stderr\n budgets [get | put ] [--tenant ]\n the model spend caps (scope tenant, manifest with id an\n agent manifest's name, or turn); put replaces them all\n tool-policy [get | put ] [--tenant ]\n the Tool Gate's rules; put replaces them all\n settings sandbox [get | put ] [--tenant ]\n the Agents' environments: limits, stop grace, engine\n images, placement; put takes get's output back\n settings artifacts [get | put ] [--tenant ]\n the artifact store's limits\n settings skills [get | put ] [--tenant ]\n the most bytes one skill may hold\n settings limits [get | put ] [--tenant ]\n the Runtime limits: sizes, counts and deadlines (record\n entries, request bodies, Agents, model calls, tools)\n coverage --agent [--tenant ] [--json]\n which secret of Agent 's vault each MCP server and\n HTTP tool of its manifest would get\n mcp inspect [--server ] [--agent ] [--sse] [--tenant ] [--json]\n list a remote MCP server's tools, with Agent 's\n credential for (none without it): model names, schema\n sizes, renames, or that it needs a person's sign-in (the\n Runtime calls no tool)\n\nA put reads a JSON body from a file, or from stdin for -, and replaces the whole document; what\nbudgets, tool-policy, settings artifacts, settings skills and settings limits get print, put takes back. An API key is read from\nstdin, never from the arguments."; /** The Management API client of the installation `--tenant` (or the environment) names. */ export declare function tenantClient(deps: StackDeps, tenant: string | undefined): Promise<{ connection: Connection; admin: ManagementClient; }>; /** * `nylorun status` for an installation the environment names (`NYLORUN_RUNTIME_URL` and * `NYLORUN_MANAGEMENT_KEY`): the Tenant, its checks and counts. A local Tenant's status is the * stack's (`stack/commands.ts`). */ export declare function remoteStatus(deps: StackDeps, args: readonly string[]): Promise; /** `nylorun tenant ...` */ export declare function tenantCommand(deps: StackDeps, args: readonly string[]): Promise;