@apex-inc/mcp-server 0.29.0 → 0.31.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/tools.d.ts CHANGED
@@ -28,6 +28,738 @@ 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
+ };
651
+ list_apex_links: {
652
+ description: string;
653
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
654
+ handler: () => Promise<{
655
+ content: {
656
+ type: "text";
657
+ text: string;
658
+ }[];
659
+ }>;
660
+ };
661
+ create_apex_link: {
662
+ description: string;
663
+ schema: z.ZodObject<{
664
+ destinationUrl: z.ZodString;
665
+ platform: z.ZodString;
666
+ slug: z.ZodOptional<z.ZodString>;
667
+ name: z.ZodOptional<z.ZodString>;
668
+ campaignName: z.ZodOptional<z.ZodString>;
669
+ variant: z.ZodOptional<z.ZodString>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ platform: string;
672
+ destinationUrl: string;
673
+ name?: string | undefined;
674
+ slug?: string | undefined;
675
+ campaignName?: string | undefined;
676
+ variant?: string | undefined;
677
+ }, {
678
+ platform: string;
679
+ destinationUrl: string;
680
+ name?: string | undefined;
681
+ slug?: string | undefined;
682
+ campaignName?: string | undefined;
683
+ variant?: string | undefined;
684
+ }>;
685
+ handler: (args: {
686
+ destinationUrl: string;
687
+ platform: string;
688
+ slug?: string;
689
+ name?: string;
690
+ campaignName?: string;
691
+ variant?: string;
692
+ }) => Promise<{
693
+ content: {
694
+ type: "text";
695
+ text: string;
696
+ }[];
697
+ }>;
698
+ };
699
+ list_ad_measurement: {
700
+ description: string;
701
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
702
+ handler: () => Promise<{
703
+ content: {
704
+ type: "text";
705
+ text: string;
706
+ }[];
707
+ }>;
708
+ };
709
+ set_ad_measurement_events: {
710
+ description: string;
711
+ schema: z.ZodObject<{
712
+ network: z.ZodString;
713
+ events: z.ZodRecord<z.ZodString, z.ZodBoolean>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ network: string;
716
+ events: Record<string, boolean>;
717
+ }, {
718
+ network: string;
719
+ events: Record<string, boolean>;
720
+ }>;
721
+ handler: (args: {
722
+ network: string;
723
+ events: Record<string, boolean>;
724
+ }) => Promise<{
725
+ content: {
726
+ type: "text";
727
+ text: string;
728
+ }[];
729
+ }>;
730
+ };
731
+ get_conversion_source_of_truth: {
732
+ description: string;
733
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
734
+ handler: () => Promise<{
735
+ content: {
736
+ type: "text";
737
+ text: string;
738
+ }[];
739
+ }>;
740
+ };
741
+ set_conversion_source_of_truth: {
742
+ description: string;
743
+ schema: z.ZodObject<{
744
+ network: z.ZodEnum<["meta-ads", "google-ads", "linkedin-ads", "tiktok-ads", "reddit-ads", "snapchat-ads"]>;
745
+ mode: z.ZodEnum<["apex_exclusive", "external_owner", "deduped_pair"]>;
746
+ }, "strip", z.ZodTypeAny, {
747
+ mode: "apex_exclusive" | "external_owner" | "deduped_pair";
748
+ network: "meta-ads" | "google-ads" | "linkedin-ads" | "tiktok-ads" | "reddit-ads" | "snapchat-ads";
749
+ }, {
750
+ mode: "apex_exclusive" | "external_owner" | "deduped_pair";
751
+ network: "meta-ads" | "google-ads" | "linkedin-ads" | "tiktok-ads" | "reddit-ads" | "snapchat-ads";
752
+ }>;
753
+ handler: (args: {
754
+ network: "meta-ads" | "google-ads" | "linkedin-ads" | "tiktok-ads" | "reddit-ads" | "snapchat-ads";
755
+ mode: "apex_exclusive" | "external_owner" | "deduped_pair";
756
+ }) => Promise<{
757
+ content: {
758
+ type: "text";
759
+ text: string;
760
+ }[];
761
+ }>;
762
+ };
31
763
  plan_experiment: {
32
764
  description: string;
33
765
  schema: z.ZodObject<{
@@ -136,7 +868,7 @@ export declare const toolDefinitions: {
136
868
  targetUrl: string;
137
869
  controlContent: string;
138
870
  variantContent: string;
139
- surface?: "mobile" | "web" | undefined;
871
+ surface?: "web" | "mobile" | undefined;
140
872
  targetComponent?: string | undefined;
141
873
  targetAnchor?: string | undefined;
142
874
  trafficSplit?: number | undefined;
@@ -154,7 +886,7 @@ export declare const toolDefinitions: {
154
886
  guardrailThreshold?: number | undefined;
155
887
  predictionMagnitude?: string | undefined;
156
888
  dataSourceId?: string | undefined;
157
- randomizationUnit?: "device" | "visitor" | "person" | "account" | "org" | undefined;
889
+ randomizationUnit?: "account" | "device" | "visitor" | "person" | "org" | undefined;
158
890
  minSamplePerArm?: number | undefined;
159
891
  runtimeDays?: number | undefined;
160
892
  preview?: boolean | undefined;
@@ -163,7 +895,7 @@ export declare const toolDefinitions: {
163
895
  targetUrl: string;
164
896
  controlContent: string;
165
897
  variantContent: string;
166
- surface?: "mobile" | "web" | undefined;
898
+ surface?: "web" | "mobile" | undefined;
167
899
  targetComponent?: string | undefined;
168
900
  targetAnchor?: string | undefined;
169
901
  trafficSplit?: number | undefined;
@@ -181,7 +913,7 @@ export declare const toolDefinitions: {
181
913
  guardrailThreshold?: number | undefined;
182
914
  predictionMagnitude?: string | undefined;
183
915
  dataSourceId?: string | undefined;
184
- randomizationUnit?: "device" | "visitor" | "person" | "account" | "org" | undefined;
916
+ randomizationUnit?: "account" | "device" | "visitor" | "person" | "org" | undefined;
185
917
  minSamplePerArm?: number | undefined;
186
918
  runtimeDays?: number | undefined;
187
919
  preview?: boolean | undefined;
@@ -503,11 +1235,11 @@ export declare const toolDefinitions: {
503
1235
  onlyMeasurable: z.ZodOptional<z.ZodBoolean>;
504
1236
  role: z.ZodOptional<z.ZodEnum<["goal", "guardrail"]>>;
505
1237
  }, "strip", z.ZodTypeAny, {
506
- onlyMeasurable?: boolean | undefined;
507
1238
  role?: "goal" | "guardrail" | undefined;
508
- }, {
509
1239
  onlyMeasurable?: boolean | undefined;
1240
+ }, {
510
1241
  role?: "goal" | "guardrail" | undefined;
1242
+ onlyMeasurable?: boolean | undefined;
511
1243
  }>;
512
1244
  handler: ({ onlyMeasurable, role }: {
513
1245
  onlyMeasurable?: boolean;
@@ -536,7 +1268,7 @@ export declare const toolDefinitions: {
536
1268
  }, "strip", z.ZodTypeAny, {
537
1269
  experimentId: string;
538
1270
  name?: string | undefined;
539
- surface?: "mobile" | "web" | undefined;
1271
+ surface?: "web" | "mobile" | undefined;
540
1272
  targetUrl?: string | undefined;
541
1273
  predictionId?: string | undefined;
542
1274
  primaryMetricEvent?: string | undefined;
@@ -548,7 +1280,7 @@ export declare const toolDefinitions: {
548
1280
  }, {
549
1281
  experimentId: string;
550
1282
  name?: string | undefined;
551
- surface?: "mobile" | "web" | undefined;
1283
+ surface?: "web" | "mobile" | undefined;
552
1284
  targetUrl?: string | undefined;
553
1285
  predictionId?: string | undefined;
554
1286
  primaryMetricEvent?: string | undefined;
@@ -620,7 +1352,7 @@ export declare const toolDefinitions: {
620
1352
  dataSourceId: z.ZodOptional<z.ZodString>;
621
1353
  primaryMetricEvent: z.ZodOptional<z.ZodString>;
622
1354
  }, "strip", z.ZodTypeAny, {
623
- surface?: "mobile" | "web" | undefined;
1355
+ surface?: "web" | "mobile" | undefined;
624
1356
  targetUrl?: string | undefined;
625
1357
  targetComponent?: string | undefined;
626
1358
  targetAnchor?: string | undefined;
@@ -628,7 +1360,7 @@ export declare const toolDefinitions: {
628
1360
  dataSourceId?: string | undefined;
629
1361
  experimentId?: string | undefined;
630
1362
  }, {
631
- surface?: "mobile" | "web" | undefined;
1363
+ surface?: "web" | "mobile" | undefined;
632
1364
  targetUrl?: string | undefined;
633
1365
  targetComponent?: string | undefined;
634
1366
  targetAnchor?: string | undefined;
@@ -1249,17 +1981,17 @@ export declare const toolDefinitions: {
1249
1981
  }, "strip", z.ZodTypeAny, {
1250
1982
  type: string;
1251
1983
  email?: string | undefined;
1252
- visitorId?: string | undefined;
1984
+ environment?: "localhost" | "production" | "preview" | undefined;
1253
1985
  data?: Record<string, unknown> | undefined;
1254
- environment?: "localhost" | "preview" | "production" | undefined;
1986
+ visitorId?: string | undefined;
1255
1987
  release_channel?: string | undefined;
1256
1988
  idempotencyKey?: string | undefined;
1257
1989
  }, {
1258
1990
  type: string;
1259
1991
  email?: string | undefined;
1260
- visitorId?: string | undefined;
1992
+ environment?: "localhost" | "production" | "preview" | undefined;
1261
1993
  data?: Record<string, unknown> | undefined;
1262
- environment?: "localhost" | "preview" | "production" | undefined;
1994
+ visitorId?: string | undefined;
1263
1995
  release_channel?: string | undefined;
1264
1996
  idempotencyKey?: string | undefined;
1265
1997
  }>;
@@ -1535,12 +2267,12 @@ export declare const toolDefinitions: {
1535
2267
  }, "strip", z.ZodTypeAny, {
1536
2268
  search?: string | undefined;
1537
2269
  pipeline?: "transactional" | "marketing" | undefined;
1538
- channel?: "email" | "inbox" | "web_push" | "mobile_push" | undefined;
2270
+ channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
1539
2271
  includeArchived?: boolean | undefined;
1540
2272
  }, {
1541
2273
  search?: string | undefined;
1542
2274
  pipeline?: "transactional" | "marketing" | undefined;
1543
- channel?: "email" | "inbox" | "web_push" | "mobile_push" | undefined;
2275
+ channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
1544
2276
  includeArchived?: boolean | undefined;
1545
2277
  }>;
1546
2278
  handler: (args: {
@@ -1670,19 +2402,19 @@ export declare const toolDefinitions: {
1670
2402
  communicationId: string;
1671
2403
  channels?: string[] | undefined;
1672
2404
  status?: "active" | "draft" | "paused" | undefined;
2405
+ intent?: "replace" | "compete" | undefined;
1673
2406
  subject?: string | undefined;
1674
2407
  slots?: Record<string, string> | undefined;
1675
2408
  audience_bucket?: "production" | "beta" | "dev" | undefined;
1676
- intent?: "replace" | "compete" | undefined;
1677
2409
  confirmLiveExperiment?: boolean | undefined;
1678
2410
  }, {
1679
2411
  communicationId: string;
1680
2412
  channels?: string[] | undefined;
1681
2413
  status?: "active" | "draft" | "paused" | undefined;
2414
+ intent?: "replace" | "compete" | undefined;
1682
2415
  subject?: string | undefined;
1683
2416
  slots?: Record<string, string> | undefined;
1684
2417
  audience_bucket?: "production" | "beta" | "dev" | undefined;
1685
- intent?: "replace" | "compete" | undefined;
1686
2418
  confirmLiveExperiment?: boolean | undefined;
1687
2419
  }>;
1688
2420
  handler: (args: {
@@ -1721,19 +2453,19 @@ export declare const toolDefinitions: {
1721
2453
  durationDays: z.ZodOptional<z.ZodNumber>;
1722
2454
  }, "strip", z.ZodTypeAny, {
1723
2455
  communicationId: string;
2456
+ intent?: "replace" | "compete" | undefined;
1724
2457
  confidence?: number | undefined;
1725
2458
  beliefId?: string | undefined;
1726
2459
  hypothesis?: string | undefined;
1727
- intent?: "replace" | "compete" | undefined;
1728
2460
  confirmLiveExperiment?: boolean | undefined;
1729
2461
  hostJourneyId?: string | undefined;
1730
2462
  durationDays?: number | undefined;
1731
2463
  }, {
1732
2464
  communicationId: string;
2465
+ intent?: "replace" | "compete" | undefined;
1733
2466
  confidence?: number | undefined;
1734
2467
  beliefId?: string | undefined;
1735
2468
  hypothesis?: string | undefined;
1736
- intent?: "replace" | "compete" | undefined;
1737
2469
  confirmLiveExperiment?: boolean | undefined;
1738
2470
  hostJourneyId?: string | undefined;
1739
2471
  durationDays?: number | undefined;
@@ -2448,7 +3180,7 @@ export declare const toolDefinitions: {
2448
3180
  mode?: "duration" | "until_event" | undefined;
2449
3181
  commId?: string | undefined;
2450
3182
  commVersion?: number | undefined;
2451
- channels?: ("email" | "web_push" | "mobile_push" | "in_app_push")[] | undefined;
3183
+ channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
2452
3184
  triggerContractId?: string | undefined;
2453
3185
  durationIso?: string | undefined;
2454
3186
  deadlineIso?: string | undefined;
@@ -2459,7 +3191,7 @@ export declare const toolDefinitions: {
2459
3191
  mode?: "duration" | "until_event" | undefined;
2460
3192
  commId?: string | undefined;
2461
3193
  commVersion?: number | undefined;
2462
- channels?: ("email" | "web_push" | "mobile_push" | "in_app_push")[] | undefined;
3194
+ channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
2463
3195
  triggerContractId?: string | undefined;
2464
3196
  durationIso?: string | undefined;
2465
3197
  deadlineIso?: string | undefined;
@@ -2539,16 +3271,16 @@ export declare const toolDefinitions: {
2539
3271
  }, "strip", z.ZodTypeAny, {
2540
3272
  kind: "event_not_fired" | "attribute" | "event_fired";
2541
3273
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3274
+ event_name?: string | undefined;
2542
3275
  field_path?: string | undefined;
2543
3276
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
2544
- event_name?: string | undefined;
2545
3277
  window_days?: number | undefined;
2546
3278
  }, {
2547
3279
  kind: "event_not_fired" | "attribute" | "event_fired";
2548
3280
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3281
+ event_name?: string | undefined;
2549
3282
  field_path?: string | undefined;
2550
3283
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
2551
- event_name?: string | undefined;
2552
3284
  window_days?: number | undefined;
2553
3285
  }>;
2554
3286
  whenTrueCommId: z.ZodString;
@@ -2559,26 +3291,26 @@ export declare const toolDefinitions: {
2559
3291
  condition: {
2560
3292
  kind: "event_not_fired" | "attribute" | "event_fired";
2561
3293
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3294
+ event_name?: string | undefined;
2562
3295
  field_path?: string | undefined;
2563
3296
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
2564
- event_name?: string | undefined;
2565
3297
  window_days?: number | undefined;
2566
3298
  };
2567
3299
  whenTrueCommId: string;
2568
- channels?: ("email" | "web_push" | "mobile_push" | "in_app_push")[] | undefined;
3300
+ channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
2569
3301
  whenFalseCommId?: string | undefined;
2570
3302
  }, {
2571
3303
  journeyId: string;
2572
3304
  condition: {
2573
3305
  kind: "event_not_fired" | "attribute" | "event_fired";
2574
3306
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3307
+ event_name?: string | undefined;
2575
3308
  field_path?: string | undefined;
2576
3309
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
2577
- event_name?: string | undefined;
2578
3310
  window_days?: number | undefined;
2579
3311
  };
2580
3312
  whenTrueCommId: string;
2581
- channels?: ("email" | "web_push" | "mobile_push" | "in_app_push")[] | undefined;
3313
+ channels?: ("email" | "mobile_push" | "web_push" | "in_app_push")[] | undefined;
2582
3314
  whenFalseCommId?: string | undefined;
2583
3315
  }>;
2584
3316
  handler: (args: {
@@ -2845,9 +3577,9 @@ export declare const toolDefinitions: {
2845
3577
  label: z.ZodOptional<z.ZodString>;
2846
3578
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2847
3579
  }, "strip", z.ZodTypeAny, {
3580
+ enabled: boolean;
2848
3581
  journeyId: string;
2849
3582
  triggerContractId: string;
2850
- enabled: boolean;
2851
3583
  label?: string | undefined;
2852
3584
  }, {
2853
3585
  journeyId: string;
@@ -3091,12 +3823,12 @@ export declare const toolDefinitions: {
3091
3823
  wired: z.ZodOptional<z.ZodBoolean>;
3092
3824
  }, "strip", z.ZodTypeAny, {
3093
3825
  name: string;
3094
- surface: "mobile" | "web" | "server";
3826
+ surface: "web" | "mobile" | "server";
3095
3827
  wired?: boolean | undefined;
3096
3828
  note?: string | undefined;
3097
3829
  }, {
3098
3830
  name: string;
3099
- surface: "mobile" | "web" | "server";
3831
+ surface: "web" | "mobile" | "server";
3100
3832
  wired?: boolean | undefined;
3101
3833
  note?: string | undefined;
3102
3834
  }>, "many">;
@@ -3104,7 +3836,7 @@ export declare const toolDefinitions: {
3104
3836
  }, "strip", z.ZodTypeAny, {
3105
3837
  events: {
3106
3838
  name: string;
3107
- surface: "mobile" | "web" | "server";
3839
+ surface: "web" | "mobile" | "server";
3108
3840
  wired?: boolean | undefined;
3109
3841
  note?: string | undefined;
3110
3842
  }[];
@@ -3112,7 +3844,7 @@ export declare const toolDefinitions: {
3112
3844
  }, {
3113
3845
  events: {
3114
3846
  name: string;
3115
- surface: "mobile" | "web" | "server";
3847
+ surface: "web" | "mobile" | "server";
3116
3848
  wired?: boolean | undefined;
3117
3849
  note?: string | undefined;
3118
3850
  }[];
@@ -3145,14 +3877,14 @@ export declare const toolDefinitions: {
3145
3877
  }, "strip", z.ZodTypeAny, {
3146
3878
  kind: "pr" | "issue";
3147
3879
  experimentId: string;
3148
- system: "github" | "github-issues" | "linear" | "jira" | "trello";
3880
+ system: "linear" | "github" | "github-issues" | "jira" | "trello";
3149
3881
  externalId: string;
3150
3882
  url?: string | undefined;
3151
3883
  repo?: string | undefined;
3152
3884
  }, {
3153
3885
  kind: "pr" | "issue";
3154
3886
  experimentId: string;
3155
- system: "github" | "github-issues" | "linear" | "jira" | "trello";
3887
+ system: "linear" | "github" | "github-issues" | "jira" | "trello";
3156
3888
  externalId: string;
3157
3889
  url?: string | undefined;
3158
3890
  repo?: string | undefined;
@@ -3293,13 +4025,17 @@ export declare const toolDefinitions: {
3293
4025
  description: string;
3294
4026
  schema: z.ZodObject<{
3295
4027
  type: z.ZodString;
4028
+ orgId: z.ZodOptional<z.ZodString>;
3296
4029
  }, "strip", z.ZodTypeAny, {
3297
4030
  type: string;
4031
+ orgId?: string | undefined;
3298
4032
  }, {
3299
4033
  type: string;
4034
+ orgId?: string | undefined;
3300
4035
  }>;
3301
- handler: ({ type }: {
4036
+ handler: ({ type, orgId }: {
3302
4037
  type: string;
4038
+ orgId?: string;
3303
4039
  }) => Promise<{
3304
4040
  content: {
3305
4041
  type: "text";
@@ -3456,7 +4192,7 @@ export declare const toolDefinitions: {
3456
4192
  onLose?: "auto" | "do_nothing" | "notify" | undefined;
3457
4193
  writeRepos?: string[] | undefined;
3458
4194
  githubVisibility?: "full" | "minimal" | "off" | undefined;
3459
- commitConvention?: "custom" | "conventional" | "none" | undefined;
4195
+ commitConvention?: "custom" | "none" | "conventional" | undefined;
3460
4196
  branchConvention?: "custom" | "feature" | "apex" | "feat" | "chore" | undefined;
3461
4197
  workingHours?: "anytime" | "off_hours" | "business_hours" | undefined;
3462
4198
  }, {
@@ -3464,7 +4200,7 @@ export declare const toolDefinitions: {
3464
4200
  onLose?: "auto" | "do_nothing" | "notify" | undefined;
3465
4201
  writeRepos?: string[] | undefined;
3466
4202
  githubVisibility?: "full" | "minimal" | "off" | undefined;
3467
- commitConvention?: "custom" | "conventional" | "none" | undefined;
4203
+ commitConvention?: "custom" | "none" | "conventional" | undefined;
3468
4204
  branchConvention?: "custom" | "feature" | "apex" | "feat" | "chore" | undefined;
3469
4205
  workingHours?: "anytime" | "off_hours" | "business_hours" | undefined;
3470
4206
  }>;