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