@lucern/mcp 0.2.0-alpha.5 → 0.2.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gateway.d.ts CHANGED
@@ -6,13 +6,13 @@ declare function handleBeliefCreate(args: {
6
6
  correlationId: string;
7
7
  policyTraceId: string;
8
8
  body: unknown;
9
- }): Promise<NextResponse>;
9
+ }): Promise<Response>;
10
10
  declare function handleBeliefGet(args: {
11
11
  authContext: GatewayAuthContext;
12
12
  correlationId: string;
13
13
  policyTraceId: string;
14
14
  beliefId: string;
15
- }): Promise<NextResponse>;
15
+ }): Promise<Response>;
16
16
  declare function handleBeliefList(args: {
17
17
  authContext: GatewayAuthContext;
18
18
  correlationId: string;
@@ -25,110 +25,110 @@ declare function handleBeliefList(args: {
25
25
  limit?: number;
26
26
  cursor?: string;
27
27
  };
28
- }): Promise<NextResponse>;
28
+ }): Promise<Response>;
29
29
  declare function handleBeliefRefine(args: {
30
30
  authContext: GatewayAuthContext;
31
31
  correlationId: string;
32
32
  policyTraceId: string;
33
33
  beliefId: string;
34
34
  body: unknown;
35
- }): Promise<NextResponse>;
35
+ }): Promise<Response>;
36
36
  declare function handleBeliefFork(args: {
37
37
  authContext: GatewayAuthContext;
38
38
  correlationId: string;
39
39
  policyTraceId: string;
40
40
  beliefId: string;
41
41
  body: unknown;
42
- }): Promise<NextResponse>;
42
+ }): Promise<Response>;
43
43
  declare function handleBeliefUpdateConfidence(args: {
44
44
  authContext: GatewayAuthContext;
45
45
  correlationId: string;
46
46
  policyTraceId: string;
47
47
  beliefId: string;
48
48
  body: unknown;
49
- }): Promise<NextResponse>;
49
+ }): Promise<Response>;
50
50
  declare function handleBeliefUpdateStatus(args: {
51
51
  authContext: GatewayAuthContext;
52
52
  correlationId: string;
53
53
  policyTraceId: string;
54
54
  body: unknown;
55
- }): Promise<NextResponse>;
55
+ }): Promise<Response>;
56
56
  declare function handleBeliefUpdateRationale(args: {
57
57
  authContext: GatewayAuthContext;
58
58
  correlationId: string;
59
59
  policyTraceId: string;
60
60
  body: unknown;
61
- }): Promise<NextResponse>;
61
+ }): Promise<Response>;
62
62
  declare function handleBeliefLink(args: {
63
63
  authContext: GatewayAuthContext;
64
64
  correlationId: string;
65
65
  policyTraceId: string;
66
66
  body: unknown;
67
- }): Promise<NextResponse>;
67
+ }): Promise<Response>;
68
68
  declare function handleBeliefUnlinkEvidence(args: {
69
69
  authContext: GatewayAuthContext;
70
70
  correlationId: string;
71
71
  policyTraceId: string;
72
72
  body: unknown;
73
- }): Promise<NextResponse>;
73
+ }): Promise<Response>;
74
74
  declare function handleBeliefUpdateCriticality(args: {
75
75
  authContext: GatewayAuthContext;
76
76
  correlationId: string;
77
77
  policyTraceId: string;
78
78
  body: unknown;
79
- }): Promise<NextResponse>;
79
+ }): Promise<Response>;
80
80
  declare function handleBeliefBatchUpdateCriticality(args: {
81
81
  authContext: GatewayAuthContext;
82
82
  correlationId: string;
83
83
  policyTraceId: string;
84
84
  body: unknown;
85
- }): Promise<NextResponse>;
85
+ }): Promise<Response>;
86
86
  declare function handleBeliefReassignTopic(args: {
87
87
  authContext: GatewayAuthContext;
88
88
  correlationId: string;
89
89
  policyTraceId: string;
90
90
  body: unknown;
91
- }): Promise<NextResponse>;
91
+ }): Promise<Response>;
92
92
  declare function handleBeliefArchive(args: {
93
93
  authContext: GatewayAuthContext;
94
94
  correlationId: string;
95
95
  policyTraceId: string;
96
96
  beliefId: string;
97
97
  body: unknown;
98
- }): Promise<NextResponse>;
98
+ }): Promise<Response>;
99
99
  declare function handleBeliefLineage(args: {
100
100
  authContext: GatewayAuthContext;
101
101
  correlationId: string;
102
102
  policyTraceId: string;
103
103
  beliefId: string;
104
- }): Promise<NextResponse>;
104
+ }): Promise<Response>;
105
105
  declare function handleBeliefConfidenceHistory(args: {
106
106
  authContext: GatewayAuthContext;
107
107
  correlationId: string;
108
108
  policyTraceId: string;
109
109
  beliefId: string;
110
- }): Promise<NextResponse>;
110
+ }): Promise<Response>;
111
111
  declare function handleBeliefRelationships(args: {
112
112
  authContext: GatewayAuthContext;
113
113
  correlationId: string;
114
114
  policyTraceId: string;
115
115
  beliefId: string;
116
116
  direction?: string;
117
- }): Promise<NextResponse>;
117
+ }): Promise<Response>;
118
118
  declare function handleBeliefCreateContract(args: {
119
119
  authContext: GatewayAuthContext;
120
120
  correlationId: string;
121
121
  policyTraceId: string;
122
122
  beliefId: string;
123
123
  body: unknown;
124
- }): Promise<NextResponse>;
124
+ }): Promise<Response>;
125
125
  declare function handleBeliefBisect(args: {
126
126
  authContext: GatewayAuthContext;
127
127
  correlationId: string;
128
128
  policyTraceId: string;
129
129
  beliefId: string;
130
130
  body: unknown;
131
- }): Promise<NextResponse>;
131
+ }): Promise<Response>;
132
132
 
