@apex-inc/mcp-server 0.32.0 → 0.34.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 (74) hide show
  1. package/README.md +19 -18
  2. package/dist/api-client.d.ts +5 -0
  3. package/dist/api-client.d.ts.map +1 -1
  4. package/dist/api-client.js +40 -24
  5. package/dist/api-client.js.map +1 -1
  6. package/dist/conflict-advisory.d.ts +29 -0
  7. package/dist/conflict-advisory.d.ts.map +1 -0
  8. package/dist/conflict-advisory.js +48 -0
  9. package/dist/conflict-advisory.js.map +1 -0
  10. package/dist/index.js +8 -5
  11. package/dist/index.js.map +1 -1
  12. package/dist/live-test-guard.d.ts +1 -0
  13. package/dist/live-test-guard.d.ts.map +1 -1
  14. package/dist/live-test-guard.js +4 -3
  15. package/dist/live-test-guard.js.map +1 -1
  16. package/dist/prompts.d.ts.map +1 -1
  17. package/dist/prompts.js +5 -7
  18. package/dist/prompts.js.map +1 -1
  19. package/dist/setup-catchup-tools.d.ts.map +1 -1
  20. package/dist/setup-catchup-tools.js +15 -3
  21. package/dist/setup-catchup-tools.js.map +1 -1
  22. package/dist/smoke-tools.d.ts +56 -0
  23. package/dist/smoke-tools.d.ts.map +1 -0
  24. package/dist/smoke-tools.js +261 -0
  25. package/dist/smoke-tools.js.map +1 -0
  26. package/dist/tool-catalog.d.ts +10 -0
  27. package/dist/tool-catalog.d.ts.map +1 -0
  28. package/dist/tool-catalog.js +36 -0
  29. package/dist/tool-catalog.js.map +1 -0
  30. package/dist/tool-groups.d.ts +5 -0
  31. package/dist/tool-groups.d.ts.map +1 -0
  32. package/dist/tool-groups.js +206 -0
  33. package/dist/tool-groups.js.map +1 -0
  34. package/dist/tool-shared.d.ts +300 -0
  35. package/dist/tool-shared.d.ts.map +1 -0
  36. package/dist/tool-shared.js +319 -0
  37. package/dist/tool-shared.js.map +1 -0
  38. package/dist/tools/accounts.d.ts +124 -0
  39. package/dist/tools/accounts.d.ts.map +1 -0
  40. package/dist/tools/accounts.js +99 -0
  41. package/dist/tools/accounts.js.map +1 -0
  42. package/dist/tools/adoption.d.ts +499 -0
  43. package/dist/tools/adoption.d.ts.map +1 -0
  44. package/dist/tools/adoption.js +447 -0
  45. package/dist/tools/adoption.js.map +1 -0
  46. package/dist/tools/context.d.ts +216 -0
  47. package/dist/tools/context.d.ts.map +1 -0
  48. package/dist/tools/context.js +328 -0
  49. package/dist/tools/context.js.map +1 -0
  50. package/dist/tools/experiments.d.ts +1066 -0
  51. package/dist/tools/experiments.d.ts.map +1 -0
  52. package/dist/tools/experiments.js +2090 -0
  53. package/dist/tools/experiments.js.map +1 -0
  54. package/dist/tools/letters.d.ts +1107 -0
  55. package/dist/tools/letters.d.ts.map +1 -0
  56. package/dist/tools/letters.js +1324 -0
  57. package/dist/tools/letters.js.map +1 -0
  58. package/dist/tools/measurement.d.ts +886 -0
  59. package/dist/tools/measurement.d.ts.map +1 -0
  60. package/dist/tools/measurement.js +1353 -0
  61. package/dist/tools/measurement.js.map +1 -0
  62. package/dist/tools/partners.d.ts +364 -0
  63. package/dist/tools/partners.d.ts.map +1 -0
  64. package/dist/tools/partners.js +199 -0
  65. package/dist/tools/partners.js.map +1 -0
  66. package/dist/tools.d.ts +3161 -2826
  67. package/dist/tools.d.ts.map +1 -1
  68. package/dist/tools.js +26 -6133
  69. package/dist/tools.js.map +1 -1
  70. package/package.json +3 -2
  71. package/skills/apex-communications/SKILL.md +5 -5
  72. package/skills/apex-experimentation/SKILL.md +11 -14
  73. package/skills/apex-growth-intelligence/SKILL.md +1 -1
  74. package/skills/apex-integration-cookbook/SKILL.md +1 -1
