Skip to content

Commit 2021928

Browse files
refactor: Update generated models from published OpenAPI spec (#708)
This PR updates the auto-generated Pydantic models from the published OpenAPI specification. ## Changes - Regenerated `src/apify_client/_models.py` using `datamodel-codegen`
1 parent 6065fb0 commit 2021928

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

src/apify_client/_models.py

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
2-
# filename: openapi.json
3-
# timestamp: 2026-04-09T07:50:13+00:00
2+
# filename: https://docs.apify.com/api/openapi.json
3+
# timestamp: 2026-04-09T08:30:29+00:00
44

55
from __future__ import annotations
66

@@ -86,33 +86,12 @@ class ListOfActorsResponse(BaseModel):
8686
data: ListOfActors
8787

8888

89-
class Type(StrEnum):
90-
"""Machine-processable error type identifier."""
91-
92-
ACTOR_MEMORY_LIMIT_EXCEEDED = 'actor-memory-limit-exceeded'
93-
ACTOR_NOT_FOUND = 'actor-not-found'
94-
INVALID_INPUT = 'invalid-input'
95-
METHOD_NOT_ALLOWED = 'method-not-allowed'
96-
PERMISSION_DENIED = 'permission-denied'
97-
RATE_LIMIT_EXCEEDED = 'rate-limit-exceeded'
98-
RECORD_NOT_FOUND = 'record-not-found'
99-
RECORD_NOT_UNIQUE = 'record-not-unique'
100-
RECORD_OR_TOKEN_NOT_FOUND = 'record-or-token-not-found'
101-
REQUEST_ID_INVALID = 'request-id-invalid'
102-
REQUEST_TOO_LARGE = 'request-too-large'
103-
RUN_FAILED = 'run-failed'
104-
RUN_TIMEOUT_EXCEEDED = 'run-timeout-exceeded'
105-
TOKEN_NOT_VALID = 'token-not-valid'
106-
UNKNOWN_BUILD_TAG = 'unknown-build-tag'
107-
UNSUPPORTED_CONTENT_ENCODING = 'unsupported-content-encoding'
108-
109-
11089
class Error(BaseModel):
11190
model_config = ConfigDict(
11291
extra='allow',
11392
populate_by_name=True,
11493
)
115-
type: Annotated[Type | None, Field(title='ErrorType')] = None
94+
type: Annotated[ErrorType | None, Field(title='ErrorType')] = None
11695
"""
11796
Machine-processable error type identifier.
11897
"""

0 commit comments

Comments
 (0)