@trigger.dev/core 0.0.0-prerelease-20240718194312 → 0.0.0-prerelease-20240724110801
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/{catalog-h79CG5Wy.d.ts → catalog-1uqiDu4t.d.ts} +2 -2
- package/dist/{catalog-H7yFiZ60.d.mts → catalog-HfeyVfYa.d.mts} +2 -2
- package/dist/{manager-KvCabW1a.d.mts → manager-CkUnBH2E.d.mts} +1 -1
- package/dist/{manager-OBA35PzR.d.ts → manager-y-nT-ymn.d.ts} +1 -1
- package/dist/v3/dev/index.d.mts +2 -2
- package/dist/v3/dev/index.d.ts +2 -2
- package/dist/v3/errors.d.mts +1 -1
- package/dist/v3/errors.d.ts +1 -1
- package/dist/v3/index.d.mts +45 -33
- package/dist/v3/index.d.ts +45 -33
- package/dist/v3/index.js +29 -2
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +28 -3
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +1 -1
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +1 -1
- package/dist/v3/otel/index.mjs.map +1 -1
- package/dist/v3/prod/index.d.mts +3 -3
- package/dist/v3/prod/index.d.ts +3 -3
- package/dist/v3/schemas/index.d.mts +87 -21
- package/dist/v3/schemas/index.d.ts +87 -21
- package/dist/v3/schemas/index.js +16 -1
- package/dist/v3/schemas/index.js.map +1 -1
- package/dist/v3/schemas/index.mjs +15 -2
- package/dist/v3/schemas/index.mjs.map +1 -1
- package/dist/v3/utils/ioSerialization.js +27 -2
- package/dist/v3/utils/ioSerialization.js.map +1 -1
- package/dist/v3/utils/ioSerialization.mjs +27 -2
- package/dist/v3/utils/ioSerialization.mjs.map +1 -1
- package/dist/v3/utils/retries.d.mts +1 -1
- package/dist/v3/utils/retries.d.ts +1 -1
- package/dist/v3/workers/index.d.mts +6 -6
- package/dist/v3/workers/index.d.ts +6 -6
- package/dist/v3/workers/index.js +27 -2
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +27 -2
- package/dist/v3/workers/index.mjs.map +1 -1
- package/dist/v3/zodfetch.d.mts +1 -1
- package/dist/v3/zodfetch.d.ts +1 -1
- package/package.json +3 -3
- package/dist/{common-CLW82lkt.d.mts → common-ufw5MzBe.d.mts} +66 -66
- package/dist/{common-CLW82lkt.d.ts → common-ufw5MzBe.d.ts} +66 -66
- package/dist/{messages-JvHJ83wv.d.mts → messages-7b5K4qKr.d.mts} +666 -666
- package/dist/{messages-JvHJ83wv.d.ts → messages-7b5K4qKr.d.ts} +666 -666
- package/dist/{schemas-C9ssfehv.d.mts → schemas-kjSfajbV.d.mts} +48 -48
- package/dist/{schemas-C9ssfehv.d.ts → schemas-kjSfajbV.d.ts} +48 -48
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { B as BatchTaskRunExecutionResult, f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, a as TaskRunContext, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, T as TaskRunExecutionResult, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../../common-
|
|
3
|
-
export { c as BackgroundWorkerClientMessages, B as BackgroundWorkerProperties, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../../messages-
|
|
4
|
-
import { P as Prettify } from '../../schemas-
|
|
5
|
-
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, a as TaskFileMetadata, T as TaskMetadata, b as TaskMetadataWithFilePath, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-
|
|
2
|
+
export { B as BatchTaskRunExecutionResult, f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, a as TaskRunContext, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, T as TaskRunExecutionResult, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../../common-ufw5MzBe.js';
|
|
3
|
+
export { c as BackgroundWorkerClientMessages, B as BackgroundWorkerProperties, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../../messages-7b5K4qKr.js';
|
|
4
|
+
import { P as Prettify } from '../../schemas-kjSfajbV.js';
|
|
5
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, a as TaskFileMetadata, T as TaskMetadata, b as TaskMetadataWithFilePath, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-kjSfajbV.js';
|
|
6
6
|
|
|
7
7
|
declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
|
|
8
8
|
url: z.ZodString;
|
|
@@ -84,9 +84,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
|
|
|
84
84
|
title: string;
|
|
85
85
|
}>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
name: string;
|
|
87
88
|
id: string;
|
|
88
89
|
createdAt: Date;
|
|
89
|
-
name: string;
|
|
90
90
|
slug: string;
|
|
91
91
|
organization: {
|
|
92
92
|
id: string;
|
|
@@ -96,9 +96,9 @@ declare const GetProjectResponseBody: z.ZodObject<{
|
|
|
96
96
|
};
|
|
97
97
|
externalRef: string;
|
|
98
98
|
}, {
|
|
99
|
+
name: string;
|
|
99
100
|
id: string;
|
|
100
101
|
createdAt: Date;
|
|
101
|
-
name: string;
|
|
102
102
|
slug: string;
|
|
103
103
|
organization: {
|
|
104
104
|
id: string;
|
|
@@ -132,9 +132,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
132
132
|
title: string;
|
|
133
133
|
}>;
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
name: string;
|
|
135
136
|
id: string;
|
|
136
137
|
createdAt: Date;
|
|
137
|
-
name: string;
|
|
138
138
|
slug: string;
|
|
139
139
|
organization: {
|
|
140
140
|
id: string;
|
|
@@ -144,9 +144,9 @@ declare const GetProjectsResponseBody: z.ZodArray<z.ZodObject<{
|
|
|
144
144
|
};
|
|
145
145
|
externalRef: string;
|
|
146
146
|
}, {
|
|
147
|
+
name: string;
|
|
147
148
|
id: string;
|
|
148
149
|
createdAt: Date;
|
|
149
|
-
name: string;
|
|
150
150
|
slug: string;
|
|
151
151
|
organization: {
|
|
152
152
|
id: string;
|
|
@@ -804,6 +804,8 @@ declare const CreateBackgroundWorkerResponse: z.ZodObject<{
|
|
|
804
804
|
contentHash: string;
|
|
805
805
|
}>;
|
|
806
806
|
type CreateBackgroundWorkerResponse = z.infer<typeof CreateBackgroundWorkerResponse>;
|
|
807
|
+
declare const RunTags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
808
|
+
type RunTags = z.infer<typeof RunTags>;
|
|
807
809
|
declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
808
810
|
payload: z.ZodAny;
|
|
809
811
|
context: z.ZodAny;
|
|
@@ -1002,6 +1004,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1002
1004
|
payloadType: z.ZodOptional<z.ZodString>;
|
|
1003
1005
|
delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
1004
1006
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1007
|
+
tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1005
1008
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1006
1009
|
}, "strip", z.ZodTypeAny, {
|
|
1007
1010
|
dependentAttempt?: string | undefined;
|
|
@@ -1050,6 +1053,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1050
1053
|
payloadType?: string | undefined;
|
|
1051
1054
|
delay?: string | Date | undefined;
|
|
1052
1055
|
ttl?: string | number | undefined;
|
|
1056
|
+
tags?: string | string[] | undefined;
|
|
1053
1057
|
maxAttempts?: number | undefined;
|
|
1054
1058
|
}, {
|
|
1055
1059
|
dependentAttempt?: string | undefined;
|
|
@@ -1098,6 +1102,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1098
1102
|
payloadType?: string | undefined;
|
|
1099
1103
|
delay?: string | Date | undefined;
|
|
1100
1104
|
ttl?: string | number | undefined;
|
|
1105
|
+
tags?: string | string[] | undefined;
|
|
1101
1106
|
maxAttempts?: number | undefined;
|
|
1102
1107
|
}>>;
|
|
1103
1108
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1150,6 +1155,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1150
1155
|
payloadType?: string | undefined;
|
|
1151
1156
|
delay?: string | Date | undefined;
|
|
1152
1157
|
ttl?: string | number | undefined;
|
|
1158
|
+
tags?: string | string[] | undefined;
|
|
1153
1159
|
maxAttempts?: number | undefined;
|
|
1154
1160
|
} | undefined;
|
|
1155
1161
|
}, {
|
|
@@ -1202,6 +1208,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1202
1208
|
payloadType?: string | undefined;
|
|
1203
1209
|
delay?: string | Date | undefined;
|
|
1204
1210
|
ttl?: string | number | undefined;
|
|
1211
|
+
tags?: string | string[] | undefined;
|
|
1205
1212
|
maxAttempts?: number | undefined;
|
|
1206
1213
|
} | undefined;
|
|
1207
1214
|
}>;
|
|
@@ -1413,6 +1420,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1413
1420
|
payloadType: z.ZodOptional<z.ZodString>;
|
|
1414
1421
|
delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
1415
1422
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1423
|
+
tags: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1416
1424
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1417
1425
|
}, "strip", z.ZodTypeAny, {
|
|
1418
1426
|
dependentAttempt?: string | undefined;
|
|
@@ -1461,6 +1469,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1461
1469
|
payloadType?: string | undefined;
|
|
1462
1470
|
delay?: string | Date | undefined;
|
|
1463
1471
|
ttl?: string | number | undefined;
|
|
1472
|
+
tags?: string | string[] | undefined;
|
|
1464
1473
|
maxAttempts?: number | undefined;
|
|
1465
1474
|
}, {
|
|
1466
1475
|
dependentAttempt?: string | undefined;
|
|
@@ -1509,6 +1518,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1509
1518
|
payloadType?: string | undefined;
|
|
1510
1519
|
delay?: string | Date | undefined;
|
|
1511
1520
|
ttl?: string | number | undefined;
|
|
1521
|
+
tags?: string | string[] | undefined;
|
|
1512
1522
|
maxAttempts?: number | undefined;
|
|
1513
1523
|
}>>;
|
|
1514
1524
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1561,6 +1571,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1561
1571
|
payloadType?: string | undefined;
|
|
1562
1572
|
delay?: string | Date | undefined;
|
|
1563
1573
|
ttl?: string | number | undefined;
|
|
1574
|
+
tags?: string | string[] | undefined;
|
|
1564
1575
|
maxAttempts?: number | undefined;
|
|
1565
1576
|
} | undefined;
|
|
1566
1577
|
}, {
|
|
@@ -1613,6 +1624,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1613
1624
|
payloadType?: string | undefined;
|
|
1614
1625
|
delay?: string | Date | undefined;
|
|
1615
1626
|
ttl?: string | number | undefined;
|
|
1627
|
+
tags?: string | string[] | undefined;
|
|
1616
1628
|
maxAttempts?: number | undefined;
|
|
1617
1629
|
} | undefined;
|
|
1618
1630
|
}>, "many">;
|
|
@@ -1668,6 +1680,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1668
1680
|
payloadType?: string | undefined;
|
|
1669
1681
|
delay?: string | Date | undefined;
|
|
1670
1682
|
ttl?: string | number | undefined;
|
|
1683
|
+
tags?: string | string[] | undefined;
|
|
1671
1684
|
maxAttempts?: number | undefined;
|
|
1672
1685
|
} | undefined;
|
|
1673
1686
|
}[];
|
|
@@ -1723,6 +1736,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1723
1736
|
payloadType?: string | undefined;
|
|
1724
1737
|
delay?: string | Date | undefined;
|
|
1725
1738
|
ttl?: string | number | undefined;
|
|
1739
|
+
tags?: string | string[] | undefined;
|
|
1726
1740
|
maxAttempts?: number | undefined;
|
|
1727
1741
|
} | undefined;
|
|
1728
1742
|
}[];
|
|
@@ -1771,6 +1785,14 @@ declare const GetBatchResponseBody: z.ZodObject<{
|
|
|
1771
1785
|
}[];
|
|
1772
1786
|
}>;
|
|
1773
1787
|
type GetBatchResponseBody = z.infer<typeof GetBatchResponseBody>;
|
|
1788
|
+
declare const AddTagsRequestBody: z.ZodObject<{
|
|
1789
|
+
tags: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
1790
|
+
}, "strip", z.ZodTypeAny, {
|
|
1791
|
+
tags: (string | string[]) & (string | string[] | undefined);
|
|
1792
|
+
}, {
|
|
1793
|
+
tags: (string | string[]) & (string | string[] | undefined);
|
|
1794
|
+
}>;
|
|
1795
|
+
type AddTagsRequestBody = z.infer<typeof AddTagsRequestBody>;
|
|
1774
1796
|
declare const RescheduleRunRequestBody: z.ZodObject<{
|
|
1775
1797
|
delay: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
1776
1798
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2455,12 +2477,12 @@ declare const RunEnvironmentDetails: z.ZodObject<{
|
|
|
2455
2477
|
name: z.ZodString;
|
|
2456
2478
|
user: z.ZodOptional<z.ZodString>;
|
|
2457
2479
|
}, "strip", z.ZodTypeAny, {
|
|
2458
|
-
id: string;
|
|
2459
2480
|
name: string;
|
|
2481
|
+
id: string;
|
|
2460
2482
|
user?: string | undefined;
|
|
2461
2483
|
}, {
|
|
2462
|
-
id: string;
|
|
2463
2484
|
name: string;
|
|
2485
|
+
id: string;
|
|
2464
2486
|
user?: string | undefined;
|
|
2465
2487
|
}>;
|
|
2466
2488
|
type RunEnvironmentDetails = z.infer<typeof RunEnvironmentDetails>;
|
|
@@ -2606,11 +2628,19 @@ declare const RetrieveRunResponse: z.ZodObject<{
|
|
|
2606
2628
|
delayedUntil: z.ZodOptional<z.ZodDate>;
|
|
2607
2629
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2608
2630
|
expiredAt: z.ZodOptional<z.ZodDate>;
|
|
2631
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
2632
|
+
costInCents: z.ZodNumber;
|
|
2633
|
+
baseCostInCents: z.ZodNumber;
|
|
2634
|
+
durationMs: z.ZodNumber;
|
|
2609
2635
|
}, "strip", z.ZodTypeAny, {
|
|
2610
2636
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2611
2637
|
id: string;
|
|
2638
|
+
tags: string[];
|
|
2612
2639
|
isTest: boolean;
|
|
2613
2640
|
createdAt: Date;
|
|
2641
|
+
durationMs: number;
|
|
2642
|
+
costInCents: number;
|
|
2643
|
+
baseCostInCents: number;
|
|
2614
2644
|
attempts: ({
|
|
2615
2645
|
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
2616
2646
|
id: string;
|
|
@@ -2656,8 +2686,12 @@ declare const RetrieveRunResponse: z.ZodObject<{
|
|
|
2656
2686
|
}, {
|
|
2657
2687
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2658
2688
|
id: string;
|
|
2689
|
+
tags: string[];
|
|
2659
2690
|
isTest: boolean;
|
|
2660
2691
|
createdAt: Date;
|
|
2692
|
+
durationMs: number;
|
|
2693
|
+
costInCents: number;
|
|
2694
|
+
baseCostInCents: number;
|
|
2661
2695
|
attempts: ({
|
|
2662
2696
|
status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
|
|
2663
2697
|
id: string;
|
|
@@ -2708,12 +2742,12 @@ declare const ListRunResponseItem: z.ZodObject<{
|
|
|
2708
2742
|
name: z.ZodString;
|
|
2709
2743
|
user: z.ZodOptional<z.ZodString>;
|
|
2710
2744
|
}, "strip", z.ZodTypeAny, {
|
|
2711
|
-
id: string;
|
|
2712
2745
|
name: string;
|
|
2746
|
+
id: string;
|
|
2713
2747
|
user?: string | undefined;
|
|
2714
2748
|
}, {
|
|
2715
|
-
id: string;
|
|
2716
2749
|
name: string;
|
|
2750
|
+
id: string;
|
|
2717
2751
|
user?: string | undefined;
|
|
2718
2752
|
}>;
|
|
2719
2753
|
id: z.ZodString;
|
|
@@ -2735,16 +2769,24 @@ declare const ListRunResponseItem: z.ZodObject<{
|
|
|
2735
2769
|
delayedUntil: z.ZodOptional<z.ZodDate>;
|
|
2736
2770
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2737
2771
|
expiredAt: z.ZodOptional<z.ZodDate>;
|
|
2772
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
2773
|
+
costInCents: z.ZodNumber;
|
|
2774
|
+
baseCostInCents: z.ZodNumber;
|
|
2775
|
+
durationMs: z.ZodNumber;
|
|
2738
2776
|
}, "strip", z.ZodTypeAny, {
|
|
2739
2777
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2740
2778
|
id: string;
|
|
2779
|
+
tags: string[];
|
|
2741
2780
|
isTest: boolean;
|
|
2742
2781
|
createdAt: Date;
|
|
2782
|
+
durationMs: number;
|
|
2783
|
+
costInCents: number;
|
|
2784
|
+
baseCostInCents: number;
|
|
2743
2785
|
updatedAt: Date;
|
|
2744
2786
|
taskIdentifier: string;
|
|
2745
2787
|
env: {
|
|
2746
|
-
id: string;
|
|
2747
2788
|
name: string;
|
|
2789
|
+
id: string;
|
|
2748
2790
|
user?: string | undefined;
|
|
2749
2791
|
};
|
|
2750
2792
|
isQueued: boolean;
|
|
@@ -2763,13 +2805,17 @@ declare const ListRunResponseItem: z.ZodObject<{
|
|
|
2763
2805
|
}, {
|
|
2764
2806
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2765
2807
|
id: string;
|
|
2808
|
+
tags: string[];
|
|
2766
2809
|
isTest: boolean;
|
|
2767
2810
|
createdAt: Date;
|
|
2811
|
+
durationMs: number;
|
|
2812
|
+
costInCents: number;
|
|
2813
|
+
baseCostInCents: number;
|
|
2768
2814
|
updatedAt: Date;
|
|
2769
2815
|
taskIdentifier: string;
|
|
2770
2816
|
env: {
|
|
2771
|
-
id: string;
|
|
2772
2817
|
name: string;
|
|
2818
|
+
id: string;
|
|
2773
2819
|
user?: string | undefined;
|
|
2774
2820
|
};
|
|
2775
2821
|
isQueued: boolean;
|
|
@@ -2794,12 +2840,12 @@ declare const ListRunResponse: z.ZodObject<{
|
|
|
2794
2840
|
name: z.ZodString;
|
|
2795
2841
|
user: z.ZodOptional<z.ZodString>;
|
|
2796
2842
|
}, "strip", z.ZodTypeAny, {
|
|
2797
|
-
id: string;
|
|
2798
2843
|
name: string;
|
|
2844
|
+
id: string;
|
|
2799
2845
|
user?: string | undefined;
|
|
2800
2846
|
}, {
|
|
2801
|
-
id: string;
|
|
2802
2847
|
name: string;
|
|
2848
|
+
id: string;
|
|
2803
2849
|
user?: string | undefined;
|
|
2804
2850
|
}>;
|
|
2805
2851
|
id: z.ZodString;
|
|
@@ -2821,16 +2867,24 @@ declare const ListRunResponse: z.ZodObject<{
|
|
|
2821
2867
|
delayedUntil: z.ZodOptional<z.ZodDate>;
|
|
2822
2868
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2823
2869
|
expiredAt: z.ZodOptional<z.ZodDate>;
|
|
2870
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
2871
|
+
costInCents: z.ZodNumber;
|
|
2872
|
+
baseCostInCents: z.ZodNumber;
|
|
2873
|
+
durationMs: z.ZodNumber;
|
|
2824
2874
|
}, "strip", z.ZodTypeAny, {
|
|
2825
2875
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2826
2876
|
id: string;
|
|
2877
|
+
tags: string[];
|
|
2827
2878
|
isTest: boolean;
|
|
2828
2879
|
createdAt: Date;
|
|
2880
|
+
durationMs: number;
|
|
2881
|
+
costInCents: number;
|
|
2882
|
+
baseCostInCents: number;
|
|
2829
2883
|
updatedAt: Date;
|
|
2830
2884
|
taskIdentifier: string;
|
|
2831
2885
|
env: {
|
|
2832
|
-
id: string;
|
|
2833
2886
|
name: string;
|
|
2887
|
+
id: string;
|
|
2834
2888
|
user?: string | undefined;
|
|
2835
2889
|
};
|
|
2836
2890
|
isQueued: boolean;
|
|
@@ -2849,13 +2903,17 @@ declare const ListRunResponse: z.ZodObject<{
|
|
|
2849
2903
|
}, {
|
|
2850
2904
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2851
2905
|
id: string;
|
|
2906
|
+
tags: string[];
|
|
2852
2907
|
isTest: boolean;
|
|
2853
2908
|
createdAt: Date;
|
|
2909
|
+
durationMs: number;
|
|
2910
|
+
costInCents: number;
|
|
2911
|
+
baseCostInCents: number;
|
|
2854
2912
|
updatedAt: Date;
|
|
2855
2913
|
taskIdentifier: string;
|
|
2856
2914
|
env: {
|
|
2857
|
-
id: string;
|
|
2858
2915
|
name: string;
|
|
2916
|
+
id: string;
|
|
2859
2917
|
user?: string | undefined;
|
|
2860
2918
|
};
|
|
2861
2919
|
isQueued: boolean;
|
|
@@ -2886,13 +2944,17 @@ declare const ListRunResponse: z.ZodObject<{
|
|
|
2886
2944
|
data: {
|
|
2887
2945
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2888
2946
|
id: string;
|
|
2947
|
+
tags: string[];
|
|
2889
2948
|
isTest: boolean;
|
|
2890
2949
|
createdAt: Date;
|
|
2950
|
+
durationMs: number;
|
|
2951
|
+
costInCents: number;
|
|
2952
|
+
baseCostInCents: number;
|
|
2891
2953
|
updatedAt: Date;
|
|
2892
2954
|
taskIdentifier: string;
|
|
2893
2955
|
env: {
|
|
2894
|
-
id: string;
|
|
2895
2956
|
name: string;
|
|
2957
|
+
id: string;
|
|
2896
2958
|
user?: string | undefined;
|
|
2897
2959
|
};
|
|
2898
2960
|
isQueued: boolean;
|
|
@@ -2917,13 +2979,17 @@ declare const ListRunResponse: z.ZodObject<{
|
|
|
2917
2979
|
data: {
|
|
2918
2980
|
status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
2919
2981
|
id: string;
|
|
2982
|
+
tags: string[];
|
|
2920
2983
|
isTest: boolean;
|
|
2921
2984
|
createdAt: Date;
|
|
2985
|
+
durationMs: number;
|
|
2986
|
+
costInCents: number;
|
|
2987
|
+
baseCostInCents: number;
|
|
2922
2988
|
updatedAt: Date;
|
|
2923
2989
|
taskIdentifier: string;
|
|
2924
2990
|
env: {
|
|
2925
|
-
id: string;
|
|
2926
2991
|
name: string;
|
|
2992
|
+
id: string;
|
|
2927
2993
|
user?: string | undefined;
|
|
2928
2994
|
};
|
|
2929
2995
|
isQueued: boolean;
|
|
@@ -4738,4 +4804,4 @@ declare const SpanMessagingEvent: z.ZodObject<{
|
|
|
4738
4804
|
}>;
|
|
4739
4805
|
type SpanMessagingEvent = z.infer<typeof SpanMessagingEvent>;
|
|
4740
4806
|
|
|
4741
|
-
export { Accessory, AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListRunResponseItem, ListScheduleOptions, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RescheduleRunRequestBody, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunStatus, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskRequestBody, TriggerTaskResponse, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers };
|
|
4807
|
+
export { Accessory, AddTagsRequestBody, AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateEnvironmentVariableRequestBody, CreateScheduleOptions, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListRunResponseItem, ListScheduleOptions, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RescheduleRunRequestBody, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunStatus, RunTags, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskRequestBody, TriggerTaskResponse, UpdateEnvironmentVariableRequestBody, UpdateScheduleOptions, Variant, type WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers };
|
package/dist/v3/schemas/index.js
CHANGED
|
@@ -484,6 +484,11 @@ var CreateBackgroundWorkerResponse = zod.z.object({
|
|
|
484
484
|
version: zod.z.string(),
|
|
485
485
|
contentHash: zod.z.string()
|
|
486
486
|
});
|
|
487
|
+
var RunTag = zod.z.string().max(64, "Tags must be less than 64 characters");
|
|
488
|
+
var RunTags = zod.z.union([
|
|
489
|
+
RunTag,
|
|
490
|
+
RunTag.array().max(3, "You can only set a maximum of 3 tags on a run.")
|
|
491
|
+
]);
|
|
487
492
|
var TriggerTaskRequestBody = zod.z.object({
|
|
488
493
|
payload: zod.z.any(),
|
|
489
494
|
context: zod.z.any(),
|
|
@@ -498,6 +503,7 @@ var TriggerTaskRequestBody = zod.z.object({
|
|
|
498
503
|
payloadType: zod.z.string().optional(),
|
|
499
504
|
delay: zod.z.string().or(zod.z.coerce.date()).optional(),
|
|
500
505
|
ttl: zod.z.string().or(zod.z.number().nonnegative().int()).optional(),
|
|
506
|
+
tags: RunTags.optional(),
|
|
501
507
|
maxAttempts: zod.z.number().int().optional()
|
|
502
508
|
}).optional()
|
|
503
509
|
});
|
|
@@ -525,6 +531,9 @@ var GetBatchResponseBody = zod.z.object({
|
|
|
525
531
|
])
|
|
526
532
|
}))
|
|
527
533
|
});
|
|
534
|
+
var AddTagsRequestBody = zod.z.object({
|
|
535
|
+
tags: RunTags
|
|
536
|
+
});
|
|
528
537
|
var RescheduleRunRequestBody = zod.z.object({
|
|
529
538
|
delay: zod.z.string().or(zod.z.coerce.date())
|
|
530
539
|
});
|
|
@@ -787,7 +796,11 @@ var CommonRunFields = {
|
|
|
787
796
|
finishedAt: zod.z.coerce.date().optional(),
|
|
788
797
|
delayedUntil: zod.z.coerce.date().optional(),
|
|
789
798
|
ttl: zod.z.string().optional(),
|
|
790
|
-
expiredAt: zod.z.coerce.date().optional()
|
|
799
|
+
expiredAt: zod.z.coerce.date().optional(),
|
|
800
|
+
tags: zod.z.string().array(),
|
|
801
|
+
costInCents: zod.z.number(),
|
|
802
|
+
baseCostInCents: zod.z.number(),
|
|
803
|
+
durationMs: zod.z.number()
|
|
791
804
|
};
|
|
792
805
|
var RetrieveRunResponse = zod.z.object({
|
|
793
806
|
...CommonRunFields,
|
|
@@ -1897,6 +1910,7 @@ var SpanMessagingEvent = zod.z.object({
|
|
|
1897
1910
|
destination: zod.z.string().optional()
|
|
1898
1911
|
});
|
|
1899
1912
|
|
|
1913
|
+
exports.AddTagsRequestBody = AddTagsRequestBody;
|
|
1900
1914
|
exports.AttemptStatus = AttemptStatus;
|
|
1901
1915
|
exports.BackgroundWorkerClientMessages = BackgroundWorkerClientMessages;
|
|
1902
1916
|
exports.BackgroundWorkerMetadata = BackgroundWorkerMetadata;
|
|
@@ -1979,6 +1993,7 @@ exports.RetryOptions = RetryOptions;
|
|
|
1979
1993
|
exports.RunEnvironmentDetails = RunEnvironmentDetails;
|
|
1980
1994
|
exports.RunScheduleDetails = RunScheduleDetails;
|
|
1981
1995
|
exports.RunStatus = RunStatus;
|
|
1996
|
+
exports.RunTags = RunTags;
|
|
1982
1997
|
exports.ScheduleGenerator = ScheduleGenerator;
|
|
1983
1998
|
exports.ScheduleMetadata = ScheduleMetadata;
|
|
1984
1999
|
exports.ScheduleObject = ScheduleObject;
|