@apex-inc/mcp-server 0.70.0 → 0.72.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.
Files changed (40) hide show
  1. package/dist/api-client.d.ts +11 -0
  2. package/dist/api-client.d.ts.map +1 -1
  3. package/dist/api-client.js +38 -0
  4. package/dist/api-client.js.map +1 -1
  5. package/dist/index.js +2 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/letter-blocks.d.ts +2 -2
  8. package/dist/setup-catchup-tools.d.ts +24 -15
  9. package/dist/setup-catchup-tools.d.ts.map +1 -1
  10. package/dist/setup-catchup-tools.js +122 -53
  11. package/dist/setup-catchup-tools.js.map +1 -1
  12. package/dist/setup-checklist.d.ts +1 -0
  13. package/dist/setup-checklist.d.ts.map +1 -1
  14. package/dist/setup-checklist.js +2 -1
  15. package/dist/setup-checklist.js.map +1 -1
  16. package/dist/tool-groups.d.ts.map +1 -1
  17. package/dist/tool-groups.js +3 -0
  18. package/dist/tool-groups.js.map +1 -1
  19. package/dist/tools/experiments.d.ts +2 -2
  20. package/dist/tools/experiments.js +1 -1
  21. package/dist/tools/experiments.js.map +1 -1
  22. package/dist/tools/letters.d.ts +208 -17
  23. package/dist/tools/letters.d.ts.map +1 -1
  24. package/dist/tools/letters.js +170 -51
  25. package/dist/tools/letters.js.map +1 -1
  26. package/dist/tools/measurement.d.ts +43 -12
  27. package/dist/tools/measurement.d.ts.map +1 -1
  28. package/dist/tools/measurement.js +49 -5
  29. package/dist/tools/measurement.js.map +1 -1
  30. package/dist/tools/partners.d.ts +17 -14
  31. package/dist/tools/partners.d.ts.map +1 -1
  32. package/dist/tools/partners.js +30 -5
  33. package/dist/tools/partners.js.map +1 -1
  34. package/dist/tools.d.ts +296 -53
  35. package/dist/tools.d.ts.map +1 -1
  36. package/dist/workspace-target-url.d.ts.map +1 -1
  37. package/dist/workspace-target-url.js +8 -3
  38. package/dist/workspace-target-url.js.map +1 -1
  39. package/package.json +1 -1
  40. package/skills/apex-setup/SKILL.md +6 -1
package/dist/tools.d.ts CHANGED
@@ -298,8 +298,16 @@ export declare const toolDefinitions: {
298
298
  };
