@trigger.dev/core 0.0.0-prerelease-20241128131418 → 0.0.0-prerelease-20241202120601

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