apify-client 3.0.0-beta.35 → 3.0.0-beta.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3987,6 +3987,18 @@ export declare const HttpMethod: () => z.ZodUnion<[z.ZodEnum<{
3987
3987
  PUT: "PUT";
3988
3988
  TRACE: "TRACE";
3989
3989
  }>, z.ZodString]>;
3990
+ /** The HTTP method of the request. */
3991
+ export declare const RequestMethod: () => z.ZodUnion<[z.ZodEnum<{
3992
+ CONNECT: "CONNECT";
3993
+ DELETE: "DELETE";
3994
+ GET: "GET";
3995
+ HEAD: "HEAD";
3996
+ OPTIONS: "OPTIONS";
3997
+ PATCH: "PATCH";
3998
+ POST: "POST";
3999
+ PUT: "PUT";
4000
+ TRACE: "TRACE";
4001
+ }>, z.ZodString]>;
3990
4002
  /** The number of times this request has been retried. */
3991
4003
  export declare const RetryCount: () => z.ZodInt;
3992
4004
  /** Custom user data attached to the request. Can contain arbitrary fields. */
@@ -4613,6 +4625,7 @@ export declare const CreateTaskRequest: () => z.ZodObject<{
4613
4625
  }, z.core.$loose>>>;
4614
4626
  input: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
4615
4627
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4628
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4616
4629
  actorStandby: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4617
4630
  isEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4618
4631
  desiredRequestsPerActorRun: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -4654,6 +4667,7 @@ export declare const Task: () => z.ZodObject<{
4654
4667
  }, z.core.$loose>>>;
4655
4668
  input: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
4656
4669
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4670
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4657
4671
  actorStandby: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4658
4672
  isEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4659
4673
  desiredRequestsPerActorRun: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -4699,6 +4713,7 @@ export declare const TaskResponse: () => z.ZodObject<{
4699
4713
  }, z.core.$loose>>>;
4700
4714
  input: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
4701
4715
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4716
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4702
4717
  actorStandby: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4703
4718
  isEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4704
4719
  desiredRequestsPerActorRun: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -4733,6 +4748,7 @@ export declare const UpdateTaskRequest: () => z.ZodObject<{
4733
4748
  }, z.core.$loose>>>;
4734
4749
  input: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>;
4735
4750
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4751
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4736
4752
  actorStandby: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4737
4753
  isEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
4738
4754
  desiredRequestsPerActorRun: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -771,6 +771,8 @@ export const UniqueKey = lazySchema(() => z.string());
771
771
  /** The URL of the request. */
772
772
  export const RequestUrl = lazySchema(() => z.string());
