From 19c2e2a7682b5b6e425df380c8226ec8a4d05103 Mon Sep 17 00:00:00 2001 From: alrayyes <511318+alrayyes@users.noreply.github.com> Date: Sat, 3 Oct 2026 19:51:21 +0000 Subject: [PATCH] fix: regenerate client from updated pipeline-analytics spec --- openapi/SPEC_COMMIT | 2 +- openapi/openapi.yaml | 34 +++++++++++++++++++ .../_generated/api/auth/add_credential.py | 7 ++++ .../_generated/api/auth/webauthn_login.py | 7 ++++ .../_generated/api/auth/webauthn_register.py | 7 ++++ .../_generated/api/mcp/mcp_endpoint.py | 7 ++++ .../_generated/api/repos/discover_repos.py | 7 ++++ .../_generated/api/repos/register_repo.py | 7 ++++ .../api/settings/update_settings.py | 7 ++++ .../api/webhooks/forgejo_webhook.py | 7 ++++ .../_generated/api/webhooks/github_webhook.py | 7 ++++ 11 files changed, 98 insertions(+), 1 deletion(-) diff --git a/openapi/SPEC_COMMIT b/openapi/SPEC_COMMIT index 5d86687..cdc855b 100644 --- a/openapi/SPEC_COMMIT +++ b/openapi/SPEC_COMMIT @@ -1 +1 @@ -4f78103bdc8fb2e24f46194c32c1b33725f85610 +8c863e37a24879b49a403d4b219e77ee00e53c31 diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index af75e05..00f4a6c 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -124,6 +124,8 @@ paths: type: string "401": $ref: "#/components/responses/Unauthorized" + "413": + $ref: "#/components/responses/PayloadTooLarge" /api/repos: get: @@ -170,6 +172,8 @@ paths: $ref: "#/components/responses/Unauthorized" "409": $ref: "#/components/responses/Conflict" + "413": + $ref: "#/components/responses/PayloadTooLarge" /api/repos/identifiers: get: @@ -241,6 +245,8 @@ paths: $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" + "413": + $ref: "#/components/responses/PayloadTooLarge" "502": $ref: "#/components/responses/BadGateway" @@ -587,6 +593,8 @@ paths: $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" + "413": + $ref: "#/components/responses/PayloadTooLarge" /api/auth/register/options: post: @@ -643,6 +651,8 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + "413": + $ref: "#/components/responses/PayloadTooLarge" /api/auth/login/options: post: @@ -697,6 +707,8 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + "413": + $ref: "#/components/responses/PayloadTooLarge" /api/auth/logout: post: @@ -833,6 +845,8 @@ paths: $ref: "#/components/responses/BadRequest" "401": $ref: "#/components/responses/Unauthorized" + "413": + $ref: "#/components/responses/PayloadTooLarge" /api/auth/credentials/{credentialId}: delete: @@ -902,6 +916,8 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + "413": + $ref: "#/components/responses/PayloadTooLarge" /webhooks/forgejo: post: @@ -937,6 +953,8 @@ paths: application/json: schema: $ref: "#/components/schemas/Error" + "413": + $ref: "#/components/responses/PayloadTooLarge" components: securitySchemes: @@ -1062,6 +1080,15 @@ components: default: all responses: + PayloadTooLarge: + description: > + The request body is larger than the limit: 64 KiB for the API and + the MCP endpoint, 2 MiB for the forge webhook receivers. The body is + not read past the limit. + content: + application/json: + schema: + $ref: "#/components/schemas/Error" BadRequest: description: The request body failed validation content: @@ -1134,6 +1161,7 @@ components: enum: [all, healthy, unhealthy] pipelinesRepoSelector: type: string + maxLength: 128 description: > A tracked repo's id, or "all" for every repo -- not validated against an enum, since the set of valid values @@ -1164,6 +1192,7 @@ components: enum: [all, healthy, unhealthy, null] pipelinesRepoSelector: type: [string, "null"] + maxLength: 128 pipelinesSortOrder: type: [string, "null"] enum: [name, lastRun, null] @@ -1271,11 +1300,14 @@ components: $ref: "#/components/schemas/Forge" identifier: type: string + maxLength: 200 forgejoInstanceUrl: type: string format: uri + maxLength: 2048 token: type: string + maxLength: 1024 description: Repo-scoped personal access token. Never echoed back. RepoDiscoveryRequest: @@ -1287,8 +1319,10 @@ components: forgejoInstanceUrl: type: string format: uri + maxLength: 2048 token: type: string + maxLength: 1024 description: Never stored -- used for this one lookup only. HealthStatus: diff --git a/src/pipeline_analytics/_generated/api/auth/add_credential.py b/src/pipeline_analytics/_generated/api/auth/add_credential.py index 489bacd..5480884 100644 --- a/src/pipeline_analytics/_generated/api/auth/add_credential.py +++ b/src/pipeline_analytics/_generated/api/auth/add_credential.py @@ -68,6 +68,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_401 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: diff --git a/src/pipeline_analytics/_generated/api/auth/webauthn_login.py b/src/pipeline_analytics/_generated/api/auth/webauthn_login.py index f0f726e..aa8e74e 100644 --- a/src/pipeline_analytics/_generated/api/auth/webauthn_login.py +++ b/src/pipeline_analytics/_generated/api/auth/webauthn_login.py @@ -52,6 +52,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_401 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: diff --git a/src/pipeline_analytics/_generated/api/auth/webauthn_register.py b/src/pipeline_analytics/_generated/api/auth/webauthn_register.py index 19a8c3c..82a74b1 100644 --- a/src/pipeline_analytics/_generated/api/auth/webauthn_register.py +++ b/src/pipeline_analytics/_generated/api/auth/webauthn_register.py @@ -59,6 +59,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_409 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: diff --git a/src/pipeline_analytics/_generated/api/mcp/mcp_endpoint.py b/src/pipeline_analytics/_generated/api/mcp/mcp_endpoint.py index dbc5940..cecec6a 100644 --- a/src/pipeline_analytics/_generated/api/mcp/mcp_endpoint.py +++ b/src/pipeline_analytics/_generated/api/mcp/mcp_endpoint.py @@ -56,6 +56,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_401 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: diff --git a/src/pipeline_analytics/_generated/api/repos/discover_repos.py b/src/pipeline_analytics/_generated/api/repos/discover_repos.py index 9d42f2d..61ce140 100644 --- a/src/pipeline_analytics/_generated/api/repos/discover_repos.py +++ b/src/pipeline_analytics/_generated/api/repos/discover_repos.py @@ -60,6 +60,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_401 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if response.status_code == 502: response_502 = Error.from_dict(response.json()) diff --git a/src/pipeline_analytics/_generated/api/repos/register_repo.py b/src/pipeline_analytics/_generated/api/repos/register_repo.py index 68938d2..1bdab1b 100644 --- a/src/pipeline_analytics/_generated/api/repos/register_repo.py +++ b/src/pipeline_analytics/_generated/api/repos/register_repo.py @@ -70,6 +70,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_409 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: diff --git a/src/pipeline_analytics/_generated/api/settings/update_settings.py b/src/pipeline_analytics/_generated/api/settings/update_settings.py index 0372dbf..08b4804 100644 --- a/src/pipeline_analytics/_generated/api/settings/update_settings.py +++ b/src/pipeline_analytics/_generated/api/settings/update_settings.py @@ -63,6 +63,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_401 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: diff --git a/src/pipeline_analytics/_generated/api/webhooks/forgejo_webhook.py b/src/pipeline_analytics/_generated/api/webhooks/forgejo_webhook.py index d6cec95..66e8956 100644 --- a/src/pipeline_analytics/_generated/api/webhooks/forgejo_webhook.py +++ b/src/pipeline_analytics/_generated/api/webhooks/forgejo_webhook.py @@ -58,6 +58,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_401 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: diff --git a/src/pipeline_analytics/_generated/api/webhooks/github_webhook.py b/src/pipeline_analytics/_generated/api/webhooks/github_webhook.py index b8c52cb..b3ebe1f 100644 --- a/src/pipeline_analytics/_generated/api/webhooks/github_webhook.py +++ b/src/pipeline_analytics/_generated/api/webhooks/github_webhook.py @@ -58,6 +58,13 @@ def _parse_response(*, client: AuthenticatedClient | Client, response: httpx.Res return response_401 + if response.status_code == 413: + response_413 = Error.from_dict(response.json()) + + + + return response_413 + if client.raise_on_unexpected_status: raise errors.UnexpectedStatus(response.status_code, response.content) else: