@trigger.dev/core 4.7.2 → 4.7.3
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 +103 -1
- package/dist/commonjs/v3/apiClient/index.js +42 -0
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/isomorphic/friendlyId.d.ts +5 -0
- package/dist/commonjs/v3/isomorphic/friendlyId.js +8 -0
- package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/catalog.d.ts +7 -5
- package/dist/commonjs/v3/resource-catalog/index.d.ts +7 -5
- package/dist/commonjs/v3/resource-catalog/index.js +14 -8
- package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.d.ts +7 -5
- package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js +10 -4
- package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.d.ts +11 -8
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js +29 -20
- package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/index.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/index.js +1 -0
- package/dist/commonjs/v3/runEngineWorker/index.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +6 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +12 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.d.ts +4 -2
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js +11 -4
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +40 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +25 -10
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.d.ts +2 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workerQueue.d.ts +121 -0
- package/dist/commonjs/v3/runEngineWorker/workerQueue.js +121 -0
- package/dist/commonjs/v3/runEngineWorker/workerQueue.js.map +1 -0
- package/dist/commonjs/v3/schemas/api.d.ts +26 -9
- package/dist/commonjs/v3/schemas/build.d.ts +48 -18
- package/dist/commonjs/v3/schemas/build.js +2 -1
- package/dist/commonjs/v3/schemas/build.js.map +1 -1
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +2 -0
- package/dist/commonjs/v3/schemas/messages.d.ts +24 -9
- package/dist/commonjs/v3/schemas/resources.d.ts +50 -19
- package/dist/commonjs/v3/schemas/resources.js +9 -5
- package/dist/commonjs/v3/schemas/resources.js.map +1 -1
- package/dist/commonjs/v3/schemas/runEngine.d.ts +4 -0
- package/dist/commonjs/v3/schemas/runEngine.js +4 -0
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +38 -29
- package/dist/commonjs/v3/schemas/schemas.js +12 -8
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/schemas/webhookApi.d.ts +199 -8
- package/dist/commonjs/v3/schemas/webhookApi.js +100 -7
- package/dist/commonjs/v3/schemas/webhookApi.js.map +1 -1
- package/dist/commonjs/v3/schemas/webhookConfig.d.ts +64 -0
- package/dist/commonjs/v3/schemas/webhookConfig.js +36 -9
- package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
- package/dist/commonjs/v3/types/webhooks.d.ts +23 -2
- package/dist/commonjs/v3/webhooks/index.d.ts +5 -0
- package/dist/commonjs/v3/webhooks/index.js +29 -1
- package/dist/commonjs/v3/webhooks/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +103 -1
- package/dist/esm/v3/apiClient/index.js +43 -1
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/isomorphic/friendlyId.d.ts +5 -0
- package/dist/esm/v3/isomorphic/friendlyId.js +7 -0
- package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
- package/dist/esm/v3/resource-catalog/catalog.d.ts +7 -5
- package/dist/esm/v3/resource-catalog/index.d.ts +7 -5
- package/dist/esm/v3/resource-catalog/index.js +14 -8
- package/dist/esm/v3/resource-catalog/index.js.map +1 -1
- package/dist/esm/v3/resource-catalog/noopResourceCatalog.d.ts +7 -5
- package/dist/esm/v3/resource-catalog/noopResourceCatalog.js +10 -4
- package/dist/esm/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.d.ts +11 -8
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.js +29 -20
- package/dist/esm/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/index.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/index.js +1 -0
- package/dist/esm/v3/runEngineWorker/index.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +6 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.js +13 -1
- package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.d.ts +4 -2
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js +11 -4
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +40 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +24 -9
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/session.d.ts +2 -1
- package/dist/esm/v3/runEngineWorker/supervisor/session.js +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workerQueue.d.ts +121 -0
- package/dist/esm/v3/runEngineWorker/workerQueue.js +112 -0
- package/dist/esm/v3/runEngineWorker/workerQueue.js.map +1 -0
- package/dist/esm/v3/schemas/api.d.ts +26 -9
- package/dist/esm/v3/schemas/build.d.ts +48 -18
- package/dist/esm/v3/schemas/build.js +3 -2
- package/dist/esm/v3/schemas/build.js.map +1 -1
- package/dist/esm/v3/schemas/checkpoints.d.ts +2 -0
- package/dist/esm/v3/schemas/messages.d.ts +24 -9
- package/dist/esm/v3/schemas/resources.d.ts +50 -19
- package/dist/esm/v3/schemas/resources.js +8 -4
- package/dist/esm/v3/schemas/resources.js.map +1 -1
- package/dist/esm/v3/schemas/runEngine.d.ts +4 -0
- package/dist/esm/v3/schemas/runEngine.js +4 -0
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +38 -29
- package/dist/esm/v3/schemas/schemas.js +11 -7
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/schemas/webhookApi.d.ts +199 -8
- package/dist/esm/v3/schemas/webhookApi.js +99 -6
- package/dist/esm/v3/schemas/webhookApi.js.map +1 -1
- package/dist/esm/v3/schemas/webhookConfig.d.ts +64 -0
- package/dist/esm/v3/schemas/webhookConfig.js +35 -8
- package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
- package/dist/esm/v3/types/webhooks.d.ts +23 -2
- package/dist/esm/v3/webhooks/index.d.ts +5 -0
- package/dist/esm/v3/webhooks/index.js +28 -0
- package/dist/esm/v3/webhooks/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
export declare const WORKER_QUEUE_VERSION = "v2";
|
|
3
|
+
export declare const SCHEDULED_WORKER_QUEUE_SUFFIX = ":scheduled";
|
|
4
|
+
/** The dispatch class of a v2 worker queue. Kept separate from the legacy dequeue class. */
|
|
5
|
+
export declare const WorkerQueueDispatchClass: z.ZodEnum<{
|
|
6
|
+
ondemand: "ondemand";
|
|
7
|
+
scheduled: "scheduled";
|
|
8
|
+
}>;
|
|
9
|
+
export type WorkerQueueDispatchClass = z.infer<typeof WorkerQueueDispatchClass>;
|
|
10
|
+
export declare const WorkerQueuePhase: z.ZodEnum<{
|
|
11
|
+
fresh: "fresh";
|
|
12
|
+
restore: "restore";
|
|
13
|
+
}>;
|
|
14
|
+
export type WorkerQueuePhase = z.infer<typeof WorkerQueuePhase>;
|
|
15
|
+
export declare const WorkerQueueCompatibility: z.ZodEnum<{
|
|
16
|
+
any: "any";
|
|
17
|
+
compute: "compute";
|
|
18
|
+
container: "container";
|
|
19
|
+
}>;
|
|
20
|
+
export type WorkerQueueCompatibility = z.infer<typeof WorkerQueueCompatibility>;
|
|
21
|
+
export declare const WorkerQueueChannel: z.ZodEnum<{
|
|
22
|
+
canary: "canary";
|
|
23
|
+
stable: "stable";
|
|
24
|
+
}>;
|
|
25
|
+
export type WorkerQueueChannel = z.infer<typeof WorkerQueueChannel>;
|
|
26
|
+
export declare const WorkerQueueSubscription: z.ZodObject<{
|
|
27
|
+
class: z.ZodEnum<{
|
|
28
|
+
ondemand: "ondemand";
|
|
29
|
+
scheduled: "scheduled";
|
|
30
|
+
}>;
|
|
31
|
+
phase: z.ZodEnum<{
|
|
32
|
+
fresh: "fresh";
|
|
33
|
+
restore: "restore";
|
|
34
|
+
}>;
|
|
35
|
+
compat: z.ZodEnum<{
|
|
36
|
+
any: "any";
|
|
37
|
+
compute: "compute";
|
|
38
|
+
container: "container";
|
|
39
|
+
}>;
|
|
40
|
+
channel: z.ZodEnum<{
|
|
41
|
+
canary: "canary";
|
|
42
|
+
stable: "stable";
|
|
43
|
+
}>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type WorkerQueueSubscription = z.infer<typeof WorkerQueueSubscription>;
|
|
46
|
+
export declare const MAX_WORKER_QUEUE_SUBSCRIPTIONS: number;
|
|
47
|
+
export declare const WorkerQueueSubscriptions: z.ZodArray<z.ZodObject<{
|
|
48
|
+
class: z.ZodEnum<{
|
|
49
|
+
ondemand: "ondemand";
|
|
50
|
+
scheduled: "scheduled";
|
|
51
|
+
}>;
|
|
52
|
+
phase: z.ZodEnum<{
|
|
53
|
+
fresh: "fresh";
|
|
54
|
+
restore: "restore";
|
|
55
|
+
}>;
|
|
56
|
+
compat: z.ZodEnum<{
|
|
57
|
+
any: "any";
|
|
58
|
+
compute: "compute";
|
|
59
|
+
container: "container";
|
|
60
|
+
}>;
|
|
61
|
+
channel: z.ZodEnum<{
|
|
62
|
+
canary: "canary";
|
|
63
|
+
stable: "stable";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
export declare const WeightedWorkerQueueSubscription: z.ZodObject<{
|
|
67
|
+
class: z.ZodEnum<{
|
|
68
|
+
ondemand: "ondemand";
|
|
69
|
+
scheduled: "scheduled";
|
|
70
|
+
}>;
|
|
71
|
+
phase: z.ZodEnum<{
|
|
72
|
+
fresh: "fresh";
|
|
73
|
+
restore: "restore";
|
|
74
|
+
}>;
|
|
75
|
+
compat: z.ZodEnum<{
|
|
76
|
+
any: "any";
|
|
77
|
+
compute: "compute";
|
|
78
|
+
container: "container";
|
|
79
|
+
}>;
|
|
80
|
+
channel: z.ZodEnum<{
|
|
81
|
+
canary: "canary";
|
|
82
|
+
stable: "stable";
|
|
83
|
+
}>;
|
|
84
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
export type WeightedWorkerQueueSubscription = z.infer<typeof WeightedWorkerQueueSubscription>;
|
|
87
|
+
export declare const WeightedWorkerQueueSubscriptions: z.ZodArray<z.ZodObject<{
|
|
88
|
+
class: z.ZodEnum<{
|
|
89
|
+
ondemand: "ondemand";
|
|
90
|
+
scheduled: "scheduled";
|
|
91
|
+
}>;
|
|
92
|
+
phase: z.ZodEnum<{
|
|
93
|
+
fresh: "fresh";
|
|
94
|
+
restore: "restore";
|
|
95
|
+
}>;
|
|
96
|
+
compat: z.ZodEnum<{
|
|
97
|
+
any: "any";
|
|
98
|
+
compute: "compute";
|
|
99
|
+
container: "container";
|
|
100
|
+
}>;
|
|
101
|
+
channel: z.ZodEnum<{
|
|
102
|
+
canary: "canary";
|
|
103
|
+
stable: "stable";
|
|
104
|
+
}>;
|
|
105
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
}, z.core.$strict>>;
|
|
107
|
+
export type WeightedWorkerQueueSubscriptions = z.infer<typeof WeightedWorkerQueueSubscriptions>;
|
|
108
|
+
export type WorkerQueue = {
|
|
109
|
+
region: string;
|
|
110
|
+
version: "legacy";
|
|
111
|
+
class: WorkerQueueDispatchClass;
|
|
112
|
+
} | ({
|
|
113
|
+
region: string;
|
|
114
|
+
version: typeof WORKER_QUEUE_VERSION;
|
|
115
|
+
} & WorkerQueueSubscription);
|
|
116
|
+
export declare function isV2WorkerQueue(name: string): boolean;
|
|
117
|
+
export declare function parseWorkerQueue(name: string): WorkerQueue;
|
|
118
|
+
export declare function formatWorkerQueue(queue: WorkerQueue): string;
|
|
119
|
+
export declare function legacyScheduledWorkerQueue(name: string): string;
|
|
120
|
+
export declare function restoreWorkerQueue(name: string, compat: Exclude<WorkerQueueCompatibility, "any">): string;
|
|
121
|
+
export declare function scheduledWorkerQueue(name: string): string;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
export const WORKER_QUEUE_VERSION = "v2";
|
|
3
|
+
export const SCHEDULED_WORKER_QUEUE_SUFFIX = ":scheduled";
|
|
4
|
+
/** The dispatch class of a v2 worker queue. Kept separate from the legacy dequeue class. */
|
|
5
|
+
export const WorkerQueueDispatchClass = z.enum(["ondemand", "scheduled"]);
|
|
6
|
+
export const WorkerQueuePhase = z.enum(["fresh", "restore"]);
|
|
7
|
+
export const WorkerQueueCompatibility = z.enum(["any", "container", "compute"]);
|
|
8
|
+
export const WorkerQueueChannel = z.enum(["stable", "canary"]);
|
|
9
|
+
export const WorkerQueueSubscription = z.strictObject({
|
|
10
|
+
class: WorkerQueueDispatchClass,
|
|
11
|
+
phase: WorkerQueuePhase,
|
|
12
|
+
compat: WorkerQueueCompatibility,
|
|
13
|
+
channel: WorkerQueueChannel,
|
|
14
|
+
});
|
|
15
|
+
export const MAX_WORKER_QUEUE_SUBSCRIPTIONS = WorkerQueueDispatchClass.options.length *
|
|
16
|
+
WorkerQueuePhase.options.length *
|
|
17
|
+
WorkerQueueCompatibility.options.length *
|
|
18
|
+
WorkerQueueChannel.options.length;
|
|
19
|
+
export const WorkerQueueSubscriptions = z
|
|
20
|
+
.array(WorkerQueueSubscription)
|
|
21
|
+
.min(1)
|
|
22
|
+
.max(MAX_WORKER_QUEUE_SUBSCRIPTIONS);
|
|
23
|
+
export const WeightedWorkerQueueSubscription = WorkerQueueSubscription.extend({
|
|
24
|
+
weight: z.number().finite().min(0).max(1).optional(),
|
|
25
|
+
});
|
|
26
|
+
function subscriptionKey(subscription) {
|
|
27
|
+
return `${subscription.class}:${subscription.phase}:${subscription.compat}:${subscription.channel}`;
|
|
28
|
+
}
|
|
29
|
+
export const WeightedWorkerQueueSubscriptions = z
|
|
30
|
+
.array(WeightedWorkerQueueSubscription)
|
|
31
|
+
.min(1)
|
|
32
|
+
.max(MAX_WORKER_QUEUE_SUBSCRIPTIONS)
|
|
33
|
+
.superRefine((subscriptions, ctx) => {
|
|
34
|
+
const identities = new Set();
|
|
35
|
+
let hasPositiveWeight = false;
|
|
36
|
+
for (const [index, subscription] of subscriptions.entries()) {
|
|
37
|
+
const key = subscriptionKey(subscription);
|
|
38
|
+
if (identities.has(key)) {
|
|
39
|
+
ctx.addIssue({
|
|
40
|
+
code: "custom",
|
|
41
|
+
message: "Worker queue subscriptions must have unique identities",
|
|
42
|
+
path: [index],
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
identities.add(key);
|
|
46
|
+
hasPositiveWeight ||= (subscription.weight ?? 1) > 0;
|
|
47
|
+
}
|
|
48
|
+
if (!hasPositiveWeight) {
|
|
49
|
+
ctx.addIssue({
|
|
50
|
+
code: "custom",
|
|
51
|
+
message: "At least one worker queue subscription must have a positive weight",
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const WorkerQueueRegion = z.string().regex(/^[^:\s]+$/);
|
|
56
|
+
export function isV2WorkerQueue(name) {
|
|
57
|
+
return name.split(":")[1] === WORKER_QUEUE_VERSION;
|
|
58
|
+
}
|
|
59
|
+
export function parseWorkerQueue(name) {
|
|
60
|
+
const [rawRegion, versionOrClass, queueClass, phase, compat, channel, ...extra] = name.split(":");
|
|
61
|
+
const region = WorkerQueueRegion.parse(rawRegion);
|
|
62
|
+
if (versionOrClass === undefined) {
|
|
63
|
+
return { region, version: "legacy", class: "ondemand" };
|
|
64
|
+
}
|
|
65
|
+
if (versionOrClass === "scheduled" && queueClass === undefined) {
|
|
66
|
+
return { region, version: "legacy", class: "scheduled" };
|
|
67
|
+
}
|
|
68
|
+
if (versionOrClass !== WORKER_QUEUE_VERSION || extra.length > 0) {
|
|
69
|
+
throw new Error(`Invalid worker queue name: ${name}`);
|
|
70
|
+
}
|
|
71
|
+
const subscription = WorkerQueueSubscription.parse({
|
|
72
|
+
class: queueClass,
|
|
73
|
+
phase,
|
|
74
|
+
compat,
|
|
75
|
+
channel,
|
|
76
|
+
});
|
|
77
|
+
return { region, version: WORKER_QUEUE_VERSION, ...subscription };
|
|
78
|
+
}
|
|
79
|
+
export function formatWorkerQueue(queue) {
|
|
80
|
+
const region = WorkerQueueRegion.parse(queue.region);
|
|
81
|
+
if (queue.version === "legacy") {
|
|
82
|
+
return queue.class === "scheduled" ? `${region}${SCHEDULED_WORKER_QUEUE_SUFFIX}` : region;
|
|
83
|
+
}
|
|
84
|
+
const subscription = WorkerQueueSubscription.parse({
|
|
85
|
+
class: queue.class,
|
|
86
|
+
phase: queue.phase,
|
|
87
|
+
compat: queue.compat,
|
|
88
|
+
channel: queue.channel,
|
|
89
|
+
});
|
|
90
|
+
const { class: queueClass, phase, compat, channel } = subscription;
|
|
91
|
+
return `${region}:${WORKER_QUEUE_VERSION}:${queueClass}:${phase}:${compat}:${channel}`;
|
|
92
|
+
}
|
|
93
|
+
export function legacyScheduledWorkerQueue(name) {
|
|
94
|
+
return name.endsWith(SCHEDULED_WORKER_QUEUE_SUFFIX)
|
|
95
|
+
? name
|
|
96
|
+
: `${name}${SCHEDULED_WORKER_QUEUE_SUFFIX}`;
|
|
97
|
+
}
|
|
98
|
+
export function restoreWorkerQueue(name, compat) {
|
|
99
|
+
if (!isV2WorkerQueue(name)) {
|
|
100
|
+
return name;
|
|
101
|
+
}
|
|
102
|
+
const queue = parseWorkerQueue(name);
|
|
103
|
+
if (queue.version === "legacy") {
|
|
104
|
+
return name;
|
|
105
|
+
}
|
|
106
|
+
return formatWorkerQueue({ ...queue, phase: "restore", compat });
|
|
107
|
+
}
|
|
108
|
+
export function scheduledWorkerQueue(name) {
|
|
109
|
+
const queue = parseWorkerQueue(name);
|
|
110
|
+
return formatWorkerQueue({ ...queue, class: "scheduled" });
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=workerQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workerQueue.js","sourceRoot":"","sources":["../../../../src/v3/runEngineWorker/workerQueue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAC;AACzC,MAAM,CAAC,MAAM,6BAA6B,GAAG,YAAY,CAAC;AAE1D,4FAA4F;AAC5F,M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,EAAE,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -295,7 +295,7 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
295
295
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
296
296
|
variableSchema: z.ZodOptional<z.ZodUnknown>;
|
|
297
297
|
}, z.core.$strip>>>;
|
|
298
|
-
|
|
298
|
+
webhookEndpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
299
299
|
id: z.ZodString;
|
|
300
300
|
description: z.ZodOptional<z.ZodString>;
|
|
301
301
|
filePath: z.ZodString;
|
|
@@ -493,6 +493,10 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
493
493
|
}, z.core.$strip>>;
|
|
494
494
|
response: z.ZodOptional<z.ZodObject<{
|
|
495
495
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
496
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
497
|
+
empty: "empty";
|
|
498
|
+
json: "json";
|
|
499
|
+
}>>;
|
|
496
500
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
497
501
|
}, z.core.$strip>>;
|
|
498
502
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -688,6 +692,10 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
688
692
|
}, z.core.$strip>>;
|
|
689
693
|
response: z.ZodOptional<z.ZodObject<{
|
|
690
694
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
695
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
696
|
+
empty: "empty";
|
|
697
|
+
json: "json";
|
|
698
|
+
}>>;
|
|
691
699
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
692
700
|
}, z.core.$strip>>;
|
|
693
701
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -695,11 +703,24 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
695
703
|
bundleUrl: z.ZodString;
|
|
696
704
|
hash: z.ZodString;
|
|
697
705
|
}, z.core.$strip>]>;
|
|
698
|
-
|
|
706
|
+
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
707
|
+
either: "either";
|
|
708
|
+
integrator: "integrator";
|
|
709
|
+
provider: "provider";
|
|
710
|
+
}>>;
|
|
711
|
+
setupPrompt: z.ZodOptional<z.ZodString>;
|
|
712
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
713
|
+
}, z.core.$strip>>>;
|
|
714
|
+
webhookSubscribers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
715
|
+
endpointId: z.ZodString;
|
|
716
|
+
target: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
699
717
|
type: z.ZodLiteral<"task">;
|
|
718
|
+
id: z.ZodString;
|
|
700
719
|
taskId: z.ZodString;
|
|
720
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
701
721
|
}, z.core.$strip>, z.ZodObject<{
|
|
702
722
|
type: z.ZodLiteral<"session">;
|
|
723
|
+
id: z.ZodString;
|
|
703
724
|
taskIdentifier: z.ZodString;
|
|
704
725
|
keyTemplate: z.ZodString;
|
|
705
726
|
deliverAs: z.ZodEnum<{
|
|
@@ -710,14 +731,8 @@ export declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
710
731
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
711
732
|
triggerConfigTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
712
733
|
startOn: z.ZodOptional<z.ZodString>;
|
|
734
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
713
735
|
}, z.core.$strip>]>;
|
|
714
|
-
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
715
|
-
either: "either";
|
|
716
|
-
integrator: "integrator";
|
|
717
|
-
provider: "provider";
|
|
718
|
-
}>>;
|
|
719
|
-
filter: z.ZodOptional<z.ZodString>;
|
|
720
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
721
736
|
}, z.core.$strip>>>;
|
|
722
737
|
queues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
723
738
|
name: z.ZodString;
|
|
@@ -2033,6 +2048,8 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2033
2048
|
STANDARD: "STANDARD";
|
|
2034
2049
|
}>, z.ZodCustom<string & {}, string & {}>]>>;
|
|
2035
2050
|
externalDeploymentId: z.ZodOptional<z.ZodString>;
|
|
2051
|
+
webhookDeliveryId: z.ZodOptional<z.ZodString>;
|
|
2052
|
+
webhookEndpointId: z.ZodOptional<z.ZodString>;
|
|
2036
2053
|
}, z.core.$strip>>;
|
|
2037
2054
|
}, z.core.$strip>;
|
|
2038
2055
|
environment: z.ZodObject<{
|
|
@@ -273,7 +273,7 @@ export declare const WorkerManifest: z.ZodObject<{
|
|
|
273
273
|
id: z.ZodString;
|
|
274
274
|
sourcePath: z.ZodString;
|
|
275
275
|
}, z.core.$strip>>>;
|
|
276
|
-
|
|
276
|
+
webhookEndpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
277
277
|
filePath: z.ZodString;
|
|
278
278
|
exportName: z.ZodOptional<z.ZodString>;
|
|
279
279
|
entryPoint: z.ZodString;
|
|
@@ -472,6 +472,10 @@ export declare const WorkerManifest: z.ZodObject<{
|
|
|
472
472
|
}, z.core.$strip>>;
|
|
473
473
|
response: z.ZodOptional<z.ZodObject<{
|
|
474
474
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
475
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
476
|
+
empty: "empty";
|
|
477
|
+
json: "json";
|
|
478
|
+
}>>;
|
|
475
479
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
476
480
|
}, z.core.$strip>>;
|
|
477
481
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -667,6 +671,10 @@ export declare const WorkerManifest: z.ZodObject<{
|
|
|
667
671
|
}, z.core.$strip>>;
|
|
668
672
|
response: z.ZodOptional<z.ZodObject<{
|
|
669
673
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
674
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
675
|
+
empty: "empty";
|
|
676
|
+
json: "json";
|
|
677
|
+
}>>;
|
|
670
678
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
671
679
|
}, z.core.$strip>>;
|
|
672
680
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -674,11 +682,24 @@ export declare const WorkerManifest: z.ZodObject<{
|
|
|
674
682
|
bundleUrl: z.ZodString;
|
|
675
683
|
hash: z.ZodString;
|
|
676
684
|
}, z.core.$strip>]>;
|
|
677
|
-
|
|
685
|
+
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
686
|
+
either: "either";
|
|
687
|
+
integrator: "integrator";
|
|
688
|
+
provider: "provider";
|
|
689
|
+
}>>;
|
|
690
|
+
setupPrompt: z.ZodOptional<z.ZodString>;
|
|
691
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
692
|
+
}, z.core.$strip>>>;
|
|
693
|
+
webhookSubscribers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
694
|
+
endpointId: z.ZodString;
|
|
695
|
+
target: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
678
696
|
type: z.ZodLiteral<"task">;
|
|
697
|
+
id: z.ZodString;
|
|
679
698
|
taskId: z.ZodString;
|
|
699
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
680
700
|
}, z.core.$strip>, z.ZodObject<{
|
|
681
701
|
type: z.ZodLiteral<"session">;
|
|
702
|
+
id: z.ZodString;
|
|
682
703
|
taskIdentifier: z.ZodString;
|
|
683
704
|
keyTemplate: z.ZodString;
|
|
684
705
|
deliverAs: z.ZodEnum<{
|
|
@@ -689,14 +710,8 @@ export declare const WorkerManifest: z.ZodObject<{
|
|
|
689
710
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
690
711
|
triggerConfigTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
691
712
|
startOn: z.ZodOptional<z.ZodString>;
|
|
713
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
692
714
|
}, z.core.$strip>]>;
|
|
693
|
-
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
694
|
-
either: "either";
|
|
695
|
-
integrator: "integrator";
|
|
696
|
-
provider: "provider";
|
|
697
|
-
}>>;
|
|
698
|
-
filter: z.ZodOptional<z.ZodString>;
|
|
699
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
700
715
|
}, z.core.$strip>>>;
|
|
701
716
|
unclaimedSessionWebhooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
702
717
|
queues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -828,7 +843,7 @@ export declare const WorkerManifestMessage: z.ZodObject<{
|
|
|
828
843
|
id: z.ZodString;
|
|
829
844
|
sourcePath: z.ZodString;
|
|
830
845
|
}, z.core.$strip>>>;
|
|
831
|
-
|
|
846
|
+
webhookEndpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
832
847
|
filePath: z.ZodString;
|
|
833
848
|
exportName: z.ZodOptional<z.ZodString>;
|
|
834
849
|
entryPoint: z.ZodString;
|
|
@@ -1027,6 +1042,10 @@ export declare const WorkerManifestMessage: z.ZodObject<{
|
|
|
1027
1042
|
}, z.core.$strip>>;
|
|
1028
1043
|
response: z.ZodOptional<z.ZodObject<{
|
|
1029
1044
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
1045
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
1046
|
+
empty: "empty";
|
|
1047
|
+
json: "json";
|
|
1048
|
+
}>>;
|
|
1030
1049
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
1031
1050
|
}, z.core.$strip>>;
|
|
1032
1051
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1222,6 +1241,10 @@ export declare const WorkerManifestMessage: z.ZodObject<{
|
|
|
1222
1241
|
}, z.core.$strip>>;
|
|
1223
1242
|
response: z.ZodOptional<z.ZodObject<{
|
|
1224
1243
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
1244
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
1245
|
+
empty: "empty";
|
|
1246
|
+
json: "json";
|
|
1247
|
+
}>>;
|
|
1225
1248
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
1226
1249
|
}, z.core.$strip>>;
|
|
1227
1250
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1229,11 +1252,24 @@ export declare const WorkerManifestMessage: z.ZodObject<{
|
|
|
1229
1252
|
bundleUrl: z.ZodString;
|
|
1230
1253
|
hash: z.ZodString;
|
|
1231
1254
|
}, z.core.$strip>]>;
|
|
1232
|
-
|
|
1255
|
+
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
1256
|
+
either: "either";
|
|
1257
|
+
integrator: "integrator";
|
|
1258
|
+
provider: "provider";
|
|
1259
|
+
}>>;
|
|
1260
|
+
setupPrompt: z.ZodOptional<z.ZodString>;
|
|
1261
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1262
|
+
}, z.core.$strip>>>;
|
|
1263
|
+
webhookSubscribers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1264
|
+
endpointId: z.ZodString;
|
|
1265
|
+
target: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1233
1266
|
type: z.ZodLiteral<"task">;
|
|
1267
|
+
id: z.ZodString;
|
|
1234
1268
|
taskId: z.ZodString;
|
|
1269
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
1235
1270
|
}, z.core.$strip>, z.ZodObject<{
|
|
1236
1271
|
type: z.ZodLiteral<"session">;
|
|
1272
|
+
id: z.ZodString;
|
|
1237
1273
|
taskIdentifier: z.ZodString;
|
|
1238
1274
|
keyTemplate: z.ZodString;
|
|
1239
1275
|
deliverAs: z.ZodEnum<{
|
|
@@ -1244,14 +1280,8 @@ export declare const WorkerManifestMessage: z.ZodObject<{
|
|
|
1244
1280
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
1245
1281
|
triggerConfigTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1246
1282
|
startOn: z.ZodOptional<z.ZodString>;
|
|
1283
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
1247
1284
|
}, z.core.$strip>]>;
|
|
1248
|
-
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
1249
|
-
either: "either";
|
|
1250
|
-
integrator: "integrator";
|
|
1251
|
-
provider: "provider";
|
|
1252
|
-
}>>;
|
|
1253
|
-
filter: z.ZodOptional<z.ZodString>;
|
|
1254
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1255
1285
|
}, z.core.$strip>>>;
|
|
1256
1286
|
unclaimedSessionWebhooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1257
1287
|
queues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { ConfigManifest } from "./config.js";
|
|
3
|
-
import { PromptManifest, QueueManifest, SkillManifest, TaskFile, TaskManifest,
|
|
3
|
+
import { PromptManifest, QueueManifest, SkillManifest, TaskFile, TaskManifest, WebhookEndpointManifest, WebhookSubscriberManifest, ConcurrencyLimitManifest, } from "./schemas.js";
|
|
4
4
|
export const BuildExternal = z.object({
|
|
5
5
|
name: z.string(),
|
|
6
6
|
version: z.string(),
|
|
@@ -84,7 +84,8 @@ export const WorkerManifest = z.object({
|
|
|
84
84
|
tasks: TaskManifest.array(),
|
|
85
85
|
prompts: PromptManifest.array().optional(),
|
|
86
86
|
skills: SkillManifest.array().optional(),
|
|
87
|
-
|
|
87
|
+
webhookEndpoints: WebhookEndpointManifest.array().optional(),
|
|
88
|
+
webhookSubscribers: WebhookSubscriberManifest.array().optional(),
|
|
88
89
|
unclaimedSessionWebhooks: z.array(z.string()).optional(), // session.webhook descriptors no agent listed
|
|
89
90
|
queues: QueueManifest.array().optional(),
|
|
90
91
|
concurrencyLimits: ConcurrencyLimitManifest.array().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/v3/schemas/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,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AC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -152,6 +152,8 @@ export declare const CheckpointServiceRestoreRequestBody: z.ZodObject<{
|
|
|
152
152
|
STANDARD: "STANDARD";
|
|
153
153
|
}>, z.ZodCustom<string & {}, string & {}>]>>;
|
|
154
154
|
externalDeploymentId: z.ZodOptional<z.ZodString>;
|
|
155
|
+
webhookDeliveryId: z.ZodOptional<z.ZodString>;
|
|
156
|
+
webhookEndpointId: z.ZodOptional<z.ZodString>;
|
|
155
157
|
}, z.core.$strip>>;
|
|
156
158
|
}, z.core.$strip>;
|
|
157
159
|
environment: z.ZodObject<{
|
|
@@ -122,7 +122,7 @@ export declare const indexerToWorkerMessages: {
|
|
|
122
122
|
id: z.ZodString;
|
|
123
123
|
sourcePath: z.ZodString;
|
|
124
124
|
}, z.core.$strip>>>;
|
|
125
|
-
|
|
125
|
+
webhookEndpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
126
|
filePath: z.ZodString;
|
|
127
127
|
exportName: z.ZodOptional<z.ZodString>;
|
|
128
128
|
entryPoint: z.ZodString;
|
|
@@ -321,6 +321,10 @@ export declare const indexerToWorkerMessages: {
|
|
|
321
321
|
}, z.core.$strip>>;
|
|
322
322
|
response: z.ZodOptional<z.ZodObject<{
|
|
323
323
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
324
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
325
|
+
empty: "empty";
|
|
326
|
+
json: "json";
|
|
327
|
+
}>>;
|
|
324
328
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
325
329
|
}, z.core.$strip>>;
|
|
326
330
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -516,6 +520,10 @@ export declare const indexerToWorkerMessages: {
|
|
|
516
520
|
}, z.core.$strip>>;
|
|
517
521
|
response: z.ZodOptional<z.ZodObject<{
|
|
518
522
|
acceptedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<200>, z.ZodLiteral<202>, z.ZodLiteral<204>]>>;
|
|
523
|
+
acceptedBody: z.ZodOptional<z.ZodEnum<{
|
|
524
|
+
empty: "empty";
|
|
525
|
+
json: "json";
|
|
526
|
+
}>>;
|
|
519
527
|
rejectedStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<400>, z.ZodLiteral<401>, z.ZodLiteral<403>]>>;
|
|
520
528
|
}, z.core.$strip>>;
|
|
521
529
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -523,11 +531,24 @@ export declare const indexerToWorkerMessages: {
|
|
|
523
531
|
bundleUrl: z.ZodString;
|
|
524
532
|
hash: z.ZodString;
|
|
525
533
|
}, z.core.$strip>]>;
|
|
526
|
-
|
|
534
|
+
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
535
|
+
either: "either";
|
|
536
|
+
integrator: "integrator";
|
|
537
|
+
provider: "provider";
|
|
538
|
+
}>>;
|
|
539
|
+
setupPrompt: z.ZodOptional<z.ZodString>;
|
|
540
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
541
|
+
}, z.core.$strip>>>;
|
|
542
|
+
webhookSubscribers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
543
|
+
endpointId: z.ZodString;
|
|
544
|
+
target: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
527
545
|
type: z.ZodLiteral<"task">;
|
|
546
|
+
id: z.ZodString;
|
|
528
547
|
taskId: z.ZodString;
|
|
548
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
529
549
|
}, z.core.$strip>, z.ZodObject<{
|
|
530
550
|
type: z.ZodLiteral<"session">;
|
|
551
|
+
id: z.ZodString;
|
|
531
552
|
taskIdentifier: z.ZodString;
|
|
532
553
|
keyTemplate: z.ZodString;
|
|
533
554
|
deliverAs: z.ZodEnum<{
|
|
@@ -538,14 +559,8 @@ export declare const indexerToWorkerMessages: {
|
|
|
538
559
|
connectorId: z.ZodOptional<z.ZodString>;
|
|
539
560
|
triggerConfigTemplate: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
540
561
|
startOn: z.ZodOptional<z.ZodString>;
|
|
562
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
541
563
|
}, z.core.$strip>]>;
|
|
542
|
-
secretProvisioning: z.ZodOptional<z.ZodEnum<{
|
|
543
|
-
either: "either";
|
|
544
|
-
integrator: "integrator";
|
|
545
|
-
provider: "provider";
|
|
546
|
-
}>>;
|
|
547
|
-
filter: z.ZodOptional<z.ZodString>;
|
|
548
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
549
564
|
}, z.core.$strip>>>;
|
|
550
565
|
unclaimedSessionWebhooks: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
551
566
|
queues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|