@trigger.dev/core 3.2.0 → 3.2.1
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/schemas/api.d.ts +1340 -1134
- package/dist/commonjs/schemas/eventFilter.d.ts +4 -4
- package/dist/commonjs/schemas/fetch.d.ts +66 -33
- package/dist/commonjs/schemas/notifications.d.ts +24 -16
- package/dist/commonjs/schemas/requestFilter.d.ts +52 -4
- package/dist/commonjs/schemas/runs.d.ts +29 -13
- package/dist/commonjs/schemas/schedules.d.ts +8 -8
- package/dist/commonjs/schemas/statuses.d.ts +9 -8
- package/dist/commonjs/schemas/tasks.d.ts +32 -31
- package/dist/commonjs/schemas/triggers.d.ts +36 -36
- package/dist/commonjs/v3/apiClient/index.d.ts +48 -42
- package/dist/commonjs/v3/apiClient/index.js +19 -3
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.d.ts +53 -4
- package/dist/commonjs/v3/apiClient/runStream.js +114 -13
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
- package/dist/commonjs/v3/apiClient/stream.js +24 -10
- package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
- package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
- package/dist/commonjs/v3/build/extensions.d.ts +1 -0
- package/dist/commonjs/v3/idempotencyKeys.d.ts +41 -0
- package/dist/commonjs/v3/idempotencyKeys.js +83 -0
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -0
- package/dist/commonjs/v3/index.d.ts +2 -0
- package/dist/commonjs/v3/index.js +2 -0
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/jwt.d.ts +10 -1
- package/dist/commonjs/v3/jwt.js +17 -4
- package/dist/commonjs/v3/jwt.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/index.d.ts +5 -0
- package/dist/commonjs/v3/runMetadata/index.js +15 -0
- package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/manager.d.ts +13 -0
- package/dist/commonjs/v3/runMetadata/manager.js +174 -12
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +21 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.js +71 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -0
- package/dist/commonjs/v3/runMetadata/noopManager.d.ts +5 -0
- package/dist/commonjs/v3/runMetadata/noopManager.js +15 -0
- package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/types.d.ts +5 -0
- package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +457 -786
- package/dist/commonjs/v3/schemas/build.d.ts +270 -496
- package/dist/commonjs/v3/schemas/common.d.ts +23 -23
- package/dist/commonjs/v3/schemas/eventFilter.d.ts +2 -2
- package/dist/commonjs/v3/schemas/fetch.d.ts +57 -45
- package/dist/commonjs/v3/schemas/messages.d.ts +1346 -1759
- package/dist/commonjs/v3/schemas/openTelemetry.d.ts +22 -22
- package/dist/commonjs/v3/schemas/resources.d.ts +138 -298
- package/dist/commonjs/v3/schemas/resources.js +1 -0
- package/dist/commonjs/v3/schemas/resources.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +317 -517
- package/dist/commonjs/v3/schemas/schemas.js +1 -0
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/schemas/style.d.ts +2 -2
- package/dist/commonjs/v3/types/index.d.ts +1 -0
- package/dist/commonjs/v3/types/index.js +1 -0
- package/dist/commonjs/v3/types/index.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +20 -7
- package/dist/commonjs/v3/types/tasks.js.map +1 -1
- package/dist/commonjs/v3/types/tools.d.ts +6 -0
- package/dist/commonjs/v3/types/tools.js +22 -0
- package/dist/commonjs/v3/types/tools.js.map +1 -0
- package/dist/commonjs/v3/utils/getEnv.d.ts +1 -1
- package/dist/commonjs/v3/utils/getEnv.js +3 -3
- package/dist/commonjs/v3/utils/getEnv.js.map +1 -1
- package/dist/commonjs/v3/utils/globals.d.ts +2 -0
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.d.ts +8 -3
- package/dist/commonjs/v3/utils/ioSerialization.js +43 -36
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/v3/wait-until-api.d.ts +2 -0
- package/dist/commonjs/v3/wait-until-api.js +8 -0
- package/dist/commonjs/v3/wait-until-api.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/index.d.ts +11 -0
- package/dist/commonjs/v3/waitUntil/index.js +44 -0
- package/dist/commonjs/v3/waitUntil/index.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/manager.d.ts +8 -0
- package/dist/commonjs/v3/waitUntil/manager.js +28 -0
- package/dist/commonjs/v3/waitUntil/manager.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/types.d.ts +9 -0
- package/dist/commonjs/v3/waitUntil/types.js +3 -0
- package/dist/commonjs/v3/waitUntil/types.js.map +1 -0
- package/dist/commonjs/v3/workers/index.d.ts +1 -0
- package/dist/commonjs/v3/workers/index.js +3 -1
- package/dist/commonjs/v3/workers/index.js.map +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js +13 -0
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/v3/zodMessageHandler.d.ts +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/schemas/api.d.ts +1340 -1134
- package/dist/esm/schemas/eventFilter.d.ts +4 -4
- package/dist/esm/schemas/fetch.d.ts +66 -33
- package/dist/esm/schemas/notifications.d.ts +24 -16
- package/dist/esm/schemas/requestFilter.d.ts +52 -4
- package/dist/esm/schemas/runs.d.ts +29 -13
- package/dist/esm/schemas/schedules.d.ts +8 -8
- package/dist/esm/schemas/statuses.d.ts +9 -8
- package/dist/esm/schemas/tasks.d.ts +32 -31
- package/dist/esm/schemas/triggers.d.ts +36 -36
- package/dist/esm/v3/apiClient/index.d.ts +48 -42
- package/dist/esm/v3/apiClient/index.js +19 -3
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.d.ts +53 -4
- package/dist/esm/v3/apiClient/runStream.js +111 -12
- package/dist/esm/v3/apiClient/runStream.js.map +1 -1
- package/dist/esm/v3/apiClient/stream.js +24 -10
- package/dist/esm/v3/apiClient/stream.js.map +1 -1
- package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
- package/dist/esm/v3/build/extensions.d.ts +1 -0
- package/dist/esm/v3/idempotencyKeys.d.ts +41 -0
- package/dist/esm/v3/idempotencyKeys.js +78 -0
- package/dist/esm/v3/idempotencyKeys.js.map +1 -0
- package/dist/esm/v3/index.d.ts +2 -0
- package/dist/esm/v3/index.js +2 -0
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/jwt.d.ts +10 -1
- package/dist/esm/v3/jwt.js +17 -4
- package/dist/esm/v3/jwt.js.map +1 -1
- package/dist/esm/v3/runMetadata/index.d.ts +5 -0
- package/dist/esm/v3/runMetadata/index.js +15 -0
- package/dist/esm/v3/runMetadata/index.js.map +1 -1
- package/dist/esm/v3/runMetadata/manager.d.ts +13 -0
- package/dist/esm/v3/runMetadata/manager.js +174 -12
- package/dist/esm/v3/runMetadata/manager.js.map +1 -1
- package/dist/esm/v3/runMetadata/metadataStream.d.ts +21 -0
- package/dist/esm/v3/runMetadata/metadataStream.js +67 -0
- package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -0
- package/dist/esm/v3/runMetadata/noopManager.d.ts +5 -0
- package/dist/esm/v3/runMetadata/noopManager.js +15 -0
- package/dist/esm/v3/runMetadata/noopManager.js.map +1 -1
- package/dist/esm/v3/runMetadata/types.d.ts +5 -0
- package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +457 -786
- package/dist/esm/v3/schemas/build.d.ts +270 -496
- package/dist/esm/v3/schemas/common.d.ts +23 -23
- package/dist/esm/v3/schemas/eventFilter.d.ts +2 -2
- package/dist/esm/v3/schemas/fetch.d.ts +57 -45
- package/dist/esm/v3/schemas/messages.d.ts +1346 -1759
- package/dist/esm/v3/schemas/openTelemetry.d.ts +22 -22
- package/dist/esm/v3/schemas/resources.d.ts +138 -298
- package/dist/esm/v3/schemas/resources.js +1 -0
- package/dist/esm/v3/schemas/resources.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +317 -517
- package/dist/esm/v3/schemas/schemas.js +1 -0
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/schemas/style.d.ts +2 -2
- package/dist/esm/v3/types/index.d.ts +1 -0
- package/dist/esm/v3/types/index.js +1 -0
- package/dist/esm/v3/types/index.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +20 -7
- package/dist/esm/v3/types/tasks.js.map +1 -1
- package/dist/esm/v3/types/tools.d.ts +6 -0
- package/dist/esm/v3/types/tools.js +19 -0
- package/dist/esm/v3/types/tools.js.map +1 -0
- package/dist/esm/v3/utils/getEnv.d.ts +1 -1
- package/dist/esm/v3/utils/getEnv.js +3 -3
- package/dist/esm/v3/utils/getEnv.js.map +1 -1
- package/dist/esm/v3/utils/globals.d.ts +2 -0
- package/dist/esm/v3/utils/globals.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.d.ts +8 -3
- package/dist/esm/v3/utils/ioSerialization.js +43 -36
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/v3/wait-until-api.d.ts +2 -0
- package/dist/esm/v3/wait-until-api.js +5 -0
- package/dist/esm/v3/wait-until-api.js.map +1 -0
- package/dist/esm/v3/waitUntil/index.d.ts +11 -0
- package/dist/esm/v3/waitUntil/index.js +40 -0
- package/dist/esm/v3/waitUntil/index.js.map +1 -0
- package/dist/esm/v3/waitUntil/manager.d.ts +8 -0
- package/dist/esm/v3/waitUntil/manager.js +24 -0
- package/dist/esm/v3/waitUntil/manager.js.map +1 -0
- package/dist/esm/v3/waitUntil/types.d.ts +9 -0
- package/dist/esm/v3/waitUntil/types.js +2 -0
- package/dist/esm/v3/waitUntil/types.js.map +1 -0
- package/dist/esm/v3/workers/index.d.ts +1 -0
- package/dist/esm/v3/workers/index.js +1 -0
- package/dist/esm/v3/workers/index.js.map +1 -1
- package/dist/esm/v3/workers/taskExecutor.js +14 -1
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/v3/zodMessageHandler.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +7 -3
|
@@ -53,15 +53,15 @@ export declare const CronMetadataSchema: z.ZodObject<{
|
|
|
53
53
|
cron: string;
|
|
54
54
|
};
|
|
55
55
|
type: "cron";
|
|
56
|
-
accountId?: string | undefined;
|
|
57
56
|
metadata?: any;
|
|
57
|
+
accountId?: string | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
options: {
|
|
60
60
|
cron: string;
|
|
61
61
|
};
|
|
62
62
|
type: "cron";
|
|
63
|
-
accountId?: string | undefined;
|
|
64
63
|
metadata?: any;
|
|
64
|
+
accountId?: string | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
export type CronMetadata = z.infer<typeof CronMetadataSchema>;
|
|
67
67
|
export declare const IntervalMetadataSchema: z.ZodObject<{
|
|
@@ -85,15 +85,15 @@ export declare const IntervalMetadataSchema: z.ZodObject<{
|
|
|
85
85
|
seconds: number;
|
|
86
86
|
};
|
|
87
87
|
type: "interval";
|
|
88
|
-
accountId?: string | undefined;
|
|
89
88
|
metadata?: any;
|
|
89
|
+
accountId?: string | undefined;
|
|
90
90
|
}, {
|
|
91
91
|
options: {
|
|
92
92
|
seconds: number;
|
|
93
93
|
};
|
|
94
94
|
type: "interval";
|
|
95
|
-
accountId?: string | undefined;
|
|
96
95
|
metadata?: any;
|
|
96
|
+
accountId?: string | undefined;
|
|
97
97
|
}>;
|
|
98
98
|
export type IntervalMetadata = z.infer<typeof IntervalMetadataSchema>;
|
|
99
99
|
export declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -117,15 +117,15 @@ export declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
117
117
|
seconds: number;
|
|
118
118
|
};
|
|
119
119
|
type: "interval";
|
|
120
|
-
accountId?: string | undefined;
|
|
121
120
|
metadata?: any;
|
|
121
|
+
accountId?: string | undefined;
|
|
122
122
|
}, {
|
|
123
123
|
options: {
|
|
124
124
|
seconds: number;
|
|
125
125
|
};
|
|
126
126
|
type: "interval";
|
|
127
|
-
accountId?: string | undefined;
|
|
128
127
|
metadata?: any;
|
|
128
|
+
accountId?: string | undefined;
|
|
129
129
|
}>, z.ZodObject<{
|
|
130
130
|
type: z.ZodLiteral<"cron">;
|
|
131
131
|
options: z.ZodObject<{
|
|
@@ -146,15 +146,15 @@ export declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
146
146
|
cron: string;
|
|
147
147
|
};
|
|
148
148
|
type: "cron";
|
|
149
|
-
accountId?: string | undefined;
|
|
150
149
|
metadata?: any;
|
|
150
|
+
accountId?: string | undefined;
|
|
151
151
|
}, {
|
|
152
152
|
options: {
|
|
153
153
|
cron: string;
|
|
154
154
|
};
|
|
155
155
|
type: "cron";
|
|
156
|
-
accountId?: string | undefined;
|
|
157
156
|
metadata?: any;
|
|
157
|
+
accountId?: string | undefined;
|
|
158
158
|
}>]>;
|
|
159
159
|
export type ScheduleMetadata = z.infer<typeof ScheduleMetadataSchema>;
|
|
160
160
|
export declare const RegisterDynamicSchedulePayloadSchema: z.ZodObject<{
|
|
@@ -18,17 +18,17 @@ export declare const StatusUpdateSchema: z.ZodObject<{
|
|
|
18
18
|
}>;
|
|
19
19
|
export type StatusUpdate = z.infer<typeof StatusUpdateSchema>;
|
|
20
20
|
declare const InitalStatusUpdateSchema: z.ZodObject<{
|
|
21
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json.js").SerializableJson, z.ZodTypeDef, import("./json.js").SerializableJson>>>;
|
|
22
21
|
label: z.ZodString;
|
|
23
22
|
state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
|
|
23
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json.js").SerializableJson, z.ZodTypeDef, import("./json.js").SerializableJson>>>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
label: string;
|
|
26
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
27
26
|
state?: "loading" | "success" | "failure" | undefined;
|
|
27
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
label: string;
|
|
30
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
31
30
|
state?: "loading" | "success" | "failure" | undefined;
|
|
31
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
export type InitialStatusUpdate = z.infer<typeof InitalStatusUpdateSchema>;
|
|
34
34
|
export declare const StatusHistorySchema: z.ZodArray<z.ZodObject<{
|
|
@@ -45,10 +45,11 @@ export declare const StatusHistorySchema: z.ZodArray<z.ZodObject<{
|
|
|
45
45
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
46
46
|
}>, "many">;
|
|
47
47
|
export type StatusHistory = z.infer<typeof StatusHistorySchema>;
|
|
48
|
-
export declare const JobRunStatusRecordSchema: z.ZodObject<{
|
|
49
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json.js").SerializableJson, z.ZodTypeDef, import("./json.js").SerializableJson>>>;
|
|
48
|
+
export declare const JobRunStatusRecordSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
50
49
|
label: z.ZodString;
|
|
51
50
|
state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
|
|
51
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./json.js").SerializableJson, z.ZodTypeDef, import("./json.js").SerializableJson>>>;
|
|
52
|
+
}, {
|
|
52
53
|
key: z.ZodString;
|
|
53
54
|
history: z.ZodArray<z.ZodObject<{
|
|
54
55
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -63,7 +64,7 @@ export declare const JobRunStatusRecordSchema: z.ZodObject<{
|
|
|
63
64
|
state?: "loading" | "success" | "failure" | undefined;
|
|
64
65
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
65
66
|
}>, "many">;
|
|
66
|
-
}
|
|
67
|
+
}>, "strip", z.ZodTypeAny, {
|
|
67
68
|
label: string;
|
|
68
69
|
key: string;
|
|
69
70
|
history: {
|
|
@@ -71,8 +72,8 @@ export declare const JobRunStatusRecordSchema: z.ZodObject<{
|
|
|
71
72
|
state?: "loading" | "success" | "failure" | undefined;
|
|
72
73
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
73
74
|
}[];
|
|
74
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
75
75
|
state?: "loading" | "success" | "failure" | undefined;
|
|
76
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
76
77
|
}, {
|
|
77
78
|
label: string;
|
|
78
79
|
key: string;
|
|
@@ -81,8 +82,8 @@ export declare const JobRunStatusRecordSchema: z.ZodObject<{
|
|
|
81
82
|
state?: "loading" | "success" | "failure" | undefined;
|
|
82
83
|
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
83
84
|
}[];
|
|
84
|
-
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
85
85
|
state?: "loading" | "success" | "failure" | undefined;
|
|
86
|
+
data?: Record<string, import("./json.js").SerializableJson> | undefined;
|
|
86
87
|
}>;
|
|
87
88
|
export type JobRunStatusRecord = z.infer<typeof JobRunStatusRecordSchema>;
|
|
88
89
|
export {};
|
|
@@ -66,6 +66,12 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
66
66
|
name: string;
|
|
67
67
|
id: string;
|
|
68
68
|
noop: boolean;
|
|
69
|
+
params?: import("./json.js").DeserializedJson | undefined;
|
|
70
|
+
context?: import("./json.js").DeserializedJson | undefined;
|
|
71
|
+
style?: {
|
|
72
|
+
style: "normal" | "minimal";
|
|
73
|
+
variant?: string | undefined;
|
|
74
|
+
} | null | undefined;
|
|
69
75
|
icon?: string | null | undefined;
|
|
70
76
|
startedAt?: Date | null | undefined;
|
|
71
77
|
completedAt?: Date | null | undefined;
|
|
@@ -83,15 +89,9 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
83
89
|
url?: string | undefined;
|
|
84
90
|
imageUrl?: string[] | undefined;
|
|
85
91
|
}[] | null | undefined;
|
|
86
|
-
params?: import("./json.js").DeserializedJson | undefined;
|
|
87
92
|
output?: import("./json.js").DeserializedJson | undefined;
|
|
88
|
-
context?: import("./json.js").DeserializedJson | undefined;
|
|
89
93
|
error?: string | null | undefined;
|
|
90
94
|
parentId?: string | null | undefined;
|
|
91
|
-
style?: {
|
|
92
|
-
style: "normal" | "minimal";
|
|
93
|
-
variant?: string | undefined;
|
|
94
|
-
} | null | undefined;
|
|
95
95
|
operation?: string | null | undefined;
|
|
96
96
|
callbackUrl?: string | null | undefined;
|
|
97
97
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
@@ -100,6 +100,12 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
100
100
|
name: string;
|
|
101
101
|
id: string;
|
|
102
102
|
noop: boolean;
|
|
103
|
+
params?: import("./json.js").DeserializedJson | undefined;
|
|
104
|
+
context?: import("./json.js").DeserializedJson | undefined;
|
|
105
|
+
style?: {
|
|
106
|
+
style: "normal" | "minimal";
|
|
107
|
+
variant?: string | undefined;
|
|
108
|
+
} | null | undefined;
|
|
103
109
|
icon?: string | null | undefined;
|
|
104
110
|
startedAt?: Date | null | undefined;
|
|
105
111
|
completedAt?: Date | null | undefined;
|
|
@@ -117,41 +123,22 @@ export declare const TaskSchema: z.ZodObject<{
|
|
|
117
123
|
url?: string | undefined;
|
|
118
124
|
imageUrl?: string[] | undefined;
|
|
119
125
|
}[] | null | undefined;
|
|
120
|
-
params?: import("./json.js").DeserializedJson | undefined;
|
|
121
126
|
output?: import("./json.js").DeserializedJson | undefined;
|
|
122
|
-
context?: import("./json.js").DeserializedJson | undefined;
|
|
123
127
|
error?: string | null | undefined;
|
|
124
128
|
parentId?: string | null | undefined;
|
|
125
|
-
style?: {
|
|
126
|
-
style: "normal" | "minimal";
|
|
127
|
-
variant?: string | undefined;
|
|
128
|
-
} | null | undefined;
|
|
129
129
|
operation?: string | null | undefined;
|
|
130
130
|
callbackUrl?: string | null | undefined;
|
|
131
131
|
childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
|
|
132
132
|
}>;
|
|
133
|
-
export declare const ServerTaskSchema: z.ZodObject<{
|
|
134
|
-
params: z.ZodNullable<z.ZodOptional<z.ZodType<import("./json.js").DeserializedJson, z.ZodTypeDef, import("./json.js").DeserializedJson>>>;
|
|
135
|
-
status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
|
|
136
|
-
error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
137
|
-
context: z.ZodNullable<z.ZodOptional<z.ZodType<import("./json.js").DeserializedJson, z.ZodTypeDef, import("./json.js").DeserializedJson>>>;
|
|
138
|
-
name: z.ZodString;
|
|
133
|
+
export declare const ServerTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
139
134
|
id: z.ZodString;
|
|
140
|
-
|
|
141
|
-
style: z.ZodEnum<["normal", "minimal"]>;
|
|
142
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
143
|
-
}, "strip", z.ZodTypeAny, {
|
|
144
|
-
style: "normal" | "minimal";
|
|
145
|
-
variant?: string | undefined;
|
|
146
|
-
}, {
|
|
147
|
-
style: "normal" | "minimal";
|
|
148
|
-
variant?: string | undefined;
|
|
149
|
-
}>>>;
|
|
135
|
+
name: z.ZodString;
|
|
150
136
|
icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
151
137
|
noop: z.ZodBoolean;
|
|
152
138
|
startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
153
139
|
completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
154
140
|
delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
141
|
+
status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
|
|
155
142
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
156
143
|
properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
144
|
label: z.ZodString;
|
|
@@ -185,15 +172,29 @@ export declare const ServerTaskSchema: z.ZodObject<{
|
|
|
185
172
|
url?: string | undefined;
|
|
186
173
|
imageUrl?: string[] | undefined;
|
|
187
174
|
}>, "many">>>;
|
|
175
|
+
params: z.ZodNullable<z.ZodOptional<z.ZodType<import("./json.js").DeserializedJson, z.ZodTypeDef, import("./json.js").DeserializedJson>>>;
|
|
188
176
|
output: z.ZodNullable<z.ZodOptional<z.ZodType<import("./json.js").DeserializedJson, z.ZodTypeDef, import("./json.js").DeserializedJson>>>;
|
|
177
|
+
context: z.ZodNullable<z.ZodOptional<z.ZodType<import("./json.js").DeserializedJson, z.ZodTypeDef, import("./json.js").DeserializedJson>>>;
|
|
178
|
+
error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
189
179
|
parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
180
|
+
style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
181
|
+
style: z.ZodEnum<["normal", "minimal"]>;
|
|
182
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
style: "normal" | "minimal";
|
|
185
|
+
variant?: string | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
style: "normal" | "minimal";
|
|
188
|
+
variant?: string | undefined;
|
|
189
|
+
}>>>;
|
|
190
190
|
operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
191
191
|
callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
192
192
|
childExecutionMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SEQUENTIAL", "PARALLEL"]>>>;
|
|
193
|
+
}, {
|
|
193
194
|
idempotencyKey: z.ZodString;
|
|
194
195
|
attempts: z.ZodNumber;
|
|
195
196
|
forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
196
|
-
}
|
|
197
|
+
}>, "strip", z.ZodTypeAny, {
|
|
197
198
|
status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
|
|
198
199
|
name: string;
|
|
199
200
|
id: string;
|
|
@@ -201,7 +202,6 @@ export declare const ServerTaskSchema: z.ZodObject<{
|
|
|
201
202
|
idempotencyKey: string;
|
|
202
203
|
attempts: number;
|
|
203
204
|
params?: import("./json.js").DeserializedJson | undefined;
|
|
204
|
-
error?: string | null | undefined;
|
|
205
205
|
context?: import("./json.js").DeserializedJson | undefined;
|
|
206
206
|
style?: {
|
|
207
207
|
style: "normal" | "minimal";
|
|
@@ -225,6 +225,7 @@ export declare const ServerTaskSchema: z.ZodObject<{
|
|
|
225
225
|
imageUrl?: string[] | undefined;
|
|
226
226
|
}[] | null | undefined;
|
|
227
227
|
output?: import("./json.js").DeserializedJson | undefined;
|
|
228
|
+
error?: string | null | undefined;
|
|
228
229
|
parentId?: string | null | undefined;
|
|
229
230
|
operation?: string | null | undefined;
|
|
230
231
|
callbackUrl?: string | null | undefined;
|
|
@@ -238,7 +239,6 @@ export declare const ServerTaskSchema: z.ZodObject<{
|
|
|
238
239
|
idempotencyKey: string;
|
|
239
240
|
attempts: number;
|
|
240
241
|
params?: import("./json.js").DeserializedJson | undefined;
|
|
241
|
-
error?: string | null | undefined;
|
|
242
242
|
context?: import("./json.js").DeserializedJson | undefined;
|
|
243
243
|
style?: {
|
|
244
244
|
style: "normal" | "minimal";
|
|
@@ -262,6 +262,7 @@ export declare const ServerTaskSchema: z.ZodObject<{
|
|
|
262
262
|
imageUrl?: string[] | undefined;
|
|
263
263
|
}[] | null | undefined;
|
|
264
264
|
output?: import("./json.js").DeserializedJson | undefined;
|
|
265
|
+
error?: string | null | undefined;
|
|
265
266
|
parentId?: string | null | undefined;
|
|
266
267
|
operation?: string | null | undefined;
|
|
267
268
|
callbackUrl?: string | null | undefined;
|
|
@@ -7,13 +7,13 @@ export declare const EventExampleSchema: z.ZodObject<{
|
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
name: string;
|
|
9
9
|
id: string;
|
|
10
|
-
icon?: string | undefined;
|
|
11
10
|
payload?: any;
|
|
11
|
+
icon?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
name: string;
|
|
14
14
|
id: string;
|
|
15
|
-
icon?: string | undefined;
|
|
16
15
|
payload?: any;
|
|
16
|
+
icon?: string | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type EventExample = z.infer<typeof EventExampleSchema>;
|
|
19
19
|
export declare const EventSpecificationSchema: z.ZodObject<{
|
|
@@ -47,17 +47,17 @@ export declare const EventSpecificationSchema: z.ZodObject<{
|
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
48
|
name: string;
|
|
49
49
|
id: string;
|
|
50
|
-
icon?: string | undefined;
|
|
51
50
|
payload?: any;
|
|
51
|
+
icon?: string | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
name: string;
|
|
54
54
|
id: string;
|
|
55
|
-
icon?: string | undefined;
|
|
56
55
|
payload?: any;
|
|
56
|
+
icon?: string | undefined;
|
|
57
57
|
}>, "many">>;
|
|
58
58
|
}, "strip", z.ZodTypeAny, {
|
|
59
59
|
source: string;
|
|
60
|
-
name:
|
|
60
|
+
name: string | string[];
|
|
61
61
|
icon: string;
|
|
62
62
|
title: string;
|
|
63
63
|
filter?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -71,12 +71,12 @@ export declare const EventSpecificationSchema: z.ZodObject<{
|
|
|
71
71
|
examples?: {
|
|
72
72
|
name: string;
|
|
73
73
|
id: string;
|
|
74
|
-
icon?: string | undefined;
|
|
75
74
|
payload?: any;
|
|
75
|
+
icon?: string | undefined;
|
|
76
76
|
}[] | undefined;
|
|
77
77
|
}, {
|
|
78
78
|
source: string;
|
|
79
|
-
name:
|
|
79
|
+
name: string | string[];
|
|
80
80
|
icon: string;
|
|
81
81
|
title: string;
|
|
82
82
|
filter?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -90,8 +90,8 @@ export declare const EventSpecificationSchema: z.ZodObject<{
|
|
|
90
90
|
examples?: {
|
|
91
91
|
name: string;
|
|
92
92
|
id: string;
|
|
93
|
-
icon?: string | undefined;
|
|
94
93
|
payload?: any;
|
|
94
|
+
icon?: string | undefined;
|
|
95
95
|
}[] | undefined;
|
|
96
96
|
}>;
|
|
97
97
|
export declare const DynamicTriggerMetadataSchema: z.ZodObject<{
|
|
@@ -151,12 +151,12 @@ export declare const StaticTriggerMetadataSchema: z.ZodObject<{
|
|
|
151
151
|
payload: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
152
152
|
context: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
event:
|
|
154
|
+
event: string | string[];
|
|
155
155
|
source: string;
|
|
156
156
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
157
157
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
event:
|
|
159
|
+
event: string | string[];
|
|
160
160
|
source: string;
|
|
161
161
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
162
162
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -186,9 +186,9 @@ export declare const StaticTriggerMetadataSchema: z.ZodObject<{
|
|
|
186
186
|
}>>;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
188
|
type: "static";
|
|
189
|
-
title:
|
|
189
|
+
title: string | string[];
|
|
190
190
|
rule: {
|
|
191
|
-
event:
|
|
191
|
+
event: string | string[];
|
|
192
192
|
source: string;
|
|
193
193
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
194
194
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -208,9 +208,9 @@ export declare const StaticTriggerMetadataSchema: z.ZodObject<{
|
|
|
208
208
|
} | undefined;
|
|
209
209
|
}, {
|
|
210
210
|
type: "static";
|
|
211
|
-
title:
|
|
211
|
+
title: string | string[];
|
|
212
212
|
rule: {
|
|
213
|
-
event:
|
|
213
|
+
event: string | string[];
|
|
214
214
|
source: string;
|
|
215
215
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
216
216
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -254,15 +254,15 @@ export declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
|
|
|
254
254
|
seconds: number;
|
|
255
255
|
};
|
|
256
256
|
type: "interval";
|
|
257
|
-
accountId?: string | undefined;
|
|
258
257
|
metadata?: any;
|
|
258
|
+
accountId?: string | undefined;
|
|
259
259
|
}, {
|
|
260
260
|
options: {
|
|
261
261
|
seconds: number;
|
|
262
262
|
};
|
|
263
263
|
type: "interval";
|
|
264
|
-
accountId?: string | undefined;
|
|
265
264
|
metadata?: any;
|
|
265
|
+
accountId?: string | undefined;
|
|
266
266
|
}>, z.ZodObject<{
|
|
267
267
|
type: z.ZodLiteral<"cron">;
|
|
268
268
|
options: z.ZodObject<{
|
|
@@ -279,15 +279,15 @@ export declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
|
|
|
279
279
|
cron: string;
|
|
280
280
|
};
|
|
281
281
|
type: "cron";
|
|
282
|
-
accountId?: string | undefined;
|
|
283
282
|
metadata?: any;
|
|
283
|
+
accountId?: string | undefined;
|
|
284
284
|
}, {
|
|
285
285
|
options: {
|
|
286
286
|
cron: string;
|
|
287
287
|
};
|
|
288
288
|
type: "cron";
|
|
289
|
-
accountId?: string | undefined;
|
|
290
289
|
metadata?: any;
|
|
290
|
+
accountId?: string | undefined;
|
|
291
291
|
}>]>;
|
|
292
292
|
}, "strip", z.ZodTypeAny, {
|
|
293
293
|
type: "scheduled";
|
|
@@ -296,15 +296,15 @@ export declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
|
|
|
296
296
|
cron: string;
|
|
297
297
|
};
|
|
298
298
|
type: "cron";
|
|
299
|
-
accountId?: string | undefined;
|
|
300
299
|
metadata?: any;
|
|
300
|
+
accountId?: string | undefined;
|
|
301
301
|
} | {
|
|
302
302
|
options: {
|
|
303
303
|
seconds: number;
|
|
304
304
|
};
|
|
305
305
|
type: "interval";
|
|
306
|
-
accountId?: string | undefined;
|
|
307
306
|
metadata?: any;
|
|
307
|
+
accountId?: string | undefined;
|
|
308
308
|
};
|
|
309
309
|
}, {
|
|
310
310
|
type: "scheduled";
|
|
@@ -313,15 +313,15 @@ export declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
|
|
|
313
313
|
cron: string;
|
|
314
314
|
};
|
|
315
315
|
type: "cron";
|
|
316
|
-
accountId?: string | undefined;
|
|
317
316
|
metadata?: any;
|
|
317
|
+
accountId?: string | undefined;
|
|
318
318
|
} | {
|
|
319
319
|
options: {
|
|
320
320
|
seconds: number;
|
|
321
321
|
};
|
|
322
322
|
type: "interval";
|
|
323
|
-
accountId?: string | undefined;
|
|
324
323
|
metadata?: any;
|
|
324
|
+
accountId?: string | undefined;
|
|
325
325
|
};
|
|
326
326
|
}>;
|
|
327
327
|
export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -358,12 +358,12 @@ export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
358
358
|
payload: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
359
359
|
context: z.ZodOptional<z.ZodType<import("./eventFilter.js").EventFilter, z.ZodTypeDef, import("./eventFilter.js").EventFilter>>;
|
|
360
360
|
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
event:
|
|
361
|
+
event: string | string[];
|
|
362
362
|
source: string;
|
|
363
363
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
364
364
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
365
365
|
}, {
|
|
366
|
-
event:
|
|
366
|
+
event: string | string[];
|
|
367
367
|
source: string;
|
|
368
368
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
369
369
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -393,9 +393,9 @@ export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
393
393
|
}>>;
|
|
394
394
|
}, "strip", z.ZodTypeAny, {
|
|
395
395
|
type: "static";
|
|
396
|
-
title:
|
|
396
|
+
title: string | string[];
|
|
397
397
|
rule: {
|
|
398
|
-
event:
|
|
398
|
+
event: string | string[];
|
|
399
399
|
source: string;
|
|
400
400
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
401
401
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -415,9 +415,9 @@ export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
415
415
|
} | undefined;
|
|
416
416
|
}, {
|
|
417
417
|
type: "static";
|
|
418
|
-
title:
|
|
418
|
+
title: string | string[];
|
|
419
419
|
rule: {
|
|
420
|
-
event:
|
|
420
|
+
event: string | string[];
|
|
421
421
|
source: string;
|
|
422
422
|
payload?: import("./eventFilter.js").EventFilter | undefined;
|
|
423
423
|
context?: import("./eventFilter.js").EventFilter | undefined;
|
|
@@ -453,15 +453,15 @@ export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
453
453
|
seconds: number;
|
|
454
454
|
};
|
|
455
455
|
type: "interval";
|
|
456
|
-
accountId?: string | undefined;
|
|
457
456
|
metadata?: any;
|
|
457
|
+
accountId?: string | undefined;
|
|
458
458
|
}, {
|
|
459
459
|
options: {
|
|
460
460
|
seconds: number;
|
|
461
461
|
};
|
|
462
462
|
type: "interval";
|
|
463
|
-
accountId?: string | undefined;
|
|
464
463
|
metadata?: any;
|
|
464
|
+
accountId?: string | undefined;
|
|
465
465
|
}>, z.ZodObject<{
|
|
466
466
|
type: z.ZodLiteral<"cron">;
|
|
467
467
|
options: z.ZodObject<{
|
|
@@ -478,15 +478,15 @@ export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
478
478
|
cron: string;
|
|
479
479
|
};
|
|
480
480
|
type: "cron";
|
|
481
|
-
accountId?: string | undefined;
|
|
482
481
|
metadata?: any;
|
|
482
|
+
accountId?: string | undefined;
|
|
483
483
|
}, {
|
|
484
484
|
options: {
|
|
485
485
|
cron: string;
|
|
486
486
|
};
|
|
487
487
|
type: "cron";
|
|
488
|
-
accountId?: string | undefined;
|
|
489
488
|
metadata?: any;
|
|
489
|
+
accountId?: string | undefined;
|
|
490
490
|
}>]>;
|
|
491
491
|
}, "strip", z.ZodTypeAny, {
|
|
492
492
|
type: "scheduled";
|
|
@@ -495,15 +495,15 @@ export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
495
495
|
cron: string;
|
|
496
496
|
};
|
|
497
497
|
type: "cron";
|
|
498
|
-
accountId?: string | undefined;
|
|
499
498
|
metadata?: any;
|
|
499
|
+
accountId?: string | undefined;
|
|
500
500
|
} | {
|
|
501
501
|
options: {
|
|
502
502
|
seconds: number;
|
|
503
503
|
};
|
|
504
504
|
type: "interval";
|
|
505
|
-
accountId?: string | undefined;
|
|
506
505
|
metadata?: any;
|
|
506
|
+
accountId?: string | undefined;
|
|
507
507
|
};
|
|
508
508
|
}, {
|
|
509
509
|
type: "scheduled";
|
|
@@ -512,15 +512,15 @@ export declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.Z
|
|
|
512
512
|
cron: string;
|
|
513
513
|
};
|
|
514
514
|
type: "cron";
|
|
515
|
-
accountId?: string | undefined;
|
|
516
515
|
metadata?: any;
|
|
516
|
+
accountId?: string | undefined;
|
|
517
517
|
} | {
|
|
518
518
|
options: {
|
|
519
519
|
seconds: number;
|
|
520
520
|
};
|
|
521
521
|
type: "interval";
|
|
522
|
-
accountId?: string | undefined;
|
|
523
522
|
metadata?: any;
|
|
523
|
+
accountId?: string | undefined;
|
|
524
524
|
};
|
|
525
525
|
}>, z.ZodObject<{
|
|
526
526
|
type: z.ZodLiteral<"invoke">;
|