|
1628 | 1628 | } |
1629 | 1629 | } |
1630 | 1630 | }, |
| 1631 | + "/v1/organizations/{org_id}/cli/rules": { |
| 1632 | + "get": { |
| 1633 | + "tags": [ |
| 1634 | + "cli-rules", |
| 1635 | + "cli-rules", |
| 1636 | + "cli-rules" |
| 1637 | + ], |
| 1638 | + "summary": "Get Cli Rules", |
| 1639 | + "description": "Get organization and user rules for CLI applications.\n\nThis endpoint is designed for CLI applications that need to fetch both organization-specific\nrules and user-specific custom prompts that are used in prompts. This includes:\n\n- Organization rules: Same as MCP organization_rules prompt and agent prompt builders\n- User custom prompt: Same as MCP user_custom_prompt and agent prompt builders\n\nReturns the rules and prompts that should be followed by AI agents.\n\nRate limit: 30 requests per minute.", |
| 1640 | + "operationId": "get_cli_rules_v1_organizations__org_id__cli_rules_get", |
| 1641 | + "parameters": [ |
| 1642 | + { |
| 1643 | + "name": "org_id", |
| 1644 | + "in": "path", |
| 1645 | + "required": true, |
| 1646 | + "schema": { |
| 1647 | + "type": "integer", |
| 1648 | + "title": "Org Id" |
| 1649 | + } |
| 1650 | + }, |
| 1651 | + { |
| 1652 | + "name": "authorization", |
| 1653 | + "in": "header", |
| 1654 | + "required": false, |
| 1655 | + "schema": { |
| 1656 | + "title": "Authorization" |
| 1657 | + } |
| 1658 | + } |
| 1659 | + ], |
| 1660 | + "responses": { |
| 1661 | + "200": { |
| 1662 | + "description": "Successful Response", |
| 1663 | + "content": { |
| 1664 | + "application/json": { |
| 1665 | + "schema": { |
| 1666 | + "$ref": "#/components/schemas/CLIRulesResponse" |
| 1667 | + } |
| 1668 | + } |
| 1669 | + } |
| 1670 | + }, |
| 1671 | + "429": { |
| 1672 | + "content": { |
| 1673 | + "application/json": { |
| 1674 | + "schema": { |
| 1675 | + "$ref": "#/components/schemas/APIRateLimitErrorResponse" |
| 1676 | + } |
| 1677 | + } |
| 1678 | + }, |
| 1679 | + "description": "Too Many Requests" |
| 1680 | + }, |
| 1681 | + "403": { |
| 1682 | + "content": { |
| 1683 | + "application/json": { |
| 1684 | + "schema": { |
| 1685 | + "$ref": "#/components/schemas/PermissionsErrorResponse" |
| 1686 | + } |
| 1687 | + } |
| 1688 | + }, |
| 1689 | + "description": "Forbidden" |
| 1690 | + }, |
| 1691 | + "422": { |
| 1692 | + "description": "Validation Error", |
| 1693 | + "content": { |
| 1694 | + "application/json": { |
| 1695 | + "schema": { |
| 1696 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1697 | + } |
| 1698 | + } |
| 1699 | + } |
| 1700 | + } |
| 1701 | + } |
| 1702 | + } |
| 1703 | + }, |
1631 | 1704 | "/v1/alpha/organizations/{org_id}/agent/run/{agent_run_id}/logs": { |
1632 | 1705 | "get": { |
1633 | 1706 | "tags": [ |
|
2182 | 2255 | ], |
2183 | 2256 | "title": "ApiAgentRunSourceType" |
2184 | 2257 | }, |
| 2258 | + "CLIRulesResponse": { |
| 2259 | + "properties": { |
| 2260 | + "organization_rules": { |
| 2261 | + "anyOf": [ |
| 2262 | + { |
| 2263 | + "type": "string" |
| 2264 | + }, |
| 2265 | + { |
| 2266 | + "type": "null" |
| 2267 | + } |
| 2268 | + ], |
| 2269 | + "title": "Organization Rules" |
| 2270 | + }, |
| 2271 | + "user_custom_prompt": { |
| 2272 | + "anyOf": [ |
| 2273 | + { |
| 2274 | + "type": "string" |
| 2275 | + }, |
| 2276 | + { |
| 2277 | + "type": "null" |
| 2278 | + } |
| 2279 | + ], |
| 2280 | + "title": "User Custom Prompt" |
| 2281 | + } |
| 2282 | + }, |
| 2283 | + "type": "object", |
| 2284 | + "required": [ |
| 2285 | + "organization_rules", |
| 2286 | + "user_custom_prompt" |
| 2287 | + ], |
| 2288 | + "title": "CLIRulesResponse", |
| 2289 | + "description": "Response model for CLI rules containing organization and user rules." |
| 2290 | + }, |
2185 | 2291 | "CheckSuiteSettingsRequest": { |
2186 | 2292 | "properties": { |
2187 | 2293 | "check_retry_count": { |
|
0 commit comments