@trigger.dev/core 0.0.0-prerelease-20241119135607 → 0.0.0-prerelease-20241119153006

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.
Files changed (46) hide show
  1. package/dist/commonjs/schemas/api.d.ts +1425 -1219
  2. package/dist/commonjs/schemas/eventFilter.d.ts +4 -4
  3. package/dist/commonjs/schemas/fetch.d.ts +66 -33
  4. package/dist/commonjs/schemas/notifications.d.ts +24 -16
  5. package/dist/commonjs/schemas/requestFilter.d.ts +52 -4
  6. package/dist/commonjs/schemas/runs.d.ts +29 -13
  7. package/dist/commonjs/schemas/schedules.d.ts +12 -12
  8. package/dist/commonjs/schemas/statuses.d.ts +9 -8
  9. package/dist/commonjs/schemas/tasks.d.ts +32 -31
  10. package/dist/commonjs/schemas/triggers.d.ts +36 -36
  11. package/dist/commonjs/v3/apiClient/index.d.ts +139 -139
  12. package/dist/commonjs/v3/schemas/api.d.ts +740 -1076
  13. package/dist/commonjs/v3/schemas/build.d.ts +348 -588
  14. package/dist/commonjs/v3/schemas/common.d.ts +27 -27
  15. package/dist/commonjs/v3/schemas/eventFilter.d.ts +2 -2
  16. package/dist/commonjs/v3/schemas/fetch.d.ts +53 -41
  17. package/dist/commonjs/v3/schemas/messages.d.ts +2891 -3335
  18. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +22 -22
  19. package/dist/commonjs/v3/schemas/resources.d.ts +156 -324
  20. package/dist/commonjs/v3/schemas/schemas.d.ts +445 -651
  21. package/dist/commonjs/v3/schemas/style.d.ts +12 -12
  22. package/dist/commonjs/v3/zodMessageHandler.d.ts +1 -1
  23. package/dist/commonjs/version.js +1 -1
  24. package/dist/esm/schemas/api.d.ts +1436 -1230
  25. package/dist/esm/schemas/eventFilter.d.ts +4 -4
  26. package/dist/esm/schemas/fetch.d.ts +66 -33
  27. package/dist/esm/schemas/notifications.d.ts +24 -16
  28. package/dist/esm/schemas/requestFilter.d.ts +52 -4
  29. package/dist/esm/schemas/runs.d.ts +29 -13
  30. package/dist/esm/schemas/schedules.d.ts +12 -12
  31. package/dist/esm/schemas/statuses.d.ts +9 -8
  32. package/dist/esm/schemas/tasks.d.ts +32 -31
  33. package/dist/esm/schemas/triggers.d.ts +36 -36
  34. package/dist/esm/v3/apiClient/index.d.ts +139 -139
  35. package/dist/esm/v3/schemas/api.d.ts +740 -1076
  36. package/dist/esm/v3/schemas/build.d.ts +348 -588
  37. package/dist/esm/v3/schemas/common.d.ts +123 -123
  38. package/dist/esm/v3/schemas/eventFilter.d.ts +2 -2
  39. package/dist/esm/v3/schemas/fetch.d.ts +53 -41
  40. package/dist/esm/v3/schemas/messages.d.ts +2891 -3335
  41. package/dist/esm/v3/schemas/openTelemetry.d.ts +22 -22
  42. package/dist/esm/v3/schemas/resources.d.ts +156 -324
  43. package/dist/esm/v3/schemas/schemas.d.ts +445 -651
  44. package/dist/esm/v3/schemas/style.d.ts +12 -12
  45. package/dist/esm/v3/zodMessageHandler.d.ts +1 -1
  46. package/package.json +2 -2
@@ -35,8 +35,8 @@ export declare class ApiClient {
35
35
  }>;
36
36
  batchTriggerTask(taskId: string, body: BatchTriggerTaskRequestBody, options?: TriggerOptions, requestOptions?: TriggerRequestOptions): Promise<{
37
37
  publicAccessToken: string;
38
- batchId: string;
39
38
  runs: string[];
39
+ batchId: string;
40
40
  }>;
