diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yaml index 2ffeaf70..4defdd58 100644 --- a/apps/engine/docs/openapi.yaml +++ b/apps/engine/docs/openapi.yaml @@ -2542,6 +2542,12 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.WorkerResponse" + "400": + description: Bad Request + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" "500": description: Internal Server Error content: @@ -3426,6 +3432,9 @@ components: type: string enum: - webhook + - rate_limit + rate_limit_config: + $ref: "#/components/schemas/schemas.CreateRateLimitConfigRequest" retry: $ref: "#/components/schemas/schemas.CreateRetryConfigRequest" status: @@ -3459,6 +3468,8 @@ components: type: string plugin_type: type: string + rate_limit_config: + $ref: "#/components/schemas/schemas.RateLimitConfigResponse" retry: $ref: "#/components/schemas/schemas.RetryConfigResponse" status: @@ -3471,6 +3482,24 @@ components: type: integer webhook_config: $ref: "#/components/schemas/schemas.WebhookConfigResponse" + schemas.CreateRateLimitConfigRequest: + type: object + required: + - rules + properties: + rules: + type: array + maxItems: 100 + minItems: 1 + uniqueItems: true + items: + $ref: "#/components/schemas/schemas.RateLimitRuleRequest" + status: + enum: + - active + - inactive + allOf: + - $ref: "#/components/schemas/plugins.HookPointStatus" schemas.CreateRetryConfigRequest: type: object properties: @@ -3505,7 +3534,7 @@ components: names are not yet supported. type: array - maxItems: 500 + maxItems: 5000 uniqueItems: true items: type: string @@ -3925,6 +3954,8 @@ components: schemas.MCPWorkerConfigResponse: type: object properties: + authorized_by: + type: string external_id: type: string headers: @@ -4466,12 +4497,24 @@ components: type: string maxLength: 256 minLength: 1 + rate_limit_config: + $ref: "#/components/schemas/schemas.PatchRateLimitConfigRequest" retry: $ref: "#/components/schemas/schemas.PatchRetryConfigRequest" status: $ref: "#/components/schemas/plugins.PluginStatus" webhook_config: $ref: "#/components/schemas/schemas.PatchWebhookConfigRequest" + schemas.PatchRateLimitConfigRequest: + type: object + properties: + rules: + type: array + maxItems: 100 + minItems: 1 + uniqueItems: true + items: + $ref: "#/components/schemas/schemas.RateLimitRuleRequest" schemas.PatchRetryConfigRequest: type: object properties: @@ -4499,7 +4542,7 @@ components: properties: allowed_tools: type: array - maxItems: 500 + maxItems: 5000 uniqueItems: true items: type: string @@ -4581,6 +4624,8 @@ components: type: string plugin_type: type: string + rate_limit_config: + $ref: "#/components/schemas/schemas.RateLimitConfigResponse" retry: $ref: "#/components/schemas/schemas.RetryConfigResponse" status: @@ -4593,6 +4638,47 @@ components: type: integer webhook_config: $ref: "#/components/schemas/schemas.WebhookConfigResponse" + schemas.RateLimitConfigResponse: + type: object + properties: + rules: + type: array + items: + $ref: "#/components/schemas/schemas.RateLimitRuleResponse" + schemas.RateLimitRuleRequest: + type: object + required: + - limit + - match + - time_unit + properties: + allow_on_unavailable: + type: boolean + limit: + type: integer + minimum: 1 + match: + type: string + maxLength: 256 + time_unit: + type: string + enum: + - s + - m + - h + - d + - mo + schemas.RateLimitRuleResponse: + type: object + properties: + allow_on_unavailable: + type: boolean + limit: + type: integer + match: + type: string + time_unit: + type: string schemas.Requirements: type: object properties: @@ -4998,8 +5084,28 @@ components: additionalProperties: {} fully_qualified_name: type: string + index_state: + description: >- + IndexState reports whether this tool is available through tool + search yet + + ("indexed" or "pending"). Populated only when tool search is active for the + + org and Condex is reachable; otherwise omitted, so existing callers are + + unaffected. The handler derives and injects this value — see the + + tool-listing enrichment path. + type: string input: $ref: "#/components/schemas/schemas.Input" + last_indexed_at: + description: >- + LastIndexedAt is the tool's last successful index-write time, set + only when + + IndexState is "indexed" and Condex reported a timestamp. + type: string metadata: $ref: "#/components/schemas/tool.ToolMetadata" name: @@ -5144,7 +5250,7 @@ components: names are not yet supported. type: array - maxItems: 500 + maxItems: 5000 uniqueItems: true items: type: string