@apex-inc/mcp-server 0.71.0 → 0.73.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
@@ -199,19 +199,45 @@ export declare const toolDefinitions: {
199
199
  claim_links_subdomain: {
200
200
  description: string;
201
201
  schema: import("zod").ZodObject<{
202
- subdomain: import("zod").ZodString;
202
+ subdomain: import("zod").ZodOptional<import("zod").ZodString>;
203
+ retirePrevious: import("zod").ZodOptional<import("zod").ZodBoolean>;
204
+ retireSubdomain: import("zod").ZodOptional<import("zod").ZodString>;
203
205
  }, "strip", import("zod").ZodTypeAny, {
204
- subdomain: string;
206
+ subdomain?: string | undefined;
207
+ retirePrevious?: boolean | undefined;
208
+ retireSubdomain?: string | undefined;
205
209
  }, {
206
- subdomain: string;
210
+ subdomain?: string | undefined;
211
+ retirePrevious?: boolean | undefined;
212
+ retireSubdomain?: string | undefined;
207
213
  }>;
208
- handler: ({ subdomain }: {
209
- subdomain: string;
214
+ handler: (args: {
215
+ subdomain?: string;
216
+ retirePrevious?: boolean;
217
+ retireSubdomain?: string;
210
218
  }) => Promise<{
211
219
  content: {
212
220
  type: "text";
213
221
  text: string;
214
222
  }[];
223
+ } | {
224
+ isError: boolean;
225
+ content: {
226
+ type: "text";
227
+ text: string;
228
+ }[];
229
+ }>;
230
+ } & {
231
+ group: ToolGroup;
232
+ };
233
+ rotate_public_workspace_id: {
234
+ description: string;
235
+ schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
236
+ handler: () => Promise<{
237
+ content: {
238
+ type: "text";
239
+ text: string;
240
+ }[];
215
241
  }>;
216
242
  } & {
217
243
  group: ToolGroup;
@@ -298,8 +324,16 @@ export declare const toolDefinitions: {
298
324
  };
299
325
  get_team_traffic: {
300
326
  description: string;
301
- schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
302
- handler: () => Promise<{
327
+ schema: import("zod").ZodObject<{
328
+ host: import("zod").ZodOptional<import("zod").ZodString>;
329
+ }, "strip", import("zod").ZodTypeAny, {
330
+ host?: string | undefined;
331
+ }, {
332
+ host?: string | undefined;
333
+ }>;
334
+ handler: (args?: {
335
+ host?: string;
336
+ }) => Promise<{
303
337
  content: {
304
338
  type: "text";
305
339
  text: string;
@@ -314,11 +348,14 @@ export declare const toolDefinitions: {
314
348
  addMyAddress: import("zod").ZodOptional<import("zod").ZodBoolean>;
315
349
  addresses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
316
350
  browserLink: import("zod").ZodOptional<import("zod").ZodEnum<["create", "remove"]>>;
351
+ host: import("zod").ZodOptional<import("zod").ZodString>;
317
352
  }, "strip", import("zod").ZodTypeAny, {
353
+ host?: string | undefined;
318
354
  addMyAddress?: boolean | undefined;
319
355
  addresses?: string[] | undefined;
320
356
  browserLink?: "create" | "remove" | undefined;
321
357
  }, {
358
+ host?: string | undefined;
322
359
  addMyAddress?: boolean | undefined;
323
360
  addresses?: string[] | undefined;
324
361
  browserLink?: "create" | "remove" | undefined;
@@ -327,6 +364,7 @@ export declare const toolDefinitions: {
327
364
  addMyAddress?: boolean;
328
365
  addresses?: string[];
329
366
  browserLink?: "create" | "remove";
367
+ host?: string;
330
368
  }) => Promise<{
331
369
  content: {
332
370
  type: "text";
@@ -1369,6 +1407,7 @@ export declare const toolDefinitions: {
1369
1407
  placement: import("zod").ZodOptional<import("zod").ZodEnum<["paid-ad", "social-post", "social-bio", "other"]>>;
1370
1408
  platform: import("zod").ZodOptional<import("zod").ZodString>;
1371
1409
  source: import("zod").ZodOptional<import("zod").ZodString>;
1410
+ medium: import("zod").ZodOptional<import("zod").ZodString>;
1372
1411
  slug: import("zod").ZodOptional<import("zod").ZodString>;
1373
1412
  name: import("zod").ZodOptional<import("zod").ZodString>;
1374
1413
  campaignName: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1387,6 +1426,7 @@ export declare const toolDefinitions: {
1387
1426
  storeRouting?: boolean | undefined;
1388
1427
  placement?: "other" | "paid-ad" | "social-post" | "social-bio" | undefined;
1389
1428
  source?: string | undefined;
1429
+ medium?: string | undefined;
1390
1430
  campaignName?: string | undefined;
1391
1431
  variant?: string | undefined;
1392
1432
  previewTitle?: string | undefined;
@@ -1403,6 +1443,7 @@ export declare const toolDefinitions: {
1403
1443
  storeRouting?: boolean | undefined;
1404
1444
  placement?: "other" | "paid-ad" | "social-post" | "social-bio" | undefined;
1405
1445
  source?: string | undefined;
1446
+ medium?: string | undefined;
1406
1447
  campaignName?: string | undefined;
1407
1448
  variant?: string | undefined;
1408
1449
  previewTitle?: string | undefined;
@@ -1419,6 +1460,7 @@ export declare const toolDefinitions: {
1419
1460
  placement?: "other" | "paid-ad" | "social-post" | "social-bio";
1420
1461
  platform?: string;
1421
1462
  source?: string;
1463
+ medium?: string;
1422
1464
  slug?: string;
1423
1465
  name?: string;
1424
1466
  campaignName?: string;
@@ -4273,22 +4315,25 @@ export declare const toolDefinitions: {
4273
4315
  description: import("zod").ZodString;
4274
4316
  fields: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
4275
4317
  scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
4276
- primary_metric: import("zod").ZodOptional<import("zod").ZodBoolean>;
4277
- recommended_transport: import("zod").ZodOptional<import("zod").ZodEnum<["client", "server", "either"]>>;
4318
+ primaryMetric: import("zod").ZodOptional<import("zod").ZodBoolean>;
4319
+ recommendedTransport: import("zod").ZodOptional<import("zod").ZodEnum<["client", "server", "either"]>>;
4320
+ publish: import("zod").ZodOptional<import("zod").ZodBoolean>;
4278
4321
  }, "strip", import("zod").ZodTypeAny, {
4279
4322
  name: string;
4280
4323
  description: string;
4281
4324
  fields: Record<string, string>;
4325
+ publish?: boolean | undefined;
4326
+ primaryMetric?: boolean | undefined;
4282
4327
  scope?: "workspace" | "org" | undefined;
4283
- primary_metric?: boolean | undefined;
4284
- recommended_transport?: "server" | "client" | "either" | undefined;
4328
+ recommendedTransport?: "server" | "client" | "either" | undefined;
4285
4329
  }, {
4286
4330
  name: string;
4287
4331
  description: string;
4288
4332
  fields: Record<string, string>;
4333
+ publish?: boolean | undefined;
4334
+ primaryMetric?: boolean | undefined;
4289
4335
  scope?: "workspace" | "org" | undefined;
4290
- primary_metric?: boolean | undefined;
4291
- recommended_transport?: "server" | "client" | "either" | undefined;
4336
+ recommendedTransport?: "server" | "client" | "either" | undefined;
4292
4337
  }>;
4293
4338
  handler: (args: {
4294
4339
  name: string;
@@ -4297,7 +4342,79 @@ export declare const toolDefinitions: {
4297
4342
  scope?: "workspace" | "org";
4298
4343
  primaryMetric?: boolean;
4299
4344
  recommendedTransport?: "client" | "server" | "either";
4345
+ publish?: boolean;
4346
+ }) => Promise<{
4347
+ isError?: boolean | undefined;
4348
+ content: {
4349
+ type: "text";
4350
+ text: string;
4351
+ }[];
4352
+ }>;
4353
+ } & {
4354
+ group: ToolGroup;
4355
+ };
4356
+ update_event: {
4357
+ description: string;
4358
+ schema: import("zod").ZodObject<{
4359
+ name: import("zod").ZodString;
4360
+ description: import("zod").ZodOptional<import("zod").ZodString>;
4361
+ domain: import("zod").ZodOptional<import("zod").ZodString>;
4362
+ fields: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
4363
+ primaryMetric: import("zod").ZodOptional<import("zod").ZodBoolean>;
4364
+ recommendedTransport: import("zod").ZodOptional<import("zod").ZodEnum<["client", "server", "either"]>>;
4365
+ revenueRole: import("zod").ZodOptional<import("zod").ZodEnum<["none", "primary", "supporting"]>>;
4366
+ status: import("zod").ZodOptional<import("zod").ZodEnum<["draft", "published"]>>;
4367
+ }, "strip", import("zod").ZodTypeAny, {
4368
+ name: string;
4369
+ status?: "draft" | "published" | undefined;
4370
+ description?: string | undefined;
4371
+ domain?: string | undefined;
4372
+ primaryMetric?: boolean | undefined;
4373
+ fields?: Record<string, string> | undefined;
4374
+ recommendedTransport?: "server" | "client" | "either" | undefined;
4375
+ revenueRole?: "none" | "primary" | "supporting" | undefined;
4376
+ }, {
4377
+ name: string;
4378
+ status?: "draft" | "published" | undefined;
4379
+ description?: string | undefined;
4380
+ domain?: string | undefined;
4381
+ primaryMetric?: boolean | undefined;
4382
+ fields?: Record<string, string> | undefined;
4383
+ recommendedTransport?: "server" | "client" | "either" | undefined;
4384
+ revenueRole?: "none" | "primary" | "supporting" | undefined;
4385
+ }>;
4386
+ handler: (args: {
4387
+ name: string;
4388
+ description?: string;
4389
+ domain?: string;
4390
+ fields?: Record<string, string>;
4391
+ primaryMetric?: boolean;
4392
+ recommendedTransport?: "client" | "server" | "either";
4393
+ revenueRole?: "none" | "primary" | "supporting";
4394
+ status?: "draft" | "published";
4395
+ }) => Promise<{
4396
+ isError?: boolean | undefined;
4397
+ content: {
4398
+ type: "text";
4399
+ text: string;
4400
+ }[];
4401
+ }>;
4402
+ } & {
4403
+ group: ToolGroup;
4404
+ };
4405
+ publish_event_definition: {
4406
+ description: string;
4407
+ schema: import("zod").ZodObject<{
4408
+ name: import("zod").ZodString;
4409
+ }, "strip", import("zod").ZodTypeAny, {
4410
+ name: string;
4411
+ }, {
4412
+ name: string;
4413
+ }>;
4414
+ handler: ({ name }: {
4415
+ name: string;
4300
4416
  }) => Promise<{
4417
+ isError?: boolean | undefined;
4301
4418
  content: {
4302
4419
  type: "text";
4303
4420
  text: string;
@@ -4656,6 +4773,7 @@ export declare const toolDefinitions: {
4656
4773
  selector: import("zod").ZodOptional<import("zod").ZodString>;
4657
4774
  targetUrl: import("zod").ZodOptional<import("zod").ZodString>;
4658
4775
  isPrimary: import("zod").ZodOptional<import("zod").ZodBoolean>;
4776
+ allowDuplicate: import("zod").ZodOptional<import("zod").ZodBoolean>;
4659
4777
  }, "strip", import("zod").ZodTypeAny, {
4660
4778
  type: "click" | "form_submit" | "custom_event" | "pageview" | "file_download" | "engaged_time";
4661
4779
  name: string;
@@ -4663,6 +4781,7 @@ export declare const toolDefinitions: {
4663
4781
  targetUrl?: string | undefined;
4664
4782
  selector?: string | undefined;
4665
4783
  isPrimary?: boolean | undefined;
4784
+ allowDuplicate?: boolean | undefined;
4666
4785
  }, {
4667
4786
  type: "click" | "form_submit" | "custom_event" | "pageview" | "file_download" | "engaged_time";
4668
4787
  name: string;
@@ -4670,6 +4789,7 @@ export declare const toolDefinitions: {
4670
4789
  targetUrl?: string | undefined;
4671
4790
  selector?: string | undefined;
4672
4791
  isPrimary?: boolean | undefined;
4792
+ allowDuplicate?: boolean | undefined;
4673
4793
  }>;
4674
4794
  handler: (args: {
4675
4795
  name: string;
@@ -4678,7 +4798,9 @@ export declare const toolDefinitions: {
4678
4798
  selector?: string;
4679
4799
  targetUrl?: string;
4680
4800
  isPrimary?: boolean;
4801
+ allowDuplicate?: boolean;
4681
4802
  }) => Promise<{
4803
+ isError?: boolean | undefined;
4682
4804
  content: {
4683
4805
  type: "text";
4684
4806
  text: string;
@@ -4763,12 +4885,12 @@ export declare const toolDefinitions: {
4763
4885
  percentage: import("zod").ZodOptional<import("zod").ZodNumber>;
4764
4886
  appliesTo: import("zod").ZodEnum<["install", "purchase", "subscription"]>;
4765
4887
  }, "strip", import("zod").ZodTypeAny, {
4766
- type: "revshare" | "cpa";
4888
+ type: "cpa" | "revshare";
4767
4889
  appliesTo: "purchase" | "install" | "subscription";
4768
4890
  percentage?: number | undefined;
4769
4891
  amountUsd?: number | undefined;
4770
4892
  }, {
4771
- type: "revshare" | "cpa";
4893
+ type: "cpa" | "revshare";
4772
4894
  appliesTo: "purchase" | "install" | "subscription";
4773
4895
  percentage?: number | undefined;
4774
4896
  amountUsd?: number | undefined;
@@ -4783,7 +4905,7 @@ export declare const toolDefinitions: {
4783
4905
  vertical: "ecommerce" | "marketplace" | "other" | "saas" | "fintech" | "hardware" | "enterprise" | "creator_tools";
4784
4906
  publishImmediately: boolean;
4785
4907
  commissionStructure: {
4786
- type: "revshare" | "cpa";
4908
+ type: "cpa" | "revshare";
4787
4909
  appliesTo: "purchase" | "install" | "subscription";
4788
4910
  percentage?: number | undefined;
4789
4911
  amountUsd?: number | undefined;
@@ -4797,7 +4919,7 @@ export declare const toolDefinitions: {
4797
4919
  name: string;
4798
4920
  vertical: "ecommerce" | "marketplace" | "other" | "saas" | "fintech" | "hardware" | "enterprise" | "creator_tools";
4799
4921
  commissionStructure: {
4800
- type: "revshare" | "cpa";
4922
+ type: "cpa" | "revshare";
4801
4923
  appliesTo: "purchase" | "install" | "subscription";
4802
4924
  percentage?: number | undefined;
4803
4925
  amountUsd?: number | undefined;
@@ -4931,12 +5053,12 @@ export declare const toolDefinitions: {
4931
5053
  percentage: import("zod").ZodOptional<import("zod").ZodNumber>;
4932
5054
  appliesTo: import("zod").ZodEnum<["install", "purchase", "subscription"]>;
4933
5055
  }, "strip", import("zod").ZodTypeAny, {
4934
- type: "revshare" | "cpa";
5056
+ type: "cpa" | "revshare";
4935
5057
  appliesTo: "purchase" | "install" | "subscription";
4936
5058
  percentage?: number | undefined;
4937
5059
  amountUsd?: number | undefined;
4938
5060
  }, {
4939
- type: "revshare" | "cpa";
5061
+ type: "cpa" | "revshare";
4940
5062
  appliesTo: "purchase" | "install" | "subscription";
4941
5063
  percentage?: number | undefined;
4942
5064
  amountUsd?: number | undefined;
@@ -4944,7 +5066,7 @@ export declare const toolDefinitions: {
4944
5066
  reason: import("zod").ZodOptional<import("zod").ZodString>;
4945
5067
  }, "strip", import("zod").ZodTypeAny, {
4946
5068
  commissionStructure: {
4947
- type: "revshare" | "cpa";
5069
+ type: "cpa" | "revshare";
4948
5070
  appliesTo: "purchase" | "install" | "subscription";
4949
5071
  percentage?: number | undefined;
4950
5072
  amountUsd?: number | undefined;
@@ -4953,7 +5075,7 @@ export declare const toolDefinitions: {
4953
5075
  reason?: string | undefined;
4954
5076
  }, {
4955
5077
  commissionStructure: {
4956
- type: "revshare" | "cpa";
5078
+ type: "cpa" | "revshare";
4957
5079
  appliesTo: "purchase" | "install" | "subscription";
4958
5080
  percentage?: number | undefined;
4959
5081
  amountUsd?: number | undefined;
@@ -5012,26 +5134,26 @@ export declare const toolDefinitions: {
5012
5134
  percentage: import("zod").ZodOptional<import("zod").ZodNumber>;
5013
5135
  appliesTo: import("zod").ZodEnum<["install", "purchase", "subscription"]>;
5014
5136
  }, "strip", import("zod").ZodTypeAny, {
5015
- type: "revshare" | "cpa";
5137
+ type: "cpa" | "revshare";
5016
5138
  appliesTo: "purchase" | "install" | "subscription";
5017
5139
  percentage?: number | undefined;
5018
5140
  amountUsd?: number | undefined;
5019
5141
  }, {
5020
- type: "revshare" | "cpa";
5142
+ type: "cpa" | "revshare";
5021
5143
  appliesTo: "purchase" | "install" | "subscription";
5022
5144
  percentage?: number | undefined;
5023
5145
  amountUsd?: number | undefined;
5024
5146
  }>;
5025
5147
  }, "strip", import("zod").ZodTypeAny, {
5026
5148
  commissionStructure: {
5027
- type: "revshare" | "cpa";
5149
+ type: "cpa" | "revshare";
5028
5150
  appliesTo: "purchase" | "install" | "subscription";
5029
5151
  percentage?: number | undefined;
5030
5152
  amountUsd?: number | undefined;
5031
5153
  };
5032
5154
  }, {
5033
5155
  commissionStructure: {
5034
- type: "revshare" | "cpa";
5156
+ type: "cpa" | "revshare";
5035
5157
  appliesTo: "purchase" | "install" | "subscription";
5036
5158
  percentage?: number | undefined;
5037
5159
  amountUsd?: number | undefined;
@@ -5044,7 +5166,7 @@ export declare const toolDefinitions: {
5044
5166
  inviterMessage?: string | undefined;
5045
5167
  customRate?: {
5046
5168
  commissionStructure: {
5047
- type: "revshare" | "cpa";
5169
+ type: "cpa" | "revshare";
5048
5170
  appliesTo: "purchase" | "install" | "subscription";
5049
5171
  percentage?: number | undefined;
5050
5172
  amountUsd?: number | undefined;
@@ -5057,7 +5179,7 @@ export declare const toolDefinitions: {
5057
5179
  inviterMessage?: string | undefined;
5058
5180
  customRate?: {
5059
5181
  commissionStructure: {
5060
- type: "revshare" | "cpa";
5182
+ type: "cpa" | "revshare";
5061
5183
  appliesTo: "purchase" | "install" | "subscription";
5062
5184
  percentage?: number | undefined;
5063
5185
  amountUsd?: number | undefined;
@@ -6627,16 +6749,20 @@ export declare const toolDefinitions: {
6627
6749
  schema: import("zod").ZodObject<{
6628
6750
  name: import("zod").ZodOptional<import("zod").ZodString>;
6629
6751
  audience_bucket: import("zod").ZodOptional<import("zod").ZodEnum<["production", "beta", "dev"]>>;
6752
+ attributionWindowDays: import("zod").ZodOptional<import("zod").ZodNumber>;
6630
6753
  }, "strip", import("zod").ZodTypeAny, {
6631
6754
  name?: string | undefined;
6755
+ attributionWindowDays?: number | undefined;
6632
6756
  audience_bucket?: "production" | "beta" | "dev" | undefined;
6633
6757
  }, {
6634
6758
  name?: string | undefined;
6759
+ attributionWindowDays?: number | undefined;
6635
6760
  audience_bucket?: "production" | "beta" | "dev" | undefined;
6636
6761
  }>;
6637
- handler: ({ name, audience_bucket }: {
6762
+ handler: ({ name, audience_bucket, attributionWindowDays, }: {
6638
6763
  name?: string;
6639
6764
  audience_bucket?: "production" | "beta" | "dev";
6765
+ attributionWindowDays?: number;
6640
6766
  }) => Promise<{
6641
6767
  content: {
6642
6768
  type: "text";
@@ -7514,6 +7640,205 @@ export declare const toolDefinitions: {
7514
7640
  } & {
7515
7641
  group: ToolGroup;
7516
7642
  };
7643
+ update_segment: {
7644
+ description: string;
7645
+ schema: import("zod").ZodObject<{
7646
+ segmentId: import("zod").ZodString;
7647
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
7648
+ name: import("zod").ZodOptional<import("zod").ZodString>;
7649
+ description: import("zod").ZodOptional<import("zod").ZodString>;
7650
+ conditions: import("zod").ZodOptional<import("zod").ZodObject<{
7651
+ match: import("zod").ZodEnum<["all", "any"]>;
7652
+ groups: import("zod").ZodArray<import("zod").ZodObject<{
7653
+ match: import("zod").ZodEnum<["all", "any"]>;
7654
+ conditions: import("zod").ZodArray<import("zod").ZodObject<{
7655
+ verb: import("zod").ZodOptional<import("zod").ZodEnum<["has", "hasnt"]>>;
7656
+ event: import("zod").ZodOptional<import("zod").ZodString>;
7657
+ key_event_id: import("zod").ZodOptional<import("zod").ZodString>;
7658
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
7659
+ window_days: import("zod").ZodOptional<import("zod").ZodNumber>;
7660
+ attribute: import("zod").ZodOptional<import("zod").ZodString>;
7661
+ op: import("zod").ZodOptional<import("zod").ZodEnum<["is", "is_not", "exists"]>>;
7662
+ value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
7663
+ }, "strip", import("zod").ZodTypeAny, {
7664
+ event?: string | undefined;
7665
+ value?: string | number | boolean | undefined;
7666
+ key_event_id?: string | undefined;
7667
+ scope?: "account" | "person" | undefined;
7668
+ attribute?: string | undefined;
7669
+ window_days?: number | undefined;
7670
+ verb?: "has" | "hasnt" | undefined;
7671
+ op?: "exists" | "is" | "is_not" | undefined;
7672
+ }, {
7673
+ event?: string | undefined;
7674
+ value?: string | number | boolean | undefined;
7675
+ key_event_id?: string | undefined;
7676
+ scope?: "account" | "person" | undefined;
7677
+ attribute?: string | undefined;
7678
+ window_days?: number | undefined;
7679
+ verb?: "has" | "hasnt" | undefined;
7680
+ op?: "exists" | "is" | "is_not" | undefined;
7681
+ }>, "many">;
7682
+ }, "strip", import("zod").ZodTypeAny, {
7683
+ match: "all" | "any";
7684
+ conditions: {
7685
+ event?: string | undefined;
7686
+ value?: string | number | boolean | undefined;
7687
+ key_event_id?: string | undefined;
7688
+ scope?: "account" | "person" | undefined;
7689
+ attribute?: string | undefined;
7690
+ window_days?: number | undefined;
7691
+ verb?: "has" | "hasnt" | undefined;
7692
+ op?: "exists" | "is" | "is_not" | undefined;
7693
+ }[];
7694
+ }, {
7695
+ match: "all" | "any";
7696
+ conditions: {
7697
+ event?: string | undefined;
7698
+ value?: string | number | boolean | undefined;
7699
+ key_event_id?: string | undefined;
7700
+ scope?: "account" | "person" | undefined;
7701
+ attribute?: string | undefined;
7702
+ window_days?: number | undefined;
7703
+ verb?: "has" | "hasnt" | undefined;
7704
+ op?: "exists" | "is" | "is_not" | undefined;
7705
+ }[];
7706
+ }>, "many">;
7707
+ }, "strip", import("zod").ZodTypeAny, {
7708
+ match: "all" | "any";
7709
+ groups: {
7710
+ match: "all" | "any";
7711
+ conditions: {
7712
+ event?: string | undefined;
7713
+ value?: string | number | boolean | undefined;
7714
+ key_event_id?: string | undefined;
7715
+ scope?: "account" | "person" | undefined;
7716
+ attribute?: string | undefined;
7717
+ window_days?: number | undefined;
7718
+ verb?: "has" | "hasnt" | undefined;
7719
+ op?: "exists" | "is" | "is_not" | undefined;
7720
+ }[];
7721
+ }[];
7722
+ }, {
7723
+ match: "all" | "any";
7724
+ groups: {
7725
+ match: "all" | "any";
7726
+ conditions: {
7727
+ event?: string | undefined;
7728
+ value?: string | number | boolean | undefined;
7729
+ key_event_id?: string | undefined;
7730
+ scope?: "account" | "person" | undefined;
7731
+ attribute?: string | undefined;
7732
+ window_days?: number | undefined;
7733
+ verb?: "has" | "hasnt" | undefined;
7734
+ op?: "exists" | "is" | "is_not" | undefined;
7735
+ }[];
7736
+ }[];
7737
+ }>>;
7738
+ predicate: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
7739
+ }, "strip", import("zod").ZodTypeAny, {
7740
+ segmentId: string;
7741
+ name?: string | undefined;
7742
+ description?: string | undefined;
7743
+ scope?: "workspace" | "org" | undefined;
7744
+ conditions?: {
7745
+ match: "all" | "any";
7746
+ groups: {
7747
+ match: "all" | "any";
7748
+ conditions: {
7749
+ event?: string | undefined;
7750
+ value?: string | number | boolean | undefined;
7751
+ key_event_id?: string | undefined;
7752
+ scope?: "account" | "person" | undefined;
7753
+ attribute?: string | undefined;
7754
+ window_days?: number | undefined;
7755
+ verb?: "has" | "hasnt" | undefined;
7756
+ op?: "exists" | "is" | "is_not" | undefined;
7757
+ }[];
7758
+ }[];
7759
+ } | undefined;
7760
+ predicate?: Record<string, unknown> | undefined;
7761
+ }, {
7762
+ segmentId: string;
7763
+ name?: string | undefined;
7764
+ description?: string | undefined;
7765
+ scope?: "workspace" | "org" | undefined;
7766
+ conditions?: {
7767
+ match: "all" | "any";
7768
+ groups: {
7769
+ match: "all" | "any";
7770
+ conditions: {
7771
+ event?: string | undefined;
7772
+ value?: string | number | boolean | undefined;
7773
+ key_event_id?: string | undefined;
7774
+ scope?: "account" | "person" | undefined;
7775
+ attribute?: string | undefined;
7776
+ window_days?: number | undefined;
7777
+ verb?: "has" | "hasnt" | undefined;
7778
+ op?: "exists" | "is" | "is_not" | undefined;
7779
+ }[];
7780
+ }[];
7781
+ } | undefined;
7782
+ predicate?: Record<string, unknown> | undefined;
7783
+ }>;
7784
+ handler: (args: {
7785
+ segmentId: string;
7786
+ scope?: "workspace" | "org";
7787
+ name?: string;
7788
+ description?: string;
7789
+ conditions?: unknown;
7790
+ predicate?: unknown;
7791
+ }) => Promise<{
7792
+ content: {
7793
+ type: "text";
7794
+ text: string;
7795
+ }[];
7796
+ isError: boolean;
7797
+ } | {
7798
+ content: {
7799
+ type: "text";
7800
+ text: string;
7801
+ }[];
7802
+ isError?: undefined;
7803
+ }>;
7804
+ } & {
7805
+ group: ToolGroup;
7806
+ };
7807
+ delete_segment: {
7808
+ description: string;
7809
+ schema: import("zod").ZodObject<{
7810
+ segmentId: import("zod").ZodString;
7811
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
7812
+ confirmInUse: import("zod").ZodOptional<import("zod").ZodBoolean>;
7813
+ }, "strip", import("zod").ZodTypeAny, {
7814
+ segmentId: string;
7815
+ scope?: "workspace" | "org" | undefined;
7816
+ confirmInUse?: boolean | undefined;
7817
+ }, {
7818
+ segmentId: string;
7819
+ scope?: "workspace" | "org" | undefined;
7820
+ confirmInUse?: boolean | undefined;
7821
+ }>;
7822
+ handler: (args: {
7823
+ segmentId: string;
7824
+ scope?: "workspace" | "org";
7825
+ confirmInUse?: boolean;
7826
+ }) => Promise<{
7827
+ content: {
7828
+ type: "text";
7829
+ text: string;
7830
+ }[];
7831
+ isError: boolean;
7832
+ } | {
7833
+ content: {
7834
+ type: "text";
7835
+ text: string;
7836
+ }[];
7837
+ isError?: undefined;
7838
+ }>;
7839
+ } & {
7840
+ group: ToolGroup;
7841
+ };
7517
7842
  plan_experiment: {
7518
7843
  description: string;
7519
7844
  schema: import("zod").ZodObject<{