@lucern/mcp 0.2.0-alpha.6 → 0.2.0-alpha.8

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
@@ -1,18 +1,18 @@
1
1
  import { GatewayAuthContext } from '@lucern/contracts';
2
- import { CompileContextPorts } from '@lucern/server-core/domain/context/ports';
2
+ export { GatewayContextAuth, GatewayContextRequest, GatewayContextRouteDeps, createContextGatewayRoute } from '@lucern/server-core/http';
3
3
 
4
4
  declare function handleBeliefCreate(args: {
5
5
  authContext: GatewayAuthContext;
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,144 +25,117 @@ 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>;
132
-
133
- type GatewayContextAuth = {
134
- actorPrincipalId: string;
135
- };
136
- type GatewayContextRequest = {
137
- body: Record<string, unknown>;
138
- auth: GatewayContextAuth | null;
139
- correlationId: string;
140
- policyTraceId: string | null;
141
- };
142
- type GatewayContextRouteDeps = CompileContextPorts & {
143
- successResponse: (data: unknown, meta: {
144
- correlationId: string;
145
- policyTraceId: string | null;
146
- status?: number;
147
- }) => Response;
148
- errorResponse: (meta: {
149
- code: string;
150
- message: string;
151
- status: number;
152
- correlationId: string;
153
- policyTraceId: string | null;
154
- }) => Response;
155
- };
156
- declare function createContextGatewayRoute(deps: GatewayContextRouteDeps): {
157
- post(request: GatewayContextRequest): Promise<Response>;
158
- };
131
+ }): Promise<Response>;
159
132
 
160
133
  declare function handleContradictionFlag(args: {
161
134
  authContext: GatewayAuthContext;
162
135
  correlationId: string;
163
136
  policyTraceId: string;
164
137
  body: unknown;
165
- }): Promise<NextResponse>;
138
+ }): Promise<Response>;
166
139
  declare function handleContradictionList(args: {
167
140
  authContext: GatewayAuthContext;
168
141
  correlationId: string;
@@ -173,20 +146,20 @@ declare function handleContradictionList(args: {
173
146
  limit?: number;
174
147
  cursor?: string;
175
148
  };
176
- }): Promise<NextResponse>;
149
+ }): Promise<Response>;
177
150
  declare function handleContradictionGet(args: {
178
151
  authContext: GatewayAuthContext;
179
152
  correlationId: string;
180
153
  policyTraceId: string;
181
154
  contradictionId: string;
182
- }): Promise<NextResponse>;
155
+ }): Promise<Response>;
183
156
 
184
157
  declare function handleEdgeCreate(args: {
185
158
  authContext: GatewayAuthContext;
186
159
  correlationId: string;
187
160
  policyTraceId: string;
188
161
  body: unknown;
189
- }): Promise<NextResponse>;
162
+ }): Promise<Response>;
190
163
  declare function handleEdgeList(args: {
191
164
  authContext: GatewayAuthContext;
192
165
  correlationId: string;
@@ -197,43 +170,43 @@ declare function handleEdgeList(args: {
197
170
  limit?: number;
198
171
  cursor?: string;
199
172
  };
200
- }): Promise<NextResponse>;
173
+ }): Promise<Response>;
201
174
  declare function handleEdgeTraverse(args: {
202
175
  authContext: GatewayAuthContext;
203
176
  correlationId: string;
204
177
  policyTraceId: string;
205
178
  body: unknown;
206
- }): Promise<NextResponse>;
179
+ }): Promise<Response>;
207
180
  declare function handleEdgeUpdate(args: {
208
181
  authContext: GatewayAuthContext;
209
182
  correlationId: string;
210
183
  policyTraceId: string;
211
184
  body: unknown;
212
- }): Promise<NextResponse>;
185
+ }): Promise<Response>;
213
186
  declare function handleEdgeRemove(args: {
214
187
  authContext: GatewayAuthContext;
215
188
  correlationId: string;
216
189
  policyTraceId: string;
217
190
  body: unknown;
218
- }): Promise<NextResponse>;
191
+ }): Promise<Response>;
219
192
  declare function handleEdgesRemoveBetween(args: {
220
193
  authContext: GatewayAuthContext;
221
194
  correlationId: string;
222
195
  policyTraceId: string;
223
196
  body: unknown;
224
- }): Promise<NextResponse>;
197
+ }): Promise<Response>;
225
198
  declare function handleEdgeBatchCreate(args: {
226
199
  authContext: GatewayAuthContext;
227
200
  correlationId: string;
228
201
  policyTraceId: string;
229
202
  body: unknown;
230
- }): Promise<NextResponse>;
203
+ }): Promise<Response>;
231
204
  declare function handleEdgeDelete(args: {
232
205
  authContext: GatewayAuthContext;
233
206
  correlationId: string;
234
207
  policyTraceId: string;
235
208
  body: unknown;
236
- }): Promise<NextResponse>;
209
+ }): Promise<Response>;
237
210
 
