@trigger.dev/core 0.0.0-prerelease-20241212160659 → 0.0.0-prerelease-20241213125952

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.
@@ -44,8 +44,8 @@ export declare class ApiClient {
44
44
  isCached: boolean;
45
45
  runs: {
46
46
  id: string;
47
- taskIdentifier: string;
48
47
  isCached: boolean;
48
+ taskIdentifier: string;
49
49
  idempotencyKey?: string | undefined;
50
50
  }[];
51
51
  idempotencyKey?: string | undefined;
@@ -57,152 +57,152 @@ export declare class ApiClient {
57
57
  presignedUrl: string;
58
58
  }>;
59
59
  retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
60
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
61
60
  id: string;
61
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
62
62
  tags: string[];
63
- isTest: boolean;
64
- createdAt: Date;
65
- durationMs: number;
66
- costInCents: number;
67
- baseCostInCents: number;
68
63
  taskIdentifier: string;
69
64
  relatedRuns: {
70
65
  root?: {
71
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
72
66
  id: string;
67
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
73
68
  tags: string[];
74
- isTest: boolean;
75
- createdAt: Date;
76
- durationMs: number;
77
- costInCents: number;
78
- baseCostInCents: number;
79
69
  taskIdentifier: string;
80
70
  depth: number;
81
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
71
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
82
72
  isQueued: boolean;
83
73
  isExecuting: boolean;
84
74
  isCompleted: boolean;
85
75
  isSuccess: boolean;
86
76
  isFailed: boolean;
87
77
  isCancelled: boolean;
78
+ isTest: boolean;
79
+ createdAt: Date;
88
80
  updatedAt: Date;
89
- startedAt?: Date | undefined;
81
+ costInCents: number;
82
+ baseCostInCents: number;
83
+ durationMs: number;
90
84
  idempotencyKey?: string | undefined;
91
- version?: string | undefined;
92
- metadata?: Record<string, any> | undefined;
93
85
  ttl?: string | undefined;
86
+ metadata?: Record<string, any> | undefined;
94
87
  batchId?: string | undefined;
88
+ version?: string | undefined;
89
+ startedAt?: Date | undefined;
95
90
  finishedAt?: Date | undefined;
96
91
  delayedUntil?: Date | undefined;
97
92
  expiredAt?: Date | undefined;
98
93
  } | undefined;
99
94
  parent?: {
100
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
101
95
  id: string;
96
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
102
97
  tags: string[];
103
- isTest: boolean;
104
- createdAt: Date;
105
- durationMs: number;
106
- costInCents: number;
107
- baseCostInCents: number;
108
98
  taskIdentifier: string;
109
99
  depth: number;
110
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
100
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
111
101
  isQueued: boolean;
112
102
  isExecuting: boolean;
113
103
  isCompleted: boolean;
114
104
  isSuccess: boolean;
115
105
  isFailed: boolean;
116
106
  isCancelled: boolean;
107
+ isTest: boolean;
108
+ createdAt: Date;
117
109
  updatedAt: Date;
118
- startedAt?: Date | undefined;
110
+ costInCents: number;
111
+ baseCostInCents: number;
112
+ durationMs: number;
119
113
  idempotencyKey?: string | undefined;
120
- version?: string | undefined;
121
- metadata?: Record<string, any> | undefined;
122
114
  ttl?: string | undefined;
115
+ metadata?: Record<string, any> | undefined;
123
116
  batchId?: string | undefined;
117
+ version?: string | undefined;
118
+ startedAt?: Date | undefined;
124
119
  finishedAt?: Date | undefined;
125
120
  delayedUntil?: Date | undefined;
126
121
  expiredAt?: Date | undefined;
127
122
  } | undefined;
128
123
  children?: {
129
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
130
124
  id: string;
125
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
131
126
  tags: string[];
132
- isTest: boolean;
133
- createdAt: Date;
134
- durationMs: number;
135
- costInCents: number;
136
- baseCostInCents: number;
137
127
  taskIdentifier: string;
138
128
  depth: number;
139
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
129
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
140
130
  isQueued: boolean;
141
131
  isExecuting: boolean;
142
132
  isCompleted: boolean;
143
133
  isSuccess: boolean;
144
134
  isFailed: boolean;
145
135
  isCancelled: boolean;
136
+ isTest: boolean;
137
+ createdAt: Date;
146
138
  updatedAt: Date;
147
- startedAt?: Date | undefined;
139
+ costInCents: number;
140
+ baseCostInCents: number;
141
+ durationMs: number;
148
142
  idempotencyKey?: string | undefined;
149
- version?: string | undefined;
150
- metadata?: Record<string, any> | undefined;
151
143
  ttl?: string | undefined;
144
+ metadata?: Record<string, any> | undefined;
152
145
  batchId?: string | undefined;
146
+ version?: string | undefined;
147
+ startedAt?: Date | undefined;
153
148
  finishedAt?: Date | undefined;
154
149
  delayedUntil?: Date | undefined;
155
150
  expiredAt?: Date | undefined;
156
151
  }[] | undefined;
157
152
  };
158
153
  depth: number;
159
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
154
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
160
155
  isQueued: boolean;
161
156
  isExecuting: boolean;
162
157
  isCompleted: boolean;
163
158
  isSuccess: boolean;
164
159
  isFailed: boolean;
165
160
  isCancelled: boolean;
161
+ isTest: boolean;
162
+ createdAt: Date;
166
163
  updatedAt: Date;
164
+ costInCents: number;
165
+ baseCostInCents: number;
166
+ durationMs: number;
167
167
  attempts: ({
168
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
169
168
  id: string;
169
+ status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
170
170
  createdAt: Date;
171
171
  updatedAt: Date;
172
- startedAt?: Date | undefined;
173
172
  error?: {
174
173
  message: string;
175
174
  name?: string | undefined;
176
175
  stackTrace?: string | undefined;
177
176
  } | undefined;
177
+ startedAt?: Date | undefined;
178
178
  completedAt?: Date | undefined;
179
179
  } | undefined)[];
180
180
  attemptCount: number;
181
- output?: any;
182
- startedAt?: Date | undefined;
183
181
  payload?: any;
184
182
  idempotencyKey?: string | undefined;
185
- version?: string | undefined;
186
- metadata?: Record<string, any> | undefined;
187
183
  ttl?: string | undefined;
184
+ metadata?: Record<string, any> | undefined;
185
+ payloadPresignedUrl?: string | undefined;
186
+ output?: any;
187
+ outputPresignedUrl?: string | undefined;
188
+ error?: {
189
+ message: string;
190
+ name?: string | undefined;
191
+ stackTrace?: string | undefined;
192
+ } | undefined;
188
193
  schedule?: {
189
194
  id: string;
190
195
  generator: {
191
196
  type: "CRON";
192
- description: string;
193
197
  expression: string;
198
+ description: string;
194
199
  };
195
200
  externalId?: string | undefined;
196
201
  deduplicationKey?: string | undefined;
197
202
  } | undefined;
198
- payloadPresignedUrl?: string | undefined;
199
- outputPresignedUrl?: string | undefined;
200
- error?: {
201
- message: string;
202
- name?: string | undefined;
203
- stackTrace?: string | undefined;
204
- } | undefined;
205
203
  batchId?: string | undefined;
204
+ version?: string | undefined;
205
+ startedAt?: Date | undefined;
206
206
  finishedAt?: Date | undefined;
207
207
  delayedUntil?: Date | undefined;
208
208
  expiredAt?: Date | undefined;
@@ -216,152 +216,152 @@ export declare class ApiClient {
216
216
  id: string;
217
217
  }>;
218
218
  rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
219
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
220
219
  id: string;
220
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
221
221
  tags: string[];
222
- isTest: boolean;
223
- createdAt: Date;
224
- durationMs: number;
225
- costInCents: number;
226
- baseCostInCents: number;
227
222
  taskIdentifier: string;
228
223
  relatedRuns: {
229
224
  root?: {
230
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
231
225
  id: string;
226
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
232
227
  tags: string[];
233
- isTest: boolean;
234
- createdAt: Date;
235
- durationMs: number;
236
- costInCents: number;
237
- baseCostInCents: number;
238
228
  taskIdentifier: string;
239
229
  depth: number;
240
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
230
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
241
231
  isQueued: boolean;
242
232
  isExecuting: boolean;
243
233
  isCompleted: boolean;
244
234
  isSuccess: boolean;
245
235
  isFailed: boolean;
246
236
  isCancelled: boolean;
237
+ isTest: boolean;
238
+ createdAt: Date;
247
239
  updatedAt: Date;
248
- startedAt?: Date | undefined;
240
+ costInCents: number;
241
+ baseCostInCents: number;
242
+ durationMs: number;
249
243
  idempotencyKey?: string | undefined;
250
- version?: string | undefined;
251
- metadata?: Record<string, any> | undefined;
252
244
  ttl?: string | undefined;
245
+ metadata?: Record<string, any> | undefined;
253
246
  batchId?: string | undefined;
247
+ version?: string | undefined;
248
+ startedAt?: Date | undefined;
254
249
  finishedAt?: Date | undefined;
255
250
  delayedUntil?: Date | undefined;
256
251
  expiredAt?: Date | undefined;
257
252
  } | undefined;
258
253
  parent?: {
259
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
260
254
  id: string;
255
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
261
256
  tags: string[];
262
- isTest: boolean;
263
- createdAt: Date;
264
- durationMs: number;
265
- costInCents: number;
266
- baseCostInCents: number;
267
257
  taskIdentifier: string;
268
258
  depth: number;
269
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
259
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
270
260
  isQueued: boolean;
271
261
  isExecuting: boolean;
272
262
  isCompleted: boolean;
273
263
  isSuccess: boolean;
274
264
  isFailed: boolean;
275
265
  isCancelled: boolean;
266
+ isTest: boolean;
267
+ createdAt: Date;
276
268
  updatedAt: Date;
277
- startedAt?: Date | undefined;
269
+ costInCents: number;
270
+ baseCostInCents: number;
271
+ durationMs: number;
278
272
  idempotencyKey?: string | undefined;
279
- version?: string | undefined;
280
- metadata?: Record<string, any> | undefined;
281
273
  ttl?: string | undefined;
274
+ metadata?: Record<string, any> | undefined;
282
275
  batchId?: string | undefined;
276
+ version?: string | undefined;
277
+ startedAt?: Date | undefined;
283
278
  finishedAt?: Date | undefined;
284
279
  delayedUntil?: Date | undefined;
285
280
  expiredAt?: Date | undefined;
286
281
  } | undefined;
287
282
  children?: {
288
- status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
289
283
  id: string;
284
+ status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
290
285
  tags: string[];
291
- isTest: boolean;
292
- createdAt: Date;
293
- durationMs: number;
294
- costInCents: number;
295
- baseCostInCents: number;
296
286
  taskIdentifier: string;
297
287
  depth: number;
298
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
288
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
299
289
  isQueued: boolean;
300
290
  isExecuting: boolean;
301
291
  isCompleted: boolean;
302
292
  isSuccess: boolean;
303
293
  isFailed: boolean;
304
294
  isCancelled: boolean;
295
+ isTest: boolean;
296
+ createdAt: Date;
305
297
  updatedAt: Date;
306
- startedAt?: Date | undefined;
298
+ costInCents: number;
299
+ baseCostInCents: number;
300
+ durationMs: number;
307
301
  idempotencyKey?: string | undefined;
308
- version?: string | undefined;
309
- metadata?: Record<string, any> | undefined;
310
302
  ttl?: string | undefined;
303
+ metadata?: Record<string, any> | undefined;
311
304
  batchId?: string | undefined;
305
+ version?: string | undefined;
306
+ startedAt?: Date | undefined;
312
307
  finishedAt?: Date | undefined;
313
308
  delayedUntil?: Date | undefined;
314
309
  expiredAt?: Date | undefined;
315
310
  }[] | undefined;
316
311
  };
317
312
  depth: number;
318
- triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
313
+ triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
319
314
  isQueued: boolean;
320
315
  isExecuting: boolean;
321
316
  isCompleted: boolean;
322
317
  isSuccess: boolean;
323
318
  isFailed: boolean;
324
319
  isCancelled: boolean;
320
+ isTest: boolean;
321
+ createdAt: Date;
325
322
  updatedAt: Date;
323
+ costInCents: number;
324
+ baseCostInCents: number;
325
+ durationMs: number;
326
326
  attempts: ({
327
- status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
328
327
  id: string;
328
+ status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
329
329
  createdAt: Date;
330
330
  updatedAt: Date;
331
- startedAt?: Date | undefined;
332
331
  error?: {
333
332
  message: string;
334
333
  name?: string | undefined;
335
334
  stackTrace?: string | undefined;
336
335
  } | undefined;
336
+ startedAt?: Date | undefined;
337
337
  completedAt?: Date | undefined;
338
338
  } | undefined)[];
339
339
  attemptCount: number;
340
- output?: any;
341
- startedAt?: Date | undefined;
342
340
  payload?: any;
343
341
  idempotencyKey?: string | undefined;
344
- version?: string | undefined;
345
- metadata?: Record<string, any> | undefined;
346
342
  ttl?: string | undefined;
343
+ metadata?: Record<string, any> | undefined;
344
+ payloadPresignedUrl?: string | undefined;
345
+ output?: any;
346
+ outputPresignedUrl?: string | undefined;
347
+ error?: {
348
+ message: string;
349
+ name?: string | undefined;
350
+ stackTrace?: string | undefined;
351
+ } | undefined;
347
352
  schedule?: {
348
353
  id: string;
349
354
  generator: {
350
355
  type: "CRON";
351
- description: string;
352
356
  expression: string;
357
+ description: string;
353
358
  };
354
359
  externalId?: string | undefined;
355
360
  deduplicationKey?: string | undefined;
356
361
  } | undefined;
357
- payloadPresignedUrl?: string | undefined;
358
- outputPresignedUrl?: string | undefined;
359
- error?: {
360
- message: string;
361
- name?: string | undefined;
362
- stackTrace?: string | undefined;
363
- } | undefined;
364
362
  batchId?: string | undefined;
363
+ version?: string | undefined;
364
+ startedAt?: Date | undefined;
365
365
  finishedAt?: Date | undefined;
366
366
  delayedUntil?: Date | undefined;
367
367
  expiredAt?: Date | undefined;
@@ -370,19 +370,19 @@ export declare class ApiClient {
370
370
  message: string;
371
371
  }>;
372
372
  createSchedule(options: CreateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
373
- type: "DECLARATIVE" | "IMPERATIVE";
374
373
  id: string;
374
+ type: "DECLARATIVE" | "IMPERATIVE";
375
375
  task: string;
376
- timezone: string;
377
376
  generator: {
378
377
  type: "CRON";
379
- description: string;
380
378
  expression: string;
379
+ description: string;
381
380
  };
382
381
  active: boolean;
382
+ timezone: string;
383
383
  environments: {
384
- type: string;
385
384
  id: string;
385
+ type: string;
386
386
  userName?: string | null | undefined;
387
387
  }[];
388
388
  externalId?: string | null | undefined;
@@ -402,12 +402,12 @@ export declare class ApiClient {
402
402
  description: z.ZodString;
403
403
  }, "strip", z.ZodTypeAny, {
404
404
  type: "CRON";
405
- description: string;
406
405
  expression: string;
406
+ description: string;
407
407
  }, {
408
408
  type: "CRON";
409
- description: string;
410
409
  expression: string;
410
+ description: string;
411
411
  }>;
412
412
  timezone: z.ZodString;
413
413
  nextRun: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
@@ -416,47 +416,47 @@ export declare class ApiClient {
416
416
  type: z.ZodString;
417
417
  userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
418
  }, "strip", z.ZodTypeAny, {
419
- type: string;
420
419
  id: string;
420
+ type: string;
421
421
  userName?: string | null | undefined;
422
422
  }, {
423
- type: string;
424
423
  id: string;
424
+ type: string;
425
425
  userName?: string | null | undefined;
426
426
  }>, "many">;
427
427
  }, "strip", z.ZodTypeAny, {
428
- type: "DECLARATIVE" | "IMPERATIVE";
429
428
  id: string;
429
+ type: "DECLARATIVE" | "IMPERATIVE";
430
430
  task: string;
431
- timezone: string;
432
431
  generator: {
433
432
  type: "CRON";
434
- description: string;
435
433
  expression: string;
434
+ description: string;
436
435
  };
437
436
  active: boolean;
437
+ timezone: string;
438
438
  environments: {
439
- type: string;
440
439
  id: string;
440
+ type: string;
441
441
  userName?: string | null | undefined;
442
442
  }[];
443
443
  externalId?: string | null | undefined;
444
444
  deduplicationKey?: string | null | undefined;
445
445
  nextRun?: Date | null | undefined;
446
446
  }, {
447
- type: "DECLARATIVE" | "IMPERATIVE";
448
447
  id: string;
448
+ type: "DECLARATIVE" | "IMPERATIVE";
449
449
  task: string;
450
- timezone: string;
451
450
  generator: {
452
451
  type: "CRON";
453
- description: string;
454
452
  expression: string;
453
+ description: string;
455
454
  };
456
455
  active: boolean;
456
+ timezone: string;
457
457
  environments: {
458
- type: string;
459
458
  id: string;
459
+ type: string;
460
460
  userName?: string | null | undefined;
461
461
  }[];
462
462
  externalId?: string | null | undefined;
@@ -464,19 +464,19 @@ export declare class ApiClient {
464
464
  nextRun?: Date | null | undefined;
465
465
  }>>;
466
466
  retrieveSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
467
- type: "DECLARATIVE" | "IMPERATIVE";
468
467
  id: string;
468
+ type: "DECLARATIVE" | "IMPERATIVE";
469
469
  task: string;
470
- timezone: string;
471
470
  generator: {
472
471
  type: "CRON";
473
- description: string;
474
472
  expression: string;
473
+ description: string;
475
474
  };
476
475
  active: boolean;
476
+ timezone: string;
477
477
  environments: {
478
- type: string;
479
478
  id: string;
479
+ type: string;
480
480
  userName?: string | null | undefined;
481
481
  }[];
482
482
  externalId?: string | null | undefined;
@@ -484,19 +484,19 @@ export declare class ApiClient {
484
484
  nextRun?: Date | null | undefined;
485
485
  }>;
486
486
  updateSchedule(scheduleId: string, options: UpdateScheduleOptions, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
487
- type: "DECLARATIVE" | "IMPERATIVE";
488
487
  id: string;
488
+ type: "DECLARATIVE" | "IMPERATIVE";
489
489
  task: string;
490
- timezone: string;
491
490
  generator: {
492
491
  type: "CRON";
493
- description: string;
494
492
  expression: string;
493
+ description: string;
495
494
  };
496
495
  active: boolean;
496
+ timezone: string;
497
497
  environments: {
498
- type: string;
499
498
  id: string;
499
+ type: string;
500
500
  userName?: string | null | undefined;
501
501
  }[];
502
502
  externalId?: string | null | undefined;
@@ -504,19 +504,19 @@ export declare class ApiClient {
504
504
  nextRun?: Date | null | undefined;
505
505
  }>;
506
506
  deactivateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
507
- type: "DECLARATIVE" | "IMPERATIVE";
508
507
  id: string;
508
+ type: "DECLARATIVE" | "IMPERATIVE";
509
509
  task: string;
510
- timezone: string;
511
510
  generator: {
512
511
  type: "CRON";
513
- description: string;
514
512
  expression: string;
513
+ description: string;
515
514
  };
516
515
  active: boolean;
516
+ timezone: string;
517
517
  environments: {
518
- type: string;
519
518
  id: string;
519
+ type: string;
520
520
  userName?: string | null | undefined;
521
521
  }[];
522
522
  externalId?: string | null | undefined;
@@ -524,19 +524,19 @@ export declare class ApiClient {
524
524
  nextRun?: Date | null | undefined;
525
525
  }>;
526
526
  activateSchedule(scheduleId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
527
- type: "DECLARATIVE" | "IMPERATIVE";
528
527
  id: string;
528
+ type: "DECLARATIVE" | "IMPERATIVE";
529
529
  task: string;
530
- timezone: string;
531
530
  generator: {
532
531
  type: "CRON";
533
- description: string;
534
532
  expression: string;
533
+ description: string;
535
534
  };
536
535
  active: boolean;
536
+ timezone: string;
537
537
  environments: {
538
- type: string;
539
538
  id: string;
539
+ type: string;
540
540
  userName?: string | null | undefined;
541
541
  }[];
542
542
  externalId?: string | null | undefined;
@@ -579,8 +579,8 @@ export declare class ApiClient {
579
579
  }): RunSubscription<TRunTypes>;
580
580
  generateJWTClaims(requestOptions?: ZodFetchOptions): Promise<Record<string, any>>;
581
581
  retrieveBatch(batchId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
582
- status: "COMPLETED" | "PENDING";
583
582
  id: string;
583
+ status: "COMPLETED" | "PENDING";
584
584
  createdAt: Date;
585
585
  updatedAt: Date;
586
586
  runCount: number;
@@ -105,12 +105,12 @@ export interface RunShapeProvider {
105
105
  }
106
106
  export type RunSubscriptionOptions = RunShapeStreamOptions & {
107
107
  runShapeStream: ReadableStream<SubscribeRunRawShape>;
108
+ stopRunShapeStream: () => void;
108
109
  streamFactory: StreamSubscriptionFactory;
109
110
  abortController: AbortController;
110
111
  };
111
112
  export declare class RunSubscription<TRunTypes extends AnyRunTypes> {
112
113
  private options;
113
- private unsubscribeShape?;
114
114
  private stream;
115
115
  private packetCache;
116
116
  private _closeOnComplete;