@@ -0,0 +1,886 @@
1
+ import { z } from "zod";
2
+ export declare const measurementTools: {
3
+ list_events: {
4
+ description: string;
5
+ schema: z.ZodObject<{
6
+ limit: z.ZodOptional<z.ZodNumber>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ limit?: number | undefined;
9
+ }, {
10
+ limit?: number | undefined;
11
+ }>;
12
+ handler: (args: {
13
+ limit?: number;
14
+ }) => Promise<{
15
+ content: {
16
+ type: "text";
17
+ text: string;
18
+ }[];
19
+ }>;
20
+ };
21
+ list_metrics: {
22
+ description: string;
23
+ schema: z.ZodObject<{
24
+ onlyMeasurable: z.ZodOptional<z.ZodBoolean>;
25
+ role: z.ZodOptional<z.ZodEnum<["goal", "guardrail"]>>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ role?: "goal" | "guardrail" | undefined;
28
+ onlyMeasurable?: boolean | undefined;
29
+ }, {
30
+ role?: "goal" | "guardrail" | undefined;
31
+ onlyMeasurable?: boolean | undefined;
32
+ }>;
33
+ handler: ({ onlyMeasurable, role }: {
34
+ onlyMeasurable?: boolean;
35
+ role?: "goal" | "guardrail";
36
+ }) => Promise<{
37
+ content: {
38
+ type: "text";
39
+ text: string;
40
+ }[];
41
+ }>;
42
+ };
43
+ get_growth_reality: {
44
+ description: string;
45
+ schema: z.ZodObject<{
46
+ days: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"all">]>>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ days?: number | "all" | undefined;
49
+ }, {
50
+ days?: number | "all" | undefined;
51
+ }>;
52
+ handler: ({ days }: {
53
+ days?: number | "all";
54
+ }) => Promise<{
55
+ content: {
56
+ type: "text";
57
+ text: string;
58
+ }[];
59
+ }>;
60
+ };
61
+ get_channel_economics: {
62
+ description: string;
63
+ schema: z.ZodObject<{
64
+ days: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"all">]>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ days?: number | "all" | undefined;
67
+ }, {
68
+ days?: number | "all" | undefined;
69
+ }>;
70
+ handler: ({ days }: {
71
+ days?: number | "all";
72
+ }) => Promise<{
73
+ content: {
74
+ type: "text";
75
+ text: string;
76
+ }[];
77
+ }>;
78
+ };
79
+ get_saas_recurring_revenue: {
80
+ description: string;
81
+ schema: z.ZodObject<{
82
+ months: z.ZodOptional<z.ZodNumber>;
83
+ start: z.ZodOptional<z.ZodString>;
84
+ end: z.ZodOptional<z.ZodString>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ months?: number | undefined;
87
+ start?: string | undefined;
88
+ end?: string | undefined;
89
+ }, {
90
+ months?: number | undefined;
91
+ start?: string | undefined;
92
+ end?: string | undefined;
93
+ }>;
94
+ handler: ({ months, start, end }: {
95
+ months?: number;
96
+ start?: string;
97
+ end?: string;
98
+ }) => Promise<{
99
+ content: {
100
+ type: "text";
101
+ text: string;
102
+ }[];
103
+ }>;
104
+ };
105
+ get_saas_expansion: {
106
+ description: string;
107
+ schema: z.ZodObject<{
108
+ months: z.ZodOptional<z.ZodNumber>;
109
+ start: z.ZodOptional<z.ZodString>;
110
+ end: z.ZodOptional<z.ZodString>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ months?: number | undefined;
113
+ start?: string | undefined;
114
+ end?: string | undefined;
115
+ }, {
116
+ months?: number | undefined;
117
+ start?: string | undefined;
118
+ end?: string | undefined;
119
+ }>;
120
+ handler: ({ months, start, end }: {
121
+ months?: number;
122
+ start?: string;
123
+ end?: string;
124
+ }) => Promise<{
125
+ content: {
126
+ type: "text";
127
+ text: string;
128
+ }[];
129
+ }>;
130
+ };
131
+ get_ecommerce_product_sales: {
132
+ description: string;
133
+ schema: z.ZodObject<{
134
+ days: z.ZodOptional<z.ZodNumber>;
135
+ start: z.ZodOptional<z.ZodString>;
136
+ end: z.ZodOptional<z.ZodString>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ days?: number | undefined;
139
+ start?: string | undefined;
140
+ end?: string | undefined;
141
+ }, {
142
+ days?: number | undefined;
143
+ start?: string | undefined;
144
+ end?: string | undefined;
145
+ }>;
146
+ handler: ({ days, start, end }: {
147
+ days?: number;
148
+ start?: string;
149
+ end?: string;
150
+ }) => Promise<{
151
+ content: {
152
+ type: "text";
153
+ text: string;
154
+ }[];
155
+ }>;
156
+ };
157
+ list_product_costs: {
158
+ description: string;
159
+ schema: z.ZodObject<{
160
+ uncostedOnly: z.ZodOptional<z.ZodBoolean>;
161
+ limit: z.ZodOptional<z.ZodNumber>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ limit?: number | undefined;
164
+ uncostedOnly?: boolean | undefined;
165
+ }, {
166
+ limit?: number | undefined;
167
+ uncostedOnly?: boolean | undefined;
168
+ }>;
169
+ handler: ({ uncostedOnly, limit, }: {
170
+ uncostedOnly?: boolean;
171
+ limit?: number;
172
+ }) => Promise<{
173
+ content: {
174
+ type: "text";
175
+ text: string;
176
+ }[];
177
+ }>;
178
+ };
179
+ set_product_cost: {
180
+ description: string;
181
+ schema: z.ZodObject<{
182
+ item_key: z.ZodString;
183
+ cost_usd: z.ZodNumber;
184
+ effective_from: z.ZodOptional<z.ZodString>;
185
+ name: z.ZodOptional<z.ZodString>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ item_key: string;
188
+ cost_usd: number;
189
+ name?: string | undefined;
190
+ effective_from?: string | undefined;
191
+ }, {
192
+ item_key: string;
193
+ cost_usd: number;
194
+ name?: string | undefined;
195
+ effective_from?: string | undefined;
196
+ }>;
197
+ handler: ({ item_key, cost_usd, effective_from, name, }: {
198
+ item_key: string;
199
+ cost_usd: number;
200
+ effective_from?: string;
201
+ name?: string;
202
+ }) => Promise<{
203
+ content: {
204
+ type: "text";
205
+ text: string;
206
+ }[];
207
+ }>;
208
+ };
209
+ upload_product_catalog: {
210
+ description: string;
211
+ schema: z.ZodObject<{
212
+ products: z.ZodArray<z.ZodObject<{
213
+ item_key: z.ZodString;
214
+ name: z.ZodOptional<z.ZodString>;
215
+ cost_usd: z.ZodOptional<z.ZodNumber>;
216
+ price_usd: z.ZodOptional<z.ZodNumber>;
217
+ effective_from: z.ZodOptional<z.ZodString>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ item_key: string;
220
+ name?: string | undefined;
221
+ cost_usd?: number | undefined;
222
+ effective_from?: string | undefined;
223
+ price_usd?: number | undefined;
224
+ }, {
225
+ item_key: string;
226
+ name?: string | undefined;
227
+ cost_usd?: number | undefined;
228
+ effective_from?: string | undefined;
229
+ price_usd?: number | undefined;
230
+ }>, "many">;
231
+ }, "strip", z.ZodTypeAny, {
232
+ products: {
233
+ item_key: string;
234
+ name?: string | undefined;
235
+ cost_usd?: number | undefined;
236
+ effective_from?: string | undefined;
237
+ price_usd?: number | undefined;
238
+ }[];
239
+ }, {
240
+ products: {
241
+ item_key: string;
242
+ name?: string | undefined;
243
+ cost_usd?: number | undefined;
244
+ effective_from?: string | undefined;
245
+ price_usd?: number | undefined;
246
+ }[];
247
+ }>;
248
+ handler: ({ products, }: {
249
+ products: Array<{
250
+ item_key: string;
251
+ name?: string;
252
+ cost_usd?: number;
253
+ price_usd?: number;
254
+ effective_from?: string;
255
+ }>;
256
+ }) => Promise<{
257
+ content: {
258
+ type: "text";
259
+ text: string;
260
+ }[];
261
+ }>;
262
+ };
263
+ get_ecommerce_returns: {
264
+ description: string;
265
+ schema: z.ZodObject<{
266
+ days: z.ZodOptional<z.ZodNumber>;
267
+ start: z.ZodOptional<z.ZodString>;
268
+ end: z.ZodOptional<z.ZodString>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ days?: number | undefined;
271
+ start?: string | undefined;
272
+ end?: string | undefined;
273
+ }, {
274
+ days?: number | undefined;
275
+ start?: string | undefined;
276
+ end?: string | undefined;
277
+ }>;
278
+ handler: ({ days, start, end }: {
279
+ days?: number;
280
+ start?: string;
281
+ end?: string;
282
+ }) => Promise<{
283
+ content: {
284
+ type: "text";
285
+ text: string;
286
+ }[];
287
+ }>;
288
+ };
289
+ get_marketplace_metrics: {
290
+ description: string;
291
+ schema: z.ZodObject<{
292
+ days: z.ZodOptional<z.ZodNumber>;
293
+ start: z.ZodOptional<z.ZodString>;
294
+ end: z.ZodOptional<z.ZodString>;
295
+ category: z.ZodOptional<z.ZodString>;
296
+ geo: z.ZodOptional<z.ZodString>;
297
+ priceBand: z.ZodOptional<z.ZodString>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ days?: number | undefined;
300
+ start?: string | undefined;
301
+ end?: string | undefined;
302
+ category?: string | undefined;
303
+ geo?: string | undefined;
304
+ priceBand?: string | undefined;
305
+ }, {
306
+ days?: number | undefined;
307
+ start?: string | undefined;
308
+ end?: string | undefined;
309
+ category?: string | undefined;
310
+ geo?: string | undefined;
311
+ priceBand?: string | undefined;
312
+ }>;
313
+ handler: ({ days, start, end, category, geo, priceBand, }: {
314
+ days?: number;
315
+ start?: string;
316
+ end?: string;
317
+ category?: string;
318
+ geo?: string;
319
+ priceBand?: string;
320
+ }) => Promise<{
321
+ content: {
322
+ type: "text";
323
+ text: string;
324
+ }[];
325
+ }>;
326
+ };
327
+ track_event: {
328
+ description: string;
329
+ schema: z.ZodObject<{
330
+ event: z.ZodString;
331
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ event: string;
334
+ properties?: Record<string, unknown> | undefined;
335
+ }, {
336
+ event: string;
337
+ properties?: Record<string, unknown> | undefined;
338
+ }>;
339
+ handler: ({ event, properties }: {
340
+ event: string;
341
+ properties?: Record<string, unknown>;
342
+ }) => Promise<{
343
+ content: {
344
+ type: "text";
345
+ text: string;
346
+ }[];
347
+ }>;
348
+ };
349
+ send_server_event: {
350
+ description: string;
351
+ schema: z.ZodObject<{
352
+ type: z.ZodString;
353
+ visitorId: z.ZodOptional<z.ZodString>;
354
+ email: z.ZodOptional<z.ZodString>;
355
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
356
+ environment: z.ZodOptional<z.ZodEnum<["production", "preview", "localhost"]>>;
357
+ release_channel: z.ZodOptional<z.ZodString>;
358
+ idempotencyKey: z.ZodOptional<z.ZodString>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ type: string;
361
+ email?: string | undefined;
362
+ environment?: "production" | "localhost" | "preview" | undefined;
363
+ data?: Record<string, unknown> | undefined;
364
+ visitorId?: string | undefined;
365
+ release_channel?: string | undefined;
366
+ idempotencyKey?: string | undefined;
367
+ }, {
368
+ type: string;
369
+ email?: string | undefined;
370
+ environment?: "production" | "localhost" | "preview" | undefined;
371
+ data?: Record<string, unknown> | undefined;
372
+ visitorId?: string | undefined;
373
+ release_channel?: string | undefined;
374
+ idempotencyKey?: string | undefined;
375
+ }>;
376
+ handler: ({ type, visitorId, email, data, environment, release_channel, idempotencyKey, }: {
377
+ type: string;
378
+ visitorId?: string;
379
+ email?: string;
380
+ data?: Record<string, unknown>;
381
+ environment?: "production" | "preview" | "localhost";
382
+ release_channel?: string;
383
+ idempotencyKey?: string;
384
+ }) => Promise<{
385
+ content: {
386
+ type: "text";
387
+ text: string;
388
+ }[];
389
+ }>;
390
+ };
391
+ identify_user: {
392
+ description: string;
393
+ schema: z.ZodObject<{
394
+ email: z.ZodString;
395
+ name: z.ZodOptional<z.ZodString>;
396
+ company: z.ZodOptional<z.ZodString>;
397
+ avatarUrl: z.ZodOptional<z.ZodString>;
398
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ email: string;
401
+ name?: string | undefined;
402
+ company?: string | undefined;
403
+ avatarUrl?: string | undefined;
404
+ metadata?: Record<string, unknown> | undefined;
405
+ }, {
406
+ email: string;
407
+ name?: string | undefined;
408
+ company?: string | undefined;
409
+ avatarUrl?: string | undefined;
410
+ metadata?: Record<string, unknown> | undefined;
411
+ }>;
412
+ handler: ({ email, name, company, avatarUrl, metadata }: {
413
+ email: string;
414
+ name?: string;
415
+ company?: string;
416
+ avatarUrl?: string;
417
+ metadata?: Record<string, unknown>;
418
+ }) => Promise<{
419
+ content: {
420
+ type: "text";
421
+ text: string;
422
+ }[];
423
+ }>;
424
+ };
425
+ get_schema: {
426
+ description: string;
427
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
428
+ handler: () => Promise<{
429
+ content: {
430
+ type: "text";
431
+ text: string;
432
+ }[];
433
+ }>;
434
+ };
435
+ map_attribute: {
436
+ description: string;
437
+ schema: z.ZodObject<{
438
+ entityKey: z.ZodString;
439
+ fieldName: z.ZodString;
440
+ canonicalName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ entityKey: string;
443
+ fieldName: string;
444
+ canonicalName?: string | null | undefined;
445
+ }, {
446
+ entityKey: string;
447
+ fieldName: string;
448
+ canonicalName?: string | null | undefined;
449
+ }>;
450
+ handler: ({ entityKey, fieldName, canonicalName, }: {
451
+ entityKey: string;
452
+ fieldName: string;
453
+ canonicalName?: string | null;
454
+ }) => Promise<{
455
+ content: {
456
+ type: "text";
457
+ text: string;
458
+ }[];
459
+ }>;
460
+ };
461
+ define_event: {
462
+ description: string;
463
+ schema: z.ZodObject<{
464
+ name: z.ZodString;
465
+ description: z.ZodString;
466
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
467
+ scope: z.ZodOptional<z.ZodEnum<["workspace", "org"]>>;
468
+ primary_metric: z.ZodOptional<z.ZodBoolean>;
469
+ recommended_transport: z.ZodOptional<z.ZodEnum<["client", "server", "either"]>>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ name: string;
472
+ description: string;
473
+ fields: Record<string, string>;
474
+ scope?: "org" | "workspace" | undefined;
475
+ primary_metric?: boolean | undefined;
476
+ recommended_transport?: "client" | "server" | "either" | undefined;
477
+ }, {
478
+ name: string;
479
+ description: string;
480
+ fields: Record<string, string>;
481
+ scope?: "org" | "workspace" | undefined;
482
+ primary_metric?: boolean | undefined;
483
+ recommended_transport?: "client" | "server" | "either" | undefined;
484
+ }>;
485
+ handler: (args: {
486
+ name: string;
487
+ description: string;
488
+ fields: Record<string, string>;
489
+ scope?: "workspace" | "org";
490
+ primaryMetric?: boolean;
491
+ recommendedTransport?: "client" | "server" | "either";
492
+ }) => Promise<{
493
+ content: {
494
+ type: "text";
495
+ text: string;
496
+ }[];
497
+ }>;
498
+ };
499
+ log_prediction: {
500
+ description: string;
501
+ schema: z.ZodObject<{
502
+ metric: z.ZodString;
503
+ expectedChange: z.ZodNumber;
504
+ confidence: z.ZodNumber;
505
+ timeHorizon: z.ZodOptional<z.ZodNumber>;
506
+ hypothesisId: z.ZodOptional<z.ZodString>;
507
+ beliefId: z.ZodOptional<z.ZodString>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ confidence: number;
510
+ metric: string;
511
+ expectedChange: number;
512
+ beliefId?: string | undefined;
513
+ hypothesisId?: string | undefined;
514
+ timeHorizon?: number | undefined;
515
+ }, {
516
+ confidence: number;
517
+ metric: string;
518
+ expectedChange: number;
519
+ beliefId?: string | undefined;
520
+ hypothesisId?: string | undefined;
521
+ timeHorizon?: number | undefined;
522
+ }>;
523
+ handler: (args: {
524
+ metric: string;
525
+ expectedChange: number;
526
+ confidence: number;
527
+ timeHorizon?: number;
528
+ hypothesisId?: string;
529
+ beliefId?: string;
530
+ }) => Promise<{
531
+ content: {
532
+ type: "text";
533
+ text: string;
534
+ }[];
535
+ }>;
536
+ };
537
+ get_event_taxonomy: {
538
+ description: string;
539
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
540
+ handler: () => Promise<{
541
+ content: {
542
+ type: "text";
543
+ text: string;
544
+ }[];
545
+ }>;
546
+ };
547
+ list_data_sources: {
548
+ description: string;
549
+ schema: z.ZodObject<{
550
+ includeArchived: z.ZodOptional<z.ZodBoolean>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ includeArchived?: boolean | undefined;
553
+ }, {
554
+ includeArchived?: boolean | undefined;
555
+ }>;
556
+ handler: ({ includeArchived }: {
557
+ includeArchived?: boolean;
558
+ }) => Promise<{
559
+ content: {
560
+ type: "text";
561
+ text: string;
562
+ }[];
563
+ }>;
564
+ };
565
+ create_data_source: {
566
+ description: string;
567
+ schema: z.ZodObject<{
568
+ kind: z.ZodEnum<["website", "ios", "android", "server", "pos", "kiosk", "extension", "other"]>;
569
+ name: z.ZodString;
570
+ }, "strip", z.ZodTypeAny, {
571
+ kind: "other" | "ios" | "android" | "website" | "server" | "pos" | "kiosk" | "extension";
572
+ name: string;
573
+ }, {
574
+ kind: "other" | "ios" | "android" | "website" | "server" | "pos" | "kiosk" | "extension";
575
+ name: string;
576
+ }>;
577
+ handler: ({ kind, name }: {
578
+ kind: string;
579
+ name: string;
580
+ }) => Promise<{
581
+ content: {
582
+ type: "text";
583
+ text: string;
584
+ }[];
585
+ }>;
586
+ };
587
+ get_data_source_health: {
588
+ description: string;
589
+ schema: z.ZodObject<{
590
+ id: z.ZodString;
591
+ }, "strip", z.ZodTypeAny, {
592
+ id: string;
593
+ }, {
594
+ id: string;
595
+ }>;
596
+ handler: ({ id }: {
597
+ id: string;
598
+ }) => Promise<{
599
+ content: {
600
+ type: "text";
601
+ text: string;
602
+ }[];
603
+ }>;
604
+ };
605
+ get_analytics_sources: {
606
+ description: string;
607
+ schema: z.ZodObject<{
608
+ days: z.ZodOptional<z.ZodNumber>;
609
+ }, "strip", z.ZodTypeAny, {
610
+ days?: number | undefined;
611
+ }, {
612
+ days?: number | undefined;
613
+ }>;
614
+ handler: ({ days }: {
615
+ days?: number;
616
+ }) => Promise<{
617
+ content: {
618
+ type: "text";
619
+ text: string;
620
+ }[];
621
+ }>;
622
+ };
623
+ get_analytics_hostnames: {
624
+ description: string;
625
+ schema: z.ZodObject<{
626
+ limit: z.ZodOptional<z.ZodNumber>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ limit?: number | undefined;
629
+ }, {
630
+ limit?: number | undefined;
631
+ }>;
632
+ handler: ({ limit }: {
633
+ limit?: number;
634
+ }) => Promise<{
635
+ content: {
636
+ type: "text";
637
+ text: string;
638
+ }[];
639
+ }>;
640
+ };
641
+ get_event_spec: {
642
+ description: string;
643
+ schema: z.ZodObject<{
644
+ event: z.ZodOptional<z.ZodString>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ event?: string | undefined;
647
+ }, {
648
+ event?: string | undefined;
649
+ }>;
650
+ handler: ({ event }: {
651
+ event?: string;
652
+ }) => Promise<{
653
+ content: {
654
+ type: "text";
655
+ text: string;
656
+ }[];
657
+ }>;
658
+ };
659
+ get_wiring_status: {
660
+ description: string;
661
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
662
+ handler: () => Promise<{
663
+ content: {
664
+ type: "text";
665
+ text: string;
666
+ }[];
667
+ }>;
668
+ };
669
+ propose_wiring_plan: {
670
+ description: string;
671
+ schema: z.ZodObject<{
672
+ events: z.ZodArray<z.ZodObject<{
673
+ name: z.ZodString;
674
+ surface: z.ZodEnum<["web", "mobile", "server"]>;
675
+ note: z.ZodOptional<z.ZodString>;
676
+ wired: z.ZodOptional<z.ZodBoolean>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ name: string;
679
+ surface: "web" | "mobile" | "server";
680
+ wired?: boolean | undefined;
681
+ note?: string | undefined;
682
+ }, {
683
+ name: string;
684
+ surface: "web" | "mobile" | "server";
685
+ wired?: boolean | undefined;
686
+ note?: string | undefined;
687
+ }>, "many">;
688
+ summary: z.ZodOptional<z.ZodString>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ events: {
691
+ name: string;
692
+ surface: "web" | "mobile" | "server";
693
+ wired?: boolean | undefined;
694
+ note?: string | undefined;
695
+ }[];
696
+ summary?: string | undefined;
697
+ }, {
698
+ events: {
699
+ name: string;
700
+ surface: "web" | "mobile" | "server";
701
+ wired?: boolean | undefined;
702
+ note?: string | undefined;
703
+ }[];
704
+ summary?: string | undefined;
705
+ }>;
706
+ handler: (args: {
707
+ events: Array<{
708
+ name: string;
709
+ surface: "web" | "mobile" | "server";
710
+ note?: string;
711
+ wired?: boolean;
712
+ }>;
713
+ summary?: string;
714
+ }) => Promise<{
715
+ content: {
716
+ type: "text";
717
+ text: string;
718
+ }[];
719
+ }>;
720
+ };
721
+ apex_test_event: {
722
+ description: string;
723
+ schema: z.ZodObject<{
724
+ eventName: z.ZodString;
725
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
726
+ visitorId: z.ZodOptional<z.ZodString>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ eventName: string;
729
+ visitorId?: string | undefined;
730
+ attributes?: Record<string, unknown> | undefined;
731
+ }, {
732
+ eventName: string;
733
+ visitorId?: string | undefined;
734
+ attributes?: Record<string, unknown> | undefined;
735
+ }>;
736
+ handler: (args: {
737
+ eventName: string;
738
+ attributes?: Record<string, unknown>;
739
+ visitorId?: string;
740
+ }) => Promise<{
741
+ content: {
742
+ type: "text";
743
+ text: string;
744
+ }[];
745
+ }>;
746
+ };
747
+ apex_recent_events: {
748
+ description: string;
749
+ schema: z.ZodObject<{
750
+ type: z.ZodOptional<z.ZodString>;
751
+ sinceMinutes: z.ZodOptional<z.ZodNumber>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ type?: string | undefined;
754
+ sinceMinutes?: number | undefined;
755
+ }, {
756
+ type?: string | undefined;
757
+ sinceMinutes?: number | undefined;
758
+ }>;
759
+ handler: (args: {
760
+ type?: string;
761
+ sinceMinutes?: number;
762
+ }) => Promise<{
763
+ content: {
764
+ type: "text";
765
+ text: string;
766
+ }[];
767
+ }>;
768
+ };
769
+ apex_health: {
770
+ description: string;
771
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
772
+ handler: () => Promise<{
773
+ content: {
774
+ type: "text";
775
+ text: string;
776
+ }[];
777
+ }>;
778
+ };
779
+ apex_spec_validate: {
780
+ description: string;
781
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
782
+ handler: () => Promise<{
783
+ content: {
784
+ type: "text";
785
+ text: string;
786
+ }[];
787
+ }>;
788
+ };
789
+ list_conversions: {
790
+ description: string;
791
+ schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
792
+ handler: () => Promise<{
793
+ content: {
794
+ type: "text";
795
+ text: string;
796
+ }[];
797
+ }>;
798
+ };
799
+ create_conversion: {
800
+ description: string;
801
+ schema: z.ZodObject<{
802
+ name: z.ZodString;
803
+ type: z.ZodEnum<["form_submit", "click", "pageview", "custom_event", "file_download", "engaged_time"]>;
804
+ eventName: z.ZodOptional<z.ZodString>;
805
+ selector: z.ZodOptional<z.ZodString>;
806
+ targetUrl: z.ZodOptional<z.ZodString>;
807
+ isPrimary: z.ZodOptional<z.ZodBoolean>;
808
+ }, "strip", z.ZodTypeAny, {
809
+ type: "form_submit" | "click" | "pageview" | "custom_event" | "file_download" | "engaged_time";
810
+ name: string;
811
+ eventName?: string | undefined;
812
+ targetUrl?: string | undefined;
813
+ selector?: string | undefined;
814
+ isPrimary?: boolean | undefined;
815
+ }, {
816
+ type: "form_submit" | "click" | "pageview" | "custom_event" | "file_download" | "engaged_time";
817
+ name: string;
818
+ eventName?: string | undefined;
819
+ targetUrl?: string | undefined;
820
+ selector?: string | undefined;
821
+ isPrimary?: boolean | undefined;
822
+ }>;
823
+ handler: (args: {
824
+ name: string;
825
+ type: string;
826
+ eventName?: string;
827
+ selector?: string;
828
+ targetUrl?: string;
829
+ isPrimary?: boolean;
830
+ }) => Promise<{
831
+ content: {
832
+ type: "text";
833
+ text: string;
834
+ }[];
835
+ }>;
836
+ };
837
+ set_primary_conversion: {
838
+ description: string;
839
+ schema: z.ZodObject<{
840
+ conversionId: z.ZodString;
841
+ }, "strip", z.ZodTypeAny, {
842
+ conversionId: string;
843
+ }, {
844
+ conversionId: string;
845
+ }>;
846
+ handler: ({ conversionId }: {
847
+ conversionId: string;
848
+ }) => Promise<{
849
+ content: {
850
+ type: "text";
851
+ text: string;
852
+ }[];
853
+ }>;
854
+ };
855
+ create_target: {
856
+ description: string;
857
+ schema: z.ZodObject<{
858
+ metric: z.ZodString;
859
+ target: z.ZodNumber;
860
+ deadline: z.ZodString;
861
+ sourceConversionId: z.ZodOptional<z.ZodString>;
862
+ }, "strip", z.ZodTypeAny, {
863
+ deadline: string;
864
+ metric: string;
865
+ target: number;
866
+ sourceConversionId?: string | undefined;
867
+ }, {
868
+ deadline: string;
869
+ metric: string;
870
+ target: number;
871
+ sourceConversionId?: string | undefined;
872
+ }>;
873
+ handler: (args: {
874
+ metric: string;
875
+ target: number;
876
+ deadline: string;
877
+ sourceConversionId?: string;
878
+ }) => Promise<{
879
+ content: {
880
+ type: "text";
881
+ text: string;
882
+ }[];
883
+ }>;
884
+ };
885
+ };
886
+ //# sourceMappingURL=measurement.d.ts.map