@inkeep/agents-api 0.77.0 → 0.77.1
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/.well-known/workflow/v1/manifest.json +85 -85
- package/dist/data/db/manageDbClient.d.ts +2 -2
- package/dist/data/db/runDbClient.d.ts +2 -2
- package/dist/data-reconciliation/handlers/agent.d.ts +2 -2
- package/dist/data-reconciliation/handlers/context-configs.d.ts +2 -2
- package/dist/data-reconciliation/handlers/sub-agents.d.ts +2 -2
- package/dist/data-reconciliation/handlers/tools.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/routes/authLookup.d.ts +2 -2
- package/dist/domains/manage/routes/availableAgents.d.ts +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/feedback.d.ts +2 -2
- package/dist/domains/manage/routes/index.d.ts +2 -2
- package/dist/domains/manage/routes/invitations.d.ts +2 -2
- package/dist/domains/manage/routes/passwordResetLinks.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/manage/routes/users.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/routes/auth.d.ts +2 -2
- package/dist/domains/run/routes/auth.js +8 -8
- package/dist/domains/run/types/chat.d.ts +3 -3
- package/dist/domains/run/workflow/steps/scheduledTriggerSteps.d.ts +6 -6
- package/dist/env.d.ts +3 -3
- package/dist/factory.d.ts +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +3 -3
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requireEntitlement.d.ts +2 -2
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/package.json +5 -5
|
@@ -12,6 +12,50 @@
|
|
|
12
12
|
"stepId": "__builtin_response_text"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
+
"src/domains/run/workflow/steps/schedulerSteps.ts": {
|
|
16
|
+
"checkSchedulerCurrentStep": {
|
|
17
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
|
|
18
|
+
},
|
|
19
|
+
"dispatchDueTriggersStep": {
|
|
20
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
|
|
21
|
+
},
|
|
22
|
+
"msUntilNextMinuteStep": {
|
|
23
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
|
|
24
|
+
},
|
|
25
|
+
"registerSchedulerStep": {
|
|
26
|
+
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
30
|
+
"executeEvaluatorStep": {
|
|
31
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
32
|
+
},
|
|
33
|
+
"filterEvaluatorsByAgentStep": {
|
|
34
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//filterEvaluatorsByAgentStep"
|
|
35
|
+
},
|
|
36
|
+
"getConversationStep": {
|
|
37
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
38
|
+
},
|
|
39
|
+
"getEvaluatorsStep": {
|
|
40
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
41
|
+
},
|
|
42
|
+
"logStep": {
|
|
43
|
+
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"src/domains/run/workflow/steps/webhookDeliverySteps.ts": {
|
|
47
|
+
"deliverWebhookStep": {
|
|
48
|
+
"stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//deliverWebhookStep"
|
|
49
|
+
},
|
|
50
|
+
"logStep": {
|
|
51
|
+
"stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//logStep"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/stdlib.js": {
|
|
55
|
+
"fetch": {
|
|
56
|
+
"stepId": "step//workflow@4.2.0-beta.67//fetch"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
15
59
|
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
16
60
|
"executeDatasetItemStep": {
|
|
17
61
|
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//executeDatasetItemStep"
|
|
@@ -38,23 +82,6 @@
|
|
|
38
82
|
"stepId": "step//./src/domains/evals/workflow/functions/runDatasetItem//recordConversationStep"
|
|
39
83
|
}
|
|
40
84
|
},
|
|
41
|
-
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
42
|
-
"executeEvaluatorStep": {
|
|
43
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//executeEvaluatorStep"
|
|
44
|
-
},
|
|
45
|
-
"filterEvaluatorsByAgentStep": {
|
|
46
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//filterEvaluatorsByAgentStep"
|
|
47
|
-
},
|
|
48
|
-
"getConversationStep": {
|
|
49
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getConversationStep"
|
|
50
|
-
},
|
|
51
|
-
"getEvaluatorsStep": {
|
|
52
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//getEvaluatorsStep"
|
|
53
|
-
},
|
|
54
|
-
"logStep": {
|
|
55
|
-
"stepId": "step//./src/domains/evals/workflow/functions/evaluateConversation//logStep"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
85
|
"src/domains/run/workflow/steps/scheduledTriggerSteps.ts": {
|
|
59
86
|
"addConversationIdStep": {
|
|
60
87
|
"stepId": "step//./src/domains/run/workflow/steps/scheduledTriggerSteps//addConversationIdStep"
|
|
@@ -118,46 +145,19 @@
|
|
|
118
145
|
"markWorkflowSuspendedStep": {
|
|
119
146
|
"stepId": "step//./src/domains/run/workflow/steps/agentExecutionSteps//markWorkflowSuspendedStep"
|
|
120
147
|
}
|
|
121
|
-
},
|
|
122
|
-
"src/domains/run/workflow/steps/schedulerSteps.ts": {
|
|
123
|
-
"checkSchedulerCurrentStep": {
|
|
124
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//checkSchedulerCurrentStep"
|
|
125
|
-
},
|
|
126
|
-
"dispatchDueTriggersStep": {
|
|
127
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//dispatchDueTriggersStep"
|
|
128
|
-
},
|
|
129
|
-
"msUntilNextMinuteStep": {
|
|
130
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//msUntilNextMinuteStep"
|
|
131
|
-
},
|
|
132
|
-
"registerSchedulerStep": {
|
|
133
|
-
"stepId": "step//./src/domains/run/workflow/steps/schedulerSteps//registerSchedulerStep"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"src/domains/run/workflow/steps/webhookDeliverySteps.ts": {
|
|
137
|
-
"deliverWebhookStep": {
|
|
138
|
-
"stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//deliverWebhookStep"
|
|
139
|
-
},
|
|
140
|
-
"logStep": {
|
|
141
|
-
"stepId": "step//./src/domains/run/workflow/steps/webhookDeliverySteps//logStep"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"node_modules/.pnpm/workflow@4.2.0-beta.67_@nestjs+common@11.1.13_reflect-metadata@0.2.2_rxjs@7.8.2__@nestj_96922d2271aac238f90b7b371b58c984/node_modules/workflow/dist/stdlib.js": {
|
|
145
|
-
"fetch": {
|
|
146
|
-
"stepId": "step//workflow@4.2.0-beta.67//fetch"
|
|
147
|
-
}
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
"workflows": {
|
|
151
|
-
"src/domains/evals/workflow/functions/
|
|
152
|
-
"
|
|
153
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
151
|
+
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
152
|
+
"_evaluateConversationWorkflow": {
|
|
153
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/evaluateConversation//_evaluateConversationWorkflow",
|
|
154
154
|
"graph": {
|
|
155
155
|
"nodes": [
|
|
156
156
|
{
|
|
157
157
|
"id": "start",
|
|
158
158
|
"type": "workflowStart",
|
|
159
159
|
"data": {
|
|
160
|
-
"label": "Start:
|
|
160
|
+
"label": "Start: _evaluateConversationWorkflow",
|
|
161
161
|
"nodeKind": "workflow_start"
|
|
162
162
|
}
|
|
163
163
|
},
|
|
@@ -181,16 +181,16 @@
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
"src/domains/evals/workflow/functions/
|
|
185
|
-
"
|
|
186
|
-
"workflowId": "workflow//./src/domains/evals/workflow/functions/
|
|
184
|
+
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
185
|
+
"_runDatasetItemWorkflow": {
|
|
186
|
+
"workflowId": "workflow//./src/domains/evals/workflow/functions/runDatasetItem//_runDatasetItemWorkflow",
|
|
187
187
|
"graph": {
|
|
188
188
|
"nodes": [
|
|
189
189
|
{
|
|
190
190
|
"id": "start",
|
|
191
191
|
"type": "workflowStart",
|
|
192
192
|
"data": {
|
|
193
|
-
"label": "Start:
|
|
193
|
+
"label": "Start: _runDatasetItemWorkflow",
|
|
194
194
|
"nodeKind": "workflow_start"
|
|
195
195
|
}
|
|
196
196
|
},
|
|
@@ -399,30 +399,19 @@
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
},
|
|
402
|
-
"src/domains/run/workflow/functions/
|
|
403
|
-
"
|
|
404
|
-
"workflowId": "workflow//./src/domains/run/workflow/functions/
|
|
402
|
+
"src/domains/run/workflow/functions/agentExecution.ts": {
|
|
403
|
+
"_agentExecutionWorkflow": {
|
|
404
|
+
"workflowId": "workflow//./src/domains/run/workflow/functions/agentExecution//_agentExecutionWorkflow",
|
|
405
405
|
"graph": {
|
|
406
406
|
"nodes": [
|
|
407
407
|
{
|
|
408
408
|
"id": "start",
|
|
409
409
|
"type": "workflowStart",
|
|
410
410
|
"data": {
|
|
411
|
-
"label": "Start:
|
|
411
|
+
"label": "Start: _agentExecutionWorkflow",
|
|
412
412
|
"nodeKind": "workflow_start"
|
|
413
413
|
}
|
|
414
414
|
},
|
|
415
|
-
{
|
|
416
|
-
"id": "node_0",
|
|
417
|
-
"type": "primitive",
|
|
418
|
-
"data": {
|
|
419
|
-
"label": "sleep",
|
|
420
|
-
"nodeKind": "primitive"
|
|
421
|
-
},
|
|
422
|
-
"metadata": {
|
|
423
|
-
"loopId": "loop_0"
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
415
|
{
|
|
427
416
|
"id": "end",
|
|
428
417
|
"type": "workflowEnd",
|
|
@@ -434,20 +423,8 @@
|
|
|
434
423
|
],
|
|
435
424
|
"edges": [
|
|
436
425
|
{
|
|
437
|
-
"id": "
|
|
438
|
-
"source": "node_0",
|
|
439
|
-
"target": "node_0",
|
|
440
|
-
"type": "loop"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"id": "e_start_node_0",
|
|
426
|
+
"id": "e_start_end",
|
|
444
427
|
"source": "start",
|
|
445
|
-
"target": "node_0",
|
|
446
|
-
"type": "default"
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"id": "e_node_0_end",
|
|
450
|
-
"source": "node_0",
|
|
451
428
|
"target": "end",
|
|
452
429
|
"type": "default"
|
|
453
430
|
}
|
|
@@ -455,19 +432,30 @@
|
|
|
455
432
|
}
|
|
456
433
|
}
|
|
457
434
|
},
|
|
458
|
-
"src/domains/run/workflow/functions/
|
|
459
|
-
"
|
|
460
|
-
"workflowId": "workflow//./src/domains/run/workflow/functions/
|
|
435
|
+
"src/domains/run/workflow/functions/schedulerWorkflow.ts": {
|
|
436
|
+
"_schedulerWorkflow": {
|
|
437
|
+
"workflowId": "workflow//./src/domains/run/workflow/functions/schedulerWorkflow//_schedulerWorkflow",
|
|
461
438
|
"graph": {
|
|
462
439
|
"nodes": [
|
|
463
440
|
{
|
|
464
441
|
"id": "start",
|
|
465
442
|
"type": "workflowStart",
|
|
466
443
|
"data": {
|
|
467
|
-
"label": "Start:
|
|
444
|
+
"label": "Start: _schedulerWorkflow",
|
|
468
445
|
"nodeKind": "workflow_start"
|
|
469
446
|
}
|
|
470
447
|
},
|
|
448
|
+
{
|
|
449
|
+
"id": "node_0",
|
|
450
|
+
"type": "primitive",
|
|
451
|
+
"data": {
|
|
452
|
+
"label": "sleep",
|
|
453
|
+
"nodeKind": "primitive"
|
|
454
|
+
},
|
|
455
|
+
"metadata": {
|
|
456
|
+
"loopId": "loop_0"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
471
459
|
{
|
|
472
460
|
"id": "end",
|
|
473
461
|
"type": "workflowEnd",
|
|
@@ -479,8 +467,20 @@
|
|
|
479
467
|
],
|
|
480
468
|
"edges": [
|
|
481
469
|
{
|
|
482
|
-
"id": "
|
|
470
|
+
"id": "e_node_0_back_node_0",
|
|
471
|
+
"source": "node_0",
|
|
472
|
+
"target": "node_0",
|
|
473
|
+
"type": "loop"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "e_start_node_0",
|
|
483
477
|
"source": "start",
|
|
478
|
+
"target": "node_0",
|
|
479
|
+
"type": "default"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"id": "e_node_0_end",
|
|
483
|
+
"source": "node_0",
|
|
484
484
|
"target": "end",
|
|
485
485
|
"type": "default"
|
|
486
486
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core1 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data/db/manageDbClient.d.ts
|
|
4
|
-
declare const manageDbClient:
|
|
4
|
+
declare const manageDbClient: _inkeep_agents_core1.AgentsManageDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { manageDbClient as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core2 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data/db/runDbClient.d.ts
|
|
4
|
-
declare const runDbClient:
|
|
4
|
+
declare const runDbClient: _inkeep_agents_core2.AgentsRunDatabaseClient;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { runDbClient as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core3 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/agent.d.ts
|
|
4
|
-
declare const agentHandlers:
|
|
4
|
+
declare const agentHandlers: _inkeep_agents_core3.EntityEffectHandlers<"agent">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { agentHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core4 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/context-configs.d.ts
|
|
4
|
-
declare const contextConfigsHandlers:
|
|
4
|
+
declare const contextConfigsHandlers: _inkeep_agents_core4.EntityEffectHandlers<"context_configs">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { contextConfigsHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core5 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/sub-agents.d.ts
|
|
4
|
-
declare const subAgentsHandlers:
|
|
4
|
+
declare const subAgentsHandlers: _inkeep_agents_core5.EntityEffectHandlers<"sub_agents">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { subAgentsHandlers };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core6 from "@inkeep/agents-core";
|
|
2
2
|
|
|
3
3
|
//#region src/data-reconciliation/handlers/tools.d.ts
|
|
4
|
-
declare const toolsHandlers:
|
|
4
|
+
declare const toolsHandlers: _inkeep_agents_core6.EntityEffectHandlers<"tools">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { toolsHandlers };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono15 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono15.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types8 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/workflow/routes.d.ts
|
|
5
|
-
declare const workflowRoutes: Hono<
|
|
5
|
+
declare const workflowRoutes: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { workflowRoutes };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types6 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/authLookup.d.ts
|
|
6
6
|
declare const authLookupRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types6.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { authLookupRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono16 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/availableAgents.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono16.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono17 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono17.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono18 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/feedback.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono18.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono19 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono19.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types13 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/invitations.d.ts
|
|
6
6
|
declare const invitationsRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types13.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { invitationsRoutes as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types5 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/passwordResetLinks.d.ts
|
|
6
6
|
declare const passwordResetLinksRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types5.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { passwordResetLinksRoutes as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types7 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/signoz.d.ts
|
|
6
6
|
declare class FetchResponseError extends Error {
|
|
@@ -22,6 +22,6 @@ declare function queryWithRetry(signoz: SignozConfig, payload: any): Promise<{
|
|
|
22
22
|
}>;
|
|
23
23
|
declare const app: Hono<{
|
|
24
24
|
Variables: ManageAppVariables;
|
|
25
|
-
},
|
|
25
|
+
}, hono_types7.BlankSchema, "/">;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { FetchResponseError, app as default, effectiveRetryCap, getMissingKeys, queryReferencesKeys, queryWithRetry, stripSelectFields };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types10 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/users.d.ts
|
|
6
6
|
declare const usersRoutes: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types10.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { usersRoutes as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types11 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/mcp/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types11.BlankEnv, hono_types11.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -2,7 +2,7 @@ import { AgentConfig, AgentRunContext, DelegateRelation } from "./agent-types.js
|
|
|
2
2
|
import "./Agent.js";
|
|
3
3
|
import { InternalRelation } from "../utils/project.js";
|
|
4
4
|
import { z } from "@hono/zod-openapi";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _inkeep_agents_core0 from "@inkeep/agents-core";
|
|
6
6
|
import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
|
|
7
7
|
import * as ai0 from "ai";
|
|
8
8
|
|
|
@@ -50,7 +50,7 @@ declare function createDelegateToAgentTool({
|
|
|
50
50
|
message: string;
|
|
51
51
|
}, {
|
|
52
52
|
toolCallId: any;
|
|
53
|
-
result:
|
|
53
|
+
result: _inkeep_agents_core0.Message | _inkeep_agents_core0.Task;
|
|
54
54
|
}>;
|
|
55
55
|
/**
|
|
56
56
|
* Parameters for building a transfer relation config
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono20 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/run/routes/auth.d.ts
|
|
5
5
|
declare function getAnonJwtSecret(): Uint8Array;
|
|
6
|
-
declare const app: OpenAPIHono<
|
|
6
|
+
declare const app: OpenAPIHono<hono20.Env, {}, "/">;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { app as default, getAnonJwtSecret };
|
|
@@ -118,7 +118,7 @@ async function proxyChallengeGet(appId, endpointClass, req) {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
async function proxyChallengePost(appId, req) {
|
|
121
|
+
async function proxyChallengePost(appId, req, rawBody) {
|
|
122
122
|
const apiKeyId = env.INKEEP_SENTINEL_API_KEY_ID;
|
|
123
123
|
const baseUrl = env.INKEEP_SENTINEL_BASE_URL;
|
|
124
124
|
if (!isSentinelEnabled(apiKeyId) || !baseUrl) throw createApiError({
|
|
@@ -133,7 +133,7 @@ async function proxyChallengePost(appId, req) {
|
|
|
133
133
|
const upstream = await fetch(upstreamUrl, {
|
|
134
134
|
method: "POST",
|
|
135
135
|
headers: headers$1,
|
|
136
|
-
body:
|
|
136
|
+
body: rawBody,
|
|
137
137
|
signal: AbortSignal.timeout(5e3)
|
|
138
138
|
});
|
|
139
139
|
if (!upstream.ok) {
|
|
@@ -155,7 +155,7 @@ async function proxyChallengePost(appId, req) {
|
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
async function proxyVerify(appId, req) {
|
|
158
|
+
async function proxyVerify(appId, req, rawBody) {
|
|
159
159
|
const apiKeyId = env.INKEEP_SENTINEL_API_KEY_ID;
|
|
160
160
|
const baseUrl = env.INKEEP_SENTINEL_BASE_URL;
|
|
161
161
|
if (!isSentinelEnabled(apiKeyId) || !baseUrl) throw createApiError({
|
|
@@ -170,7 +170,7 @@ async function proxyVerify(appId, req) {
|
|
|
170
170
|
const upstream = await fetch(upstreamUrl, {
|
|
171
171
|
method: "POST",
|
|
172
172
|
headers: headers$1,
|
|
173
|
-
body:
|
|
173
|
+
body: rawBody,
|
|
174
174
|
signal: AbortSignal.timeout(5e3)
|
|
175
175
|
});
|
|
176
176
|
if (!upstream.ok) {
|
|
@@ -240,7 +240,7 @@ app.openapi(createProtectedRoute({
|
|
|
240
240
|
}
|
|
241
241
|
}), async (c) => {
|
|
242
242
|
const { appId } = c.req.valid("query");
|
|
243
|
-
const body = await proxyChallengePost(appId, c.req.raw);
|
|
243
|
+
const body = await proxyChallengePost(appId, c.req.raw, await c.req.text());
|
|
244
244
|
return c.json(body, 200);
|
|
245
245
|
});
|
|
246
246
|
app.openapi(createProtectedRoute({
|
|
@@ -265,7 +265,7 @@ app.openapi(createProtectedRoute({
|
|
|
265
265
|
}
|
|
266
266
|
}), async (c) => {
|
|
267
267
|
const { appId } = c.req.valid("query");
|
|
268
|
-
const body = await proxyVerify(appId, c.req.raw);
|
|
268
|
+
const body = await proxyVerify(appId, c.req.raw, await c.req.text());
|
|
269
269
|
return c.json(body, 200);
|
|
270
270
|
});
|
|
271
271
|
const requireAppId = (appId) => {
|
|
@@ -280,11 +280,11 @@ app.get("/sentinel/challenge", async (c) => {
|
|
|
280
280
|
return c.json(body, 200);
|
|
281
281
|
});
|
|
282
282
|
app.post("/sentinel/challenge", async (c) => {
|
|
283
|
-
const body = await proxyChallengePost(requireAppId(c.req.query("appId")), c.req.raw);
|
|
283
|
+
const body = await proxyChallengePost(requireAppId(c.req.query("appId")), c.req.raw, await c.req.text());
|
|
284
284
|
return c.json(body, 200);
|
|
285
285
|
});
|
|
286
286
|
app.post("/sentinel/verify", async (c) => {
|
|
287
|
-
const body = await proxyVerify(requireAppId(c.req.query("appId")), c.req.raw);
|
|
287
|
+
const body = await proxyVerify(requireAppId(c.req.query("appId")), c.req.raw, await c.req.text());
|
|
288
288
|
return c.json(body, 200);
|
|
289
289
|
});
|
|
290
290
|
app.openapi(createProtectedRoute({
|
|
@@ -104,8 +104,8 @@ declare const VercelMessageSchema: z.ZodObject<{
|
|
|
104
104
|
id: z.ZodOptional<z.ZodString>;
|
|
105
105
|
role: z.ZodEnum<{
|
|
106
106
|
function: "function";
|
|
107
|
-
system: "system";
|
|
108
107
|
user: "user";
|
|
108
|
+
system: "system";
|
|
109
109
|
assistant: "assistant";
|
|
110
110
|
tool: "tool";
|
|
111
111
|
}>;
|
|
@@ -179,8 +179,8 @@ type ContentItem = z.infer<typeof ContentItemSchema>;
|
|
|
179
179
|
declare const MessageSchema: z.ZodObject<{
|
|
180
180
|
role: z.ZodEnum<{
|
|
181
181
|
function: "function";
|
|
182
|
-
system: "system";
|
|
183
182
|
user: "user";
|
|
183
|
+
system: "system";
|
|
184
184
|
assistant: "assistant";
|
|
185
185
|
tool: "tool";
|
|
186
186
|
}>;
|
|
@@ -212,8 +212,8 @@ declare const ChatCompletionRequestSchema: z.ZodObject<{
|
|
|
212
212
|
messages: z.ZodArray<z.ZodObject<{
|
|
213
213
|
role: z.ZodEnum<{
|
|
214
214
|
function: "function";
|
|
215
|
-
system: "system";
|
|
216
215
|
user: "user";
|
|
216
|
+
system: "system";
|
|
217
217
|
assistant: "assistant";
|
|
218
218
|
tool: "tool";
|
|
219
219
|
}>;
|
|
@@ -74,7 +74,7 @@ declare function createInvocationIdempotentStep(params: {
|
|
|
74
74
|
projectId: string;
|
|
75
75
|
tenantId: string;
|
|
76
76
|
id: string;
|
|
77
|
-
status: "
|
|
77
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
78
78
|
ref?: {
|
|
79
79
|
type: "commit" | "tag" | "branch";
|
|
80
80
|
name: string;
|
|
@@ -120,7 +120,7 @@ declare function markRunningStep(params: {
|
|
|
120
120
|
projectId: string;
|
|
121
121
|
tenantId: string;
|
|
122
122
|
id: string;
|
|
123
|
-
status: "
|
|
123
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
124
124
|
ref?: {
|
|
125
125
|
type: "commit" | "tag" | "branch";
|
|
126
126
|
name: string;
|
|
@@ -153,7 +153,7 @@ declare function addConversationIdStep(params: {
|
|
|
153
153
|
projectId: string;
|
|
154
154
|
tenantId: string;
|
|
155
155
|
id: string;
|
|
156
|
-
status: "
|
|
156
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
157
157
|
ref?: {
|
|
158
158
|
type: "commit" | "tag" | "branch";
|
|
159
159
|
name: string;
|
|
@@ -184,7 +184,7 @@ declare function markCompletedStep(params: {
|
|
|
184
184
|
projectId: string;
|
|
185
185
|
tenantId: string;
|
|
186
186
|
id: string;
|
|
187
|
-
status: "
|
|
187
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
188
188
|
ref?: {
|
|
189
189
|
type: "commit" | "tag" | "branch";
|
|
190
190
|
name: string;
|
|
@@ -215,7 +215,7 @@ declare function markFailedStep(params: {
|
|
|
215
215
|
projectId: string;
|
|
216
216
|
tenantId: string;
|
|
217
217
|
id: string;
|
|
218
|
-
status: "
|
|
218
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
219
219
|
ref?: {
|
|
220
220
|
type: "commit" | "tag" | "branch";
|
|
221
221
|
name: string;
|
|
@@ -265,7 +265,7 @@ declare function resetInvocationToPendingStep(params: {
|
|
|
265
265
|
projectId: string;
|
|
266
266
|
tenantId: string;
|
|
267
267
|
id: string;
|
|
268
|
-
status: "
|
|
268
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
269
269
|
ref?: {
|
|
270
270
|
type: "commit" | "tag" | "branch";
|
|
271
271
|
name: string;
|
package/dist/env.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ declare const envSchema: z.ZodObject<{
|
|
|
14
14
|
pentest: "pentest";
|
|
15
15
|
}>>;
|
|
16
16
|
LOG_LEVEL: z.ZodDefault<z.ZodEnum<{
|
|
17
|
-
|
|
17
|
+
trace: "trace";
|
|
18
18
|
debug: "debug";
|
|
19
19
|
info: "info";
|
|
20
20
|
warn: "warn";
|
|
21
|
-
|
|
21
|
+
error: "error";
|
|
22
22
|
}>>;
|
|
23
23
|
INKEEP_AGENTS_MANAGE_DATABASE_URL: z.ZodString;
|
|
24
24
|
INKEEP_AGENTS_RUN_DATABASE_URL: z.ZodString;
|
|
@@ -89,7 +89,7 @@ declare const envSchema: z.ZodObject<{
|
|
|
89
89
|
declare const env: {
|
|
90
90
|
NODE_ENV: "development" | "production" | "test";
|
|
91
91
|
ENVIRONMENT: "development" | "production" | "test" | "pentest";
|
|
92
|
-
LOG_LEVEL: "
|
|
92
|
+
LOG_LEVEL: "trace" | "debug" | "info" | "warn" | "error";
|
|
93
93
|
INKEEP_AGENTS_MANAGE_DATABASE_URL: string;
|
|
94
94
|
INKEEP_AGENTS_RUN_DATABASE_URL: string;
|
|
95
95
|
INKEEP_AGENTS_API_URL: string;
|
package/dist/factory.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { SandboxConfig } from "./types/app.js";
|
|
|
2
2
|
import "./types/index.js";
|
|
3
3
|
import { createAgentsHono } from "./createApp.js";
|
|
4
4
|
import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
|
|
5
|
-
import * as
|
|
5
|
+
import * as hono0 from "hono";
|
|
6
6
|
import { EmailServiceConfig, SSOProviderConfig, UserAuthConfig, createAuth } from "@inkeep/agents-core/auth";
|
|
7
|
-
import * as
|
|
7
|
+
import * as hono_types1 from "hono/types";
|
|
8
8
|
|
|
9
9
|
//#region src/factory.d.ts
|
|
10
10
|
declare function createAgentsAuth(userAuthConfig?: UserAuthConfig, emailService?: EmailServiceConfig): ReturnType<typeof createAuth>;
|
|
@@ -14,6 +14,6 @@ declare function createAgentsApp(config?: {
|
|
|
14
14
|
auth?: UserAuthConfig;
|
|
15
15
|
sandboxConfig?: SandboxConfig;
|
|
16
16
|
emailService?: EmailServiceConfig;
|
|
17
|
-
}):
|
|
17
|
+
}): hono0.Hono<hono_types1.BlankEnv, hono_types1.BlankSchema, "/">;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ import { NativeSandboxConfig, SandboxConfig, VercelSandboxConfig } from "./domai
|
|
|
5
5
|
import { SSOProviderConfig, UserAuthConfig, createAgentsApp, createAgentsAuth } from "./factory.js";
|
|
6
6
|
import "./sentry.js";
|
|
7
7
|
import { Hono } from "hono";
|
|
8
|
-
import * as
|
|
8
|
+
import * as hono_types3 from "hono/types";
|
|
9
9
|
|
|
10
10
|
//#region src/index.d.ts
|
|
11
11
|
declare const auth: ReturnType<typeof createAgentsAuth>;
|
|
12
|
-
declare const app: Hono<
|
|
12
|
+
declare const app: Hono<hono_types3.BlankEnv, hono_types3.BlankSchema, "/">;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { type AppConfig, type AppVariables, Hono, type NativeSandboxConfig, type SSOProviderConfig, type SandboxConfig, type UserAuthConfig, type VercelSandboxConfig, auth, createAgentsApp, createAgentsHono, app as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono1 from "hono";
|
|
3
3
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/manageAuth.d.ts
|
|
@@ -17,7 +17,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
|
|
|
17
17
|
* the narrow legacy exceptions enumerated in `LEGACY_API_KEY_ALLOWED_ROUTES`. API keys
|
|
18
18
|
* are otherwise restricted to the run domain only.
|
|
19
19
|
*/
|
|
20
|
-
declare const manageBearerAuth: () =>
|
|
20
|
+
declare const manageBearerAuth: () => hono1.MiddlewareHandler<{
|
|
21
21
|
Variables: {
|
|
22
22
|
executionContext: BaseExecutionContext;
|
|
23
23
|
userId?: string;
|
|
@@ -31,6 +31,6 @@ declare const manageBearerAuth: () => hono14.MiddlewareHandler<{
|
|
|
31
31
|
* Uses Bearer token → manage bearer auth (bypass secret, session, Slack JWT, internal service),
|
|
32
32
|
* otherwise falls back to session auth.
|
|
33
33
|
*/
|
|
34
|
-
declare const manageBearerOrSessionAuth: () =>
|
|
34
|
+
declare const manageBearerOrSessionAuth: () => hono1.MiddlewareHandler<any, string, {}, Response>;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { manageBearerAuth, manageBearerOrSessionAuth };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono3 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/projectConfig.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Middleware that fetches the full project definition from the Management API
|
|
7
7
|
*/
|
|
8
|
-
declare const projectConfigMiddleware:
|
|
8
|
+
declare const projectConfigMiddleware: hono3.MiddlewareHandler<{
|
|
9
9
|
Variables: {
|
|
10
10
|
executionContext: BaseExecutionContext;
|
|
11
11
|
resolvedRef: ResolvedRef;
|
|
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono17.MiddlewareHandler<{
|
|
|
15
15
|
* Creates a middleware that applies project config fetching except for specified route patterns
|
|
16
16
|
* @param skipRouteCheck - Function that returns true if the route should skip the middleware
|
|
17
17
|
*/
|
|
18
|
-
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) =>
|
|
18
|
+
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono3.MiddlewareHandler<{
|
|
19
19
|
Variables: {
|
|
20
20
|
executionContext: BaseExecutionContext;
|
|
21
21
|
resolvedRef: ResolvedRef;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono5 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/requireEntitlement.d.ts
|
|
5
5
|
type EntitlementConfig = {
|
|
@@ -11,6 +11,6 @@ declare const requireEntitlement: <Env$1 extends {
|
|
|
11
11
|
Variables: ManageAppVariables;
|
|
12
12
|
} = {
|
|
13
13
|
Variables: ManageAppVariables;
|
|
14
|
-
}>(config: EntitlementConfig) =>
|
|
14
|
+
}>(config: EntitlementConfig) => hono5.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { requireEntitlement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono6 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/requirePermission.d.ts
|
|
5
5
|
type Permission = {
|
|
@@ -9,6 +9,6 @@ declare const requirePermission: <Env$1 extends {
|
|
|
9
9
|
Variables: ManageAppVariables;
|
|
10
10
|
} = {
|
|
11
11
|
Variables: ManageAppVariables;
|
|
12
|
-
}>(permissions: Permission) =>
|
|
12
|
+
}>(permissions: Permission) => hono6.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { requirePermission };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono7 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/runAuth.d.ts
|
|
5
|
-
declare const runApiKeyAuth: () =>
|
|
5
|
+
declare const runApiKeyAuth: () => hono7.MiddlewareHandler<{
|
|
6
6
|
Variables: {
|
|
7
7
|
executionContext: BaseExecutionContext;
|
|
8
8
|
};
|
|
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono6.MiddlewareHandler<{
|
|
|
11
11
|
* Creates a middleware that applies API key authentication except for specified route patterns
|
|
12
12
|
* @param skipRouteCheck - Function that returns true if the route should skip authentication
|
|
13
13
|
*/
|
|
14
|
-
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =>
|
|
14
|
+
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono7.MiddlewareHandler<{
|
|
15
15
|
Variables: {
|
|
16
16
|
executionContext: BaseExecutionContext;
|
|
17
17
|
};
|
|
@@ -20,7 +20,7 @@ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =
|
|
|
20
20
|
* Helper middleware for endpoints that optionally support API key authentication
|
|
21
21
|
* If no auth header is present, it continues without setting the executionContext
|
|
22
22
|
*/
|
|
23
|
-
declare const runOptionalAuth: () =>
|
|
23
|
+
declare const runOptionalAuth: () => hono7.MiddlewareHandler<{
|
|
24
24
|
Variables: {
|
|
25
25
|
executionContext?: BaseExecutionContext;
|
|
26
26
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppVariables } from "../types/app.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono10 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/sessionAuth.d.ts
|
|
5
5
|
|
|
@@ -8,12 +8,12 @@ import * as hono1 from "hono";
|
|
|
8
8
|
* Requires that a user has already been authenticated via Better Auth session.
|
|
9
9
|
* Used primarily for manage routes that require an active user session.
|
|
10
10
|
*/
|
|
11
|
-
declare const sessionAuth: () =>
|
|
11
|
+
declare const sessionAuth: () => hono10.MiddlewareHandler<any, string, {}, Response>;
|
|
12
12
|
/**
|
|
13
13
|
* Global session middleware - sets user and session in context for all routes
|
|
14
14
|
* Used for all routes that require an active user session.
|
|
15
15
|
*/
|
|
16
|
-
declare const sessionContext: () =>
|
|
16
|
+
declare const sessionContext: () => hono10.MiddlewareHandler<{
|
|
17
17
|
Variables: AppVariables;
|
|
18
18
|
}, string, {}, Response>;
|
|
19
19
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono12 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tenantAccess.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as hono16 from "hono";
|
|
|
12
12
|
* - API key user: Access only to the tenant associated with the API key
|
|
13
13
|
* - Session user: Access based on organization membership
|
|
14
14
|
*/
|
|
15
|
-
declare const requireTenantAccess: () =>
|
|
15
|
+
declare const requireTenantAccess: () => hono12.MiddlewareHandler<{
|
|
16
16
|
Variables: {
|
|
17
17
|
userId: string;
|
|
18
18
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono13 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tracing.d.ts
|
|
4
|
-
declare const otelBaggageMiddleware: () =>
|
|
5
|
-
declare const executionBaggageMiddleware: () =>
|
|
4
|
+
declare const otelBaggageMiddleware: () => hono13.MiddlewareHandler<any, string, {}, Response>;
|
|
5
|
+
declare const executionBaggageMiddleware: () => hono13.MiddlewareHandler<any, string, {}, Response>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { executionBaggageMiddleware, otelBaggageMiddleware };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-api",
|
|
3
|
-
"version": "0.77.
|
|
3
|
+
"version": "0.77.1",
|
|
4
4
|
"description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -71,10 +71,10 @@
|
|
|
71
71
|
"llm-info": "^1.0.69",
|
|
72
72
|
"pg": "^8.16.3",
|
|
73
73
|
"workflow": "4.2.0-beta.67",
|
|
74
|
-
"@inkeep/agents-core": "^0.77.
|
|
75
|
-
"@inkeep/agents-email": "^0.77.
|
|
76
|
-
"@inkeep/agents-mcp": "^0.77.
|
|
77
|
-
"@inkeep/agents-work-apps": "^0.77.
|
|
74
|
+
"@inkeep/agents-core": "^0.77.1",
|
|
75
|
+
"@inkeep/agents-email": "^0.77.1",
|
|
76
|
+
"@inkeep/agents-mcp": "^0.77.1",
|
|
77
|
+
"@inkeep/agents-work-apps": "^0.77.1"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@hono/zod-openapi": "^1.1.5",
|