@trigger.dev/core 3.0.0-beta.0 → 3.0.0-beta.2
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/v3/index.d.mts +622 -152
- package/dist/v3/index.d.ts +622 -152
- package/dist/v3/index.js +271 -108
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +264 -106
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +22 -12
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +24 -14
- package/dist/v3/otel/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/v3/index.d.mts
CHANGED
|
@@ -7,9 +7,9 @@ import { EventsMap, DefaultEventsMap } from 'socket.io/dist/typed-events';
|
|
|
7
7
|
import { Context as Context$1, Span, SpanOptions, Tracer, Attributes } from '@opentelemetry/api';
|
|
8
8
|
import * as logsAPI from '@opentelemetry/api-logs';
|
|
9
9
|
import { Logger, SeverityNumber } from '@opentelemetry/api-logs';
|
|
10
|
-
import { PreciseDate } from '@google-cloud/precise-date';
|
|
11
10
|
import { Unit } from 'humanize-duration';
|
|
12
11
|
import { SpanProcessor, Span as Span$1 } from '@opentelemetry/sdk-trace-base';
|
|
12
|
+
import { PreciseDate } from '@google-cloud/precise-date';
|
|
13
13
|
export { e as eventFilterMatches } from '../eventFilterMatches-2kHImluE.mjs';
|
|
14
14
|
import { TracingSDK } from './otel/index.mjs';
|
|
15
15
|
export { TracingDiagnosticLogLevel, recordSpanException } from './otel/index.mjs';
|
|
@@ -398,6 +398,19 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
398
398
|
maxTimeoutInMs?: number | undefined;
|
|
399
399
|
randomize?: boolean | undefined;
|
|
400
400
|
}>>;
|
|
401
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
402
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
403
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
404
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
version?: "v1" | undefined;
|
|
407
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
408
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
409
|
+
}, {
|
|
410
|
+
version?: "v1" | undefined;
|
|
411
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
412
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
413
|
+
}>>;
|
|
401
414
|
}, "strip", z.ZodTypeAny, {
|
|
402
415
|
id: string;
|
|
403
416
|
filePath: string;
|
|
@@ -446,6 +459,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
446
459
|
maxTimeoutInMs?: number | undefined;
|
|
447
460
|
randomize?: boolean | undefined;
|
|
448
461
|
} | undefined;
|
|
462
|
+
machine?: {
|
|
463
|
+
version?: "v1" | undefined;
|
|
464
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
465
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
466
|
+
} | undefined;
|
|
449
467
|
}, {
|
|
450
468
|
id: string;
|
|
451
469
|
filePath: string;
|
|
@@ -494,6 +512,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
494
512
|
maxTimeoutInMs?: number | undefined;
|
|
495
513
|
randomize?: boolean | undefined;
|
|
496
514
|
} | undefined;
|
|
515
|
+
machine?: {
|
|
516
|
+
version?: "v1" | undefined;
|
|
517
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
518
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
519
|
+
} | undefined;
|
|
497
520
|
}>, "many">;
|
|
498
521
|
}, "strip", z.ZodTypeAny, {
|
|
499
522
|
contentHash: string;
|
|
@@ -546,6 +569,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
546
569
|
maxTimeoutInMs?: number | undefined;
|
|
547
570
|
randomize?: boolean | undefined;
|
|
548
571
|
} | undefined;
|
|
572
|
+
machine?: {
|
|
573
|
+
version?: "v1" | undefined;
|
|
574
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
575
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
576
|
+
} | undefined;
|
|
549
577
|
}[];
|
|
550
578
|
cliPackageVersion?: string | undefined;
|
|
551
579
|
}, {
|
|
@@ -599,6 +627,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
599
627
|
maxTimeoutInMs?: number | undefined;
|
|
600
628
|
randomize?: boolean | undefined;
|
|
601
629
|
} | undefined;
|
|
630
|
+
machine?: {
|
|
631
|
+
version?: "v1" | undefined;
|
|
632
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
633
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
634
|
+
} | undefined;
|
|
602
635
|
}[];
|
|
603
636
|
cliPackageVersion?: string | undefined;
|
|
604
637
|
}>;
|
|
@@ -654,6 +687,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
654
687
|
maxTimeoutInMs?: number | undefined;
|
|
655
688
|
randomize?: boolean | undefined;
|
|
656
689
|
} | undefined;
|
|
690
|
+
machine?: {
|
|
691
|
+
version?: "v1" | undefined;
|
|
692
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
693
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
694
|
+
} | undefined;
|
|
657
695
|
}[];
|
|
658
696
|
cliPackageVersion?: string | undefined;
|
|
659
697
|
};
|
|
@@ -710,6 +748,11 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
710
748
|
maxTimeoutInMs?: number | undefined;
|
|
711
749
|
randomize?: boolean | undefined;
|
|
712
750
|
} | undefined;
|
|
751
|
+
machine?: {
|
|
752
|
+
version?: "v1" | undefined;
|
|
753
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
754
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
755
|
+
} | undefined;
|
|
713
756
|
}[];
|
|
714
757
|
cliPackageVersion?: string | undefined;
|
|
715
758
|
};
|
|
@@ -722,12 +765,12 @@ declare const CreateBackgroundWorkerResponse: z.ZodObject<{
|
|
|
722
765
|
contentHash: z.ZodString;
|
|
723
766
|
}, "strip", z.ZodTypeAny, {
|
|
724
767
|
id: string;
|
|
725
|
-
contentHash: string;
|
|
726
768
|
version: string;
|
|
769
|
+
contentHash: string;
|
|
727
770
|
}, {
|
|
728
771
|
id: string;
|
|
729
|
-
contentHash: string;
|
|
730
772
|
version: string;
|
|
773
|
+
contentHash: string;
|
|
731
774
|
}>;
|
|
732
775
|
type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
|
|
733
776
|
declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
@@ -1669,13 +1712,13 @@ declare const ExternalBuildData: z.ZodObject<{
|
|
|
1669
1712
|
buildToken: z.ZodString;
|
|
1670
1713
|
projectId: z.ZodString;
|
|
1671
1714
|
}, "strip", z.ZodTypeAny, {
|
|
1715
|
+
projectId: string;
|
|
1672
1716
|
buildId: string;
|
|
1673
1717
|
buildToken: string;
|
|
1674
|
-
projectId: string;
|
|
1675
1718
|
}, {
|
|
1719
|
+
projectId: string;
|
|
1676
1720
|
buildId: string;
|
|
1677
1721
|
buildToken: string;
|
|
1678
|
-
projectId: string;
|
|
1679
1722
|
}>;
|
|
1680
1723
|
type ExternalBuildData = z.infer<typeof ExternalBuildData>;
|
|
1681
1724
|
declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
@@ -1689,37 +1732,37 @@ declare const InitializeDeploymentResponseBody: z.ZodObject<{
|
|
|
1689
1732
|
buildToken: z.ZodString;
|
|
1690
1733
|
projectId: z.ZodString;
|
|
1691
1734
|
}, "strip", z.ZodTypeAny, {
|
|
1735
|
+
projectId: string;
|
|
1692
1736
|
buildId: string;
|
|
1693
1737
|
buildToken: string;
|
|
1694
|
-
projectId: string;
|
|
1695
1738
|
}, {
|
|
1739
|
+
projectId: string;
|
|
1696
1740
|
buildId: string;
|
|
1697
1741
|
buildToken: string;
|
|
1698
|
-
projectId: string;
|
|
1699
1742
|
}>>>;
|
|
1700
1743
|
registryHost: z.ZodOptional<z.ZodString>;
|
|
1701
1744
|
}, "strip", z.ZodTypeAny, {
|
|
1702
1745
|
id: string;
|
|
1703
|
-
contentHash: string;
|
|
1704
1746
|
version: string;
|
|
1747
|
+
contentHash: string;
|
|
1705
1748
|
imageTag: string;
|
|
1706
1749
|
shortCode: string;
|
|
1707
1750
|
externalBuildData?: {
|
|
1751
|
+
projectId: string;
|
|
1708
1752
|
buildId: string;
|
|
1709
1753
|
buildToken: string;
|
|
1710
|
-
projectId: string;
|
|
1711
1754
|
} | null | undefined;
|
|
1712
1755
|
registryHost?: string | undefined;
|
|
1713
1756
|
}, {
|
|
1714
1757
|
id: string;
|
|
1715
|
-
contentHash: string;
|
|
1716
1758
|
version: string;
|
|
1759
|
+
contentHash: string;
|
|
1717
1760
|
imageTag: string;
|
|
1718
1761
|
shortCode: string;
|
|
1719
1762
|
externalBuildData?: {
|
|
1763
|
+
projectId: string;
|
|
1720
1764
|
buildId: string;
|
|
1721
1765
|
buildToken: string;
|
|
1722
|
-
projectId: string;
|
|
1723
1766
|
} | null | undefined;
|
|
1724
1767
|
registryHost?: string | undefined;
|
|
1725
1768
|
}>;
|
|
@@ -1796,8 +1839,8 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1796
1839
|
}, "strip", z.ZodTypeAny, {
|
|
1797
1840
|
status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
|
|
1798
1841
|
id: string;
|
|
1799
|
-
contentHash: string;
|
|
1800
1842
|
version: string;
|
|
1843
|
+
contentHash: string;
|
|
1801
1844
|
shortCode: string;
|
|
1802
1845
|
imageReference?: string | undefined;
|
|
1803
1846
|
errorData?: {
|
|
@@ -1818,8 +1861,8 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1818
1861
|
}, {
|
|
1819
1862
|
status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
|
|
1820
1863
|
id: string;
|
|
1821
|
-
contentHash: string;
|
|
1822
1864
|
version: string;
|
|
1865
|
+
contentHash: string;
|
|
1823
1866
|
shortCode: string;
|
|
1824
1867
|
imageReference?: string | undefined;
|
|
1825
1868
|
errorData?: {
|
|
@@ -2056,6 +2099,19 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2056
2099
|
maxTimeoutInMs?: number | undefined;
|
|
2057
2100
|
randomize?: boolean | undefined;
|
|
2058
2101
|
}>>;
|
|
2102
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
2103
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
2104
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
2105
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
2106
|
+
}, "strip", z.ZodTypeAny, {
|
|
2107
|
+
version?: "v1" | undefined;
|
|
2108
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2109
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2110
|
+
}, {
|
|
2111
|
+
version?: "v1" | undefined;
|
|
2112
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2113
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2114
|
+
}>>;
|
|
2059
2115
|
}, "strip", z.ZodTypeAny, {
|
|
2060
2116
|
id: string;
|
|
2061
2117
|
filePath: string;
|
|
@@ -2104,6 +2160,11 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2104
2160
|
maxTimeoutInMs?: number | undefined;
|
|
2105
2161
|
randomize?: boolean | undefined;
|
|
2106
2162
|
} | undefined;
|
|
2163
|
+
machine?: {
|
|
2164
|
+
version?: "v1" | undefined;
|
|
2165
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2166
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2167
|
+
} | undefined;
|
|
2107
2168
|
}, {
|
|
2108
2169
|
id: string;
|
|
2109
2170
|
filePath: string;
|
|
@@ -2152,6 +2213,11 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2152
2213
|
maxTimeoutInMs?: number | undefined;
|
|
2153
2214
|
randomize?: boolean | undefined;
|
|
2154
2215
|
} | undefined;
|
|
2216
|
+
machine?: {
|
|
2217
|
+
version?: "v1" | undefined;
|
|
2218
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2219
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2220
|
+
} | undefined;
|
|
2155
2221
|
}>;
|
|
2156
2222
|
type TaskResource = z.infer<typeof TaskResource>;
|
|
2157
2223
|
declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
@@ -2366,6 +2432,19 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2366
2432
|
maxTimeoutInMs?: number | undefined;
|
|
2367
2433
|
randomize?: boolean | undefined;
|
|
2368
2434
|
}>>;
|
|
2435
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
2436
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
2437
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
2438
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
2439
|
+
}, "strip", z.ZodTypeAny, {
|
|
2440
|
+
version?: "v1" | undefined;
|
|
2441
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2442
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2443
|
+
}, {
|
|
2444
|
+
version?: "v1" | undefined;
|
|
2445
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2446
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2447
|
+
}>>;
|
|
2369
2448
|
}, "strip", z.ZodTypeAny, {
|
|
2370
2449
|
id: string;
|
|
2371
2450
|
filePath: string;
|
|
@@ -2414,6 +2493,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2414
2493
|
maxTimeoutInMs?: number | undefined;
|
|
2415
2494
|
randomize?: boolean | undefined;
|
|
2416
2495
|
} | undefined;
|
|
2496
|
+
machine?: {
|
|
2497
|
+
version?: "v1" | undefined;
|
|
2498
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2499
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2500
|
+
} | undefined;
|
|
2417
2501
|
}, {
|
|
2418
2502
|
id: string;
|
|
2419
2503
|
filePath: string;
|
|
@@ -2462,6 +2546,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2462
2546
|
maxTimeoutInMs?: number | undefined;
|
|
2463
2547
|
randomize?: boolean | undefined;
|
|
2464
2548
|
} | undefined;
|
|
2549
|
+
machine?: {
|
|
2550
|
+
version?: "v1" | undefined;
|
|
2551
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2552
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2553
|
+
} | undefined;
|
|
2465
2554
|
}>, "many">;
|
|
2466
2555
|
}, "strip", z.ZodTypeAny, {
|
|
2467
2556
|
contentHash: string;
|
|
@@ -2514,6 +2603,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2514
2603
|
maxTimeoutInMs?: number | undefined;
|
|
2515
2604
|
randomize?: boolean | undefined;
|
|
2516
2605
|
} | undefined;
|
|
2606
|
+
machine?: {
|
|
2607
|
+
version?: "v1" | undefined;
|
|
2608
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2609
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2610
|
+
} | undefined;
|
|
2517
2611
|
}[];
|
|
2518
2612
|
cliPackageVersion?: string | undefined;
|
|
2519
2613
|
}, {
|
|
@@ -2567,6 +2661,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2567
2661
|
maxTimeoutInMs?: number | undefined;
|
|
2568
2662
|
randomize?: boolean | undefined;
|
|
2569
2663
|
} | undefined;
|
|
2664
|
+
machine?: {
|
|
2665
|
+
version?: "v1" | undefined;
|
|
2666
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
2667
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2668
|
+
} | undefined;
|
|
2570
2669
|
}[];
|
|
2571
2670
|
cliPackageVersion?: string | undefined;
|
|
2572
2671
|
}>;
|
|
@@ -3708,6 +3807,26 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
3708
3807
|
}>;
|
|
3709
3808
|
type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;
|
|
3710
3809
|
|
|
3810
|
+
declare const EnvironmentType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
3811
|
+
type EnvironmentType = z.infer<typeof EnvironmentType>;
|
|
3812
|
+
declare const MachineCpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
3813
|
+
type MachineCpu = z.infer<typeof MachineCpu>;
|
|
3814
|
+
declare const MachineMemory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
3815
|
+
type MachineMemory = z.infer<typeof MachineMemory>;
|
|
3816
|
+
declare const Machine: z.ZodObject<{
|
|
3817
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
3818
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
3819
|
+
memory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
3820
|
+
}, "strip", z.ZodTypeAny, {
|
|
3821
|
+
version: "v1";
|
|
3822
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
3823
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
3824
|
+
}, {
|
|
3825
|
+
version?: "v1" | undefined;
|
|
3826
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
3827
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
3828
|
+
}>;
|
|
3829
|
+
type Machine = z.infer<typeof Machine>;
|
|
3711
3830
|
declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
3712
3831
|
execution: z.ZodObject<{
|
|
3713
3832
|
task: z.ZodObject<{
|
|
@@ -4152,12 +4271,12 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
4152
4271
|
version: z.ZodString;
|
|
4153
4272
|
}, "strip", z.ZodTypeAny, {
|
|
4154
4273
|
id: string;
|
|
4155
|
-
contentHash: string;
|
|
4156
4274
|
version: string;
|
|
4275
|
+
contentHash: string;
|
|
4157
4276
|
}, {
|
|
4158
4277
|
id: string;
|
|
4159
|
-
contentHash: string;
|
|
4160
4278
|
version: string;
|
|
4279
|
+
contentHash: string;
|
|
4161
4280
|
}>;
|
|
4162
4281
|
}, "strip", z.ZodTypeAny, {
|
|
4163
4282
|
queue: {
|
|
@@ -4204,8 +4323,8 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
4204
4323
|
};
|
|
4205
4324
|
worker: {
|
|
4206
4325
|
id: string;
|
|
4207
|
-
contentHash: string;
|
|
4208
4326
|
version: string;
|
|
4327
|
+
contentHash: string;
|
|
4209
4328
|
};
|
|
4210
4329
|
batch?: {
|
|
4211
4330
|
id: string;
|
|
@@ -4255,8 +4374,8 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
4255
4374
|
};
|
|
4256
4375
|
worker: {
|
|
4257
4376
|
id: string;
|
|
4258
|
-
contentHash: string;
|
|
4259
4377
|
version: string;
|
|
4378
|
+
contentHash: string;
|
|
4260
4379
|
};
|
|
4261
4380
|
batch?: {
|
|
4262
4381
|
id: string;
|
|
@@ -4390,12 +4509,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4390
4509
|
version: z.ZodString;
|
|
4391
4510
|
}, "strip", z.ZodTypeAny, {
|
|
4392
4511
|
id: string;
|
|
4393
|
-
contentHash: string;
|
|
4394
4512
|
version: string;
|
|
4513
|
+
contentHash: string;
|
|
4395
4514
|
}, {
|
|
4396
4515
|
id: string;
|
|
4397
|
-
contentHash: string;
|
|
4398
4516
|
version: string;
|
|
4517
|
+
contentHash: string;
|
|
4399
4518
|
}>;
|
|
4400
4519
|
}, "strip", z.ZodTypeAny, {
|
|
4401
4520
|
queue: {
|
|
@@ -4442,8 +4561,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4442
4561
|
};
|
|
4443
4562
|
worker: {
|
|
4444
4563
|
id: string;
|
|
4445
|
-
contentHash: string;
|
|
4446
4564
|
version: string;
|
|
4565
|
+
contentHash: string;
|
|
4447
4566
|
};
|
|
4448
4567
|
batch?: {
|
|
4449
4568
|
id: string;
|
|
@@ -4493,8 +4612,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4493
4612
|
};
|
|
4494
4613
|
worker: {
|
|
4495
4614
|
id: string;
|
|
4496
|
-
contentHash: string;
|
|
4497
4615
|
version: string;
|
|
4616
|
+
contentHash: string;
|
|
4498
4617
|
};
|
|
4499
4618
|
batch?: {
|
|
4500
4619
|
id: string;
|
|
@@ -4548,8 +4667,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4548
4667
|
};
|
|
4549
4668
|
worker: {
|
|
4550
4669
|
id: string;
|
|
4551
|
-
contentHash: string;
|
|
4552
4670
|
version: string;
|
|
4671
|
+
contentHash: string;
|
|
4553
4672
|
};
|
|
4554
4673
|
batch?: {
|
|
4555
4674
|
id: string;
|
|
@@ -4603,8 +4722,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4603
4722
|
};
|
|
4604
4723
|
worker: {
|
|
4605
4724
|
id: string;
|
|
4606
|
-
contentHash: string;
|
|
4607
4725
|
version: string;
|
|
4726
|
+
contentHash: string;
|
|
4608
4727
|
};
|
|
4609
4728
|
batch?: {
|
|
4610
4729
|
id: string;
|
|
@@ -5053,24 +5172,56 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5053
5172
|
taskRunId: string;
|
|
5054
5173
|
}>, z.ZodObject<{
|
|
5055
5174
|
type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
|
|
5056
|
-
id: z.ZodString;
|
|
5057
5175
|
image: z.ZodString;
|
|
5176
|
+
version: z.ZodString;
|
|
5177
|
+
machine: z.ZodObject<{
|
|
5178
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
5179
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
5180
|
+
memory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
5181
|
+
}, "strip", z.ZodTypeAny, {
|
|
5182
|
+
version: "v1";
|
|
5183
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
5184
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
5185
|
+
}, {
|
|
5186
|
+
version?: "v1" | undefined;
|
|
5187
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
5188
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5189
|
+
}>;
|
|
5190
|
+
id: z.ZodString;
|
|
5058
5191
|
envId: z.ZodString;
|
|
5192
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
5193
|
+
orgId: z.ZodString;
|
|
5194
|
+
projectId: z.ZodString;
|
|
5059
5195
|
runId: z.ZodString;
|
|
5060
|
-
version: z.ZodString;
|
|
5061
5196
|
}, "strip", z.ZodTypeAny, {
|
|
5062
5197
|
type: "SCHEDULE_ATTEMPT";
|
|
5063
5198
|
id: string;
|
|
5064
5199
|
version: string;
|
|
5065
5200
|
image: string;
|
|
5201
|
+
machine: {
|
|
5202
|
+
version: "v1";
|
|
5203
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
5204
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
5205
|
+
};
|
|
5066
5206
|
envId: string;
|
|
5207
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5208
|
+
orgId: string;
|
|
5209
|
+
projectId: string;
|
|
5067
5210
|
runId: string;
|
|
5068
5211
|
}, {
|
|
5069
5212
|
type: "SCHEDULE_ATTEMPT";
|
|
5070
5213
|
id: string;
|
|
5071
5214
|
version: string;
|
|
5072
5215
|
image: string;
|
|
5216
|
+
machine: {
|
|
5217
|
+
version?: "v1" | undefined;
|
|
5218
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
5219
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5220
|
+
};
|
|
5073
5221
|
envId: string;
|
|
5222
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5223
|
+
orgId: string;
|
|
5224
|
+
projectId: string;
|
|
5074
5225
|
runId: string;
|
|
5075
5226
|
}>]>;
|
|
5076
5227
|
type BackgroundWorkerServerMessages = z.infer<typeof BackgroundWorkerServerMessages>;
|
|
@@ -5527,24 +5678,56 @@ declare const serverWebsocketMessages: {
|
|
|
5527
5678
|
taskRunId: string;
|
|
5528
5679
|
}>, z.ZodObject<{
|
|
5529
5680
|
type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
|
|
5530
|
-
id: z.ZodString;
|
|
5531
5681
|
image: z.ZodString;
|
|
5682
|
+
version: z.ZodString;
|
|
5683
|
+
machine: z.ZodObject<{
|
|
5684
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
5685
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
5686
|
+
memory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
5687
|
+
}, "strip", z.ZodTypeAny, {
|
|
5688
|
+
version: "v1";
|
|
5689
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
5690
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
5691
|
+
}, {
|
|
5692
|
+
version?: "v1" | undefined;
|
|
5693
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
5694
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5695
|
+
}>;
|
|
5696
|
+
id: z.ZodString;
|
|
5532
5697
|
envId: z.ZodString;
|
|
5698
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
5699
|
+
orgId: z.ZodString;
|
|
5700
|
+
projectId: z.ZodString;
|
|
5533
5701
|
runId: z.ZodString;
|
|
5534
|
-
version: z.ZodString;
|
|
5535
5702
|
}, "strip", z.ZodTypeAny, {
|
|
5536
5703
|
type: "SCHEDULE_ATTEMPT";
|
|
5537
5704
|
id: string;
|
|
5538
5705
|
version: string;
|
|
5539
5706
|
image: string;
|
|
5707
|
+
machine: {
|
|
5708
|
+
version: "v1";
|
|
5709
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
5710
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
5711
|
+
};
|
|
5540
5712
|
envId: string;
|
|
5713
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5714
|
+
orgId: string;
|
|
5715
|
+
projectId: string;
|
|
5541
5716
|
runId: string;
|
|
5542
5717
|
}, {
|
|
5543
5718
|
type: "SCHEDULE_ATTEMPT";
|
|
5544
5719
|
id: string;
|
|
5545
5720
|
version: string;
|
|
5546
5721
|
image: string;
|
|
5722
|
+
machine: {
|
|
5723
|
+
version?: "v1" | undefined;
|
|
5724
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
5725
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5726
|
+
};
|
|
5547
5727
|
envId: string;
|
|
5728
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5729
|
+
orgId: string;
|
|
5730
|
+
projectId: string;
|
|
5548
5731
|
runId: string;
|
|
5549
5732
|
}>]>;
|
|
5550
5733
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5610,7 +5793,15 @@ declare const serverWebsocketMessages: {
|
|
|
5610
5793
|
id: string;
|
|
5611
5794
|
version: string;
|
|
5612
5795
|
image: string;
|
|
5796
|
+
machine: {
|
|
5797
|
+
version: "v1";
|
|
5798
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
5799
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
5800
|
+
};
|
|
5613
5801
|
envId: string;
|
|
5802
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5803
|
+
orgId: string;
|
|
5804
|
+
projectId: string;
|
|
5614
5805
|
runId: string;
|
|
5615
5806
|
};
|
|
5616
5807
|
backgroundWorkerId: string;
|
|
@@ -5678,7 +5869,15 @@ declare const serverWebsocketMessages: {
|
|
|
5678
5869
|
id: string;
|
|
5679
5870
|
version: string;
|
|
5680
5871
|
image: string;
|
|
5872
|
+
machine: {
|
|
5873
|
+
version?: "v1" | undefined;
|
|
5874
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
5875
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5876
|
+
};
|
|
5681
5877
|
envId: string;
|
|
5878
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5879
|
+
orgId: string;
|
|
5880
|
+
projectId: string;
|
|
5682
5881
|
runId: string;
|
|
5683
5882
|
};
|
|
5684
5883
|
backgroundWorkerId: string;
|
|
@@ -5689,7 +5888,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5689
5888
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
5690
5889
|
type: z.ZodLiteral<"TASK_RUN_COMPLETED">;
|
|
5691
5890
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
5692
|
-
ok: z.ZodLiteral<true>;
|
|
5891
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
5693
5892
|
id: z.ZodString;
|
|
5694
5893
|
output: z.ZodOptional<z.ZodString>;
|
|
5695
5894
|
outputType: z.ZodString;
|
|
@@ -6032,6 +6231,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
6032
6231
|
}>;
|
|
6033
6232
|
}, "strip", z.ZodTypeAny, {
|
|
6034
6233
|
type: "TASK_RUN_COMPLETED";
|
|
6234
|
+
version: "v1";
|
|
6035
6235
|
execution: {
|
|
6036
6236
|
queue: {
|
|
6037
6237
|
name: string;
|
|
@@ -6079,7 +6279,6 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
6079
6279
|
id: string;
|
|
6080
6280
|
} | undefined;
|
|
6081
6281
|
};
|
|
6082
|
-
version: "v1";
|
|
6083
6282
|
completion: {
|
|
6084
6283
|
error: {
|
|
6085
6284
|
name: string;
|
|
@@ -6212,12 +6411,12 @@ declare const BackgroundWorkerProperties: z.ZodObject<{
|
|
|
6212
6411
|
contentHash: z.ZodString;
|
|
6213
6412
|
}, "strip", z.ZodTypeAny, {
|
|
6214
6413
|
id: string;
|
|
6215
|
-
contentHash: string;
|
|
6216
6414
|
version: string;
|
|
6415
|
+
contentHash: string;
|
|
6217
6416
|
}, {
|
|
6218
6417
|
id: string;
|
|
6219
|
-
contentHash: string;
|
|
6220
6418
|
version: string;
|
|
6419
|
+
contentHash: string;
|
|
6221
6420
|
}>;
|
|
6222
6421
|
type BackgroundWorkerProperties = z.infer<typeof BackgroundWorkerProperties>;
|
|
6223
6422
|
declare const clientWebsocketMessages: {
|
|
@@ -6248,7 +6447,7 @@ declare const clientWebsocketMessages: {
|
|
|
6248
6447
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
6249
6448
|
type: z.ZodLiteral<"TASK_RUN_COMPLETED">;
|
|
6250
6449
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
6251
|
-
ok: z.ZodLiteral<true>;
|
|
6450
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
6252
6451
|
id: z.ZodString;
|
|
6253
6452
|
output: z.ZodOptional<z.ZodString>;
|
|
6254
6453
|
outputType: z.ZodString;
|
|
@@ -6591,6 +6790,7 @@ declare const clientWebsocketMessages: {
|
|
|
6591
6790
|
}>;
|
|
6592
6791
|
}, "strip", z.ZodTypeAny, {
|
|
6593
6792
|
type: "TASK_RUN_COMPLETED";
|
|
6793
|
+
version: "v1";
|
|
6594
6794
|
execution: {
|
|
6595
6795
|
queue: {
|
|
6596
6796
|
name: string;
|
|
@@ -6638,7 +6838,6 @@ declare const clientWebsocketMessages: {
|
|
|
6638
6838
|
id: string;
|
|
6639
6839
|
} | undefined;
|
|
6640
6840
|
};
|
|
6641
|
-
version: "v1";
|
|
6642
6841
|
completion: {
|
|
6643
6842
|
error: {
|
|
6644
6843
|
name: string;
|
|
@@ -6767,6 +6966,7 @@ declare const clientWebsocketMessages: {
|
|
|
6767
6966
|
}, "strip", z.ZodTypeAny, {
|
|
6768
6967
|
data: {
|
|
6769
6968
|
type: "TASK_RUN_COMPLETED";
|
|
6969
|
+
version: "v1";
|
|
6770
6970
|
execution: {
|
|
6771
6971
|
queue: {
|
|
6772
6972
|
name: string;
|
|
@@ -6814,7 +7014,6 @@ declare const clientWebsocketMessages: {
|
|
|
6814
7014
|
id: string;
|
|
6815
7015
|
} | undefined;
|
|
6816
7016
|
};
|
|
6817
|
-
version: "v1";
|
|
6818
7017
|
completion: {
|
|
6819
7018
|
error: {
|
|
6820
7019
|
name: string;
|
|
@@ -7167,14 +7366,15 @@ declare const workerToChildMessages: {
|
|
|
7167
7366
|
contentHash: z.ZodString;
|
|
7168
7367
|
}, "strip", z.ZodTypeAny, {
|
|
7169
7368
|
id: string;
|
|
7170
|
-
contentHash: string;
|
|
7171
7369
|
version: string;
|
|
7370
|
+
contentHash: string;
|
|
7172
7371
|
}, {
|
|
7173
7372
|
id: string;
|
|
7174
|
-
contentHash: string;
|
|
7175
7373
|
version: string;
|
|
7374
|
+
contentHash: string;
|
|
7176
7375
|
}>;
|
|
7177
7376
|
}, "strip", z.ZodTypeAny, {
|
|
7377
|
+
version: "v1";
|
|
7178
7378
|
execution: {
|
|
7179
7379
|
queue: {
|
|
7180
7380
|
name: string;
|
|
@@ -7223,11 +7423,10 @@ declare const workerToChildMessages: {
|
|
|
7223
7423
|
} | undefined;
|
|
7224
7424
|
};
|
|
7225
7425
|
traceContext: Record<string, unknown>;
|
|
7226
|
-
version: "v1";
|
|
7227
7426
|
metadata: {
|
|
7228
7427
|
id: string;
|
|
7229
|
-
contentHash: string;
|
|
7230
7428
|
version: string;
|
|
7429
|
+
contentHash: string;
|
|
7231
7430
|
};
|
|
7232
7431
|
}, {
|
|
7233
7432
|
execution: {
|
|
@@ -7280,15 +7479,15 @@ declare const workerToChildMessages: {
|
|
|
7280
7479
|
traceContext: Record<string, unknown>;
|
|
7281
7480
|
metadata: {
|
|
7282
7481
|
id: string;
|
|
7283
|
-
contentHash: string;
|
|
7284
7482
|
version: string;
|
|
7483
|
+
contentHash: string;
|
|
7285
7484
|
};
|
|
7286
7485
|
version?: "v1" | undefined;
|
|
7287
7486
|
}>;
|
|
7288
7487
|
TASK_RUN_COMPLETED_NOTIFICATION: z.ZodObject<{
|
|
7289
7488
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
7290
7489
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
7291
|
-
ok: z.ZodLiteral<true>;
|
|
7490
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
7292
7491
|
id: z.ZodString;
|
|
7293
7492
|
output: z.ZodOptional<z.ZodString>;
|
|
7294
7493
|
outputType: z.ZodString;
|
|
@@ -7630,6 +7829,7 @@ declare const workerToChildMessages: {
|
|
|
7630
7829
|
} | undefined;
|
|
7631
7830
|
}>;
|
|
7632
7831
|
}, "strip", z.ZodTypeAny, {
|
|
7832
|
+
version: "v1";
|
|
7633
7833
|
execution: {
|
|
7634
7834
|
queue: {
|
|
7635
7835
|
name: string;
|
|
@@ -7677,7 +7877,6 @@ declare const workerToChildMessages: {
|
|
|
7677
7877
|
id: string;
|
|
7678
7878
|
} | undefined;
|
|
7679
7879
|
};
|
|
7680
|
-
version: "v1";
|
|
7681
7880
|
completion: {
|
|
7682
7881
|
error: {
|
|
7683
7882
|
name: string;
|
|
@@ -8530,6 +8729,19 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8530
8729
|
maxTimeoutInMs?: number | undefined;
|
|
8531
8730
|
randomize?: boolean | undefined;
|
|
8532
8731
|
}>>;
|
|
8732
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
8733
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
8734
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
8735
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
8736
|
+
}, "strip", z.ZodTypeAny, {
|
|
8737
|
+
version?: "v1" | undefined;
|
|
8738
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
8739
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8740
|
+
}, {
|
|
8741
|
+
version?: "v1" | undefined;
|
|
8742
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
8743
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8744
|
+
}>>;
|
|
8533
8745
|
}, "strip", z.ZodTypeAny, {
|
|
8534
8746
|
id: string;
|
|
8535
8747
|
exportName: string;
|
|
@@ -8578,6 +8790,11 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8578
8790
|
maxTimeoutInMs?: number | undefined;
|
|
8579
8791
|
randomize?: boolean | undefined;
|
|
8580
8792
|
} | undefined;
|
|
8793
|
+
machine?: {
|
|
8794
|
+
version?: "v1" | undefined;
|
|
8795
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
8796
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8797
|
+
} | undefined;
|
|
8581
8798
|
}, {
|
|
8582
8799
|
id: string;
|
|
8583
8800
|
exportName: string;
|
|
@@ -8626,6 +8843,11 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8626
8843
|
maxTimeoutInMs?: number | undefined;
|
|
8627
8844
|
randomize?: boolean | undefined;
|
|
8628
8845
|
} | undefined;
|
|
8846
|
+
machine?: {
|
|
8847
|
+
version?: "v1" | undefined;
|
|
8848
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
8849
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8850
|
+
} | undefined;
|
|
8629
8851
|
}>;
|
|
8630
8852
|
type TaskMetadata = z.infer<typeof TaskMetadata>;
|
|
8631
8853
|
declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
@@ -8881,6 +9103,19 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8881
9103
|
maxTimeoutInMs?: number | undefined;
|
|
8882
9104
|
randomize?: boolean | undefined;
|
|
8883
9105
|
}>>;
|
|
9106
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
9107
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
9108
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
9109
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
9110
|
+
}, "strip", z.ZodTypeAny, {
|
|
9111
|
+
version?: "v1" | undefined;
|
|
9112
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
9113
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9114
|
+
}, {
|
|
9115
|
+
version?: "v1" | undefined;
|
|
9116
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
9117
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9118
|
+
}>>;
|
|
8884
9119
|
packageVersion: z.ZodString;
|
|
8885
9120
|
filePath: z.ZodString;
|
|
8886
9121
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8932,6 +9167,11 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8932
9167
|
maxTimeoutInMs?: number | undefined;
|
|
8933
9168
|
randomize?: boolean | undefined;
|
|
8934
9169
|
} | undefined;
|
|
9170
|
+
machine?: {
|
|
9171
|
+
version?: "v1" | undefined;
|
|
9172
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
9173
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9174
|
+
} | undefined;
|
|
8935
9175
|
}, {
|
|
8936
9176
|
id: string;
|
|
8937
9177
|
filePath: string;
|
|
@@ -8981,6 +9221,11 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8981
9221
|
maxTimeoutInMs?: number | undefined;
|
|
8982
9222
|
randomize?: boolean | undefined;
|
|
8983
9223
|
} | undefined;
|
|
9224
|
+
machine?: {
|
|
9225
|
+
version?: "v1" | undefined;
|
|
9226
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
9227
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9228
|
+
} | undefined;
|
|
8984
9229
|
}>;
|
|
8985
9230
|
type TaskMetadataWithFilePath = z.infer<typeof TaskMetadataWithFilePath>;
|
|
8986
9231
|
declare const UncaughtExceptionMessage: z.ZodObject<{
|
|
@@ -9233,7 +9478,7 @@ declare const childToWorkerMessages: {
|
|
|
9233
9478
|
} | undefined;
|
|
9234
9479
|
}>;
|
|
9235
9480
|
result: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
9236
|
-
ok: z.ZodLiteral<true>;
|
|
9481
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
9237
9482
|
id: z.ZodString;
|
|
9238
9483
|
output: z.ZodOptional<z.ZodString>;
|
|
9239
9484
|
outputType: z.ZodString;
|
|
@@ -9362,6 +9607,7 @@ declare const childToWorkerMessages: {
|
|
|
9362
9607
|
skippedRetrying?: boolean | undefined;
|
|
9363
9608
|
}>]>;
|
|
9364
9609
|
}, "strip", z.ZodTypeAny, {
|
|
9610
|
+
version: "v1";
|
|
9365
9611
|
execution: {
|
|
9366
9612
|
queue: {
|
|
9367
9613
|
name: string;
|
|
@@ -9409,7 +9655,6 @@ declare const childToWorkerMessages: {
|
|
|
9409
9655
|
id: string;
|
|
9410
9656
|
} | undefined;
|
|
9411
9657
|
};
|
|
9412
|
-
version: "v1";
|
|
9413
9658
|
result: {
|
|
9414
9659
|
error: {
|
|
9415
9660
|
name: string;
|
|
@@ -9777,6 +10022,19 @@ declare const childToWorkerMessages: {
|
|
|
9777
10022
|
maxTimeoutInMs?: number | undefined;
|
|
9778
10023
|
randomize?: boolean | undefined;
|
|
9779
10024
|
}>>;
|
|
10025
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
10026
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
10027
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
10028
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
10029
|
+
}, "strip", z.ZodTypeAny, {
|
|
10030
|
+
version?: "v1" | undefined;
|
|
10031
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
10032
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10033
|
+
}, {
|
|
10034
|
+
version?: "v1" | undefined;
|
|
10035
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
10036
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10037
|
+
}>>;
|
|
9780
10038
|
packageVersion: z.ZodString;
|
|
9781
10039
|
filePath: z.ZodString;
|
|
9782
10040
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9828,6 +10086,11 @@ declare const childToWorkerMessages: {
|
|
|
9828
10086
|
maxTimeoutInMs?: number | undefined;
|
|
9829
10087
|
randomize?: boolean | undefined;
|
|
9830
10088
|
} | undefined;
|
|
10089
|
+
machine?: {
|
|
10090
|
+
version?: "v1" | undefined;
|
|
10091
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
10092
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10093
|
+
} | undefined;
|
|
9831
10094
|
}, {
|
|
9832
10095
|
id: string;
|
|
9833
10096
|
filePath: string;
|
|
@@ -9877,6 +10140,11 @@ declare const childToWorkerMessages: {
|
|
|
9877
10140
|
maxTimeoutInMs?: number | undefined;
|
|
9878
10141
|
randomize?: boolean | undefined;
|
|
9879
10142
|
} | undefined;
|
|
10143
|
+
machine?: {
|
|
10144
|
+
version?: "v1" | undefined;
|
|
10145
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
10146
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10147
|
+
} | undefined;
|
|
9880
10148
|
}>, "many">;
|
|
9881
10149
|
}, "strip", z.ZodTypeAny, {
|
|
9882
10150
|
version: "v1";
|
|
@@ -9929,6 +10197,11 @@ declare const childToWorkerMessages: {
|
|
|
9929
10197
|
maxTimeoutInMs?: number | undefined;
|
|
9930
10198
|
randomize?: boolean | undefined;
|
|
9931
10199
|
} | undefined;
|
|
10200
|
+
machine?: {
|
|
10201
|
+
version?: "v1" | undefined;
|
|
10202
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
10203
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10204
|
+
} | undefined;
|
|
9932
10205
|
}[];
|
|
9933
10206
|
}, {
|
|
9934
10207
|
tasks: {
|
|
@@ -9980,6 +10253,11 @@ declare const childToWorkerMessages: {
|
|
|
9980
10253
|
maxTimeoutInMs?: number | undefined;
|
|
9981
10254
|
randomize?: boolean | undefined;
|
|
9982
10255
|
} | undefined;
|
|
10256
|
+
machine?: {
|
|
10257
|
+
version?: "v1" | undefined;
|
|
10258
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
10259
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10260
|
+
} | undefined;
|
|
9983
10261
|
}[];
|
|
9984
10262
|
version?: "v1" | undefined;
|
|
9985
10263
|
}>;
|
|
@@ -10279,7 +10557,7 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10279
10557
|
} | undefined;
|
|
10280
10558
|
}>;
|
|
10281
10559
|
result: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
10282
|
-
ok: z.ZodLiteral<true>;
|
|
10560
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
10283
10561
|
id: z.ZodString;
|
|
10284
10562
|
output: z.ZodOptional<z.ZodString>;
|
|
10285
10563
|
outputType: z.ZodString;
|
|
@@ -10408,6 +10686,7 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10408
10686
|
skippedRetrying?: boolean | undefined;
|
|
10409
10687
|
}>]>;
|
|
10410
10688
|
}, "strip", z.ZodTypeAny, {
|
|
10689
|
+
version: "v1";
|
|
10411
10690
|
execution: {
|
|
10412
10691
|
queue: {
|
|
10413
10692
|
name: string;
|
|
@@ -10455,7 +10734,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10455
10734
|
id: string;
|
|
10456
10735
|
} | undefined;
|
|
10457
10736
|
};
|
|
10458
|
-
version: "v1";
|
|
10459
10737
|
result: {
|
|
10460
10738
|
error: {
|
|
10461
10739
|
name: string;
|
|
@@ -10825,6 +11103,19 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10825
11103
|
maxTimeoutInMs?: number | undefined;
|
|
10826
11104
|
randomize?: boolean | undefined;
|
|
10827
11105
|
}>>;
|
|
11106
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
11107
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
11108
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
11109
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
11110
|
+
}, "strip", z.ZodTypeAny, {
|
|
11111
|
+
version?: "v1" | undefined;
|
|
11112
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
11113
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11114
|
+
}, {
|
|
11115
|
+
version?: "v1" | undefined;
|
|
11116
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
11117
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11118
|
+
}>>;
|
|
10828
11119
|
packageVersion: z.ZodString;
|
|
10829
11120
|
filePath: z.ZodString;
|
|
10830
11121
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10876,6 +11167,11 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10876
11167
|
maxTimeoutInMs?: number | undefined;
|
|
10877
11168
|
randomize?: boolean | undefined;
|
|
10878
11169
|
} | undefined;
|
|
11170
|
+
machine?: {
|
|
11171
|
+
version?: "v1" | undefined;
|
|
11172
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
11173
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11174
|
+
} | undefined;
|
|
10879
11175
|
}, {
|
|
10880
11176
|
id: string;
|
|
10881
11177
|
filePath: string;
|
|
@@ -10925,6 +11221,11 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10925
11221
|
maxTimeoutInMs?: number | undefined;
|
|
10926
11222
|
randomize?: boolean | undefined;
|
|
10927
11223
|
} | undefined;
|
|
11224
|
+
machine?: {
|
|
11225
|
+
version?: "v1" | undefined;
|
|
11226
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
11227
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11228
|
+
} | undefined;
|
|
10928
11229
|
}>, "many">;
|
|
10929
11230
|
}, "strip", z.ZodTypeAny, {
|
|
10930
11231
|
version: "v1";
|
|
@@ -10977,6 +11278,11 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10977
11278
|
maxTimeoutInMs?: number | undefined;
|
|
10978
11279
|
randomize?: boolean | undefined;
|
|
10979
11280
|
} | undefined;
|
|
11281
|
+
machine?: {
|
|
11282
|
+
version?: "v1" | undefined;
|
|
11283
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
11284
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11285
|
+
} | undefined;
|
|
10980
11286
|
}[];
|
|
10981
11287
|
}, {
|
|
10982
11288
|
tasks: {
|
|
@@ -11028,6 +11334,11 @@ declare const ProdChildToWorkerMessages: {
|
|
|
11028
11334
|
maxTimeoutInMs?: number | undefined;
|
|
11029
11335
|
randomize?: boolean | undefined;
|
|
11030
11336
|
} | undefined;
|
|
11337
|
+
machine?: {
|
|
11338
|
+
version?: "v1" | undefined;
|
|
11339
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
11340
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11341
|
+
} | undefined;
|
|
11031
11342
|
}[];
|
|
11032
11343
|
version?: "v1" | undefined;
|
|
11033
11344
|
}>;
|
|
@@ -11374,14 +11685,15 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11374
11685
|
contentHash: z.ZodString;
|
|
11375
11686
|
}, "strip", z.ZodTypeAny, {
|
|
11376
11687
|
id: string;
|
|
11377
|
-
contentHash: string;
|
|
11378
11688
|
version: string;
|
|
11689
|
+
contentHash: string;
|
|
11379
11690
|
}, {
|
|
11380
11691
|
id: string;
|
|
11381
|
-
contentHash: string;
|
|
11382
11692
|
version: string;
|
|
11693
|
+
contentHash: string;
|
|
11383
11694
|
}>;
|
|
11384
11695
|
}, "strip", z.ZodTypeAny, {
|
|
11696
|
+
version: "v1";
|
|
11385
11697
|
execution: {
|
|
11386
11698
|
queue: {
|
|
11387
11699
|
name: string;
|
|
@@ -11430,11 +11742,10 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11430
11742
|
} | undefined;
|
|
11431
11743
|
};
|
|
11432
11744
|
traceContext: Record<string, unknown>;
|
|
11433
|
-
version: "v1";
|
|
11434
11745
|
metadata: {
|
|
11435
11746
|
id: string;
|
|
11436
|
-
contentHash: string;
|
|
11437
11747
|
version: string;
|
|
11748
|
+
contentHash: string;
|
|
11438
11749
|
};
|
|
11439
11750
|
}, {
|
|
11440
11751
|
execution: {
|
|
@@ -11487,8 +11798,8 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11487
11798
|
traceContext: Record<string, unknown>;
|
|
11488
11799
|
metadata: {
|
|
11489
11800
|
id: string;
|
|
11490
|
-
contentHash: string;
|
|
11491
11801
|
version: string;
|
|
11802
|
+
contentHash: string;
|
|
11492
11803
|
};
|
|
11493
11804
|
version?: "v1" | undefined;
|
|
11494
11805
|
}>;
|
|
@@ -11497,7 +11808,7 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11497
11808
|
message: z.ZodObject<{
|
|
11498
11809
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
11499
11810
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
11500
|
-
ok: z.ZodLiteral<true>;
|
|
11811
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
11501
11812
|
id: z.ZodString;
|
|
11502
11813
|
output: z.ZodOptional<z.ZodString>;
|
|
11503
11814
|
outputType: z.ZodString;
|
|
@@ -11839,6 +12150,7 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11839
12150
|
} | undefined;
|
|
11840
12151
|
}>;
|
|
11841
12152
|
}, "strip", z.ZodTypeAny, {
|
|
12153
|
+
version: "v1";
|
|
11842
12154
|
execution: {
|
|
11843
12155
|
queue: {
|
|
11844
12156
|
name: string;
|
|
@@ -11886,7 +12198,6 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11886
12198
|
id: string;
|
|
11887
12199
|
} | undefined;
|
|
11888
12200
|
};
|
|
11889
|
-
version: "v1";
|
|
11890
12201
|
completion: {
|
|
11891
12202
|
error: {
|
|
11892
12203
|
name: string;
|
|
@@ -12111,6 +12422,10 @@ type TaskMetadataWithFunctions = TaskMetadataWithFilePath & {
|
|
|
12111
12422
|
};
|
|
12112
12423
|
};
|
|
12113
12424
|
|
|
12425
|
+
declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
|
|
12426
|
+
type PostStartCauses = z.infer<typeof PostStartCauses>;
|
|
12427
|
+
declare const PreStopCauses: z.ZodEnum<["terminate"]>;
|
|
12428
|
+
type PreStopCauses = z.infer<typeof PreStopCauses>;
|
|
12114
12429
|
declare const Config: z.ZodObject<{
|
|
12115
12430
|
project: z.ZodString;
|
|
12116
12431
|
triggerDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -12201,17 +12516,6 @@ declare const Config: z.ZodObject<{
|
|
|
12201
12516
|
}>;
|
|
12202
12517
|
type Config = z.infer<typeof Config>;
|
|
12203
12518
|
type ResolvedConfig = RequireKeys<Config, "triggerDirectories" | "triggerUrl" | "projectDir" | "tsconfigPath">;
|
|
12204
|
-
declare const Machine: z.ZodObject<{
|
|
12205
|
-
cpu: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
12206
|
-
memory: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
12207
|
-
}, "strip", z.ZodTypeAny, {
|
|
12208
|
-
cpu?: string | undefined;
|
|
12209
|
-
memory?: string | undefined;
|
|
12210
|
-
}, {
|
|
12211
|
-
cpu?: string | undefined;
|
|
12212
|
-
memory?: string | undefined;
|
|
12213
|
-
}>;
|
|
12214
|
-
type Machine = z.infer<typeof Machine>;
|
|
12215
12519
|
declare const WaitReason: z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>;
|
|
12216
12520
|
type WaitReason = z.infer<typeof WaitReason>;
|
|
12217
12521
|
declare const ProviderToPlatformMessages: {
|
|
@@ -12269,18 +12573,27 @@ declare const PlatformToProviderMessages: {
|
|
|
12269
12573
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12270
12574
|
imageTag: z.ZodString;
|
|
12271
12575
|
shortCode: z.ZodString;
|
|
12272
|
-
envId: z.ZodString;
|
|
12273
12576
|
apiKey: z.ZodString;
|
|
12274
12577
|
apiUrl: z.ZodString;
|
|
12578
|
+
envId: z.ZodString;
|
|
12579
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
12580
|
+
orgId: z.ZodString;
|
|
12581
|
+
projectId: z.ZodString;
|
|
12275
12582
|
}, "strip", z.ZodTypeAny, {
|
|
12276
12583
|
version: "v1";
|
|
12277
12584
|
envId: string;
|
|
12585
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12586
|
+
orgId: string;
|
|
12587
|
+
projectId: string;
|
|
12278
12588
|
imageTag: string;
|
|
12279
12589
|
apiKey: string;
|
|
12280
12590
|
apiUrl: string;
|
|
12281
12591
|
shortCode: string;
|
|
12282
12592
|
}, {
|
|
12283
12593
|
envId: string;
|
|
12594
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12595
|
+
orgId: string;
|
|
12596
|
+
projectId: string;
|
|
12284
12597
|
imageTag: string;
|
|
12285
12598
|
apiKey: string;
|
|
12286
12599
|
apiUrl: string;
|
|
@@ -12324,59 +12637,64 @@ declare const PlatformToProviderMessages: {
|
|
|
12324
12637
|
success: true;
|
|
12325
12638
|
}>]>;
|
|
12326
12639
|
};
|
|
12327
|
-
|
|
12640
|
+
RESTORE: {
|
|
12328
12641
|
message: z.ZodObject<{
|
|
12329
12642
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12330
|
-
|
|
12643
|
+
type: z.ZodEnum<["DOCKER", "KUBERNETES"]>;
|
|
12644
|
+
location: z.ZodString;
|
|
12645
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
12646
|
+
imageRef: z.ZodString;
|
|
12331
12647
|
machine: z.ZodObject<{
|
|
12332
|
-
|
|
12333
|
-
|
|
12648
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12649
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
12650
|
+
memory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
12334
12651
|
}, "strip", z.ZodTypeAny, {
|
|
12335
|
-
|
|
12336
|
-
|
|
12652
|
+
version: "v1";
|
|
12653
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
12654
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
12337
12655
|
}, {
|
|
12338
|
-
|
|
12339
|
-
|
|
12656
|
+
version?: "v1" | undefined;
|
|
12657
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
12658
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
12340
12659
|
}>;
|
|
12341
|
-
}, "strip", z.ZodTypeAny, {
|
|
12342
|
-
name: string;
|
|
12343
|
-
version: "v1";
|
|
12344
|
-
machine: {
|
|
12345
|
-
cpu?: string | undefined;
|
|
12346
|
-
memory?: string | undefined;
|
|
12347
|
-
};
|
|
12348
|
-
}, {
|
|
12349
|
-
name: string;
|
|
12350
|
-
machine: {
|
|
12351
|
-
cpu?: string | undefined;
|
|
12352
|
-
memory?: string | undefined;
|
|
12353
|
-
};
|
|
12354
|
-
version?: "v1" | undefined;
|
|
12355
|
-
}>;
|
|
12356
|
-
};
|
|
12357
|
-
RESTORE: {
|
|
12358
|
-
message: z.ZodObject<{
|
|
12359
|
-
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12360
12660
|
checkpointId: z.ZodString;
|
|
12661
|
+
envId: z.ZodString;
|
|
12662
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
12663
|
+
orgId: z.ZodString;
|
|
12664
|
+
projectId: z.ZodString;
|
|
12361
12665
|
runId: z.ZodString;
|
|
12362
|
-
type: z.ZodEnum<["DOCKER", "KUBERNETES"]>;
|
|
12363
|
-
location: z.ZodString;
|
|
12364
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
12365
|
-
imageRef: z.ZodString;
|
|
12366
12666
|
}, "strip", z.ZodTypeAny, {
|
|
12367
12667
|
type: "DOCKER" | "KUBERNETES";
|
|
12368
12668
|
version: "v1";
|
|
12669
|
+
machine: {
|
|
12670
|
+
version: "v1";
|
|
12671
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
12672
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
12673
|
+
};
|
|
12674
|
+
envId: string;
|
|
12675
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12676
|
+
orgId: string;
|
|
12677
|
+
projectId: string;
|
|
12369
12678
|
runId: string;
|
|
12370
|
-
checkpointId: string;
|
|
12371
12679
|
location: string;
|
|
12372
12680
|
imageRef: string;
|
|
12681
|
+
checkpointId: string;
|
|
12373
12682
|
reason?: string | undefined;
|
|
12374
12683
|
}, {
|
|
12375
12684
|
type: "DOCKER" | "KUBERNETES";
|
|
12685
|
+
machine: {
|
|
12686
|
+
version?: "v1" | undefined;
|
|
12687
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
12688
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
12689
|
+
};
|
|
12690
|
+
envId: string;
|
|
12691
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12692
|
+
orgId: string;
|
|
12693
|
+
projectId: string;
|
|
12376
12694
|
runId: string;
|
|
12377
|
-
checkpointId: string;
|
|
12378
12695
|
location: string;
|
|
12379
12696
|
imageRef: string;
|
|
12697
|
+
checkpointId: string;
|
|
12380
12698
|
version?: "v1" | undefined;
|
|
12381
12699
|
reason?: string | undefined;
|
|
12382
12700
|
}>;
|
|
@@ -12647,6 +12965,19 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12647
12965
|
maxTimeoutInMs?: number | undefined;
|
|
12648
12966
|
randomize?: boolean | undefined;
|
|
12649
12967
|
}>>;
|
|
12968
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
12969
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
12970
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
12971
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
12972
|
+
}, "strip", z.ZodTypeAny, {
|
|
12973
|
+
version?: "v1" | undefined;
|
|
12974
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
12975
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
12976
|
+
}, {
|
|
12977
|
+
version?: "v1" | undefined;
|
|
12978
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
12979
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
12980
|
+
}>>;
|
|
12650
12981
|
}, "strip", z.ZodTypeAny, {
|
|
12651
12982
|
id: string;
|
|
12652
12983
|
filePath: string;
|
|
@@ -12695,6 +13026,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12695
13026
|
maxTimeoutInMs?: number | undefined;
|
|
12696
13027
|
randomize?: boolean | undefined;
|
|
12697
13028
|
} | undefined;
|
|
13029
|
+
machine?: {
|
|
13030
|
+
version?: "v1" | undefined;
|
|
13031
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
13032
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13033
|
+
} | undefined;
|
|
12698
13034
|
}, {
|
|
12699
13035
|
id: string;
|
|
12700
13036
|
filePath: string;
|
|
@@ -12743,6 +13079,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12743
13079
|
maxTimeoutInMs?: number | undefined;
|
|
12744
13080
|
randomize?: boolean | undefined;
|
|
12745
13081
|
} | undefined;
|
|
13082
|
+
machine?: {
|
|
13083
|
+
version?: "v1" | undefined;
|
|
13084
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
13085
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13086
|
+
} | undefined;
|
|
12746
13087
|
}>, "many">;
|
|
12747
13088
|
}, "strip", z.ZodTypeAny, {
|
|
12748
13089
|
contentHash: string;
|
|
@@ -12795,6 +13136,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12795
13136
|
maxTimeoutInMs?: number | undefined;
|
|
12796
13137
|
randomize?: boolean | undefined;
|
|
12797
13138
|
} | undefined;
|
|
13139
|
+
machine?: {
|
|
13140
|
+
version?: "v1" | undefined;
|
|
13141
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
13142
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13143
|
+
} | undefined;
|
|
12798
13144
|
}[];
|
|
12799
13145
|
cliPackageVersion?: string | undefined;
|
|
12800
13146
|
}, {
|
|
@@ -12848,6 +13194,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12848
13194
|
maxTimeoutInMs?: number | undefined;
|
|
12849
13195
|
randomize?: boolean | undefined;
|
|
12850
13196
|
} | undefined;
|
|
13197
|
+
machine?: {
|
|
13198
|
+
version?: "v1" | undefined;
|
|
13199
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
13200
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13201
|
+
} | undefined;
|
|
12851
13202
|
}[];
|
|
12852
13203
|
cliPackageVersion?: string | undefined;
|
|
12853
13204
|
}>;
|
|
@@ -12905,6 +13256,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12905
13256
|
maxTimeoutInMs?: number | undefined;
|
|
12906
13257
|
randomize?: boolean | undefined;
|
|
12907
13258
|
} | undefined;
|
|
13259
|
+
machine?: {
|
|
13260
|
+
version?: "v1" | undefined;
|
|
13261
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
13262
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13263
|
+
} | undefined;
|
|
12908
13264
|
}[];
|
|
12909
13265
|
cliPackageVersion?: string | undefined;
|
|
12910
13266
|
};
|
|
@@ -12963,6 +13319,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12963
13319
|
maxTimeoutInMs?: number | undefined;
|
|
12964
13320
|
randomize?: boolean | undefined;
|
|
12965
13321
|
} | undefined;
|
|
13322
|
+
machine?: {
|
|
13323
|
+
version?: "v1" | undefined;
|
|
13324
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
13325
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13326
|
+
} | undefined;
|
|
12966
13327
|
}[];
|
|
12967
13328
|
cliPackageVersion?: string | undefined;
|
|
12968
13329
|
};
|
|
@@ -13133,12 +13494,12 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13133
13494
|
version: z.ZodString;
|
|
13134
13495
|
}, "strip", z.ZodTypeAny, {
|
|
13135
13496
|
id: string;
|
|
13136
|
-
contentHash: string;
|
|
13137
13497
|
version: string;
|
|
13498
|
+
contentHash: string;
|
|
13138
13499
|
}, {
|
|
13139
13500
|
id: string;
|
|
13140
|
-
contentHash: string;
|
|
13141
13501
|
version: string;
|
|
13502
|
+
contentHash: string;
|
|
13142
13503
|
}>;
|
|
13143
13504
|
}, "strip", z.ZodTypeAny, {
|
|
13144
13505
|
queue: {
|
|
@@ -13185,8 +13546,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13185
13546
|
};
|
|
13186
13547
|
worker: {
|
|
13187
13548
|
id: string;
|
|
13188
|
-
contentHash: string;
|
|
13189
13549
|
version: string;
|
|
13550
|
+
contentHash: string;
|
|
13190
13551
|
};
|
|
13191
13552
|
batch?: {
|
|
13192
13553
|
id: string;
|
|
@@ -13236,8 +13597,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13236
13597
|
};
|
|
13237
13598
|
worker: {
|
|
13238
13599
|
id: string;
|
|
13239
|
-
contentHash: string;
|
|
13240
13600
|
version: string;
|
|
13601
|
+
contentHash: string;
|
|
13241
13602
|
};
|
|
13242
13603
|
batch?: {
|
|
13243
13604
|
id: string;
|
|
@@ -13291,8 +13652,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13291
13652
|
};
|
|
13292
13653
|
worker: {
|
|
13293
13654
|
id: string;
|
|
13294
|
-
contentHash: string;
|
|
13295
13655
|
version: string;
|
|
13656
|
+
contentHash: string;
|
|
13296
13657
|
};
|
|
13297
13658
|
batch?: {
|
|
13298
13659
|
id: string;
|
|
@@ -13346,8 +13707,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13346
13707
|
};
|
|
13347
13708
|
worker: {
|
|
13348
13709
|
id: string;
|
|
13349
|
-
contentHash: string;
|
|
13350
13710
|
version: string;
|
|
13711
|
+
contentHash: string;
|
|
13351
13712
|
};
|
|
13352
13713
|
batch?: {
|
|
13353
13714
|
id: string;
|
|
@@ -13403,8 +13764,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13403
13764
|
};
|
|
13404
13765
|
worker: {
|
|
13405
13766
|
id: string;
|
|
13406
|
-
contentHash: string;
|
|
13407
13767
|
version: string;
|
|
13768
|
+
contentHash: string;
|
|
13408
13769
|
};
|
|
13409
13770
|
batch?: {
|
|
13410
13771
|
id: string;
|
|
@@ -13461,8 +13822,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13461
13822
|
};
|
|
13462
13823
|
worker: {
|
|
13463
13824
|
id: string;
|
|
13464
|
-
contentHash: string;
|
|
13465
13825
|
version: string;
|
|
13826
|
+
contentHash: string;
|
|
13466
13827
|
};
|
|
13467
13828
|
batch?: {
|
|
13468
13829
|
id: string;
|
|
@@ -13618,12 +13979,12 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13618
13979
|
version: z.ZodString;
|
|
13619
13980
|
}, "strip", z.ZodTypeAny, {
|
|
13620
13981
|
id: string;
|
|
13621
|
-
contentHash: string;
|
|
13622
13982
|
version: string;
|
|
13983
|
+
contentHash: string;
|
|
13623
13984
|
}, {
|
|
13624
13985
|
id: string;
|
|
13625
|
-
contentHash: string;
|
|
13626
13986
|
version: string;
|
|
13987
|
+
contentHash: string;
|
|
13627
13988
|
}>;
|
|
13628
13989
|
}, "strip", z.ZodTypeAny, {
|
|
13629
13990
|
queue: {
|
|
@@ -13670,8 +14031,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13670
14031
|
};
|
|
13671
14032
|
worker: {
|
|
13672
14033
|
id: string;
|
|
13673
|
-
contentHash: string;
|
|
13674
14034
|
version: string;
|
|
14035
|
+
contentHash: string;
|
|
13675
14036
|
};
|
|
13676
14037
|
batch?: {
|
|
13677
14038
|
id: string;
|
|
@@ -13721,8 +14082,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13721
14082
|
};
|
|
13722
14083
|
worker: {
|
|
13723
14084
|
id: string;
|
|
13724
|
-
contentHash: string;
|
|
13725
14085
|
version: string;
|
|
14086
|
+
contentHash: string;
|
|
13726
14087
|
};
|
|
13727
14088
|
batch?: {
|
|
13728
14089
|
id: string;
|
|
@@ -13868,6 +14229,7 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13868
14229
|
docker: boolean;
|
|
13869
14230
|
}>>;
|
|
13870
14231
|
}, "strip", z.ZodTypeAny, {
|
|
14232
|
+
version: "v1";
|
|
13871
14233
|
execution: {
|
|
13872
14234
|
queue: {
|
|
13873
14235
|
name: string;
|
|
@@ -13913,14 +14275,13 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13913
14275
|
};
|
|
13914
14276
|
worker: {
|
|
13915
14277
|
id: string;
|
|
13916
|
-
contentHash: string;
|
|
13917
14278
|
version: string;
|
|
14279
|
+
contentHash: string;
|
|
13918
14280
|
};
|
|
13919
14281
|
batch?: {
|
|
13920
14282
|
id: string;
|
|
13921
14283
|
} | undefined;
|
|
13922
14284
|
};
|
|
13923
|
-
version: "v1";
|
|
13924
14285
|
completion: {
|
|
13925
14286
|
error: {
|
|
13926
14287
|
name: string;
|
|
@@ -14002,8 +14363,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
14002
14363
|
};
|
|
14003
14364
|
worker: {
|
|
14004
14365
|
id: string;
|
|
14005
|
-
contentHash: string;
|
|
14006
14366
|
version: string;
|
|
14367
|
+
contentHash: string;
|
|
14007
14368
|
};
|
|
14008
14369
|
batch?: {
|
|
14009
14370
|
id: string;
|
|
@@ -15122,6 +15483,7 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15122
15483
|
}>;
|
|
15123
15484
|
}, "strip", z.ZodTypeAny, {
|
|
15124
15485
|
type: "TASK_RUN_COMPLETED";
|
|
15486
|
+
version: "v1";
|
|
15125
15487
|
execution: {
|
|
15126
15488
|
queue: {
|
|
15127
15489
|
name: string;
|
|
@@ -15169,7 +15531,6 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15169
15531
|
id: string;
|
|
15170
15532
|
} | undefined;
|
|
15171
15533
|
};
|
|
15172
|
-
version: "v1";
|
|
15173
15534
|
completion: {
|
|
15174
15535
|
error: {
|
|
15175
15536
|
name: string;
|
|
@@ -15298,6 +15659,7 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15298
15659
|
}, "strip", z.ZodTypeAny, {
|
|
15299
15660
|
data: {
|
|
15300
15661
|
type: "TASK_RUN_COMPLETED";
|
|
15662
|
+
version: "v1";
|
|
15301
15663
|
execution: {
|
|
15302
15664
|
queue: {
|
|
15303
15665
|
name: string;
|
|
@@ -15345,7 +15707,6 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15345
15707
|
id: string;
|
|
15346
15708
|
} | undefined;
|
|
15347
15709
|
};
|
|
15348
|
-
version: "v1";
|
|
15349
15710
|
completion: {
|
|
15350
15711
|
error: {
|
|
15351
15712
|
name: string;
|
|
@@ -15932,24 +16293,56 @@ declare const SharedQueueToClientMessages: {
|
|
|
15932
16293
|
taskRunId: string;
|
|
15933
16294
|
}>, z.ZodObject<{
|
|
15934
16295
|
type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
|
|
15935
|
-
id: z.ZodString;
|
|
15936
16296
|
image: z.ZodString;
|
|
16297
|
+
version: z.ZodString;
|
|
16298
|
+
machine: z.ZodObject<{
|
|
16299
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16300
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
16301
|
+
memory: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
16302
|
+
}, "strip", z.ZodTypeAny, {
|
|
16303
|
+
version: "v1";
|
|
16304
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
16305
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
16306
|
+
}, {
|
|
16307
|
+
version?: "v1" | undefined;
|
|
16308
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16309
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16310
|
+
}>;
|
|
16311
|
+
id: z.ZodString;
|
|
15937
16312
|
envId: z.ZodString;
|
|
16313
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
16314
|
+
orgId: z.ZodString;
|
|
16315
|
+
projectId: z.ZodString;
|
|
15938
16316
|
runId: z.ZodString;
|
|
15939
|
-
version: z.ZodString;
|
|
15940
16317
|
}, "strip", z.ZodTypeAny, {
|
|
15941
16318
|
type: "SCHEDULE_ATTEMPT";
|
|
15942
16319
|
id: string;
|
|
15943
16320
|
version: string;
|
|
15944
16321
|
image: string;
|
|
16322
|
+
machine: {
|
|
16323
|
+
version: "v1";
|
|
16324
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
16325
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
16326
|
+
};
|
|
15945
16327
|
envId: string;
|
|
16328
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16329
|
+
orgId: string;
|
|
16330
|
+
projectId: string;
|
|
15946
16331
|
runId: string;
|
|
15947
16332
|
}, {
|
|
15948
16333
|
type: "SCHEDULE_ATTEMPT";
|
|
15949
16334
|
id: string;
|
|
15950
16335
|
version: string;
|
|
15951
16336
|
image: string;
|
|
16337
|
+
machine: {
|
|
16338
|
+
version?: "v1" | undefined;
|
|
16339
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16340
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16341
|
+
};
|
|
15952
16342
|
envId: string;
|
|
16343
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16344
|
+
orgId: string;
|
|
16345
|
+
projectId: string;
|
|
15953
16346
|
runId: string;
|
|
15954
16347
|
}>]>;
|
|
15955
16348
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16015,7 +16408,15 @@ declare const SharedQueueToClientMessages: {
|
|
|
16015
16408
|
id: string;
|
|
16016
16409
|
version: string;
|
|
16017
16410
|
image: string;
|
|
16411
|
+
machine: {
|
|
16412
|
+
version: "v1";
|
|
16413
|
+
cpu: 1 | 2 | 4 | 0.25 | 0.5;
|
|
16414
|
+
memory: 1 | 2 | 4 | 0.25 | 0.5 | 8;
|
|
16415
|
+
};
|
|
16018
16416
|
envId: string;
|
|
16417
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16418
|
+
orgId: string;
|
|
16419
|
+
projectId: string;
|
|
16019
16420
|
runId: string;
|
|
16020
16421
|
};
|
|
16021
16422
|
backgroundWorkerId: string;
|
|
@@ -16083,7 +16484,15 @@ declare const SharedQueueToClientMessages: {
|
|
|
16083
16484
|
id: string;
|
|
16084
16485
|
version: string;
|
|
16085
16486
|
image: string;
|
|
16487
|
+
machine: {
|
|
16488
|
+
version?: "v1" | undefined;
|
|
16489
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16490
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16491
|
+
};
|
|
16086
16492
|
envId: string;
|
|
16493
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16494
|
+
orgId: string;
|
|
16495
|
+
projectId: string;
|
|
16087
16496
|
runId: string;
|
|
16088
16497
|
};
|
|
16089
16498
|
backgroundWorkerId: string;
|
|
@@ -16317,6 +16726,19 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16317
16726
|
maxTimeoutInMs?: number | undefined;
|
|
16318
16727
|
randomize?: boolean | undefined;
|
|
16319
16728
|
}>>;
|
|
16729
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
16730
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
16731
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
16732
|
+
memory: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>>;
|
|
16733
|
+
}, "strip", z.ZodTypeAny, {
|
|
16734
|
+
version?: "v1" | undefined;
|
|
16735
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16736
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16737
|
+
}, {
|
|
16738
|
+
version?: "v1" | undefined;
|
|
16739
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16740
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16741
|
+
}>>;
|
|
16320
16742
|
}, "strip", z.ZodTypeAny, {
|
|
16321
16743
|
id: string;
|
|
16322
16744
|
filePath: string;
|
|
@@ -16365,6 +16787,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16365
16787
|
maxTimeoutInMs?: number | undefined;
|
|
16366
16788
|
randomize?: boolean | undefined;
|
|
16367
16789
|
} | undefined;
|
|
16790
|
+
machine?: {
|
|
16791
|
+
version?: "v1" | undefined;
|
|
16792
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16793
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16794
|
+
} | undefined;
|
|
16368
16795
|
}, {
|
|
16369
16796
|
id: string;
|
|
16370
16797
|
filePath: string;
|
|
@@ -16413,6 +16840,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16413
16840
|
maxTimeoutInMs?: number | undefined;
|
|
16414
16841
|
randomize?: boolean | undefined;
|
|
16415
16842
|
} | undefined;
|
|
16843
|
+
machine?: {
|
|
16844
|
+
version?: "v1" | undefined;
|
|
16845
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16846
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16847
|
+
} | undefined;
|
|
16416
16848
|
}>, "many">;
|
|
16417
16849
|
packageVersion: z.ZodString;
|
|
16418
16850
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16466,6 +16898,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16466
16898
|
maxTimeoutInMs?: number | undefined;
|
|
16467
16899
|
randomize?: boolean | undefined;
|
|
16468
16900
|
} | undefined;
|
|
16901
|
+
machine?: {
|
|
16902
|
+
version?: "v1" | undefined;
|
|
16903
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16904
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16905
|
+
} | undefined;
|
|
16469
16906
|
}[];
|
|
16470
16907
|
deploymentId: string;
|
|
16471
16908
|
}, {
|
|
@@ -16518,6 +16955,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16518
16955
|
maxTimeoutInMs?: number | undefined;
|
|
16519
16956
|
randomize?: boolean | undefined;
|
|
16520
16957
|
} | undefined;
|
|
16958
|
+
machine?: {
|
|
16959
|
+
version?: "v1" | undefined;
|
|
16960
|
+
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
16961
|
+
memory?: 1 | 2 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16962
|
+
} | undefined;
|
|
16521
16963
|
}[];
|
|
16522
16964
|
deploymentId: string;
|
|
16523
16965
|
version?: "v1" | undefined;
|
|
@@ -16725,12 +17167,12 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16725
17167
|
version: z.ZodString;
|
|
16726
17168
|
}, "strip", z.ZodTypeAny, {
|
|
16727
17169
|
id: string;
|
|
16728
|
-
contentHash: string;
|
|
16729
17170
|
version: string;
|
|
17171
|
+
contentHash: string;
|
|
16730
17172
|
}, {
|
|
16731
17173
|
id: string;
|
|
16732
|
-
contentHash: string;
|
|
16733
17174
|
version: string;
|
|
17175
|
+
contentHash: string;
|
|
16734
17176
|
}>;
|
|
16735
17177
|
}, "strip", z.ZodTypeAny, {
|
|
16736
17178
|
queue: {
|
|
@@ -16777,8 +17219,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16777
17219
|
};
|
|
16778
17220
|
worker: {
|
|
16779
17221
|
id: string;
|
|
16780
|
-
contentHash: string;
|
|
16781
17222
|
version: string;
|
|
17223
|
+
contentHash: string;
|
|
16782
17224
|
};
|
|
16783
17225
|
batch?: {
|
|
16784
17226
|
id: string;
|
|
@@ -16828,8 +17270,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16828
17270
|
};
|
|
16829
17271
|
worker: {
|
|
16830
17272
|
id: string;
|
|
16831
|
-
contentHash: string;
|
|
16832
17273
|
version: string;
|
|
17274
|
+
contentHash: string;
|
|
16833
17275
|
};
|
|
16834
17276
|
batch?: {
|
|
16835
17277
|
id: string;
|
|
@@ -16965,6 +17407,7 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16965
17407
|
skippedRetrying?: boolean | undefined;
|
|
16966
17408
|
}>]>;
|
|
16967
17409
|
}, "strip", z.ZodTypeAny, {
|
|
17410
|
+
version: "v1";
|
|
16968
17411
|
execution: {
|
|
16969
17412
|
queue: {
|
|
16970
17413
|
name: string;
|
|
@@ -17010,14 +17453,13 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
17010
17453
|
};
|
|
17011
17454
|
worker: {
|
|
17012
17455
|
id: string;
|
|
17013
|
-
contentHash: string;
|
|
17014
17456
|
version: string;
|
|
17457
|
+
contentHash: string;
|
|
17015
17458
|
};
|
|
17016
17459
|
batch?: {
|
|
17017
17460
|
id: string;
|
|
17018
17461
|
} | undefined;
|
|
17019
17462
|
};
|
|
17020
|
-
version: "v1";
|
|
17021
17463
|
completion: {
|
|
17022
17464
|
error: {
|
|
17023
17465
|
name: string;
|
|
@@ -17095,8 +17537,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
17095
17537
|
};
|
|
17096
17538
|
worker: {
|
|
17097
17539
|
id: string;
|
|
17098
|
-
contentHash: string;
|
|
17099
17540
|
version: string;
|
|
17541
|
+
contentHash: string;
|
|
17100
17542
|
};
|
|
17101
17543
|
batch?: {
|
|
17102
17544
|
id: string;
|
|
@@ -17907,12 +18349,12 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17907
18349
|
version: z.ZodString;
|
|
17908
18350
|
}, "strip", z.ZodTypeAny, {
|
|
17909
18351
|
id: string;
|
|
17910
|
-
contentHash: string;
|
|
17911
18352
|
version: string;
|
|
18353
|
+
contentHash: string;
|
|
17912
18354
|
}, {
|
|
17913
18355
|
id: string;
|
|
17914
|
-
contentHash: string;
|
|
17915
18356
|
version: string;
|
|
18357
|
+
contentHash: string;
|
|
17916
18358
|
}>;
|
|
17917
18359
|
}, "strip", z.ZodTypeAny, {
|
|
17918
18360
|
queue: {
|
|
@@ -17959,8 +18401,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17959
18401
|
};
|
|
17960
18402
|
worker: {
|
|
17961
18403
|
id: string;
|
|
17962
|
-
contentHash: string;
|
|
17963
18404
|
version: string;
|
|
18405
|
+
contentHash: string;
|
|
17964
18406
|
};
|
|
17965
18407
|
batch?: {
|
|
17966
18408
|
id: string;
|
|
@@ -18010,8 +18452,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18010
18452
|
};
|
|
18011
18453
|
worker: {
|
|
18012
18454
|
id: string;
|
|
18013
|
-
contentHash: string;
|
|
18014
18455
|
version: string;
|
|
18456
|
+
contentHash: string;
|
|
18015
18457
|
};
|
|
18016
18458
|
batch?: {
|
|
18017
18459
|
id: string;
|
|
@@ -18065,8 +18507,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18065
18507
|
};
|
|
18066
18508
|
worker: {
|
|
18067
18509
|
id: string;
|
|
18068
|
-
contentHash: string;
|
|
18069
18510
|
version: string;
|
|
18511
|
+
contentHash: string;
|
|
18070
18512
|
};
|
|
18071
18513
|
batch?: {
|
|
18072
18514
|
id: string;
|
|
@@ -18120,8 +18562,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18120
18562
|
};
|
|
18121
18563
|
worker: {
|
|
18122
18564
|
id: string;
|
|
18123
|
-
contentHash: string;
|
|
18124
18565
|
version: string;
|
|
18566
|
+
contentHash: string;
|
|
18125
18567
|
};
|
|
18126
18568
|
batch?: {
|
|
18127
18569
|
id: string;
|
|
@@ -18178,8 +18620,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18178
18620
|
};
|
|
18179
18621
|
worker: {
|
|
18180
18622
|
id: string;
|
|
18181
|
-
contentHash: string;
|
|
18182
18623
|
version: string;
|
|
18624
|
+
contentHash: string;
|
|
18183
18625
|
};
|
|
18184
18626
|
batch?: {
|
|
18185
18627
|
id: string;
|
|
@@ -18235,8 +18677,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18235
18677
|
};
|
|
18236
18678
|
worker: {
|
|
18237
18679
|
id: string;
|
|
18238
|
-
contentHash: string;
|
|
18239
18680
|
version: string;
|
|
18681
|
+
contentHash: string;
|
|
18240
18682
|
};
|
|
18241
18683
|
batch?: {
|
|
18242
18684
|
id: string;
|
|
@@ -19169,13 +19611,13 @@ declare const SpanMessagingEvent: z.ZodObject<{
|
|
|
19169
19611
|
message: z.ZodAny;
|
|
19170
19612
|
destination: z.ZodOptional<z.ZodString>;
|
|
19171
19613
|
}, "strip", z.ZodTypeAny, {
|
|
19172
|
-
operation: "
|
|
19614
|
+
operation: "create" | "publish" | "receive" | "deliver";
|
|
19173
19615
|
system?: string | undefined;
|
|
19174
19616
|
client_id?: string | undefined;
|
|
19175
19617
|
message?: any;
|
|
19176
19618
|
destination?: string | undefined;
|
|
19177
19619
|
}, {
|
|
19178
|
-
operation: "
|
|
19620
|
+
operation: "create" | "publish" | "receive" | "deliver";
|
|
19179
19621
|
system?: string | undefined;
|
|
19180
19622
|
client_id?: string | undefined;
|
|
19181
19623
|
message?: any;
|
|
@@ -19304,7 +19746,8 @@ declare class ZodSocketMessageSender<TMessageCatalog extends ZodSocketMessageCat
|
|
|
19304
19746
|
type ZodSocket<TListenEvents extends ZodSocketMessageCatalogSchema, TEmitEvents extends ZodSocketMessageCatalogSchema> = Socket<ZodMessageCatalogToSocketIoEvents<TListenEvents>, ZodMessageCatalogToSocketIoEvents<TEmitEvents>>;
|
|
19305
19747
|
interface ZodSocketConnectionOptions<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema> {
|
|
19306
19748
|
host: string;
|
|
19307
|
-
port
|
|
19749
|
+
port?: number;
|
|
19750
|
+
secure?: boolean;
|
|
19308
19751
|
namespace: string;
|
|
19309
19752
|
clientMessages: TClientMessages;
|
|
19310
19753
|
serverMessages: TServerMessages;
|
|
@@ -19536,19 +19979,11 @@ declare class TriggerTracer {
|
|
|
19536
19979
|
startSpan(name: string, options?: SpanOptions, ctx?: Context$1): Span;
|
|
19537
19980
|
}
|
|
19538
19981
|
|
|
19539
|
-
type PreciseDateOrigin = {
|
|
19540
|
-
hrtime: [number, number];
|
|
19541
|
-
timestamp: PreciseDate;
|
|
19542
|
-
};
|
|
19543
|
-
declare function preciseDateOriginNow(): PreciseDateOrigin;
|
|
19544
|
-
declare function calculatePreciseDateHrTime(origin: PreciseDateOrigin): [number, number];
|
|
19545
|
-
|
|
19546
19982
|
type LogLevel = "log" | "error" | "warn" | "info" | "debug";
|
|
19547
19983
|
type TaskLoggerConfig = {
|
|
19548
19984
|
logger: Logger;
|
|
19549
19985
|
tracer: TriggerTracer;
|
|
19550
19986
|
level: LogLevel;
|
|
19551
|
-
preciseDateOrigin: PreciseDateOrigin;
|
|
19552
19987
|
};
|
|
19553
19988
|
interface TaskLogger {
|
|
19554
19989
|
debug(message: string, properties?: Record<string, unknown>): void;
|
|
@@ -19589,6 +20024,25 @@ declare class LoggerAPI implements TaskLogger {
|
|
|
19589
20024
|
/** Entrypoint for logger API */
|
|
19590
20025
|
declare const logger: LoggerAPI;
|
|
19591
20026
|
|
|
20027
|
+
type ClockTime = [number, number];
|
|
20028
|
+
interface Clock {
|
|
20029
|
+
preciseNow(): ClockTime;
|
|
20030
|
+
reset(): void;
|
|
20031
|
+
}
|
|
20032
|
+
|
|
20033
|
+
declare class ClockAPI {
|
|
20034
|
+
#private;
|
|
20035
|
+
private static _instance?;
|
|
20036
|
+
private constructor();
|
|
20037
|
+
static getInstance(): ClockAPI;
|
|
20038
|
+
setGlobalClock(clock: Clock): boolean;
|
|
20039
|
+
preciseNow(): ClockTime;
|
|
20040
|
+
reset(): void;
|
|
20041
|
+
}
|
|
20042
|
+
|
|
20043
|
+
/** Entrypoint for clock API */
|
|
20044
|
+
declare const clock: ClockAPI;
|
|
20045
|
+
|
|
19592
20046
|
declare const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 256;
|
|
19593
20047
|
declare const OTEL_LOG_ATTRIBUTE_COUNT_LIMIT = 256;
|
|
19594
20048
|
declare const OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT = 1028;
|
|
@@ -19714,8 +20168,12 @@ declare class DevRuntimeManager implements RuntimeManager {
|
|
|
19714
20168
|
resumeTask(completion: TaskRunExecutionResult, execution: TaskRunExecution): void;
|
|
19715
20169
|
}
|
|
19716
20170
|
|
|
20171
|
+
type ProdRuntimeManagerOptions = {
|
|
20172
|
+
waitThresholdInMs?: number;
|
|
20173
|
+
};
|
|
19717
20174
|
declare class ProdRuntimeManager implements RuntimeManager {
|
|
19718
20175
|
private ipc;
|
|
20176
|
+
private options;
|
|
19719
20177
|
_taskWaits: Map<string, {
|
|
19720
20178
|
resolve: (value: TaskRunExecutionResult) => void;
|
|
19721
20179
|
reject: (err?: any) => void;
|
|
@@ -19725,11 +20183,11 @@ declare class ProdRuntimeManager implements RuntimeManager {
|
|
|
19725
20183
|
reject: (err?: any) => void;
|
|
19726
20184
|
}>;
|
|
19727
20185
|
_waitForRestore: {
|
|
19728
|
-
resolve: (value
|
|
20186
|
+
resolve: (value: "restore") => void;
|
|
19729
20187
|
reject: (err?: any) => void;
|
|
19730
20188
|
} | undefined;
|
|
19731
20189
|
_tasks: Map<string, TaskMetadataWithFilePath>;
|
|
19732
|
-
constructor(ipc: ZodIpcConnection<typeof ProdWorkerToChildMessages, typeof ProdChildToWorkerMessages
|
|
20190
|
+
constructor(ipc: ZodIpcConnection<typeof ProdWorkerToChildMessages, typeof ProdChildToWorkerMessages>, options?: ProdRuntimeManagerOptions);
|
|
19733
20191
|
disable(): void;
|
|
19734
20192
|
registerTasks(tasks: TaskMetadataWithFilePath[]): void;
|
|
19735
20193
|
getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
|
|
@@ -19746,13 +20204,25 @@ declare class ProdRuntimeManager implements RuntimeManager {
|
|
|
19746
20204
|
ctx: TaskRunContext;
|
|
19747
20205
|
}): Promise<BatchTaskRunExecutionResult>;
|
|
19748
20206
|
resumeTask(completion: TaskRunExecutionResult, execution: TaskRunExecution): void;
|
|
20207
|
+
private get waitThresholdInMs();
|
|
20208
|
+
}
|
|
20209
|
+
|
|
20210
|
+
type PreciseWallClockOptions = {
|
|
20211
|
+
origin?: ClockTime;
|
|
20212
|
+
now?: PreciseDate;
|
|
20213
|
+
};
|
|
20214
|
+
declare class PreciseWallClock implements Clock {
|
|
20215
|
+
#private;
|
|
20216
|
+
private _origin;
|
|
20217
|
+
constructor(options?: PreciseWallClockOptions);
|
|
20218
|
+
preciseNow(): [number, number];
|
|
20219
|
+
reset(): void;
|
|
19749
20220
|
}
|
|
19750
20221
|
|
|
19751
20222
|
declare class ConsoleInterceptor {
|
|
19752
20223
|
#private;
|
|
19753
20224
|
private readonly logger;
|
|
19754
|
-
|
|
19755
|
-
constructor(logger: logsAPI.Logger, preciseDateOrigin: PreciseDateOrigin);
|
|
20225
|
+
constructor(logger: logsAPI.Logger);
|
|
19756
20226
|
intercept<T>(console: Console, callback: () => Promise<T>): Promise<T>;
|
|
19757
20227
|
log(...args: unknown[]): void;
|
|
19758
20228
|
info(...args: unknown[]): void;
|
|
@@ -19837,17 +20307,17 @@ type IOPacket = {
|
|
|
19837
20307
|
data?: string | undefined;
|
|
19838
20308
|
dataType: string;
|
|
19839
20309
|
};
|
|
19840
|
-
declare function parsePacket(value: IOPacket): any
|
|
19841
|
-
declare function stringifyIO(value: any): IOPacket
|
|
20310
|
+
declare function parsePacket(value: IOPacket): Promise<any>;
|
|
20311
|
+
declare function stringifyIO(value: any): Promise<IOPacket>;
|
|
19842
20312
|
declare function conditionallyExportPacket(packet: IOPacket, pathPrefix: string, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
19843
20313
|
declare function packetRequiresOffloading(packet: IOPacket): {
|
|
19844
20314
|
needsOffloading: boolean;
|
|
19845
20315
|
size: number;
|
|
19846
20316
|
};
|
|
19847
20317
|
declare function conditionallyImportPacket(packet: IOPacket, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
19848
|
-
declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataTypeKey: string): Attributes
|
|
19849
|
-
declare function
|
|
19850
|
-
declare function prettyPrintPacket(rawData: any, dataType?: string): string
|
|
20318
|
+
declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataTypeKey: string): Promise<Attributes | undefined>;
|
|
20319
|
+
declare function createPacketAttributesAsJson(data: any, dataType: string): Promise<Attributes>;
|
|
20320
|
+
declare function prettyPrintPacket(rawData: any, dataType?: string): Promise<string>;
|
|
19851
20321
|
|
|
19852
20322
|
declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturnType<{
|
|
19853
20323
|
payload?: any;
|
|
@@ -20046,4 +20516,4 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
20046
20516
|
dependentAttempt?: string | undefined;
|
|
20047
20517
|
}>;
|
|
20048
20518
|
|
|
20049
|
-
export { Accessory, ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, type Context, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DevRuntimeManager, type EventEmitterLike, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, type GetSocketCallbackSchema, type GetSocketMessageSchema, type GetSocketMessagesWithCallback, type GetSocketMessagesWithoutCallback, type HandleErrorArgs, type HandleErrorFnParams, type HandleErrorFunction, type HandleErrorModificationOptions, type HandleErrorResult, type IOPacket, ImageDetailsMetadata, type InferSocketCallbackSchema, type InferSocketMessageSchema, type InitFnParams, type InitOutput, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, LogLevel$1 as LogLevel, Machine, type MessageCatalogToSocketIoEvents, type MessageFromCatalog, type MessageFromSchema, type MessagesFromSocketCatalog, type MiddlewareFnParams, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages,
|
|
20519
|
+
export { Accessory, ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, type Context, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DevRuntimeManager, PreciseWallClock as DurableClock, EnvironmentType, type EventEmitterLike, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, type GetSocketCallbackSchema, type GetSocketMessageSchema, type GetSocketMessagesWithCallback, type GetSocketMessagesWithoutCallback, type HandleErrorArgs, type HandleErrorFnParams, type HandleErrorFunction, type HandleErrorModificationOptions, type HandleErrorResult, type IOPacket, ImageDetailsMetadata, type InferSocketCallbackSchema, type InferSocketMessageSchema, type InitFnParams, type InitOutput, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, LogLevel$1 as LogLevel, Machine, MachineCpu, MachineMemory, type MessageCatalogToSocketIoEvents, type MessageFromCatalog, type MessageFromSchema, type MessagesFromSocketCatalog, type MiddlewareFnParams, OFFLOAD_IO_PACKET_LENGTH_LIMIT, OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT, OTEL_LINK_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_COUNT_LIMIT, OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT, OTEL_SPAN_EVENT_COUNT_LIMIT, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages, PostStartCauses, PreStopCauses, type Prettify, ProdChildToWorkerMessages, ProdRuntimeManager, ProdTaskRunExecution, ProdTaskRunExecutionPayload, ProdWorkerSocketData, ProdWorkerToChildMessages, ProdWorkerToCoordinatorMessages, type ProjectConfig, ProviderToPlatformMessages, QueueOptions, RateLimitOptions, type RequireKeys, type ResolvedConfig, RetryOptions, type RunFnParams, type RuntimeManager, SemanticInternalAttributes, SharedQueueToClientMessages, SimpleStructuredLogger, SlidingWindowRateLimit, type SocketMessageHasCallback, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, type StructuredLogger, type SuccessFnParams, TaskContextSpanProcessor, TaskEventStyle, TaskExecutor, type TaskExecutorOptions, type TaskLogger, TaskMetadata, TaskMetadataWithFilePath, type TaskMetadataWithFunctions, TaskResource, TaskRun, TaskRunBuiltInError, TaskRunContext, TaskRunCustomErrorObject, TaskRunError, TaskRunErrorCodes, TaskRunExecution, TaskRunExecutionAttempt, TaskRunExecutionBatch, TaskRunExecutionEnvironment, TaskRunExecutionOrganization, TaskRunExecutionPayload, TaskRunExecutionProject, TaskRunExecutionQueue, TaskRunExecutionResult, TaskRunExecutionRetry, TaskRunExecutionTask, TaskRunFailedExecutionResult, TaskRunInternalError, TaskRunStringError, TaskRunSuccessfulExecutionResult, TracingSDK, type TriggerOptions, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, UncaughtExceptionMessage, Variant, WaitReason, type WhoAmIResponse, WhoAmIResponseSchema, ZodIpcConnection, type ZodMessageCatalogSchema, type ZodMessageCatalogToSocketIoEvents, ZodMessageHandler, type ZodMessageHandlerOptions, type ZodMessageHandlers, ZodMessageSchema, ZodMessageSender, type ZodMessageSenderOptions, type ZodMessageValueSchema, ZodNamespace, type ZodNamespaceSocket, type ZodSocket, ZodSocketConnection, type ZodSocketMessageCatalogSchema, ZodSocketMessageHandler, type ZodSocketMessageHandlerOptions, type ZodSocketMessageHandlers, ZodSocketMessageSender, type ZodSocketMessageSenderOptions, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculateResetAt, childToWorkerMessages, clientWebsocketMessages, clock, conditionallyExportPacket, conditionallyImportPacket, correctErrorStackTrace, createErrorTaskError, createPacketAttributes, createPacketAttributesAsJson, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, getEnvVar, iconStringForSeverity, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseBatchTriggerTaskRequestBody, parseError, parsePacket, parseTriggerTaskRequestBody, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, serverWebsocketMessages, stringPatternMatchers, stringifyIO, taskContextManager, unflattenAttributes, workerToChildMessages };
|