@trigger.dev/core 0.0.0-prerelease-20241202134753 → 0.0.0-prerelease-20241202154035
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/apiClient/index.d.ts +140 -140
- package/dist/commonjs/v3/apiClient/runStream.d.ts +2 -2
- package/dist/commonjs/v3/apiClient/runStream.js +37 -22
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +702 -702
- package/dist/commonjs/v3/schemas/build.d.ts +144 -144
- package/dist/commonjs/v3/schemas/messages.d.ts +2374 -2374
- package/dist/commonjs/v3/schemas/resources.d.ts +82 -82
- package/dist/commonjs/v3/schemas/schemas.d.ts +324 -324
- package/dist/esm/v3/apiClient/index.d.ts +140 -140
- package/dist/esm/v3/apiClient/runStream.d.ts +2 -2
- package/dist/esm/v3/apiClient/runStream.js +37 -22
- package/dist/esm/v3/apiClient/runStream.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +702 -702
- package/dist/esm/v3/schemas/build.d.ts +144 -144
- package/dist/esm/v3/schemas/messages.d.ts +2374 -2374
- package/dist/esm/v3/schemas/resources.d.ts +82 -82
- package/dist/esm/v3/schemas/schemas.d.ts +324 -324
- package/package.json +1 -1
|
@@ -41,9 +41,9 @@ export declare class ApiClient {
|
|
|
41
41
|
id: string;
|
|
42
42
|
isCached: boolean;
|
|
43
43
|
runs: {
|
|
44
|
+
taskIdentifier: string;
|
|
44
45
|
id: string;
|
|
45
46
|
isCached: boolean;
|
|
46
|
-
taskIdentifier: string;
|
|
47
47
|
idempotencyKey?: string | undefined;
|
|
48
48
|
}[];
|
|
49
49
|
idempotencyKey?: string | undefined;
|
|
@@ -55,116 +55,116 @@ export declare class ApiClient {
|
|
|
55
55
|
presignedUrl: string;
|
|
56
56
|
}>;
|
|
57
57
|
retrieveRun(runId: string, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
58
|
-
|
|
58
|
+
taskIdentifier: string;
|
|
59
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
|
-
|
|
61
|
+
id: string;
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
updatedAt: Date;
|
|
64
|
+
isTest: boolean;
|
|
65
|
+
costInCents: number;
|
|
66
|
+
baseCostInCents: number;
|
|
67
|
+
durationMs: number;
|
|
62
68
|
relatedRuns: {
|
|
63
69
|
root?: {
|
|
64
|
-
|
|
70
|
+
taskIdentifier: string;
|
|
65
71
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
66
72
|
tags: string[];
|
|
67
|
-
|
|
73
|
+
id: string;
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
isTest: boolean;
|
|
77
|
+
costInCents: number;
|
|
78
|
+
baseCostInCents: number;
|
|
79
|
+
durationMs: number;
|
|
68
80
|
depth: number;
|
|
69
|
-
triggerFunction: "
|
|
81
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
70
82
|
isQueued: boolean;
|
|
71
83
|
isExecuting: boolean;
|
|
72
84
|
isCompleted: boolean;
|
|
73
85
|
isSuccess: boolean;
|
|
74
86
|
isFailed: boolean;
|
|
75
87
|
isCancelled: boolean;
|
|
76
|
-
isTest: boolean;
|
|
77
|
-
createdAt: Date;
|
|
78
|
-
updatedAt: Date;
|
|
79
|
-
costInCents: number;
|
|
80
|
-
baseCostInCents: number;
|
|
81
|
-
durationMs: number;
|
|
82
88
|
idempotencyKey?: string | undefined;
|
|
83
89
|
ttl?: string | undefined;
|
|
84
90
|
metadata?: Record<string, any> | undefined;
|
|
85
|
-
batchId?: string | undefined;
|
|
86
|
-
version?: string | undefined;
|
|
87
91
|
startedAt?: Date | undefined;
|
|
92
|
+
expiredAt?: Date | undefined;
|
|
93
|
+
version?: string | undefined;
|
|
94
|
+
batchId?: string | undefined;
|
|
88
95
|
finishedAt?: Date | undefined;
|
|
89
96
|
delayedUntil?: Date | undefined;
|
|
90
|
-
expiredAt?: Date | undefined;
|
|
91
97
|
} | undefined;
|
|
92
98
|
parent?: {
|
|
93
|
-
|
|
99
|
+
taskIdentifier: string;
|
|
94
100
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
95
101
|
tags: string[];
|
|
96
|
-
|
|
102
|
+
id: string;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
updatedAt: Date;
|
|
105
|
+
isTest: boolean;
|
|
106
|
+
costInCents: number;
|
|
107
|
+
baseCostInCents: number;
|
|
108
|
+
durationMs: number;
|
|
97
109
|
depth: number;
|
|
98
|
-
triggerFunction: "
|
|
110
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
99
111
|
isQueued: boolean;
|
|
100
112
|
isExecuting: boolean;
|
|
101
113
|
isCompleted: boolean;
|
|
102
114
|
isSuccess: boolean;
|
|
103
115
|
isFailed: boolean;
|
|
104
116
|
isCancelled: boolean;
|
|
105
|
-
isTest: boolean;
|
|
106
|
-
createdAt: Date;
|
|
107
|
-
updatedAt: Date;
|
|
108
|
-
costInCents: number;
|
|
109
|
-
baseCostInCents: number;
|
|
110
|
-
durationMs: number;
|
|
111
117
|
idempotencyKey?: string | undefined;
|
|
112
118
|
ttl?: string | undefined;
|
|
113
119
|
metadata?: Record<string, any> | undefined;
|
|
114
|
-
batchId?: string | undefined;
|
|
115
|
-
version?: string | undefined;
|
|
116
120
|
startedAt?: Date | undefined;
|
|
121
|
+
expiredAt?: Date | undefined;
|
|
122
|
+
version?: string | undefined;
|
|
123
|
+
batchId?: string | undefined;
|
|
117
124
|
finishedAt?: Date | undefined;
|
|
118
125
|
delayedUntil?: Date | undefined;
|
|
119
|
-
expiredAt?: Date | undefined;
|
|
120
126
|
} | undefined;
|
|
121
127
|
children?: {
|
|
122
|
-
|
|
128
|
+
taskIdentifier: string;
|
|
123
129
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
124
130
|
tags: string[];
|
|
125
|
-
|
|
131
|
+
id: string;
|
|
132
|
+
createdAt: Date;
|
|
133
|
+
updatedAt: Date;
|
|
134
|
+
isTest: boolean;
|
|
135
|
+
costInCents: number;
|
|
136
|
+
baseCostInCents: number;
|
|
137
|
+
durationMs: number;
|
|
126
138
|
depth: number;
|
|
127
|
-
triggerFunction: "
|
|
139
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
128
140
|
isQueued: boolean;
|
|
129
141
|
isExecuting: boolean;
|
|
130
142
|
isCompleted: boolean;
|
|
131
143
|
isSuccess: boolean;
|
|
132
144
|
isFailed: boolean;
|
|
133
145
|
isCancelled: boolean;
|
|
134
|
-
isTest: boolean;
|
|
135
|
-
createdAt: Date;
|
|
136
|
-
updatedAt: Date;
|
|
137
|
-
costInCents: number;
|
|
138
|
-
baseCostInCents: number;
|
|
139
|
-
durationMs: number;
|
|
140
146
|
idempotencyKey?: string | undefined;
|
|
141
147
|
ttl?: string | undefined;
|
|
142
148
|
metadata?: Record<string, any> | undefined;
|
|
143
|
-
batchId?: string | undefined;
|
|
144
|
-
version?: string | undefined;
|
|
145
149
|
startedAt?: Date | undefined;
|
|
150
|
+
expiredAt?: Date | undefined;
|
|
151
|
+
version?: string | undefined;
|
|
152
|
+
batchId?: string | undefined;
|
|
146
153
|
finishedAt?: Date | undefined;
|
|
147
154
|
delayedUntil?: Date | undefined;
|
|
148
|
-
expiredAt?: Date | undefined;
|
|
149
155
|
}[] | undefined;
|
|
150
156
|
};
|
|
151
157
|
depth: number;
|
|
152
|
-
triggerFunction: "
|
|
158
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
153
159
|
isQueued: boolean;
|
|
154
160
|
isExecuting: boolean;
|
|
155
161
|
isCompleted: boolean;
|
|
156
162
|
isSuccess: boolean;
|
|
157
163
|
isFailed: boolean;
|
|
158
164
|
isCancelled: boolean;
|
|
159
|
-
isTest: boolean;
|
|
160
|
-
createdAt: Date;
|
|
161
|
-
updatedAt: Date;
|
|
162
|
-
costInCents: number;
|
|
163
|
-
baseCostInCents: number;
|
|
164
|
-
durationMs: number;
|
|
165
165
|
attempts: ({
|
|
166
|
-
id: string;
|
|
167
166
|
status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
|
|
167
|
+
id: string;
|
|
168
168
|
createdAt: Date;
|
|
169
169
|
updatedAt: Date;
|
|
170
170
|
error?: {
|
|
@@ -176,34 +176,34 @@ export declare class ApiClient {
|
|
|
176
176
|
completedAt?: Date | undefined;
|
|
177
177
|
} | undefined)[];
|
|
178
178
|
attemptCount: number;
|
|
179
|
+
output?: any;
|
|
179
180
|
payload?: any;
|
|
180
181
|
idempotencyKey?: string | undefined;
|
|
181
182
|
ttl?: string | undefined;
|
|
182
183
|
metadata?: Record<string, any> | undefined;
|
|
183
|
-
payloadPresignedUrl?: string | undefined;
|
|
184
|
-
output?: any;
|
|
185
|
-
outputPresignedUrl?: string | undefined;
|
|
186
184
|
error?: {
|
|
187
185
|
message: string;
|
|
188
186
|
name?: string | undefined;
|
|
189
187
|
stackTrace?: string | undefined;
|
|
190
188
|
} | undefined;
|
|
189
|
+
startedAt?: Date | undefined;
|
|
190
|
+
expiredAt?: Date | undefined;
|
|
191
|
+
version?: string | undefined;
|
|
191
192
|
schedule?: {
|
|
192
193
|
id: string;
|
|
193
194
|
generator: {
|
|
194
195
|
type: "CRON";
|
|
195
|
-
expression: string;
|
|
196
196
|
description: string;
|
|
197
|
+
expression: string;
|
|
197
198
|
};
|
|
198
199
|
externalId?: string | undefined;
|
|
199
200
|
deduplicationKey?: string | undefined;
|
|
200
201
|
} | undefined;
|
|
202
|
+
payloadPresignedUrl?: string | undefined;
|
|
203
|
+
outputPresignedUrl?: string | undefined;
|
|
201
204
|
batchId?: string | undefined;
|
|
202
|
-
version?: string | undefined;
|
|
203
|
-
startedAt?: Date | undefined;
|
|
204
205
|
finishedAt?: Date | undefined;
|
|
205
206
|
delayedUntil?: Date | undefined;
|
|
206
|
-
expiredAt?: Date | 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,116 +214,116 @@ export declare class ApiClient {
|
|
|
214
214
|
id: string;
|
|
215
215
|
}>;
|
|
216
216
|
rescheduleRun(runId: string, body: RescheduleRunRequestBody, requestOptions?: ZodFetchOptions): import("./core.js").ApiPromise<{
|
|
217
|
-
|
|
217
|
+
taskIdentifier: string;
|
|
218
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
|
-
|
|
220
|
+
id: string;
|
|
221
|
+
createdAt: Date;
|
|
222
|
+
updatedAt: Date;
|
|
223
|
+
isTest: boolean;
|
|
224
|
+
costInCents: number;
|
|
225
|
+
baseCostInCents: number;
|
|
226
|
+
durationMs: number;
|
|
221
227
|
relatedRuns: {
|
|
222
228
|
root?: {
|
|
223
|
-
|
|
229
|
+
taskIdentifier: string;
|
|
224
230
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
225
231
|
tags: string[];
|
|
226
|
-
|
|
232
|
+
id: string;
|
|
233
|
+
createdAt: Date;
|
|
234
|
+
updatedAt: Date;
|
|
235
|
+
isTest: boolean;
|
|
236
|
+
costInCents: number;
|
|
237
|
+
baseCostInCents: number;
|
|
238
|
+
durationMs: number;
|
|
227
239
|
depth: number;
|
|
228
|
-
triggerFunction: "
|
|
240
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
229
241
|
isQueued: boolean;
|
|
230
242
|
isExecuting: boolean;
|
|
231
243
|
isCompleted: boolean;
|
|
232
244
|
isSuccess: boolean;
|
|
233
245
|
isFailed: boolean;
|
|
234
246
|
isCancelled: boolean;
|
|
235
|
-
isTest: boolean;
|
|
236
|
-
createdAt: Date;
|
|
237
|
-
updatedAt: Date;
|
|
238
|
-
costInCents: number;
|
|
239
|
-
baseCostInCents: number;
|
|
240
|
-
durationMs: number;
|
|
241
247
|
idempotencyKey?: string | undefined;
|
|
242
248
|
ttl?: string | undefined;
|
|
243
249
|
metadata?: Record<string, any> | undefined;
|
|
244
|
-
batchId?: string | undefined;
|
|
245
|
-
version?: string | undefined;
|
|
246
250
|
startedAt?: Date | undefined;
|
|
251
|
+
expiredAt?: Date | undefined;
|
|
252
|
+
version?: string | undefined;
|
|
253
|
+
batchId?: string | undefined;
|
|
247
254
|
finishedAt?: Date | undefined;
|
|
248
255
|
delayedUntil?: Date | undefined;
|
|
249
|
-
expiredAt?: Date | undefined;
|
|
250
256
|
} | undefined;
|
|
251
257
|
parent?: {
|
|
252
|
-
|
|
258
|
+
taskIdentifier: string;
|
|
253
259
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
254
260
|
tags: string[];
|
|
255
|
-
|
|
261
|
+
id: string;
|
|
262
|
+
createdAt: Date;
|
|
263
|
+
updatedAt: Date;
|
|
264
|
+
isTest: boolean;
|
|
265
|
+
costInCents: number;
|
|
266
|
+
baseCostInCents: number;
|
|
267
|
+
durationMs: number;
|
|
256
268
|
depth: number;
|
|
257
|
-
triggerFunction: "
|
|
269
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
258
270
|
isQueued: boolean;
|
|
259
271
|
isExecuting: boolean;
|
|
260
272
|
isCompleted: boolean;
|
|
261
273
|
isSuccess: boolean;
|
|
262
274
|
isFailed: boolean;
|
|
263
275
|
isCancelled: boolean;
|
|
264
|
-
isTest: boolean;
|
|
265
|
-
createdAt: Date;
|
|
266
|
-
updatedAt: Date;
|
|
267
|
-
costInCents: number;
|
|
268
|
-
baseCostInCents: number;
|
|
269
|
-
durationMs: number;
|
|
270
276
|
idempotencyKey?: string | undefined;
|
|
271
277
|
ttl?: string | undefined;
|
|
272
278
|
metadata?: Record<string, any> | undefined;
|
|
273
|
-
batchId?: string | undefined;
|
|
274
|
-
version?: string | undefined;
|
|
275
279
|
startedAt?: Date | undefined;
|
|
280
|
+
expiredAt?: Date | undefined;
|
|
281
|
+
version?: string | undefined;
|
|
282
|
+
batchId?: string | undefined;
|
|
276
283
|
finishedAt?: Date | undefined;
|
|
277
284
|
delayedUntil?: Date | undefined;
|
|
278
|
-
expiredAt?: Date | undefined;
|
|
279
285
|
} | undefined;
|
|
280
286
|
children?: {
|
|
281
|
-
|
|
287
|
+
taskIdentifier: string;
|
|
282
288
|
status: "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "COMPLETED" | "CANCELED" | "FAILED" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED" | "TIMED_OUT";
|
|
283
289
|
tags: string[];
|
|
284
|
-
|
|
290
|
+
id: string;
|
|
291
|
+
createdAt: Date;
|
|
292
|
+
updatedAt: Date;
|
|
293
|
+
isTest: boolean;
|
|
294
|
+
costInCents: number;
|
|
295
|
+
baseCostInCents: number;
|
|
296
|
+
durationMs: number;
|
|
285
297
|
depth: number;
|
|
286
|
-
triggerFunction: "
|
|
298
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
287
299
|
isQueued: boolean;
|
|
288
300
|
isExecuting: boolean;
|
|
289
301
|
isCompleted: boolean;
|
|
290
302
|
isSuccess: boolean;
|
|
291
303
|
isFailed: boolean;
|
|
292
304
|
isCancelled: boolean;
|
|
293
|
-
isTest: boolean;
|
|
294
|
-
createdAt: Date;
|
|
295
|
-
updatedAt: Date;
|
|
296
|
-
costInCents: number;
|
|
297
|
-
baseCostInCents: number;
|
|
298
|
-
durationMs: number;
|
|
299
305
|
idempotencyKey?: string | undefined;
|
|
300
306
|
ttl?: string | undefined;
|
|
301
307
|
metadata?: Record<string, any> | undefined;
|
|
302
|
-
batchId?: string | undefined;
|
|
303
|
-
version?: string | undefined;
|
|
304
308
|
startedAt?: Date | undefined;
|
|
309
|
+
expiredAt?: Date | undefined;
|
|
310
|
+
version?: string | undefined;
|
|
311
|
+
batchId?: string | undefined;
|
|
305
312
|
finishedAt?: Date | undefined;
|
|
306
313
|
delayedUntil?: Date | undefined;
|
|
307
|
-
expiredAt?: Date | undefined;
|
|
308
314
|
}[] | undefined;
|
|
309
315
|
};
|
|
310
316
|
depth: number;
|
|
311
|
-
triggerFunction: "
|
|
317
|
+
triggerFunction: "trigger" | "batchTrigger" | "triggerAndWait" | "batchTriggerAndWait";
|
|
312
318
|
isQueued: boolean;
|
|
313
319
|
isExecuting: boolean;
|
|
314
320
|
isCompleted: boolean;
|
|
315
321
|
isSuccess: boolean;
|
|
316
322
|
isFailed: boolean;
|
|
317
323
|
isCancelled: boolean;
|
|
318
|
-
isTest: boolean;
|
|
319
|
-
createdAt: Date;
|
|
320
|
-
updatedAt: Date;
|
|
321
|
-
costInCents: number;
|
|
322
|
-
baseCostInCents: number;
|
|
323
|
-
durationMs: number;
|
|
324
324
|
attempts: ({
|
|
325
|
-
id: string;
|
|
326
325
|
status: "EXECUTING" | "COMPLETED" | "CANCELED" | "FAILED" | "PENDING" | "PAUSED";
|
|
326
|
+
id: string;
|
|
327
327
|
createdAt: Date;
|
|
328
328
|
updatedAt: Date;
|
|
329
329
|
error?: {
|
|
@@ -335,52 +335,52 @@ export declare class ApiClient {
|
|
|
335
335
|
completedAt?: Date | undefined;
|
|
336
336
|
} | undefined)[];
|
|
337
337
|
attemptCount: number;
|
|
338
|
+
output?: any;
|
|
338
339
|
payload?: any;
|
|
339
340
|
idempotencyKey?: string | undefined;
|
|
340
341
|
ttl?: string | undefined;
|
|
341
342
|
metadata?: Record<string, any> | undefined;
|
|
342
|
-
payloadPresignedUrl?: string | undefined;
|
|
343
|
-
output?: any;
|
|
344
|
-
outputPresignedUrl?: string | undefined;
|
|
345
343
|
error?: {
|
|
346
344
|
message: string;
|
|
347
345
|
name?: string | undefined;
|
|
348
346
|
stackTrace?: string | undefined;
|
|
349
347
|
} | undefined;
|
|
348
|
+
startedAt?: Date | undefined;
|
|
349
|
+
expiredAt?: Date | undefined;
|
|
350
|
+
version?: string | undefined;
|
|
350
351
|
schedule?: {
|
|
351
352
|
id: string;
|
|
352
353
|
generator: {
|
|
353
354
|
type: "CRON";
|
|
354
|
-
expression: string;
|
|
355
355
|
description: string;
|
|
356
|
+
expression: string;
|
|
356
357
|
};
|
|
357
358
|
externalId?: string | undefined;
|
|
358
359
|
deduplicationKey?: string | undefined;
|
|
359
360
|
} | undefined;
|
|
361
|
+
payloadPresignedUrl?: string | undefined;
|
|
362
|
+
outputPresignedUrl?: string | undefined;
|
|
360
363
|
batchId?: string | undefined;
|
|
361
|
-
version?: string | undefined;
|
|
362
|
-
startedAt?: Date | undefined;
|
|
363
364
|
finishedAt?: Date | undefined;
|
|
364
365
|
delayedUntil?: Date | undefined;
|
|
365
|
-
expiredAt?: Date | 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
|
-
id: string;
|
|
372
371
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
372
|
+
id: string;
|
|
373
373
|
task: string;
|
|
374
|
+
timezone: string;
|
|
374
375
|
generator: {
|
|
375
376
|
type: "CRON";
|
|
376
|
-
expression: string;
|
|
377
377
|
description: string;
|
|
378
|
+
expression: string;
|
|
378
379
|
};
|
|
379
380
|
active: boolean;
|
|
380
|
-
timezone: string;
|
|
381
381
|
environments: {
|
|
382
|
-
id: string;
|
|
383
382
|
type: string;
|
|
383
|
+
id: 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
|
-
expression: string;
|
|
404
403
|
description: string;
|
|
404
|
+
expression: string;
|
|
405
405
|
}, {
|
|
406
406
|
type: "CRON";
|
|
407
|
-
expression: string;
|
|
408
407
|
description: string;
|
|
408
|
+
expression: 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
|
-
id: string;
|
|
418
417
|
type: string;
|
|
418
|
+
id: string;
|
|
419
419
|
userName?: string | null | undefined;
|
|
420
420
|
}, {
|
|
421
|
-
id: string;
|
|
422
421
|
type: string;
|
|
422
|
+
id: string;
|
|
423
423
|
userName?: string | null | undefined;
|
|
424
424
|
}>, "many">;
|
|
425
425
|
}, "strip", z.ZodTypeAny, {
|
|
426
|
-
id: string;
|
|
427
426
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
427
|
+
id: string;
|
|
428
428
|
task: string;
|
|
429
|
+
timezone: string;
|
|
429
430
|
generator: {
|
|
430
431
|
type: "CRON";
|
|
431
|
-
expression: string;
|
|
432
432
|
description: string;
|
|
433
|
+
expression: string;
|
|
433
434
|
};
|
|
434
435
|
active: boolean;
|
|
435
|
-
timezone: string;
|
|
436
436
|
environments: {
|
|
437
|
-
id: string;
|
|
438
437
|
type: string;
|
|
438
|
+
id: 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
|
-
id: string;
|
|
446
445
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
446
|
+
id: string;
|
|
447
447
|
task: string;
|
|
448
|
+
timezone: string;
|
|
448
449
|
generator: {
|
|
449
450
|
type: "CRON";
|
|
450
|
-
expression: string;
|
|
451
451
|
description: string;
|
|
452
|
+
expression: string;
|
|
452
453
|
};
|
|
453
454
|
active: boolean;
|
|
454
|
-
timezone: string;
|
|
455
455
|
environments: {
|
|
456
|
-
id: string;
|
|
457
456
|
type: string;
|
|
457
|
+
id: 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
|
-
id: string;
|
|
466
465
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
466
|
+
id: string;
|
|
467
467
|
task: string;
|
|
468
|
+
timezone: string;
|
|
468
469
|
generator: {
|
|
469
470
|
type: "CRON";
|
|
470
|
-
expression: string;
|
|
471
471
|
description: string;
|
|
472
|
+
expression: string;
|
|
472
473
|
};
|
|
473
474
|
active: boolean;
|
|
474
|
-
timezone: string;
|
|
475
475
|
environments: {
|
|
476
|
-
id: string;
|
|
477
476
|
type: string;
|
|
477
|
+
id: 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
|
-
id: string;
|
|
486
485
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
486
|
+
id: string;
|
|
487
487
|
task: string;
|
|
488
|
+
timezone: string;
|
|
488
489
|
generator: {
|
|
489
490
|
type: "CRON";
|
|
490
|
-
expression: string;
|
|
491
491
|
description: string;
|
|
492
|
+
expression: string;
|
|
492
493
|
};
|
|
493
494
|
active: boolean;
|
|
494
|
-
timezone: string;
|
|
495
495
|
environments: {
|
|
496
|
-
id: string;
|
|
497
496
|
type: string;
|
|
497
|
+
id: 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
|
-
id: string;
|
|
506
505
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
506
|
+
id: string;
|
|
507
507
|
task: string;
|
|
508
|
+
timezone: string;
|
|
508
509
|
generator: {
|
|
509
510
|
type: "CRON";
|
|
510
|
-
expression: string;
|
|
511
511
|
description: string;
|
|
512
|
+
expression: string;
|
|
512
513
|
};
|
|
513
514
|
active: boolean;
|
|
514
|
-
timezone: string;
|
|
515
515
|
environments: {
|
|
516
|
-
id: string;
|
|
517
516
|
type: string;
|
|
517
|
+
id: 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
|
-
id: string;
|
|
526
525
|
type: "DECLARATIVE" | "IMPERATIVE";
|
|
526
|
+
id: string;
|
|
527
527
|
task: string;
|
|
528
|
+
timezone: string;
|
|
528
529
|
generator: {
|
|
529
530
|
type: "CRON";
|
|
530
|
-
expression: string;
|
|
531
531
|
description: string;
|
|
532
|
+
expression: string;
|
|
532
533
|
};
|
|
533
534
|
active: boolean;
|
|
534
|
-
timezone: string;
|
|
535
535
|
environments: {
|
|
536
|
-
id: string;
|
|
537
536
|
type: string;
|
|
537
|
+
id: string;
|
|
538
538
|
userName?: string | null | undefined;
|
|
539
539
|
}[];
|
|
540
540
|
externalId?: string | null | undefined;
|
|
@@ -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
|
-
id: string;
|
|
581
580
|
status: "COMPLETED" | "PENDING";
|
|
581
|
+
id: string;
|
|
582
582
|
createdAt: Date;
|
|
583
583
|
updatedAt: Date;
|
|
584
584
|
runCount: number;
|
|
@@ -53,7 +53,7 @@ export type RunWithStreamsResult<TRun, TStreams extends Record<string, any>> = {
|
|
|
53
53
|
} | StreamPartResult<TRun, TStreams>;
|
|
54
54
|
export declare function runShapeStream<TRunTypes extends AnyRunTypes>(url: string, options?: RunShapeStreamOptions): RunSubscription<TRunTypes>;
|
|
55
55
|
export interface StreamSubscription {
|
|
56
|
-
subscribe(
|
|
56
|
+
subscribe(): Promise<ReadableStream<unknown>>;
|
|
57
57
|
}
|
|
58
58
|
export interface StreamSubscriptionFactory {
|
|
59
59
|
createSubscription(runId: string, streamKey: string, baseUrl?: string): StreamSubscription;
|
|
@@ -65,7 +65,7 @@ export declare class SSEStreamSubscription implements StreamSubscription {
|
|
|
65
65
|
headers?: Record<string, string>;
|
|
66
66
|
signal?: AbortSignal;
|
|
67
67
|
});
|
|
68
|
-
subscribe(
|
|
68
|
+
subscribe(): Promise<ReadableStream<unknown>>;
|
|
69
69
|
}
|
|
70
70
|
export declare class SSEStreamSubscriptionFactory implements StreamSubscriptionFactory {
|
|
71
71
|
private baseUrl;
|