apify-client 3.0.0-beta.94 → 3.0.0-beta.96

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.
package/dist/models.d.ts CHANGED
@@ -213,6 +213,7 @@ export interface VersionRePointed {
213
213
  }
214
214
  export interface VersionClientNarrowings {
215
215
  sourceType: `${ActorSourceType}`;
216
+ actorPath?: GeneratedVersion['actorPath'];
216
217
  }
217
218
  /**
218
219
  * Fields every Actor version carries, whatever its source type.
@@ -220,6 +221,7 @@ export interface VersionClientNarrowings {
220
221
  * The spec models a version as one flat object with all four source locations optional. This client
221
222
  * keeps a union discriminated on `sourceType` instead, because that narrows the source location down
222
223
  * to the single field which applies -- so the four are dropped here and reinstated per variant.
224
+ * `actorPath` is dropped as well, and only the `SOURCE_FILES` and `TARBALL` variants reinstate it.
223
225
  */
224
226
  export interface BaseVersion<SourceType extends `${ActorSourceType}`> extends Omit<GeneratedVersion, keyof VersionClientNarrowings | keyof VersionRePointed | VersionSourceLocation>, VersionRePointed {
225
227
  sourceType: SourceType;
@@ -230,6 +232,12 @@ export interface BaseVersion<SourceType extends `${ActorSourceType}`> extends Om
230
232
  */
231
233
  export interface VersionSourceFiles extends BaseVersion<`${ActorSourceType.SourceFiles}`> {
232
234
  sourceFiles: (SourceCodeFile | SourceCodeFolder)[];
235
+ /**
236
+ * The Actor's folder inside the uploaded source, as a POSIX path relative to the upload root, such as
237
+ * `actors/typescript-actor`. When absent or `null`, the upload root is the Actor's folder. It has 1 to 255
238
+ * characters, with no leading, trailing, or repeated `/` and no `.` or `..` segment.
239
+ */
240
+ actorPath?: GeneratedVersion['actorPath'];
233
241
  }
234
242
  /** An Actor version built from a Git repository. */
235
243
  export interface VersionGitRepo extends BaseVersion<`${ActorSourceType.GitRepo}`> {
@@ -238,6 +246,12 @@ export interface VersionGitRepo extends BaseVersion<`${ActorSourceType.GitRepo}`
238
246
  /** An Actor version built from a downloadable tarball or ZIP archive. */
239
247
  export interface VersionTarball extends BaseVersion<`${ActorSourceType.Tarball}`> {
240
248
  tarballUrl: NonNullable<GeneratedVersion['tarballUrl']>;
249
+ /**
250
+ * The Actor's folder inside the archive, as a POSIX path relative to the archive root, such as
251
+ * `actors/typescript-actor`. When absent or `null`, the archive root is the Actor's folder. It has 1 to 255
252
+ * characters, with no leading, trailing, or repeated `/` and no `.` or `..` segment.
253
+ */
254
+ actorPath?: GeneratedVersion['actorPath'];
241
255
  }
242
256
  /** An Actor version built from a GitHub Gist. */
243
257
  export interface VersionGitHubGist extends BaseVersion<`${ActorSourceType.GitHubGist}`> {
@@ -83,5 +83,10 @@ export declare class ActorVersionClient extends ResourceClient {
83
83
  * All of them are optional, because the endpoint leaves untouched whatever the payload does not
84
84
  * mention. The version union enforces the pairing: a `sourceType` can only be sent next to the
85
85
  * source location it implies, never next to one of the other three.
86
+ *
87
+ * On a `SOURCE_FILES` or `TARBALL` version, `actorPath: null` removes the stored path. So does an
88
+ * update that sends `sourceType`, `sourceFiles`, or `tarballUrl` without `actorPath`, so send it
89
+ * again with every upload. The API rejects an `actorPath` on a version of any other source type,
90
+ * also when the update leaves out `sourceType`, because it then checks the stored source type.
86
91
  */
87
92
  export type ActorVersionUpdateData = Partial<Version>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-client",
3
- "version": "3.0.0-beta.94",
3
+ "version": "3.0.0-beta.96",
4
4
  "description": "Apify API client for JavaScript",
5
5
  "engines": {
6
6
  "node": ">=22.13.0"
@@ -91,7 +91,7 @@
91
91
  "compression": "^1.8.2",
92
92
  "esbuild": "0.28.2",
93
93
  "express": "^5.3.0",
94
- "oxfmt": "0.76.0",
94
+ "oxfmt": "0.77.0",
95
95
  "oxlint": "1.92.0",
96
96
  "oxlint-tsgolint": "7.0.2006",
97
97
  "puppeteer": "^25.16.0",