@inkeep/agents-core 0.0.0-dev-20260408005804 → 0.0.0-dev-20260408074257
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/auth/auth-schema.d.ts +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/manage/agentFull.d.ts +2 -0
- package/dist/data-access/manage/agentFull.js +12 -12
- package/dist/data-access/manage/agents.d.ts +25 -25
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/skills.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +8 -8
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +449 -449
- package/dist/db/runtime/runtime-schema.d.ts +405 -405
- package/dist/dolt/ref-middleware.js +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/jwt-helpers.js +1 -1
- package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
- package/dist/utils/tracer-factory.js +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +50 -50
- package/dist/validation/schemas.d.ts +740 -740
- package/package.json +1 -1
|
@@ -57,7 +57,7 @@ const createRefMiddleware = (db, options = {}) => {
|
|
|
57
57
|
logger.debug({ ref }, "Extracted targetBranch from merge route body as ref");
|
|
58
58
|
}
|
|
59
59
|
} catch {
|
|
60
|
-
logger.debug(
|
|
60
|
+
logger.debug("Could not extract targetBranch from merge route body");
|
|
61
61
|
}
|
|
62
62
|
const tenantId = extractTenantId(c);
|
|
63
63
|
let projectId = extractProjectId(c);
|
|
@@ -72,7 +72,7 @@ const createRefMiddleware = (db, options = {}) => {
|
|
|
72
72
|
logger.debug({ projectId }, "Extracted projectId from request body");
|
|
73
73
|
}
|
|
74
74
|
} catch {
|
|
75
|
-
logger.debug(
|
|
75
|
+
logger.debug("Could not extract projectId from body");
|
|
76
76
|
}
|
|
77
77
|
if (!tenantId) throw createApiError({
|
|
78
78
|
code: "bad_request",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono3 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/no-auth.d.ts
|
|
4
|
-
declare const noAuth: () =>
|
|
4
|
+
declare const noAuth: () => hono3.MiddlewareHandler<any, string, {}, Response>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { noAuth };
|
package/dist/utils/error.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { HTTPException } from "hono/http-exception";
|
|
|
9
9
|
*/
|
|
10
10
|
declare function getDatabaseErrorLogContext(error: unknown): Record<string, unknown>;
|
|
11
11
|
declare const ErrorCode: z.ZodEnum<{
|
|
12
|
-
bad_request: "bad_request";
|
|
13
12
|
unauthorized: "unauthorized";
|
|
13
|
+
bad_request: "bad_request";
|
|
14
14
|
payment_required: "payment_required";
|
|
15
15
|
forbidden: "forbidden";
|
|
16
16
|
not_found: "not_found";
|
|
@@ -27,8 +27,8 @@ declare const problemDetailsSchema: z.ZodObject<{
|
|
|
27
27
|
instance: z.ZodOptional<z.ZodString>;
|
|
28
28
|
requestId: z.ZodOptional<z.ZodString>;
|
|
29
29
|
code: z.ZodEnum<{
|
|
30
|
-
bad_request: "bad_request";
|
|
31
30
|
unauthorized: "unauthorized";
|
|
31
|
+
bad_request: "bad_request";
|
|
32
32
|
payment_required: "payment_required";
|
|
33
33
|
forbidden: "forbidden";
|
|
34
34
|
not_found: "not_found";
|
|
@@ -43,8 +43,8 @@ type ErrorCodes = z.infer<typeof ErrorCode>;
|
|
|
43
43
|
declare const errorResponseSchema: z.ZodObject<{
|
|
44
44
|
error: z.ZodObject<{
|
|
45
45
|
code: z.ZodEnum<{
|
|
46
|
-
bad_request: "bad_request";
|
|
47
46
|
unauthorized: "unauthorized";
|
|
47
|
+
bad_request: "bad_request";
|
|
48
48
|
payment_required: "payment_required";
|
|
49
49
|
forbidden: "forbidden";
|
|
50
50
|
not_found: "not_found";
|
|
@@ -83,12 +83,12 @@ declare const errorSchemaFactory: (code: ErrorCodes, description: string) => {
|
|
|
83
83
|
schema: z.ZodObject<{
|
|
84
84
|
instance: z.ZodOptional<z.ZodString>;
|
|
85
85
|
requestId: z.ZodOptional<z.ZodString>;
|
|
86
|
-
code: z.ZodLiteral<"
|
|
86
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
87
87
|
detail: z.ZodString;
|
|
88
88
|
title: z.ZodString;
|
|
89
89
|
status: z.ZodNumber;
|
|
90
90
|
error: z.ZodObject<{
|
|
91
|
-
code: z.ZodLiteral<"
|
|
91
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
92
92
|
message: z.ZodString;
|
|
93
93
|
}, z.core.$strip>;
|
|
94
94
|
}, z.core.$strip>;
|
|
@@ -105,12 +105,12 @@ declare const commonCreateErrorResponses: {
|
|
|
105
105
|
schema: z.ZodObject<{
|
|
106
106
|
instance: z.ZodOptional<z.ZodString>;
|
|
107
107
|
requestId: z.ZodOptional<z.ZodString>;
|
|
108
|
-
code: z.ZodLiteral<"
|
|
108
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
109
109
|
detail: z.ZodString;
|
|
110
110
|
title: z.ZodString;
|
|
111
111
|
status: z.ZodNumber;
|
|
112
112
|
error: z.ZodObject<{
|
|
113
|
-
code: z.ZodLiteral<"
|
|
113
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
114
114
|
message: z.ZodString;
|
|
115
115
|
}, z.core.$strip>;
|
|
116
116
|
}, z.core.$strip>;
|
|
@@ -124,12 +124,12 @@ declare const commonCreateErrorResponses: {
|
|
|
124
124
|
schema: z.ZodObject<{
|
|
125
125
|
instance: z.ZodOptional<z.ZodString>;
|
|
126
126
|
requestId: z.ZodOptional<z.ZodString>;
|
|
127
|
-
code: z.ZodLiteral<"
|
|
127
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
128
128
|
detail: z.ZodString;
|
|
129
129
|
title: z.ZodString;
|
|
130
130
|
status: z.ZodNumber;
|
|
131
131
|
error: z.ZodObject<{
|
|
132
|
-
code: z.ZodLiteral<"
|
|
132
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
133
133
|
message: z.ZodString;
|
|
134
134
|
}, z.core.$strip>;
|
|
135
135
|
}, z.core.$strip>;
|
|
@@ -143,12 +143,12 @@ declare const commonCreateErrorResponses: {
|
|
|
143
143
|
schema: z.ZodObject<{
|
|
144
144
|
instance: z.ZodOptional<z.ZodString>;
|
|
145
145
|
requestId: z.ZodOptional<z.ZodString>;
|
|
146
|
-
code: z.ZodLiteral<"
|
|
146
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
147
147
|
detail: z.ZodString;
|
|
148
148
|
title: z.ZodString;
|
|
149
149
|
status: z.ZodNumber;
|
|
150
150
|
error: z.ZodObject<{
|
|
151
|
-
code: z.ZodLiteral<"
|
|
151
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
152
152
|
message: z.ZodString;
|
|
153
153
|
}, z.core.$strip>;
|
|
154
154
|
}, z.core.$strip>;
|
|
@@ -162,12 +162,12 @@ declare const commonCreateErrorResponses: {
|
|
|
162
162
|
schema: z.ZodObject<{
|
|
163
163
|
instance: z.ZodOptional<z.ZodString>;
|
|
164
164
|
requestId: z.ZodOptional<z.ZodString>;
|
|
165
|
-
code: z.ZodLiteral<"
|
|
165
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
166
166
|
detail: z.ZodString;
|
|
167
167
|
title: z.ZodString;
|
|
168
168
|
status: z.ZodNumber;
|
|
169
169
|
error: z.ZodObject<{
|
|
170
|
-
code: z.ZodLiteral<"
|
|
170
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
171
171
|
message: z.ZodString;
|
|
172
172
|
}, z.core.$strip>;
|
|
173
173
|
}, z.core.$strip>;
|
|
@@ -181,12 +181,12 @@ declare const commonCreateErrorResponses: {
|
|
|
181
181
|
schema: z.ZodObject<{
|
|
182
182
|
instance: z.ZodOptional<z.ZodString>;
|
|
183
183
|
requestId: z.ZodOptional<z.ZodString>;
|
|
184
|
-
code: z.ZodLiteral<"
|
|
184
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
185
185
|
detail: z.ZodString;
|
|
186
186
|
title: z.ZodString;
|
|
187
187
|
status: z.ZodNumber;
|
|
188
188
|
error: z.ZodObject<{
|
|
189
|
-
code: z.ZodLiteral<"
|
|
189
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
190
190
|
message: z.ZodString;
|
|
191
191
|
}, z.core.$strip>;
|
|
192
192
|
}, z.core.$strip>;
|
|
@@ -202,12 +202,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
202
202
|
schema: z.ZodObject<{
|
|
203
203
|
instance: z.ZodOptional<z.ZodString>;
|
|
204
204
|
requestId: z.ZodOptional<z.ZodString>;
|
|
205
|
-
code: z.ZodLiteral<"
|
|
205
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
206
206
|
detail: z.ZodString;
|
|
207
207
|
title: z.ZodString;
|
|
208
208
|
status: z.ZodNumber;
|
|
209
209
|
error: z.ZodObject<{
|
|
210
|
-
code: z.ZodLiteral<"
|
|
210
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
211
211
|
message: z.ZodString;
|
|
212
212
|
}, z.core.$strip>;
|
|
213
213
|
}, z.core.$strip>;
|
|
@@ -221,12 +221,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
221
221
|
schema: z.ZodObject<{
|
|
222
222
|
instance: z.ZodOptional<z.ZodString>;
|
|
223
223
|
requestId: z.ZodOptional<z.ZodString>;
|
|
224
|
-
code: z.ZodLiteral<"
|
|
224
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
225
225
|
detail: z.ZodString;
|
|
226
226
|
title: z.ZodString;
|
|
227
227
|
status: z.ZodNumber;
|
|
228
228
|
error: z.ZodObject<{
|
|
229
|
-
code: z.ZodLiteral<"
|
|
229
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
230
230
|
message: z.ZodString;
|
|
231
231
|
}, z.core.$strip>;
|
|
232
232
|
}, z.core.$strip>;
|
|
@@ -240,12 +240,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
240
240
|
schema: z.ZodObject<{
|
|
241
241
|
instance: z.ZodOptional<z.ZodString>;
|
|
242
242
|
requestId: z.ZodOptional<z.ZodString>;
|
|
243
|
-
code: z.ZodLiteral<"
|
|
243
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
244
244
|
detail: z.ZodString;
|
|
245
245
|
title: z.ZodString;
|
|
246
246
|
status: z.ZodNumber;
|
|
247
247
|
error: z.ZodObject<{
|
|
248
|
-
code: z.ZodLiteral<"
|
|
248
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
249
249
|
message: z.ZodString;
|
|
250
250
|
}, z.core.$strip>;
|
|
251
251
|
}, z.core.$strip>;
|
|
@@ -259,12 +259,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
259
259
|
schema: z.ZodObject<{
|
|
260
260
|
instance: z.ZodOptional<z.ZodString>;
|
|
261
261
|
requestId: z.ZodOptional<z.ZodString>;
|
|
262
|
-
code: z.ZodLiteral<"
|
|
262
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
263
263
|
detail: z.ZodString;
|
|
264
264
|
title: z.ZodString;
|
|
265
265
|
status: z.ZodNumber;
|
|
266
266
|
error: z.ZodObject<{
|
|
267
|
-
code: z.ZodLiteral<"
|
|
267
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
268
268
|
message: z.ZodString;
|
|
269
269
|
}, z.core.$strip>;
|
|
270
270
|
}, z.core.$strip>;
|
|
@@ -278,12 +278,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
278
278
|
schema: z.ZodObject<{
|
|
279
279
|
instance: z.ZodOptional<z.ZodString>;
|
|
280
280
|
requestId: z.ZodOptional<z.ZodString>;
|
|
281
|
-
code: z.ZodLiteral<"
|
|
281
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
282
282
|
detail: z.ZodString;
|
|
283
283
|
title: z.ZodString;
|
|
284
284
|
status: z.ZodNumber;
|
|
285
285
|
error: z.ZodObject<{
|
|
286
|
-
code: z.ZodLiteral<"
|
|
286
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
287
287
|
message: z.ZodString;
|
|
288
288
|
}, z.core.$strip>;
|
|
289
289
|
}, z.core.$strip>;
|
|
@@ -297,12 +297,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
297
297
|
schema: z.ZodObject<{
|
|
298
298
|
instance: z.ZodOptional<z.ZodString>;
|
|
299
299
|
requestId: z.ZodOptional<z.ZodString>;
|
|
300
|
-
code: z.ZodLiteral<"
|
|
300
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
301
301
|
detail: z.ZodString;
|
|
302
302
|
title: z.ZodString;
|
|
303
303
|
status: z.ZodNumber;
|
|
304
304
|
error: z.ZodObject<{
|
|
305
|
-
code: z.ZodLiteral<"
|
|
305
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
306
306
|
message: z.ZodString;
|
|
307
307
|
}, z.core.$strip>;
|
|
308
308
|
}, z.core.$strip>;
|
|
@@ -318,12 +318,12 @@ declare const commonGetErrorResponses: {
|
|
|
318
318
|
schema: z.ZodObject<{
|
|
319
319
|
instance: z.ZodOptional<z.ZodString>;
|
|
320
320
|
requestId: z.ZodOptional<z.ZodString>;
|
|
321
|
-
code: z.ZodLiteral<"
|
|
321
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
322
322
|
detail: z.ZodString;
|
|
323
323
|
title: z.ZodString;
|
|
324
324
|
status: z.ZodNumber;
|
|
325
325
|
error: z.ZodObject<{
|
|
326
|
-
code: z.ZodLiteral<"
|
|
326
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
327
327
|
message: z.ZodString;
|
|
328
328
|
}, z.core.$strip>;
|
|
329
329
|
}, z.core.$strip>;
|
|
@@ -337,12 +337,12 @@ declare const commonGetErrorResponses: {
|
|
|
337
337
|
schema: z.ZodObject<{
|
|
338
338
|
instance: z.ZodOptional<z.ZodString>;
|
|
339
339
|
requestId: z.ZodOptional<z.ZodString>;
|
|
340
|
-
code: z.ZodLiteral<"
|
|
340
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
341
341
|
detail: z.ZodString;
|
|
342
342
|
title: z.ZodString;
|
|
343
343
|
status: z.ZodNumber;
|
|
344
344
|
error: z.ZodObject<{
|
|
345
|
-
code: z.ZodLiteral<"
|
|
345
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
346
346
|
message: z.ZodString;
|
|
347
347
|
}, z.core.$strip>;
|
|
348
348
|
}, z.core.$strip>;
|
|
@@ -356,12 +356,12 @@ declare const commonGetErrorResponses: {
|
|
|
356
356
|
schema: z.ZodObject<{
|
|
357
357
|
instance: z.ZodOptional<z.ZodString>;
|
|
358
358
|
requestId: z.ZodOptional<z.ZodString>;
|
|
359
|
-
code: z.ZodLiteral<"
|
|
359
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
360
360
|
detail: z.ZodString;
|
|
361
361
|
title: z.ZodString;
|
|
362
362
|
status: z.ZodNumber;
|
|
363
363
|
error: z.ZodObject<{
|
|
364
|
-
code: z.ZodLiteral<"
|
|
364
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
365
365
|
message: z.ZodString;
|
|
366
366
|
}, z.core.$strip>;
|
|
367
367
|
}, z.core.$strip>;
|
|
@@ -375,12 +375,12 @@ declare const commonGetErrorResponses: {
|
|
|
375
375
|
schema: z.ZodObject<{
|
|
376
376
|
instance: z.ZodOptional<z.ZodString>;
|
|
377
377
|
requestId: z.ZodOptional<z.ZodString>;
|
|
378
|
-
code: z.ZodLiteral<"
|
|
378
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
379
379
|
detail: z.ZodString;
|
|
380
380
|
title: z.ZodString;
|
|
381
381
|
status: z.ZodNumber;
|
|
382
382
|
error: z.ZodObject<{
|
|
383
|
-
code: z.ZodLiteral<"
|
|
383
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
384
384
|
message: z.ZodString;
|
|
385
385
|
}, z.core.$strip>;
|
|
386
386
|
}, z.core.$strip>;
|
|
@@ -394,12 +394,12 @@ declare const commonGetErrorResponses: {
|
|
|
394
394
|
schema: z.ZodObject<{
|
|
395
395
|
instance: z.ZodOptional<z.ZodString>;
|
|
396
396
|
requestId: z.ZodOptional<z.ZodString>;
|
|
397
|
-
code: z.ZodLiteral<"
|
|
397
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
398
398
|
detail: z.ZodString;
|
|
399
399
|
title: z.ZodString;
|
|
400
400
|
status: z.ZodNumber;
|
|
401
401
|
error: z.ZodObject<{
|
|
402
|
-
code: z.ZodLiteral<"
|
|
402
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
403
403
|
message: z.ZodString;
|
|
404
404
|
}, z.core.$strip>;
|
|
405
405
|
}, z.core.$strip>;
|
|
@@ -413,12 +413,12 @@ declare const commonGetErrorResponses: {
|
|
|
413
413
|
schema: z.ZodObject<{
|
|
414
414
|
instance: z.ZodOptional<z.ZodString>;
|
|
415
415
|
requestId: z.ZodOptional<z.ZodString>;
|
|
416
|
-
code: z.ZodLiteral<"
|
|
416
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
417
417
|
detail: z.ZodString;
|
|
418
418
|
title: z.ZodString;
|
|
419
419
|
status: z.ZodNumber;
|
|
420
420
|
error: z.ZodObject<{
|
|
421
|
-
code: z.ZodLiteral<"
|
|
421
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
422
422
|
message: z.ZodString;
|
|
423
423
|
}, z.core.$strip>;
|
|
424
424
|
}, z.core.$strip>;
|
|
@@ -434,12 +434,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
434
434
|
schema: z.ZodObject<{
|
|
435
435
|
instance: z.ZodOptional<z.ZodString>;
|
|
436
436
|
requestId: z.ZodOptional<z.ZodString>;
|
|
437
|
-
code: z.ZodLiteral<"
|
|
437
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
438
438
|
detail: z.ZodString;
|
|
439
439
|
title: z.ZodString;
|
|
440
440
|
status: z.ZodNumber;
|
|
441
441
|
error: z.ZodObject<{
|
|
442
|
-
code: z.ZodLiteral<"
|
|
442
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
443
443
|
message: z.ZodString;
|
|
444
444
|
}, z.core.$strip>;
|
|
445
445
|
}, z.core.$strip>;
|
|
@@ -453,12 +453,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
453
453
|
schema: z.ZodObject<{
|
|
454
454
|
instance: z.ZodOptional<z.ZodString>;
|
|
455
455
|
requestId: z.ZodOptional<z.ZodString>;
|
|
456
|
-
code: z.ZodLiteral<"
|
|
456
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
457
457
|
detail: z.ZodString;
|
|
458
458
|
title: z.ZodString;
|
|
459
459
|
status: z.ZodNumber;
|
|
460
460
|
error: z.ZodObject<{
|
|
461
|
-
code: z.ZodLiteral<"
|
|
461
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
462
462
|
message: z.ZodString;
|
|
463
463
|
}, z.core.$strip>;
|
|
464
464
|
}, z.core.$strip>;
|
|
@@ -472,12 +472,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
472
472
|
schema: z.ZodObject<{
|
|
473
473
|
instance: z.ZodOptional<z.ZodString>;
|
|
474
474
|
requestId: z.ZodOptional<z.ZodString>;
|
|
475
|
-
code: z.ZodLiteral<"
|
|
475
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
476
476
|
detail: z.ZodString;
|
|
477
477
|
title: z.ZodString;
|
|
478
478
|
status: z.ZodNumber;
|
|
479
479
|
error: z.ZodObject<{
|
|
480
|
-
code: z.ZodLiteral<"
|
|
480
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
481
481
|
message: z.ZodString;
|
|
482
482
|
}, z.core.$strip>;
|
|
483
483
|
}, z.core.$strip>;
|
|
@@ -491,12 +491,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
491
491
|
schema: z.ZodObject<{
|
|
492
492
|
instance: z.ZodOptional<z.ZodString>;
|
|
493
493
|
requestId: z.ZodOptional<z.ZodString>;
|
|
494
|
-
code: z.ZodLiteral<"
|
|
494
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
495
495
|
detail: z.ZodString;
|
|
496
496
|
title: z.ZodString;
|
|
497
497
|
status: z.ZodNumber;
|
|
498
498
|
error: z.ZodObject<{
|
|
499
|
-
code: z.ZodLiteral<"
|
|
499
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
500
500
|
message: z.ZodString;
|
|
501
501
|
}, z.core.$strip>;
|
|
502
502
|
}, z.core.$strip>;
|
|
@@ -510,12 +510,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
510
510
|
schema: z.ZodObject<{
|
|
511
511
|
instance: z.ZodOptional<z.ZodString>;
|
|
512
512
|
requestId: z.ZodOptional<z.ZodString>;
|
|
513
|
-
code: z.ZodLiteral<"
|
|
513
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
514
514
|
detail: z.ZodString;
|
|
515
515
|
title: z.ZodString;
|
|
516
516
|
status: z.ZodNumber;
|
|
517
517
|
error: z.ZodObject<{
|
|
518
|
-
code: z.ZodLiteral<"
|
|
518
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
519
519
|
message: z.ZodString;
|
|
520
520
|
}, z.core.$strip>;
|
|
521
521
|
}, z.core.$strip>;
|
|
@@ -529,12 +529,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
529
529
|
schema: z.ZodObject<{
|
|
530
530
|
instance: z.ZodOptional<z.ZodString>;
|
|
531
531
|
requestId: z.ZodOptional<z.ZodString>;
|
|
532
|
-
code: z.ZodLiteral<"
|
|
532
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
533
533
|
detail: z.ZodString;
|
|
534
534
|
title: z.ZodString;
|
|
535
535
|
status: z.ZodNumber;
|
|
536
536
|
error: z.ZodObject<{
|
|
537
|
-
code: z.ZodLiteral<"
|
|
537
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity">;
|
|
538
538
|
message: z.ZodString;
|
|
539
539
|
}, z.core.$strip>;
|
|
540
540
|
}, z.core.$strip>;
|
|
@@ -13,7 +13,7 @@ function getJwtSecret() {
|
|
|
13
13
|
const secret = env.INKEEP_AGENTS_JWT_SIGNING_SECRET;
|
|
14
14
|
if (!secret) {
|
|
15
15
|
if (env.ENVIRONMENT === "production") throw new Error("INKEEP_AGENTS_JWT_SIGNING_SECRET environment variable is required in production");
|
|
16
|
-
logger.warn(
|
|
16
|
+
logger.warn("INKEEP_AGENTS_JWT_SIGNING_SECRET not set, using insecure default. DO NOT USE IN PRODUCTION!");
|
|
17
17
|
return new TextEncoder().encode(DEV_SECRET);
|
|
18
18
|
}
|
|
19
19
|
return new TextEncoder().encode(secret);
|
|
@@ -113,7 +113,7 @@ function extractComposioServerId(mcpUrl) {
|
|
|
113
113
|
async function deleteComposioConnectedAccount(accountId) {
|
|
114
114
|
const composioInstance = getComposioInstance();
|
|
115
115
|
if (!composioInstance) {
|
|
116
|
-
logger$1.info(
|
|
116
|
+
logger$1.info("Composio not configured, skipping account deletion");
|
|
117
117
|
return false;
|
|
118
118
|
}
|
|
119
119
|
try {
|
|
@@ -131,7 +131,7 @@ async function deleteComposioConnectedAccount(accountId) {
|
|
|
131
131
|
async function fetchComposioConnectedAccounts(derivedUserId) {
|
|
132
132
|
const composioInstance = getComposioInstance();
|
|
133
133
|
if (!composioInstance) {
|
|
134
|
-
logger$1.info(
|
|
134
|
+
logger$1.info("Composio not configured, skipping connected accounts fetch");
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
137
|
try {
|
|
@@ -155,7 +155,7 @@ async function fetchComposioConnectedAccounts(derivedUserId) {
|
|
|
155
155
|
*/
|
|
156
156
|
async function isComposioMCPServerAuthenticated(tenantId, projectId, mcpServerUrl, credentialScope = "project", userId) {
|
|
157
157
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
158
|
-
logger$1.info(
|
|
158
|
+
logger$1.info("Composio API key not configured, skipping auth check");
|
|
159
159
|
return { authenticated: false };
|
|
160
160
|
}
|
|
161
161
|
const serverId = extractComposioServerId(mcpServerUrl);
|
|
@@ -166,7 +166,7 @@ async function isComposioMCPServerAuthenticated(tenantId, projectId, mcpServerUr
|
|
|
166
166
|
const composioUserId = getComposioUserId(tenantId, projectId, credentialScope, userId);
|
|
167
167
|
const composioInstance = getComposioInstance();
|
|
168
168
|
if (!composioInstance) {
|
|
169
|
-
logger$1.info(
|
|
169
|
+
logger$1.info("Composio not configured, skipping auth check");
|
|
170
170
|
return { authenticated: false };
|
|
171
171
|
}
|
|
172
172
|
try {
|
|
@@ -250,7 +250,7 @@ async function ensureComposioAccount(composioMcpServer, derivedUserId, staleAcco
|
|
|
250
250
|
*/
|
|
251
251
|
async function getComposioOAuthRedirectUrl(tenantId, projectId, mcpServerUrl, credentialScope, userId) {
|
|
252
252
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
253
|
-
logger$1.info(
|
|
253
|
+
logger$1.info("Composio API key not configured");
|
|
254
254
|
return null;
|
|
255
255
|
}
|
|
256
256
|
const serverId = extractComposioServerId(mcpServerUrl);
|
|
@@ -260,7 +260,7 @@ async function getComposioOAuthRedirectUrl(tenantId, projectId, mcpServerUrl, cr
|
|
|
260
260
|
}
|
|
261
261
|
const composioInstance = getComposioInstance();
|
|
262
262
|
if (!composioInstance) {
|
|
263
|
-
logger$1.info(
|
|
263
|
+
logger$1.info("Composio not configured");
|
|
264
264
|
return null;
|
|
265
265
|
}
|
|
266
266
|
const composioUserId = getComposioUserId(tenantId, projectId, credentialScope, userId);
|
|
@@ -300,12 +300,12 @@ async function transformComposioServer(composioMcpServer, authenticatedAuthConfi
|
|
|
300
300
|
*/
|
|
301
301
|
async function fetchComposioServers() {
|
|
302
302
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
303
|
-
logger$1.info(
|
|
303
|
+
logger$1.info("COMPOSIO_API_KEY not configured, skipping Composio servers");
|
|
304
304
|
return [];
|
|
305
305
|
}
|
|
306
306
|
const composioInstance = getComposioInstance();
|
|
307
307
|
if (!composioInstance) {
|
|
308
|
-
logger$1.info(
|
|
308
|
+
logger$1.info("Composio not configured, returning empty list");
|
|
309
309
|
return [];
|
|
310
310
|
}
|
|
311
311
|
try {
|
|
@@ -327,13 +327,13 @@ async function fetchComposioServers() {
|
|
|
327
327
|
*/
|
|
328
328
|
async function fetchSingleComposioServer(tenantId, projectId, mcpServerUrl, credentialScope = "project", userId) {
|
|
329
329
|
if (!process.env.COMPOSIO_API_KEY) {
|
|
330
|
-
logger$1.debug(
|
|
330
|
+
logger$1.debug("COMPOSIO_API_KEY not configured");
|
|
331
331
|
return null;
|
|
332
332
|
}
|
|
333
333
|
const composioUserId = getComposioUserId(tenantId, projectId, credentialScope, userId);
|
|
334
334
|
const composioInstance = getComposioInstance();
|
|
335
335
|
if (!composioInstance) {
|
|
336
|
-
logger$1.info(
|
|
336
|
+
logger$1.info("Composio not configured, returning null");
|
|
337
337
|
return null;
|
|
338
338
|
}
|
|
339
339
|
try {
|
|
@@ -70,7 +70,7 @@ function getTracer(serviceName, serviceVersion) {
|
|
|
70
70
|
try {
|
|
71
71
|
return trace.getTracer(serviceName, serviceVersion);
|
|
72
72
|
} catch (_error) {
|
|
73
|
-
logger.debug(
|
|
73
|
+
logger.debug("OpenTelemetry tracer not available, using no-op tracer");
|
|
74
74
|
return noopTracer;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod0 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
6
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
7
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
6
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"select", T["_"]["columns"], drizzle_zod0.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
7
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod0.BuildSchema<"insert", T["_"]["columns"], drizzle_zod0.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
8
8
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
9
9
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
10
10
|
/**
|