133
133
  type GatewayContextAuth = {
134
134
  actorPrincipalId: string;
@@ -162,7 +162,7 @@ declare function handleContradictionFlag(args: {
162
162
  correlationId: string;
163
163
  policyTraceId: string;
164
164
  body: unknown;
165
- }): Promise<NextResponse>;
165
+ }): Promise<Response>;
166
166
  declare function handleContradictionList(args: {
167
167
  authContext: GatewayAuthContext;
168
168
  correlationId: string;
@@ -173,20 +173,20 @@ declare function handleContradictionList(args: {
173
173
  limit?: number;
174
174
  cursor?: string;
175
175
  };
176
- }): Promise<NextResponse>;
176
+ }): Promise<Response>;
177
177
  declare function handleContradictionGet(args: {
178
178
  authContext: GatewayAuthContext;
179
179
  correlationId: string;
180
180
  policyTraceId: string;
181
181
  contradictionId: string;
182
- }): Promise<NextResponse>;
182
+ }): Promise<Response>;
183
183
 
184
184
  declare function handleEdgeCreate(args: {
185
185
  authContext: GatewayAuthContext;
186
186
  correlationId: string;
187
187
  policyTraceId: string;
188
188
  body: unknown;
189
- }): Promise<NextResponse>;
189
+ }): Promise<Response>;
190
190
  declare function handleEdgeList(args: {
191
191
  authContext: GatewayAuthContext;
192
192
  correlationId: string;
@@ -197,43 +197,43 @@ declare function handleEdgeList(args: {
197
197
  limit?: number;
198
198
  cursor?: string;
199
199
  };
200
- }): Promise<NextResponse>;
200
+ }): Promise<Response>;
201
201
  declare function handleEdgeTraverse(args: {
202
202
  authContext: GatewayAuthContext;
203
203
  correlationId: string;
204
204
  policyTraceId: string;
205
205
  body: unknown;
206
- }): Promise<NextResponse>;
206
+ }): Promise<Response>;
207
207
  declare function handleEdgeUpdate(args: {
208
208
  authContext: GatewayAuthContext;
209
209
  correlationId: string;
210
210
  policyTraceId: string;
211
211
  body: unknown;
212
- }): Promise<NextResponse>;
212
+ }): Promise<Response>;
213
213
  declare function handleEdgeRemove(args: {
214
214
  authContext: GatewayAuthContext;
215
215
  correlationId: string;
216
216
  policyTraceId: string;
217
217
  body: unknown;
218
- }): Promise<NextResponse>;
218
+ }): Promise<Response>;
219
219
  declare function handleEdgesRemoveBetween(args: {
220
220
  authContext: GatewayAuthContext;
221
221
  correlationId: string;
222
222
  policyTraceId: string;
223
223
  body: unknown;
224
- }): Promise<NextResponse>;
224
+ }): Promise<Response>;
225
225
  declare function handleEdgeBatchCreate(args: {
226
226
  authContext: GatewayAuthContext;
227
227
  correlationId: string;
228
228
  policyTraceId: string;
229
229
  body: unknown;
230
- }): Promise<NextResponse>;
230
+ }): Promise<Response>;
231
231
  declare function handleEdgeDelete(args: {
232
232
  authContext: GatewayAuthContext;
233
233
  correlationId: string;
234
234
  policyTraceId: string;
235
235
  body: unknown;
236
- }): Promise<NextResponse>;
236
+ }): Promise<Response>;
237
237
 
238
238
  declare function handleEventsList(args: {
239
239
  authContext: GatewayAuthContext;
@@ -247,7 +247,7 @@ declare function handleEventsList(args: {
247
247
  endTime?: number;
248
248
  limit?: number;
249
249
  };
250
- }): Promise<NextResponse>;
250
+ }): Promise<Response>;
251
251
  declare function handleEventsReplay(args: {
252
252
  authContext: GatewayAuthContext;
253
253
  correlationId: string;
@@ -261,20 +261,20 @@ declare function handleEventsReplay(args: {
261
261
  endTime?: number;
262
262
  limit?: number;
263
263
  };
264
- }): Promise<NextResponse>;
264
+ }): Promise<Response>;
265
265
 
