@trigger.dev/core 3.0.0-beta.46 → 3.0.0-beta.48
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-9G8AqnI9.d.ts → catalog-N-X0Te3W.d.mts} +5 -23
- package/dist/{catalog-Y0mRLMtJ.d.mts → catalog-NxVZnWZh.d.ts} +5 -23
- package/dist/{common-55Mqj8JP.d.mts → common-fIyU5pmz.d.mts} +13 -0
- package/dist/{common-55Mqj8JP.d.ts → common-fIyU5pmz.d.ts} +13 -0
- package/dist/{manager-6NRInm7C.d.ts → manager-2ZQ3_twq.d.ts} +1 -1
- package/dist/{manager-2AqSY67c.d.mts → manager-X_HrWQ7_.d.mts} +1 -1
- package/dist/{messages-nXkzt5CT.d.mts → messages-Sggr4tid.d.mts} +162 -0
- package/dist/{messages-nXkzt5CT.d.ts → messages-Sggr4tid.d.ts} +162 -0
- package/dist/{schemas-CeAee_C2.d.mts → schemas-Zy7mGFgD.d.mts} +19 -0
- package/dist/{schemas-CeAee_C2.d.ts → schemas-Zy7mGFgD.d.ts} +19 -0
- package/dist/tracer-N0p2Fuuv.d.mts +23 -0
- package/dist/tracer-N0p2Fuuv.d.ts +23 -0
- package/dist/v3/dev/index.d.mts +2 -2
- package/dist/v3/dev/index.d.ts +2 -2
- package/dist/v3/index.d.mts +50 -38
- package/dist/v3/index.d.ts +50 -38
- package/dist/v3/index.js +470 -303
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +467 -304
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +15 -5
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +15 -5
- 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 +16 -4
- package/dist/v3/schemas/index.d.ts +16 -4
- package/dist/v3/schemas/index.js +3 -1
- package/dist/v3/schemas/index.js.map +1 -1
- package/dist/v3/schemas/index.mjs +3 -1
- package/dist/v3/schemas/index.mjs.map +1 -1
- package/dist/v3/workers/index.d.mts +7 -6
- package/dist/v3/workers/index.d.ts +7 -6
- package/dist/v3/workers/index.js +250 -96
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +250 -96
- package/dist/v3/workers/index.mjs.map +1 -1
- package/dist/v3/zodfetch.d.mts +15 -2
- package/dist/v3/zodfetch.d.ts +15 -2
- package/dist/v3/zodfetch.js +248 -28
- package/dist/v3/zodfetch.js.map +1 -1
- package/dist/v3/zodfetch.mjs +246 -29
- package/dist/v3/zodfetch.mjs.map +1 -1
- package/package.json +1 -1
package/dist/v3/prod/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-
|
|
2
|
-
import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-
|
|
1
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-fIyU5pmz.mjs';
|
|
2
|
+
import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-Sggr4tid.mjs';
|
|
3
3
|
import { ZodIpcConnection } from '../zodIpc.mjs';
|
|
4
|
-
import { R as RuntimeManager } from '../../manager-
|
|
4
|
+
import { R as RuntimeManager } from '../../manager-X_HrWQ7_.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../zodSocket.mjs';
|
|
7
7
|
import 'socket.io-client';
|
package/dist/v3/prod/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-
|
|
2
|
-
import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-
|
|
1
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-fIyU5pmz.js';
|
|
2
|
+
import { P as ProdWorkerToChildMessages, a as ProdChildToWorkerMessages } from '../../messages-Sggr4tid.js';
|
|
3
3
|
import { ZodIpcConnection } from '../zodIpc.js';
|
|
4
|
-
import { R as RuntimeManager } from '../../manager-
|
|
4
|
+
import { R as RuntimeManager } from '../../manager-2ZQ3_twq.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../zodSocket.js';
|
|
7
7
|
import 'socket.io-client';
|
|
@@ -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, c as TaskRunError, k as TaskRunErrorCodes, b 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, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, i as ResolvedConfig, R as RetryOptions, S as SlidingWindowRateLimit, T as TaskFileMetadata, b as TaskMetadata, a as TaskMetadataWithFilePath, j 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, c as TaskRunError, k as TaskRunErrorCodes, b 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-fIyU5pmz.mjs';
|
|
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-Sggr4tid.mjs';
|
|
4
|
+
import { P as Prettify } from '../../schemas-Zy7mGFgD.mjs';
|
|
5
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, i as ResolvedConfig, R as RetryOptions, S as SlidingWindowRateLimit, T as TaskFileMetadata, b as TaskMetadata, a as TaskMetadataWithFilePath, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-Zy7mGFgD.mjs';
|
|
6
6
|
|
|
7
7
|
declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
|
|
8
8
|
url: z.ZodString;
|
|
@@ -968,6 +968,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
968
968
|
payloadType: z.ZodOptional<z.ZodString>;
|
|
969
969
|
delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
970
970
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
971
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
971
972
|
}, "strip", z.ZodTypeAny, {
|
|
972
973
|
dependentAttempt?: string | undefined;
|
|
973
974
|
dependentBatch?: string | undefined;
|
|
@@ -1015,6 +1016,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1015
1016
|
payloadType?: string | undefined;
|
|
1016
1017
|
delay?: string | Date | undefined;
|
|
1017
1018
|
ttl?: string | number | undefined;
|
|
1019
|
+
maxAttempts?: number | undefined;
|
|
1018
1020
|
}, {
|
|
1019
1021
|
dependentAttempt?: string | undefined;
|
|
1020
1022
|
dependentBatch?: string | undefined;
|
|
@@ -1062,6 +1064,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1062
1064
|
payloadType?: string | undefined;
|
|
1063
1065
|
delay?: string | Date | undefined;
|
|
1064
1066
|
ttl?: string | number | undefined;
|
|
1067
|
+
maxAttempts?: number | undefined;
|
|
1065
1068
|
}>>;
|
|
1066
1069
|
}, "strip", z.ZodTypeAny, {
|
|
1067
1070
|
payload?: any;
|
|
@@ -1113,6 +1116,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1113
1116
|
payloadType?: string | undefined;
|
|
1114
1117
|
delay?: string | Date | undefined;
|
|
1115
1118
|
ttl?: string | number | undefined;
|
|
1119
|
+
maxAttempts?: number | undefined;
|
|
1116
1120
|
} | undefined;
|
|
1117
1121
|
}, {
|
|
1118
1122
|
payload?: any;
|
|
@@ -1164,6 +1168,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1164
1168
|
payloadType?: string | undefined;
|
|
1165
1169
|
delay?: string | Date | undefined;
|
|
1166
1170
|
ttl?: string | number | undefined;
|
|
1171
|
+
maxAttempts?: number | undefined;
|
|
1167
1172
|
} | undefined;
|
|
1168
1173
|
}>;
|
|
1169
1174
|
type TriggerTaskRequestBody = z.infer<typeof TriggerTaskRequestBody>;
|
|
@@ -1374,6 +1379,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1374
1379
|
payloadType: z.ZodOptional<z.ZodString>;
|
|
1375
1380
|
delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
1376
1381
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1382
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1377
1383
|
}, "strip", z.ZodTypeAny, {
|
|
1378
1384
|
dependentAttempt?: string | undefined;
|
|
1379
1385
|
dependentBatch?: string | undefined;
|
|
@@ -1421,6 +1427,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1421
1427
|
payloadType?: string | undefined;
|
|
1422
1428
|
delay?: string | Date | undefined;
|
|
1423
1429
|
ttl?: string | number | undefined;
|
|
1430
|
+
maxAttempts?: number | undefined;
|
|
1424
1431
|
}, {
|
|
1425
1432
|
dependentAttempt?: string | undefined;
|
|
1426
1433
|
dependentBatch?: string | undefined;
|
|
@@ -1468,6 +1475,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1468
1475
|
payloadType?: string | undefined;
|
|
1469
1476
|
delay?: string | Date | undefined;
|
|
1470
1477
|
ttl?: string | number | undefined;
|
|
1478
|
+
maxAttempts?: number | undefined;
|
|
1471
1479
|
}>>;
|
|
1472
1480
|
}, "strip", z.ZodTypeAny, {
|
|
1473
1481
|
payload?: any;
|
|
@@ -1519,6 +1527,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1519
1527
|
payloadType?: string | undefined;
|
|
1520
1528
|
delay?: string | Date | undefined;
|
|
1521
1529
|
ttl?: string | number | undefined;
|
|
1530
|
+
maxAttempts?: number | undefined;
|
|
1522
1531
|
} | undefined;
|
|
1523
1532
|
}, {
|
|
1524
1533
|
payload?: any;
|
|
@@ -1570,6 +1579,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1570
1579
|
payloadType?: string | undefined;
|
|
1571
1580
|
delay?: string | Date | undefined;
|
|
1572
1581
|
ttl?: string | number | undefined;
|
|
1582
|
+
maxAttempts?: number | undefined;
|
|
1573
1583
|
} | undefined;
|
|
1574
1584
|
}>, "many">;
|
|
1575
1585
|
dependentAttempt: z.ZodOptional<z.ZodString>;
|
|
@@ -1624,6 +1634,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1624
1634
|
payloadType?: string | undefined;
|
|
1625
1635
|
delay?: string | Date | undefined;
|
|
1626
1636
|
ttl?: string | number | undefined;
|
|
1637
|
+
maxAttempts?: number | undefined;
|
|
1627
1638
|
} | undefined;
|
|
1628
1639
|
}[];
|
|
1629
1640
|
dependentAttempt?: string | undefined;
|
|
@@ -1678,6 +1689,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1678
1689
|
payloadType?: string | undefined;
|
|
1679
1690
|
delay?: string | Date | undefined;
|
|
1680
1691
|
ttl?: string | number | undefined;
|
|
1692
|
+
maxAttempts?: number | undefined;
|
|
1681
1693
|
} | undefined;
|
|
1682
1694
|
}[];
|
|
1683
1695
|
dependentAttempt?: string | undefined;
|
|
@@ -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, c as TaskRunError, k as TaskRunErrorCodes, b 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, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, i as ResolvedConfig, R as RetryOptions, S as SlidingWindowRateLimit, T as TaskFileMetadata, b as TaskMetadata, a as TaskMetadataWithFilePath, j 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, c as TaskRunError, k as TaskRunErrorCodes, b 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-fIyU5pmz.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-Sggr4tid.js';
|
|
4
|
+
import { P as Prettify } from '../../schemas-Zy7mGFgD.js';
|
|
5
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, g as PostStartCauses, h as PreStopCauses, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, i as ResolvedConfig, R as RetryOptions, S as SlidingWindowRateLimit, T as TaskFileMetadata, b as TaskMetadata, a as TaskMetadataWithFilePath, j as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../../schemas-Zy7mGFgD.js';
|
|
6
6
|
|
|
7
7
|
declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
|
|
8
8
|
url: z.ZodString;
|
|
@@ -968,6 +968,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
968
968
|
payloadType: z.ZodOptional<z.ZodString>;
|
|
969
969
|
delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
970
970
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
971
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
971
972
|
}, "strip", z.ZodTypeAny, {
|
|
972
973
|
dependentAttempt?: string | undefined;
|
|
973
974
|
dependentBatch?: string | undefined;
|
|
@@ -1015,6 +1016,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1015
1016
|
payloadType?: string | undefined;
|
|
1016
1017
|
delay?: string | Date | undefined;
|
|
1017
1018
|
ttl?: string | number | undefined;
|
|
1019
|
+
maxAttempts?: number | undefined;
|
|
1018
1020
|
}, {
|
|
1019
1021
|
dependentAttempt?: string | undefined;
|
|
1020
1022
|
dependentBatch?: string | undefined;
|
|
@@ -1062,6 +1064,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1062
1064
|
payloadType?: string | undefined;
|
|
1063
1065
|
delay?: string | Date | undefined;
|
|
1064
1066
|
ttl?: string | number | undefined;
|
|
1067
|
+
maxAttempts?: number | undefined;
|
|
1065
1068
|
}>>;
|
|
1066
1069
|
}, "strip", z.ZodTypeAny, {
|
|
1067
1070
|
payload?: any;
|
|
@@ -1113,6 +1116,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1113
1116
|
payloadType?: string | undefined;
|
|
1114
1117
|
delay?: string | Date | undefined;
|
|
1115
1118
|
ttl?: string | number | undefined;
|
|
1119
|
+
maxAttempts?: number | undefined;
|
|
1116
1120
|
} | undefined;
|
|
1117
1121
|
}, {
|
|
1118
1122
|
payload?: any;
|
|
@@ -1164,6 +1168,7 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1164
1168
|
payloadType?: string | undefined;
|
|
1165
1169
|
delay?: string | Date | undefined;
|
|
1166
1170
|
ttl?: string | number | undefined;
|
|
1171
|
+
maxAttempts?: number | undefined;
|
|
1167
1172
|
} | undefined;
|
|
1168
1173
|
}>;
|
|
1169
1174
|
type TriggerTaskRequestBody = z.infer<typeof TriggerTaskRequestBody>;
|
|
@@ -1374,6 +1379,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1374
1379
|
payloadType: z.ZodOptional<z.ZodString>;
|
|
1375
1380
|
delay: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
1376
1381
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1382
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1377
1383
|
}, "strip", z.ZodTypeAny, {
|
|
1378
1384
|
dependentAttempt?: string | undefined;
|
|
1379
1385
|
dependentBatch?: string | undefined;
|
|
@@ -1421,6 +1427,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1421
1427
|
payloadType?: string | undefined;
|
|
1422
1428
|
delay?: string | Date | undefined;
|
|
1423
1429
|
ttl?: string | number | undefined;
|
|
1430
|
+
maxAttempts?: number | undefined;
|
|
1424
1431
|
}, {
|
|
1425
1432
|
dependentAttempt?: string | undefined;
|
|
1426
1433
|
dependentBatch?: string | undefined;
|
|
@@ -1468,6 +1475,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1468
1475
|
payloadType?: string | undefined;
|
|
1469
1476
|
delay?: string | Date | undefined;
|
|
1470
1477
|
ttl?: string | number | undefined;
|
|
1478
|
+
maxAttempts?: number | undefined;
|
|
1471
1479
|
}>>;
|
|
1472
1480
|
}, "strip", z.ZodTypeAny, {
|
|
1473
1481
|
payload?: any;
|
|
@@ -1519,6 +1527,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1519
1527
|
payloadType?: string | undefined;
|
|
1520
1528
|
delay?: string | Date | undefined;
|
|
1521
1529
|
ttl?: string | number | undefined;
|
|
1530
|
+
maxAttempts?: number | undefined;
|
|
1522
1531
|
} | undefined;
|
|
1523
1532
|
}, {
|
|
1524
1533
|
payload?: any;
|
|
@@ -1570,6 +1579,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1570
1579
|
payloadType?: string | undefined;
|
|
1571
1580
|
delay?: string | Date | undefined;
|
|
1572
1581
|
ttl?: string | number | undefined;
|
|
1582
|
+
maxAttempts?: number | undefined;
|
|
1573
1583
|
} | undefined;
|
|
1574
1584
|
}>, "many">;
|
|
1575
1585
|
dependentAttempt: z.ZodOptional<z.ZodString>;
|
|
@@ -1624,6 +1634,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1624
1634
|
payloadType?: string | undefined;
|
|
1625
1635
|
delay?: string | Date | undefined;
|
|
1626
1636
|
ttl?: string | number | undefined;
|
|
1637
|
+
maxAttempts?: number | undefined;
|
|
1627
1638
|
} | undefined;
|
|
1628
1639
|
}[];
|
|
1629
1640
|
dependentAttempt?: string | undefined;
|
|
@@ -1678,6 +1689,7 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1678
1689
|
payloadType?: string | undefined;
|
|
1679
1690
|
delay?: string | Date | undefined;
|
|
1680
1691
|
ttl?: string | number | undefined;
|
|
1692
|
+
maxAttempts?: number | undefined;
|
|
1681
1693
|
} | undefined;
|
|
1682
1694
|
}[];
|
|
1683
1695
|
dependentAttempt?: string | undefined;
|
package/dist/v3/schemas/index.js
CHANGED
|
@@ -116,6 +116,7 @@ var TaskRun = zod.z.object({
|
|
|
116
116
|
createdAt: zod.z.coerce.date(),
|
|
117
117
|
startedAt: zod.z.coerce.date().default(() => /* @__PURE__ */ new Date()),
|
|
118
118
|
idempotencyKey: zod.z.string().optional(),
|
|
119
|
+
maxAttempts: zod.z.number().optional(),
|
|
119
120
|
durationMs: zod.z.number().default(0),
|
|
120
121
|
costInCents: zod.z.number().default(0),
|
|
121
122
|
baseCostInCents: zod.z.number().default(0)
|
|
@@ -488,7 +489,8 @@ var TriggerTaskRequestBody = zod.z.object({
|
|
|
488
489
|
test: zod.z.boolean().optional(),
|
|
489
490
|
payloadType: zod.z.string().optional(),
|
|
490
491
|
delay: zod.z.string().or(zod.z.coerce.date()).optional(),
|
|
491
|
-
ttl: zod.z.string().or(zod.z.number().nonnegative().int()).optional()
|
|
492
|
+
ttl: zod.z.string().or(zod.z.number().nonnegative().int()).optional(),
|
|
493
|
+
maxAttempts: zod.z.number().int().optional()
|
|
492
494
|
}).optional()
|
|
493
495
|
});
|
|
494
496
|
var TriggerTaskResponse = zod.z.object({
|