@trigger.dev/core 4.0.0-v4-beta.24 → 4.0.0-v4-beta.26
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/logger.d.ts +1 -0
- package/dist/commonjs/logger.js +5 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +8 -8
- package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +1 -0
- package/dist/commonjs/v3/isomorphic/friendlyId.js +2 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +79 -61
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +63 -45
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +341 -209
- package/dist/commonjs/v3/runMetadata/manager.d.ts +1 -0
- package/dist/commonjs/v3/runMetadata/manager.js +72 -2
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +116 -116
- package/dist/commonjs/v3/schemas/build.d.ts +36 -36
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +72 -72
- package/dist/commonjs/v3/schemas/common.d.ts +1708 -408
- package/dist/commonjs/v3/schemas/common.js +101 -42
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +3564 -2986
- package/dist/commonjs/v3/schemas/messages.js +10 -10
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +10 -10
- package/dist/commonjs/v3/schemas/runEngine.d.ts +341 -209
- package/dist/commonjs/v3/schemas/schemas.d.ts +562 -442
- package/dist/commonjs/v3/schemas/schemas.js +4 -4
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/schemas/webhooks.d.ts +120 -120
- package/dist/commonjs/v3/taskContext/index.js +0 -2
- package/dist/commonjs/v3/taskContext/index.js.map +1 -1
- package/dist/commonjs/v3/usage/api.d.ts +2 -1
- package/dist/commonjs/v3/usage/api.js +3 -0
- package/dist/commonjs/v3/usage/api.js.map +1 -1
- package/dist/commonjs/v3/usage/devUsageManager.d.ts +4 -1
- package/dist/commonjs/v3/usage/devUsageManager.js +14 -0
- package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/noopUsageManager.d.ts +2 -1
- package/dist/commonjs/v3/usage/noopUsageManager.js +6 -0
- package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/prodUsageManager.d.ts +4 -1
- package/dist/commonjs/v3/usage/prodUsageManager.js +14 -0
- package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage/types.d.ts +5 -0
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/logger.d.ts +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +8 -8
- package/dist/esm/v3/isomorphic/friendlyId.d.ts +1 -0
- package/dist/esm/v3/isomorphic/friendlyId.js +1 -0
- package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +79 -61
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +375 -243
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +63 -45
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +341 -209
- package/dist/esm/v3/runMetadata/manager.d.ts +1 -0
- package/dist/esm/v3/runMetadata/manager.js +72 -2
- package/dist/esm/v3/runMetadata/manager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +116 -116
- package/dist/esm/v3/schemas/build.d.ts +36 -36
- package/dist/esm/v3/schemas/checkpoints.d.ts +72 -72
- package/dist/esm/v3/schemas/common.d.ts +1708 -408
- package/dist/esm/v3/schemas/common.js +100 -41
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +3564 -2986
- package/dist/esm/v3/schemas/messages.js +11 -11
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/schemas/resources.d.ts +10 -10
- package/dist/esm/v3/schemas/runEngine.d.ts +341 -209
- package/dist/esm/v3/schemas/schemas.d.ts +562 -442
- package/dist/esm/v3/schemas/schemas.js +4 -4
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/schemas/webhooks.d.ts +120 -120
- package/dist/esm/v3/taskContext/index.js +0 -2
- package/dist/esm/v3/taskContext/index.js.map +1 -1
- package/dist/esm/v3/usage/api.d.ts +2 -1
- package/dist/esm/v3/usage/api.js +3 -0
- package/dist/esm/v3/usage/api.js.map +1 -1
- package/dist/esm/v3/usage/devUsageManager.d.ts +4 -1
- package/dist/esm/v3/usage/devUsageManager.js +14 -0
- package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
- package/dist/esm/v3/usage/noopUsageManager.d.ts +2 -1
- package/dist/esm/v3/usage/noopUsageManager.js +6 -0
- package/dist/esm/v3/usage/noopUsageManager.js.map +1 -1
- package/dist/esm/v3/usage/prodUsageManager.d.ts +4 -1
- package/dist/esm/v3/usage/prodUsageManager.js +14 -0
- package/dist/esm/v3/usage/prodUsageManager.js.map +1 -1
- package/dist/esm/v3/usage/types.d.ts +5 -0
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -10,18 +10,18 @@ export declare const CheckpointServiceSuspendRequestBody: z.ZodObject<{
|
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
type: import("./runEngine.js").CheckpointTypeEnum;
|
|
12
12
|
runId: string;
|
|
13
|
-
snapshotId: string;
|
|
14
|
-
runnerId: string;
|
|
15
13
|
projectRef: string;
|
|
16
14
|
deploymentVersion: string;
|
|
15
|
+
snapshotId: string;
|
|
16
|
+
runnerId: string;
|
|
17
17
|
reason?: string | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
type: import("./runEngine.js").CheckpointTypeEnum;
|
|
20
20
|
runId: string;
|
|
21
|
-
snapshotId: string;
|
|
22
|
-
runnerId: string;
|
|
23
21
|
projectRef: string;
|
|
24
22
|
deploymentVersion: string;
|
|
23
|
+
snapshotId: string;
|
|
24
|
+
runnerId: string;
|
|
25
25
|
reason?: string | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
export type CheckpointServiceSuspendRequestBody = z.infer<typeof CheckpointServiceSuspendRequestBody>;
|
|
@@ -36,6 +36,43 @@ export declare const CheckpointServiceSuspendResponseBody: z.ZodObject<{
|
|
|
36
36
|
export type CheckpointServiceSuspendResponseBody = z.infer<typeof CheckpointServiceSuspendResponseBody>;
|
|
37
37
|
export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
|
|
38
38
|
version: z.ZodLiteral<"1">;
|
|
39
|
+
environment: z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
44
|
+
id: string;
|
|
45
|
+
}, {
|
|
46
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
47
|
+
id: string;
|
|
48
|
+
}>;
|
|
49
|
+
organization: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
id: string;
|
|
53
|
+
}, {
|
|
54
|
+
id: string;
|
|
55
|
+
}>;
|
|
56
|
+
project: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
id: string;
|
|
60
|
+
}, {
|
|
61
|
+
id: string;
|
|
62
|
+
}>;
|
|
63
|
+
deployment: z.ZodObject<{
|
|
64
|
+
id: z.ZodOptional<z.ZodString>;
|
|
65
|
+
friendlyId: z.ZodOptional<z.ZodString>;
|
|
66
|
+
imagePlatform: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
id?: string | undefined;
|
|
69
|
+
friendlyId?: string | undefined;
|
|
70
|
+
imagePlatform?: string | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
friendlyId?: string | undefined;
|
|
74
|
+
imagePlatform?: string | undefined;
|
|
75
|
+
}>;
|
|
39
76
|
run: z.ZodObject<{
|
|
40
77
|
id: z.ZodString;
|
|
41
78
|
friendlyId: z.ZodString;
|
|
@@ -62,54 +99,30 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
|
|
|
62
99
|
}, "strip", z.ZodTypeAny, {
|
|
63
100
|
id: string;
|
|
64
101
|
isTest: boolean;
|
|
65
|
-
traceContext: Record<string, unknown>;
|
|
66
102
|
machine: {
|
|
67
103
|
cpu: number;
|
|
68
104
|
memory: number;
|
|
69
105
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
70
106
|
centsPerMs: number;
|
|
71
107
|
};
|
|
108
|
+
traceContext: Record<string, unknown>;
|
|
72
109
|
friendlyId: string;
|
|
73
110
|
attemptNumber: number;
|
|
74
111
|
masterQueue: string;
|
|
75
112
|
}, {
|
|
76
113
|
id: string;
|
|
77
114
|
isTest: boolean;
|
|
78
|
-
traceContext: Record<string, unknown>;
|
|
79
115
|
machine: {
|
|
80
116
|
cpu: number;
|
|
81
117
|
memory: number;
|
|
82
118
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
83
119
|
centsPerMs: number;
|
|
84
120
|
};
|
|
121
|
+
traceContext: Record<string, unknown>;
|
|
85
122
|
friendlyId: string;
|
|
86
123
|
attemptNumber: number;
|
|
87
124
|
masterQueue: string;
|
|
88
125
|
}>;
|
|
89
|
-
environment: z.ZodObject<{
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
92
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
94
|
-
id: string;
|
|
95
|
-
}, {
|
|
96
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
97
|
-
id: string;
|
|
98
|
-
}>;
|
|
99
|
-
organization: z.ZodObject<{
|
|
100
|
-
id: z.ZodString;
|
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
id: string;
|
|
103
|
-
}, {
|
|
104
|
-
id: string;
|
|
105
|
-
}>;
|
|
106
|
-
project: z.ZodObject<{
|
|
107
|
-
id: z.ZodString;
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
id: string;
|
|
110
|
-
}, {
|
|
111
|
-
id: string;
|
|
112
|
-
}>;
|
|
113
126
|
snapshot: z.ZodObject<{
|
|
114
127
|
id: z.ZodString;
|
|
115
128
|
friendlyId: z.ZodString;
|
|
@@ -259,45 +272,37 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
|
|
|
259
272
|
version: string;
|
|
260
273
|
friendlyId: string;
|
|
261
274
|
}>;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
version: "1";
|
|
277
|
+
environment: {
|
|
278
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
279
|
+
id: string;
|
|
280
|
+
};
|
|
281
|
+
organization: {
|
|
282
|
+
id: string;
|
|
283
|
+
};
|
|
284
|
+
project: {
|
|
285
|
+
id: string;
|
|
286
|
+
};
|
|
287
|
+
deployment: {
|
|
271
288
|
id?: string | undefined;
|
|
272
289
|
friendlyId?: string | undefined;
|
|
273
290
|
imagePlatform?: string | undefined;
|
|
274
|
-
}
|
|
275
|
-
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
version: "1";
|
|
291
|
+
};
|
|
277
292
|
run: {
|
|
278
293
|
id: string;
|
|
279
294
|
isTest: boolean;
|
|
280
|
-
traceContext: Record<string, unknown>;
|
|
281
295
|
machine: {
|
|
282
296
|
cpu: number;
|
|
283
297
|
memory: number;
|
|
284
298
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
285
299
|
centsPerMs: number;
|
|
286
300
|
};
|
|
301
|
+
traceContext: Record<string, unknown>;
|
|
287
302
|
friendlyId: string;
|
|
288
303
|
attemptNumber: number;
|
|
289
304
|
masterQueue: string;
|
|
290
305
|
};
|
|
291
|
-
environment: {
|
|
292
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
293
|
-
id: string;
|
|
294
|
-
};
|
|
295
|
-
organization: {
|
|
296
|
-
id: string;
|
|
297
|
-
};
|
|
298
|
-
project: {
|
|
299
|
-
id: string;
|
|
300
|
-
};
|
|
301
306
|
snapshot: {
|
|
302
307
|
id: string;
|
|
303
308
|
createdAt: Date;
|
|
@@ -342,38 +347,38 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
|
|
|
342
347
|
version: string;
|
|
343
348
|
friendlyId: string;
|
|
344
349
|
};
|
|
350
|
+
image?: string | undefined;
|
|
351
|
+
}, {
|
|
352
|
+
version: "1";
|
|
353
|
+
environment: {
|
|
354
|
+
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
355
|
+
id: string;
|
|
356
|
+
};
|
|
357
|
+
organization: {
|
|
358
|
+
id: string;
|
|
359
|
+
};
|
|
360
|
+
project: {
|
|
361
|
+
id: string;
|
|
362
|
+
};
|
|
345
363
|
deployment: {
|
|
346
364
|
id?: string | undefined;
|
|
347
365
|
friendlyId?: string | undefined;
|
|
348
366
|
imagePlatform?: string | undefined;
|
|
349
367
|
};
|
|
350
|
-
image?: string | undefined;
|
|
351
|
-
}, {
|
|
352
|
-
version: "1";
|
|
353
368
|
run: {
|
|
354
369
|
id: string;
|
|
355
370
|
isTest: boolean;
|
|
356
|
-
traceContext: Record<string, unknown>;
|
|
357
371
|
machine: {
|
|
358
372
|
cpu: number;
|
|
359
373
|
memory: number;
|
|
360
374
|
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
361
375
|
centsPerMs: number;
|
|
362
376
|
};
|
|
377
|
+
traceContext: Record<string, unknown>;
|
|
363
378
|
friendlyId: string;
|
|
364
379
|
attemptNumber: number;
|
|
365
380
|
masterQueue: string;
|
|
366
381
|
};
|
|
367
|
-
environment: {
|
|
368
|
-
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
369
|
-
id: string;
|
|
370
|
-
};
|
|
371
|
-
organization: {
|
|
372
|
-
id: string;
|
|
373
|
-
};
|
|
374
|
-
project: {
|
|
375
|
-
id: string;
|
|
376
|
-
};
|
|
377
382
|
snapshot: {
|
|
378
383
|
id: string;
|
|
379
384
|
createdAt: Date;
|
|
@@ -418,11 +423,6 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
|
|
|
418
423
|
version: string;
|
|
419
424
|
friendlyId: string;
|
|
420
425
|
};
|
|
421
|
-
deployment: {
|
|
422
|
-
id?: string | undefined;
|
|
423
|
-
friendlyId?: string | undefined;
|
|
424
|
-
imagePlatform?: string | undefined;
|
|
425
|
-
};
|
|
426
426
|
image?: string | undefined;
|
|
427
427
|
}>;
|
|
428
428
|
export type CheckpointServiceRestoreRequestBody = z.infer<typeof CheckpointServiceRestoreRequestBody>;
|