238
211
  declare function handleEventsList(args: {
239
212
  authContext: GatewayAuthContext;
@@ -247,7 +220,7 @@ declare function handleEventsList(args: {
247
220
  endTime?: number;
248
221
  limit?: number;
249
222
  };
250
- }): Promise<NextResponse>;
223
+ }): Promise<Response>;
251
224
  declare function handleEventsReplay(args: {
252
225
  authContext: GatewayAuthContext;
253
226
  correlationId: string;
@@ -261,20 +234,20 @@ declare function handleEventsReplay(args: {
261
234
  endTime?: number;
262
235
  limit?: number;
263
236
  };
264
- }): Promise<NextResponse>;
237
+ }): Promise<Response>;
265
238
 
266
239
  declare function handleEvidenceCreate(args: {
267
240
  authContext: GatewayAuthContext;
268
241
  correlationId: string;
269
242
  policyTraceId: string;
270
243
  body: unknown;
271
- }): Promise<NextResponse>;
244
+ }): Promise<Response>;
272
245
  declare function handleEvidenceGet(args: {
273
246
  authContext: GatewayAuthContext;
274
247
  correlationId: string;
275
248
  policyTraceId: string;
276
249
  evidenceId: string;
277
- }): Promise<NextResponse>;
250
+ }): Promise<Response>;
278
251
  declare function handleEvidenceList(args: {
279
252
  authContext: GatewayAuthContext;
280
253
  correlationId: string;
@@ -285,50 +258,62 @@ declare function handleEvidenceList(args: {
285
258
  limit?: number;
286
259
  cursor?: string;
287
260
  };
288
- }): Promise<NextResponse>;
261
+ }): Promise<Response>;
289
262
  declare function handleEvidenceLink(args: {
290
263
  authContext: GatewayAuthContext;
291
264
  correlationId: string;
292
265
  policyTraceId: string;
293
266
  evidenceId: string;
294
267
  body: unknown;
295
- }): Promise<NextResponse>;
268
+ }): Promise<Response>;
296
269
  declare function handleEvidenceSearch(args: {
297
270
  authContext: GatewayAuthContext;
298
271
  correlationId: string;
299
272
  policyTraceId: string;
300
273
  body: unknown;
301
- }): Promise<NextResponse>;
274
+ }): Promise<Response>;
275
+ declare function handleEvidenceClassify(args: {
276
+ authContext: GatewayAuthContext;
277
+ correlationId: string;
278
+ policyTraceId: string;
279
+ body: unknown;
280
+ }): Promise<Response>;
281
+ declare function handleEvidenceClassifyBatch(args: {
282
+ authContext: GatewayAuthContext;
283
+ correlationId: string;
284
+ policyTraceId: string;
285
+ body: unknown;
286
+ }): Promise<Response>;
302
287
  declare function handleEvidenceUpdateStatus(args: {
303
288
  authContext: GatewayAuthContext;
304
289
  correlationId: string;
305
290
  policyTraceId: string;
306
291
  body: unknown;
307
- }): Promise<NextResponse>;
292
+ }): Promise<Response>;
308
293
  declare function handleEvidenceUpdate(args: {
309
294
  authContext: GatewayAuthContext;
310
295
  correlationId: string;
311
296
  policyTraceId: string;
312
297
  body: unknown;
313
- }): Promise<NextResponse>;
298
+ }): Promise<Response>;
314
299
  declare function handleEvidenceFlagIncorrect(args: {
315
300
  authContext: GatewayAuthContext;
316
301
  correlationId: string;
317
302
  policyTraceId: string;
318
303
  body: unknown;
319
- }): Promise<NextResponse>;
304
+ }): Promise<Response>;
320
305
  declare function handleEvidenceRemove(args: {
321
306
  authContext: GatewayAuthContext;
322
307
  correlationId: string;
323
308
  policyTraceId: string;
324
309
  body: unknown;
325
- }): Promise<NextResponse>;
310
+ }): Promise<Response>;
326
311
  declare function handleEvidenceUpdateVerificationStatus(args: {
327
312
  authContext: GatewayAuthContext;
328
313
  correlationId: string;
329
314
  policyTraceId: string;
330
315
  body: unknown;
331
- }): Promise<NextResponse>;
316
+ }): Promise<Response>;
332
317
 