266
266
  declare function handleEvidenceCreate(args: {
267
267
  authContext: GatewayAuthContext;
268
268
  correlationId: string;
269
269
  policyTraceId: string;
270
270
  body: unknown;
271
- }): Promise<NextResponse>;
271
+ }): Promise<Response>;
272
272
  declare function handleEvidenceGet(args: {
273
273
  authContext: GatewayAuthContext;
274
274
  correlationId: string;
275
275
  policyTraceId: string;
276
276
  evidenceId: string;
277
- }): Promise<NextResponse>;
277
+ }): Promise<Response>;
278
278
  declare function handleEvidenceList(args: {
279
279
  authContext: GatewayAuthContext;
280
280
  correlationId: string;
@@ -285,50 +285,62 @@ declare function handleEvidenceList(args: {
285
285
  limit?: number;
286
286
  cursor?: string;
287
287
  };
288
- }): Promise<NextResponse>;
288
+ }): Promise<Response>;
289
289
  declare function handleEvidenceLink(args: {
290
290
  authContext: GatewayAuthContext;
291
291
  correlationId: string;
292
292
  policyTraceId: string;
293
293
  evidenceId: string;
294
294
  body: unknown;
295
- }): Promise<NextResponse>;
295
+ }): Promise<Response>;
296
296
  declare function handleEvidenceSearch(args: {
297
297
  authContext: GatewayAuthContext;
298
298
  correlationId: string;
299
299
  policyTraceId: string;
300
300
  body: unknown;
301
- }): Promise<NextResponse>;
301
+ }): Promise<Response>;
302
+ declare function handleEvidenceClassify(args: {
303
+ authContext: GatewayAuthContext;
304
+ correlationId: string;
305
+ policyTraceId: string;
306
+ body: unknown;
307
+ }): Promise<Response>;
308
+ declare function handleEvidenceClassifyBatch(args: {
309
+ authContext: GatewayAuthContext;
310
+ correlationId: string;
311
+ policyTraceId: string;
312
+ body: unknown;
313
+ }): Promise<Response>;
302
314
  declare function handleEvidenceUpdateStatus(args: {
303
315
  authContext: GatewayAuthContext;
304
316
  correlationId: string;
305
317
  policyTraceId: string;
306
318
  body: unknown;
307
- }): Promise<NextResponse>;
319
+ }): Promise<Response>;
308
320
  declare function handleEvidenceUpdate(args: {
309
321
  authContext: GatewayAuthContext;
310
322
  correlationId: string;
311
323
  policyTraceId: string;
312
324
  body: unknown;
313
- }): Promise<NextResponse>;
325
+ }): Promise<Response>;
314
326
  declare function handleEvidenceFlagIncorrect(args: {
315
327
  authContext: GatewayAuthContext;
316
328
  correlationId: string;
317
329
  policyTraceId: string;
318
330
  body: unknown;
319
- }): Promise<NextResponse>;
331
+ }): Promise<Response>;
320
332
  declare function handleEvidenceRemove(args: {
321
333
  authContext: GatewayAuthContext;
322
334
  correlationId: string;
323
335
  policyTraceId: string;
324
336
  body: unknown;
325
- }): Promise<NextResponse>;
337
+ }): Promise<Response>;
326
338
  declare function handleEvidenceUpdateVerificationStatus(args: {
327
339
  authContext: GatewayAuthContext;
328
340
  correlationId: string;
329
341
  policyTraceId: string;
330
342
  body: unknown;
331
- }): Promise<NextResponse>;
343
+ }): Promise<Response>;
332
344
 
