diff --git a/README.md b/README.md index c5cffd07..64196e6d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ polymorfa version ## Requirements - Node.js 22 or newer -- A Polymorfa organization API key or exact-project token for developer requests +- A Polymorfa team API key or exact-project token for developer requests - A server API key or short-lived client token for Messaging requests ## Development installation @@ -150,7 +150,7 @@ The registry comes from the real command files. Commands needing the installed C ## Authentication profiles Until the backend exposes a revocable CLI device-authorization flow, login -accepts an organization API key or exact-project token through standard input: +accepts a team API key or exact-project token through standard input: ```shell printf '%s' "$POLYMORFA_API_KEY" | \ @@ -164,7 +164,7 @@ printf '%s' "$POLYMORFA_PROJECT_TOKEN" | \ polymorfa auth login --with-project-token --project project_123 --profile project-work ``` -Profile metadata records its explicit project or organization owner. Credentials +Profile metadata records its explicit project or team owner. Credentials are stored separately in macOS Keychain, Windows Credential Manager, or Linux Secret Service. A keyring failure stops the command; the CLI never silently falls back to plaintext. `auth status` reports local secure-store availability @@ -204,7 +204,7 @@ polymorfa project current # show the project and where it comes from Commands resolve the project in this order: `--project`, the nearest `polymorfa.json` in the current directory or a parent, then the -profile's stored project. Organization-owned commands ignore linked and profile +profile's stored project. Team-owned commands ignore linked and profile projects. `--verbose` prints the link file in use. `project use` and `link` accept a UUID or a unique slug and store the canonical @@ -267,7 +267,7 @@ your shell to its startup file if you want completion in later shell sessions. ## Inspect connections -Use an organization API key with `connections:read` to inspect stored connection +Use a team API key with `connections:read` to inspect stored connection metadata: ```shell @@ -286,12 +286,12 @@ Each Connection has `type: "whatsapp"` and one `method`: `linked_device`, billing identity. Meta phone-number IDs remain `phoneNumberId`. Key metadata listing and revocation are available through `key list` and -`key revoke`; the CLI does not mint or rotate organization keys. +`key revoke`; the CLI does not mint or rotate team keys. ## QuickLinks A QuickLink is a persistent hosted link that connects one WhatsApp number to a -new connection in a project. Create one from a JSON request with an organization +new connection in a project. Create one from a JSON request with a team API key that has `quicklink:manage`: ```shell @@ -304,7 +304,7 @@ The request accepts `customerId`, `externalId`, and `configuration`. See [Guided connection creation and configuration](#guided-connection-creation-and-configuration) for the configuration fields. -Inspect or cancel a link with an organization API key or an exact-project +Inspect or cancel a link with a team API key or an exact-project token that has `quicklink:manage`: ```shell @@ -328,7 +328,7 @@ or history operation, so the CLI does not synthesize them. ## Customers -Manage Customers through the Platform API with an organization server key and +Manage Customers through the Platform API with a team server key and an explicit project ID: ```shell @@ -510,7 +510,7 @@ header. ### Flow drafts and provider lifecycle -Flow commands require a project scope and an organization API key or project +Flow commands require a project scope and a team API key or project token. Reads use `connections:read`; mutations use `connections:manage`. ```shell @@ -593,7 +593,7 @@ linked to another project; the API checks that the credential can access it. ### Official API observations and templates -The `cloud` commands require an organization API key or a project token with the +The `cloud` commands require a team API key or a project token with the listed scope. Client tokens cannot use these commands. Server-side feature access still applies: an installed command does not enroll a Connection or enable a beta feature. @@ -1260,7 +1260,7 @@ sox greeting.wav -t raw -r 16000 -e signed -b 16 -c 1 - | \ Polymorfa checks every call against the team's call policy before the destination rings. `calls policy` and `calls opt-outs` read and change that -policy and require an organization API key (`POLYMORFA_API_KEY` or a profile). +policy and require a team API key (`POLYMORFA_API_KEY` or a profile). A project token used as the API key reaches the API, which refuses it with `403` (exit code 3). A client token is not a Platform credential, so the CLI refuses the command before sending a request (exit code 2). @@ -1339,9 +1339,9 @@ polymorfa calls check +14155550123 --connection support ### Call statistics and export `calls stats` summarizes calls and `calls export` writes call detail records. -Both accept an organization API key or an exact-project token with the +Both accept a team API key or an exact-project token with the `connections:read` scope. Pass `--project` to read one project. Without it, an -organization API key reads every project in the organization. A project token +team API key reads every project in the team. A project token reads only its own project and requires `--project`. ```shell @@ -1430,7 +1430,7 @@ or times out, the command keeps the password on screen and exits successfully. Voice Automation is a beta (`calls.voice-automation`) for enrolled teams only. For other teams, every change except delete fails with `voice_not_enabled`. Reads, previews and deletes keep working after a team leaves the beta. The -commands require an organization server API key with `voice:read` (lists, +commands require a team server API key with `voice:read` (lists, views, previews) or `voice:manage` (changes). ### Audio library @@ -1707,7 +1707,7 @@ request metadata. ## Platform access and security -Organization server API keys can inspect the credential, membership, audit, +Team server API keys can inspect the credential, membership, audit, ban, incident, saved QuickLink settings, and project-token metadata made available by the Platform API: @@ -1760,7 +1760,7 @@ bypass. returns `null` in JSON when no settings row has been saved. Update accepts one bounded JSON object from `--input`; the target project is selected separately with `--project` and cannot be hidden in that input. Omitting the -project targets organization defaults. Widget logo fields are existing storage +project targets team defaults. Widget logo fields are existing storage identifiers, not file, URL, base64, upload, or download operations. Widget access requires the `quicklink:manage` scope. @@ -1790,7 +1790,7 @@ enqueue another request, while repeated deletion counts only rows still present. ## Messaging campaigns -Campaign commands use organization Messaging API keys and require an explicit +Campaign commands use team Messaging API keys and require an explicit project slug because the source routes are slug-scoped: ```shell @@ -2033,7 +2033,7 @@ or stop a campaign's operation, use the `operation` commands in ## Campaign audiences -Audience commands are organization-scoped and use the Platform API: +Audience commands are team-scoped and use the Platform API: ```shell polymorfa audience create --name "August launch" \ @@ -2065,7 +2065,7 @@ recipient listing. ## Campaign opt-outs -Opt-out suppression is organization-wide. Keyword capture has its own settings: +Opt-out suppression is team-wide. Keyword capture has its own settings: ```shell polymorfa optout settings view @@ -2088,8 +2088,8 @@ recipient with `lastError` `opted_out`. ## Developer events and webhooks Developer resources always have an explicit owner. Project-owned commands need -`--owner project --project `. Organization-owned commands use -`--owner organization` and reject a project override. A stored profile can +`--owner project --project `. Team-owned commands use +`--owner team` and reject a project override. A stored profile can provide the owner, but the CLI never guesses it from a credential or retries a request against a different owner. @@ -2166,18 +2166,18 @@ operation ID in the JSON `operation.id` field. Follow it with Campaign sends, production enrollments, and other durable work are tracked as operations. The commands need `operations:read`; `operation cancel` needs -`operations:cancel`. With `--owner organization`, commands read team-owned +`operations:cancel`. With `--owner team`, commands read team-owned operations and every project's operations. With `--owner project`, they read one project. ```shell -polymorfa operation list --owner organization --status running -polymorfa operation list --owner organization \ +polymorfa operation list --owner team --status running +polymorfa operation list --owner team \ --resource-type campaign --resource-id campaign_123 -polymorfa operation view operation_123 --owner organization -polymorfa operation wait operation_123 --owner organization --timeout 600 -polymorfa operation watch operation_123 --owner organization -polymorfa operation cancel operation_123 --owner organization --yes +polymorfa operation view operation_123 --owner team +polymorfa operation wait operation_123 --owner team --timeout 600 +polymorfa operation watch operation_123 --owner team +polymorfa operation cancel operation_123 --owner team --yes ``` `operation wait` long-polls the API (up to 30 seconds per request) until the @@ -2351,7 +2351,7 @@ status, and safe counters, never primary credentials, listener credentials, forwarding secrets, or unrestricted payloads. `polymorfa_connection_list` is a read-only discovery tool for one explicit project -UUID. It uses the selected CLI organization API key with `connections:read` and +UUID. It uses the selected CLI team API key with `connections:read` and returns connection ID, name, stored status, and test-mode flag. It omits phone connections, credentials, and message data. The tool does not probe the live device. Project tokens and Messaging client tokens cannot use this tool. A failed read @@ -2589,7 +2589,7 @@ the CLI never creates or confirms a replacement purchase automatically. ### Connection tier changes -Tier changes use an organization API key. Quote first, review the credit charge +Tier changes use a team API key. Quote first, review the credit charge and effective time, then confirm that exact quote: ```shell @@ -2678,7 +2678,7 @@ polymorfa hybrid-link resume --connection CONNECTION --expected-revision REVISIO For project and connection routing scopes, `--project`, the nearest linked project, and the selected profile determine the project in that order. A project-token profile fails when its project differs from the linked directory. Team routing -scope uses an organization API key and ignores directory project links. `quicklink +scope uses a team API key and ignores directory project links. `quicklink availability` shows existing connection status and any QuickLink that can be resumed. @@ -2699,7 +2699,7 @@ transports within the restrictions inherited from the team and project. ### Functions -Functions are project-owned. Select `--project` or use the linked project/profile context. The commands accept an organization API key or a project token; browser client tokens are refused. Access also depends on the team's enabled Functions release and the configured execution region. +Functions are project-owned. Select `--project` or use the linked project/profile context. The commands accept a team API key or a project token; browser client tokens are refused. Access also depends on the team's enabled Functions release and the configured execution region. ```bash polymorfa function list --project PROJECT_UUID @@ -2784,7 +2784,7 @@ does not retrieve media or webhook deliveries. ### Spending limits and funding priority -With an organization key carrying `billing:read`, inspect current controls: +With a team key carrying `billing:read`, inspect current controls: ```bash polymorfa billing limits list --project --json diff --git a/contracts/cli-reference.json b/contracts/cli-reference.json index b4795c27..aa0d38e1 100644 --- a/contracts/cli-reference.json +++ b/contracts/cli-reference.json @@ -121,8 +121,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -299,8 +299,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -552,8 +552,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -814,8 +814,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1011,8 +1011,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1192,8 +1192,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1326,8 +1326,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1397,8 +1397,8 @@ }, { "id": "audit-log list", - "summary": "List organization audit log entries.", - "description": "List organization audit log entries.", + "summary": "List team audit log entries.", + "description": "List team audit log entries.", "usage": ["polymorfa audit-log list [flags]"], "aliases": [], "hidden": false, @@ -1471,8 +1471,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1604,8 +1604,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1675,8 +1675,8 @@ }, { "id": "auth login", - "summary": "Store an organization key or project token in the operating-system keyring.", - "description": "Store an organization key or project token in the operating-system keyring.", + "summary": "Store a team key or project token in the operating-system keyring.", + "description": "Store a team key or project token in the operating-system keyring.", "usage": ["polymorfa auth login [flags]"], "aliases": [], "hidden": false, @@ -1725,8 +1725,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1870,8 +1870,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -1991,8 +1991,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -2119,8 +2119,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -2276,8 +2276,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -2423,8 +2423,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -2568,8 +2568,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -2713,8 +2713,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -2882,8 +2882,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -3063,8 +3063,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -3220,8 +3220,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -3341,8 +3341,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -3481,8 +3481,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -3638,8 +3638,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -3766,8 +3766,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -3923,8 +3923,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -4092,8 +4092,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -4232,8 +4232,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -4377,8 +4377,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -4498,8 +4498,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -4650,8 +4650,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -4778,8 +4778,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -4899,8 +4899,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -5051,8 +5051,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -5203,8 +5203,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -5348,8 +5348,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -5469,8 +5469,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -5597,8 +5597,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -5773,8 +5773,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -5881,7 +5881,7 @@ { "id": "billing limits list", "summary": "Read monthly project and Connection spending limits.", - "description": "Requires an organization key with billing:read. Use --project to include its Connection limits. Months reset on the first day at 00:00 UTC.", + "description": "Requires a team key with billing:read. Use --project to include its Connection limits. Months reset on the first day at 00:00 UTC.", "usage": ["polymorfa billing limits list [flags]"], "aliases": [], "hidden": false, @@ -5930,8 +5930,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -6002,7 +6002,7 @@ { "id": "billing limits set", "summary": "Set or remove a monthly spending limit.", - "description": "Requires Pay-As-You-Go and an organization key with billing:manage. Zero blocks new charges; already-paid service continues. A stale observed revision fails without overwriting newer settings.", + "description": "Requires Pay-As-You-Go and a team key with billing:manage. Zero blocks new charges; already-paid service continues. A stale observed revision fails without overwriting newer settings.", "usage": ["polymorfa billing limits set ID [flags]"], "aliases": [], "hidden": false, @@ -6082,8 +6082,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -6178,7 +6178,7 @@ { "id": "billing priority list", "summary": "Read project, customer and connection funding priorities.", - "description": "Requires an organization key with billing:read. Project priority takes precedence. Connections inherit customer priority; a higher Connection priority overrides it. Use --project for its funding controls. Includes the revision used for changes.", + "description": "Requires a team key with billing:read. Project priority takes precedence. Connections inherit customer priority; a higher Connection priority overrides it. Use --project for its funding controls. Includes the revision used for changes.", "usage": ["polymorfa billing priority list [flags]"], "aliases": [], "hidden": false, @@ -6227,8 +6227,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -6299,7 +6299,7 @@ { "id": "billing priority reorder", "summary": "Save a complete funding order atomically.", - "description": "Requires Pay-As-You-Go and an organization key with billing:manage. Pass every active project, customer or real connection for its scope. Resource scope mixes all customers and connections in --project, highest first. Incomplete or stale orders fail without partial changes.", + "description": "Requires Pay-As-You-Go and a team key with billing:manage. Pass every active project, customer or real connection for its scope. Resource scope mixes all customers and connections in --project, highest first. Incomplete or stale orders fail without partial changes.", "usage": ["polymorfa billing priority reorder [flags]"], "aliases": [], "hidden": false, @@ -6384,8 +6384,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -6468,7 +6468,7 @@ { "id": "billing priority set", "summary": "Set a project or Connection funding priority.", - "description": "Requires Pay-As-You-Go and an organization key with billing:manage. Changes future renewal protection and recovery; paid windows keep their expiry.", + "description": "Requires Pay-As-You-Go and a team key with billing:manage. Changes future renewal protection and recovery; paid windows keep their expiry.", "usage": ["polymorfa billing priority set ID [flags]"], "aliases": [], "hidden": false, @@ -6536,8 +6536,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -6693,8 +6693,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -6850,8 +6850,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -6995,8 +6995,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -7176,8 +7176,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -7340,8 +7340,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -7509,8 +7509,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -7673,8 +7673,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -7878,8 +7878,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -8047,8 +8047,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -8223,8 +8223,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -8423,8 +8423,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -8592,8 +8592,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -8725,8 +8725,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -8858,8 +8858,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -9010,8 +9010,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -9174,8 +9174,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -9343,8 +9343,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -9495,8 +9495,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -9671,8 +9671,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -9823,8 +9823,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -9987,8 +9987,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -10139,8 +10139,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -10308,8 +10308,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -10477,8 +10477,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -10610,8 +10610,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -10774,8 +10774,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -10914,8 +10914,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -11084,8 +11084,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -11221,8 +11221,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -11295,7 +11295,7 @@ { "id": "calls export", "summary": "Export call detail records.", - "description": "Export call detail records as CSV or newline-delimited JSON, newest first.\n\nEach record has callId, projectId, connectionId, direction, upstream, outcome, state, hasVideo, peerRef, startedAt, connectedAt, endedAt, durationSeconds, and endReason. peerRef is a team-specific pseudonym of the other party, never a phone number.\n\nThe command requests every page until no records remain and writes one CSV header. Records go to standard output, or to --output. Progress and the next cursor go to standard error, as JSON lines with --json. --max-pages stops early; resume with --cursor and the same filters. When a page fails, the command reports the cursor that resumes from that page and exits non-zero.\n\nPass --project to read one project. Without it, an organization API key reads every project in the organization. A project token reads only its own project and requires --project. Credentials need the connections:read scope.", + "description": "Export call detail records as CSV or newline-delimited JSON, newest first.\n\nEach record has callId, projectId, connectionId, direction, upstream, outcome, state, hasVideo, peerRef, startedAt, connectedAt, endedAt, durationSeconds, and endReason. peerRef is a team-specific pseudonym of the other party, never a phone number.\n\nThe command requests every page until no records remain and writes one CSV header. Records go to standard output, or to --output. Progress and the next cursor go to standard error, as JSON lines with --json. --max-pages stops early; resume with --cursor and the same filters. When a page fails, the command reports the cursor that resumes from that page and exits non-zero.\n\nPass --project to read one project. Without it, a team API key reads every project in the team. A project token reads only its own project and requires --project. Credentials need the connections:read scope.", "usage": ["polymorfa calls export [flags]"], "aliases": [], "hidden": false, @@ -11458,8 +11458,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -11651,8 +11651,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -11814,8 +11814,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -11959,8 +11959,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -12109,8 +12109,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -12263,8 +12263,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -12471,8 +12471,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -12716,8 +12716,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -12837,7 +12837,7 @@ { "id": "calls opt-outs add", "summary": "Add a person to the do-not-call list.", - "description": "Add a person to the team’s do-not-call list by phone number or BSUID. From then on, calls to them are refused with call_recipient_opted_out, including calls your PBX places through a SIP trunk. Adding a person already on the list changes nothing and returns their entry (metadata.status 200 instead of 201). The list holds up to 100,000 entries; a full list fails with call_opt_out_limit (exit code 4). Requires an organization API key.", + "description": "Add a person to the team’s do-not-call list by phone number or BSUID. From then on, calls to them are refused with call_recipient_opted_out, including calls your PBX places through a SIP trunk. Adding a person already on the list changes nothing and returns their entry (metadata.status 200 instead of 201). The list holds up to 100,000 entries; a full list fails with call_opt_out_limit (exit code 4). Requires a team API key.", "usage": ["polymorfa calls opt-outs add [flags]"], "aliases": [], "hidden": false, @@ -12910,8 +12910,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -13003,7 +13003,7 @@ { "id": "calls opt-outs import", "summary": "Import entries into the do-not-call list.", - "description": "Add many people to the team’s do-not-call list from a file of up to 10 MiB. CSV needs a header row naming phoneNumber, bsuid and optionally note; each row names a phone number (E.164) or a BSUID. JSON is an array of {\"phoneNumber\" | \"bsuid\", \"note\"} objects, or an object with that array as \"entries\". The CLI sends 5,000 entries per request and reports the entries added, already listed and rejected, with each rejected entry's zero-based position (and CSV line). Running an import again is safe: entries already on the list are counted as already listed. Exit codes: 0 when every entry is listed; 12 when some entries were rejected, or when a later request failed after earlier batches were stored (run the import again); the request's own exit code when nothing was stored. Requires an organization API key.", + "description": "Add many people to the team’s do-not-call list from a file of up to 10 MiB. CSV needs a header row naming phoneNumber, bsuid and optionally note; each row names a phone number (E.164) or a BSUID. JSON is an array of {\"phoneNumber\" | \"bsuid\", \"note\"} objects, or an object with that array as \"entries\". The CLI sends 5,000 entries per request and reports the entries added, already listed and rejected, with each rejected entry's zero-based position (and CSV line). Running an import again is safe: entries already on the list are counted as already listed. Exit codes: 0 when every entry is listed; 12 when some entries were rejected, or when a later request failed after earlier batches were stored (run the import again); the request's own exit code when nothing was stored. Requires a team API key.", "usage": ["polymorfa calls opt-outs import FILE [flags]"], "aliases": [], "hidden": false, @@ -13071,8 +13071,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -13156,7 +13156,7 @@ { "id": "calls opt-outs list", "summary": "List the do-not-call list.", - "description": "List the team’s do-not-call list, newest first. One page is returned unless --paginate follows page.nextCursor up to --max-items entries; human output ends with the --cursor for the next page. --phone-number or --bsuid returns only that person’s entry, if any. Requires an organization API key.", + "description": "List the team’s do-not-call list, newest first. One page is returned unless --paginate follows page.nextCursor up to --max-items entries; human output ends with the --cursor for the next page. --phone-number or --bsuid returns only that person’s entry, if any. Requires a team API key.", "usage": ["polymorfa calls opt-outs list [flags]"], "aliases": [], "hidden": false, @@ -13253,8 +13253,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -13359,7 +13359,7 @@ { "id": "calls opt-outs remove", "summary": "Remove a person from the do-not-call list.", - "description": "Remove one entry from the team’s do-not-call list. The person can be called again at once. Requires --yes and an organization API key; an unknown ID fails with exit code 4.", + "description": "Remove one entry from the team’s do-not-call list. The person can be called again at once. Requires --yes and a team API key; an unknown ID fails with exit code 4.", "usage": ["polymorfa calls opt-outs remove OPTOUTID [flags]"], "aliases": [], "hidden": false, @@ -13415,8 +13415,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -13572,8 +13572,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -13745,8 +13745,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -13902,8 +13902,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -14092,8 +14092,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -14209,7 +14209,7 @@ { "id": "calls policy get", "summary": "Read the team call policy.", - "description": "Read the team call policy: the blocked country codes, the number of entries on the do-not-call list, and the revision to pass to `calls policy set --expected-revision`. The revision is 0 before the codes are first saved. Requires an organization API key: a project token used as the API key is refused by the API (exit code 3), and a client token is not accepted for this command (exit code 2).", + "description": "Read the team call policy: the blocked country codes, the number of entries on the do-not-call list, and the revision to pass to `calls policy set --expected-revision`. The revision is 0 before the codes are first saved. Requires a team API key: a project token used as the API key is refused by the API (exit code 3), and a client token is not accepted for this command (exit code 2).", "usage": ["polymorfa calls policy get [flags]"], "aliases": [], "hidden": false, @@ -14258,8 +14258,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -14332,7 +14332,7 @@ { "id": "calls policy set", "summary": "Replace the blocked country codes.", - "description": "Replace the team’s blocked country codes. Calls to phone numbers that start with a blocked code are refused with call_destination_blocked, and while any code is blocked, calls to a person whose phone number is not known are refused too. The list you pass replaces the stored list; --clear allows every country. Codes are country calling codes or longer dialing prefixes of 1 to 4 digits (44, 1876), at most 300. New calls use the new list at once; calls in progress continue. --expected-revision applies the change only if the policy still has that revision (see `calls policy get`); otherwise the command fails with state_conflict (exit code 4) and changes nothing. Requires an organization API key.", + "description": "Replace the team’s blocked country codes. Calls to phone numbers that start with a blocked code are refused with call_destination_blocked, and while any code is blocked, calls to a person whose phone number is not known are refused too. The list you pass replaces the stored list; --clear allows every country. Codes are country calling codes or longer dialing prefixes of 1 to 4 digits (44, 1876), at most 300. New calls use the new list at once; calls in progress continue. --expected-revision applies the change only if the policy still has that revision (see `calls policy get`); otherwise the command fails with state_conflict (exit code 4) and changes nothing. Requires a team API key.", "usage": ["polymorfa calls policy set [flags]"], "aliases": [], "hidden": false, @@ -14417,8 +14417,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -14594,8 +14594,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -14739,8 +14739,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -14878,8 +14878,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -15025,8 +15025,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -15196,8 +15196,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -15334,8 +15334,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -15544,8 +15544,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -15681,7 +15681,7 @@ { "id": "calls stats", "summary": "Summarize call volume, outcomes, and duration.", - "description": "Summarize calls: counts by outcome, answer rate, and connected time, grouped by day, hour, connection, or outcome.\n\nThe range defaults to the last 7 days. --group-by day covers at most 366 days and --group-by hour at most 31. Day and hour buckets, and the heatmap, use --timezone (UTC by default).\n\nPass --project to read one project. Without it, an organization API key reads every project in the organization. A project token reads only its own project and requires --project. Credentials need the connections:read scope.", + "description": "Summarize calls: counts by outcome, answer rate, and connected time, grouped by day, hour, connection, or outcome.\n\nThe range defaults to the last 7 days. --group-by day covers at most 366 days and --group-by hour at most 31. Day and hour buckets, and the heatmap, use --timezone (UTC by default).\n\nPass --project to read one project. Without it, a team API key reads every project in the team. A project token reads only its own project and requires --project. Credentials need the connections:read scope.", "usage": ["polymorfa calls stats [flags]"], "aliases": [], "hidden": false, @@ -15796,8 +15796,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -15987,8 +15987,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -16134,8 +16134,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -16287,8 +16287,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -16487,8 +16487,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -16644,8 +16644,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -16878,8 +16878,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -17066,8 +17066,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -17242,8 +17242,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -17399,8 +17399,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -17551,8 +17551,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -17715,8 +17715,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -17855,8 +17855,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -17983,8 +17983,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -18128,8 +18128,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -18268,8 +18268,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -18396,8 +18396,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -18541,8 +18541,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -18705,8 +18705,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -18869,8 +18869,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -19066,8 +19066,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -19267,8 +19267,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -19419,8 +19419,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -19571,8 +19571,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -19704,8 +19704,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -19832,8 +19832,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -19972,8 +19972,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -20117,8 +20117,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -20257,8 +20257,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -20378,8 +20378,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -20499,8 +20499,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -20656,8 +20656,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -20808,8 +20808,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -21044,8 +21044,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -21220,8 +21220,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -21401,8 +21401,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -21553,8 +21553,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -21717,8 +21717,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -21850,8 +21850,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -22002,8 +22002,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -22166,8 +22166,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -22326,8 +22326,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -22484,8 +22484,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -22660,8 +22660,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -22824,8 +22824,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -22976,8 +22976,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -23128,8 +23128,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -23268,8 +23268,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -23461,8 +23461,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -23649,8 +23649,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -23867,8 +23867,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -24018,8 +24018,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -24158,8 +24158,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -24315,8 +24315,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -24496,8 +24496,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -24641,8 +24641,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -24774,8 +24774,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -24943,8 +24943,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -25107,8 +25107,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -25259,8 +25259,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -25411,8 +25411,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -25575,8 +25575,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -25751,8 +25751,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -25903,8 +25903,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -26084,8 +26084,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -26260,8 +26260,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -26424,8 +26424,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -26600,8 +26600,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -26745,8 +26745,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -26890,8 +26890,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -27054,8 +27054,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -27211,8 +27211,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -27363,8 +27363,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -27539,8 +27539,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -27691,8 +27691,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -27824,8 +27824,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -27918,8 +27918,8 @@ }, { "id": "connection-ban list", - "summary": "List recorded organization connection bans.", - "description": "List recorded organization connection bans.", + "summary": "List recorded team connection bans.", + "description": "List recorded team connection bans.", "usage": ["polymorfa connection-ban list [flags]"], "aliases": [], "hidden": false, @@ -27980,8 +27980,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -28108,8 +28108,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -28245,8 +28245,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -28385,8 +28385,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -28525,8 +28525,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -28658,8 +28658,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -28734,8 +28734,8 @@ }, { "id": "connection list", - "summary": "List connection metadata for the team or one project. Requires an organization API key with connections:read.", - "description": "List connection metadata for the team or one project. Requires an organization API key with connections:read.", + "summary": "List connection metadata for the team or one project. Requires a team API key with connections:read.", + "description": "List connection metadata for the team or one project. Requires a team API key with connections:read.", "usage": ["polymorfa connection list [flags]"], "aliases": [], "hidden": false, @@ -28784,8 +28784,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -28861,8 +28861,8 @@ }, { "id": "connection status", - "summary": "Read the stored connection status and reason. Requires an organization API key with connections:read.", - "description": "Read the stored connection status and reason. Requires an organization API key with connections:read.", + "summary": "Read the stored connection status and reason. Requires a team API key with connections:read.", + "description": "Read the stored connection status and reason. Requires a team API key with connections:read.", "usage": ["polymorfa connection status CONNECTION [flags]"], "aliases": [], "hidden": false, @@ -28918,8 +28918,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -29063,8 +29063,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -29203,8 +29203,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -29396,8 +29396,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -29583,8 +29583,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -29659,8 +29659,8 @@ }, { "id": "connection view", - "summary": "Read one connection by its ID. Requires an organization API key with connections:read.", - "description": "Read one connection by its ID. Requires an organization API key with connections:read.", + "summary": "Read one connection by its ID. Requires a team API key with connections:read.", + "description": "Read one connection by its ID. Requires a team API key with connections:read.", "usage": ["polymorfa connection view CONNECTION [flags]"], "aliases": [], "hidden": false, @@ -29716,8 +29716,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -29873,8 +29873,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30006,8 +30006,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30146,8 +30146,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30279,8 +30279,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30431,8 +30431,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30571,8 +30571,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30704,8 +30704,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30844,8 +30844,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -30996,8 +30996,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -31136,8 +31136,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -31276,8 +31276,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -31416,8 +31416,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -31576,8 +31576,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -31745,8 +31745,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -31878,8 +31878,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -32018,8 +32018,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -32199,8 +32199,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -32399,8 +32399,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -32527,8 +32527,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -32661,8 +32661,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -32813,8 +32813,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -32934,8 +32934,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -33110,8 +33110,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -33238,8 +33238,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -33432,8 +33432,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -33592,8 +33592,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -33780,8 +33780,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -33961,8 +33961,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -34122,8 +34122,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -34255,8 +34255,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -34383,8 +34383,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -34535,8 +34535,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -34699,8 +34699,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -34863,8 +34863,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -35015,8 +35015,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -35167,8 +35167,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -35367,8 +35367,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -35519,8 +35519,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -35652,8 +35652,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -35785,8 +35785,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -35942,8 +35942,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -36099,8 +36099,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -36232,8 +36232,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -36372,8 +36372,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -36524,8 +36524,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -36664,8 +36664,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -36816,8 +36816,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -36977,8 +36977,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -37122,8 +37122,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -37262,8 +37262,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -37414,8 +37414,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -37566,8 +37566,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -37714,8 +37714,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -37850,8 +37850,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -38002,8 +38002,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -38154,8 +38154,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -38290,8 +38290,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -38435,8 +38435,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -38575,8 +38575,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -38727,8 +38727,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -38861,8 +38861,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -39013,8 +39013,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -39141,8 +39141,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -39281,8 +39281,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -39447,8 +39447,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -39616,8 +39616,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -39773,8 +39773,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -39906,8 +39906,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -40058,8 +40058,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -40227,8 +40227,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -40384,8 +40384,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -40536,8 +40536,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -40705,8 +40705,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -40922,8 +40922,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -41079,8 +41079,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -41236,8 +41236,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -41381,8 +41381,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -41526,8 +41526,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -41659,8 +41659,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -41804,8 +41804,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -41923,8 +41923,8 @@ }, { "id": "key list", - "summary": "List organization API-key metadata (never raw key material).", - "description": "List organization API-key metadata (never raw key material).", + "summary": "List team API-key metadata (never raw key material).", + "description": "List team API-key metadata (never raw key material).", "usage": ["polymorfa key list [flags]"], "aliases": [], "hidden": false, @@ -41973,8 +41973,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -42044,8 +42044,8 @@ }, { "id": "key revoke", - "summary": "Revoke an organization API key.", - "description": "Revoke an organization API key.", + "summary": "Revoke a team API key.", + "description": "Revoke a team API key.", "usage": ["polymorfa key revoke KEY [flags]"], "aliases": [], "hidden": false, @@ -42113,8 +42113,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -42277,8 +42277,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -42453,8 +42453,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -42622,8 +42622,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -42774,8 +42774,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -42931,8 +42931,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -43107,8 +43107,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -43240,8 +43240,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -43488,8 +43488,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -43513,7 +43513,7 @@ "multiple": false, "default": null, "options": [], - "description": "Use a project UUID; organization API keys may use a unique slug. Defaults to the linked or profile project.", + "description": "Use a project UUID; team API keys may use a unique slug. Defaults to the linked or profile project.", "env": null, "helpGroup": null }, @@ -43669,8 +43669,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -43931,8 +43931,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -44137,8 +44137,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -44265,8 +44265,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -44386,8 +44386,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -44514,8 +44514,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -44635,8 +44635,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -44763,8 +44763,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -44939,8 +44939,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -45104,8 +45104,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -45232,8 +45232,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -45303,8 +45303,8 @@ }, { "id": "member list", - "summary": "List organization members.", - "description": "List organization members.", + "summary": "List team members.", + "description": "List team members.", "usage": ["polymorfa member list [flags]"], "aliases": [], "hidden": false, @@ -45353,8 +45353,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -45517,8 +45517,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -45722,8 +45722,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -45903,8 +45903,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -46043,8 +46043,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -46219,8 +46219,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -46436,8 +46436,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -46710,8 +46710,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -46960,8 +46960,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -47258,8 +47258,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -47532,8 +47532,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -47794,8 +47794,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -48064,8 +48064,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -48262,8 +48262,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -48483,8 +48483,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -48729,8 +48729,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -48987,8 +48987,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -49213,8 +49213,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -49466,8 +49466,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -49687,8 +49687,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -49868,8 +49868,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -50020,8 +50020,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -50201,8 +50201,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -50418,8 +50418,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -50546,8 +50546,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -50679,8 +50679,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -50750,8 +50750,8 @@ }, { "id": "optout settings update", - "summary": "Replace the organization’s STOP and START keyword capture settings. Every field is replaced, so pass the complete keyword set.", - "description": "Replace the organization’s STOP and START keyword capture settings. Every field is replaced, so pass the complete keyword set.", + "summary": "Replace the team’s STOP and START keyword capture settings. Every field is replaced, so pass the complete keyword set.", + "description": "Replace the team’s STOP and START keyword capture settings. Every field is replaced, so pass the complete keyword set.", "usage": ["polymorfa optout settings update [flags]"], "aliases": [], "hidden": false, @@ -50848,8 +50848,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -50928,8 +50928,8 @@ }, { "id": "optout settings view", - "summary": "Show the organization’s STOP and START keyword capture settings.", - "description": "Show the organization’s STOP and START keyword capture settings.", + "summary": "Show the team’s STOP and START keyword capture settings.", + "description": "Show the team’s STOP and START keyword capture settings.", "usage": ["polymorfa optout settings view [flags]"], "aliases": [], "hidden": false, @@ -50978,8 +50978,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -51130,8 +51130,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -51270,8 +51270,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -51415,8 +51415,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -51560,8 +51560,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -51717,8 +51717,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -51862,8 +51862,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -52019,8 +52019,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -52176,8 +52176,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -52321,8 +52321,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -52490,8 +52490,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -52647,8 +52647,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -52792,8 +52792,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -52913,8 +52913,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -53034,8 +53034,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -53155,8 +53155,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -53283,8 +53283,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -53470,8 +53470,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -53634,8 +53634,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -53779,8 +53779,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -53967,8 +53967,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -54112,8 +54112,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -54240,8 +54240,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -54450,8 +54450,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -54614,8 +54614,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -54747,8 +54747,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -54928,8 +54928,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -55092,8 +55092,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -55163,8 +55163,8 @@ }, { "id": "security-incident list", - "summary": "List organization security incidents.", - "description": "List organization security incidents.", + "summary": "List team security incidents.", + "description": "List team security incidents.", "usage": ["polymorfa security-incident list [flags]"], "aliases": [], "hidden": false, @@ -55213,8 +55213,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -55346,8 +55346,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -55479,8 +55479,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -55612,8 +55612,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -55736,8 +55736,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -55869,8 +55869,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -56057,8 +56057,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -56194,8 +56194,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -56334,8 +56334,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -56503,8 +56503,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -56660,8 +56660,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -56858,8 +56858,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -57017,8 +57017,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -57204,8 +57204,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -57358,8 +57358,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -57516,8 +57516,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -57637,8 +57637,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -57765,8 +57765,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -57922,8 +57922,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -58101,8 +58101,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -58267,8 +58267,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -58512,8 +58512,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -58673,8 +58673,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -58846,8 +58846,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -58991,8 +58991,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -59144,8 +59144,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -59277,8 +59277,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -59411,8 +59411,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -59539,8 +59539,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -59684,8 +59684,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -59848,8 +59848,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -60024,8 +60024,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -60172,8 +60172,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -60341,8 +60341,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -60547,8 +60547,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -60687,8 +60687,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -60844,8 +60844,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -61008,8 +61008,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -61196,8 +61196,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -61348,8 +61348,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -61488,8 +61488,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -61559,8 +61559,8 @@ }, { "id": "widget update", - "summary": "Update saved Connect widget settings for the organization or one project.", - "description": "Update saved Connect widget settings for the organization or one project.", + "summary": "Update saved Connect widget settings for the team or one project.", + "description": "Update saved Connect widget settings for the team or one project.", "usage": ["polymorfa widget update [flags]"], "aliases": [], "hidden": false, @@ -61633,8 +61633,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, @@ -61704,8 +61704,8 @@ }, { "id": "widget view", - "summary": "View saved Connect widget settings for the organization or one project.", - "description": "View saved Connect widget settings for the organization or one project.", + "summary": "View saved Connect widget settings for the team or one project.", + "description": "View saved Connect widget settings for the team or one project.", "usage": ["polymorfa widget view [flags]"], "aliases": [], "hidden": false, @@ -61754,8 +61754,8 @@ "required": false, "multiple": false, "default": null, - "options": ["project", "organization"], - "description": "Select project-owned or organization-owned resources.", + "options": ["project", "team"], + "description": "Select project-owned or team-owned resources.", "env": null, "helpGroup": "GLOBAL" }, diff --git a/docs/command-research/business-app.md b/docs/command-research/business-app.md index 647354b5..88c07a31 100644 --- a/docs/command-research/business-app.md +++ b/docs/command-research/business-app.md @@ -61,7 +61,7 @@ business view ``` -These 25 operations require an organization/server API key and an active Linked +These 25 operations require a team/server API key and an active Linked Device session. They do not support project credentials, browser client tokens, or Cloud API sessions. Reads retain the exact `profile:read` or `business:read` scope boundaries; mutations retain `profile:write`. The CLI fails client tokens diff --git a/docs/command-research/call-consent.md b/docs/command-research/call-consent.md index 1838411e..ae7ad82f 100644 --- a/docs/command-research/call-consent.md +++ b/docs/command-research/call-consent.md @@ -69,7 +69,7 @@ package metadata. ## Credential rules - `calls policy` and `calls opt-outs` resolve Platform credentials, so they - require an organization API key. The API answers a project token or client + require a team API key. The API answers a project token or client token with `403 permission_denied`, which exits with code 3. - `calls permission get` and `calls check` require a server API key. The CLI refuses a Messaging client token before sending a request, because the API diff --git a/docs/command-research/calls-lids-users.md b/docs/command-research/calls-lids-users.md index d9bf199a..bc306f5f 100644 --- a/docs/command-research/calls-lids-users.md +++ b/docs/command-research/calls-lids-users.md @@ -30,7 +30,7 @@ user security-code ``` -All commands require an organization/server API key, an active Linked Device +All commands require a team/server API key, an active Linked Device session, and encoded identifiers. Project credentials, browser client tokens, Cloud API sessions, dashboard sessions, and staff identities are rejected. Call rejection requires `chats:manage`; LID resolution and security-code lookup diff --git a/docs/command-research/calls.md b/docs/command-research/calls.md index 040d451e..99c06ed7 100644 --- a/docs/command-research/calls.md +++ b/docs/command-research/calls.md @@ -125,11 +125,11 @@ internal SDK module. mode to satisfy the older validator. Other settings-only updates retain the typed SDK method. The dependency pin is unchanged, and the local type extensions remain until a matching SDK package is accepted. -- `calls stats` and `calls export` accept an organization API key or an +- `calls stats` and `calls export` accept a team API key or an exact-project token (`sessions:read`), resolved like the developer commands. `--project` (or a project token, which requires it) reads one - project; an organization key without `--project` reads the whole - organization. `--owner` still overrides the inferred owner. + project; a team key without `--project` reads the whole + team. `--owner` still overrides the inferred owner. - `calls retention` resolves a team API key or a project token (`resolveTeamSettingEnvironment`), from the environment or a profile, with no project context, and the API decides what each principal may do. diff --git a/docs/command-research/campaigns.md b/docs/command-research/campaigns.md index 4d42c31a..52503bad 100644 --- a/docs/command-research/campaigns.md +++ b/docs/command-research/campaigns.md @@ -57,7 +57,7 @@ optout ``` The CLI uses only `MessagingClient.campaigns`. Every campaign command requires an -organization Messaging API key. Reads require `campaigns:read`; creation and +team Messaging API key. Reads require `campaigns:read`; creation and lifecycle mutations require `campaigns:manage`. The CLI rejects browser client tokens before transport. It does not broaden the SDK to project tokens even though the live middleware has a separately bound project-token path. @@ -176,7 +176,7 @@ The same revision declares `projectId` as a query parameter on the single-campaign Platform operations, and a later one declares the `409` that update answers after launch. No CLI command calls those operations, so no flag changed. The API schema permits an omitted `projectId` for project tokens; -the SDK's organization-only campaign resource requires it. Its create method +the SDK's team-only campaign resource requires it. Its create method also requires the typed `CreatePlatformCampaignRequest` with a name and project ID. CLI campaign commands still use the separate Messaging resource with an explicit project slug. diff --git a/docs/command-research/customers.md b/docs/command-research/customers.md index 36148233..1b1d8ae3 100644 --- a/docs/command-research/customers.md +++ b/docs/command-research/customers.md @@ -1,7 +1,7 @@ # Customer command contract The Customer command family maps the complete public Customers surface in the -Platform contract. Every request uses an organization server API key and an +Platform contract. Every request uses a team server API key and an explicit project ID. | Command | Platform operation | diff --git a/docs/command-research/developer-events-webhooks.md b/docs/command-research/developer-events-webhooks.md index 086d26e4..93d2822b 100644 --- a/docs/command-research/developer-events-webhooks.md +++ b/docs/command-research/developer-events-webhooks.md @@ -35,7 +35,7 @@ listen mcp serve|install|uninstall|status|tools|doctor ``` -Developer resources have an explicit `project` or `organization` owner. A +Developer resources have an explicit `project` or `team` owner. A stored profile may fix that choice; otherwise `--owner` is required before any transport. Project ownership also requires exact project context. The CLI never probes one owner after another and never treats a credential prefix, resource diff --git a/docs/command-research/platform-management.md b/docs/command-research/platform-management.md index 7ee1b727..af5d1866 100644 --- a/docs/command-research/platform-management.md +++ b/docs/command-research/platform-management.md @@ -1,6 +1,6 @@ # Platform management command research -- **Status:** Organization-key management commands reconciled with the unified +- **Status:** Team-key management commands reconciled with the unified client; operation inspection is console-only - **Reviewed:** 2026-09-16 - **SDK baseline:** `08452992a32a392de5fc3d0fa3954ba6addd7f32` @@ -46,7 +46,7 @@ security-incident acknowledge operation - list|view|wait|watch|cancel --owner + list|view|wait|watch|cancel --owner project-token list --project @@ -56,8 +56,8 @@ session delete [--project ] --yes ``` -The management commands use the public typed organization resources on the -unified SDK `Client`. They require an organization server API key. Reads require +The management commands use the public typed team resources on the +unified SDK `Client`. They require a team server API key. Reads require `sessions:read`; key revocation and incident acknowledgement require `sessions:manage`; batch session stop/delete also require `sessions:manage`. Project tokens and Messaging browser client tokens are rejected before @@ -85,14 +85,14 @@ without cursor semantics. `session-ban list --active` keeps one discovery command while selecting the SDK's distinct active-only operation. Incident acknowledgement is repeatable, has no confirmation gate, and sends no body. `acknowledgedBy` may be empty when -an organization key performed the acknowledgement. +a team key performed the acknowledgement. The original singular Platform operation view was removed. Operation inspection is console-only at API contract 1600403, and the pinned SDK has no operations resource, so the CLI ships no operation commands. The unpublished `--surface` selector was removed. Project-token listing requires an explicit project because the live -organization-key handler rejects an absent project even though its OpenAPI +team-key handler rejects an absent project even though its OpenAPI query field is optional. Only metadata is returned. Batch session commands use positional IDs because they are the primary action @@ -110,7 +110,7 @@ without claiming stronger server behavior. ## Explicit gaps -There is no organization-key member mutation, API-key creation or rotation, +There is no team-key member mutation, API-key creation or rotation, project-token minting or revocation, raw bearer material, cross-project token aggregate, incident detail, management-list pagination, security-state aggregation, batch per-item result, or machine-credential operation inspection diff --git a/docs/command-research/quicklinks.md b/docs/command-research/quicklinks.md index 6afffae7..3b30b289 100644 --- a/docs/command-research/quicklinks.md +++ b/docs/command-research/quicklinks.md @@ -21,16 +21,16 @@ on the hosted page and preserves entitlement boundaries around direct pairing. | `quicklink view` | `MessagingClient.quickLinks.retrieve` | `GET /messaging/quicklinks/{id}` | Read one link's status and onboarding progress | | `quicklink cancel` | `MessagingClient.quickLinks.cancel` | `DELETE /messaging/quicklinks/{id}` | Invalidate an unconnected link; initial Number/session cleanup can continue after acceptance | -All three routes require `quicklink:manage`. The API accepts organization keys +All three routes require `quicklink:manage`. The API accepts team keys and exact-project tokens and scopes project tokens to their own project. `quicklink create` takes one JSON object from `--input` with `projectId`, `customerId`, `externalId`, and `configuration`, and rejects other top-level fields before transport. Presentation and callbacks belong in saved settings -(`widget view|update`). It uses an organization API key; project-token support +(`widget view|update`). It uses a team API key; project-token support for creation is not exposed by this command. -`quicklink view` and `quicklink cancel` accept an organization API key or an +`quicklink view` and `quicklink cancel` accept a team API key or an exact-project token and require explicit project context. Browser client tokens fail before transport. Cancellation requires TTY confirmation or `--yes` before a client is constructed. The route does not read an `Idempotency-Key`, so the diff --git a/docs/command-research/voice.md b/docs/command-research/voice.md index 1cb61ad9..00b2c8af 100644 --- a/docs/command-research/voice.md +++ b/docs/command-research/voice.md @@ -79,7 +79,7 @@ URL itself with no credential, no redirects, a bounded response, and a timeout. ## Credential rules -- The commands resolve Platform credentials: an organization server API key +- The commands resolve Platform credentials: a team server API key (`POLYMORFA_API_KEY` or an API-key profile). Client tokens fail before any request. The API also accepts project tokens; the CLI does not use them for these commands, matching `sip-trunk`. diff --git a/docs/development/bansafe-sdk-integration.md b/docs/development/bansafe-sdk-integration.md index 2dc9b2fc..ea1ce065 100644 --- a/docs/development/bansafe-sdk-integration.md +++ b/docs/development/bansafe-sdk-integration.md @@ -64,7 +64,7 @@ dependency. The CLI mapping covers all 25 Platform BanSafe operations in the SDK coverage ledger. The SDK also covers the 10 equivalent Messaging settings routes through `MessagingClient.banSafe`; the CLI uses the Platform routes for those settings -because BanSafe commands authenticate with an organization server API key. +because BanSafe commands authenticate with a team server API key. | SDK operations | CLI commands | | ------------------------------------------------------------ | ---------------------------------------------------------- | diff --git a/docs/superpowers/plans/2026-08-19-cli-foundation-and-api.md b/docs/superpowers/plans/2026-08-19-cli-foundation-and-api.md index 5a820bb0..2ba0d87c 100644 --- a/docs/superpowers/plans/2026-08-19-cli-foundation-and-api.md +++ b/docs/superpowers/plans/2026-08-19-cli-foundation-and-api.md @@ -229,7 +229,7 @@ export function renderValue( } ``` -Define `BaseCommand` with inherited flags `--json`, `--quiet`, `--no-color`, `--profile`, `--project`, `--api-version`, `--timeout`, and `--verbose`. Make `--json` and `--quiet` mutually exclusive. Organization-owned requests use the organization bound to the selected key; do not expose a cosmetic organization override. Add `outputMode(flags)` and `writeValue(value, human)` helpers that write only to stdout. +Define `BaseCommand` with inherited flags `--json`, `--quiet`, `--no-color`, `--profile`, `--project`, `--api-version`, `--timeout`, and `--verbose`. Make `--json` and `--quiet` mutually exclusive. Team-owned requests use the team bound to the selected key; do not expose a cosmetic team override. Add `outputMode(flags)` and `writeValue(value, human)` helpers that write only to stdout. Change `version` to extend `BaseCommand`, parse its flags, and render `{cli, sdk}` in JSON or the existing literal in human mode. @@ -433,7 +433,7 @@ export function createRawClient(environment: ResolvedEnvironment): RawClient { if (environment.surface === 'platform') { return new Client({ credential: { - type: 'organizationApiKey', + type: 'teamApiKey', value: environment.credential.value, }, ...shared, diff --git a/docs/superpowers/specs/2026-08-19-polymorfa-cli-design.md b/docs/superpowers/specs/2026-08-19-polymorfa-cli-design.md index b1b24a4e..8daa0cb1 100644 --- a/docs/superpowers/specs/2026-08-19-polymorfa-cli-design.md +++ b/docs/superpowers/specs/2026-08-19-polymorfa-cli-design.md @@ -32,7 +32,7 @@ prompts, output, errors, and workflows are written and reviewed by hand. 3. **One behavior across humans and agents.** CLI commands and MCP tools call the same application services and share validation, authorization, and error handling. -4. **Make context visible.** Organization, project, environment, API surface, +4. **Make context visible.** Team, project, environment, API surface, and profile are shown before consequential actions and in verbose output. 5. **Never leak credentials.** Secrets do not appear in arguments, config files, debug logs, shell history, MCP results, or generated support bundles. @@ -135,8 +135,8 @@ LID resolution, user security codes, business profiles, catalogs, products, collections, orders, compliance, observation policies, webhooks, client tokens, project templates, project-scoped campaigns, and all 33 signed event payload schemas plus Platform -organizations, projects, sessions, billing, campaigns, audiences, opt-outs, -media, organization API keys, members, audit logs, session bans, security +teams, projects, sessions, billing, campaigns, audiences, opt-outs, +media, team API keys, members, audit logs, session bans, security incidents, project-token metadata, saved QuickLink (widget) settings, and batch session stop/delete. Curated commands do not use the SDK's raw escape hatch to paper over a missing public contract. The explicit `api` command is @@ -193,8 +193,8 @@ choosing the first result. ### Global context flags - `--profile ` selects stored authentication and defaults. -- Organization-owned API requests use the organization bound to the selected - key. The CLI does not accept an organization override that could relabel a +- Team-owned API requests use the team bound to the selected + key. The CLI does not accept a team override that could relabel a request without changing its authorization. - `--project ` overrides the linked or profile project. - `--api-version ` overrides the SDK default when the API permits it. @@ -243,7 +243,7 @@ Errors contain: - a concise human message; - a stable CLI error code; - the Polymorfa request ID when available; -- the selected profile, organization, project, and API surface when relevant; +- the selected profile, team, project, and API surface when relevant; - a corrective command or documentation link; and - additional sanitized detail under `--verbose` or `--debug`. @@ -314,13 +314,13 @@ slurping, and JSON filtering. It adds an explicit `--surface messaging|platform` selector. The CLI may infer the surface only when the route and available credential make the choice unique. -`dashboard` opens the active organization, project, session, or other supplied +`dashboard` opens the active team, project, session, or other supplied resource in the Polymorfa console without embedding credentials in the URL. -### Organizations, projects, credentials, access, and billing +### Teams, projects, credentials, access, and billing ```text -organization +team list view create @@ -382,14 +382,14 @@ rather than pretending rotation is atomic. Billing commands expose operational status and open the hosted billing portal; they do not duplicate the console's purchasing UI. -The organization-key billing contract provides balance status, usage, an +The team-key billing contract provides balance status, usage, an unpaged transaction list, tier pricing, and reminder-settings mutation. The CLI does not invent pagination or a usage export when the API exposes neither. Billing top-ups and console usage-insight aggregation remain dashboard/staff surfaces. `billing portal` is a credential-free console navigation helper, not an API mutation. -`organization view` remains credential-compatible. Organization update and +`team view` remains credential-compatible. Team update and member/invite mutations remain reserved and unshipped because those routes require a dashboard session. In particular, the CLI must not use `raw.request` to bypass that credential boundary. @@ -585,7 +585,7 @@ group ``` Number pairing uses a persistent hosted QuickLink. `quicklink create` accepts a -JSON request with an organization API key and returns the link URL, +JSON request with a team API key and returns the link URL, `quicklink view` reads its status, and `quicklink cancel` invalidates a link that has not connected. View and cancel also accept an exact-project token. Saved QuickLink settings are managed with `widget view` and `widget update`; the CLI @@ -814,11 +814,11 @@ bounded concurrency, and machine-readable partial-failure artifacts. The `flow` top-level command name remains reserved but is not shipped against this SDK baseline. The separate Platform template and Flow routes require -dashboard JWTs and reject organization keys. The CLI must not collect, persist, +dashboard JWTs and reject team keys. The CLI must not collect, persist, or replay dashboard session JWTs to bypass that boundary, and neither MCP tools nor skills may expose those routes. Platform template management and Flow commands can enter the implementation plan only after the Platform API provides -a CLI-appropriate organization or project credential contract and the public +a CLI-appropriate team or project credential contract and the public SDK exposes it. The shipped `template` family uses the credential-compatible Messaging project-template resource instead. `message send template` is a separate Messaging send operation. @@ -1000,7 +1000,7 @@ maintenance work. ### Phase 1: core messaging and MCP -- Organization and project discovery. +- Team and project discovery. - Session lifecycle and connection workflows. - Text and media message sending plus essential reads. - Webhook inspection and testing. @@ -1071,7 +1071,7 @@ slices: - unified Calls commands for placement, answering and joining with exclusive claims, declining, leaving, ending, inviting, session call updates, raw PCM call audio, and session call settings, pinned to an unpushed SDK revision; -- organization-key API-key list/revocation, member and audit lists, session-ban +- team-key API-key list/revocation, member and audit lists, session-ban filtering, security-incident list/acknowledgement, and project-token metadata commands; - bounded batch session stop and confirmed management deletion commands; @@ -1079,8 +1079,8 @@ slices: commands, with accepted-work receipts and direct requeue; - explicit owner-scoped event list/view/replay, webhook CRUD/test/secret rotation, delivery and attempt inspection, and retry commands; -- persistent QuickLink create with organization keys, view/cancel with - organization keys or exact-project tokens, and no direct session QR fallback; +- persistent QuickLink create with team keys, view/cancel with + team keys or exact-project tokens, and no direct session QR fallback; - the bounded SSE listener with JSONL and human sinks, fail-closed gap handling, cumulative acknowledgement, checkpointed reconnects, exact-byte local signing, and redirect-safe forwarding; diff --git a/package.json b/package.json index 53123694..bd3e2194 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "description": "Add, list, and remove audience members." }, "audit-log": { - "description": "Inspect organization audit activity." + "description": "Inspect team audit activity." }, "auth": { "description": "Manage authentication profiles and credentials." @@ -167,7 +167,7 @@ "description": "Resolve phone numbers and usernames to Polymorfa user IDs." }, "key": { - "description": "Inspect and revoke organization API keys." + "description": "Inspect and revoke team API keys." }, "label": { "description": "Manage Messaging labels and chat assignments." @@ -182,7 +182,7 @@ "description": "Inspect, download, and persist Messaging media." }, "member": { - "description": "Inspect organization members." + "description": "Inspect team members." }, "message": { "description": "Send messages and perform message actions." @@ -191,7 +191,7 @@ "description": "Send a message by content type." }, "optout": { - "description": "Manage organization opt-out suppression." + "description": "Manage team opt-out suppression." }, "optout:settings": { "description": "Inspect and replace STOP/START keyword capture." @@ -233,13 +233,13 @@ "description": "Create, inspect, and cancel persistent onboarding QuickLinks." }, "security-incident": { - "description": "Inspect and acknowledge organization security incidents." + "description": "Inspect and acknowledge team security incidents." }, "connection": { "description": "Manage Platform connections." }, "connection-ban": { - "description": "Inspect recorded organization connection bans." + "description": "Inspect recorded team connection bans." }, "voice": { "description": "Voice Automation (beta): audio library and text-to-speech provider credentials." diff --git a/skills/polymorfa/SKILL.md b/skills/polymorfa/SKILL.md index 7d0fda34..49b8c306 100644 --- a/skills/polymorfa/SKILL.md +++ b/skills/polymorfa/SKILL.md @@ -11,14 +11,14 @@ Use `polymorfa --help` and `polymorfa --help` as the installed command a 1. Run `polymorfa auth status --json` before a mutation or a project-scoped read. 2. Select an explicit profile with `--profile` when the active profile is not already unambiguous. -3. For resources that may be project- or organization-owned, supply `--owner project|organization` unless the stored profile fixes the owner. +3. For resources that may be project- or team-owned, supply `--owner project|team` unless the stored profile fixes the owner. 4. Supply the exact project context for project-owned resources. Never infer ownership from an ID, credential shape, failed request, or route. -Organization API keys and exact-project tokens are durable principals. Browser client tokens and listener credentials are not general CLI credentials. Do not print, log, persist in project files, or pass credentials in command arguments. +Team API keys and exact-project tokens are durable principals. Browser client tokens and listener credentials are not general CLI credentials. Do not print, log, persist in project files, or pass credentials in command arguments. Voice Automation commands (`polymorfa voice audio`, `polymorfa voice credential`) are a beta for enrolled teams; `voice_not_enabled` (exit 6) means the team is not enrolled and `gate_limit_reached` (exit 7) means a voice limit is reached, so do not retry either. Pass a provider key to `polymorfa voice credential add` only through standard input or the environment variable named by `--key-env`, never as an argument. -Use `polymorfa quicklink create --project PROJECT --input request.json` with an organization API key for standard Connection pairing. Treat the returned hosted URL as credential material; do not request direct connection QR payloads or pairing codes. +Use `polymorfa quicklink create --project PROJECT --input request.json` with a team API key for standard Connection pairing. Treat the returned hosted URL as credential material; do not request direct connection QR payloads or pairing codes. ## Choose an interface diff --git a/src/base-command.ts b/src/base-command.ts index 4125c388..2859b7cf 100644 --- a/src/base-command.ts +++ b/src/base-command.ts @@ -55,9 +55,9 @@ export abstract class BaseCommand extends Command { helpGroup: 'GLOBAL', }), owner: Flags.string({ - description: 'Select project-owned or organization-owned resources.', + description: 'Select project-owned or team-owned resources.', helpGroup: 'GLOBAL', - options: ['project', 'organization'], + options: ['project', 'team'], }), profile: Flags.string({ description: 'Use a named authentication profile.', @@ -102,10 +102,10 @@ export abstract class BaseCommand extends Command { } /** - * Resolve an organization API key or exact-project token without building a + * Resolve a team API key or exact-project token without building a * typed client, for commands that span projects. With `inferOwner`, --project - * or a project token reads one project and an organization key otherwise - * reads the whole organization. + * or a project token reads one project and a team key otherwise + * reads the whole team. */ protected async developerEnvironment( flags: GlobalFlags, diff --git a/src/commands/analytics/get.ts b/src/commands/analytics/get.ts index 5f1437b3..8c53880d 100644 --- a/src/commands/analytics/get.ts +++ b/src/commands/analytics/get.ts @@ -35,7 +35,7 @@ export default class AnalyticsGet extends BaseCommand { }) const connection = await this.developerConnection({ ...flags, - owner: flags.owner ?? (flags.project ? 'project' : 'organization'), + owner: flags.owner ?? (flags.project ? 'project' : 'team'), }) const result = await getAnalytics(connection.client, query) this.writeValue(result, renderAnalytics(result.data), flags) diff --git a/src/commands/analytics/metrics.ts b/src/commands/analytics/metrics.ts index 7038bd0e..51ecaf02 100644 --- a/src/commands/analytics/metrics.ts +++ b/src/commands/analytics/metrics.ts @@ -42,7 +42,7 @@ export default class AnalyticsMetrics extends BaseCommand { }) const connection = await this.developerConnection({ ...flags, - owner: flags.owner ?? (flags.project ? 'project' : 'organization'), + owner: flags.owner ?? (flags.project ? 'project' : 'team'), }) const result = await getAnalyticsMetrics(connection.client, query) this.writeValue(result, result.data.trimEnd(), flags) diff --git a/src/commands/audit-log/list.ts b/src/commands/audit-log/list.ts index 4f660004..c7e4bd0b 100644 --- a/src/commands/audit-log/list.ts +++ b/src/commands/audit-log/list.ts @@ -7,7 +7,7 @@ import { } from '../../services/platform-management.js' export default class AuditLogList extends BaseCommand { - static override description = 'List organization audit log entries.' + static override description = 'List team audit log entries.' static override flags = { action: Flags.string({description: 'Match one exact audit action.'}), diff --git a/src/commands/auth/login.ts b/src/commands/auth/login.ts index 0292b780..2dd7e96f 100644 --- a/src/commands/auth/login.ts +++ b/src/commands/auth/login.ts @@ -7,7 +7,7 @@ import {readSecretFromStdin} from '../../input/stdin.js' export default class AuthLogin extends BaseCommand { static override description = - 'Store an organization key or project token in the operating-system keyring.' + 'Store a team key or project token in the operating-system keyring.' static override flags = { 'with-api-key': Flags.boolean({ diff --git a/src/commands/billing/limits/list.ts b/src/commands/billing/limits/list.ts index b3d75b7b..3274fa3f 100644 --- a/src/commands/billing/limits/list.ts +++ b/src/commands/billing/limits/list.ts @@ -4,7 +4,7 @@ export default class LimitsList extends BaseCommand { static override summary = 'Read monthly project and Connection spending limits.' static override description = - 'Requires an organization key with billing:read. Use --project to include its Connection limits. Months reset on the first day at 00:00 UTC.' + 'Requires a team key with billing:read. Use --project to include its Connection limits. Months reset on the first day at 00:00 UTC.' async run(): Promise { const {flags} = await this.parse(LimitsList) const result = await getLimits( diff --git a/src/commands/billing/limits/set.ts b/src/commands/billing/limits/set.ts index 78de4d13..d504318c 100644 --- a/src/commands/billing/limits/set.ts +++ b/src/commands/billing/limits/set.ts @@ -4,7 +4,7 @@ import {setLimit, limitValue} from '../../../services/billing-controls.js' export default class LimitsSet extends BaseCommand { static override summary = 'Set or remove a monthly spending limit.' static override description = - 'Requires Pay-As-You-Go and an organization key with billing:manage. Zero blocks new charges; already-paid service continues. A stale observed revision fails without overwriting newer settings.' + 'Requires Pay-As-You-Go and a team key with billing:manage. Zero blocks new charges; already-paid service continues. A stale observed revision fails without overwriting newer settings.' static override args = { id: Args.string({ required: true, diff --git a/src/commands/billing/priority/list.ts b/src/commands/billing/priority/list.ts index 677f187f..61de8e75 100644 --- a/src/commands/billing/priority/list.ts +++ b/src/commands/billing/priority/list.ts @@ -7,7 +7,7 @@ export default class PriorityList extends BaseCommand { static override summary = 'Read project, customer and connection funding priorities.' static override description = - 'Requires an organization key with billing:read. Project priority takes precedence. Connections inherit customer priority; a higher Connection priority overrides it. Use --project for its funding controls. Includes the revision used for changes.' + 'Requires a team key with billing:read. Project priority takes precedence. Connections inherit customer priority; a higher Connection priority overrides it. Use --project for its funding controls. Includes the revision used for changes.' async run(): Promise { const {flags} = await this.parse(PriorityList) const result = await getPriorities( diff --git a/src/commands/billing/priority/reorder.ts b/src/commands/billing/priority/reorder.ts index cc094cc8..e0acf6fa 100644 --- a/src/commands/billing/priority/reorder.ts +++ b/src/commands/billing/priority/reorder.ts @@ -6,7 +6,7 @@ import {reorderPriorities} from '../../../services/billing-controls.js' export default class PriorityReorder extends BaseCommand { static override summary = 'Save a complete funding order atomically.' static override description = - 'Requires Pay-As-You-Go and an organization key with billing:manage. Pass every active project, customer or real connection for its scope. Resource scope mixes all customers and connections in --project, highest first. Incomplete or stale orders fail without partial changes.' + 'Requires Pay-As-You-Go and a team key with billing:manage. Pass every active project, customer or real connection for its scope. Resource scope mixes all customers and connections in --project, highest first. Incomplete or stale orders fail without partial changes.' static override flags = { scope: Flags.string({ options: ['project', 'customer', 'connection', 'resource'], diff --git a/src/commands/billing/priority/set.ts b/src/commands/billing/priority/set.ts index 140353fa..4ec3e1a9 100644 --- a/src/commands/billing/priority/set.ts +++ b/src/commands/billing/priority/set.ts @@ -4,7 +4,7 @@ import {setPriority} from '../../../services/billing-controls.js' export default class PrioritySet extends BaseCommand { static override summary = 'Set a project or Connection funding priority.' static override description = - 'Requires Pay-As-You-Go and an organization key with billing:manage. Changes future renewal protection and recovery; paid windows keep their expiry.' + 'Requires Pay-As-You-Go and a team key with billing:manage. Changes future renewal protection and recovery; paid windows keep their expiry.' static override args = { id: Args.string({ required: true, diff --git a/src/commands/calls/export.ts b/src/commands/calls/export.ts index 4aa94160..a3e27d6e 100644 --- a/src/commands/calls/export.ts +++ b/src/commands/calls/export.ts @@ -26,7 +26,7 @@ Each record has callId, projectId, connectionId, direction, upstream, outcome, s The command requests every page until no records remain and writes one CSV header. Records go to standard output, or to --output. Progress and the next cursor go to standard error, as JSON lines with --json. --max-pages stops early; resume with --cursor and the same filters. When a page fails, the command reports the cursor that resumes from that page and exits non-zero. -Pass --project to read one project. Without it, an organization API key reads every project in the organization. A project token reads only its own project and requires --project. Credentials need the connections:read scope.` +Pass --project to read one project. Without it, a team API key reads every project in the team. A project token reads only its own project and requires --project. Credentials need the connections:read scope.` static override examples = [ '<%= config.bin %> calls export --since 2026-09-01T00:00:00Z --output calls.csv', diff --git a/src/commands/calls/opt-outs/add.ts b/src/commands/calls/opt-outs/add.ts index 41456123..d5974729 100644 --- a/src/commands/calls/opt-outs/add.ts +++ b/src/commands/calls/opt-outs/add.ts @@ -8,7 +8,7 @@ import { export default class CallsOptOutsAdd extends BaseCommand { static override description = - 'Add a person to the team’s do-not-call list by phone number or BSUID. From then on, calls to them are refused with call_recipient_opted_out, including calls your PBX places through a SIP trunk. Adding a person already on the list changes nothing and returns their entry (metadata.status 200 instead of 201). The list holds up to 100,000 entries; a full list fails with call_opt_out_limit (exit code 4). Requires an organization API key.' + 'Add a person to the team’s do-not-call list by phone number or BSUID. From then on, calls to them are refused with call_recipient_opted_out, including calls your PBX places through a SIP trunk. Adding a person already on the list changes nothing and returns their entry (metadata.status 200 instead of 201). The list holds up to 100,000 entries; a full list fails with call_opt_out_limit (exit code 4). Requires a team API key.' static override examples = [ '<%= config.bin %> calls opt-outs add --phone-number +14155550123 --note "Asked by phone on 2026-09-19"', diff --git a/src/commands/calls/opt-outs/import.ts b/src/commands/calls/opt-outs/import.ts index d12abed1..58d8e255 100644 --- a/src/commands/calls/opt-outs/import.ts +++ b/src/commands/calls/opt-outs/import.ts @@ -20,7 +20,7 @@ export default class CallsOptOutsImport extends BaseCommand { }), } - static override description = `Add many people to the team’s do-not-call list from a file of up to 10 MiB. CSV needs a header row naming phoneNumber, bsuid and optionally note; each row names a phone number (E.164) or a BSUID. JSON is an array of {"phoneNumber" | "bsuid", "note"} objects, or an object with that array as "entries". The CLI sends ${IMPORT_BATCH_SIZE.toLocaleString('en-US')} entries per request and reports the entries added, already listed and rejected, with each rejected entry's zero-based position (and CSV line). Running an import again is safe: entries already on the list are counted as already listed. Exit codes: 0 when every entry is listed; 12 when some entries were rejected, or when a later request failed after earlier batches were stored (run the import again); the request's own exit code when nothing was stored. Requires an organization API key.` + static override description = `Add many people to the team’s do-not-call list from a file of up to 10 MiB. CSV needs a header row naming phoneNumber, bsuid and optionally note; each row names a phone number (E.164) or a BSUID. JSON is an array of {"phoneNumber" | "bsuid", "note"} objects, or an object with that array as "entries". The CLI sends ${IMPORT_BATCH_SIZE.toLocaleString('en-US')} entries per request and reports the entries added, already listed and rejected, with each rejected entry's zero-based position (and CSV line). Running an import again is safe: entries already on the list are counted as already listed. Exit codes: 0 when every entry is listed; 12 when some entries were rejected, or when a later request failed after earlier batches were stored (run the import again); the request's own exit code when nothing was stored. Requires a team API key.` static override examples = [ '<%= config.bin %> calls opt-outs import do-not-call.csv', diff --git a/src/commands/calls/opt-outs/list.ts b/src/commands/calls/opt-outs/list.ts index cfefcfaa..fa283b5b 100644 --- a/src/commands/calls/opt-outs/list.ts +++ b/src/commands/calls/opt-outs/list.ts @@ -9,7 +9,7 @@ import { export default class CallsOptOutsList extends BaseCommand { static override description = - 'List the team’s do-not-call list, newest first. One page is returned unless --paginate follows page.nextCursor up to --max-items entries; human output ends with the --cursor for the next page. --phone-number or --bsuid returns only that person’s entry, if any. Requires an organization API key.' + 'List the team’s do-not-call list, newest first. One page is returned unless --paginate follows page.nextCursor up to --max-items entries; human output ends with the --cursor for the next page. --phone-number or --bsuid returns only that person’s entry, if any. Requires a team API key.' static override examples = [ '<%= config.bin %> calls opt-outs list', diff --git a/src/commands/calls/opt-outs/remove.ts b/src/commands/calls/opt-outs/remove.ts index c2611b51..2ca7691c 100644 --- a/src/commands/calls/opt-outs/remove.ts +++ b/src/commands/calls/opt-outs/remove.ts @@ -15,7 +15,7 @@ export default class CallsOptOutsRemove extends BaseCommand { } static override description = - 'Remove one entry from the team’s do-not-call list. The person can be called again at once. Requires --yes and an organization API key; an unknown ID fails with exit code 4.' + 'Remove one entry from the team’s do-not-call list. The person can be called again at once. Requires --yes and a team API key; an unknown ID fails with exit code 4.' static override examples = [ '<%= config.bin %> calls opt-outs remove 0b9f6a52-8f0e-4a44-9d51-3c1f9d6f2a10 --yes', diff --git a/src/commands/calls/policy/get.ts b/src/commands/calls/policy/get.ts index 8019c4ce..59cecdaf 100644 --- a/src/commands/calls/policy/get.ts +++ b/src/commands/calls/policy/get.ts @@ -6,7 +6,7 @@ import { export default class CallsPolicyGet extends BaseCommand { static override description = - 'Read the team call policy: the blocked country codes, the number of entries on the do-not-call list, and the revision to pass to `calls policy set --expected-revision`. The revision is 0 before the codes are first saved. Requires an organization API key: a project token used as the API key is refused by the API (exit code 3), and a client token is not accepted for this command (exit code 2).' + 'Read the team call policy: the blocked country codes, the number of entries on the do-not-call list, and the revision to pass to `calls policy set --expected-revision`. The revision is 0 before the codes are first saved. Requires a team API key: a project token used as the API key is refused by the API (exit code 3), and a client token is not accepted for this command (exit code 2).' static override examples = ['<%= config.bin %> calls policy get'] diff --git a/src/commands/calls/policy/set.ts b/src/commands/calls/policy/set.ts index 28942fda..e1a9db89 100644 --- a/src/commands/calls/policy/set.ts +++ b/src/commands/calls/policy/set.ts @@ -9,7 +9,7 @@ import { export default class CallsPolicySet extends BaseCommand { static override description = - 'Replace the team’s blocked country codes. Calls to phone numbers that start with a blocked code are refused with call_destination_blocked, and while any code is blocked, calls to a person whose phone number is not known are refused too. The list you pass replaces the stored list; --clear allows every country. Codes are country calling codes or longer dialing prefixes of 1 to 4 digits (44, 1876), at most 300. New calls use the new list at once; calls in progress continue. --expected-revision applies the change only if the policy still has that revision (see `calls policy get`); otherwise the command fails with state_conflict (exit code 4) and changes nothing. Requires an organization API key.' + 'Replace the team’s blocked country codes. Calls to phone numbers that start with a blocked code are refused with call_destination_blocked, and while any code is blocked, calls to a person whose phone number is not known are refused too. The list you pass replaces the stored list; --clear allows every country. Codes are country calling codes or longer dialing prefixes of 1 to 4 digits (44, 1876), at most 300. New calls use the new list at once; calls in progress continue. --expected-revision applies the change only if the policy still has that revision (see `calls policy get`); otherwise the command fails with state_conflict (exit code 4) and changes nothing. Requires a team API key.' static override examples = [ '<%= config.bin %> calls policy set --blocked-country-codes 44,1876', diff --git a/src/commands/calls/stats.ts b/src/commands/calls/stats.ts index dca470a3..6f325667 100644 --- a/src/commands/calls/stats.ts +++ b/src/commands/calls/stats.ts @@ -17,7 +17,7 @@ export default class CallsStats extends BaseCommand { The range defaults to the last 7 days. --group-by day covers at most 366 days and --group-by hour at most 31. Day and hour buckets, and the heatmap, use --timezone (UTC by default). -Pass --project to read one project. Without it, an organization API key reads every project in the organization. A project token reads only its own project and requires --project. Credentials need the connections:read scope.` +Pass --project to read one project. Without it, a team API key reads every project in the team. A project token reads only its own project and requires --project. Credentials need the connections:read scope.` static override examples = [ '<%= config.bin %> calls stats', diff --git a/src/commands/connection-ban/list.ts b/src/commands/connection-ban/list.ts index 4bc57903..e3c5692c 100644 --- a/src/commands/connection-ban/list.ts +++ b/src/commands/connection-ban/list.ts @@ -7,7 +7,7 @@ import { } from '../../services/platform-management.js' export default class ConnectionBanList extends BaseCommand { - static override description = 'List recorded organization connection bans.' + static override description = 'List recorded team connection bans.' static override flags = { active: Flags.boolean({description: 'Return only active bans.'}), diff --git a/src/commands/connection/list.ts b/src/commands/connection/list.ts index 6cc876a8..cbf8e7fd 100644 --- a/src/commands/connection/list.ts +++ b/src/commands/connection/list.ts @@ -6,7 +6,7 @@ import { export default class ConnectionList extends BaseCommand { static override description = - 'List connection metadata for the team or one project. Requires an organization API key with connections:read.' + 'List connection metadata for the team or one project. Requires a team API key with connections:read.' static override examples = [ '<%= config.bin %> connection list', '<%= config.bin %> connection list --project PROJECT_ID --json', diff --git a/src/commands/connection/status.ts b/src/commands/connection/status.ts index af61036e..5ed3aa7b 100644 --- a/src/commands/connection/status.ts +++ b/src/commands/connection/status.ts @@ -6,7 +6,7 @@ import {viewManagedConnection} from '../../services/platform-management.js' export default class ConnectionStatus extends BaseCommand { static override description = - 'Read the stored connection status and reason. Requires an organization API key with connections:read.' + 'Read the stored connection status and reason. Requires a team API key with connections:read.' static override args = { connection: Args.string({description: 'Connection ID.', required: true}), } diff --git a/src/commands/connection/view.ts b/src/commands/connection/view.ts index 3ba66df2..50ce1204 100644 --- a/src/commands/connection/view.ts +++ b/src/commands/connection/view.ts @@ -9,7 +9,7 @@ import { export default class ConnectionView extends BaseCommand { static override description = - 'Read one connection by its ID. Requires an organization API key with connections:read.' + 'Read one connection by its ID. Requires a team API key with connections:read.' static override args = { connection: Args.string({description: 'Connection ID.', required: true}), } diff --git a/src/commands/key/list.ts b/src/commands/key/list.ts index dc7e183a..ba4c294e 100644 --- a/src/commands/key/list.ts +++ b/src/commands/key/list.ts @@ -3,7 +3,7 @@ import {listApiKeys, renderApiKeys} from '../../services/platform-management.js' export default class KeyList extends BaseCommand { static override description = - 'List organization API-key metadata (never raw key material).' + 'List team API-key metadata (never raw key material).' async run(): Promise { const {flags} = await this.parse(KeyList) diff --git a/src/commands/key/revoke.ts b/src/commands/key/revoke.ts index 40b37847..c9340d01 100644 --- a/src/commands/key/revoke.ts +++ b/src/commands/key/revoke.ts @@ -8,7 +8,7 @@ export default class KeyRevoke extends BaseCommand { key: Args.string({description: 'API key ID.', required: true}), } - static override description = 'Revoke an organization API key.' + static override description = 'Revoke a team API key.' static override flags = { 'idempotency-key': Flags.string({ diff --git a/src/commands/listen.ts b/src/commands/listen.ts index 274cf045..0b0ab4b1 100644 --- a/src/commands/listen.ts +++ b/src/commands/listen.ts @@ -74,7 +74,7 @@ export default class Listen extends BaseCommand { }), project: Flags.string({ description: - 'Use a project UUID; organization API keys may use a unique slug. Defaults to the linked or profile project.', + 'Use a project UUID; team API keys may use a unique slug. Defaults to the linked or profile project.', }), } diff --git a/src/commands/member/list.ts b/src/commands/member/list.ts index fb13c650..89bdb0b6 100644 --- a/src/commands/member/list.ts +++ b/src/commands/member/list.ts @@ -2,7 +2,7 @@ import {BaseCommand} from '../../base-command.js' import {listMembers, renderMembers} from '../../services/platform-management.js' export default class MemberList extends BaseCommand { - static override description = 'List organization members.' + static override description = 'List team members.' async run(): Promise { const {flags} = await this.parse(MemberList) diff --git a/src/commands/optout/settings/update.ts b/src/commands/optout/settings/update.ts index 293be9ec..7a0a7f3c 100644 --- a/src/commands/optout/settings/update.ts +++ b/src/commands/optout/settings/update.ts @@ -9,7 +9,7 @@ import { export default class OptOutSettingsUpdate extends BaseCommand { static override description = - 'Replace the organization’s STOP and START keyword capture settings. Every field is replaced, so pass the complete keyword set.' + 'Replace the team’s STOP and START keyword capture settings. Every field is replaced, so pass the complete keyword set.' static override examples = [ '<%= config.bin %> <%= command.id %> --enabled --opt-out-keyword STOP --opt-out-keyword BAJA --opt-in-keyword START', diff --git a/src/commands/optout/settings/view.ts b/src/commands/optout/settings/view.ts index 3062928f..c4f86e10 100644 --- a/src/commands/optout/settings/view.ts +++ b/src/commands/optout/settings/view.ts @@ -6,7 +6,7 @@ import { export default class OptOutSettingsView extends BaseCommand { static override description = - 'Show the organization’s STOP and START keyword capture settings.' + 'Show the team’s STOP and START keyword capture settings.' async run(): Promise { const {flags} = await this.parse(OptOutSettingsView) diff --git a/src/commands/security-incident/list.ts b/src/commands/security-incident/list.ts index 8651914a..77055f03 100644 --- a/src/commands/security-incident/list.ts +++ b/src/commands/security-incident/list.ts @@ -5,7 +5,7 @@ import { } from '../../services/platform-management.js' export default class SecurityIncidentList extends BaseCommand { - static override description = 'List organization security incidents.' + static override description = 'List team security incidents.' async run(): Promise { const {flags} = await this.parse(SecurityIncidentList) diff --git a/src/commands/webhook/test.ts b/src/commands/webhook/test.ts index 60960ed5..069dfd05 100644 --- a/src/commands/webhook/test.ts +++ b/src/commands/webhook/test.ts @@ -56,17 +56,17 @@ export default class WebhookTest extends BaseCommand { } function validateTestInput( - owner: 'organization' | 'project', + owner: 'team' | 'project', input: Record, ): void { const allowed = - owner === 'organization' + owner === 'team' ? new Set(['eventType']) : new Set(['eventType', 'body', 'connectionId']) const unexpected = Object.keys(input).find((key) => !allowed.has(key)) if (unexpected !== undefined) { throw new PolymorfaValidationError( - `${owner === 'organization' ? 'Team' : 'Project'} webhook tests do not accept ${unexpected}.`, + `${owner === 'team' ? 'Team' : 'Project'} webhook tests do not accept ${unexpected}.`, {code: 'invalid_parameter'}, ) } diff --git a/src/commands/widget/update.ts b/src/commands/widget/update.ts index fe238dbf..10b52b73 100644 --- a/src/commands/widget/update.ts +++ b/src/commands/widget/update.ts @@ -9,7 +9,7 @@ import { export default class WidgetUpdate extends BaseCommand { static override description = - 'Update saved Connect widget settings for the organization or one project.' + 'Update saved Connect widget settings for the team or one project.' static override flags = { 'idempotency-key': Flags.string({ diff --git a/src/commands/widget/view.ts b/src/commands/widget/view.ts index d7de706c..b23a2fd4 100644 --- a/src/commands/widget/view.ts +++ b/src/commands/widget/view.ts @@ -6,7 +6,7 @@ import { export default class WidgetView extends BaseCommand { static override description = - 'View saved Connect widget settings for the organization or one project.' + 'View saved Connect widget settings for the team or one project.' async run(): Promise { const {flags} = await this.parse(WidgetView) diff --git a/src/config/profiles.ts b/src/config/profiles.ts index b0a791c4..ea040197 100644 --- a/src/config/profiles.ts +++ b/src/config/profiles.ts @@ -21,8 +21,8 @@ export interface ProfileMetadata { readonly apiVersion?: string readonly baseUrl?: string readonly credential: CredentialReference - readonly owner?: 'organization' | 'project' - readonly organization?: string + readonly owner?: 'team' | 'project' + readonly team?: string readonly project?: string } @@ -138,7 +138,7 @@ function isProfile(value: unknown, version: 1 | 2): value is ProfileMetadata { 'baseUrl', 'credential', 'owner', - 'organization', + 'team', 'project', ]) if (Object.keys(value).some((key) => !profileKeys.has(key))) return false @@ -159,7 +159,7 @@ function isProfile(value: unknown, version: 1 | 2): value is ProfileMetadata { if ( value.owner !== undefined && - value.owner !== 'organization' && + value.owner !== 'team' && value.owner !== 'project' ) { return false @@ -172,10 +172,9 @@ function isProfile(value: unknown, version: 1 | 2): value is ProfileMetadata { ) { return false } - if (value.owner === 'organization' && value.project !== undefined) - return false + if (value.owner === 'team' && value.project !== undefined) return false - return ['apiVersion', 'baseUrl', 'organization', 'project'].every( + return ['apiVersion', 'baseUrl', 'team', 'project'].every( (key) => value[key] === undefined || typeof value[key] === 'string', ) } diff --git a/src/context/environment.ts b/src/context/environment.ts index 4bf39bb3..bc1f5700 100644 --- a/src/context/environment.ts +++ b/src/context/environment.ts @@ -45,7 +45,7 @@ export interface ListenerEnvironment { readonly apiVersion?: string readonly baseUrl: string readonly credential: string - readonly principalType: 'organization_key' | 'project_token' + readonly principalType: 'team_key' | 'project_token' readonly profile?: string readonly projectId: string readonly timeoutMs?: number @@ -75,7 +75,7 @@ export interface ResolveDeveloperEnvironmentInput { /** * Choose the owner when neither --owner nor the profile names one: a * project context (--project, or a project token) reads one project, and - * an organization key otherwise reads the whole organization. For commands + * a team key otherwise reads the whole team. For commands * whose results span projects rather than belong to one owner. */ readonly inferOwner?: boolean | undefined @@ -182,9 +182,7 @@ export async function resolveDeveloperEnvironment( ) } const principalType = - profile.credential.kind === 'projectToken' - ? 'project_token' - : 'organization_key' + profile.credential.kind === 'projectToken' ? 'project_token' : 'team_key' const explicitProject = nonEmpty(input.project) const owner = input.owner ?? @@ -329,7 +327,7 @@ export async function resolveListenerEnvironment( nonEmpty(input.env.POLYMORFA_BASE_URL) ?? 'https://api.polymorfa.com' const projectId = await canonicalProjectId( project, - 'organization_key', + 'team_key', { ...(input.apiVersion === undefined ? {} @@ -344,7 +342,7 @@ export async function resolveListenerEnvironment( ...(input.apiVersion === undefined ? {} : {apiVersion: input.apiVersion}), baseUrl, credential: apiKey, - principalType: 'organization_key', + principalType: 'team_key', projectId: requiredProjectId(projectId), ...(input.timeoutMs === undefined ? {} : {timeoutMs: input.timeoutMs}), } @@ -390,9 +388,7 @@ export async function resolveListenerEnvironment( ) } const principalType = - profile.credential.kind === 'projectToken' - ? 'project_token' - : 'organization_key' + profile.credential.kind === 'projectToken' ? 'project_token' : 'team_key' const baseUrl = nonEmpty(input.env.POLYMORFA_BASE_URL) ?? profile.baseUrl ?? @@ -464,8 +460,8 @@ export async function resolveCommandEnvironment( ) { throw new PolymorfaConfigurationError( input.surface === 'platform' - ? `Profile ${selected} contains a project token; this Platform command requires an organization API key.` - : `Profile ${selected} contains a project token; this Messaging command requires an organization API key or a Messaging client token.`, + ? `Profile ${selected} contains a project token; this Platform command requires a team API key.` + : `Profile ${selected} contains a project token; this Messaging command requires a team API key or a Messaging client token.`, 'credential', ) } @@ -519,7 +515,7 @@ export interface TeamSettingEnvironment { readonly apiVersion?: string readonly baseUrl: string readonly credential: string - readonly principalType: 'organization_key' | 'project_token' + readonly principalType: 'team_key' | 'project_token' readonly timeoutMs?: number } @@ -592,9 +588,7 @@ export async function resolveTeamSettingEnvironment( baseUrl: baseUrl ?? profile.baseUrl ?? 'https://api.polymorfa.com', credential, principalType: - profile.credential.kind === 'projectToken' - ? 'project_token' - : 'organization_key', + profile.credential.kind === 'projectToken' ? 'project_token' : 'team_key', ...optional, } } @@ -673,7 +667,7 @@ function durableEnvironmentCredential( env: Readonly>, ): | { - readonly principalType: 'organization_key' | 'project_token' + readonly principalType: 'team_key' | 'project_token' readonly value: string } | undefined { @@ -697,7 +691,7 @@ function durableEnvironmentCredential( } return apiKey === undefined ? undefined - : {principalType: 'organization_key', value: apiKey} + : {principalType: 'team_key', value: apiKey} } const PROJECT_UUID = @@ -705,7 +699,7 @@ const PROJECT_UUID = export async function canonicalProjectId( project: string | undefined, - principalType: 'organization_key' | 'project_token', + principalType: 'team_key' | 'project_token', connection: Parameters[0], lookup: ProjectLookup, ): Promise { @@ -721,13 +715,13 @@ export async function canonicalProjectId( ) if (matches.length === 0) { throw new PolymorfaConfigurationError( - `Project slug ${project} was not found in the organization.`, + `Project slug ${project} was not found in the team.`, 'project', ) } if (matches.length > 1) { throw new PolymorfaConfigurationError( - `Project slug ${project} is ambiguous in the organization.`, + `Project slug ${project} is ambiguous in the team.`, 'project', ) } @@ -755,12 +749,10 @@ export async function listProjects( } function inferredOwner( - principalType: 'organization_key' | 'project_token', + principalType: 'team_key' | 'project_token', hasProject: boolean, -): 'organization' | 'project' { - return principalType === 'project_token' || hasProject - ? 'project' - : 'organization' +): 'team' | 'project' { + return principalType === 'project_token' || hasProject ? 'project' : 'team' } function requiredProjectId(projectId: string | undefined): string { diff --git a/src/context/owner.ts b/src/context/owner.ts index c941117a..c4680543 100644 --- a/src/context/owner.ts +++ b/src/context/owner.ts @@ -9,13 +9,13 @@ import type { export function resolveOwnerContext(input: { readonly owner?: string readonly principalType: PrincipalType - readonly organizationId?: string + readonly teamId?: string readonly projectId?: string readonly profile?: string }): OutputContext { - if (input.owner !== 'project' && input.owner !== 'organization') { + if (input.owner !== 'project' && input.owner !== 'team') { throw new PolymorfaConfigurationError( - 'This command requires --owner project or --owner organization.', + 'This command requires --owner project or --owner team.', 'owner', ) } @@ -30,13 +30,13 @@ export function resolveOwnerContext(input: { } else { if (input.principalType === 'project_token') { throw new PolymorfaConfigurationError( - 'A project token cannot access organization-owned resources.', + 'A project token cannot access team-owned resources.', 'credential', ) } if (input.projectId) { throw new PolymorfaConfigurationError( - 'Organization-owned commands reject a simultaneous project override.', + 'Team-owned commands reject a simultaneous project override.', 'project', ) } @@ -44,9 +44,7 @@ export function resolveOwnerContext(input: { return { owner, principalType: input.principalType, - ...(input.organizationId === undefined - ? {} - : {organizationId: input.organizationId}), + ...(input.teamId === undefined ? {} : {teamId: input.teamId}), ...(input.profile === undefined ? {} : {profile: input.profile}), ...(input.projectId === undefined ? {} : {projectId: input.projectId}), } diff --git a/src/developer/render.ts b/src/developer/render.ts index d84be288..1ffad732 100644 --- a/src/developer/render.ts +++ b/src/developer/render.ts @@ -26,7 +26,7 @@ export function renderEventDetail( ['Type', event.type], ['Source', event.source], ['Environment', event.environment], - ['Project', event.projectId ?? 'organization'], + ['Project', event.projectId ?? 'team'], ['Created', event.createdAt], ['Replayable until', event.replayableUntil], ['Payload availability', event.payloadAvailability], diff --git a/src/functions/command.ts b/src/functions/command.ts index 1685f3f9..287884e5 100644 --- a/src/functions/command.ts +++ b/src/functions/command.ts @@ -7,7 +7,7 @@ export abstract class FunctionsCommand extends BaseCommand { protected async functionContext(flags: GlobalFlags) { if (flags.owner !== undefined && flags.owner !== 'project') throw new PolymorfaConfigurationError( - 'Functions are project-owned; --owner organization is not supported.', + 'Functions are project-owned; --owner team is not supported.', 'owner', ) const connection = await this.developerConnection({ diff --git a/src/listener/frames.ts b/src/listener/frames.ts index 0e7b48f8..d6530163 100644 --- a/src/listener/frames.ts +++ b/src/listener/frames.ts @@ -328,16 +328,16 @@ function validateEventMetadata( 'environment', 'id', 'metadataExpiresAt', - 'organizationId', + 'teamId', 'payloadAvailability', 'projectId', 'replayableUntil', 'source', 'type', ]) - for (const key of ['id', 'organizationId', 'projectId', 'type'] as const) + for (const key of ['id', 'teamId', 'projectId', 'type'] as const) requireString(value, key) - for (const key of ['id', 'organizationId', 'projectId'] as const) { + for (const key of ['id', 'teamId', 'projectId'] as const) { if (!UUID.test(String(value[key]))) { throw protocol('listener_event_invalid', `${key} must be a UUID.`) } diff --git a/src/mcp/connection-discovery.ts b/src/mcp/connection-discovery.ts index c89b166c..58b57f4b 100644 --- a/src/mcp/connection-discovery.ts +++ b/src/mcp/connection-discovery.ts @@ -34,7 +34,7 @@ export async function listMcpConnections( process.env.POLYMORFA_CLIENT_TOKEN?.trim()) ) { throw new PolymorfaConfigurationError( - 'Select only one organization API key for MCP connection discovery.', + 'Select only one team API key for MCP connection discovery.', 'credential', ) } diff --git a/src/mcp/server.ts b/src/mcp/server.ts index bd269151..ac94b699 100644 --- a/src/mcp/server.ts +++ b/src/mcp/server.ts @@ -97,7 +97,7 @@ export function createMcpServer( readOnlyHint: true, }, description: - 'List stored connection summaries in one project. Requires a CLI organization API key with connections:read.', + 'List stored connection summaries in one project. Requires a CLI team API key with connections:read.', inputSchema: z.object({ projectId: z.string().regex(LISTENER_PROJECT_ID_PATTERN), }), @@ -110,7 +110,7 @@ export function createMcpServer( return { content: [ { - text: 'Could not list project connections with the selected CLI organization API key.', + text: 'Could not list project connections with the selected CLI team API key.', type: 'text' as const, }, ], diff --git a/src/output/contracts.ts b/src/output/contracts.ts index e6aeef3d..3017e90b 100644 --- a/src/output/contracts.ts +++ b/src/output/contracts.ts @@ -1,11 +1,11 @@ -export type ResourceOwner = 'project' | 'organization' -export type PrincipalType = 'project_token' | 'organization_key' | 'cli_grant' +export type ResourceOwner = 'project' | 'team' +export type PrincipalType = 'project_token' | 'team_key' | 'cli_grant' export interface OutputContext { readonly owner: ResourceOwner readonly principalType: PrincipalType readonly profile?: string - readonly organizationId?: string | null + readonly teamId?: string | null readonly projectId?: string | null } diff --git a/src/services/auth.ts b/src/services/auth.ts index a17e4a60..eca46584 100644 --- a/src/services/auth.ts +++ b/src/services/auth.ts @@ -26,8 +26,8 @@ export interface ProfileSummary { readonly baseUrl?: string readonly credentialKind: 'apiKey' | 'projectToken' readonly name: string - readonly owner?: 'organization' | 'project' - readonly organization?: string + readonly owner?: 'team' | 'project' + readonly team?: string readonly project?: string } @@ -72,9 +72,7 @@ export class AuthService { ? {} : {apiVersion: previous.apiVersion}), ...(previous?.baseUrl === undefined ? {} : {baseUrl: previous.baseUrl}), - ...(previous?.organization === undefined - ? {} - : {organization: previous.organization}), + ...(previous?.team === undefined ? {} : {team: previous.team}), credential: {account, kind: 'apiKey'}, } const next: ProfileConfig = { @@ -131,9 +129,7 @@ export class AuthService { ? {} : {apiVersion: previous.apiVersion}), ...(previous?.baseUrl === undefined ? {} : {baseUrl: previous.baseUrl}), - ...(previous?.organization === undefined - ? {} - : {organization: previous.organization}), + ...(previous?.team === undefined ? {} : {team: previous.team}), credential: {account, kind: 'projectToken'}, owner: 'project', project, @@ -271,9 +267,7 @@ function summary( ? {} : {apiVersion: profile.apiVersion}), ...(profile.baseUrl === undefined ? {} : {baseUrl: profile.baseUrl}), - ...(profile.organization === undefined - ? {} - : {organization: profile.organization}), + ...(profile.team === undefined ? {} : {team: profile.team}), ...(profile.owner === undefined ? {} : {owner: profile.owner}), ...(profile.project === undefined ? {} : {project: profile.project}), } diff --git a/src/services/bansafe.ts b/src/services/bansafe.ts index 937f057b..c1f070df 100644 --- a/src/services/bansafe.ts +++ b/src/services/bansafe.ts @@ -11,7 +11,7 @@ import { type BanSafeSignalDefinition, type BanSafeTelemetryDetail, type BanSafeTelemetrySnapshot, - type ClientInstance as OrganizationClient, + type ClientInstance as TeamClient, type CursorPageMetadata, type ListBanSafeClaimsParams, type ListBanSafeCollectionParams, @@ -55,7 +55,7 @@ interface ResultMetadata { } export async function listHealth( - client: OrganizationClient, + client: TeamClient, params: ListBanSafeHealthParams, ): Promise> { const response = await client.banSafe.listHealth(params) @@ -63,7 +63,7 @@ export async function listHealth( } export async function getHealth( - client: OrganizationClient, + client: TeamClient, connection: string, ): Promise> { const response = await client.banSafe.getHealth(connection) @@ -71,7 +71,7 @@ export async function getHealth( } export async function listHealthHistory( - client: OrganizationClient, + client: TeamClient, connection: string, params: ListBanSafeHealthHistoryParams, ): Promise> { @@ -80,14 +80,14 @@ export async function listHealthHistory( } export async function listSignals( - client: OrganizationClient, + client: TeamClient, ): Promise> { const response = await client.banSafe.listSignals() return result(response.data.data, response.metadata) } export async function getTelemetry( - client: OrganizationClient, + client: TeamClient, connection: string, ): Promise> { const response = await client.banSafe.getTelemetry(connection) @@ -95,7 +95,7 @@ export async function getTelemetry( } export async function listTelemetryHistory( - client: OrganizationClient, + client: TeamClient, connection: string, params: ListBanSafeTelemetryHistoryParams, ): Promise> { @@ -104,7 +104,7 @@ export async function listTelemetryHistory( } export async function listCollection( - client: OrganizationClient, + client: TeamClient, params: ListBanSafeCollectionParams, ): Promise> { const response = await client.banSafe.listCollection(params) @@ -112,7 +112,7 @@ export async function listCollection( } export async function listFindings( - client: OrganizationClient, + client: TeamClient, params: ListBanSafeFindingsParams, ): Promise> { const response = await client.banSafe.listFindings(params) @@ -120,7 +120,7 @@ export async function listFindings( } export async function listEnforcement( - client: OrganizationClient, + client: TeamClient, params: ListBanSafeEnforcementParams, ): Promise> { const response = await client.banSafe.listEnforcement(params) @@ -128,7 +128,7 @@ export async function listEnforcement( } export async function listIncidents( - client: OrganizationClient, + client: TeamClient, params: ListBanSafeIncidentsParams, ): Promise> { const response = await client.banSafe.listIncidents(params) @@ -136,7 +136,7 @@ export async function listIncidents( } export async function listClaims( - client: OrganizationClient, + client: TeamClient, params: ListBanSafeClaimsParams, ): Promise> { const response = await client.banSafe.listClaims(params) @@ -144,7 +144,7 @@ export async function listClaims( } export async function getClaim( - client: OrganizationClient, + client: TeamClient, claimId: string, ): Promise> { const response = await client.banSafe.getClaim(claimId) @@ -152,7 +152,7 @@ export async function getClaim( } export async function reportIncident( - client: OrganizationClient, + client: TeamClient, body: ReportBanSafeIncidentRequest, options: RequestOptions, ) { @@ -161,7 +161,7 @@ export async function reportIncident( } export async function retractIncident( - client: OrganizationClient, + client: TeamClient, incidentId: string, options: RequestOptions, ) { @@ -170,7 +170,7 @@ export async function retractIncident( } export async function getProjectSafeMode( - client: OrganizationClient, + client: TeamClient, projectId: string, ) { const response = await client.projects.getSafeMode(projectId) @@ -178,7 +178,7 @@ export async function getProjectSafeMode( } export async function updateProjectSafeMode( - client: OrganizationClient, + client: TeamClient, projectId: string, input: unknown, options: RequestOptions, @@ -192,7 +192,7 @@ export async function updateProjectSafeMode( } export async function getConnectionSafeMode( - client: OrganizationClient, + client: TeamClient, connection: string, ) { const response = await client.connections.getSafeMode(connection) @@ -200,7 +200,7 @@ export async function getConnectionSafeMode( } export async function updateConnectionSafeMode( - client: OrganizationClient, + client: TeamClient, connection: string, input: unknown, options: RequestOptions, @@ -213,16 +213,13 @@ export async function updateConnectionSafeMode( return result(response.data.data, response.metadata) } -export async function getWarmupPlan( - client: OrganizationClient, - projectId: string, -) { +export async function getWarmupPlan(client: TeamClient, projectId: string) { const response = await client.projects.getWarmupPlan(projectId) return result(response.data.data, response.metadata) } export async function getInsuranceEvidence( - client: OrganizationClient, + client: TeamClient, projectId: string, ) { const response = await client.projects.getInsuranceEvidence(projectId) @@ -230,7 +227,7 @@ export async function getInsuranceEvidence( } export async function updateInsuranceEvidence( - client: OrganizationClient, + client: TeamClient, projectId: string, input: unknown, options: RequestOptions, @@ -244,7 +241,7 @@ export async function updateInsuranceEvidence( } export async function updateWarmupPlan( - client: OrganizationClient, + client: TeamClient, projectId: string, input: unknown, options: RequestOptions, @@ -258,7 +255,7 @@ export async function updateWarmupPlan( } export async function listHealthActions( - client: OrganizationClient, + client: TeamClient, params: ListBanSafeHealthActionsParams, ): Promise> { const response = await client.banSafe.listHealthActions(params) @@ -266,7 +263,7 @@ export async function listHealthActions( } export async function getHealthPolicy( - client: OrganizationClient, + client: TeamClient, projectId: string, ): Promise> { const response = await client.projects.getHealthPolicy(projectId) @@ -274,7 +271,7 @@ export async function getHealthPolicy( } export async function updateHealthPolicy( - client: OrganizationClient, + client: TeamClient, projectId: string, input: unknown, options: RequestOptions = {}, diff --git a/src/services/call-analytics.ts b/src/services/call-analytics.ts index bf4f2995..d4933394 100644 --- a/src/services/call-analytics.ts +++ b/src/services/call-analytics.ts @@ -212,7 +212,7 @@ export function callFilterQuery(input: CallFilterInput): Query { } } -/** The project filter for the resolved context; none for the organization. */ +/** The project filter for the resolved context; none for the team. */ export function projectQuery(context: OutputContext): Query { return context.owner === 'project' && context.projectId ? {projectId: context.projectId} diff --git a/src/services/platform-management.ts b/src/services/platform-management.ts index e6453150..c78f6d02 100644 --- a/src/services/platform-management.ts +++ b/src/services/platform-management.ts @@ -251,7 +251,7 @@ export function renderApiKeys(keys: readonly ApiKey[]): string { } export function renderMembers(members: readonly TeamMember[]): string { - if (members.length === 0) return 'No organization members found.' + if (members.length === 0) return 'No team members found.' return members .map((member) => [member.email, member.name ?? '', member.role, member.status].join('\t'), @@ -347,13 +347,13 @@ export function renderWidgetSettings( ): string { if (settings === null) { return requestedProjectId === undefined - ? 'No saved organization-default widget settings found.' + ? 'No saved team-default widget settings found.' : `No saved widget settings found for project ${requestedProjectId}.` } return [ `ID\t${settings.id}`, - `Scope\t${settings.projectId ?? 'organization defaults'}`, + `Scope\t${settings.projectId ?? 'team defaults'}`, `Enabled\t${settings.enabled}`, `Methods\t${settings.methods?.join(', ') ?? 'default'}`, `Theme\t${settings.theme}`, diff --git a/src/services/projects.ts b/src/services/projects.ts index 8f81e84f..0a179bd7 100644 --- a/src/services/projects.ts +++ b/src/services/projects.ts @@ -228,7 +228,7 @@ export class ProjectContextService { ) if (matches.length === 0) { throw new PolymorfaConfigurationError( - `Project ${value} was not found in the organization.`, + `Project ${value} was not found in the team.`, 'project', ) } @@ -280,7 +280,7 @@ export class ProjectContextService { if (projectToken !== undefined) { // The token does not name its project, so an explicit UUID is the // only way to identify it locally. A slug cannot be resolved without - // an organization credential. + // a team credential. const declared = nonEmpty(options.project)?.trim() if (declared !== undefined && PROJECT_UUID.test(declared)) { return { diff --git a/test/commands/audiences-optouts.test.ts b/test/commands/audiences-optouts.test.ts index 89af9488..fd1db3e9 100644 --- a/test/commands/audiences-optouts.test.ts +++ b/test/commands/audiences-optouts.test.ts @@ -172,7 +172,7 @@ describe('Audience and opt-out commands', () => { expect(result.stdout).not.toContain('Removed') }) - test('reads the organization keyword settings', async () => { + test('reads the team keyword settings', async () => { server = await startHttpServer({body: {data: settings()}}) const result = await apiKeyEnvironment(() => diff --git a/test/commands/call-analytics.test.ts b/test/commands/call-analytics.test.ts index 2bdc1b60..e0c664c5 100644 --- a/test/commands/call-analytics.test.ts +++ b/test/commands/call-analytics.test.ts @@ -159,7 +159,7 @@ describe('calls stats', () => { expect(result.stdout).not.toContain('Calls by hour') }) - test('reads the whole organization without --project and prints the heatmap', async () => { + test('reads the whole team without --project and prints the heatmap', async () => { server = await startHttpSequenceServer([ { body: { @@ -199,7 +199,7 @@ describe('calls stats', () => { expect(JSON.parse(result.stdout)).toEqual({ schemaVersion: 1, data: stats(), - context: {owner: 'organization', principalType: 'organization_key'}, + context: {owner: 'team', principalType: 'team_key'}, request: {apiVersion: null, id: 'req_1', status: 200}, }) }) diff --git a/test/commands/call-consent.test.ts b/test/commands/call-consent.test.ts index 492a0b75..e956fdbb 100644 --- a/test/commands/call-consent.test.ts +++ b/test/commands/call-consent.test.ts @@ -134,7 +134,7 @@ describe('call consent commands', () => { body: { error: { code: 'permission_denied', - message: "The team's call policy needs an organization credential.", + message: "The team's call policy needs a team credential.", }, success: false, }, @@ -154,7 +154,7 @@ describe('call consent commands', () => { error: {category: 'conflict', code: 'state_conflict'}, }) expect(exitCode(refused.error)).toBe(3) - expect(refused.stderr).toContain('organization credential') + expect(refused.stderr).toContain('team credential') }, 30_000) test('reports malformed SDK collection envelopes as server failures', async () => { diff --git a/test/commands/campaign-segments-drip.test.ts b/test/commands/campaign-segments-drip.test.ts index 05150bad..f987b60a 100644 --- a/test/commands/campaign-segments-drip.test.ts +++ b/test/commands/campaign-segments-drip.test.ts @@ -92,7 +92,7 @@ async function run(command: string) { () => runCommand(command), ) } -test('lists and reads organization segments with pagination', async () => { +test('lists and reads team segments with pagination', async () => { server = await startHttpSequenceServer([ {body: {data: [segment], page: {hasMore: true, nextCursor: 'next'}}}, {body: {data: segment}}, diff --git a/test/commands/customers.test.ts b/test/commands/customers.test.ts index 30ac22cb..ce535705 100644 --- a/test/commands/customers.test.ts +++ b/test/commands/customers.test.ts @@ -92,7 +92,7 @@ describe('Customer commands', () => { name: 'Ada', needsAttention: false, connectionCount: 1, - orgId: 'org_1', + teamId: 'team_1', projectId: 'project/1', status: 'active', updatedAt: 1_725_000_000_000, @@ -321,7 +321,7 @@ function customer() { id: 'customer/1', isDefault: false, name: 'Ada', - orgId: 'org_1', + teamId: 'team_1', projectId: 'project/1', status: 'active', updatedAt: 1_725_000_000_000, @@ -384,7 +384,7 @@ function pairingLink() { maxAttempts: 3, methods: ['qr', 'phone'], openedAt: null, - orgId: 'org_1', + teamId: 'team_1', pendingConnectionId: null, phoneMismatchCount: 0, projectId: 'project/1', diff --git a/test/commands/developer-webhooks.test.ts b/test/commands/developer-webhooks.test.ts index 1e602861..abd4f4bb 100644 --- a/test/commands/developer-webhooks.test.ts +++ b/test/commands/developer-webhooks.test.ts @@ -145,12 +145,12 @@ describe('developer webhook commands', () => { const output = stdout() await developerEnvironment(() => - WebhookList.run(['--owner', 'organization', '--limit', '10', '--json']), + WebhookList.run(['--owner', 'team', '--limit', '10', '--json']), ) expect(findCall('webhooks.list').args).toEqual([{limit: 10}, {}]) expect(json(output)).toMatchObject({ - context: {owner: 'organization'}, + context: {owner: 'team'}, data: [{id: 'wh_1'}], page: {hasMore: true, nextCursor: 'next_1'}, schemaVersion: 1, @@ -161,7 +161,7 @@ describe('developer webhook commands', () => { const output = stdout() await developerEnvironment(() => - WebhookView.run(['wh_1', '--owner', 'organization', '--json']), + WebhookView.run(['wh_1', '--owner', 'team', '--json']), ) expect(findCall('webhooks.retrieve').args).toEqual(['wh_1', {}]) @@ -172,8 +172,8 @@ describe('developer webhook commands', () => { const output = stdout() await developerEnvironment(async () => { - await WebhookView.run(['wh_1', '--owner', 'organization']) - await WebhookDeliveryView.run(['delivery_1', '--owner', 'organization']) + await WebhookView.run(['wh_1', '--owner', 'team']) + await WebhookDeliveryView.run(['delivery_1', '--owner', 'team']) }) const text = output.mock.calls.map(([chunk]) => String(chunk)).join('') @@ -191,7 +191,7 @@ describe('developer webhook commands', () => { WebhookDelete.run([ 'wh_1', '--owner', - 'organization', + 'team', '--yes', '--idempotency-key', 'delete_1', @@ -272,7 +272,7 @@ describe('developer webhook commands', () => { 'delivery_1', 'attempt_1', '--owner', - 'organization', + 'team', '--json', ]), ) @@ -292,12 +292,7 @@ describe('developer webhook commands', () => { const output = stdout() await developerEnvironment(() => - WebhookDeliveryView.run([ - 'delivery_1', - '--owner', - 'organization', - '--json', - ]), + WebhookDeliveryView.run(['delivery_1', '--owner', 'team', '--json']), ) expect(findCall('webhookDeliveries.retrieve').args).toEqual([ @@ -348,7 +343,7 @@ describe('developer webhook commands', () => { WebhookUpdate.run([ 'wh_1', '--owner', - 'organization', + 'team', '--input', input, '--idempotency-key', @@ -411,7 +406,7 @@ describe('developer webhook commands', () => { WebhookUpdate.run([ 'wh_1', '--owner', - 'organization', + 'team', '--phone-offline-start-day', '13', '--idempotency-key', @@ -432,7 +427,7 @@ describe('developer webhook commands', () => { WebhookUpdate.run([ 'wh_1', '--owner', - 'organization', + 'team', '--phone-offline-start-day', 'off', '--idempotency-key', @@ -456,7 +451,7 @@ describe('developer webhook commands', () => { WebhookUpdate.run([ 'wh_1', '--owner', - 'organization', + 'team', '--phone-offline-start-day', 'off', ]), @@ -480,7 +475,7 @@ describe('developer webhook commands', () => { WebhookUpdate.run([ 'wh_1', '--owner', - 'organization', + 'team', '--phone-offline-start-day', value, ]), @@ -500,7 +495,7 @@ describe('developer webhook commands', () => { .spyOn(process.stderr, 'write') .mockImplementation(() => true) const error = await developerEnvironment(() => - WebhookUpdate.run(['wh_1', '--owner', 'organization']), + WebhookUpdate.run(['wh_1', '--owner', 'team']), ).catch((caught: unknown) => caught) expect(exitCode(error)).toBe(2) expect(String(stderr.mock.calls.flat().join(''))).toContain( @@ -559,7 +554,7 @@ describe('developer webhook commands', () => { WebhookTest.run([ 'wh_1', '--owner', - 'organization', + 'team', '--event', 'customer.created', '--input', @@ -639,7 +634,7 @@ describe('developer webhook commands', () => { WebhookSecretRotate.run([ 'wh_1', '--owner', - 'organization', + 'team', '--overlap', '1h', '--secret-out', @@ -671,7 +666,7 @@ describe('developer webhook commands', () => { WebhookSecretRotate.run([ 'wh_1', '--owner', - 'organization', + 'team', '--secret-out', secret, '--yes', @@ -694,7 +689,7 @@ describe('developer webhook commands', () => { WebhookDeliveryRetry.run([ 'delivery_1', '--owner', - 'organization', + 'team', '--yes', '--idempotency-key', 'retry_1', @@ -807,7 +802,7 @@ function resource( format: 'native', headers: [], id: String(args[0]), - owner: 'organization', + owner: 'team', projectId: null, updatedAt: '2026-09-08T00:00:00Z', url: 'https://hooks.example.test/polymorfa', diff --git a/test/commands/event-stream.test.ts b/test/commands/event-stream.test.ts index a01857e1..80110e5c 100644 --- a/test/commands/event-stream.test.ts +++ b/test/commands/event-stream.test.ts @@ -195,7 +195,7 @@ describe('event stream', () => { test('requires a project owner', async () => { vi.spyOn(process.stderr, 'write').mockImplementation(() => true) const error = await environment(() => - EventStream.run(['--owner', 'organization', '--json']), + EventStream.run(['--owner', 'team', '--json']), ).catch((caught: unknown) => caught) expect(exitCode(error)).toBe(8) expect(sdk.params).toHaveLength(0) @@ -223,7 +223,7 @@ function item(id: string, cursor: string, withBody = true) { sequence: 2, event: { id, - organizationId: 'org_1', + teamId: 'team_1', projectId: PROJECT, type: 'message.received', source: 'runtime', diff --git a/test/commands/events.test.ts b/test/commands/events.test.ts index c01533f5..86ff2991 100644 --- a/test/commands/events.test.ts +++ b/test/commands/events.test.ts @@ -79,7 +79,7 @@ describe('event commands', () => { data: [event()], context: { owner: 'project', - principalType: 'organization_key', + principalType: 'team_key', projectId: '11111111-1111-4111-8111-111111111111', }, request: {apiVersion: '2026-08-20', id: 'req_1', status: 200}, @@ -87,7 +87,7 @@ describe('event commands', () => { }) }) - test('views an organization event and explicitly requests its payload', async () => { + test('views a team event and explicitly requests its payload', async () => { sdk.responses.push({data: event(), metadata: metadata()}) const output = vi .spyOn(process.stdout, 'write') @@ -97,7 +97,7 @@ describe('event commands', () => { EventView.run([ 'evt_1', '--owner', - 'organization', + 'team', '--include-payload', '--json', ]), @@ -112,7 +112,7 @@ describe('event commands', () => { expect(JSON.parse(String(output.mock.calls[0]?.[0]))).toMatchObject({ schemaVersion: 1, data: {id: 'evt_1'}, - context: {owner: 'organization', principalType: 'organization_key'}, + context: {owner: 'team', principalType: 'team_key'}, request: {id: 'req_1', status: 200}, }) }) @@ -135,7 +135,7 @@ describe('event commands', () => { .mockImplementation(() => true) await environment(() => - EventView.run(['evt_1', '--owner', 'organization', '--include-payload']), + EventView.run(['evt_1', '--owner', 'team', '--include-payload']), ) const text = output.mock.calls.map(([chunk]) => String(chunk)).join('') @@ -150,7 +150,7 @@ describe('event commands', () => { const error = await environment(() => EventList.run([ '--owner', - 'organization', + 'team', '--cursor', 'cursor_1', '--type', @@ -221,7 +221,7 @@ describe('event commands', () => { '--webhook', 'wh_1', '--owner', - 'organization', + 'team', '--json', ]), ).catch((caught: unknown) => caught) @@ -267,7 +267,7 @@ function event() { environment: 'development', id: 'evt_1', metadataExpiresAt: '2026-10-08T00:00:00Z', - organizationId: 'org_1', + teamId: 'team_1', payload: null, payloadAvailability: 'not_retained', projectId: '11111111-1111-4111-8111-111111111111', diff --git a/test/commands/functions.test.ts b/test/commands/functions.test.ts index 909ab2be..c53016ef 100644 --- a/test/commands/functions.test.ts +++ b/test/commands/functions.test.ts @@ -390,7 +390,7 @@ describe('Function commands', () => { expect(result.stderr).toContain('reconcile') expect(server.requests).toHaveLength(1) }) - test('uses project tokens without silently treating them as organization credentials', async () => { + test('uses project tokens without silently treating them as team credentials', async () => { server = await startHttpServer({ body: {data: {items: [], nextCursor: null}}, }) diff --git a/test/commands/hybrid-credentials.test.ts b/test/commands/hybrid-credentials.test.ts index c9e0ddd4..26f56e6b 100644 --- a/test/commands/hybrid-credentials.test.ts +++ b/test/commands/hybrid-credentials.test.ts @@ -322,30 +322,27 @@ test.each(cases)( test.each([ 'routing-policy get --scope team', 'routing-policy set --scope team --expected-revision default --prefer inherit --deny-all', -])( - 'project credentials cannot invoke organization policy: %s', - async (command) => { - const server = await startHttpSequenceServer([{body: {}}]) - try { - await withEnvironment( - { - POLYMORFA_BASE_URL: server.baseUrl, - POLYMORFA_API_KEY: undefined, - POLYMORFA_PROJECT_TOKEN: projectToken, - POLYMORFA_CLIENT_TOKEN: undefined, - }, - async () => { - const result = await runCommand(`${command} --json`) - expect(result.error).toBeDefined() - expect(result.stderr).toContain('require a server API key') - }, - ) - expect(server.requests).toEqual([]) - } finally { - await server.close() - } - }, -) +])('project credentials cannot invoke team policy: %s', async (command) => { + const server = await startHttpSequenceServer([{body: {}}]) + try { + await withEnvironment( + { + POLYMORFA_BASE_URL: server.baseUrl, + POLYMORFA_API_KEY: undefined, + POLYMORFA_PROJECT_TOKEN: projectToken, + POLYMORFA_CLIENT_TOKEN: undefined, + }, + async () => { + const result = await runCommand(`${command} --json`) + expect(result.error).toBeDefined() + expect(result.stderr).toContain('require a server API key') + }, + ) + expect(server.requests).toEqual([]) + } finally { + await server.close() + } +}) test('invalid project-token format is rejected before transport', async () => { const server = await startHttpSequenceServer([{body: {}}]) diff --git a/test/commands/hybrid-link.test.ts b/test/commands/hybrid-link.test.ts index df474686..7f4607e1 100644 --- a/test/commands/hybrid-link.test.ts +++ b/test/commands/hybrid-link.test.ts @@ -59,7 +59,7 @@ test('routing policy uses linked project and resolves an explicit slug', async ( _creationTime: 0, _id: project, name: 'App', - orgId: 'org_1', + teamId: 'team_1', slug: 'app', stage: 'development', }, @@ -195,7 +195,7 @@ test('QuickLink creation accepts a project slug from the input file', async () = _creationTime: 0, _id: project, name: 'App', - orgId: 'org_1', + teamId: 'team_1', slug: 'app', stage: 'development', }, diff --git a/test/commands/listen.test.ts b/test/commands/listen.test.ts index b3cc3f83..75d07bbf 100644 --- a/test/commands/listen.test.ts +++ b/test/commands/listen.test.ts @@ -209,7 +209,7 @@ const PROJECT = '11111111-1111-4111-8111-111111111111' const STREAM = '22222222-2222-4222-8222-222222222222' const AUTH = '33333333-3333-4333-8333-333333333333' const EVENT = '44444444-4444-4444-8444-444444444444' -const ORGANIZATION = '55555555-5555-4555-8555-555555555555' +const TEAM = '55555555-5555-4555-8555-555555555555' let activeBaseUrl = '' function route( @@ -325,7 +325,7 @@ function event() { environment: 'development', id: EVENT, metadataExpiresAt: '2026-10-08T00:00:00Z', - organizationId: ORGANIZATION, + teamId: TEAM, payloadAvailability: 'available', projectId: PROJECT, replayableUntil: null, diff --git a/test/commands/newsletter-observations.test.ts b/test/commands/newsletter-observations.test.ts index 258c9a87..11ad03a2 100644 --- a/test/commands/newsletter-observations.test.ts +++ b/test/commands/newsletter-observations.test.ts @@ -56,7 +56,7 @@ const metadata = ( events: readonly (FixtureEnvelope | CurrentEnvelope)[] = fixture.events, ) => ({ id: fixture.events[index]!.id, - organizationId: 'org_1', + teamId: 'team_1', projectId: PROJECT, type: 'newsletter.update', source: 'runtime', diff --git a/test/commands/operations.test.ts b/test/commands/operations.test.ts index c732811c..9c347755 100644 --- a/test/commands/operations.test.ts +++ b/test/commands/operations.test.ts @@ -99,7 +99,7 @@ describe('operation commands', () => { process.exitCode = undefined }) - test('lists organization operations with filters', async () => { + test('lists team operations with filters', async () => { api.responses.push({ data: [operation('running', 2)], page: {nextCursor: null}, @@ -108,7 +108,7 @@ describe('operation commands', () => { await environment(() => OperationList.run([ '--owner', - 'organization', + 'team', '--status', 'running', '--resource-type', @@ -165,7 +165,7 @@ describe('operation commands', () => { OperationWait.run([ OPERATION, '--owner', - 'organization', + 'team', '--timeout', '120', '--json', @@ -182,7 +182,7 @@ describe('operation commands', () => { api.responses.push({data: operation('failed', 3)}) silence() await environment(() => - OperationWait.run([OPERATION, '--owner', 'organization', '--json']), + OperationWait.run([OPERATION, '--owner', 'team', '--json']), ) expect(process.exitCode).toBe(1) }) @@ -195,7 +195,7 @@ describe('operation commands', () => { OperationWait.run([ OPERATION, '--owner', - 'organization', + 'team', '--timeout', '0', '--json', @@ -212,9 +212,7 @@ describe('operation commands', () => { {data: operation('cancelled', 4)}, ) const output = silence() - await environment(() => - OperationWatch.run([OPERATION, '--owner', 'organization']), - ) + await environment(() => OperationWatch.run([OPERATION, '--owner', 'team'])) const text = output.mock.calls.map(([chunk]) => String(chunk)).join('') expect(text).toContain('\trunning\t') expect(text).toContain('\tcancelling\t') @@ -231,7 +229,7 @@ describe('operation commands', () => { OperationWait.run([ OPERATION, '--owner', - 'organization', + 'team', '--timeout', '1', '--json', @@ -250,7 +248,7 @@ describe('operation commands', () => { OperationWatch.run([ OPERATION, '--owner', - 'organization', + 'team', '--timeout', '1', '--json', @@ -274,7 +272,7 @@ describe('operation commands', () => { OperationCancel.run([ OPERATION, '--owner', - 'organization', + 'team', '--yes', '--idempotency-key', 'cancel_1', @@ -295,7 +293,7 @@ describe('operation commands', () => { test('does not cancel without --yes in a noninteractive process', async () => { vi.spyOn(process.stderr, 'write').mockImplementation(() => true) const error = await environment(() => - OperationCancel.run([OPERATION, '--owner', 'organization', '--json']), + OperationCancel.run([OPERATION, '--owner', 'team', '--json']), ).catch((caught: unknown) => caught) expect(exitCode(error)).toBe(2) expect(api.calls).toHaveLength(0) @@ -315,7 +313,7 @@ function operation(status: string, sequence: number) { error: null, id: OPERATION, kind: 'campaign', - organizationId: 'org_1', + teamId: 'team_1', progress: null, projectId: PROJECT, resource: {id: 'c1', type: 'campaign'}, diff --git a/test/commands/platform-management.test.ts b/test/commands/platform-management.test.ts index 795da89e..d4dbd3f5 100644 --- a/test/commands/platform-management.test.ts +++ b/test/commands/platform-management.test.ts @@ -130,7 +130,7 @@ describe('Platform management commands', () => { data: { connectionId: 'session_1', name: 'Support', - tenantId: 'org_1', + tenantId: 'team_1', type: 'whatsapp', method: 'linked_device', testMode: false, @@ -335,7 +335,7 @@ describe('Platform management commands', () => { keyId: 'key_1', label: 'Production', last4: '1234', - orgId: 'org_1', + teamId: 'team_1', scopes: 65_535, source: 'dashboard', start: 'pmfa_', @@ -388,7 +388,7 @@ describe('Platform management commands', () => { expect(server.requests).toHaveLength(0) }) - test('lists organization members through the organization-key resource', async () => { + test('lists team members through the team-key resource', async () => { server = await startHttpServer({ body: { data: [ @@ -399,7 +399,7 @@ describe('Platform management commands', () => { invitedAt: null, joinedAt: 1, name: 'Owner', - orgId: 'org_1', + teamId: 'team_1', role: 'owner', status: 'active', userId: 'user_1', @@ -679,7 +679,7 @@ describe('Platform management commands', () => { expect(server.requests).toHaveLength(0) }) - test('represents absent organization-default widget settings as null', async () => { + test('represents absent team-default widget settings as null', async () => { server = await startHttpServer({ body: {data: null}, headers: {'request-id': 'req_widget_missing'}, diff --git a/test/commands/project-context.test.ts b/test/commands/project-context.test.ts index 3e734776..d4075f2c 100644 --- a/test/commands/project-context.test.ts +++ b/test/commands/project-context.test.ts @@ -40,7 +40,7 @@ describe('link and project commands', () => { _creationTime: 0, _id: APP, name: 'App', - orgId: 'org_1', + teamId: 'team_1', slug: 'app', stage: 'development', }, @@ -88,7 +88,7 @@ describe('link and project commands', () => { }) test.each(['malformed', 'unreadable'])( - 'organization commands ignore a %s project link', + 'team commands ignore a %s project link', async (kind) => { const link = join(directory, 'polymorfa.json') if (kind === 'malformed') await writeFile(link, '{invalid json') @@ -115,7 +115,7 @@ describe('link and project commands', () => { }, ) - test('organization developer commands ignore a malformed project link', async () => { + test('team developer commands ignore a malformed project link', async () => { await writeFile(join(directory, 'polymorfa.json'), '{invalid json') server = await startHttpServer({body: {data: []}}) @@ -127,7 +127,7 @@ describe('link and project commands', () => { POLYMORFA_CONFIG_DIR: join(directory, 'config'), POLYMORFA_PROJECT_TOKEN: undefined, }, - () => runCommand('webhook list --owner organization --json --verbose'), + () => runCommand('webhook list --owner team --json --verbose'), ) expect(result.error, result.stderr).toBeUndefined() diff --git a/test/config/profiles.test.ts b/test/config/profiles.test.ts index a6155ae2..7cac5a32 100644 --- a/test/config/profiles.test.ts +++ b/test/config/profiles.test.ts @@ -65,7 +65,7 @@ describe('ProfileRepository', () => { profiles: { work: { credential: {account: 'profile:work:apiKey', kind: 'apiKey'}, - organization: 'org_123', + team: 'team_123', }, }, version: 2, @@ -77,7 +77,7 @@ describe('ProfileRepository', () => { profiles: { work: { credential: {account: 'profile:work:apiKey', kind: 'apiKey'}, - organization: 'org_123', + team: 'team_123', }, }, version: 2, @@ -131,7 +131,7 @@ describe('ProfileRepository', () => { account: 'profile:project:projectToken', kind: 'projectToken', }, - owner: 'organization', + owner: 'team', project: 'project_1', }, }, diff --git a/test/context/environment.test.ts b/test/context/environment.test.ts index 271c65ba..f856c416 100644 --- a/test/context/environment.test.ts +++ b/test/context/environment.test.ts @@ -85,14 +85,14 @@ describe('resolveEnvironment', () => { POLYMORFA_API_KEY: 'ambient_key', POLYMORFA_CLIENT_TOKEN: 'ambient_client', }, - owner: 'organization', + owner: 'team', profile: 'work', }, fakeProfiles(), fakeCredentials('pmfa_AQIDBAUGBwgJCgsMDQ4PEBESExRXid_4'), ), ).resolves.toMatchObject({ - context: {owner: 'organization', profile: 'work'}, + context: {owner: 'team', profile: 'work'}, credential: 'pmfa_AQIDBAUGBwgJCgsMDQ4PEBESExRXid_4', }) }) @@ -146,12 +146,12 @@ describe('resolveEnvironment', () => { ), ).resolves.toMatchObject({ credential: 'pmfa_AgMEBQYHCAkKCwwNDg8QERITFBXd5SUP', - principalType: 'organization_key', + principalType: 'team_key', }) expect(credentials.get).not.toHaveBeenCalled() }) - test('resolves an organization project slug to its canonical UUID', async () => { + test('resolves a team project slug to its canonical UUID', async () => { const lookup = vi.fn(() => Promise.resolve([fakeProject('checkout')])) await expect( @@ -167,7 +167,7 @@ describe('resolveEnvironment', () => { lookup, ), ).resolves.toMatchObject({ - principalType: 'organization_key', + principalType: 'team_key', projectId: PROJECT, }) expect(lookup).toHaveBeenCalledOnce() @@ -201,24 +201,21 @@ describe('resolveEnvironment', () => { fakeProject('checkout', OTHER_PROJECT), ], }, - ])( - 'rejects an organization slug that is $expected', - async ({expected, projects}) => { - await expect( - resolveListenerEnvironment( - { - env: { - POLYMORFA_API_KEY: 'pmfa_AwQFBgcICQoLDA0ODxAREhMUFRYcof0T', - }, - project: 'checkout', + ])('rejects a team slug that is $expected', async ({expected, projects}) => { + await expect( + resolveListenerEnvironment( + { + env: { + POLYMORFA_API_KEY: 'pmfa_AwQFBgcICQoLDA0ODxAREhMUFRYcof0T', }, - fakeProfiles(), - fakeCredentials('unused'), - () => Promise.resolve(projects), - ), - ).rejects.toThrow(expected) - }, - ) + project: 'checkout', + }, + fakeProfiles(), + fakeCredentials('unused'), + () => Promise.resolve(projects), + ), + ).rejects.toThrow(expected) + }) test('rejects a project-token slug without attempting project discovery', async () => { const lookup = vi.fn(() => Promise.resolve([fakeProject('checkout')])) @@ -412,7 +409,7 @@ describe('resolveEnvironment', () => { expect(credentials.get).not.toHaveBeenCalled() }) - test('preserves the organization Platform credential boundary for project profiles and environment', async () => { + test('preserves the team Platform credential boundary for project profiles and environment', async () => { expect(() => resolveEnvironment({ env: {POLYMORFA_PROJECT_TOKEN: PROJECT_TOKEN}, @@ -426,7 +423,7 @@ describe('resolveEnvironment', () => { projectProfiles(), credentials, ), - ).rejects.toThrow('organization API key') + ).rejects.toThrow('team API key') expect(credentials.get).not.toHaveBeenCalled() }) @@ -508,7 +505,7 @@ describe('resolveEnvironment', () => { describe('resolveDeveloperEnvironment owner inference', () => { const key = 'pmfa_AQIDBAUGBwgJCgsMDQ4PEBESExRXid_4' - test('reads the whole organization despite a saved project profile', async () => { + test('reads the whole team despite a saved project profile', async () => { const config: ProfileConfig = { activeProfile: 'scoped', profiles: { @@ -530,7 +527,7 @@ describe('resolveDeveloperEnvironment owner inference', () => { profiles, fakeCredentials(key), ) - expect(analytics.context.owner).toBe('organization') + expect(analytics.context.owner).toBe('team') expect(analytics.context.projectId).toBeUndefined() const explicitProfileScope = await resolveDeveloperEnvironment( @@ -544,7 +541,7 @@ describe('resolveDeveloperEnvironment owner inference', () => { }) }) - test('reads the organization with an organization key and no project', async () => { + test('reads the team with a team key and no project', async () => { await expect( resolveDeveloperEnvironment( {env: {POLYMORFA_API_KEY: key}, inferOwner: true}, @@ -552,7 +549,7 @@ describe('resolveDeveloperEnvironment owner inference', () => { fakeCredentials('unused'), ), ).resolves.toMatchObject({ - context: {owner: 'organization', principalType: 'organization_key'}, + context: {owner: 'team', principalType: 'team_key'}, }) }) diff --git a/test/context/owner.test.ts b/test/context/owner.test.ts index cdee4b1c..9d4b59eb 100644 --- a/test/context/owner.test.ts +++ b/test/context/owner.test.ts @@ -4,9 +4,9 @@ import {resolveOwnerContext} from '../../src/context/owner.js' describe('resolveOwnerContext', () => { test('requires explicit owner and exact project context', () => { - expect(() => - resolveOwnerContext({principalType: 'organization_key'}), - ).toThrow('owner') + expect(() => resolveOwnerContext({principalType: 'team_key'})).toThrow( + 'owner', + ) expect(() => resolveOwnerContext({owner: 'project', principalType: 'project_token'}), ).toThrow('project') @@ -23,17 +23,17 @@ describe('resolveOwnerContext', () => { }) }) - test('rejects project context and project tokens for organization ownership', () => { + test('rejects project context and project tokens for team ownership', () => { expect(() => resolveOwnerContext({ - owner: 'organization', + owner: 'team', principalType: 'project_token', }), ).toThrow('project token') expect(() => resolveOwnerContext({ - owner: 'organization', - principalType: 'organization_key', + owner: 'team', + principalType: 'team_key', projectId: 'project_1', }), ).toThrow('project override') diff --git a/test/developer/client.test.ts b/test/developer/client.test.ts index 111f753d..14df969b 100644 --- a/test/developer/client.test.ts +++ b/test/developer/client.test.ts @@ -5,7 +5,7 @@ import {createDeveloperConnection} from '../../src/developer/client.js' import {withEnvironment} from '../helpers/http-server.js' describe('createDeveloperConnection', () => { - test('ignores a broken project link for organization-owned resources', async () => { + test('ignores a broken project link for team-owned resources', async () => { const loadLinkedProject = vi.fn(() => Promise.reject(new Error('Broken project link')), ) @@ -17,17 +17,17 @@ describe('createDeveloperConnection', () => { }, () => createDeveloperConnection( - {owner: 'organization'}, + {owner: 'team'}, undefined, loadLinkedProject, ), ) - expect(connection.context.owner).toBe('organization') + expect(connection.context.owner).toBe('team') expect(loadLinkedProject).not.toHaveBeenCalled() }) - test('creates an immutable project view from an organization key', async () => { + test('creates an immutable project view from a team key', async () => { const connection = await withEnvironment( { POLYMORFA_API_KEY: 'pmfa_AAECAwQFBgcICQoLDA0ODxAREhM73f-k', @@ -46,7 +46,7 @@ describe('createDeveloperConnection', () => { expect(connection.client.projectId).toBe(PROJECT) expect(connection.context).toMatchObject({ owner: 'project', - principalType: 'organization_key', + principalType: 'team_key', projectId: PROJECT, }) }) diff --git a/test/developer/output.test.ts b/test/developer/output.test.ts index 22ce81ac..aa4da4df 100644 --- a/test/developer/output.test.ts +++ b/test/developer/output.test.ts @@ -4,8 +4,8 @@ import {developerMutation} from '../../src/developer/output.js' const base = { context: { - owner: 'organization' as const, - principalType: 'organization_key' as const, + owner: 'team' as const, + principalType: 'team_key' as const, }, metadata: {attempts: 1, headers: {}, status: 200}, resource: null, diff --git a/test/listener/frames.test.ts b/test/listener/frames.test.ts index ef44116d..0253bd1e 100644 --- a/test/listener/frames.test.ts +++ b/test/listener/frames.test.ts @@ -102,7 +102,7 @@ describe('ListenerFrameDecoder', () => { 'cursor_1', ), ), - ).toThrow('organizationId') + ).toThrow('teamId') const bodyDecoder = startedDecoder() expect(() => @@ -210,7 +210,7 @@ function eventMetadata() { environment: 'development', id: EVENT, metadataExpiresAt: '2026-10-08T00:00:00Z', - organizationId: ORGANIZATION, + teamId: TEAM, payloadAvailability: 'available', projectId: PROJECT, replayableUntil: null, @@ -251,5 +251,5 @@ function ready() { const STREAM = '22222222-2222-4222-8222-222222222222' const PROJECT = '11111111-1111-4111-8111-111111111111' -const ORGANIZATION = '33333333-3333-4333-8333-333333333333' +const TEAM = '33333333-3333-4333-8333-333333333333' const EVENT = '44444444-4444-4444-8444-444444444444' diff --git a/test/listener/session.test.ts b/test/listener/session.test.ts index 892fa8e3..5ce873c8 100644 --- a/test/listener/session.test.ts +++ b/test/listener/session.test.ts @@ -539,7 +539,7 @@ describe('runListener', () => { const PROJECT = '11111111-1111-4111-8111-111111111111' const STREAM = '22222222-2222-4222-8222-222222222222' const AUTHORIZATION = '33333333-3333-4333-8333-333333333333' -const ORGANIZATION = '44444444-4444-4444-8444-444444444444' +const TEAM = '44444444-4444-4444-8444-444444444444' const EVENT = '55555555-5555-4555-8555-555555555555' const SECOND_EVENT = '66666666-6666-4666-8666-666666666666' @@ -639,7 +639,7 @@ function event() { environment: 'development', id: EVENT, metadataExpiresAt: '2026-10-08T00:00:00Z', - organizationId: ORGANIZATION, + teamId: TEAM, payloadAvailability: 'available', projectId: PROJECT, replayableUntil: null, diff --git a/test/mcp/connection-discovery.test.ts b/test/mcp/connection-discovery.test.ts index b39202ec..4a8aecbc 100644 --- a/test/mcp/connection-discovery.test.ts +++ b/test/mcp/connection-discovery.test.ts @@ -79,7 +79,7 @@ describe('MCP connection discovery', () => { }, () => listMcpConnections(PROJECT_ID), ), - ).rejects.toThrow('Select only one organization API key') + ).rejects.toThrow('Select only one team API key') expect(server.requests).toHaveLength(0) }) }) diff --git a/test/sdk/client.test.ts b/test/sdk/client.test.ts index efa4f563..0069d0fd 100644 --- a/test/sdk/client.test.ts +++ b/test/sdk/client.test.ts @@ -80,7 +80,7 @@ describe('createRawClient', () => { expect(client.quickLinks).toHaveProperty('create') }) - test('creates the unified organization client and rejects the wrong surface', () => { + test('creates the unified team client and rejects the wrong surface', () => { const client = createPlatformClient({ surface: 'platform', credential: { diff --git a/test/services/auth.test.ts b/test/services/auth.test.ts index 6328bc6a..14cbd8d2 100644 --- a/test/services/auth.test.ts +++ b/test/services/auth.test.ts @@ -185,7 +185,7 @@ describe('AuthService', () => { }, work: { credential: {account: 'profile:work:apiKey', kind: 'apiKey'}, - organization: 'org_work', + team: 'team_work', }, }, version: 2, @@ -202,7 +202,7 @@ describe('AuthService', () => { active: true, credentialKind: 'apiKey', name: 'work', - organization: 'org_work', + team: 'team_work', }, ]) expect(fixture.credentials.get).not.toHaveBeenCalled() diff --git a/test/services/projects.test.ts b/test/services/projects.test.ts index fa65cc8d..c7264307 100644 --- a/test/services/projects.test.ts +++ b/test/services/projects.test.ts @@ -257,18 +257,18 @@ describe('project context', () => { expect(explicit.context.projectId).toBe(APP) }) - test('organization-owned commands ignore the linked project', async () => { + test('team-owned commands ignore the linked project', async () => { const environment = await resolveDeveloperEnvironment( - {env: {}, linkedProject: WEB, owner: 'organization'}, + {env: {}, linkedProject: WEB, owner: 'team'}, profiles, credentials, lookup, ) - expect(environment.context).toMatchObject({owner: 'organization'}) + expect(environment.context).toMatchObject({owner: 'team'}) expect(environment.context.projectId).toBeUndefined() }) - test('organization-owned profiles do not read a project link', async () => { + test('team-owned profiles do not read a project link', async () => { const loadLinkedProject = vi.fn(() => Promise.reject(new Error('Broken project link')), ) @@ -280,7 +280,7 @@ describe('project context', () => { ...config, profiles: { ...config.profiles, - work: {...config.profiles.work!, owner: 'organization'}, + work: {...config.profiles.work!, owner: 'team'}, }, }), save: () => Promise.resolve(), @@ -289,7 +289,7 @@ describe('project context', () => { lookup, ) - expect(environment.context.owner).toBe('organization') + expect(environment.context.owner).toBe('team') expect(loadLinkedProject).not.toHaveBeenCalled() }) @@ -326,7 +326,7 @@ function project(id: string, slug: string, name: string) { isActive: true, lastActivity: null, name, - teamId: 'org_1', + teamId: 'team_1', slug, stage: 'development', totalMessages: 0,