From e9fb64bb71d62be87bcb25ba147b87b4ce7890b3 Mon Sep 17 00:00:00 2001 From: apify-service-account Date: Thu, 9 Apr 2026 08:30:32 +0000 Subject: [PATCH] [TODO]: update generated models from published OpenAPI spec --- src/apify_client/_models.py | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/apify_client/_models.py b/src/apify_client/_models.py index 39ecabb5..13f39659 100644 --- a/src/apify_client/_models.py +++ b/src/apify_client/_models.py @@ -1,6 +1,6 @@ # generated by datamodel-codegen: -# filename: openapi.json -# timestamp: 2026-04-09T07:50:13+00:00 +# filename: https://docs.apify.com/api/openapi.json +# timestamp: 2026-04-09T08:30:29+00:00 from __future__ import annotations @@ -86,33 +86,12 @@ class ListOfActorsResponse(BaseModel): data: ListOfActors -class Type(StrEnum): - """Machine-processable error type identifier.""" - - ACTOR_MEMORY_LIMIT_EXCEEDED = 'actor-memory-limit-exceeded' - ACTOR_NOT_FOUND = 'actor-not-found' - INVALID_INPUT = 'invalid-input' - METHOD_NOT_ALLOWED = 'method-not-allowed' - PERMISSION_DENIED = 'permission-denied' - RATE_LIMIT_EXCEEDED = 'rate-limit-exceeded' - RECORD_NOT_FOUND = 'record-not-found' - RECORD_NOT_UNIQUE = 'record-not-unique' - RECORD_OR_TOKEN_NOT_FOUND = 'record-or-token-not-found' - REQUEST_ID_INVALID = 'request-id-invalid' - REQUEST_TOO_LARGE = 'request-too-large' - RUN_FAILED = 'run-failed' - RUN_TIMEOUT_EXCEEDED = 'run-timeout-exceeded' - TOKEN_NOT_VALID = 'token-not-valid' - UNKNOWN_BUILD_TAG = 'unknown-build-tag' - UNSUPPORTED_CONTENT_ENCODING = 'unsupported-content-encoding' - - class Error(BaseModel): model_config = ConfigDict( extra='allow', populate_by_name=True, ) - type: Annotated[Type | None, Field(title='ErrorType')] = None + type: Annotated[ErrorType | None, Field(title='ErrorType')] = None """ Machine-processable error type identifier. """