|
1 | 1 | # 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 |
4 | 4 |
|
5 | 5 | from __future__ import annotations |
6 | 6 |
|
@@ -86,33 +86,12 @@ class ListOfActorsResponse(BaseModel): |
86 | 86 | data: ListOfActors |
87 | 87 |
|
88 | 88 |
|
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 | | - |
110 | 89 | class Error(BaseModel): |
111 | 90 | model_config = ConfigDict( |
112 | 91 | extra='allow', |
113 | 92 | populate_by_name=True, |
114 | 93 | ) |
115 | | - type: Annotated[Type | None, Field(title='ErrorType')] = None |
| 94 | + type: Annotated[ErrorType | None, Field(title='ErrorType')] = None |
116 | 95 | """ |
117 | 96 | Machine-processable error type identifier. |
118 | 97 | """ |
|
0 commit comments