@kelpi/mcp 0.1.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 +312 -0
- package/bin/kelpi-mcp +3 -0
- package/dist/__tests__/integration-api/fixtures.d.ts +382 -0
- package/dist/__tests__/integration-api/fixtures.d.ts.map +1 -0
- package/dist/__tests__/integration-api/fixtures.js +478 -0
- package/dist/__tests__/integration-api/fixtures.js.map +1 -0
- package/dist/__tests__/integration-api/index.d.ts +19 -0
- package/dist/__tests__/integration-api/index.d.ts.map +1 -0
- package/dist/__tests__/integration-api/index.js +33 -0
- package/dist/__tests__/integration-api/index.js.map +1 -0
- package/dist/__tests__/integration-api/setup.d.ts +176 -0
- package/dist/__tests__/integration-api/setup.d.ts.map +1 -0
- package/dist/__tests__/integration-api/setup.js +329 -0
- package/dist/__tests__/integration-api/setup.js.map +1 -0
- package/dist/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/__tests__/setup.js +11 -0
- package/dist/__tests__/setup.js.map +1 -0
- package/dist/__tests__/unit/test-utils.d.ts +46 -0
- package/dist/__tests__/unit/test-utils.d.ts.map +1 -0
- package/dist/__tests__/unit/test-utils.js +50 -0
- package/dist/__tests__/unit/test-utils.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/api-client.d.ts +17 -0
- package/dist/lib/api-client.d.ts.map +1 -0
- package/dist/lib/api-client.js +169 -0
- package/dist/lib/api-client.js.map +1 -0
- package/dist/lib/auth-state.d.ts +54 -0
- package/dist/lib/auth-state.d.ts.map +1 -0
- package/dist/lib/auth-state.js +131 -0
- package/dist/lib/auth-state.js.map +1 -0
- package/dist/lib/config.d.ts +39 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +170 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/error-formatter.d.ts +40 -0
- package/dist/lib/error-formatter.d.ts.map +1 -0
- package/dist/lib/error-formatter.js +149 -0
- package/dist/lib/error-formatter.js.map +1 -0
- package/dist/lib/errors.d.ts +44 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +56 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/tool-helpers.d.ts +49 -0
- package/dist/lib/tool-helpers.d.ts.map +1 -0
- package/dist/lib/tool-helpers.js +101 -0
- package/dist/lib/tool-helpers.js.map +1 -0
- package/dist/lib/tool-registry.d.ts +111 -0
- package/dist/lib/tool-registry.d.ts.map +1 -0
- package/dist/lib/tool-registry.js +112 -0
- package/dist/lib/tool-registry.js.map +1 -0
- package/dist/lib/version.d.ts +13 -0
- package/dist/lib/version.d.ts.map +1 -0
- package/dist/lib/version.js +13 -0
- package/dist/lib/version.js.map +1 -0
- package/dist/prompts/flow-generator.d.ts +45 -0
- package/dist/prompts/flow-generator.d.ts.map +1 -0
- package/dist/prompts/flow-generator.js +177 -0
- package/dist/prompts/flow-generator.js.map +1 -0
- package/dist/prompts/index.d.ts +7 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +7 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/server.d.ts +66 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +140 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/auth/index.d.ts +18 -0
- package/dist/tools/auth/index.d.ts.map +1 -0
- package/dist/tools/auth/index.js +50 -0
- package/dist/tools/auth/index.js.map +1 -0
- package/dist/tools/auth/login.d.ts +37 -0
- package/dist/tools/auth/login.d.ts.map +1 -0
- package/dist/tools/auth/login.js +257 -0
- package/dist/tools/auth/login.js.map +1 -0
- package/dist/tools/auth/schemas.d.ts +69 -0
- package/dist/tools/auth/schemas.d.ts.map +1 -0
- package/dist/tools/auth/schemas.js +36 -0
- package/dist/tools/auth/schemas.js.map +1 -0
- package/dist/tools/auth/status.d.ts +11 -0
- package/dist/tools/auth/status.d.ts.map +1 -0
- package/dist/tools/auth/status.js +50 -0
- package/dist/tools/auth/status.js.map +1 -0
- package/dist/tools/contacts/create.d.ts +11 -0
- package/dist/tools/contacts/create.d.ts.map +1 -0
- package/dist/tools/contacts/create.js +47 -0
- package/dist/tools/contacts/create.js.map +1 -0
- package/dist/tools/contacts/index.d.ts +10 -0
- package/dist/tools/contacts/index.d.ts.map +1 -0
- package/dist/tools/contacts/index.js +40 -0
- package/dist/tools/contacts/index.js.map +1 -0
- package/dist/tools/contacts/schemas.d.ts +37 -0
- package/dist/tools/contacts/schemas.d.ts.map +1 -0
- package/dist/tools/contacts/schemas.js +15 -0
- package/dist/tools/contacts/schemas.js.map +1 -0
- package/dist/tools/events/index.d.ts +10 -0
- package/dist/tools/events/index.d.ts.map +1 -0
- package/dist/tools/events/index.js +42 -0
- package/dist/tools/events/index.js.map +1 -0
- package/dist/tools/events/schemas.d.ts +37 -0
- package/dist/tools/events/schemas.d.ts.map +1 -0
- package/dist/tools/events/schemas.js +17 -0
- package/dist/tools/events/schemas.js.map +1 -0
- package/dist/tools/events/track.d.ts +11 -0
- package/dist/tools/events/track.d.ts.map +1 -0
- package/dist/tools/events/track.js +41 -0
- package/dist/tools/events/track.js.map +1 -0
- package/dist/tools/flows/activate.d.ts +11 -0
- package/dist/tools/flows/activate.d.ts.map +1 -0
- package/dist/tools/flows/activate.js +46 -0
- package/dist/tools/flows/activate.js.map +1 -0
- package/dist/tools/flows/create.d.ts +11 -0
- package/dist/tools/flows/create.d.ts.map +1 -0
- package/dist/tools/flows/create.js +72 -0
- package/dist/tools/flows/create.js.map +1 -0
- package/dist/tools/flows/index.d.ts +24 -0
- package/dist/tools/flows/index.d.ts.map +1 -0
- package/dist/tools/flows/index.js +183 -0
- package/dist/tools/flows/index.js.map +1 -0
- package/dist/tools/flows/list.d.ts +11 -0
- package/dist/tools/flows/list.d.ts.map +1 -0
- package/dist/tools/flows/list.js +34 -0
- package/dist/tools/flows/list.js.map +1 -0
- package/dist/tools/flows/schemas.d.ts +621 -0
- package/dist/tools/flows/schemas.d.ts.map +1 -0
- package/dist/tools/flows/schemas.js +135 -0
- package/dist/tools/flows/schemas.js.map +1 -0
- package/dist/tools/flows/transform.d.ts +39 -0
- package/dist/tools/flows/transform.d.ts.map +1 -0
- package/dist/tools/flows/transform.js +139 -0
- package/dist/tools/flows/transform.js.map +1 -0
- package/dist/tools/index.d.ts +34 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +46 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/sdk/index.d.ts +18 -0
- package/dist/tools/sdk/index.d.ts.map +1 -0
- package/dist/tools/sdk/index.js +69 -0
- package/dist/tools/sdk/index.js.map +1 -0
- package/dist/tools/sdk/public-key.d.ts +11 -0
- package/dist/tools/sdk/public-key.d.ts.map +1 -0
- package/dist/tools/sdk/public-key.js +24 -0
- package/dist/tools/sdk/public-key.js.map +1 -0
- package/dist/tools/sdk/schemas.d.ts +48 -0
- package/dist/tools/sdk/schemas.d.ts.map +1 -0
- package/dist/tools/sdk/schemas.js +35 -0
- package/dist/tools/sdk/schemas.js.map +1 -0
- package/dist/tools/sdk/snippet.d.ts +11 -0
- package/dist/tools/sdk/snippet.d.ts.map +1 -0
- package/dist/tools/sdk/snippet.js +50 -0
- package/dist/tools/sdk/snippet.js.map +1 -0
- package/dist/tools/sdk/templates/index.d.ts +5 -0
- package/dist/tools/sdk/templates/index.d.ts.map +1 -0
- package/dist/tools/sdk/templates/index.js +5 -0
- package/dist/tools/sdk/templates/index.js.map +1 -0
- package/dist/tools/sdk/templates/nextjs.d.ts +5 -0
- package/dist/tools/sdk/templates/nextjs.d.ts.map +1 -0
- package/dist/tools/sdk/templates/nextjs.js +71 -0
- package/dist/tools/sdk/templates/nextjs.js.map +1 -0
- package/dist/tools/sdk/templates/node.d.ts +9 -0
- package/dist/tools/sdk/templates/node.d.ts.map +1 -0
- package/dist/tools/sdk/templates/node.js +170 -0
- package/dist/tools/sdk/templates/node.js.map +1 -0
- package/dist/tools/sdk/templates/react.d.ts +5 -0
- package/dist/tools/sdk/templates/react.d.ts.map +1 -0
- package/dist/tools/sdk/templates/react.js +54 -0
- package/dist/tools/sdk/templates/react.js.map +1 -0
- package/dist/tools/sdk/templates/vanilla.d.ts +5 -0
- package/dist/tools/sdk/templates/vanilla.d.ts.map +1 -0
- package/dist/tools/sdk/templates/vanilla.js +61 -0
- package/dist/tools/sdk/templates/vanilla.js.map +1 -0
- package/dist/tools/templates/create.d.ts +11 -0
- package/dist/tools/templates/create.d.ts.map +1 -0
- package/dist/tools/templates/create.js +39 -0
- package/dist/tools/templates/create.js.map +1 -0
- package/dist/tools/templates/index.d.ts +17 -0
- package/dist/tools/templates/index.d.ts.map +1 -0
- package/dist/tools/templates/index.js +68 -0
- package/dist/tools/templates/index.js.map +1 -0
- package/dist/tools/templates/list.d.ts +11 -0
- package/dist/tools/templates/list.d.ts.map +1 -0
- package/dist/tools/templates/list.js +31 -0
- package/dist/tools/templates/list.js.map +1 -0
- package/dist/tools/templates/schemas.d.ts +90 -0
- package/dist/tools/templates/schemas.d.ts.map +1 -0
- package/dist/tools/templates/schemas.js +37 -0
- package/dist/tools/templates/schemas.js.map +1 -0
- package/dist/types.d.ts +55 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Schema for the flow definition used in create flow
|
|
4
|
+
* Matches the API createFlowSchema in src/lib/schemas/flows.ts
|
|
5
|
+
*
|
|
6
|
+
* Key differences from previous MCP schema:
|
|
7
|
+
* - step_id is REQUIRED (not optional)
|
|
8
|
+
* - No template_id field (email content managed separately)
|
|
9
|
+
* - Only 'event' and 'segment' trigger types (no 'manual')
|
|
10
|
+
* - Added webhook_url, webhook_payload_template for webhook steps
|
|
11
|
+
* - Added condition_filter fields for condition steps
|
|
12
|
+
*
|
|
13
|
+
* Note: We don't use .refine() here because it produces ZodEffects which
|
|
14
|
+
* doesn't convert to valid JSON Schema for MCP tool definitions.
|
|
15
|
+
* Custom validations (trigger requirements, duplicate step_ids) are done in the handler.
|
|
16
|
+
*/
|
|
17
|
+
export declare const flowDefinitionSchema: z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
trigger_type: z.ZodEnum<["event", "segment"]>;
|
|
22
|
+
trigger_event: z.ZodOptional<z.ZodString>;
|
|
23
|
+
trigger_segment_id: z.ZodOptional<z.ZodString>;
|
|
24
|
+
entry_filter: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
26
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
27
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
28
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
29
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
30
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
31
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
32
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
33
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
34
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
35
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
36
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
37
|
+
steps: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"action_type", [z.ZodObject<{
|
|
38
|
+
step_id: z.ZodString;
|
|
39
|
+
step_order: z.ZodNumber;
|
|
40
|
+
} & {
|
|
41
|
+
action_type: z.ZodLiteral<"email">;
|
|
42
|
+
sender_identity_id: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
step_id: string;
|
|
45
|
+
step_order: number;
|
|
46
|
+
action_type: "email";
|
|
47
|
+
sender_identity_id?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
step_id: string;
|
|
50
|
+
step_order: number;
|
|
51
|
+
action_type: "email";
|
|
52
|
+
sender_identity_id?: string | undefined;
|
|
53
|
+
}>, z.ZodObject<{
|
|
54
|
+
step_id: z.ZodString;
|
|
55
|
+
step_order: z.ZodNumber;
|
|
56
|
+
} & {
|
|
57
|
+
action_type: z.ZodLiteral<"delay">;
|
|
58
|
+
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
delay_expression: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
step_id: string;
|
|
62
|
+
step_order: number;
|
|
63
|
+
action_type: "delay";
|
|
64
|
+
delay_seconds?: number | undefined;
|
|
65
|
+
delay_expression?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
step_id: string;
|
|
68
|
+
step_order: number;
|
|
69
|
+
action_type: "delay";
|
|
70
|
+
delay_seconds?: number | undefined;
|
|
71
|
+
delay_expression?: string | undefined;
|
|
72
|
+
}>, z.ZodObject<{
|
|
73
|
+
step_id: z.ZodString;
|
|
74
|
+
step_order: z.ZodNumber;
|
|
75
|
+
} & {
|
|
76
|
+
action_type: z.ZodLiteral<"webhook">;
|
|
77
|
+
webhook_url: z.ZodOptional<z.ZodString>;
|
|
78
|
+
webhook_payload_template: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
step_id: string;
|
|
81
|
+
step_order: number;
|
|
82
|
+
action_type: "webhook";
|
|
83
|
+
webhook_url?: string | undefined;
|
|
84
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
step_id: string;
|
|
87
|
+
step_order: number;
|
|
88
|
+
action_type: "webhook";
|
|
89
|
+
webhook_url?: string | undefined;
|
|
90
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
91
|
+
}>, z.ZodObject<{
|
|
92
|
+
step_id: z.ZodString;
|
|
93
|
+
step_order: z.ZodNumber;
|
|
94
|
+
} & {
|
|
95
|
+
action_type: z.ZodLiteral<"condition">;
|
|
96
|
+
condition_filter: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
98
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
99
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
100
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
101
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
102
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
103
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
104
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
105
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
106
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
107
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
108
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
109
|
+
if_true_next_step: z.ZodOptional<z.ZodString>;
|
|
110
|
+
if_false_next_step: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
step_id: string;
|
|
113
|
+
step_order: number;
|
|
114
|
+
action_type: "condition";
|
|
115
|
+
condition_filter?: z.objectOutputType<{
|
|
116
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
117
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
118
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
119
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
120
|
+
if_true_next_step?: string | undefined;
|
|
121
|
+
if_false_next_step?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
step_id: string;
|
|
124
|
+
step_order: number;
|
|
125
|
+
action_type: "condition";
|
|
126
|
+
condition_filter?: z.objectInputType<{
|
|
127
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
128
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
129
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
130
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
131
|
+
if_true_next_step?: string | undefined;
|
|
132
|
+
if_false_next_step?: string | undefined;
|
|
133
|
+
}>]>, "many">>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
name: string;
|
|
136
|
+
trigger_type: "event" | "segment";
|
|
137
|
+
steps: ({
|
|
138
|
+
step_id: string;
|
|
139
|
+
step_order: number;
|
|
140
|
+
action_type: "email";
|
|
141
|
+
sender_identity_id?: string | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
step_id: string;
|
|
144
|
+
step_order: number;
|
|
145
|
+
action_type: "delay";
|
|
146
|
+
delay_seconds?: number | undefined;
|
|
147
|
+
delay_expression?: string | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
step_id: string;
|
|
150
|
+
step_order: number;
|
|
151
|
+
action_type: "webhook";
|
|
152
|
+
webhook_url?: string | undefined;
|
|
153
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
154
|
+
} | {
|
|
155
|
+
step_id: string;
|
|
156
|
+
step_order: number;
|
|
157
|
+
action_type: "condition";
|
|
158
|
+
condition_filter?: z.objectOutputType<{
|
|
159
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
160
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
161
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
162
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
163
|
+
if_true_next_step?: string | undefined;
|
|
164
|
+
if_false_next_step?: string | undefined;
|
|
165
|
+
})[];
|
|
166
|
+
slug?: string | undefined;
|
|
167
|
+
description?: string | undefined;
|
|
168
|
+
trigger_event?: string | undefined;
|
|
169
|
+
trigger_segment_id?: string | undefined;
|
|
170
|
+
entry_filter?: z.objectOutputType<{
|
|
171
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
172
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
173
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
174
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
175
|
+
}, {
|
|
176
|
+
name: string;
|
|
177
|
+
trigger_type: "event" | "segment";
|
|
178
|
+
slug?: string | undefined;
|
|
179
|
+
description?: string | undefined;
|
|
180
|
+
trigger_event?: string | undefined;
|
|
181
|
+
trigger_segment_id?: string | undefined;
|
|
182
|
+
entry_filter?: z.objectInputType<{
|
|
183
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
184
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
185
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
186
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
187
|
+
steps?: ({
|
|
188
|
+
step_id: string;
|
|
189
|
+
step_order: number;
|
|
190
|
+
action_type: "email";
|
|
191
|
+
sender_identity_id?: string | undefined;
|
|
192
|
+
} | {
|
|
193
|
+
step_id: string;
|
|
194
|
+
step_order: number;
|
|
195
|
+
action_type: "delay";
|
|
196
|
+
delay_seconds?: number | undefined;
|
|
197
|
+
delay_expression?: string | undefined;
|
|
198
|
+
} | {
|
|
199
|
+
step_id: string;
|
|
200
|
+
step_order: number;
|
|
201
|
+
action_type: "webhook";
|
|
202
|
+
webhook_url?: string | undefined;
|
|
203
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
204
|
+
} | {
|
|
205
|
+
step_id: string;
|
|
206
|
+
step_order: number;
|
|
207
|
+
action_type: "condition";
|
|
208
|
+
condition_filter?: z.objectInputType<{
|
|
209
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
210
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
211
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
212
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
213
|
+
if_true_next_step?: string | undefined;
|
|
214
|
+
if_false_next_step?: string | undefined;
|
|
215
|
+
})[] | undefined;
|
|
216
|
+
}>;
|
|
217
|
+
/**
|
|
218
|
+
* Schema for kelpi_create_flow input
|
|
219
|
+
*/
|
|
220
|
+
export declare const createFlowInputSchema: z.ZodObject<{
|
|
221
|
+
definition: z.ZodObject<{
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
224
|
+
description: z.ZodOptional<z.ZodString>;
|
|
225
|
+
trigger_type: z.ZodEnum<["event", "segment"]>;
|
|
226
|
+
trigger_event: z.ZodOptional<z.ZodString>;
|
|
227
|
+
trigger_segment_id: z.ZodOptional<z.ZodString>;
|
|
228
|
+
entry_filter: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
230
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
231
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
232
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
233
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
234
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
235
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
236
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
237
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
238
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
239
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
240
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
241
|
+
steps: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"action_type", [z.ZodObject<{
|
|
242
|
+
step_id: z.ZodString;
|
|
243
|
+
step_order: z.ZodNumber;
|
|
244
|
+
} & {
|
|
245
|
+
action_type: z.ZodLiteral<"email">;
|
|
246
|
+
sender_identity_id: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
step_id: string;
|
|
249
|
+
step_order: number;
|
|
250
|
+
action_type: "email";
|
|
251
|
+
sender_identity_id?: string | undefined;
|
|
252
|
+
}, {
|
|
253
|
+
step_id: string;
|
|
254
|
+
step_order: number;
|
|
255
|
+
action_type: "email";
|
|
256
|
+
sender_identity_id?: string | undefined;
|
|
257
|
+
}>, z.ZodObject<{
|
|
258
|
+
step_id: z.ZodString;
|
|
259
|
+
step_order: z.ZodNumber;
|
|
260
|
+
} & {
|
|
261
|
+
action_type: z.ZodLiteral<"delay">;
|
|
262
|
+
delay_seconds: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
delay_expression: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
step_id: string;
|
|
266
|
+
step_order: number;
|
|
267
|
+
action_type: "delay";
|
|
268
|
+
delay_seconds?: number | undefined;
|
|
269
|
+
delay_expression?: string | undefined;
|
|
270
|
+
}, {
|
|
271
|
+
step_id: string;
|
|
272
|
+
step_order: number;
|
|
273
|
+
action_type: "delay";
|
|
274
|
+
delay_seconds?: number | undefined;
|
|
275
|
+
delay_expression?: string | undefined;
|
|
276
|
+
}>, z.ZodObject<{
|
|
277
|
+
step_id: z.ZodString;
|
|
278
|
+
step_order: z.ZodNumber;
|
|
279
|
+
} & {
|
|
280
|
+
action_type: z.ZodLiteral<"webhook">;
|
|
281
|
+
webhook_url: z.ZodOptional<z.ZodString>;
|
|
282
|
+
webhook_payload_template: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
step_id: string;
|
|
285
|
+
step_order: number;
|
|
286
|
+
action_type: "webhook";
|
|
287
|
+
webhook_url?: string | undefined;
|
|
288
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
step_id: string;
|
|
291
|
+
step_order: number;
|
|
292
|
+
action_type: "webhook";
|
|
293
|
+
webhook_url?: string | undefined;
|
|
294
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
295
|
+
}>, z.ZodObject<{
|
|
296
|
+
step_id: z.ZodString;
|
|
297
|
+
step_order: z.ZodNumber;
|
|
298
|
+
} & {
|
|
299
|
+
action_type: z.ZodLiteral<"condition">;
|
|
300
|
+
condition_filter: z.ZodOptional<z.ZodObject<{
|
|
301
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
302
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
303
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
304
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
305
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
306
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
307
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
308
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
309
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
310
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
311
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
312
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
313
|
+
if_true_next_step: z.ZodOptional<z.ZodString>;
|
|
314
|
+
if_false_next_step: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
step_id: string;
|
|
317
|
+
step_order: number;
|
|
318
|
+
action_type: "condition";
|
|
319
|
+
condition_filter?: z.objectOutputType<{
|
|
320
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
321
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
322
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
323
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
324
|
+
if_true_next_step?: string | undefined;
|
|
325
|
+
if_false_next_step?: string | undefined;
|
|
326
|
+
}, {
|
|
327
|
+
step_id: string;
|
|
328
|
+
step_order: number;
|
|
329
|
+
action_type: "condition";
|
|
330
|
+
condition_filter?: z.objectInputType<{
|
|
331
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
332
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
333
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
334
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
335
|
+
if_true_next_step?: string | undefined;
|
|
336
|
+
if_false_next_step?: string | undefined;
|
|
337
|
+
}>]>, "many">>;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
name: string;
|
|
340
|
+
trigger_type: "event" | "segment";
|
|
341
|
+
steps: ({
|
|
342
|
+
step_id: string;
|
|
343
|
+
step_order: number;
|
|
344
|
+
action_type: "email";
|
|
345
|
+
sender_identity_id?: string | undefined;
|
|
346
|
+
} | {
|
|
347
|
+
step_id: string;
|
|
348
|
+
step_order: number;
|
|
349
|
+
action_type: "delay";
|
|
350
|
+
delay_seconds?: number | undefined;
|
|
351
|
+
delay_expression?: string | undefined;
|
|
352
|
+
} | {
|
|
353
|
+
step_id: string;
|
|
354
|
+
step_order: number;
|
|
355
|
+
action_type: "webhook";
|
|
356
|
+
webhook_url?: string | undefined;
|
|
357
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
358
|
+
} | {
|
|
359
|
+
step_id: string;
|
|
360
|
+
step_order: number;
|
|
361
|
+
action_type: "condition";
|
|
362
|
+
condition_filter?: z.objectOutputType<{
|
|
363
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
364
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
365
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
366
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
367
|
+
if_true_next_step?: string | undefined;
|
|
368
|
+
if_false_next_step?: string | undefined;
|
|
369
|
+
})[];
|
|
370
|
+
slug?: string | undefined;
|
|
371
|
+
description?: string | undefined;
|
|
372
|
+
trigger_event?: string | undefined;
|
|
373
|
+
trigger_segment_id?: string | undefined;
|
|
374
|
+
entry_filter?: z.objectOutputType<{
|
|
375
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
376
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
377
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
378
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
379
|
+
}, {
|
|
380
|
+
name: string;
|
|
381
|
+
trigger_type: "event" | "segment";
|
|
382
|
+
slug?: string | undefined;
|
|
383
|
+
description?: string | undefined;
|
|
384
|
+
trigger_event?: string | undefined;
|
|
385
|
+
trigger_segment_id?: string | undefined;
|
|
386
|
+
entry_filter?: z.objectInputType<{
|
|
387
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
388
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
389
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
390
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
391
|
+
steps?: ({
|
|
392
|
+
step_id: string;
|
|
393
|
+
step_order: number;
|
|
394
|
+
action_type: "email";
|
|
395
|
+
sender_identity_id?: string | undefined;
|
|
396
|
+
} | {
|
|
397
|
+
step_id: string;
|
|
398
|
+
step_order: number;
|
|
399
|
+
action_type: "delay";
|
|
400
|
+
delay_seconds?: number | undefined;
|
|
401
|
+
delay_expression?: string | undefined;
|
|
402
|
+
} | {
|
|
403
|
+
step_id: string;
|
|
404
|
+
step_order: number;
|
|
405
|
+
action_type: "webhook";
|
|
406
|
+
webhook_url?: string | undefined;
|
|
407
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
408
|
+
} | {
|
|
409
|
+
step_id: string;
|
|
410
|
+
step_order: number;
|
|
411
|
+
action_type: "condition";
|
|
412
|
+
condition_filter?: z.objectInputType<{
|
|
413
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
414
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
415
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
416
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
417
|
+
if_true_next_step?: string | undefined;
|
|
418
|
+
if_false_next_step?: string | undefined;
|
|
419
|
+
})[] | undefined;
|
|
420
|
+
}>;
|
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
definition: {
|
|
423
|
+
name: string;
|
|
424
|
+
trigger_type: "event" | "segment";
|
|
425
|
+
steps: ({
|
|
426
|
+
step_id: string;
|
|
427
|
+
step_order: number;
|
|
428
|
+
action_type: "email";
|
|
429
|
+
sender_identity_id?: string | undefined;
|
|
430
|
+
} | {
|
|
431
|
+
step_id: string;
|
|
432
|
+
step_order: number;
|
|
433
|
+
action_type: "delay";
|
|
434
|
+
delay_seconds?: number | undefined;
|
|
435
|
+
delay_expression?: string | undefined;
|
|
436
|
+
} | {
|
|
437
|
+
step_id: string;
|
|
438
|
+
step_order: number;
|
|
439
|
+
action_type: "webhook";
|
|
440
|
+
webhook_url?: string | undefined;
|
|
441
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
442
|
+
} | {
|
|
443
|
+
step_id: string;
|
|
444
|
+
step_order: number;
|
|
445
|
+
action_type: "condition";
|
|
446
|
+
condition_filter?: z.objectOutputType<{
|
|
447
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
448
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
449
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
450
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
451
|
+
if_true_next_step?: string | undefined;
|
|
452
|
+
if_false_next_step?: string | undefined;
|
|
453
|
+
})[];
|
|
454
|
+
slug?: string | undefined;
|
|
455
|
+
description?: string | undefined;
|
|
456
|
+
trigger_event?: string | undefined;
|
|
457
|
+
trigger_segment_id?: string | undefined;
|
|
458
|
+
entry_filter?: z.objectOutputType<{
|
|
459
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
460
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
461
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
462
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
463
|
+
};
|
|
464
|
+
}, {
|
|
465
|
+
definition: {
|
|
466
|
+
name: string;
|
|
467
|
+
trigger_type: "event" | "segment";
|
|
468
|
+
slug?: string | undefined;
|
|
469
|
+
description?: string | undefined;
|
|
470
|
+
trigger_event?: string | undefined;
|
|
471
|
+
trigger_segment_id?: string | undefined;
|
|
472
|
+
entry_filter?: z.objectInputType<{
|
|
473
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
474
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
475
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
476
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
477
|
+
steps?: ({
|
|
478
|
+
step_id: string;
|
|
479
|
+
step_order: number;
|
|
480
|
+
action_type: "email";
|
|
481
|
+
sender_identity_id?: string | undefined;
|
|
482
|
+
} | {
|
|
483
|
+
step_id: string;
|
|
484
|
+
step_order: number;
|
|
485
|
+
action_type: "delay";
|
|
486
|
+
delay_seconds?: number | undefined;
|
|
487
|
+
delay_expression?: string | undefined;
|
|
488
|
+
} | {
|
|
489
|
+
step_id: string;
|
|
490
|
+
step_order: number;
|
|
491
|
+
action_type: "webhook";
|
|
492
|
+
webhook_url?: string | undefined;
|
|
493
|
+
webhook_payload_template?: Record<string, any> | undefined;
|
|
494
|
+
} | {
|
|
495
|
+
step_id: string;
|
|
496
|
+
step_order: number;
|
|
497
|
+
action_type: "condition";
|
|
498
|
+
condition_filter?: z.objectInputType<{
|
|
499
|
+
type: z.ZodOptional<z.ZodLiteral<"group">>;
|
|
500
|
+
logic: z.ZodEnum<["AND", "OR"]>;
|
|
501
|
+
conditions: z.ZodArray<z.ZodUnknown, "many">;
|
|
502
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
503
|
+
if_true_next_step?: string | undefined;
|
|
504
|
+
if_false_next_step?: string | undefined;
|
|
505
|
+
})[] | undefined;
|
|
506
|
+
};
|
|
507
|
+
}>;
|
|
508
|
+
/**
|
|
509
|
+
* Schema for kelpi_list_flows input
|
|
510
|
+
* Matches the API listFlowsQuerySchema in src/lib/schemas/flows.ts
|
|
511
|
+
*/
|
|
512
|
+
export declare const listFlowsInputSchema: z.ZodObject<{
|
|
513
|
+
status: z.ZodOptional<z.ZodEnum<["draft", "active", "paused", "archived"]>>;
|
|
514
|
+
trigger_type: z.ZodOptional<z.ZodEnum<["event", "segment"]>>;
|
|
515
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
order_by: z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "name", "status"]>>;
|
|
518
|
+
order_direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
status?: "draft" | "active" | "paused" | "archived" | undefined;
|
|
521
|
+
trigger_type?: "event" | "segment" | undefined;
|
|
522
|
+
limit?: number | undefined;
|
|
523
|
+
offset?: number | undefined;
|
|
524
|
+
order_by?: "name" | "status" | "created_at" | "updated_at" | undefined;
|
|
525
|
+
order_direction?: "asc" | "desc" | undefined;
|
|
526
|
+
}, {
|
|
527
|
+
status?: "draft" | "active" | "paused" | "archived" | undefined;
|
|
528
|
+
trigger_type?: "event" | "segment" | undefined;
|
|
529
|
+
limit?: number | undefined;
|
|
530
|
+
offset?: number | undefined;
|
|
531
|
+
order_by?: "name" | "status" | "created_at" | "updated_at" | undefined;
|
|
532
|
+
order_direction?: "asc" | "desc" | undefined;
|
|
533
|
+
}>;
|
|
534
|
+
/**
|
|
535
|
+
* Schema for kelpi_activate_flow input
|
|
536
|
+
*/
|
|
537
|
+
export declare const activateFlowInputSchema: z.ZodObject<{
|
|
538
|
+
flow_id: z.ZodString;
|
|
539
|
+
}, "strip", z.ZodTypeAny, {
|
|
540
|
+
flow_id: string;
|
|
541
|
+
}, {
|
|
542
|
+
flow_id: string;
|
|
543
|
+
}>;
|
|
544
|
+
/**
|
|
545
|
+
* Flow step in API response
|
|
546
|
+
* Matches the FlowStep type from src/lib/schemas/flows.ts
|
|
547
|
+
*/
|
|
548
|
+
export interface FlowStepResponse {
|
|
549
|
+
step_id: string;
|
|
550
|
+
step_order: number;
|
|
551
|
+
action_type: 'delay' | 'email' | 'condition' | 'webhook';
|
|
552
|
+
delay_seconds?: number;
|
|
553
|
+
delay_expression?: string;
|
|
554
|
+
webhook_url?: string;
|
|
555
|
+
webhook_payload_template?: Record<string, unknown>;
|
|
556
|
+
sender_identity_id?: string;
|
|
557
|
+
condition_filter?: {
|
|
558
|
+
type?: 'group';
|
|
559
|
+
logic: 'AND' | 'OR';
|
|
560
|
+
conditions: unknown[];
|
|
561
|
+
};
|
|
562
|
+
if_true_next_step?: string;
|
|
563
|
+
if_false_next_step?: string;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Flow response from API
|
|
567
|
+
* Matches the Flow interface from src/lib/schemas/flows.ts
|
|
568
|
+
*/
|
|
569
|
+
export interface FlowResponse {
|
|
570
|
+
id: string;
|
|
571
|
+
workspace_id: string;
|
|
572
|
+
name: string;
|
|
573
|
+
slug: string;
|
|
574
|
+
description?: string | null;
|
|
575
|
+
trigger_type: 'event' | 'segment';
|
|
576
|
+
trigger_event?: string | null;
|
|
577
|
+
trigger_segment_id?: string | null;
|
|
578
|
+
status: 'draft' | 'active' | 'paused' | 'archived';
|
|
579
|
+
entry_filter?: {
|
|
580
|
+
logic: 'AND' | 'OR';
|
|
581
|
+
conditions: unknown[];
|
|
582
|
+
} | null;
|
|
583
|
+
steps: FlowStepResponse[];
|
|
584
|
+
created_at: string;
|
|
585
|
+
updated_at: string;
|
|
586
|
+
activated_at?: string | null;
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Flow list item (summary) from API
|
|
590
|
+
* Matches the FlowListItem interface from src/lib/schemas/flows.ts
|
|
591
|
+
*/
|
|
592
|
+
export interface FlowListItem {
|
|
593
|
+
id: string;
|
|
594
|
+
name: string;
|
|
595
|
+
slug: string;
|
|
596
|
+
status: 'draft' | 'active' | 'paused' | 'archived';
|
|
597
|
+
trigger_type: 'event' | 'segment';
|
|
598
|
+
step_count: number;
|
|
599
|
+
created_at: string;
|
|
600
|
+
updated_at: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* List flows response from API
|
|
604
|
+
* Matches the ListFlowsResponse interface from src/lib/schemas/flows.ts
|
|
605
|
+
*/
|
|
606
|
+
export interface ListFlowsResponse {
|
|
607
|
+
data: FlowListItem[];
|
|
608
|
+
pagination: {
|
|
609
|
+
limit: number;
|
|
610
|
+
offset: number;
|
|
611
|
+
total?: number;
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Type exports
|
|
616
|
+
*/
|
|
617
|
+
export type CreateFlowInput = z.infer<typeof createFlowInputSchema>;
|
|
618
|
+
export type ListFlowsInput = z.infer<typeof listFlowsInputSchema>;
|
|
619
|
+
export type ActivateFlowInput = z.infer<typeof activateFlowInputSchema>;
|
|
620
|
+
export type FlowDefinition = z.infer<typeof flowDefinitionSchema>;
|
|
621
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/tools/flows/schem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