@apex-inc/mcp-server 0.28.1 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adoption-compose.d.ts +1 -1
- package/dist/adoption-compose.d.ts.map +1 -1
- package/dist/adoption-compose.js +8 -3
- package/dist/adoption-compose.js.map +1 -1
- package/dist/api-client.d.ts +9 -0
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +36 -1
- package/dist/api-client.js.map +1 -1
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/live-test-guard.d.ts +45 -0
- package/dist/live-test-guard.d.ts.map +1 -0
- package/dist/live-test-guard.js +78 -0
- package/dist/live-test-guard.js.map +1 -0
- package/dist/setup-catchup-tools.d.ts +633 -0
- package/dist/setup-catchup-tools.d.ts.map +1 -0
- package/dist/setup-catchup-tools.js +506 -0
- package/dist/setup-catchup-tools.js.map +1 -0
- package/dist/tools.d.ts +784 -47
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +253 -18
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
- package/skills/apex-adoption/SKILL.md +14 -3
- package/skills/apex-communications/SKILL.md +8 -5
- package/skills/apex-experimentation/SKILL.md +3 -0
- package/skills/apex-integration-cookbook/SKILL.md +11 -0
- package/skills/apex-partner-network/SKILL.md +1 -0
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP catch-up tools for Set up Apex. Each tool wraps a hub route.
|
|
3
|
+
* Steps still finish when the real thing happens — these tools never
|
|
4
|
+
* stamp the rail complete.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from "zod";
|
|
7
|
+
declare const VERTICALS: readonly ["b2b-saas", "ecommerce", "marketplace", "agency", "other"];
|
|
8
|
+
declare const CONVERSION_MODELS: readonly ["sales-assisted", "self-serve", "transaction", "two-sided", "hybrid"];
|
|
9
|
+
declare const CONSENT_BANNERS: readonly ["standard", "gcm", "onetrust", "cookiebot", "tcf", "custom", "none"];
|
|
10
|
+
export declare const setupCatchupTools: {
|
|
11
|
+
update_organization: {
|
|
12
|
+
description: string;
|
|
13
|
+
schema: z.ZodObject<{
|
|
14
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: string;
|
|
18
|
+
orgId?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
name: string;
|
|
21
|
+
orgId?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
handler: ({ orgId, name }: {
|
|
24
|
+
orgId?: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}) => Promise<{
|
|
27
|
+
content: {
|
|
28
|
+
type: "text";
|
|
29
|
+
text: string;
|
|
30
|
+
}[];
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
update_workspace: {
|
|
34
|
+
description: string;
|
|
35
|
+
schema: z.ZodObject<{
|
|
36
|
+
workspaceName: z.ZodOptional<z.ZodString>;
|
|
37
|
+
vertical: z.ZodOptional<z.ZodEnum<["b2b-saas", "ecommerce", "marketplace", "agency", "other"]>>;
|
|
38
|
+
conversionModel: z.ZodOptional<z.ZodEnum<["sales-assisted", "self-serve", "transaction", "two-sided", "hybrid"]>>;
|
|
39
|
+
websiteUrl: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
workspaceName?: string | undefined;
|
|
42
|
+
vertical?: "b2b-saas" | "ecommerce" | "marketplace" | "agency" | "other" | undefined;
|
|
43
|
+
conversionModel?: "sales-assisted" | "self-serve" | "transaction" | "two-sided" | "hybrid" | undefined;
|
|
44
|
+
websiteUrl?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
workspaceName?: string | undefined;
|
|
47
|
+
vertical?: "b2b-saas" | "ecommerce" | "marketplace" | "agency" | "other" | undefined;
|
|
48
|
+
conversionModel?: "sales-assisted" | "self-serve" | "transaction" | "two-sided" | "hybrid" | undefined;
|
|
49
|
+
websiteUrl?: string | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
handler: ({ workspaceName, vertical, conversionModel, websiteUrl, }: {
|
|
52
|
+
workspaceName?: string;
|
|
53
|
+
vertical?: (typeof VERTICALS)[number];
|
|
54
|
+
conversionModel?: (typeof CONVERSION_MODELS)[number];
|
|
55
|
+
websiteUrl?: string;
|
|
56
|
+
}) => Promise<{
|
|
57
|
+
content: {
|
|
58
|
+
type: "text";
|
|
59
|
+
text: string;
|
|
60
|
+
}[];
|
|
61
|
+
}>;
|
|
62
|
+
};
|
|
63
|
+
claim_links_subdomain: {
|
|
64
|
+
description: string;
|
|
65
|
+
schema: z.ZodObject<{
|
|
66
|
+
subdomain: z.ZodString;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
subdomain: string;
|
|
69
|
+
}, {
|
|
70
|
+
subdomain: string;
|
|
71
|
+
}>;
|
|
72
|
+
handler: ({ subdomain }: {
|
|
73
|
+
subdomain: string;
|
|
74
|
+
}) => Promise<{
|
|
75
|
+
content: {
|
|
76
|
+
type: "text";
|
|
77
|
+
text: string;
|
|
78
|
+
}[];
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
81
|
+
set_consent_posture: {
|
|
82
|
+
description: string;
|
|
83
|
+
schema: z.ZodObject<{
|
|
84
|
+
hasForm: z.ZodEnum<["yes", "no"]>;
|
|
85
|
+
banner: z.ZodOptional<z.ZodEnum<["standard", "gcm", "onetrust", "cookiebot", "tcf", "custom", "none"]>>;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
hasForm: "yes" | "no";
|
|
88
|
+
banner?: "standard" | "gcm" | "onetrust" | "cookiebot" | "tcf" | "custom" | "none" | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
hasForm: "yes" | "no";
|
|
91
|
+
banner?: "standard" | "gcm" | "onetrust" | "cookiebot" | "tcf" | "custom" | "none" | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
handler: ({ hasForm, banner, }: {
|
|
94
|
+
hasForm: "yes" | "no";
|
|
95
|
+
banner?: (typeof CONSENT_BANNERS)[number];
|
|
96
|
+
}) => Promise<{
|
|
97
|
+
content: {
|
|
98
|
+
type: "text";
|
|
99
|
+
text: string;
|
|
100
|
+
}[];
|
|
101
|
+
}>;
|
|
102
|
+
};
|
|
103
|
+
list_webhook_destinations: {
|
|
104
|
+
description: string;
|
|
105
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
106
|
+
handler: () => Promise<{
|
|
107
|
+
content: {
|
|
108
|
+
type: "text";
|
|
109
|
+
text: string;
|
|
110
|
+
}[];
|
|
111
|
+
}>;
|
|
112
|
+
};
|
|
113
|
+
add_webhook_destination: {
|
|
114
|
+
description: string;
|
|
115
|
+
schema: z.ZodObject<{
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
baseUrl: z.ZodString;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
name: string;
|
|
120
|
+
baseUrl: string;
|
|
121
|
+
}, {
|
|
122
|
+
name: string;
|
|
123
|
+
baseUrl: string;
|
|
124
|
+
}>;
|
|
125
|
+
handler: ({ name, baseUrl }: {
|
|
126
|
+
name: string;
|
|
127
|
+
baseUrl: string;
|
|
128
|
+
}) => Promise<{
|
|
129
|
+
content: {
|
|
130
|
+
type: "text";
|
|
131
|
+
text: string;
|
|
132
|
+
}[];
|
|
133
|
+
}>;
|
|
134
|
+
};
|
|
135
|
+
get_messaging_guardrails: {
|
|
136
|
+
description: string;
|
|
137
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
138
|
+
handler: () => Promise<{
|
|
139
|
+
content: {
|
|
140
|
+
type: "text";
|
|
141
|
+
text: string;
|
|
142
|
+
}[];
|
|
143
|
+
}>;
|
|
144
|
+
};
|
|
145
|
+
set_messaging_guardrails: {
|
|
146
|
+
description: string;
|
|
147
|
+
schema: z.ZodObject<{
|
|
148
|
+
holdoutPct: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
attributionWindowDays: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
nudgeCapPerDay: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
fireOnTestEvents: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
capPolicy: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
daily: z.ZodObject<{
|
|
154
|
+
email: z.ZodNumber;
|
|
155
|
+
in_app: z.ZodNumber;
|
|
156
|
+
mobile_push: z.ZodNumber;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
email: number;
|
|
159
|
+
in_app: number;
|
|
160
|
+
mobile_push: number;
|
|
161
|
+
}, {
|
|
162
|
+
email: number;
|
|
163
|
+
in_app: number;
|
|
164
|
+
mobile_push: number;
|
|
165
|
+
}>;
|
|
166
|
+
weekly: z.ZodObject<{
|
|
167
|
+
email: z.ZodNumber;
|
|
168
|
+
in_app: z.ZodNumber;
|
|
169
|
+
mobile_push: z.ZodNumber;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
email: number;
|
|
172
|
+
in_app: number;
|
|
173
|
+
mobile_push: number;
|
|
174
|
+
}, {
|
|
175
|
+
email: number;
|
|
176
|
+
in_app: number;
|
|
177
|
+
mobile_push: number;
|
|
178
|
+
}>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
daily: {
|
|
181
|
+
email: number;
|
|
182
|
+
in_app: number;
|
|
183
|
+
mobile_push: number;
|
|
184
|
+
};
|
|
185
|
+
weekly: {
|
|
186
|
+
email: number;
|
|
187
|
+
in_app: number;
|
|
188
|
+
mobile_push: number;
|
|
189
|
+
};
|
|
190
|
+
}, {
|
|
191
|
+
daily: {
|
|
192
|
+
email: number;
|
|
193
|
+
in_app: number;
|
|
194
|
+
mobile_push: number;
|
|
195
|
+
};
|
|
196
|
+
weekly: {
|
|
197
|
+
email: number;
|
|
198
|
+
in_app: number;
|
|
199
|
+
mobile_push: number;
|
|
200
|
+
};
|
|
201
|
+
}>>;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
holdoutPct?: number | undefined;
|
|
204
|
+
attributionWindowDays?: number | undefined;
|
|
205
|
+
nudgeCapPerDay?: number | undefined;
|
|
206
|
+
fireOnTestEvents?: boolean | undefined;
|
|
207
|
+
capPolicy?: {
|
|
208
|
+
daily: {
|
|
209
|
+
email: number;
|
|
210
|
+
in_app: number;
|
|
211
|
+
mobile_push: number;
|
|
212
|
+
};
|
|
213
|
+
weekly: {
|
|
214
|
+
email: number;
|
|
215
|
+
in_app: number;
|
|
216
|
+
mobile_push: number;
|
|
217
|
+
};
|
|
218
|
+
} | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
holdoutPct?: number | undefined;
|
|
221
|
+
attributionWindowDays?: number | undefined;
|
|
222
|
+
nudgeCapPerDay?: number | undefined;
|
|
223
|
+
fireOnTestEvents?: boolean | undefined;
|
|
224
|
+
capPolicy?: {
|
|
225
|
+
daily: {
|
|
226
|
+
email: number;
|
|
227
|
+
in_app: number;
|
|
228
|
+
mobile_push: number;
|
|
229
|
+
};
|
|
230
|
+
weekly: {
|
|
231
|
+
email: number;
|
|
232
|
+
in_app: number;
|
|
233
|
+
mobile_push: number;
|
|
234
|
+
};
|
|
235
|
+
} | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
handler: (args: {
|
|
238
|
+
holdoutPct?: number;
|
|
239
|
+
attributionWindowDays?: number;
|
|
240
|
+
nudgeCapPerDay?: number;
|
|
241
|
+
fireOnTestEvents?: boolean;
|
|
242
|
+
capPolicy?: {
|
|
243
|
+
daily: {
|
|
244
|
+
email: number;
|
|
245
|
+
in_app: number;
|
|
246
|
+
mobile_push: number;
|
|
247
|
+
};
|
|
248
|
+
weekly: {
|
|
249
|
+
email: number;
|
|
250
|
+
in_app: number;
|
|
251
|
+
mobile_push: number;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
}) => Promise<{
|
|
255
|
+
content: {
|
|
256
|
+
type: "text";
|
|
257
|
+
text: string;
|
|
258
|
+
}[];
|
|
259
|
+
}>;
|
|
260
|
+
};
|
|
261
|
+
set_app_surface_paths: {
|
|
262
|
+
description: string;
|
|
263
|
+
schema: z.ZodObject<{
|
|
264
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
paths: string[];
|
|
267
|
+
}, {
|
|
268
|
+
paths: string[];
|
|
269
|
+
}>;
|
|
270
|
+
handler: ({ paths }: {
|
|
271
|
+
paths: string[];
|
|
272
|
+
}) => Promise<{
|
|
273
|
+
content: {
|
|
274
|
+
type: "text";
|
|
275
|
+
text: string;
|
|
276
|
+
}[];
|
|
277
|
+
}>;
|
|
278
|
+
};
|
|
279
|
+
get_scoring_model: {
|
|
280
|
+
description: string;
|
|
281
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
282
|
+
handler: () => Promise<{
|
|
283
|
+
content: {
|
|
284
|
+
type: "text";
|
|
285
|
+
text: string;
|
|
286
|
+
}[];
|
|
287
|
+
}>;
|
|
288
|
+
};
|
|
289
|
+
set_scoring_weights: {
|
|
290
|
+
description: string;
|
|
291
|
+
schema: z.ZodObject<{
|
|
292
|
+
weights: z.ZodObject<{
|
|
293
|
+
intent: z.ZodNumber;
|
|
294
|
+
icp_fit: z.ZodNumber;
|
|
295
|
+
account: z.ZodNumber;
|
|
296
|
+
engagement: z.ZodNumber;
|
|
297
|
+
risk: z.ZodNumber;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
intent: number;
|
|
300
|
+
icp_fit: number;
|
|
301
|
+
account: number;
|
|
302
|
+
engagement: number;
|
|
303
|
+
risk: number;
|
|
304
|
+
}, {
|
|
305
|
+
intent: number;
|
|
306
|
+
icp_fit: number;
|
|
307
|
+
account: number;
|
|
308
|
+
engagement: number;
|
|
309
|
+
risk: number;
|
|
310
|
+
}>;
|
|
311
|
+
name: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, "strip", z.ZodTypeAny, {
|
|
313
|
+
weights: {
|
|
314
|
+
intent: number;
|
|
315
|
+
icp_fit: number;
|
|
316
|
+
account: number;
|
|
317
|
+
engagement: number;
|
|
318
|
+
risk: number;
|
|
319
|
+
};
|
|
320
|
+
name?: string | undefined;
|
|
321
|
+
}, {
|
|
322
|
+
weights: {
|
|
323
|
+
intent: number;
|
|
324
|
+
icp_fit: number;
|
|
325
|
+
account: number;
|
|
326
|
+
engagement: number;
|
|
327
|
+
risk: number;
|
|
328
|
+
};
|
|
329
|
+
name?: string | undefined;
|
|
330
|
+
}>;
|
|
331
|
+
handler: ({ weights, name, }: {
|
|
332
|
+
weights: {
|
|
333
|
+
intent: number;
|
|
334
|
+
icp_fit: number;
|
|
335
|
+
account: number;
|
|
336
|
+
engagement: number;
|
|
337
|
+
risk: number;
|
|
338
|
+
};
|
|
339
|
+
name?: string;
|
|
340
|
+
}) => Promise<{
|
|
341
|
+
content: {
|
|
342
|
+
type: "text";
|
|
343
|
+
text: string;
|
|
344
|
+
}[];
|
|
345
|
+
}>;
|
|
346
|
+
};
|
|
347
|
+
invite_teammate: {
|
|
348
|
+
description: string;
|
|
349
|
+
schema: z.ZodObject<{
|
|
350
|
+
email: z.ZodString;
|
|
351
|
+
role: z.ZodOptional<z.ZodEnum<["owner", "admin", "member"]>>;
|
|
352
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
353
|
+
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
email: string;
|
|
355
|
+
orgId?: string | undefined;
|
|
356
|
+
role?: "owner" | "admin" | "member" | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
email: string;
|
|
359
|
+
orgId?: string | undefined;
|
|
360
|
+
role?: "owner" | "admin" | "member" | undefined;
|
|
361
|
+
}>;
|
|
362
|
+
handler: ({ email, role, orgId, }: {
|
|
363
|
+
email: string;
|
|
364
|
+
role?: "owner" | "admin" | "member";
|
|
365
|
+
orgId?: string;
|
|
366
|
+
}) => Promise<{
|
|
367
|
+
content: {
|
|
368
|
+
type: "text";
|
|
369
|
+
text: string;
|
|
370
|
+
}[];
|
|
371
|
+
}>;
|
|
372
|
+
};
|
|
373
|
+
set_engagement_analytics: {
|
|
374
|
+
description: string;
|
|
375
|
+
schema: z.ZodObject<{
|
|
376
|
+
profile: z.ZodOptional<z.ZodEnum<["saas", "ecommerce", "marketplace", "agency", "mobile-app", "custom"]>>;
|
|
377
|
+
qualifyingEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
378
|
+
activationEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
379
|
+
churnWindowDays: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
lifecycleEventMap: z.ZodOptional<z.ZodObject<{
|
|
381
|
+
overridden: z.ZodBoolean;
|
|
382
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
383
|
+
event_name: z.ZodString;
|
|
384
|
+
to_stage: z.ZodString;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
event_name: string;
|
|
387
|
+
to_stage: string;
|
|
388
|
+
}, {
|
|
389
|
+
event_name: string;
|
|
390
|
+
to_stage: string;
|
|
391
|
+
}>, "many">;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
overridden: boolean;
|
|
394
|
+
rules: {
|
|
395
|
+
event_name: string;
|
|
396
|
+
to_stage: string;
|
|
397
|
+
}[];
|
|
398
|
+
}, {
|
|
399
|
+
overridden: boolean;
|
|
400
|
+
rules: {
|
|
401
|
+
event_name: string;
|
|
402
|
+
to_stage: string;
|
|
403
|
+
}[];
|
|
404
|
+
}>>;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
profile?: "ecommerce" | "marketplace" | "agency" | "custom" | "saas" | "mobile-app" | undefined;
|
|
407
|
+
qualifyingEvents?: string[] | undefined;
|
|
408
|
+
activationEvents?: string[] | undefined;
|
|
409
|
+
churnWindowDays?: number | undefined;
|
|
410
|
+
lifecycleEventMap?: {
|
|
411
|
+
overridden: boolean;
|
|
412
|
+
rules: {
|
|
413
|
+
event_name: string;
|
|
414
|
+
to_stage: string;
|
|
415
|
+
}[];
|
|
416
|
+
} | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
profile?: "ecommerce" | "marketplace" | "agency" | "custom" | "saas" | "mobile-app" | undefined;
|
|
419
|
+
qualifyingEvents?: string[] | undefined;
|
|
420
|
+
activationEvents?: string[] | undefined;
|
|
421
|
+
churnWindowDays?: number | undefined;
|
|
422
|
+
lifecycleEventMap?: {
|
|
423
|
+
overridden: boolean;
|
|
424
|
+
rules: {
|
|
425
|
+
event_name: string;
|
|
426
|
+
to_stage: string;
|
|
427
|
+
}[];
|
|
428
|
+
} | undefined;
|
|
429
|
+
}>;
|
|
430
|
+
handler: (args: {
|
|
431
|
+
profile?: "saas" | "ecommerce" | "marketplace" | "agency" | "mobile-app" | "custom";
|
|
432
|
+
qualifyingEvents?: string[];
|
|
433
|
+
activationEvents?: string[];
|
|
434
|
+
churnWindowDays?: number;
|
|
435
|
+
lifecycleEventMap?: {
|
|
436
|
+
overridden: boolean;
|
|
437
|
+
rules: Array<{
|
|
438
|
+
event_name: string;
|
|
439
|
+
to_stage: string;
|
|
440
|
+
}>;
|
|
441
|
+
};
|
|
442
|
+
}) => Promise<{
|
|
443
|
+
content: {
|
|
444
|
+
type: "text";
|
|
445
|
+
text: string;
|
|
446
|
+
}[];
|
|
447
|
+
}>;
|
|
448
|
+
};
|
|
449
|
+
set_app_platforms: {
|
|
450
|
+
description: string;
|
|
451
|
+
schema: z.ZodObject<{
|
|
452
|
+
platforms: z.ZodArray<z.ZodEnum<["ios", "android", "web"]>, "many">;
|
|
453
|
+
outcome: z.ZodOptional<z.ZodEnum<["behavior", "ad-roi", "partners"]>>;
|
|
454
|
+
attributionWindows: z.ZodOptional<z.ZodObject<{
|
|
455
|
+
click_through: z.ZodOptional<z.ZodNumber>;
|
|
456
|
+
view_through: z.ZodOptional<z.ZodNumber>;
|
|
457
|
+
reattribution: z.ZodOptional<z.ZodNumber>;
|
|
458
|
+
reengagement: z.ZodOptional<z.ZodNumber>;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
click_through?: number | undefined;
|
|
461
|
+
view_through?: number | undefined;
|
|
462
|
+
reattribution?: number | undefined;
|
|
463
|
+
reengagement?: number | undefined;
|
|
464
|
+
}, {
|
|
465
|
+
click_through?: number | undefined;
|
|
466
|
+
view_through?: number | undefined;
|
|
467
|
+
reattribution?: number | undefined;
|
|
468
|
+
reengagement?: number | undefined;
|
|
469
|
+
}>>;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
platforms: ("ios" | "android" | "web")[];
|
|
472
|
+
outcome?: "behavior" | "ad-roi" | "partners" | undefined;
|
|
473
|
+
attributionWindows?: {
|
|
474
|
+
click_through?: number | undefined;
|
|
475
|
+
view_through?: number | undefined;
|
|
476
|
+
reattribution?: number | undefined;
|
|
477
|
+
reengagement?: number | undefined;
|
|
478
|
+
} | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
platforms: ("ios" | "android" | "web")[];
|
|
481
|
+
outcome?: "behavior" | "ad-roi" | "partners" | undefined;
|
|
482
|
+
attributionWindows?: {
|
|
483
|
+
click_through?: number | undefined;
|
|
484
|
+
view_through?: number | undefined;
|
|
485
|
+
reattribution?: number | undefined;
|
|
486
|
+
reengagement?: number | undefined;
|
|
487
|
+
} | undefined;
|
|
488
|
+
}>;
|
|
489
|
+
handler: (args: {
|
|
490
|
+
platforms: Array<"ios" | "android" | "web">;
|
|
491
|
+
outcome?: "behavior" | "ad-roi" | "partners";
|
|
492
|
+
attributionWindows?: {
|
|
493
|
+
click_through?: number;
|
|
494
|
+
view_through?: number;
|
|
495
|
+
reattribution?: number;
|
|
496
|
+
reengagement?: number;
|
|
497
|
+
};
|
|
498
|
+
}) => Promise<{
|
|
499
|
+
content: {
|
|
500
|
+
type: "text";
|
|
501
|
+
text: string;
|
|
502
|
+
}[];
|
|
503
|
+
}>;
|
|
504
|
+
};
|
|
505
|
+
set_attribution_model: {
|
|
506
|
+
description: string;
|
|
507
|
+
schema: z.ZodObject<{
|
|
508
|
+
attributionModel: z.ZodEnum<["first_touch", "last_touch", "linear", "time_decay"]>;
|
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
|
+
attributionModel: "first_touch" | "last_touch" | "linear" | "time_decay";
|
|
511
|
+
}, {
|
|
512
|
+
attributionModel: "first_touch" | "last_touch" | "linear" | "time_decay";
|
|
513
|
+
}>;
|
|
514
|
+
handler: ({ attributionModel, }: {
|
|
515
|
+
attributionModel: "first_touch" | "last_touch" | "linear" | "time_decay";
|
|
516
|
+
}) => Promise<{
|
|
517
|
+
content: {
|
|
518
|
+
type: "text";
|
|
519
|
+
text: string;
|
|
520
|
+
}[];
|
|
521
|
+
}>;
|
|
522
|
+
};
|
|
523
|
+
start_sender_domain: {
|
|
524
|
+
description: string;
|
|
525
|
+
schema: z.ZodObject<{
|
|
526
|
+
domain: z.ZodString;
|
|
527
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
domain: string;
|
|
530
|
+
orgId?: string | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
domain: string;
|
|
533
|
+
orgId?: string | undefined;
|
|
534
|
+
}>;
|
|
535
|
+
handler: ({ domain, orgId }: {
|
|
536
|
+
domain: string;
|
|
537
|
+
orgId?: string;
|
|
538
|
+
}) => Promise<{
|
|
539
|
+
content: {
|
|
540
|
+
type: "text";
|
|
541
|
+
text: string;
|
|
542
|
+
}[];
|
|
543
|
+
}>;
|
|
544
|
+
};
|
|
545
|
+
get_sender_domain: {
|
|
546
|
+
description: string;
|
|
547
|
+
schema: z.ZodObject<{
|
|
548
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
549
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
550
|
+
}, "strip", z.ZodTypeAny, {
|
|
551
|
+
orgId?: string | undefined;
|
|
552
|
+
domain?: string | undefined;
|
|
553
|
+
}, {
|
|
554
|
+
orgId?: string | undefined;
|
|
555
|
+
domain?: string | undefined;
|
|
556
|
+
}>;
|
|
557
|
+
handler: ({ domain, orgId }: {
|
|
558
|
+
domain?: string;
|
|
559
|
+
orgId?: string;
|
|
560
|
+
}) => Promise<{
|
|
561
|
+
content: {
|
|
562
|
+
type: "text";
|
|
563
|
+
text: string;
|
|
564
|
+
}[];
|
|
565
|
+
}>;
|
|
566
|
+
};
|
|
567
|
+
set_push_credentials: {
|
|
568
|
+
description: string;
|
|
569
|
+
schema: z.ZodObject<{
|
|
570
|
+
platform: z.ZodEnum<["ios", "android"]>;
|
|
571
|
+
fileContents: z.ZodString;
|
|
572
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
573
|
+
keyId: z.ZodOptional<z.ZodString>;
|
|
574
|
+
bundleId: z.ZodOptional<z.ZodString>;
|
|
575
|
+
environment: z.ZodOptional<z.ZodEnum<["production", "sandbox"]>>;
|
|
576
|
+
fcmWorkspaceId: z.ZodOptional<z.ZodString>;
|
|
577
|
+
packageName: z.ZodOptional<z.ZodString>;
|
|
578
|
+
}, "strip", z.ZodTypeAny, {
|
|
579
|
+
platform: "ios" | "android";
|
|
580
|
+
fileContents: string;
|
|
581
|
+
teamId?: string | undefined;
|
|
582
|
+
keyId?: string | undefined;
|
|
583
|
+
bundleId?: string | undefined;
|
|
584
|
+
environment?: "production" | "sandbox" | undefined;
|
|
585
|
+
fcmWorkspaceId?: string | undefined;
|
|
586
|
+
packageName?: string | undefined;
|
|
587
|
+
}, {
|
|
588
|
+
platform: "ios" | "android";
|
|
589
|
+
fileContents: string;
|
|
590
|
+
teamId?: string | undefined;
|
|
591
|
+
keyId?: string | undefined;
|
|
592
|
+
bundleId?: string | undefined;
|
|
593
|
+
environment?: "production" | "sandbox" | undefined;
|
|
594
|
+
fcmWorkspaceId?: string | undefined;
|
|
595
|
+
packageName?: string | undefined;
|
|
596
|
+
}>;
|
|
597
|
+
handler: (args: {
|
|
598
|
+
platform: "ios" | "android";
|
|
599
|
+
fileContents: string;
|
|
600
|
+
teamId?: string;
|
|
601
|
+
keyId?: string;
|
|
602
|
+
bundleId?: string;
|
|
603
|
+
environment?: "production" | "sandbox";
|
|
604
|
+
fcmWorkspaceId?: string;
|
|
605
|
+
packageName?: string;
|
|
606
|
+
}) => Promise<{
|
|
607
|
+
content: {
|
|
608
|
+
type: "text";
|
|
609
|
+
text: string;
|
|
610
|
+
}[];
|
|
611
|
+
}>;
|
|
612
|
+
};
|
|
613
|
+
set_protect_auto_pause: {
|
|
614
|
+
description: string;
|
|
615
|
+
schema: z.ZodObject<{
|
|
616
|
+
enabled: z.ZodBoolean;
|
|
617
|
+
}, "strip", z.ZodTypeAny, {
|
|
618
|
+
enabled: boolean;
|
|
619
|
+
}, {
|
|
620
|
+
enabled: boolean;
|
|
621
|
+
}>;
|
|
622
|
+
handler: ({ enabled }: {
|
|
623
|
+
enabled: boolean;
|
|
624
|
+
}) => Promise<{
|
|
625
|
+
content: {
|
|
626
|
+
type: "text";
|
|
627
|
+
text: string;
|
|
628
|
+
}[];
|
|
629
|
+
}>;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
export {};
|
|
633
|
+
//# sourceMappingURL=setup-catchup-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-catchup-tools.d.ts","sourceRoot":"","sources":["../src/setup-catchup-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA2BxB,QAAA,MAAM,SAAS,sEAML,CAAC;AAEX,QAAA,MAAM,iBAAiB,iFAMb,CAAC;AAEX,QAAA,MAAM,eAAe,gFAQX,CAAC;AAkBX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;mCAUO;YAAE,KAAK,CAAC,EAAE,MAA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