@trigger.dev/core 0.0.0-v3-prerelease-20250108131948 → 0.0.0-v3-prerelease-20250108142426

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.
@@ -2977,10 +2977,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
2977
2977
  id: string;
2978
2978
  } | undefined;
2979
2979
  }>]>, {
2980
- options: Record<string, string[]>;
2981
- version: "2";
2980
+ version: "1";
2982
2981
  key: string;
2983
2982
  channel: "HTTP" | "SMTP" | "SQS";
2983
+ events: string[];
2984
2984
  integration: {
2985
2985
  id: string;
2986
2986
  metadata: {
@@ -2996,10 +2996,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
2996
2996
  id: string;
2997
2997
  } | undefined;
2998
2998
  } | {
2999
- version: "1";
2999
+ options: Record<string, string[]>;
3000
+ version: "2";
3000
3001
  key: string;
3001
3002
  channel: "HTTP" | "SMTP" | "SQS";
3002
- events: string[];
3003
3003
  integration: {
3004
3004
  id: string;
3005
3005
  metadata: {
@@ -3863,10 +3863,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
3863
3863
  } | undefined;
3864
3864
  }[];
3865
3865
  sources: ({
3866
- options: Record<string, string[]>;
3867
- version: "2";
3866
+ version: "1";
3868
3867
  key: string;
3869
3868
  channel: "HTTP" | "SMTP" | "SQS";
3869
+ events: string[];
3870
3870
  integration: {
3871
3871
  id: string;
3872
3872
  metadata: {
@@ -3882,10 +3882,10 @@ export declare const IndexEndpointResponseSchema: z.ZodObject<{
3882
3882
  id: string;
3883
3883
  } | undefined;
3884
3884
  } | {
3885
- version: "1";
3885
+ options: Record<string, string[]>;
3886
+ version: "2";
3886
3887
  key: string;
3887
3888
  channel: "HTTP" | "SMTP" | "SQS";
3888
- events: string[];
3889
3889
  integration: {
3890
3890
  id: string;
3891
3891
  metadata: {
@@ -42,13 +42,13 @@ export declare class ApiClient {
42
42
  batchTriggerV2(body: BatchTriggerTaskV2RequestBody, clientOptions?: ClientBatchTriggerOptions, requestOptions?: TriggerRequestOptions): Promise<{
43
43
  publicAccessToken: string;
44
44
  id: string;
45
- isCached: boolean;
46
45
  runs: {
47
46
  id: string;
48
- isCached: boolean;
49
47
  taskIdentifier: string;
48
+ isCached: boolean;
50
49
  idempotencyKey?: string | undefined;
51
50
  }[];
51
+ isCached: boolean;
52
52
  idempotencyKey?: string | undefined;
53
53
  }>;
54
54
  createUploadPayloadUrl(filename: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
@@ -58,127 +58,138 @@ export declare class ApiClient {
58
58
  presignedUrl: string;
59
59
  }>;
60
60
  retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
61
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
61
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
62
62
  id: string;
63
+ attempts: ({
64
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
65
+ id: string;
66
+ updatedAt: Date;
67
+ createdAt: Date;
68
+ startedAt?: Date | undefined;
69
+ completedAt?: Date | undefined;
70
+ error?: {
71
+ message: string;
72
+ name?: string | undefined;
73
+ stackTrace?: string | undefined;
74
+ } | undefined;
75
+ } | undefined)[];
76
+ updatedAt: Date;
77
+ isTest: boolean;
63
78
  createdAt: Date;
64
79
  tags: string[];
65
- taskIdentifier: string;
66
- depth: number;
67
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
68
- isQueued: boolean;
69
- isExecuting: boolean;
70
- isCompleted: boolean;
71
- isSuccess: boolean;
72
- isFailed: boolean;
73
- isCancelled: boolean;
74
- isTest: boolean;
75
- updatedAt: Date;
80
+ durationMs: number;
76
81
  costInCents: number;
77
82
  baseCostInCents: number;
78
- durationMs: number;
83
+ taskIdentifier: string;
79
84
  relatedRuns: {
80
85
  root?: {
81
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
86
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
82
87
  id: string;
88
+ updatedAt: Date;
89
+ isTest: boolean;
83
90
  createdAt: Date;
84
91
  tags: string[];
92
+ durationMs: number;
93
+ costInCents: number;
94
+ baseCostInCents: number;
85
95
  taskIdentifier: string;
86
96
  depth: number;
87
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
97
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
88
98
  isQueued: boolean;
89
99
  isExecuting: boolean;
90
100
  isCompleted: boolean;
91
101
  isSuccess: boolean;
92
102
  isFailed: boolean;
93
103
  isCancelled: boolean;
94
- isTest: boolean;
95
- updatedAt: Date;
96
- costInCents: number;
97
- baseCostInCents: number;
98
- durationMs: number;
99
- metadata?: Record<string, any> | undefined;
100
104
  version?: string | undefined;
105
+ metadata?: Record<string, any> | undefined;
106
+ startedAt?: Date | undefined;
101
107
  idempotencyKey?: string | undefined;
102
108
  ttl?: string | undefined;
103
109
  batchId?: string | undefined;
104
- startedAt?: Date | undefined;
105
110
  finishedAt?: Date | undefined;
106
111
  delayedUntil?: Date | undefined;
107
112
  expiredAt?: Date | undefined;
108
113
  } | undefined;
109
114
  parent?: {
110
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
115
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
111
116
  id: string;
117
+ updatedAt: Date;
118
+ isTest: boolean;
112
119
  createdAt: Date;
113
120
  tags: string[];
121
+ durationMs: number;
122
+ costInCents: number;
123
+ baseCostInCents: number;
114
124
  taskIdentifier: string;
115
125
  depth: number;
116
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
126
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
117
127
  isQueued: boolean;
118
128
  isExecuting: boolean;
119
129
  isCompleted: boolean;
120
130
  isSuccess: boolean;
121
131
  isFailed: boolean;
122
132
  isCancelled: boolean;
123
- isTest: boolean;
124
- updatedAt: Date;
125
- costInCents: number;
126
- baseCostInCents: number;
127
- durationMs: number;
128
- metadata?: Record<string, any> | undefined;
129
133
  version?: string | undefined;
134
+ metadata?: Record<string, any> | undefined;
135
+ startedAt?: Date | undefined;
130
136
  idempotencyKey?: string | undefined;
131
137
  ttl?: string | undefined;
132
138
  batchId?: string | undefined;
133
- startedAt?: Date | undefined;
134
139
  finishedAt?: Date | undefined;
135
140
  delayedUntil?: Date | undefined;
136
141
  expiredAt?: Date | undefined;
137
142
  } | undefined;
138
143
  children?: {
139
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
144
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
140
145
  id: string;
146
+ updatedAt: Date;
147
+ isTest: boolean;
141
148
  createdAt: Date;
142
149
  tags: string[];
150
+ durationMs: number;
151
+ costInCents: number;
152
+ baseCostInCents: number;
143
153
  taskIdentifier: string;
144
154
  depth: number;
145
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
155
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
146
156
  isQueued: boolean;
147
157
  isExecuting: boolean;
148
158
  isCompleted: boolean;
149
159
  isSuccess: boolean;
150
160
  isFailed: boolean;
151
161
  isCancelled: boolean;
152
- isTest: boolean;
153
- updatedAt: Date;
154
- costInCents: number;
155
- baseCostInCents: number;
156
- durationMs: number;
157
- metadata?: Record<string, any> | undefined;
158
162
  version?: string | undefined;
163
+ metadata?: Record<string, any> | undefined;
164
+ startedAt?: Date | undefined;
159
165
  idempotencyKey?: string | undefined;
160
166
  ttl?: string | undefined;
161
167
  batchId?: string | undefined;
162
- startedAt?: Date | undefined;
163
168
  finishedAt?: Date | undefined;
164
169
  delayedUntil?: Date | undefined;
165
170
  expiredAt?: Date | undefined;
166
171
  }[] | undefined;
167
172
  };
168
- attempts: ({
169
- status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
170
- id: string;
171
- createdAt: Date;
172
- updatedAt: Date;
173
- error?: {
174
- message: string;
175
- name?: string | undefined;
176
- stackTrace?: string | undefined;
177
- } | undefined;
178
- startedAt?: Date | undefined;
179
- completedAt?: Date | undefined;
180
- } | undefined)[];
173
+ depth: number;
174
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
175
+ isQueued: boolean;
176
+ isExecuting: boolean;
177
+ isCompleted: boolean;
178
+ isSuccess: boolean;
179
+ isFailed: boolean;
180
+ isCancelled: boolean;
181
181
  attemptCount: number;
182
+ payload?: any;
183
+ version?: string | undefined;
184
+ metadata?: Record<string, any> | undefined;
185
+ startedAt?: Date | undefined;
186
+ output?: any;
187
+ error?: {
188
+ message: string;
189
+ name?: string | undefined;
190
+ stackTrace?: string | undefined;
191
+ } | undefined;
192
+ idempotencyKey?: string | undefined;
182
193
  schedule?: {
183
194
  id: string;
184
195
  generator: {
@@ -189,24 +200,13 @@ export declare class ApiClient {
189
200
  externalId?: string | undefined;
190
201
  deduplicationKey?: string | undefined;
191
202
  } | undefined;
192
- metadata?: Record<string, any> | undefined;
193
- version?: string | undefined;
194
- payload?: any;
195
- idempotencyKey?: string | undefined;
196
203
  ttl?: string | undefined;
204
+ payloadPresignedUrl?: string | undefined;
205
+ outputPresignedUrl?: string | undefined;
197
206
  batchId?: string | undefined;
198
- error?: {
199
- message: string;
200
- name?: string | undefined;
201
- stackTrace?: string | undefined;
202
- } | undefined;
203
- startedAt?: Date | undefined;
204
207
  finishedAt?: Date | undefined;
205
208
  delayedUntil?: Date | undefined;
206
209
  expiredAt?: Date | undefined;
207
- payloadPresignedUrl?: string | undefined;
208
- output?: any;
209
- outputPresignedUrl?: string | undefined;
210
210
  }>;
211
211
  listRuns(query?: ListRunsQueryParams, requestOptions?: ZodFetchOptions): CursorPagePromise<typeof ListRunResponseItem>;
212
212
  listProjectRuns(projectRef: string, query?: ListProjectRunsQueryParams, requestOptions?: ZodFetchOptions): CursorPagePromise<typeof ListRunResponseItem>;
@@ -217,127 +217,138 @@ export declare class ApiClient {
217
217
  id: string;
218
218
  }>;
219
219
  rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
220
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
220
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
221
221
  id: string;
222
+ attempts: ({
223
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
224
+ id: string;
225
+ updatedAt: Date;
226
+ createdAt: Date;
227
+ startedAt?: Date | undefined;
228
+ completedAt?: Date | undefined;
229
+ error?: {
230
+ message: string;
231
+ name?: string | undefined;
232
+ stackTrace?: string | undefined;
233
+ } | undefined;
234
+ } | undefined)[];
235
+ updatedAt: Date;
236
+ isTest: boolean;
222
237
  createdAt: Date;
223
238
  tags: string[];
224
- taskIdentifier: string;
225
- depth: number;
226
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
227
- isQueued: boolean;
228
- isExecuting: boolean;
229
- isCompleted: boolean;
230
- isSuccess: boolean;
231
- isFailed: boolean;
232
- isCancelled: boolean;
233
- isTest: boolean;
234
- updatedAt: Date;
239
+ durationMs: number;
235
240
  costInCents: number;
236
241
  baseCostInCents: number;
237
- durationMs: number;
242
+ taskIdentifier: string;
238
243
  relatedRuns: {
239
244
  root?: {
240
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
245
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
241
246
  id: string;
247
+ updatedAt: Date;
248
+ isTest: boolean;
242
249
  createdAt: Date;
243
250
  tags: string[];
251
+ durationMs: number;
252
+ costInCents: number;
253
+ baseCostInCents: number;
244
254
  taskIdentifier: string;
245
255
  depth: number;
246
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
256
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
247
257
  isQueued: boolean;
248
258
  isExecuting: boolean;
249
259
  isCompleted: boolean;
250
260
  isSuccess: boolean;
251
261
  isFailed: boolean;
252
262
  isCancelled: boolean;
253
- isTest: boolean;
254
- updatedAt: Date;
255
- costInCents: number;
256
- baseCostInCents: number;
257
- durationMs: number;
258
- metadata?: Record<string, any> | undefined;
259
263
  version?: string | undefined;
264
+ metadata?: Record<string, any> | undefined;
265
+ startedAt?: Date | undefined;
260
266
  idempotencyKey?: string | undefined;
261
267
  ttl?: string | undefined;
262
268
  batchId?: string | undefined;
263
- startedAt?: Date | undefined;
264
269
  finishedAt?: Date | undefined;
265
270
  delayedUntil?: Date | undefined;
266
271
  expiredAt?: Date | undefined;
267
272
  } | undefined;
268
273
  parent?: {
269
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
274
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
270
275
  id: string;
276
+ updatedAt: Date;
277
+ isTest: boolean;
271
278
  createdAt: Date;
272
279
  tags: string[];
280
+ durationMs: number;
281
+ costInCents: number;
282
+ baseCostInCents: number;
273
283
  taskIdentifier: string;
274
284
  depth: number;
275
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
285
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
276
286
  isQueued: boolean;
277
287
  isExecuting: boolean;
278
288
  isCompleted: boolean;
279
289
  isSuccess: boolean;
280
290
  isFailed: boolean;
281
291
  isCancelled: boolean;
282
- isTest: boolean;
283
- updatedAt: Date;
284
- costInCents: number;
285
- baseCostInCents: number;
286
- durationMs: number;
287
- metadata?: Record<string, any> | undefined;
288
292
  version?: string | undefined;
293
+ metadata?: Record<string, any> | undefined;
294
+ startedAt?: Date | undefined;
289
295
  idempotencyKey?: string | undefined;
290
296
  ttl?: string | undefined;
291
297
  batchId?: string | undefined;
292
- startedAt?: Date | undefined;
293
298
  finishedAt?: Date | undefined;
294
299
  delayedUntil?: Date | undefined;
295
300
  expiredAt?: Date | undefined;
296
301
  } | undefined;
297
302
  children?: {
298
- status: "CANCELED" | "COMPLETED" | "FAILED" | "TIMED_OUT" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
303
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
299
304
  id: string;
305
+ updatedAt: Date;
306
+ isTest: boolean;
300
307
  createdAt: Date;
301
308
  tags: string[];
309
+ durationMs: number;
310
+ costInCents: number;
311
+ baseCostInCents: number;
302
312
  taskIdentifier: string;
303
313
  depth: number;
304
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
314
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
305
315
  isQueued: boolean;
306
316
  isExecuting: boolean;
307
317
  isCompleted: boolean;
308
318
  isSuccess: boolean;
309
319
  isFailed: boolean;
310
320
  isCancelled: boolean;
311
- isTest: boolean;
312
- updatedAt: Date;
313
- costInCents: number;
314
- baseCostInCents: number;
315
- durationMs: number;
316
- metadata?: Record<string, any> | undefined;
317
321
  version?: string | undefined;
322
+ metadata?: Record<string, any> | undefined;
323
+ startedAt?: Date | undefined;
318
324
  idempotencyKey?: string | undefined;
319
325
  ttl?: string | undefined;
320
326
  batchId?: string | undefined;
321
- startedAt?: Date | undefined;
322
327
  finishedAt?: Date | undefined;
323
328
  delayedUntil?: Date | undefined;
324
329
  expiredAt?: Date | undefined;
325
330
  }[] | undefined;
326
331
  };
327
- attempts: ({
328
- status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
329
- id: string;
330
- createdAt: Date;
331
- updatedAt: Date;
332
- error?: {
333
- message: string;
334
- name?: string | undefined;
335
- stackTrace?: string | undefined;
336
- } | undefined;
337
- startedAt?: Date | undefined;
338
- completedAt?: Date | undefined;
339
- } | undefined)[];
332
+ depth: number;
333
+ triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
334
+ isQueued: boolean;
335
+ isExecuting: boolean;
336
+ isCompleted: boolean;
337
+ isSuccess: boolean;
338
+ isFailed: boolean;
339
+ isCancelled: boolean;
340
340
  attemptCount: number;
341
+ payload?: any;
342
+ version?: string | undefined;
343
+ metadata?: Record<string, any> | undefined;
344
+ startedAt?: Date | undefined;
345
+ output?: any;
346
+ error?: {
347
+ message: string;
348
+ name?: string | undefined;
349
+ stackTrace?: string | undefined;
350
+ } | undefined;
351
+ idempotencyKey?: string | undefined;
341
352
  schedule?: {
342
353
  id: string;
343
354
  generator: {
@@ -348,24 +359,13 @@ export declare class ApiClient {
348
359
  externalId?: string | undefined;
349
360
  deduplicationKey?: string | undefined;
350
361
  } | undefined;
351
- metadata?: Record<string, any> | undefined;
352
- version?: string | undefined;
353
- payload?: any;
354
- idempotencyKey?: string | undefined;
355
362
  ttl?: string | undefined;
363
+ payloadPresignedUrl?: string | undefined;
364
+ outputPresignedUrl?: string | undefined;
356
365
  batchId?: string | undefined;
357
- error?: {
358
- message: string;
359
- name?: string | undefined;
360
- stackTrace?: string | undefined;
361
- } | undefined;
362
- startedAt?: Date | undefined;
363
366
  finishedAt?: Date | undefined;
364
367
  delayedUntil?: Date | undefined;
365
368
  expiredAt?: Date | undefined;
366
- payloadPresignedUrl?: string | undefined;
367
- output?: any;
368
- outputPresignedUrl?: string | undefined;
369
369
  }>;
370
370
  addTags(runId: string, body: AddTagsRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
371
371
  message: string;
@@ -373,9 +373,9 @@ export declare class ApiClient {
373
373
  createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
374
374
  type: "DECLARATIVE" | "IMPERATIVE";
375
375
  id: string;
376
- timezone: string;
377
- task: string;
378
376
  active: boolean;
377
+ task: string;
378
+ timezone: string;
379
379
  generator: {
380
380
  type: "CRON";
381
381
  description: string;
@@ -428,9 +428,9 @@ export declare class ApiClient {
428
428
  }, "strip", z.ZodTypeAny, {
429
429
  type: "DECLARATIVE" | "IMPERATIVE";
430
430
  id: string;
431
- timezone: string;
432
- task: string;
433
431
  active: boolean;
432
+ task: string;
433
+ timezone: string;
434
434
  generator: {
435
435
  type: "CRON";
436
436
  description: string;
@@ -447,9 +447,9 @@ export declare class ApiClient {
447
447
  }, {
448
448
  type: "DECLARATIVE" | "IMPERATIVE";
449
449
  id: string;
450
- timezone: string;
451
- task: string;
452
450
  active: boolean;
451
+ task: string;
452
+ timezone: string;
453
453
  generator: {
454
454
  type: "CRON";
455
455
  description: string;
@@ -467,9 +467,9 @@ export declare class ApiClient {
467
467
  retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
468
468
  type: "DECLARATIVE" | "IMPERATIVE";
469
469
  id: string;
470
- timezone: string;
471
- task: string;
472
470
  active: boolean;
471
+ task: string;
472
+ timezone: string;
473
473
  generator: {
474
474
  type: "CRON";
475
475
  description: string;
@@ -487,9 +487,9 @@ export declare class ApiClient {
487
487
  updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
488
488
  type: "DECLARATIVE" | "IMPERATIVE";
489
489
  id: string;
490
- timezone: string;
491
- task: string;
492
490
  active: boolean;
491
+ task: string;
492
+ timezone: string;
493
493
  generator: {
494
494
  type: "CRON";
495
495
  description: string;
@@ -507,9 +507,9 @@ export declare class ApiClient {
507
507
  deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
508
508
  type: "DECLARATIVE" | "IMPERATIVE";
509
509
  id: string;
510
- timezone: string;
511
- task: string;
512
510
  active: boolean;
511
+ task: string;
512
+ timezone: string;
513
513
  generator: {
514
514
  type: "CRON";
515
515
  description: string;
@@ -527,9 +527,9 @@ export declare class ApiClient {
527
527
  activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
528
528
  type: "DECLARATIVE" | "IMPERATIVE";
529
529
  id: string;
530
- timezone: string;
531
- task: string;
532
530
  active: boolean;
531
+ task: string;
532
+ timezone: string;
533
533
  generator: {
534
534
  type: "CRON";
535
535
  description: string;
@@ -590,8 +590,8 @@ export declare class ApiClient {
590
590
  retrieveBatch(batchId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
591
591
  status: "PENDING" | "COMPLETED";
592
592
  id: string;
593
- createdAt: Date;
594
593
  updatedAt: Date;
594
+ createdAt: Date;
595
595
  runCount: number;
596
596
  idempotencyKey?: string | undefined;
597
597
  }>;
@@ -15,5 +15,5 @@ export declare class APIClientManagerAPI {
15
15
  clientOrThrow(): ApiClient;
16
16
  runWithConfig<R extends (...args: any[]) => Promise<any>>(config: ApiClientConfiguration, fn: R): Promise<ReturnType<R>>;
17
17
  setGlobalAPIClientConfiguration(config: ApiClientConfiguration): boolean;
18
- apiClientMissingError(): "You need to set the TRIGGER_API_URL and TRIGGER_SECRET_KEY environment variables. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_API_URL environment variable. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_SECRET_KEY environment variable. See https://trigger.dev/docs/management/overview#authentication" | "Unknown error";
18
+ apiClientMissingError(): "Unknown error" | "You need to set the TRIGGER_API_URL and TRIGGER_SECRET_KEY environment variables. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_API_URL environment variable. See https://trigger.dev/docs/management/overview#authentication" | "You need to set the TRIGGER_SECRET_KEY environment variable. See https://trigger.dev/docs/management/overview#authentication";
19
19
  }
@@ -0,0 +1,6 @@
1
+ import { RunMetadataChangeOperation } from "../schemas/common.js";
2
+ export type ApplyOperationResult = {
3
+ newMetadata: Record<string, unknown>;
4
+ unappliedOperations: RunMetadataChangeOperation[];
5
+ };
6
+ export declare function applyMetadataOperations(currentMetadata: Record<string, unknown>, operations: RunMetadataChangeOperation | RunMetadataChangeOperation[]): ApplyOperationResult;