Skip to content

Commit 12387e7

Browse files
committed
Update OpenAPI spec codegen-sh/cloud@8703233
1 parent 8703233 commit 12387e7

File tree

1 file changed

+106
-0
lines changed

1 file changed

+106
-0
lines changed

docs/api-reference/openapi3.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,6 +1628,79 @@
16281628
}
16291629
}
16301630
},
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+
},
16311704
"/v1/alpha/organizations/{org_id}/agent/run/{agent_run_id}/logs": {
16321705
"get": {
16331706
"tags": [
@@ -2182,6 +2255,39 @@
21822255
],
21832256
"title": "ApiAgentRunSourceType"
21842257
},
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+
},
21852291
"CheckSuiteSettingsRequest": {
21862292
"properties": {
21872293
"check_retry_count": {

0 commit comments

Comments
 (0)