333
318
  declare function handleGraphNeighborhood(args: {
334
319
  authContext: GatewayAuthContext;
@@ -339,13 +324,13 @@ declare function handleGraphNeighborhood(args: {
339
324
  globalIds?: string[];
340
325
  maxDepth?: number;
341
326
  };
342
- }): Promise<NextResponse>;
327
+ }): Promise<Response>;
343
328
  declare function handleGraphTraverse(args: {
344
329
  authContext: GatewayAuthContext;
345
330
  correlationId: string;
346
331
  policyTraceId: string;
347
332
  body: unknown;
348
- }): Promise<NextResponse>;
333
+ }): Promise<Response>;
349
334
  declare function handleGraphAnalyze(args: {
350
335
  authContext: GatewayAuthContext;
351
336
  correlationId: string;
@@ -355,7 +340,7 @@ declare function handleGraphAnalyze(args: {
355
340
  metric?: string;
356
341
  limit?: number;
357
342
  };
358
- }): Promise<NextResponse>;
343
+ }): Promise<Response>;
359
344
  declare function handleGraphBias(args: {
360
345
  authContext: GatewayAuthContext;
361
346
  correlationId: string;
@@ -365,7 +350,7 @@ declare function handleGraphBias(args: {
365
350
  threshold?: number;
366
351
  limit?: number;
367
352
  };
368
- }): Promise<NextResponse>;
353
+ }): Promise<Response>;
369
354
  declare function handleGraphGaps(args: {
370
355
  authContext: GatewayAuthContext;
371
356
  correlationId: string;
@@ -374,19 +359,19 @@ declare function handleGraphGaps(args: {
374
359
  topicId?: string;
375
360
  minConfidence?: number;
376
361
  };
377
- }): Promise<NextResponse>;
362
+ }): Promise<Response>;
378
363
  declare function handleGraphFalsify(args: {
379
364
  authContext: GatewayAuthContext;
380
365
  correlationId: string;
381
366
  policyTraceId: string;
382
367
  body: unknown;
383
- }): Promise<NextResponse>;
368
+ }): Promise<Response>;
384
369
 
385
370
  declare function handleIdentityWhoami(args: {
386
371
  authContext: GatewayAuthContext;
387
372
  correlationId: string;
388
373
  policyTraceId: string;
389
- }): Promise<NextResponse>;
374
+ }): Promise<Response>;
390
375
 
391
376
  declare function handleOntologyList(args: {
392
377
  authContext: GatewayAuthContext;
@@ -397,46 +382,46 @@ declare function handleOntologyList(args: {
397
382
  tier?: string;
398
383
  status?: string;
399
384
  };
400
- }): Promise<NextResponse>;
385
+ }): Promise<Response>;
401
386
  declare function handleOntologyGet(args: {
402
387
  authContext: GatewayAuthContext;
403
388
  correlationId: string;
404
389
  policyTraceId: string;
405
390
  ontologyId: string;
406
- }): Promise<NextResponse>;
391
+ }): Promise<Response>;
407
392
  declare function handleOntologyBind(args: {
408
393
  authContext: GatewayAuthContext;
409
394
  correlationId: string;
410
395
  policyTraceId: string;
411
396
  ontologyId: string;
412
397
  body: unknown;
413
- }): Promise<NextResponse>;
398
+ }): Promise<Response>;
414
399
  declare function handleOntologyMatch(args: {
415
400
  authContext: GatewayAuthContext;
416
401
  correlationId: string;
417
402
  policyTraceId: string;
418
403
  body: unknown;
419
- }): Promise<NextResponse>;
404
+ }): Promise<Response>;
420
405
 