333
345
  declare function handleGraphNeighborhood(args: {
334
346
  authContext: GatewayAuthContext;
@@ -339,13 +351,13 @@ declare function handleGraphNeighborhood(args: {
339
351
  globalIds?: string[];
340
352
  maxDepth?: number;
341
353
  };
342
- }): Promise<NextResponse>;
354
+ }): Promise<Response>;
343
355
  declare function handleGraphTraverse(args: {
344
356
  authContext: GatewayAuthContext;
345
357
  correlationId: string;
346
358
  policyTraceId: string;
347
359
  body: unknown;
348
- }): Promise<NextResponse>;
360
+ }): Promise<Response>;
349
361
  declare function handleGraphAnalyze(args: {
350
362
  authContext: GatewayAuthContext;
351
363
  correlationId: string;
@@ -355,7 +367,7 @@ declare function handleGraphAnalyze(args: {
355
367
  metric?: string;
356
368
  limit?: number;
357
369
  };
358
- }): Promise<NextResponse>;
370
+ }): Promise<Response>;
359
371
  declare function handleGraphBias(args: {
360
372
  authContext: GatewayAuthContext;
361
373
  correlationId: string;
@@ -365,7 +377,7 @@ declare function handleGraphBias(args: {
365
377
  threshold?: number;
366
378
  limit?: number;
367
379
  };
368
- }): Promise<NextResponse>;
380
+ }): Promise<Response>;
369
381
  declare function handleGraphGaps(args: {
370
382
  authContext: GatewayAuthContext;
371
383
  correlationId: string;
@@ -374,19 +386,19 @@ declare function handleGraphGaps(args: {
374
386
  topicId?: string;
375
387
  minConfidence?: number;
376
388
  };
377
- }): Promise<NextResponse>;
389
+ }): Promise<Response>;
378
390
  declare function handleGraphFalsify(args: {
379
391
  authContext: GatewayAuthContext;
380
392
  correlationId: string;
381
393
  policyTraceId: string;
382
394
  body: unknown;
383
- }): Promise<NextResponse>;
395
+ }): Promise<Response>;
384
396
 
385
397
  declare function handleIdentityWhoami(args: {
386
398
  authContext: GatewayAuthContext;
387
399
  correlationId: string;
388
400
  policyTraceId: string;
389
- }): Promise<NextResponse>;
401
+ }): Promise<Response>;
390
402
 
391
403
  declare function handleOntologyList(args: {
392
404
  authContext: GatewayAuthContext;
@@ -397,46 +409,46 @@ declare function handleOntologyList(args: {
397
409
  tier?: string;
398
410
  status?: string;
399
411
  };
400
- }): Promise<NextResponse>;
412
+ }): Promise<Response>;
401
413
  declare function handleOntologyGet(args: {
402
414
  authContext: GatewayAuthContext;
403
415
  correlationId: string;
404
416
  policyTraceId: string;
405
417
  ontologyId: string;
406
- }): Promise<NextResponse>;
418
+ }): Promise<Response>;
407
419
  declare function handleOntologyBind(args: {
408
420
  authContext: GatewayAuthContext;
409
421
  correlationId: string;
410
422
  policyTraceId: string;
411
423
  ontologyId: string;
412
424
  body: unknown;
413
- }): Promise<NextResponse>;
425
+ }): Promise<Response>;
414
426
  declare function handleOntologyMatch(args: {
415
427
  authContext: GatewayAuthContext;
416
428
  correlationId: string;
417
429
  policyTraceId: string;
418
430
  body: unknown;
419
- }): Promise<NextResponse>;
431
+ }): Promise<Response>;
420
432
 
