@briefgate/mcp 0.1.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.
@@ -0,0 +1,616 @@
1
+ import { z } from 'zod';
2
+ import { type BriefGateConfig } from './client.js';
3
+ export declare const itemKeySchema: z.ZodString;
4
+ export declare const itemDefinitionSchema: z.ZodEffects<z.ZodObject<{
5
+ key: z.ZodString;
6
+ type: z.ZodEnum<["text", "longtext", "file", "file_list", "image", "color_list", "select", "boolean", "url", "secret", "structured"]>;
7
+ label: z.ZodString;
8
+ help: z.ZodOptional<z.ZodString>;
9
+ required: z.ZodDefault<z.ZodBoolean>;
10
+ constraints: z.ZodOptional<z.ZodObject<{
11
+ formats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ min_width: z.ZodOptional<z.ZodNumber>;
13
+ min_height: z.ZodOptional<z.ZodNumber>;
14
+ max_width: z.ZodOptional<z.ZodNumber>;
15
+ max_height: z.ZodOptional<z.ZodNumber>;
16
+ max_bytes: z.ZodOptional<z.ZodNumber>;
17
+ min_chars: z.ZodOptional<z.ZodNumber>;
18
+ max_chars: z.ZodOptional<z.ZodNumber>;
19
+ min_count: z.ZodOptional<z.ZodNumber>;
20
+ max_count: z.ZodOptional<z.ZodNumber>;
21
+ transparent_background: z.ZodOptional<z.ZodBoolean>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ formats?: string[] | undefined;
24
+ min_width?: number | undefined;
25
+ min_height?: number | undefined;
26
+ max_width?: number | undefined;
27
+ max_height?: number | undefined;
28
+ max_bytes?: number | undefined;
29
+ min_chars?: number | undefined;
30
+ max_chars?: number | undefined;
31
+ min_count?: number | undefined;
32
+ max_count?: number | undefined;
33
+ transparent_background?: boolean | undefined;
34
+ }, {
35
+ formats?: string[] | undefined;
36
+ min_width?: number | undefined;
37
+ min_height?: number | undefined;
38
+ max_width?: number | undefined;
39
+ max_height?: number | undefined;
40
+ max_bytes?: number | undefined;
41
+ min_chars?: number | undefined;
42
+ max_chars?: number | undefined;
43
+ min_count?: number | undefined;
44
+ max_count?: number | undefined;
45
+ transparent_background?: boolean | undefined;
46
+ }>>;
47
+ schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
48
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
+ value: z.ZodString;
50
+ label: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ value: string;
53
+ label: string;
54
+ }, {
55
+ value: string;
56
+ label: string;
57
+ }>, "many">>;
58
+ pattern: z.ZodOptional<z.ZodString>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ type: "boolean" | "text" | "longtext" | "file" | "file_list" | "image" | "color_list" | "select" | "url" | "secret" | "structured";
61
+ label: string;
62
+ key: string;
63
+ required: boolean;
64
+ options?: {
65
+ value: string;
66
+ label: string;
67
+ }[] | undefined;
68
+ help?: string | undefined;
69
+ constraints?: {
70
+ formats?: string[] | undefined;
71
+ min_width?: number | undefined;
72
+ min_height?: number | undefined;
73
+ max_width?: number | undefined;
74
+ max_height?: number | undefined;
75
+ max_bytes?: number | undefined;
76
+ min_chars?: number | undefined;
77
+ max_chars?: number | undefined;
78
+ min_count?: number | undefined;
79
+ max_count?: number | undefined;
80
+ transparent_background?: boolean | undefined;
81
+ } | undefined;
82
+ schema?: Record<string, unknown> | undefined;
83
+ pattern?: string | undefined;
84
+ }, {
85
+ type: "boolean" | "text" | "longtext" | "file" | "file_list" | "image" | "color_list" | "select" | "url" | "secret" | "structured";
86
+ label: string;
87
+ key: string;
88
+ options?: {
89
+ value: string;
90
+ label: string;
91
+ }[] | undefined;
92
+ help?: string | undefined;
93
+ required?: boolean | undefined;
94
+ constraints?: {
95
+ formats?: string[] | undefined;
96
+ min_width?: number | undefined;
97
+ min_height?: number | undefined;
98
+ max_width?: number | undefined;
99
+ max_height?: number | undefined;
100
+ max_bytes?: number | undefined;
101
+ min_chars?: number | undefined;
102
+ max_chars?: number | undefined;
103
+ min_count?: number | undefined;
104
+ max_count?: number | undefined;
105
+ transparent_background?: boolean | undefined;
106
+ } | undefined;
107
+ schema?: Record<string, unknown> | undefined;
108
+ pattern?: string | undefined;
109
+ }>, {
110
+ type: "boolean" | "text" | "longtext" | "file" | "file_list" | "image" | "color_list" | "select" | "url" | "secret" | "structured";
111
+ label: string;
112
+ key: string;
113
+ required: boolean;
114
+ options?: {
115
+ value: string;
116
+ label: string;
117
+ }[] | undefined;
118
+ help?: string | undefined;
119
+ constraints?: {
120
+ formats?: string[] | undefined;
121
+ min_width?: number | undefined;
122
+ min_height?: number | undefined;
123
+ max_width?: number | undefined;
124
+ max_height?: number | undefined;
125
+ max_bytes?: number | undefined;
126
+ min_chars?: number | undefined;
127
+ max_chars?: number | undefined;
128
+ min_count?: number | undefined;
129
+ max_count?: number | undefined;
130
+ transparent_background?: boolean | undefined;
131
+ } | undefined;
132
+ schema?: Record<string, unknown> | undefined;
133
+ pattern?: string | undefined;
134
+ }, {
135
+ type: "boolean" | "text" | "longtext" | "file" | "file_list" | "image" | "color_list" | "select" | "url" | "secret" | "structured";
136
+ label: string;
137
+ key: string;
138
+ options?: {
139
+ value: string;
140
+ label: string;
141
+ }[] | undefined;
142
+ help?: string | undefined;
143
+ required?: boolean | undefined;
144
+ constraints?: {
145
+ formats?: string[] | undefined;
146
+ min_width?: number | undefined;
147
+ min_height?: number | undefined;
148
+ max_width?: number | undefined;
149
+ max_height?: number | undefined;
150
+ max_bytes?: number | undefined;
151
+ min_chars?: number | undefined;
152
+ max_chars?: number | undefined;
153
+ min_count?: number | undefined;
154
+ max_count?: number | undefined;
155
+ transparent_background?: boolean | undefined;
156
+ } | undefined;
157
+ schema?: Record<string, unknown> | undefined;
158
+ pattern?: string | undefined;
159
+ }>;
160
+ export declare const TOOLS: ({
161
+ name: string;
162
+ description: string;
163
+ inputSchema: {
164
+ type: "object";
165
+ properties: {
166
+ project_name: {
167
+ type: string;
168
+ description: string;
169
+ };
170
+ client: {
171
+ type: string;
172
+ description: string;
173
+ properties: {
174
+ email: {
175
+ type: string;
176
+ description: string;
177
+ };
178
+ name: {
179
+ type: string;
180
+ description: string;
181
+ };
182
+ language: {
183
+ type: string;
184
+ enum: string[];
185
+ description: string;
186
+ };
187
+ timezone: {
188
+ type: string;
189
+ description: string;
190
+ };
191
+ phone: {
192
+ type: string;
193
+ description: string;
194
+ };
195
+ };
196
+ required: string[];
197
+ };
198
+ due_date: {
199
+ type: string;
200
+ description: string;
201
+ };
202
+ branding: {
203
+ type: string;
204
+ description: string;
205
+ properties: {
206
+ logo_url: {
207
+ type: string;
208
+ description: string;
209
+ };
210
+ accent_color: {
211
+ type: string;
212
+ description: string;
213
+ };
214
+ sender_name: {
215
+ type: string;
216
+ description: string;
217
+ };
218
+ reply_to: {
219
+ type: string;
220
+ description: string;
221
+ };
222
+ };
223
+ };
224
+ chase_schedule: {
225
+ type: string;
226
+ enum: string[];
227
+ description: string;
228
+ };
229
+ items: {
230
+ type: string;
231
+ description: string;
232
+ items: {
233
+ type: string;
234
+ properties: {
235
+ key: {
236
+ type: string;
237
+ description: string;
238
+ };
239
+ type: {
240
+ type: string;
241
+ enum: string[];
242
+ };
243
+ label: {
244
+ type: string;
245
+ description: string;
246
+ };
247
+ help: {
248
+ type: string;
249
+ description: string;
250
+ };
251
+ required: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ constraints: {
256
+ type: string;
257
+ description: string;
258
+ };
259
+ schema: {
260
+ type: string;
261
+ description: string;
262
+ };
263
+ options: {
264
+ type: string;
265
+ description: string;
266
+ items: {
267
+ type: string;
268
+ properties: {
269
+ value: {
270
+ type: string;
271
+ };
272
+ label: {
273
+ type: string;
274
+ };
275
+ };
276
+ required: string[];
277
+ };
278
+ };
279
+ pattern: {
280
+ type: string;
281
+ description: string;
282
+ };
283
+ };
284
+ required: string[];
285
+ };
286
+ minItems: number;
287
+ maxItems: number;
288
+ };
289
+ template: {
290
+ type: string;
291
+ description: string;
292
+ };
293
+ auto_approve_hours: {
294
+ type: string;
295
+ description: string;
296
+ };
297
+ retention: {
298
+ type: string;
299
+ description: string;
300
+ properties: {
301
+ mode: {
302
+ type: string;
303
+ enum: string[];
304
+ description: string;
305
+ };
306
+ days: {
307
+ type: string;
308
+ description: string;
309
+ };
310
+ anonymize: {
311
+ type: string;
312
+ description: string;
313
+ };
314
+ };
315
+ };
316
+ send: {
317
+ type: string;
318
+ description: string;
319
+ };
320
+ intake_id?: undefined;
321
+ only_new?: undefined;
322
+ include_pending?: undefined;
323
+ item_key?: undefined;
324
+ note?: undefined;
325
+ channel?: undefined;
326
+ status?: undefined;
327
+ client_email?: undefined;
328
+ limit?: undefined;
329
+ offset?: undefined;
330
+ };
331
+ required: string[];
332
+ };
333
+ } | {
334
+ name: string;
335
+ description: string;
336
+ inputSchema: {
337
+ type: "object";
338
+ properties: {
339
+ intake_id: {
340
+ type: string;
341
+ description: string;
342
+ };
343
+ project_name?: undefined;
344
+ client?: undefined;
345
+ due_date?: undefined;
346
+ branding?: undefined;
347
+ chase_schedule?: undefined;
348
+ items?: undefined;
349
+ template?: undefined;
350
+ auto_approve_hours?: undefined;
351
+ retention?: undefined;
352
+ send?: undefined;
353
+ only_new?: undefined;
354
+ include_pending?: undefined;
355
+ item_key?: undefined;
356
+ note?: undefined;
357
+ channel?: undefined;
358
+ status?: undefined;
359
+ client_email?: undefined;
360
+ limit?: undefined;
361
+ offset?: undefined;
362
+ };
363
+ required: string[];
364
+ };
365
+ } | {
366
+ name: string;
367
+ description: string;
368
+ inputSchema: {
369
+ type: "object";
370
+ properties: {
371
+ intake_id: {
372
+ type: string;
373
+ description: string;
374
+ };
375
+ only_new: {
376
+ type: string;
377
+ description: string;
378
+ };
379
+ include_pending: {
380
+ type: string;
381
+ description: string;
382
+ };
383
+ project_name?: undefined;
384
+ client?: undefined;
385
+ due_date?: undefined;
386
+ branding?: undefined;
387
+ chase_schedule?: undefined;
388
+ items?: undefined;
389
+ template?: undefined;
390
+ auto_approve_hours?: undefined;
391
+ retention?: undefined;
392
+ send?: undefined;
393
+ item_key?: undefined;
394
+ note?: undefined;
395
+ channel?: undefined;
396
+ status?: undefined;
397
+ client_email?: undefined;
398
+ limit?: undefined;
399
+ offset?: undefined;
400
+ };
401
+ required: string[];
402
+ };
403
+ } | {
404
+ name: string;
405
+ description: string;
406
+ inputSchema: {
407
+ type: "object";
408
+ properties: {
409
+ intake_id: {
410
+ type: string;
411
+ description: string;
412
+ };
413
+ item_key: {
414
+ type: string;
415
+ description: string;
416
+ };
417
+ note: {
418
+ type: string;
419
+ description: string;
420
+ };
421
+ project_name?: undefined;
422
+ client?: undefined;
423
+ due_date?: undefined;
424
+ branding?: undefined;
425
+ chase_schedule?: undefined;
426
+ items?: undefined;
427
+ template?: undefined;
428
+ auto_approve_hours?: undefined;
429
+ retention?: undefined;
430
+ send?: undefined;
431
+ only_new?: undefined;
432
+ include_pending?: undefined;
433
+ channel?: undefined;
434
+ status?: undefined;
435
+ client_email?: undefined;
436
+ limit?: undefined;
437
+ offset?: undefined;
438
+ };
439
+ required: string[];
440
+ };
441
+ } | {
442
+ name: string;
443
+ description: string;
444
+ inputSchema: {
445
+ type: "object";
446
+ properties: {
447
+ intake_id: {
448
+ type: string;
449
+ description: string;
450
+ };
451
+ channel: {
452
+ type: string;
453
+ enum: string[];
454
+ description: string;
455
+ };
456
+ project_name?: undefined;
457
+ client?: undefined;
458
+ due_date?: undefined;
459
+ branding?: undefined;
460
+ chase_schedule?: undefined;
461
+ items?: undefined;
462
+ template?: undefined;
463
+ auto_approve_hours?: undefined;
464
+ retention?: undefined;
465
+ send?: undefined;
466
+ only_new?: undefined;
467
+ include_pending?: undefined;
468
+ item_key?: undefined;
469
+ note?: undefined;
470
+ status?: undefined;
471
+ client_email?: undefined;
472
+ limit?: undefined;
473
+ offset?: undefined;
474
+ };
475
+ required: string[];
476
+ };
477
+ } | {
478
+ name: string;
479
+ description: string;
480
+ inputSchema: {
481
+ type: "object";
482
+ properties: {
483
+ status: {
484
+ type: string;
485
+ enum: string[];
486
+ description: string;
487
+ };
488
+ client_email: {
489
+ type: string;
490
+ description: string;
491
+ };
492
+ limit: {
493
+ type: string;
494
+ description: string;
495
+ };
496
+ offset: {
497
+ type: string;
498
+ description: string;
499
+ };
500
+ project_name?: undefined;
501
+ client?: undefined;
502
+ due_date?: undefined;
503
+ branding?: undefined;
504
+ chase_schedule?: undefined;
505
+ items?: undefined;
506
+ template?: undefined;
507
+ auto_approve_hours?: undefined;
508
+ retention?: undefined;
509
+ send?: undefined;
510
+ intake_id?: undefined;
511
+ only_new?: undefined;
512
+ include_pending?: undefined;
513
+ item_key?: undefined;
514
+ note?: undefined;
515
+ channel?: undefined;
516
+ };
517
+ required: never[];
518
+ };
519
+ } | {
520
+ name: string;
521
+ description: string;
522
+ inputSchema: {
523
+ type: "object";
524
+ properties: {
525
+ intake_id: {
526
+ type: string;
527
+ description: string;
528
+ };
529
+ items: {
530
+ type: string;
531
+ description: string;
532
+ items: {
533
+ type: string;
534
+ properties: {
535
+ key: {
536
+ type: string;
537
+ description: string;
538
+ };
539
+ type: {
540
+ type: string;
541
+ enum: string[];
542
+ };
543
+ label: {
544
+ type: string;
545
+ description: string;
546
+ };
547
+ help: {
548
+ type: string;
549
+ description?: undefined;
550
+ };
551
+ required: {
552
+ type: string;
553
+ description?: undefined;
554
+ };
555
+ constraints: {
556
+ type: string;
557
+ description?: undefined;
558
+ };
559
+ schema: {
560
+ type: string;
561
+ description?: undefined;
562
+ };
563
+ options: {
564
+ type: string;
565
+ items: {
566
+ type: string;
567
+ properties?: undefined;
568
+ required?: undefined;
569
+ };
570
+ description?: undefined;
571
+ };
572
+ pattern: {
573
+ type: string;
574
+ description?: undefined;
575
+ };
576
+ };
577
+ required: string[];
578
+ };
579
+ minItems: number;
580
+ maxItems: number;
581
+ };
582
+ project_name?: undefined;
583
+ client?: undefined;
584
+ due_date?: undefined;
585
+ branding?: undefined;
586
+ chase_schedule?: undefined;
587
+ template?: undefined;
588
+ auto_approve_hours?: undefined;
589
+ retention?: undefined;
590
+ send?: undefined;
591
+ only_new?: undefined;
592
+ include_pending?: undefined;
593
+ item_key?: undefined;
594
+ note?: undefined;
595
+ channel?: undefined;
596
+ status?: undefined;
597
+ client_email?: undefined;
598
+ limit?: undefined;
599
+ offset?: undefined;
600
+ };
601
+ required: string[];
602
+ };
603
+ })[];
604
+ export interface ToolResult {
605
+ text: string;
606
+ isError?: boolean;
607
+ }
608
+ export declare function callDefineIntake(config: BriefGateConfig, args: unknown): Promise<ToolResult>;
609
+ export declare function callGetIntakeStatus(config: BriefGateConfig, args: unknown): Promise<ToolResult>;
610
+ export declare function callGetIntakeResults(config: BriefGateConfig, args: unknown): Promise<ToolResult>;
611
+ export declare function callRequestRevision(config: BriefGateConfig, args: unknown): Promise<ToolResult>;
612
+ export declare function callSendChase(config: BriefGateConfig, args: unknown): Promise<ToolResult>;
613
+ export declare function callListIntakes(config: BriefGateConfig, args: unknown): Promise<ToolResult>;
614
+ export declare function callAddItems(config: BriefGateConfig, args: unknown): Promise<ToolResult>;
615
+ export declare function executeTool(name: string, config: BriefGateConfig, args: unknown): Promise<ToolResult>;
616
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,eAAe,EAQrB,MAAM,aAAa,CAAC;AAIrB,eAAO,MAAM,aAAa,aAOvB,CAAC;AAqCJ,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B7B,CAAC;AA+CL,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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