41
41
  createUploadPayloadUrl(filename: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
42
42
  presignedUrl: string;
@@ -45,155 +45,155 @@ export declare class ApiClient {
45
45
  presignedUrl: string;
46
46
  }>;
47
47
  retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
48
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
48
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
49
49
  id: string;
50
- tags: string[];
50
+ attempts: ({
51
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
52
+ id: string;
53
+ updatedAt: Date;
54
+ createdAt: Date;
55
+ startedAt?: Date | undefined;
56
+ completedAt?: Date | undefined;
57
+ error?: {
58
+ message: string;
59
+ name?: string | undefined;
60
+ stackTrace?: string | undefined;
61
+ } | undefined;
62
+ } | undefined)[];
63
+ updatedAt: Date;
51
64
  isTest: boolean;
52
65
  createdAt: Date;
66
+ tags: string[];
53
67
  durationMs: number;
54
68
  costInCents: number;
55
69
  baseCostInCents: number;
56
70
  taskIdentifier: string;
71
+ attemptCount: number;
72
+ depth: number;
73
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
74
+ isQueued: boolean;
75
+ isExecuting: boolean;
76
+ isCompleted: boolean;
77
+ isSuccess: boolean;
78
+ isFailed: boolean;
79
+ isCancelled: boolean;
57
80
  relatedRuns: {
58
81
  root?: {
59
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
82
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
60
83
  id: string;
61
- tags: string[];
84
+ updatedAt: Date;
62
85
  isTest: boolean;
63
86
  createdAt: Date;
87
+ tags: string[];
64
88
  durationMs: number;
65
89
  costInCents: number;
66
90
  baseCostInCents: number;
67
91
  taskIdentifier: string;
68
92
  depth: number;
69
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
93
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
70
94
  isQueued: boolean;
71
95
  isExecuting: boolean;
72
96
  isCompleted: boolean;
73
97
  isSuccess: boolean;
74
98
  isFailed: boolean;
75
99
  isCancelled: boolean;
76
- updatedAt: Date;
77
- batchId?: string | undefined;
78
- idempotencyKey?: string | undefined;
100
+ metadata?: Record<string, any> | undefined;
79
101
  version?: string | undefined;
80
102
  startedAt?: Date | undefined;
103
+ idempotencyKey?: string | undefined;
104
+ ttl?: string | undefined;
105
+ batchId?: string | undefined;
81
106
  finishedAt?: Date | undefined;
82
107
  delayedUntil?: Date | undefined;
83
- ttl?: string | undefined;
84
108
  expiredAt?: Date | undefined;
85
- metadata?: Record<string, any> | undefined;
86
109
  } | undefined;
87
110
  parent?: {
88
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
111
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
89
112
  id: string;
90
- tags: string[];
113
+ updatedAt: Date;
91
114
  isTest: boolean;
92
115
  createdAt: Date;
116
+ tags: string[];
93
117
  durationMs: number;
94
118
  costInCents: number;
95
119
  baseCostInCents: number;
96
120
  taskIdentifier: string;
97
121
  depth: number;
98
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
122
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
99
123
  isQueued: boolean;
100
124
  isExecuting: boolean;
101
125
  isCompleted: boolean;
102
126
  isSuccess: boolean;
103
127
  isFailed: boolean;
104
128
  isCancelled: boolean;
105
- updatedAt: Date;
106
- batchId?: string | undefined;
107
- idempotencyKey?: string | undefined;
129
+ metadata?: Record<string, any> | undefined;
108
130
  version?: string | undefined;
109
131
  startedAt?: Date | undefined;
132
+ idempotencyKey?: string | undefined;
133
+ ttl?: string | undefined;
134
+ batchId?: string | undefined;
110
135
  finishedAt?: Date | undefined;
111
136
  delayedUntil?: Date | undefined;
112
- ttl?: string | undefined;
113
137
  expiredAt?: Date | undefined;
114
- metadata?: Record<string, any> | undefined;
115
138
  } | undefined;
116
139
  children?: {
117
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
140
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
118
141
  id: string;
119
- tags: string[];
142
+ updatedAt: Date;
120
143
  isTest: boolean;
121
144
  createdAt: Date;
145
+ tags: string[];
122
146
  durationMs: number;
123
147
  costInCents: number;
124
148
  baseCostInCents: number;
125
149
  taskIdentifier: string;
126
150
  depth: number;
127
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
151
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
128
152
  isQueued: boolean;
129
153
  isExecuting: boolean;
130
154
  isCompleted: boolean;
131
155
  isSuccess: boolean;
132
156
  isFailed: boolean;
133
157
  isCancelled: boolean;
134
- updatedAt: Date;
135
- batchId?: string | undefined;
136
- idempotencyKey?: string | undefined;
158
+ metadata?: Record<string, any> | undefined;
137
159
  version?: string | undefined;
138
160
  startedAt?: Date | undefined;
161
+ idempotencyKey?: string | undefined;
162
+ ttl?: string | undefined;
163
+ batchId?: string | undefined;
139
164
  finishedAt?: Date | undefined;
140
165
  delayedUntil?: Date | undefined;
141
- ttl?: string | undefined;
142
166
  expiredAt?: Date | undefined;
143
- metadata?: Record<string, any> | undefined;
144
167
  }[] | undefined;
145
168
  };
146
- depth: number;
147
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
148
- isQueued: boolean;
149
- isExecuting: boolean;
150
- isCompleted: boolean;
151
- isSuccess: boolean;
152
- isFailed: boolean;
153
- isCancelled: boolean;
154
- updatedAt: Date;
155
- attempts: ({
156
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
157
- id: string;
158
- createdAt: Date;
159
- updatedAt: Date;
160
- startedAt?: Date | undefined;
161
- completedAt?: Date | undefined;
162
- error?: {
163
- message: string;
164
- name?: string | undefined;
165
- stackTrace?: string | undefined;
166
- } | undefined;
167
- } | undefined)[];
168
- attemptCount: number;
169
169
  payload?: any;
170
- payloadPresignedUrl?: string | undefined;
170
+ metadata?: Record<string, any> | undefined;
171
+ version?: string | undefined;
172
+ startedAt?: Date | undefined;
171
173
  output?: any;
172
- outputPresignedUrl?: string | undefined;
173
174
  error?: {
174
175
  message: string;
175
176
  name?: string | undefined;
176
177
  stackTrace?: string | undefined;
177
178
  } | undefined;
179
+ idempotencyKey?: string | undefined;
178
180
  schedule?: {
179
181
  id: string;
180
182
  generator: {
181
- description: string;
182
183
  type: "CRON";
184
+ description: string;
183
185
  expression: string;
184
186
  };
185
187
  externalId?: string | undefined;
186
188
  deduplicationKey?: string | undefined;
187
189
  } | undefined;
190
+ ttl?: string | undefined;
188
191
  batchId?: string | undefined;
189
- idempotencyKey?: string | undefined;
190
- version?: string | undefined;
191
- startedAt?: Date | undefined;
192
192
  finishedAt?: Date | undefined;
193
193
  delayedUntil?: Date | undefined;
194
- ttl?: string | undefined;
195
194
  expiredAt?: Date | undefined;
196
- metadata?: Record<string, any> | undefined;
195
+ payloadPresignedUrl?: string | undefined;
196
+ outputPresignedUrl?: string | undefined;
197
197
  }>;
