@trigger.dev/core 0.0.0-v3-canary-20240325172431 → 0.0.0-v3-pnpm-fix-20240404110601
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 +816 -230
- package/dist/v3/index.d.ts +816 -230
- package/dist/v3/index.js +720 -133
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +692 -134
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +37 -25
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +39 -27
- package/dist/v3/otel/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/v3/index.d.ts
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.js';
|
|
14
14
|
import { TracingSDK } from './otel/index.js';
|
|
15
15
|
export { TracingDiagnosticLogLevel, recordSpanException } from './otel/index.js';
|
|
@@ -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?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
408
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
409
|
+
}, {
|
|
410
|
+
version?: "v1" | undefined;
|
|
411
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
412
|
+
memory?: 2 | 1 | 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?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
465
|
+
memory?: 2 | 1 | 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?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
518
|
+
memory?: 2 | 1 | 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?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
575
|
+
memory?: 2 | 1 | 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?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
633
|
+
memory?: 2 | 1 | 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?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
693
|
+
memory?: 2 | 1 | 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?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
754
|
+
memory?: 2 | 1 | 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
|
}>;
|
|
@@ -1735,6 +1778,19 @@ declare const InitializeDeploymentRequestBody: z.ZodObject<{
|
|
|
1735
1778
|
userId?: string | undefined;
|
|
1736
1779
|
}>;
|
|
1737
1780
|
type InitializeDeploymentRequestBody = z.infer<typeof InitializeDeploymentRequestBody>;
|
|
1781
|
+
declare const DeploymentErrorData: z.ZodObject<{
|
|
1782
|
+
name: z.ZodString;
|
|
1783
|
+
message: z.ZodString;
|
|
1784
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
}, "strip", z.ZodTypeAny, {
|
|
1786
|
+
message: string;
|
|
1787
|
+
name: string;
|
|
1788
|
+
stack?: string | undefined;
|
|
1789
|
+
}, {
|
|
1790
|
+
message: string;
|
|
1791
|
+
name: string;
|
|
1792
|
+
stack?: string | undefined;
|
|
1793
|
+
}>;
|
|
1738
1794
|
declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
1739
1795
|
id: z.ZodString;
|
|
1740
1796
|
status: z.ZodEnum<["PENDING", "BUILDING", "DEPLOYING", "DEPLOYED", "FAILED", "CANCELED", "TIMED_OUT"]>;
|
|
@@ -1796,8 +1852,8 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1796
1852
|
}, "strip", z.ZodTypeAny, {
|
|
1797
1853
|
status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
|
|
1798
1854
|
id: string;
|
|
1799
|
-
contentHash: string;
|
|
1800
1855
|
version: string;
|
|
1856
|
+
contentHash: string;
|
|
1801
1857
|
shortCode: string;
|
|
1802
1858
|
imageReference?: string | undefined;
|
|
1803
1859
|
errorData?: {
|
|
@@ -1818,8 +1874,8 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1818
1874
|
}, {
|
|
1819
1875
|
status: "PENDING" | "CANCELED" | "FAILED" | "BUILDING" | "DEPLOYING" | "DEPLOYED" | "TIMED_OUT";
|
|
1820
1876
|
id: string;
|
|
1821
|
-
contentHash: string;
|
|
1822
1877
|
version: string;
|
|
1878
|
+
contentHash: string;
|
|
1823
1879
|
shortCode: string;
|
|
1824
1880
|
imageReference?: string | undefined;
|
|
1825
1881
|
errorData?: {
|
|
@@ -1839,6 +1895,14 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1839
1895
|
} | undefined;
|
|
1840
1896
|
}>;
|
|
1841
1897
|
type GetDeploymentResponseBody = z.infer<typeof GetDeploymentResponseBody>;
|
|
1898
|
+
declare const CreateUploadPayloadUrlResponseBody: z.ZodObject<{
|
|
1899
|
+
presignedUrl: z.ZodString;
|
|
1900
|
+
}, "strip", z.ZodTypeAny, {
|
|
1901
|
+
presignedUrl: string;
|
|
1902
|
+
}, {
|
|
1903
|
+
presignedUrl: string;
|
|
1904
|
+
}>;
|
|
1905
|
+
type CreateUploadPayloadUrlResponseBody = z.infer<typeof CreateUploadPayloadUrlResponseBody>;
|
|
1842
1906
|
|
|
1843
1907
|
declare const TaskResource: z.ZodObject<{
|
|
1844
1908
|
id: z.ZodString;
|
|
@@ -2048,6 +2112,19 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2048
2112
|
maxTimeoutInMs?: number | undefined;
|
|
2049
2113
|
randomize?: boolean | undefined;
|
|
2050
2114
|
}>>;
|
|
2115
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
2116
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
2117
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
2118
|
+
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>]>>>;
|
|
2119
|
+
}, "strip", z.ZodTypeAny, {
|
|
2120
|
+
version?: "v1" | undefined;
|
|
2121
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2122
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2123
|
+
}, {
|
|
2124
|
+
version?: "v1" | undefined;
|
|
2125
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2126
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2127
|
+
}>>;
|
|
2051
2128
|
}, "strip", z.ZodTypeAny, {
|
|
2052
2129
|
id: string;
|
|
2053
2130
|
filePath: string;
|
|
@@ -2096,6 +2173,11 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2096
2173
|
maxTimeoutInMs?: number | undefined;
|
|
2097
2174
|
randomize?: boolean | undefined;
|
|
2098
2175
|
} | undefined;
|
|
2176
|
+
machine?: {
|
|
2177
|
+
version?: "v1" | undefined;
|
|
2178
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2179
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2180
|
+
} | undefined;
|
|
2099
2181
|
}, {
|
|
2100
2182
|
id: string;
|
|
2101
2183
|
filePath: string;
|
|
@@ -2144,6 +2226,11 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2144
2226
|
maxTimeoutInMs?: number | undefined;
|
|
2145
2227
|
randomize?: boolean | undefined;
|
|
2146
2228
|
} | undefined;
|
|
2229
|
+
machine?: {
|
|
2230
|
+
version?: "v1" | undefined;
|
|
2231
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2232
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2233
|
+
} | undefined;
|
|
2147
2234
|
}>;
|
|
2148
2235
|
type TaskResource = z.infer<typeof TaskResource>;
|
|
2149
2236
|
declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
@@ -2358,6 +2445,19 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2358
2445
|
maxTimeoutInMs?: number | undefined;
|
|
2359
2446
|
randomize?: boolean | undefined;
|
|
2360
2447
|
}>>;
|
|
2448
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
2449
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
2450
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
2451
|
+
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>]>>>;
|
|
2452
|
+
}, "strip", z.ZodTypeAny, {
|
|
2453
|
+
version?: "v1" | undefined;
|
|
2454
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2455
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2456
|
+
}, {
|
|
2457
|
+
version?: "v1" | undefined;
|
|
2458
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2459
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2460
|
+
}>>;
|
|
2361
2461
|
}, "strip", z.ZodTypeAny, {
|
|
2362
2462
|
id: string;
|
|
2363
2463
|
filePath: string;
|
|
@@ -2406,6 +2506,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2406
2506
|
maxTimeoutInMs?: number | undefined;
|
|
2407
2507
|
randomize?: boolean | undefined;
|
|
2408
2508
|
} | undefined;
|
|
2509
|
+
machine?: {
|
|
2510
|
+
version?: "v1" | undefined;
|
|
2511
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2512
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2513
|
+
} | undefined;
|
|
2409
2514
|
}, {
|
|
2410
2515
|
id: string;
|
|
2411
2516
|
filePath: string;
|
|
@@ -2454,6 +2559,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2454
2559
|
maxTimeoutInMs?: number | undefined;
|
|
2455
2560
|
randomize?: boolean | undefined;
|
|
2456
2561
|
} | undefined;
|
|
2562
|
+
machine?: {
|
|
2563
|
+
version?: "v1" | undefined;
|
|
2564
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2565
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2566
|
+
} | undefined;
|
|
2457
2567
|
}>, "many">;
|
|
2458
2568
|
}, "strip", z.ZodTypeAny, {
|
|
2459
2569
|
contentHash: string;
|
|
@@ -2506,6 +2616,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2506
2616
|
maxTimeoutInMs?: number | undefined;
|
|
2507
2617
|
randomize?: boolean | undefined;
|
|
2508
2618
|
} | undefined;
|
|
2619
|
+
machine?: {
|
|
2620
|
+
version?: "v1" | undefined;
|
|
2621
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2622
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2623
|
+
} | undefined;
|
|
2509
2624
|
}[];
|
|
2510
2625
|
cliPackageVersion?: string | undefined;
|
|
2511
2626
|
}, {
|
|
@@ -2559,6 +2674,11 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2559
2674
|
maxTimeoutInMs?: number | undefined;
|
|
2560
2675
|
randomize?: boolean | undefined;
|
|
2561
2676
|
} | undefined;
|
|
2677
|
+
machine?: {
|
|
2678
|
+
version?: "v1" | undefined;
|
|
2679
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
2680
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
2681
|
+
} | undefined;
|
|
2562
2682
|
}[];
|
|
2563
2683
|
cliPackageVersion?: string | undefined;
|
|
2564
2684
|
}>;
|
|
@@ -3700,6 +3820,26 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
3700
3820
|
}>;
|
|
3701
3821
|
type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;
|
|
3702
3822
|
|
|
3823
|
+
declare const EnvironmentType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
3824
|
+
type EnvironmentType = z.infer<typeof EnvironmentType>;
|
|
3825
|
+
declare const MachineCpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
3826
|
+
type MachineCpu = z.infer<typeof MachineCpu>;
|
|
3827
|
+
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>]>>;
|
|
3828
|
+
type MachineMemory = z.infer<typeof MachineMemory>;
|
|
3829
|
+
declare const Machine: z.ZodObject<{
|
|
3830
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
3831
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
3832
|
+
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>]>>;
|
|
3833
|
+
}, "strip", z.ZodTypeAny, {
|
|
3834
|
+
version: "v1";
|
|
3835
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
3836
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
3837
|
+
}, {
|
|
3838
|
+
version?: "v1" | undefined;
|
|
3839
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
3840
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
3841
|
+
}>;
|
|
3842
|
+
type Machine = z.infer<typeof Machine>;
|
|
3703
3843
|
declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
3704
3844
|
execution: z.ZodObject<{
|
|
3705
3845
|
task: z.ZodObject<{
|
|
@@ -4144,12 +4284,12 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
4144
4284
|
version: z.ZodString;
|
|
4145
4285
|
}, "strip", z.ZodTypeAny, {
|
|
4146
4286
|
id: string;
|
|
4147
|
-
contentHash: string;
|
|
4148
4287
|
version: string;
|
|
4288
|
+
contentHash: string;
|
|
4149
4289
|
}, {
|
|
4150
4290
|
id: string;
|
|
4151
|
-
contentHash: string;
|
|
4152
4291
|
version: string;
|
|
4292
|
+
contentHash: string;
|
|
4153
4293
|
}>;
|
|
4154
4294
|
}, "strip", z.ZodTypeAny, {
|
|
4155
4295
|
task: {
|
|
@@ -4196,8 +4336,8 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
4196
4336
|
};
|
|
4197
4337
|
worker: {
|
|
4198
4338
|
id: string;
|
|
4199
|
-
contentHash: string;
|
|
4200
4339
|
version: string;
|
|
4340
|
+
contentHash: string;
|
|
4201
4341
|
};
|
|
4202
4342
|
batch?: {
|
|
4203
4343
|
id: string;
|
|
@@ -4247,8 +4387,8 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
4247
4387
|
};
|
|
4248
4388
|
worker: {
|
|
4249
4389
|
id: string;
|
|
4250
|
-
contentHash: string;
|
|
4251
4390
|
version: string;
|
|
4391
|
+
contentHash: string;
|
|
4252
4392
|
};
|
|
4253
4393
|
batch?: {
|
|
4254
4394
|
id: string;
|
|
@@ -4382,12 +4522,12 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4382
4522
|
version: z.ZodString;
|
|
4383
4523
|
}, "strip", z.ZodTypeAny, {
|
|
4384
4524
|
id: string;
|
|
4385
|
-
contentHash: string;
|
|
4386
4525
|
version: string;
|
|
4526
|
+
contentHash: string;
|
|
4387
4527
|
}, {
|
|
4388
4528
|
id: string;
|
|
4389
|
-
contentHash: string;
|
|
4390
4529
|
version: string;
|
|
4530
|
+
contentHash: string;
|
|
4391
4531
|
}>;
|
|
4392
4532
|
}, "strip", z.ZodTypeAny, {
|
|
4393
4533
|
task: {
|
|
@@ -4434,8 +4574,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4434
4574
|
};
|
|
4435
4575
|
worker: {
|
|
4436
4576
|
id: string;
|
|
4437
|
-
contentHash: string;
|
|
4438
4577
|
version: string;
|
|
4578
|
+
contentHash: string;
|
|
4439
4579
|
};
|
|
4440
4580
|
batch?: {
|
|
4441
4581
|
id: string;
|
|
@@ -4485,8 +4625,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4485
4625
|
};
|
|
4486
4626
|
worker: {
|
|
4487
4627
|
id: string;
|
|
4488
|
-
contentHash: string;
|
|
4489
4628
|
version: string;
|
|
4629
|
+
contentHash: string;
|
|
4490
4630
|
};
|
|
4491
4631
|
batch?: {
|
|
4492
4632
|
id: string;
|
|
@@ -4540,8 +4680,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4540
4680
|
};
|
|
4541
4681
|
worker: {
|
|
4542
4682
|
id: string;
|
|
4543
|
-
contentHash: string;
|
|
4544
4683
|
version: string;
|
|
4684
|
+
contentHash: string;
|
|
4545
4685
|
};
|
|
4546
4686
|
batch?: {
|
|
4547
4687
|
id: string;
|
|
@@ -4595,8 +4735,8 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
4595
4735
|
};
|
|
4596
4736
|
worker: {
|
|
4597
4737
|
id: string;
|
|
4598
|
-
contentHash: string;
|
|
4599
4738
|
version: string;
|
|
4739
|
+
contentHash: string;
|
|
4600
4740
|
};
|
|
4601
4741
|
batch?: {
|
|
4602
4742
|
id: string;
|
|
@@ -5045,24 +5185,56 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5045
5185
|
taskRunId: string;
|
|
5046
5186
|
}>, z.ZodObject<{
|
|
5047
5187
|
type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
|
|
5048
|
-
id: z.ZodString;
|
|
5049
5188
|
image: z.ZodString;
|
|
5189
|
+
version: z.ZodString;
|
|
5190
|
+
machine: z.ZodObject<{
|
|
5191
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
5192
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
5193
|
+
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>]>>;
|
|
5194
|
+
}, "strip", z.ZodTypeAny, {
|
|
5195
|
+
version: "v1";
|
|
5196
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
5197
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
5198
|
+
}, {
|
|
5199
|
+
version?: "v1" | undefined;
|
|
5200
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
5201
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5202
|
+
}>;
|
|
5203
|
+
id: z.ZodString;
|
|
5050
5204
|
envId: z.ZodString;
|
|
5205
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
5206
|
+
orgId: z.ZodString;
|
|
5207
|
+
projectId: z.ZodString;
|
|
5051
5208
|
runId: z.ZodString;
|
|
5052
|
-
version: z.ZodString;
|
|
5053
5209
|
}, "strip", z.ZodTypeAny, {
|
|
5054
5210
|
type: "SCHEDULE_ATTEMPT";
|
|
5055
5211
|
id: string;
|
|
5056
5212
|
version: string;
|
|
5057
5213
|
image: string;
|
|
5214
|
+
machine: {
|
|
5215
|
+
version: "v1";
|
|
5216
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
5217
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
5218
|
+
};
|
|
5058
5219
|
envId: string;
|
|
5220
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5221
|
+
orgId: string;
|
|
5222
|
+
projectId: string;
|
|
5059
5223
|
runId: string;
|
|
5060
5224
|
}, {
|
|
5061
5225
|
type: "SCHEDULE_ATTEMPT";
|
|
5062
5226
|
id: string;
|
|
5063
5227
|
version: string;
|
|
5064
5228
|
image: string;
|
|
5229
|
+
machine: {
|
|
5230
|
+
version?: "v1" | undefined;
|
|
5231
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
5232
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5233
|
+
};
|
|
5065
5234
|
envId: string;
|
|
5235
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5236
|
+
orgId: string;
|
|
5237
|
+
projectId: string;
|
|
5066
5238
|
runId: string;
|
|
5067
5239
|
}>]>;
|
|
5068
5240
|
type BackgroundWorkerServerMessages = z.infer<typeof BackgroundWorkerServerMessages>;
|
|
@@ -5519,24 +5691,56 @@ declare const serverWebsocketMessages: {
|
|
|
5519
5691
|
taskRunId: string;
|
|
5520
5692
|
}>, z.ZodObject<{
|
|
5521
5693
|
type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
|
|
5522
|
-
id: z.ZodString;
|
|
5523
5694
|
image: z.ZodString;
|
|
5695
|
+
version: z.ZodString;
|
|
5696
|
+
machine: z.ZodObject<{
|
|
5697
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
5698
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
5699
|
+
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>]>>;
|
|
5700
|
+
}, "strip", z.ZodTypeAny, {
|
|
5701
|
+
version: "v1";
|
|
5702
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
5703
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
5704
|
+
}, {
|
|
5705
|
+
version?: "v1" | undefined;
|
|
5706
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
5707
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5708
|
+
}>;
|
|
5709
|
+
id: z.ZodString;
|
|
5524
5710
|
envId: z.ZodString;
|
|
5711
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
5712
|
+
orgId: z.ZodString;
|
|
5713
|
+
projectId: z.ZodString;
|
|
5525
5714
|
runId: z.ZodString;
|
|
5526
|
-
version: z.ZodString;
|
|
5527
5715
|
}, "strip", z.ZodTypeAny, {
|
|
5528
5716
|
type: "SCHEDULE_ATTEMPT";
|
|
5529
5717
|
id: string;
|
|
5530
5718
|
version: string;
|
|
5531
5719
|
image: string;
|
|
5720
|
+
machine: {
|
|
5721
|
+
version: "v1";
|
|
5722
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
5723
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
5724
|
+
};
|
|
5532
5725
|
envId: string;
|
|
5726
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5727
|
+
orgId: string;
|
|
5728
|
+
projectId: string;
|
|
5533
5729
|
runId: string;
|
|
5534
5730
|
}, {
|
|
5535
5731
|
type: "SCHEDULE_ATTEMPT";
|
|
5536
5732
|
id: string;
|
|
5537
5733
|
version: string;
|
|
5538
5734
|
image: string;
|
|
5735
|
+
machine: {
|
|
5736
|
+
version?: "v1" | undefined;
|
|
5737
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
5738
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5739
|
+
};
|
|
5539
5740
|
envId: string;
|
|
5741
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5742
|
+
orgId: string;
|
|
5743
|
+
projectId: string;
|
|
5540
5744
|
runId: string;
|
|
5541
5745
|
}>]>;
|
|
5542
5746
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5602,7 +5806,15 @@ declare const serverWebsocketMessages: {
|
|
|
5602
5806
|
id: string;
|
|
5603
5807
|
version: string;
|
|
5604
5808
|
image: string;
|
|
5809
|
+
machine: {
|
|
5810
|
+
version: "v1";
|
|
5811
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
5812
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
5813
|
+
};
|
|
5605
5814
|
envId: string;
|
|
5815
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5816
|
+
orgId: string;
|
|
5817
|
+
projectId: string;
|
|
5606
5818
|
runId: string;
|
|
5607
5819
|
};
|
|
5608
5820
|
backgroundWorkerId: string;
|
|
@@ -5670,7 +5882,15 @@ declare const serverWebsocketMessages: {
|
|
|
5670
5882
|
id: string;
|
|
5671
5883
|
version: string;
|
|
5672
5884
|
image: string;
|
|
5885
|
+
machine: {
|
|
5886
|
+
version?: "v1" | undefined;
|
|
5887
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
5888
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
5889
|
+
};
|
|
5673
5890
|
envId: string;
|
|
5891
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
5892
|
+
orgId: string;
|
|
5893
|
+
projectId: string;
|
|
5674
5894
|
runId: string;
|
|
5675
5895
|
};
|
|
5676
5896
|
backgroundWorkerId: string;
|
|
@@ -5681,7 +5901,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5681
5901
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
5682
5902
|
type: z.ZodLiteral<"TASK_RUN_COMPLETED">;
|
|
5683
5903
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
5684
|
-
ok: z.ZodLiteral<true>;
|
|
5904
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
5685
5905
|
id: z.ZodString;
|
|
5686
5906
|
output: z.ZodOptional<z.ZodString>;
|
|
5687
5907
|
outputType: z.ZodString;
|
|
@@ -6024,6 +6244,7 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
6024
6244
|
}>;
|
|
6025
6245
|
}, "strip", z.ZodTypeAny, {
|
|
6026
6246
|
type: "TASK_RUN_COMPLETED";
|
|
6247
|
+
version: "v1";
|
|
6027
6248
|
execution: {
|
|
6028
6249
|
task: {
|
|
6029
6250
|
id: string;
|
|
@@ -6071,7 +6292,6 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
6071
6292
|
id: string;
|
|
6072
6293
|
} | undefined;
|
|
6073
6294
|
};
|
|
6074
|
-
version: "v1";
|
|
6075
6295
|
completion: {
|
|
6076
6296
|
error: {
|
|
6077
6297
|
message: string;
|
|
@@ -6204,12 +6424,12 @@ declare const BackgroundWorkerProperties: z.ZodObject<{
|
|
|
6204
6424
|
contentHash: z.ZodString;
|
|
6205
6425
|
}, "strip", z.ZodTypeAny, {
|
|
6206
6426
|
id: string;
|
|
6207
|
-
contentHash: string;
|
|
6208
6427
|
version: string;
|
|
6428
|
+
contentHash: string;
|
|
6209
6429
|
}, {
|
|
6210
6430
|
id: string;
|
|
6211
|
-
contentHash: string;
|
|
6212
6431
|
version: string;
|
|
6432
|
+
contentHash: string;
|
|
6213
6433
|
}>;
|
|
6214
6434
|
type BackgroundWorkerProperties = z.infer<typeof BackgroundWorkerProperties>;
|
|
6215
6435
|
declare const clientWebsocketMessages: {
|
|
@@ -6240,7 +6460,7 @@ declare const clientWebsocketMessages: {
|
|
|
6240
6460
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
6241
6461
|
type: z.ZodLiteral<"TASK_RUN_COMPLETED">;
|
|
6242
6462
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
6243
|
-
ok: z.ZodLiteral<true>;
|
|
6463
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
6244
6464
|
id: z.ZodString;
|
|
6245
6465
|
output: z.ZodOptional<z.ZodString>;
|
|
6246
6466
|
outputType: z.ZodString;
|
|
@@ -6583,6 +6803,7 @@ declare const clientWebsocketMessages: {
|
|
|
6583
6803
|
}>;
|
|
6584
6804
|
}, "strip", z.ZodTypeAny, {
|
|
6585
6805
|
type: "TASK_RUN_COMPLETED";
|
|
6806
|
+
version: "v1";
|
|
6586
6807
|
execution: {
|
|
6587
6808
|
task: {
|
|
6588
6809
|
id: string;
|
|
@@ -6630,7 +6851,6 @@ declare const clientWebsocketMessages: {
|
|
|
6630
6851
|
id: string;
|
|
6631
6852
|
} | undefined;
|
|
6632
6853
|
};
|
|
6633
|
-
version: "v1";
|
|
6634
6854
|
completion: {
|
|
6635
6855
|
error: {
|
|
6636
6856
|
message: string;
|
|
@@ -6759,6 +6979,7 @@ declare const clientWebsocketMessages: {
|
|
|
6759
6979
|
}, "strip", z.ZodTypeAny, {
|
|
6760
6980
|
data: {
|
|
6761
6981
|
type: "TASK_RUN_COMPLETED";
|
|
6982
|
+
version: "v1";
|
|
6762
6983
|
execution: {
|
|
6763
6984
|
task: {
|
|
6764
6985
|
id: string;
|
|
@@ -6806,7 +7027,6 @@ declare const clientWebsocketMessages: {
|
|
|
6806
7027
|
id: string;
|
|
6807
7028
|
} | undefined;
|
|
6808
7029
|
};
|
|
6809
|
-
version: "v1";
|
|
6810
7030
|
completion: {
|
|
6811
7031
|
error: {
|
|
6812
7032
|
message: string;
|
|
@@ -7159,14 +7379,15 @@ declare const workerToChildMessages: {
|
|
|
7159
7379
|
contentHash: z.ZodString;
|
|
7160
7380
|
}, "strip", z.ZodTypeAny, {
|
|
7161
7381
|
id: string;
|
|
7162
|
-
contentHash: string;
|
|
7163
7382
|
version: string;
|
|
7383
|
+
contentHash: string;
|
|
7164
7384
|
}, {
|
|
7165
7385
|
id: string;
|
|
7166
|
-
contentHash: string;
|
|
7167
7386
|
version: string;
|
|
7387
|
+
contentHash: string;
|
|
7168
7388
|
}>;
|
|
7169
7389
|
}, "strip", z.ZodTypeAny, {
|
|
7390
|
+
version: "v1";
|
|
7170
7391
|
execution: {
|
|
7171
7392
|
task: {
|
|
7172
7393
|
id: string;
|
|
@@ -7215,11 +7436,10 @@ declare const workerToChildMessages: {
|
|
|
7215
7436
|
} | undefined;
|
|
7216
7437
|
};
|
|
7217
7438
|
traceContext: Record<string, unknown>;
|
|
7218
|
-
version: "v1";
|
|
7219
7439
|
metadata: {
|
|
7220
7440
|
id: string;
|
|
7221
|
-
contentHash: string;
|
|
7222
7441
|
version: string;
|
|
7442
|
+
contentHash: string;
|
|
7223
7443
|
};
|
|
7224
7444
|
}, {
|
|
7225
7445
|
execution: {
|
|
@@ -7272,15 +7492,15 @@ declare const workerToChildMessages: {
|
|
|
7272
7492
|
traceContext: Record<string, unknown>;
|
|
7273
7493
|
metadata: {
|
|
7274
7494
|
id: string;
|
|
7275
|
-
contentHash: string;
|
|
7276
7495
|
version: string;
|
|
7496
|
+
contentHash: string;
|
|
7277
7497
|
};
|
|
7278
7498
|
version?: "v1" | undefined;
|
|
7279
7499
|
}>;
|
|
7280
7500
|
TASK_RUN_COMPLETED_NOTIFICATION: z.ZodObject<{
|
|
7281
7501
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
7282
7502
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
7283
|
-
ok: z.ZodLiteral<true>;
|
|
7503
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
7284
7504
|
id: z.ZodString;
|
|
7285
7505
|
output: z.ZodOptional<z.ZodString>;
|
|
7286
7506
|
outputType: z.ZodString;
|
|
@@ -7622,6 +7842,7 @@ declare const workerToChildMessages: {
|
|
|
7622
7842
|
} | undefined;
|
|
7623
7843
|
}>;
|
|
7624
7844
|
}, "strip", z.ZodTypeAny, {
|
|
7845
|
+
version: "v1";
|
|
7625
7846
|
execution: {
|
|
7626
7847
|
task: {
|
|
7627
7848
|
id: string;
|
|
@@ -7669,7 +7890,6 @@ declare const workerToChildMessages: {
|
|
|
7669
7890
|
id: string;
|
|
7670
7891
|
} | undefined;
|
|
7671
7892
|
};
|
|
7672
|
-
version: "v1";
|
|
7673
7893
|
completion: {
|
|
7674
7894
|
error: {
|
|
7675
7895
|
message: string;
|
|
@@ -8522,6 +8742,19 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8522
8742
|
maxTimeoutInMs?: number | undefined;
|
|
8523
8743
|
randomize?: boolean | undefined;
|
|
8524
8744
|
}>>;
|
|
8745
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
8746
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
8747
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
8748
|
+
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>]>>>;
|
|
8749
|
+
}, "strip", z.ZodTypeAny, {
|
|
8750
|
+
version?: "v1" | undefined;
|
|
8751
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
8752
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8753
|
+
}, {
|
|
8754
|
+
version?: "v1" | undefined;
|
|
8755
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
8756
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8757
|
+
}>>;
|
|
8525
8758
|
}, "strip", z.ZodTypeAny, {
|
|
8526
8759
|
id: string;
|
|
8527
8760
|
exportName: string;
|
|
@@ -8570,6 +8803,11 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8570
8803
|
maxTimeoutInMs?: number | undefined;
|
|
8571
8804
|
randomize?: boolean | undefined;
|
|
8572
8805
|
} | undefined;
|
|
8806
|
+
machine?: {
|
|
8807
|
+
version?: "v1" | undefined;
|
|
8808
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
8809
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8810
|
+
} | undefined;
|
|
8573
8811
|
}, {
|
|
8574
8812
|
id: string;
|
|
8575
8813
|
exportName: string;
|
|
@@ -8618,6 +8856,11 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8618
8856
|
maxTimeoutInMs?: number | undefined;
|
|
8619
8857
|
randomize?: boolean | undefined;
|
|
8620
8858
|
} | undefined;
|
|
8859
|
+
machine?: {
|
|
8860
|
+
version?: "v1" | undefined;
|
|
8861
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
8862
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
8863
|
+
} | undefined;
|
|
8621
8864
|
}>;
|
|
8622
8865
|
type TaskMetadata = z.infer<typeof TaskMetadata>;
|
|
8623
8866
|
declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
@@ -8873,6 +9116,19 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8873
9116
|
maxTimeoutInMs?: number | undefined;
|
|
8874
9117
|
randomize?: boolean | undefined;
|
|
8875
9118
|
}>>;
|
|
9119
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
9120
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
9121
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
9122
|
+
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>]>>>;
|
|
9123
|
+
}, "strip", z.ZodTypeAny, {
|
|
9124
|
+
version?: "v1" | undefined;
|
|
9125
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
9126
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9127
|
+
}, {
|
|
9128
|
+
version?: "v1" | undefined;
|
|
9129
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
9130
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9131
|
+
}>>;
|
|
8876
9132
|
packageVersion: z.ZodString;
|
|
8877
9133
|
filePath: z.ZodString;
|
|
8878
9134
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8924,6 +9180,11 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8924
9180
|
maxTimeoutInMs?: number | undefined;
|
|
8925
9181
|
randomize?: boolean | undefined;
|
|
8926
9182
|
} | undefined;
|
|
9183
|
+
machine?: {
|
|
9184
|
+
version?: "v1" | undefined;
|
|
9185
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
9186
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9187
|
+
} | undefined;
|
|
8927
9188
|
}, {
|
|
8928
9189
|
id: string;
|
|
8929
9190
|
filePath: string;
|
|
@@ -8973,6 +9234,11 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8973
9234
|
maxTimeoutInMs?: number | undefined;
|
|
8974
9235
|
randomize?: boolean | undefined;
|
|
8975
9236
|
} | undefined;
|
|
9237
|
+
machine?: {
|
|
9238
|
+
version?: "v1" | undefined;
|
|
9239
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
9240
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
9241
|
+
} | undefined;
|
|
8976
9242
|
}>;
|
|
8977
9243
|
type TaskMetadataWithFilePath = z.infer<typeof TaskMetadataWithFilePath>;
|
|
8978
9244
|
declare const UncaughtExceptionMessage: z.ZodObject<{
|
|
@@ -9008,6 +9274,19 @@ declare const UncaughtExceptionMessage: z.ZodObject<{
|
|
|
9008
9274
|
origin: "uncaughtException" | "unhandledRejection";
|
|
9009
9275
|
version?: "v1" | undefined;
|
|
9010
9276
|
}>;
|
|
9277
|
+
declare const TaskMetadataFailedToParseData: z.ZodObject<{
|
|
9278
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
9279
|
+
tasks: z.ZodUnknown;
|
|
9280
|
+
zodIssues: z.ZodType<z.ZodIssue[], z.ZodTypeDef, z.ZodIssue[]>;
|
|
9281
|
+
}, "strip", z.ZodTypeAny, {
|
|
9282
|
+
version: "v1";
|
|
9283
|
+
zodIssues: z.ZodIssue[];
|
|
9284
|
+
tasks?: unknown;
|
|
9285
|
+
}, {
|
|
9286
|
+
zodIssues: z.ZodIssue[];
|
|
9287
|
+
version?: "v1" | undefined;
|
|
9288
|
+
tasks?: unknown;
|
|
9289
|
+
}>;
|
|
9011
9290
|
declare const childToWorkerMessages: {
|
|
9012
9291
|
TASK_RUN_COMPLETED: z.ZodObject<{
|
|
9013
9292
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
@@ -9225,7 +9504,7 @@ declare const childToWorkerMessages: {
|
|
|
9225
9504
|
} | undefined;
|
|
9226
9505
|
}>;
|
|
9227
9506
|
result: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
9228
|
-
ok: z.ZodLiteral<true>;
|
|
9507
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
9229
9508
|
id: z.ZodString;
|
|
9230
9509
|
output: z.ZodOptional<z.ZodString>;
|
|
9231
9510
|
outputType: z.ZodString;
|
|
@@ -9354,6 +9633,7 @@ declare const childToWorkerMessages: {
|
|
|
9354
9633
|
skippedRetrying?: boolean | undefined;
|
|
9355
9634
|
}>]>;
|
|
9356
9635
|
}, "strip", z.ZodTypeAny, {
|
|
9636
|
+
version: "v1";
|
|
9357
9637
|
execution: {
|
|
9358
9638
|
task: {
|
|
9359
9639
|
id: string;
|
|
@@ -9401,7 +9681,6 @@ declare const childToWorkerMessages: {
|
|
|
9401
9681
|
id: string;
|
|
9402
9682
|
} | undefined;
|
|
9403
9683
|
};
|
|
9404
|
-
version: "v1";
|
|
9405
9684
|
result: {
|
|
9406
9685
|
error: {
|
|
9407
9686
|
message: string;
|
|
@@ -9769,6 +10048,19 @@ declare const childToWorkerMessages: {
|
|
|
9769
10048
|
maxTimeoutInMs?: number | undefined;
|
|
9770
10049
|
randomize?: boolean | undefined;
|
|
9771
10050
|
}>>;
|
|
10051
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
10052
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
10053
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
10054
|
+
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>]>>>;
|
|
10055
|
+
}, "strip", z.ZodTypeAny, {
|
|
10056
|
+
version?: "v1" | undefined;
|
|
10057
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
10058
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10059
|
+
}, {
|
|
10060
|
+
version?: "v1" | undefined;
|
|
10061
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
10062
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10063
|
+
}>>;
|
|
9772
10064
|
packageVersion: z.ZodString;
|
|
9773
10065
|
filePath: z.ZodString;
|
|
9774
10066
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -9820,6 +10112,11 @@ declare const childToWorkerMessages: {
|
|
|
9820
10112
|
maxTimeoutInMs?: number | undefined;
|
|
9821
10113
|
randomize?: boolean | undefined;
|
|
9822
10114
|
} | undefined;
|
|
10115
|
+
machine?: {
|
|
10116
|
+
version?: "v1" | undefined;
|
|
10117
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
10118
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10119
|
+
} | undefined;
|
|
9823
10120
|
}, {
|
|
9824
10121
|
id: string;
|
|
9825
10122
|
filePath: string;
|
|
@@ -9869,6 +10166,11 @@ declare const childToWorkerMessages: {
|
|
|
9869
10166
|
maxTimeoutInMs?: number | undefined;
|
|
9870
10167
|
randomize?: boolean | undefined;
|
|
9871
10168
|
} | undefined;
|
|
10169
|
+
machine?: {
|
|
10170
|
+
version?: "v1" | undefined;
|
|
10171
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
10172
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10173
|
+
} | undefined;
|
|
9872
10174
|
}>, "many">;
|
|
9873
10175
|
}, "strip", z.ZodTypeAny, {
|
|
9874
10176
|
version: "v1";
|
|
@@ -9921,6 +10223,11 @@ declare const childToWorkerMessages: {
|
|
|
9921
10223
|
maxTimeoutInMs?: number | undefined;
|
|
9922
10224
|
randomize?: boolean | undefined;
|
|
9923
10225
|
} | undefined;
|
|
10226
|
+
machine?: {
|
|
10227
|
+
version?: "v1" | undefined;
|
|
10228
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
10229
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10230
|
+
} | undefined;
|
|
9924
10231
|
}[];
|
|
9925
10232
|
}, {
|
|
9926
10233
|
tasks: {
|
|
@@ -9972,9 +10279,27 @@ declare const childToWorkerMessages: {
|
|
|
9972
10279
|
maxTimeoutInMs?: number | undefined;
|
|
9973
10280
|
randomize?: boolean | undefined;
|
|
9974
10281
|
} | undefined;
|
|
10282
|
+
machine?: {
|
|
10283
|
+
version?: "v1" | undefined;
|
|
10284
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
10285
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
10286
|
+
} | undefined;
|
|
9975
10287
|
}[];
|
|
9976
10288
|
version?: "v1" | undefined;
|
|
9977
10289
|
}>;
|
|
10290
|
+
TASKS_FAILED_TO_PARSE: z.ZodObject<{
|
|
10291
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10292
|
+
tasks: z.ZodUnknown;
|
|
10293
|
+
zodIssues: z.ZodType<z.ZodIssue[], z.ZodTypeDef, z.ZodIssue[]>;
|
|
10294
|
+
}, "strip", z.ZodTypeAny, {
|
|
10295
|
+
version: "v1";
|
|
10296
|
+
zodIssues: z.ZodIssue[];
|
|
10297
|
+
tasks?: unknown;
|
|
10298
|
+
}, {
|
|
10299
|
+
zodIssues: z.ZodIssue[];
|
|
10300
|
+
version?: "v1" | undefined;
|
|
10301
|
+
tasks?: unknown;
|
|
10302
|
+
}>;
|
|
9978
10303
|
TASK_HEARTBEAT: z.ZodObject<{
|
|
9979
10304
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
9980
10305
|
id: z.ZodString;
|
|
@@ -10271,7 +10596,7 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10271
10596
|
} | undefined;
|
|
10272
10597
|
}>;
|
|
10273
10598
|
result: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
10274
|
-
ok: z.ZodLiteral<true>;
|
|
10599
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
10275
10600
|
id: z.ZodString;
|
|
10276
10601
|
output: z.ZodOptional<z.ZodString>;
|
|
10277
10602
|
outputType: z.ZodString;
|
|
@@ -10400,6 +10725,7 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10400
10725
|
skippedRetrying?: boolean | undefined;
|
|
10401
10726
|
}>]>;
|
|
10402
10727
|
}, "strip", z.ZodTypeAny, {
|
|
10728
|
+
version: "v1";
|
|
10403
10729
|
execution: {
|
|
10404
10730
|
task: {
|
|
10405
10731
|
id: string;
|
|
@@ -10447,7 +10773,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10447
10773
|
id: string;
|
|
10448
10774
|
} | undefined;
|
|
10449
10775
|
};
|
|
10450
|
-
version: "v1";
|
|
10451
10776
|
result: {
|
|
10452
10777
|
error: {
|
|
10453
10778
|
message: string;
|
|
@@ -10817,6 +11142,19 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10817
11142
|
maxTimeoutInMs?: number | undefined;
|
|
10818
11143
|
randomize?: boolean | undefined;
|
|
10819
11144
|
}>>;
|
|
11145
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
11146
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
11147
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
11148
|
+
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>]>>>;
|
|
11149
|
+
}, "strip", z.ZodTypeAny, {
|
|
11150
|
+
version?: "v1" | undefined;
|
|
11151
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
11152
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11153
|
+
}, {
|
|
11154
|
+
version?: "v1" | undefined;
|
|
11155
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
11156
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11157
|
+
}>>;
|
|
10820
11158
|
packageVersion: z.ZodString;
|
|
10821
11159
|
filePath: z.ZodString;
|
|
10822
11160
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10868,6 +11206,11 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10868
11206
|
maxTimeoutInMs?: number | undefined;
|
|
10869
11207
|
randomize?: boolean | undefined;
|
|
10870
11208
|
} | undefined;
|
|
11209
|
+
machine?: {
|
|
11210
|
+
version?: "v1" | undefined;
|
|
11211
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
11212
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11213
|
+
} | undefined;
|
|
10871
11214
|
}, {
|
|
10872
11215
|
id: string;
|
|
10873
11216
|
filePath: string;
|
|
@@ -10917,6 +11260,11 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10917
11260
|
maxTimeoutInMs?: number | undefined;
|
|
10918
11261
|
randomize?: boolean | undefined;
|
|
10919
11262
|
} | undefined;
|
|
11263
|
+
machine?: {
|
|
11264
|
+
version?: "v1" | undefined;
|
|
11265
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
11266
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11267
|
+
} | undefined;
|
|
10920
11268
|
}>, "many">;
|
|
10921
11269
|
}, "strip", z.ZodTypeAny, {
|
|
10922
11270
|
version: "v1";
|
|
@@ -10969,6 +11317,11 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10969
11317
|
maxTimeoutInMs?: number | undefined;
|
|
10970
11318
|
randomize?: boolean | undefined;
|
|
10971
11319
|
} | undefined;
|
|
11320
|
+
machine?: {
|
|
11321
|
+
version?: "v1" | undefined;
|
|
11322
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
11323
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11324
|
+
} | undefined;
|
|
10972
11325
|
}[];
|
|
10973
11326
|
}, {
|
|
10974
11327
|
tasks: {
|
|
@@ -11020,10 +11373,30 @@ declare const ProdChildToWorkerMessages: {
|
|
|
11020
11373
|
maxTimeoutInMs?: number | undefined;
|
|
11021
11374
|
randomize?: boolean | undefined;
|
|
11022
11375
|
} | undefined;
|
|
11376
|
+
machine?: {
|
|
11377
|
+
version?: "v1" | undefined;
|
|
11378
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
11379
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
11380
|
+
} | undefined;
|
|
11023
11381
|
}[];
|
|
11024
11382
|
version?: "v1" | undefined;
|
|
11025
11383
|
}>;
|
|
11026
11384
|
};
|
|
11385
|
+
TASKS_FAILED_TO_PARSE: {
|
|
11386
|
+
message: z.ZodObject<{
|
|
11387
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
11388
|
+
tasks: z.ZodUnknown;
|
|
11389
|
+
zodIssues: z.ZodType<z.ZodIssue[], z.ZodTypeDef, z.ZodIssue[]>;
|
|
11390
|
+
}, "strip", z.ZodTypeAny, {
|
|
11391
|
+
version: "v1";
|
|
11392
|
+
zodIssues: z.ZodIssue[];
|
|
11393
|
+
tasks?: unknown;
|
|
11394
|
+
}, {
|
|
11395
|
+
zodIssues: z.ZodIssue[];
|
|
11396
|
+
version?: "v1" | undefined;
|
|
11397
|
+
tasks?: unknown;
|
|
11398
|
+
}>;
|
|
11399
|
+
};
|
|
11027
11400
|
TASK_HEARTBEAT: {
|
|
11028
11401
|
message: z.ZodObject<{
|
|
11029
11402
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
@@ -11366,14 +11739,15 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11366
11739
|
contentHash: z.ZodString;
|
|
11367
11740
|
}, "strip", z.ZodTypeAny, {
|
|
11368
11741
|
id: string;
|
|
11369
|
-
contentHash: string;
|
|
11370
11742
|
version: string;
|
|
11743
|
+
contentHash: string;
|
|
11371
11744
|
}, {
|
|
11372
11745
|
id: string;
|
|
11373
|
-
contentHash: string;
|
|
11374
11746
|
version: string;
|
|
11747
|
+
contentHash: string;
|
|
11375
11748
|
}>;
|
|
11376
11749
|
}, "strip", z.ZodTypeAny, {
|
|
11750
|
+
version: "v1";
|
|
11377
11751
|
execution: {
|
|
11378
11752
|
task: {
|
|
11379
11753
|
id: string;
|
|
@@ -11422,11 +11796,10 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11422
11796
|
} | undefined;
|
|
11423
11797
|
};
|
|
11424
11798
|
traceContext: Record<string, unknown>;
|
|
11425
|
-
version: "v1";
|
|
11426
11799
|
metadata: {
|
|
11427
11800
|
id: string;
|
|
11428
|
-
contentHash: string;
|
|
11429
11801
|
version: string;
|
|
11802
|
+
contentHash: string;
|
|
11430
11803
|
};
|
|
11431
11804
|
}, {
|
|
11432
11805
|
execution: {
|
|
@@ -11479,8 +11852,8 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11479
11852
|
traceContext: Record<string, unknown>;
|
|
11480
11853
|
metadata: {
|
|
11481
11854
|
id: string;
|
|
11482
|
-
contentHash: string;
|
|
11483
11855
|
version: string;
|
|
11856
|
+
contentHash: string;
|
|
11484
11857
|
};
|
|
11485
11858
|
version?: "v1" | undefined;
|
|
11486
11859
|
}>;
|
|
@@ -11489,7 +11862,7 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11489
11862
|
message: z.ZodObject<{
|
|
11490
11863
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
11491
11864
|
completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
11492
|
-
ok: z.ZodLiteral<true>;
|
|
11865
|
+
ok: z.ZodLiteral<true>; /** The number of attempts before giving up */
|
|
11493
11866
|
id: z.ZodString;
|
|
11494
11867
|
output: z.ZodOptional<z.ZodString>;
|
|
11495
11868
|
outputType: z.ZodString;
|
|
@@ -11831,6 +12204,7 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11831
12204
|
} | undefined;
|
|
11832
12205
|
}>;
|
|
11833
12206
|
}, "strip", z.ZodTypeAny, {
|
|
12207
|
+
version: "v1";
|
|
11834
12208
|
execution: {
|
|
11835
12209
|
task: {
|
|
11836
12210
|
id: string;
|
|
@@ -11878,7 +12252,6 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11878
12252
|
id: string;
|
|
11879
12253
|
} | undefined;
|
|
11880
12254
|
};
|
|
11881
|
-
version: "v1";
|
|
11882
12255
|
completion: {
|
|
11883
12256
|
error: {
|
|
11884
12257
|
message: string;
|
|
@@ -12026,17 +12399,64 @@ type Prettify<T> = {
|
|
|
12026
12399
|
[K in keyof T]: T[K];
|
|
12027
12400
|
} & {};
|
|
12028
12401
|
|
|
12029
|
-
|
|
12030
|
-
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12402
|
+
type TriggerTracerConfig = {
|
|
12403
|
+
name: string;
|
|
12404
|
+
version: string;
|
|
12405
|
+
} | {
|
|
12406
|
+
tracer: Tracer;
|
|
12407
|
+
logger: Logger;
|
|
12408
|
+
};
|
|
12409
|
+
declare class TriggerTracer {
|
|
12410
|
+
private readonly _config;
|
|
12411
|
+
constructor(_config: TriggerTracerConfig);
|
|
12412
|
+
private _tracer;
|
|
12413
|
+
private get tracer();
|
|
12414
|
+
private _logger;
|
|
12415
|
+
private get logger();
|
|
12416
|
+
extractContext(traceContext?: Record<string, unknown>): Context$1;
|
|
12417
|
+
startActiveSpan<T>(name: string, fn: (span: Span) => Promise<T>, options?: SpanOptions, ctx?: Context$1): Promise<T>;
|
|
12418
|
+
startSpan(name: string, options?: SpanOptions, ctx?: Context$1): Span;
|
|
12419
|
+
}
|
|
12420
|
+
|
|
12421
|
+
type LogLevel$1 = "none" | "log" | "error" | "warn" | "info" | "debug";
|
|
12422
|
+
declare const logLevels: Array<LogLevel$1>;
|
|
12423
|
+
type TaskLoggerConfig = {
|
|
12424
|
+
logger: Logger;
|
|
12425
|
+
tracer: TriggerTracer;
|
|
12426
|
+
level: LogLevel$1;
|
|
12427
|
+
};
|
|
12428
|
+
interface TaskLogger {
|
|
12429
|
+
debug(message: string, properties?: Record<string, unknown>): void;
|
|
12430
|
+
log(message: string, properties?: Record<string, unknown>): void;
|
|
12431
|
+
info(message: string, properties?: Record<string, unknown>): void;
|
|
12432
|
+
warn(message: string, properties?: Record<string, unknown>): void;
|
|
12433
|
+
error(message: string, properties?: Record<string, unknown>): void;
|
|
12434
|
+
trace<T>(name: string, fn: (span: Span) => Promise<T>, options?: SpanOptions): Promise<T>;
|
|
12435
|
+
}
|
|
12436
|
+
declare class OtelTaskLogger implements TaskLogger {
|
|
12437
|
+
#private;
|
|
12438
|
+
private readonly _config;
|
|
12439
|
+
private readonly _level;
|
|
12440
|
+
constructor(_config: TaskLoggerConfig);
|
|
12441
|
+
debug(message: string, properties?: Record<string, unknown>): void;
|
|
12442
|
+
log(message: string, properties?: Record<string, unknown>): void;
|
|
12443
|
+
info(message: string, properties?: Record<string, unknown>): void;
|
|
12444
|
+
warn(message: string, properties?: Record<string, unknown>): void;
|
|
12445
|
+
error(message: string, properties?: Record<string, unknown>): void;
|
|
12446
|
+
trace<T>(name: string, fn: (span: Span) => Promise<T>, options?: SpanOptions): Promise<T>;
|
|
12447
|
+
}
|
|
12448
|
+
|
|
12449
|
+
interface ProjectConfig {
|
|
12450
|
+
project: string;
|
|
12451
|
+
triggerDirectories?: string | string[];
|
|
12452
|
+
triggerUrl?: string;
|
|
12453
|
+
retries?: {
|
|
12454
|
+
enabledInDev?: boolean;
|
|
12455
|
+
default?: RetryOptions;
|
|
12456
|
+
};
|
|
12457
|
+
additionalPackages?: string[];
|
|
12458
|
+
/**
|
|
12459
|
+
* List of additional files to include in your trigger.dev bundle. e.g. ["./prisma/schema.prisma"]
|
|
12040
12460
|
*
|
|
12041
12461
|
* Supports glob patterns.
|
|
12042
12462
|
*/
|
|
@@ -12053,6 +12473,14 @@ interface ProjectConfig {
|
|
|
12053
12473
|
* The OpenTelemetry instrumentations to enable
|
|
12054
12474
|
*/
|
|
12055
12475
|
instrumentations?: InstrumentationOption[];
|
|
12476
|
+
/**
|
|
12477
|
+
* Set the log level for the logger. Defaults to "log", so you will see "log", "warn", and "error" messages, but not "info", or "debug" messages.
|
|
12478
|
+
*
|
|
12479
|
+
* We automatically set the logLevel to "debug" during test runs
|
|
12480
|
+
*
|
|
12481
|
+
* @default "log"
|
|
12482
|
+
*/
|
|
12483
|
+
logLevel?: LogLevel$1;
|
|
12056
12484
|
}
|
|
12057
12485
|
|
|
12058
12486
|
type InitOutput = Record<string, any> | void | undefined;
|
|
@@ -12103,6 +12531,10 @@ type TaskMetadataWithFunctions = TaskMetadataWithFilePath & {
|
|
|
12103
12531
|
};
|
|
12104
12532
|
};
|
|
12105
12533
|
|
|
12534
|
+
declare const PostStartCauses: z.ZodEnum<["index", "create", "restore"]>;
|
|
12535
|
+
type PostStartCauses = z.infer<typeof PostStartCauses>;
|
|
12536
|
+
declare const PreStopCauses: z.ZodEnum<["terminate"]>;
|
|
12537
|
+
type PreStopCauses = z.infer<typeof PreStopCauses>;
|
|
12106
12538
|
declare const Config: z.ZodObject<{
|
|
12107
12539
|
project: z.ZodString;
|
|
12108
12540
|
triggerDirectories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -12152,6 +12584,7 @@ declare const Config: z.ZodObject<{
|
|
|
12152
12584
|
additionalPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12153
12585
|
additionalFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12154
12586
|
dependenciesToBundle: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, "many">>;
|
|
12587
|
+
logLevel: z.ZodOptional<z.ZodString>;
|
|
12155
12588
|
}, "strip", z.ZodTypeAny, {
|
|
12156
12589
|
project: string;
|
|
12157
12590
|
triggerDirectories?: string[] | undefined;
|
|
@@ -12171,6 +12604,7 @@ declare const Config: z.ZodObject<{
|
|
|
12171
12604
|
additionalPackages?: string[] | undefined;
|
|
12172
12605
|
additionalFiles?: string[] | undefined;
|
|
12173
12606
|
dependenciesToBundle?: (string | RegExp)[] | undefined;
|
|
12607
|
+
logLevel?: string | undefined;
|
|
12174
12608
|
}, {
|
|
12175
12609
|
project: string;
|
|
12176
12610
|
triggerDirectories?: string[] | undefined;
|
|
@@ -12190,20 +12624,10 @@ declare const Config: z.ZodObject<{
|
|
|
12190
12624
|
additionalPackages?: string[] | undefined;
|
|
12191
12625
|
additionalFiles?: string[] | undefined;
|
|
12192
12626
|
dependenciesToBundle?: (string | RegExp)[] | undefined;
|
|
12627
|
+
logLevel?: string | undefined;
|
|
12193
12628
|
}>;
|
|
12194
12629
|
type Config = z.infer<typeof Config>;
|
|
12195
12630
|
type ResolvedConfig = RequireKeys<Config, "triggerDirectories" | "triggerUrl" | "projectDir" | "tsconfigPath">;
|
|
12196
|
-
declare const Machine: z.ZodObject<{
|
|
12197
|
-
cpu: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
12198
|
-
memory: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
12199
|
-
}, "strip", z.ZodTypeAny, {
|
|
12200
|
-
cpu?: string | undefined;
|
|
12201
|
-
memory?: string | undefined;
|
|
12202
|
-
}, {
|
|
12203
|
-
cpu?: string | undefined;
|
|
12204
|
-
memory?: string | undefined;
|
|
12205
|
-
}>;
|
|
12206
|
-
type Machine = z.infer<typeof Machine>;
|
|
12207
12631
|
declare const WaitReason: z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>;
|
|
12208
12632
|
type WaitReason = z.infer<typeof WaitReason>;
|
|
12209
12633
|
declare const ProviderToPlatformMessages: {
|
|
@@ -12261,18 +12685,27 @@ declare const PlatformToProviderMessages: {
|
|
|
12261
12685
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12262
12686
|
imageTag: z.ZodString;
|
|
12263
12687
|
shortCode: z.ZodString;
|
|
12264
|
-
envId: z.ZodString;
|
|
12265
12688
|
apiKey: z.ZodString;
|
|
12266
12689
|
apiUrl: z.ZodString;
|
|
12690
|
+
envId: z.ZodString;
|
|
12691
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
12692
|
+
orgId: z.ZodString;
|
|
12693
|
+
projectId: z.ZodString;
|
|
12267
12694
|
}, "strip", z.ZodTypeAny, {
|
|
12268
12695
|
version: "v1";
|
|
12269
12696
|
envId: string;
|
|
12697
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12698
|
+
orgId: string;
|
|
12699
|
+
projectId: string;
|
|
12270
12700
|
imageTag: string;
|
|
12271
12701
|
apiKey: string;
|
|
12272
12702
|
apiUrl: string;
|
|
12273
12703
|
shortCode: string;
|
|
12274
12704
|
}, {
|
|
12275
12705
|
envId: string;
|
|
12706
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12707
|
+
orgId: string;
|
|
12708
|
+
projectId: string;
|
|
12276
12709
|
imageTag: string;
|
|
12277
12710
|
apiKey: string;
|
|
12278
12711
|
apiUrl: string;
|
|
@@ -12316,59 +12749,64 @@ declare const PlatformToProviderMessages: {
|
|
|
12316
12749
|
success: true;
|
|
12317
12750
|
}>]>;
|
|
12318
12751
|
};
|
|
12319
|
-
|
|
12752
|
+
RESTORE: {
|
|
12320
12753
|
message: z.ZodObject<{
|
|
12321
12754
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12322
|
-
|
|
12755
|
+
type: z.ZodEnum<["DOCKER", "KUBERNETES"]>;
|
|
12756
|
+
location: z.ZodString;
|
|
12757
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
12758
|
+
imageRef: z.ZodString;
|
|
12323
12759
|
machine: z.ZodObject<{
|
|
12324
|
-
|
|
12325
|
-
|
|
12760
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12761
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
12762
|
+
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>]>>;
|
|
12326
12763
|
}, "strip", z.ZodTypeAny, {
|
|
12327
|
-
|
|
12328
|
-
|
|
12764
|
+
version: "v1";
|
|
12765
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
12766
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
12329
12767
|
}, {
|
|
12330
|
-
|
|
12331
|
-
|
|
12768
|
+
version?: "v1" | undefined;
|
|
12769
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
12770
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
12332
12771
|
}>;
|
|
12333
|
-
}, "strip", z.ZodTypeAny, {
|
|
12334
|
-
name: string;
|
|
12335
|
-
version: "v1";
|
|
12336
|
-
machine: {
|
|
12337
|
-
cpu?: string | undefined;
|
|
12338
|
-
memory?: string | undefined;
|
|
12339
|
-
};
|
|
12340
|
-
}, {
|
|
12341
|
-
name: string;
|
|
12342
|
-
machine: {
|
|
12343
|
-
cpu?: string | undefined;
|
|
12344
|
-
memory?: string | undefined;
|
|
12345
|
-
};
|
|
12346
|
-
version?: "v1" | undefined;
|
|
12347
|
-
}>;
|
|
12348
|
-
};
|
|
12349
|
-
RESTORE: {
|
|
12350
|
-
message: z.ZodObject<{
|
|
12351
|
-
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12352
12772
|
checkpointId: z.ZodString;
|
|
12773
|
+
envId: z.ZodString;
|
|
12774
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
12775
|
+
orgId: z.ZodString;
|
|
12776
|
+
projectId: z.ZodString;
|
|
12353
12777
|
runId: z.ZodString;
|
|
12354
|
-
type: z.ZodEnum<["DOCKER", "KUBERNETES"]>;
|
|
12355
|
-
location: z.ZodString;
|
|
12356
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
12357
|
-
imageRef: z.ZodString;
|
|
12358
12778
|
}, "strip", z.ZodTypeAny, {
|
|
12359
12779
|
type: "DOCKER" | "KUBERNETES";
|
|
12360
12780
|
version: "v1";
|
|
12781
|
+
machine: {
|
|
12782
|
+
version: "v1";
|
|
12783
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
12784
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
12785
|
+
};
|
|
12786
|
+
envId: string;
|
|
12787
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12788
|
+
orgId: string;
|
|
12789
|
+
projectId: string;
|
|
12361
12790
|
runId: string;
|
|
12362
|
-
checkpointId: string;
|
|
12363
12791
|
location: string;
|
|
12364
12792
|
imageRef: string;
|
|
12793
|
+
checkpointId: string;
|
|
12365
12794
|
reason?: string | undefined;
|
|
12366
12795
|
}, {
|
|
12367
12796
|
type: "DOCKER" | "KUBERNETES";
|
|
12797
|
+
machine: {
|
|
12798
|
+
version?: "v1" | undefined;
|
|
12799
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
12800
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
12801
|
+
};
|
|
12802
|
+
envId: string;
|
|
12803
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
12804
|
+
orgId: string;
|
|
12805
|
+
projectId: string;
|
|
12368
12806
|
runId: string;
|
|
12369
|
-
checkpointId: string;
|
|
12370
12807
|
location: string;
|
|
12371
12808
|
imageRef: string;
|
|
12809
|
+
checkpointId: string;
|
|
12372
12810
|
version?: "v1" | undefined;
|
|
12373
12811
|
reason?: string | undefined;
|
|
12374
12812
|
}>;
|
|
@@ -12639,6 +13077,19 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12639
13077
|
maxTimeoutInMs?: number | undefined;
|
|
12640
13078
|
randomize?: boolean | undefined;
|
|
12641
13079
|
}>>;
|
|
13080
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
13081
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
13082
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
13083
|
+
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>]>>>;
|
|
13084
|
+
}, "strip", z.ZodTypeAny, {
|
|
13085
|
+
version?: "v1" | undefined;
|
|
13086
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13087
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13088
|
+
}, {
|
|
13089
|
+
version?: "v1" | undefined;
|
|
13090
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13091
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13092
|
+
}>>;
|
|
12642
13093
|
}, "strip", z.ZodTypeAny, {
|
|
12643
13094
|
id: string;
|
|
12644
13095
|
filePath: string;
|
|
@@ -12687,6 +13138,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12687
13138
|
maxTimeoutInMs?: number | undefined;
|
|
12688
13139
|
randomize?: boolean | undefined;
|
|
12689
13140
|
} | undefined;
|
|
13141
|
+
machine?: {
|
|
13142
|
+
version?: "v1" | undefined;
|
|
13143
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13144
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13145
|
+
} | undefined;
|
|
12690
13146
|
}, {
|
|
12691
13147
|
id: string;
|
|
12692
13148
|
filePath: string;
|
|
@@ -12735,6 +13191,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12735
13191
|
maxTimeoutInMs?: number | undefined;
|
|
12736
13192
|
randomize?: boolean | undefined;
|
|
12737
13193
|
} | undefined;
|
|
13194
|
+
machine?: {
|
|
13195
|
+
version?: "v1" | undefined;
|
|
13196
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13197
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13198
|
+
} | undefined;
|
|
12738
13199
|
}>, "many">;
|
|
12739
13200
|
}, "strip", z.ZodTypeAny, {
|
|
12740
13201
|
contentHash: string;
|
|
@@ -12787,6 +13248,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12787
13248
|
maxTimeoutInMs?: number | undefined;
|
|
12788
13249
|
randomize?: boolean | undefined;
|
|
12789
13250
|
} | undefined;
|
|
13251
|
+
machine?: {
|
|
13252
|
+
version?: "v1" | undefined;
|
|
13253
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13254
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13255
|
+
} | undefined;
|
|
12790
13256
|
}[];
|
|
12791
13257
|
cliPackageVersion?: string | undefined;
|
|
12792
13258
|
}, {
|
|
@@ -12840,6 +13306,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12840
13306
|
maxTimeoutInMs?: number | undefined;
|
|
12841
13307
|
randomize?: boolean | undefined;
|
|
12842
13308
|
} | undefined;
|
|
13309
|
+
machine?: {
|
|
13310
|
+
version?: "v1" | undefined;
|
|
13311
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13312
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13313
|
+
} | undefined;
|
|
12843
13314
|
}[];
|
|
12844
13315
|
cliPackageVersion?: string | undefined;
|
|
12845
13316
|
}>;
|
|
@@ -12897,6 +13368,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12897
13368
|
maxTimeoutInMs?: number | undefined;
|
|
12898
13369
|
randomize?: boolean | undefined;
|
|
12899
13370
|
} | undefined;
|
|
13371
|
+
machine?: {
|
|
13372
|
+
version?: "v1" | undefined;
|
|
13373
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13374
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13375
|
+
} | undefined;
|
|
12900
13376
|
}[];
|
|
12901
13377
|
cliPackageVersion?: string | undefined;
|
|
12902
13378
|
};
|
|
@@ -12955,6 +13431,11 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12955
13431
|
maxTimeoutInMs?: number | undefined;
|
|
12956
13432
|
randomize?: boolean | undefined;
|
|
12957
13433
|
} | undefined;
|
|
13434
|
+
machine?: {
|
|
13435
|
+
version?: "v1" | undefined;
|
|
13436
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
13437
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
13438
|
+
} | undefined;
|
|
12958
13439
|
}[];
|
|
12959
13440
|
cliPackageVersion?: string | undefined;
|
|
12960
13441
|
};
|
|
@@ -13125,12 +13606,12 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13125
13606
|
version: z.ZodString;
|
|
13126
13607
|
}, "strip", z.ZodTypeAny, {
|
|
13127
13608
|
id: string;
|
|
13128
|
-
contentHash: string;
|
|
13129
13609
|
version: string;
|
|
13610
|
+
contentHash: string;
|
|
13130
13611
|
}, {
|
|
13131
13612
|
id: string;
|
|
13132
|
-
contentHash: string;
|
|
13133
13613
|
version: string;
|
|
13614
|
+
contentHash: string;
|
|
13134
13615
|
}>;
|
|
13135
13616
|
}, "strip", z.ZodTypeAny, {
|
|
13136
13617
|
task: {
|
|
@@ -13177,8 +13658,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13177
13658
|
};
|
|
13178
13659
|
worker: {
|
|
13179
13660
|
id: string;
|
|
13180
|
-
contentHash: string;
|
|
13181
13661
|
version: string;
|
|
13662
|
+
contentHash: string;
|
|
13182
13663
|
};
|
|
13183
13664
|
batch?: {
|
|
13184
13665
|
id: string;
|
|
@@ -13228,8 +13709,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13228
13709
|
};
|
|
13229
13710
|
worker: {
|
|
13230
13711
|
id: string;
|
|
13231
|
-
contentHash: string;
|
|
13232
13712
|
version: string;
|
|
13713
|
+
contentHash: string;
|
|
13233
13714
|
};
|
|
13234
13715
|
batch?: {
|
|
13235
13716
|
id: string;
|
|
@@ -13283,8 +13764,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13283
13764
|
};
|
|
13284
13765
|
worker: {
|
|
13285
13766
|
id: string;
|
|
13286
|
-
contentHash: string;
|
|
13287
13767
|
version: string;
|
|
13768
|
+
contentHash: string;
|
|
13288
13769
|
};
|
|
13289
13770
|
batch?: {
|
|
13290
13771
|
id: string;
|
|
@@ -13338,8 +13819,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13338
13819
|
};
|
|
13339
13820
|
worker: {
|
|
13340
13821
|
id: string;
|
|
13341
|
-
contentHash: string;
|
|
13342
13822
|
version: string;
|
|
13823
|
+
contentHash: string;
|
|
13343
13824
|
};
|
|
13344
13825
|
batch?: {
|
|
13345
13826
|
id: string;
|
|
@@ -13395,8 +13876,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13395
13876
|
};
|
|
13396
13877
|
worker: {
|
|
13397
13878
|
id: string;
|
|
13398
|
-
contentHash: string;
|
|
13399
13879
|
version: string;
|
|
13880
|
+
contentHash: string;
|
|
13400
13881
|
};
|
|
13401
13882
|
batch?: {
|
|
13402
13883
|
id: string;
|
|
@@ -13453,8 +13934,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13453
13934
|
};
|
|
13454
13935
|
worker: {
|
|
13455
13936
|
id: string;
|
|
13456
|
-
contentHash: string;
|
|
13457
13937
|
version: string;
|
|
13938
|
+
contentHash: string;
|
|
13458
13939
|
};
|
|
13459
13940
|
batch?: {
|
|
13460
13941
|
id: string;
|
|
@@ -13610,12 +14091,12 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13610
14091
|
version: z.ZodString;
|
|
13611
14092
|
}, "strip", z.ZodTypeAny, {
|
|
13612
14093
|
id: string;
|
|
13613
|
-
contentHash: string;
|
|
13614
14094
|
version: string;
|
|
14095
|
+
contentHash: string;
|
|
13615
14096
|
}, {
|
|
13616
14097
|
id: string;
|
|
13617
|
-
contentHash: string;
|
|
13618
14098
|
version: string;
|
|
14099
|
+
contentHash: string;
|
|
13619
14100
|
}>;
|
|
13620
14101
|
}, "strip", z.ZodTypeAny, {
|
|
13621
14102
|
task: {
|
|
@@ -13662,8 +14143,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13662
14143
|
};
|
|
13663
14144
|
worker: {
|
|
13664
14145
|
id: string;
|
|
13665
|
-
contentHash: string;
|
|
13666
14146
|
version: string;
|
|
14147
|
+
contentHash: string;
|
|
13667
14148
|
};
|
|
13668
14149
|
batch?: {
|
|
13669
14150
|
id: string;
|
|
@@ -13713,8 +14194,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13713
14194
|
};
|
|
13714
14195
|
worker: {
|
|
13715
14196
|
id: string;
|
|
13716
|
-
contentHash: string;
|
|
13717
14197
|
version: string;
|
|
14198
|
+
contentHash: string;
|
|
13718
14199
|
};
|
|
13719
14200
|
batch?: {
|
|
13720
14201
|
id: string;
|
|
@@ -13860,6 +14341,7 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13860
14341
|
docker: boolean;
|
|
13861
14342
|
}>>;
|
|
13862
14343
|
}, "strip", z.ZodTypeAny, {
|
|
14344
|
+
version: "v1";
|
|
13863
14345
|
execution: {
|
|
13864
14346
|
task: {
|
|
13865
14347
|
id: string;
|
|
@@ -13905,14 +14387,13 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13905
14387
|
};
|
|
13906
14388
|
worker: {
|
|
13907
14389
|
id: string;
|
|
13908
|
-
contentHash: string;
|
|
13909
14390
|
version: string;
|
|
14391
|
+
contentHash: string;
|
|
13910
14392
|
};
|
|
13911
14393
|
batch?: {
|
|
13912
14394
|
id: string;
|
|
13913
14395
|
} | undefined;
|
|
13914
14396
|
};
|
|
13915
|
-
version: "v1";
|
|
13916
14397
|
completion: {
|
|
13917
14398
|
error: {
|
|
13918
14399
|
message: string;
|
|
@@ -13994,8 +14475,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13994
14475
|
};
|
|
13995
14476
|
worker: {
|
|
13996
14477
|
id: string;
|
|
13997
|
-
contentHash: string;
|
|
13998
14478
|
version: string;
|
|
14479
|
+
contentHash: string;
|
|
13999
14480
|
};
|
|
14000
14481
|
batch?: {
|
|
14001
14482
|
id: string;
|
|
@@ -15114,6 +15595,7 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15114
15595
|
}>;
|
|
15115
15596
|
}, "strip", z.ZodTypeAny, {
|
|
15116
15597
|
type: "TASK_RUN_COMPLETED";
|
|
15598
|
+
version: "v1";
|
|
15117
15599
|
execution: {
|
|
15118
15600
|
task: {
|
|
15119
15601
|
id: string;
|
|
@@ -15161,7 +15643,6 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15161
15643
|
id: string;
|
|
15162
15644
|
} | undefined;
|
|
15163
15645
|
};
|
|
15164
|
-
version: "v1";
|
|
15165
15646
|
completion: {
|
|
15166
15647
|
error: {
|
|
15167
15648
|
message: string;
|
|
@@ -15290,6 +15771,7 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15290
15771
|
}, "strip", z.ZodTypeAny, {
|
|
15291
15772
|
data: {
|
|
15292
15773
|
type: "TASK_RUN_COMPLETED";
|
|
15774
|
+
version: "v1";
|
|
15293
15775
|
execution: {
|
|
15294
15776
|
task: {
|
|
15295
15777
|
id: string;
|
|
@@ -15337,7 +15819,6 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15337
15819
|
id: string;
|
|
15338
15820
|
} | undefined;
|
|
15339
15821
|
};
|
|
15340
|
-
version: "v1";
|
|
15341
15822
|
completion: {
|
|
15342
15823
|
error: {
|
|
15343
15824
|
message: string;
|
|
@@ -15924,24 +16405,56 @@ declare const SharedQueueToClientMessages: {
|
|
|
15924
16405
|
taskRunId: string;
|
|
15925
16406
|
}>, z.ZodObject<{
|
|
15926
16407
|
type: z.ZodLiteral<"SCHEDULE_ATTEMPT">;
|
|
15927
|
-
id: z.ZodString;
|
|
15928
16408
|
image: z.ZodString;
|
|
16409
|
+
version: z.ZodString;
|
|
16410
|
+
machine: z.ZodObject<{
|
|
16411
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16412
|
+
cpu: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
16413
|
+
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>]>>;
|
|
16414
|
+
}, "strip", z.ZodTypeAny, {
|
|
16415
|
+
version: "v1";
|
|
16416
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
16417
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
16418
|
+
}, {
|
|
16419
|
+
version?: "v1" | undefined;
|
|
16420
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
16421
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16422
|
+
}>;
|
|
16423
|
+
id: z.ZodString;
|
|
15929
16424
|
envId: z.ZodString;
|
|
16425
|
+
envType: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
16426
|
+
orgId: z.ZodString;
|
|
16427
|
+
projectId: z.ZodString;
|
|
15930
16428
|
runId: z.ZodString;
|
|
15931
|
-
version: z.ZodString;
|
|
15932
16429
|
}, "strip", z.ZodTypeAny, {
|
|
15933
16430
|
type: "SCHEDULE_ATTEMPT";
|
|
15934
16431
|
id: string;
|
|
15935
16432
|
version: string;
|
|
15936
16433
|
image: string;
|
|
16434
|
+
machine: {
|
|
16435
|
+
version: "v1";
|
|
16436
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
16437
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
16438
|
+
};
|
|
15937
16439
|
envId: string;
|
|
16440
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16441
|
+
orgId: string;
|
|
16442
|
+
projectId: string;
|
|
15938
16443
|
runId: string;
|
|
15939
16444
|
}, {
|
|
15940
16445
|
type: "SCHEDULE_ATTEMPT";
|
|
15941
16446
|
id: string;
|
|
15942
16447
|
version: string;
|
|
15943
16448
|
image: string;
|
|
16449
|
+
machine: {
|
|
16450
|
+
version?: "v1" | undefined;
|
|
16451
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
16452
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16453
|
+
};
|
|
15944
16454
|
envId: string;
|
|
16455
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16456
|
+
orgId: string;
|
|
16457
|
+
projectId: string;
|
|
15945
16458
|
runId: string;
|
|
15946
16459
|
}>]>;
|
|
15947
16460
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16007,7 +16520,15 @@ declare const SharedQueueToClientMessages: {
|
|
|
16007
16520
|
id: string;
|
|
16008
16521
|
version: string;
|
|
16009
16522
|
image: string;
|
|
16523
|
+
machine: {
|
|
16524
|
+
version: "v1";
|
|
16525
|
+
cpu: 2 | 1 | 4 | 0.25 | 0.5;
|
|
16526
|
+
memory: 2 | 1 | 4 | 0.25 | 0.5 | 8;
|
|
16527
|
+
};
|
|
16010
16528
|
envId: string;
|
|
16529
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16530
|
+
orgId: string;
|
|
16531
|
+
projectId: string;
|
|
16011
16532
|
runId: string;
|
|
16012
16533
|
};
|
|
16013
16534
|
backgroundWorkerId: string;
|
|
@@ -16075,7 +16596,15 @@ declare const SharedQueueToClientMessages: {
|
|
|
16075
16596
|
id: string;
|
|
16076
16597
|
version: string;
|
|
16077
16598
|
image: string;
|
|
16599
|
+
machine: {
|
|
16600
|
+
version?: "v1" | undefined;
|
|
16601
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
16602
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16603
|
+
};
|
|
16078
16604
|
envId: string;
|
|
16605
|
+
envType: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
16606
|
+
orgId: string;
|
|
16607
|
+
projectId: string;
|
|
16079
16608
|
runId: string;
|
|
16080
16609
|
};
|
|
16081
16610
|
backgroundWorkerId: string;
|
|
@@ -16309,6 +16838,19 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16309
16838
|
maxTimeoutInMs?: number | undefined;
|
|
16310
16839
|
randomize?: boolean | undefined;
|
|
16311
16840
|
}>>;
|
|
16841
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
16842
|
+
version: z.ZodOptional<z.ZodDefault<z.ZodLiteral<"v1">>>;
|
|
16843
|
+
cpu: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>>;
|
|
16844
|
+
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>]>>>;
|
|
16845
|
+
}, "strip", z.ZodTypeAny, {
|
|
16846
|
+
version?: "v1" | undefined;
|
|
16847
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
16848
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16849
|
+
}, {
|
|
16850
|
+
version?: "v1" | undefined;
|
|
16851
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
16852
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16853
|
+
}>>;
|
|
16312
16854
|
}, "strip", z.ZodTypeAny, {
|
|
16313
16855
|
id: string;
|
|
16314
16856
|
filePath: string;
|
|
@@ -16357,6 +16899,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16357
16899
|
maxTimeoutInMs?: number | undefined;
|
|
16358
16900
|
randomize?: boolean | undefined;
|
|
16359
16901
|
} | undefined;
|
|
16902
|
+
machine?: {
|
|
16903
|
+
version?: "v1" | undefined;
|
|
16904
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
16905
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16906
|
+
} | undefined;
|
|
16360
16907
|
}, {
|
|
16361
16908
|
id: string;
|
|
16362
16909
|
filePath: string;
|
|
@@ -16405,6 +16952,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16405
16952
|
maxTimeoutInMs?: number | undefined;
|
|
16406
16953
|
randomize?: boolean | undefined;
|
|
16407
16954
|
} | undefined;
|
|
16955
|
+
machine?: {
|
|
16956
|
+
version?: "v1" | undefined;
|
|
16957
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
16958
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
16959
|
+
} | undefined;
|
|
16408
16960
|
}>, "many">;
|
|
16409
16961
|
packageVersion: z.ZodString;
|
|
16410
16962
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16458,6 +17010,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16458
17010
|
maxTimeoutInMs?: number | undefined;
|
|
16459
17011
|
randomize?: boolean | undefined;
|
|
16460
17012
|
} | undefined;
|
|
17013
|
+
machine?: {
|
|
17014
|
+
version?: "v1" | undefined;
|
|
17015
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
17016
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
17017
|
+
} | undefined;
|
|
16461
17018
|
}[];
|
|
16462
17019
|
deploymentId: string;
|
|
16463
17020
|
}, {
|
|
@@ -16510,6 +17067,11 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16510
17067
|
maxTimeoutInMs?: number | undefined;
|
|
16511
17068
|
randomize?: boolean | undefined;
|
|
16512
17069
|
} | undefined;
|
|
17070
|
+
machine?: {
|
|
17071
|
+
version?: "v1" | undefined;
|
|
17072
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
17073
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
17074
|
+
} | undefined;
|
|
16513
17075
|
}[];
|
|
16514
17076
|
deploymentId: string;
|
|
16515
17077
|
version?: "v1" | undefined;
|
|
@@ -16717,12 +17279,12 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16717
17279
|
version: z.ZodString;
|
|
16718
17280
|
}, "strip", z.ZodTypeAny, {
|
|
16719
17281
|
id: string;
|
|
16720
|
-
contentHash: string;
|
|
16721
17282
|
version: string;
|
|
17283
|
+
contentHash: string;
|
|
16722
17284
|
}, {
|
|
16723
17285
|
id: string;
|
|
16724
|
-
contentHash: string;
|
|
16725
17286
|
version: string;
|
|
17287
|
+
contentHash: string;
|
|
16726
17288
|
}>;
|
|
16727
17289
|
}, "strip", z.ZodTypeAny, {
|
|
16728
17290
|
task: {
|
|
@@ -16769,8 +17331,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16769
17331
|
};
|
|
16770
17332
|
worker: {
|
|
16771
17333
|
id: string;
|
|
16772
|
-
contentHash: string;
|
|
16773
17334
|
version: string;
|
|
17335
|
+
contentHash: string;
|
|
16774
17336
|
};
|
|
16775
17337
|
batch?: {
|
|
16776
17338
|
id: string;
|
|
@@ -16820,8 +17382,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16820
17382
|
};
|
|
16821
17383
|
worker: {
|
|
16822
17384
|
id: string;
|
|
16823
|
-
contentHash: string;
|
|
16824
17385
|
version: string;
|
|
17386
|
+
contentHash: string;
|
|
16825
17387
|
};
|
|
16826
17388
|
batch?: {
|
|
16827
17389
|
id: string;
|
|
@@ -16957,6 +17519,7 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16957
17519
|
skippedRetrying?: boolean | undefined;
|
|
16958
17520
|
}>]>;
|
|
16959
17521
|
}, "strip", z.ZodTypeAny, {
|
|
17522
|
+
version: "v1";
|
|
16960
17523
|
execution: {
|
|
16961
17524
|
task: {
|
|
16962
17525
|
id: string;
|
|
@@ -17002,14 +17565,13 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
17002
17565
|
};
|
|
17003
17566
|
worker: {
|
|
17004
17567
|
id: string;
|
|
17005
|
-
contentHash: string;
|
|
17006
17568
|
version: string;
|
|
17569
|
+
contentHash: string;
|
|
17007
17570
|
};
|
|
17008
17571
|
batch?: {
|
|
17009
17572
|
id: string;
|
|
17010
17573
|
} | undefined;
|
|
17011
17574
|
};
|
|
17012
|
-
version: "v1";
|
|
17013
17575
|
completion: {
|
|
17014
17576
|
error: {
|
|
17015
17577
|
message: string;
|
|
@@ -17087,8 +17649,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
17087
17649
|
};
|
|
17088
17650
|
worker: {
|
|
17089
17651
|
id: string;
|
|
17090
|
-
contentHash: string;
|
|
17091
17652
|
version: string;
|
|
17653
|
+
contentHash: string;
|
|
17092
17654
|
};
|
|
17093
17655
|
batch?: {
|
|
17094
17656
|
id: string;
|
|
@@ -17899,12 +18461,12 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17899
18461
|
version: z.ZodString;
|
|
17900
18462
|
}, "strip", z.ZodTypeAny, {
|
|
17901
18463
|
id: string;
|
|
17902
|
-
contentHash: string;
|
|
17903
18464
|
version: string;
|
|
18465
|
+
contentHash: string;
|
|
17904
18466
|
}, {
|
|
17905
18467
|
id: string;
|
|
17906
|
-
contentHash: string;
|
|
17907
18468
|
version: string;
|
|
18469
|
+
contentHash: string;
|
|
17908
18470
|
}>;
|
|
17909
18471
|
}, "strip", z.ZodTypeAny, {
|
|
17910
18472
|
task: {
|
|
@@ -17951,8 +18513,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17951
18513
|
};
|
|
17952
18514
|
worker: {
|
|
17953
18515
|
id: string;
|
|
17954
|
-
contentHash: string;
|
|
17955
18516
|
version: string;
|
|
18517
|
+
contentHash: string;
|
|
17956
18518
|
};
|
|
17957
18519
|
batch?: {
|
|
17958
18520
|
id: string;
|
|
@@ -18002,8 +18564,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18002
18564
|
};
|
|
18003
18565
|
worker: {
|
|
18004
18566
|
id: string;
|
|
18005
|
-
contentHash: string;
|
|
18006
18567
|
version: string;
|
|
18568
|
+
contentHash: string;
|
|
18007
18569
|
};
|
|
18008
18570
|
batch?: {
|
|
18009
18571
|
id: string;
|
|
@@ -18057,8 +18619,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18057
18619
|
};
|
|
18058
18620
|
worker: {
|
|
18059
18621
|
id: string;
|
|
18060
|
-
contentHash: string;
|
|
18061
18622
|
version: string;
|
|
18623
|
+
contentHash: string;
|
|
18062
18624
|
};
|
|
18063
18625
|
batch?: {
|
|
18064
18626
|
id: string;
|
|
@@ -18112,8 +18674,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18112
18674
|
};
|
|
18113
18675
|
worker: {
|
|
18114
18676
|
id: string;
|
|
18115
|
-
contentHash: string;
|
|
18116
18677
|
version: string;
|
|
18678
|
+
contentHash: string;
|
|
18117
18679
|
};
|
|
18118
18680
|
batch?: {
|
|
18119
18681
|
id: string;
|
|
@@ -18170,8 +18732,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18170
18732
|
};
|
|
18171
18733
|
worker: {
|
|
18172
18734
|
id: string;
|
|
18173
|
-
contentHash: string;
|
|
18174
18735
|
version: string;
|
|
18736
|
+
contentHash: string;
|
|
18175
18737
|
};
|
|
18176
18738
|
batch?: {
|
|
18177
18739
|
id: string;
|
|
@@ -18227,8 +18789,8 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
18227
18789
|
};
|
|
18228
18790
|
worker: {
|
|
18229
18791
|
id: string;
|
|
18230
|
-
contentHash: string;
|
|
18231
18792
|
version: string;
|
|
18793
|
+
contentHash: string;
|
|
18232
18794
|
};
|
|
18233
18795
|
batch?: {
|
|
18234
18796
|
id: string;
|
|
@@ -19161,13 +19723,13 @@ declare const SpanMessagingEvent: z.ZodObject<{
|
|
|
19161
19723
|
message: z.ZodAny;
|
|
19162
19724
|
destination: z.ZodOptional<z.ZodString>;
|
|
19163
19725
|
}, "strip", z.ZodTypeAny, {
|
|
19164
|
-
operation: "
|
|
19726
|
+
operation: "create" | "publish" | "receive" | "deliver";
|
|
19165
19727
|
system?: string | undefined;
|
|
19166
19728
|
client_id?: string | undefined;
|
|
19167
19729
|
message?: any;
|
|
19168
19730
|
destination?: string | undefined;
|
|
19169
19731
|
}, {
|
|
19170
|
-
operation: "
|
|
19732
|
+
operation: "create" | "publish" | "receive" | "deliver";
|
|
19171
19733
|
system?: string | undefined;
|
|
19172
19734
|
client_id?: string | undefined;
|
|
19173
19735
|
message?: any;
|
|
@@ -19175,6 +19737,14 @@ declare const SpanMessagingEvent: z.ZodObject<{
|
|
|
19175
19737
|
}>;
|
|
19176
19738
|
type SpanMessagingEvent = z.infer<typeof SpanMessagingEvent>;
|
|
19177
19739
|
|
|
19740
|
+
type ApiResult<TSuccessResult> = {
|
|
19741
|
+
ok: true;
|
|
19742
|
+
data: TSuccessResult;
|
|
19743
|
+
} | {
|
|
19744
|
+
ok: false;
|
|
19745
|
+
error: string;
|
|
19746
|
+
};
|
|
19747
|
+
|
|
19178
19748
|
type TriggerOptions = {
|
|
19179
19749
|
spanParentAsLink?: boolean;
|
|
19180
19750
|
};
|
|
@@ -19186,25 +19756,19 @@ declare class ApiClient {
|
|
|
19186
19756
|
private readonly accessToken;
|
|
19187
19757
|
private readonly baseUrl;
|
|
19188
19758
|
constructor(baseUrl: string, accessToken: string);
|
|
19189
|
-
triggerTask(taskId: string, body: TriggerTaskRequestBody, options?: TriggerOptions): Promise<{
|
|
19190
|
-
|
|
19191
|
-
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
}
|
|
19202
|
-
ok: true;
|
|
19203
|
-
data: {
|
|
19204
|
-
runs: string[];
|
|
19205
|
-
batchId: string;
|
|
19206
|
-
};
|
|
19207
|
-
}>;
|
|
19759
|
+
triggerTask(taskId: string, body: TriggerTaskRequestBody, options?: TriggerOptions): Promise<ApiResult<{
|
|
19760
|
+
id: string;
|
|
19761
|
+
}>>;
|
|
19762
|
+
batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions): Promise<ApiResult<{
|
|
19763
|
+
runs: string[];
|
|
19764
|
+
batchId: string;
|
|
19765
|
+
}>>;
|
|
19766
|
+
createUploadPayloadUrl(filename: string): Promise<ApiResult<{
|
|
19767
|
+
presignedUrl: string;
|
|
19768
|
+
}>>;
|
|
19769
|
+
getPayloadUrl(filename: string): Promise<ApiResult<{
|
|
19770
|
+
presignedUrl: string;
|
|
19771
|
+
}>>;
|
|
19208
19772
|
}
|
|
19209
19773
|
type ApiClientContext = {
|
|
19210
19774
|
baseURL: string;
|
|
@@ -19278,7 +19842,8 @@ declare class ZodSocketMessageSender<TMessageCatalog extends ZodSocketMessageCat
|
|
|
19278
19842
|
type ZodSocket<TListenEvents extends ZodSocketMessageCatalogSchema, TEmitEvents extends ZodSocketMessageCatalogSchema> = Socket<ZodMessageCatalogToSocketIoEvents<TListenEvents>, ZodMessageCatalogToSocketIoEvents<TEmitEvents>>;
|
|
19279
19843
|
interface ZodSocketConnectionOptions<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema> {
|
|
19280
19844
|
host: string;
|
|
19281
|
-
port
|
|
19845
|
+
port?: number;
|
|
19846
|
+
secure?: boolean;
|
|
19282
19847
|
namespace: string;
|
|
19283
19848
|
clientMessages: TClientMessages;
|
|
19284
19849
|
serverMessages: TServerMessages;
|
|
@@ -19314,7 +19879,7 @@ interface StructuredLogger {
|
|
|
19314
19879
|
debug: (message: string, ...args: StructuredArgs) => any;
|
|
19315
19880
|
child: (fields: Record<string, unknown>) => StructuredLogger;
|
|
19316
19881
|
}
|
|
19317
|
-
declare enum LogLevel
|
|
19882
|
+
declare enum LogLevel {
|
|
19318
19883
|
"log" = 0,
|
|
19319
19884
|
"error" = 1,
|
|
19320
19885
|
"warn" = 2,
|
|
@@ -19326,8 +19891,8 @@ declare class SimpleStructuredLogger implements StructuredLogger {
|
|
|
19326
19891
|
private name;
|
|
19327
19892
|
private level;
|
|
19328
19893
|
private fields?;
|
|
19329
|
-
constructor(name: string, level?: LogLevel
|
|
19330
|
-
child(fields: Record<string, unknown>, level?: LogLevel
|
|
19894
|
+
constructor(name: string, level?: LogLevel, fields?: Record<string, unknown> | undefined);
|
|
19895
|
+
child(fields: Record<string, unknown>, level?: LogLevel): SimpleStructuredLogger;
|
|
19331
19896
|
log(message: string, ...args: StructuredArgs): void;
|
|
19332
19897
|
error(message: string, ...args: StructuredArgs): void;
|
|
19333
19898
|
warn(message: string, ...args: StructuredArgs): void;
|
|
@@ -19358,6 +19923,11 @@ declare class ZodNamespace<TClientMessages extends ZodSocketMessageCatalogSchema
|
|
|
19358
19923
|
fetchSockets(): Promise<socket_io.RemoteSocket<ZodMessageCatalogToSocketIoEvents<TServerMessages>, z.TypeOf<TSocketData>>[]>;
|
|
19359
19924
|
}
|
|
19360
19925
|
|
|
19926
|
+
declare class ZodSchemaParsedError extends Error {
|
|
19927
|
+
error: z.ZodError;
|
|
19928
|
+
payload: unknown;
|
|
19929
|
+
constructor(error: z.ZodError, payload: unknown);
|
|
19930
|
+
}
|
|
19361
19931
|
type ZodMessageValueSchema<TDiscriminatedUnion extends z.ZodDiscriminatedUnion<any, any>> = z.ZodFirstPartySchemaTypes | TDiscriminatedUnion;
|
|
19362
19932
|
interface ZodMessageCatalogSchema {
|
|
19363
19933
|
[key: string]: ZodMessageValueSchema<any>;
|
|
@@ -19448,6 +20018,15 @@ declare function createErrorTaskError(error: TaskRunError): any;
|
|
|
19448
20018
|
declare function correctErrorStackTrace(stackTrace: string, projectDir?: string, options?: {
|
|
19449
20019
|
removeFirstLine?: boolean;
|
|
19450
20020
|
}): string;
|
|
20021
|
+
declare function groupTaskMetadataIssuesByTask(tasks: any, issues: z.ZodIssue[]): Record<number, {
|
|
20022
|
+
id: any;
|
|
20023
|
+
exportName: string;
|
|
20024
|
+
filePath: string;
|
|
20025
|
+
issues: Array<{
|
|
20026
|
+
message: string;
|
|
20027
|
+
path?: string;
|
|
20028
|
+
}>;
|
|
20029
|
+
}>;
|
|
19451
20030
|
|
|
19452
20031
|
interface RuntimeManager {
|
|
19453
20032
|
disable(): void;
|
|
@@ -19491,60 +20070,6 @@ declare class RuntimeAPI {
|
|
|
19491
20070
|
/** Entrypoint for runtime API */
|
|
19492
20071
|
declare const runtime: RuntimeAPI;
|
|
19493
20072
|
|
|
19494
|
-
type TriggerTracerConfig = {
|
|
19495
|
-
name: string;
|
|
19496
|
-
version: string;
|
|
19497
|
-
} | {
|
|
19498
|
-
tracer: Tracer;
|
|
19499
|
-
logger: Logger;
|
|
19500
|
-
};
|
|
19501
|
-
declare class TriggerTracer {
|
|
19502
|
-
private readonly _config;
|
|
19503
|
-
constructor(_config: TriggerTracerConfig);
|
|
19504
|
-
private _tracer;
|
|
19505
|
-
private get tracer();
|
|
19506
|
-
private _logger;
|
|
19507
|
-
private get logger();
|
|
19508
|
-
extractContext(traceContext?: Record<string, unknown>): Context$1;
|
|
19509
|
-
startActiveSpan<T>(name: string, fn: (span: Span) => Promise<T>, options?: SpanOptions, ctx?: Context$1): Promise<T>;
|
|
19510
|
-
startSpan(name: string, options?: SpanOptions, ctx?: Context$1): Span;
|
|
19511
|
-
}
|
|
19512
|
-
|
|
19513
|
-
type PreciseDateOrigin = {
|
|
19514
|
-
hrtime: [number, number];
|
|
19515
|
-
timestamp: PreciseDate;
|
|
19516
|
-
};
|
|
19517
|
-
declare function preciseDateOriginNow(): PreciseDateOrigin;
|
|
19518
|
-
declare function calculatePreciseDateHrTime(origin: PreciseDateOrigin): [number, number];
|
|
19519
|
-
|
|
19520
|
-
type LogLevel = "log" | "error" | "warn" | "info" | "debug";
|
|
19521
|
-
type TaskLoggerConfig = {
|
|
19522
|
-
logger: Logger;
|
|
19523
|
-
tracer: TriggerTracer;
|
|
19524
|
-
level: LogLevel;
|
|
19525
|
-
preciseDateOrigin: PreciseDateOrigin;
|
|
19526
|
-
};
|
|
19527
|
-
interface TaskLogger {
|
|
19528
|
-
debug(message: string, properties?: Record<string, unknown>): void;
|
|
19529
|
-
log(message: string, properties?: Record<string, unknown>): void;
|
|
19530
|
-
info(message: string, properties?: Record<string, unknown>): void;
|
|
19531
|
-
warn(message: string, properties?: Record<string, unknown>): void;
|
|
19532
|
-
error(message: string, properties?: Record<string, unknown>): void;
|
|
19533
|
-
trace<T>(name: string, fn: (span: Span) => Promise<T>, options?: SpanOptions): Promise<T>;
|
|
19534
|
-
}
|
|
19535
|
-
declare class OtelTaskLogger implements TaskLogger {
|
|
19536
|
-
#private;
|
|
19537
|
-
private readonly _config;
|
|
19538
|
-
private readonly _level;
|
|
19539
|
-
constructor(_config: TaskLoggerConfig);
|
|
19540
|
-
debug(message: string, properties?: Record<string, unknown>): void;
|
|
19541
|
-
log(message: string, properties?: Record<string, unknown>): void;
|
|
19542
|
-
info(message: string, properties?: Record<string, unknown>): void;
|
|
19543
|
-
warn(message: string, properties?: Record<string, unknown>): void;
|
|
19544
|
-
error(message: string, properties?: Record<string, unknown>): void;
|
|
19545
|
-
trace<T>(name: string, fn: (span: Span) => Promise<T>, options?: SpanOptions): Promise<T>;
|
|
19546
|
-
}
|
|
19547
|
-
|
|
19548
20073
|
declare class LoggerAPI implements TaskLogger {
|
|
19549
20074
|
#private;
|
|
19550
20075
|
private static _instance?;
|
|
@@ -19563,6 +20088,36 @@ declare class LoggerAPI implements TaskLogger {
|
|
|
19563
20088
|
/** Entrypoint for logger API */
|
|
19564
20089
|
declare const logger: LoggerAPI;
|
|
19565
20090
|
|
|
20091
|
+
type ClockTime = [number, number];
|
|
20092
|
+
interface Clock {
|
|
20093
|
+
preciseNow(): ClockTime;
|
|
20094
|
+
reset(): void;
|
|
20095
|
+
}
|
|
20096
|
+
|
|
20097
|
+
declare class ClockAPI {
|
|
20098
|
+
#private;
|
|
20099
|
+
private static _instance?;
|
|
20100
|
+
private constructor();
|
|
20101
|
+
static getInstance(): ClockAPI;
|
|
20102
|
+
setGlobalClock(clock: Clock): boolean;
|
|
20103
|
+
preciseNow(): ClockTime;
|
|
20104
|
+
reset(): void;
|
|
20105
|
+
}
|
|
20106
|
+
|
|
20107
|
+
/** Entrypoint for clock API */
|
|
20108
|
+
declare const clock: ClockAPI;
|
|
20109
|
+
|
|
20110
|
+
declare const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 256;
|
|
20111
|
+
declare const OTEL_LOG_ATTRIBUTE_COUNT_LIMIT = 256;
|
|
20112
|
+
declare const OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT = 1028;
|
|
20113
|
+
declare const OTEL_LOG_ATTRIBUTE_VALUE_LENGTH_LIMIT = 1028;
|
|
20114
|
+
declare const OTEL_SPAN_EVENT_COUNT_LIMIT = 10;
|
|
20115
|
+
declare const OTEL_LINK_COUNT_LIMIT = 2;
|
|
20116
|
+
declare const OTEL_ATTRIBUTE_PER_LINK_COUNT_LIMIT = 10;
|
|
20117
|
+
declare const OTEL_ATTRIBUTE_PER_EVENT_COUNT_LIMIT = 10;
|
|
20118
|
+
declare const OFFLOAD_IO_PACKET_LENGTH_LIMIT: number;
|
|
20119
|
+
declare function imposeAttributeLimits(attributes: Attributes): Attributes;
|
|
20120
|
+
|
|
19566
20121
|
declare const SemanticInternalAttributes: {
|
|
19567
20122
|
ENVIRONMENT_ID: string;
|
|
19568
20123
|
ENVIRONMENT_TYPE: string;
|
|
@@ -19586,6 +20141,7 @@ declare const SemanticInternalAttributes: {
|
|
|
19586
20141
|
SPAN_PARTIAL: string;
|
|
19587
20142
|
SPAN_ID: string;
|
|
19588
20143
|
OUTPUT: string;
|
|
20144
|
+
OUTPUT_TYPE: string;
|
|
19589
20145
|
STYLE: string;
|
|
19590
20146
|
STYLE_ICON: string;
|
|
19591
20147
|
STYLE_VARIANT: string;
|
|
@@ -19593,6 +20149,7 @@ declare const SemanticInternalAttributes: {
|
|
|
19593
20149
|
METADATA: string;
|
|
19594
20150
|
TRIGGER: string;
|
|
19595
20151
|
PAYLOAD: string;
|
|
20152
|
+
PAYLOAD_TYPE: string;
|
|
19596
20153
|
SHOW: string;
|
|
19597
20154
|
SHOW_ACTIONS: string;
|
|
19598
20155
|
WORKER_ID: string;
|
|
@@ -19605,7 +20162,7 @@ declare const SemanticInternalAttributes: {
|
|
|
19605
20162
|
RETRY_COUNT: string;
|
|
19606
20163
|
};
|
|
19607
20164
|
|
|
19608
|
-
declare function iconStringForSeverity(severityNumber: SeverityNumber): "
|
|
20165
|
+
declare function iconStringForSeverity(severityNumber: SeverityNumber): "trace" | "debug" | "info" | "warn" | "error" | "fatal" | undefined;
|
|
19609
20166
|
|
|
19610
20167
|
type DurationOptions = {
|
|
19611
20168
|
style?: "long" | "short";
|
|
@@ -19623,7 +20180,6 @@ declare function getEnvVar(name: string): string | undefined;
|
|
|
19623
20180
|
|
|
19624
20181
|
type TaskContext = {
|
|
19625
20182
|
ctx: TaskRunContext;
|
|
19626
|
-
payload: any;
|
|
19627
20183
|
worker: BackgroundWorkerProperties;
|
|
19628
20184
|
};
|
|
19629
20185
|
declare class TaskContextManager {
|
|
@@ -19631,10 +20187,8 @@ declare class TaskContextManager {
|
|
|
19631
20187
|
private _storage;
|
|
19632
20188
|
get isInsideTask(): boolean;
|
|
19633
20189
|
get ctx(): TaskRunContext | undefined;
|
|
19634
|
-
get payload(): any | undefined;
|
|
19635
20190
|
get worker(): BackgroundWorkerProperties | undefined;
|
|
19636
20191
|
get attributes(): Attributes;
|
|
19637
|
-
get payloadAttributes(): Attributes;
|
|
19638
20192
|
get workerAttributes(): Attributes;
|
|
19639
20193
|
get contextAttributes(): Attributes;
|
|
19640
20194
|
runWith<R extends (...args: any[]) => Promise<any>>(context: TaskContext, fn: R): Promise<ReturnType<R>>;
|
|
@@ -19678,8 +20232,12 @@ declare class DevRuntimeManager implements RuntimeManager {
|
|
|
19678
20232
|
resumeTask(completion: TaskRunExecutionResult, execution: TaskRunExecution): void;
|
|
19679
20233
|
}
|
|
19680
20234
|
|
|
20235
|
+
type ProdRuntimeManagerOptions = {
|
|
20236
|
+
waitThresholdInMs?: number;
|
|
20237
|
+
};
|
|
19681
20238
|
declare class ProdRuntimeManager implements RuntimeManager {
|
|
19682
20239
|
private ipc;
|
|
20240
|
+
private options;
|
|
19683
20241
|
_taskWaits: Map<string, {
|
|
19684
20242
|
resolve: (value: TaskRunExecutionResult) => void;
|
|
19685
20243
|
reject: (err?: any) => void;
|
|
@@ -19689,11 +20247,11 @@ declare class ProdRuntimeManager implements RuntimeManager {
|
|
|
19689
20247
|
reject: (err?: any) => void;
|
|
19690
20248
|
}>;
|
|
19691
20249
|
_waitForRestore: {
|
|
19692
|
-
resolve: (value
|
|
20250
|
+
resolve: (value: "restore") => void;
|
|
19693
20251
|
reject: (err?: any) => void;
|
|
19694
20252
|
} | undefined;
|
|
19695
20253
|
_tasks: Map<string, TaskMetadataWithFilePath>;
|
|
19696
|
-
constructor(ipc: ZodIpcConnection<typeof ProdWorkerToChildMessages, typeof ProdChildToWorkerMessages
|
|
20254
|
+
constructor(ipc: ZodIpcConnection<typeof ProdWorkerToChildMessages, typeof ProdChildToWorkerMessages>, options?: ProdRuntimeManagerOptions);
|
|
19697
20255
|
disable(): void;
|
|
19698
20256
|
registerTasks(tasks: TaskMetadataWithFilePath[]): void;
|
|
19699
20257
|
getTaskMetadata(id: string): TaskMetadataWithFilePath | undefined;
|
|
@@ -19710,13 +20268,25 @@ declare class ProdRuntimeManager implements RuntimeManager {
|
|
|
19710
20268
|
ctx: TaskRunContext;
|
|
19711
20269
|
}): Promise<BatchTaskRunExecutionResult>;
|
|
19712
20270
|
resumeTask(completion: TaskRunExecutionResult, execution: TaskRunExecution): void;
|
|
20271
|
+
private get waitThresholdInMs();
|
|
20272
|
+
}
|
|
20273
|
+
|
|
20274
|
+
type PreciseWallClockOptions = {
|
|
20275
|
+
origin?: ClockTime;
|
|
20276
|
+
now?: PreciseDate;
|
|
20277
|
+
};
|
|
20278
|
+
declare class PreciseWallClock implements Clock {
|
|
20279
|
+
#private;
|
|
20280
|
+
private _origin;
|
|
20281
|
+
constructor(options?: PreciseWallClockOptions);
|
|
20282
|
+
preciseNow(): [number, number];
|
|
20283
|
+
reset(): void;
|
|
19713
20284
|
}
|
|
19714
20285
|
|
|
19715
20286
|
declare class ConsoleInterceptor {
|
|
19716
20287
|
#private;
|
|
19717
20288
|
private readonly logger;
|
|
19718
|
-
|
|
19719
|
-
constructor(logger: logsAPI.Logger, preciseDateOrigin: PreciseDateOrigin);
|
|
20289
|
+
constructor(logger: logsAPI.Logger);
|
|
19720
20290
|
intercept<T>(console: Console, callback: () => Promise<T>): Promise<T>;
|
|
19721
20291
|
log(...args: unknown[]): void;
|
|
19722
20292
|
info(...args: unknown[]): void;
|
|
@@ -19797,6 +20367,22 @@ declare class TaskExecutor {
|
|
|
19797
20367
|
|
|
19798
20368
|
declare function detectDependencyVersion(dependency: string): string | undefined;
|
|
19799
20369
|
|
|
20370
|
+
type IOPacket = {
|
|
20371
|
+
data?: string | undefined;
|
|
20372
|
+
dataType: string;
|
|
20373
|
+
};
|
|
20374
|
+
declare function parsePacket(value: IOPacket): Promise<any>;
|
|
20375
|
+
declare function stringifyIO(value: any): Promise<IOPacket>;
|
|
20376
|
+
declare function conditionallyExportPacket(packet: IOPacket, pathPrefix: string, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
20377
|
+
declare function packetRequiresOffloading(packet: IOPacket): {
|
|
20378
|
+
needsOffloading: boolean;
|
|
20379
|
+
size: number;
|
|
20380
|
+
};
|
|
20381
|
+
declare function conditionallyImportPacket(packet: IOPacket, tracer?: TriggerTracer): Promise<IOPacket>;
|
|
20382
|
+
declare function createPacketAttributes(packet: IOPacket, dataKey: string, dataTypeKey: string): Promise<Attributes | undefined>;
|
|
20383
|
+
declare function createPacketAttributesAsJson(data: any, dataType: string): Promise<Attributes>;
|
|
20384
|
+
declare function prettyPrintPacket(rawData: any, dataType?: string): Promise<string>;
|
|
20385
|
+
|
|
19800
20386
|
declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturnType<{
|
|
19801
20387
|
payload?: any;
|
|
19802
20388
|
context?: any;
|
|
@@ -19994,4 +20580,4 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19994
20580
|
dependentAttempt?: string | undefined;
|
|
19995
20581
|
}>;
|
|
19996
20582
|
|
|
19997
|
-
export { Accessory, ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, type Context, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, 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, 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, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages,
|
|
20583
|
+
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, DeploymentErrorData, 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, type 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, TaskMetadataFailedToParseData, 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, ZodSchemaParsedError, 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, groupTaskMetadataIssuesByTask, iconStringForSeverity, imposeAttributeLimits, isCancellationSpanEvent, isExceptionSpanEvent, logLevels, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, packetRequiresOffloading, parseBatchTriggerTaskRequestBody, parseError, parsePacket, parseTriggerTaskRequestBody, prettyPrintPacket, primitiveValueOrflattenedAttributes, runtime, serverWebsocketMessages, stringPatternMatchers, stringifyIO, taskContextManager, unflattenAttributes, workerToChildMessages };
|