apify-client 3.0.0-beta.77 → 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 +1658 -117
- package/dist/generated/schemas.d.ts +1435 -130
- package/dist/generated/schemas.js +345 -41
- package/dist/models.d.ts +10 -47
- package/dist/schemas.d.ts +145 -0
- package/dist/schemas.js +7 -0
- package/package.json +2 -2
|
@@ -53,6 +53,7 @@ export const ErrorType = lazySchema(() => z.enum(["3d-secure-auth-failed", "acce
|
|
|
53
53
|
export const ErrorDetail = lazySchema(() => z.looseObject({
|
|
54
54
|
type: ErrorType().optional(),
|
|
55
55
|
message: z.string().optional(),
|
|
56
|
+
data: z.record(z.string(), z.unknown()).optional(),
|
|
56
57
|
}));
|
|
57
58
|
export const ErrorResponse = lazySchema(() => z.looseObject({
|
|
58
59
|
error: ErrorDetail(),
|
|
@@ -100,6 +101,8 @@ export const DefaultRunOptions = lazySchema(() => z.looseObject({
|
|
|
100
101
|
memoryMbytes: z.int().optional(),
|
|
101
102
|
restartOnError: z.boolean().nullable().optional(),
|
|
102
103
|
maxItems: z.int().nullable().optional(),
|
|
104
|
+
maxTotalChargeUsd: z.number().nullable().optional(),
|
|
105
|
+
isMaxTotalChargeUsdSetByUser: z.boolean().nullable().optional(),
|
|
103
106
|
forcePermissionLevel: ActorPermissionLevel().nullable().optional(),
|
|
104
107
|
}));
|
|
105
108
|
export const ActorStandby = lazySchema(() => z.looseObject({
|
|
@@ -111,6 +114,9 @@ export const ActorStandby = lazySchema(() => z.looseObject({
|
|
|
111
114
|
memoryMbytes: z.int().nullable().optional(),
|
|
112
115
|
disableStandbyFieldsOverride: z.boolean().nullable().optional(),
|
|
113
116
|
shouldPassActorInput: z.boolean().nullable().optional(),
|
|
117
|
+
tenancy: z.string().nullable().optional(),
|
|
118
|
+
isConsoleAuthEnabled: z.boolean().nullable().optional(),
|
|
119
|
+
isTokenlessEnabled: z.boolean().nullable().optional(),
|
|
114
120
|
}));
|
|
115
121
|
export const ExampleRunInput = lazySchema(() => z.looseObject({
|
|
116
122
|
body: z.string().optional(),
|
|
@@ -137,6 +143,7 @@ export const EnvVar = lazySchema(() => z.looseObject({
|
|
|
137
143
|
name: z.string(),
|
|
138
144
|
value: z.string().optional(),
|
|
139
145
|
isSecret: z.boolean().nullable().optional(),
|
|
146
|
+
valueHash: z.string().optional(),
|
|
140
147
|
}));
|
|
141
148
|
export const Version = lazySchema(() => z.looseObject({
|
|
142
149
|
versionNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])$/),
|
|
@@ -148,6 +155,9 @@ export const Version = lazySchema(() => z.looseObject({
|
|
|
148
155
|
gitRepoUrl: z.string().nullable().optional(),
|
|
149
156
|
tarballUrl: z.string().nullable().optional(),
|
|
150
157
|
gitHubGistUrl: z.string().nullable().optional(),
|
|
158
|
+
githubWebhookId: z.int().nullable().optional(),
|
|
159
|
+
gitlabWebhookId: z.int().nullable().optional(),
|
|
160
|
+
bitbucketWebhookId: z.string().nullable().optional(),
|
|
151
161
|
}));
|
|
152
162
|
export const CommonActorPricingInfo = lazySchema(() => z.looseObject({
|
|
153
163
|
apifyMarginPercentage: z.number(),
|
|
@@ -155,6 +165,7 @@ export const CommonActorPricingInfo = lazySchema(() => z.looseObject({
|
|
|
155
165
|
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
156
166
|
notifiedAboutFutureChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
157
167
|
notifiedAboutChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
168
|
+
notifiedAboutRentalToPpePriceChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
158
169
|
reasonForChange: z.string().nullable().optional(),
|
|
159
170
|
isPriceChangeNotificationSuppressed: z.boolean().optional(),
|
|
160
171
|
forceContainsSignificantPriceChange: z.boolean().optional(),
|
|
@@ -186,6 +197,7 @@ export const PayPerEventActorPricingInfo = lazySchema(() => CommonActorPricingIn
|
|
|
186
197
|
actorChargeEvents: z.record(z.string(), ActorChargeEvent()).optional(),
|
|
187
198
|
}),
|
|
188
199
|
minimalMaxTotalChargeUsd: z.number().nullable().optional(),
|
|
200
|
+
isPPEPlatformUsagePaidByUser: z.boolean().nullable().optional(),
|
|
189
201
|
}));
|
|
190
202
|
/** A single tier's price-per-dataset-item entry. */
|
|
191
203
|
export const TieredPricingPerDatasetItemEntry = lazySchema(() => z.looseObject({
|
|
@@ -303,6 +315,10 @@ export const UpdateVersionRequest = lazySchema(() => z.looseObject({
|
|
|
303
315
|
tarballUrl: z.string().optional(),
|
|
304
316
|
gitHubGistUrl: z.string().optional(),
|
|
305
317
|
}));
|
|
318
|
+
export const UpdateBuildOnPushRequest = lazySchema(() => z.looseObject({
|
|
319
|
+
providerId: z.string(),
|
|
320
|
+
enabled: z.boolean(),
|
|
321
|
+
}));
|
|
306
322
|
export const ListOfEnvVars = lazySchema(() => z.looseObject({
|
|
307
323
|
total: z.int(),
|
|
308
324
|
items: z.array(EnvVar()),
|
|
@@ -320,6 +336,40 @@ export const WebhookCondition = lazySchema(() => z.looseObject({
|
|
|
320
336
|
actorTaskId: z.string().nullable().optional(),
|
|
321
337
|
actorRunId: z.string().nullable().optional(),
|
|
322
338
|
}));
|
|
339
|
+
/** Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. */
|
|
340
|
+
export const WebhookSlackMessage = lazySchema(() => z.looseObject({
|
|
341
|
+
userIntegrationId: z.string().optional(),
|
|
342
|
+
channelId: z.string().optional(),
|
|
343
|
+
messageTemplate: z.string().optional(),
|
|
344
|
+
}));
|
|
345
|
+
/** Selects which dataset item fields are included in the output. */
|
|
346
|
+
export const WebhookDatasetTransformation = lazySchema(() => z.looseObject({
|
|
347
|
+
fields: z.array(z.string()).optional(),
|
|
348
|
+
omit: z.array(z.string()).optional(),
|
|
349
|
+
}));
|
|
350
|
+
/** Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. */
|
|
351
|
+
export const WebhookGoogleMail = lazySchema(() => z.looseObject({
|
|
352
|
+
userIntegrationId: z.string().optional(),
|
|
353
|
+
emailTo: z.array(z.string()).optional(),
|
|
354
|
+
subject: z.string().optional(),
|
|
355
|
+
body: z.string().optional(),
|
|
356
|
+
attachmentFormat: z.string().optional(),
|
|
357
|
+
attachmentTransformation: WebhookDatasetTransformation().optional(),
|
|
358
|
+
}));
|
|
359
|
+
/** Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. */
|
|
360
|
+
export const WebhookGoogleDrive = lazySchema(() => z.looseObject({
|
|
361
|
+
userIntegrationId: z.string().optional(),
|
|
362
|
+
filename: z.string().optional(),
|
|
363
|
+
format: z.string().nullable().optional(),
|
|
364
|
+
transformation: WebhookDatasetTransformation().optional(),
|
|
365
|
+
}));
|
|
366
|
+
/** GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. */
|
|
367
|
+
export const WebhookGithubIssue = lazySchema(() => z.looseObject({
|
|
368
|
+
userIntegrationId: z.string().optional(),
|
|
369
|
+
repository: z.string().optional(),
|
|
370
|
+
title: z.string().optional(),
|
|
371
|
+
body: z.string().optional(),
|
|
372
|
+
}));
|
|
323
373
|
/** Status of the webhook dispatch indicating whether the HTTP request was successful. */
|
|
324
374
|
export const WebhookDispatchStatus = lazySchema(() => z.enum(["ACTIVE", "SUCCEEDED", "FAILED"]).or(z.string()));
|
|
325
375
|
export const WebhookLastDispatch = lazySchema(() => z.looseObject({
|
|
@@ -330,29 +380,59 @@ export const WebhookLastDispatch = lazySchema(() => z.looseObject({
|
|
|
330
380
|
export const WebhookStats = lazySchema(() => z.looseObject({
|
|
331
381
|
totalDispatches: z.int().optional(),
|
|
332
382
|
}));
|
|
333
|
-
export const
|
|
383
|
+
export const WebhookResource = lazySchema(() => z.looseObject({
|
|
334
384
|
id: z.string(),
|
|
335
385
|
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
336
386
|
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
337
387
|
userId: z.string(),
|
|
338
388
|
isAdHoc: z.boolean().nullable().optional(),
|
|
339
|
-
isApifyIntegration: z.boolean().optional(),
|
|
340
389
|
isEnabled: z.boolean().optional(),
|
|
341
390
|
actionType: z.string().optional(),
|
|
391
|
+
isApifyIntegration: z.boolean().nullable().optional(),
|
|
342
392
|
shouldInterpolateStrings: z.boolean().nullable().optional(),
|
|
343
393
|
eventTypes: z.array(WebhookEventType()),
|
|
344
394
|
condition: WebhookCondition(),
|
|
345
395
|
ignoreSslErrors: z.boolean(),
|
|
346
|
-
doNotRetry: z.boolean(),
|
|
347
|
-
requestUrl: z.url({ normalize: true }),
|
|
396
|
+
doNotRetry: z.boolean().nullable().optional(),
|
|
397
|
+
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
398
|
+
payloadTemplate: z.string().nullable().optional(),
|
|
399
|
+
headersTemplate: z.string().nullable().optional(),
|
|
400
|
+
title: z.string().nullable().optional(),
|
|
401
|
+
description: z.string().nullable().optional(),
|
|
402
|
+
slackMessage: WebhookSlackMessage().optional(),
|
|
403
|
+
googleMail: WebhookGoogleMail().optional(),
|
|
404
|
+
googleDrive: WebhookGoogleDrive().optional(),
|
|
405
|
+
githubIssue: WebhookGithubIssue().optional(),
|
|
348
406
|
lastDispatch: WebhookLastDispatch().nullable().optional(),
|
|
349
407
|
stats: WebhookStats().nullable().optional(),
|
|
350
408
|
}));
|
|
351
|
-
|
|
352
|
-
|
|
409
|
+
/** Paginated list of webhooks with all their fields, including `payloadTemplate`. */
|
|
410
|
+
export const ListOfWebhookResources = lazySchema(() => PaginationResponse().extend({
|
|
411
|
+
items: z.array(WebhookResource()),
|
|
353
412
|
}));
|
|
354
|
-
export const
|
|
355
|
-
data:
|
|
413
|
+
export const ListOfWebhookResourcesResponse = lazySchema(() => z.looseObject({
|
|
414
|
+
data: ListOfWebhookResources(),
|
|
415
|
+
}));
|
|
416
|
+
/** An OAuth connection configured on an Actor. Secret credentials are never returned. */
|
|
417
|
+
export const ActorOAuthConnection = lazySchema(() => z.looseObject({
|
|
418
|
+
_id: z.string(),
|
|
419
|
+
actorId: z.string(),
|
|
420
|
+
oAuthProviderType: z.enum(["CUSTOM", "GOOGLE"]).or(z.string()),
|
|
421
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
422
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
423
|
+
credentials: z.looseObject({
|
|
424
|
+
clientId: z.string().optional(),
|
|
425
|
+
scope: z.string().optional(),
|
|
426
|
+
label: z.string().optional(),
|
|
427
|
+
imageUrl: z.string().optional(),
|
|
428
|
+
}).optional(),
|
|
429
|
+
}));
|
|
430
|
+
export const ListOfActorOAuthConnections = lazySchema(() => z.looseObject({
|
|
431
|
+
total: z.int(),
|
|
432
|
+
items: z.array(ActorOAuthConnection()),
|
|
433
|
+
}));
|
|
434
|
+
export const ListOfActorOAuthConnectionsResponse = lazySchema(() => z.looseObject({
|
|
435
|
+
data: ListOfActorOAuthConnections(),
|
|
356
436
|
}));
|
|
357
437
|
/** Status of an Actor job (run or build). */
|
|
358
438
|
export const ActorJobStatus = lazySchema(() => z.enum(["READY", "RUNNING", "SUCCEEDED", "FAILED", "TIMING-OUT", "TIMED-OUT", "ABORTING", "ABORTED"]).or(z.string()));
|
|
@@ -361,6 +441,9 @@ export const BuildMeta = lazySchema(() => z.looseObject({
|
|
|
361
441
|
origin: RunOrigin(),
|
|
362
442
|
clientIp: z.string().optional(),
|
|
363
443
|
userAgent: z.string().optional(),
|
|
444
|
+
githubActionsRunUrl: z.string().optional(),
|
|
445
|
+
actorRunId: z.string().optional(),
|
|
446
|
+
webhookDispatchId: z.string().optional(),
|
|
364
447
|
}));
|
|
365
448
|
export const BuildListItem = lazySchema(() => z.looseObject({
|
|
366
449
|
id: z.string(),
|
|
@@ -369,7 +452,7 @@ export const BuildListItem = lazySchema(() => z.looseObject({
|
|
|
369
452
|
status: ActorJobStatus(),
|
|
370
453
|
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
371
454
|
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
372
|
-
usageTotalUsd: z.number(),
|
|
455
|
+
usageTotalUsd: z.number().optional(),
|
|
373
456
|
buildNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])(\.[1-9][0-9]{0,4})$/),
|
|
374
457
|
buildNumberInt: z.int().optional(),
|
|
375
458
|
meta: BuildMeta().optional(),
|
|
@@ -391,6 +474,8 @@ export const BuildOptions = lazySchema(() => z.looseObject({
|
|
|
391
474
|
betaPackages: z.boolean().nullable().optional(),
|
|
392
475
|
memoryMbytes: z.int().nullable().optional(),
|
|
393
476
|
diskMbytes: z.int().nullable().optional(),
|
|
477
|
+
tag: z.string().nullable().optional(),
|
|
478
|
+
debug: z.boolean().nullable().optional(),
|
|
394
479
|
}));
|
|
395
480
|
export const BuildUsage = lazySchema(() => z.looseObject({
|
|
396
481
|
ACTOR_COMPUTE_UNITS: z.number().nullable().optional(),
|
|
@@ -443,6 +528,11 @@ export const Build = lazySchema(() => z.looseObject({
|
|
|
443
528
|
usageUsd: BuildUsage().nullable().optional(),
|
|
444
529
|
inputSchema: z.string().nullable().optional(),
|
|
445
530
|
readme: z.string().nullable().optional(),
|
|
531
|
+
changelog: z.string().nullable().optional(),
|
|
532
|
+
exitCode: z.int().nullable().optional(),
|
|
533
|
+
gitCommitId: z.string().optional(),
|
|
534
|
+
gitBranchName: z.string().optional(),
|
|
535
|
+
createdByOrganizationMemberUserId: z.string().optional(),
|
|
446
536
|
buildNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])(\.[1-9][0-9]{0,4})$/),
|
|
447
537
|
imageDigest: z.string().nullable().optional(),
|
|
448
538
|
actVersion: z.looseObject({
|
|
@@ -451,6 +541,8 @@ export const Build = lazySchema(() => z.looseObject({
|
|
|
451
541
|
versionNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])$/).optional(),
|
|
452
542
|
gitRepoUrl: z.string().optional(),
|
|
453
543
|
sourceFiles: z.array(SourceCodeFile()).optional(),
|
|
544
|
+
gitHubGistUrl: z.string().optional(),
|
|
545
|
+
tarballUrl: z.string().optional(),
|
|
454
546
|
}).optional(),
|
|
455
547
|
actorDefinition: ActorDefinition().nullable().optional(),
|
|
456
548
|
}));
|
|
@@ -464,6 +556,14 @@ export const RunMeta = lazySchema(() => z.looseObject({
|
|
|
464
556
|
userAgent: z.string().nullable().optional(),
|
|
465
557
|
scheduleId: z.string().nullable().optional(),
|
|
466
558
|
scheduledAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
559
|
+
actorRunId: z.string().optional(),
|
|
560
|
+
webhookDispatchId: z.string().optional(),
|
|
561
|
+
scheduledAct2Id: z.string().optional(),
|
|
562
|
+
scheduledActorTaskId: z.string().optional(),
|
|
563
|
+
}));
|
|
564
|
+
/** Standby configuration of the run. Present only on Actor Standby runs. */
|
|
565
|
+
export const RunStandby = lazySchema(() => z.looseObject({
|
|
566
|
+
deployment: z.string(),
|
|
467
567
|
}));
|
|
468
568
|
export const RunListItem = lazySchema(() => z.looseObject({
|
|
469
569
|
id: z.string(),
|
|
@@ -481,6 +581,7 @@ export const RunListItem = lazySchema(() => z.looseObject({
|
|
|
481
581
|
defaultKeyValueStoreId: z.string(),
|
|
482
582
|
defaultDatasetId: z.string(),
|
|
483
583
|
defaultRequestQueueId: z.string(),
|
|
584
|
+
standby: RunStandby().nullable().optional(),
|
|
484
585
|
}));
|
|
485
586
|
export const ListOfRuns = lazySchema(() => PaginationResponse().extend({
|
|
486
587
|
items: z.array(RunListItem()),
|
|
@@ -522,13 +623,26 @@ export const RunStats = lazySchema(() => z.looseObject({
|
|
|
522
623
|
metamorph: z.int().min(0).optional(),
|
|
523
624
|
computeUnits: z.number().min(0).optional(),
|
|
524
625
|
}));
|
|
626
|
+
/** Cost of a single pay-per-event event type charged during the run. */
|
|
627
|
+
export const RunEventUsage = lazySchema(() => z.looseObject({
|
|
628
|
+
eventTotalUsd: z.number(),
|
|
629
|
+
eventTitle: z.string(),
|
|
630
|
+
}));
|
|
631
|
+
/** Information about the third-party integration that created the resource. */
|
|
632
|
+
export const IntegrationTracking = lazySchema(() => z.looseObject({
|
|
633
|
+
platform: z.string().optional(),
|
|
634
|
+
appId: z.string().optional(),
|
|
635
|
+
isAiTool: z.boolean().optional(),
|
|
636
|
+
}));
|
|
525
637
|
export const RunOptions = lazySchema(() => z.looseObject({
|
|
526
638
|
build: z.string(),
|
|
527
639
|
timeoutSecs: z.int().min(0),
|
|
528
640
|
memoryMbytes: z.int().min(128).max(32768),
|
|
529
641
|
diskMbytes: z.int().min(0),
|
|
642
|
+
restartOnError: z.boolean().nullable().optional(),
|
|
530
643
|
maxItems: z.int().min(0).nullable().optional(),
|
|
531
644
|
maxTotalChargeUsd: z.number().min(0).nullable().optional(),
|
|
645
|
+
isMaxTotalChargeUsdSetByUser: z.boolean().optional(),
|
|
532
646
|
}));
|
|
533
647
|
/** Defines the general access level for the resource. */
|
|
534
648
|
export const GeneralAccess = lazySchema(() => z.enum(["ANYONE_WITH_ID_CAN_READ", "ANYONE_WITH_NAME_CAN_READ", "FOLLOW_USER_SETTING", "RESTRICTED"]).or(z.string()));
|
|
@@ -545,6 +659,7 @@ export const RunUsage = lazySchema(() => z.looseObject({
|
|
|
545
659
|
DATA_TRANSFER_EXTERNAL_GBYTES: z.number().nullable().optional(),
|
|
546
660
|
PROXY_RESIDENTIAL_TRANSFER_GBYTES: z.number().nullable().optional(),
|
|
547
661
|
PROXY_SERPS: z.int().nullable().optional(),
|
|
662
|
+
PROXY_UNBLOCKER_UNITS: z.number().nullable().optional(),
|
|
548
663
|
}));
|
|
549
664
|
/** Resource usage costs in USD. All values are monetary amounts in US dollars. */
|
|
550
665
|
export const RunUsageUsd = lazySchema(() => z.looseObject({
|
|
@@ -560,6 +675,7 @@ export const RunUsageUsd = lazySchema(() => z.looseObject({
|
|
|
560
675
|
DATA_TRANSFER_EXTERNAL_GBYTES: z.number().nullable().optional(),
|
|
561
676
|
PROXY_RESIDENTIAL_TRANSFER_GBYTES: z.number().nullable().optional(),
|
|
562
677
|
PROXY_SERPS: z.number().nullable().optional(),
|
|
678
|
+
PROXY_UNBLOCKER_UNITS: z.number().nullable().optional(),
|
|
563
679
|
}));
|
|
564
680
|
/** Information about a metamorph event that occurred during the run. */
|
|
565
681
|
export const RunMetamorphEvent = lazySchema(() => z.looseObject({
|
|
@@ -567,6 +683,7 @@ export const RunMetamorphEvent = lazySchema(() => z.looseObject({
|
|
|
567
683
|
actorId: z.string(),
|
|
568
684
|
buildId: z.string(),
|
|
569
685
|
inputKey: z.string().nullable().optional(),
|
|
686
|
+
buildTags: z.array(z.string()).optional(),
|
|
570
687
|
}));
|
|
571
688
|
/** Represents an Actor run and its associated data. */
|
|
572
689
|
export const Run = lazySchema(() => z.looseObject({
|
|
@@ -583,6 +700,14 @@ export const Run = lazySchema(() => z.looseObject({
|
|
|
583
700
|
pricingInfo: ActorRunPricingInfo().optional(),
|
|
584
701
|
stats: RunStats(),
|
|
585
702
|
chargedEventCounts: z.record(z.string(), z.int()).optional(),
|
|
703
|
+
accountedChargedEventCounts: z.record(z.string(), z.int()).nullable().optional(),
|
|
704
|
+
eventUsage: z.record(z.string(), RunEventUsage()).optional(),
|
|
705
|
+
externalChargedTotalUsd: z.number().optional(),
|
|
706
|
+
standby: RunStandby().nullable().optional(),
|
|
707
|
+
integrationTracking: IntegrationTracking().optional(),
|
|
708
|
+
createdByOrganizationMemberUserId: z.string().optional(),
|
|
709
|
+
consoleUrl: z.url({ normalize: true }).optional(),
|
|
710
|
+
output: z.record(z.string(), z.url({ normalize: true })).optional(),
|
|
586
711
|
options: RunOptions(),
|
|
587
712
|
buildId: z.string(),
|
|
588
713
|
exitCode: z.int().nullable().optional(),
|
|
@@ -623,6 +748,7 @@ export const DatasetStats = lazySchema(() => z.looseObject({
|
|
|
623
748
|
export const DatasetResource = lazySchema(() => z.looseObject({
|
|
624
749
|
id: z.string(),
|
|
625
750
|
name: z.string().nullable().optional(),
|
|
751
|
+
title: z.string().nullable().optional(),
|
|
626
752
|
userId: z.string(),
|
|
627
753
|
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
628
754
|
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
@@ -697,6 +823,7 @@ export const KeyValueStoreStats = lazySchema(() => z.looseObject({
|
|
|
697
823
|
export const KeyValueStoreResource = lazySchema(() => z.looseObject({
|
|
698
824
|
id: z.string(),
|
|
699
825
|
name: z.string().nullable().optional(),
|
|
826
|
+
title: z.string().nullable().optional(),
|
|
700
827
|
userId: z.string().nullable().optional(),
|
|
701
828
|
username: z.string().nullable().optional(),
|
|
702
829
|
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
@@ -776,6 +903,7 @@ export const RequestQueueStats = lazySchema(() => z.looseObject({
|
|
|
776
903
|
export const RequestQueueResource = lazySchema(() => z.looseObject({
|
|
777
904
|
id: QueueId(),
|
|
778
905
|
name: z.string().nullable().optional(),
|
|
906
|
+
title: z.string().nullable().optional(),
|
|
779
907
|
userId: QueueUserId(),
|
|
780
908
|
actId: z.string().nullable().optional(),
|
|
781
909
|
actRunId: z.string().nullable().optional(),
|
|
@@ -825,9 +953,13 @@ export const RequestBase = lazySchema(() => z.looseObject({
|
|
|
825
953
|
}));
|
|
826
954
|
/** A unique identifier assigned to the request. */
|
|
827
955
|
export const RequestId = lazySchema(() => z.string());
|
|
956
|
+
/** The timestamp when the lock on this request expires. */
|
|
957
|
+
export const LockExpiresAt = lazySchema(() => z.iso.datetime({ offset: true }).pipe(z.coerce.date()));
|
|
828
958
|
/** A request stored in the request queue, including its metadata and processing state. */
|
|
829
959
|
export const RequestResource = lazySchema(() => RequestBase().extend({
|
|
830
960
|
id: RequestId().optional(),
|
|
961
|
+
lockExpiresAt: LockExpiresAt().optional(),
|
|
962
|
+
lockByClient: z.string().optional(),
|
|
831
963
|
}).required({ id: true }));
|
|
832
964
|
/** A paginated list of requests from the request queue. */
|
|
833
965
|
export const ListOfRequests = lazySchema(() => z.looseObject({
|
|
@@ -929,8 +1061,6 @@ export const RequestResponse = lazySchema(() => z.looseObject({
|
|
|
929
1061
|
export const UpdateRequestResponse = lazySchema(() => z.looseObject({
|
|
930
1062
|
data: RequestRegistration(),
|
|
931
1063
|
}));
|
|
932
|
-
/** The timestamp when the lock on this request expires. */
|
|
933
|
-
export const LockExpiresAt = lazySchema(() => z.iso.datetime({ offset: true }).pipe(z.coerce.date()));
|
|
934
1064
|
/** Information about a request lock. */
|
|
935
1065
|
export const RequestLockInfo = lazySchema(() => z.looseObject({
|
|
936
1066
|
lockExpiresAt: LockExpiresAt(),
|
|
@@ -985,6 +1115,7 @@ export const LockedRequestQueueHeadResponse = lazySchema(() => z.looseObject({
|
|
|
985
1115
|
}));
|
|
986
1116
|
export const TaskStats = lazySchema(() => z.looseObject({
|
|
987
1117
|
totalRuns: z.int().optional(),
|
|
1118
|
+
lastRunStartedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
988
1119
|
}));
|
|
989
1120
|
export const TaskListItem = lazySchema(() => z.looseObject({
|
|
990
1121
|
id: z.string(),
|
|
@@ -992,11 +1123,13 @@ export const TaskListItem = lazySchema(() => z.looseObject({
|
|
|
992
1123
|
actId: z.string(),
|
|
993
1124
|
actName: z.string().nullable().optional(),
|
|
994
1125
|
name: z.string(),
|
|
1126
|
+
title: z.string().nullable().optional(),
|
|
995
1127
|
username: z.string().nullable().optional(),
|
|
996
1128
|
actUsername: z.string().nullable().optional(),
|
|
997
1129
|
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
998
1130
|
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
999
1131
|
stats: TaskStats().nullable().optional(),
|
|
1132
|
+
isPublic: z.boolean().optional(),
|
|
1000
1133
|
}));
|
|
1001
1134
|
export const ListOfTasks = lazySchema(() => PaginationResponse().extend({
|
|
1002
1135
|
items: z.array(TaskListItem()),
|
|
@@ -1011,6 +1144,8 @@ export const TaskOptions = lazySchema(() => z.looseObject({
|
|
|
1011
1144
|
maxItems: z.int().nullable().optional(),
|
|
1012
1145
|
maxTotalChargeUsd: z.number().nullable().optional(),
|
|
1013
1146
|
restartOnError: z.boolean().nullable().optional(),
|
|
1147
|
+
isMaxTotalChargeUsdSetByUser: z.boolean().nullable().optional(),
|
|
1148
|
+
forcePermissionLevel: ActorPermissionLevel().nullable().optional(),
|
|
1014
1149
|
}));
|
|
1015
1150
|
/**
|
|
1016
1151
|
* The input configuration for the Actor task. This is a user-defined JSON object
|
|
@@ -1029,6 +1164,12 @@ export const TaskPublicConfig = lazySchema(() => z.looseObject({
|
|
|
1029
1164
|
inputSchemaFields: z.array(z.string()).nullable().optional(),
|
|
1030
1165
|
datasetName: z.string().nullable().optional(),
|
|
1031
1166
|
datasetView: z.string().nullable().optional(),
|
|
1167
|
+
categorization: z.string().nullable().optional(),
|
|
1168
|
+
highlightedFields: z.array(z.string()).nullable().optional(),
|
|
1169
|
+
faq: z.array(z.looseObject({
|
|
1170
|
+
question: z.string(),
|
|
1171
|
+
answer: z.string(),
|
|
1172
|
+
})).nullable().optional(),
|
|
1032
1173
|
}));
|
|
1033
1174
|
export const CreateTaskRequest = lazySchema(() => z.looseObject({
|
|
1034
1175
|
actId: z.string(),
|
|
@@ -1045,6 +1186,7 @@ export const Task = lazySchema(() => z.looseObject({
|
|
|
1045
1186
|
userId: z.string(),
|
|
1046
1187
|
actId: z.string(),
|
|
1047
1188
|
name: z.string(),
|
|
1189
|
+
nameLowerCase: z.string().optional(),
|
|
1048
1190
|
username: z.string().nullable().optional(),
|
|
1049
1191
|
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1050
1192
|
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
@@ -1073,24 +1215,6 @@ export const UpdateTaskRequest = lazySchema(() => z.looseObject({
|
|
|
1073
1215
|
publicConfig: TaskPublicConfig().optional(),
|
|
1074
1216
|
isPublic: z.boolean().optional(),
|
|
1075
1217
|
}));
|
|
1076
|
-
export const WebhookResource = lazySchema(() => z.looseObject({
|
|
1077
|
-
id: z.string(),
|
|
1078
|
-
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1079
|
-
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1080
|
-
userId: z.string(),
|
|
1081
|
-
isAdHoc: z.boolean().nullable().optional(),
|
|
1082
|
-
shouldInterpolateStrings: z.boolean().nullable().optional(),
|
|
1083
|
-
eventTypes: z.array(WebhookEventType()),
|
|
1084
|
-
condition: WebhookCondition(),
|
|
1085
|
-
ignoreSslErrors: z.boolean(),
|
|
1086
|
-
doNotRetry: z.boolean().nullable().optional(),
|
|
1087
|
-
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1088
|
-
payloadTemplate: z.string().nullable().optional(),
|
|
1089
|
-
headersTemplate: z.string().nullable().optional(),
|
|
1090
|
-
description: z.string().nullable().optional(),
|
|
1091
|
-
lastDispatch: WebhookLastDispatch().nullable().optional(),
|
|
1092
|
-
stats: WebhookStats().nullable().optional(),
|
|
1093
|
-
}));
|
|
1094
1218
|
export const UpdateRunRequest = lazySchema(() => z.looseObject({
|
|
1095
1219
|
runId: z.string().optional(),
|
|
1096
1220
|
statusMessage: z.string().optional(),
|
|
@@ -1102,17 +1226,60 @@ export const ChargeRunRequest = lazySchema(() => z.looseObject({
|
|
|
1102
1226
|
count: z.int(),
|
|
1103
1227
|
requestId: z.string().optional(),
|
|
1104
1228
|
}));
|
|
1229
|
+
/** An account a user connected through an Actor OAuth connection. */
|
|
1230
|
+
export const ActorOAuthAccount = lazySchema(() => z.looseObject({
|
|
1231
|
+
_id: z.string(),
|
|
1232
|
+
userId: z.string(),
|
|
1233
|
+
connectionId: z.string(),
|
|
1234
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1235
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1236
|
+
authorizedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1237
|
+
description: z.string().nullable().optional(),
|
|
1238
|
+
data: z.record(z.string(), z.unknown()),
|
|
1239
|
+
}));
|
|
1240
|
+
export const ListOfActorOAuthAccounts = lazySchema(() => z.looseObject({
|
|
1241
|
+
total: z.int(),
|
|
1242
|
+
items: z.array(ActorOAuthAccount()),
|
|
1243
|
+
}));
|
|
1244
|
+
export const ListOfActorOAuthAccountsResponse = lazySchema(() => z.looseObject({
|
|
1245
|
+
data: ListOfActorOAuthAccounts(),
|
|
1246
|
+
}));
|
|
1247
|
+
export const ActorOAuthAccountResponse = lazySchema(() => z.looseObject({
|
|
1248
|
+
data: ActorOAuthAccount(),
|
|
1249
|
+
}));
|
|
1105
1250
|
export const StorageOwnership = lazySchema(() => z.enum(["ownedByMe", "sharedWithMe"]).or(z.string()));
|
|
1251
|
+
export const KeyValueStoreListStats = lazySchema(() => z.looseObject({
|
|
1252
|
+
readCount: z.int().optional(),
|
|
1253
|
+
writeCount: z.int().optional(),
|
|
1254
|
+
deleteCount: z.int().optional(),
|
|
1255
|
+
listCount: z.int().optional(),
|
|
1256
|
+
s3StorageBytes: z.int().optional(),
|
|
1257
|
+
}));
|
|
1258
|
+
export const KeyValueStoreListItem = lazySchema(() => z.looseObject({
|
|
1259
|
+
id: z.string(),
|
|
1260
|
+
name: z.string().nullable().optional(),
|
|
1261
|
+
title: z.string().nullable().optional(),
|
|
1262
|
+
userId: z.string().nullable().optional(),
|
|
1263
|
+
username: z.string().nullable().optional(),
|
|
1264
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1265
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1266
|
+
accessedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1267
|
+
actId: z.string().nullable().optional(),
|
|
1268
|
+
actRunId: z.string().nullable().optional(),
|
|
1269
|
+
schema: z.union([z.record(z.string(), z.unknown()), z.string()]).nullable().optional(),
|
|
1270
|
+
generalAccess: GeneralAccess().nullable().optional(),
|
|
1271
|
+
stats: KeyValueStoreListStats().optional(),
|
|
1272
|
+
}));
|
|
1106
1273
|
export const ListOfKeyValueStores = lazySchema(() => PaginationResponse().extend({
|
|
1107
1274
|
unnamed: z.boolean().optional(),
|
|
1108
|
-
items: z.array(
|
|
1275
|
+
items: z.array(KeyValueStoreListItem()),
|
|
1109
1276
|
}));
|
|
1110
1277
|
export const ListOfKeyValueStoresResponse = lazySchema(() => z.looseObject({
|
|
1111
1278
|
data: ListOfKeyValueStores(),
|
|
1112
1279
|
}));
|
|
1113
1280
|
export const DatasetListItem = lazySchema(() => z.looseObject({
|
|
1114
1281
|
id: z.string(),
|
|
1115
|
-
name: z.string(),
|
|
1282
|
+
name: z.string().nullable().optional(),
|
|
1116
1283
|
userId: z.string(),
|
|
1117
1284
|
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1118
1285
|
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
@@ -1133,12 +1300,22 @@ export const ListOfDatasets = lazySchema(() => PaginationResponse().extend({
|
|
|
1133
1300
|
export const ListOfDatasetsResponse = lazySchema(() => z.looseObject({
|
|
1134
1301
|
data: ListOfDatasets(),
|
|
1135
1302
|
}));
|
|
1303
|
+
/** Statistics about request queue operations and storage, as returned in request queue lists. */
|
|
1304
|
+
export const RequestQueueListStats = lazySchema(() => z.looseObject({
|
|
1305
|
+
deleteCount: z.int().optional(),
|
|
1306
|
+
headItemReadCount: z.int().optional(),
|
|
1307
|
+
readCount: z.int().optional(),
|
|
1308
|
+
writeCount: z.int().optional(),
|
|
1309
|
+
s3StorageBytes: z.int().optional(),
|
|
1310
|
+
dynamodbStorageBytes: z.int().optional(),
|
|
1311
|
+
}));
|
|
1136
1312
|
/** A shortened request queue object for list responses. */
|
|
1137
1313
|
export const RequestQueueListItem = lazySchema(() => z.looseObject({
|
|
1138
1314
|
id: QueueId(),
|
|
1139
|
-
name: z.string(),
|
|
1315
|
+
name: z.string().nullable().optional(),
|
|
1316
|
+
title: z.string().nullable().optional(),
|
|
1140
1317
|
userId: QueueUserId(),
|
|
1141
|
-
username: z.string(),
|
|
1318
|
+
username: z.string().optional(),
|
|
1142
1319
|
createdAt: QueueCreatedAt(),
|
|
1143
1320
|
modifiedAt: QueueModifiedAt(),
|
|
1144
1321
|
accessedAt: QueueAccessedAt(),
|
|
@@ -1150,7 +1327,7 @@ export const RequestQueueListItem = lazySchema(() => z.looseObject({
|
|
|
1150
1327
|
actRunId: z.string().nullable().optional(),
|
|
1151
1328
|
hadMultipleClients: HadMultipleClients(),
|
|
1152
1329
|
generalAccess: GeneralAccess().nullable().optional(),
|
|
1153
|
-
stats:
|
|
1330
|
+
stats: RequestQueueListStats().optional(),
|
|
1154
1331
|
}));
|
|
1155
1332
|
/** A paginated list of request queues. */
|
|
1156
1333
|
export const ListOfRequestQueues = lazySchema(() => PaginationResponse().extend({
|
|
@@ -1161,6 +1338,37 @@ export const ListOfRequestQueues = lazySchema(() => PaginationResponse().extend(
|
|
|
1161
1338
|
export const ListOfRequestQueuesResponse = lazySchema(() => z.looseObject({
|
|
1162
1339
|
data: ListOfRequestQueues(),
|
|
1163
1340
|
}));
|
|
1341
|
+
export const WebhookListItem = lazySchema(() => z.looseObject({
|
|
1342
|
+
id: z.string(),
|
|
1343
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1344
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1345
|
+
userId: z.string(),
|
|
1346
|
+
isAdHoc: z.boolean().nullable().optional(),
|
|
1347
|
+
isApifyIntegration: z.boolean().optional(),
|
|
1348
|
+
isEnabled: z.boolean().optional(),
|
|
1349
|
+
actionType: z.string().optional(),
|
|
1350
|
+
shouldInterpolateStrings: z.boolean().nullable().optional(),
|
|
1351
|
+
eventTypes: z.array(WebhookEventType()),
|
|
1352
|
+
condition: WebhookCondition(),
|
|
1353
|
+
ignoreSslErrors: z.boolean(),
|
|
1354
|
+
doNotRetry: z.boolean(),
|
|
1355
|
+
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1356
|
+
headersTemplate: z.string().nullable().optional(),
|
|
1357
|
+
title: z.string().nullable().optional(),
|
|
1358
|
+
description: z.string().nullable().optional(),
|
|
1359
|
+
slackMessage: WebhookSlackMessage().optional(),
|
|
1360
|
+
googleMail: WebhookGoogleMail().optional(),
|
|
1361
|
+
googleDrive: WebhookGoogleDrive().optional(),
|
|
1362
|
+
githubIssue: WebhookGithubIssue().optional(),
|
|
1363
|
+
lastDispatch: WebhookLastDispatch().nullable().optional(),
|
|
1364
|
+
stats: WebhookStats().nullable().optional(),
|
|
1365
|
+
}));
|
|
1366
|
+
export const ListOfWebhooks = lazySchema(() => PaginationResponse().extend({
|
|
1367
|
+
items: z.array(WebhookListItem()),
|
|
1368
|
+
}));
|
|
1369
|
+
export const ListOfWebhooksResponse = lazySchema(() => z.looseObject({
|
|
1370
|
+
data: ListOfWebhooks(),
|
|
1371
|
+
}));
|
|
1164
1372
|
export const CreateWebhookRequest = lazySchema(() => z.looseObject({
|
|
1165
1373
|
isAdHoc: z.boolean().nullable().optional(),
|
|
1166
1374
|
eventTypes: z.array(WebhookEventType()),
|
|
@@ -1192,10 +1400,16 @@ export const UpdateWebhookRequest = lazySchema(() => z.looseObject({
|
|
|
1192
1400
|
}));
|
|
1193
1401
|
/** A summary of the webhook that triggered this dispatch. */
|
|
1194
1402
|
export const WebhookDispatchWebhookSummary = lazySchema(() => z.looseObject({
|
|
1403
|
+
_id: z.string().optional(),
|
|
1195
1404
|
actionType: z.string().optional(),
|
|
1196
1405
|
condition: WebhookCondition().optional(),
|
|
1197
1406
|
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1198
1407
|
isAdHoc: z.boolean().optional(),
|
|
1408
|
+
isApifyIntegration: z.boolean().nullable().optional(),
|
|
1409
|
+
slackMessage: WebhookSlackMessage().optional(),
|
|
1410
|
+
googleMail: WebhookGoogleMail().optional(),
|
|
1411
|
+
googleDrive: WebhookGoogleDrive().optional(),
|
|
1412
|
+
githubIssue: WebhookGithubIssue().optional(),
|
|
1199
1413
|
}));
|
|
1200
1414
|
export const WebhookDispatch = lazySchema(() => z.looseObject({
|
|
1201
1415
|
id: z.string(),
|
|
@@ -1217,6 +1431,7 @@ export const WebhookDispatch = lazySchema(() => z.looseObject({
|
|
|
1217
1431
|
errorMessage: z.string().nullable().optional(),
|
|
1218
1432
|
responseStatus: z.int().nullable().optional(),
|
|
1219
1433
|
responseBody: z.string().nullable().optional(),
|
|
1434
|
+
debugPostMessage: z.record(z.string(), z.unknown()).optional(),
|
|
1220
1435
|
})).optional(),
|
|
1221
1436
|
}));
|
|
1222
1437
|
export const WebhookDispatchResponse = lazySchema(() => z.looseObject({
|
|
@@ -1241,6 +1456,10 @@ export const ScheduleBase = lazySchema(() => z.looseObject({
|
|
|
1241
1456
|
nextRunAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1242
1457
|
lastRunAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1243
1458
|
}));
|
|
1459
|
+
/** Notification settings for this schedule. */
|
|
1460
|
+
export const ScheduleNotifications = lazySchema(() => z.looseObject({
|
|
1461
|
+
email: z.boolean().optional(),
|
|
1462
|
+
}));
|
|
1244
1463
|
export const ScheduleListItemActionRunActor = lazySchema(() => z.looseObject({
|
|
1245
1464
|
id: z.string(),
|
|
1246
1465
|
type: z.literal("RUN_ACTOR"),
|
|
@@ -1253,6 +1472,9 @@ export const ScheduleListItemActionRunActorTask = lazySchema(() => z.looseObject
|
|
|
1253
1472
|
}));
|
|
1254
1473
|
export const ScheduleListItemAction = lazySchema(() => z.discriminatedUnion("type", [ScheduleListItemActionRunActor(), ScheduleListItemActionRunActorTask()]));
|
|
1255
1474
|
export const ScheduleListItem = lazySchema(() => ScheduleBase().extend({
|
|
1475
|
+
title: z.string().nullable().optional(),
|
|
1476
|
+
notifications: ScheduleNotifications().optional(),
|
|
1477
|
+
integrationTracking: IntegrationTracking().optional(),
|
|
1256
1478
|
actions: z.array(ScheduleListItemAction()),
|
|
1257
1479
|
}));
|
|
1258
1480
|
export const ListOfSchedules = lazySchema(() => PaginationResponse().extend({
|
|
@@ -1261,10 +1483,6 @@ export const ListOfSchedules = lazySchema(() => PaginationResponse().extend({
|
|
|
1261
1483
|
export const ListOfSchedulesResponse = lazySchema(() => z.looseObject({
|
|
1262
1484
|
data: ListOfSchedules(),
|
|
1263
1485
|
}));
|
|
1264
|
-
/** Notification settings for this schedule. */
|
|
1265
|
-
export const ScheduleNotifications = lazySchema(() => z.looseObject({
|
|
1266
|
-
email: z.boolean().optional(),
|
|
1267
|
-
}));
|
|
1268
1486
|
export const ScheduleActionRunInput = lazySchema(() => z.looseObject({
|
|
1269
1487
|
body: z.string().nullable().optional(),
|
|
1270
1488
|
contentType: z.string().nullable().optional(),
|
|
@@ -1292,6 +1510,14 @@ export const CreateOrUpdateScheduleRequest = lazySchema(() => z.looseObject({
|
|
|
1292
1510
|
notifications: ScheduleNotifications().optional(),
|
|
1293
1511
|
actions: z.array(ScheduleCreateAction()).nullable().optional(),
|
|
1294
1512
|
}));
|
|
1513
|
+
/** State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`. */
|
|
1514
|
+
export const ScheduleUiState = lazySchema(() => z.looseObject({
|
|
1515
|
+
version: z.int().optional(),
|
|
1516
|
+
data: z.looseObject({
|
|
1517
|
+
cronExpression: z.string().optional(),
|
|
1518
|
+
timezone: z.string().optional(),
|
|
1519
|
+
}).optional(),
|
|
1520
|
+
}));
|
|
1295
1521
|
export const ScheduleActionRunActor = lazySchema(() => z.looseObject({
|
|
1296
1522
|
id: z.string(),
|
|
1297
1523
|
type: z.literal("RUN_ACTOR"),
|
|
@@ -1310,6 +1536,8 @@ export const Schedule = lazySchema(() => ScheduleBase().extend({
|
|
|
1310
1536
|
description: z.string().nullable().optional(),
|
|
1311
1537
|
title: z.string().nullable().optional(),
|
|
1312
1538
|
notifications: ScheduleNotifications().optional(),
|
|
1539
|
+
uiState: ScheduleUiState().optional(),
|
|
1540
|
+
integrationTracking: IntegrationTracking().optional(),
|
|
1313
1541
|
actions: z.array(ScheduleAction()),
|
|
1314
1542
|
}));
|
|
1315
1543
|
export const ScheduleResponse = lazySchema(() => z.looseObject({
|
|
@@ -1336,6 +1564,13 @@ export const CurrentPricingInfo = lazySchema(() => z.looseObject({
|
|
|
1336
1564
|
reasonForChange: z.string().nullable().optional(),
|
|
1337
1565
|
minimalMaxTotalChargeUsd: z.number().nullable().optional(),
|
|
1338
1566
|
pricingPerEvent: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
1567
|
+
pricePerUnitUsd: z.number().optional(),
|
|
1568
|
+
trialMinutes: z.int().optional(),
|
|
1569
|
+
unitName: z.string().optional(),
|
|
1570
|
+
tieredPricing: z.record(z.string(), z.looseObject({
|
|
1571
|
+
tieredPricePerUnitUsd: z.number().optional(),
|
|
1572
|
+
})).optional(),
|
|
1573
|
+
notifiedAboutRentalToPpePriceChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1339
1574
|
}));
|
|
1340
1575
|
export const StoreActor = lazySchema(() => z.looseObject({
|
|
1341
1576
|
id: z.string(),
|
|
@@ -1357,6 +1592,13 @@ export const StoreActor = lazySchema(() => z.looseObject({
|
|
|
1357
1592
|
bookmarkCount: z.int().optional(),
|
|
1358
1593
|
badge: z.string().nullable().optional(),
|
|
1359
1594
|
readmeSummary: z.string().optional(),
|
|
1595
|
+
inputSchema: z.looseObject({
|
|
1596
|
+
type: z.string(),
|
|
1597
|
+
properties: z.record(z.string(), z.looseObject({
|
|
1598
|
+
type: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1599
|
+
})),
|
|
1600
|
+
required: z.array(z.string()).optional(),
|
|
1601
|
+
}).optional(),
|
|
1360
1602
|
}));
|
|
1361
1603
|
export const ListOfStoreActors = lazySchema(() => PaginationResponse().extend({
|
|
1362
1604
|
items: z.array(StoreActor()),
|
|
@@ -1381,12 +1623,14 @@ export const UserPublicInfoResponse = lazySchema(() => z.looseObject({
|
|
|
1381
1623
|
data: UserPublicInfo(),
|
|
1382
1624
|
}));
|
|
1383
1625
|
export const ProxyGroup = lazySchema(() => z.looseObject({
|
|
1626
|
+
id: z.string().optional(),
|
|
1384
1627
|
name: z.string(),
|
|
1385
1628
|
description: z.string().nullable(),
|
|
1386
|
-
availableCount: z.int(),
|
|
1629
|
+
availableCount: z.int().optional(),
|
|
1387
1630
|
}));
|
|
1631
|
+
/** Proxy access info. Omitted when the user has no access to Apify Proxy. */
|
|
1388
1632
|
export const ProxyResource = lazySchema(() => z.looseObject({
|
|
1389
|
-
password: z.string(),
|
|
1633
|
+
password: z.string().nullable().optional(),
|
|
1390
1634
|
groups: z.array(ProxyGroup()),
|
|
1391
1635
|
}));
|
|
1392
1636
|
/**
|
|
@@ -1421,6 +1665,17 @@ export const UserPlan = lazySchema(() => z.looseObject({
|
|
|
1421
1665
|
maxScheduleCount: z.int().optional(),
|
|
1422
1666
|
maxConcurrentActorRuns: z.int().optional(),
|
|
1423
1667
|
planPricing: z.record(z.string(), z.unknown()).optional(),
|
|
1668
|
+
planVersion: z.number().optional(),
|
|
1669
|
+
legacyPlanId: z.string().optional(),
|
|
1670
|
+
planTags: z.array(z.string()).optional(),
|
|
1671
|
+
overageThresholdUsd: z.number().optional(),
|
|
1672
|
+
maxMonthlyUnblockerUnits: z.int().optional(),
|
|
1673
|
+
maxPublicActorTaskCount: z.int().optional(),
|
|
1674
|
+
maxPublicActorTaskCountPerActor: z.int().optional(),
|
|
1675
|
+
forceBillingInterval: z.string().optional(),
|
|
1676
|
+
personalizedSupport: z.string().nullable().optional(),
|
|
1677
|
+
monitoringLevel: z.enum(["STANDARD"]).or(z.string()).nullable().optional(),
|
|
1678
|
+
isPayingCustomer: z.boolean().optional(),
|
|
1424
1679
|
}));
|
|
1425
1680
|
export const EffectivePlatformFeature = lazySchema(() => z.looseObject({
|
|
1426
1681
|
isEnabled: z.boolean(),
|
|
@@ -1445,12 +1700,13 @@ export const UserPrivateInfo = lazySchema(() => z.looseObject({
|
|
|
1445
1700
|
id: z.string().optional(),
|
|
1446
1701
|
username: z.string(),
|
|
1447
1702
|
profile: UserProfile().optional(),
|
|
1448
|
-
email: z.string().optional(),
|
|
1703
|
+
email: z.string().nullable().optional(),
|
|
1449
1704
|
proxy: ProxyResource().optional(),
|
|
1450
1705
|
plan: UserPlan().optional(),
|
|
1451
1706
|
effectivePlatformFeatures: EffectivePlatformFeatures().optional(),
|
|
1452
1707
|
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).optional(),
|
|
1453
1708
|
isPaying: z.boolean().optional(),
|
|
1709
|
+
organizationOwnerUserId: z.string().nullable().optional(),
|
|
1454
1710
|
}));
|
|
1455
1711
|
export const UserPrivateInfoResponse = lazySchema(() => z.looseObject({
|
|
1456
1712
|
data: UserPrivateInfo(),
|
|
@@ -1505,6 +1761,7 @@ export const Limits = lazySchema(() => z.looseObject({
|
|
|
1505
1761
|
maxTeamAccountSeatCount: z.int(),
|
|
1506
1762
|
dataRetentionDays: z.int(),
|
|
1507
1763
|
maxScheduleCount: z.int().optional(),
|
|
1764
|
+
maxMonthlyUnblockerUnits: z.number().optional(),
|
|
1508
1765
|
}));
|
|
1509
1766
|
export const CurrentUsage = lazySchema(() => z.looseObject({
|
|
1510
1767
|
monthlyUsageUsd: z.number(),
|
|
@@ -1518,6 +1775,7 @@ export const CurrentUsage = lazySchema(() => z.looseObject({
|
|
|
1518
1775
|
activeActorJobCount: z.int(),
|
|
1519
1776
|
teamAccountSeatCount: z.int(),
|
|
1520
1777
|
scheduleCount: z.int().optional(),
|
|
1778
|
+
monthlyUnblockerUnits: z.number().optional(),
|
|
1521
1779
|
}));
|
|
1522
1780
|
export const AccountLimits = lazySchema(() => z.looseObject({
|
|
1523
1781
|
monthlyUsageCycle: UsageCycle(),
|
|
@@ -1531,6 +1789,52 @@ export const UpdateLimitsRequest = lazySchema(() => z.looseObject({
|
|
|
1531
1789
|
maxMonthlyUsageUsd: z.number().optional(),
|
|
1532
1790
|
dataRetentionDays: z.int().optional(),
|
|
1533
1791
|
}));
|
|
1792
|
+
/** A place the user can create a repository in, such as their own account or an organization, group or workspace they can access. */
|
|
1793
|
+
export const GitProviderWorkspace = lazySchema(() => z.looseObject({
|
|
1794
|
+
id: z.string(),
|
|
1795
|
+
label: z.string(),
|
|
1796
|
+
}));
|
|
1797
|
+
/** A connected git provider account the user can create repositories through. */
|
|
1798
|
+
export const GitProviderIntegration = lazySchema(() => z.looseObject({
|
|
1799
|
+
id: z.string(),
|
|
1800
|
+
provider: z.enum(["github", "gitlab", "bitbucket"]).or(z.string()),
|
|
1801
|
+
workspaces: z.array(GitProviderWorkspace()),
|
|
1802
|
+
addWorkspaceUrl: z.string().optional(),
|
|
1803
|
+
}));
|
|
1804
|
+
export const ListOfGitProviderIntegrationsResponse = lazySchema(() => z.looseObject({
|
|
1805
|
+
data: z.array(GitProviderIntegration()),
|
|
1806
|
+
}));
|
|
1807
|
+
/** A file to commit into the new repository. */
|
|
1808
|
+
export const GitRepoFile = lazySchema(() => z.looseObject({
|
|
1809
|
+
path: z.string(),
|
|
1810
|
+
content: z.string(),
|
|
1811
|
+
encoding: z.enum(["utf-8", "base64"]).or(z.string()),
|
|
1812
|
+
}));
|
|
1813
|
+
export const CreateGitRepoRequest = lazySchema(() => z.looseObject({
|
|
1814
|
+
workspace: z.string(),
|
|
1815
|
+
repoName: z.string(),
|
|
1816
|
+
isPrivate: z.boolean(),
|
|
1817
|
+
files: z.array(GitRepoFile()).optional(),
|
|
1818
|
+
templateArchiveUrl: z.string().optional(),
|
|
1819
|
+
}));
|
|
1820
|
+
/** URLs of a newly created repository. */
|
|
1821
|
+
export const GitRepo = lazySchema(() => z.looseObject({
|
|
1822
|
+
sshUrl: z.string(),
|
|
1823
|
+
httpsUrl: z.string(),
|
|
1824
|
+
htmlUrl: z.string(),
|
|
1825
|
+
}));
|
|
1826
|
+
export const GitRepoResponse = lazySchema(() => z.looseObject({
|
|
1827
|
+
data: GitRepo(),
|
|
1828
|
+
}));
|
|
1829
|
+
export const RegisterDeploymentKeyRequest = lazySchema(() => z.looseObject({
|
|
1830
|
+
actorId: z.string(),
|
|
1831
|
+
repoName: z.string(),
|
|
1832
|
+
}));
|
|
1833
|
+
export const RegisterDeploymentKeyResponse = lazySchema(() => z.looseObject({
|
|
1834
|
+
data: z.looseObject({
|
|
1835
|
+
repoName: z.string(),
|
|
1836
|
+
}),
|
|
1837
|
+
}));
|
|
1534
1838
|
export const BrowserInfoResponse = lazySchema(() => z.looseObject({
|
|
1535
1839
|
method: z.string(),
|
|
1536
1840
|
clientIp: z.string().nullable(),
|