@trigger.dev/core 4.3.1 → 4.3.3
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/commonjs/v3/apiClient/index.js +32 -8
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/streamBatchItems.test.js +39 -0
- package/dist/commonjs/v3/apiClient/streamBatchItems.test.js.map +1 -1
- package/dist/commonjs/v3/idempotency-key-catalog/catalog.d.ts +9 -0
- package/dist/commonjs/v3/idempotency-key-catalog/catalog.js +3 -0
- package/dist/commonjs/v3/idempotency-key-catalog/catalog.js.map +1 -0
- package/dist/commonjs/v3/idempotency-key-catalog/index.d.ts +9 -0
- package/dist/commonjs/v3/idempotency-key-catalog/index.js +33 -0
- package/dist/commonjs/v3/idempotency-key-catalog/index.js.map +1 -0
- package/dist/commonjs/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.d.ts +8 -0
- package/dist/commonjs/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.js +35 -0
- package/dist/commonjs/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.js.map +1 -0
- package/dist/commonjs/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.test.d.ts +1 -0
- package/dist/commonjs/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.test.js +161 -0
- package/dist/commonjs/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.test.js.map +1 -0
- package/dist/commonjs/v3/idempotency-key-catalog-api.d.ts +3 -0
- package/dist/commonjs/v3/idempotency-key-catalog-api.js +9 -0
- package/dist/commonjs/v3/idempotency-key-catalog-api.js.map +1 -0
- package/dist/commonjs/v3/idempotencyKeys.d.ts +51 -4
- package/dist/commonjs/v3/idempotencyKeys.js +97 -5
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
- package/dist/commonjs/v3/imports/superjson-cjs.cjs.map +1 -0
- package/dist/commonjs/v3/imports/superjson.d.ts +1 -0
- package/dist/commonjs/v3/imports/superjson.js +13 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +61 -60
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +191 -184
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +46 -45
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +163 -156
- package/dist/commonjs/v3/schemas/api.d.ts +246 -56
- package/dist/commonjs/v3/schemas/api.js +14 -3
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +66 -66
- package/dist/commonjs/v3/schemas/common.d.ts +215 -177
- package/dist/commonjs/v3/schemas/common.js +6 -0
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +2149 -2032
- package/dist/commonjs/v3/schemas/runEngine.d.ts +157 -150
- package/dist/commonjs/v3/schemas/schemas.d.ts +281 -262
- package/dist/commonjs/v3/schemas/webhooks.d.ts +68 -68
- package/dist/commonjs/v3/serverOnly/idempotencyKeys.d.ts +36 -0
- package/dist/commonjs/v3/serverOnly/idempotencyKeys.js +58 -0
- package/dist/commonjs/v3/serverOnly/idempotencyKeys.js.map +1 -0
- package/dist/commonjs/v3/serverOnly/index.d.ts +1 -0
- package/dist/commonjs/v3/serverOnly/index.js +1 -0
- package/dist/commonjs/v3/serverOnly/index.js.map +1 -1
- package/dist/commonjs/v3/types/tools.js +2 -2
- package/dist/commonjs/v3/types/tools.js.map +1 -1
- package/dist/commonjs/v3/utils/flattenAttributes.d.ts +2 -2
- package/dist/commonjs/v3/utils/flattenAttributes.js +24 -13
- package/dist/commonjs/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/commonjs/v3/utils/globals.d.ts +2 -0
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.js +15 -27
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/index.js +32 -8
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/streamBatchItems.test.js +39 -0
- package/dist/esm/v3/apiClient/streamBatchItems.test.js.map +1 -1
- package/dist/esm/v3/idempotency-key-catalog/catalog.d.ts +9 -0
- package/dist/esm/v3/idempotency-key-catalog/catalog.js +2 -0
- package/dist/esm/v3/idempotency-key-catalog/catalog.js.map +1 -0
- package/dist/esm/v3/idempotency-key-catalog/index.d.ts +9 -0
- package/dist/esm/v3/idempotency-key-catalog/index.js +29 -0
- package/dist/esm/v3/idempotency-key-catalog/index.js.map +1 -0
- package/dist/esm/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.d.ts +8 -0
- package/dist/esm/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.js +31 -0
- package/dist/esm/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.js.map +1 -0
- package/dist/esm/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.test.d.ts +1 -0
- package/dist/esm/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.test.js +159 -0
- package/dist/esm/v3/idempotency-key-catalog/lruIdempotencyKeyCatalog.test.js.map +1 -0
- package/dist/esm/v3/idempotency-key-catalog-api.d.ts +3 -0
- package/dist/esm/v3/idempotency-key-catalog-api.js +6 -0
- package/dist/esm/v3/idempotency-key-catalog-api.js.map +1 -0
- package/dist/esm/v3/idempotencyKeys.d.ts +51 -4
- package/dist/esm/v3/idempotencyKeys.js +96 -5
- package/dist/esm/v3/idempotencyKeys.js.map +1 -1
- package/dist/esm/v3/imports/superjson.d.ts +2 -0
- package/dist/esm/v3/imports/superjson.js +10 -0
- package/dist/esm/v3/imports/superjson.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +61 -60
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +191 -184
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +46 -45
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +163 -156
- package/dist/esm/v3/schemas/api.d.ts +246 -56
- package/dist/esm/v3/schemas/api.js +11 -0
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/checkpoints.d.ts +66 -66
- package/dist/esm/v3/schemas/common.d.ts +215 -177
- package/dist/esm/v3/schemas/common.js +6 -0
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +2149 -2032
- package/dist/esm/v3/schemas/runEngine.d.ts +157 -150
- package/dist/esm/v3/schemas/schemas.d.ts +281 -262
- package/dist/esm/v3/schemas/webhooks.d.ts +68 -68
- package/dist/esm/v3/serverOnly/idempotencyKeys.d.ts +36 -0
- package/dist/esm/v3/serverOnly/idempotencyKeys.js +51 -0
- package/dist/esm/v3/serverOnly/idempotencyKeys.js.map +1 -0
- package/dist/esm/v3/serverOnly/index.d.ts +1 -0
- package/dist/esm/v3/serverOnly/index.js +1 -0
- package/dist/esm/v3/serverOnly/index.js.map +1 -1
- package/dist/esm/v3/types/tools.js +2 -2
- package/dist/esm/v3/types/tools.js.map +1 -1
- package/dist/esm/v3/utils/flattenAttributes.d.ts +2 -2
- package/dist/esm/v3/utils/flattenAttributes.js +24 -13
- package/dist/esm/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/esm/v3/utils/globals.d.ts +2 -0
- package/dist/esm/v3/utils/globals.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.js +9 -24
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -311,6 +311,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
311
311
|
createdAt: z.ZodDate;
|
|
312
312
|
startedAt: z.ZodDefault<z.ZodDate>;
|
|
313
313
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
314
|
+
idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
|
|
314
315
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
315
316
|
version: z.ZodOptional<z.ZodString>;
|
|
316
317
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
|
|
@@ -332,6 +333,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
332
333
|
startedAt: Date;
|
|
333
334
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
334
335
|
idempotencyKey?: string | undefined;
|
|
336
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
335
337
|
maxAttempts?: number | undefined;
|
|
336
338
|
version?: string | undefined;
|
|
337
339
|
maxDuration?: number | undefined;
|
|
@@ -352,6 +354,7 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
352
354
|
isTest?: boolean | undefined;
|
|
353
355
|
startedAt?: Date | undefined;
|
|
354
356
|
idempotencyKey?: string | undefined;
|
|
357
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
355
358
|
maxAttempts?: number | undefined;
|
|
356
359
|
version?: string | undefined;
|
|
357
360
|
maxDuration?: number | undefined;
|
|
@@ -373,6 +376,37 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
373
376
|
realtimeStreamsVersion?: string | undefined;
|
|
374
377
|
}>>;
|
|
375
378
|
}, "strip", z.ZodTypeAny, {
|
|
379
|
+
run: {
|
|
380
|
+
payload: string;
|
|
381
|
+
id: string;
|
|
382
|
+
payloadType: string;
|
|
383
|
+
tags: string[];
|
|
384
|
+
isTest: boolean;
|
|
385
|
+
createdAt: Date;
|
|
386
|
+
startedAt: Date;
|
|
387
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
388
|
+
idempotencyKey?: string | undefined;
|
|
389
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
390
|
+
maxAttempts?: number | undefined;
|
|
391
|
+
version?: string | undefined;
|
|
392
|
+
maxDuration?: number | undefined;
|
|
393
|
+
priority?: number | undefined;
|
|
394
|
+
baseCostInCents?: number | undefined;
|
|
395
|
+
parentTaskRunId?: string | undefined;
|
|
396
|
+
rootTaskRunId?: string | undefined;
|
|
397
|
+
durationMs?: number | undefined;
|
|
398
|
+
costInCents?: number | undefined;
|
|
399
|
+
region?: string | undefined;
|
|
400
|
+
} & {
|
|
401
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
402
|
+
realtimeStreamsVersion?: string | undefined;
|
|
403
|
+
};
|
|
404
|
+
attempt: {
|
|
405
|
+
number: number;
|
|
406
|
+
startedAt: Date;
|
|
407
|
+
} & {
|
|
408
|
+
[k: string]: unknown;
|
|
409
|
+
};
|
|
376
410
|
task: {
|
|
377
411
|
id: string;
|
|
378
412
|
filePath: string;
|
|
@@ -421,36 +455,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
421
455
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
422
456
|
centsPerMs: number;
|
|
423
457
|
};
|
|
424
|
-
attempt: {
|
|
425
|
-
number: number;
|
|
426
|
-
startedAt: Date;
|
|
427
|
-
} & {
|
|
428
|
-
[k: string]: unknown;
|
|
429
|
-
};
|
|
430
|
-
run: {
|
|
431
|
-
payload: string;
|
|
432
|
-
id: string;
|
|
433
|
-
payloadType: string;
|
|
434
|
-
tags: string[];
|
|
435
|
-
isTest: boolean;
|
|
436
|
-
createdAt: Date;
|
|
437
|
-
startedAt: Date;
|
|
438
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
439
|
-
idempotencyKey?: string | undefined;
|
|
440
|
-
maxAttempts?: number | undefined;
|
|
441
|
-
version?: string | undefined;
|
|
442
|
-
maxDuration?: number | undefined;
|
|
443
|
-
priority?: number | undefined;
|
|
444
|
-
baseCostInCents?: number | undefined;
|
|
445
|
-
parentTaskRunId?: string | undefined;
|
|
446
|
-
rootTaskRunId?: string | undefined;
|
|
447
|
-
durationMs?: number | undefined;
|
|
448
|
-
costInCents?: number | undefined;
|
|
449
|
-
region?: string | undefined;
|
|
450
|
-
} & {
|
|
451
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
452
|
-
realtimeStreamsVersion?: string | undefined;
|
|
453
|
-
};
|
|
454
458
|
batch?: {
|
|
455
459
|
id: string;
|
|
456
460
|
} | undefined;
|
|
@@ -477,6 +481,37 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
477
481
|
} | undefined;
|
|
478
482
|
} | undefined;
|
|
479
483
|
}, {
|
|
484
|
+
run: {
|
|
485
|
+
payload: string;
|
|
486
|
+
id: string;
|
|
487
|
+
payloadType: string;
|
|
488
|
+
tags: string[];
|
|
489
|
+
createdAt: Date;
|
|
490
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
491
|
+
isTest?: boolean | undefined;
|
|
492
|
+
startedAt?: Date | undefined;
|
|
493
|
+
idempotencyKey?: string | undefined;
|
|
494
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
495
|
+
maxAttempts?: number | undefined;
|
|
496
|
+
version?: string | undefined;
|
|
497
|
+
maxDuration?: number | undefined;
|
|
498
|
+
priority?: number | undefined;
|
|
499
|
+
baseCostInCents?: number | undefined;
|
|
500
|
+
parentTaskRunId?: string | undefined;
|
|
501
|
+
rootTaskRunId?: string | undefined;
|
|
502
|
+
durationMs?: number | undefined;
|
|
503
|
+
costInCents?: number | undefined;
|
|
504
|
+
region?: string | undefined;
|
|
505
|
+
} & {
|
|
506
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
507
|
+
realtimeStreamsVersion?: string | undefined;
|
|
508
|
+
};
|
|
509
|
+
attempt: {
|
|
510
|
+
number: number;
|
|
511
|
+
startedAt: Date;
|
|
512
|
+
} & {
|
|
513
|
+
[k: string]: unknown;
|
|
514
|
+
};
|
|
480
515
|
task: {
|
|
481
516
|
id: string;
|
|
482
517
|
filePath: string;
|
|
@@ -525,36 +560,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
525
560
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
526
561
|
centsPerMs: number;
|
|
527
562
|
};
|
|
528
|
-
attempt: {
|
|
529
|
-
number: number;
|
|
530
|
-
startedAt: Date;
|
|
531
|
-
} & {
|
|
532
|
-
[k: string]: unknown;
|
|
533
|
-
};
|
|
534
|
-
run: {
|
|
535
|
-
payload: string;
|
|
536
|
-
id: string;
|
|
537
|
-
payloadType: string;
|
|
538
|
-
tags: string[];
|
|
539
|
-
createdAt: Date;
|
|
540
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
541
|
-
isTest?: boolean | undefined;
|
|
542
|
-
startedAt?: Date | undefined;
|
|
543
|
-
idempotencyKey?: string | undefined;
|
|
544
|
-
maxAttempts?: number | undefined;
|
|
545
|
-
version?: string | undefined;
|
|
546
|
-
maxDuration?: number | undefined;
|
|
547
|
-
priority?: number | undefined;
|
|
548
|
-
baseCostInCents?: number | undefined;
|
|
549
|
-
parentTaskRunId?: string | undefined;
|
|
550
|
-
rootTaskRunId?: string | undefined;
|
|
551
|
-
durationMs?: number | undefined;
|
|
552
|
-
costInCents?: number | undefined;
|
|
553
|
-
region?: string | undefined;
|
|
554
|
-
} & {
|
|
555
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
556
|
-
realtimeStreamsVersion?: string | undefined;
|
|
557
|
-
};
|
|
558
563
|
batch?: {
|
|
559
564
|
id: string;
|
|
560
565
|
} | undefined;
|
|
@@ -602,6 +607,37 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
602
607
|
}, "strip", z.ZodTypeAny, {
|
|
603
608
|
traceContext: Record<string, unknown>;
|
|
604
609
|
execution: {
|
|
610
|
+
run: {
|
|
611
|
+
payload: string;
|
|
612
|
+
id: string;
|
|
613
|
+
payloadType: string;
|
|
614
|
+
tags: string[];
|
|
615
|
+
isTest: boolean;
|
|
616
|
+
createdAt: Date;
|
|
617
|
+
startedAt: Date;
|
|
618
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
619
|
+
idempotencyKey?: string | undefined;
|
|
620
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
621
|
+
maxAttempts?: number | undefined;
|
|
622
|
+
version?: string | undefined;
|
|
623
|
+
maxDuration?: number | undefined;
|
|
624
|
+
priority?: number | undefined;
|
|
625
|
+
baseCostInCents?: number | undefined;
|
|
626
|
+
parentTaskRunId?: string | undefined;
|
|
627
|
+
rootTaskRunId?: string | undefined;
|
|
628
|
+
durationMs?: number | undefined;
|
|
629
|
+
costInCents?: number | undefined;
|
|
630
|
+
region?: string | undefined;
|
|
631
|
+
} & {
|
|
632
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
633
|
+
realtimeStreamsVersion?: string | undefined;
|
|
634
|
+
};
|
|
635
|
+
attempt: {
|
|
636
|
+
number: number;
|
|
637
|
+
startedAt: Date;
|
|
638
|
+
} & {
|
|
639
|
+
[k: string]: unknown;
|
|
640
|
+
};
|
|
605
641
|
task: {
|
|
606
642
|
id: string;
|
|
607
643
|
filePath: string;
|
|
@@ -650,36 +686,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
650
686
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
651
687
|
centsPerMs: number;
|
|
652
688
|
};
|
|
653
|
-
attempt: {
|
|
654
|
-
number: number;
|
|
655
|
-
startedAt: Date;
|
|
656
|
-
} & {
|
|
657
|
-
[k: string]: unknown;
|
|
658
|
-
};
|
|
659
|
-
run: {
|
|
660
|
-
payload: string;
|
|
661
|
-
id: string;
|
|
662
|
-
payloadType: string;
|
|
663
|
-
tags: string[];
|
|
664
|
-
isTest: boolean;
|
|
665
|
-
createdAt: Date;
|
|
666
|
-
startedAt: Date;
|
|
667
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
668
|
-
idempotencyKey?: string | undefined;
|
|
669
|
-
maxAttempts?: number | undefined;
|
|
670
|
-
version?: string | undefined;
|
|
671
|
-
maxDuration?: number | undefined;
|
|
672
|
-
priority?: number | undefined;
|
|
673
|
-
baseCostInCents?: number | undefined;
|
|
674
|
-
parentTaskRunId?: string | undefined;
|
|
675
|
-
rootTaskRunId?: string | undefined;
|
|
676
|
-
durationMs?: number | undefined;
|
|
677
|
-
costInCents?: number | undefined;
|
|
678
|
-
region?: string | undefined;
|
|
679
|
-
} & {
|
|
680
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
681
|
-
realtimeStreamsVersion?: string | undefined;
|
|
682
|
-
};
|
|
683
689
|
batch?: {
|
|
684
690
|
id: string;
|
|
685
691
|
} | undefined;
|
|
@@ -716,6 +722,37 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
716
722
|
}, {
|
|
717
723
|
traceContext: Record<string, unknown>;
|
|
718
724
|
execution: {
|
|
725
|
+
run: {
|
|
726
|
+
payload: string;
|
|
727
|
+
id: string;
|
|
728
|
+
payloadType: string;
|
|
729
|
+
tags: string[];
|
|
730
|
+
createdAt: Date;
|
|
731
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
732
|
+
isTest?: boolean | undefined;
|
|
733
|
+
startedAt?: Date | undefined;
|
|
734
|
+
idempotencyKey?: string | undefined;
|
|
735
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
736
|
+
maxAttempts?: number | undefined;
|
|
737
|
+
version?: string | undefined;
|
|
738
|
+
maxDuration?: number | undefined;
|
|
739
|
+
priority?: number | undefined;
|
|
740
|
+
baseCostInCents?: number | undefined;
|
|
741
|
+
parentTaskRunId?: string | undefined;
|
|
742
|
+
rootTaskRunId?: string | undefined;
|
|
743
|
+
durationMs?: number | undefined;
|
|
744
|
+
costInCents?: number | undefined;
|
|
745
|
+
region?: string | undefined;
|
|
746
|
+
} & {
|
|
747
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
748
|
+
realtimeStreamsVersion?: string | undefined;
|
|
749
|
+
};
|
|
750
|
+
attempt: {
|
|
751
|
+
number: number;
|
|
752
|
+
startedAt: Date;
|
|
753
|
+
} & {
|
|
754
|
+
[k: string]: unknown;
|
|
755
|
+
};
|
|
719
756
|
task: {
|
|
720
757
|
id: string;
|
|
721
758
|
filePath: string;
|
|
@@ -764,36 +801,6 @@ export declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
764
801
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
765
802
|
centsPerMs: number;
|
|
766
803
|
};
|
|
767
|
-
attempt: {
|
|
768
|
-
number: number;
|
|
769
|
-
startedAt: Date;
|
|
770
|
-
} & {
|
|
771
|
-
[k: string]: unknown;
|
|
772
|
-
};
|
|
773
|
-
run: {
|
|
774
|
-
payload: string;
|
|
775
|
-
id: string;
|
|
776
|
-
payloadType: string;
|
|
777
|
-
tags: string[];
|
|
778
|
-
createdAt: Date;
|
|
779
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
780
|
-
isTest?: boolean | undefined;
|
|
781
|
-
startedAt?: Date | undefined;
|
|
782
|
-
idempotencyKey?: string | undefined;
|
|
783
|
-
maxAttempts?: number | undefined;
|
|
784
|
-
version?: string | undefined;
|
|
785
|
-
maxDuration?: number | undefined;
|
|
786
|
-
priority?: number | undefined;
|
|
787
|
-
baseCostInCents?: number | undefined;
|
|
788
|
-
parentTaskRunId?: string | undefined;
|
|
789
|
-
rootTaskRunId?: string | undefined;
|
|
790
|
-
durationMs?: number | undefined;
|
|
791
|
-
costInCents?: number | undefined;
|
|
792
|
-
region?: string | undefined;
|
|
793
|
-
} & {
|
|
794
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
795
|
-
realtimeStreamsVersion?: string | undefined;
|
|
796
|
-
};
|
|
797
804
|
batch?: {
|
|
798
805
|
id: string;
|
|
799
806
|
} | undefined;
|
|
@@ -874,6 +881,7 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<{
|
|
|
874
881
|
createdAt: z.ZodDate;
|
|
875
882
|
startedAt: z.ZodDefault<z.ZodDate>;
|
|
876
883
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
884
|
+
idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
|
|
877
885
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
878
886
|
version: z.ZodOptional<z.ZodString>;
|
|
879
887
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
|
|
@@ -896,6 +904,7 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<{
|
|
|
896
904
|
context?: unknown;
|
|
897
905
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
898
906
|
idempotencyKey?: string | undefined;
|
|
907
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
899
908
|
maxAttempts?: number | undefined;
|
|
900
909
|
version?: string | undefined;
|
|
901
910
|
maxDuration?: number | undefined;
|
|
@@ -913,6 +922,7 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<{
|
|
|
913
922
|
isTest?: boolean | undefined;
|
|
914
923
|
startedAt?: Date | undefined;
|
|
915
924
|
idempotencyKey?: string | undefined;
|
|
925
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
916
926
|
maxAttempts?: number | undefined;
|
|
917
927
|
version?: string | undefined;
|
|
918
928
|
maxDuration?: number | undefined;
|
|
@@ -1092,6 +1102,35 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<{
|
|
|
1092
1102
|
centsPerMs: number;
|
|
1093
1103
|
}>>;
|
|
1094
1104
|
}, "strip", z.ZodTypeAny, {
|
|
1105
|
+
run: {
|
|
1106
|
+
payload: string;
|
|
1107
|
+
id: string;
|
|
1108
|
+
payloadType: string;
|
|
1109
|
+
tags: string[];
|
|
1110
|
+
isTest: boolean;
|
|
1111
|
+
createdAt: Date;
|
|
1112
|
+
startedAt: Date;
|
|
1113
|
+
baseCostInCents: number;
|
|
1114
|
+
durationMs: number;
|
|
1115
|
+
costInCents: number;
|
|
1116
|
+
context?: unknown;
|
|
1117
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1118
|
+
idempotencyKey?: string | undefined;
|
|
1119
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1120
|
+
maxAttempts?: number | undefined;
|
|
1121
|
+
version?: string | undefined;
|
|
1122
|
+
maxDuration?: number | undefined;
|
|
1123
|
+
} & {
|
|
1124
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
1125
|
+
};
|
|
1126
|
+
attempt: {
|
|
1127
|
+
number: number;
|
|
1128
|
+
status: string;
|
|
1129
|
+
id: string;
|
|
1130
|
+
startedAt: Date;
|
|
1131
|
+
backgroundWorkerId: string;
|
|
1132
|
+
backgroundWorkerTaskId: string;
|
|
1133
|
+
};
|
|
1095
1134
|
task: {
|
|
1096
1135
|
id: string;
|
|
1097
1136
|
filePath: string;
|
|
@@ -1139,44 +1178,45 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<{
|
|
|
1139
1178
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1140
1179
|
centsPerMs: number;
|
|
1141
1180
|
};
|
|
1142
|
-
|
|
1143
|
-
number: number;
|
|
1144
|
-
status: string;
|
|
1181
|
+
worker: {
|
|
1145
1182
|
id: string;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1183
|
+
version: string;
|
|
1184
|
+
contentHash: string;
|
|
1185
|
+
type?: "V1" | "V2" | undefined;
|
|
1149
1186
|
};
|
|
1187
|
+
batch?: {
|
|
1188
|
+
id: string;
|
|
1189
|
+
} | undefined;
|
|
1190
|
+
}, {
|
|
1150
1191
|
run: {
|
|
1151
1192
|
payload: string;
|
|
1152
1193
|
id: string;
|
|
1153
1194
|
payloadType: string;
|
|
1154
1195
|
tags: string[];
|
|
1155
|
-
isTest: boolean;
|
|
1156
1196
|
createdAt: Date;
|
|
1157
|
-
startedAt: Date;
|
|
1158
1197
|
baseCostInCents: number;
|
|
1159
1198
|
durationMs: number;
|
|
1160
1199
|
costInCents: number;
|
|
1161
1200
|
context?: unknown;
|
|
1162
1201
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1202
|
+
isTest?: boolean | undefined;
|
|
1203
|
+
startedAt?: Date | undefined;
|
|
1163
1204
|
idempotencyKey?: string | undefined;
|
|
1205
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1164
1206
|
maxAttempts?: number | undefined;
|
|
1165
1207
|
version?: string | undefined;
|
|
1166
1208
|
maxDuration?: number | undefined;
|
|
1167
1209
|
} & {
|
|
1168
1210
|
traceContext?: Record<string, unknown> | undefined;
|
|
1169
1211
|
};
|
|
1170
|
-
|
|
1212
|
+
attempt: {
|
|
1213
|
+
number: number;
|
|
1214
|
+
status: string;
|
|
1171
1215
|
id: string;
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1216
|
+
startedAt: Date;
|
|
1217
|
+
backgroundWorkerId: string;
|
|
1218
|
+
backgroundWorkerTaskId: string;
|
|
1175
1219
|
};
|
|
1176
|
-
batch?: {
|
|
1177
|
-
id: string;
|
|
1178
|
-
} | undefined;
|
|
1179
|
-
}, {
|
|
1180
1220
|
task: {
|
|
1181
1221
|
id: string;
|
|
1182
1222
|
filePath: string;
|
|
@@ -1218,34 +1258,6 @@ export declare const V3ProdTaskRunExecution: z.ZodObject<{
|
|
|
1218
1258
|
slug: string;
|
|
1219
1259
|
ref: string;
|
|
1220
1260
|
};
|
|
1221
|
-
attempt: {
|
|
1222
|
-
number: number;
|
|
1223
|
-
status: string;
|
|
1224
|
-
id: string;
|
|
1225
|
-
startedAt: Date;
|
|
1226
|
-
backgroundWorkerId: string;
|
|
1227
|
-
backgroundWorkerTaskId: string;
|
|
1228
|
-
};
|
|
1229
|
-
run: {
|
|
1230
|
-
payload: string;
|
|
1231
|
-
id: string;
|
|
1232
|
-
payloadType: string;
|
|
1233
|
-
tags: string[];
|
|
1234
|
-
createdAt: Date;
|
|
1235
|
-
baseCostInCents: number;
|
|
1236
|
-
durationMs: number;
|
|
1237
|
-
costInCents: number;
|
|
1238
|
-
context?: unknown;
|
|
1239
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1240
|
-
isTest?: boolean | undefined;
|
|
1241
|
-
startedAt?: Date | undefined;
|
|
1242
|
-
idempotencyKey?: string | undefined;
|
|
1243
|
-
maxAttempts?: number | undefined;
|
|
1244
|
-
version?: string | undefined;
|
|
1245
|
-
maxDuration?: number | undefined;
|
|
1246
|
-
} & {
|
|
1247
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
1248
|
-
};
|
|
1249
1261
|
worker: {
|
|
1250
1262
|
id: string;
|
|
1251
1263
|
version: string;
|
|
@@ -1309,6 +1321,7 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1309
1321
|
createdAt: z.ZodDate;
|
|
1310
1322
|
startedAt: z.ZodDefault<z.ZodDate>;
|
|
1311
1323
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1324
|
+
idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
|
|
1312
1325
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1313
1326
|
version: z.ZodOptional<z.ZodString>;
|
|
1314
1327
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
|
|
@@ -1331,6 +1344,7 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1331
1344
|
context?: unknown;
|
|
1332
1345
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1333
1346
|
idempotencyKey?: string | undefined;
|
|
1347
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1334
1348
|
maxAttempts?: number | undefined;
|
|
1335
1349
|
version?: string | undefined;
|
|
1336
1350
|
maxDuration?: number | undefined;
|
|
@@ -1348,6 +1362,7 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1348
1362
|
isTest?: boolean | undefined;
|
|
1349
1363
|
startedAt?: Date | undefined;
|
|
1350
1364
|
idempotencyKey?: string | undefined;
|
|
1365
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1351
1366
|
maxAttempts?: number | undefined;
|
|
1352
1367
|
version?: string | undefined;
|
|
1353
1368
|
maxDuration?: number | undefined;
|
|
@@ -1527,6 +1542,35 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1527
1542
|
centsPerMs: number;
|
|
1528
1543
|
}>>;
|
|
1529
1544
|
}, "strip", z.ZodTypeAny, {
|
|
1545
|
+
run: {
|
|
1546
|
+
payload: string;
|
|
1547
|
+
id: string;
|
|
1548
|
+
payloadType: string;
|
|
1549
|
+
tags: string[];
|
|
1550
|
+
isTest: boolean;
|
|
1551
|
+
createdAt: Date;
|
|
1552
|
+
startedAt: Date;
|
|
1553
|
+
baseCostInCents: number;
|
|
1554
|
+
durationMs: number;
|
|
1555
|
+
costInCents: number;
|
|
1556
|
+
context?: unknown;
|
|
1557
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1558
|
+
idempotencyKey?: string | undefined;
|
|
1559
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1560
|
+
maxAttempts?: number | undefined;
|
|
1561
|
+
version?: string | undefined;
|
|
1562
|
+
maxDuration?: number | undefined;
|
|
1563
|
+
} & {
|
|
1564
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
1565
|
+
};
|
|
1566
|
+
attempt: {
|
|
1567
|
+
number: number;
|
|
1568
|
+
status: string;
|
|
1569
|
+
id: string;
|
|
1570
|
+
startedAt: Date;
|
|
1571
|
+
backgroundWorkerId: string;
|
|
1572
|
+
backgroundWorkerTaskId: string;
|
|
1573
|
+
};
|
|
1530
1574
|
task: {
|
|
1531
1575
|
id: string;
|
|
1532
1576
|
filePath: string;
|
|
@@ -1574,44 +1618,45 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1574
1618
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1575
1619
|
centsPerMs: number;
|
|
1576
1620
|
};
|
|
1577
|
-
|
|
1578
|
-
number: number;
|
|
1579
|
-
status: string;
|
|
1621
|
+
worker: {
|
|
1580
1622
|
id: string;
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1623
|
+
version: string;
|
|
1624
|
+
contentHash: string;
|
|
1625
|
+
type?: "V1" | "V2" | undefined;
|
|
1584
1626
|
};
|
|
1627
|
+
batch?: {
|
|
1628
|
+
id: string;
|
|
1629
|
+
} | undefined;
|
|
1630
|
+
}, {
|
|
1585
1631
|
run: {
|
|
1586
1632
|
payload: string;
|
|
1587
1633
|
id: string;
|
|
1588
1634
|
payloadType: string;
|
|
1589
1635
|
tags: string[];
|
|
1590
|
-
isTest: boolean;
|
|
1591
1636
|
createdAt: Date;
|
|
1592
|
-
startedAt: Date;
|
|
1593
1637
|
baseCostInCents: number;
|
|
1594
1638
|
durationMs: number;
|
|
1595
1639
|
costInCents: number;
|
|
1596
1640
|
context?: unknown;
|
|
1597
1641
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1642
|
+
isTest?: boolean | undefined;
|
|
1643
|
+
startedAt?: Date | undefined;
|
|
1598
1644
|
idempotencyKey?: string | undefined;
|
|
1645
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1599
1646
|
maxAttempts?: number | undefined;
|
|
1600
1647
|
version?: string | undefined;
|
|
1601
1648
|
maxDuration?: number | undefined;
|
|
1602
1649
|
} & {
|
|
1603
1650
|
traceContext?: Record<string, unknown> | undefined;
|
|
1604
1651
|
};
|
|
1605
|
-
|
|
1652
|
+
attempt: {
|
|
1653
|
+
number: number;
|
|
1654
|
+
status: string;
|
|
1606
1655
|
id: string;
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1656
|
+
startedAt: Date;
|
|
1657
|
+
backgroundWorkerId: string;
|
|
1658
|
+
backgroundWorkerTaskId: string;
|
|
1610
1659
|
};
|
|
1611
|
-
batch?: {
|
|
1612
|
-
id: string;
|
|
1613
|
-
} | undefined;
|
|
1614
|
-
}, {
|
|
1615
1660
|
task: {
|
|
1616
1661
|
id: string;
|
|
1617
1662
|
filePath: string;
|
|
@@ -1653,34 +1698,6 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1653
1698
|
slug: string;
|
|
1654
1699
|
ref: string;
|
|
1655
1700
|
};
|
|
1656
|
-
attempt: {
|
|
1657
|
-
number: number;
|
|
1658
|
-
status: string;
|
|
1659
|
-
id: string;
|
|
1660
|
-
startedAt: Date;
|
|
1661
|
-
backgroundWorkerId: string;
|
|
1662
|
-
backgroundWorkerTaskId: string;
|
|
1663
|
-
};
|
|
1664
|
-
run: {
|
|
1665
|
-
payload: string;
|
|
1666
|
-
id: string;
|
|
1667
|
-
payloadType: string;
|
|
1668
|
-
tags: string[];
|
|
1669
|
-
createdAt: Date;
|
|
1670
|
-
baseCostInCents: number;
|
|
1671
|
-
durationMs: number;
|
|
1672
|
-
costInCents: number;
|
|
1673
|
-
context?: unknown;
|
|
1674
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1675
|
-
isTest?: boolean | undefined;
|
|
1676
|
-
startedAt?: Date | undefined;
|
|
1677
|
-
idempotencyKey?: string | undefined;
|
|
1678
|
-
maxAttempts?: number | undefined;
|
|
1679
|
-
version?: string | undefined;
|
|
1680
|
-
maxDuration?: number | undefined;
|
|
1681
|
-
} & {
|
|
1682
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
1683
|
-
};
|
|
1684
1701
|
worker: {
|
|
1685
1702
|
id: string;
|
|
1686
1703
|
version: string;
|
|
@@ -1718,6 +1735,35 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1718
1735
|
}, "strip", z.ZodTypeAny, {
|
|
1719
1736
|
traceContext: Record<string, unknown>;
|
|
1720
1737
|
execution: {
|
|
1738
|
+
run: {
|
|
1739
|
+
payload: string;
|
|
1740
|
+
id: string;
|
|
1741
|
+
payloadType: string;
|
|
1742
|
+
tags: string[];
|
|
1743
|
+
isTest: boolean;
|
|
1744
|
+
createdAt: Date;
|
|
1745
|
+
startedAt: Date;
|
|
1746
|
+
baseCostInCents: number;
|
|
1747
|
+
durationMs: number;
|
|
1748
|
+
costInCents: number;
|
|
1749
|
+
context?: unknown;
|
|
1750
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1751
|
+
idempotencyKey?: string | undefined;
|
|
1752
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1753
|
+
maxAttempts?: number | undefined;
|
|
1754
|
+
version?: string | undefined;
|
|
1755
|
+
maxDuration?: number | undefined;
|
|
1756
|
+
} & {
|
|
1757
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
1758
|
+
};
|
|
1759
|
+
attempt: {
|
|
1760
|
+
number: number;
|
|
1761
|
+
status: string;
|
|
1762
|
+
id: string;
|
|
1763
|
+
startedAt: Date;
|
|
1764
|
+
backgroundWorkerId: string;
|
|
1765
|
+
backgroundWorkerTaskId: string;
|
|
1766
|
+
};
|
|
1721
1767
|
task: {
|
|
1722
1768
|
id: string;
|
|
1723
1769
|
filePath: string;
|
|
@@ -1765,54 +1811,55 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1765
1811
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1766
1812
|
centsPerMs: number;
|
|
1767
1813
|
};
|
|
1768
|
-
|
|
1769
|
-
number: number;
|
|
1770
|
-
status: string;
|
|
1814
|
+
worker: {
|
|
1771
1815
|
id: string;
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1816
|
+
version: string;
|
|
1817
|
+
contentHash: string;
|
|
1818
|
+
type?: "V1" | "V2" | undefined;
|
|
1775
1819
|
};
|
|
1820
|
+
batch?: {
|
|
1821
|
+
id: string;
|
|
1822
|
+
} | undefined;
|
|
1823
|
+
};
|
|
1824
|
+
environment?: Record<string, string> | undefined;
|
|
1825
|
+
metrics?: {
|
|
1826
|
+
event: string;
|
|
1827
|
+
name: string;
|
|
1828
|
+
timestamp: number;
|
|
1829
|
+
duration: number;
|
|
1830
|
+
}[] | undefined;
|
|
1831
|
+
}, {
|
|
1832
|
+
traceContext: Record<string, unknown>;
|
|
1833
|
+
execution: {
|
|
1776
1834
|
run: {
|
|
1777
1835
|
payload: string;
|
|
1778
1836
|
id: string;
|
|
1779
1837
|
payloadType: string;
|
|
1780
1838
|
tags: string[];
|
|
1781
|
-
isTest: boolean;
|
|
1782
1839
|
createdAt: Date;
|
|
1783
|
-
startedAt: Date;
|
|
1784
1840
|
baseCostInCents: number;
|
|
1785
1841
|
durationMs: number;
|
|
1786
1842
|
costInCents: number;
|
|
1787
1843
|
context?: unknown;
|
|
1788
1844
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1845
|
+
isTest?: boolean | undefined;
|
|
1846
|
+
startedAt?: Date | undefined;
|
|
1789
1847
|
idempotencyKey?: string | undefined;
|
|
1848
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
1790
1849
|
maxAttempts?: number | undefined;
|
|
1791
1850
|
version?: string | undefined;
|
|
1792
1851
|
maxDuration?: number | undefined;
|
|
1793
1852
|
} & {
|
|
1794
1853
|
traceContext?: Record<string, unknown> | undefined;
|
|
1795
1854
|
};
|
|
1796
|
-
|
|
1855
|
+
attempt: {
|
|
1856
|
+
number: number;
|
|
1857
|
+
status: string;
|
|
1797
1858
|
id: string;
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1859
|
+
startedAt: Date;
|
|
1860
|
+
backgroundWorkerId: string;
|
|
1861
|
+
backgroundWorkerTaskId: string;
|
|
1801
1862
|
};
|
|
1802
|
-
batch?: {
|
|
1803
|
-
id: string;
|
|
1804
|
-
} | undefined;
|
|
1805
|
-
};
|
|
1806
|
-
environment?: Record<string, string> | undefined;
|
|
1807
|
-
metrics?: {
|
|
1808
|
-
event: string;
|
|
1809
|
-
name: string;
|
|
1810
|
-
timestamp: number;
|
|
1811
|
-
duration: number;
|
|
1812
|
-
}[] | undefined;
|
|
1813
|
-
}, {
|
|
1814
|
-
traceContext: Record<string, unknown>;
|
|
1815
|
-
execution: {
|
|
1816
1863
|
task: {
|
|
1817
1864
|
id: string;
|
|
1818
1865
|
filePath: string;
|
|
@@ -1854,34 +1901,6 @@ export declare const V3ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1854
1901
|
slug: string;
|
|
1855
1902
|
ref: string;
|
|
1856
1903
|
};
|
|
1857
|
-
attempt: {
|
|
1858
|
-
number: number;
|
|
1859
|
-
status: string;
|
|
1860
|
-
id: string;
|
|
1861
|
-
startedAt: Date;
|
|
1862
|
-
backgroundWorkerId: string;
|
|
1863
|
-
backgroundWorkerTaskId: string;
|
|
1864
|
-
};
|
|
1865
|
-
run: {
|
|
1866
|
-
payload: string;
|
|
1867
|
-
id: string;
|
|
1868
|
-
payloadType: string;
|
|
1869
|
-
tags: string[];
|
|
1870
|
-
createdAt: Date;
|
|
1871
|
-
baseCostInCents: number;
|
|
1872
|
-
durationMs: number;
|
|
1873
|
-
costInCents: number;
|
|
1874
|
-
context?: unknown;
|
|
1875
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1876
|
-
isTest?: boolean | undefined;
|
|
1877
|
-
startedAt?: Date | undefined;
|
|
1878
|
-
idempotencyKey?: string | undefined;
|
|
1879
|
-
maxAttempts?: number | undefined;
|
|
1880
|
-
version?: string | undefined;
|
|
1881
|
-
maxDuration?: number | undefined;
|
|
1882
|
-
} & {
|
|
1883
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
1884
|
-
};
|
|
1885
1904
|
worker: {
|
|
1886
1905
|
id: string;
|
|
1887
1906
|
version: string;
|