421
406
  declare function handleQuestionCreate(args: {
422
407
  authContext: GatewayAuthContext;
423
408
  correlationId: string;
424
409
  policyTraceId: string;
425
410
  body: unknown;
426
- }): Promise<NextResponse>;
411
+ }): Promise<Response>;
427
412
  declare function handleQuestionGet(args: {
428
413
  authContext: GatewayAuthContext;
429
414
  correlationId: string;
430
415
  policyTraceId: string;
431
416
  questionId: string;
432
- }): Promise<NextResponse>;
417
+ }): Promise<Response>;
433
418
  declare function handleQuestionArchive(args: {
434
419
  authContext: GatewayAuthContext;
435
420
  correlationId: string;
436
421
  policyTraceId: string;
437
422
  questionId: string;
438
423
  body: unknown;
439
- }): Promise<NextResponse>;
424
+ }): Promise<Response>;
440
425
  declare function handleQuestionList(args: {
441
426
  authContext: GatewayAuthContext;
442
427
  correlationId: string;
@@ -449,96 +434,109 @@ declare function handleQuestionList(args: {
449
434
  limit?: number;
450
435
  cursor?: string;
451
436
  };
452
- }): Promise<NextResponse>;
437
+ }): Promise<Response>;
453
438
  declare function handleQuestionAnswer(args: {
454
439
  authContext: GatewayAuthContext;
455
440
  correlationId: string;
456
441
  policyTraceId: string;
457
442
  questionId: string;
458
443
  body: unknown;
459
- }): Promise<NextResponse>;
444
+ }): Promise<Response>;
460
445
  declare function handleQuestionGetAnswer(args: {
461
446
  authContext: GatewayAuthContext;
462
447
  correlationId: string;
463
448
  policyTraceId: string;
464
449
  questionId: string;
465
- }): Promise<NextResponse>;
450
+ }): Promise<Response>;
466
451
  declare function handleQuestionRefine(args: {
467
452
  authContext: GatewayAuthContext;
468
453
  correlationId: string;
469
454
  policyTraceId: string;
470
455
  questionId: string;
471
456
  body: unknown;
472
- }): Promise<NextResponse>;
457
+ }): Promise<Response>;
473
458
  declare function handleQuestionUpdateStatus(args: {
474
459
  authContext: GatewayAuthContext;
475
460
  correlationId: string;
476
461
  policyTraceId: string;
477
462
  questionId: string;
478
463
  body: unknown;
479
- }): Promise<NextResponse>;
464
+ }): Promise<Response>;
480
465
  declare function handleQuestionBatchCreate(args: {
481
466
  authContext: GatewayAuthContext;
482
467
  correlationId: string;
483
468
  policyTraceId: string;
484
469
  body: unknown;
485
- }): Promise<NextResponse>;
470
+ }): Promise<Response>;
486
471
  declare function handleQuestionAdd(args: {
487
472
  authContext: GatewayAuthContext;
488
473
  correlationId: string;
489
474
  policyTraceId: string;
490
475
  body: unknown;
491
- }): Promise<NextResponse>;
476
+ }): Promise<Response>;
492
477
  declare function handleQuestionUpdatePriority(args: {
493
478
  authContext: GatewayAuthContext;
494
479
  correlationId: string;
495
480
  policyTraceId: string;
496
481
  body: unknown;
497
- }): Promise<NextResponse>;
482
+ }): Promise<Response>;
498
483
  declare function handleQuestionAdvanceToConviction(args: {
499
484
  authContext: GatewayAuthContext;
500
485
  correlationId: string;
501
486
  policyTraceId: string;
502
487
  body: unknown;
503
- }): Promise<NextResponse>;
488
+ }): Promise<Response>;
504
489
  declare function handleQuestionUpdateConviction(args: {
505
490
  authContext: GatewayAuthContext;
506
491
  correlationId: string;
507
492
  policyTraceId: string;
508
493
  body: unknown;
509
- }): Promise<NextResponse>;
494
+ }): Promise<Response>;
510
495
  declare function handleQuestionFinalizeConviction(args: {
511
496
  authContext: GatewayAuthContext;
512
497
  correlationId: string;
513
498
  policyTraceId: string;
514
499
  body: unknown;
515
- }): Promise<NextResponse>;
500
+ }): Promise<Response>;
516
501
  declare function handleQuestionUpdate(args: {
517
502
  authContext: GatewayAuthContext;
518
503
  correlationId: string;
519
504
  policyTraceId: string;
520
505
  body: unknown;
521
- }): Promise<NextResponse>;
506
+ }): Promise<Response>;
522
507
  declare function handleQuestionDelete(args: {
523
508
  authContext: GatewayAuthContext;
524
509
  correlationId: string;
525
510
  policyTraceId: string;
526
511
  body: unknown;
527
- }): Promise<NextResponse>;
512
+ }): Promise<Response>;
528
513
 