773
773
  export const HttpMethod = lazySchema(() => z.enum(["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]).or(z.string()));
774
+ /** The HTTP method of the request. */
775
+ export const RequestMethod = lazySchema(() => HttpMethod());
774
776
  /** The number of times this request has been retried. */
775
777
  export const RetryCount = lazySchema(() => z.int());
776
778
  /** Custom user data attached to the request. Can contain arbitrary fields. */
@@ -778,7 +780,7 @@ export const RequestUserData = lazySchema(() => z.record(z.string(), z.unknown()
778
780
  export const RequestBase = lazySchema(() => z.looseObject({
779
781
  uniqueKey: UniqueKey(),
780
782
  url: RequestUrl(),
781
- method: HttpMethod().optional(),
783
+ method: RequestMethod().optional(),
782
784
  retryCount: RetryCount().optional(),
783
785
  loadedUrl: z.string().nullable().optional(),
784
786
  payload: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
@@ -834,7 +836,7 @@ export const RequestDraft = lazySchema(() => z.looseObject({
834
836
  id: RequestId().optional(),
835
837
  uniqueKey: UniqueKey(),
836
838
  url: RequestUrl(),
837
- method: HttpMethod().optional(),
839
+ method: RequestMethod().optional(),
838
840
  }));
839
841
  /** Result of a batch add operation containing successfully processed and failed requests. */
840
842
  export const BatchAddResult = lazySchema(() => z.looseObject({
@@ -911,7 +913,7 @@ export const HeadRequest = lazySchema(() => z.looseObject({
911
913
  id: RequestId(),
912
914
  uniqueKey: UniqueKey(),
913
915
  url: RequestUrl(),
914
- method: HttpMethod().optional(),
916
+ method: RequestMethod().optional(),
915
917
  retryCount: RetryCount().optional(),
916
918
  }));
917
919
  /** A batch of requests from the request queue head without locking. */
@@ -930,7 +932,7 @@ export const LockedHeadRequest = lazySchema(() => z.looseObject({
930
932
  id: RequestId(),
931
933
  uniqueKey: UniqueKey(),
932
934
  url: RequestUrl(),
933
- method: HttpMethod().optional(),
935
+ method: RequestMethod().optional(),
934
936
  retryCount: RetryCount().optional(),
935
937
  lockExpiresAt: LockExpiresAt(),
936
938
  }));
@@ -1001,6 +1003,7 @@ export const CreateTaskRequest = lazySchema(() => z.looseObject({
1001
1003
  options: TaskOptions().nullable().optional(),
1002
1004
  input: z.union([TaskInput(), z.array(TaskInput())]).nullable().optional(),
1003
1005
  title: z.string().nullable().optional(),
1006
+ description: z.string().nullable().optional(),
1004
1007
  actorStandby: ActorStandby().nullable().optional(),
1005
1008
  publicConfig: TaskPublicConfig().optional(),
1006
1009
  }));
@@ -1017,6 +1020,7 @@ export const Task = lazySchema(() => z.looseObject({
1017
1020
  options: TaskOptions().nullable().optional(),
1018
1021
  input: z.union([TaskInput(), z.array(TaskInput())]).nullable().optional(),
1019
1022
  title: z.string().nullable().optional(),
1023
+ description: z.string().nullable().optional(),
1020
1024
  actorStandby: ActorStandby().nullable().optional(),
1021
1025
  standbyUrl: z.url({ normalize: true }).nullable().optional(),
1022
1026
  isPublic: z.boolean().optional(),
@@ -1031,6 +1035,7 @@ export const UpdateTaskRequest = lazySchema(() => z.looseObject({
1031
1035
  options: TaskOptions().nullable().optional(),
1032
1036
  input: z.union([TaskInput(), z.array(TaskInput())]).nullable().optional(),
1033
1037
  title: z.string().nullable().optional(),
1038
+ description: z.string().nullable().optional(),
1034
1039
  actorStandby: ActorStandby().nullable().optional(),
1035
1040
  publicConfig: TaskPublicConfig().optional(),
1036
1041
  isPublic: z.boolean().optional(),
package/dist/models.d.ts CHANGED
@@ -589,14 +589,6 @@ export interface TaskOptions extends GeneratedTaskOptions {
589
589
  */
590
590
  export interface TaskPublicConfig extends GeneratedTaskPublicConfig {
591
591
  }
592
- /**
593
- * Fields the API returns on a task that the OpenAPI spec does not describe yet.
594
- *
595
- * TODO: Remove once the spec covers it.
596
- */
597
- export interface TaskSpecGaps {
598
- description?: string;
599
- }
600
592
  export interface TaskRePointed {
601
593
  stats?: TaskStats | null;
602
594
  options?: TaskOptions | null;
@@ -610,7 +602,7 @@ export interface TaskRePointed {
610
602
  * Tasks are saved Actor configurations with input and settings that can be executed
611
603
  * repeatedly without having to specify the full input each time.
612
604
  */
613
- export interface Task extends Omit<Schemas['Task'], keyof TaskRePointed>, TaskRePointed, TaskSpecGaps {
605
+ export interface Task extends Omit<Schemas['Task'], keyof TaskRePointed>, TaskRePointed {
614
606
  }
615
607
  export interface TaskListRePointed {
616
608
  stats?: TaskStats | null;
@@ -618,7 +610,7 @@ export interface TaskListRePointed {
618
610
  /**
619
611
  * Fields the API returns on a listed task that the OpenAPI spec does not describe yet.
620
612
  *
621
- * `description` is deliberately not here, although `TaskSpecGaps` claims it on the full resource: the
613
+ * `description` is deliberately not here, although the spec has it on the full `Task` resource: the
622
614
  * list endpoint publishes a smaller set of fields, and that is one of the fields it leaves out.
623
615
  *
624
616
  * TODO: Remove once the spec covers it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-client",
3
- "version": "3.0.0-beta.35",
3
+ "version": "3.0.0-beta.37",
4
4
  "description": "Apify API client for JavaScript",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"
@@ -59,7 +59,7 @@
59
59
  ],
60
60
  "apify": {
61
61
  "openapiSpec": {
62
- "version": "v2-2026-08-31T125154Z"
62
+ "version": "v2-2026-09-29T135107Z"
63
63
  }
64
64
  },
65
65
  "dependencies": {