apify-client 3.0.0-beta.76 → 3.0.0-beta.78
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/bundle.js +10 -10
- package/dist/bundle.js.map +1 -1
- package/dist/generated/api.d.ts +1831 -320
- package/dist/generated/schemas.d.ts +1462 -119
- package/dist/generated/schemas.js +358 -41
- package/dist/models.d.ts +11 -61
- package/dist/schemas.d.ts +167 -0
- package/dist/schemas.js +7 -0
- package/package.json +2 -2
package/dist/models.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ export type ErrorType = Schemas['ErrorType'];
|
|
|
62
62
|
* TODO: Remove once the spec covers them.
|
|
63
63
|
*/
|
|
64
64
|
export interface DatasetResourceSpecGaps {
|
|
65
|
-
title?: string;
|
|
66
65
|
username?: string;
|
|
67
66
|
}
|
|
68
67
|
export interface DatasetResourceRePointed {
|
|
@@ -143,14 +142,6 @@ export interface WebhookDispatchEventData extends GeneratedWebhookDispatchEventD
|
|
|
143
142
|
}
|
|
144
143
|
type GeneratedKeyValueStoreStats = Schemas['KeyValueStoreStats'];
|
|
145
144
|
type GeneratedKeyValueStoreKey = Schemas['KeyValueStoreKey'];
|
|
146
|
-
/**
|
|
147
|
-
* Fields the API returns on a key-value store that the OpenAPI spec does not describe yet.
|
|
148
|
-
*
|
|
149
|
-
* TODO: Remove once the spec covers them.
|
|
150
|
-
*/
|
|
151
|
-
export interface KeyValueStoreResourceSpecGaps {
|
|
152
|
-
title?: string;
|
|
153
|
-
}
|
|
154
145
|
export interface KeyValueStoreResourceRePointed {
|
|
155
146
|
stats?: KeyValueStoreStats;
|
|
156
147
|
generalAccess?: STORAGE_GENERAL_ACCESS | null;
|
|
@@ -161,7 +152,7 @@ export interface KeyValueStoreResourceRePointed {
|
|
|
161
152
|
* Key-value stores are used to store arbitrary data records or files. Each record is identified
|
|
162
153
|
* by a unique key and can contain any data - JSON objects, strings, binary files, etc.
|
|
163
154
|
*/
|
|
164
|
-
export interface KeyValueStoreResource extends Omit<Schemas['KeyValueStoreResource'], keyof KeyValueStoreResourceRePointed>, KeyValueStoreResourceRePointed
|
|
155
|
+
export interface KeyValueStoreResource extends Omit<Schemas['KeyValueStoreResource'], keyof KeyValueStoreResourceRePointed>, KeyValueStoreResourceRePointed {
|
|
165
156
|
}
|
|
166
157
|
/** Statistics about Key-Value Store usage and storage. */
|
|
167
158
|
export interface KeyValueStoreStats extends GeneratedKeyValueStoreStats {
|
|
@@ -303,19 +294,6 @@ export interface DefaultRunOptionsRePointed {
|
|
|
303
294
|
/** Default configuration options for Actor runs. */
|
|
304
295
|
export interface DefaultRunOptions extends Omit<Schemas['DefaultRunOptions'], keyof DefaultRunOptionsRePointed>, DefaultRunOptionsRePointed {
|
|
305
296
|
}
|
|
306
|
-
/**
|
|
307
|
-
* Fields of an Actor definition that the OpenAPI spec does not describe yet.
|
|
308
|
-
*
|
|
309
|
-
* TODO: Remove once the spec covers them.
|
|
310
|
-
*/
|
|
311
|
-
export interface ActorDefinitionSpecGaps {
|
|
312
|
-
/**
|
|
313
|
-
* Output schema for the Actor.
|
|
314
|
-
*
|
|
315
|
-
* @see https://docs.apify.com/platform/actors/development/actor-definition/output-schema
|
|
316
|
-
*/
|
|
317
|
-
output?: object | null;
|
|
318
|
-
}
|
|
319
297
|
type GeneratedActorDefinition = Schemas['ActorDefinition'];
|
|
320
298
|
/**
|
|
321
299
|
* Actor definition from the `.actor/actor.json` file.
|
|
@@ -324,7 +302,7 @@ type GeneratedActorDefinition = Schemas['ActorDefinition'];
|
|
|
324
302
|
* @see https://docs.apify.com/platform/actors/development/actor-definition/actor-json
|
|
325
303
|
* @since Added in 2.11.0
|
|
326
304
|
*/
|
|
327
|
-
export interface ActorDefinition extends GeneratedActorDefinition
|
|
305
|
+
export interface ActorDefinition extends GeneratedActorDefinition {
|
|
328
306
|
}
|
|
329
307
|
export interface ActorChargeEventRePointed {
|
|
330
308
|
eventTieredPricingUsd?: TieredPricingPerEvent;
|
|
@@ -524,20 +502,12 @@ export interface RunMetaRePointed {
|
|
|
524
502
|
/** Metadata about how an Actor run was initiated. */
|
|
525
503
|
export interface RunMeta extends Omit<Schemas['RunMeta'], keyof RunMetaRePointed>, RunMetaRePointed {
|
|
526
504
|
}
|
|
527
|
-
/**
|
|
528
|
-
* Fields the API returns in an Actor run's options that the OpenAPI spec does not describe yet.
|
|
529
|
-
*
|
|
530
|
-
* TODO: Remove once the spec covers it.
|
|
531
|
-
*/
|
|
532
|
-
export interface RunOptionsSpecGaps {
|
|
533
|
-
restartOnError?: boolean;
|
|
534
|
-
}
|
|
535
505
|
/**
|
|
536
506
|
* Configuration options used for an Actor run.
|
|
537
507
|
*
|
|
538
508
|
* These are the actual options that were applied to the run (may differ from requested options).
|
|
539
509
|
*/
|
|
540
|
-
export interface RunOptions extends GeneratedRunOptions
|
|
510
|
+
export interface RunOptions extends GeneratedRunOptions {
|
|
541
511
|
}
|
|
542
512
|
export interface RunListItemRePointed {
|
|
543
513
|
meta: RunMeta;
|
|
@@ -609,19 +579,8 @@ export interface Task extends Omit<Schemas['Task'], keyof TaskRePointed>, TaskRe
|
|
|
609
579
|
export interface TaskListItemRePointed {
|
|
610
580
|
stats?: TaskStats | null;
|
|
611
581
|
}
|
|
612
|
-
/**
|
|
613
|
-
* Fields the API returns on a listed task that the OpenAPI spec does not describe yet.
|
|
614
|
-
*
|
|
615
|
-
* `description` is deliberately not here, although the spec has it on the full `Task` resource: the
|
|
616
|
-
* list endpoint publishes a smaller set of fields, and that is one of the fields it leaves out.
|
|
617
|
-
*
|
|
618
|
-
* TODO: Remove once the spec covers it.
|
|
619
|
-
*/
|
|
620
|
-
export interface TaskListItemSpecGaps {
|
|
621
|
-
title?: string | null;
|
|
622
|
-
}
|
|
623
582
|
/** A task as it appears in a listing, which carries fewer fields than the full resource. */
|
|
624
|
-
export interface TaskListItem extends Omit<Schemas['TaskListItem'], keyof TaskListItemRePointed>, TaskListItemRePointed
|
|
583
|
+
export interface TaskListItem extends Omit<Schemas['TaskListItem'], keyof TaskListItemRePointed>, TaskListItemRePointed {
|
|
625
584
|
}
|
|
626
585
|
export interface StoreActorRePointed {
|
|
627
586
|
stats: ActorStats;
|
|
@@ -680,17 +639,6 @@ export interface WebhookLastDispatchRePointed {
|
|
|
680
639
|
/** The summary of a webhook's most recent dispatch that the webhook resource carries. */
|
|
681
640
|
export interface WebhookLastDispatch extends Omit<Schemas['WebhookLastDispatch'], keyof WebhookLastDispatchRePointed>, WebhookLastDispatchRePointed {
|
|
682
641
|
}
|
|
683
|
-
/**
|
|
684
|
-
* Fields the API returns on a webhook that the OpenAPI spec does not describe yet.
|
|
685
|
-
*
|
|
686
|
-
* The spec does carry `isApifyIntegration` on `WebhookListItem`, the listing shape, and simply omits it
|
|
687
|
-
* from the full `WebhookResource` schema.
|
|
688
|
-
*
|
|
689
|
-
* TODO: Remove once the spec covers it.
|
|
690
|
-
*/
|
|
691
|
-
export interface WebhookResourceSpecGaps {
|
|
692
|
-
isApifyIntegration?: boolean;
|
|
693
|
-
}
|
|
694
642
|
export interface WebhookResourceRePointed {
|
|
695
643
|
condition: WebhookCondition;
|
|
696
644
|
stats?: WebhookStats | null;
|
|
@@ -703,7 +651,7 @@ export interface WebhookResourceRePointed {
|
|
|
703
651
|
* Webhooks send HTTP POST requests to specified URLs when certain events occur
|
|
704
652
|
* (e.g., Actor run succeeds, fails, or times out).
|
|
705
653
|
*/
|
|
706
|
-
export interface WebhookResource extends Omit<Schemas['WebhookResource'], keyof WebhookResourceRePointed>, WebhookResourceRePointed
|
|
654
|
+
export interface WebhookResource extends Omit<Schemas['WebhookResource'], keyof WebhookResourceRePointed>, WebhookResourceRePointed {
|
|
707
655
|
}
|
|
708
656
|
type GeneratedScheduleActionRunInput = Schemas['ScheduleActionRunInput'];
|
|
709
657
|
/**
|
|
@@ -746,12 +694,15 @@ export interface ScheduleRePointed {
|
|
|
746
694
|
export interface ScheduleClientNarrowings {
|
|
747
695
|
timezone: Timezone;
|
|
748
696
|
}
|
|
697
|
+
export interface ScheduleSpecNarrowings {
|
|
698
|
+
uiState?: NonNullable<Schemas['Schedule']['uiState']> | null;
|
|
699
|
+
}
|
|
749
700
|
/**
|
|
750
701
|
* Represents a schedule for automated Actor or Task runs.
|
|
751
702
|
*
|
|
752
703
|
* Schedules use cron expressions to define when Actors or Tasks should run automatically.
|
|
753
704
|
*/
|
|
754
|
-
export interface Schedule extends Omit<Schemas['Schedule'], keyof ScheduleRePointed | keyof ScheduleClientNarrowings>, ScheduleRePointed, ScheduleClientNarrowings {
|
|
705
|
+
export interface Schedule extends Omit<Schemas['Schedule'], keyof ScheduleRePointed | keyof ScheduleClientNarrowings | keyof ScheduleSpecNarrowings>, ScheduleRePointed, ScheduleClientNarrowings, ScheduleSpecNarrowings {
|
|
755
706
|
}
|
|
756
707
|
type GeneratedUserProfile = Schemas['UserProfile'];
|
|
757
708
|
type GeneratedProxyGroup = Schemas['ProxyGroup'];
|
|
@@ -912,12 +863,11 @@ export interface RequestQueueStats extends GeneratedRequestQueueStats {
|
|
|
912
863
|
* Fields the API returns on a request queue that the OpenAPI spec does not describe yet.
|
|
913
864
|
*
|
|
914
865
|
* The spec does carry `username` on `RequestQueueListItem`, the listing shape, and simply omits it from the
|
|
915
|
-
* full `RequestQueueResource` schema.
|
|
866
|
+
* full `RequestQueueResource` schema.
|
|
916
867
|
*
|
|
917
|
-
* TODO: Remove once the spec covers
|
|
868
|
+
* TODO: Remove once the spec covers it.
|
|
918
869
|
*/
|
|
919
870
|
export interface RequestQueueResourceSpecGaps {
|
|
920
|
-
title?: string;
|
|
921
871
|
username?: string;
|
|
922
872
|
}
|
|
923
873
|
export interface RequestQueueResourceRePointed {
|
package/dist/schemas.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export declare const Build: () => z.ZodObject<{
|
|
|
47
47
|
}>, z.ZodString]>;
|
|
48
48
|
clientIp: z.ZodOptional<z.ZodString>;
|
|
49
49
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
50
|
+
githubActionsRunUrl: z.ZodOptional<z.ZodString>;
|
|
51
|
+
actorRunId: z.ZodOptional<z.ZodString>;
|
|
52
|
+
webhookDispatchId: z.ZodOptional<z.ZodString>;
|
|
50
53
|
}, z.core.$loose>;
|
|
51
54
|
stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
55
|
durationMillis: z.ZodOptional<z.ZodInt>;
|
|
@@ -59,6 +62,8 @@ export declare const Build: () => z.ZodObject<{
|
|
|
59
62
|
betaPackages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
60
63
|
memoryMbytes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
61
64
|
diskMbytes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
65
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
debug: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
62
67
|
}, z.core.$loose>>>;
|
|
63
68
|
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
64
69
|
ACTOR_COMPUTE_UNITS: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -69,26 +74,42 @@ export declare const Build: () => z.ZodObject<{
|
|
|
69
74
|
}, z.core.$loose>>>;
|
|
70
75
|
inputSchema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
76
|
readme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
changelog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
79
|
+
gitCommitId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
gitBranchName: z.ZodOptional<z.ZodString>;
|
|
81
|
+
createdByOrganizationMemberUserId: z.ZodOptional<z.ZodString>;
|
|
72
82
|
buildNumber: z.ZodString;
|
|
73
83
|
imageDigest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
84
|
actorDefinition: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
75
85
|
actorSpecification: z.ZodOptional<z.ZodLiteral<1>>;
|
|
76
86
|
name: z.ZodOptional<z.ZodString>;
|
|
87
|
+
title: z.ZodOptional<z.ZodString>;
|
|
88
|
+
description: z.ZodOptional<z.ZodString>;
|
|
77
89
|
version: z.ZodOptional<z.ZodString>;
|
|
78
90
|
buildTag: z.ZodOptional<z.ZodString>;
|
|
91
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
generatedBy: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$loose>>;
|
|
79
95
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
80
96
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
81
97
|
dockerContextDir: z.ZodOptional<z.ZodString>;
|
|
82
98
|
readme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
99
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
100
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
84
101
|
changelog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
102
|
storages: z.ZodOptional<z.ZodObject<{
|
|
86
103
|
dataset: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
|
+
datasets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
105
|
+
keyValueStore: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
87
106
|
}, z.core.$loose>>;
|
|
88
107
|
defaultMemoryMbytes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
89
108
|
minMemoryMbytes: z.ZodOptional<z.ZodInt>;
|
|
90
109
|
maxMemoryMbytes: z.ZodOptional<z.ZodInt>;
|
|
91
110
|
usesStandbyMode: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
webServerSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
112
|
+
webServerMcpPath: z.ZodOptional<z.ZodString>;
|
|
92
113
|
}, z.core.$loose>>>;
|
|
93
114
|
actVersion: z.ZodOptional<z.ZodObject<{
|
|
94
115
|
sourceType: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
@@ -108,6 +129,8 @@ export declare const Build: () => z.ZodObject<{
|
|
|
108
129
|
content: z.ZodOptional<z.ZodString>;
|
|
109
130
|
name: z.ZodString;
|
|
110
131
|
}, z.core.$loose>>>;
|
|
132
|
+
gitHubGistUrl: z.ZodOptional<z.ZodString>;
|
|
133
|
+
tarballUrl: z.ZodOptional<z.ZodString>;
|
|
111
134
|
buildTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
135
|
}, z.core.$loose>>;
|
|
113
136
|
}, z.core.$loose>;
|
|
@@ -145,6 +168,9 @@ export declare const BuildResponse: () => z.ZodObject<{
|
|
|
145
168
|
}>, z.ZodString]>;
|
|
146
169
|
clientIp: z.ZodOptional<z.ZodString>;
|
|
147
170
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
171
|
+
githubActionsRunUrl: z.ZodOptional<z.ZodString>;
|
|
172
|
+
actorRunId: z.ZodOptional<z.ZodString>;
|
|
173
|
+
webhookDispatchId: z.ZodOptional<z.ZodString>;
|
|
148
174
|
}, z.core.$loose>;
|
|
149
175
|
stats: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
150
176
|
durationMillis: z.ZodOptional<z.ZodInt>;
|
|
@@ -157,6 +183,8 @@ export declare const BuildResponse: () => z.ZodObject<{
|
|
|
157
183
|
betaPackages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
158
184
|
memoryMbytes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
159
185
|
diskMbytes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
186
|
+
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
debug: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
160
188
|
}, z.core.$loose>>>;
|
|
161
189
|
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
162
190
|
ACTOR_COMPUTE_UNITS: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -167,26 +195,42 @@ export declare const BuildResponse: () => z.ZodObject<{
|
|
|
167
195
|
}, z.core.$loose>>>;
|
|
168
196
|
inputSchema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
197
|
readme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
changelog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
200
|
+
gitCommitId: z.ZodOptional<z.ZodString>;
|
|
201
|
+
gitBranchName: z.ZodOptional<z.ZodString>;
|
|
202
|
+
createdByOrganizationMemberUserId: z.ZodOptional<z.ZodString>;
|
|
170
203
|
buildNumber: z.ZodString;
|
|
171
204
|
imageDigest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
205
|
actorDefinition: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
173
206
|
actorSpecification: z.ZodOptional<z.ZodLiteral<1>>;
|
|
174
207
|
name: z.ZodOptional<z.ZodString>;
|
|
208
|
+
title: z.ZodOptional<z.ZodString>;
|
|
209
|
+
description: z.ZodOptional<z.ZodString>;
|
|
175
210
|
version: z.ZodOptional<z.ZodString>;
|
|
176
211
|
buildTag: z.ZodOptional<z.ZodString>;
|
|
212
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
214
|
+
generatedBy: z.ZodOptional<z.ZodString>;
|
|
215
|
+
}, z.core.$loose>>;
|
|
177
216
|
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
178
217
|
dockerfile: z.ZodOptional<z.ZodString>;
|
|
179
218
|
dockerContextDir: z.ZodOptional<z.ZodString>;
|
|
180
219
|
readme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
220
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
221
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
182
222
|
changelog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
183
223
|
storages: z.ZodOptional<z.ZodObject<{
|
|
184
224
|
dataset: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
225
|
+
datasets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
226
|
+
keyValueStore: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
185
227
|
}, z.core.$loose>>;
|
|
186
228
|
defaultMemoryMbytes: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
|
|
187
229
|
minMemoryMbytes: z.ZodOptional<z.ZodInt>;
|
|
188
230
|
maxMemoryMbytes: z.ZodOptional<z.ZodInt>;
|
|
189
231
|
usesStandbyMode: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
webServerSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
233
|
+
webServerMcpPath: z.ZodOptional<z.ZodString>;
|
|
190
234
|
}, z.core.$loose>>>;
|
|
191
235
|
actVersion: z.ZodOptional<z.ZodObject<{
|
|
192
236
|
sourceType: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
@@ -206,7 +250,130 @@ export declare const BuildResponse: () => z.ZodObject<{
|
|
|
206
250
|
content: z.ZodOptional<z.ZodString>;
|
|
207
251
|
name: z.ZodString;
|
|
208
252
|
}, z.core.$loose>>>;
|
|
253
|
+
gitHubGistUrl: z.ZodOptional<z.ZodString>;
|
|
254
|
+
tarballUrl: z.ZodOptional<z.ZodString>;
|
|
209
255
|
buildTag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
256
|
}, z.core.$loose>>;
|
|
211
257
|
}, z.core.$loose>;
|
|
212
258
|
}, z.core.$loose>;
|
|
259
|
+
/**
|
|
260
|
+
* The API returns `uiState` as `null` once an API update has changed the schedule's `cronExpression` or `timezone`,
|
|
261
|
+
* which the specification types as an object.
|
|
262
|
+
*/
|
|
263
|
+
export declare const Schedule: () => z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
userId: z.ZodString;
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
cronExpression: z.ZodString;
|
|
268
|
+
timezone: z.ZodString;
|
|
269
|
+
isEnabled: z.ZodBoolean;
|
|
270
|
+
isExclusive: z.ZodBoolean;
|
|
271
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>;
|
|
272
|
+
modifiedAt: z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>;
|
|
273
|
+
nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>>>;
|
|
274
|
+
lastRunAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>>>;
|
|
275
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
notifications: z.ZodOptional<z.ZodObject<{
|
|
278
|
+
email: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
}, z.core.$loose>>;
|
|
280
|
+
integrationTracking: z.ZodOptional<z.ZodObject<{
|
|
281
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
282
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
283
|
+
isAiTool: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
}, z.core.$loose>>;
|
|
285
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
type: z.ZodLiteral<"RUN_ACTOR">;
|
|
288
|
+
actorId: z.ZodString;
|
|
289
|
+
runInput: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
290
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
|
+
contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
+
}, z.core.$loose>>>;
|
|
293
|
+
runOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
294
|
+
build: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
|
+
timeoutSecs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
296
|
+
memoryMbytes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
297
|
+
maxItems: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
298
|
+
maxTotalChargeUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
299
|
+
restartOnError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
300
|
+
isMaxTotalChargeUsdSetByUser: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
301
|
+
forcePermissionLevel: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
|
|
302
|
+
FULL_PERMISSIONS: "FULL_PERMISSIONS";
|
|
303
|
+
LIMITED_PERMISSIONS: "LIMITED_PERMISSIONS";
|
|
304
|
+
}>, z.ZodString]>>>;
|
|
305
|
+
}, z.core.$loose>>>;
|
|
306
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
307
|
+
id: z.ZodString;
|
|
308
|
+
type: z.ZodLiteral<"RUN_ACTOR_TASK">;
|
|
309
|
+
actorTaskId: z.ZodString;
|
|
310
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
311
|
+
}, z.core.$loose>], "type">>;
|
|
312
|
+
uiState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
313
|
+
version: z.ZodOptional<z.ZodInt>;
|
|
314
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
315
|
+
cronExpression: z.ZodOptional<z.ZodString>;
|
|
316
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
317
|
+
}, z.core.$loose>>;
|
|
318
|
+
}, z.core.$loose>>>;
|
|
319
|
+
}, z.core.$loose>;
|
|
320
|
+
/** Response containing schedule data. */
|
|
321
|
+
export declare const ScheduleResponse: () => z.ZodObject<{
|
|
322
|
+
data: z.ZodObject<{
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
userId: z.ZodString;
|
|
325
|
+
name: z.ZodString;
|
|
326
|
+
cronExpression: z.ZodString;
|
|
327
|
+
timezone: z.ZodString;
|
|
328
|
+
isEnabled: z.ZodBoolean;
|
|
329
|
+
isExclusive: z.ZodBoolean;
|
|
330
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>;
|
|
331
|
+
modifiedAt: z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>;
|
|
332
|
+
nextRunAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>>>;
|
|
333
|
+
lastRunAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodCoercedDate<string>>>>;
|
|
334
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
notifications: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
email: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
}, z.core.$loose>>;
|
|
339
|
+
integrationTracking: z.ZodOptional<z.ZodObject<{
|
|
340
|
+
platform: z.ZodOptional<z.ZodString>;
|
|
341
|
+
appId: z.ZodOptional<z.ZodString>;
|
|
342
|
+
isAiTool: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
+
}, z.core.$loose>>;
|
|
344
|
+
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
345
|
+
id: z.ZodString;
|
|
346
|
+
type: z.ZodLiteral<"RUN_ACTOR">;
|
|
347
|
+
actorId: z.ZodString;
|
|
348
|
+
runInput: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
349
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
}, z.core.$loose>>>;
|
|
352
|
+
runOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
353
|
+
build: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
|
+
timeoutSecs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
355
|
+
memoryMbytes: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
356
|
+
maxItems: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
357
|
+
maxTotalChargeUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
358
|
+
restartOnError: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
359
|
+
isMaxTotalChargeUsdSetByUser: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
360
|
+
forcePermissionLevel: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<{
|
|
361
|
+
FULL_PERMISSIONS: "FULL_PERMISSIONS";
|
|
362
|
+
LIMITED_PERMISSIONS: "LIMITED_PERMISSIONS";
|
|
363
|
+
}>, z.ZodString]>>>;
|
|
364
|
+
}, z.core.$loose>>>;
|
|
365
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
366
|
+
id: z.ZodString;
|
|
367
|
+
type: z.ZodLiteral<"RUN_ACTOR_TASK">;
|
|
368
|
+
actorTaskId: z.ZodString;
|
|
369
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
370
|
+
}, z.core.$loose>], "type">>;
|
|
371
|
+
uiState: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
372
|
+
version: z.ZodOptional<z.ZodInt>;
|
|
373
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
374
|
+
cronExpression: z.ZodOptional<z.ZodString>;
|
|
375
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
376
|
+
}, z.core.$loose>>;
|
|
377
|
+
}, z.core.$loose>>>;
|
|
378
|
+
}, z.core.$loose>;
|
|
379
|
+
}, z.core.$loose>;
|
package/dist/schemas.js
CHANGED
|
@@ -28,3 +28,10 @@ export const Build = lazySchema(() => {
|
|
|
28
28
|
});
|
|
29
29
|
/** Response containing Actor build data. */
|
|
30
30
|
export const BuildResponse = lazySchema(() => generated.BuildResponse().extend({ data: Build() }));
|
|
31
|
+
/**
|
|
32
|
+
* The API returns `uiState` as `null` once an API update has changed the schedule's `cronExpression` or `timezone`,
|
|
33
|
+
* which the specification types as an object.
|
|
34
|
+
*/
|
|
35
|
+
export const Schedule = lazySchema(() => generated.Schedule().extend({ uiState: generated.ScheduleUiState().nullable().optional() }));
|
|
36
|
+
/** Response containing schedule data. */
|
|
37
|
+
export const ScheduleResponse = lazySchema(() => generated.ScheduleResponse().extend({ data: Schedule() }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-client",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.78",
|
|
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-10-
|
|
62
|
+
"version": "v2-2026-10-27T134926Z"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|