529
514
  declare function handleSearchResources(args: {
530
515
  authContext: GatewayAuthContext;
531
516
  correlationId: string;
532
517
  policyTraceId: string;
533
518
  body: unknown;
534
- }): Promise<NextResponse>;
519
+ }): Promise<Response>;
520
+
521
+ declare function handleSourceUpsert(args: {
522
+ authContext: GatewayAuthContext;
523
+ correlationId: string;
524
+ policyTraceId: string;
525
+ body: unknown;
526
+ }): Promise<Response>;
527
+ declare function handleSourceGet(args: {
528
+ authContext: GatewayAuthContext;
529
+ correlationId: string;
530
+ policyTraceId: string;
531
+ sourceId: string;
532
+ }): Promise<Response>;
535
533
 
536
534
  declare function handleTaskCreate(args: {
537
535
  authContext: GatewayAuthContext;
538
536
  correlationId: string;
539
537
  policyTraceId: string;
540
538
  body: unknown;
541
- }): Promise<NextResponse>;
539
+ }): Promise<Response>;
542
540
  declare function handleTaskList(args: {
543
541
  authContext: GatewayAuthContext;
544
542
  correlationId: string;
@@ -549,41 +547,41 @@ declare function handleTaskList(args: {
549
547
  status?: string;
550
548
  limit?: number;
551
549
  };
552
- }): Promise<NextResponse>;
550
+ }): Promise<Response>;
553
551
  declare function handleTaskUpdate(args: {
554
552
  authContext: GatewayAuthContext;
555
553
  correlationId: string;
556
554
  policyTraceId: string;
557
555
  taskId: string;
558
556
  body: unknown;
559
- }): Promise<NextResponse>;
557
+ }): Promise<Response>;
560
558
  declare function handleTaskComplete(args: {
561
559
  authContext: GatewayAuthContext;
562
560
  correlationId: string;
563
561
  policyTraceId: string;
564
562
  taskId: string;
565
563
  body: unknown;
566
- }): Promise<NextResponse>;
564
+ }): Promise<Response>;
567
565
 