421
433
  declare function handleQuestionCreate(args: {
422
434
  authContext: GatewayAuthContext;
423
435
  correlationId: string;
424
436
  policyTraceId: string;
425
437
  body: unknown;
426
- }): Promise<NextResponse>;
438
+ }): Promise<Response>;
427
439
  declare function handleQuestionGet(args: {
428
440
  authContext: GatewayAuthContext;
429
441
  correlationId: string;
430
442
  policyTraceId: string;
431
443
  questionId: string;
432
- }): Promise<NextResponse>;
444
+ }): Promise<Response>;
433
445
  declare function handleQuestionArchive(args: {
434
446
  authContext: GatewayAuthContext;
435
447
  correlationId: string;
436
448
  policyTraceId: string;
437
449
  questionId: string;
438
450
  body: unknown;
439
- }): Promise<NextResponse>;
451
+ }): Promise<Response>;
440
452
  declare function handleQuestionList(args: {
441
453
  authContext: GatewayAuthContext;
442
454
  correlationId: string;
@@ -449,96 +461,109 @@ declare function handleQuestionList(args: {
449
461
  limit?: number;
450
462
  cursor?: string;
451
463
  };
452
- }): Promise<NextResponse>;
464
+ }): Promise<Response>;
453
465
  declare function handleQuestionAnswer(args: {
454
466
  authContext: GatewayAuthContext;
455
467
  correlationId: string;
456
468
  policyTraceId: string;
457
469
  questionId: string;
458
470
  body: unknown;
459
- }): Promise<NextResponse>;
471
+ }): Promise<Response>;
460
472
  declare function handleQuestionGetAnswer(args: {
461
473
  authContext: GatewayAuthContext;
462
474
  correlationId: string;
463
475
  policyTraceId: string;
464
476
  questionId: string;
465
- }): Promise<NextResponse>;
477
+ }): Promise<Response>;
466
478
  declare function handleQuestionRefine(args: {
467
479
  authContext: GatewayAuthContext;
468
480
  correlationId: string;
469
481
  policyTraceId: string;
470
482
  questionId: string;
471
483
  body: unknown;
472
- }): Promise<NextResponse>;
484
+ }): Promise<Response>;
473
485
  declare function handleQuestionUpdateStatus(args: {
474
486
  authContext: GatewayAuthContext;
475
487
  correlationId: string;
476
488
  policyTraceId: string;
477
489
  questionId: string;
478
490
  body: unknown;
479
- }): Promise<NextResponse>;
491
+ }): Promise<Response>;
480
492
  declare function handleQuestionBatchCreate(args: {
481
493
  authContext: GatewayAuthContext;
482
494
  correlationId: string;
483
495
  policyTraceId: string;
484
496
  body: unknown;
485
- }): Promise<NextResponse>;
497
+ }): Promise<Response>;
486
498
  declare function handleQuestionAdd(args: {
487
499
  authContext: GatewayAuthContext;
488
500
  correlationId: string;
489
501
  policyTraceId: string;
490
502
  body: unknown;
491
- }): Promise<NextResponse>;
503
+ }): Promise<Response>;
492
504
  declare function handleQuestionUpdatePriority(args: {
493
505
  authContext: GatewayAuthContext;
494
506
  correlationId: string;
495
507
  policyTraceId: string;
496
508
  body: unknown;
497
- }): Promise<NextResponse>;
509
+ }): Promise<Response>;
498
510
  declare function handleQuestionAdvanceToConviction(args: {
499
511
  authContext: GatewayAuthContext;
500
512
  correlationId: string;
501
513
  policyTraceId: string;
502
514
  body: unknown;
503
- }): Promise<NextResponse>;
515
+ }): Promise<Response>;
504
516
  declare function handleQuestionUpdateConviction(args: {
505
517
  authContext: GatewayAuthContext;
506
518
  correlationId: string;
507
519
  policyTraceId: string;
508
520
  body: unknown;
509
- }): Promise<NextResponse>;
521
+ }): Promise<Response>;
510
522
  declare function handleQuestionFinalizeConviction(args: {
511
523
  authContext: GatewayAuthContext;
512
524
  correlationId: string;
513
525
  policyTraceId: string;
514
526
  body: unknown;
515
- }): Promise<NextResponse>;
527
+ }): Promise<Response>;
516
528
  declare function handleQuestionUpdate(args: {
517
529
  authContext: GatewayAuthContext;
518
530
  correlationId: string;
519
531
  policyTraceId: string;
520
532
  body: unknown;
521
- }): Promise<NextResponse>;
533
+ }): Promise<Response>;
522
534
  declare function handleQuestionDelete(args: {
523
535
  authContext: GatewayAuthContext;
524
536
  correlationId: string;
525
537
  policyTraceId: string;
526
538
  body: unknown;
527
- }): Promise<NextResponse>;
539
+ }): Promise<Response>;
528
540
 
529
541
  declare function handleSearchResources(args: {
530
542
  authContext: GatewayAuthContext;
531
543
  correlationId: string;
532
544
  policyTraceId: string;
533
545
  body: unknown;
534
- }): Promise<NextResponse>;
546
+ }): Promise<Response>;
547
+
548
+ declare function handleSourceUpsert(args: {
549
+ authContext: GatewayAuthContext;
550
+ correlationId: string;
551
+ policyTraceId: string;
552
+ body: unknown;
553
+ }): Promise<Response>;
554
+ declare function handleSourceGet(args: {
555
+ authContext: GatewayAuthContext;
556
+ correlationId: string;
557
+ policyTraceId: string;
558
+ sourceId: string;
559
+ }): Promise<Response>;
535
560
 
536
561
  declare function handleTaskCreate(args: {
537
562
  authContext: GatewayAuthContext;
538
563
  correlationId: string;
539
564
  policyTraceId: string;
540
565
  body: unknown;
541
- }): Promise<NextResponse>;
566
+ }): Promise<Response>;
542
567
  declare function handleTaskList(args: {
543
568
  authContext: GatewayAuthContext;
544
569
  correlationId: string;
@@ -549,41 +574,41 @@ declare function handleTaskList(args: {
549
574
  status?: string;
550
575
  limit?: number;
551
576
  };
552
- }): Promise<NextResponse>;
577
+ }): Promise<Response>;
553
578
  declare function handleTaskUpdate(args: {
554
579
  authContext: GatewayAuthContext;
555
580
  correlationId: string;
556
581
  policyTraceId: string;
557
582
  taskId: string;
558
583
  body: unknown;
559
- }): Promise<NextResponse>;
584
+ }): Promise<Response>;
560
585
  declare function handleTaskComplete(args: {
561
586
  authContext: GatewayAuthContext;
562
587
  correlationId: string;
563
588
  policyTraceId: string;
564
589
  taskId: string;
565
590
  body: unknown;
566
- }): Promise<NextResponse>;
591
+ }): Promise<Response>;
567
592
 
