@graph-compose/core 1.0.0
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/README.md +323 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/behaviors/conditions.d.ts +54 -0
- package/dist/types/behaviors/conditions.d.ts.map +1 -0
- package/dist/types/behaviors/conditions.js +103 -0
- package/dist/types/behaviors/conditions.js.map +1 -0
- package/dist/types/behaviors/index.d.ts +3 -0
- package/dist/types/behaviors/index.d.ts.map +1 -0
- package/dist/types/behaviors/index.js +19 -0
- package/dist/types/behaviors/index.js.map +1 -0
- package/dist/types/behaviors/notifications.d.ts +157 -0
- package/dist/types/behaviors/notifications.d.ts.map +1 -0
- package/dist/types/behaviors/notifications.js +89 -0
- package/dist/types/behaviors/notifications.js.map +1 -0
- package/dist/types/config/activity.d.ts +58 -0
- package/dist/types/config/activity.d.ts.map +1 -0
- package/dist/types/config/activity.js +53 -0
- package/dist/types/config/activity.js.map +1 -0
- package/dist/types/config/http.d.ts +20 -0
- package/dist/types/config/http.d.ts.map +1 -0
- package/dist/types/config/http.js +66 -0
- package/dist/types/config/http.js.map +1 -0
- package/dist/types/config/index.d.ts +5 -0
- package/dist/types/config/index.d.ts.map +1 -0
- package/dist/types/config/index.js +21 -0
- package/dist/types/config/index.js.map +1 -0
- package/dist/types/config/protocols.d.ts +3 -0
- package/dist/types/config/protocols.d.ts.map +1 -0
- package/dist/types/config/protocols.js +14 -0
- package/dist/types/config/protocols.js.map +1 -0
- package/dist/types/config/workflow.d.ts +10 -0
- package/dist/types/config/workflow.d.ts.map +1 -0
- package/dist/types/config/workflow.js +12 -0
- package/dist/types/config/workflow.js.map +1 -0
- package/dist/types/context/index.d.ts +4 -0
- package/dist/types/context/index.d.ts.map +1 -0
- package/dist/types/context/index.js +8 -0
- package/dist/types/context/index.js.map +1 -0
- package/dist/types/contracts/agents.d.ts +87 -0
- package/dist/types/contracts/agents.d.ts.map +1 -0
- package/dist/types/contracts/agents.js +94 -0
- package/dist/types/contracts/agents.js.map +1 -0
- package/dist/types/contracts/index.d.ts +3 -0
- package/dist/types/contracts/index.d.ts.map +1 -0
- package/dist/types/contracts/index.js +19 -0
- package/dist/types/contracts/index.js.map +1 -0
- package/dist/types/contracts/tools.d.ts +72 -0
- package/dist/types/contracts/tools.d.ts.map +1 -0
- package/dist/types/contracts/tools.js +101 -0
- package/dist/types/contracts/tools.js.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +26 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/nodes/agents.d.ts +149 -0
- package/dist/types/nodes/agents.d.ts.map +1 -0
- package/dist/types/nodes/agents.js +48 -0
- package/dist/types/nodes/agents.js.map +1 -0
- package/dist/types/nodes/common/base-node-schema.d.ts +109 -0
- package/dist/types/nodes/common/base-node-schema.d.ts.map +1 -0
- package/dist/types/nodes/common/base-node-schema.js +55 -0
- package/dist/types/nodes/common/base-node-schema.js.map +1 -0
- package/dist/types/nodes/common/index.d.ts +2 -0
- package/dist/types/nodes/common/index.d.ts.map +1 -0
- package/dist/types/nodes/common/index.js +18 -0
- package/dist/types/nodes/common/index.js.map +1 -0
- package/dist/types/nodes/destination.d.ts +148 -0
- package/dist/types/nodes/destination.d.ts.map +1 -0
- package/dist/types/nodes/destination.js +30 -0
- package/dist/types/nodes/destination.js.map +1 -0
- package/dist/types/nodes/error-boundary.d.ts +126 -0
- package/dist/types/nodes/error-boundary.d.ts.map +1 -0
- package/dist/types/nodes/error-boundary.js +24 -0
- package/dist/types/nodes/error-boundary.js.map +1 -0
- package/dist/types/nodes/http.d.ts +194 -0
- package/dist/types/nodes/http.d.ts.map +1 -0
- package/dist/types/nodes/http.js +28 -0
- package/dist/types/nodes/http.js.map +1 -0
- package/dist/types/nodes/index.d.ts +734 -0
- package/dist/types/nodes/index.d.ts.map +1 -0
- package/dist/types/nodes/index.js +48 -0
- package/dist/types/nodes/index.js.map +1 -0
- package/dist/types/nodes/iterator.d.ts +126 -0
- package/dist/types/nodes/iterator.d.ts.map +1 -0
- package/dist/types/nodes/iterator.js +21 -0
- package/dist/types/nodes/iterator.js.map +1 -0
- package/dist/types/nodes/tools.d.ts +1321 -0
- package/dist/types/nodes/tools.d.ts.map +1 -0
- package/dist/types/nodes/tools.js +65 -0
- package/dist/types/nodes/tools.js.map +1 -0
- package/dist/types/primitives/index.d.ts +2 -0
- package/dist/types/primitives/index.d.ts.map +1 -0
- package/dist/types/primitives/index.js +18 -0
- package/dist/types/primitives/index.js.map +1 -0
- package/dist/types/primitives/shared.d.ts +21 -0
- package/dist/types/primitives/shared.d.ts.map +1 -0
- package/dist/types/primitives/shared.js +113 -0
- package/dist/types/primitives/shared.js.map +1 -0
- package/dist/types/results/agent.d.ts +156 -0
- package/dist/types/results/agent.d.ts.map +1 -0
- package/dist/types/results/agent.js +54 -0
- package/dist/types/results/agent.js.map +1 -0
- package/dist/types/results/base.d.ts +4 -0
- package/dist/types/results/base.d.ts.map +1 -0
- package/dist/types/results/base.js +12 -0
- package/dist/types/results/base.js.map +1 -0
- package/dist/types/results/index.d.ts +7 -0
- package/dist/types/results/index.d.ts.map +1 -0
- package/dist/types/results/index.js +23 -0
- package/dist/types/results/index.js.map +1 -0
- package/dist/types/results/node.d.ts +38 -0
- package/dist/types/results/node.d.ts.map +1 -0
- package/dist/types/results/node.js +26 -0
- package/dist/types/results/node.js.map +1 -0
- package/dist/types/results/shared.d.ts +36 -0
- package/dist/types/results/shared.d.ts.map +1 -0
- package/dist/types/results/shared.js +31 -0
- package/dist/types/results/shared.js.map +1 -0
- package/dist/types/results/source.d.ts +53 -0
- package/dist/types/results/source.d.ts.map +1 -0
- package/dist/types/results/source.js +64 -0
- package/dist/types/results/source.js.map +1 -0
- package/dist/types/results/tool.d.ts +170 -0
- package/dist/types/results/tool.d.ts.map +1 -0
- package/dist/types/results/tool.js +110 -0
- package/dist/types/results/tool.js.map +1 -0
- package/dist/types/state/index.d.ts +2 -0
- package/dist/types/state/index.d.ts.map +1 -0
- package/dist/types/state/index.js +18 -0
- package/dist/types/state/index.js.map +1 -0
- package/dist/types/state/workflow-state.d.ts +63 -0
- package/dist/types/state/workflow-state.d.ts.map +1 -0
- package/dist/types/state/workflow-state.js +52 -0
- package/dist/types/state/workflow-state.js.map +1 -0
- package/dist/types/validation/schema.d.ts +14 -0
- package/dist/types/validation/schema.d.ts.map +1 -0
- package/dist/types/validation/schema.js +37 -0
- package/dist/types/validation/schema.js.map +1 -0
- package/dist/types/workflow.d.ts +2179 -0
- package/dist/types/workflow.d.ts.map +1 -0
- package/dist/types/workflow.js +132 -0
- package/dist/types/workflow.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/template/index.d.ts +39 -0
- package/dist/utils/template/index.d.ts.map +1 -0
- package/dist/utils/template/index.js +151 -0
- package/dist/utils/template/index.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const nodeWebhookPayloadSchema: z.ZodObject<{
|
|
3
|
+
timestamp: z.ZodNumber;
|
|
4
|
+
nodeId: z.ZodString;
|
|
5
|
+
nodeType: z.ZodString;
|
|
6
|
+
executionState: z.ZodEnum<["pending", "executed", "terminated", "executed_and_failed", "skipped"]>;
|
|
7
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
8
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
type: z.ZodOptional<z.ZodString>;
|
|
11
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
message: string;
|
|
14
|
+
type?: string | undefined;
|
|
15
|
+
details?: unknown;
|
|
16
|
+
}, {
|
|
17
|
+
message: string;
|
|
18
|
+
type?: string | undefined;
|
|
19
|
+
details?: unknown;
|
|
20
|
+
}>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
timestamp: number;
|
|
23
|
+
nodeId: string;
|
|
24
|
+
nodeType: string;
|
|
25
|
+
executionState: "pending" | "executed" | "terminated" | "executed_and_failed" | "skipped";
|
|
26
|
+
result?: unknown;
|
|
27
|
+
error?: {
|
|
28
|
+
message: string;
|
|
29
|
+
type?: string | undefined;
|
|
30
|
+
details?: unknown;
|
|
31
|
+
} | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
timestamp: number;
|
|
34
|
+
nodeId: string;
|
|
35
|
+
nodeType: string;
|
|
36
|
+
executionState: "pending" | "executed" | "terminated" | "executed_and_failed" | "skipped";
|
|
37
|
+
result?: unknown;
|
|
38
|
+
error?: {
|
|
39
|
+
message: string;
|
|
40
|
+
type?: string | undefined;
|
|
41
|
+
details?: unknown;
|
|
42
|
+
} | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const completionWebhookPayloadSchema: z.ZodObject<{
|
|
45
|
+
timestamp: z.ZodNumber;
|
|
46
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
47
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
timestamp: number;
|
|
50
|
+
result?: unknown;
|
|
51
|
+
error?: unknown;
|
|
52
|
+
}, {
|
|
53
|
+
timestamp: number;
|
|
54
|
+
result?: unknown;
|
|
55
|
+
error?: unknown;
|
|
56
|
+
}>;
|
|
57
|
+
export declare const WebhookPayloadSchema: z.ZodObject<{
|
|
58
|
+
workflowId: z.ZodString;
|
|
59
|
+
runId: z.ZodString;
|
|
60
|
+
data: z.ZodUnion<[z.ZodObject<{
|
|
61
|
+
timestamp: z.ZodNumber;
|
|
62
|
+
nodeId: z.ZodString;
|
|
63
|
+
nodeType: z.ZodString;
|
|
64
|
+
executionState: z.ZodEnum<["pending", "executed", "terminated", "executed_and_failed", "skipped"]>;
|
|
65
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
66
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
message: z.ZodString;
|
|
68
|
+
type: z.ZodOptional<z.ZodString>;
|
|
69
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
message: string;
|
|
72
|
+
type?: string | undefined;
|
|
73
|
+
details?: unknown;
|
|
74
|
+
}, {
|
|
75
|
+
message: string;
|
|
76
|
+
type?: string | undefined;
|
|
77
|
+
details?: unknown;
|
|
78
|
+
}>>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
timestamp: number;
|
|
81
|
+
nodeId: string;
|
|
82
|
+
nodeType: string;
|
|
83
|
+
executionState: "pending" | "executed" | "terminated" | "executed_and_failed" | "skipped";
|
|
84
|
+
result?: unknown;
|
|
85
|
+
error?: {
|
|
86
|
+
message: string;
|
|
87
|
+
type?: string | undefined;
|
|
88
|
+
details?: unknown;
|
|
89
|
+
} | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
timestamp: number;
|
|
92
|
+
nodeId: string;
|
|
93
|
+
nodeType: string;
|
|
94
|
+
executionState: "pending" | "executed" | "terminated" | "executed_and_failed" | "skipped";
|
|
95
|
+
result?: unknown;
|
|
96
|
+
error?: {
|
|
97
|
+
message: string;
|
|
98
|
+
type?: string | undefined;
|
|
99
|
+
details?: unknown;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}>, z.ZodObject<{
|
|
102
|
+
timestamp: z.ZodNumber;
|
|
103
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
104
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
timestamp: number;
|
|
107
|
+
result?: unknown;
|
|
108
|
+
error?: unknown;
|
|
109
|
+
}, {
|
|
110
|
+
timestamp: number;
|
|
111
|
+
result?: unknown;
|
|
112
|
+
error?: unknown;
|
|
113
|
+
}>]>;
|
|
114
|
+
type: z.ZodEnum<["node", "completion"]>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
type: "node" | "completion";
|
|
117
|
+
workflowId: string;
|
|
118
|
+
runId: string;
|
|
119
|
+
data: {
|
|
120
|
+
timestamp: number;
|
|
121
|
+
nodeId: string;
|
|
122
|
+
nodeType: string;
|
|
123
|
+
executionState: "pending" | "executed" | "terminated" | "executed_and_failed" | "skipped";
|
|
124
|
+
result?: unknown;
|
|
125
|
+
error?: {
|
|
126
|
+
message: string;
|
|
127
|
+
type?: string | undefined;
|
|
128
|
+
details?: unknown;
|
|
129
|
+
} | undefined;
|
|
130
|
+
} | {
|
|
131
|
+
timestamp: number;
|
|
132
|
+
result?: unknown;
|
|
133
|
+
error?: unknown;
|
|
134
|
+
};
|
|
135
|
+
}, {
|
|
136
|
+
type: "node" | "completion";
|
|
137
|
+
workflowId: string;
|
|
138
|
+
runId: string;
|
|
139
|
+
data: {
|
|
140
|
+
timestamp: number;
|
|
141
|
+
nodeId: string;
|
|
142
|
+
nodeType: string;
|
|
143
|
+
executionState: "pending" | "executed" | "terminated" | "executed_and_failed" | "skipped";
|
|
144
|
+
result?: unknown;
|
|
145
|
+
error?: {
|
|
146
|
+
message: string;
|
|
147
|
+
type?: string | undefined;
|
|
148
|
+
details?: unknown;
|
|
149
|
+
} | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
timestamp: number;
|
|
152
|
+
result?: unknown;
|
|
153
|
+
error?: unknown;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
|
+
export type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
|
|
157
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/types/behaviors/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4CjC,CAAC;AAEL,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAiBvC,CAAC;AAEL,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB7B,CAAC;AAEL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookPayloadSchema = exports.completionWebhookPayloadSchema = exports.nodeWebhookPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.nodeWebhookPayloadSchema = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
timestamp: zod_1.z.number().openapi({
|
|
8
|
+
description: "Unix timestamp (milliseconds) when the event occurred.",
|
|
9
|
+
}),
|
|
10
|
+
nodeId: zod_1.z.string().openapi({
|
|
11
|
+
description: "The ID of the node this notification relates to.",
|
|
12
|
+
}),
|
|
13
|
+
nodeType: zod_1.z.string().openapi({
|
|
14
|
+
description: "The type of the node (e.g., 'http', 'agent').",
|
|
15
|
+
}),
|
|
16
|
+
executionState: zod_1.z
|
|
17
|
+
.enum([
|
|
18
|
+
"pending",
|
|
19
|
+
"executed",
|
|
20
|
+
"terminated",
|
|
21
|
+
"executed_and_failed",
|
|
22
|
+
"skipped",
|
|
23
|
+
])
|
|
24
|
+
.openapi({
|
|
25
|
+
description: "The state of the node at the time of the notification.",
|
|
26
|
+
}),
|
|
27
|
+
result: zod_1.z
|
|
28
|
+
.unknown()
|
|
29
|
+
.optional()
|
|
30
|
+
.openapi({ description: "The result output of the node, if available." }),
|
|
31
|
+
error: zod_1.z
|
|
32
|
+
.object({
|
|
33
|
+
message: zod_1.z.string().openapi({ description: "The error message." }),
|
|
34
|
+
type: zod_1.z
|
|
35
|
+
.string()
|
|
36
|
+
.optional()
|
|
37
|
+
.openapi({ description: "The type or category of the error." }),
|
|
38
|
+
details: zod_1.z
|
|
39
|
+
.unknown()
|
|
40
|
+
.optional()
|
|
41
|
+
.openapi({ description: "Additional details about the error." }),
|
|
42
|
+
})
|
|
43
|
+
.optional()
|
|
44
|
+
.openapi({ description: "Error details, if the node failed." }),
|
|
45
|
+
})
|
|
46
|
+
.openapi({
|
|
47
|
+
title: "Node Webhook Payload",
|
|
48
|
+
description: "Payload sent for node-specific webhook events.",
|
|
49
|
+
});
|
|
50
|
+
exports.completionWebhookPayloadSchema = zod_1.z
|
|
51
|
+
.object({
|
|
52
|
+
timestamp: zod_1.z.number().openapi({
|
|
53
|
+
description: "Unix timestamp (milliseconds) when the workflow completed.",
|
|
54
|
+
}),
|
|
55
|
+
result: zod_1.z.unknown().optional().openapi({
|
|
56
|
+
description: "The final result of the entire workflow, if successful.",
|
|
57
|
+
}),
|
|
58
|
+
error: zod_1.z
|
|
59
|
+
.unknown()
|
|
60
|
+
.optional()
|
|
61
|
+
.openapi({ description: "Details of the error if the workflow failed." }),
|
|
62
|
+
})
|
|
63
|
+
.openapi({
|
|
64
|
+
title: "Completion Webhook Payload",
|
|
65
|
+
description: "Payload sent when the entire workflow completes (successfully or with failure).",
|
|
66
|
+
});
|
|
67
|
+
exports.WebhookPayloadSchema = zod_1.z
|
|
68
|
+
.object({
|
|
69
|
+
workflowId: zod_1.z
|
|
70
|
+
.string()
|
|
71
|
+
.openapi({ description: "The unique ID of the workflow definition." }),
|
|
72
|
+
runId: zod_1.z.string().openapi({
|
|
73
|
+
description: "The unique ID for this specific execution run.",
|
|
74
|
+
}),
|
|
75
|
+
data: zod_1.z
|
|
76
|
+
.union([exports.nodeWebhookPayloadSchema, exports.completionWebhookPayloadSchema])
|
|
77
|
+
.openapi({
|
|
78
|
+
description: "The specific payload, either for a node event or workflow completion.",
|
|
79
|
+
}),
|
|
80
|
+
type: zod_1.z.enum(["node", "completion"]).openapi({
|
|
81
|
+
description: "Indicates whether the payload is for a 'node' event or workflow 'completion'.",
|
|
82
|
+
}),
|
|
83
|
+
})
|
|
84
|
+
.openapi({
|
|
85
|
+
title: "Webhook Payload",
|
|
86
|
+
description: "The overall structure of the payload sent to configured webhooks.",
|
|
87
|
+
"x-tags": ["Webhooks"],
|
|
88
|
+
});
|
|
89
|
+
//# sourceMappingURL=notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/types/behaviors/notifications.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC;KACtC,MAAM,CAAC;IACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QAC5B,WAAW,EAAE,wDAAwD;KACtE,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QACzB,WAAW,EAAE,kDAAkD;KAChE,CAAC;IACF,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC;QAC3B,WAAW,EAAE,+CAA+C;KAC7D,CAAC;IACF,cAAc,EAAE,OAAC;SACd,IAAI,CAAC;QACJ,SAAS;QACT,UAAU;QACV,YAAY;QACZ,qBAAqB;QACrB,SAAS;KACV,CAAC;SACD,OAAO,CAAC;QACP,WAAW,EAAE,wDAAwD;KACtE,CAAC;IACJ,MAAM,EAAE,OAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,WAAW,EAAE,8CAA8C,EAAE,CAAC;IAC3E,KAAK,EAAE,OAAC;SACL,MAAM,CAAC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C9D,CAAC;IACF,IAAI,EAAE,OAAC;SACJ,KAAK,CAAC,CAAC,gCAAwB,EAAE,sCAA8B,CAAC,CAAC;SACjE,OAAO,CAAC;QACP,WAAW,EACT,uEAAuE;KAC1E,CAAC;IACJ,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC;QAC3C,WAAW,EACT,+EAA+E;KAClF,CAAC;CACH,CAAC;KACD,OAAO,CAAC;IACP,KAAK,EAAE,iBAAiB;IACxB,WAAW,EACT,mEAAmE;IACrE,QAAQ,EAAE,CAAC,UAAU,CAAC;CACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RetryPolicySchema: z.ZodObject<{
|
|
3
|
+
backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
4
|
+
initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
5
|
+
maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
6
|
+
maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
backoffCoefficient?: number | undefined;
|
|
9
|
+
initialInterval?: string | undefined;
|
|
10
|
+
maximumAttempts?: number | undefined;
|
|
11
|
+
maximumInterval?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
backoffCoefficient?: number | undefined;
|
|
14
|
+
initialInterval?: string | undefined;
|
|
15
|
+
maximumAttempts?: number | undefined;
|
|
16
|
+
maximumInterval?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type RetryPolicy = z.infer<typeof RetryPolicySchema>;
|
|
19
|
+
export declare const ActivityConfigSchema: z.ZodObject<{
|
|
20
|
+
retryPolicy: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
backoffCoefficient: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
initialInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
23
|
+
maximumAttempts: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
24
|
+
maximumInterval: z.ZodOptional<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
backoffCoefficient?: number | undefined;
|
|
27
|
+
initialInterval?: string | undefined;
|
|
28
|
+
maximumAttempts?: number | undefined;
|
|
29
|
+
maximumInterval?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
backoffCoefficient?: number | undefined;
|
|
32
|
+
initialInterval?: string | undefined;
|
|
33
|
+
maximumAttempts?: number | undefined;
|
|
34
|
+
maximumInterval?: string | undefined;
|
|
35
|
+
}>>;
|
|
36
|
+
startToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
37
|
+
scheduleToCloseTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
retryPolicy?: {
|
|
40
|
+
backoffCoefficient?: number | undefined;
|
|
41
|
+
initialInterval?: string | undefined;
|
|
42
|
+
maximumAttempts?: number | undefined;
|
|
43
|
+
maximumInterval?: string | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
startToCloseTimeout?: string | undefined;
|
|
46
|
+
scheduleToCloseTimeout?: string | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
retryPolicy?: {
|
|
49
|
+
backoffCoefficient?: number | undefined;
|
|
50
|
+
initialInterval?: string | undefined;
|
|
51
|
+
maximumAttempts?: number | undefined;
|
|
52
|
+
maximumInterval?: string | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
startToCloseTimeout?: string | undefined;
|
|
55
|
+
scheduleToCloseTimeout?: string | undefined;
|
|
56
|
+
}>;
|
|
57
|
+
export type ActivityConfig = z.infer<typeof ActivityConfigSchema>;
|
|
58
|
+
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../src/types/config/activity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EA8B1B,CAAC;AAEL,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB7B,CAAC;AAEL,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityConfigSchema = exports.RetryPolicySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../primitives/shared");
|
|
6
|
+
exports.RetryPolicySchema = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
backoffCoefficient: zod_1.z
|
|
9
|
+
.number()
|
|
10
|
+
.min(1)
|
|
11
|
+
.openapi({
|
|
12
|
+
description: "The backoff coefficient is used to calculate the next interval in the exponential backoff sequence. The next interval is calculated as the previous interval multiplied by the backoff coefficient.",
|
|
13
|
+
example: 2,
|
|
14
|
+
})
|
|
15
|
+
.optional(),
|
|
16
|
+
initialInterval: shared_1.DurationSchema.optional(),
|
|
17
|
+
maximumAttempts: zod_1.z
|
|
18
|
+
.number()
|
|
19
|
+
.openapi({
|
|
20
|
+
description: "The maximum number of attempts to retry the node.",
|
|
21
|
+
example: 3,
|
|
22
|
+
})
|
|
23
|
+
.optional(),
|
|
24
|
+
maximumInterval: shared_1.DurationSchema.optional().openapi({
|
|
25
|
+
description: "The maximum interval to wait between retries.",
|
|
26
|
+
example: "10 seconds",
|
|
27
|
+
}),
|
|
28
|
+
})
|
|
29
|
+
.partial()
|
|
30
|
+
.openapi({
|
|
31
|
+
ref: "RetryPolicy",
|
|
32
|
+
description: "You can use the retry policy to configure durability on the node. Responses returned < 300 will trigger a retry up till the maximum number of attempts.",
|
|
33
|
+
"x-tags": ["Configuration"],
|
|
34
|
+
});
|
|
35
|
+
exports.ActivityConfigSchema = zod_1.z
|
|
36
|
+
.object({
|
|
37
|
+
retryPolicy: exports.RetryPolicySchema.optional().openapi({
|
|
38
|
+
description: "Defines the strategy for retrying a failed step. Retries occur for transient failures (e.g., network issues, temporary service unavailability). The time between retries follows an exponential backoff sequence: `next_interval = initialInterval * (backoffCoefficient ^ (attempt_number - 1))`, capped by `maximumInterval`. Retries continue until `maximumAttempts` is reached.",
|
|
39
|
+
}),
|
|
40
|
+
startToCloseTimeout: shared_1.DurationSchema.optional().openapi({
|
|
41
|
+
description: "The maximum duration allowed for a single execution attempt of this step to complete after it has started. If an attempt exceeds this duration, it's considered failed.",
|
|
42
|
+
example: "30 seconds",
|
|
43
|
+
}),
|
|
44
|
+
scheduleToCloseTimeout: shared_1.DurationSchema.optional().openapi({
|
|
45
|
+
description: "The maximum total duration allowed for this step from the moment it's scheduled until its final completion (or failure after all retries). This includes any queue time, execution time for all attempts, and wait time between retries.",
|
|
46
|
+
example: "30 seconds",
|
|
47
|
+
}),
|
|
48
|
+
})
|
|
49
|
+
.openapi({
|
|
50
|
+
ref: "ActivityConfig",
|
|
51
|
+
description: "Configuration for the execution behavior of a workflow step, including timeouts and retry strategies.",
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.js","sourceRoot":"","sources":["../../../src/types/config/activity.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA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";
|
|
2
|
+
import { HttpMethodSchema } from "./protocols";
|
|
3
|
+
export type HttpMethod = z.infer<typeof HttpMethodSchema>;
|
|
4
|
+
export declare const HTTPConfigSchema: z.ZodObject<{
|
|
5
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
|
|
6
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>]>>>;
|
|
8
|
+
body: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
url: string;
|
|
11
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
12
|
+
headers?: Record<string, string | Record<string, any>> | undefined;
|
|
13
|
+
body?: string | Record<string, any> | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
url: string;
|
|
16
|
+
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
17
|
+
headers?: Record<string, string | Record<string, any>> | undefined;
|
|
18
|
+
body?: string | Record<string, any> | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/types/config/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAuEzB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTTPConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../primitives/shared");
|
|
6
|
+
const protocols_1 = require("./protocols");
|
|
7
|
+
// Base schema for HTTP handlers
|
|
8
|
+
exports.HTTPConfigSchema = zod_1.z
|
|
9
|
+
.object({
|
|
10
|
+
method: protocols_1.HttpMethodSchema,
|
|
11
|
+
url: zod_1.z
|
|
12
|
+
.string()
|
|
13
|
+
.refine(url => {
|
|
14
|
+
// Handle expressions with optional whitespace around them
|
|
15
|
+
const urlWithoutExpressions = url.replace(/\{\{\s*(?:[^{}]|\{[^{}]*\})+\s*\}\}/g, "placeholder");
|
|
16
|
+
// Then check for any remaining {{ or }} which would indicate malformed expressions
|
|
17
|
+
const hasValidBraces = !urlWithoutExpressions.includes("{{") &&
|
|
18
|
+
!urlWithoutExpressions.includes("}}");
|
|
19
|
+
if (!hasValidBraces) {
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
// Now validate the URL structure
|
|
23
|
+
try {
|
|
24
|
+
new URL(urlWithoutExpressions);
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
}, {
|
|
31
|
+
message: "Invalid URL format or malformed handlebars expressions. URL must be valid when expressions are evaluated and each '{{' must have a matching '}}'.",
|
|
32
|
+
})
|
|
33
|
+
.openapi({
|
|
34
|
+
description: "URL to make the request to. Can include JSONata expressions within '{{ }}' delimiters",
|
|
35
|
+
example: "https://api.example.com/users/{{userId}}/posts?filter={{query.filter}}",
|
|
36
|
+
}),
|
|
37
|
+
headers: zod_1.z
|
|
38
|
+
.record(zod_1.z.union([zod_1.z.string(), shared_1.JsonataObjectSchema]))
|
|
39
|
+
.optional()
|
|
40
|
+
.openapi({
|
|
41
|
+
description: "HTTP headers. Values can be static strings or dynamic expressions using `{{ }}`. \nExpressions support [JSONata](https://jsonata.org/) for accessing `context` (`{{ context.var }}`), `results` (`{{ results.node.output }}`), and secrets (`{{ $secret('key') }}`).",
|
|
42
|
+
example: {
|
|
43
|
+
Authorization: "Bearer {{ $secret('api_token') }}",
|
|
44
|
+
"X-User-ID": "{{ results.getUser.id }}",
|
|
45
|
+
"X-Tenant-ID": "{{ context.tenantId }}",
|
|
46
|
+
},
|
|
47
|
+
}),
|
|
48
|
+
body: shared_1.JsonataObjectSchema.optional().openapi({
|
|
49
|
+
description: "The request body (typically JSON). Can contain static values or dynamic expressions using `{{ }}`. \nExpressions support [JSONata](https://jsonata.org/) for accessing `context`, `results`, and secrets (`{{ $secret('key') }}`).",
|
|
50
|
+
example: {
|
|
51
|
+
orderId: "{{ results.createOrder.id }}",
|
|
52
|
+
apiKey: "{{ $secret('payment_key') }}",
|
|
53
|
+
customerRef: "{{ context.customerReference }}",
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
56
|
+
})
|
|
57
|
+
.openapi({
|
|
58
|
+
ref: "HttpConfiguration",
|
|
59
|
+
description: "Configuration for an HTTP handler",
|
|
60
|
+
"x-tags": ["Configuration"],
|
|
61
|
+
example: {
|
|
62
|
+
method: "GET",
|
|
63
|
+
url: "https://api.example.com/users/{{userId}}/posts?filter={{query.filter}}",
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/types/config/http.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAA2D;AAC3D,2CAA+C;AAI/C,gCAAgC;AACnB,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,CAAC;IACN,MAAM,EAAE,4BAAgB;IACxB,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,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;IAChD,QAAQ,EAAE,CAAC,eAAe,CAAC;IAC3B,OAAO,EAAE;QACP,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,wEAAwE;KAC9E;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./activity"), exports);
|
|
18
|
+
__exportStar(require("./http"), exports);
|
|
19
|
+
__exportStar(require("./protocols"), exports);
|
|
20
|
+
__exportStar(require("./workflow"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB;AACvB,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocols.d.ts","sourceRoot":"","sources":["../../../src/types/config/protocols.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,yEAQ3B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpMethodSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.HttpMethodSchema = zod_1.z.enum([
|
|
6
|
+
"GET",
|
|
7
|
+
"POST",
|
|
8
|
+
"PUT",
|
|
9
|
+
"DELETE",
|
|
10
|
+
"PATCH",
|
|
11
|
+
"HEAD",
|
|
12
|
+
"OPTIONS",
|
|
13
|
+
]);
|
|
14
|
+
//# sourceMappingURL=protocols.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocols.js","sourceRoot":"","sources":["../../../src/types/config/protocols.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,gBAAgB,GAAG,OAAC,CAAC,IAAI,CAAC;IACrC,KAAK;IACL,MAAM;IACN,KAAK;IACL,QAAQ;IACR,OAAO;IACP,MAAM;IACN,SAAS;CACV,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WorkflowConfigSchema: z.ZodObject<{
|
|
3
|
+
workflowExecutionTimeout: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
workflowExecutionTimeout?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
workflowExecutionTimeout?: string | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export type WorkflowConfig = z.infer<typeof WorkflowConfigSchema>;
|
|
10
|
+
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../src/types/config/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;EAK/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../primitives");
|
|
6
|
+
exports.WorkflowConfigSchema = zod_1.z.object({
|
|
7
|
+
workflowExecutionTimeout: primitives_1.DurationSchema.optional().openapi({
|
|
8
|
+
description: "The maximum time a workflow can run before timing out",
|
|
9
|
+
example: "30 seconds",
|
|
10
|
+
}),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=workflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../src/types/config/workflow.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAA+C;AAElC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,wBAAwB,EAAE,2BAAc,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QAC1D,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,YAAY;KACtB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,oCAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobalContextSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.GlobalContextSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.any()).openapi({
|
|
6
|
+
description: "Global context for the workflow",
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/context/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC;IACvE,WAAW,EAAE,iCAAiC;CAC/C,CAAC,CAAC"}
|