568
566
  declare function handleTopicCreate(args: {
569
567
  authContext: GatewayAuthContext;
570
568
  correlationId: string;
571
569
  policyTraceId: string;
572
570
  body: unknown;
573
- }): Promise<NextResponse>;
571
+ }): Promise<Response>;
574
572
  declare function handleTopicUpdate(args: {
575
573
  authContext: GatewayAuthContext;
576
574
  correlationId: string;
577
575
  policyTraceId: string;
578
576
  topicId: string;
579
577
  body: unknown;
580
- }): Promise<NextResponse>;
578
+ }): Promise<Response>;
581
579
  declare function handleTopicGet(args: {
582
580
  authContext: GatewayAuthContext;
583
581
  correlationId: string;
584
582
  policyTraceId: string;
585
583
  topicId: string;
586
- }): Promise<NextResponse>;
584
+ }): Promise<Response>;
587
585
  declare function handleTopicList(args: {
588
586
  authContext: GatewayAuthContext;
589
587
  correlationId: string;
@@ -594,7 +592,7 @@ declare function handleTopicList(args: {
594
592
  status?: string;
595
593
  type?: string;
596
594
  };
597
- }): Promise<NextResponse>;
595
+ }): Promise<Response>;
598
596
  declare function handleTopicTree(args: {
599
597
  authContext: GatewayAuthContext;
600
598
  correlationId: string;
@@ -603,7 +601,7 @@ declare function handleTopicTree(args: {
603
601
  query: {
604
602
  maxDepth?: number;
605
603
  };
606
- }): Promise<NextResponse>;
604
+ }): Promise<Response>;
607
605
  declare function handleTopicCoverage(args: {
608
606
  authContext: GatewayAuthContext;
609
607
  correlationId: string;
@@ -613,26 +611,26 @@ declare function handleTopicCoverage(args: {
613
611
  includeDescendants?: boolean;
614
612
  maxDepth?: number;
615
613
  };
616
- }): Promise<NextResponse>;
614
+ }): Promise<Response>;
617
615
  declare function handleTopicRemove(args: {
618
616
  authContext: GatewayAuthContext;
619
617
  correlationId: string;
620
618
  policyTraceId: string;
621
619
  body: unknown;
622
- }): Promise<NextResponse>;
620
+ }): Promise<Response>;
623
621
  declare function handleTopicBulkCreate(args: {
624
622
  authContext: GatewayAuthContext;
625
623
  correlationId: string;
626
624
  policyTraceId: string;
627
625
  body: unknown;
628
- }): Promise<NextResponse>;
626
+ }): Promise<Response>;
629
627
 
630
628
  declare function handleWebhookCreate(args: {
631
629
  authContext: GatewayAuthContext;
632
630
  correlationId: string;
633
631
  policyTraceId: string;
634
632
  body: unknown;
635
- }): Promise<NextResponse>;
633
+ }): Promise<Response>;
636
634
  declare function handleWebhookList(args: {
637
635
  authContext: GatewayAuthContext;
638
636
  correlationId: string;
@@ -640,33 +638,33 @@ declare function handleWebhookList(args: {
640
638
  query: {
641
639
  topicId?: string;
642
640
  };
643
- }): Promise<NextResponse>;
641
+ }): Promise<Response>;
644
642
  declare function handleWebhookGet(args: {
645
643
  authContext: GatewayAuthContext;
646
644
  correlationId: string;
647
645
  policyTraceId: string;
648
646
  webhookId: string;
649
- }): Promise<NextResponse>;
647
+ }): Promise<Response>;
650
648
  declare function handleWebhookUpdate(args: {
651
649
  authContext: GatewayAuthContext;
652
650
  correlationId: string;
653
651
  policyTraceId: string;
654
652
  webhookId: string;
655
653
  body: unknown;
656
- }): Promise<NextResponse>;
654
+ }): Promise<Response>;
657
655
  declare function handleWebhookDelete(args: {
658
656
  authContext: GatewayAuthContext;
659
657
  correlationId: string;
660
658
  policyTraceId: string;
661
659
  webhookId: string;
662
- }): Promise<NextResponse>;
660
+ }): Promise<Response>;
663
661
  declare function handleWebhookTest(args: {
664
662
  authContext: GatewayAuthContext;
665
663
  correlationId: string;
666
664
  policyTraceId: string;
667
665
  webhookId: string;
668
666
  body: unknown;
669
- }): Promise<NextResponse>;
667
+ }): Promise<Response>;
670
668
  declare function handleWebhookDeliveries(args: {
671
669
  authContext: GatewayAuthContext;
672
670
  correlationId: string;
@@ -675,20 +673,20 @@ declare function handleWebhookDeliveries(args: {
675
673
  query: {
676
674
  limit?: number;
677
675
  };
678
- }): Promise<NextResponse>;
676
+ }): Promise<Response>;
679
677
  declare function handleWebhookHealth(args: {
680
678
  authContext: GatewayAuthContext;
681
679
  correlationId: string;
682
680
  policyTraceId: string;
683
681
  webhookId: string;
684
- }): Promise<NextResponse>;
682
+ }): Promise<Response>;
685
683
 
