@apex-inc/mcp-server 0.28.1 → 0.30.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/dist/adoption-compose.d.ts +1 -1
- package/dist/adoption-compose.d.ts.map +1 -1
- package/dist/adoption-compose.js +8 -3
- package/dist/adoption-compose.js.map +1 -1
- package/dist/api-client.d.ts +9 -0
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +36 -1
- package/dist/api-client.js.map +1 -1
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/live-test-guard.d.ts +45 -0
- package/dist/live-test-guard.d.ts.map +1 -0
- package/dist/live-test-guard.js +78 -0
- package/dist/live-test-guard.js.map +1 -0
- package/dist/setup-catchup-tools.d.ts +633 -0
- package/dist/setup-catchup-tools.d.ts.map +1 -0
- package/dist/setup-catchup-tools.js +506 -0
- package/dist/setup-catchup-tools.js.map +1 -0
- package/dist/tools.d.ts +784 -47
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +253 -18
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
- package/skills/apex-adoption/SKILL.md +14 -3
- package/skills/apex-communications/SKILL.md +8 -5
- package/skills/apex-experimentation/SKILL.md +3 -0
- package/skills/apex-integration-cookbook/SKILL.md +11 -0
- package/skills/apex-partner-network/SKILL.md +1 -0
package/dist/tools.d.ts
CHANGED
|
@@ -28,6 +28,626 @@ declare function listWorkspacesHandler(): Promise<{
|
|
|
28
28
|
}[];
|
|
29
29
|
}>;
|
|
30
30
|
export declare const toolDefinitions: {
|
|
31
|
+
update_organization: {
|
|
32
|
+
description: string;
|
|
33
|
+
schema: z.ZodObject<{
|
|
34
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
name: string;
|
|
38
|
+
orgId?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
orgId?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
handler: ({ orgId, name }: {
|
|
44
|
+
orgId?: string;
|
|
45
|
+
name: string;
|
|
46
|
+
}) => Promise<{
|
|
47
|
+
content: {
|
|
48
|
+
type: "text";
|
|
49
|
+
text: string;
|
|
50
|
+
}[];
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
update_workspace: {
|
|
54
|
+
description: string;
|
|
55
|
+
schema: z.ZodObject<{
|
|
56
|
+
workspaceName: z.ZodOptional<z.ZodString>;
|
|
57
|
+
vertical: z.ZodOptional<z.ZodEnum<["b2b-saas", "ecommerce", "marketplace", "agency", "other"]>>;
|
|
58
|
+
conversionModel: z.ZodOptional<z.ZodEnum<["sales-assisted", "self-serve", "transaction", "two-sided", "hybrid"]>>;
|
|
59
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
workspaceName?: string | undefined;
|
|
62
|
+
vertical?: "b2b-saas" | "ecommerce" | "marketplace" | "agency" | "other" | undefined;
|
|
63
|
+
conversionModel?: "sales-assisted" | "self-serve" | "transaction" | "two-sided" | "hybrid" | undefined;
|
|
64
|
+
websiteUrl?: string | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
workspaceName?: string | undefined;
|
|
67
|
+
vertical?: "b2b-saas" | "ecommerce" | "marketplace" | "agency" | "other" | undefined;
|
|
68
|
+
conversionModel?: "sales-assisted" | "self-serve" | "transaction" | "two-sided" | "hybrid" | undefined;
|
|
69
|
+
websiteUrl?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
handler: ({ workspaceName, vertical, conversionModel, websiteUrl, }: {
|
|
72
|
+
workspaceName?: string;
|
|
73
|
+
vertical?: "b2b-saas" | "ecommerce" | "marketplace" | "agency" | "other";
|
|
74
|
+
conversionModel?: "sales-assisted" | "self-serve" | "transaction" | "two-sided" | "hybrid";
|
|
75
|
+
websiteUrl?: string;
|
|
76
|
+
}) => Promise<{
|
|
77
|
+
content: {
|
|
78
|
+
type: "text";
|
|
79
|
+
text: string;
|
|
80
|
+
}[];
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
claim_links_subdomain: {
|
|
84
|
+
description: string;
|
|
85
|
+
schema: z.ZodObject<{
|
|
86
|
+
subdomain: z.ZodString;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
subdomain: string;
|
|
89
|
+
}, {
|
|
90
|
+
subdomain: string;
|
|
91
|
+
}>;
|
|
92
|
+
handler: ({ subdomain }: {
|
|
93
|
+
subdomain: string;
|
|
94
|
+
}) => Promise<{
|
|
95
|
+
content: {
|
|
96
|
+
type: "text";
|
|
97
|
+
text: string;
|
|
98
|
+
}[];
|
|
99
|
+
}>;
|
|
100
|
+
};
|
|
101
|
+
set_consent_posture: {
|
|
102
|
+
description: string;
|
|
103
|
+
schema: z.ZodObject<{
|
|
104
|
+
hasForm: z.ZodEnum<["yes", "no"]>;
|
|
105
|
+
banner: z.ZodOptional<z.ZodEnum<["standard", "gcm", "onetrust", "cookiebot", "tcf", "custom", "none"]>>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
hasForm: "yes" | "no";
|
|
108
|
+
banner?: "standard" | "gcm" | "onetrust" | "cookiebot" | "tcf" | "custom" | "none" | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
hasForm: "yes" | "no";
|
|
111
|
+
banner?: "standard" | "gcm" | "onetrust" | "cookiebot" | "tcf" | "custom" | "none" | undefined;
|
|
112
|
+
}>;
|
|
113
|
+
handler: ({ hasForm, banner, }: {
|
|
114
|
+
hasForm: "yes" | "no";
|
|
115
|
+
banner?: "standard" | "gcm" | "onetrust" | "cookiebot" | "tcf" | "custom" | "none";
|
|
116
|
+
}) => Promise<{
|
|
117
|
+
content: {
|
|
118
|
+
type: "text";
|
|
119
|
+
text: string;
|
|
120
|
+
}[];
|
|
121
|
+
}>;
|
|
122
|
+
};
|
|
123
|
+
list_webhook_destinations: {
|
|
124
|
+
description: string;
|
|
125
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
126
|
+
handler: () => Promise<{
|
|
127
|
+
content: {
|
|
128
|
+
type: "text";
|
|
129
|
+
text: string;
|
|
130
|
+
}[];
|
|
131
|
+
}>;
|
|
132
|
+
};
|
|
133
|
+
add_webhook_destination: {
|
|
134
|
+
description: string;
|
|
135
|
+
schema: z.ZodObject<{
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
baseUrl: z.ZodString;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
name: string;
|
|
140
|
+
baseUrl: string;
|
|
141
|
+
}, {
|
|
142
|
+
name: string;
|
|
143
|
+
baseUrl: string;
|
|
144
|
+
}>;
|
|
145
|
+
handler: ({ name, baseUrl }: {
|
|
146
|
+
name: string;
|
|
147
|
+
baseUrl: string;
|
|
148
|
+
}) => Promise<{
|
|
149
|
+
content: {
|
|
150
|
+
type: "text";
|
|
151
|
+
text: string;
|
|
152
|
+
}[];
|
|
153
|
+
}>;
|
|
154
|
+
};
|
|
155
|
+
get_messaging_guardrails: {
|
|
156
|
+
description: string;
|
|
157
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
158
|
+
handler: () => Promise<{
|
|
159
|
+
content: {
|
|
160
|
+
type: "text";
|
|
161
|
+
text: string;
|
|
162
|
+
}[];
|
|
163
|
+
}>;
|
|
164
|
+
};
|
|
165
|
+
set_messaging_guardrails: {
|
|
166
|
+
description: string;
|
|
167
|
+
schema: z.ZodObject<{
|
|
168
|
+
holdoutPct: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
attributionWindowDays: z.ZodOptional<z.ZodNumber>;
|
|
170
|
+
nudgeCapPerDay: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
fireOnTestEvents: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
capPolicy: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
daily: z.ZodObject<{
|
|
174
|
+
email: z.ZodNumber;
|
|
175
|
+
in_app: z.ZodNumber;
|
|
176
|
+
mobile_push: z.ZodNumber;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
email: number;
|
|
179
|
+
in_app: number;
|
|
180
|
+
mobile_push: number;
|
|
181
|
+
}, {
|
|
182
|
+
email: number;
|
|
183
|
+
in_app: number;
|
|
184
|
+
mobile_push: number;
|
|
185
|
+
}>;
|
|
186
|
+
weekly: z.ZodObject<{
|
|
187
|
+
email: z.ZodNumber;
|
|
188
|
+
in_app: z.ZodNumber;
|
|
189
|
+
mobile_push: z.ZodNumber;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
email: number;
|
|
192
|
+
in_app: number;
|
|
193
|
+
mobile_push: number;
|
|
194
|
+
}, {
|
|
195
|
+
email: number;
|
|
196
|
+
in_app: number;
|
|
197
|
+
mobile_push: number;
|
|
198
|
+
}>;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
daily: {
|
|
201
|
+
email: number;
|
|
202
|
+
in_app: number;
|
|
203
|
+
mobile_push: number;
|
|
204
|
+
};
|
|
205
|
+
weekly: {
|
|
206
|
+
email: number;
|
|
207
|
+
in_app: number;
|
|
208
|
+
mobile_push: number;
|
|
209
|
+
};
|
|
210
|
+
}, {
|
|
211
|
+
daily: {
|
|
212
|
+
email: number;
|
|
213
|
+
in_app: number;
|
|
214
|
+
mobile_push: number;
|
|
215
|
+
};
|
|
216
|
+
weekly: {
|
|
217
|
+
email: number;
|
|
218
|
+
in_app: number;
|
|
219
|
+
mobile_push: number;
|
|
220
|
+
};
|
|
221
|
+
}>>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
holdoutPct?: number | undefined;
|
|
224
|
+
attributionWindowDays?: number | undefined;
|
|
225
|
+
nudgeCapPerDay?: number | undefined;
|
|
226
|
+
fireOnTestEvents?: boolean | undefined;
|
|
227
|
+
capPolicy?: {
|
|
228
|
+
daily: {
|
|
229
|
+
email: number;
|
|
230
|
+
in_app: number;
|
|
231
|
+
mobile_push: number;
|
|
232
|
+
};
|
|
233
|
+
weekly: {
|
|
234
|
+
email: number;
|
|
235
|
+
in_app: number;
|
|
236
|
+
mobile_push: number;
|
|
237
|
+
};
|
|
238
|
+
} | undefined;
|
|
239
|
+
}, {
|
|
240
|
+
holdoutPct?: number | undefined;
|
|
241
|
+
attributionWindowDays?: number | undefined;
|
|
242
|
+
nudgeCapPerDay?: number | undefined;
|
|
243
|
+
fireOnTestEvents?: boolean | undefined;
|
|
244
|
+
capPolicy?: {
|
|
245
|
+
daily: {
|
|
246
|
+
email: number;
|
|
247
|
+
in_app: number;
|
|
248
|
+
mobile_push: number;
|
|
249
|
+
};
|
|
250
|
+
weekly: {
|
|
251
|
+
email: number;
|
|
252
|
+
in_app: number;
|
|
253
|
+
mobile_push: number;
|
|
254
|
+
};
|
|
255
|
+
} | undefined;
|
|
256
|
+
}>;
|
|
257
|
+
handler: (args: {
|
|
258
|
+
holdoutPct?: number;
|
|
259
|
+
attributionWindowDays?: number;
|
|
260
|
+
nudgeCapPerDay?: number;
|
|
261
|
+
fireOnTestEvents?: boolean;
|
|
262
|
+
capPolicy?: {
|
|
263
|
+
daily: {
|
|
264
|
+
email: number;
|
|
265
|
+
in_app: number;
|
|
266
|
+
mobile_push: number;
|
|
267
|
+
};
|
|
268
|
+
weekly: {
|
|
269
|
+
email: number;
|
|
270
|
+
in_app: number;
|
|
271
|
+
mobile_push: number;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
}) => Promise<{
|
|
275
|
+
content: {
|
|
276
|
+
type: "text";
|
|
277
|
+
text: string;
|
|
278
|
+
}[];
|
|
279
|
+
}>;
|
|
280
|
+
};
|
|
281
|
+
set_app_surface_paths: {
|
|
282
|
+
description: string;
|
|
283
|
+
schema: z.ZodObject<{
|
|
284
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
paths: string[];
|
|
287
|
+
}, {
|
|
288
|
+
paths: string[];
|
|
289
|
+
}>;
|
|
290
|
+
handler: ({ paths }: {
|
|
291
|
+
paths: string[];
|
|
292
|
+
}) => Promise<{
|
|
293
|
+
content: {
|
|
294
|
+
type: "text";
|
|
295
|
+
text: string;
|
|
296
|
+
}[];
|
|
297
|
+
}>;
|
|
298
|
+
};
|
|
299
|
+
get_scoring_model: {
|
|
300
|
+
description: string;
|
|
301
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
302
|
+
handler: () => Promise<{
|
|
303
|
+
content: {
|
|
304
|
+
type: "text";
|
|
305
|
+
text: string;
|
|
306
|
+
}[];
|
|
307
|
+
}>;
|
|
308
|
+
};
|
|
309
|
+
set_scoring_weights: {
|
|
310
|
+
description: string;
|
|
311
|
+
schema: z.ZodObject<{
|
|
312
|
+
weights: z.ZodObject<{
|
|
313
|
+
intent: z.ZodNumber;
|
|
314
|
+
icp_fit: z.ZodNumber;
|
|
315
|
+
account: z.ZodNumber;
|
|
316
|
+
engagement: z.ZodNumber;
|
|
317
|
+
risk: z.ZodNumber;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
intent: number;
|
|
320
|
+
icp_fit: number;
|
|
321
|
+
account: number;
|
|
322
|
+
engagement: number;
|
|
323
|
+
risk: number;
|
|
324
|
+
}, {
|
|
325
|
+
intent: number;
|
|
326
|
+
icp_fit: number;
|
|
327
|
+
account: number;
|
|
328
|
+
engagement: number;
|
|
329
|
+
risk: number;
|
|
330
|
+
}>;
|
|
331
|
+
name: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
weights: {
|
|
334
|
+
intent: number;
|
|
335
|
+
icp_fit: number;
|
|
336
|
+
account: number;
|
|
337
|
+
engagement: number;
|
|
338
|
+
risk: number;
|
|
339
|
+
};
|
|
340
|
+
name?: string | undefined;
|
|
341
|
+
}, {
|
|
342
|
+
weights: {
|
|
343
|
+
intent: number;
|
|
344
|
+
icp_fit: number;
|
|
345
|
+
account: number;
|
|
346
|
+
engagement: number;
|
|
347
|
+
risk: number;
|
|
348
|
+
};
|
|
349
|
+
name?: string | undefined;
|
|
350
|
+
}>;
|
|
351
|
+
handler: ({ weights, name, }: {
|
|
352
|
+
weights: {
|
|
353
|
+
intent: number;
|
|
354
|
+
icp_fit: number;
|
|
355
|
+
account: number;
|
|
356
|
+
engagement: number;
|
|
357
|
+
risk: number;
|
|
358
|
+
};
|
|
359
|
+
name?: string;
|
|
360
|
+
}) => Promise<{
|
|
361
|
+
content: {
|
|
362
|
+
type: "text";
|
|
363
|
+
text: string;
|
|
364
|
+
}[];
|
|
365
|
+
}>;
|
|
366
|
+
};
|
|
367
|
+
invite_teammate: {
|
|
368
|
+
description: string;
|
|
369
|
+
schema: z.ZodObject<{
|
|
370
|
+
email: z.ZodString;
|
|
371
|
+
role: z.ZodOptional<z.ZodEnum<["owner", "admin", "member"]>>;
|
|
372
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, "strip", z.ZodTypeAny, {
|
|
374
|
+
email: string;
|
|
375
|
+
orgId?: string | undefined;
|
|
376
|
+
role?: "owner" | "admin" | "member" | undefined;
|
|
377
|
+
}, {
|
|
378
|
+
email: string;
|
|
379
|
+
orgId?: string | undefined;
|
|
380
|
+
role?: "owner" | "admin" | "member" | undefined;
|
|
381
|
+
}>;
|
|
382
|
+
handler: ({ email, role, orgId, }: {
|
|
383
|
+
email: string;
|
|
384
|
+
role?: "owner" | "admin" | "member";
|
|
385
|
+
orgId?: string;
|
|
386
|
+
}) => Promise<{
|
|
387
|
+
content: {
|
|
388
|
+
type: "text";
|
|
389
|
+
text: string;
|
|
390
|
+
}[];
|
|
391
|
+
}>;
|
|
392
|
+
};
|
|
393
|
+
set_engagement_analytics: {
|
|
394
|
+
description: string;
|
|
395
|
+
schema: z.ZodObject<{
|
|
396
|
+
profile: z.ZodOptional<z.ZodEnum<["saas", "ecommerce", "marketplace", "agency", "mobile-app", "custom"]>>;
|
|
397
|
+
qualifyingEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
398
|
+
activationEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
399
|
+
churnWindowDays: z.ZodOptional<z.ZodNumber>;
|
|
400
|
+
lifecycleEventMap: z.ZodOptional<z.ZodObject<{
|
|
401
|
+
overridden: z.ZodBoolean;
|
|
402
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
403
|
+
event_name: z.ZodString;
|
|
404
|
+
to_stage: z.ZodString;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
event_name: string;
|
|
407
|
+
to_stage: string;
|
|
408
|
+
}, {
|
|
409
|
+
event_name: string;
|
|
410
|
+
to_stage: string;
|
|
411
|
+
}>, "many">;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
overridden: boolean;
|
|
414
|
+
rules: {
|
|
415
|
+
event_name: string;
|
|
416
|
+
to_stage: string;
|
|
417
|
+
}[];
|
|
418
|
+
}, {
|
|
419
|
+
overridden: boolean;
|
|
420
|
+
rules: {
|
|
421
|
+
event_name: string;
|
|
422
|
+
to_stage: string;
|
|
423
|
+
}[];
|
|
424
|
+
}>>;
|
|
425
|
+
}, "strip", z.ZodTypeAny, {
|
|
426
|
+
profile?: "ecommerce" | "marketplace" | "agency" | "custom" | "saas" | "mobile-app" | undefined;
|
|
427
|
+
qualifyingEvents?: string[] | undefined;
|
|
428
|
+
activationEvents?: string[] | undefined;
|
|
429
|
+
churnWindowDays?: number | undefined;
|
|
430
|
+
lifecycleEventMap?: {
|
|
431
|
+
overridden: boolean;
|
|
432
|
+
rules: {
|
|
433
|
+
event_name: string;
|
|
434
|
+
to_stage: string;
|
|
435
|
+
}[];
|
|
436
|
+
} | undefined;
|
|
437
|
+
}, {
|
|
438
|
+
profile?: "ecommerce" | "marketplace" | "agency" | "custom" | "saas" | "mobile-app" | undefined;
|
|
439
|
+
qualifyingEvents?: string[] | undefined;
|
|
440
|
+
activationEvents?: string[] | undefined;
|
|
441
|
+
churnWindowDays?: number | undefined;
|
|
442
|
+
lifecycleEventMap?: {
|
|
443
|
+
overridden: boolean;
|
|
444
|
+
rules: {
|
|
445
|
+
event_name: string;
|
|
446
|
+
to_stage: string;
|
|
447
|
+
}[];
|
|
448
|
+
} | undefined;
|
|
449
|
+
}>;
|
|
450
|
+
handler: (args: {
|
|
451
|
+
profile?: "saas" | "ecommerce" | "marketplace" | "agency" | "mobile-app" | "custom";
|
|
452
|
+
qualifyingEvents?: string[];
|
|
453
|
+
activationEvents?: string[];
|
|
454
|
+
churnWindowDays?: number;
|
|
455
|
+
lifecycleEventMap?: {
|
|
456
|
+
overridden: boolean;
|
|
457
|
+
rules: Array<{
|
|
458
|
+
event_name: string;
|
|
459
|
+
to_stage: string;
|
|
460
|
+
}>;
|
|
461
|
+
};
|
|
462
|
+
}) => Promise<{
|
|
463
|
+
content: {
|
|
464
|
+
type: "text";
|
|
465
|
+
text: string;
|
|
466
|
+
}[];
|
|
467
|
+
}>;
|
|
468
|
+
};
|
|
469
|
+
set_app_platforms: {
|
|
470
|
+
description: string;
|
|
471
|
+
schema: z.ZodObject<{
|
|
472
|
+
platforms: z.ZodArray<z.ZodEnum<["ios", "android", "web"]>, "many">;
|
|
473
|
+
outcome: z.ZodOptional<z.ZodEnum<["behavior", "ad-roi", "partners"]>>;
|
|
474
|
+
attributionWindows: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
click_through: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
view_through: z.ZodOptional<z.ZodNumber>;
|
|
477
|
+
reattribution: z.ZodOptional<z.ZodNumber>;
|
|
478
|
+
reengagement: z.ZodOptional<z.ZodNumber>;
|
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
|
480
|
+
click_through?: number | undefined;
|
|
481
|
+
view_through?: number | undefined;
|
|
482
|
+
reattribution?: number | undefined;
|
|
483
|
+
reengagement?: number | undefined;
|
|
484
|
+
}, {
|
|
485
|
+
click_through?: number | undefined;
|
|
486
|
+
view_through?: number | undefined;
|
|
487
|
+
reattribution?: number | undefined;
|
|
488
|
+
reengagement?: number | undefined;
|
|
489
|
+
}>>;
|
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
|
491
|
+
platforms: ("ios" | "android" | "web")[];
|
|
492
|
+
outcome?: "behavior" | "ad-roi" | "partners" | undefined;
|
|
493
|
+
attributionWindows?: {
|
|
494
|
+
click_through?: number | undefined;
|
|
495
|
+
view_through?: number | undefined;
|
|
496
|
+
reattribution?: number | undefined;
|
|
497
|
+
reengagement?: number | undefined;
|
|
498
|
+
} | undefined;
|
|
499
|
+
}, {
|
|
500
|
+
platforms: ("ios" | "android" | "web")[];
|
|
501
|
+
outcome?: "behavior" | "ad-roi" | "partners" | undefined;
|
|
502
|
+
attributionWindows?: {
|
|
503
|
+
click_through?: number | undefined;
|
|
504
|
+
view_through?: number | undefined;
|
|
505
|
+
reattribution?: number | undefined;
|
|
506
|
+
reengagement?: number | undefined;
|
|
507
|
+
} | undefined;
|
|
508
|
+
}>;
|
|
509
|
+
handler: (args: {
|
|
510
|
+
platforms: Array<"ios" | "android" | "web">;
|
|
511
|
+
outcome?: "behavior" | "ad-roi" | "partners";
|
|
512
|
+
attributionWindows?: {
|
|
513
|
+
click_through?: number;
|
|
514
|
+
view_through?: number;
|
|
515
|
+
reattribution?: number;
|
|
516
|
+
reengagement?: number;
|
|
517
|
+
};
|
|
518
|
+
}) => Promise<{
|
|
519
|
+
content: {
|
|
520
|
+
type: "text";
|
|
521
|
+
text: string;
|
|
522
|
+
}[];
|
|
523
|
+
}>;
|
|
524
|
+
};
|
|
525
|
+
set_attribution_model: {
|
|
526
|
+
description: string;
|
|
527
|
+
schema: z.ZodObject<{
|
|
528
|
+
attributionModel: z.ZodEnum<["first_touch", "last_touch", "linear", "time_decay"]>;
|
|
529
|
+
}, "strip", z.ZodTypeAny, {
|
|
530
|
+
attributionModel: "first_touch" | "last_touch" | "linear" | "time_decay";
|
|
531
|
+
}, {
|
|
532
|
+
attributionModel: "first_touch" | "last_touch" | "linear" | "time_decay";
|
|
533
|
+
}>;
|
|
534
|
+
handler: ({ attributionModel, }: {
|
|
535
|
+
attributionModel: "first_touch" | "last_touch" | "linear" | "time_decay";
|
|
536
|
+
}) => Promise<{
|
|
537
|
+
content: {
|
|
538
|
+
type: "text";
|
|
539
|
+
text: string;
|
|
540
|
+
}[];
|
|
541
|
+
}>;
|
|
542
|
+
};
|
|
543
|
+
start_sender_domain: {
|
|
544
|
+
description: string;
|
|
545
|
+
schema: z.ZodObject<{
|
|
546
|
+
domain: z.ZodString;
|
|
547
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
548
|
+
}, "strip", z.ZodTypeAny, {
|
|
549
|
+
domain: string;
|
|
550
|
+
orgId?: string | undefined;
|
|
551
|
+
}, {
|
|
552
|
+
domain: string;
|
|
553
|
+
orgId?: string | undefined;
|
|
554
|
+
}>;
|
|
555
|
+
handler: ({ domain, orgId }: {
|
|
556
|
+
domain: string;
|
|
557
|
+
orgId?: string;
|
|
558
|
+
}) => Promise<{
|
|
559
|
+
content: {
|
|
560
|
+
type: "text";
|
|
561
|
+
text: string;
|
|
562
|
+
}[];
|
|
563
|
+
}>;
|
|
564
|
+
};
|
|
565
|
+
get_sender_domain: {
|
|
566
|
+
description: string;
|
|
567
|
+
schema: z.ZodObject<{
|
|
568
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
569
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
570
|
+
}, "strip", z.ZodTypeAny, {
|
|
571
|
+
orgId?: string | undefined;
|
|
572
|
+
domain?: string | undefined;
|
|
573
|
+
}, {
|
|
574
|
+
orgId?: string | undefined;
|
|
575
|
+
domain?: string | undefined;
|
|
576
|
+
}>;
|
|
577
|
+
handler: ({ domain, orgId }: {
|
|
578
|
+
domain?: string;
|
|
579
|
+
orgId?: string;
|
|
580
|
+
}) => Promise<{
|
|
581
|
+
content: {
|
|
582
|
+
type: "text";
|
|
583
|
+
text: string;
|
|
584
|
+
}[];
|
|
585
|
+
}>;
|
|
586
|
+
};
|
|
587
|
+
set_push_credentials: {
|
|
588
|
+
description: string;
|
|
589
|
+
schema: z.ZodObject<{
|
|
590
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
591
|
+
fileContents: z.ZodString;
|
|
592
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
593
|
+
keyId: z.ZodOptional<z.ZodString>;
|
|
594
|
+
bundleId: z.ZodOptional<z.ZodString>;
|
|
595
|
+
environment: z.ZodOptional<z.ZodEnum<["production", "sandbox"]>>;
|
|
596
|
+
fcmWorkspaceId: z.ZodOptional<z.ZodString>;
|
|
597
|
+
packageName: z.ZodOptional<z.ZodString>;
|
|
598
|
+
}, "strip", z.ZodTypeAny, {
|
|
599
|
+
platform: "ios" | "android";
|
|
600
|
+
fileContents: string;
|
|
601
|
+
teamId?: string | undefined;
|
|
602
|
+
keyId?: string | undefined;
|
|
603
|
+
bundleId?: string | undefined;
|
|
604
|
+
environment?: "production" | "sandbox" | undefined;
|
|
605
|
+
fcmWorkspaceId?: string | undefined;
|
|
606
|
+
packageName?: string | undefined;
|
|
607
|
+
}, {
|
|
608
|
+
platform: "ios" | "android";
|
|
609
|
+
fileContents: string;
|
|
610
|
+
teamId?: string | undefined;
|
|
611
|
+
keyId?: string | undefined;
|
|
612
|
+
bundleId?: string | undefined;
|
|
613
|
+
environment?: "production" | "sandbox" | undefined;
|
|
614
|
+
fcmWorkspaceId?: string | undefined;
|
|
615
|
+
packageName?: string | undefined;
|
|
616
|
+
}>;
|
|
617
|
+
handler: (args: {
|
|
618
|
+
platform: "ios" | "android";
|
|
619
|
+
fileContents: string;
|
|
620
|
+
teamId?: string;
|
|
621
|
+
keyId?: string;
|
|
622
|
+
bundleId?: string;
|
|
623
|
+
environment?: "production" | "sandbox";
|
|
624
|
+
fcmWorkspaceId?: string;
|
|
625
|
+
packageName?: string;
|
|
626
|
+
}) => Promise<{
|
|
627
|
+
content: {
|
|
628
|
+
type: "text";
|
|
629
|
+
text: string;
|
|
630
|
+
}[];
|
|
631
|
+
}>;
|
|
632
|
+
};
|
|
633
|
+
set_protect_auto_pause: {
|
|
634
|
+
description: string;
|
|
635
|
+
schema: z.ZodObject<{
|
|
636
|
+
enabled: z.ZodBoolean;
|
|
637
|
+
}, "strip", z.ZodTypeAny, {
|
|
638
|
+
enabled: boolean;
|
|
639
|
+
}, {
|
|
640
|
+
enabled: boolean;
|
|
641
|
+
}>;
|
|
642
|
+
handler: ({ enabled }: {
|
|
643
|
+
enabled: boolean;
|
|
644
|
+
}) => Promise<{
|
|
645
|
+
content: {
|
|
646
|
+
type: "text";
|
|
647
|
+
text: string;
|
|
648
|
+
}[];
|
|
649
|
+
}>;
|
|
650
|
+
};
|
|
31
651
|
plan_experiment: {
|
|
32
652
|
description: string;
|
|
33
653
|
schema: z.ZodObject<{
|
|
@@ -136,7 +756,7 @@ export declare const toolDefinitions: {
|
|
|
136
756
|
targetUrl: string;
|
|
137
757
|
controlContent: string;
|
|
138
758
|
variantContent: string;
|
|
139
|
-
surface?: "
|
|
759
|
+
surface?: "web" | "mobile" | undefined;
|
|
140
760
|
targetComponent?: string | undefined;
|
|
141
761
|
targetAnchor?: string | undefined;
|
|
142
762
|
trafficSplit?: number | undefined;
|
|
@@ -154,7 +774,7 @@ export declare const toolDefinitions: {
|
|
|
154
774
|
guardrailThreshold?: number | undefined;
|
|
155
775
|
predictionMagnitude?: string | undefined;
|
|
156
776
|
dataSourceId?: string | undefined;
|
|
157
|
-
randomizationUnit?: "
|
|
777
|
+
randomizationUnit?: "account" | "device" | "visitor" | "person" | "org" | undefined;
|
|
158
778
|
minSamplePerArm?: number | undefined;
|
|
159
779
|
runtimeDays?: number | undefined;
|
|
160
780
|
preview?: boolean | undefined;
|
|
@@ -163,7 +783,7 @@ export declare const toolDefinitions: {
|
|
|
163
783
|
targetUrl: string;
|
|
164
784
|
controlContent: string;
|
|
165
785
|
variantContent: string;
|
|
166
|
-
surface?: "
|
|
786
|
+
surface?: "web" | "mobile" | undefined;
|
|
167
787
|
targetComponent?: string | undefined;
|
|
168
788
|
targetAnchor?: string | undefined;
|
|
169
789
|
trafficSplit?: number | undefined;
|
|
@@ -181,7 +801,7 @@ export declare const toolDefinitions: {
|
|
|
181
801
|
guardrailThreshold?: number | undefined;
|
|
182
802
|
predictionMagnitude?: string | undefined;
|
|
183
803
|
dataSourceId?: string | undefined;
|
|
184
|
-
randomizationUnit?: "
|
|
804
|
+
randomizationUnit?: "account" | "device" | "visitor" | "person" | "org" | undefined;
|
|
185
805
|
minSamplePerArm?: number | undefined;
|
|
186
806
|
runtimeDays?: number | undefined;
|
|
187
807
|
preview?: boolean | undefined;
|
|
@@ -503,11 +1123,11 @@ export declare const toolDefinitions: {
|
|
|
503
1123
|
onlyMeasurable: z.ZodOptional<z.ZodBoolean>;
|
|
504
1124
|
role: z.ZodOptional<z.ZodEnum<["goal", "guardrail"]>>;
|
|
505
1125
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
onlyMeasurable?: boolean | undefined;
|
|
507
1126
|
role?: "goal" | "guardrail" | undefined;
|
|
508
|
-
}, {
|
|
509
1127
|
onlyMeasurable?: boolean | undefined;
|
|
1128
|
+
}, {
|
|
510
1129
|
role?: "goal" | "guardrail" | undefined;
|
|
1130
|
+
onlyMeasurable?: boolean | undefined;
|
|
511
1131
|
}>;
|
|
512
1132
|
handler: ({ onlyMeasurable, role }: {
|
|
513
1133
|
onlyMeasurable?: boolean;
|
|
@@ -536,7 +1156,7 @@ export declare const toolDefinitions: {
|
|
|
536
1156
|
}, "strip", z.ZodTypeAny, {
|
|
537
1157
|
experimentId: string;
|
|
538
1158
|
name?: string | undefined;
|
|
539
|
-
surface?: "
|
|
1159
|
+
surface?: "web" | "mobile" | undefined;
|
|
540
1160
|
targetUrl?: string | undefined;
|
|
541
1161
|
predictionId?: string | undefined;
|
|
542
1162
|
primaryMetricEvent?: string | undefined;
|
|
@@ -548,7 +1168,7 @@ export declare const toolDefinitions: {
|
|
|
548
1168
|
}, {
|
|
549
1169
|
experimentId: string;
|
|
550
1170
|
name?: string | undefined;
|
|
551
|
-
surface?: "
|
|
1171
|
+
surface?: "web" | "mobile" | undefined;
|
|
552
1172
|
targetUrl?: string | undefined;
|
|
553
1173
|
predictionId?: string | undefined;
|
|
554
1174
|
primaryMetricEvent?: string | undefined;
|
|
@@ -620,7 +1240,7 @@ export declare const toolDefinitions: {
|
|
|
620
1240
|
dataSourceId: z.ZodOptional<z.ZodString>;
|
|
621
1241
|
primaryMetricEvent: z.ZodOptional<z.ZodString>;
|
|
622
1242
|
}, "strip", z.ZodTypeAny, {
|
|
623
|
-
surface?: "
|
|
1243
|
+
surface?: "web" | "mobile" | undefined;
|
|
624
1244
|
targetUrl?: string | undefined;
|
|
625
1245
|
targetComponent?: string | undefined;
|
|
626
1246
|
targetAnchor?: string | undefined;
|
|
@@ -628,7 +1248,7 @@ export declare const toolDefinitions: {
|
|
|
628
1248
|
dataSourceId?: string | undefined;
|
|
629
1249
|
experimentId?: string | undefined;
|
|
630
1250
|
}, {
|
|
631
|
-
surface?: "
|
|
1251
|
+
surface?: "web" | "mobile" | undefined;
|
|
632
1252
|
targetUrl?: string | undefined;
|
|
633
1253
|
targetComponent?: string | undefined;
|
|
634
1254
|
targetAnchor?: string | undefined;
|
|
@@ -658,6 +1278,69 @@ export declare const toolDefinitions: {
|
|
|
658
1278
|
isError: boolean;
|
|
659
1279
|
}>;
|
|
660
1280
|
};
|
|
1281
|
+
check_live_tests: {
|
|
1282
|
+
description: string;
|
|
1283
|
+
schema: z.ZodObject<{
|
|
1284
|
+
file_paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1285
|
+
file_contents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1286
|
+
path: z.ZodString;
|
|
1287
|
+
content: z.ZodString;
|
|
1288
|
+
}, "strip", z.ZodTypeAny, {
|
|
1289
|
+
path: string;
|
|
1290
|
+
content: string;
|
|
1291
|
+
}, {
|
|
1292
|
+
path: string;
|
|
1293
|
+
content: string;
|
|
1294
|
+
}>, "many">>;
|
|
1295
|
+
urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1296
|
+
communication_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1297
|
+
journey_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1298
|
+
milestone_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1299
|
+
}, "strip", z.ZodTypeAny, {
|
|
1300
|
+
file_paths?: string[] | undefined;
|
|
1301
|
+
file_contents?: {
|
|
1302
|
+
path: string;
|
|
1303
|
+
content: string;
|
|
1304
|
+
}[] | undefined;
|
|
1305
|
+
urls?: string[] | undefined;
|
|
1306
|
+
communication_ids?: string[] | undefined;
|
|
1307
|
+
journey_ids?: string[] | undefined;
|
|
1308
|
+
milestone_ids?: string[] | undefined;
|
|
1309
|
+
}, {
|
|
1310
|
+
file_paths?: string[] | undefined;
|
|
1311
|
+
file_contents?: {
|
|
1312
|
+
path: string;
|
|
1313
|
+
content: string;
|
|
1314
|
+
}[] | undefined;
|
|
1315
|
+
urls?: string[] | undefined;
|
|
1316
|
+
communication_ids?: string[] | undefined;
|
|
1317
|
+
journey_ids?: string[] | undefined;
|
|
1318
|
+
milestone_ids?: string[] | undefined;
|
|
1319
|
+
}>;
|
|
1320
|
+
handler: (args: {
|
|
1321
|
+
file_paths?: string[];
|
|
1322
|
+
file_contents?: Array<{
|
|
1323
|
+
path: string;
|
|
1324
|
+
content: string;
|
|
1325
|
+
}>;
|
|
1326
|
+
urls?: string[];
|
|
1327
|
+
communication_ids?: string[];
|
|
1328
|
+
journey_ids?: string[];
|
|
1329
|
+
milestone_ids?: string[];
|
|
1330
|
+
}) => Promise<{
|
|
1331
|
+
content: {
|
|
1332
|
+
type: "text";
|
|
1333
|
+
text: string;
|
|
1334
|
+
}[];
|
|
1335
|
+
isError?: undefined;
|
|
1336
|
+
} | {
|
|
1337
|
+
content: {
|
|
1338
|
+
type: "text";
|
|
1339
|
+
text: string;
|
|
1340
|
+
}[];
|
|
1341
|
+
isError: boolean;
|
|
1342
|
+
}>;
|
|
1343
|
+
};
|
|
661
1344
|
set_experiment_mutex: {
|
|
662
1345
|
description: string;
|
|
663
1346
|
schema: z.ZodObject<{
|
|
@@ -1186,17 +1869,17 @@ export declare const toolDefinitions: {
|
|
|
1186
1869
|
}, "strip", z.ZodTypeAny, {
|
|
1187
1870
|
type: string;
|
|
1188
1871
|
email?: string | undefined;
|
|
1189
|
-
|
|
1872
|
+
environment?: "localhost" | "production" | "preview" | undefined;
|
|
1190
1873
|
data?: Record<string, unknown> | undefined;
|
|
1191
|
-
|
|
1874
|
+
visitorId?: string | undefined;
|
|
1192
1875
|
release_channel?: string | undefined;
|
|
1193
1876
|
idempotencyKey?: string | undefined;
|
|
1194
1877
|
}, {
|
|
1195
1878
|
type: string;
|
|
1196
1879
|
email?: string | undefined;
|
|
1197
|
-
|
|
1880
|
+
environment?: "localhost" | "production" | "preview" | undefined;
|
|
1198
1881
|
data?: Record<string, unknown> | undefined;
|
|
1199
|
-
|
|
1882
|
+
visitorId?: string | undefined;
|
|
1200
1883
|
release_channel?: string | undefined;
|
|
1201
1884
|
idempotencyKey?: string | undefined;
|
|
1202
1885
|
}>;
|
|
@@ -1472,12 +2155,12 @@ export declare const toolDefinitions: {
|
|
|
1472
2155
|
}, "strip", z.ZodTypeAny, {
|
|
1473
2156
|
search?: string | undefined;
|
|
1474
2157
|
pipeline?: "transactional" | "marketing" | undefined;
|
|
1475
|
-
channel?: "email" | "
|
|
2158
|
+
channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
|
|
1476
2159
|
includeArchived?: boolean | undefined;
|
|
1477
2160
|
}, {
|
|
1478
2161
|
search?: string | undefined;
|
|
1479
2162
|
pipeline?: "transactional" | "marketing" | undefined;
|
|
1480
|
-
channel?: "email" | "
|
|
2163
|
+
channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
|
|
1481
2164
|
includeArchived?: boolean | undefined;
|
|
1482
2165
|
}>;
|
|
1483
2166
|
handler: (args: {
|
|
@@ -1607,19 +2290,19 @@ export declare const toolDefinitions: {
|
|
|
1607
2290
|
communicationId: string;
|
|
1608
2291
|
channels?: string[] | undefined;
|
|
1609
2292
|
status?: "active" | "draft" | "paused" | undefined;
|
|
2293
|
+
intent?: "replace" | "compete" | undefined;
|
|
1610
2294
|
subject?: string | undefined;
|
|
1611
2295
|
slots?: Record<string, string> | undefined;
|
|
1612
2296
|
audience_bucket?: "production" | "beta" | "dev" | undefined;
|
|
1613
|
-
intent?: "replace" | "compete" | undefined;
|
|
1614
2297
|
confirmLiveExperiment?: boolean | undefined;
|
|
1615
2298
|
}, {
|
|
1616
2299
|
communicationId: string;
|
|
1617
2300
|
channels?: string[] | undefined;
|
|
1618
2301
|
status?: "active" | "draft" | "paused" | undefined;
|
|
2302
|
+
intent?: "replace" | "compete" | undefined;
|
|
1619
2303
|
subject?: string | undefined;
|
|
1620
2304
|
slots?: Record<string, string> | undefined;
|
|
1621
2305
|
audience_bucket?: "production" | "beta" | "dev" | undefined;
|
|
1622
|
-
intent?: "replace" | "compete" | undefined;
|
|
1623
2306
|
confirmLiveExperiment?: boolean | undefined;
|
|
1624
2307
|
}>;
|
|
1625
2308
|
handler: (args: {
|
|
@@ -1658,19 +2341,19 @@ export declare const toolDefinitions: {
|
|
|
1658
2341
|
durationDays: z.ZodOptional<z.ZodNumber>;
|
|
1659
2342
|
}, "strip", z.ZodTypeAny, {
|
|
1660
2343
|
communicationId: string;
|
|
2344
|
+
intent?: "replace" | "compete" | undefined;
|
|
1661
2345
|
confidence?: number | undefined;
|
|
1662
2346
|
beliefId?: string | undefined;
|
|
1663
2347
|
hypothesis?: string | undefined;
|
|
1664
|
-
intent?: "replace" | "compete" | undefined;
|
|
1665
2348
|
confirmLiveExperiment?: boolean | undefined;
|
|
1666
2349
|
hostJourneyId?: string | undefined;
|
|
1667
2350
|
durationDays?: number | undefined;
|
|
1668
2351
|
}, {
|
|
1669
2352
|
communicationId: string;
|
|
2353
|
+
intent?: "replace" | "compete" | undefined;
|
|
1670
2354
|
confidence?: number | undefined;
|
|
1671
2355
|
beliefId?: string | undefined;
|
|
1672
2356
|
hypothesis?: string | undefined;
|
|
1673
|
-
intent?: "replace" | "compete" | undefined;
|
|
1674
2357
|
confirmLiveExperiment?: boolean | undefined;
|
|
1675
2358
|
hostJourneyId?: string | undefined;
|
|
1676
2359
|
durationDays?: number | undefined;
|
|
@@ -2385,7 +3068,7 @@ export declare const toolDefinitions: {
|
|
|
2385
3068
|
mode?: "duration" | "until_event" | undefined;
|
|
2386
3069
|
commId?: string | undefined;
|
|
2387
3070
|
commVersion?: number | undefined;
|
|
2388
|
-
channels?: ("email" | "
|
|
3071
|
+
channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
|
|
2389
3072
|
triggerContractId?: string | undefined;
|
|
2390
3073
|
durationIso?: string | undefined;
|
|
2391
3074
|
deadlineIso?: string | undefined;
|
|
@@ -2396,7 +3079,7 @@ export declare const toolDefinitions: {
|
|
|
2396
3079
|
mode?: "duration" | "until_event" | undefined;
|
|
2397
3080
|
commId?: string | undefined;
|
|
2398
3081
|
commVersion?: number | undefined;
|
|
2399
|
-
channels?: ("email" | "
|
|
3082
|
+
channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
|
|
2400
3083
|
triggerContractId?: string | undefined;
|
|
2401
3084
|
durationIso?: string | undefined;
|
|
2402
3085
|
deadlineIso?: string | undefined;
|
|
@@ -2476,16 +3159,16 @@ export declare const toolDefinitions: {
|
|
|
2476
3159
|
}, "strip", z.ZodTypeAny, {
|
|
2477
3160
|
kind: "event_not_fired" | "attribute" | "event_fired";
|
|
2478
3161
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
3162
|
+
event_name?: string | undefined;
|
|
2479
3163
|
field_path?: string | undefined;
|
|
2480
3164
|
operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
|
|
2481
|
-
event_name?: string | undefined;
|
|
2482
3165
|
window_days?: number | undefined;
|
|
2483
3166
|
}, {
|
|
2484
3167
|
kind: "event_not_fired" | "attribute" | "event_fired";
|
|
2485
3168
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
3169
|
+
event_name?: string | undefined;
|
|
2486
3170
|
field_path?: string | undefined;
|
|
2487
3171
|
operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
|
|
2488
|
-
event_name?: string | undefined;
|
|
2489
3172
|
window_days?: number | undefined;
|
|
2490
3173
|
}>;
|
|
2491
3174
|
whenTrueCommId: z.ZodString;
|
|
@@ -2496,26 +3179,26 @@ export declare const toolDefinitions: {
|
|
|
2496
3179
|
condition: {
|
|
2497
3180
|
kind: "event_not_fired" | "attribute" | "event_fired";
|
|
2498
3181
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
3182
|
+
event_name?: string | undefined;
|
|
2499
3183
|
field_path?: string | undefined;
|
|
2500
3184
|
operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
|
|
2501
|
-
event_name?: string | undefined;
|
|
2502
3185
|
window_days?: number | undefined;
|
|
2503
3186
|
};
|
|
2504
3187
|
whenTrueCommId: string;
|
|
2505
|
-
channels?: ("email" | "
|
|
3188
|
+
channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
|
|
2506
3189
|
whenFalseCommId?: string | undefined;
|
|
2507
3190
|
}, {
|
|
2508
3191
|
journeyId: string;
|
|
2509
3192
|
condition: {
|
|
2510
3193
|
kind: "event_not_fired" | "attribute" | "event_fired";
|
|
2511
3194
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
3195
|
+
event_name?: string | undefined;
|
|
2512
3196
|
field_path?: string | undefined;
|
|
2513
3197
|
operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
|
|
2514
|
-
event_name?: string | undefined;
|
|
2515
3198
|
window_days?: number | undefined;
|
|
2516
3199
|
};
|
|
2517
3200
|
whenTrueCommId: string;
|
|
2518
|
-
channels?: ("email" | "
|
|
3201
|
+
channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
|
|
2519
3202
|
whenFalseCommId?: string | undefined;
|
|
2520
3203
|
}>;
|
|
2521
3204
|
handler: (args: {
|
|
@@ -2549,16 +3232,20 @@ export declare const toolDefinitions: {
|
|
|
2549
3232
|
schema: z.ZodObject<{
|
|
2550
3233
|
journeyId: z.ZodString;
|
|
2551
3234
|
confirmLive: z.ZodOptional<z.ZodBoolean>;
|
|
3235
|
+
confirmTreatmentChange: z.ZodOptional<z.ZodBoolean>;
|
|
2552
3236
|
}, "strip", z.ZodTypeAny, {
|
|
2553
3237
|
journeyId: string;
|
|
2554
3238
|
confirmLive?: boolean | undefined;
|
|
3239
|
+
confirmTreatmentChange?: boolean | undefined;
|
|
2555
3240
|
}, {
|
|
2556
3241
|
journeyId: string;
|
|
2557
3242
|
confirmLive?: boolean | undefined;
|
|
3243
|
+
confirmTreatmentChange?: boolean | undefined;
|
|
2558
3244
|
}>;
|
|
2559
|
-
handler: ({ journeyId, confirmLive }: {
|
|
3245
|
+
handler: ({ journeyId, confirmLive, confirmTreatmentChange, }: {
|
|
2560
3246
|
journeyId: string;
|
|
2561
3247
|
confirmLive?: boolean;
|
|
3248
|
+
confirmTreatmentChange?: boolean;
|
|
2562
3249
|
}) => Promise<{
|
|
2563
3250
|
content: {
|
|
2564
3251
|
type: "text";
|
|
@@ -2778,9 +3465,9 @@ export declare const toolDefinitions: {
|
|
|
2778
3465
|
label: z.ZodOptional<z.ZodString>;
|
|
2779
3466
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2780
3467
|
}, "strip", z.ZodTypeAny, {
|
|
3468
|
+
enabled: boolean;
|
|
2781
3469
|
journeyId: string;
|
|
2782
3470
|
triggerContractId: string;
|
|
2783
|
-
enabled: boolean;
|
|
2784
3471
|
label?: string | undefined;
|
|
2785
3472
|
}, {
|
|
2786
3473
|
journeyId: string;
|
|
@@ -3024,12 +3711,12 @@ export declare const toolDefinitions: {
|
|
|
3024
3711
|
wired: z.ZodOptional<z.ZodBoolean>;
|
|
3025
3712
|
}, "strip", z.ZodTypeAny, {
|
|
3026
3713
|
name: string;
|
|
3027
|
-
surface: "
|
|
3714
|
+
surface: "web" | "mobile" | "server";
|
|
3028
3715
|
wired?: boolean | undefined;
|
|
3029
3716
|
note?: string | undefined;
|
|
3030
3717
|
}, {
|
|
3031
3718
|
name: string;
|
|
3032
|
-
surface: "
|
|
3719
|
+
surface: "web" | "mobile" | "server";
|
|
3033
3720
|
wired?: boolean | undefined;
|
|
3034
3721
|
note?: string | undefined;
|
|
3035
3722
|
}>, "many">;
|
|
@@ -3037,7 +3724,7 @@ export declare const toolDefinitions: {
|
|
|
3037
3724
|
}, "strip", z.ZodTypeAny, {
|
|
3038
3725
|
events: {
|
|
3039
3726
|
name: string;
|
|
3040
|
-
surface: "
|
|
3727
|
+
surface: "web" | "mobile" | "server";
|
|
3041
3728
|
wired?: boolean | undefined;
|
|
3042
3729
|
note?: string | undefined;
|
|
3043
3730
|
}[];
|
|
@@ -3045,7 +3732,7 @@ export declare const toolDefinitions: {
|
|
|
3045
3732
|
}, {
|
|
3046
3733
|
events: {
|
|
3047
3734
|
name: string;
|
|
3048
|
-
surface: "
|
|
3735
|
+
surface: "web" | "mobile" | "server";
|
|
3049
3736
|
wired?: boolean | undefined;
|
|
3050
3737
|
note?: string | undefined;
|
|
3051
3738
|
}[];
|
|
@@ -3078,14 +3765,14 @@ export declare const toolDefinitions: {
|
|
|
3078
3765
|
}, "strip", z.ZodTypeAny, {
|
|
3079
3766
|
kind: "pr" | "issue";
|
|
3080
3767
|
experimentId: string;
|
|
3081
|
-
system: "
|
|
3768
|
+
system: "linear" | "github" | "github-issues" | "jira" | "trello";
|
|
3082
3769
|
externalId: string;
|
|
3083
3770
|
url?: string | undefined;
|
|
3084
3771
|
repo?: string | undefined;
|
|
3085
3772
|
}, {
|
|
3086
3773
|
kind: "pr" | "issue";
|
|
3087
3774
|
experimentId: string;
|
|
3088
|
-
system: "
|
|
3775
|
+
system: "linear" | "github" | "github-issues" | "jira" | "trello";
|
|
3089
3776
|
externalId: string;
|
|
3090
3777
|
url?: string | undefined;
|
|
3091
3778
|
repo?: string | undefined;
|
|
@@ -3226,13 +3913,17 @@ export declare const toolDefinitions: {
|
|
|
3226
3913
|
description: string;
|
|
3227
3914
|
schema: z.ZodObject<{
|
|
3228
3915
|
type: z.ZodString;
|
|
3916
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
3229
3917
|
}, "strip", z.ZodTypeAny, {
|
|
3230
3918
|
type: string;
|
|
3919
|
+
orgId?: string | undefined;
|
|
3231
3920
|
}, {
|
|
3232
3921
|
type: string;
|
|
3922
|
+
orgId?: string | undefined;
|
|
3233
3923
|
}>;
|
|
3234
|
-
handler: ({ type }: {
|
|
3924
|
+
handler: ({ type, orgId }: {
|
|
3235
3925
|
type: string;
|
|
3926
|
+
orgId?: string;
|
|
3236
3927
|
}) => Promise<{
|
|
3237
3928
|
content: {
|
|
3238
3929
|
type: "text";
|
|
@@ -3389,7 +4080,7 @@ export declare const toolDefinitions: {
|
|
|
3389
4080
|
onLose?: "auto" | "do_nothing" | "notify" | undefined;
|
|
3390
4081
|
writeRepos?: string[] | undefined;
|
|
3391
4082
|
githubVisibility?: "full" | "minimal" | "off" | undefined;
|
|
3392
|
-
commitConvention?: "custom" | "
|
|
4083
|
+
commitConvention?: "custom" | "none" | "conventional" | undefined;
|
|
3393
4084
|
branchConvention?: "custom" | "feature" | "apex" | "feat" | "chore" | undefined;
|
|
3394
4085
|
workingHours?: "anytime" | "off_hours" | "business_hours" | undefined;
|
|
3395
4086
|
}, {
|
|
@@ -3397,7 +4088,7 @@ export declare const toolDefinitions: {
|
|
|
3397
4088
|
onLose?: "auto" | "do_nothing" | "notify" | undefined;
|
|
3398
4089
|
writeRepos?: string[] | undefined;
|
|
3399
4090
|
githubVisibility?: "full" | "minimal" | "off" | undefined;
|
|
3400
|
-
commitConvention?: "custom" | "
|
|
4091
|
+
commitConvention?: "custom" | "none" | "conventional" | undefined;
|
|
3401
4092
|
branchConvention?: "custom" | "feature" | "apex" | "feat" | "chore" | undefined;
|
|
3402
4093
|
workingHours?: "anytime" | "off_hours" | "business_hours" | undefined;
|
|
3403
4094
|
}>;
|
|
@@ -3556,7 +4247,7 @@ export declare const toolDefinitions: {
|
|
|
3556
4247
|
name: z.ZodString;
|
|
3557
4248
|
featureKey: z.ZodString;
|
|
3558
4249
|
actionLabel: z.ZodOptional<z.ZodString>;
|
|
3559
|
-
adoptedWhenKind: z.ZodEnum<["event", "trait"]
|
|
4250
|
+
adoptedWhenKind: z.ZodOptional<z.ZodEnum<["event", "trait"]>>;
|
|
3560
4251
|
eventName: z.ZodOptional<z.ZodString>;
|
|
3561
4252
|
traitPath: z.ZodOptional<z.ZodString>;
|
|
3562
4253
|
traitValue: z.ZodOptional<z.ZodString>;
|
|
@@ -3568,11 +4259,11 @@ export declare const toolDefinitions: {
|
|
|
3568
4259
|
gapKind: z.ZodOptional<z.ZodEnum<["days_since_signup", "event_not_fired"]>>;
|
|
3569
4260
|
sinceEventName: z.ZodOptional<z.ZodString>;
|
|
3570
4261
|
enrollMode: z.ZodOptional<z.ZodEnum<["all", "future"]>>;
|
|
4262
|
+
finishWhen: z.ZodOptional<z.ZodEnum<["this_person", "anyone_here"]>>;
|
|
3571
4263
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
3572
4264
|
}, "strip", z.ZodTypeAny, {
|
|
3573
4265
|
name: string;
|
|
3574
4266
|
featureKey: string;
|
|
3575
|
-
adoptedWhenKind: "event" | "trait";
|
|
3576
4267
|
sinceEventName?: string | undefined;
|
|
3577
4268
|
eventName?: string | undefined;
|
|
3578
4269
|
traitPath?: string | undefined;
|
|
@@ -3581,6 +4272,8 @@ export declare const toolDefinitions: {
|
|
|
3581
4272
|
order?: number | undefined;
|
|
3582
4273
|
active?: boolean | undefined;
|
|
3583
4274
|
enrollMode?: "all" | "future" | undefined;
|
|
4275
|
+
finishWhen?: "this_person" | "anyone_here" | undefined;
|
|
4276
|
+
adoptedWhenKind?: "event" | "trait" | undefined;
|
|
3584
4277
|
traitValue?: string | undefined;
|
|
3585
4278
|
traitOp?: "equals" | "not_equals" | "exists" | undefined;
|
|
3586
4279
|
gapDays?: number | undefined;
|
|
@@ -3589,7 +4282,6 @@ export declare const toolDefinitions: {
|
|
|
3589
4282
|
}, {
|
|
3590
4283
|
name: string;
|
|
3591
4284
|
featureKey: string;
|
|
3592
|
-
adoptedWhenKind: "event" | "trait";
|
|
3593
4285
|
sinceEventName?: string | undefined;
|
|
3594
4286
|
eventName?: string | undefined;
|
|
3595
4287
|
traitPath?: string | undefined;
|
|
@@ -3598,6 +4290,8 @@ export declare const toolDefinitions: {
|
|
|
3598
4290
|
order?: number | undefined;
|
|
3599
4291
|
active?: boolean | undefined;
|
|
3600
4292
|
enrollMode?: "all" | "future" | undefined;
|
|
4293
|
+
finishWhen?: "this_person" | "anyone_here" | undefined;
|
|
4294
|
+
adoptedWhenKind?: "event" | "trait" | undefined;
|
|
3601
4295
|
traitValue?: string | undefined;
|
|
3602
4296
|
traitOp?: "equals" | "not_equals" | "exists" | undefined;
|
|
3603
4297
|
gapDays?: number | undefined;
|
|
@@ -3607,7 +4301,6 @@ export declare const toolDefinitions: {
|
|
|
3607
4301
|
handler: (args: AdoptionWriteArgs & {
|
|
3608
4302
|
name: string;
|
|
3609
4303
|
featureKey: string;
|
|
3610
|
-
adoptedWhenKind: "event" | "trait";
|
|
3611
4304
|
}) => Promise<{
|
|
3612
4305
|
content: {
|
|
3613
4306
|
type: "text";
|
|
@@ -3621,6 +4314,11 @@ export declare const toolDefinitions: {
|
|
|
3621
4314
|
milestoneId: z.ZodString;
|
|
3622
4315
|
name: z.ZodOptional<z.ZodString>;
|
|
3623
4316
|
actionLabel: z.ZodOptional<z.ZodString>;
|
|
4317
|
+
adoptedWhenKind: z.ZodOptional<z.ZodEnum<["event", "trait"]>>;
|
|
4318
|
+
eventName: z.ZodOptional<z.ZodString>;
|
|
4319
|
+
traitPath: z.ZodOptional<z.ZodString>;
|
|
4320
|
+
traitValue: z.ZodOptional<z.ZodString>;
|
|
4321
|
+
traitOp: z.ZodOptional<z.ZodEnum<["equals", "not_equals", "exists"]>>;
|
|
3624
4322
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
3625
4323
|
order: z.ZodOptional<z.ZodNumber>;
|
|
3626
4324
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3629,39 +4327,53 @@ export declare const toolDefinitions: {
|
|
|
3629
4327
|
gapKind: z.ZodOptional<z.ZodEnum<["days_since_signup", "event_not_fired"]>>;
|
|
3630
4328
|
sinceEventName: z.ZodOptional<z.ZodString>;
|
|
3631
4329
|
enrollMode: z.ZodOptional<z.ZodEnum<["all", "future"]>>;
|
|
4330
|
+
finishWhen: z.ZodOptional<z.ZodEnum<["this_person", "anyone_here"]>>;
|
|
3632
4331
|
nudgeJourneyId: z.ZodOptional<z.ZodString>;
|
|
3633
|
-
|
|
4332
|
+
confirmLiveMilestone: z.ZodOptional<z.ZodBoolean>;
|
|
3634
4333
|
}, "strip", z.ZodTypeAny, {
|
|
3635
4334
|
milestoneId: string;
|
|
3636
4335
|
sinceEventName?: string | undefined;
|
|
4336
|
+
eventName?: string | undefined;
|
|
4337
|
+
traitPath?: string | undefined;
|
|
3637
4338
|
name?: string | undefined;
|
|
3638
4339
|
actionLabel?: string | undefined;
|
|
3639
4340
|
priority?: number | undefined;
|
|
3640
4341
|
order?: number | undefined;
|
|
3641
4342
|
active?: boolean | undefined;
|
|
3642
4343
|
nudgeJourneyId?: string | undefined;
|
|
3643
|
-
celebrationJourneyId?: string | undefined;
|
|
3644
4344
|
enrollMode?: "all" | "future" | undefined;
|
|
4345
|
+
finishWhen?: "this_person" | "anyone_here" | undefined;
|
|
4346
|
+
adoptedWhenKind?: "event" | "trait" | undefined;
|
|
4347
|
+
traitValue?: string | undefined;
|
|
4348
|
+
traitOp?: "equals" | "not_equals" | "exists" | undefined;
|
|
3645
4349
|
gapDays?: number | undefined;
|
|
3646
4350
|
gapHours?: number | undefined;
|
|
3647
4351
|
gapKind?: "days_since_signup" | "event_not_fired" | undefined;
|
|
4352
|
+
confirmLiveMilestone?: boolean | undefined;
|
|
3648
4353
|
}, {
|
|
3649
4354
|
milestoneId: string;
|
|
3650
4355
|
sinceEventName?: string | undefined;
|
|
4356
|
+
eventName?: string | undefined;
|
|
4357
|
+
traitPath?: string | undefined;
|
|
3651
4358
|
name?: string | undefined;
|
|
3652
4359
|
actionLabel?: string | undefined;
|
|
3653
4360
|
priority?: number | undefined;
|
|
3654
4361
|
order?: number | undefined;
|
|
3655
4362
|
active?: boolean | undefined;
|
|
3656
4363
|
nudgeJourneyId?: string | undefined;
|
|
3657
|
-
celebrationJourneyId?: string | undefined;
|
|
3658
4364
|
enrollMode?: "all" | "future" | undefined;
|
|
4365
|
+
finishWhen?: "this_person" | "anyone_here" | undefined;
|
|
4366
|
+
adoptedWhenKind?: "event" | "trait" | undefined;
|
|
4367
|
+
traitValue?: string | undefined;
|
|
4368
|
+
traitOp?: "equals" | "not_equals" | "exists" | undefined;
|
|
3659
4369
|
gapDays?: number | undefined;
|
|
3660
4370
|
gapHours?: number | undefined;
|
|
3661
4371
|
gapKind?: "days_since_signup" | "event_not_fired" | undefined;
|
|
4372
|
+
confirmLiveMilestone?: boolean | undefined;
|
|
3662
4373
|
}>;
|
|
3663
4374
|
handler: (args: AdoptionWriteArgs & {
|
|
3664
4375
|
milestoneId: string;
|
|
4376
|
+
confirmLiveMilestone?: boolean;
|
|
3665
4377
|
}) => Promise<{
|
|
3666
4378
|
content: {
|
|
3667
4379
|
type: "text";
|
|
@@ -3673,13 +4385,17 @@ export declare const toolDefinitions: {
|
|
|
3673
4385
|
description: string;
|
|
3674
4386
|
schema: z.ZodObject<{
|
|
3675
4387
|
milestoneId: z.ZodString;
|
|
4388
|
+
confirmLiveMilestone: z.ZodOptional<z.ZodBoolean>;
|
|
3676
4389
|
}, "strip", z.ZodTypeAny, {
|
|
3677
4390
|
milestoneId: string;
|
|
4391
|
+
confirmLiveMilestone?: boolean | undefined;
|
|
3678
4392
|
}, {
|
|
3679
4393
|
milestoneId: string;
|
|
4394
|
+
confirmLiveMilestone?: boolean | undefined;
|
|
3680
4395
|
}>;
|
|
3681
|
-
handler: ({ milestoneId }: {
|
|
4396
|
+
handler: ({ milestoneId, confirmLiveMilestone, }: {
|
|
3682
4397
|
milestoneId: string;
|
|
4398
|
+
confirmLiveMilestone?: boolean;
|
|
3683
4399
|
}) => Promise<{
|
|
3684
4400
|
content: {
|
|
3685
4401
|
type: "text";
|
|
@@ -3715,6 +4431,7 @@ export declare const toolDefinitions: {
|
|
|
3715
4431
|
gapKind: z.ZodOptional<z.ZodEnum<["days_since_signup", "event_not_fired"]>>;
|
|
3716
4432
|
sinceEventName: z.ZodOptional<z.ZodString>;
|
|
3717
4433
|
enrollMode: z.ZodOptional<z.ZodEnum<["all", "future"]>>;
|
|
4434
|
+
finishWhen: z.ZodOptional<z.ZodEnum<["this_person", "anyone_here"]>>;
|
|
3718
4435
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
3719
4436
|
scaffold: z.ZodOptional<z.ZodEnum<["both", "celebration", "nudge", "none"]>>;
|
|
3720
4437
|
journeyName: z.ZodOptional<z.ZodString>;
|
|
@@ -3732,6 +4449,7 @@ export declare const toolDefinitions: {
|
|
|
3732
4449
|
order?: number | undefined;
|
|
3733
4450
|
active?: boolean | undefined;
|
|
3734
4451
|
enrollMode?: "all" | "future" | undefined;
|
|
4452
|
+
finishWhen?: "this_person" | "anyone_here" | undefined;
|
|
3735
4453
|
traitValue?: string | undefined;
|
|
3736
4454
|
traitOp?: "equals" | "not_equals" | "exists" | undefined;
|
|
3737
4455
|
gapDays?: number | undefined;
|
|
@@ -3757,6 +4475,7 @@ export declare const toolDefinitions: {
|
|
|
3757
4475
|
order?: number | undefined;
|
|
3758
4476
|
active?: boolean | undefined;
|
|
3759
4477
|
enrollMode?: "all" | "future" | undefined;
|
|
4478
|
+
finishWhen?: "this_person" | "anyone_here" | undefined;
|
|
3760
4479
|
traitValue?: string | undefined;
|
|
3761
4480
|
traitOp?: "equals" | "not_equals" | "exists" | undefined;
|
|
3762
4481
|
gapDays?: number | undefined;
|
|
@@ -3916,6 +4635,24 @@ export declare const toolDefinitions: {
|
|
|
3916
4635
|
}[];
|
|
3917
4636
|
}>;
|
|
3918
4637
|
};
|
|
4638
|
+
get_adoption_account_progress: {
|
|
4639
|
+
description: string;
|
|
4640
|
+
schema: z.ZodObject<{
|
|
4641
|
+
account_id: z.ZodString;
|
|
4642
|
+
}, "strip", z.ZodTypeAny, {
|
|
4643
|
+
account_id: string;
|
|
4644
|
+
}, {
|
|
4645
|
+
account_id: string;
|
|
4646
|
+
}>;
|
|
4647
|
+
handler: ({ account_id }: {
|
|
4648
|
+
account_id: string;
|
|
4649
|
+
}) => Promise<{
|
|
4650
|
+
content: {
|
|
4651
|
+
type: "text";
|
|
4652
|
+
text: string;
|
|
4653
|
+
}[];
|
|
4654
|
+
}>;
|
|
4655
|
+
};
|
|
3919
4656
|
get_adoption_user_progress: {
|
|
3920
4657
|
description: string;
|
|
3921
4658
|
schema: z.ZodObject<{
|