198
198
  listRuns(query?: ListRunsQueryParams, requestOptions?: ZodFetchOptions): CursorPagePromise<typeof ListRunResponseItem>;
199
199
  listProjectRuns(projectRef: string, query?: ListProjectRunsQueryParams, requestOptions?: ZodFetchOptions): CursorPagePromise<typeof ListRunResponseItem>;
@@ -204,155 +204,155 @@ export declare class ApiClient {
204
204
  id: string;
205
205
  }>;
206
206
  rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
207
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
207
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
208
208
  id: string;
209
- tags: string[];
209
+ attempts: ({
210
+ status: "PENDING" | "COMPLETED" | "CANCELED" | "EXECUTING" | "FAILED" | "PAUSED";
211
+ id: string;
212
+ updatedAt: Date;
213
+ createdAt: Date;
214
+ startedAt?: Date | undefined;
215
+ completedAt?: Date | undefined;
216
+ error?: {
217
+ message: string;
218
+ name?: string | undefined;
219
+ stackTrace?: string | undefined;
220
+ } | undefined;
221
+ } | undefined)[];
222
+ updatedAt: Date;
210
223
  isTest: boolean;
211
224
  createdAt: Date;
225
+ tags: string[];
212
226
  durationMs: number;
213
227
  costInCents: number;
214
228
  baseCostInCents: number;
215
229
  taskIdentifier: string;