568
593
  declare function handleTopicCreate(args: {
569
594
  authContext: GatewayAuthContext;
570
595
  correlationId: string;
571
596
  policyTraceId: string;
572
597
  body: unknown;
573
- }): Promise<NextResponse>;
598
+ }): Promise<Response>;
574
599
  declare function handleTopicUpdate(args: {
575
600
  authContext: GatewayAuthContext;
576
601
  correlationId: string;
577
602
  policyTraceId: string;
578
603
  topicId: string;
579
604
  body: unknown;
580
- }): Promise<NextResponse>;
605
+ }): Promise<Response>;
581
606
  declare function handleTopicGet(args: {
582
607
  authContext: GatewayAuthContext;
583
608
  correlationId: string;
584
609
  policyTraceId: string;
585
610
  topicId: string;
586
- }): Promise<NextResponse>;
611
+ }): Promise<Response>;
587
612
  declare function handleTopicList(args: {
588
613
  authContext: GatewayAuthContext;
589
614
  correlationId: string;
@@ -594,7 +619,7 @@ declare function handleTopicList(args: {
594
619
  status?: string;
595
620
  type?: string;
596
621
  };
597
- }): Promise<NextResponse>;
622
+ }): Promise<Response>;
598
623
  declare function handleTopicTree(args: {
599
624
  authContext: GatewayAuthContext;
600
625
  correlationId: string;
@@ -603,7 +628,7 @@ declare function handleTopicTree(args: {
603
628
  query: {
604
629
  maxDepth?: number;
605
630
  };
606
- }): Promise<NextResponse>;
631
+ }): Promise<Response>;
607
632
  declare function handleTopicCoverage(args: {
608
633
  authContext: GatewayAuthContext;
609
634
  correlationId: string;
@@ -613,26 +638,26 @@ declare function handleTopicCoverage(args: {
613
638
  includeDescendants?: boolean;
614
639
  maxDepth?: number;
615
640
  };
616
- }): Promise<NextResponse>;
641
+ }): Promise<Response>;
617
642
  declare function handleTopicRemove(args: {
618
643
  authContext: GatewayAuthContext;
619
644
  correlationId: string;
620
645
  policyTraceId: string;
621
646
  body: unknown;
622
- }): Promise<NextResponse>;
647
+ }): Promise<Response>;
623
648
  declare function handleTopicBulkCreate(args: {
624
649
  authContext: GatewayAuthContext;
625
650
  correlationId: string;
626
651
  policyTraceId: string;
627
652
  body: unknown;
628
- }): Promise<NextResponse>;
653
+ }): Promise<Response>;
629
654
 
630
655
  declare function handleWebhookCreate(args: {
631
656
  authContext: GatewayAuthContext;
632
657
  correlationId: string;
633
658
  policyTraceId: string;
634
659
  body: unknown;
635
- }): Promise<NextResponse>;
660
+ }): Promise<Response>;
636
661
  declare function handleWebhookList(args: {
637
662
  authContext: GatewayAuthContext;
638
663
  correlationId: string;
@@ -640,33 +665,33 @@ declare function handleWebhookList(args: {
640
665
  query: {
641
666
  topicId?: string;
642
667
  };
643
- }): Promise<NextResponse>;
668
+ }): Promise<Response>;
644
669
  declare function handleWebhookGet(args: {
645
670
  authContext: GatewayAuthContext;
646
671
  correlationId: string;
647
672
  policyTraceId: string;
648
673
  webhookId: string;
649
- }): Promise<NextResponse>;
674
+ }): Promise<Response>;
650
675
  declare function handleWebhookUpdate(args: {
651
676
  authContext: GatewayAuthContext;
652
677
  correlationId: string;
653
678
  policyTraceId: string;
654
679
  webhookId: string;
655
680
  body: unknown;
656
- }): Promise<NextResponse>;
681
+ }): Promise<Response>;
657
682
  declare function handleWebhookDelete(args: {
658
683
  authContext: GatewayAuthContext;
659
684
  correlationId: string;
660
685
  policyTraceId: string;
661
686
  webhookId: string;
662
- }): Promise<NextResponse>;
687
+ }): Promise<Response>;
663
688
  declare function handleWebhookTest(args: {
664
689
  authContext: GatewayAuthContext;
665
690
  correlationId: string;
666
691
  policyTraceId: string;
667
692
  webhookId: string;
668
693
  body: unknown;
669
- }): Promise<NextResponse>;
694
+ }): Promise<Response>;
670
695
  declare function handleWebhookDeliveries(args: {
671
696
  authContext: GatewayAuthContext;
672
697
  correlationId: string;
@@ -675,20 +700,20 @@ declare function handleWebhookDeliveries(args: {
675
700
  query: {
676
701
  limit?: number;
677
702
  };
678
- }): Promise<NextResponse>;
703
+ }): Promise<Response>;
679
704
  declare function handleWebhookHealth(args: {
680
705
  authContext: GatewayAuthContext;
681
706
  correlationId: string;
682
707
  policyTraceId: string;
683
708
  webhookId: string;
684
- }): Promise<NextResponse>;
709
+ }): Promise<Response>;
685
710
 
