contextforge-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,706 @@
1
+ import { z } from 'zod';
2
+ export declare const ConfigSchema: z.ZodObject<{
3
+ apiKey: z.ZodString;
4
+ apiUrl: z.ZodDefault<z.ZodString>;
5
+ defaultSpace: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ apiKey: string;
8
+ apiUrl: string;
9
+ defaultSpace?: string | undefined;
10
+ }, {
11
+ apiKey: string;
12
+ apiUrl?: string | undefined;
13
+ defaultSpace?: string | undefined;
14
+ }>;
15
+ export type Config = z.infer<typeof ConfigSchema>;
16
+ export interface ApiError {
17
+ error: string;
18
+ code?: string;
19
+ details?: Record<string, unknown>;
20
+ }
21
+ export interface Space {
22
+ id: string;
23
+ name: string;
24
+ slug: string;
25
+ description?: string;
26
+ settings: SpaceSettings;
27
+ created_at: string;
28
+ updated_at: string;
29
+ }
30
+ export interface SpaceSettings {
31
+ auto_learning: boolean;
32
+ git_sync_enabled: boolean;
33
+ default_priority_decay: number;
34
+ embedding_model: string;
35
+ }
36
+ export interface KnowledgeItem {
37
+ id: string;
38
+ content: string;
39
+ title?: string;
40
+ source_type: SourceType;
41
+ source_uri?: string;
42
+ tags: string[];
43
+ category?: string;
44
+ priority_score: number;
45
+ created_at: string;
46
+ updated_at: string;
47
+ }
48
+ export type SourceType = 'manual' | 'git_commit' | 'git_pr' | 'git_file' | 'url' | 'file_upload' | 'api_ingestion';
49
+ export interface Relationship {
50
+ id: string;
51
+ source_item_id: string;
52
+ target_item_id: string;
53
+ relationship_type: RelationshipType;
54
+ weight: number;
55
+ confidence: number;
56
+ }
57
+ export type RelationshipType = 'references' | 'implements' | 'extends' | 'depends_on' | 'related_to' | 'contradicts' | 'supersedes' | 'part_of' | 'similar_to' | 'derived_from';
58
+ export declare const IngestInputSchema: z.ZodObject<{
59
+ content: z.ZodString;
60
+ title: z.ZodOptional<z.ZodString>;
61
+ source_type: z.ZodDefault<z.ZodEnum<["manual", "url", "file_upload", "api_ingestion"]>>;
62
+ source_uri: z.ZodOptional<z.ZodString>;
63
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
64
+ category: z.ZodOptional<z.ZodString>;
65
+ space_id: z.ZodOptional<z.ZodString>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ content: string;
68
+ source_type: "manual" | "url" | "file_upload" | "api_ingestion";
69
+ tags: string[];
70
+ title?: string | undefined;
71
+ source_uri?: string | undefined;
72
+ category?: string | undefined;
73
+ space_id?: string | undefined;
74
+ }, {
75
+ content: string;
76
+ title?: string | undefined;
77
+ source_type?: "manual" | "url" | "file_upload" | "api_ingestion" | undefined;
78
+ source_uri?: string | undefined;
79
+ tags?: string[] | undefined;
80
+ category?: string | undefined;
81
+ space_id?: string | undefined;
82
+ }>;
83
+ export type IngestInput = z.infer<typeof IngestInputSchema>;
84
+ export declare const QueryInputSchema: z.ZodObject<{
85
+ query: z.ZodString;
86
+ space_id: z.ZodOptional<z.ZodString>;
87
+ limit: z.ZodDefault<z.ZodNumber>;
88
+ min_score: z.ZodDefault<z.ZodNumber>;
89
+ filters: z.ZodOptional<z.ZodObject<{
90
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
91
+ source_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["manual", "git_commit", "git_pr", "git_file", "url", "file_upload", "api_ingestion"]>, "many">>;
92
+ category: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ tags?: string[] | undefined;
95
+ category?: string | undefined;
96
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
97
+ }, {
98
+ tags?: string[] | undefined;
99
+ category?: string | undefined;
100
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
101
+ }>>;
102
+ include_relationships: z.ZodDefault<z.ZodBoolean>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ query: string;
105
+ limit: number;
106
+ min_score: number;
107
+ include_relationships: boolean;
108
+ space_id?: string | undefined;
109
+ filters?: {
110
+ tags?: string[] | undefined;
111
+ category?: string | undefined;
112
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
113
+ } | undefined;
114
+ }, {
115
+ query: string;
116
+ space_id?: string | undefined;
117
+ limit?: number | undefined;
118
+ min_score?: number | undefined;
119
+ filters?: {
120
+ tags?: string[] | undefined;
121
+ category?: string | undefined;
122
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
123
+ } | undefined;
124
+ include_relationships?: boolean | undefined;
125
+ }>;
126
+ export type QueryInput = z.infer<typeof QueryInputSchema>;
127
+ export declare const RelateInputSchema: z.ZodObject<{
128
+ source_id: z.ZodString;
129
+ target_id: z.ZodString;
130
+ relationship_type: z.ZodEnum<["references", "implements", "extends", "depends_on", "related_to", "contradicts", "supersedes", "part_of", "similar_to", "derived_from"]>;
131
+ weight: z.ZodDefault<z.ZodNumber>;
132
+ bidirectional: z.ZodDefault<z.ZodBoolean>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ source_id: string;
135
+ target_id: string;
136
+ relationship_type: "references" | "implements" | "extends" | "depends_on" | "related_to" | "contradicts" | "supersedes" | "part_of" | "similar_to" | "derived_from";
137
+ weight: number;
138
+ bidirectional: boolean;
139
+ }, {
140
+ source_id: string;
141
+ target_id: string;
142
+ relationship_type: "references" | "implements" | "extends" | "depends_on" | "related_to" | "contradicts" | "supersedes" | "part_of" | "similar_to" | "derived_from";
143
+ weight?: number | undefined;
144
+ bidirectional?: boolean | undefined;
145
+ }>;
146
+ export type RelateInput = z.infer<typeof RelateInputSchema>;
147
+ export declare const CreateSpaceInputSchema: z.ZodObject<{
148
+ name: z.ZodString;
149
+ description: z.ZodOptional<z.ZodString>;
150
+ settings: z.ZodOptional<z.ZodObject<{
151
+ auto_learning: z.ZodDefault<z.ZodBoolean>;
152
+ git_sync_enabled: z.ZodDefault<z.ZodBoolean>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ auto_learning: boolean;
155
+ git_sync_enabled: boolean;
156
+ }, {
157
+ auto_learning?: boolean | undefined;
158
+ git_sync_enabled?: boolean | undefined;
159
+ }>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ name: string;
162
+ description?: string | undefined;
163
+ settings?: {
164
+ auto_learning: boolean;
165
+ git_sync_enabled: boolean;
166
+ } | undefined;
167
+ }, {
168
+ name: string;
169
+ description?: string | undefined;
170
+ settings?: {
171
+ auto_learning?: boolean | undefined;
172
+ git_sync_enabled?: boolean | undefined;
173
+ } | undefined;
174
+ }>;
175
+ export type CreateSpaceInput = z.infer<typeof CreateSpaceInputSchema>;
176
+ export declare const DeleteInputSchema: z.ZodEffects<z.ZodObject<{
177
+ id: z.ZodOptional<z.ZodString>;
178
+ title: z.ZodOptional<z.ZodString>;
179
+ space_id: z.ZodOptional<z.ZodString>;
180
+ cascade: z.ZodDefault<z.ZodBoolean>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ cascade: boolean;
183
+ title?: string | undefined;
184
+ space_id?: string | undefined;
185
+ id?: string | undefined;
186
+ }, {
187
+ title?: string | undefined;
188
+ space_id?: string | undefined;
189
+ id?: string | undefined;
190
+ cascade?: boolean | undefined;
191
+ }>, {
192
+ cascade: boolean;
193
+ title?: string | undefined;
194
+ space_id?: string | undefined;
195
+ id?: string | undefined;
196
+ }, {
197
+ title?: string | undefined;
198
+ space_id?: string | undefined;
199
+ id?: string | undefined;
200
+ cascade?: boolean | undefined;
201
+ }>;
202
+ export type DeleteInput = z.infer<typeof DeleteInputSchema>;
203
+ export interface QueryResult {
204
+ id: string;
205
+ content: string;
206
+ title?: string;
207
+ score: number;
208
+ priority_score: number;
209
+ source_type: SourceType;
210
+ source_uri?: string;
211
+ tags: string[];
212
+ relationships?: Array<{
213
+ type: RelationshipType;
214
+ target_id: string;
215
+ target_title?: string;
216
+ weight: number;
217
+ }>;
218
+ }
219
+ export interface QueryResponse {
220
+ results: QueryResult[];
221
+ query_embedding_cached: boolean;
222
+ tokens_used: number;
223
+ latency_ms: number;
224
+ }
225
+ export interface IngestResponse {
226
+ created: number;
227
+ duplicates_skipped: number;
228
+ items: Array<{
229
+ id: string;
230
+ status: 'created' | 'duplicate' | 'error';
231
+ error?: string;
232
+ }>;
233
+ tokens_used: number;
234
+ }
235
+ export interface StatsResponse {
236
+ space_id?: string;
237
+ total_documents: number;
238
+ total_relationships: number;
239
+ total_snapshots: number;
240
+ storage_used_mb: number;
241
+ queries_this_month: number;
242
+ plan: {
243
+ name: string;
244
+ documents_limit: number;
245
+ queries_limit: number;
246
+ };
247
+ }
248
+ export declare const GitConnectInputSchema: z.ZodObject<{
249
+ repo_url: z.ZodString;
250
+ space_id: z.ZodString;
251
+ }, "strip", z.ZodTypeAny, {
252
+ space_id: string;
253
+ repo_url: string;
254
+ }, {
255
+ space_id: string;
256
+ repo_url: string;
257
+ }>;
258
+ export type GitConnectInput = z.infer<typeof GitConnectInputSchema>;
259
+ export declare const GitActivateInputSchema: z.ZodEffects<z.ZodObject<{
260
+ repository_id: z.ZodOptional<z.ZodString>;
261
+ repo: z.ZodOptional<z.ZodString>;
262
+ active: z.ZodDefault<z.ZodBoolean>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ active: boolean;
265
+ repository_id?: string | undefined;
266
+ repo?: string | undefined;
267
+ }, {
268
+ repository_id?: string | undefined;
269
+ repo?: string | undefined;
270
+ active?: boolean | undefined;
271
+ }>, {
272
+ active: boolean;
273
+ repository_id?: string | undefined;
274
+ repo?: string | undefined;
275
+ }, {
276
+ repository_id?: string | undefined;
277
+ repo?: string | undefined;
278
+ active?: boolean | undefined;
279
+ }>;
280
+ export type GitActivateInput = z.infer<typeof GitActivateInputSchema>;
281
+ export declare const GitDisconnectInputSchema: z.ZodEffects<z.ZodObject<{
282
+ repository_id: z.ZodOptional<z.ZodString>;
283
+ repo: z.ZodOptional<z.ZodString>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ repository_id?: string | undefined;
286
+ repo?: string | undefined;
287
+ }, {
288
+ repository_id?: string | undefined;
289
+ repo?: string | undefined;
290
+ }>, {
291
+ repository_id?: string | undefined;
292
+ repo?: string | undefined;
293
+ }, {
294
+ repository_id?: string | undefined;
295
+ repo?: string | undefined;
296
+ }>;
297
+ export type GitDisconnectInput = z.infer<typeof GitDisconnectInputSchema>;
298
+ export interface GitRepository {
299
+ id: string;
300
+ owner: string;
301
+ name: string;
302
+ full_name: string;
303
+ url: string;
304
+ default_branch: string;
305
+ webhook_active: boolean;
306
+ status: 'pending' | 'active' | 'error' | 'disabled';
307
+ last_sync_at?: string;
308
+ space?: {
309
+ id: string;
310
+ name: string;
311
+ };
312
+ settings: {
313
+ sync_commits: boolean;
314
+ sync_prs: boolean;
315
+ sync_readme: boolean;
316
+ sync_file_changes: boolean;
317
+ };
318
+ created_at: string;
319
+ }
320
+ export interface GitConnectResponse {
321
+ success: boolean;
322
+ repository: {
323
+ id: string;
324
+ owner: string;
325
+ name: string;
326
+ full_name: string;
327
+ status: string;
328
+ };
329
+ webhook_setup: {
330
+ url: string;
331
+ secret: string;
332
+ content_type: string;
333
+ events: string[];
334
+ instructions: string[];
335
+ };
336
+ }
337
+ export interface GitListResponse {
338
+ repositories: GitRepository[];
339
+ total: number;
340
+ }
341
+ export declare const SnapshotCreateInputSchema: z.ZodObject<{
342
+ space_id: z.ZodString;
343
+ name: z.ZodString;
344
+ description: z.ZodOptional<z.ZodString>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ space_id: string;
347
+ name: string;
348
+ description?: string | undefined;
349
+ }, {
350
+ space_id: string;
351
+ name: string;
352
+ description?: string | undefined;
353
+ }>;
354
+ export type SnapshotCreateInput = z.infer<typeof SnapshotCreateInputSchema>;
355
+ export declare const SnapshotRestoreInputSchema: z.ZodObject<{
356
+ snapshot_id: z.ZodString;
357
+ mode: z.ZodDefault<z.ZodEnum<["merge", "replace"]>>;
358
+ }, "strip", z.ZodTypeAny, {
359
+ snapshot_id: string;
360
+ mode: "merge" | "replace";
361
+ }, {
362
+ snapshot_id: string;
363
+ mode?: "merge" | "replace" | undefined;
364
+ }>;
365
+ export type SnapshotRestoreInput = z.infer<typeof SnapshotRestoreInputSchema>;
366
+ export declare const SnapshotDeleteInputSchema: z.ZodObject<{
367
+ snapshot_id: z.ZodString;
368
+ }, "strip", z.ZodTypeAny, {
369
+ snapshot_id: string;
370
+ }, {
371
+ snapshot_id: string;
372
+ }>;
373
+ export type SnapshotDeleteInput = z.infer<typeof SnapshotDeleteInputSchema>;
374
+ export interface Snapshot {
375
+ id: string;
376
+ name: string;
377
+ description?: string;
378
+ item_count: number;
379
+ size_bytes: number;
380
+ trigger_type: 'manual' | 'auto' | 'pre_delete' | 'pre_restore' | 'scheduled';
381
+ space?: {
382
+ id: string;
383
+ name: string;
384
+ };
385
+ created_at: string;
386
+ }
387
+ export interface SnapshotListResponse {
388
+ snapshots: Snapshot[];
389
+ total: number;
390
+ }
391
+ export interface SnapshotCreateResponse {
392
+ success: boolean;
393
+ snapshot: Snapshot;
394
+ }
395
+ export interface SnapshotRestoreResponse {
396
+ success: boolean;
397
+ restored_from: {
398
+ id: string;
399
+ name: string;
400
+ };
401
+ auto_backup_id?: string;
402
+ mode: 'merge' | 'replace';
403
+ stats: {
404
+ restored_count: number;
405
+ skipped_count: number;
406
+ deleted_count: number;
407
+ };
408
+ }
409
+ export declare const ExportInputSchema: z.ZodObject<{
410
+ space_id: z.ZodString;
411
+ format: z.ZodDefault<z.ZodEnum<["json", "markdown", "csv"]>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ space_id: string;
414
+ format: "json" | "markdown" | "csv";
415
+ }, {
416
+ space_id: string;
417
+ format?: "json" | "markdown" | "csv" | undefined;
418
+ }>;
419
+ export type ExportInput = z.infer<typeof ExportInputSchema>;
420
+ export declare const ImportInputSchema: z.ZodObject<{
421
+ space_id: z.ZodString;
422
+ format: z.ZodOptional<z.ZodEnum<["contextforge", "markdown", "notion", "obsidian"]>>;
423
+ data: z.ZodOptional<z.ZodAny>;
424
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
425
+ title: z.ZodOptional<z.ZodString>;
426
+ content: z.ZodString;
427
+ source_type: z.ZodOptional<z.ZodString>;
428
+ source_uri: z.ZodOptional<z.ZodString>;
429
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
430
+ category: z.ZodOptional<z.ZodString>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ content: string;
433
+ title?: string | undefined;
434
+ source_type?: string | undefined;
435
+ source_uri?: string | undefined;
436
+ tags?: string[] | undefined;
437
+ category?: string | undefined;
438
+ }, {
439
+ content: string;
440
+ title?: string | undefined;
441
+ source_type?: string | undefined;
442
+ source_uri?: string | undefined;
443
+ tags?: string[] | undefined;
444
+ category?: string | undefined;
445
+ }>, "many">>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ space_id: string;
448
+ format?: "markdown" | "contextforge" | "notion" | "obsidian" | undefined;
449
+ data?: any;
450
+ items?: {
451
+ content: string;
452
+ title?: string | undefined;
453
+ source_type?: string | undefined;
454
+ source_uri?: string | undefined;
455
+ tags?: string[] | undefined;
456
+ category?: string | undefined;
457
+ }[] | undefined;
458
+ }, {
459
+ space_id: string;
460
+ format?: "markdown" | "contextforge" | "notion" | "obsidian" | undefined;
461
+ data?: any;
462
+ items?: {
463
+ content: string;
464
+ title?: string | undefined;
465
+ source_type?: string | undefined;
466
+ source_uri?: string | undefined;
467
+ tags?: string[] | undefined;
468
+ category?: string | undefined;
469
+ }[] | undefined;
470
+ }>;
471
+ export type ImportInput = z.infer<typeof ImportInputSchema>;
472
+ export interface ExportResponse {
473
+ version: string;
474
+ exported_at: string;
475
+ space: {
476
+ id: string;
477
+ name: string;
478
+ description?: string;
479
+ };
480
+ items: Array<{
481
+ id: string;
482
+ title?: string;
483
+ content: string;
484
+ source_type: string;
485
+ source_uri?: string;
486
+ tags: string[];
487
+ category?: string;
488
+ priority_score: number;
489
+ created_at: string;
490
+ updated_at: string;
491
+ }>;
492
+ total_items: number;
493
+ }
494
+ export interface ImportResponse {
495
+ success: boolean;
496
+ imported: number;
497
+ skipped: number;
498
+ errors?: Array<{
499
+ title: string;
500
+ error: string;
501
+ }>;
502
+ total_processed: number;
503
+ space: {
504
+ id: string;
505
+ name: string;
506
+ };
507
+ }
508
+ export declare const GitSyncInputSchema: z.ZodEffects<z.ZodObject<{
509
+ repository_id: z.ZodOptional<z.ZodString>;
510
+ repo: z.ZodOptional<z.ZodString>;
511
+ sync_type: z.ZodDefault<z.ZodEnum<["commits", "prs", "all"]>>;
512
+ limit: z.ZodDefault<z.ZodNumber>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ limit: number;
515
+ sync_type: "commits" | "prs" | "all";
516
+ repository_id?: string | undefined;
517
+ repo?: string | undefined;
518
+ }, {
519
+ limit?: number | undefined;
520
+ repository_id?: string | undefined;
521
+ repo?: string | undefined;
522
+ sync_type?: "commits" | "prs" | "all" | undefined;
523
+ }>, {
524
+ limit: number;
525
+ sync_type: "commits" | "prs" | "all";
526
+ repository_id?: string | undefined;
527
+ repo?: string | undefined;
528
+ }, {
529
+ limit?: number | undefined;
530
+ repository_id?: string | undefined;
531
+ repo?: string | undefined;
532
+ sync_type?: "commits" | "prs" | "all" | undefined;
533
+ }>;
534
+ export type GitSyncInput = z.infer<typeof GitSyncInputSchema>;
535
+ export declare const GitHistoryInputSchema: z.ZodObject<{
536
+ type: z.ZodDefault<z.ZodEnum<["commits", "prs", "all"]>>;
537
+ repository_id: z.ZodOptional<z.ZodString>;
538
+ repo: z.ZodOptional<z.ZodString>;
539
+ space_id: z.ZodOptional<z.ZodString>;
540
+ limit: z.ZodDefault<z.ZodNumber>;
541
+ offset: z.ZodDefault<z.ZodNumber>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ type: "commits" | "prs" | "all";
544
+ limit: number;
545
+ offset: number;
546
+ space_id?: string | undefined;
547
+ repository_id?: string | undefined;
548
+ repo?: string | undefined;
549
+ }, {
550
+ type?: "commits" | "prs" | "all" | undefined;
551
+ space_id?: string | undefined;
552
+ limit?: number | undefined;
553
+ repository_id?: string | undefined;
554
+ repo?: string | undefined;
555
+ offset?: number | undefined;
556
+ }>;
557
+ export type GitHistoryInput = z.infer<typeof GitHistoryInputSchema>;
558
+ export interface GitSyncResponse {
559
+ success: boolean;
560
+ repository: {
561
+ id: string;
562
+ full_name: string;
563
+ };
564
+ sync_type: string;
565
+ synced: number;
566
+ skipped: number;
567
+ items: Array<{
568
+ id: string;
569
+ type: string;
570
+ title: string;
571
+ }>;
572
+ }
573
+ export interface GitHistoryItem {
574
+ id: string;
575
+ type: 'commit' | 'pr';
576
+ title: string;
577
+ content_preview: string;
578
+ url: string;
579
+ commit_sha?: string;
580
+ repository: string | null;
581
+ tags: string[];
582
+ created_at: string;
583
+ }
584
+ export interface GitHistoryResponse {
585
+ items: GitHistoryItem[];
586
+ total: number;
587
+ commits_count: number;
588
+ prs_count: number;
589
+ limit: number;
590
+ offset: number;
591
+ }
592
+ export declare const IngestBatchInputSchema: z.ZodObject<{
593
+ space_id: z.ZodOptional<z.ZodString>;
594
+ items: z.ZodArray<z.ZodObject<{
595
+ content: z.ZodString;
596
+ title: z.ZodOptional<z.ZodString>;
597
+ source_type: z.ZodDefault<z.ZodEnum<["manual", "url", "file_upload", "api_ingestion"]>>;
598
+ source_uri: z.ZodOptional<z.ZodString>;
599
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
600
+ category: z.ZodOptional<z.ZodString>;
601
+ }, "strip", z.ZodTypeAny, {
602
+ content: string;
603
+ source_type: "manual" | "url" | "file_upload" | "api_ingestion";
604
+ tags: string[];
605
+ title?: string | undefined;
606
+ source_uri?: string | undefined;
607
+ category?: string | undefined;
608
+ }, {
609
+ content: string;
610
+ title?: string | undefined;
611
+ source_type?: "manual" | "url" | "file_upload" | "api_ingestion" | undefined;
612
+ source_uri?: string | undefined;
613
+ tags?: string[] | undefined;
614
+ category?: string | undefined;
615
+ }>, "many">;
616
+ }, "strip", z.ZodTypeAny, {
617
+ items: {
618
+ content: string;
619
+ source_type: "manual" | "url" | "file_upload" | "api_ingestion";
620
+ tags: string[];
621
+ title?: string | undefined;
622
+ source_uri?: string | undefined;
623
+ category?: string | undefined;
624
+ }[];
625
+ space_id?: string | undefined;
626
+ }, {
627
+ items: {
628
+ content: string;
629
+ title?: string | undefined;
630
+ source_type?: "manual" | "url" | "file_upload" | "api_ingestion" | undefined;
631
+ source_uri?: string | undefined;
632
+ tags?: string[] | undefined;
633
+ category?: string | undefined;
634
+ }[];
635
+ space_id?: string | undefined;
636
+ }>;
637
+ export type IngestBatchInput = z.infer<typeof IngestBatchInputSchema>;
638
+ export declare const DeleteBatchInputSchema: z.ZodObject<{
639
+ space_id: z.ZodOptional<z.ZodString>;
640
+ filter: z.ZodOptional<z.ZodObject<{
641
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
642
+ source_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["manual", "git_commit", "git_pr", "git_file", "url", "file_upload", "api_ingestion"]>, "many">>;
643
+ category: z.ZodOptional<z.ZodString>;
644
+ older_than: z.ZodOptional<z.ZodString>;
645
+ newer_than: z.ZodOptional<z.ZodString>;
646
+ title_contains: z.ZodOptional<z.ZodString>;
647
+ content_contains: z.ZodOptional<z.ZodString>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ tags?: string[] | undefined;
650
+ category?: string | undefined;
651
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
652
+ older_than?: string | undefined;
653
+ newer_than?: string | undefined;
654
+ title_contains?: string | undefined;
655
+ content_contains?: string | undefined;
656
+ }, {
657
+ tags?: string[] | undefined;
658
+ category?: string | undefined;
659
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
660
+ older_than?: string | undefined;
661
+ newer_than?: string | undefined;
662
+ title_contains?: string | undefined;
663
+ content_contains?: string | undefined;
664
+ }>>;
665
+ dry_run: z.ZodDefault<z.ZodBoolean>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ dry_run: boolean;
668
+ filter?: {
669
+ tags?: string[] | undefined;
670
+ category?: string | undefined;
671
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
672
+ older_than?: string | undefined;
673
+ newer_than?: string | undefined;
674
+ title_contains?: string | undefined;
675
+ content_contains?: string | undefined;
676
+ } | undefined;
677
+ space_id?: string | undefined;
678
+ }, {
679
+ filter?: {
680
+ tags?: string[] | undefined;
681
+ category?: string | undefined;
682
+ source_types?: ("manual" | "git_commit" | "git_pr" | "git_file" | "url" | "file_upload" | "api_ingestion")[] | undefined;
683
+ older_than?: string | undefined;
684
+ newer_than?: string | undefined;
685
+ title_contains?: string | undefined;
686
+ content_contains?: string | undefined;
687
+ } | undefined;
688
+ space_id?: string | undefined;
689
+ dry_run?: boolean | undefined;
690
+ }>;
691
+ export type DeleteBatchInput = z.infer<typeof DeleteBatchInputSchema>;
692
+ export interface DeleteBatchResponse {
693
+ success?: boolean;
694
+ dry_run: boolean;
695
+ deleted?: number;
696
+ would_delete?: number;
697
+ items: Array<{
698
+ id: string;
699
+ title: string;
700
+ source_type?: string;
701
+ tags?: string[];
702
+ created_at?: string;
703
+ }>;
704
+ message: string;
705
+ }
706
+ //# sourceMappingURL=types.d.ts.map