@trigger.dev/core 0.0.0-prerelease-20250916133650 → 0.0.0-prerelease-20251007140052
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/runEngineWorker/supervisor/http.d.ts +5 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +31 -0
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +88 -61
- package/dist/commonjs/v3/runEngineWorker/workload/http.js +36 -6
- package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +31 -0
- package/dist/commonjs/v3/schemas/api.d.ts +101 -6
- package/dist/commonjs/v3/schemas/api.js +13 -3
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/openTelemetry.d.ts +183 -0
- package/dist/commonjs/v3/schemas/openTelemetry.js +20 -2
- package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
- package/dist/commonjs/v3/schemas/runEngine.d.ts +25 -0
- package/dist/commonjs/v3/schemas/runEngine.js +1 -0
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/semanticInternalAttributes.d.ts +3 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js +3 -0
- package/dist/commonjs/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/index.d.ts +1 -0
- package/dist/commonjs/v3/serverOnly/index.js +1 -0
- package/dist/commonjs/v3/serverOnly/index.js.map +1 -1
- package/dist/commonjs/v3/serverOnly/resourceMonitor.d.ts +190 -0
- package/dist/commonjs/v3/serverOnly/resourceMonitor.js +596 -0
- package/dist/commonjs/v3/serverOnly/resourceMonitor.js.map +1 -0
- package/dist/commonjs/v3/utils/flattenAttributes.d.ts +1 -1
- package/dist/commonjs/v3/utils/flattenAttributes.js +4 -1
- package/dist/commonjs/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +5 -0
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +31 -0
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +88 -61
- package/dist/esm/v3/runEngineWorker/workload/http.js +36 -6
- package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +31 -0
- package/dist/esm/v3/schemas/api.d.ts +101 -6
- package/dist/esm/v3/schemas/api.js +10 -0
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/openTelemetry.d.ts +183 -0
- package/dist/esm/v3/schemas/openTelemetry.js +18 -1
- package/dist/esm/v3/schemas/openTelemetry.js.map +1 -1
- package/dist/esm/v3/schemas/runEngine.d.ts +25 -0
- package/dist/esm/v3/schemas/runEngine.js +1 -0
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/semanticInternalAttributes.d.ts +3 -0
- package/dist/esm/v3/semanticInternalAttributes.js +3 -0
- package/dist/esm/v3/semanticInternalAttributes.js.map +1 -1
- package/dist/esm/v3/serverOnly/index.d.ts +1 -0
- package/dist/esm/v3/serverOnly/index.js +1 -0
- package/dist/esm/v3/serverOnly/index.js.map +1 -1
- package/dist/esm/v3/serverOnly/resourceMonitor.d.ts +190 -0
- package/dist/esm/v3/serverOnly/resourceMonitor.js +589 -0
- package/dist/esm/v3/serverOnly/resourceMonitor.js.map +1 -0
- package/dist/esm/v3/utils/flattenAttributes.d.ts +1 -1
- package/dist/esm/v3/utils/flattenAttributes.js +4 -1
- package/dist/esm/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/esm/v3/workers/taskExecutor.js +1 -1
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -10,36 +10,54 @@ export declare class WorkloadHttpClient {
|
|
|
10
10
|
updateApiUrl(apiUrl: string): void;
|
|
11
11
|
updateRunnerId(runnerId: string): void;
|
|
12
12
|
defaultHeaders(): Record<string, string>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
private isConnectionError;
|
|
14
|
+
private withConnectionErrorDetection;
|
|
15
|
+
heartbeatRun(runId: string, snapshotId: string, body?: WorkloadHeartbeatRequestBody): Promise<{
|
|
16
|
+
success: false;
|
|
17
|
+
error: string;
|
|
18
|
+
isConnectionError?: boolean;
|
|
19
|
+
} | {
|
|
20
|
+
success: true;
|
|
21
|
+
data: {
|
|
22
|
+
ok: true;
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
16
25
|
suspendRun(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
|
|
17
26
|
ok: true;
|
|
18
27
|
} | {
|
|
19
28
|
error: string;
|
|
20
29
|
ok: false;
|
|
21
30
|
}>>;
|
|
22
|
-
continueRunExecution(runId: string, snapshotId: string): Promise<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
continueRunExecution(runId: string, snapshotId: string): Promise<{
|
|
32
|
+
success: false;
|
|
33
|
+
error: string;
|
|
34
|
+
isConnectionError?: boolean;
|
|
35
|
+
} | {
|
|
36
|
+
success: true;
|
|
37
|
+
data: {
|
|
38
|
+
run: {
|
|
39
|
+
status: import("../../index.js").TaskRunStatus;
|
|
40
|
+
id: string;
|
|
41
|
+
friendlyId: string;
|
|
42
|
+
attemptNumber?: number | null | undefined;
|
|
43
|
+
taskEventStore?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
snapshot: {
|
|
46
|
+
id: string;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
description: string;
|
|
49
|
+
friendlyId: string;
|
|
50
|
+
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
51
|
+
};
|
|
35
52
|
};
|
|
36
|
-
}
|
|
53
|
+
}>;
|
|
37
54
|
startRunAttempt(runId: string, snapshotId: string, body: WorkloadRunAttemptStartRequestBody): Promise<import("../../zodfetch.js").ApiResult<{
|
|
38
55
|
run: {
|
|
39
56
|
status: import("../../index.js").TaskRunStatus;
|
|
40
57
|
id: string;
|
|
41
58
|
friendlyId: string;
|
|
42
59
|
attemptNumber?: number | null | undefined;
|
|
60
|
+
taskEventStore?: string | undefined;
|
|
43
61
|
};
|
|
44
62
|
snapshot: {
|
|
45
63
|
id: string;
|
|
@@ -165,6 +183,7 @@ export declare class WorkloadHttpClient {
|
|
|
165
183
|
id: string;
|
|
166
184
|
friendlyId: string;
|
|
167
185
|
attemptNumber?: number | null | undefined;
|
|
186
|
+
taskEventStore?: string | undefined;
|
|
168
187
|
};
|
|
169
188
|
snapshot: {
|
|
170
189
|
id: string;
|
|
@@ -175,60 +194,68 @@ export declare class WorkloadHttpClient {
|
|
|
175
194
|
};
|
|
176
195
|
};
|
|
177
196
|
}>>;
|
|
178
|
-
getSnapshotsSince(runId: string, snapshotId: string): Promise<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
type: import("../../index.js").WaitpointType;
|
|
196
|
-
id: string;
|
|
197
|
-
friendlyId: string;
|
|
198
|
-
completedAt: Date;
|
|
199
|
-
outputIsError: boolean;
|
|
200
|
-
idempotencyKey?: string | undefined;
|
|
201
|
-
output?: string | undefined;
|
|
202
|
-
outputType?: string | undefined;
|
|
203
|
-
index?: number | undefined;
|
|
204
|
-
completedByTaskRun?: {
|
|
197
|
+
getSnapshotsSince(runId: string, snapshotId: string): Promise<{
|
|
198
|
+
success: false;
|
|
199
|
+
error: string;
|
|
200
|
+
isConnectionError?: boolean;
|
|
201
|
+
} | {
|
|
202
|
+
success: true;
|
|
203
|
+
data: {
|
|
204
|
+
snapshots: {
|
|
205
|
+
version: "1";
|
|
206
|
+
run: {
|
|
207
|
+
status: import("../../index.js").TaskRunStatus;
|
|
208
|
+
id: string;
|
|
209
|
+
friendlyId: string;
|
|
210
|
+
attemptNumber?: number | null | undefined;
|
|
211
|
+
taskEventStore?: string | undefined;
|
|
212
|
+
};
|
|
213
|
+
snapshot: {
|
|
205
214
|
id: string;
|
|
215
|
+
createdAt: Date;
|
|
216
|
+
description: string;
|
|
206
217
|
friendlyId: string;
|
|
207
|
-
|
|
218
|
+
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
219
|
+
};
|
|
220
|
+
completedWaitpoints: {
|
|
221
|
+
type: import("../../index.js").WaitpointType;
|
|
222
|
+
id: string;
|
|
223
|
+
friendlyId: string;
|
|
224
|
+
completedAt: Date;
|
|
225
|
+
outputIsError: boolean;
|
|
226
|
+
idempotencyKey?: string | undefined;
|
|
227
|
+
output?: string | undefined;
|
|
228
|
+
outputType?: string | undefined;
|
|
229
|
+
index?: number | undefined;
|
|
230
|
+
completedByTaskRun?: {
|
|
208
231
|
id: string;
|
|
209
232
|
friendlyId: string;
|
|
233
|
+
batch?: {
|
|
234
|
+
id: string;
|
|
235
|
+
friendlyId: string;
|
|
236
|
+
} | undefined;
|
|
210
237
|
} | undefined;
|
|
238
|
+
completedAfter?: Date | undefined;
|
|
239
|
+
completedByBatch?: {
|
|
240
|
+
id: string;
|
|
241
|
+
friendlyId: string;
|
|
242
|
+
} | undefined;
|
|
243
|
+
}[];
|
|
244
|
+
batch?: {
|
|
245
|
+
id: string;
|
|
246
|
+
friendlyId: string;
|
|
211
247
|
} | undefined;
|
|
212
|
-
|
|
213
|
-
|
|
248
|
+
checkpoint?: {
|
|
249
|
+
type: import("../../index.js").CheckpointTypeEnum;
|
|
214
250
|
id: string;
|
|
215
251
|
friendlyId: string;
|
|
252
|
+
location: string;
|
|
253
|
+
imageRef?: string | null | undefined;
|
|
254
|
+
reason?: string | null | undefined;
|
|
216
255
|
} | undefined;
|
|
217
256
|
}[];
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
friendlyId: string;
|
|
221
|
-
} | undefined;
|
|
222
|
-
checkpoint?: {
|
|
223
|
-
type: import("../../index.js").CheckpointTypeEnum;
|
|
224
|
-
id: string;
|
|
225
|
-
friendlyId: string;
|
|
226
|
-
location: string;
|
|
227
|
-
imageRef?: string | null | undefined;
|
|
228
|
-
reason?: string | null | undefined;
|
|
229
|
-
} | undefined;
|
|
230
|
-
}[];
|
|
231
|
-
}>>;
|
|
257
|
+
};
|
|
258
|
+
}>;
|
|
232
259
|
sendDebugLog(runId: string, body: WorkloadDebugLogRequestBody): Promise<void>;
|
|
233
260
|
/** @deprecated Not currently used */
|
|
234
261
|
dequeue(): Promise<import("../../zodfetch.js").ApiResult<{
|
|
@@ -31,15 +31,44 @@ export class WorkloadHttpClient {
|
|
|
31
31
|
runnerId: this.runnerId,
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
+
isConnectionError(error) {
|
|
35
|
+
const connectionErrors = [
|
|
36
|
+
"Connection error",
|
|
37
|
+
"ECONNREFUSED",
|
|
38
|
+
"ETIMEDOUT",
|
|
39
|
+
"ENOTFOUND",
|
|
40
|
+
"ECONNRESET",
|
|
41
|
+
"EHOSTUNREACH",
|
|
42
|
+
"ENETUNREACH",
|
|
43
|
+
"EPIPE",
|
|
44
|
+
"ECONNABORTED",
|
|
45
|
+
];
|
|
46
|
+
return connectionErrors.some((errType) => error.includes(errType));
|
|
47
|
+
}
|
|
48
|
+
async withConnectionErrorDetection(operation) {
|
|
49
|
+
const result = await operation();
|
|
50
|
+
if (result.success) {
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
// Check if this is a connection error
|
|
54
|
+
if (this.isConnectionError(result.error)) {
|
|
55
|
+
return {
|
|
56
|
+
...result,
|
|
57
|
+
isConnectionError: true,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
34
62
|
async heartbeatRun(runId, snapshotId, body) {
|
|
35
|
-
return wrapZodFetch(WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
|
|
63
|
+
return this.withConnectionErrorDetection(() => wrapZodFetch(WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
|
|
36
64
|
method: "POST",
|
|
37
65
|
headers: {
|
|
38
66
|
...this.defaultHeaders(),
|
|
39
67
|
"Content-Type": "application/json",
|
|
40
68
|
},
|
|
41
69
|
body: JSON.stringify(body ?? {}),
|
|
42
|
-
|
|
70
|
+
signal: AbortSignal.timeout(10_000), // 10 second timeout
|
|
71
|
+
}));
|
|
43
72
|
}
|
|
44
73
|
async suspendRun(runId, snapshotId) {
|
|
45
74
|
return wrapZodFetch(WorkloadSuspendRunResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/suspend`, {
|
|
@@ -50,12 +79,12 @@ export class WorkloadHttpClient {
|
|
|
50
79
|
});
|
|
51
80
|
}
|
|
52
81
|
async continueRunExecution(runId, snapshotId) {
|
|
53
|
-
return wrapZodFetch(WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
|
|
82
|
+
return this.withConnectionErrorDetection(() => wrapZodFetch(WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
|
|
54
83
|
method: "GET",
|
|
55
84
|
headers: {
|
|
56
85
|
...this.defaultHeaders(),
|
|
57
86
|
},
|
|
58
|
-
});
|
|
87
|
+
}));
|
|
59
88
|
}
|
|
60
89
|
async startRunAttempt(runId, snapshotId, body) {
|
|
61
90
|
return wrapZodFetch(WorkloadRunAttemptStartResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/attempts/start`, {
|
|
@@ -76,12 +105,13 @@ export class WorkloadHttpClient {
|
|
|
76
105
|
});
|
|
77
106
|
}
|
|
78
107
|
async getSnapshotsSince(runId, snapshotId) {
|
|
79
|
-
return wrapZodFetch(WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
|
|
108
|
+
return this.withConnectionErrorDetection(() => wrapZodFetch(WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
|
|
80
109
|
method: "GET",
|
|
81
110
|
headers: {
|
|
82
111
|
...this.defaultHeaders(),
|
|
83
112
|
},
|
|
84
|
-
|
|
113
|
+
signal: AbortSignal.timeout(10_000), // 10 second timeout
|
|
114
|
+
}));
|
|
85
115
|
}
|
|
86
116
|
async sendDebugLog(runId, body) {
|
|
87
117
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/workload/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,6BAA6B,EAE7B,sCAAsC,EACtC,mCAAmC,EACnC,sCAAsC,EAEtC,8BAA8B,EAC9B,wCAAwC,EAExC,qCAAqC,GACtC,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,MAAM,OAAO,kBAAkB;IAKT;IAJZ,MAAM,CAAS;IACf,QAAQ,CAAS;IACR,YAAY,CAAS;IAEtC,YAAoB,IAA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oBAAoB;SAC1D,CACF,CACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAa,EAAE,IAAiC;QACjE,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,YAAY,CAC5B,CAAC,CAAC,OAAO,EAAE,EACX,GAAG,IAAI,CAAC,MAAM,iCAAiC,KAAK,aAAa,EACjE;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,GAAG,IAAI,CAAC,cAAc,EAAE;oBACxB,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CACF,CAAC;YAEF,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;gBACjB,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,GAAG,CAAC,CAAC;YACjD,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,OAAO;QACX,OAAO,YAAY,CACjB,sCAAsC,EACtC,GAAG,IAAI,CAAC,MAAM,wCAAwC,IAAI,CAAC,YAAY,UAAU,EACjF;YACE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,GAAG,IAAI,CAAC,cAAc,EAAE;aACzB;SACF,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -60,16 +60,19 @@ export declare const WorkloadContinueRunExecutionResponseBody: z.ZodObject<{
|
|
|
60
60
|
friendlyId: z.ZodString;
|
|
61
61
|
status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
|
|
62
62
|
attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
+
taskEventStore: z.ZodOptional<z.ZodString>;
|
|
63
64
|
}, "strip", z.ZodTypeAny, {
|
|
64
65
|
status: import("../../index.js").TaskRunStatus;
|
|
65
66
|
id: string;
|
|
66
67
|
friendlyId: string;
|
|
67
68
|
attemptNumber?: number | null | undefined;
|
|
69
|
+
taskEventStore?: string | undefined;
|
|
68
70
|
}, {
|
|
69
71
|
status: import("../../index.js").TaskRunStatus;
|
|
70
72
|
id: string;
|
|
71
73
|
friendlyId: string;
|
|
72
74
|
attemptNumber?: number | null | undefined;
|
|
75
|
+
taskEventStore?: string | undefined;
|
|
73
76
|
}>;
|
|
74
77
|
}, "strip", z.ZodTypeAny, {
|
|
75
78
|
run: {
|
|
@@ -77,6 +80,7 @@ export declare const WorkloadContinueRunExecutionResponseBody: z.ZodObject<{
|
|
|
77
80
|
id: string;
|
|
78
81
|
friendlyId: string;
|
|
79
82
|
attemptNumber?: number | null | undefined;
|
|
83
|
+
taskEventStore?: string | undefined;
|
|
80
84
|
};
|
|
81
85
|
snapshot: {
|
|
82
86
|
id: string;
|
|
@@ -91,6 +95,7 @@ export declare const WorkloadContinueRunExecutionResponseBody: z.ZodObject<{
|
|
|
91
95
|
id: string;
|
|
92
96
|
friendlyId: string;
|
|
93
97
|
attemptNumber?: number | null | undefined;
|
|
98
|
+
taskEventStore?: string | undefined;
|
|
94
99
|
};
|
|
95
100
|
snapshot: {
|
|
96
101
|
id: string;
|
|
@@ -1704,16 +1709,19 @@ export declare const WorkloadRunAttemptCompleteResponseBody: z.ZodObject<{
|
|
|
1704
1709
|
friendlyId: z.ZodString;
|
|
1705
1710
|
status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
|
|
1706
1711
|
attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1712
|
+
taskEventStore: z.ZodOptional<z.ZodString>;
|
|
1707
1713
|
}, "strip", z.ZodTypeAny, {
|
|
1708
1714
|
status: import("../../index.js").TaskRunStatus;
|
|
1709
1715
|
id: string;
|
|
1710
1716
|
friendlyId: string;
|
|
1711
1717
|
attemptNumber?: number | null | undefined;
|
|
1718
|
+
taskEventStore?: string | undefined;
|
|
1712
1719
|
}, {
|
|
1713
1720
|
status: import("../../index.js").TaskRunStatus;
|
|
1714
1721
|
id: string;
|
|
1715
1722
|
friendlyId: string;
|
|
1716
1723
|
attemptNumber?: number | null | undefined;
|
|
1724
|
+
taskEventStore?: string | undefined;
|
|
1717
1725
|
}>;
|
|
1718
1726
|
}, "strip", z.ZodTypeAny, {
|
|
1719
1727
|
run: {
|
|
@@ -1721,6 +1729,7 @@ export declare const WorkloadRunAttemptCompleteResponseBody: z.ZodObject<{
|
|
|
1721
1729
|
id: string;
|
|
1722
1730
|
friendlyId: string;
|
|
1723
1731
|
attemptNumber?: number | null | undefined;
|
|
1732
|
+
taskEventStore?: string | undefined;
|
|
1724
1733
|
};
|
|
1725
1734
|
snapshot: {
|
|
1726
1735
|
id: string;
|
|
@@ -1735,6 +1744,7 @@ export declare const WorkloadRunAttemptCompleteResponseBody: z.ZodObject<{
|
|
|
1735
1744
|
id: string;
|
|
1736
1745
|
friendlyId: string;
|
|
1737
1746
|
attemptNumber?: number | null | undefined;
|
|
1747
|
+
taskEventStore?: string | undefined;
|
|
1738
1748
|
};
|
|
1739
1749
|
snapshot: {
|
|
1740
1750
|
id: string;
|
|
@@ -1753,6 +1763,7 @@ export declare const WorkloadRunAttemptCompleteResponseBody: z.ZodObject<{
|
|
|
1753
1763
|
id: string;
|
|
1754
1764
|
friendlyId: string;
|
|
1755
1765
|
attemptNumber?: number | null | undefined;
|
|
1766
|
+
taskEventStore?: string | undefined;
|
|
1756
1767
|
};
|
|
1757
1768
|
snapshot: {
|
|
1758
1769
|
id: string;
|
|
@@ -1771,6 +1782,7 @@ export declare const WorkloadRunAttemptCompleteResponseBody: z.ZodObject<{
|
|
|
1771
1782
|
id: string;
|
|
1772
1783
|
friendlyId: string;
|
|
1773
1784
|
attemptNumber?: number | null | undefined;
|
|
1785
|
+
taskEventStore?: string | undefined;
|
|
1774
1786
|
};
|
|
1775
1787
|
snapshot: {
|
|
1776
1788
|
id: string;
|
|
@@ -1815,16 +1827,19 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
|
|
|
1815
1827
|
friendlyId: z.ZodString;
|
|
1816
1828
|
status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
|
|
1817
1829
|
attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1830
|
+
taskEventStore: z.ZodOptional<z.ZodString>;
|
|
1818
1831
|
}, "strip", z.ZodTypeAny, {
|
|
1819
1832
|
status: import("../../index.js").TaskRunStatus;
|
|
1820
1833
|
id: string;
|
|
1821
1834
|
friendlyId: string;
|
|
1822
1835
|
attemptNumber?: number | null | undefined;
|
|
1836
|
+
taskEventStore?: string | undefined;
|
|
1823
1837
|
}, {
|
|
1824
1838
|
status: import("../../index.js").TaskRunStatus;
|
|
1825
1839
|
id: string;
|
|
1826
1840
|
friendlyId: string;
|
|
1827
1841
|
attemptNumber?: number | null | undefined;
|
|
1842
|
+
taskEventStore?: string | undefined;
|
|
1828
1843
|
}>;
|
|
1829
1844
|
}, "strip", z.ZodTypeAny, {
|
|
1830
1845
|
run: {
|
|
@@ -1832,6 +1847,7 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
|
|
|
1832
1847
|
id: string;
|
|
1833
1848
|
friendlyId: string;
|
|
1834
1849
|
attemptNumber?: number | null | undefined;
|
|
1850
|
+
taskEventStore?: string | undefined;
|
|
1835
1851
|
};
|
|
1836
1852
|
snapshot: {
|
|
1837
1853
|
id: string;
|
|
@@ -1846,6 +1862,7 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
|
|
|
1846
1862
|
id: string;
|
|
1847
1863
|
friendlyId: string;
|
|
1848
1864
|
attemptNumber?: number | null | undefined;
|
|
1865
|
+
taskEventStore?: string | undefined;
|
|
1849
1866
|
};
|
|
1850
1867
|
snapshot: {
|
|
1851
1868
|
id: string;
|
|
@@ -2638,16 +2655,19 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2638
2655
|
friendlyId: z.ZodString;
|
|
2639
2656
|
status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
|
|
2640
2657
|
attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2658
|
+
taskEventStore: z.ZodOptional<z.ZodString>;
|
|
2641
2659
|
}, "strip", z.ZodTypeAny, {
|
|
2642
2660
|
status: import("../../index.js").TaskRunStatus;
|
|
2643
2661
|
id: string;
|
|
2644
2662
|
friendlyId: string;
|
|
2645
2663
|
attemptNumber?: number | null | undefined;
|
|
2664
|
+
taskEventStore?: string | undefined;
|
|
2646
2665
|
}, {
|
|
2647
2666
|
status: import("../../index.js").TaskRunStatus;
|
|
2648
2667
|
id: string;
|
|
2649
2668
|
friendlyId: string;
|
|
2650
2669
|
attemptNumber?: number | null | undefined;
|
|
2670
|
+
taskEventStore?: string | undefined;
|
|
2651
2671
|
}>;
|
|
2652
2672
|
batch: z.ZodOptional<z.ZodObject<{
|
|
2653
2673
|
id: z.ZodString;
|
|
@@ -2785,6 +2805,7 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2785
2805
|
id: string;
|
|
2786
2806
|
friendlyId: string;
|
|
2787
2807
|
attemptNumber?: number | null | undefined;
|
|
2808
|
+
taskEventStore?: string | undefined;
|
|
2788
2809
|
};
|
|
2789
2810
|
snapshot: {
|
|
2790
2811
|
id: string;
|
|
@@ -2836,6 +2857,7 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2836
2857
|
id: string;
|
|
2837
2858
|
friendlyId: string;
|
|
2838
2859
|
attemptNumber?: number | null | undefined;
|
|
2860
|
+
taskEventStore?: string | undefined;
|
|
2839
2861
|
};
|
|
2840
2862
|
snapshot: {
|
|
2841
2863
|
id: string;
|
|
@@ -2889,6 +2911,7 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2889
2911
|
id: string;
|
|
2890
2912
|
friendlyId: string;
|
|
2891
2913
|
attemptNumber?: number | null | undefined;
|
|
2914
|
+
taskEventStore?: string | undefined;
|
|
2892
2915
|
};
|
|
2893
2916
|
snapshot: {
|
|
2894
2917
|
id: string;
|
|
@@ -2942,6 +2965,7 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
|
|
|
2942
2965
|
id: string;
|
|
2943
2966
|
friendlyId: string;
|
|
2944
2967
|
attemptNumber?: number | null | undefined;
|
|
2968
|
+
taskEventStore?: string | undefined;
|
|
2945
2969
|
};
|
|
2946
2970
|
snapshot: {
|
|
2947
2971
|
id: string;
|
|
@@ -3443,16 +3467,19 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
|
|
|
3443
3467
|
friendlyId: z.ZodString;
|
|
3444
3468
|
status: z.ZodEnum<[import("../../index.js").TaskRunStatus]>;
|
|
3445
3469
|
attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3470
|
+
taskEventStore: z.ZodOptional<z.ZodString>;
|
|
3446
3471
|
}, "strip", z.ZodTypeAny, {
|
|
3447
3472
|
status: import("../../index.js").TaskRunStatus;
|
|
3448
3473
|
id: string;
|
|
3449
3474
|
friendlyId: string;
|
|
3450
3475
|
attemptNumber?: number | null | undefined;
|
|
3476
|
+
taskEventStore?: string | undefined;
|
|
3451
3477
|
}, {
|
|
3452
3478
|
status: import("../../index.js").TaskRunStatus;
|
|
3453
3479
|
id: string;
|
|
3454
3480
|
friendlyId: string;
|
|
3455
3481
|
attemptNumber?: number | null | undefined;
|
|
3482
|
+
taskEventStore?: string | undefined;
|
|
3456
3483
|
}>;
|
|
3457
3484
|
batch: z.ZodOptional<z.ZodObject<{
|
|
3458
3485
|
id: z.ZodString;
|
|
@@ -3590,6 +3617,7 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
|
|
|
3590
3617
|
id: string;
|
|
3591
3618
|
friendlyId: string;
|
|
3592
3619
|
attemptNumber?: number | null | undefined;
|
|
3620
|
+
taskEventStore?: string | undefined;
|
|
3593
3621
|
};
|
|
3594
3622
|
snapshot: {
|
|
3595
3623
|
id: string;
|
|
@@ -3641,6 +3669,7 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
|
|
|
3641
3669
|
id: string;
|
|
3642
3670
|
friendlyId: string;
|
|
3643
3671
|
attemptNumber?: number | null | undefined;
|
|
3672
|
+
taskEventStore?: string | undefined;
|
|
3644
3673
|
};
|
|
3645
3674
|
snapshot: {
|
|
3646
3675
|
id: string;
|
|
@@ -3694,6 +3723,7 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
|
|
|
3694
3723
|
id: string;
|
|
3695
3724
|
friendlyId: string;
|
|
3696
3725
|
attemptNumber?: number | null | undefined;
|
|
3726
|
+
taskEventStore?: string | undefined;
|
|
3697
3727
|
};
|
|
3698
3728
|
snapshot: {
|
|
3699
3729
|
id: string;
|
|
@@ -3747,6 +3777,7 @@ export declare const WorkloadRunSnapshotsSinceResponseBody: z.ZodObject<{
|
|
|
3747
3777
|
id: string;
|
|
3748
3778
|
friendlyId: string;
|
|
3749
3779
|
attemptNumber?: number | null | undefined;
|
|
3780
|
+
taskEventStore?: string | undefined;
|
|
3750
3781
|
};
|
|
3751
3782
|
snapshot: {
|
|
3752
3783
|
id: string;
|