686
684
  declare function handleWorktreeCreate(args: {
687
685
  authContext: GatewayAuthContext;
688
686
  correlationId: string;
689
687
  policyTraceId: string;
690
688
  body: unknown;
691
- }): Promise<NextResponse>;
689
+ }): Promise<Response>;
692
690
  declare function handleWorktreeList(args: {
693
691
  authContext: GatewayAuthContext;
694
692
  correlationId: string;
@@ -698,7 +696,7 @@ declare function handleWorktreeList(args: {
698
696
  status?: string;
699
697
  limit?: number;
700
698
  };
701
- }): Promise<NextResponse>;
699
+ }): Promise<Response>;
702
700
  declare function handleWorktreeListAll(args: {
703
701
  authContext: GatewayAuthContext;
704
702
  correlationId: string;
@@ -709,63 +707,63 @@ declare function handleWorktreeListAll(args: {
709
707
  executionBand?: number;
710
708
  limit?: number;
711
709
  };
712
- }): Promise<NextResponse>;
710
+ }): Promise<Response>;
713
711
  declare function handleWorktreeActivate(args: {
714
712
  authContext: GatewayAuthContext;
715
713
  correlationId: string;
716
714
  policyTraceId: string;
717
715
  worktreeId: string;
718
- }): Promise<NextResponse>;
716
+ }): Promise<Response>;
719
717
  declare function handleWorktreeUpdate(args: {
720
718
  authContext: GatewayAuthContext;
721
719
  correlationId: string;
722
720
  policyTraceId: string;
723
721
  worktreeId: string;
724
722
  body: unknown;
725
- }): Promise<NextResponse>;
723
+ }): Promise<Response>;
726
724
  declare function handleWorktreeMerge(args: {
727
725
  authContext: GatewayAuthContext;
728
726
  correlationId: string;
729
727
  policyTraceId: string;
730
728
  worktreeId: string;
731
729
  body: unknown;
732
- }): Promise<NextResponse>;
730
+ }): Promise<Response>;
733
731
  declare function handleWorktreeUpdateTargets(args: {
734
732
  authContext: GatewayAuthContext;
735
733
  correlationId: string;
736
734
  policyTraceId: string;
737
735
  worktreeId: string;
738
736
  body: unknown;
739
- }): Promise<NextResponse>;
737
+ }): Promise<Response>;
740
738
  declare function handleWorktreeComplete(args: {
741
739
  authContext: GatewayAuthContext;
742
740
  correlationId: string;
743
741
  policyTraceId: string;
744
742
  body: unknown;
745
- }): Promise<NextResponse>;
743
+ }): Promise<Response>;
746
744
  declare function handleWorktreeAdvancePhase(args: {
747
745
  authContext: GatewayAuthContext;
748
746
  correlationId: string;
749
747
  policyTraceId: string;
750
748
  body: unknown;
751
- }): Promise<NextResponse>;
749
+ }): Promise<Response>;
752
750
  declare function handleWorktreeSetPhase(args: {
753
751
  authContext: GatewayAuthContext;
754
752
  correlationId: string;
755
753
  policyTraceId: string;
756
754
  body: unknown;
757
- }): Promise<NextResponse>;
755
+ }): Promise<Response>;
758
756
  declare function handleWorktreePatchState(args: {
759
757
  authContext: GatewayAuthContext;
760
758
  correlationId: string;
761
759
  policyTraceId: string;
762
760
  body: unknown;
763
- }): Promise<NextResponse>;
761
+ }): Promise<Response>;
764
762
  declare function handleWorktreeBulkCreate(args: {
765
763
  authContext: GatewayAuthContext;
766
764
  correlationId: string;
767
765
  policyTraceId: string;
768
766
  body: unknown;
769
- }): Promise<NextResponse>;
767
+ }): Promise<Response>;
770
768
 
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 };
769
+ export { 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 };