230
+ attemptCount: number;
231
+ depth: number;
232
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
233
+ isQueued: boolean;
234
+ isExecuting: boolean;
235
+ isCompleted: boolean;
236
+ isSuccess: boolean;
237
+ isFailed: boolean;
238
+ isCancelled: boolean;
216
239
  relatedRuns: {
217
240
  root?: {
218
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
241
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
219
242
  id: string;
220
- tags: string[];
243
+ updatedAt: Date;
221
244
  isTest: boolean;
222
245
  createdAt: Date;
246
+ tags: string[];
223
247
  durationMs: number;
224
248
  costInCents: number;
225
249
  baseCostInCents: number;
226
250
  taskIdentifier: string;
227
251
  depth: number;
228
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
252
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
229
253
  isQueued: boolean;
230
254
  isExecuting: boolean;
231
255
  isCompleted: boolean;
232
256
  isSuccess: boolean;
233
257
  isFailed: boolean;
234
258
  isCancelled: boolean;
235
- updatedAt: Date;
236
- batchId?: string | undefined;
237
- idempotencyKey?: string | undefined;
259
+ metadata?: Record<string, any> | undefined;
238
260
  version?: string | undefined;
239
261
  startedAt?: Date | undefined;
262
+ idempotencyKey?: string | undefined;
263
+ ttl?: string | undefined;
264
+ batchId?: string | undefined;
240
265
  finishedAt?: Date | undefined;
241
266
  delayedUntil?: Date | undefined;
242
- ttl?: string | undefined;
243
267
  expiredAt?: Date | undefined;
244
- metadata?: Record<string, any> | undefined;
245
268
  } | undefined;
246
269
  parent?: {
247
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
270
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
248
271
  id: string;
249
- tags: string[];
272
+ updatedAt: Date;
250
273
  isTest: boolean;
251
274
  createdAt: Date;
275
+ tags: string[];
252
276
  durationMs: number;
253
277
  costInCents: number;
254
278
  baseCostInCents: number;
255
279
  taskIdentifier: string;
256
280
  depth: number;
257
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
281
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
258
282
  isQueued: boolean;
259
283
  isExecuting: boolean;
260
284
  isCompleted: boolean;
261
285
  isSuccess: boolean;
262
286
  isFailed: boolean;
263
287
  isCancelled: boolean;
264
- updatedAt: Date;
265
- batchId?: string | undefined;
266
- idempotencyKey?: string | undefined;
288
+ metadata?: Record<string, any> | undefined;
267
289
  version?: string | undefined;
268
290
  startedAt?: Date | undefined;
291
+ idempotencyKey?: string | undefined;
292
+ ttl?: string | undefined;
293
+ batchId?: string | undefined;
269
294
  finishedAt?: Date | undefined;
270
295
  delayedUntil?: Date | undefined;
271
- ttl?: string | undefined;
272
296
  expiredAt?: Date | undefined;
273
- metadata?: Record<string, any> | undefined;
274
297
  } | undefined;
275
298
  children?: {
276
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
299
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "TIMED_OUT" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
277
300
  id: string;
278
- tags: string[];
301
+ updatedAt: Date;
279
302
  isTest: boolean;
280
303
  createdAt: Date;
304
+ tags: string[];
281
305
  durationMs: number;
282
306
  costInCents: number;
283
307
  baseCostInCents: number;
284
308
  taskIdentifier: string;
285
309
  depth: number;
286
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
310
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
287
311
  isQueued: boolean;
288
312
  isExecuting: boolean;
289
313
  isCompleted: boolean;
290
314
  isSuccess: boolean;
291
315
  isFailed: boolean;
292
316
  isCancelled: boolean;
293
- updatedAt: Date;
294
- batchId?: string | undefined;
295
- idempotencyKey?: string | undefined;
317
+ metadata?: Record<string, any> | undefined;
296
318
  version?: string | undefined;
297
319
  startedAt?: Date | undefined;
320
+ idempotencyKey?: string | undefined;
321
+ ttl?: string | undefined;
322
+ batchId?: string | undefined;
298
323
  finishedAt?: Date | undefined;
299
324
  delayedUntil?: Date | undefined;
300
- ttl?: string | undefined;
301
325
  expiredAt?: Date | undefined;
302
- metadata?: Record<string, any> | undefined;
303
326
  }[] | undefined;
304
327
  };
