@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
|
@@ -568,6 +568,7 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
568
568
|
createdAt: z.ZodDate;
|
|
569
569
|
startedAt: z.ZodDefault<z.ZodDate>;
|
|
570
570
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
571
|
+
idempotencyKeyScope: z.ZodOptional<z.ZodEnum<["run", "attempt", "global"]>>;
|
|
571
572
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
572
573
|
version: z.ZodOptional<z.ZodString>;
|
|
573
574
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("../../index.js").DeserializedJson, z.ZodTypeDef, import("../../index.js").DeserializedJson>>>;
|
|
@@ -589,6 +590,7 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
589
590
|
startedAt: Date;
|
|
590
591
|
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
591
592
|
idempotencyKey?: string | undefined;
|
|
593
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
592
594
|
maxAttempts?: number | undefined;
|
|
593
595
|
version?: string | undefined;
|
|
594
596
|
maxDuration?: number | undefined;
|
|
@@ -609,6 +611,7 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
609
611
|
isTest?: boolean | undefined;
|
|
610
612
|
startedAt?: Date | undefined;
|
|
611
613
|
idempotencyKey?: string | undefined;
|
|
614
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
612
615
|
maxAttempts?: number | undefined;
|
|
613
616
|
version?: string | undefined;
|
|
614
617
|
maxDuration?: number | undefined;
|
|
@@ -630,6 +633,37 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
630
633
|
realtimeStreamsVersion?: string | undefined;
|
|
631
634
|
}>>;
|
|
632
635
|
}, "strip", z.ZodTypeAny, {
|
|
636
|
+
run: {
|
|
637
|
+
payload: string;
|
|
638
|
+
id: string;
|
|
639
|
+
payloadType: string;
|
|
640
|
+
tags: string[];
|
|
641
|
+
isTest: boolean;
|
|
642
|
+
createdAt: Date;
|
|
643
|
+
startedAt: Date;
|
|
644
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
645
|
+
idempotencyKey?: string | undefined;
|
|
646
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
647
|
+
maxAttempts?: number | undefined;
|
|
648
|
+
version?: string | undefined;
|
|
649
|
+
maxDuration?: number | undefined;
|
|
650
|
+
priority?: number | undefined;
|
|
651
|
+
baseCostInCents?: number | undefined;
|
|
652
|
+
parentTaskRunId?: string | undefined;
|
|
653
|
+
rootTaskRunId?: string | undefined;
|
|
654
|
+
durationMs?: number | undefined;
|
|
655
|
+
costInCents?: number | undefined;
|
|
656
|
+
region?: string | undefined;
|
|
657
|
+
} & {
|
|
658
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
659
|
+
realtimeStreamsVersion?: string | undefined;
|
|
660
|
+
};
|
|
661
|
+
attempt: {
|
|
662
|
+
number: number;
|
|
663
|
+
startedAt: Date;
|
|
664
|
+
} & {
|
|
665
|
+
[k: string]: unknown;
|
|
666
|
+
};
|
|
633
667
|
task: {
|
|
634
668
|
id: string;
|
|
635
669
|
filePath: string;
|
|
@@ -678,36 +712,6 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
678
712
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
679
713
|
centsPerMs: number;
|
|
680
714
|
};
|
|
681
|
-
attempt: {
|
|
682
|
-
number: number;
|
|
683
|
-
startedAt: Date;
|
|
684
|
-
} & {
|
|
685
|
-
[k: string]: unknown;
|
|
686
|
-
};
|
|
687
|
-
run: {
|
|
688
|
-
payload: string;
|
|
689
|
-
id: string;
|
|
690
|
-
payloadType: string;
|
|
691
|
-
tags: string[];
|
|
692
|
-
isTest: boolean;
|
|
693
|
-
createdAt: Date;
|
|
694
|
-
startedAt: Date;
|
|
695
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
696
|
-
idempotencyKey?: string | undefined;
|
|
697
|
-
maxAttempts?: number | undefined;
|
|
698
|
-
version?: string | undefined;
|
|
699
|
-
maxDuration?: number | undefined;
|
|
700
|
-
priority?: number | undefined;
|
|
701
|
-
baseCostInCents?: number | undefined;
|
|
702
|
-
parentTaskRunId?: string | undefined;
|
|
703
|
-
rootTaskRunId?: string | undefined;
|
|
704
|
-
durationMs?: number | undefined;
|
|
705
|
-
costInCents?: number | undefined;
|
|
706
|
-
region?: string | undefined;
|
|
707
|
-
} & {
|
|
708
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
709
|
-
realtimeStreamsVersion?: string | undefined;
|
|
710
|
-
};
|
|
711
715
|
batch?: {
|
|
712
716
|
id: string;
|
|
713
717
|
} | undefined;
|
|
@@ -734,6 +738,37 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
734
738
|
} | undefined;
|
|
735
739
|
} | undefined;
|
|
736
740
|
}, {
|
|
741
|
+
run: {
|
|
742
|
+
payload: string;
|
|
743
|
+
id: string;
|
|
744
|
+
payloadType: string;
|
|
745
|
+
tags: string[];
|
|
746
|
+
createdAt: Date;
|
|
747
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
748
|
+
isTest?: boolean | undefined;
|
|
749
|
+
startedAt?: Date | undefined;
|
|
750
|
+
idempotencyKey?: string | undefined;
|
|
751
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
752
|
+
maxAttempts?: number | undefined;
|
|
753
|
+
version?: string | undefined;
|
|
754
|
+
maxDuration?: number | undefined;
|
|
755
|
+
priority?: number | undefined;
|
|
756
|
+
baseCostInCents?: number | undefined;
|
|
757
|
+
parentTaskRunId?: string | undefined;
|
|
758
|
+
rootTaskRunId?: string | undefined;
|
|
759
|
+
durationMs?: number | undefined;
|
|
760
|
+
costInCents?: number | undefined;
|
|
761
|
+
region?: string | undefined;
|
|
762
|
+
} & {
|
|
763
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
764
|
+
realtimeStreamsVersion?: string | undefined;
|
|
765
|
+
};
|
|
766
|
+
attempt: {
|
|
767
|
+
number: number;
|
|
768
|
+
startedAt: Date;
|
|
769
|
+
} & {
|
|
770
|
+
[k: string]: unknown;
|
|
771
|
+
};
|
|
737
772
|
task: {
|
|
738
773
|
id: string;
|
|
739
774
|
filePath: string;
|
|
@@ -782,36 +817,6 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
782
817
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
783
818
|
centsPerMs: number;
|
|
784
819
|
};
|
|
785
|
-
attempt: {
|
|
786
|
-
number: number;
|
|
787
|
-
startedAt: Date;
|
|
788
|
-
} & {
|
|
789
|
-
[k: string]: unknown;
|
|
790
|
-
};
|
|
791
|
-
run: {
|
|
792
|
-
payload: string;
|
|
793
|
-
id: string;
|
|
794
|
-
payloadType: string;
|
|
795
|
-
tags: string[];
|
|
796
|
-
createdAt: Date;
|
|
797
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
798
|
-
isTest?: boolean | undefined;
|
|
799
|
-
startedAt?: Date | undefined;
|
|
800
|
-
idempotencyKey?: string | undefined;
|
|
801
|
-
maxAttempts?: number | undefined;
|
|
802
|
-
version?: string | undefined;
|
|
803
|
-
maxDuration?: number | undefined;
|
|
804
|
-
priority?: number | undefined;
|
|
805
|
-
baseCostInCents?: number | undefined;
|
|
806
|
-
parentTaskRunId?: string | undefined;
|
|
807
|
-
rootTaskRunId?: string | undefined;
|
|
808
|
-
durationMs?: number | undefined;
|
|
809
|
-
costInCents?: number | undefined;
|
|
810
|
-
region?: string | undefined;
|
|
811
|
-
} & {
|
|
812
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
813
|
-
realtimeStreamsVersion?: string | undefined;
|
|
814
|
-
};
|
|
815
820
|
batch?: {
|
|
816
821
|
id: string;
|
|
817
822
|
} | undefined;
|
|
@@ -840,6 +845,37 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
840
845
|
}>;
|
|
841
846
|
}, "strip", z.ZodTypeAny, {
|
|
842
847
|
execution: {
|
|
848
|
+
run: {
|
|
849
|
+
payload: string;
|
|
850
|
+
id: string;
|
|
851
|
+
payloadType: string;
|
|
852
|
+
tags: string[];
|
|
853
|
+
isTest: boolean;
|
|
854
|
+
createdAt: Date;
|
|
855
|
+
startedAt: Date;
|
|
856
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
857
|
+
idempotencyKey?: string | undefined;
|
|
858
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
859
|
+
maxAttempts?: number | undefined;
|
|
860
|
+
version?: string | undefined;
|
|
861
|
+
maxDuration?: number | undefined;
|
|
862
|
+
priority?: number | undefined;
|
|
863
|
+
baseCostInCents?: number | undefined;
|
|
864
|
+
parentTaskRunId?: string | undefined;
|
|
865
|
+
rootTaskRunId?: string | undefined;
|
|
866
|
+
durationMs?: number | undefined;
|
|
867
|
+
costInCents?: number | undefined;
|
|
868
|
+
region?: string | undefined;
|
|
869
|
+
} & {
|
|
870
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
871
|
+
realtimeStreamsVersion?: string | undefined;
|
|
872
|
+
};
|
|
873
|
+
attempt: {
|
|
874
|
+
number: number;
|
|
875
|
+
startedAt: Date;
|
|
876
|
+
} & {
|
|
877
|
+
[k: string]: unknown;
|
|
878
|
+
};
|
|
843
879
|
task: {
|
|
844
880
|
id: string;
|
|
845
881
|
filePath: string;
|
|
@@ -888,36 +924,6 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
888
924
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
889
925
|
centsPerMs: number;
|
|
890
926
|
};
|
|
891
|
-
attempt: {
|
|
892
|
-
number: number;
|
|
893
|
-
startedAt: Date;
|
|
894
|
-
} & {
|
|
895
|
-
[k: string]: unknown;
|
|
896
|
-
};
|
|
897
|
-
run: {
|
|
898
|
-
payload: string;
|
|
899
|
-
id: string;
|
|
900
|
-
payloadType: string;
|
|
901
|
-
tags: string[];
|
|
902
|
-
isTest: boolean;
|
|
903
|
-
createdAt: Date;
|
|
904
|
-
startedAt: Date;
|
|
905
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
906
|
-
idempotencyKey?: string | undefined;
|
|
907
|
-
maxAttempts?: number | undefined;
|
|
908
|
-
version?: string | undefined;
|
|
909
|
-
maxDuration?: number | undefined;
|
|
910
|
-
priority?: number | undefined;
|
|
911
|
-
baseCostInCents?: number | undefined;
|
|
912
|
-
parentTaskRunId?: string | undefined;
|
|
913
|
-
rootTaskRunId?: string | undefined;
|
|
914
|
-
durationMs?: number | undefined;
|
|
915
|
-
costInCents?: number | undefined;
|
|
916
|
-
region?: string | undefined;
|
|
917
|
-
} & {
|
|
918
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
919
|
-
realtimeStreamsVersion?: string | undefined;
|
|
920
|
-
};
|
|
921
927
|
batch?: {
|
|
922
928
|
id: string;
|
|
923
929
|
} | undefined;
|
|
@@ -946,6 +952,37 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
946
952
|
};
|
|
947
953
|
}, {
|
|
948
954
|
execution: {
|
|
955
|
+
run: {
|
|
956
|
+
payload: string;
|
|
957
|
+
id: string;
|
|
958
|
+
payloadType: string;
|
|
959
|
+
tags: string[];
|
|
960
|
+
createdAt: Date;
|
|
961
|
+
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
962
|
+
isTest?: boolean | undefined;
|
|
963
|
+
startedAt?: Date | undefined;
|
|
964
|
+
idempotencyKey?: string | undefined;
|
|
965
|
+
idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
|
|
966
|
+
maxAttempts?: number | undefined;
|
|
967
|
+
version?: string | undefined;
|
|
968
|
+
maxDuration?: number | undefined;
|
|
969
|
+
priority?: number | undefined;
|
|
970
|
+
baseCostInCents?: number | undefined;
|
|
971
|
+
parentTaskRunId?: string | undefined;
|
|
972
|
+
rootTaskRunId?: string | undefined;
|
|
973
|
+
durationMs?: number | undefined;
|
|
974
|
+
costInCents?: number | undefined;
|
|
975
|
+
region?: string | undefined;
|
|
976
|
+
} & {
|
|
977
|
+
traceContext?: Record<string, unknown> | undefined;
|
|
978
|
+
realtimeStreamsVersion?: string | undefined;
|
|
979
|
+
};
|
|
980
|
+
attempt: {
|
|
981
|
+
number: number;
|
|
982
|
+
startedAt: Date;
|
|
983
|
+
} & {
|
|
984
|
+
[k: string]: unknown;
|
|
985
|
+
};
|
|
949
986
|
task: {
|
|
950
987
|
id: string;
|
|
951
988
|
filePath: string;
|
|
@@ -994,36 +1031,6 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
|
|
|
994
1031
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
995
1032
|
centsPerMs: number;
|
|
996
1033
|
};
|
|
997
|
-
attempt: {
|
|
998
|
-
number: number;
|
|
999
|
-
startedAt: Date;
|
|
1000
|
-
} & {
|
|
1001
|
-
[k: string]: unknown;
|
|
1002
|
-
};
|
|
1003
|
-
run: {
|
|
1004
|
-
payload: string;
|
|
1005
|
-
id: string;
|
|
1006
|
-
payloadType: string;
|
|
1007
|
-
tags: string[];
|
|
1008
|
-
createdAt: Date;
|
|
1009
|
-
metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
|
|
1010
|
-
isTest?: boolean | undefined;
|
|
1011
|
-
startedAt?: Date | undefined;
|
|
1012
|
-
idempotencyKey?: string | undefined;
|
|
1013
|
-
maxAttempts?: number | undefined;
|
|
1014
|
-
version?: string | undefined;
|
|
1015
|
-
maxDuration?: number | undefined;
|
|
1016
|
-
priority?: number | undefined;
|
|
1017
|
-
baseCostInCents?: number | undefined;
|
|
1018
|
-
parentTaskRunId?: string | undefined;
|
|
1019
|
-
rootTaskRunId?: string | undefined;
|
|
1020
|
-
durationMs?: number | undefined;
|
|
1021
|
-
costInCents?: number | undefined;
|
|
1022
|
-
region?: string | undefined;
|
|
1023
|
-
} & {
|
|
1024
|
-
traceContext?: Record<string, unknown> | undefined;
|
|
1025
|
-
realtimeStreamsVersion?: string | undefined;
|
|
1026
|
-
};
|
|
1027
1034
|
batch?: {
|
|
1028
1035
|
id: string;
|
|
1029
1036
|
} | undefined;
|
|
@@ -1355,7 +1362,6 @@ export declare const RunExecutionData: z.ZodObject<{
|
|
|
1355
1362
|
} | undefined;
|
|
1356
1363
|
}>, "many">;
|
|
1357
1364
|
}, "strip", z.ZodTypeAny, {
|
|
1358
|
-
version: "1";
|
|
1359
1365
|
run: {
|
|
1360
1366
|
status: TaskRunStatus;
|
|
1361
1367
|
id: string;
|
|
@@ -1363,6 +1369,7 @@ export declare const RunExecutionData: z.ZodObject<{
|
|
|
1363
1369
|
attemptNumber?: number | null | undefined;
|
|
1364
1370
|
taskEventStore?: string | undefined;
|
|
1365
1371
|
};
|
|
1372
|
+
version: "1";
|
|
1366
1373
|
snapshot: {
|
|
1367
1374
|
id: string;
|
|
1368
1375
|
createdAt: Date;
|
|
@@ -1407,7 +1414,6 @@ export declare const RunExecutionData: z.ZodObject<{
|
|
|
1407
1414
|
reason?: string | null | undefined;
|
|
1408
1415
|
} | undefined;
|
|
1409
1416
|
}, {
|
|
1410
|
-
version: "1";
|
|
1411
1417
|
run: {
|
|
1412
1418
|
status: TaskRunStatus;
|
|
1413
1419
|
id: string;
|
|
@@ -1415,6 +1421,7 @@ export declare const RunExecutionData: z.ZodObject<{
|
|
|
1415
1421
|
attemptNumber?: number | null | undefined;
|
|
1416
1422
|
taskEventStore?: string | undefined;
|
|
1417
1423
|
};
|
|
1424
|
+
version: "1";
|
|
1418
1425
|
snapshot: {
|
|
1419
1426
|
id: string;
|
|
1420
1427
|
createdAt: Date;
|
|
@@ -1880,6 +1887,20 @@ export declare const DequeuedMessage: z.ZodObject<{
|
|
|
1880
1887
|
values?: string[] | undefined;
|
|
1881
1888
|
}>, "many">>;
|
|
1882
1889
|
}, "strip", z.ZodTypeAny, {
|
|
1890
|
+
run: {
|
|
1891
|
+
id: string;
|
|
1892
|
+
isTest: boolean;
|
|
1893
|
+
machine: {
|
|
1894
|
+
cpu: number;
|
|
1895
|
+
memory: number;
|
|
1896
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1897
|
+
centsPerMs: number;
|
|
1898
|
+
};
|
|
1899
|
+
traceContext: Record<string, unknown>;
|
|
1900
|
+
friendlyId: string;
|
|
1901
|
+
attemptNumber: number;
|
|
1902
|
+
masterQueue: string;
|
|
1903
|
+
};
|
|
1883
1904
|
version: "1";
|
|
1884
1905
|
environment: {
|
|
1885
1906
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
@@ -1896,20 +1917,6 @@ export declare const DequeuedMessage: z.ZodObject<{
|
|
|
1896
1917
|
friendlyId?: string | undefined;
|
|
1897
1918
|
imagePlatform?: string | undefined;
|
|
1898
1919
|
};
|
|
1899
|
-
run: {
|
|
1900
|
-
id: string;
|
|
1901
|
-
isTest: boolean;
|
|
1902
|
-
machine: {
|
|
1903
|
-
cpu: number;
|
|
1904
|
-
memory: number;
|
|
1905
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1906
|
-
centsPerMs: number;
|
|
1907
|
-
};
|
|
1908
|
-
traceContext: Record<string, unknown>;
|
|
1909
|
-
friendlyId: string;
|
|
1910
|
-
attemptNumber: number;
|
|
1911
|
-
masterQueue: string;
|
|
1912
|
-
};
|
|
1913
1920
|
snapshot: {
|
|
1914
1921
|
id: string;
|
|
1915
1922
|
createdAt: Date;
|
|
@@ -1961,6 +1968,20 @@ export declare const DequeuedMessage: z.ZodObject<{
|
|
|
1961
1968
|
values?: string[] | undefined;
|
|
1962
1969
|
}[] | undefined;
|
|
1963
1970
|
}, {
|
|
1971
|
+
run: {
|
|
1972
|
+
id: string;
|
|
1973
|
+
isTest: boolean;
|
|
1974
|
+
machine: {
|
|
1975
|
+
cpu: number;
|
|
1976
|
+
memory: number;
|
|
1977
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1978
|
+
centsPerMs: number;
|
|
1979
|
+
};
|
|
1980
|
+
traceContext: Record<string, unknown>;
|
|
1981
|
+
friendlyId: string;
|
|
1982
|
+
attemptNumber: number;
|
|
1983
|
+
masterQueue: string;
|
|
1984
|
+
};
|
|
1964
1985
|
version: "1";
|
|
1965
1986
|
environment: {
|
|
1966
1987
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
@@ -1977,20 +1998,6 @@ export declare const DequeuedMessage: z.ZodObject<{
|
|
|
1977
1998
|
friendlyId?: string | undefined;
|
|
1978
1999
|
imagePlatform?: string | undefined;
|
|
1979
2000
|
};
|
|
1980
|
-
run: {
|
|
1981
|
-
id: string;
|
|
1982
|
-
isTest: boolean;
|
|
1983
|
-
machine: {
|
|
1984
|
-
cpu: number;
|
|
1985
|
-
memory: number;
|
|
1986
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1987
|
-
centsPerMs: number;
|
|
1988
|
-
};
|
|
1989
|
-
traceContext: Record<string, unknown>;
|
|
1990
|
-
friendlyId: string;
|
|
1991
|
-
attemptNumber: number;
|
|
1992
|
-
masterQueue: string;
|
|
1993
|
-
};
|
|
1994
2001
|
snapshot: {
|
|
1995
2002
|
id: string;
|
|
1996
2003
|
createdAt: Date;
|