686
711
  declare function handleWorktreeCreate(args: {
687
712
  authContext: GatewayAuthContext;
688
713
  correlationId: string;
689
714
  policyTraceId: string;
690
715
  body: unknown;
691
- }): Promise<NextResponse>;
716
+ }): Promise<Response>;
692
717
  declare function handleWorktreeList(args: {
693
718
  authContext: GatewayAuthContext;
694
719
  correlationId: string;
@@ -698,7 +723,7 @@ declare function handleWorktreeList(args: {
698
723
  status?: string;
699
724
  limit?: number;
700
725
  };
701
- }): Promise<NextResponse>;
726
+ }): Promise<Response>;
702
727
  declare function handleWorktreeListAll(args: {
703
728
  authContext: GatewayAuthContext;
704
729
  correlationId: string;
@@ -709,63 +734,63 @@ declare function handleWorktreeListAll(args: {
709
734
  executionBand?: number;
710
735
  limit?: number;
711
736
  };
712
- }): Promise<NextResponse>;
737
+ }): Promise<Response>;
713
738
  declare function handleWorktreeActivate(args: {
714
739
  authContext: GatewayAuthContext;
715
740
  correlationId: string;
716
741
  policyTraceId: string;
717
742
  worktreeId: string;
718
- }): Promise<NextResponse>;
743
+ }): Promise<Response>;
719
744
  declare function handleWorktreeUpdate(args: {
720
745
  authContext: GatewayAuthContext;
721
746
  correlationId: string;
722
747
  policyTraceId: string;
723
748
  worktreeId: string;
724
749
  body: unknown;
725
- }): Promise<NextResponse>;
750
+ }): Promise<Response>;
726
751
  declare function handleWorktreeMerge(args: {
727
752
  authContext: GatewayAuthContext;
728
753
  correlationId: string;
729
754
  policyTraceId: string;
730
755
  worktreeId: string;
731
756
  body: unknown;
732
- }): Promise<NextResponse>;
757
+ }): Promise<Response>;
733
758
  declare function handleWorktreeUpdateTargets(args: {
734
759
  authContext: GatewayAuthContext;
735
760
  correlationId: string;
736
761
  policyTraceId: string;
737
762
  worktreeId: string;
738
763
  body: unknown;
739
- }): Promise<NextResponse>;
764
+ }): Promise<Response>;
740
765
  declare function handleWorktreeComplete(args: {
741
766
  authContext: GatewayAuthContext;
742
767
  correlationId: string;
743
768
  policyTraceId: string;
744
769
  body: unknown;
745
- }): Promise<NextResponse>;
770
+ }): Promise<Response>;
746
771
  declare function handleWorktreeAdvancePhase(args: {
747
772
  authContext: GatewayAuthContext;
748
773
  correlationId: string;
749
774
  policyTraceId: string;
750
775
  body: unknown;
751
- }): Promise<NextResponse>;
776
+ }): Promise<Response>;
752
777
  declare function handleWorktreeSetPhase(args: {
753
778
  authContext: GatewayAuthContext;
754
779
  correlationId: string;
755
780
  policyTraceId: string;
756
781
  body: unknown;
757
- }): Promise<NextResponse>;
782
+ }): Promise<Response>;
758
783
  declare function handleWorktreePatchState(args: {
759
784
  authContext: GatewayAuthContext;
760
785
  correlationId: string;
761
786
  policyTraceId: string;
762
787
  body: unknown;
763
- }): Promise<NextResponse>;
788
+ }): Promise<Response>;
764
789
  declare function handleWorktreeBulkCreate(args: {
765
790
  authContext: GatewayAuthContext;
766
791
  correlationId: string;
767
792
  policyTraceId: string;
768
793
  body: unknown;
769
- }): Promise<NextResponse>;
794
+ }): Promise<Response>;
770
795
 
