apify-client 3.0.0-beta.11 → 3.0.0-beta.111

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.
Files changed (124) hide show
  1. package/README.md +16 -2
  2. package/dist/apify_api_error.d.ts +13 -27
  3. package/dist/apify_api_error.js +33 -23
  4. package/dist/apify_client.d.ts +125 -10
  5. package/dist/apify_client.js +133 -48
  6. package/dist/apify_client_error.d.ts +10 -0
  7. package/dist/apify_client_error.js +10 -0
  8. package/dist/base/api_client.d.ts +7 -7
  9. package/dist/base/api_client.js +36 -36
  10. package/dist/base/resource_client.d.ts +13 -8
  11. package/dist/base/resource_client.js +60 -34
  12. package/dist/base/resource_collection_client.d.ts +12 -4
  13. package/dist/base/resource_collection_client.js +34 -11
  14. package/dist/body_parser.d.ts +3 -4
  15. package/dist/body_parser.js +19 -26
  16. package/dist/bundle.js +27 -22
  17. package/dist/bundle.js.map +1 -1
  18. package/dist/generated/api.d.ts +3109 -987
  19. package/dist/generated/schemas.d.ts +2563 -957
  20. package/dist/generated/schemas.js +585 -229
  21. package/dist/http_clients/axios.d.ts +63 -0
  22. package/dist/http_clients/axios.js +129 -0
  23. package/dist/http_clients/base.d.ts +397 -0
  24. package/dist/http_clients/base.js +656 -0
  25. package/dist/http_clients/index.d.ts +4 -0
  26. package/dist/http_clients/index.js +2 -0
  27. package/dist/http_compressors/base.d.ts +40 -0
  28. package/dist/http_compressors/base.js +9 -0
  29. package/dist/http_compressors/brotli.d.ts +33 -0
  30. package/dist/http_compressors/brotli.js +39 -0
  31. package/dist/http_compressors/gzip.d.ts +33 -0
  32. package/dist/http_compressors/gzip.js +39 -0
  33. package/dist/http_compressors/index.d.ts +8 -0
  34. package/dist/http_compressors/index.js +3 -0
  35. package/dist/http_compressors/resolve.d.ts +24 -0
  36. package/dist/http_compressors/resolve.js +30 -0
  37. package/dist/http_compressors/zstd.d.ts +34 -0
  38. package/dist/http_compressors/zstd.js +43 -0
  39. package/dist/index.d.ts +6 -1
  40. package/dist/index.js +5 -1
  41. package/dist/invalid_response_body_error.d.ts +14 -0
  42. package/dist/invalid_response_body_error.js +18 -0
  43. package/dist/models.d.ts +177 -240
  44. package/dist/models.js +6 -4
  45. package/dist/resource_clients/actor.d.ts +104 -34
  46. package/dist/resource_clients/actor.js +129 -55
  47. package/dist/resource_clients/actor_collection.d.ts +15 -11
  48. package/dist/resource_clients/actor_collection.js +9 -3
  49. package/dist/resource_clients/actor_env_var.d.ts +11 -4
  50. package/dist/resource_clients/actor_env_var.js +16 -6
  51. package/dist/resource_clients/actor_env_var_collection.d.ts +9 -4
  52. package/dist/resource_clients/actor_env_var_collection.js +11 -4
  53. package/dist/resource_clients/actor_server.d.ts +150 -0
  54. package/dist/resource_clients/actor_server.js +199 -0
  55. package/dist/resource_clients/actor_version.d.ts +18 -6
  56. package/dist/resource_clients/actor_version.js +18 -8
  57. package/dist/resource_clients/actor_version_collection.d.ts +9 -4
  58. package/dist/resource_clients/actor_version_collection.js +11 -4
  59. package/dist/resource_clients/build.d.ts +18 -7
  60. package/dist/resource_clients/build.js +33 -15
  61. package/dist/resource_clients/build_collection.d.ts +7 -5
  62. package/dist/resource_clients/build_collection.js +4 -1
  63. package/dist/resource_clients/dataset.d.ts +83 -36
  64. package/dist/resource_clients/dataset.js +103 -109
  65. package/dist/resource_clients/dataset_collection.d.ts +10 -6
  66. package/dist/resource_clients/dataset_collection.js +13 -2
  67. package/dist/resource_clients/key_value_store.d.ts +101 -27
  68. package/dist/resource_clients/key_value_store.js +132 -50
  69. package/dist/resource_clients/key_value_store_collection.d.ts +10 -6
  70. package/dist/resource_clients/key_value_store_collection.js +13 -2
  71. package/dist/resource_clients/log.d.ts +38 -21
  72. package/dist/resource_clients/log.js +139 -63
  73. package/dist/resource_clients/request_queue.d.ts +77 -31
  74. package/dist/resource_clients/request_queue.js +178 -93
  75. package/dist/resource_clients/request_queue_collection.d.ts +9 -5
  76. package/dist/resource_clients/request_queue_collection.js +9 -3
  77. package/dist/resource_clients/run.d.ts +124 -30
  78. package/dist/resource_clients/run.js +188 -51
  79. package/dist/resource_clients/run_collection.d.ts +5 -3
  80. package/dist/resource_clients/run_collection.js +4 -1
  81. package/dist/resource_clients/schedule.d.ts +15 -6
  82. package/dist/resource_clients/schedule.js +25 -10
  83. package/dist/resource_clients/schedule_collection.d.ts +6 -2
  84. package/dist/resource_clients/schedule_collection.js +9 -3
  85. package/dist/resource_clients/store_collection.d.ts +6 -4
  86. package/dist/resource_clients/store_collection.js +4 -1
  87. package/dist/resource_clients/task.d.ts +35 -12
  88. package/dist/resource_clients/task.js +75 -35
  89. package/dist/resource_clients/task_collection.d.ts +9 -5
  90. package/dist/resource_clients/task_collection.js +9 -3
  91. package/dist/resource_clients/user.d.ts +16 -7
  92. package/dist/resource_clients/user.js +34 -16
  93. package/dist/resource_clients/webhook.d.ts +16 -7
  94. package/dist/resource_clients/webhook.js +25 -10
  95. package/dist/resource_clients/webhook_collection.d.ts +8 -4
  96. package/dist/resource_clients/webhook_collection.js +9 -3
  97. package/dist/resource_clients/webhook_dispatch.d.ts +4 -1
  98. package/dist/resource_clients/webhook_dispatch.js +7 -2
  99. package/dist/resource_clients/webhook_dispatch_collection.d.ts +3 -1
  100. package/dist/resource_clients/webhook_dispatch_collection.js +4 -1
  101. package/dist/response_validation_error.d.ts +2 -1
  102. package/dist/response_validation_error.js +2 -1
  103. package/dist/runtime/node.d.ts +6 -0
  104. package/dist/runtime/node.js +87 -0
  105. package/dist/runtime/types.d.ts +60 -0
  106. package/dist/runtime/types.js +1 -0
  107. package/dist/runtime/web.d.ts +5 -0
  108. package/dist/runtime/web.js +21 -0
  109. package/dist/schemas.d.ts +370 -4
  110. package/dist/schemas.js +26 -4
  111. package/dist/statistics.d.ts +1 -6
  112. package/dist/statistics.js +2 -2
  113. package/dist/timeouts.d.ts +84 -0
  114. package/dist/timeouts.js +37 -0
  115. package/dist/timezones.d.ts +1 -1
  116. package/dist/utils.d.ts +87 -61
  117. package/dist/utils.js +208 -162
  118. package/dist/wait_for_resources.d.ts +8 -0
  119. package/dist/wait_for_resources.js +39 -0
  120. package/package.json +41 -38
  121. package/dist/http_client.d.ts +0 -88
  122. package/dist/http_client.js +0 -255
  123. package/dist/interceptors.d.ts +0 -19
  124. package/dist/interceptors.js +0 -105
package/dist/models.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Public models adapted from the generated OpenAPI types in `./generated/api`.
3
3
  *
