|
31179 | 31179 | "properties": { |
31180 | 31180 | "request_id": { |
31181 | 31181 | "type": "string", |
31182 | | - "example": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4" |
| 31182 | + "example": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4", |
| 31183 | + "description": "Unique trace ID of this request; include it when reporting issues so logs can be located." |
31183 | 31184 | }, |
31184 | 31185 | "error": { |
31185 | 31186 | "$ref": "#/components/schemas/DutyError" |
|
45977 | 45978 | "zh-CN", |
45978 | 45979 | "en-US" |
45979 | 45980 | ], |
45980 | | - "description": "Locale" |
| 45981 | + "description": "Locale. One of: `zh-CN` (Simplified Chinese), `en-US` (English); other values are rejected with a 400." |
45981 | 45982 | }, |
45982 | 45983 | "time_zone": { |
45983 | 45984 | "type": "string", |
|
46212 | 46213 | "zh-CN", |
46213 | 46214 | "en-US" |
46214 | 46215 | ], |
46215 | | - "description": "New locale preference." |
| 46216 | + "description": "New locale preference. One of: `zh-CN` (Simplified Chinese), `en-US` (English); other values are rejected with a 400." |
46216 | 46217 | }, |
46217 | 46218 | "time_zone": { |
46218 | 46219 | "type": "string", |
@@ -46454,17 +46455,20 @@ |
46454 | 46455 | "properties": { |
46455 | 46456 | "team_id": { |
46456 | 46457 | "type": "integer", |
46457 | | - "format": "uint64" |
| 46458 | + "format": "uint64", |
| 46459 | + "description": "Team ID." |
46458 | 46460 | }, |
46459 | 46461 | "team_name": { |
46460 | | - "type": "string" |
| 46462 | + "type": "string", |
| 46463 | + "description": "Team name." |
46461 | 46464 | }, |
46462 | 46465 | "person_ids": { |
46463 | 46466 | "type": "array", |
46464 | 46467 | "items": { |
46465 | 46468 | "type": "integer", |
46466 | 46469 | "format": "uint64" |
46467 | | - } |
| 46470 | + }, |
| 46471 | + "description": "Array of person IDs belonging to the team; empty array (never null) when the team has no members." |
46468 | 46472 | } |
46469 | 46473 | } |
46470 | 46474 | }, |
|
46479 | 46483 | "type": "array", |
46480 | 46484 | "items": { |
46481 | 46485 | "$ref": "#/components/schemas/TeamBriefItem" |
46482 | | - } |
| 46486 | + }, |
| 46487 | + "description": "Array of brief team info for the matched `team_ids`; may be null when no ID matches." |
46483 | 46488 | } |
46484 | 46489 | } |
46485 | 46490 | }, |
|
46550 | 46555 | "type": "array", |
46551 | 46556 | "items": { |
46552 | 46557 | "$ref": "#/components/schemas/TeamItem" |
46553 | | - } |
| 46558 | + }, |
| 46559 | + "description": "Array of teams for the current page, used with `p`, `limit` and `total` for pagination; empty array on an empty page." |
46554 | 46560 | } |
46555 | 46561 | } |
46556 | 46562 | }, |
|
46776 | 46782 | "type": "array", |
46777 | 46783 | "items": { |
46778 | 46784 | "$ref": "#/components/schemas/RoleItem" |
46779 | | - } |
| 46785 | + }, |
| 46786 | + "description": "Array of roles; includes account roles plus built-in global roles unless `no_global=true`; empty array when no results." |
46780 | 46787 | } |
46781 | 46788 | } |
46782 | 46789 | }, |
|
46878 | 46885 | "read", |
46879 | 46886 | "manage" |
46880 | 46887 | ], |
46881 | | - "description": "Whether this is a read or manage permission." |
| 46888 | + "description": "Whether this is a read or manage permission. `read`: view-only permission (read/list/query); `manage`: administrative permission covering mutations (create, update, delete, configure)." |
46882 | 46889 | }, |
46883 | 46890 | "description": { |
46884 | 46891 | "type": "string", |
|
46917 | 46924 | "type": "array", |
46918 | 46925 | "items": { |
46919 | 46926 | "$ref": "#/components/schemas/PermissionItem" |
46920 | | - } |
| 46927 | + }, |
| 46928 | + "description": "Array of permission items: system-level permissions plus the caller's account-scoped custom-menu permissions (never other tenants' rows)." |
46921 | 46929 | } |
46922 | 46930 | } |
46923 | 46931 | }, |
|
46962 | 46970 | "menu", |
46963 | 46971 | "url" |
46964 | 46972 | ], |
46965 | | - "description": "Factor type." |
| 46973 | + "description": "Factor type. `api`: backend API factor — `factor_name` is the API name (e.g. `skill:write:upload`), enforced at the gateway; `button`: UI action factor, used by the role-config page to render action toggles; `visit`: page-visit factor (custom menu pages use this type); `menu`: menu-visibility factor (legacy, no current seed data); `url`: page route-path factor (legacy, no current seed data)." |
46966 | 46974 | } |
46967 | 46975 | } |
46968 | 46976 | }, |
@@ -47122,10 +47130,12 @@ |
47122 | 47130 | "type": "object", |
47123 | 47131 | "properties": { |
47124 | 47132 | "Key": { |
47125 | | - "type": "string" |
| 47133 | + "type": "string", |
| 47134 | + "description": "Name of a URL path parameter (the `:xxx` placeholder in the route)." |
47126 | 47135 | }, |
47127 | 47136 | "Value": { |
47128 | | - "type": "string" |
| 47137 | + "type": "string", |
| 47138 | + "description": "The actual value of that path parameter in this request." |
47129 | 47139 | } |
47130 | 47140 | } |
47131 | 47141 | }, |
|
47204 | 47214 | "type": "array", |
47205 | 47215 | "items": { |
47206 | 47216 | "$ref": "#/components/schemas/AuditOperationTypeItem" |
47207 | | - } |
| 47217 | + }, |
| 47218 | + "description": "Array of all auditable operation types (only APIs flagged for audit); always an array, possibly empty." |
47208 | 47219 | } |
47209 | 47220 | } |
47210 | 47221 | }, |
|
50889 | 50900 | }, |
50890 | 50901 | "auth_mode": { |
50891 | 50902 | "type": "string", |
50892 | | - "description": "Authentication mode.", |
| 50903 | + "description": "Authentication mode. One of: `shared` (a single static credential saved on the resource and shared by all callers in the account; the default — an empty value behaves the same), `per_user_secret` (each user stores their own secret per `secret_schema`, injected per user at runtime), `per_user_oauth` (each user completes their own OAuth grant; discovery and registration run lazily on first use).", |
50893 | 50904 | "enum": [ |
50894 | 50905 | "shared", |
50895 | 50906 | "per_user_secret", |
|
51173 | 51184 | }, |
51174 | 51185 | "environment_kind": { |
51175 | 51186 | "type": "string", |
51176 | | - "description": "Runtime environment kind. Omit or send an empty value for automatic selection.", |
| 51187 | + "description": "Runtime environment kind. Omit or send an empty value for automatic selection. One of: `cloud` (platform-hosted cloud sandbox), `byoc` (a self-hosted BYOC runner in the account, used with `environment_id`); automatic selection prefers an online BYOC runner and falls back to the cloud sandbox.", |
51177 | 51188 | "enum": [ |
51178 | 51189 | "", |
51179 | 51190 | "cloud", |
|
51269 | 51280 | "person", |
51270 | 51281 | "team" |
51271 | 51282 | ], |
51272 | | - "description": "Hidden session run scope." |
| 51283 | + "description": "Hidden session run scope. One of: `person` (personal rule, team_id=0, runs as the creator; disabled when the creator leaves the account), `team` (team rule, team_id>0, owned by the team and shared with its members; survives the creator leaving). Derived from the rule's team_id." |
51273 | 51284 | }, |
51274 | 51285 | "cron_expr": { |
51275 | 51286 | "type": "string", |
|
51285 | 51296 | }, |
51286 | 51297 | "environment_kind": { |
51287 | 51298 | "type": "string", |
51288 | | - "description": "Runtime environment kind. Omit or send an empty value for automatic selection.", |
| 51299 | + "description": "Runtime environment kind. Omit or send an empty value for automatic selection. One of: `cloud` (platform-hosted cloud sandbox), `byoc` (self-hosted BYOC runner in the account); an empty value means automatic selection (prefers an online BYOC runner, falls back to the cloud sandbox).", |
51289 | 51300 | "enum": [ |
51290 | 51301 | "", |
51291 | 51302 | "cloud", |
|
51456 | 51467 | "type": "array", |
51457 | 51468 | "items": { |
51458 | 51469 | "$ref": "#/components/schemas/AutomationRuleItem" |
51459 | | - } |
| 51470 | + }, |
| 51471 | + "description": "Array of automation rules for the current page, used with `total` for pagination." |
51460 | 51472 | } |
51461 | 51473 | }, |
51462 | 51474 | "required": [ |
|
51617 | 51629 | "http_post", |
51618 | 51630 | "oncall_incident" |
51619 | 51631 | ], |
51620 | | - "description": "Trigger kind." |
| 51632 | + "description": "Trigger kind. One of:\n| Value | Meaning |\n| --- | --- |\n| `schedule` | Fired by the rule's schedule trigger |\n| `debug` | Debug run (reserved; current rule runs never carry this kind) |\n| `manual` | Triggered manually by a user |\n| `http_post` | Fired via the rule's HTTP POST webhook |\n| `oncall_incident` | Fired by an on-call incident event |" |
51621 | 51633 | }, |
51622 | 51634 | "occurrence_key": { |
51623 | 51635 | "type": "string", |
|
51635 | 51647 | "skipped", |
51636 | 51648 | "abandoned" |
51637 | 51649 | ], |
51638 | | - "description": "Run status." |
| 51650 | + "description": "Run status. One of (the first three are in-flight, the rest terminal):\n| Value | Meaning |\n| --- | --- |\n| `queued` | Enqueued, waiting for a worker |\n| `running` | Executing |\n| `retrying` | An attempt failed and a retry is scheduled |\n| `succeeded` | Completed successfully |\n| `partial` | Partially succeeded (currently only produced by memory-consolidation runs; rule runs never reach it) |\n| `failed` | Terminal failure, no further retries |\n| `skipped` | Not executed (e.g. grace period expired, trigger or rule invalid); the reason is kept on the run record |\n| `abandoned` | Still in-flight past the stale threshold and swept as never-completed (e.g. worker died) |" |
51639 | 51651 | }, |
51640 | 51652 | "attempts": { |
51641 | 51653 | "type": "integer", |
|
51767 | 51779 | "type": "array", |
51768 | 51780 | "items": { |
51769 | 51781 | "$ref": "#/components/schemas/AutomationRunItem" |
51770 | | - } |
| 51782 | + }, |
| 51783 | + "description": "Array of run records for the given `rule_id`, filtered by the request's status/trigger-kind/time-range and paginated." |
51771 | 51784 | } |
51772 | 51785 | }, |
51773 | 51786 | "required": [ |
|
51841 | 51854 | "type": "array", |
51842 | 51855 | "items": { |
51843 | 51856 | "$ref": "#/components/schemas/AutomationTemplateItem" |
51844 | | - } |
| 51857 | + }, |
| 51858 | + "description": "Array of built-in automation templates, with display text localized by the request `locale` (falling back to request headers)." |
51845 | 51859 | } |
51846 | 51860 | }, |
51847 | 51861 | "required": [ |
|
51977 | 51991 | }, |
51978 | 51992 | "status": { |
51979 | 51993 | "type": "string", |
51980 | | - "description": "Event status.", |
| 51994 | + "description": "Event status. One of: `normal` (a live event included in the context fed to the model), `compressed` (folded into a compaction summary boundary event; no longer loaded for the model, kept as history only).", |
51981 | 51995 | "enum": [ |
51982 | 51996 | "normal", |
51983 | 51997 | "compressed" |
|
52087 | 52101 | }, |
52088 | 52102 | "environment_kind": { |
52089 | 52103 | "type": "string", |
52090 | | - "description": "Pin the server to a specific BYOC runner (`environment_id` required). Omit or send empty for automatic selection; `cloud` is not supported for MCP servers.", |
| 52104 | + "description": "Pin the server to a specific BYOC runner (`environment_id` required). Omit or send empty for automatic selection; `cloud` is not supported for MCP servers. The only accepted value: `byoc` (a self-hosted BYOC runner in the account; the MCP server process runs on the customer's own infrastructure).", |
52091 | 52105 | "enum": [ |
52092 | 52106 | "byoc" |
52093 | 52107 | ] |
|
52189 | 52203 | }, |
52190 | 52204 | "transport": { |
52191 | 52205 | "type": "string", |
52192 | | - "description": "Transport protocol.", |
| 52206 | + "description": "Transport protocol. One of: `stdio` (standard I/O to a local subprocess), `sse` (standalone SSE, the legacy MCP transport), `streamable-http` (the newer HTTP streaming transport).", |
52193 | 52207 | "enum": [ |
52194 | 52208 | "stdio", |
52195 | 52209 | "sse", |
|
52270 | 52284 | }, |
52271 | 52285 | "auth_mode": { |
52272 | 52286 | "type": "string", |
52273 | | - "description": "Authentication mode.", |
| 52287 | + "description": "Authentication mode. One of: `shared` (a single static credential saved on the resource and shared by all callers in the account; the default — an empty value behaves the same), `per_user_secret` (each user stores their own secret per `secret_schema`, injected per user at runtime), `per_user_oauth` (each user completes their own OAuth grant; discovery and registration run lazily on first use).", |
52274 | 52288 | "enum": [ |
52275 | 52289 | "shared", |
52276 | 52290 | "per_user_secret", |
|
52594 | 52608 | "person", |
52595 | 52609 | "team" |
52596 | 52610 | ], |
52597 | | - "description": "Resolved run scope for this run; mirrors the rule's run_scope." |
| 52611 | + "description": "Resolved run scope for this run; mirrors the rule's run_scope. One of: `person` (personal rule, runs as its creator), `team` (team rule, runs under the owning team)." |
52598 | 52612 | }, |
52599 | 52613 | "owner_id": { |
52600 | 52614 | "type": "integer", |
|
52750 | 52764 | }, |
52751 | 52765 | "entry_kind": { |
52752 | 52766 | "type": "string", |
52753 | | - "description": "Surface that created the session.", |
| 52767 | + "description": "Surface that created the session. One of:\n| Value | Meaning |\n| --- | --- |\n| `web` | Created from the web console |\n| `im` | Created from an IM client (IM bot / IM H5) |\n| `api` | Created via the public API |\n| `automation` | Created by an automation rule (unattended run) |\n| `subagent` | Child session spawned by a parent's agent_dispatch (audit label; at runtime it executes on the web tool surface) |", |
52754 | 52768 | "enum": [ |
52755 | 52769 | "web", |
52756 | 52770 | "im", |
@@ -52794,12 +52808,13 @@ |
52794 | 52808 | }, |
52795 | 52809 | "access_source": { |
52796 | 52810 | "type": "string", |
52797 | | - "description": "How the caller received access to this session. Omitted when no access source is resolved.", |
| 52811 | + "description": "How the caller received access to this session. Omitted when no access source is resolved. One of:\n| Value | Meaning |\n| --- | --- |\n| `owner` | Caller is the session creator (full access) |\n| `team_member` | Caller belongs to the session's bound team (full access) |\n| `manager` | Manager grant (reserved; never produced by the current version) |\n| `share_link` | Granted via a valid share link (view/fork only; cannot continue or manage) |\n| `participant` | Same-account non-member granted via a participable team session (view/continue/fork only) |", |
52798 | 52812 | "enum": [ |
52799 | 52813 | "owner", |
52800 | 52814 | "team_member", |
52801 | 52815 | "manager", |
52802 | | - "share_link" |
| 52816 | + "share_link", |
| 52817 | + "participant" |
52803 | 52818 | ] |
52804 | 52819 | }, |
52805 | 52820 | "share_enabled": { |
|
52823 | 52838 | }, |
52824 | 52839 | "status": { |
52825 | 52840 | "type": "string", |
52826 | | - "description": "Lifecycle status.", |
| 52841 | + "description": "Lifecycle status. One of: `enabled` (active), `deleted` (soft-deleted, no longer accessible).", |
52827 | 52842 | "enum": [ |
52828 | 52843 | "enabled", |
52829 | 52844 | "deleted" |
|
52952 | 52967 | "properties": { |
52953 | 52968 | "app_name": { |
52954 | 52969 | "type": "string", |
52955 | | - "description": "Agent app whose sessions to list.", |
| 52970 | + "description": "Agent app whose sessions to list. One of:\n| Value | Meaning |\n| --- | --- |\n| `ask-ai` | Ask AI assistant |\n| `support` | Customer-support agent |\n| `support-website` | Website support agent (exposed over A2A, not built into the console) |\n| `support-flashcat` | Flashcat-site support agent (exposed over A2A) |\n| `ai-sre` | The AI SRE main app |\n| `template-assistant` | Notification-template assistant (template editing/validation) |\n| `swe` | Internal benchmarking app (not customer-facing) |", |
52956 | 52971 | "enum": [ |
52957 | 52972 | "ask-ai", |
52958 | 52973 | "support", |
|
58423 | 58438 | "properties": { |
58424 | 58439 | "code": { |
58425 | 58440 | "type": "string", |
58426 | | - "description": "Warning code.", |
| 58441 | + "description": "Warning code. One of: `unresolved_reference` (an @ref in the written file's content points to a file that does not exist in the pack; `ref` carries it), `still_referenced_by` (the deleted file is still @ref-referenced by other files in the pack; `refs` lists the referrers).", |
58427 | 58442 | "enum": [ |
58428 | 58443 | "unresolved_reference", |
58429 | 58444 | "still_referenced_by" |
|
58464 | 58479 | }, |
58465 | 58480 | "scope": { |
58466 | 58481 | "type": "string", |
58467 | | - "description": "Restrict to one scope; `all` (default) overrides `include_account`.", |
| 58482 | + "description": "Restrict to one scope; `all` (default) overrides `include_account`. One of: `all` (account scope plus visible team scopes), `account` (account-level packs only), `team` (team-level packs only, can be combined with `team_ids`).", |
58468 | 58483 | "enum": [ |
58469 | 58484 | "all", |
58470 | 58485 | "account", |
|
58499 | 58514 | "properties": { |
58500 | 58515 | "scope": { |
58501 | 58516 | "type": "string", |
58502 | | - "description": "Scope of the pack to ensure.", |
| 58517 | + "description": "Scope of the pack to ensure. One of: `account` (account-level pack; scope_id is forced to the caller's account ID and only account admins may create it; first creation seeds a default DUTY.md), `team` (team-level pack; the `scope_id` team ID is required and the caller must belong to that team).", |
58503 | 58518 | "enum": [ |
58504 | 58519 | "account", |
58505 | 58520 | "team" |
|
58645 | 58660 | "type": "array", |
58646 | 58661 | "items": { |
58647 | 58662 | "$ref": "#/components/schemas/KnowledgeFileItem" |
58648 | | - } |
| 58663 | + }, |
| 58664 | + "description": "Array of files in this knowledge pack; empty array when the pack has no files." |
58649 | 58665 | } |
58650 | 58666 | }, |
58651 | 58667 | "required": [ |
|
58661 | 58677 | "type": "array", |
58662 | 58678 | "items": { |
58663 | 58679 | "$ref": "#/components/schemas/KnowledgePackItem" |
58664 | | - } |
| 58680 | + }, |
| 58681 | + "description": "Array of visible knowledge packs after filtering (current page), used with `total` for pagination." |
58665 | 58682 | }, |
58666 | 58683 | "total": { |
58667 | 58684 | "type": "integer", |
|
58682 | 58699 | "type": "array", |
58683 | 58700 | "items": { |
58684 | 58701 | "$ref": "#/components/schemas/KnowledgeFileItem" |
58685 | | - } |
| 58702 | + }, |
| 58703 | + "description": "Array of files in the specified knowledge pack; empty array when the pack has no files." |
58686 | 58704 | }, |
58687 | 58705 | "total": { |
58688 | 58706 | "type": "integer", |
|
58723 | 58741 | "type": "array", |
58724 | 58742 | "items": { |
58725 | 58743 | "$ref": "#/components/schemas/KnowledgeWarning" |
58726 | | - } |
| 58744 | + }, |
| 58745 | + "description": "Non-blocking warnings after a successful write; `code=unresolved_reference` means an @ref in the file content points to a file that does not exist in the pack. Absent when there are no warnings (omitempty)." |
58727 | 58746 | } |
58728 | 58747 | }, |
58729 | 58748 | "required": [ |
|
58759 | 58778 | "type": "array", |
58760 | 58779 | "items": { |
58761 | 58780 | "$ref": "#/components/schemas/KnowledgeWarning" |
58762 | | - } |
| 58781 | + }, |
| 58782 | + "description": "Non-blocking warnings after deletion; `code=still_referenced_by` means the (force-)deleted file is still @ref-referenced by other files in the pack (`refs` lists the referrers). Absent when there are no warnings (omitempty)." |
58763 | 58783 | } |
58764 | 58784 | } |
58765 | 58785 | } |
|
0 commit comments