diff --git a/apify-api/openapi/components/schemas/actor-tasks/CreateTaskRequest.yaml b/apify-api/openapi/components/schemas/actor-tasks/CreateTaskRequest.yaml index e530b2ca31..d5c7d5ca64 100644 --- a/apify-api/openapi/components/schemas/actor-tasks/CreateTaskRequest.yaml +++ b/apify-api/openapi/components/schemas/actor-tasks/CreateTaskRequest.yaml @@ -18,3 +18,9 @@ properties: anyOf: - $ref: ./TaskInput.yaml - type: "null" + title: + type: [string, "null"] + actorStandby: + anyOf: + - $ref: ../actors/ActorStandby.yaml + - type: "null" diff --git a/apify-api/openapi/components/schemas/actor-tasks/Task.yaml b/apify-api/openapi/components/schemas/actor-tasks/Task.yaml index b85401ff70..92ac8dffb7 100644 --- a/apify-api/openapi/components/schemas/actor-tasks/Task.yaml +++ b/apify-api/openapi/components/schemas/actor-tasks/Task.yaml @@ -46,6 +46,12 @@ properties: anyOf: - $ref: ./TaskInput.yaml - type: "null" + title: + type: [string, "null"] + actorStandby: + anyOf: + - $ref: ../actors/ActorStandby.yaml + - type: "null" standbyUrl: type: [string, "null"] format: uri diff --git a/apify-api/openapi/components/schemas/actor-tasks/TaskOptions.yaml b/apify-api/openapi/components/schemas/actor-tasks/TaskOptions.yaml index a7d7025741..a13f5ef2ac 100644 --- a/apify-api/openapi/components/schemas/actor-tasks/TaskOptions.yaml +++ b/apify-api/openapi/components/schemas/actor-tasks/TaskOptions.yaml @@ -13,3 +13,5 @@ properties: restartOnError: type: [boolean, "null"] examples: [false] + maxItems: + type: [integer, "null"] diff --git a/apify-api/openapi/components/schemas/actor-tasks/UpdateTaskRequest.yaml b/apify-api/openapi/components/schemas/actor-tasks/UpdateTaskRequest.yaml index a70eeb7097..8f559dd4b7 100644 --- a/apify-api/openapi/components/schemas/actor-tasks/UpdateTaskRequest.yaml +++ b/apify-api/openapi/components/schemas/actor-tasks/UpdateTaskRequest.yaml @@ -1,43 +1,9 @@ title: UpdateTaskRequest -required: - - id - - userId - - actId - - name - - createdAt - - modifiedAt type: object properties: - id: - type: string - examples: [ZxLNxrRaZrSjuhT9y] - userId: - type: string - examples: [BPWZBd7Z9c746JAnF] - actId: - type: string - examples: [asADASadYvn4mBZmm] name: type: string examples: [my-task] - username: - type: [string, "null"] - examples: [janedoe] - createdAt: - type: string - format: date-time - examples: ["2018-10-26T07:23:14.855Z"] - modifiedAt: - type: string - format: date-time - examples: ["2018-10-26T13:30:49.578Z"] - removedAt: - type: [string, "null"] - format: date-time - stats: - anyOf: - - $ref: ./TaskStats.yaml - - type: "null" options: anyOf: - $ref: ./TaskOptions.yaml @@ -46,3 +12,9 @@ properties: anyOf: - $ref: ./TaskInput.yaml - type: "null" + title: + type: [string, "null"] + actorStandby: + anyOf: + - $ref: ../actors/ActorStandby.yaml + - type: "null" diff --git a/apify-api/openapi/components/schemas/actors/Actor.yaml b/apify-api/openapi/components/schemas/actors/Actor.yaml index d4cf57d76e..3e775637cc 100644 --- a/apify-api/openapi/components/schemas/actors/Actor.yaml +++ b/apify-api/openapi/components/schemas/actors/Actor.yaml @@ -74,6 +74,10 @@ properties: anyOf: - $ref: ./TaggedBuilds.yaml - type: "null" + actorStandby: + anyOf: + - $ref: ./ActorStandby.yaml + - type: "null" readmeSummary: type: string description: A brief, LLM-generated readme summary diff --git a/apify-api/openapi/components/schemas/actors/ActorStandby.yaml b/apify-api/openapi/components/schemas/actors/ActorStandby.yaml new file mode 100644 index 0000000000..08dc808980 --- /dev/null +++ b/apify-api/openapi/components/schemas/actors/ActorStandby.yaml @@ -0,0 +1,19 @@ +title: ActorStandby +type: object +properties: + isEnabled: + type: [boolean, "null"] + desiredRequestsPerActorRun: + type: [integer, "null"] + maxRequestsPerActorRun: + type: [integer, "null"] + idleTimeoutSecs: + type: [integer, "null"] + build: + type: [string, "null"] + memoryMbytes: + type: [integer, "null"] + disableStandbyFieldsOverride: + type: [boolean, "null"] + shouldPassActorInput: + type: [boolean, "null"] diff --git a/apify-api/openapi/components/schemas/actors/CreateActorRequest.yaml b/apify-api/openapi/components/schemas/actors/CreateActorRequest.yaml index 11b6c384a1..f73b5906da 100644 --- a/apify-api/openapi/components/schemas/actors/CreateActorRequest.yaml +++ b/apify-api/openapi/components/schemas/actors/CreateActorRequest.yaml @@ -39,3 +39,13 @@ properties: description: "" defaultRunOptions: $ref: ./DefaultRunOptions.yaml + actorStandby: + anyOf: + - $ref: ./ActorStandby.yaml + - type: "null" + exampleRunInput: + anyOf: + - $ref: ./ExampleRunInput.yaml + - type: "null" + isDeprecated: + type: [boolean, "null"] diff --git a/apify-api/openapi/components/schemas/actors/DefaultRunOptions.yaml b/apify-api/openapi/components/schemas/actors/DefaultRunOptions.yaml index 9c41953fbe..de368b6ff6 100644 --- a/apify-api/openapi/components/schemas/actors/DefaultRunOptions.yaml +++ b/apify-api/openapi/components/schemas/actors/DefaultRunOptions.yaml @@ -1,7 +1,4 @@ title: defaultRunOptions -required: - - build - - memoryMbytes type: object properties: build: @@ -16,3 +13,9 @@ properties: restartOnError: type: boolean examples: [false] + maxItems: + type: [integer, "null"] + forcePermissionLevel: + anyOf: + - $ref: ./ActorPermissionLevel.yaml + - type: "null" diff --git a/apify-api/openapi/components/schemas/actors/ExampleRunInput.yaml b/apify-api/openapi/components/schemas/actors/ExampleRunInput.yaml index 86283d4dbf..ccc22d96d4 100644 --- a/apify-api/openapi/components/schemas/actors/ExampleRunInput.yaml +++ b/apify-api/openapi/components/schemas/actors/ExampleRunInput.yaml @@ -1,7 +1,4 @@ title: exampleRunInput -required: - - body - - contentType type: object properties: body: diff --git a/apify-api/openapi/components/schemas/actors/UpdateActorRequest.yaml b/apify-api/openapi/components/schemas/actors/UpdateActorRequest.yaml index fdfce5c20a..83d5c42197 100644 --- a/apify-api/openapi/components/schemas/actors/UpdateActorRequest.yaml +++ b/apify-api/openapi/components/schemas/actors/UpdateActorRequest.yaml @@ -92,7 +92,13 @@ properties: latest: buildId: z2EryhbfhgSyqj6Hn beta: null -required: - - name - - isPublic - - versions + actorStandby: + anyOf: + - $ref: ./ActorStandby.yaml + - type: "null" + exampleRunInput: + anyOf: + - $ref: ./ExampleRunInput.yaml + - type: "null" + isDeprecated: + type: [boolean, "null"] diff --git a/apify-api/openapi/components/schemas/schedules/Schedule.yaml b/apify-api/openapi/components/schemas/schedules/Schedule.yaml index a81234aaf7..3427c8c4a4 100644 --- a/apify-api/openapi/components/schemas/schedules/Schedule.yaml +++ b/apify-api/openapi/components/schemas/schedules/Schedule.yaml @@ -52,6 +52,8 @@ properties: type: [string, "null"] format: date-time examples: ["2019-04-12T07:33:10.202Z"] + title: + type: [string, "null"] actions: type: array items: diff --git a/apify-api/openapi/components/schemas/schedules/ScheduleCreate.yaml b/apify-api/openapi/components/schemas/schedules/ScheduleCreate.yaml index d558a41542..b7a21fb280 100644 --- a/apify-api/openapi/components/schemas/schedules/ScheduleCreate.yaml +++ b/apify-api/openapi/components/schemas/schedules/ScheduleCreate.yaml @@ -19,6 +19,8 @@ properties: description: type: [string, "null"] examples: [Schedule of actor ...] + title: + type: [string, "null"] actions: type: [array, "null"] items: diff --git a/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}.yaml b/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}.yaml index 7a5e2b8d8f..6382fb71b4 100644 --- a/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}.yaml +++ b/apify-api/openapi/paths/actor-tasks/actor-tasks@{actorTaskId}.yaml @@ -93,16 +93,7 @@ put: schema: $ref: ../../components/schemas/actor-tasks/UpdateTaskRequest.yaml example: - id: ZxLNxrRaZrSjuhT9y - userId: BPWZBd7Z9c746JAnF - actId: asADASadYvn4mBZmm name: my-task - username: janedoe - createdAt: "2018-10-26T07:23:14.855Z" - modifiedAt: "2018-10-26T13:30:49.578Z" - removedAt: null - stats: - totalRuns: 15 options: build: latest timeoutSecs: 300