4
+ * Each model takes the name of the spec schema it is declared on, as the Python client does.
5
+ *
4
6
  * The generated file is never re-exported directly. Every type here is declared on top of a generated
5
7
  * schema so the compiler reports drift, and the spec is adopted as-is wherever it is trustworthy. What
6
8
  * remains is deliberately small, and each deviation falls into exactly one of five kinds, one block per
@@ -31,7 +33,7 @@ type Schemas = components['schemas'];
31
33
  /**
32
34
  * Event types that can trigger webhooks.
33
35
  *
34
- * Declared here rather than in `./resource_clients/webhook` so that both `Webhook` and
36
+ * Declared here rather than in `./resource_clients/webhook` so that both `WebhookResource` and
35
37
  * `WebhookDispatch` can reference it without closing an import cycle. It is re-exported from there, so
36
38
  * the public name and import path are unchanged.
37
39
  */
@@ -53,21 +55,20 @@ export declare enum WebhookDispatchStatus {
53
55
  *
54
56
  * Declared here, next to the other spec-derived types, and re-exported from `./apify_api_error`.
55
57
  */
56
- export type ApifyApiErrorType = Schemas['ErrorType'];
58
+ export type ErrorType = Schemas['ErrorType'];
57
59
  /**
58
60
  * Fields the API returns on a dataset that the OpenAPI spec does not describe yet.
59
61
  *
60
62
  * TODO: Remove once the spec covers them.
61
63
  */
62
- export interface DatasetSpecGaps {
63
- title?: string;
64
+ export interface DatasetResourceSpecGaps {
64
65
  username?: string;
65
66
  }
66
- export interface DatasetRePointed {
67
+ export interface DatasetResourceRePointed {
67
68
  stats?: DatasetStats;
68
69
  generalAccess?: STORAGE_GENERAL_ACCESS | null;
69
70
  }
70
- export interface DatasetSpecNarrowings {
71
+ export interface DatasetResourceSpecNarrowings {
71
72
  consoleUrl?: string;
72
73
  }
73
74
  /**
@@ -76,7 +77,7 @@ export interface DatasetSpecNarrowings {
76
77
  * Datasets store structured data as a sequence of items (records). Each item is a JSON object.
77
78
  * Datasets are useful for storing results from web scraping, crawling, or data processing tasks.
78
79
  */
79
- export interface Dataset extends Omit<Schemas['Dataset'], keyof DatasetRePointed | keyof DatasetSpecNarrowings>, DatasetRePointed, DatasetSpecNarrowings, DatasetSpecGaps {
80
+ export interface DatasetResource extends Omit<Schemas['DatasetResource'], keyof DatasetResourceRePointed | keyof DatasetResourceSpecNarrowings>, DatasetResourceRePointed, DatasetResourceSpecNarrowings, DatasetResourceSpecGaps {
80
81
  }
81
82
  /**
82
83
  * Fields the API returns in dataset stats that the OpenAPI spec does not describe yet.
@@ -99,7 +100,7 @@ export interface DatasetStatisticsRePointed {
99
100
  * Statistics such as `min`, `max`, `nullCount` and `emptyCount` for each field of the dataset's
100
101
  * [fields schema](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema/validation).
101
102
  */
102
- fieldStatistics?: Record<string, FieldStatistics> | null;
103
+ fieldStatistics?: Record<string, DatasetFieldStatistics> | null;
103
104
  }
104
105
  /**
105
106
  * Statistical information about dataset fields.
@@ -113,7 +114,7 @@ export interface DatasetStatistics extends Omit<Schemas['DatasetStatistics'], ke
113
114
  * Statistics for a single field in a dataset.
114
115
  * @since Added in 2.11.2
115
116
  */
116
- export interface FieldStatistics extends GeneratedDatasetFieldStatistics {
117
+ export interface DatasetFieldStatistics extends GeneratedDatasetFieldStatistics {
117
118
  }
118
119
  export interface WebhookDispatchWebhookSummaryRePointed {
119
120
  condition?: WebhookCondition;
@@ -141,15 +142,7 @@ export interface WebhookDispatchEventData extends GeneratedWebhookDispatchEventD
141
142
  }
142
143
  type GeneratedKeyValueStoreStats = Schemas['KeyValueStoreStats'];
143
144
  type GeneratedKeyValueStoreKey = Schemas['KeyValueStoreKey'];
144
- /**
145
- * Fields the API returns on a key-value store that the OpenAPI spec does not describe yet.
146
- *
147
- * TODO: Remove once the spec covers them.
148
- */
149
- export interface KeyValueStoreSpecGaps {
150
- title?: string;
151
- }
152
- export interface KeyValueStoreRePointed {
145
+ export interface KeyValueStoreResourceRePointed {
153
146
  stats?: KeyValueStoreStats;
154
147
  generalAccess?: STORAGE_GENERAL_ACCESS | null;
155
148
  }
@@ -159,23 +152,23 @@ export interface KeyValueStoreRePointed {
159
152
  * Key-value stores are used to store arbitrary data records or files. Each record is identified
160
153
  * by a unique key and can contain any data - JSON objects, strings, binary files, etc.
161
154
  */
162
- export interface KeyValueStore extends Omit<Schemas['KeyValueStore'], keyof KeyValueStoreRePointed>, KeyValueStoreRePointed, KeyValueStoreSpecGaps {
155
+ export interface KeyValueStoreResource extends Omit<Schemas['KeyValueStoreResource'], keyof KeyValueStoreResourceRePointed>, KeyValueStoreResourceRePointed {
163
156
  }
164
157
  /** Statistics about Key-Value Store usage and storage. */
165
158
  export interface KeyValueStoreStats extends GeneratedKeyValueStoreStats {
166
159
  }
167
160
  /** Metadata about a single key in a Key-Value Store. */
168
- export interface KeyValueListItem extends GeneratedKeyValueStoreKey {
161
+ export interface KeyValueStoreKey extends GeneratedKeyValueStoreKey {
169
162
  }
170
- export interface KeyValueClientListKeysResultRePointed {
171
- items: KeyValueListItem[];
163
+ export interface ListOfKeysRePointed {
164
+ items: KeyValueStoreKey[];
172
165
  }
173
166
  /**
174
167
  * Result of listing keys in a Key-Value Store.
175
168
  *
176
169
  * Contains paginated list of keys with metadata and pagination information.
177
170
  */
178
- export interface KeyValueClientListKeysResult extends Omit<Schemas['ListOfKeys'], keyof KeyValueClientListKeysResultRePointed>, KeyValueClientListKeysResultRePointed {
171
+ export interface ListOfKeys extends Omit<Schemas['ListOfKeys'], keyof ListOfKeysRePointed>, ListOfKeysRePointed {
179
172
  }
180
173
  type GeneratedVersion = Schemas['Version'];
181
174
  type GeneratedSourceCodeFile = Schemas['SourceCodeFile'];
@@ -196,10 +189,10 @@ export declare enum ActorSourceType {
196
189
  SourceCode = "SOURCE_CODE"
197
190
  }
198
191
  /** An environment variable of an Actor version. */
199
- export interface ActorEnvironmentVariable extends GeneratedEnvVar {
192
+ export interface EnvVar extends GeneratedEnvVar {
200
193
  }
201
194
  /** A single file of an Actor version's source code. */
202
- export interface ActorVersionSourceFile extends GeneratedSourceCodeFile {
195
+ export interface SourceCodeFile extends GeneratedSourceCodeFile {
203
196
  }
204
197
  /**
205
198
  * A folder in an Actor version's source code tree.
@@ -207,19 +200,20 @@ export interface ActorVersionSourceFile extends GeneratedSourceCodeFile {
207
200
  * `sourceFiles` is a flat list that mixes files and folders, told apart by this shape's `folder` flag
208
201
  * rather than by nesting.
209
202
  */
210
- export interface ActorVersionSourceFolder extends GeneratedSourceCodeFolder {
203
+ export interface SourceCodeFolder extends GeneratedSourceCodeFolder {
211
204
  }
212
205
  /**
213
206
  * The four fields that hold a version's source location, exactly one of which applies per source
214
207
  * type. The spec marks all of them optional on a single flat schema; each union variant below
215
208
  * reinstates the one that its `sourceType` implies, as required.
216
209
  */
217
- export type ActorVersionSourceLocation = 'sourceFiles' | 'gitRepoUrl' | 'tarballUrl' | 'gitHubGistUrl';
218
- export interface ActorVersionRePointed {
219
- envVars?: ActorEnvironmentVariable[] | null;
210
+ export type VersionSourceLocation = 'sourceFiles' | 'gitRepoUrl' | 'tarballUrl' | 'gitHubGistUrl';
211
+ export interface VersionRePointed {
212
+ envVars?: EnvVar[] | null;
220
213
  }
221
- export interface ActorVersionClientNarrowings {
214
+ export interface VersionClientNarrowings {
222
215
  sourceType: `${ActorSourceType}`;
216
+ actorPath?: GeneratedVersion['actorPath'];
223
217
  }
224
218
  /**
225
219
  * Fields every Actor version carries, whatever its source type.
@@ -227,39 +221,52 @@ export interface ActorVersionClientNarrowings {
227
221
  * The spec models a version as one flat object with all four source locations optional. This client
228
222
  * keeps a union discriminated on `sourceType` instead, because that narrows the source location down
229
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.
230
225
  */
231
- export interface BaseActorVersion<SourceType extends `${ActorSourceType}`> extends Omit<GeneratedVersion, keyof ActorVersionClientNarrowings | keyof ActorVersionRePointed | ActorVersionSourceLocation>, ActorVersionRePointed {
226
+ export interface BaseVersion<SourceType extends `${ActorSourceType}`> extends Omit<GeneratedVersion, keyof VersionClientNarrowings | keyof VersionRePointed | VersionSourceLocation>, VersionRePointed {
232
227
  sourceType: SourceType;
233
228
  }
234
229
  /**
235
230
  * An Actor version whose source code is stored on the Apify platform.
236
231
  * @since Added in 2.6.1
237
232
  */
238
- export interface ActorVersionSourceFiles extends BaseActorVersion<`${ActorSourceType.SourceFiles}`> {
239
- sourceFiles: (ActorVersionSourceFile | ActorVersionSourceFolder)[];
233
+ export interface VersionSourceFiles extends BaseVersion<`${ActorSourceType.SourceFiles}`> {
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'];
240
241
  }
241
242
  /** An Actor version built from a Git repository. */
242
- export interface ActorVersionGitRepo extends BaseActorVersion<`${ActorSourceType.GitRepo}`> {
243
+ export interface VersionGitRepo extends BaseVersion<`${ActorSourceType.GitRepo}`> {
243
244
  gitRepoUrl: NonNullable<GeneratedVersion['gitRepoUrl']>;
244
245
  }
245
246
  /** An Actor version built from a downloadable tarball or ZIP archive. */
246
- export interface ActorVersionTarball extends BaseActorVersion<`${ActorSourceType.Tarball}`> {
247
+ export interface VersionTarball extends BaseVersion<`${ActorSourceType.Tarball}`> {
247
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'];
248
255
  }
249
256
  /** An Actor version built from a GitHub Gist. */
250
- export interface ActorVersionGitHubGist extends BaseActorVersion<`${ActorSourceType.GitHubGist}`> {
257
+ export interface VersionGitHubGist extends BaseVersion<`${ActorSourceType.GitHubGist}`> {
251
258
  gitHubGistUrl: NonNullable<GeneratedVersion['gitHubGistUrl']>;
252
259
  }
253
260
  /**
254
261
  * An Actor version whose source is a single inline script.
255
262
  *
256
- * It carries no source location of its own, so it adds nothing to `BaseActorVersion`; the variant
263
+ * It carries no source location of its own, so it adds nothing to `BaseVersion`; the variant
257
264
  * exists so that `SOURCE_CODE`, which both the spec and `@apify/consts` list, is representable.
258
265
  */
259
- export interface ActorVersionSourceCode extends BaseActorVersion<`${ActorSourceType.SourceCode}`> {
266
+ export interface VersionSourceCode extends BaseVersion<`${ActorSourceType.SourceCode}`> {
260
267
  }
261
268
  /** A version of an Actor, discriminated on where its source code comes from. */
262
- export type ActorVersion = ActorVersionSourceFiles | ActorVersionGitRepo | ActorVersionTarball | ActorVersionGitHubGist | ActorVersionSourceCode;
269
+ export type Version = VersionSourceFiles | VersionGitRepo | VersionTarball | VersionGitHubGist | VersionSourceCode;
263
270
  /**
264
271
  * An Actor version as the API returns it, where the build tag is always set.
265
272
  *
@@ -267,8 +274,8 @@ export type ActorVersion = ActorVersionSourceFiles | ActorVersionGitRepo | Actor
267
274
  * `buildTag`, so a caller would still have to null-check a field this type promises is set. It is
268
275
  * unwrapped with `NonNullable` instead.
269
276
  */
270
- export type FinalActorVersion = ActorVersion & {
271
- buildTag: NonNullable<ActorVersion['buildTag']>;
277
+ export type FinalVersion = Version & {
278
+ buildTag: NonNullable<Version['buildTag']>;
272
279
  };
273
280
  type GeneratedActorStats = Schemas['ActorStats'];
274
281
  type GeneratedActorStandby = Schemas['ActorStandby'];
@@ -288,31 +295,18 @@ export interface ActorStats extends GeneratedActorStats {
288
295
  export interface ActorStandby extends GeneratedActorStandby {
289
296
  }
290
297
  /** Example input data to demonstrate Actor usage. */
291
- export interface ActorExampleRunInput extends GeneratedExampleRunInput {
298
+ export interface ExampleRunInput extends GeneratedExampleRunInput {
292
299
  }
293
300
  /** Information about a specific tagged build. */
294
- export interface ActorTaggedBuild extends GeneratedTaggedBuildInfo {
301
+ export interface TaggedBuildInfo extends GeneratedTaggedBuildInfo {
295
302
  }
296
303
  /** Mapping of build tags (e.g. 'latest', 'beta') to their corresponding build information. */
297
- export type ActorTaggedBuilds = Record<string, ActorTaggedBuild | null>;
298
- export interface ActorDefaultRunOptionsRePointed {
304
+ export type TaggedBuilds = Record<string, TaggedBuildInfo | null>;
305
+ export interface DefaultRunOptionsRePointed {
299
306
  forcePermissionLevel?: ACTOR_PERMISSION_LEVEL | null;
300
307
  }
301
308
  /** Default configuration options for Actor runs. */
302
- export interface ActorDefaultRunOptions extends Omit<Schemas['DefaultRunOptions'], keyof ActorDefaultRunOptionsRePointed>, ActorDefaultRunOptionsRePointed {
303
- }
304
- /**
305
- * Fields of an Actor definition that the OpenAPI spec does not describe yet.
306
- *
307
- * TODO: Remove once the spec covers them.
308
- */
309
- export interface ActorDefinitionSpecGaps {
310
- /**
311
- * Output schema for the Actor.
312
- *
313
- * @see https://docs.apify.com/platform/actors/development/actor-definition/output-schema
314
- */
315
- output?: object | null;
309
+ export interface DefaultRunOptions extends Omit<Schemas['DefaultRunOptions'], keyof DefaultRunOptionsRePointed>, DefaultRunOptionsRePointed {
316
310
  }
317
311
  type GeneratedActorDefinition = Schemas['ActorDefinition'];
318
312
  /**
@@ -322,7 +316,7 @@ type GeneratedActorDefinition = Schemas['ActorDefinition'];
322
316
  * @see https://docs.apify.com/platform/actors/development/actor-definition/actor-json
323
317
  * @since Added in 2.11.0
324
318
  */
325
- export interface ActorDefinition extends GeneratedActorDefinition, ActorDefinitionSpecGaps {
319
+ export interface ActorDefinition extends GeneratedActorDefinition {
326
320
  }
327
321
  export interface ActorChargeEventRePointed {
328
322
  eventTieredPricingUsd?: TieredPricingPerEvent;
@@ -361,7 +355,7 @@ export interface PricePerDatasetItemActorPricingInfoRePointed {
361
355
  */
362
356
  export interface PricePerDatasetItemActorPricingInfo extends Omit<Schemas['PricePerDatasetItemActorPricingInfo'], keyof PricePerDatasetItemActorPricingInfoRePointed>, PricePerDatasetItemActorPricingInfoRePointed {
363
357
  }
364
- export interface PricePerEventActorPricingInfoRePointed {
358
+ export interface PayPerEventActorPricingInfoRePointed {
365
359
  pricingPerEvent: {
366
360
  actorChargeEvents?: ActorChargeEvents;
367
361
  };
@@ -369,17 +363,16 @@ export interface PricePerEventActorPricingInfoRePointed {
369
363
  /**
370
364
  * Pricing information for pay-per-event Actors.
371
365
  *
372
- * These Actors charge based on specific events (e.g., emails sent, API calls made). The spec names
373
- * this schema `PayPerEventActorPricingInfo`; the published name is kept as it is.
366
+ * These Actors charge based on specific events (e.g., emails sent, API calls made).
374
367
  * @since Added in 2.11.1
375
368
  */
376
- export interface PricePerEventActorPricingInfo extends Omit<Schemas['PayPerEventActorPricingInfo'], keyof PricePerEventActorPricingInfoRePointed>, PricePerEventActorPricingInfoRePointed {
369
+ export interface PayPerEventActorPricingInfo extends Omit<Schemas['PayPerEventActorPricingInfo'], keyof PayPerEventActorPricingInfoRePointed>, PayPerEventActorPricingInfoRePointed {
377
370
  }
378
371
  /**
379
372
  * Union type representing all possible Actor pricing models.
380
373
  * @since Added in 2.11.1
381
374
  */
382
- export type ActorRunPricingInfo = PricePerEventActorPricingInfo | PricePerDatasetItemActorPricingInfo | FlatPricePerMonthActorPricingInfo | FreeActorPricingInfo;
375
+ export type ActorRunPricingInfo = PayPerEventActorPricingInfo | PricePerDatasetItemActorPricingInfo | FlatPricePerMonthActorPricingInfo | FreeActorPricingInfo;
383
376
  /** One subscription tier's price per dataset item. */
384
377
  export interface TieredPricingPerDatasetItemEntry extends GeneratedTieredPricingPerDatasetItemEntry {
385
378
  }
@@ -404,17 +397,17 @@ export interface TieredPricingPerEvent {
404
397
  *
405
398
  * TODO: Remove once the spec covers them.
406
399
  */
407
- export interface ActorSpecGaps {
400
+ export interface ActorResourceSpecGaps {
408
401
  /** Whether the Actor can be run by anonymous users without authentication */
409
402
  isAnonymouslyRunnable?: boolean;
410
403
  }
411
- export interface ActorRePointed {
404
+ export interface ActorResourceRePointed {
412
405
  stats: ActorStats;
413
- versions: ActorVersion[];
406
+ versions: Version[];
414
407
  pricingInfos?: ActorRunPricingInfo[];
415
- defaultRunOptions: ActorDefaultRunOptions;
416
- exampleRunInput?: ActorExampleRunInput | null;
417
- taggedBuilds?: ActorTaggedBuilds | null;
408
+ defaultRunOptions: DefaultRunOptions;
409
+ exampleRunInput?: ExampleRunInput | null;
410
+ taggedBuilds?: TaggedBuilds | null;
418
411
  actorStandby?: ActorStandby | null;
419
412
  actorPermissionLevel?: ACTOR_PERMISSION_LEVEL;
420
413
  }
@@ -425,17 +418,18 @@ export interface ActorRePointed {
425
418
  * data processing, automation, and more. Each Actor has versions, builds, and can be executed
426
419
  * with different configurations.
427
420
  */
428
- export interface Actor extends Omit<Schemas['Actor'], keyof ActorRePointed>, ActorRePointed, ActorSpecGaps {
421
+ export interface ActorResource extends Omit<Schemas['ActorResource'], keyof ActorResourceRePointed>, ActorResourceRePointed, ActorResourceSpecGaps {
429
422
  }
430
- export interface ActorCollectionListItemRePointed {
423
+ export interface ActorListItemRePointed {
431
424
  stats?: ActorStats | null;
432
425
  }
433
426
  /** An Actor as it appears in a listing, which carries fewer fields than the full resource. */
434
- export interface ActorCollectionListItem extends Omit<Schemas['ActorShort'], keyof ActorCollectionListItemRePointed>, ActorCollectionListItemRePointed {
427
+ export interface ActorListItem extends Omit<Schemas['ActorListItem'], keyof ActorListItemRePointed>, ActorListItemRePointed {
435
428
  }
436
429
  type GeneratedBuildUsage = Schemas['BuildUsage'];
437
430
  type GeneratedBuildStats = Schemas['BuildStats'];
438
431
  type GeneratedBuildOptions = Schemas['BuildOptions'];
432
+ type GeneratedBuildActVersion = NonNullable<Schemas['Build']['actVersion']>;
439
433
  /**
440
434
  * Resource usage for an Actor build.
441
435
  * @since Added in 2.7.2
@@ -451,12 +445,8 @@ export interface BuildOptions extends GeneratedBuildOptions {
451
445
  export interface BuildMetaRePointed {
452
446
  origin: ValueOf<typeof META_ORIGINS>;
453
447
  }
454
- /**
455
- * Metadata about how a Build was initiated.
456
- *
457
- * The spec names this schema `BuildsMeta`; the published name is kept as it is.
458
- */
459
- export interface BuildMeta extends Omit<Schemas['BuildsMeta'], keyof BuildMetaRePointed>, BuildMetaRePointed {
448
+ /** Metadata about how a Build was initiated. */
449
+ export interface BuildMeta extends Omit<Schemas['BuildMeta'], keyof BuildMetaRePointed>, BuildMetaRePointed {
460
450
  }
461
451
  export interface BuildRePointed {
462
452
  meta: BuildMeta;
@@ -466,6 +456,10 @@ export interface BuildRePointed {
466
456
  usageUsd?: BuildUsage | null;
467
457
  actorDefinition?: ActorDefinition | null;
468
458
  status: ValueOf<typeof ACTOR_JOB_STATUSES>;
459
+ /** The API returns `buildTag` as `null` for some builds, which the specification types as a string. */
460
+ actVersion?: Omit<GeneratedBuildActVersion, 'buildTag'> & {
461
+ buildTag?: string | null;
462
+ };
469
463
  }
470
464
  /**
471
465
  * Represents an Actor build.
@@ -475,37 +469,37 @@ export interface BuildRePointed {
475
469
  */
476
470
  export interface Build extends Omit<Schemas['Build'], keyof BuildRePointed>, BuildRePointed {
477
471
  }
478
- export interface BuildCollectionClientListItemRePointed {
472
+ export interface BuildListItemRePointed {
479
473
  meta?: BuildMeta;
480
474
  status: ValueOf<typeof ACTOR_JOB_STATUSES>;
481
475
  }
482
476
  /** A build as it appears in a listing, which carries fewer fields than the full resource. */
483
- export interface BuildCollectionClientListItem extends Omit<Schemas['BuildShort'], keyof BuildCollectionClientListItemRePointed>, BuildCollectionClientListItemRePointed {
477
+ export interface BuildListItem extends Omit<Schemas['BuildListItem'], keyof BuildListItemRePointed>, BuildListItemRePointed {
484
478
  }
485
479
  type GeneratedRunUsage = Schemas['RunUsage'];
486
480
  type GeneratedRunStats = Schemas['RunStats'];
487
481
  type GeneratedRunOptions = Schemas['RunOptions'];
488
- type GeneratedMetamorph = Schemas['Metamorph'];
482
+ type GeneratedRunMetamorphEvent = Schemas['RunMetamorphEvent'];
489
483
  type GeneratedRunStorageIds = NonNullable<Schemas['Run']['storageIds']>;
490
484
  /**
491
485
  * Resource usage metrics for an Actor run.
492
486
  *
493
487
  * All values represent the total consumption during the run's lifetime. The same shape doubles as the
494
- * cost breakdown on `ActorRun.usageUsd`, where the spec names it `RunUsageUsd`; the two are
495
- * structurally identical, so the published type stays single.
488
+ * cost breakdown on `Run.usageUsd`, where the spec names it `RunUsageUsd`; the two are structurally
489
+ * identical, so the published type stays single.
496
490
  * @since Added in 2.7.0
497
491
  */
498
- export interface ActorRunUsage extends GeneratedRunUsage {
492
+ export interface RunUsage extends GeneratedRunUsage {
499
493
  }
500
494
  /**
501
495
  * Runtime statistics for an Actor run.
502
496
  *
503
497
  * Provides detailed metrics about resource consumption and performance during the run.
504
498
  */
505
- export interface ActorRunStats extends GeneratedRunStats {
499
+ export interface RunStats extends GeneratedRunStats {
506
500
  }
507
501
  /** A metamorph event that occurred during an Actor run. */
508
- export interface ActorRunMetamorph extends GeneratedMetamorph {
502
+ export interface RunMetamorphEvent extends GeneratedRunMetamorphEvent {
509
503
  }
510
504
  /**
511
505
  * Aliased storage IDs associated with an Actor run, grouped by storage type.
@@ -516,49 +510,41 @@ export interface ActorRunMetamorph extends GeneratedMetamorph {
516
510
  */
517
511
  export interface ActorRunStorageIds extends GeneratedRunStorageIds {
518
512
  }
519
- export interface ActorRunMetaRePointed {
513
+ export interface RunMetaRePointed {
520
514
  origin: ValueOf<typeof META_ORIGINS>;
521
515
  }
522
516
  /** Metadata about how an Actor run was initiated. */
523
- export interface ActorRunMeta extends Omit<Schemas['RunMeta'], keyof ActorRunMetaRePointed>, ActorRunMetaRePointed {
524
- }
525
- /**
526
- * Fields the API returns in an Actor run's options that the OpenAPI spec does not describe yet.
527
- *
528
- * TODO: Remove once the spec covers it.
529
- */
530
- export interface ActorRunOptionsSpecGaps {
531
- restartOnError?: boolean;
517
+ export interface RunMeta extends Omit<Schemas['RunMeta'], keyof RunMetaRePointed>, RunMetaRePointed {
532
518
  }
533
519
  /**
534
520
  * Configuration options used for an Actor run.
535
521
  *
536
522
  * These are the actual options that were applied to the run (may differ from requested options).
537
523
  */
538
- export interface ActorRunOptions extends GeneratedRunOptions, ActorRunOptionsSpecGaps {
524
+ export interface RunOptions extends GeneratedRunOptions {
539
525
  }
540
- export interface ActorRunListItemRePointed {
541
- meta: ActorRunMeta;
526
+ export interface RunListItemRePointed {
527
+ meta: RunMeta;
542
528
  status: ValueOf<typeof ACTOR_JOB_STATUSES>;
543
529
  }
544
530
  /**
545
531
  * An Actor run as it appears in a listing, which carries fewer fields than the full resource.
546
532
  * @since Added in 2.7.0
547
533
  */
548
- export interface ActorRunListItem extends Omit<Schemas['RunShort'], keyof ActorRunListItemRePointed>, ActorRunListItemRePointed {
534
+ export interface RunListItem extends Omit<Schemas['RunListItem'], keyof RunListItemRePointed>, RunListItemRePointed {
549
535
  }
550
- export interface ActorRunRePointed {
551
- meta: ActorRunMeta;
552
- stats: ActorRunStats;
553
- options: ActorRunOptions;
554
- usage?: ActorRunUsage | null;
555
- usageUsd?: ActorRunUsage | null;
536
+ export interface RunRePointed {
537
+ meta: RunMeta;
538
+ stats: RunStats;
539
+ options: RunOptions;
540
+ usage?: RunUsage | null;
541
+ usageUsd?: RunUsage | null;
556
542
  storageIds?: ActorRunStorageIds;
557
- metamorphs?: ActorRunMetamorph[] | null;
543
+ metamorphs?: RunMetamorphEvent[] | null;
558
544
  pricingInfo?: ActorRunPricingInfo;
559
545
  status: ValueOf<typeof ACTOR_JOB_STATUSES>;
560
546
  }
561
- export interface ActorRunClientNarrowings {
547
+ export interface RunClientNarrowings {
562
548
  generalAccess?: RUN_GENERAL_ACCESS | null;
563
549
  }
564
550
  /**
@@ -567,7 +553,7 @@ export interface ActorRunClientNarrowings {
567
553
  * Represents a single execution of an Actor with all its configuration, status,
568
554
  * and resource usage information.
569
555
  */
570
- export interface ActorRun extends Omit<Schemas['Run'], keyof ActorRunRePointed | keyof ActorRunClientNarrowings>, ActorRunRePointed, ActorRunClientNarrowings {
556
+ export interface Run extends Omit<Schemas['Run'], keyof RunRePointed | keyof RunClientNarrowings>, RunRePointed, RunClientNarrowings {
571
557
  }
572
558
  type GeneratedTaskStats = Schemas['TaskStats'];
573
559
  type GeneratedTaskOptions = Schemas['TaskOptions'];
@@ -589,14 +575,6 @@ export interface TaskOptions extends GeneratedTaskOptions {
589
575
  */
590
576
  export interface TaskPublicConfig extends GeneratedTaskPublicConfig {
591
577
  }
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
578
  export interface TaskRePointed {
601
579
  stats?: TaskStats | null;
602
580
  options?: TaskOptions | null;
@@ -610,44 +588,32 @@ export interface TaskRePointed {
610
588
  * Tasks are saved Actor configurations with input and settings that can be executed
611
589
  * repeatedly without having to specify the full input each time.
612
590
  */
613
- export interface Task extends Omit<Schemas['Task'], keyof TaskRePointed>, TaskRePointed, TaskSpecGaps {
591
+ export interface Task extends Omit<Schemas['Task'], keyof TaskRePointed>, TaskRePointed {
614
592
  }
615
- export interface TaskListRePointed {
593
+ export interface TaskListItemRePointed {
616
594
  stats?: TaskStats | null;
617
595
  }
618
- /**
619
- * Fields the API returns on a listed task that the OpenAPI spec does not describe yet.
620
- *
621
- * `description` is deliberately not here, although `TaskSpecGaps` claims it on the full resource: the
622
- * list endpoint publishes a smaller set of fields, and that is one of the fields it leaves out.
623
- *
624
- * TODO: Remove once the spec covers it.
625
- */
626
- export interface TaskListSpecGaps {
627
- title?: string | null;
628
- }
629
596
  /** A task as it appears in a listing, which carries fewer fields than the full resource. */
630
- export interface TaskList extends Omit<Schemas['TaskShort'], keyof TaskListRePointed>, TaskListRePointed, TaskListSpecGaps {
597
+ export interface TaskListItem extends Omit<Schemas['TaskListItem'], keyof TaskListItemRePointed>, TaskListItemRePointed {
631
598
  }
632
- export interface ActorStoreListRePointed {
599
+ export interface StoreActorRePointed {
633
600
  stats: ActorStats;
634
- currentPricingInfo?: PricingInfo;
601
+ currentPricingInfo?: CurrentPricingInfo;
635
602
  }
636
603
  /**
637
604
  * Pricing information as Apify Store reports it.
638
605
  *
639
- * The spec names this schema `CurrentPricingInfo`; the published name is kept as it is. It is a flat
640
- * summary rather than one of the `ActorRunPricingInfo` variants, so `pricingModel` is a plain string
641
- * and every price field is optional.
606
+ * It is a flat summary rather than one of the `ActorRunPricingInfo` variants, so `pricingModel` is a plain
607
+ * string and every price field is optional.
642
608
  * @since Added in 2.7.2
643
609
  */
644
- export interface PricingInfo extends GeneratedCurrentPricingInfo {
610
+ export interface CurrentPricingInfo extends GeneratedCurrentPricingInfo {
645
611
  }
646
612
  /**
647
613
  * An Actor as it appears in Apify Store.
648
614
  * @since Added in 2.7.2
649
615
  */
650
- export interface ActorStoreList extends Omit<Schemas['StoreListActor'], keyof ActorStoreListRePointed>, ActorStoreListRePointed {
616
+ export interface StoreActor extends Omit<Schemas['StoreActor'], keyof StoreActorRePointed>, StoreActorRePointed {
651
617
  }
652
618
  type GeneratedWebhookStats = Schemas['WebhookStats'];
653
619
  type GeneratedWebhookCondition = Schemas['WebhookCondition'];
@@ -684,25 +650,10 @@ export type WebhookCondition = WebhookAnyRunOfActorCondition | WebhookAnyRunOfAc
684
650
  export interface WebhookLastDispatchRePointed {
685
651
  status: WebhookDispatchStatus;
686
652
  }
687
- /**
688
- * The summary of a webhook's most recent dispatch that the webhook resource carries.
689
- *
690
- * The spec names this schema `ExampleWebhookDispatch`.
691
- */
692
- export interface WebhookLastDispatch extends Omit<Schemas['ExampleWebhookDispatch'], keyof WebhookLastDispatchRePointed>, WebhookLastDispatchRePointed {
653
+ /** The summary of a webhook's most recent dispatch that the webhook resource carries. */
654
+ export interface WebhookLastDispatch extends Omit<Schemas['WebhookLastDispatch'], keyof WebhookLastDispatchRePointed>, WebhookLastDispatchRePointed {
693
655
  }
694
- /**
695
- * Fields the API returns on a webhook that the OpenAPI spec does not describe yet.
696
- *
697
- * The spec does carry `isApifyIntegration` on `WebhookShort`, the listing shape, and simply omits it
698
- * from the full `Webhook` schema.
699
- *
700
- * TODO: Remove once the spec covers it.
701
- */
702
- export interface WebhookSpecGaps {
703
- isApifyIntegration?: boolean;
704
- }
705
- export interface WebhookRePointed {
656
+ export interface WebhookResourceRePointed {
706
657
  condition: WebhookCondition;
707
658
  stats?: WebhookStats | null;
708
659
  lastDispatch?: WebhookLastDispatch | null;
@@ -714,7 +665,7 @@ export interface WebhookRePointed {
714
665
  * Webhooks send HTTP POST requests to specified URLs when certain events occur
715
666
  * (e.g., Actor run succeeds, fails, or times out).
716
667
  */
717
- export interface Webhook extends Omit<Schemas['Webhook'], keyof WebhookRePointed>, WebhookRePointed, WebhookSpecGaps {
668
+ export interface WebhookResource extends Omit<Schemas['WebhookResource'], keyof WebhookResourceRePointed>, WebhookResourceRePointed {
718
669
  }
719
670
  type GeneratedScheduleActionRunInput = Schemas['ScheduleActionRunInput'];
720
671
  /**
@@ -729,19 +680,12 @@ export declare enum ScheduleActions {
729
680
  RunActorTask = "RUN_ACTOR_TASK"
730
681
  }
731
682
  /** Input configuration for a scheduled Actor run. */
732
- export interface ScheduledActorRunInput extends GeneratedScheduleActionRunInput {
733
- }
734
- /**
735
- * Run options for a scheduled Actor run.
736
- *
737
- * The spec reuses its `TaskOptions` schema here; the published name is kept as it is.
738
- */
739
- export interface ScheduledActorRunOptions extends GeneratedTaskOptions {
683
+ export interface ScheduleActionRunInput extends GeneratedScheduleActionRunInput {
740
684
  }
741
685
  export interface ScheduleActionRunActorRePointed {
742
686
  type: `${ScheduleActions.RunActor}`;
743
- runInput?: ScheduledActorRunInput | null;
744
- runOptions?: ScheduledActorRunOptions | null;
687
+ runInput?: ScheduleActionRunInput | null;
688
+ runOptions?: TaskOptions | null;
745
689
  }
746
690
  /** Scheduled action to run an Actor. */
747
691
  export interface ScheduleActionRunActor extends Omit<Schemas['ScheduleActionRunActor'], keyof ScheduleActionRunActorRePointed>, ScheduleActionRunActorRePointed {
@@ -754,9 +698,9 @@ export interface ScheduleActionRunActorTask extends Omit<Schemas['ScheduleAction
754
698
  }
755
699
  /** Union type representing all possible scheduled actions. */
756
700
  export type ScheduleAction = ScheduleActionRunActor | ScheduleActionRunActorTask;
757
- type GeneratedScheduleInvoked = Schemas['ScheduleInvoked'];
701
+ type GeneratedScheduleLogEntry = Schemas['ScheduleLogEntry'];
758
702
  /** One entry of a schedule's log: an invocation of the schedule and how it went. */
759
- export interface ScheduleInvoked extends GeneratedScheduleInvoked {
703
+ export interface ScheduleLogEntry extends GeneratedScheduleLogEntry {
760
704
  }
761
705
  export interface ScheduleRePointed {
762
706
  actions: ScheduleAction[];
@@ -764,27 +708,30 @@ export interface ScheduleRePointed {
764
708
  export interface ScheduleClientNarrowings {
765
709
  timezone: Timezone;
766
710
  }
711
+ export interface ScheduleSpecNarrowings {
712
+ uiState?: NonNullable<Schemas['Schedule']['uiState']> | null;
713
+ }
767
714
  /**
768
715
  * Represents a schedule for automated Actor or Task runs.
769
716
  *
770
717
  * Schedules use cron expressions to define when Actors or Tasks should run automatically.
771
718
  */
772
- export interface Schedule extends Omit<Schemas['Schedule'], keyof ScheduleRePointed | keyof ScheduleClientNarrowings>, ScheduleRePointed, ScheduleClientNarrowings {
719
+ export interface Schedule extends Omit<Schemas['Schedule'], keyof ScheduleRePointed | keyof ScheduleClientNarrowings | keyof ScheduleSpecNarrowings>, ScheduleRePointed, ScheduleClientNarrowings, ScheduleSpecNarrowings {
773
720
  }
774
- type GeneratedProfile = Schemas['Profile'];
721
+ type GeneratedUserProfile = Schemas['UserProfile'];
775
722
  type GeneratedProxyGroup = Schemas['ProxyGroup'];
776
723
  type GeneratedEffectivePlatformFeature = Schemas['EffectivePlatformFeature'];
777
724
  type GeneratedUsageCycle = Schemas['UsageCycle'];
778
- type GeneratedPriceTiers = Schemas['PriceTiers'];
725
+ type GeneratedPriceTier = Schemas['PriceTier'];
779
726
  type GeneratedLimits = Schemas['Limits'];
780
- type GeneratedCurrent = Schemas['Current'];
727
+ type GeneratedCurrentUsage = Schemas['CurrentUsage'];
781
728
  /**
782
729
  * Platform features a plan can enable.
783
730
  *
784
- * This enum is not the element type of `UserPlan.enabledPlatformFeatures`, which the spec types
785
- * as a plain `string[]`: the platform has features this list never gained -- `PROXY_RESIDENTIAL`,
786
- * `ACTORS_PUBLIC_ALL` and `ACTORS_PUBLIC_DEVELOPER` all appear as keys of `EffectivePlatformFeatures`
787
- * -- so using it there promised a completeness that was not real. It stays published for comparisons.
731
+ * This enum is not the element type of `UserPlan.enabledPlatformFeatures`, which the spec types as a plain
732
+ * `string[]`: the platform has features this list never gained -- `PROXY_RESIDENTIAL`, `ACTORS_PUBLIC_ALL`
733
+ * and `ACTORS_PUBLIC_DEVELOPER` all appear as keys of `EffectivePlatformFeatures` -- so using it there
734
+ * promised a completeness that was not real. It stays published for comparisons.
788
735
  *
789
736
  * Declared here rather than in `./resource_clients/user` so the user types can live alongside it. It is
790
737
  * re-exported from there, so the public name and import path are unchanged.
@@ -799,13 +746,13 @@ export declare enum PlatformFeature {
799
746
  ProxyExternalAccess = "PROXY_EXTERNAL_ACCESS"
800
747
  }
801
748
  /** The public part of a user's profile. */
802
- export interface UserProfile extends GeneratedProfile {
749
+ export interface UserProfile extends GeneratedUserProfile {
803
750
  }
804
- export interface UserProxyRePointed {
751
+ export interface ProxyResourceRePointed {
805
752
  groups: ProxyGroup[];
806
753
  }
807
754
  /** A user's proxy credentials and the groups they may use. */
808
- export interface UserProxy extends Omit<Schemas['Proxy'], keyof UserProxyRePointed>, UserProxyRePointed {
755
+ export interface ProxyResource extends Omit<Schemas['ProxyResource'], keyof ProxyResourceRePointed>, ProxyResourceRePointed {
809
756
  }
810
757
  /** One proxy group available to a user. */
811
758
  export interface ProxyGroup extends GeneratedProxyGroup {
@@ -832,11 +779,11 @@ export interface UserPlanRePointed {
832
779
  availableProxyGroups: Record<string, number>;
833
780
  }
834
781
  /** The subscription plan a user is on, with the quotas it grants. */
835
- export interface UserPlan extends Omit<Schemas['Plan'], keyof UserPlanRePointed>, UserPlanRePointed {
782
+ export interface UserPlan extends Omit<Schemas['UserPlan'], keyof UserPlanRePointed>, UserPlanRePointed {
836
783
  }
837
- export interface UserRePointed {
784
+ export interface UserPrivateInfoRePointed {
838
785
  profile?: UserProfile;
839
- proxy?: UserProxy;
786
+ proxy?: ProxyResource;
840
787
  plan?: UserPlan;
841
788
  effectivePlatformFeatures?: EffectivePlatformFeatures;
842
789
  }
@@ -846,7 +793,7 @@ export interface UserRePointed {
846
793
  * The private fields are only populated for `GET /v2/users/me`, which needs a token; the public
847
794
  * endpoint returns the username and profile alone.
848
795
  */
849
- export interface User extends Omit<Schemas['UserPrivateInfo'], keyof UserRePointed>, UserRePointed {
796
+ export interface UserPrivateInfo extends Omit<Schemas['UserPrivateInfo'], keyof UserPrivateInfoRePointed>, UserPrivateInfoRePointed {
850
797
  }
851
798
  /**
852
799
  * The start and end of a billing cycle.
@@ -854,14 +801,8 @@ export interface User extends Omit<Schemas['UserPrivateInfo'], keyof UserRePoint
854
801
  */
855
802
  export interface UsageCycle extends GeneratedUsageCycle {
856
803
  }
857
- /**
858
- * The start and end of a monthly billing cycle. The spec reuses its `UsageCycle` schema here.
859
- * @since Added in 2.9.2
860
- */
861
- export interface MonthlyUsageCycle extends GeneratedUsageCycle {
862
- }
863
- /** One tier of a volume-discounted price. The spec names this schema `PriceTiers`. */
864
- export interface PriceTier extends GeneratedPriceTiers {
804
+ /** One tier of a volume-discounted price. */
805
+ export interface PriceTier extends GeneratedPriceTier {
865
806
  }
866
807
  export interface UsageItemRePointed {
867
808
  priceTiers?: PriceTier[];
@@ -881,8 +822,8 @@ export interface ServiceUsage {
881
822
  export interface DailyServiceUsageRePointed {
882
823
  serviceUsage: ServiceUsage;
883
824
  }
884
- /** A single day's usage within a monthly cycle. The spec names this schema `DailyServiceUsages`. */
885
- export interface DailyServiceUsage extends Omit<Schemas['DailyServiceUsages'], keyof DailyServiceUsageRePointed>, DailyServiceUsageRePointed {
825
+ /** A single day's usage within a monthly cycle. */
826
+ export interface DailyServiceUsage extends Omit<Schemas['DailyServiceUsage'], keyof DailyServiceUsageRePointed>, DailyServiceUsageRePointed {
886
827
  }
887
828
  export interface MonthlyUsageRePointed {
888
829
  usageCycle: UsageCycle;
@@ -905,51 +846,49 @@ export interface Limits extends GeneratedLimits {
905
846
  * How much of each quota a user has consumed in the current cycle.
906
847
  * @since Added in 2.9.2
907
848
  */
908
- export interface Current extends GeneratedCurrent {
849
+ export interface CurrentUsage extends GeneratedCurrentUsage {
909
850
  }
910
- export interface AccountAndUsageLimitsRePointed {
911
- monthlyUsageCycle: MonthlyUsageCycle;
851
+ export interface AccountLimitsRePointed {
852
+ monthlyUsageCycle: UsageCycle;
912
853
  limits: Limits;
913
- current: Current;
854
+ current: CurrentUsage;
914
855
  }
915
856
  /**
916
857
  * A user's quotas together with their current consumption.
917
858
  * @since Added in 2.9.2
918
859
  */
919
- export interface AccountAndUsageLimits extends Omit<Schemas['AccountLimits'], keyof AccountAndUsageLimitsRePointed>, AccountAndUsageLimitsRePointed {
860
+ export interface AccountLimits extends Omit<Schemas['AccountLimits'], keyof AccountLimitsRePointed>, AccountLimitsRePointed {
920
861
  }
921
862
  type GeneratedRequestQueueStats = Schemas['RequestQueueStats'];
922
- type GeneratedHeadRequest = Schemas['HeadRequest'];
923
- type GeneratedLockedHeadRequest = Schemas['LockedHeadRequest'];
863
+ type GeneratedRequestQueueHeadItem = Schemas['RequestQueueHeadItem'];
864
+ type GeneratedLockedRequestQueueHeadItem = Schemas['LockedRequestQueueHeadItem'];
924
865
  type GeneratedRequestRegistration = Schemas['RequestRegistration'];
925
866
  type GeneratedRequestLockInfo = Schemas['RequestLockInfo'];
926
867
  type GeneratedUnlockRequestsResult = Schemas['UnlockRequestsResult'];
927
868
  type GeneratedBatchAddResult = Schemas['BatchAddResult'];
928
869
  type GeneratedBatchDeleteResult = Schemas['BatchDeleteResult'];
929
- type GeneratedRequest = Schemas['Request'];
930
- /** HTTP methods supported by Request Queue requests. */
931
- export type AllowedHttpMethods = Schemas['HttpMethod'];
870
+ type GeneratedRequestResource = Schemas['RequestResource'];
871
+ /** HTTP methods the API specification lists: a request queue request's `method`, and what the HTTP client sends. */
872
+ export type HttpMethod = Schemas['HttpMethod'];
932
873
  /** Statistics about Request Queue usage and storage. */
933
874
  export interface RequestQueueStats extends GeneratedRequestQueueStats {
934
875
  }
935
876
  /**
936
877
  * Fields the API returns on a request queue that the OpenAPI spec does not describe yet.
937
878
  *
938
- * The spec does carry `username` and `expireAt` on `RequestQueueShort`, the listing shape, and simply
939
- * omits both from the full `RequestQueue` schema. `title` is absent from either.
879
+ * The spec does carry `username` on `RequestQueueListItem`, the listing shape, and simply omits it from the
880
+ * full `RequestQueueResource` schema.
940
881
  *
941
- * TODO: Remove once the spec covers them.
882
+ * TODO: Remove once the spec covers it.
942
883
  */
943
- export interface RequestQueueSpecGaps {
944
- title?: string;
884
+ export interface RequestQueueResourceSpecGaps {
945
885
  username?: string;
946
- expireAt?: Date;
947
886
  }
948
- export interface RequestQueueRePointed {
887
+ export interface RequestQueueResourceRePointed {
949
888
  stats?: RequestQueueStats;
950
889
  generalAccess?: STORAGE_GENERAL_ACCESS | null;
951
890
  }
952
- export interface RequestQueueSpecNarrowings {
891
+ export interface RequestQueueResourceSpecNarrowings {
953
892
  consoleUrl?: string;
954
893
  }
955
894
  /**
@@ -958,80 +897,78 @@ export interface RequestQueueSpecNarrowings {
958
897
  * Request queues store URLs (requests) to be processed by web crawlers. They provide
959
898
  * automatic deduplication, request locking for parallel processing, and persistence.
960
899
  */
961
- export interface RequestQueue extends Omit<Schemas['RequestQueue'], keyof RequestQueueRePointed | keyof RequestQueueSpecNarrowings>, RequestQueueRePointed, RequestQueueSpecNarrowings, RequestQueueSpecGaps {
900
+ export interface RequestQueueResource extends Omit<Schemas['RequestQueueResource'], keyof RequestQueueResourceRePointed | keyof RequestQueueResourceSpecNarrowings>, RequestQueueResourceRePointed, RequestQueueResourceSpecNarrowings, RequestQueueResourceSpecGaps {
962
901
  }
963
902
  /** Simplified request information used in queue-head results. */
964
- export interface RequestQueueClientListItem extends GeneratedHeadRequest {
903
+ export interface RequestQueueHeadItem extends GeneratedRequestQueueHeadItem {
965
904
  }
966
905
  /** A queue-head request that has been locked for processing, so it also reports its lock expiry. */
967
- export interface RequestQueueClientLockedListItem extends GeneratedLockedHeadRequest {
906
+ export interface LockedRequestQueueHeadItem extends GeneratedLockedRequestQueueHeadItem {
968
907
  }
969
- export interface RequestQueueClientListHeadResultRePointed {
970
- items: RequestQueueClientListItem[];
908
+ export interface RequestQueueHeadRePointed {
909
+ items: RequestQueueHeadItem[];
971
910
  }
972
911
  /** Result of listing requests from the queue head. */
973
- export interface RequestQueueClientListHeadResult extends Omit<Schemas['RequestQueueHead'], keyof RequestQueueClientListHeadResultRePointed>, RequestQueueClientListHeadResultRePointed {
912
+ export interface RequestQueueHead extends Omit<Schemas['RequestQueueHead'], keyof RequestQueueHeadRePointed>, RequestQueueHeadRePointed {
974
913
  }
975
- export interface RequestQueueClientListAndLockHeadResultRePointed {
976
- items: RequestQueueClientLockedListItem[];
914
+ export interface LockedRequestQueueHeadRePointed {
915
+ items: LockedRequestQueueHeadItem[];
977
916
  }
978
917
  /**
979
918
  * Result of listing and locking requests from the queue head.
980
919
  *
981
- * The spec describes this and {@link RequestQueueClientListHeadResult} as separate schemas that
982
- * disagree about which fields are required, and the locked variant carries a different element type,
983
- * so both are derived independently.
920
+ * The spec describes this and {@link RequestQueueHead} as separate schemas that disagree about which fields
921
+ * are required, and the locked variant carries a different element type, so both are derived independently.
984
922
  * @since Added in 2.4.1
985
923
  */
986
- export interface RequestQueueClientListAndLockHeadResult extends Omit<Schemas['LockedRequestQueueHead'], keyof RequestQueueClientListAndLockHeadResultRePointed>, RequestQueueClientListAndLockHeadResultRePointed {
924
+ export interface LockedRequestQueueHead extends Omit<Schemas['LockedRequestQueueHead'], keyof LockedRequestQueueHeadRePointed>, LockedRequestQueueHeadRePointed {
987
925
  }
988
926
  /**
989
927
  * Complete schema for a request in the queue.
990
928
  *
991
929
  * Represents a URL to be crawled along with its metadata, retry information, and custom data.
992
930
  */
993
- export interface RequestQueueClientRequestSchema extends GeneratedRequest {
931
+ export interface RequestResource extends GeneratedRequestResource {
994
932
  }
995
933
  /**
996
934
  * A request as the caller submits it to the queue.
997
935
  *
998
936
  * The API assigns the id, so it is dropped. The unique key and the URL the caller has to supply come
999
- * required from {@link RequestQueueClientRequestSchema}.
937
+ * required from {@link RequestResource}.
1000
938
  */
1001
- export interface RequestQueueClientRequestToAdd extends Omit<RequestQueueClientRequestSchema, 'id'> {
939
+ export interface RequestQueueClientRequestToAdd extends Omit<RequestResource, 'id'> {
1002
940
  }
1003
941
  /**
1004
942
  * A request as the caller submits it to an update of a stored one.
1005
943
  *
1006
944
  * The update addresses that request by its id, which a stored request always carries, so the shape is
1007
- * {@link RequestQueueClientRequestSchema} unchanged. The name stays published as the argument type of
1008
- * `updateRequest()`.
945
+ * {@link RequestResource} unchanged. The name stays published as the argument type of `updateRequest()`.
1009
946
  */
1010
- export interface RequestQueueClientRequestToUpdate extends RequestQueueClientRequestSchema {
947
+ export interface RequestQueueClientRequestToUpdate extends RequestResource {
1011
948
  }
1012
- export interface RequestQueueClientListRequestsResultRePointed {
1013
- items: RequestQueueClientRequestSchema[];
949
+ export interface ListOfRequestsRePointed {
950
+ items: RequestResource[];
1014
951
  }
1015
952
  /**
1016
953
  * Result of listing all requests in the queue.
1017
954
  * @since Added in 2.5.1
1018
955
  */
1019
- export interface RequestQueueClientListRequestsResult extends Omit<Schemas['ListOfRequests'], keyof RequestQueueClientListRequestsResultRePointed>, RequestQueueClientListRequestsResultRePointed {
956
+ export interface ListOfRequests extends Omit<Schemas['ListOfRequests'], keyof ListOfRequestsRePointed>, ListOfRequestsRePointed {
1020
957
  }
1021
958
  /** Result of adding a request to the queue. */
1022
- export interface RequestQueueClientAddRequestResult extends GeneratedRequestRegistration {
959
+ export interface RequestRegistration extends GeneratedRequestRegistration {
1023
960
  }
1024
961
  /**
1025
962
  * Result of prolonging a request lock.
1026
963
  * @since Added in 2.4.1
1027
964
  */
1028
- export interface RequestQueueClientProlongRequestLockResult extends GeneratedRequestLockInfo {
965
+ export interface RequestLockInfo extends GeneratedRequestLockInfo {
1029
966
  }
1030
967
  /**
1031
968
  * Result of unlocking requests in the queue.
1032
969
  * @since Added in 2.12.5
1033
970
  */
1034
- export interface RequestQueueClientUnlockRequestsResult extends GeneratedUnlockRequestsResult {
971
+ export interface UnlockRequestsResult extends GeneratedUnlockRequestsResult {
1035
972
  }
1036
973
  /**
1037
974
  * Result of a batch add operation on requests.
@@ -1039,7 +976,7 @@ export interface RequestQueueClientUnlockRequestsResult extends GeneratedUnlockR
1039
976
  * Contains lists of successfully processed and unprocessed requests.
1040
977
  * @since Added in 2.3.0
1041
978
  */
1042
- export interface RequestQueueClientBatchRequestsOperationResult extends GeneratedBatchAddResult {
979
+ export interface BatchAddResult extends GeneratedBatchAddResult {
1043
980
  }
1044
981
  /**
1045
982
  * Result of a batch delete operation on requests.
@@ -1048,6 +985,6 @@ export interface RequestQueueClientBatchRequestsOperationResult extends Generate
1048
985
  * and `uniqueKey` rather than the `requestId`, `wasAlreadyPresent` and `wasAlreadyHandled` that a batch
1049
986
  * add reports.
1050
987
  */
1051
- export interface RequestQueueClientBatchDeleteRequestsResult extends GeneratedBatchDeleteResult {
988
+ export interface BatchDeleteResult extends GeneratedBatchDeleteResult {
1052
989
  }
1053
990
  export {};