Skip to content

Commit 46ea0ed

Browse files
committed
fix: ref local schema
1 parent a45de19 commit 46ea0ed

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

docs/api-reference/openapi3.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"openapi":"3.1.0","info":{"title":"Developer API","description":"API for application developers","version":"1.0.0"},"paths":{"/v1/organizations/{org_id}/users":{"get":{"tags":["users","users","users"],"summary":"Get Users","description":"Get paginated list of users for a specific organization.\n\nReturns a paginated list of all users associated with the specified organization.\nThe requesting user must be a member of the organization to access this endpoint.\n\nRate limit: 60 requests per 30 seconds.","operationId":"get_users_v1_organizations__org_id__users_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_UserResponse_"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIRateLimitErrorResponse"}}},"description":"Too Many Requests"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionsErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations/{org_id}/users/{user_id}":{"get":{"tags":["users","users","users"],"summary":"Get User","description":"Get details for a specific user in an organization.\n\nReturns detailed information about a user within the specified organization.\nThe requesting user must be a member of the organization to access this endpoint.\n\nRate limit: 60 requests per 30 seconds.","operationId":"get_user_v1_organizations__org_id__users__user_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIRateLimitErrorResponse"}}},"description":"Too Many Requests"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionsErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations/{org_id}/agent/run":{"post":{"tags":["agents","agents","agents"],"summary":"Create Agent Run","description":"Create a new agent run.\n\nCreates and initiates a long-running agent process based on the provided prompt.\nThe process will complete asynchronously, and the response contains the agent run ID\nwhich can be used to check the status later. The requesting user must be a member\nof the specified organization.\n\nRate limit: 10 requests per minute.","operationId":"create_agent_run_v1_organizations__org_id__agent_run_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentRunInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunResponse"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIRateLimitErrorResponse"}}},"description":"Too Many Requests"},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunLimitReachedErrorResponse"}}},"description":"Payment Required"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionsErrorResponse"}}},"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations/{org_id}/agent/run/{agent_run_id}":{"get":{"tags":["agents","agents","agents"],"summary":"Get Agent Run","description":"Retrieve the status and result of an agent run.\n\nReturns the current status, progress, and any available results for the specified agent run.\nThe agent run must belong to the specified organization. If the agent run is still in progress,\nthis endpoint can be polled to check for completion.\n\nRate limit: 60 requests per 30 seconds.","operationId":"get_agent_run_v1_organizations__org_id__agent_run__agent_run_id__get","parameters":[{"name":"agent_run_id","in":"path","required":true,"schema":{"type":"integer","title":"Agent Run Id"}},{"name":"org_id","in":"path","required":true,"schema":{"type":"integer","title":"Org Id"}},{"name":"authorization","in":"header","required":false,"schema":{"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunResponse"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIRateLimitErrorResponse"}}},"description":"Too Many Requests"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PermissionsErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunNotFoundErrorResponse"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/organizations":{"get":{"tags":["organizations","organizations","organizations"],"summary":"Get Organizations","description":"Get organizations for the authenticated user.\n\nReturns a paginated list of all organizations that the authenticated user is a member of.\nResults include basic organization details such as name, ID, and membership information.\nUse pagination parameters to control the number of results returned.\n\nRate limit: 60 requests per 30 seconds.","operationId":"get_organizations_v1_organizations_get","parameters":[{"name":"skip","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Skip"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_OrganizationResponse_"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIRateLimitErrorResponse"}}},"description":"Too Many Requests"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"APIRateLimitErrorResponse":{"properties":{"message":{"type":"string","title":"Message","default":"Rate limit exceeded. Please try again later."},"status_code":{"type":"integer","title":"Status Code","default":429}},"type":"object","title":"APIRateLimitErrorResponse"},"AgentRunLimitReachedErrorResponse":{"properties":{"message":{"type":"string","title":"Message","default":"Alloted agent runs for the current billing plan have been reached. Please upgrade your plan to continue."},"status_code":{"type":"integer","title":"Status Code","default":402}},"type":"object","title":"AgentRunLimitReachedErrorResponse"},"AgentRunNotFoundErrorResponse":{"properties":{"message":{"type":"string","title":"Message","default":"Agent run not found."},"status_code":{"type":"integer","title":"Status Code","default":404}},"type":"object","title":"AgentRunNotFoundErrorResponse"},"AgentRunResponse":{"properties":{"id":{"type":"integer","title":"Id"},"organization_id":{"type":"integer","title":"Organization Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"web_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Url"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"}},"type":"object","required":["id","organization_id"],"title":"AgentRunResponse","description":"Represents an agent run in API responses"},"CreateAgentRunInput":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"CreateAgentRunInput"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"OrganizationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"settings":{"$ref":"#/components/schemas/OrganizationSettings"}},"type":"object","required":["id","name","settings"],"title":"OrganizationResponse","description":"Represents an organization in API responses"},"OrganizationSettings":{"properties":{"enable_pr_creation":{"type":"boolean","title":"Enable Pr Creation","default":true},"enable_rules_detection":{"type":"boolean","title":"Enable Rules Detection","default":true}},"type":"object","title":"OrganizationSettings"},"Page_OrganizationResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrganizationResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"size":{"type":"integer","title":"Size"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[OrganizationResponse]"},"Page_UserResponse_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"size":{"type":"integer","title":"Size"},"pages":{"type":"integer","title":"Pages"}},"type":"object","required":["items","total","page","size","pages"],"title":"Page[UserResponse]"},"PermissionsErrorResponse":{"properties":{"message":{"type":"string","title":"Message","default":"You do not have access to this organization."},"status_code":{"type":"integer","title":"Status Code","default":403}},"type":"object","title":"PermissionsErrorResponse"},"UserNotFoundErrorResponse":{"properties":{"message":{"type":"string","title":"Message","default":"User not found."},"status_code":{"type":"integer","title":"Status Code","default":404}},"type":"object","title":"UserNotFoundErrorResponse"},"UserResponse":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"github_user_id":{"type":"string","title":"Github User Id"},"github_username":{"type":"string","title":"Github Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["id","email","github_user_id","github_username","avatar_url","full_name"],"title":"UserResponse","description":"Represents a user in API responses"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}

docs/docs.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@
3939
},
4040
{
4141
"tab": "API Reference",
42-
"openapi": {
43-
"source": "https://api.codegen.com/api/openapi.json",
44-
"directory": "/api-reference"
45-
}
42+
"groups": [
43+
{
44+
"group": "Endpoints",
45+
"openapi": {
46+
"source": "/api-reference/openapi3.json",
47+
"directory": "api-reference"
48+
}
49+
}
50+
]
4651
},
4752
{
4853
"tab": "Blog",

0 commit comments

Comments
 (0)