apify-client 3.0.0-beta.91 → 3.0.0-beta.93

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.
@@ -184,6 +184,10 @@ export interface paths {
184
184
  * }
185
185
  * ```
186
186
  *
187
+ * If the Actor is in a subdirectory of the uploaded `SOURCE_FILES` or
188
+ * `TARBALL` source, such as in a monorepo, set `actorPath` to that
189
+ * directory, for example `"actorPath": "actors/typescript-actor"`.
190
+ *
187
191
  * The response is the `Version` object as
188
192
  * returned by the [Get Actor version](https://docs.apify.com/api/v2/actor-version-get) endpoint.
189
193
  */
@@ -213,6 +217,10 @@ export interface paths {
213
217
  * If the object does not define a specific property, its value will not be
214
218
  * updated.
215
219
  *
220
+ * An update that sends `sourceType`, `sourceFiles`, or `tarballUrl` without
221
+ * `actorPath` removes the version's stored `actorPath`. For a monorepo
222
+ * version, send `actorPath` again with every upload.
223
+ *
216
224
  * The request needs to specify the `Content-Type: application/json` HTTP
217
225
  * header!
218
226
  *
@@ -5116,6 +5124,11 @@ export interface components {
5116
5124
  tarballUrl?: string;
5117
5125
  /** @description URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. */
5118
5126
  gitHubGistUrl?: string;
5127
+ /**
5128
+ * @description The Actor's directory inside the uploaded source, as a path relative to the upload root with `/` separators, for example `actors/typescript-actor`. Applies when the `sourceType` is `SOURCE_FILES` or `TARBALL`. The API rejects a path when the `sourceType` is `GIT_REPO` or `GITHUB_GIST`. When omitted or `null`, the upload root is the Actor's directory. It has 1 to 255 characters, with no leading, trailing, or repeated `/` and no `.` or `..` segments.
5129
+ * @example actors/typescript-actor
5130
+ */
5131
+ actorPath?: string | null;
5119
5132
  };
5120
5133
  /**
5121
5134
  * DefaultRunOptions
@@ -5313,6 +5326,11 @@ export interface components {
5313
5326
  tarballUrl?: string | null;
5314
5327
  /** @description URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. */
5315
5328
  gitHubGistUrl?: string | null;
5329
+ /**
5330
+ * @description The Actor's directory inside the uploaded source, as a path relative to the upload root with `/` separators, for example `actors/typescript-actor`. Applies when the `sourceType` is `SOURCE_FILES` or `TARBALL`. When absent or `null`, the upload root is the Actor's directory. On a `TARBALL` version, only users with write access to the Actor get it. It has 1 to 255 characters, with no leading, trailing, or repeated `/` and no `.` or `..` segments.
5331
+ * @example actors/typescript-actor
5332
+ */
5333
+ actorPath?: string | null;
5316
5334
  /** @description ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository. */
5317
5335
  githubWebhookId?: number | null;
5318
5336
  /** @description ID of the GitLab webhook that triggers a build on push. Present when build on push is enabled for a GitLab repository. */
@@ -5779,6 +5797,11 @@ export interface components {
5779
5797
  tarballUrl?: string;
5780
5798
  /** @description URL of the GitHub Gist to clone the source code from. Applies when the `sourceType` is `GITHUB_GIST`. */
5781
5799
  gitHubGistUrl?: string;
5800
+ /**
5801
+ * @description The Actor's directory inside the uploaded source, as a path relative to the upload root with `/` separators, for example `actors/typescript-actor`. Applies when the `sourceType` is `SOURCE_FILES` or `TARBALL`. The API rejects it when the `sourceType` is `GIT_REPO` or `GITHUB_GIST`. On an update without `sourceType`, the API checks it against the version's stored source type. When the version has no `actorPath`, the upload root is the Actor's directory. It has 1 to 255 characters, with no leading, trailing, or repeated `/` and no `.` or `..` segments. An update that sends `sourceType`, `sourceFiles`, or `tarballUrl` without `actorPath` removes the stored `actorPath`, so send it again with every upload. An update of other fields, such as `envVars` or `buildTag`, keeps it. Send `null` to remove it.
5802
+ * @example actors/typescript-actor
5803
+ */
5804
+ actorPath?: string | null;
5782
5805
  };
5783
5806
  /** UpdateBuildOnPushRequest */
5784
5807
  UpdateBuildOnPushRequest: {
@@ -6420,6 +6443,11 @@ export interface components {
6420
6443
  * @example https://example.com/my-actor.zip
6421
6444
  */
6422
6445
  tarballUrl?: string;
6446
+ /**
6447
+ * @description The Actor's directory inside the uploaded source, present when the version sets it. Applies when sourceType is SOURCE_FILES or TARBALL. On a TARBALL version, only users with write access to the Actor get it.
6448
+ * @example actors/typescript-actor
6449
+ */
6450
+ actorPath?: string | null;
6423
6451
  };
6424
6452
  actorDefinition?: components["schemas"]["ActorDefinition"] | null;
6425
6453
  };
@@ -1439,6 +1439,7 @@ export declare const CreateVersionRequest: () => z.ZodObject<{
1439
1439
  gitRepoUrl: z.ZodOptional<z.ZodString>;
1440
1440
  tarballUrl: z.ZodOptional<z.ZodString>;
1441
1441
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
1442
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1442
1443
  }, z.core.$loose>;
1443
1444
  /** The default settings applied to an Actor run. Can be overridden elsewhere. */
1444
1445
  export declare const DefaultRunOptions: () => z.ZodObject<{
@@ -1515,6 +1516,7 @@ export declare const CreateActorRequest: () => z.ZodObject<{
1515
1516
  gitRepoUrl: z.ZodOptional<z.ZodString>;
1516
1517
  tarballUrl: z.ZodOptional<z.ZodString>;
1517
1518
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
1519
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1518
1520
  }, z.core.$loose>>>;
1519
1521
  categories: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1520
1522
  defaultRunOptions: z.ZodOptional<z.ZodObject<{
@@ -1596,6 +1598,7 @@ export declare const Version: () => z.ZodObject<{
1596
1598
  gitRepoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1597
1599
  tarballUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1598
1600
  gitHubGistUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1601
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1599
1602
  githubWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1600
1603
  gitlabWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1601
1604
  bitbucketWebhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1868,6 +1871,7 @@ export declare const ActorResource: () => z.ZodObject<{
1868
1871
  gitRepoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1869
1872
  tarballUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1870
1873
  gitHubGistUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1874
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1871
1875
  githubWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1872
1876
  gitlabWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1873
1877
  bitbucketWebhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2063,6 +2067,7 @@ export declare const ActorResponse: () => z.ZodObject<{
2063
2067
  gitRepoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2064
2068
  tarballUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2065
2069
  gitHubGistUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2070
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2066
2071
  githubWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2067
2072
  gitlabWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2068
2073
  bitbucketWebhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2237,6 +2242,7 @@ export declare const UpdateActorRequest: () => z.ZodObject<{
2237
2242
  gitRepoUrl: z.ZodOptional<z.ZodString>;
2238
2243
  tarballUrl: z.ZodOptional<z.ZodString>;
2239
2244
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
2245
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2240
2246
  }, z.core.$loose>>>;
2241
2247
  pricingInfos: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2242
2248
  apifyMarginPercentage: z.ZodNumber;
@@ -2376,6 +2382,7 @@ export declare const ListOfVersions: () => z.ZodObject<{
2376
2382
  gitRepoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2377
2383
  tarballUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2378
2384
  gitHubGistUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2385
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2379
2386
  githubWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2380
2387
  gitlabWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2381
2388
  bitbucketWebhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2415,6 +2422,7 @@ export declare const ListOfVersionsResponse: () => z.ZodObject<{
2415
2422
  gitRepoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2416
2423
  tarballUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2417
2424
  gitHubGistUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2425
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2418
2426
  githubWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2419
2427
  gitlabWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2420
2428
  bitbucketWebhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2453,6 +2461,7 @@ export declare const VersionResponse: () => z.ZodObject<{
2453
2461
  gitRepoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2454
2462
  tarballUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2455
2463
  gitHubGistUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2464
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2456
2465
  githubWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2457
2466
  gitlabWebhookId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2458
2467
  bitbucketWebhookId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2487,6 +2496,7 @@ export declare const UpdateVersionRequest: () => z.ZodObject<{
2487
2496
  gitRepoUrl: z.ZodOptional<z.ZodString>;
2488
2497
  tarballUrl: z.ZodOptional<z.ZodString>;
2489
2498
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
2499
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2490
2500
  }, z.core.$loose>;
2491
2501
  export declare const UpdateBuildOnPushRequest: () => z.ZodObject<{
2492
2502
  providerId: z.ZodString;
@@ -3232,6 +3242,7 @@ export declare const Build: () => z.ZodObject<{
3232
3242
  }, z.core.$loose>>>;
3233
3243
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
3234
3244
  tarballUrl: z.ZodOptional<z.ZodString>;
3245
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3235
3246
  }, z.core.$loose>>;
3236
3247
  actorDefinition: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3237
3248
  actorSpecification: z.ZodOptional<z.ZodLiteral<1>>;
@@ -3353,6 +3364,7 @@ export declare const BuildResponse: () => z.ZodObject<{
3353
3364
  }, z.core.$loose>>>;
3354
3365
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
3355
3366
  tarballUrl: z.ZodOptional<z.ZodString>;
3367
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3356
3368
  }, z.core.$loose>>;
3357
3369
  actorDefinition: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3358
3370
  actorSpecification: z.ZodOptional<z.ZodLiteral<1>>;
@@ -93,6 +93,7 @@ export const CreateVersionRequest = lazySchema(() => z.looseObject({
93
93
  gitRepoUrl: z.string().optional(),
94
94
  tarballUrl: z.string().optional(),
95
95
  gitHubGistUrl: z.string().optional(),
96
+ actorPath: z.string().min(1).max(255).nullable().optional(),
96
97
  }));
97
98
  /** The default settings applied to an Actor run. Can be overridden elsewhere. */
98
99
  export const DefaultRunOptions = lazySchema(() => z.looseObject({
@@ -155,6 +156,7 @@ export const Version = lazySchema(() => z.looseObject({
155
156
  gitRepoUrl: z.string().nullable().optional(),
156
157
  tarballUrl: z.string().nullable().optional(),
157
158
  gitHubGistUrl: z.string().nullable().optional(),
159
+ actorPath: z.string().min(1).max(255).nullable().optional(),
158
160
  githubWebhookId: z.int().nullable().optional(),
159
161
  gitlabWebhookId: z.int().nullable().optional(),
160
162
  bitbucketWebhookId: z.string().nullable().optional(),
@@ -314,6 +316,7 @@ export const UpdateVersionRequest = lazySchema(() => z.looseObject({
314
316
  gitRepoUrl: z.string().optional(),
315
317
  tarballUrl: z.string().optional(),
316
318
  gitHubGistUrl: z.string().optional(),
319
+ actorPath: z.string().min(1).max(255).nullable().optional(),
317
320
  }));
318
321
  export const UpdateBuildOnPushRequest = lazySchema(() => z.looseObject({
319
322
  providerId: z.string(),
@@ -543,6 +546,7 @@ export const Build = lazySchema(() => z.looseObject({
543
546
  sourceFiles: z.array(SourceCodeFile()).optional(),
544
547
  gitHubGistUrl: z.string().optional(),
545
548
  tarballUrl: z.string().optional(),
549
+ actorPath: z.string().nullable().optional(),
546
550
  }).optional(),
547
551
  actorDefinition: ActorDefinition().nullable().optional(),
548
552
  }));
@@ -90,6 +90,7 @@ export declare class DatasetClient<Data extends Record<string | number, any> = R
90
90
  * @param options - Options for listing items
91
91
  * @param options.limit - Maximum number of items to return. Default is all items.
92
92
  * @param options.chunkSize - Maximum number of items returned in one API response. Relevant in the context of asyncIterator.
93
+ * Without it, iteration loads the whole dataset, or all `limit` items, in one response.
93
94
  * @param options.offset - Number of items to skip from the beginning. Default is 0.
94
95
  * @param options.desc - If `true`, items are returned in descending order (newest first). Default is `false`.
95
96
  * @param options.fields - Array of field names to include in the results. Omits all other fields.
@@ -165,6 +165,7 @@ export class DatasetClient extends ResourceClient {
165
165
  * @param options - Options for listing items
166
166
  * @param options.limit - Maximum number of items to return. Default is all items.
167
167
  * @param options.chunkSize - Maximum number of items returned in one API response. Relevant in the context of asyncIterator.
168
+ * Without it, iteration loads the whole dataset, or all `limit` items, in one response.
168
169
  * @param options.offset - Number of items to skip from the beginning. Default is 0.
169
170
  * @param options.desc - If `true`, items are returned in descending order (newest first). Default is `false`.
170
171
  * @param options.fields - Array of field names to include in the results. Omits all other fields.
@@ -314,7 +314,7 @@ export interface KeyValueClientListKeysOptions extends TimeoutOptions {
314
314
  /**
315
315
  * Maximum number of keys returned in one API response. When the call is iterated with `for await`, the iterator
316
316
  * fetches keys in chunks of this size and yields them one by one, until `limit` is reached or the store has no
317
- * more keys. Awaiting the call returns only the first chunk.
317
+ * more keys. Awaiting the call returns only the first chunk. Without it, the API's default page size applies.
318
318
  */
319
319
  chunkSize?: number;
320
320
  exclusiveStartKey?: string;
@@ -388,7 +388,8 @@ export interface RequestQueueClientListRequestsOptions extends TimeoutOptions {
388
388
  /**
389
389
  * Maximum number of requests returned in one API response. When the call is iterated with `for await`, the iterator
390
390
  * fetches requests in chunks of this size and yields them one by one, until `limit` is reached or the RQ is
391
- * exhausted. Awaiting the call returns only the first chunk.
391
+ * exhausted. Awaiting the call returns only the first chunk. Without it, the API's default page size
392
+ * applies.
392
393
  */
393
394
  chunkSize?: number;
394
395
  /**
@@ -434,6 +434,8 @@ export interface RunWaitForFinishOptions extends TimeoutOptions {
434
434
  * Options for iterating over the items of a run's default dataset while the run is still producing them.
435
435
  */
436
436
  export interface RunIterateDatasetItemsOptions extends PaginationOptions, TimeoutOptions {
437
+ /** Maximum number of dataset rows requested per API call. Default is 1000. */
438
+ chunkSize?: number;
437
439
  /** If `true`, returns only non-empty items and skips hidden fields. */
438
440
  clean?: boolean;
439
441
  /** Field names to include in the items. Omits all other fields. */
package/dist/schemas.d.ts CHANGED
@@ -131,6 +131,7 @@ export declare const Build: () => z.ZodObject<{
131
131
  }, z.core.$loose>>>;
132
132
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
133
133
  tarballUrl: z.ZodOptional<z.ZodString>;
134
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
135
  buildTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
136
  }, z.core.$loose>>;
136
137
  }, z.core.$loose>;
@@ -252,6 +253,7 @@ export declare const BuildResponse: () => z.ZodObject<{
252
253
  }, z.core.$loose>>>;
253
254
  gitHubGistUrl: z.ZodOptional<z.ZodString>;
254
255
  tarballUrl: z.ZodOptional<z.ZodString>;
256
+ actorPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
257
  buildTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
258
  }, z.core.$loose>>;
257
259
  }, z.core.$loose>;
package/dist/utils.d.ts CHANGED
@@ -137,6 +137,10 @@ export interface PaginationOptions {
137
137
  * limit is reached or once all items from API have been fetched.
138
138
  *
139
139
  * Chunk size is usually limited by API. Minimum of those two limits will be used.
140
+ *
141
+ * Without `chunkSize`, each request gets the API's default page size, capped by the remaining `limit`. Dataset
142
+ * items have no default limit, so iterating `DatasetClient.listItems()` without `chunkSize` loads the whole
143
+ * dataset, or all `limit` items, in one response. Pass `chunkSize` to iterate a large dataset.
140
144
  * @since Added in 2.21.0
141
145
  * */
142
146
  chunkSize?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-client",
3
- "version": "3.0.0-beta.91",
3
+ "version": "3.0.0-beta.93",
4
4
  "description": "Apify API client for JavaScript",
5
5
  "engines": {
6
6
  "node": ">=22.13.0"
@@ -59,7 +59,7 @@
59
59
  ],
60
60
  "apify": {
61
61
  "openapiSpec": {
62
- "version": "v2-2026-11-01T214220Z"
62
+ "version": "v2-2026-11-04T151257Z"
63
63
  }
64
64
  },
65
65
  "dependencies": {
@@ -79,10 +79,10 @@
79
79
  "@apify/oxlint-config": "^0.3.0",
80
80
  "@apify/tsconfig": "^0.2.0",
81
81
  "@crawlee/puppeteer": "4.0.0-rc.1",
82
- "@rsbuild/core": "^2.3.0",
82
+ "@rsbuild/core": "^2.3.1",
83
83
  "@rsbuild/plugin-node-polyfill": "^1.4.6",
84
- "@rspack/cli": "^2.3.0",
85
- "@rspack/core": "^2.3.0",
84
+ "@rspack/cli": "^2.3.1",
85
+ "@rspack/core": "^2.3.1",
86
86
  "@types/compression": "^1.8.1",
87
87
  "@types/express": "^5.0.6",
88
88
  "@types/node": "^26.6.6",
@@ -95,7 +95,7 @@
95
95
  "oxlint": "1.90.0",
96
96
  "oxlint-tsgolint": "7.0.2005",
97
97
  "puppeteer": "^25.16.0",
98
- "rimraf": "^6.1.3",
98
+ "rimraf": "^6.1.4",
99
99
  "rolldown": "^1.2.16",
100
100
  "typescript": "^7.0.2",
101
101
  "typescript-v6": "npm:typescript@^6.0.3",