305
- depth: number;
306
- triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
307
- isQueued: boolean;
308
- isExecuting: boolean;
309
- isCompleted: boolean;
310
- isSuccess: boolean;
311
- isFailed: boolean;
312
- isCancelled: boolean;
313
- updatedAt: Date;
314
- attempts: ({
315
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
316
- id: string;
317
- createdAt: Date;
318
- updatedAt: Date;
319
- startedAt?: Date | undefined;
320
- completedAt?: Date | undefined;
321
- error?: {
322
- message: string;
323
- name?: string | undefined;
324
- stackTrace?: string | undefined;
325
- } | undefined;
326
- } | undefined)[];
327
- attemptCount: number;
328
328
  payload?: any;
329
- payloadPresignedUrl?: string | undefined;
329
+ metadata?: Record<string, any> | undefined;
330
+ version?: string | undefined;
331
+ startedAt?: Date | undefined;
330
332
  output?: any;
331
- outputPresignedUrl?: string | undefined;
332
333
  error?: {
333
334
  message: string;
334
335
  name?: string | undefined;
335
336
  stackTrace?: string | undefined;
336
337
  } | undefined;
338
+ idempotencyKey?: string | undefined;
337
339
  schedule?: {
338
340
  id: string;
339
341
  generator: {
340
- description: string;
341
342
  type: "CRON";
343
+ description: string;
342
344
  expression: string;
343
345
  };
344
346
  externalId?: string | undefined;
345
347
  deduplicationKey?: string | undefined;
346
348
  } | undefined;
349
+ ttl?: string | undefined;
347
350
  batchId?: string | undefined;
348
- idempotencyKey?: string | undefined;
349
- version?: string | undefined;
350
- startedAt?: Date | undefined;
351
351
  finishedAt?: Date | undefined;
352
352
  delayedUntil?: Date | undefined;
353
- ttl?: string | undefined;
354
353
  expiredAt?: Date | undefined;
355
- metadata?: Record<string, any> | undefined;
354
+ payloadPresignedUrl?: string | undefined;
355
+ outputPresignedUrl?: string | undefined;
356
356
  }>;
