mcp-sequential-research 1.0.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,1947 @@
1
+ /**
2
+ * Zod schemas for MCP Sequential Research tools
3
+ *
4
+ * Defines input/output validation for:
5
+ * - sequential_research_plan
6
+ * - sequential_research_compile
7
+ */
8
+ import { z } from "zod";
9
+ /**
10
+ * Citation reference for tracking source provenance
11
+ */
12
+ export declare const CitationSchema: z.ZodObject<{
13
+ id: z.ZodString;
14
+ source_type: z.ZodEnum<["web", "document", "api", "database", "manual", "patent"]>;
15
+ title: z.ZodString;
16
+ url: z.ZodOptional<z.ZodString>;
17
+ accessed_date: z.ZodOptional<z.ZodString>;
18
+ excerpt: z.ZodOptional<z.ZodString>;
19
+ patent_number: z.ZodOptional<z.ZodString>;
20
+ assignee: z.ZodOptional<z.ZodString>;
21
+ filing_date: z.ZodOptional<z.ZodString>;
22
+ priority_date: z.ZodOptional<z.ZodString>;
23
+ claims_count: z.ZodOptional<z.ZodNumber>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ id: string;
26
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
27
+ title: string;
28
+ url?: string | undefined;
29
+ accessed_date?: string | undefined;
30
+ excerpt?: string | undefined;
31
+ patent_number?: string | undefined;
32
+ assignee?: string | undefined;
33
+ filing_date?: string | undefined;
34
+ priority_date?: string | undefined;
35
+ claims_count?: number | undefined;
36
+ }, {
37
+ id: string;
38
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
39
+ title: string;
40
+ url?: string | undefined;
41
+ accessed_date?: string | undefined;
42
+ excerpt?: string | undefined;
43
+ patent_number?: string | undefined;
44
+ assignee?: string | undefined;
45
+ filing_date?: string | undefined;
46
+ priority_date?: string | undefined;
47
+ claims_count?: number | undefined;
48
+ }>;
49
+ export type Citation = z.infer<typeof CitationSchema>;
50
+ /**
51
+ * Input for sequential_research_plan tool
52
+ */
53
+ export declare const PlanInputSchema: z.ZodObject<{
54
+ topic: z.ZodString;
55
+ depth: z.ZodDefault<z.ZodEnum<["shallow", "standard", "deep"]>>;
56
+ focus_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
+ output_format: z.ZodDefault<z.ZodEnum<["markdown", "json", "structured"]>>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ topic: string;
61
+ depth: "shallow" | "standard" | "deep";
62
+ output_format: "markdown" | "json" | "structured";
63
+ focus_areas?: string[] | undefined;
64
+ constraints?: string[] | undefined;
65
+ }, {
66
+ topic: string;
67
+ depth?: "shallow" | "standard" | "deep" | undefined;
68
+ focus_areas?: string[] | undefined;
69
+ constraints?: string[] | undefined;
70
+ output_format?: "markdown" | "json" | "structured" | undefined;
71
+ }>;
72
+ export type PlanInput = z.infer<typeof PlanInputSchema>;
73
+ /**
74
+ * A single research query with extraction goals
75
+ */
76
+ export declare const ResearchQuerySchema: z.ZodObject<{
77
+ query_id: z.ZodString;
78
+ query_text: z.ZodString;
79
+ query_type: z.ZodEnum<["definition", "comparison", "enumeration", "procedure", "causation", "evidence", "current_state", "historical", "prediction", "opinion", "patent_broad", "patent_synonyms", "patent_problem_benefit", "patent_competitor", "patent_limitation", "web_academic", "web_vendor", "web_opensource", "web_conference"]>;
80
+ query_family: z.ZodDefault<z.ZodEnum<["general", "patent", "web"]>>;
81
+ extraction_goals: z.ZodArray<z.ZodString, "many">;
82
+ priority: z.ZodDefault<z.ZodEnum<["critical", "high", "medium", "low"]>>;
83
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ search_modifiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ query_id: string;
87
+ query_text: string;
88
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
89
+ query_family: "web" | "patent" | "general";
90
+ extraction_goals: string[];
91
+ priority: "critical" | "high" | "medium" | "low";
92
+ depends_on?: string[] | undefined;
93
+ search_modifiers?: string[] | undefined;
94
+ }, {
95
+ query_id: string;
96
+ query_text: string;
97
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
98
+ extraction_goals: string[];
99
+ query_family?: "web" | "patent" | "general" | undefined;
100
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
101
+ depends_on?: string[] | undefined;
102
+ search_modifiers?: string[] | undefined;
103
+ }>;
104
+ export type ResearchQuery = z.infer<typeof ResearchQuerySchema>;
105
+ /**
106
+ * Schema definition for expected raw results
107
+ */
108
+ export declare const RawResultSchemaDefinition: z.ZodObject<{
109
+ query_id: z.ZodString;
110
+ required_fields: z.ZodArray<z.ZodObject<{
111
+ field_name: z.ZodString;
112
+ field_type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
113
+ description: z.ZodString;
114
+ required: z.ZodDefault<z.ZodBoolean>;
115
+ }, "strip", z.ZodTypeAny, {
116
+ field_name: string;
117
+ field_type: "string" | "number" | "boolean" | "object" | "array";
118
+ description: string;
119
+ required: boolean;
120
+ }, {
121
+ field_name: string;
122
+ field_type: "string" | "number" | "boolean" | "object" | "array";
123
+ description: string;
124
+ required?: boolean | undefined;
125
+ }>, "many">;
126
+ example: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ query_id: string;
129
+ required_fields: {
130
+ field_name: string;
131
+ field_type: "string" | "number" | "boolean" | "object" | "array";
132
+ description: string;
133
+ required: boolean;
134
+ }[];
135
+ example?: Record<string, unknown> | undefined;
136
+ }, {
137
+ query_id: string;
138
+ required_fields: {
139
+ field_name: string;
140
+ field_type: "string" | "number" | "boolean" | "object" | "array";
141
+ description: string;
142
+ required?: boolean | undefined;
143
+ }[];
144
+ example?: Record<string, unknown> | undefined;
145
+ }>;
146
+ export type RawResultSchemaDefinition = z.infer<typeof RawResultSchemaDefinition>;
147
+ /**
148
+ * Output from sequential_research_plan tool
149
+ */
150
+ export declare const PlanOutputSchema: z.ZodObject<{
151
+ plan_id: z.ZodString;
152
+ topic: z.ZodString;
153
+ created_at: z.ZodString;
154
+ summary: z.ZodString;
155
+ queries: z.ZodArray<z.ZodObject<{
156
+ query_id: z.ZodString;
157
+ query_text: z.ZodString;
158
+ query_type: z.ZodEnum<["definition", "comparison", "enumeration", "procedure", "causation", "evidence", "current_state", "historical", "prediction", "opinion", "patent_broad", "patent_synonyms", "patent_problem_benefit", "patent_competitor", "patent_limitation", "web_academic", "web_vendor", "web_opensource", "web_conference"]>;
159
+ query_family: z.ZodDefault<z.ZodEnum<["general", "patent", "web"]>>;
160
+ extraction_goals: z.ZodArray<z.ZodString, "many">;
161
+ priority: z.ZodDefault<z.ZodEnum<["critical", "high", "medium", "low"]>>;
162
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
163
+ search_modifiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ query_id: string;
166
+ query_text: string;
167
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
168
+ query_family: "web" | "patent" | "general";
169
+ extraction_goals: string[];
170
+ priority: "critical" | "high" | "medium" | "low";
171
+ depends_on?: string[] | undefined;
172
+ search_modifiers?: string[] | undefined;
173
+ }, {
174
+ query_id: string;
175
+ query_text: string;
176
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
177
+ extraction_goals: string[];
178
+ query_family?: "web" | "patent" | "general" | undefined;
179
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
180
+ depends_on?: string[] | undefined;
181
+ search_modifiers?: string[] | undefined;
182
+ }>, "many">;
183
+ result_schemas: z.ZodArray<z.ZodObject<{
184
+ query_id: z.ZodString;
185
+ required_fields: z.ZodArray<z.ZodObject<{
186
+ field_name: z.ZodString;
187
+ field_type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
188
+ description: z.ZodString;
189
+ required: z.ZodDefault<z.ZodBoolean>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ field_name: string;
192
+ field_type: "string" | "number" | "boolean" | "object" | "array";
193
+ description: string;
194
+ required: boolean;
195
+ }, {
196
+ field_name: string;
197
+ field_type: "string" | "number" | "boolean" | "object" | "array";
198
+ description: string;
199
+ required?: boolean | undefined;
200
+ }>, "many">;
201
+ example: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ query_id: string;
204
+ required_fields: {
205
+ field_name: string;
206
+ field_type: "string" | "number" | "boolean" | "object" | "array";
207
+ description: string;
208
+ required: boolean;
209
+ }[];
210
+ example?: Record<string, unknown> | undefined;
211
+ }, {
212
+ query_id: string;
213
+ required_fields: {
214
+ field_name: string;
215
+ field_type: "string" | "number" | "boolean" | "object" | "array";
216
+ description: string;
217
+ required?: boolean | undefined;
218
+ }[];
219
+ example?: Record<string, unknown> | undefined;
220
+ }>, "many">;
221
+ execution_order: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
222
+ estimated_sources: z.ZodNumber;
223
+ metadata: z.ZodObject<{
224
+ depth: z.ZodString;
225
+ focus_areas: z.ZodArray<z.ZodString, "many">;
226
+ constraints: z.ZodArray<z.ZodString, "many">;
227
+ output_format: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ depth: string;
230
+ focus_areas: string[];
231
+ constraints: string[];
232
+ output_format: string;
233
+ }, {
234
+ depth: string;
235
+ focus_areas: string[];
236
+ constraints: string[];
237
+ output_format: string;
238
+ }>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ topic: string;
241
+ plan_id: string;
242
+ created_at: string;
243
+ summary: string;
244
+ queries: {
245
+ query_id: string;
246
+ query_text: string;
247
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
248
+ query_family: "web" | "patent" | "general";
249
+ extraction_goals: string[];
250
+ priority: "critical" | "high" | "medium" | "low";
251
+ depends_on?: string[] | undefined;
252
+ search_modifiers?: string[] | undefined;
253
+ }[];
254
+ result_schemas: {
255
+ query_id: string;
256
+ required_fields: {
257
+ field_name: string;
258
+ field_type: "string" | "number" | "boolean" | "object" | "array";
259
+ description: string;
260
+ required: boolean;
261
+ }[];
262
+ example?: Record<string, unknown> | undefined;
263
+ }[];
264
+ execution_order: string[][];
265
+ estimated_sources: number;
266
+ metadata: {
267
+ depth: string;
268
+ focus_areas: string[];
269
+ constraints: string[];
270
+ output_format: string;
271
+ };
272
+ }, {
273
+ topic: string;
274
+ plan_id: string;
275
+ created_at: string;
276
+ summary: string;
277
+ queries: {
278
+ query_id: string;
279
+ query_text: string;
280
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
281
+ extraction_goals: string[];
282
+ query_family?: "web" | "patent" | "general" | undefined;
283
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
284
+ depends_on?: string[] | undefined;
285
+ search_modifiers?: string[] | undefined;
286
+ }[];
287
+ result_schemas: {
288
+ query_id: string;
289
+ required_fields: {
290
+ field_name: string;
291
+ field_type: "string" | "number" | "boolean" | "object" | "array";
292
+ description: string;
293
+ required?: boolean | undefined;
294
+ }[];
295
+ example?: Record<string, unknown> | undefined;
296
+ }[];
297
+ execution_order: string[][];
298
+ estimated_sources: number;
299
+ metadata: {
300
+ depth: string;
301
+ focus_areas: string[];
302
+ constraints: string[];
303
+ output_format: string;
304
+ };
305
+ }>;
306
+ export type PlanOutput = z.infer<typeof PlanOutputSchema>;
307
+ /**
308
+ * Raw result from executing a single query
309
+ */
310
+ export declare const RawResultSchema: z.ZodObject<{
311
+ query_id: z.ZodString;
312
+ success: z.ZodBoolean;
313
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
314
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
+ id: z.ZodString;
316
+ source_type: z.ZodEnum<["web", "document", "api", "database", "manual", "patent"]>;
317
+ title: z.ZodString;
318
+ url: z.ZodOptional<z.ZodString>;
319
+ accessed_date: z.ZodOptional<z.ZodString>;
320
+ excerpt: z.ZodOptional<z.ZodString>;
321
+ patent_number: z.ZodOptional<z.ZodString>;
322
+ assignee: z.ZodOptional<z.ZodString>;
323
+ filing_date: z.ZodOptional<z.ZodString>;
324
+ priority_date: z.ZodOptional<z.ZodString>;
325
+ claims_count: z.ZodOptional<z.ZodNumber>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ id: string;
328
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
329
+ title: string;
330
+ url?: string | undefined;
331
+ accessed_date?: string | undefined;
332
+ excerpt?: string | undefined;
333
+ patent_number?: string | undefined;
334
+ assignee?: string | undefined;
335
+ filing_date?: string | undefined;
336
+ priority_date?: string | undefined;
337
+ claims_count?: number | undefined;
338
+ }, {
339
+ id: string;
340
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
341
+ title: string;
342
+ url?: string | undefined;
343
+ accessed_date?: string | undefined;
344
+ excerpt?: string | undefined;
345
+ patent_number?: string | undefined;
346
+ assignee?: string | undefined;
347
+ filing_date?: string | undefined;
348
+ priority_date?: string | undefined;
349
+ claims_count?: number | undefined;
350
+ }>, "many">>;
351
+ error: z.ZodOptional<z.ZodString>;
352
+ execution_notes: z.ZodOptional<z.ZodString>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ query_id: string;
355
+ success: boolean;
356
+ data?: Record<string, unknown> | undefined;
357
+ sources?: {
358
+ id: string;
359
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
360
+ title: string;
361
+ url?: string | undefined;
362
+ accessed_date?: string | undefined;
363
+ excerpt?: string | undefined;
364
+ patent_number?: string | undefined;
365
+ assignee?: string | undefined;
366
+ filing_date?: string | undefined;
367
+ priority_date?: string | undefined;
368
+ claims_count?: number | undefined;
369
+ }[] | undefined;
370
+ error?: string | undefined;
371
+ execution_notes?: string | undefined;
372
+ }, {
373
+ query_id: string;
374
+ success: boolean;
375
+ data?: Record<string, unknown> | undefined;
376
+ sources?: {
377
+ id: string;
378
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
379
+ title: string;
380
+ url?: string | undefined;
381
+ accessed_date?: string | undefined;
382
+ excerpt?: string | undefined;
383
+ patent_number?: string | undefined;
384
+ assignee?: string | undefined;
385
+ filing_date?: string | undefined;
386
+ priority_date?: string | undefined;
387
+ claims_count?: number | undefined;
388
+ }[] | undefined;
389
+ error?: string | undefined;
390
+ execution_notes?: string | undefined;
391
+ }>;
392
+ export type RawResult = z.infer<typeof RawResultSchema>;
393
+ /**
394
+ * Input for sequential_research_compile tool
395
+ */
396
+ export declare const CompileInputSchema: z.ZodObject<{
397
+ plan: z.ZodObject<{
398
+ plan_id: z.ZodString;
399
+ topic: z.ZodString;
400
+ created_at: z.ZodString;
401
+ summary: z.ZodString;
402
+ queries: z.ZodArray<z.ZodObject<{
403
+ query_id: z.ZodString;
404
+ query_text: z.ZodString;
405
+ query_type: z.ZodEnum<["definition", "comparison", "enumeration", "procedure", "causation", "evidence", "current_state", "historical", "prediction", "opinion", "patent_broad", "patent_synonyms", "patent_problem_benefit", "patent_competitor", "patent_limitation", "web_academic", "web_vendor", "web_opensource", "web_conference"]>;
406
+ query_family: z.ZodDefault<z.ZodEnum<["general", "patent", "web"]>>;
407
+ extraction_goals: z.ZodArray<z.ZodString, "many">;
408
+ priority: z.ZodDefault<z.ZodEnum<["critical", "high", "medium", "low"]>>;
409
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
410
+ search_modifiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ query_id: string;
413
+ query_text: string;
414
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
415
+ query_family: "web" | "patent" | "general";
416
+ extraction_goals: string[];
417
+ priority: "critical" | "high" | "medium" | "low";
418
+ depends_on?: string[] | undefined;
419
+ search_modifiers?: string[] | undefined;
420
+ }, {
421
+ query_id: string;
422
+ query_text: string;
423
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
424
+ extraction_goals: string[];
425
+ query_family?: "web" | "patent" | "general" | undefined;
426
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
427
+ depends_on?: string[] | undefined;
428
+ search_modifiers?: string[] | undefined;
429
+ }>, "many">;
430
+ result_schemas: z.ZodArray<z.ZodObject<{
431
+ query_id: z.ZodString;
432
+ required_fields: z.ZodArray<z.ZodObject<{
433
+ field_name: z.ZodString;
434
+ field_type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
435
+ description: z.ZodString;
436
+ required: z.ZodDefault<z.ZodBoolean>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ field_name: string;
439
+ field_type: "string" | "number" | "boolean" | "object" | "array";
440
+ description: string;
441
+ required: boolean;
442
+ }, {
443
+ field_name: string;
444
+ field_type: "string" | "number" | "boolean" | "object" | "array";
445
+ description: string;
446
+ required?: boolean | undefined;
447
+ }>, "many">;
448
+ example: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ query_id: string;
451
+ required_fields: {
452
+ field_name: string;
453
+ field_type: "string" | "number" | "boolean" | "object" | "array";
454
+ description: string;
455
+ required: boolean;
456
+ }[];
457
+ example?: Record<string, unknown> | undefined;
458
+ }, {
459
+ query_id: string;
460
+ required_fields: {
461
+ field_name: string;
462
+ field_type: "string" | "number" | "boolean" | "object" | "array";
463
+ description: string;
464
+ required?: boolean | undefined;
465
+ }[];
466
+ example?: Record<string, unknown> | undefined;
467
+ }>, "many">;
468
+ execution_order: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
469
+ estimated_sources: z.ZodNumber;
470
+ metadata: z.ZodObject<{
471
+ depth: z.ZodString;
472
+ focus_areas: z.ZodArray<z.ZodString, "many">;
473
+ constraints: z.ZodArray<z.ZodString, "many">;
474
+ output_format: z.ZodString;
475
+ }, "strip", z.ZodTypeAny, {
476
+ depth: string;
477
+ focus_areas: string[];
478
+ constraints: string[];
479
+ output_format: string;
480
+ }, {
481
+ depth: string;
482
+ focus_areas: string[];
483
+ constraints: string[];
484
+ output_format: string;
485
+ }>;
486
+ }, "strip", z.ZodTypeAny, {
487
+ topic: string;
488
+ plan_id: string;
489
+ created_at: string;
490
+ summary: string;
491
+ queries: {
492
+ query_id: string;
493
+ query_text: string;
494
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
495
+ query_family: "web" | "patent" | "general";
496
+ extraction_goals: string[];
497
+ priority: "critical" | "high" | "medium" | "low";
498
+ depends_on?: string[] | undefined;
499
+ search_modifiers?: string[] | undefined;
500
+ }[];
501
+ result_schemas: {
502
+ query_id: string;
503
+ required_fields: {
504
+ field_name: string;
505
+ field_type: "string" | "number" | "boolean" | "object" | "array";
506
+ description: string;
507
+ required: boolean;
508
+ }[];
509
+ example?: Record<string, unknown> | undefined;
510
+ }[];
511
+ execution_order: string[][];
512
+ estimated_sources: number;
513
+ metadata: {
514
+ depth: string;
515
+ focus_areas: string[];
516
+ constraints: string[];
517
+ output_format: string;
518
+ };
519
+ }, {
520
+ topic: string;
521
+ plan_id: string;
522
+ created_at: string;
523
+ summary: string;
524
+ queries: {
525
+ query_id: string;
526
+ query_text: string;
527
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
528
+ extraction_goals: string[];
529
+ query_family?: "web" | "patent" | "general" | undefined;
530
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
531
+ depends_on?: string[] | undefined;
532
+ search_modifiers?: string[] | undefined;
533
+ }[];
534
+ result_schemas: {
535
+ query_id: string;
536
+ required_fields: {
537
+ field_name: string;
538
+ field_type: "string" | "number" | "boolean" | "object" | "array";
539
+ description: string;
540
+ required?: boolean | undefined;
541
+ }[];
542
+ example?: Record<string, unknown> | undefined;
543
+ }[];
544
+ execution_order: string[][];
545
+ estimated_sources: number;
546
+ metadata: {
547
+ depth: string;
548
+ focus_areas: string[];
549
+ constraints: string[];
550
+ output_format: string;
551
+ };
552
+ }>;
553
+ raw_results: z.ZodArray<z.ZodObject<{
554
+ query_id: z.ZodString;
555
+ success: z.ZodBoolean;
556
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
557
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
558
+ id: z.ZodString;
559
+ source_type: z.ZodEnum<["web", "document", "api", "database", "manual", "patent"]>;
560
+ title: z.ZodString;
561
+ url: z.ZodOptional<z.ZodString>;
562
+ accessed_date: z.ZodOptional<z.ZodString>;
563
+ excerpt: z.ZodOptional<z.ZodString>;
564
+ patent_number: z.ZodOptional<z.ZodString>;
565
+ assignee: z.ZodOptional<z.ZodString>;
566
+ filing_date: z.ZodOptional<z.ZodString>;
567
+ priority_date: z.ZodOptional<z.ZodString>;
568
+ claims_count: z.ZodOptional<z.ZodNumber>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ id: string;
571
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
572
+ title: string;
573
+ url?: string | undefined;
574
+ accessed_date?: string | undefined;
575
+ excerpt?: string | undefined;
576
+ patent_number?: string | undefined;
577
+ assignee?: string | undefined;
578
+ filing_date?: string | undefined;
579
+ priority_date?: string | undefined;
580
+ claims_count?: number | undefined;
581
+ }, {
582
+ id: string;
583
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
584
+ title: string;
585
+ url?: string | undefined;
586
+ accessed_date?: string | undefined;
587
+ excerpt?: string | undefined;
588
+ patent_number?: string | undefined;
589
+ assignee?: string | undefined;
590
+ filing_date?: string | undefined;
591
+ priority_date?: string | undefined;
592
+ claims_count?: number | undefined;
593
+ }>, "many">>;
594
+ error: z.ZodOptional<z.ZodString>;
595
+ execution_notes: z.ZodOptional<z.ZodString>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ query_id: string;
598
+ success: boolean;
599
+ data?: Record<string, unknown> | undefined;
600
+ sources?: {
601
+ id: string;
602
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
603
+ title: string;
604
+ url?: string | undefined;
605
+ accessed_date?: string | undefined;
606
+ excerpt?: string | undefined;
607
+ patent_number?: string | undefined;
608
+ assignee?: string | undefined;
609
+ filing_date?: string | undefined;
610
+ priority_date?: string | undefined;
611
+ claims_count?: number | undefined;
612
+ }[] | undefined;
613
+ error?: string | undefined;
614
+ execution_notes?: string | undefined;
615
+ }, {
616
+ query_id: string;
617
+ success: boolean;
618
+ data?: Record<string, unknown> | undefined;
619
+ sources?: {
620
+ id: string;
621
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
622
+ title: string;
623
+ url?: string | undefined;
624
+ accessed_date?: string | undefined;
625
+ excerpt?: string | undefined;
626
+ patent_number?: string | undefined;
627
+ assignee?: string | undefined;
628
+ filing_date?: string | undefined;
629
+ priority_date?: string | undefined;
630
+ claims_count?: number | undefined;
631
+ }[] | undefined;
632
+ error?: string | undefined;
633
+ execution_notes?: string | undefined;
634
+ }>, "many">;
635
+ include_sources: z.ZodDefault<z.ZodBoolean>;
636
+ include_methodology: z.ZodDefault<z.ZodBoolean>;
637
+ citation_style: z.ZodDefault<z.ZodEnum<["inline", "footnote", "endnote"]>>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ plan: {
640
+ topic: string;
641
+ plan_id: string;
642
+ created_at: string;
643
+ summary: string;
644
+ queries: {
645
+ query_id: string;
646
+ query_text: string;
647
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
648
+ query_family: "web" | "patent" | "general";
649
+ extraction_goals: string[];
650
+ priority: "critical" | "high" | "medium" | "low";
651
+ depends_on?: string[] | undefined;
652
+ search_modifiers?: string[] | undefined;
653
+ }[];
654
+ result_schemas: {
655
+ query_id: string;
656
+ required_fields: {
657
+ field_name: string;
658
+ field_type: "string" | "number" | "boolean" | "object" | "array";
659
+ description: string;
660
+ required: boolean;
661
+ }[];
662
+ example?: Record<string, unknown> | undefined;
663
+ }[];
664
+ execution_order: string[][];
665
+ estimated_sources: number;
666
+ metadata: {
667
+ depth: string;
668
+ focus_areas: string[];
669
+ constraints: string[];
670
+ output_format: string;
671
+ };
672
+ };
673
+ raw_results: {
674
+ query_id: string;
675
+ success: boolean;
676
+ data?: Record<string, unknown> | undefined;
677
+ sources?: {
678
+ id: string;
679
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
680
+ title: string;
681
+ url?: string | undefined;
682
+ accessed_date?: string | undefined;
683
+ excerpt?: string | undefined;
684
+ patent_number?: string | undefined;
685
+ assignee?: string | undefined;
686
+ filing_date?: string | undefined;
687
+ priority_date?: string | undefined;
688
+ claims_count?: number | undefined;
689
+ }[] | undefined;
690
+ error?: string | undefined;
691
+ execution_notes?: string | undefined;
692
+ }[];
693
+ include_sources: boolean;
694
+ include_methodology: boolean;
695
+ citation_style: "inline" | "footnote" | "endnote";
696
+ }, {
697
+ plan: {
698
+ topic: string;
699
+ plan_id: string;
700
+ created_at: string;
701
+ summary: string;
702
+ queries: {
703
+ query_id: string;
704
+ query_text: string;
705
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
706
+ extraction_goals: string[];
707
+ query_family?: "web" | "patent" | "general" | undefined;
708
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
709
+ depends_on?: string[] | undefined;
710
+ search_modifiers?: string[] | undefined;
711
+ }[];
712
+ result_schemas: {
713
+ query_id: string;
714
+ required_fields: {
715
+ field_name: string;
716
+ field_type: "string" | "number" | "boolean" | "object" | "array";
717
+ description: string;
718
+ required?: boolean | undefined;
719
+ }[];
720
+ example?: Record<string, unknown> | undefined;
721
+ }[];
722
+ execution_order: string[][];
723
+ estimated_sources: number;
724
+ metadata: {
725
+ depth: string;
726
+ focus_areas: string[];
727
+ constraints: string[];
728
+ output_format: string;
729
+ };
730
+ };
731
+ raw_results: {
732
+ query_id: string;
733
+ success: boolean;
734
+ data?: Record<string, unknown> | undefined;
735
+ sources?: {
736
+ id: string;
737
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
738
+ title: string;
739
+ url?: string | undefined;
740
+ accessed_date?: string | undefined;
741
+ excerpt?: string | undefined;
742
+ patent_number?: string | undefined;
743
+ assignee?: string | undefined;
744
+ filing_date?: string | undefined;
745
+ priority_date?: string | undefined;
746
+ claims_count?: number | undefined;
747
+ }[] | undefined;
748
+ error?: string | undefined;
749
+ execution_notes?: string | undefined;
750
+ }[];
751
+ include_sources?: boolean | undefined;
752
+ include_methodology?: boolean | undefined;
753
+ citation_style?: "inline" | "footnote" | "endnote" | undefined;
754
+ }>;
755
+ export type CompileInput = z.infer<typeof CompileInputSchema>;
756
+ /**
757
+ * A section in the compiled report
758
+ */
759
+ export declare const ReportSectionSchema: z.ZodObject<{
760
+ heading: z.ZodString;
761
+ level: z.ZodNumber;
762
+ content: z.ZodString;
763
+ citations_used: z.ZodArray<z.ZodString, "many">;
764
+ }, "strip", z.ZodTypeAny, {
765
+ heading: string;
766
+ level: number;
767
+ content: string;
768
+ citations_used: string[];
769
+ }, {
770
+ heading: string;
771
+ level: number;
772
+ content: string;
773
+ citations_used: string[];
774
+ }>;
775
+ export type ReportSection = z.infer<typeof ReportSectionSchema>;
776
+ /**
777
+ * Prior art cluster for grouping related sources
778
+ */
779
+ export declare const PriorArtClusterSchema: z.ZodObject<{
780
+ cluster_id: z.ZodString;
781
+ theme: z.ZodString;
782
+ source_ids: z.ZodArray<z.ZodString, "many">;
783
+ relevance: z.ZodEnum<["high", "medium", "low"]>;
784
+ overlap_notes: z.ZodOptional<z.ZodString>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ cluster_id: string;
787
+ theme: string;
788
+ source_ids: string[];
789
+ relevance: "high" | "medium" | "low";
790
+ overlap_notes?: string | undefined;
791
+ }, {
792
+ cluster_id: string;
793
+ theme: string;
794
+ source_ids: string[];
795
+ relevance: "high" | "medium" | "low";
796
+ overlap_notes?: string | undefined;
797
+ }>;
798
+ export type PriorArtCluster = z.infer<typeof PriorArtClusterSchema>;
799
+ /**
800
+ * Claim risk flag for potential novelty issues
801
+ */
802
+ export declare const ClaimRiskFlagSchema: z.ZodObject<{
803
+ risk_id: z.ZodString;
804
+ severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
805
+ category: z.ZodEnum<["anticipation", "obviousness", "enablement", "written_description", "indefiniteness"]>;
806
+ description: z.ZodString;
807
+ affected_elements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
808
+ blocking_sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
809
+ mitigation: z.ZodOptional<z.ZodString>;
810
+ }, "strip", z.ZodTypeAny, {
811
+ description: string;
812
+ risk_id: string;
813
+ severity: "critical" | "high" | "medium" | "low";
814
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
815
+ affected_elements?: string[] | undefined;
816
+ blocking_sources?: string[] | undefined;
817
+ mitigation?: string | undefined;
818
+ }, {
819
+ description: string;
820
+ risk_id: string;
821
+ severity: "critical" | "high" | "medium" | "low";
822
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
823
+ affected_elements?: string[] | undefined;
824
+ blocking_sources?: string[] | undefined;
825
+ mitigation?: string | undefined;
826
+ }>;
827
+ export type ClaimRiskFlag = z.infer<typeof ClaimRiskFlagSchema>;
828
+ /**
829
+ * Novelty gap suggestion for differentiation
830
+ */
831
+ export declare const NoveltyGapSchema: z.ZodObject<{
832
+ gap_id: z.ZodString;
833
+ limitation_type: z.ZodEnum<["structural", "functional", "material", "process", "parameter", "combination"]>;
834
+ description: z.ZodString;
835
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
836
+ supporting_evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
837
+ claim_language_suggestion: z.ZodOptional<z.ZodString>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ description: string;
840
+ gap_id: string;
841
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
842
+ confidence: "high" | "medium" | "low";
843
+ supporting_evidence?: string[] | undefined;
844
+ claim_language_suggestion?: string | undefined;
845
+ }, {
846
+ description: string;
847
+ gap_id: string;
848
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
849
+ confidence: "high" | "medium" | "low";
850
+ supporting_evidence?: string[] | undefined;
851
+ claim_language_suggestion?: string | undefined;
852
+ }>;
853
+ export type NoveltyGap = z.infer<typeof NoveltyGapSchema>;
854
+ /**
855
+ * Output from sequential_research_compile tool
856
+ */
857
+ export declare const CompileOutputSchema: z.ZodObject<{
858
+ report_id: z.ZodString;
859
+ plan_id: z.ZodString;
860
+ title: z.ZodString;
861
+ compiled_at: z.ZodString;
862
+ executive_summary: z.ZodString;
863
+ sections: z.ZodArray<z.ZodObject<{
864
+ heading: z.ZodString;
865
+ level: z.ZodNumber;
866
+ content: z.ZodString;
867
+ citations_used: z.ZodArray<z.ZodString, "many">;
868
+ }, "strip", z.ZodTypeAny, {
869
+ heading: string;
870
+ level: number;
871
+ content: string;
872
+ citations_used: string[];
873
+ }, {
874
+ heading: string;
875
+ level: number;
876
+ content: string;
877
+ citations_used: string[];
878
+ }>, "many">;
879
+ markdown_report: z.ZodString;
880
+ sources: z.ZodArray<z.ZodObject<{
881
+ id: z.ZodString;
882
+ source_type: z.ZodEnum<["web", "document", "api", "database", "manual", "patent"]>;
883
+ title: z.ZodString;
884
+ url: z.ZodOptional<z.ZodString>;
885
+ accessed_date: z.ZodOptional<z.ZodString>;
886
+ excerpt: z.ZodOptional<z.ZodString>;
887
+ patent_number: z.ZodOptional<z.ZodString>;
888
+ assignee: z.ZodOptional<z.ZodString>;
889
+ filing_date: z.ZodOptional<z.ZodString>;
890
+ priority_date: z.ZodOptional<z.ZodString>;
891
+ claims_count: z.ZodOptional<z.ZodNumber>;
892
+ }, "strip", z.ZodTypeAny, {
893
+ id: string;
894
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
895
+ title: string;
896
+ url?: string | undefined;
897
+ accessed_date?: string | undefined;
898
+ excerpt?: string | undefined;
899
+ patent_number?: string | undefined;
900
+ assignee?: string | undefined;
901
+ filing_date?: string | undefined;
902
+ priority_date?: string | undefined;
903
+ claims_count?: number | undefined;
904
+ }, {
905
+ id: string;
906
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
907
+ title: string;
908
+ url?: string | undefined;
909
+ accessed_date?: string | undefined;
910
+ excerpt?: string | undefined;
911
+ patent_number?: string | undefined;
912
+ assignee?: string | undefined;
913
+ filing_date?: string | undefined;
914
+ priority_date?: string | undefined;
915
+ claims_count?: number | undefined;
916
+ }>, "many">;
917
+ statistics: z.ZodObject<{
918
+ queries_executed: z.ZodNumber;
919
+ queries_succeeded: z.ZodNumber;
920
+ queries_failed: z.ZodNumber;
921
+ total_sources: z.ZodNumber;
922
+ word_count: z.ZodNumber;
923
+ patent_sources: z.ZodOptional<z.ZodNumber>;
924
+ web_sources: z.ZodOptional<z.ZodNumber>;
925
+ }, "strip", z.ZodTypeAny, {
926
+ queries_executed: number;
927
+ queries_succeeded: number;
928
+ queries_failed: number;
929
+ total_sources: number;
930
+ word_count: number;
931
+ patent_sources?: number | undefined;
932
+ web_sources?: number | undefined;
933
+ }, {
934
+ queries_executed: number;
935
+ queries_succeeded: number;
936
+ queries_failed: number;
937
+ total_sources: number;
938
+ word_count: number;
939
+ patent_sources?: number | undefined;
940
+ web_sources?: number | undefined;
941
+ }>;
942
+ prior_art_clusters: z.ZodOptional<z.ZodArray<z.ZodObject<{
943
+ cluster_id: z.ZodString;
944
+ theme: z.ZodString;
945
+ source_ids: z.ZodArray<z.ZodString, "many">;
946
+ relevance: z.ZodEnum<["high", "medium", "low"]>;
947
+ overlap_notes: z.ZodOptional<z.ZodString>;
948
+ }, "strip", z.ZodTypeAny, {
949
+ cluster_id: string;
950
+ theme: string;
951
+ source_ids: string[];
952
+ relevance: "high" | "medium" | "low";
953
+ overlap_notes?: string | undefined;
954
+ }, {
955
+ cluster_id: string;
956
+ theme: string;
957
+ source_ids: string[];
958
+ relevance: "high" | "medium" | "low";
959
+ overlap_notes?: string | undefined;
960
+ }>, "many">>;
961
+ claim_risk_flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
962
+ risk_id: z.ZodString;
963
+ severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
964
+ category: z.ZodEnum<["anticipation", "obviousness", "enablement", "written_description", "indefiniteness"]>;
965
+ description: z.ZodString;
966
+ affected_elements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
967
+ blocking_sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
968
+ mitigation: z.ZodOptional<z.ZodString>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ description: string;
971
+ risk_id: string;
972
+ severity: "critical" | "high" | "medium" | "low";
973
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
974
+ affected_elements?: string[] | undefined;
975
+ blocking_sources?: string[] | undefined;
976
+ mitigation?: string | undefined;
977
+ }, {
978
+ description: string;
979
+ risk_id: string;
980
+ severity: "critical" | "high" | "medium" | "low";
981
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
982
+ affected_elements?: string[] | undefined;
983
+ blocking_sources?: string[] | undefined;
984
+ mitigation?: string | undefined;
985
+ }>, "many">>;
986
+ novelty_gaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
987
+ gap_id: z.ZodString;
988
+ limitation_type: z.ZodEnum<["structural", "functional", "material", "process", "parameter", "combination"]>;
989
+ description: z.ZodString;
990
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
991
+ supporting_evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
992
+ claim_language_suggestion: z.ZodOptional<z.ZodString>;
993
+ }, "strip", z.ZodTypeAny, {
994
+ description: string;
995
+ gap_id: string;
996
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
997
+ confidence: "high" | "medium" | "low";
998
+ supporting_evidence?: string[] | undefined;
999
+ claim_language_suggestion?: string | undefined;
1000
+ }, {
1001
+ description: string;
1002
+ gap_id: string;
1003
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
1004
+ confidence: "high" | "medium" | "low";
1005
+ supporting_evidence?: string[] | undefined;
1006
+ claim_language_suggestion?: string | undefined;
1007
+ }>, "many">>;
1008
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ title: string;
1011
+ plan_id: string;
1012
+ sources: {
1013
+ id: string;
1014
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1015
+ title: string;
1016
+ url?: string | undefined;
1017
+ accessed_date?: string | undefined;
1018
+ excerpt?: string | undefined;
1019
+ patent_number?: string | undefined;
1020
+ assignee?: string | undefined;
1021
+ filing_date?: string | undefined;
1022
+ priority_date?: string | undefined;
1023
+ claims_count?: number | undefined;
1024
+ }[];
1025
+ report_id: string;
1026
+ compiled_at: string;
1027
+ executive_summary: string;
1028
+ sections: {
1029
+ heading: string;
1030
+ level: number;
1031
+ content: string;
1032
+ citations_used: string[];
1033
+ }[];
1034
+ markdown_report: string;
1035
+ statistics: {
1036
+ queries_executed: number;
1037
+ queries_succeeded: number;
1038
+ queries_failed: number;
1039
+ total_sources: number;
1040
+ word_count: number;
1041
+ patent_sources?: number | undefined;
1042
+ web_sources?: number | undefined;
1043
+ };
1044
+ prior_art_clusters?: {
1045
+ cluster_id: string;
1046
+ theme: string;
1047
+ source_ids: string[];
1048
+ relevance: "high" | "medium" | "low";
1049
+ overlap_notes?: string | undefined;
1050
+ }[] | undefined;
1051
+ claim_risk_flags?: {
1052
+ description: string;
1053
+ risk_id: string;
1054
+ severity: "critical" | "high" | "medium" | "low";
1055
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
1056
+ affected_elements?: string[] | undefined;
1057
+ blocking_sources?: string[] | undefined;
1058
+ mitigation?: string | undefined;
1059
+ }[] | undefined;
1060
+ novelty_gaps?: {
1061
+ description: string;
1062
+ gap_id: string;
1063
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
1064
+ confidence: "high" | "medium" | "low";
1065
+ supporting_evidence?: string[] | undefined;
1066
+ claim_language_suggestion?: string | undefined;
1067
+ }[] | undefined;
1068
+ warnings?: string[] | undefined;
1069
+ }, {
1070
+ title: string;
1071
+ plan_id: string;
1072
+ sources: {
1073
+ id: string;
1074
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1075
+ title: string;
1076
+ url?: string | undefined;
1077
+ accessed_date?: string | undefined;
1078
+ excerpt?: string | undefined;
1079
+ patent_number?: string | undefined;
1080
+ assignee?: string | undefined;
1081
+ filing_date?: string | undefined;
1082
+ priority_date?: string | undefined;
1083
+ claims_count?: number | undefined;
1084
+ }[];
1085
+ report_id: string;
1086
+ compiled_at: string;
1087
+ executive_summary: string;
1088
+ sections: {
1089
+ heading: string;
1090
+ level: number;
1091
+ content: string;
1092
+ citations_used: string[];
1093
+ }[];
1094
+ markdown_report: string;
1095
+ statistics: {
1096
+ queries_executed: number;
1097
+ queries_succeeded: number;
1098
+ queries_failed: number;
1099
+ total_sources: number;
1100
+ word_count: number;
1101
+ patent_sources?: number | undefined;
1102
+ web_sources?: number | undefined;
1103
+ };
1104
+ prior_art_clusters?: {
1105
+ cluster_id: string;
1106
+ theme: string;
1107
+ source_ids: string[];
1108
+ relevance: "high" | "medium" | "low";
1109
+ overlap_notes?: string | undefined;
1110
+ }[] | undefined;
1111
+ claim_risk_flags?: {
1112
+ description: string;
1113
+ risk_id: string;
1114
+ severity: "critical" | "high" | "medium" | "low";
1115
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
1116
+ affected_elements?: string[] | undefined;
1117
+ blocking_sources?: string[] | undefined;
1118
+ mitigation?: string | undefined;
1119
+ }[] | undefined;
1120
+ novelty_gaps?: {
1121
+ description: string;
1122
+ gap_id: string;
1123
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
1124
+ confidence: "high" | "medium" | "low";
1125
+ supporting_evidence?: string[] | undefined;
1126
+ claim_language_suggestion?: string | undefined;
1127
+ }[] | undefined;
1128
+ warnings?: string[] | undefined;
1129
+ }>;
1130
+ export type CompileOutput = z.infer<typeof CompileOutputSchema>;
1131
+ /**
1132
+ * JSON Schema representations for MCP tool definitions
1133
+ */
1134
+ export declare const toolSchemas: {
1135
+ readonly sequential_research_plan: {
1136
+ readonly input: z.ZodObject<{
1137
+ topic: z.ZodString;
1138
+ depth: z.ZodDefault<z.ZodEnum<["shallow", "standard", "deep"]>>;
1139
+ focus_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1140
+ constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1141
+ output_format: z.ZodDefault<z.ZodEnum<["markdown", "json", "structured"]>>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ topic: string;
1144
+ depth: "shallow" | "standard" | "deep";
1145
+ output_format: "markdown" | "json" | "structured";
1146
+ focus_areas?: string[] | undefined;
1147
+ constraints?: string[] | undefined;
1148
+ }, {
1149
+ topic: string;
1150
+ depth?: "shallow" | "standard" | "deep" | undefined;
1151
+ focus_areas?: string[] | undefined;
1152
+ constraints?: string[] | undefined;
1153
+ output_format?: "markdown" | "json" | "structured" | undefined;
1154
+ }>;
1155
+ readonly output: z.ZodObject<{
1156
+ plan_id: z.ZodString;
1157
+ topic: z.ZodString;
1158
+ created_at: z.ZodString;
1159
+ summary: z.ZodString;
1160
+ queries: z.ZodArray<z.ZodObject<{
1161
+ query_id: z.ZodString;
1162
+ query_text: z.ZodString;
1163
+ query_type: z.ZodEnum<["definition", "comparison", "enumeration", "procedure", "causation", "evidence", "current_state", "historical", "prediction", "opinion", "patent_broad", "patent_synonyms", "patent_problem_benefit", "patent_competitor", "patent_limitation", "web_academic", "web_vendor", "web_opensource", "web_conference"]>;
1164
+ query_family: z.ZodDefault<z.ZodEnum<["general", "patent", "web"]>>;
1165
+ extraction_goals: z.ZodArray<z.ZodString, "many">;
1166
+ priority: z.ZodDefault<z.ZodEnum<["critical", "high", "medium", "low"]>>;
1167
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1168
+ search_modifiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ query_id: string;
1171
+ query_text: string;
1172
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1173
+ query_family: "web" | "patent" | "general";
1174
+ extraction_goals: string[];
1175
+ priority: "critical" | "high" | "medium" | "low";
1176
+ depends_on?: string[] | undefined;
1177
+ search_modifiers?: string[] | undefined;
1178
+ }, {
1179
+ query_id: string;
1180
+ query_text: string;
1181
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1182
+ extraction_goals: string[];
1183
+ query_family?: "web" | "patent" | "general" | undefined;
1184
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
1185
+ depends_on?: string[] | undefined;
1186
+ search_modifiers?: string[] | undefined;
1187
+ }>, "many">;
1188
+ result_schemas: z.ZodArray<z.ZodObject<{
1189
+ query_id: z.ZodString;
1190
+ required_fields: z.ZodArray<z.ZodObject<{
1191
+ field_name: z.ZodString;
1192
+ field_type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
1193
+ description: z.ZodString;
1194
+ required: z.ZodDefault<z.ZodBoolean>;
1195
+ }, "strip", z.ZodTypeAny, {
1196
+ field_name: string;
1197
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1198
+ description: string;
1199
+ required: boolean;
1200
+ }, {
1201
+ field_name: string;
1202
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1203
+ description: string;
1204
+ required?: boolean | undefined;
1205
+ }>, "many">;
1206
+ example: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ query_id: string;
1209
+ required_fields: {
1210
+ field_name: string;
1211
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1212
+ description: string;
1213
+ required: boolean;
1214
+ }[];
1215
+ example?: Record<string, unknown> | undefined;
1216
+ }, {
1217
+ query_id: string;
1218
+ required_fields: {
1219
+ field_name: string;
1220
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1221
+ description: string;
1222
+ required?: boolean | undefined;
1223
+ }[];
1224
+ example?: Record<string, unknown> | undefined;
1225
+ }>, "many">;
1226
+ execution_order: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
1227
+ estimated_sources: z.ZodNumber;
1228
+ metadata: z.ZodObject<{
1229
+ depth: z.ZodString;
1230
+ focus_areas: z.ZodArray<z.ZodString, "many">;
1231
+ constraints: z.ZodArray<z.ZodString, "many">;
1232
+ output_format: z.ZodString;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ depth: string;
1235
+ focus_areas: string[];
1236
+ constraints: string[];
1237
+ output_format: string;
1238
+ }, {
1239
+ depth: string;
1240
+ focus_areas: string[];
1241
+ constraints: string[];
1242
+ output_format: string;
1243
+ }>;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ topic: string;
1246
+ plan_id: string;
1247
+ created_at: string;
1248
+ summary: string;
1249
+ queries: {
1250
+ query_id: string;
1251
+ query_text: string;
1252
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1253
+ query_family: "web" | "patent" | "general";
1254
+ extraction_goals: string[];
1255
+ priority: "critical" | "high" | "medium" | "low";
1256
+ depends_on?: string[] | undefined;
1257
+ search_modifiers?: string[] | undefined;
1258
+ }[];
1259
+ result_schemas: {
1260
+ query_id: string;
1261
+ required_fields: {
1262
+ field_name: string;
1263
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1264
+ description: string;
1265
+ required: boolean;
1266
+ }[];
1267
+ example?: Record<string, unknown> | undefined;
1268
+ }[];
1269
+ execution_order: string[][];
1270
+ estimated_sources: number;
1271
+ metadata: {
1272
+ depth: string;
1273
+ focus_areas: string[];
1274
+ constraints: string[];
1275
+ output_format: string;
1276
+ };
1277
+ }, {
1278
+ topic: string;
1279
+ plan_id: string;
1280
+ created_at: string;
1281
+ summary: string;
1282
+ queries: {
1283
+ query_id: string;
1284
+ query_text: string;
1285
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1286
+ extraction_goals: string[];
1287
+ query_family?: "web" | "patent" | "general" | undefined;
1288
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
1289
+ depends_on?: string[] | undefined;
1290
+ search_modifiers?: string[] | undefined;
1291
+ }[];
1292
+ result_schemas: {
1293
+ query_id: string;
1294
+ required_fields: {
1295
+ field_name: string;
1296
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1297
+ description: string;
1298
+ required?: boolean | undefined;
1299
+ }[];
1300
+ example?: Record<string, unknown> | undefined;
1301
+ }[];
1302
+ execution_order: string[][];
1303
+ estimated_sources: number;
1304
+ metadata: {
1305
+ depth: string;
1306
+ focus_areas: string[];
1307
+ constraints: string[];
1308
+ output_format: string;
1309
+ };
1310
+ }>;
1311
+ };
1312
+ readonly sequential_research_compile: {
1313
+ readonly input: z.ZodObject<{
1314
+ plan: z.ZodObject<{
1315
+ plan_id: z.ZodString;
1316
+ topic: z.ZodString;
1317
+ created_at: z.ZodString;
1318
+ summary: z.ZodString;
1319
+ queries: z.ZodArray<z.ZodObject<{
1320
+ query_id: z.ZodString;
1321
+ query_text: z.ZodString;
1322
+ query_type: z.ZodEnum<["definition", "comparison", "enumeration", "procedure", "causation", "evidence", "current_state", "historical", "prediction", "opinion", "patent_broad", "patent_synonyms", "patent_problem_benefit", "patent_competitor", "patent_limitation", "web_academic", "web_vendor", "web_opensource", "web_conference"]>;
1323
+ query_family: z.ZodDefault<z.ZodEnum<["general", "patent", "web"]>>;
1324
+ extraction_goals: z.ZodArray<z.ZodString, "many">;
1325
+ priority: z.ZodDefault<z.ZodEnum<["critical", "high", "medium", "low"]>>;
1326
+ depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1327
+ search_modifiers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1328
+ }, "strip", z.ZodTypeAny, {
1329
+ query_id: string;
1330
+ query_text: string;
1331
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1332
+ query_family: "web" | "patent" | "general";
1333
+ extraction_goals: string[];
1334
+ priority: "critical" | "high" | "medium" | "low";
1335
+ depends_on?: string[] | undefined;
1336
+ search_modifiers?: string[] | undefined;
1337
+ }, {
1338
+ query_id: string;
1339
+ query_text: string;
1340
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1341
+ extraction_goals: string[];
1342
+ query_family?: "web" | "patent" | "general" | undefined;
1343
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
1344
+ depends_on?: string[] | undefined;
1345
+ search_modifiers?: string[] | undefined;
1346
+ }>, "many">;
1347
+ result_schemas: z.ZodArray<z.ZodObject<{
1348
+ query_id: z.ZodString;
1349
+ required_fields: z.ZodArray<z.ZodObject<{
1350
+ field_name: z.ZodString;
1351
+ field_type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
1352
+ description: z.ZodString;
1353
+ required: z.ZodDefault<z.ZodBoolean>;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ field_name: string;
1356
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1357
+ description: string;
1358
+ required: boolean;
1359
+ }, {
1360
+ field_name: string;
1361
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1362
+ description: string;
1363
+ required?: boolean | undefined;
1364
+ }>, "many">;
1365
+ example: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ query_id: string;
1368
+ required_fields: {
1369
+ field_name: string;
1370
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1371
+ description: string;
1372
+ required: boolean;
1373
+ }[];
1374
+ example?: Record<string, unknown> | undefined;
1375
+ }, {
1376
+ query_id: string;
1377
+ required_fields: {
1378
+ field_name: string;
1379
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1380
+ description: string;
1381
+ required?: boolean | undefined;
1382
+ }[];
1383
+ example?: Record<string, unknown> | undefined;
1384
+ }>, "many">;
1385
+ execution_order: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
1386
+ estimated_sources: z.ZodNumber;
1387
+ metadata: z.ZodObject<{
1388
+ depth: z.ZodString;
1389
+ focus_areas: z.ZodArray<z.ZodString, "many">;
1390
+ constraints: z.ZodArray<z.ZodString, "many">;
1391
+ output_format: z.ZodString;
1392
+ }, "strip", z.ZodTypeAny, {
1393
+ depth: string;
1394
+ focus_areas: string[];
1395
+ constraints: string[];
1396
+ output_format: string;
1397
+ }, {
1398
+ depth: string;
1399
+ focus_areas: string[];
1400
+ constraints: string[];
1401
+ output_format: string;
1402
+ }>;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ topic: string;
1405
+ plan_id: string;
1406
+ created_at: string;
1407
+ summary: string;
1408
+ queries: {
1409
+ query_id: string;
1410
+ query_text: string;
1411
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1412
+ query_family: "web" | "patent" | "general";
1413
+ extraction_goals: string[];
1414
+ priority: "critical" | "high" | "medium" | "low";
1415
+ depends_on?: string[] | undefined;
1416
+ search_modifiers?: string[] | undefined;
1417
+ }[];
1418
+ result_schemas: {
1419
+ query_id: string;
1420
+ required_fields: {
1421
+ field_name: string;
1422
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1423
+ description: string;
1424
+ required: boolean;
1425
+ }[];
1426
+ example?: Record<string, unknown> | undefined;
1427
+ }[];
1428
+ execution_order: string[][];
1429
+ estimated_sources: number;
1430
+ metadata: {
1431
+ depth: string;
1432
+ focus_areas: string[];
1433
+ constraints: string[];
1434
+ output_format: string;
1435
+ };
1436
+ }, {
1437
+ topic: string;
1438
+ plan_id: string;
1439
+ created_at: string;
1440
+ summary: string;
1441
+ queries: {
1442
+ query_id: string;
1443
+ query_text: string;
1444
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1445
+ extraction_goals: string[];
1446
+ query_family?: "web" | "patent" | "general" | undefined;
1447
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
1448
+ depends_on?: string[] | undefined;
1449
+ search_modifiers?: string[] | undefined;
1450
+ }[];
1451
+ result_schemas: {
1452
+ query_id: string;
1453
+ required_fields: {
1454
+ field_name: string;
1455
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1456
+ description: string;
1457
+ required?: boolean | undefined;
1458
+ }[];
1459
+ example?: Record<string, unknown> | undefined;
1460
+ }[];
1461
+ execution_order: string[][];
1462
+ estimated_sources: number;
1463
+ metadata: {
1464
+ depth: string;
1465
+ focus_areas: string[];
1466
+ constraints: string[];
1467
+ output_format: string;
1468
+ };
1469
+ }>;
1470
+ raw_results: z.ZodArray<z.ZodObject<{
1471
+ query_id: z.ZodString;
1472
+ success: z.ZodBoolean;
1473
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1474
+ sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
1475
+ id: z.ZodString;
1476
+ source_type: z.ZodEnum<["web", "document", "api", "database", "manual", "patent"]>;
1477
+ title: z.ZodString;
1478
+ url: z.ZodOptional<z.ZodString>;
1479
+ accessed_date: z.ZodOptional<z.ZodString>;
1480
+ excerpt: z.ZodOptional<z.ZodString>;
1481
+ patent_number: z.ZodOptional<z.ZodString>;
1482
+ assignee: z.ZodOptional<z.ZodString>;
1483
+ filing_date: z.ZodOptional<z.ZodString>;
1484
+ priority_date: z.ZodOptional<z.ZodString>;
1485
+ claims_count: z.ZodOptional<z.ZodNumber>;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ id: string;
1488
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1489
+ title: string;
1490
+ url?: string | undefined;
1491
+ accessed_date?: string | undefined;
1492
+ excerpt?: string | undefined;
1493
+ patent_number?: string | undefined;
1494
+ assignee?: string | undefined;
1495
+ filing_date?: string | undefined;
1496
+ priority_date?: string | undefined;
1497
+ claims_count?: number | undefined;
1498
+ }, {
1499
+ id: string;
1500
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1501
+ title: string;
1502
+ url?: string | undefined;
1503
+ accessed_date?: string | undefined;
1504
+ excerpt?: string | undefined;
1505
+ patent_number?: string | undefined;
1506
+ assignee?: string | undefined;
1507
+ filing_date?: string | undefined;
1508
+ priority_date?: string | undefined;
1509
+ claims_count?: number | undefined;
1510
+ }>, "many">>;
1511
+ error: z.ZodOptional<z.ZodString>;
1512
+ execution_notes: z.ZodOptional<z.ZodString>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ query_id: string;
1515
+ success: boolean;
1516
+ data?: Record<string, unknown> | undefined;
1517
+ sources?: {
1518
+ id: string;
1519
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1520
+ title: string;
1521
+ url?: string | undefined;
1522
+ accessed_date?: string | undefined;
1523
+ excerpt?: string | undefined;
1524
+ patent_number?: string | undefined;
1525
+ assignee?: string | undefined;
1526
+ filing_date?: string | undefined;
1527
+ priority_date?: string | undefined;
1528
+ claims_count?: number | undefined;
1529
+ }[] | undefined;
1530
+ error?: string | undefined;
1531
+ execution_notes?: string | undefined;
1532
+ }, {
1533
+ query_id: string;
1534
+ success: boolean;
1535
+ data?: Record<string, unknown> | undefined;
1536
+ sources?: {
1537
+ id: string;
1538
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1539
+ title: string;
1540
+ url?: string | undefined;
1541
+ accessed_date?: string | undefined;
1542
+ excerpt?: string | undefined;
1543
+ patent_number?: string | undefined;
1544
+ assignee?: string | undefined;
1545
+ filing_date?: string | undefined;
1546
+ priority_date?: string | undefined;
1547
+ claims_count?: number | undefined;
1548
+ }[] | undefined;
1549
+ error?: string | undefined;
1550
+ execution_notes?: string | undefined;
1551
+ }>, "many">;
1552
+ include_sources: z.ZodDefault<z.ZodBoolean>;
1553
+ include_methodology: z.ZodDefault<z.ZodBoolean>;
1554
+ citation_style: z.ZodDefault<z.ZodEnum<["inline", "footnote", "endnote"]>>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ plan: {
1557
+ topic: string;
1558
+ plan_id: string;
1559
+ created_at: string;
1560
+ summary: string;
1561
+ queries: {
1562
+ query_id: string;
1563
+ query_text: string;
1564
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1565
+ query_family: "web" | "patent" | "general";
1566
+ extraction_goals: string[];
1567
+ priority: "critical" | "high" | "medium" | "low";
1568
+ depends_on?: string[] | undefined;
1569
+ search_modifiers?: string[] | undefined;
1570
+ }[];
1571
+ result_schemas: {
1572
+ query_id: string;
1573
+ required_fields: {
1574
+ field_name: string;
1575
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1576
+ description: string;
1577
+ required: boolean;
1578
+ }[];
1579
+ example?: Record<string, unknown> | undefined;
1580
+ }[];
1581
+ execution_order: string[][];
1582
+ estimated_sources: number;
1583
+ metadata: {
1584
+ depth: string;
1585
+ focus_areas: string[];
1586
+ constraints: string[];
1587
+ output_format: string;
1588
+ };
1589
+ };
1590
+ raw_results: {
1591
+ query_id: string;
1592
+ success: boolean;
1593
+ data?: Record<string, unknown> | undefined;
1594
+ sources?: {
1595
+ id: string;
1596
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1597
+ title: string;
1598
+ url?: string | undefined;
1599
+ accessed_date?: string | undefined;
1600
+ excerpt?: string | undefined;
1601
+ patent_number?: string | undefined;
1602
+ assignee?: string | undefined;
1603
+ filing_date?: string | undefined;
1604
+ priority_date?: string | undefined;
1605
+ claims_count?: number | undefined;
1606
+ }[] | undefined;
1607
+ error?: string | undefined;
1608
+ execution_notes?: string | undefined;
1609
+ }[];
1610
+ include_sources: boolean;
1611
+ include_methodology: boolean;
1612
+ citation_style: "inline" | "footnote" | "endnote";
1613
+ }, {
1614
+ plan: {
1615
+ topic: string;
1616
+ plan_id: string;
1617
+ created_at: string;
1618
+ summary: string;
1619
+ queries: {
1620
+ query_id: string;
1621
+ query_text: string;
1622
+ query_type: "definition" | "comparison" | "enumeration" | "procedure" | "causation" | "evidence" | "current_state" | "historical" | "prediction" | "opinion" | "patent_broad" | "patent_synonyms" | "patent_problem_benefit" | "patent_competitor" | "patent_limitation" | "web_academic" | "web_vendor" | "web_opensource" | "web_conference";
1623
+ extraction_goals: string[];
1624
+ query_family?: "web" | "patent" | "general" | undefined;
1625
+ priority?: "critical" | "high" | "medium" | "low" | undefined;
1626
+ depends_on?: string[] | undefined;
1627
+ search_modifiers?: string[] | undefined;
1628
+ }[];
1629
+ result_schemas: {
1630
+ query_id: string;
1631
+ required_fields: {
1632
+ field_name: string;
1633
+ field_type: "string" | "number" | "boolean" | "object" | "array";
1634
+ description: string;
1635
+ required?: boolean | undefined;
1636
+ }[];
1637
+ example?: Record<string, unknown> | undefined;
1638
+ }[];
1639
+ execution_order: string[][];
1640
+ estimated_sources: number;
1641
+ metadata: {
1642
+ depth: string;
1643
+ focus_areas: string[];
1644
+ constraints: string[];
1645
+ output_format: string;
1646
+ };
1647
+ };
1648
+ raw_results: {
1649
+ query_id: string;
1650
+ success: boolean;
1651
+ data?: Record<string, unknown> | undefined;
1652
+ sources?: {
1653
+ id: string;
1654
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1655
+ title: string;
1656
+ url?: string | undefined;
1657
+ accessed_date?: string | undefined;
1658
+ excerpt?: string | undefined;
1659
+ patent_number?: string | undefined;
1660
+ assignee?: string | undefined;
1661
+ filing_date?: string | undefined;
1662
+ priority_date?: string | undefined;
1663
+ claims_count?: number | undefined;
1664
+ }[] | undefined;
1665
+ error?: string | undefined;
1666
+ execution_notes?: string | undefined;
1667
+ }[];
1668
+ include_sources?: boolean | undefined;
1669
+ include_methodology?: boolean | undefined;
1670
+ citation_style?: "inline" | "footnote" | "endnote" | undefined;
1671
+ }>;
1672
+ readonly output: z.ZodObject<{
1673
+ report_id: z.ZodString;
1674
+ plan_id: z.ZodString;
1675
+ title: z.ZodString;
1676
+ compiled_at: z.ZodString;
1677
+ executive_summary: z.ZodString;
1678
+ sections: z.ZodArray<z.ZodObject<{
1679
+ heading: z.ZodString;
1680
+ level: z.ZodNumber;
1681
+ content: z.ZodString;
1682
+ citations_used: z.ZodArray<z.ZodString, "many">;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ heading: string;
1685
+ level: number;
1686
+ content: string;
1687
+ citations_used: string[];
1688
+ }, {
1689
+ heading: string;
1690
+ level: number;
1691
+ content: string;
1692
+ citations_used: string[];
1693
+ }>, "many">;
1694
+ markdown_report: z.ZodString;
1695
+ sources: z.ZodArray<z.ZodObject<{
1696
+ id: z.ZodString;
1697
+ source_type: z.ZodEnum<["web", "document", "api", "database", "manual", "patent"]>;
1698
+ title: z.ZodString;
1699
+ url: z.ZodOptional<z.ZodString>;
1700
+ accessed_date: z.ZodOptional<z.ZodString>;
1701
+ excerpt: z.ZodOptional<z.ZodString>;
1702
+ patent_number: z.ZodOptional<z.ZodString>;
1703
+ assignee: z.ZodOptional<z.ZodString>;
1704
+ filing_date: z.ZodOptional<z.ZodString>;
1705
+ priority_date: z.ZodOptional<z.ZodString>;
1706
+ claims_count: z.ZodOptional<z.ZodNumber>;
1707
+ }, "strip", z.ZodTypeAny, {
1708
+ id: string;
1709
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1710
+ title: string;
1711
+ url?: string | undefined;
1712
+ accessed_date?: string | undefined;
1713
+ excerpt?: string | undefined;
1714
+ patent_number?: string | undefined;
1715
+ assignee?: string | undefined;
1716
+ filing_date?: string | undefined;
1717
+ priority_date?: string | undefined;
1718
+ claims_count?: number | undefined;
1719
+ }, {
1720
+ id: string;
1721
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1722
+ title: string;
1723
+ url?: string | undefined;
1724
+ accessed_date?: string | undefined;
1725
+ excerpt?: string | undefined;
1726
+ patent_number?: string | undefined;
1727
+ assignee?: string | undefined;
1728
+ filing_date?: string | undefined;
1729
+ priority_date?: string | undefined;
1730
+ claims_count?: number | undefined;
1731
+ }>, "many">;
1732
+ statistics: z.ZodObject<{
1733
+ queries_executed: z.ZodNumber;
1734
+ queries_succeeded: z.ZodNumber;
1735
+ queries_failed: z.ZodNumber;
1736
+ total_sources: z.ZodNumber;
1737
+ word_count: z.ZodNumber;
1738
+ patent_sources: z.ZodOptional<z.ZodNumber>;
1739
+ web_sources: z.ZodOptional<z.ZodNumber>;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ queries_executed: number;
1742
+ queries_succeeded: number;
1743
+ queries_failed: number;
1744
+ total_sources: number;
1745
+ word_count: number;
1746
+ patent_sources?: number | undefined;
1747
+ web_sources?: number | undefined;
1748
+ }, {
1749
+ queries_executed: number;
1750
+ queries_succeeded: number;
1751
+ queries_failed: number;
1752
+ total_sources: number;
1753
+ word_count: number;
1754
+ patent_sources?: number | undefined;
1755
+ web_sources?: number | undefined;
1756
+ }>;
1757
+ prior_art_clusters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1758
+ cluster_id: z.ZodString;
1759
+ theme: z.ZodString;
1760
+ source_ids: z.ZodArray<z.ZodString, "many">;
1761
+ relevance: z.ZodEnum<["high", "medium", "low"]>;
1762
+ overlap_notes: z.ZodOptional<z.ZodString>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ cluster_id: string;
1765
+ theme: string;
1766
+ source_ids: string[];
1767
+ relevance: "high" | "medium" | "low";
1768
+ overlap_notes?: string | undefined;
1769
+ }, {
1770
+ cluster_id: string;
1771
+ theme: string;
1772
+ source_ids: string[];
1773
+ relevance: "high" | "medium" | "low";
1774
+ overlap_notes?: string | undefined;
1775
+ }>, "many">>;
1776
+ claim_risk_flags: z.ZodOptional<z.ZodArray<z.ZodObject<{
1777
+ risk_id: z.ZodString;
1778
+ severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
1779
+ category: z.ZodEnum<["anticipation", "obviousness", "enablement", "written_description", "indefiniteness"]>;
1780
+ description: z.ZodString;
1781
+ affected_elements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1782
+ blocking_sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1783
+ mitigation: z.ZodOptional<z.ZodString>;
1784
+ }, "strip", z.ZodTypeAny, {
1785
+ description: string;
1786
+ risk_id: string;
1787
+ severity: "critical" | "high" | "medium" | "low";
1788
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
1789
+ affected_elements?: string[] | undefined;
1790
+ blocking_sources?: string[] | undefined;
1791
+ mitigation?: string | undefined;
1792
+ }, {
1793
+ description: string;
1794
+ risk_id: string;
1795
+ severity: "critical" | "high" | "medium" | "low";
1796
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
1797
+ affected_elements?: string[] | undefined;
1798
+ blocking_sources?: string[] | undefined;
1799
+ mitigation?: string | undefined;
1800
+ }>, "many">>;
1801
+ novelty_gaps: z.ZodOptional<z.ZodArray<z.ZodObject<{
1802
+ gap_id: z.ZodString;
1803
+ limitation_type: z.ZodEnum<["structural", "functional", "material", "process", "parameter", "combination"]>;
1804
+ description: z.ZodString;
1805
+ confidence: z.ZodEnum<["high", "medium", "low"]>;
1806
+ supporting_evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1807
+ claim_language_suggestion: z.ZodOptional<z.ZodString>;
1808
+ }, "strip", z.ZodTypeAny, {
1809
+ description: string;
1810
+ gap_id: string;
1811
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
1812
+ confidence: "high" | "medium" | "low";
1813
+ supporting_evidence?: string[] | undefined;
1814
+ claim_language_suggestion?: string | undefined;
1815
+ }, {
1816
+ description: string;
1817
+ gap_id: string;
1818
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
1819
+ confidence: "high" | "medium" | "low";
1820
+ supporting_evidence?: string[] | undefined;
1821
+ claim_language_suggestion?: string | undefined;
1822
+ }>, "many">>;
1823
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ title: string;
1826
+ plan_id: string;
1827
+ sources: {
1828
+ id: string;
1829
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1830
+ title: string;
1831
+ url?: string | undefined;
1832
+ accessed_date?: string | undefined;
1833
+ excerpt?: string | undefined;
1834
+ patent_number?: string | undefined;
1835
+ assignee?: string | undefined;
1836
+ filing_date?: string | undefined;
1837
+ priority_date?: string | undefined;
1838
+ claims_count?: number | undefined;
1839
+ }[];
1840
+ report_id: string;
1841
+ compiled_at: string;
1842
+ executive_summary: string;
1843
+ sections: {
1844
+ heading: string;
1845
+ level: number;
1846
+ content: string;
1847
+ citations_used: string[];
1848
+ }[];
1849
+ markdown_report: string;
1850
+ statistics: {
1851
+ queries_executed: number;
1852
+ queries_succeeded: number;
1853
+ queries_failed: number;
1854
+ total_sources: number;
1855
+ word_count: number;
1856
+ patent_sources?: number | undefined;
1857
+ web_sources?: number | undefined;
1858
+ };
1859
+ prior_art_clusters?: {
1860
+ cluster_id: string;
1861
+ theme: string;
1862
+ source_ids: string[];
1863
+ relevance: "high" | "medium" | "low";
1864
+ overlap_notes?: string | undefined;
1865
+ }[] | undefined;
1866
+ claim_risk_flags?: {
1867
+ description: string;
1868
+ risk_id: string;
1869
+ severity: "critical" | "high" | "medium" | "low";
1870
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
1871
+ affected_elements?: string[] | undefined;
1872
+ blocking_sources?: string[] | undefined;
1873
+ mitigation?: string | undefined;
1874
+ }[] | undefined;
1875
+ novelty_gaps?: {
1876
+ description: string;
1877
+ gap_id: string;
1878
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
1879
+ confidence: "high" | "medium" | "low";
1880
+ supporting_evidence?: string[] | undefined;
1881
+ claim_language_suggestion?: string | undefined;
1882
+ }[] | undefined;
1883
+ warnings?: string[] | undefined;
1884
+ }, {
1885
+ title: string;
1886
+ plan_id: string;
1887
+ sources: {
1888
+ id: string;
1889
+ source_type: "web" | "document" | "api" | "database" | "manual" | "patent";
1890
+ title: string;
1891
+ url?: string | undefined;
1892
+ accessed_date?: string | undefined;
1893
+ excerpt?: string | undefined;
1894
+ patent_number?: string | undefined;
1895
+ assignee?: string | undefined;
1896
+ filing_date?: string | undefined;
1897
+ priority_date?: string | undefined;
1898
+ claims_count?: number | undefined;
1899
+ }[];
1900
+ report_id: string;
1901
+ compiled_at: string;
1902
+ executive_summary: string;
1903
+ sections: {
1904
+ heading: string;
1905
+ level: number;
1906
+ content: string;
1907
+ citations_used: string[];
1908
+ }[];
1909
+ markdown_report: string;
1910
+ statistics: {
1911
+ queries_executed: number;
1912
+ queries_succeeded: number;
1913
+ queries_failed: number;
1914
+ total_sources: number;
1915
+ word_count: number;
1916
+ patent_sources?: number | undefined;
1917
+ web_sources?: number | undefined;
1918
+ };
1919
+ prior_art_clusters?: {
1920
+ cluster_id: string;
1921
+ theme: string;
1922
+ source_ids: string[];
1923
+ relevance: "high" | "medium" | "low";
1924
+ overlap_notes?: string | undefined;
1925
+ }[] | undefined;
1926
+ claim_risk_flags?: {
1927
+ description: string;
1928
+ risk_id: string;
1929
+ severity: "critical" | "high" | "medium" | "low";
1930
+ category: "anticipation" | "obviousness" | "enablement" | "written_description" | "indefiniteness";
1931
+ affected_elements?: string[] | undefined;
1932
+ blocking_sources?: string[] | undefined;
1933
+ mitigation?: string | undefined;
1934
+ }[] | undefined;
1935
+ novelty_gaps?: {
1936
+ description: string;
1937
+ gap_id: string;
1938
+ limitation_type: "structural" | "functional" | "material" | "process" | "parameter" | "combination";
1939
+ confidence: "high" | "medium" | "low";
1940
+ supporting_evidence?: string[] | undefined;
1941
+ claim_language_suggestion?: string | undefined;
1942
+ }[] | undefined;
1943
+ warnings?: string[] | undefined;
1944
+ }>;
1945
+ };
1946
+ };
1947
+ //# sourceMappingURL=schema.d.ts.map