@trigger.dev/sdk 0.0.0-prerelease-20240825150620 → 0.0.0-prerelease-20240911144933
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/triggerClient.js +2 -2
- package/dist/commonjs/triggerClient.js.map +1 -1
- package/dist/commonjs/v3/retry.d.ts +0 -4
- package/dist/commonjs/v3/retry.js +7 -43
- package/dist/commonjs/v3/retry.js.map +1 -1
- package/dist/commonjs/v3/runs.d.ts +60 -60
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/apiClient.d.ts +209 -209
- package/dist/esm/io.d.ts +17 -17
- package/dist/esm/triggerClient.d.ts +23 -23
- package/dist/esm/triggerClient.js +2 -2
- package/dist/esm/triggerClient.js.map +1 -1
- package/dist/esm/triggers/externalSource.d.ts +1 -1
- package/dist/esm/triggers/invokeTrigger.d.ts +1 -1
- package/dist/esm/triggers/notifications.d.ts +8 -8
- package/dist/esm/triggers/scheduled.d.ts +4 -4
- package/dist/esm/triggers/webhook.d.ts +1 -1
- package/dist/esm/types.d.ts +6 -6
- package/dist/esm/v3/retry.d.ts +0 -4
- package/dist/esm/v3/retry.js +2 -38
- package/dist/esm/v3/retry.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +14 -7
package/dist/esm/apiClient.d.ts
CHANGED
|
@@ -42,28 +42,10 @@ export declare class ApiClient {
|
|
|
42
42
|
}): Promise<VersionedResponseBody<{
|
|
43
43
|
"2023-09-29": z.ZodObject<{
|
|
44
44
|
task: z.ZodObject<{
|
|
45
|
-
name: z.ZodString;
|
|
46
|
-
params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
47
45
|
status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
|
|
48
46
|
error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
49
|
-
|
|
47
|
+
params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
50
48
|
id: z.ZodString;
|
|
51
|
-
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
52
|
-
style: z.ZodEnum<["normal", "minimal"]>;
|
|
53
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
style: "normal" | "minimal";
|
|
56
|
-
variant?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
style: "normal" | "minimal";
|
|
59
|
-
variant?: string | undefined;
|
|
60
|
-
}>>>;
|
|
61
|
-
icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
62
|
-
noop: z.ZodBoolean;
|
|
63
|
-
startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
64
|
-
completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
65
|
-
delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
66
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
67
49
|
properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
50
|
label: z.ZodString;
|
|
69
51
|
text: z.ZodString;
|
|
@@ -80,6 +62,27 @@ export declare class ApiClient {
|
|
|
80
62
|
url?: string | undefined;
|
|
81
63
|
imageUrl?: string[] | undefined;
|
|
82
64
|
}>, "many">>>;
|
|
65
|
+
context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
68
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
69
|
+
startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
70
|
+
completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
71
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
72
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
+
delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
74
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
75
|
+
style: z.ZodEnum<["normal", "minimal"]>;
|
|
76
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
style: "normal" | "minimal";
|
|
79
|
+
variant?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
style: "normal" | "minimal";
|
|
82
|
+
variant?: string | undefined;
|
|
83
|
+
}>>>;
|
|
84
|
+
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
85
|
+
noop: z.ZodBoolean;
|
|
83
86
|
outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
87
|
label: z.ZodString;
|
|
85
88
|
text: z.ZodString;
|
|
@@ -96,86 +99,83 @@ export declare class ApiClient {
|
|
|
96
99
|
url?: string | undefined;
|
|
97
100
|
imageUrl?: string[] | undefined;
|
|
98
101
|
}>, "many">>>;
|
|
99
|
-
output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
100
102
|
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
101
|
-
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
102
|
-
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
103
103
|
childExecutionMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SEQUENTIAL", "PARALLEL"]>>>;
|
|
104
104
|
idempotencyKey: z.ZodString;
|
|
105
105
|
attempts: z.ZodNumber;
|
|
106
106
|
forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
|
|
109
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
108
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
110
109
|
id: string;
|
|
111
|
-
|
|
110
|
+
name: string;
|
|
112
111
|
idempotencyKey: string;
|
|
112
|
+
noop: boolean;
|
|
113
113
|
attempts: number;
|
|
114
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
115
114
|
error?: string | null | undefined;
|
|
116
|
-
|
|
117
|
-
style?: {
|
|
118
|
-
style: "normal" | "minimal";
|
|
119
|
-
variant?: string | undefined;
|
|
120
|
-
} | null | undefined;
|
|
121
|
-
icon?: string | null | undefined;
|
|
122
|
-
startedAt?: Date | null | undefined;
|
|
123
|
-
completedAt?: Date | null | undefined;
|
|
124
|
-
delayUntil?: Date | null | undefined;
|
|
125
|
-
description?: string | null | undefined;
|
|
115
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
126
116
|
properties?: {
|
|
127
117
|
label: string;
|
|
128
118
|
text: string;
|
|
129
119
|
url?: string | undefined;
|
|
130
120
|
imageUrl?: string[] | undefined;
|
|
131
121
|
}[] | null | undefined;
|
|
122
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
123
|
+
icon?: string | null | undefined;
|
|
124
|
+
callbackUrl?: string | null | undefined;
|
|
125
|
+
startedAt?: Date | null | undefined;
|
|
126
|
+
completedAt?: Date | null | undefined;
|
|
127
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
128
|
+
description?: string | null | undefined;
|
|
129
|
+
delayUntil?: Date | null | undefined;
|
|
130
|
+
style?: {
|
|
131
|
+
style: "normal" | "minimal";
|
|
132
|
+
variant?: string | undefined;
|
|
133
|
+
} | null | undefined;
|
|
134
|
+
operation?: string | null | undefined;
|
|
132
135
|
outputProperties?: {
|
|
133
136
|
label: string;
|
|
134
137
|
text: string;
|
|
135
138
|
url?: string | undefined;
|
|
136
139
|
imageUrl?: string[] | undefined;
|
|
137
140
|
}[] | null | undefined;
|
|
138
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
139
141
|
parentId?: string | null | undefined;
|
|
140
|
-
operation?: string | null | undefined;
|
|
141
|
-
callbackUrl?: string | null | undefined;
|
|
142
142
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
143
143
|
forceYield?: boolean | null | undefined;
|
|
144
144
|
}, {
|
|
145
|
-
|
|
146
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
145
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
147
146
|
id: string;
|
|
148
|
-
|
|
147
|
+
name: string;
|
|
149
148
|
idempotencyKey: string;
|
|
149
|
+
noop: boolean;
|
|
150
150
|
attempts: number;
|
|
151
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
152
151
|
error?: string | null | undefined;
|
|
153
|
-
|
|
154
|
-
style?: {
|
|
155
|
-
style: "normal" | "minimal";
|
|
156
|
-
variant?: string | undefined;
|
|
157
|
-
} | null | undefined;
|
|
158
|
-
icon?: string | null | undefined;
|
|
159
|
-
startedAt?: Date | null | undefined;
|
|
160
|
-
completedAt?: Date | null | undefined;
|
|
161
|
-
delayUntil?: Date | null | undefined;
|
|
162
|
-
description?: string | null | undefined;
|
|
152
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
163
153
|
properties?: {
|
|
164
154
|
label: string;
|
|
165
155
|
text: string;
|
|
166
156
|
url?: string | undefined;
|
|
167
157
|
imageUrl?: string[] | undefined;
|
|
168
158
|
}[] | null | undefined;
|
|
159
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
160
|
+
icon?: string | null | undefined;
|
|
161
|
+
callbackUrl?: string | null | undefined;
|
|
162
|
+
startedAt?: Date | null | undefined;
|
|
163
|
+
completedAt?: Date | null | undefined;
|
|
164
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
165
|
+
description?: string | null | undefined;
|
|
166
|
+
delayUntil?: Date | null | undefined;
|
|
167
|
+
style?: {
|
|
168
|
+
style: "normal" | "minimal";
|
|
169
|
+
variant?: string | undefined;
|
|
170
|
+
} | null | undefined;
|
|
171
|
+
operation?: string | null | undefined;
|
|
169
172
|
outputProperties?: {
|
|
170
173
|
label: string;
|
|
171
174
|
text: string;
|
|
172
175
|
url?: string | undefined;
|
|
173
176
|
imageUrl?: string[] | undefined;
|
|
174
177
|
}[] | null | undefined;
|
|
175
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
176
178
|
parentId?: string | null | undefined;
|
|
177
|
-
operation?: string | null | undefined;
|
|
178
|
-
callbackUrl?: string | null | undefined;
|
|
179
179
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
180
180
|
forceYield?: boolean | null | undefined;
|
|
181
181
|
}>;
|
|
@@ -188,14 +188,14 @@ export declare class ApiClient {
|
|
|
188
188
|
output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
189
189
|
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
190
190
|
}, "strip", z.ZodTypeAny, {
|
|
191
|
-
status: "PENDING" | "
|
|
191
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
192
192
|
id: string;
|
|
193
|
-
noop: boolean;
|
|
194
193
|
idempotencyKey: string;
|
|
194
|
+
noop: boolean;
|
|
195
195
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
196
196
|
parentId?: string | null | undefined;
|
|
197
197
|
}, {
|
|
198
|
-
status: "PENDING" | "
|
|
198
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
199
199
|
id: string;
|
|
200
200
|
idempotencyKey: string;
|
|
201
201
|
noop?: boolean | undefined;
|
|
@@ -205,17 +205,17 @@ export declare class ApiClient {
|
|
|
205
205
|
cursor: z.ZodOptional<z.ZodString>;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
207
|
tasks: {
|
|
208
|
-
status: "PENDING" | "
|
|
208
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
209
209
|
id: string;
|
|
210
|
-
noop: boolean;
|
|
211
210
|
idempotencyKey: string;
|
|
211
|
+
noop: boolean;
|
|
212
212
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
213
213
|
parentId?: string | null | undefined;
|
|
214
214
|
}[];
|
|
215
215
|
cursor?: string | undefined;
|
|
216
216
|
}, {
|
|
217
217
|
tasks: {
|
|
218
|
-
status: "PENDING" | "
|
|
218
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
219
219
|
id: string;
|
|
220
220
|
idempotencyKey: string;
|
|
221
221
|
noop?: boolean | undefined;
|
|
@@ -226,49 +226,49 @@ export declare class ApiClient {
|
|
|
226
226
|
}>>;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
228
|
task: {
|
|
229
|
-
|
|
230
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
229
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
231
230
|
id: string;
|
|
232
|
-
|
|
231
|
+
name: string;
|
|
233
232
|
idempotencyKey: string;
|
|
233
|
+
noop: boolean;
|
|
234
234
|
attempts: number;
|
|
235
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
236
235
|
error?: string | null | undefined;
|
|
237
|
-
|
|
238
|
-
style?: {
|
|
239
|
-
style: "normal" | "minimal";
|
|
240
|
-
variant?: string | undefined;
|
|
241
|
-
} | null | undefined;
|
|
242
|
-
icon?: string | null | undefined;
|
|
243
|
-
startedAt?: Date | null | undefined;
|
|
244
|
-
completedAt?: Date | null | undefined;
|
|
245
|
-
delayUntil?: Date | null | undefined;
|
|
246
|
-
description?: string | null | undefined;
|
|
236
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
247
237
|
properties?: {
|
|
248
238
|
label: string;
|
|
249
239
|
text: string;
|
|
250
240
|
url?: string | undefined;
|
|
251
241
|
imageUrl?: string[] | undefined;
|
|
252
242
|
}[] | null | undefined;
|
|
243
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
244
|
+
icon?: string | null | undefined;
|
|
245
|
+
callbackUrl?: string | null | undefined;
|
|
246
|
+
startedAt?: Date | null | undefined;
|
|
247
|
+
completedAt?: Date | null | undefined;
|
|
248
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
249
|
+
description?: string | null | undefined;
|
|
250
|
+
delayUntil?: Date | null | undefined;
|
|
251
|
+
style?: {
|
|
252
|
+
style: "normal" | "minimal";
|
|
253
|
+
variant?: string | undefined;
|
|
254
|
+
} | null | undefined;
|
|
255
|
+
operation?: string | null | undefined;
|
|
253
256
|
outputProperties?: {
|
|
254
257
|
label: string;
|
|
255
258
|
text: string;
|
|
256
259
|
url?: string | undefined;
|
|
257
260
|
imageUrl?: string[] | undefined;
|
|
258
261
|
}[] | null | undefined;
|
|
259
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
260
262
|
parentId?: string | null | undefined;
|
|
261
|
-
operation?: string | null | undefined;
|
|
262
|
-
callbackUrl?: string | null | undefined;
|
|
263
263
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
264
264
|
forceYield?: boolean | null | undefined;
|
|
265
265
|
};
|
|
266
266
|
cachedTasks?: {
|
|
267
267
|
tasks: {
|
|
268
|
-
status: "PENDING" | "
|
|
268
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
269
269
|
id: string;
|
|
270
|
-
noop: boolean;
|
|
271
270
|
idempotencyKey: string;
|
|
271
|
+
noop: boolean;
|
|
272
272
|
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
273
273
|
parentId?: string | null | undefined;
|
|
274
274
|
}[];
|
|
@@ -276,46 +276,46 @@ export declare class ApiClient {
|
|
|
276
276
|
} | undefined;
|
|
277
277
|
}, {
|
|
278
278
|
task: {
|
|
279
|
-
|
|
280
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
279
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
281
280
|
id: string;
|
|
282
|
-
|
|
281
|
+
name: string;
|
|
283
282
|
idempotencyKey: string;
|
|
283
|
+
noop: boolean;
|
|
284
284
|
attempts: number;
|
|
285
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
286
285
|
error?: string | null | undefined;
|
|
287
|
-
|
|
288
|
-
style?: {
|
|
289
|
-
style: "normal" | "minimal";
|
|
290
|
-
variant?: string | undefined;
|
|
291
|
-
} | null | undefined;
|
|
292
|
-
icon?: string | null | undefined;
|
|
293
|
-
startedAt?: Date | null | undefined;
|
|
294
|
-
completedAt?: Date | null | undefined;
|
|
295
|
-
delayUntil?: Date | null | undefined;
|
|
296
|
-
description?: string | null | undefined;
|
|
286
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
297
287
|
properties?: {
|
|
298
288
|
label: string;
|
|
299
289
|
text: string;
|
|
300
290
|
url?: string | undefined;
|
|
301
291
|
imageUrl?: string[] | undefined;
|
|
302
292
|
}[] | null | undefined;
|
|
293
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
294
|
+
icon?: string | null | undefined;
|
|
295
|
+
callbackUrl?: string | null | undefined;
|
|
296
|
+
startedAt?: Date | null | undefined;
|
|
297
|
+
completedAt?: Date | null | undefined;
|
|
298
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
299
|
+
description?: string | null | undefined;
|
|
300
|
+
delayUntil?: Date | null | undefined;
|
|
301
|
+
style?: {
|
|
302
|
+
style: "normal" | "minimal";
|
|
303
|
+
variant?: string | undefined;
|
|
304
|
+
} | null | undefined;
|
|
305
|
+
operation?: string | null | undefined;
|
|
303
306
|
outputProperties?: {
|
|
304
307
|
label: string;
|
|
305
308
|
text: string;
|
|
306
309
|
url?: string | undefined;
|
|
307
310
|
imageUrl?: string[] | undefined;
|
|
308
311
|
}[] | null | undefined;
|
|
309
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
310
312
|
parentId?: string | null | undefined;
|
|
311
|
-
operation?: string | null | undefined;
|
|
312
|
-
callbackUrl?: string | null | undefined;
|
|
313
313
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
314
314
|
forceYield?: boolean | null | undefined;
|
|
315
315
|
};
|
|
316
316
|
cachedTasks?: {
|
|
317
317
|
tasks: {
|
|
318
|
-
status: "PENDING" | "
|
|
318
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
319
319
|
id: string;
|
|
320
320
|
idempotencyKey: string;
|
|
321
321
|
noop?: boolean | undefined;
|
|
@@ -326,28 +326,10 @@ export declare class ApiClient {
|
|
|
326
326
|
} | undefined;
|
|
327
327
|
}>;
|
|
328
328
|
}, z.ZodObject<{
|
|
329
|
-
name: z.ZodString;
|
|
330
|
-
params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
331
329
|
status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
|
|
332
330
|
error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
333
|
-
|
|
331
|
+
params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
334
332
|
id: z.ZodString;
|
|
335
|
-
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
336
|
-
style: z.ZodEnum<["normal", "minimal"]>;
|
|
337
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
338
|
-
}, "strip", z.ZodTypeAny, {
|
|
339
|
-
style: "normal" | "minimal";
|
|
340
|
-
variant?: string | undefined;
|
|
341
|
-
}, {
|
|
342
|
-
style: "normal" | "minimal";
|
|
343
|
-
variant?: string | undefined;
|
|
344
|
-
}>>>;
|
|
345
|
-
icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
346
|
-
noop: z.ZodBoolean;
|
|
347
|
-
startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
348
|
-
completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
349
|
-
delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
350
|
-
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
351
333
|
properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
352
334
|
label: z.ZodString;
|
|
353
335
|
text: z.ZodString;
|
|
@@ -364,6 +346,27 @@ export declare class ApiClient {
|
|
|
364
346
|
url?: string | undefined;
|
|
365
347
|
imageUrl?: string[] | undefined;
|
|
366
348
|
}>, "many">>>;
|
|
349
|
+
context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
350
|
+
name: z.ZodString;
|
|
351
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
352
|
+
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
353
|
+
startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
354
|
+
completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
355
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
356
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
357
|
+
delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
358
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
359
|
+
style: z.ZodEnum<["normal", "minimal"]>;
|
|
360
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
style: "normal" | "minimal";
|
|
363
|
+
variant?: string | undefined;
|
|
364
|
+
}, {
|
|
365
|
+
style: "normal" | "minimal";
|
|
366
|
+
variant?: string | undefined;
|
|
367
|
+
}>>>;
|
|
368
|
+
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
369
|
+
noop: z.ZodBoolean;
|
|
367
370
|
outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
368
371
|
label: z.ZodString;
|
|
369
372
|
text: z.ZodString;
|
|
@@ -380,173 +383,170 @@ export declare class ApiClient {
|
|
|
380
383
|
url?: string | undefined;
|
|
381
384
|
imageUrl?: string[] | undefined;
|
|
382
385
|
}>, "many">>>;
|
|
383
|
-
output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
|
|
384
386
|
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
385
|
-
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
386
|
-
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
387
387
|
childExecutionMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SEQUENTIAL", "PARALLEL"]>>>;
|
|
388
388
|
idempotencyKey: z.ZodString;
|
|
389
389
|
attempts: z.ZodNumber;
|
|
390
390
|
forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
391
391
|
}, "strip", z.ZodTypeAny, {
|
|
392
|
-
|
|
393
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
392
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
394
393
|
id: string;
|
|
395
|
-
|
|
394
|
+
name: string;
|
|
396
395
|
idempotencyKey: string;
|
|
396
|
+
noop: boolean;
|
|
397
397
|
attempts: number;
|
|
398
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
399
398
|
error?: string | null | undefined;
|
|
400
|
-
|
|
401
|
-
style?: {
|
|
402
|
-
style: "normal" | "minimal";
|
|
403
|
-
variant?: string | undefined;
|
|
404
|
-
} | null | undefined;
|
|
405
|
-
icon?: string | null | undefined;
|
|
406
|
-
startedAt?: Date | null | undefined;
|
|
407
|
-
completedAt?: Date | null | undefined;
|
|
408
|
-
delayUntil?: Date | null | undefined;
|
|
409
|
-
description?: string | null | undefined;
|
|
399
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
410
400
|
properties?: {
|
|
411
401
|
label: string;
|
|
412
402
|
text: string;
|
|
413
403
|
url?: string | undefined;
|
|
414
404
|
imageUrl?: string[] | undefined;
|
|
415
405
|
}[] | null | undefined;
|
|
406
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
407
|
+
icon?: string | null | undefined;
|
|
408
|
+
callbackUrl?: string | null | undefined;
|
|
409
|
+
startedAt?: Date | null | undefined;
|
|
410
|
+
completedAt?: Date | null | undefined;
|
|
411
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
412
|
+
description?: string | null | undefined;
|
|
413
|
+
delayUntil?: Date | null | undefined;
|
|
414
|
+
style?: {
|
|
415
|
+
style: "normal" | "minimal";
|
|
416
|
+
variant?: string | undefined;
|
|
417
|
+
} | null | undefined;
|
|
418
|
+
operation?: string | null | undefined;
|
|
416
419
|
outputProperties?: {
|
|
417
420
|
label: string;
|
|
418
421
|
text: string;
|
|
419
422
|
url?: string | undefined;
|
|
420
423
|
imageUrl?: string[] | undefined;
|
|
421
424
|
}[] | null | undefined;
|
|
422
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
423
425
|
parentId?: string | null | undefined;
|
|
424
|
-
operation?: string | null | undefined;
|
|
425
|
-
callbackUrl?: string | null | undefined;
|
|
426
426
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
427
427
|
forceYield?: boolean | null | undefined;
|
|
428
428
|
}, {
|
|
429
|
-
|
|
430
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
429
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
431
430
|
id: string;
|
|
432
|
-
|
|
431
|
+
name: string;
|
|
433
432
|
idempotencyKey: string;
|
|
433
|
+
noop: boolean;
|
|
434
434
|
attempts: number;
|
|
435
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
436
435
|
error?: string | null | undefined;
|
|
437
|
-
|
|
438
|
-
style?: {
|
|
439
|
-
style: "normal" | "minimal";
|
|
440
|
-
variant?: string | undefined;
|
|
441
|
-
} | null | undefined;
|
|
442
|
-
icon?: string | null | undefined;
|
|
443
|
-
startedAt?: Date | null | undefined;
|
|
444
|
-
completedAt?: Date | null | undefined;
|
|
445
|
-
delayUntil?: Date | null | undefined;
|
|
446
|
-
description?: string | null | undefined;
|
|
436
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
447
437
|
properties?: {
|
|
448
438
|
label: string;
|
|
449
439
|
text: string;
|
|
450
440
|
url?: string | undefined;
|
|
451
441
|
imageUrl?: string[] | undefined;
|
|
452
442
|
}[] | null | undefined;
|
|
443
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
444
|
+
icon?: string | null | undefined;
|
|
445
|
+
callbackUrl?: string | null | undefined;
|
|
446
|
+
startedAt?: Date | null | undefined;
|
|
447
|
+
completedAt?: Date | null | undefined;
|
|
448
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
449
|
+
description?: string | null | undefined;
|
|
450
|
+
delayUntil?: Date | null | undefined;
|
|
451
|
+
style?: {
|
|
452
|
+
style: "normal" | "minimal";
|
|
453
|
+
variant?: string | undefined;
|
|
454
|
+
} | null | undefined;
|
|
455
|
+
operation?: string | null | undefined;
|
|
453
456
|
outputProperties?: {
|
|
454
457
|
label: string;
|
|
455
458
|
text: string;
|
|
456
459
|
url?: string | undefined;
|
|
457
460
|
imageUrl?: string[] | undefined;
|
|
458
461
|
}[] | null | undefined;
|
|
459
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
460
462
|
parentId?: string | null | undefined;
|
|
461
|
-
operation?: string | null | undefined;
|
|
462
|
-
callbackUrl?: string | null | undefined;
|
|
463
463
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
464
464
|
forceYield?: boolean | null | undefined;
|
|
465
465
|
}>>>;
|
|
466
466
|
completeTask(runId: string, id: string, task: CompleteTaskBodyV2Input): Promise<{
|
|
467
|
-
|
|
468
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
467
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
469
468
|
id: string;
|
|
470
|
-
|
|
469
|
+
name: string;
|
|
471
470
|
idempotencyKey: string;
|
|
471
|
+
noop: boolean;
|
|
472
472
|
attempts: number;
|
|
473
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
474
473
|
error?: string | null | undefined;
|
|
475
|
-
|
|
476
|
-
style?: {
|
|
477
|
-
style: "normal" | "minimal";
|
|
478
|
-
variant?: string | undefined;
|
|
479
|
-
} | null | undefined;
|
|
480
|
-
icon?: string | null | undefined;
|
|
481
|
-
startedAt?: Date | null | undefined;
|
|
482
|
-
completedAt?: Date | null | undefined;
|
|
483
|
-
delayUntil?: Date | null | undefined;
|
|
484
|
-
description?: string | null | undefined;
|
|
474
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
485
475
|
properties?: {
|
|
486
476
|
label: string;
|
|
487
477
|
text: string;
|
|
488
478
|
url?: string | undefined;
|
|
489
479
|
imageUrl?: string[] | undefined;
|
|
490
480
|
}[] | null | undefined;
|
|
481
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
482
|
+
icon?: string | null | undefined;
|
|
483
|
+
callbackUrl?: string | null | undefined;
|
|
484
|
+
startedAt?: Date | null | undefined;
|
|
485
|
+
completedAt?: Date | null | undefined;
|
|
486
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
487
|
+
description?: string | null | undefined;
|
|
488
|
+
delayUntil?: Date | null | undefined;
|
|
489
|
+
style?: {
|
|
490
|
+
style: "normal" | "minimal";
|
|
491
|
+
variant?: string | undefined;
|
|
492
|
+
} | null | undefined;
|
|
493
|
+
operation?: string | null | undefined;
|
|
491
494
|
outputProperties?: {
|
|
492
495
|
label: string;
|
|
493
496
|
text: string;
|
|
494
497
|
url?: string | undefined;
|
|
495
498
|
imageUrl?: string[] | undefined;
|
|
496
499
|
}[] | null | undefined;
|
|
497
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
498
500
|
parentId?: string | null | undefined;
|
|
499
|
-
operation?: string | null | undefined;
|
|
500
|
-
callbackUrl?: string | null | undefined;
|
|
501
501
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
502
502
|
forceYield?: boolean | null | undefined;
|
|
503
503
|
}>;
|
|
504
504
|
failTask(runId: string, id: string, body: FailTaskBodyInput): Promise<{
|
|
505
|
-
|
|
506
|
-
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
505
|
+
status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
|
|
507
506
|
id: string;
|
|
508
|
-
|
|
507
|
+
name: string;
|
|
509
508
|
idempotencyKey: string;
|
|
509
|
+
noop: boolean;
|
|
510
510
|
attempts: number;
|
|
511
|
-
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
512
511
|
error?: string | null | undefined;
|
|
513
|
-
|
|
514
|
-
style?: {
|
|
515
|
-
style: "normal" | "minimal";
|
|
516
|
-
variant?: string | undefined;
|
|
517
|
-
} | null | undefined;
|
|
518
|
-
icon?: string | null | undefined;
|
|
519
|
-
startedAt?: Date | null | undefined;
|
|
520
|
-
completedAt?: Date | null | undefined;
|
|
521
|
-
delayUntil?: Date | null | undefined;
|
|
522
|
-
description?: string | null | undefined;
|
|
512
|
+
params?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
523
513
|
properties?: {
|
|
524
514
|
label: string;
|
|
525
515
|
text: string;
|
|
526
516
|
url?: string | undefined;
|
|
527
517
|
imageUrl?: string[] | undefined;
|
|
528
518
|
}[] | null | undefined;
|
|
519
|
+
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
520
|
+
icon?: string | null | undefined;
|
|
521
|
+
callbackUrl?: string | null | undefined;
|
|
522
|
+
startedAt?: Date | null | undefined;
|
|
523
|
+
completedAt?: Date | null | undefined;
|
|
524
|
+
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
525
|
+
description?: string | null | undefined;
|
|
526
|
+
delayUntil?: Date | null | undefined;
|
|
527
|
+
style?: {
|
|
528
|
+
style: "normal" | "minimal";
|
|
529
|
+
variant?: string | undefined;
|
|
530
|
+
} | null | undefined;
|
|
531
|
+
operation?: string | null | undefined;
|
|
529
532
|
outputProperties?: {
|
|
530
533
|
label: string;
|
|
531
534
|
text: string;
|
|
532
535
|
url?: string | undefined;
|
|
533
536
|
imageUrl?: string[] | undefined;
|
|
534
537
|
}[] | null | undefined;
|
|
535
|
-
output?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
536
538
|
parentId?: string | null | undefined;
|
|
537
|
-
operation?: string | null | undefined;
|
|
538
|
-
callbackUrl?: string | null | undefined;
|
|
539
539
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
540
540
|
forceYield?: boolean | null | undefined;
|
|
541
541
|
}>;
|
|
542
542
|
sendEvent(event: SendEvent, options?: SendEventOptions): Promise<{
|
|
543
|
-
|
|
543
|
+
id: string;
|
|
544
544
|
payload: ((string | number | boolean | {
|
|
545
545
|
[key: string]: import("@trigger.dev/core").DeserializedJson;
|
|
546
546
|
} | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
|
|
547
547
|
[key: string]: import("@trigger.dev/core").DeserializedJson;
|
|
548
548
|
} | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
|
|
549
|
-
|
|
549
|
+
name: string;
|
|
550
550
|
timestamp: Date;
|
|
551
551
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
552
552
|
deliverAt?: Date | null | undefined;
|
|
@@ -554,13 +554,13 @@ export declare class ApiClient {
|
|
|
554
554
|
cancelledAt?: Date | null | undefined;
|
|
555
555
|
}>;
|
|
556
556
|
sendEvents(events: SendEvent[], options?: SendEventOptions): Promise<{
|
|
557
|
-
|
|
557
|
+
id: string;
|
|
558
558
|
payload: ((string | number | boolean | {
|
|
559
559
|
[key: string]: import("@trigger.dev/core").DeserializedJson;
|
|
560
560
|
} | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
|
|
561
561
|
[key: string]: import("@trigger.dev/core").DeserializedJson;
|
|
562
562
|
} | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
|
|
563
|
-
|
|
563
|
+
name: string;
|
|
564
564
|
timestamp: Date;
|
|
565
565
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
566
566
|
deliverAt?: Date | null | undefined;
|
|
@@ -568,13 +568,13 @@ export declare class ApiClient {
|
|
|
568
568
|
cancelledAt?: Date | null | undefined;
|
|
569
569
|
}[]>;
|
|
570
570
|
cancelEvent(eventId: string): Promise<{
|
|
571
|
-
|
|
571
|
+
id: string;
|
|
572
572
|
payload: ((string | number | boolean | {
|
|
573
573
|
[key: string]: import("@trigger.dev/core").DeserializedJson;
|
|
574
574
|
} | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
|
|
575
575
|
[key: string]: import("@trigger.dev/core").DeserializedJson;
|
|
576
576
|
} | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
|
|
577
|
-
|
|
577
|
+
name: string;
|
|
578
578
|
timestamp: Date;
|
|
579
579
|
context?: import("@trigger.dev/core").DeserializedJson | undefined;
|
|
580
580
|
deliverAt?: Date | null | undefined;
|
|
@@ -602,17 +602,17 @@ export declare class ApiClient {
|
|
|
602
602
|
registerSchedule(client: string, id: string, key: string, payload: ScheduleMetadata): Promise<{
|
|
603
603
|
id: string;
|
|
604
604
|
schedule: {
|
|
605
|
+
type: "interval";
|
|
605
606
|
options: {
|
|
606
|
-
|
|
607
|
+
seconds: number;
|
|
607
608
|
};
|
|
608
|
-
type: "cron";
|
|
609
609
|
accountId?: string | undefined;
|
|
610
610
|
metadata?: any;
|
|
611
611
|
} | {
|
|
612
|
+
type: "cron";
|
|
612
613
|
options: {
|
|
613
|
-
|
|
614
|
+
cron: string;
|
|
614
615
|
};
|
|
615
|
-
type: "interval";
|
|
616
616
|
accountId?: string | undefined;
|
|
617
617
|
metadata?: any;
|
|
618
618
|
};
|
|
@@ -629,23 +629,23 @@ export declare class ApiClient {
|
|
|
629
629
|
additionalFields?: Record<string, string> | undefined;
|
|
630
630
|
} | undefined>;
|
|
631
631
|
getEvent(eventId: string): Promise<{
|
|
632
|
-
name: string;
|
|
633
632
|
id: string;
|
|
633
|
+
name: string;
|
|
634
|
+
createdAt: Date;
|
|
634
635
|
updatedAt: Date;
|
|
635
636
|
runs: {
|
|
636
|
-
status: "
|
|
637
|
+
status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
637
638
|
id: string;
|
|
638
639
|
startedAt?: Date | null | undefined;
|
|
639
640
|
completedAt?: Date | null | undefined;
|
|
640
641
|
}[];
|
|
641
|
-
createdAt: Date;
|
|
642
642
|
}>;
|
|
643
643
|
getRun(runId: string, options?: GetRunOptionsWithTaskDetails): Promise<{
|
|
644
|
-
status: "
|
|
644
|
+
status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
645
645
|
id: string;
|
|
646
|
+
updatedAt: Date | null;
|
|
646
647
|
startedAt: Date | null;
|
|
647
648
|
completedAt: Date | null;
|
|
648
|
-
updatedAt: Date | null;
|
|
649
649
|
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
650
650
|
statuses: {
|
|
651
651
|
label: string;
|
|
@@ -662,11 +662,11 @@ export declare class ApiClient {
|
|
|
662
662
|
nextCursor?: string | undefined;
|
|
663
663
|
}>;
|
|
664
664
|
cancelRun(runId: string): Promise<{
|
|
665
|
-
status: "
|
|
665
|
+
status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
666
666
|
id: string;
|
|
667
|
+
updatedAt: Date | null;
|
|
667
668
|
startedAt: Date | null;
|
|
668
669
|
completedAt: Date | null;
|
|
669
|
-
updatedAt: Date | null;
|
|
670
670
|
tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
|
|
671
671
|
statuses: {
|
|
672
672
|
label: string;
|
|
@@ -695,18 +695,18 @@ export declare class ApiClient {
|
|
|
695
695
|
state?: "loading" | "success" | "failure" | undefined;
|
|
696
696
|
}[];
|
|
697
697
|
run: {
|
|
698
|
-
status: "
|
|
698
|
+
status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
699
699
|
id: string;
|
|
700
700
|
output?: any;
|
|
701
701
|
};
|
|
702
702
|
}>;
|
|
703
703
|
getRuns(jobSlug: string, options?: GetRunsOptions): Promise<{
|
|
704
704
|
runs: {
|
|
705
|
-
status: "
|
|
705
|
+
status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
|
|
706
706
|
id: string;
|
|
707
|
+
updatedAt: Date | null;
|
|
707
708
|
startedAt: Date | null;
|
|
708
709
|
completedAt: Date | null;
|
|
709
|
-
updatedAt: Date | null;
|
|
710
710
|
}[];
|
|
711
711
|
nextCursor?: string | undefined;
|
|
712
712
|
}>;
|