299
299
  get_team_traffic: {
300
300
  description: string;
301
- schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
302
- handler: () => Promise<{
301
+ schema: import("zod").ZodObject<{
302
+ host: import("zod").ZodOptional<import("zod").ZodString>;
303
+ }, "strip", import("zod").ZodTypeAny, {
304
+ host?: string | undefined;
305
+ }, {
306
+ host?: string | undefined;
307
+ }>;
308
+ handler: (args?: {
309
+ host?: string;
310
+ }) => Promise<{
303
311
  content: {
304
312
  type: "text";
305
313
  text: string;
@@ -314,11 +322,14 @@ export declare const toolDefinitions: {
314
322
  addMyAddress: import("zod").ZodOptional<import("zod").ZodBoolean>;
315
323
  addresses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
316
324
  browserLink: import("zod").ZodOptional<import("zod").ZodEnum<["create", "remove"]>>;
325
+ host: import("zod").ZodOptional<import("zod").ZodString>;
317
326
  }, "strip", import("zod").ZodTypeAny, {
327
+ host?: string | undefined;
318
328
  addMyAddress?: boolean | undefined;
319
329
  addresses?: string[] | undefined;
320
330
  browserLink?: "create" | "remove" | undefined;
321
331
  }, {
332
+ host?: string | undefined;
322
333
  addMyAddress?: boolean | undefined;
323
334
  addresses?: string[] | undefined;
324
335
  browserLink?: "create" | "remove" | undefined;
@@ -327,6 +338,7 @@ export declare const toolDefinitions: {
327
338
  addMyAddress?: boolean;
328
339
  addresses?: string[];
329
340
  browserLink?: "create" | "remove";
341
+ host?: string;
330
342
  }) => Promise<{
331
343
  content: {
332
344
  type: "text";
@@ -1187,14 +1199,10 @@ export declare const toolDefinitions: {
1187
1199
  position?: "top" | "bottom";
1188
1200
  clipboardHandoff?: boolean;
1189
1201
  }) => Promise<{
1190
- content: ({
1191
- type: "image";
1192
- data: string;
1193
- mimeType: string;
1194
- } | {
1202
+ content: {
1195
1203
  type: "text";
1196
1204
  text: string;
1197
- })[];
1205
+ }[];
1198
1206
  }>;
1199
1207
  } & {
1200
1208
  group: ToolGroup;
@@ -1373,6 +1381,7 @@ export declare const toolDefinitions: {
1373
1381
  placement: import("zod").ZodOptional<import("zod").ZodEnum<["paid-ad", "social-post", "social-bio", "other"]>>;
1374
1382
  platform: import("zod").ZodOptional<import("zod").ZodString>;
1375
1383
  source: import("zod").ZodOptional<import("zod").ZodString>;
1384
+ medium: import("zod").ZodOptional<import("zod").ZodString>;
1376
1385
  slug: import("zod").ZodOptional<import("zod").ZodString>;
1377
1386
  name: import("zod").ZodOptional<import("zod").ZodString>;
1378
1387
  campaignName: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1391,6 +1400,7 @@ export declare const toolDefinitions: {
1391
1400
  storeRouting?: boolean | undefined;
1392
1401
  placement?: "other" | "paid-ad" | "social-post" | "social-bio" | undefined;
1393
1402
  source?: string | undefined;
1403
+ medium?: string | undefined;
1394
1404
  campaignName?: string | undefined;
1395
1405
  variant?: string | undefined;
1396
1406
  previewTitle?: string | undefined;
@@ -1407,6 +1417,7 @@ export declare const toolDefinitions: {
1407
1417
  storeRouting?: boolean | undefined;
1408
1418
  placement?: "other" | "paid-ad" | "social-post" | "social-bio" | undefined;
1409
1419
  source?: string | undefined;
1420
+ medium?: string | undefined;
1410
1421
  campaignName?: string | undefined;
1411
1422
  variant?: string | undefined;
1412
1423
  previewTitle?: string | undefined;
@@ -1423,6 +1434,7 @@ export declare const toolDefinitions: {
1423
1434
  placement?: "other" | "paid-ad" | "social-post" | "social-bio";
1424
1435
  platform?: string;
1425
1436
  source?: string;
1437
+ medium?: string;
1426
1438
  slug?: string;
1427
1439
  name?: string;
1428
1440
  campaignName?: string;
@@ -3275,12 +3287,13 @@ export declare const toolDefinitions: {
3275
3287
  }[] | undefined;
3276
3288
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3277
3289
  }>, "many">;
3278
- category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "other"]>>;
3290
+ category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "reactivation", "other"]>>;
3279
3291
  entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3280
3292
  description: import("zod").ZodOptional<import("zod").ZodString>;
3281
3293
  template: import("zod").ZodOptional<import("zod").ZodString>;
3282
3294
  position: import("zod").ZodOptional<import("zod").ZodNumber>;
3283
3295
  funnelRole: import("zod").ZodOptional<import("zod").ZodEnum<["stage", "off_ramp", "return", "milestone"]>>;
3296
+ reactivatesChurned: import("zod").ZodOptional<import("zod").ZodBoolean>;
3284
3297
  }, "strip", import("zod").ZodTypeAny, {
3285
3298
  name: string;
3286
3299
  sources: {
@@ -3298,9 +3311,10 @@ export declare const toolDefinitions: {
3298
3311
  description?: string | undefined;
3299
3312
  position?: number | undefined;
3300
3313
  template?: string | undefined;
3301
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3314
+ category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3302
3315
  entityScope?: "account" | "person" | undefined;
3303
3316
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | undefined;
3317
+ reactivatesChurned?: boolean | undefined;
3304
3318
  }, {
3305
3319
  name: string;
3306
3320
  sources: {
@@ -3318,9 +3332,10 @@ export declare const toolDefinitions: {
3318
3332
  description?: string | undefined;
3319
3333
  position?: number | undefined;
3320
3334
  template?: string | undefined;
3321
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3335
+ category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3322
3336
  entityScope?: "account" | "person" | undefined;
3323
3337
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | undefined;
3338
+ reactivatesChurned?: boolean | undefined;
3324
3339
  }>;
3325
3340
  handler: (args: {
3326
3341
  name: string;
@@ -3342,6 +3357,7 @@ export declare const toolDefinitions: {
3342
3357
  template?: string;
3343
3358
  position?: number;
3344
3359
  funnelRole?: "stage" | "off_ramp" | "return" | "milestone";
3360
+ reactivatesChurned?: boolean;
3345
3361
  }) => Promise<{
3346
3362
  isError?: boolean | undefined;
3347
3363
  content: {
@@ -3399,11 +3415,12 @@ export declare const toolDefinitions: {
3399
3415
  }[] | undefined;
3400
3416
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3401
3417
  }>, "many">>;
3402
- category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "other"]>>;
3418
+ category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "reactivation", "other"]>>;
3403
3419
  entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3404
3420
  description: import("zod").ZodOptional<import("zod").ZodString>;
3405
3421
  position: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
3406
3422
  funnelRole: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEnum<["stage", "off_ramp", "return", "milestone"]>>>;
3423
+ reactivatesChurned: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodBoolean>>;
3407
3424
  isCurrentGoal: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
3408
3425
  }, "strip", import("zod").ZodTypeAny, {
3409
3426
  keyEventId: string;
@@ -3422,9 +3439,10 @@ export declare const toolDefinitions: {
3422
3439
  }[] | undefined;
3423
3440
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3424
3441
  }[] | undefined;
3425
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3442
+ category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3426
3443
  entityScope?: "account" | "person" | undefined;
3427
3444
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | null | undefined;
3445
+ reactivatesChurned?: boolean | null | undefined;
3428
3446
  isCurrentGoal?: true | undefined;
3429
3447
  }, {
3430
3448
  keyEventId: string;
@@ -3443,9 +3461,10 @@ export declare const toolDefinitions: {
3443
3461
  }[] | undefined;
3444
3462
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3445
3463
  }[] | undefined;
3446
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3464
+ category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3447
3465
  entityScope?: "account" | "person" | undefined;
3448
3466
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | null | undefined;
3467
+ reactivatesChurned?: boolean | null | undefined;
3449
3468
  isCurrentGoal?: true | undefined;
3450
3469
  }>;
3451
3470
  handler: (args: {
@@ -3468,6 +3487,7 @@ export declare const toolDefinitions: {
3468
3487
  description?: string;
3469
3488
  position?: number | null;
3470
3489
  funnelRole?: "stage" | "off_ramp" | "return" | "milestone" | null;
3490
+ reactivatesChurned?: boolean | null;
3471
3491
  isCurrentGoal?: true;
3472
3492
  }) => Promise<{
3473
3493
  isError?: boolean | undefined;
@@ -4269,22 +4289,25 @@ export declare const toolDefinitions: {
4269
4289
  description: import("zod").ZodString;
4270
4290
  fields: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
4271
4291
  scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
4272
- primary_metric: import("zod").ZodOptional<import("zod").ZodBoolean>;
4273
- recommended_transport: import("zod").ZodOptional<import("zod").ZodEnum<["client", "server", "either"]>>;
4292
+ primaryMetric: import("zod").ZodOptional<import("zod").ZodBoolean>;
4293
+ recommendedTransport: import("zod").ZodOptional<import("zod").ZodEnum<["client", "server", "either"]>>;
4294
+ publish: import("zod").ZodOptional<import("zod").ZodBoolean>;
4274
4295
  }, "strip", import("zod").ZodTypeAny, {
4275
4296
  name: string;
4276
4297
  description: string;
4277
4298
  fields: Record<string, string>;
4299
+ publish?: boolean | undefined;
4300
+ primaryMetric?: boolean | undefined;
4278
4301
  scope?: "workspace" | "org" | undefined;
4279
- primary_metric?: boolean | undefined;
4280
- recommended_transport?: "server" | "client" | "either" | undefined;
4302
+ recommendedTransport?: "server" | "client" | "either" | undefined;
4281
4303
  }, {
4282
4304
  name: string;
4283
4305
  description: string;
4284
4306
  fields: Record<string, string>;
4307
+ publish?: boolean | undefined;
4308
+ primaryMetric?: boolean | undefined;
4285
4309
  scope?: "workspace" | "org" | undefined;
4286
- primary_metric?: boolean | undefined;
4287
- recommended_transport?: "server" | "client" | "either" | undefined;
4310
+ recommendedTransport?: "server" | "client" | "either" | undefined;
4288
4311
  }>;
4289
4312
  handler: (args: {
4290
4313
  name: string;
@@ -4293,7 +4316,29 @@ export declare const toolDefinitions: {
4293
4316
  scope?: "workspace" | "org";
4294
4317
  primaryMetric?: boolean;
4295
4318
  recommendedTransport?: "client" | "server" | "either";
4319
+ publish?: boolean;
4320
+ }) => Promise<{
4321
+ content: {
4322
+ type: "text";
4323
+ text: string;
4324
+ }[];
4325
+ }>;
4326
+ } & {
4327
+ group: ToolGroup;
4328
+ };
4329
+ publish_event_definition: {
4330
+ description: string;
4331
+ schema: import("zod").ZodObject<{
4332
+ name: import("zod").ZodString;
4333
+ }, "strip", import("zod").ZodTypeAny, {
4334
+ name: string;
4335
+ }, {
4336
+ name: string;
4337
+ }>;
4338
+ handler: ({ name }: {
4339
+ name: string;
4296
4340
  }) => Promise<{
4341
+ isError?: boolean | undefined;
4297
4342
  content: {
4298
4343
  type: "text";
4299
4344
  text: string;
@@ -4759,12 +4804,12 @@ export declare const toolDefinitions: {
4759
4804
  percentage: import("zod").ZodOptional<import("zod").ZodNumber>;
4760
4805
  appliesTo: import("zod").ZodEnum<["install", "purchase", "subscription"]>;
4761
4806
  }, "strip", import("zod").ZodTypeAny, {
4762
- type: "revshare" | "cpa";
4807
+ type: "cpa" | "revshare";
4763
4808
  appliesTo: "purchase" | "install" | "subscription";
4764
4809
  percentage?: number | undefined;
4765
4810
  amountUsd?: number | undefined;
4766
4811
  }, {
4767
- type: "revshare" | "cpa";
4812
+ type: "cpa" | "revshare";
4768
4813
  appliesTo: "purchase" | "install" | "subscription";
4769
4814
  percentage?: number | undefined;
4770
4815
  amountUsd?: number | undefined;
@@ -4772,12 +4817,14 @@ export declare const toolDefinitions: {
4772
4817
  payoutKeyEventId: import("zod").ZodOptional<import("zod").ZodString>;
4773
4818
  visibility: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["public", "private"]>>>;
4774
4819
  approvalMode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["auto", "manual"]>>>;
4820
+ publishImmediately: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
4775
4821
  coverImagePath: import("zod").ZodOptional<import("zod").ZodString>;
4776
4822
  }, "strip", import("zod").ZodTypeAny, {
4777
4823
  name: string;
4778
4824
  vertical: "ecommerce" | "marketplace" | "other" | "saas" | "fintech" | "hardware" | "enterprise" | "creator_tools";
4825
+ publishImmediately: boolean;
4779
4826
  commissionStructure: {
4780
- type: "revshare" | "cpa";
4827
+ type: "cpa" | "revshare";
4781
4828
  appliesTo: "purchase" | "install" | "subscription";
4782
4829
  percentage?: number | undefined;
4783
4830
  amountUsd?: number | undefined;
@@ -4791,13 +4838,14 @@ export declare const toolDefinitions: {
4791
4838
  name: string;
4792
4839
  vertical: "ecommerce" | "marketplace" | "other" | "saas" | "fintech" | "hardware" | "enterprise" | "creator_tools";
4793
4840
  commissionStructure: {
4794
- type: "revshare" | "cpa";
4841
+ type: "cpa" | "revshare";
4795
4842
  appliesTo: "purchase" | "install" | "subscription";
4796
4843
  percentage?: number | undefined;
4797
4844
  amountUsd?: number | undefined;
4798
4845
  };
4799
4846
  description?: string | undefined;
4800
4847
  coverImagePath?: string | undefined;
4848
+ publishImmediately?: boolean | undefined;
4801
4849
  visibility?: "public" | "private" | undefined;
4802
4850
  payoutKeyEventId?: string | undefined;
4803
4851
  approvalMode?: "manual" | "auto" | undefined;
@@ -4924,12 +4972,12 @@ export declare const toolDefinitions: {
4924
4972
  percentage: import("zod").ZodOptional<import("zod").ZodNumber>;
4925
4973
  appliesTo: import("zod").ZodEnum<["install", "purchase", "subscription"]>;
4926
4974
  }, "strip", import("zod").ZodTypeAny, {
4927
- type: "revshare" | "cpa";
4975
+ type: "cpa" | "revshare";
4928
4976
  appliesTo: "purchase" | "install" | "subscription";
4929
4977
  percentage?: number | undefined;
4930
4978
  amountUsd?: number | undefined;
4931
4979
  }, {
4932
- type: "revshare" | "cpa";
4980
+ type: "cpa" | "revshare";
4933
4981
  appliesTo: "purchase" | "install" | "subscription";
4934
4982
  percentage?: number | undefined;
4935
4983
  amountUsd?: number | undefined;
@@ -4937,7 +4985,7 @@ export declare const toolDefinitions: {
4937
4985
  reason: import("zod").ZodOptional<import("zod").ZodString>;
4938
4986
  }, "strip", import("zod").ZodTypeAny, {
4939
4987
  commissionStructure: {
4940
- type: "revshare" | "cpa";
4988
+ type: "cpa" | "revshare";
4941
4989
  appliesTo: "purchase" | "install" | "subscription";
4942
4990
  percentage?: number | undefined;
4943
4991
  amountUsd?: number | undefined;
@@ -4946,7 +4994,7 @@ export declare const toolDefinitions: {
4946
4994
  reason?: string | undefined;
4947
4995
  }, {
4948
4996
  commissionStructure: {
4949
- type: "revshare" | "cpa";
4997
+ type: "cpa" | "revshare";
4950
4998
  appliesTo: "purchase" | "install" | "subscription";
4951
4999
  percentage?: number | undefined;
4952
5000
  amountUsd?: number | undefined;
@@ -5005,26 +5053,26 @@ export declare const toolDefinitions: {
5005
5053
  percentage: import("zod").ZodOptional<import("zod").ZodNumber>;
5006
5054
  appliesTo: import("zod").ZodEnum<["install", "purchase", "subscription"]>;
5007
5055
  }, "strip", import("zod").ZodTypeAny, {
5008
- type: "revshare" | "cpa";
5056
+ type: "cpa" | "revshare";
5009
5057
  appliesTo: "purchase" | "install" | "subscription";
5010
5058
  percentage?: number | undefined;
5011
5059
  amountUsd?: number | undefined;
5012
5060
  }, {
5013
- type: "revshare" | "cpa";
5061
+ type: "cpa" | "revshare";
5014
5062
  appliesTo: "purchase" | "install" | "subscription";
5015
5063
  percentage?: number | undefined;
5016
5064
  amountUsd?: number | undefined;
5017
5065
  }>;
5018
5066
  }, "strip", import("zod").ZodTypeAny, {
5019
5067
  commissionStructure: {
5020
- type: "revshare" | "cpa";
5068
+ type: "cpa" | "revshare";
5021
5069
  appliesTo: "purchase" | "install" | "subscription";
5022
5070
  percentage?: number | undefined;
5023
5071
  amountUsd?: number | undefined;
5024
5072
  };
5025
5073
  }, {
5026
5074
  commissionStructure: {
5027
- type: "revshare" | "cpa";
5075
+ type: "cpa" | "revshare";
5028
5076
  appliesTo: "purchase" | "install" | "subscription";
5029
5077
  percentage?: number | undefined;
5030
5078
  amountUsd?: number | undefined;
@@ -5037,7 +5085,7 @@ export declare const toolDefinitions: {
5037
5085
  inviterMessage?: string | undefined;
5038
5086
  customRate?: {
5039
5087
  commissionStructure: {
5040
- type: "revshare" | "cpa";
5088
+ type: "cpa" | "revshare";
5041
5089
  appliesTo: "purchase" | "install" | "subscription";
5042
5090
  percentage?: number | undefined;
5043
5091
  amountUsd?: number | undefined;
@@ -5050,7 +5098,7 @@ export declare const toolDefinitions: {
5050
5098
  inviterMessage?: string | undefined;
5051
5099
  customRate?: {
5052
5100
  commissionStructure: {
5053
- type: "revshare" | "cpa";
5101
+ type: "cpa" | "revshare";
5054
5102
  appliesTo: "purchase" | "install" | "subscription";
5055
5103
  percentage?: number | undefined;
5056
5104
  amountUsd?: number | undefined;
@@ -6099,7 +6147,7 @@ export declare const toolDefinitions: {
6099
6147
  button_width?: "fill" | "hug" | undefined;
6100
6148
  eyebrow?: string | undefined;
6101
6149
  caption?: string | undefined;
6102
- tone?: "plain" | "success" | "warning" | "neutral" | undefined;
6150
+ tone?: "warning" | "plain" | "success" | "neutral" | undefined;
6103
6151
  height?: number | undefined;
6104
6152
  color?: string | undefined;
6105
6153
  thickness?: number | undefined;
@@ -6121,7 +6169,7 @@ export declare const toolDefinitions: {
6121
6169
  button_width?: "fill" | "hug" | undefined;
6122
6170
  eyebrow?: string | undefined;
6123
6171
  caption?: string | undefined;
6124
- tone?: "plain" | "success" | "warning" | "neutral" | undefined;
6172
+ tone?: "warning" | "plain" | "success" | "neutral" | undefined;
6125
6173
  height?: number | undefined;
6126
6174
  color?: string | undefined;
6127
6175
  thickness?: number | undefined;
@@ -6160,7 +6208,7 @@ export declare const toolDefinitions: {
6160
6208
  button_width?: "fill" | "hug" | undefined;
6161
6209
  eyebrow?: string | undefined;
6162
6210
  caption?: string | undefined;
6163
- tone?: "plain" | "success" | "warning" | "neutral" | undefined;
6211
+ tone?: "warning" | "plain" | "success" | "neutral" | undefined;
6164
6212
  height?: number | undefined;
6165
6213
  color?: string | undefined;
6166
6214
  thickness?: number | undefined;
@@ -6195,7 +6243,7 @@ export declare const toolDefinitions: {
6195
6243
  button_width?: "fill" | "hug" | undefined;
6196
6244
  eyebrow?: string | undefined;
6197
6245
  caption?: string | undefined;
6198
- tone?: "plain" | "success" | "warning" | "neutral" | undefined;
6246
+ tone?: "warning" | "plain" | "success" | "neutral" | undefined;
6199
6247
  height?: number | undefined;
6200
6248
  color?: string | undefined;
6201
6249
  thickness?: number | undefined;
@@ -6352,14 +6400,10 @@ export declare const toolDefinitions: {
6352
6400
  handler: (args: {
6353
6401
  communicationId: string;
6354
6402
  }) => Promise<{
6355
- content: ({
6403
+ content: {
6356
6404
  type: "text";
6357
6405
  text: string;
6358
- } | {
6359
- type: "image";
6360
- data: string;
6361
- mimeType: string;
6362
- })[];
6406
+ }[];
6363
6407
  }>;
6364
6408
  } & {
6365
6409
  group: ToolGroup;
@@ -6624,16 +6668,20 @@ export declare const toolDefinitions: {
6624
6668
  schema: import("zod").ZodObject<{
6625
6669
  name: import("zod").ZodOptional<import("zod").ZodString>;
6626
6670
  audience_bucket: import("zod").ZodOptional<import("zod").ZodEnum<["production", "beta", "dev"]>>;
6671
+ attributionWindowDays: import("zod").ZodOptional<import("zod").ZodNumber>;
6627
6672
  }, "strip", import("zod").ZodTypeAny, {
6628
6673
  name?: string | undefined;
6674
+ attributionWindowDays?: number | undefined;
6629
6675
  audience_bucket?: "production" | "beta" | "dev" | undefined;
6630
6676
  }, {
6631
6677
  name?: string | undefined;
6678
+ attributionWindowDays?: number | undefined;
6632
6679
  audience_bucket?: "production" | "beta" | "dev" | undefined;
6633
6680
  }>;
6634
- handler: ({ name, audience_bucket }: {
6681
+ handler: ({ name, audience_bucket, attributionWindowDays, }: {
6635
6682
  name?: string;
6636
6683
  audience_bucket?: "production" | "beta" | "dev";
6684
+ attributionWindowDays?: number;
6637
6685
  }) => Promise<{
6638
6686
  content: {
6639
6687
  type: "text";
@@ -6667,14 +6715,10 @@ export declare const toolDefinitions: {
6667
6715
  }[];
6668
6716
  isError: boolean;
6669
6717
  } | {
6670
- content: ({
6718
+ content: {
6671
6719
  type: "text";
6672
6720
  text: string;
6673
- } | {
6674
- type: "image";
6675
- data: string;
6676
- mimeType: string;
6677
- })[];
6721
+ }[];
6678
6722
  }>;
6679
6723
  } & {
6680
6724
  group: ToolGroup;
@@ -7515,6 +7559,205 @@ export declare const toolDefinitions: {
7515
7559
  } & {
7516
7560
  group: ToolGroup;
7517
7561
  };
7562
+ update_segment: {
7563
+ description: string;
7564
+ schema: import("zod").ZodObject<{
7565
+ segmentId: import("zod").ZodString;
7566
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
7567
+ name: import("zod").ZodOptional<import("zod").ZodString>;
7568
+ description: import("zod").ZodOptional<import("zod").ZodString>;
7569
+ conditions: import("zod").ZodOptional<import("zod").ZodObject<{
7570
+ match: import("zod").ZodEnum<["all", "any"]>;
7571
+ groups: import("zod").ZodArray<import("zod").ZodObject<{
7572
+ match: import("zod").ZodEnum<["all", "any"]>;
7573
+ conditions: import("zod").ZodArray<import("zod").ZodObject<{
7574
+ verb: import("zod").ZodOptional<import("zod").ZodEnum<["has", "hasnt"]>>;
7575
+ event: import("zod").ZodOptional<import("zod").ZodString>;
7576
+ key_event_id: import("zod").ZodOptional<import("zod").ZodString>;
7577
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
7578
+ window_days: import("zod").ZodOptional<import("zod").ZodNumber>;
7579
+ attribute: import("zod").ZodOptional<import("zod").ZodString>;
7580
+ op: import("zod").ZodOptional<import("zod").ZodEnum<["is", "is_not", "exists"]>>;
7581
+ value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
7582
+ }, "strip", import("zod").ZodTypeAny, {
7583
+ event?: string | undefined;
7584
+ value?: string | number | boolean | undefined;
7585
+ key_event_id?: string | undefined;
7586
+ scope?: "account" | "person" | undefined;
7587
+ attribute?: string | undefined;
7588
+ window_days?: number | undefined;
7589
+ verb?: "has" | "hasnt" | undefined;
7590
+ op?: "exists" | "is" | "is_not" | undefined;
7591
+ }, {
7592
+ event?: string | undefined;
7593
+ value?: string | number | boolean | undefined;
7594
+ key_event_id?: string | undefined;
7595
+ scope?: "account" | "person" | undefined;
7596
+ attribute?: string | undefined;
7597
+ window_days?: number | undefined;
7598
+ verb?: "has" | "hasnt" | undefined;
7599
+ op?: "exists" | "is" | "is_not" | undefined;
7600
+ }>, "many">;
7601
+ }, "strip", import("zod").ZodTypeAny, {
7602
+ match: "all" | "any";
7603
+ conditions: {
7604
+ event?: string | undefined;
7605
+ value?: string | number | boolean | undefined;
7606
+ key_event_id?: string | undefined;
7607
+ scope?: "account" | "person" | undefined;
7608
+ attribute?: string | undefined;
7609
+ window_days?: number | undefined;
7610
+ verb?: "has" | "hasnt" | undefined;
7611
+ op?: "exists" | "is" | "is_not" | undefined;
7612
+ }[];
7613
+ }, {
7614
+ match: "all" | "any";
7615
+ conditions: {
7616
+ event?: string | undefined;
7617
+ value?: string | number | boolean | undefined;
7618
+ key_event_id?: string | undefined;
7619
+ scope?: "account" | "person" | undefined;
7620
+ attribute?: string | undefined;
7621
+ window_days?: number | undefined;
7622
+ verb?: "has" | "hasnt" | undefined;
7623
+ op?: "exists" | "is" | "is_not" | undefined;
7624
+ }[];
7625
+ }>, "many">;
7626
+ }, "strip", import("zod").ZodTypeAny, {
7627
+ match: "all" | "any";
7628
+ groups: {
7629
+ match: "all" | "any";
7630
+ conditions: {
7631
+ event?: string | undefined;
7632
+ value?: string | number | boolean | undefined;
7633
+ key_event_id?: string | undefined;
7634
+ scope?: "account" | "person" | undefined;
7635
+ attribute?: string | undefined;
7636
+ window_days?: number | undefined;
7637
+ verb?: "has" | "hasnt" | undefined;
7638
+ op?: "exists" | "is" | "is_not" | undefined;
7639
+ }[];
7640
+ }[];
7641
+ }, {
7642
+ match: "all" | "any";
7643
+ groups: {
7644
+ match: "all" | "any";
7645
+ conditions: {
7646
+ event?: string | undefined;
7647
+ value?: string | number | boolean | undefined;
7648
+ key_event_id?: string | undefined;
7649
+ scope?: "account" | "person" | undefined;
7650
+ attribute?: string | undefined;
7651
+ window_days?: number | undefined;
7652
+ verb?: "has" | "hasnt" | undefined;
7653
+ op?: "exists" | "is" | "is_not" | undefined;
7654
+ }[];
7655
+ }[];
7656
+ }>>;
7657
+ predicate: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
7658
+ }, "strip", import("zod").ZodTypeAny, {
7659
+ segmentId: string;
7660
+ name?: string | undefined;
7661
+ description?: string | undefined;
7662
+ scope?: "workspace" | "org" | undefined;
7663
+ conditions?: {
7664
+ match: "all" | "any";
7665
+ groups: {
7666
+ match: "all" | "any";
7667
+ conditions: {
7668
+ event?: string | undefined;
7669
+ value?: string | number | boolean | undefined;
7670
+ key_event_id?: string | undefined;
7671
+ scope?: "account" | "person" | undefined;
7672
+ attribute?: string | undefined;
7673
+ window_days?: number | undefined;
7674
+ verb?: "has" | "hasnt" | undefined;
7675
+ op?: "exists" | "is" | "is_not" | undefined;
7676
+ }[];
7677
+ }[];
7678
+ } | undefined;
7679
+ predicate?: Record<string, unknown> | undefined;
7680
+ }, {
7681
+ segmentId: string;
7682
+ name?: string | undefined;
7683
+ description?: string | undefined;
7684
+ scope?: "workspace" | "org" | undefined;
7685
+ conditions?: {
7686
+ match: "all" | "any";
7687
+ groups: {
7688
+ match: "all" | "any";
7689
+ conditions: {
7690
+ event?: string | undefined;
7691
+ value?: string | number | boolean | undefined;
7692
+ key_event_id?: string | undefined;
7693
+ scope?: "account" | "person" | undefined;
7694
+ attribute?: string | undefined;
7695
+ window_days?: number | undefined;
7696
+ verb?: "has" | "hasnt" | undefined;
7697
+ op?: "exists" | "is" | "is_not" | undefined;
7698
+ }[];
7699
+ }[];
7700
+ } | undefined;
7701
+ predicate?: Record<string, unknown> | undefined;
7702
+ }>;
7703
+ handler: (args: {
7704
+ segmentId: string;
7705
+ scope?: "workspace" | "org";
7706
+ name?: string;
7707
+ description?: string;
7708
+ conditions?: unknown;
7709
+ predicate?: unknown;
7710
+ }) => Promise<{
7711
+ content: {
7712
+ type: "text";
7713
+ text: string;
7714
+ }[];
7715
+ isError: boolean;
7716
+ } | {
7717
+ content: {
7718
+ type: "text";
7719
+ text: string;
7720
+ }[];
7721
+ isError?: undefined;
7722
+ }>;
7723
+ } & {
7724
+ group: ToolGroup;
7725
+ };
7726
+ delete_segment: {
7727
+ description: string;
7728
+ schema: import("zod").ZodObject<{
7729
+ segmentId: import("zod").ZodString;
7730
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
7731
+ confirmInUse: import("zod").ZodOptional<import("zod").ZodBoolean>;
7732
+ }, "strip", import("zod").ZodTypeAny, {
7733
+ segmentId: string;
7734
+ scope?: "workspace" | "org" | undefined;
7735
+ confirmInUse?: boolean | undefined;
7736
+ }, {
7737
+ segmentId: string;
7738
+ scope?: "workspace" | "org" | undefined;
7739
+ confirmInUse?: boolean | undefined;
7740
+ }>;
7741
+ handler: (args: {
7742
+ segmentId: string;
7743
+ scope?: "workspace" | "org";
7744
+ confirmInUse?: boolean;
7745
+ }) => Promise<{
7746
+ content: {
7747
+ type: "text";
7748
+ text: string;
7749
+ }[];
7750
+ isError: boolean;
7751
+ } | {
7752
+ content: {
7753
+ type: "text";
7754
+ text: string;
7755
+ }[];
7756
+ isError?: undefined;
7757
+ }>;
7758
+ } & {
7759
+ group: ToolGroup;
7760
+ };
7518
7761
  plan_experiment: {
7519
7762
  description: string;
7520
7763
  schema: import("zod").ZodObject<{
@@ -7681,8 +7924,8 @@ export declare const toolDefinitions: {
7681
7924
  primaryMetricValueProperty: import("zod").ZodOptional<import("zod").ZodString>;
7682
7925
  }, "strip", import("zod").ZodTypeAny, {
7683
7926
  name: string;
7684
- predictionMagnitude?: string | undefined;
7685
7927
  preview?: boolean | undefined;
7928
+ predictionMagnitude?: string | undefined;
7686
7929
  surface?: "web" | "mobile" | "paid_channel" | undefined;
7687
7930
  beliefId?: string | undefined;
7688
7931
  hypothesisId?: string | undefined;
@@ -7721,8 +7964,8 @@ export declare const toolDefinitions: {
7721
7964
  primaryMetricKeyEventId?: string | undefined;
7722
7965
  }, {
7723
7966
  name: string;
7724
- predictionMagnitude?: string | undefined;
7725
7967
  preview?: boolean | undefined;
7968
+ predictionMagnitude?: string | undefined;
7726
7969
  surface?: "web" | "mobile" | "paid_channel" | undefined;
7727
7970
  beliefId?: string | undefined;
7728
7971
  hypothesisId?: string | undefined;