357
357
  addTags(runId: string, body: AddTagsRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
358
358
  message: string;
@@ -360,21 +360,21 @@ export declare class ApiClient {
360
360
  createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
361
361
  type: "DECLARATIVE" | "IMPERATIVE";
362
362
  id: string;
363
+ active: boolean;
363
364
  task: string;
364
365
  timezone: string;
365
366
  generator: {
366
- description: string;
367
367
  type: "CRON";
368
+ description: string;
368
369
  expression: string;
369
370
  };
370
- active: boolean;
371
371
  environments: {
372
372
  type: string;
373
373
  id: string;
374
374
  userName?: string | null | undefined;
375
375
  }[];
376
- deduplicationKey?: string | null | undefined;
377
376
  externalId?: string | null | undefined;
377
+ deduplicationKey?: string | null | undefined;
378
378
  nextRun?: Date | null | undefined;
379
379
  }>;
380
380
  listSchedules(options?: ListScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").OffsetLimitPagePromise<z.ZodObject<{
@@ -389,12 +389,12 @@ export declare class ApiClient {
389
389
  expression: z.ZodString;
390
390
  description: z.ZodString;
391
391
  }, "strip", z.ZodTypeAny, {
392
- description: string;
393
392
  type: "CRON";
393
+ description: string;
394
394
  expression: string;
395
395
  }, {
396
- description: string;
397
396
  type: "CRON";
397
+ description: string;
398
398
  expression: string;
399
399
  }>;
400
400
  timezone: z.ZodString;
@@ -415,128 +415,128 @@ export declare class ApiClient {
415
415
  }, "strip", z.ZodTypeAny, {
416
416
  type: "DECLARATIVE" | "IMPERATIVE";
417
417
  id: string;
418
+ active: boolean;
418
419
  task: string;
419
420
  timezone: string;
420
421
  generator: {
421
- description: string;
422
422
  type: "CRON";
423
+ description: string;
423
424
  expression: string;
424
425
  };
425
- active: boolean;
426
426
  environments: {
427
427
  type: string;
428
428
  id: string;
429
429
  userName?: string | null | undefined;
430
430
  }[];
431
- deduplicationKey?: string | null | undefined;
432
431
  externalId?: string | null | undefined;
432
+ deduplicationKey?: string | null | undefined;
433
433
  nextRun?: Date | null | undefined;
434
434
  }, {
435
435
  type: "DECLARATIVE" | "IMPERATIVE";
436
436
  id: string;
437
+ active: boolean;
437
438
  task: string;
438
439
  timezone: string;
439
440
  generator: {
440
- description: string;
441
441
  type: "CRON";
442
+ description: string;
442
443
  expression: string;
443
444
  };
444
- active: boolean;
445
445
  environments: {
446
446
  type: string;
447
447
  id: string;
448
448
  userName?: string | null | undefined;
449
449
  }[];
450
- deduplicationKey?: string | null | undefined;
451
450
  externalId?: string | null | undefined;
451
+ deduplicationKey?: string | null | undefined;
452
452
  nextRun?: Date | null | undefined;
453
453
  }>>;
454
454
  retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
455
455
  type: "DECLARATIVE" | "IMPERATIVE";
456
456
  id: string;
457
+ active: boolean;
457
458
  task: string;
458
459
  timezone: string;
459
460
  generator: {
460
- description: string;
461
461
  type: "CRON";
462
+ description: string;
462
463
  expression: string;
463
464
  };
464
- active: boolean;
465
465
  environments: {
466
466
  type: string;
467
467
  id: string;
468
468
  userName?: string | null | undefined;
469
469
  }[];
470
- deduplicationKey?: string | null | undefined;
471
470
  externalId?: string | null | undefined;
471
+ deduplicationKey?: string | null | undefined;
472
472
  nextRun?: Date | null | undefined;
473
473
  }>;
474
474
  updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
475
475
  type: "DECLARATIVE" | "IMPERATIVE";
476
476
  id: string;
477
+ active: boolean;
477
478
  task: string;
478
479
  timezone: string;
479
480
  generator: {
480
- description: string;
481
481
  type: "CRON";
482
+ description: string;
482
483
  expression: string;
483
484
  };
484
- active: boolean;
485
485
  environments: {
486
486
  type: string;
487
487
  id: string;
488
488
  userName?: string | null | undefined;
489
489
  }[];
490
- deduplicationKey?: string | null | undefined;
491
490
  externalId?: string | null | undefined;
491
+ deduplicationKey?: string | null | undefined;
492
492
  nextRun?: Date | null | undefined;
493
493
  }>;
494
494
  deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
495
495
  type: "DECLARATIVE" | "IMPERATIVE";
496
496
  id: string;
497
+ active: boolean;
497
498
  task: string;
498
499
  timezone: string;
499
500
  generator: {
500
- description: string;
501
501
  type: "CRON";
502
+ description: string;
502
503
  expression: string;
503
504
  };
504
- active: boolean;
505
505
  environments: {
506
506
  type: string;
507
507
  id: string;
508
508
  userName?: string | null | undefined;
509
509
  }[];
510
- deduplicationKey?: string | null | undefined;
511
510
  externalId?: string | null | undefined;
511
+ deduplicationKey?: string | null | undefined;
512
512
  nextRun?: Date | null | undefined;
513
513
  }>;
514
514
  activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
515
515
  type: "DECLARATIVE" | "IMPERATIVE";
516
516
  id: string;
517
+ active: boolean;
517
518
  task: string;
518
519
  timezone: string;
519
520
  generator: {
520
- description: string;
521
521
  type: "CRON";
522
+ description: string;
522
523
  expression: string;
523
524
  };
524
- active: boolean;
525
525
  environments: {
526
526
  type: string;
527
527
  id: string;
528
528
  userName?: string | null | undefined;
529
529
  }[];
530
- deduplicationKey?: string | null | undefined;
531
530
  externalId?: string | null | undefined;
531
+ deduplicationKey?: string | null | undefined;
532
532
  nextRun?: Date | null | undefined;
533
533
  }>;
534
534
  deleteSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
535
535
  id: string;
536
536
  }>;
537
537
  listEnvVars(projectRef: string, slug: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
538
- name: string;
539
538
  value: string;
539
+ name: string;
540
540
  }[]>;
541
541
  importEnvVars(projectRef: string, slug: string, body: ImportEnvironmentVariablesParams, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
542
542
  success: boolean;