771
- export { type GatewayContextAuth, type GatewayContextRequest, type GatewayContextRouteDeps, createContextGatewayRoute, handleBeliefArchive, handleBeliefBatchUpdateCriticality, handleBeliefBisect, handleBeliefConfidenceHistory, handleBeliefCreate, handleBeliefCreateContract, handleBeliefFork, handleBeliefGet, handleBeliefLineage, handleBeliefLink, handleBeliefList, handleBeliefReassignTopic, handleBeliefRefine, handleBeliefRelationships, handleBeliefUnlinkEvidence, handleBeliefUpdateConfidence, handleBeliefUpdateCriticality, handleBeliefUpdateRationale, handleBeliefUpdateStatus, handleContradictionFlag, handleContradictionGet, handleContradictionList, handleEdgeBatchCreate, handleEdgeCreate, handleEdgeDelete, handleEdgeList, handleEdgeRemove, handleEdgeTraverse, handleEdgeUpdate, handleEdgesRemoveBetween, handleEventsList, handleEventsReplay, handleEvidenceCreate, handleEvidenceFlagIncorrect, handleEvidenceGet, handleEvidenceLink, handleEvidenceList, handleEvidenceRemove, handleEvidenceSearch, handleEvidenceUpdate, handleEvidenceUpdateStatus, handleEvidenceUpdateVerificationStatus, handleGraphAnalyze, handleGraphBias, handleGraphFalsify, handleGraphGaps, handleGraphNeighborhood, handleGraphTraverse, handleIdentityWhoami, handleOntologyBind, handleOntologyGet, handleOntologyList, handleOntologyMatch, handleQuestionAdd, handleQuestionAdvanceToConviction, handleQuestionAnswer, handleQuestionArchive, handleQuestionBatchCreate, handleQuestionCreate, handleQuestionDelete, handleQuestionFinalizeConviction, handleQuestionGet, handleQuestionGetAnswer, handleQuestionList, handleQuestionRefine, handleQuestionUpdate, handleQuestionUpdateConviction, handleQuestionUpdatePriority, handleQuestionUpdateStatus, handleSearchResources, handleTaskComplete, handleTaskCreate, handleTaskList, handleTaskUpdate, handleTopicBulkCreate, handleTopicCoverage, handleTopicCreate, handleTopicGet, handleTopicList, handleTopicRemove, handleTopicTree, handleTopicUpdate, handleWebhookCreate, handleWebhookDelete, handleWebhookDeliveries, handleWebhookGet, handleWebhookHealth, handleWebhookList, handleWebhookTest, handleWebhookUpdate, handleWorktreeActivate, handleWorktreeAdvancePhase, handleWorktreeBulkCreate, handleWorktreeComplete, handleWorktreeCreate, handleWorktreeList, handleWorktreeListAll, handleWorktreeMerge, handleWorktreePatchState, handleWorktreeSetPhase, handleWorktreeUpdate, handleWorktreeUpdateTargets };
796
+ export { type GatewayContextAuth, type GatewayContextRequest, type GatewayContextRouteDeps, createContextGatewayRoute, handleBeliefArchive, handleBeliefBatchUpdateCriticality, handleBeliefBisect, handleBeliefConfidenceHistory, handleBeliefCreate, handleBeliefCreateContract, handleBeliefFork, handleBeliefGet, handleBeliefLineage, handleBeliefLink, handleBeliefList, handleBeliefReassignTopic, handleBeliefRefine, handleBeliefRelationships, handleBeliefUnlinkEvidence, handleBeliefUpdateConfidence, handleBeliefUpdateCriticality, handleBeliefUpdateRationale, handleBeliefUpdateStatus, handleContradictionFlag, handleContradictionGet, handleContradictionList, handleEdgeBatchCreate, handleEdgeCreate, handleEdgeDelete, handleEdgeList, handleEdgeRemove, handleEdgeTraverse, handleEdgeUpdate, handleEdgesRemoveBetween, handleEventsList, handleEventsReplay, handleEvidenceClassify, handleEvidenceClassifyBatch, handleEvidenceCreate, handleEvidenceFlagIncorrect, handleEvidenceGet, handleEvidenceLink, handleEvidenceList, handleEvidenceRemove, handleEvidenceSearch, handleEvidenceUpdate, handleEvidenceUpdateStatus, handleEvidenceUpdateVerificationStatus, handleGraphAnalyze, handleGraphBias, handleGraphFalsify, handleGraphGaps, handleGraphNeighborhood, handleGraphTraverse, handleIdentityWhoami, handleOntologyBind, handleOntologyGet, handleOntologyList, handleOntologyMatch, handleQuestionAdd, handleQuestionAdvanceToConviction, handleQuestionAnswer, handleQuestionArchive, handleQuestionBatchCreate, handleQuestionCreate, handleQuestionDelete, handleQuestionFinalizeConviction, handleQuestionGet, handleQuestionGetAnswer, handleQuestionList, handleQuestionRefine, handleQuestionUpdate, handleQuestionUpdateConviction, handleQuestionUpdatePriority, handleQuestionUpdateStatus, handleSearchResources, handleSourceGet, handleSourceUpsert, handleTaskComplete, handleTaskCreate, handleTaskList, handleTaskUpdate, handleTopicBulkCreate, handleTopicCoverage, handleTopicCreate, handleTopicGet, handleTopicList, handleTopicRemove, handleTopicTree, handleTopicUpdate, handleWebhookCreate, handleWebhookDelete, handleWebhookDeliveries, handleWebhookGet, handleWebhookHealth, handleWebhookList, handleWebhookTest, handleWebhookUpdate, handleWorktreeActivate, handleWorktreeAdvancePhase, handleWorktreeBulkCreate, handleWorktreeComplete, handleWorktreeCreate, handleWorktreeList, handleWorktreeListAll, handleWorktreeMerge, handleWorktreePatchState, handleWorktreeSetPhase, handleWorktreeUpdate, handleWorktreeUpdateTargets };