@inkeep/agents-core 0.71.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth-schema.d.ts +163 -163
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.d.ts +113 -113
- package/dist/auth/password-policy.d.ts +2 -2
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -2
- package/dist/constants/signoz-queries.d.ts +2 -0
- package/dist/constants/signoz-queries.js +3 -1
- package/dist/data-access/index.d.ts +2 -1
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +37 -37
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +20 -20
- package/dist/data-access/manage/dataComponents.d.ts +8 -8
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/skills.d.ts +13 -13
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- 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 +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +36 -20
- package/dist/data-access/runtime/conversations.js +30 -8
- package/dist/data-access/runtime/events.d.ts +93 -0
- package/dist/data-access/runtime/events.js +43 -0
- package/dist/data-access/runtime/feedback.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +31 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +482 -482
- package/dist/db/runtime/runtime-schema.d.ts +767 -435
- package/dist/db/runtime/runtime-schema.js +52 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +5 -4
- package/dist/types/entities.d.ts +6 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/conversations.d.ts +7 -2
- package/dist/utils/conversations.js +16 -3
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +44 -44
- package/dist/validation/schemas.d.ts +2693 -2857
- package/dist/validation/schemas.js +61 -9
- package/drizzle/runtime/0039_abandoned_old_lace.sql +21 -0
- package/drizzle/runtime/0040_living_forgotten_one.sql +4 -0
- package/drizzle/runtime/meta/0039_snapshot.json +6309 -0
- package/drizzle/runtime/meta/0040_snapshot.json +6333 -0
- package/drizzle/runtime/meta/_journal.json +14 -0
- package/package.json +1 -1
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
|
-
unauthorized: "unauthorized";
|
|
13
12
|
bad_request: "bad_request";
|
|
13
|
+
unauthorized: "unauthorized";
|
|
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
|
-
unauthorized: "unauthorized";
|
|
31
30
|
bad_request: "bad_request";
|
|
31
|
+
unauthorized: "unauthorized";
|
|
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
|
-
unauthorized: "unauthorized";
|
|
47
46
|
bad_request: "bad_request";
|
|
47
|
+
unauthorized: "unauthorized";
|
|
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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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<"bad_request" | "unauthorized" | "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>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { McpClient, McpClientOptions, McpSSEConfig, McpServerConfig, McpStreamab
|
|
|
6
6
|
import { ApiKeyGenerationResult, AppCredentialResult, extractPublicId, generateApiKey, generateAppCredential, getMetadataFromApiKey, hashApiKey, isApiKeyExpired, maskApiKey, sanitizeAppConfig, validateApiKey } from "./apiKeys.js";
|
|
7
7
|
import { McpOAuthFlowResult, McpTokenExchangeResult, OAuthConfig, detectAuthenticationRequired, exchangeMcpAuthorizationCode, initiateMcpOAuthFlow } from "./auth-detection.js";
|
|
8
8
|
import { computeNextRunAt } from "./compute-next-run-at.js";
|
|
9
|
-
import { buildConversationMetadata, deriveRelationId, generateId, getConversationId } from "./conversations.js";
|
|
9
|
+
import { buildConversationMetadata, buildConversationUserProperties, deriveRelationId, generateId, getConversationId, getConversationProperties, getConversationUserProperties, getMessageUserProperties } from "./conversations.js";
|
|
10
10
|
import { getCredentialStoreLookupKeyFromRetrievalParams } from "./credential-store-utils.js";
|
|
11
11
|
import { normalizeDateString, toISODateString } from "./date.js";
|
|
12
12
|
import { validateOrigin } from "./domain-validation.js";
|
|
@@ -39,4 +39,4 @@ import "./usage-tracker.js";
|
|
|
39
39
|
import { ValidatePublicKeyResult, validatePublicKey } from "./validate-public-key.js";
|
|
40
40
|
import { _resetWaitUntilCache, getWaitUntil } from "./wait-until.js";
|
|
41
41
|
import { TRUSTED_WORK_APP_MCP_PATHS, isTrustedWorkAppMcpUrl } from "./work-app-mcp.js";
|
|
42
|
-
export { ApiKeyGenerationResult, AppCredentialResult, AssembleResult, CommonCreateErrorResponses, CommonDeleteErrorResponses, CommonGetErrorResponses, CommonUpdateErrorResponses, ComposioAuthResult, CredentialScope, ERROR_DOCS_BASE_URL, ErrorCode, ErrorCodes, ErrorResponse, GenerateInternalServiceTokenParams, GenerateServiceTokenParams, GenerationType, HashedHeaderValue, InternalServiceId, InternalServiceTokenPayload, InternalServices, JsonTransformer, JwtVerifyResult, LLMMessage, LoggerFactoryConfig, McpClient, McpClientOptions, McpOAuthFlowResult, McpSSEConfig, McpServerConfig, McpStreamableHttpConfig, McpTokenExchangeResult, MockLanguageModel, ModelFactory, OAuthConfig, ParsedSSEResponse, PinoLogger, PinoLoggerConfig, PoWError, PoWResult, ProblemDetails, SKILL_ENTRY_FILE_PATH, ServiceTokenPayload, SignJwtOptions, SignSlackLinkTokenParams, SignSlackUserTokenParams, SignatureVerificationErrorCode, SignatureVerificationResult, SlackAccessTokenPayload, SlackAccessTokenPayloadSchema, SlackLinkIntent, SlackLinkIntentSchema, SlackLinkTokenPayload, SlackLinkTokenPayloadSchema, TRUSTED_WORK_APP_MCP_PATHS, TempTokenPayload, TriggerAuthResult, ValidatePublicKeyResult, VerifyInternalServiceTokenResult, VerifyJwtOptions, VerifyServiceTokenResult, VerifySlackLinkTokenResult, VerifySlackUserTokenResult, _resetWaitUntilCache, activeMcpClients, buildConversationMetadata, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, computeNextRunAt, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, createApiError, createMockModel, decodeJwtPayload, deleteComposioConnectedAccount, deriveKidFromPublicKey, deriveRelationId, detectAuthenticationRequired, errorResponseSchema, errorSchemaFactory, estimateTokens, exchangeMcpAuthorizationCode, extractBearerToken, extractComposioServerId, extractPreviewFields, extractPublicId, extractUsageTokens, fetchComposioServers, fetchSingleComposioServer, flushTraces, formatMessagesForLLM, formatMessagesForLLMContext, gatewayCostMiddleware, generateApiKey, generateAppCredential, generateId, generateInternalServiceToken, generateServiceToken, getComposioInstance, getComposioOAuthRedirectUrl, getComposioUserId, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getDatabaseErrorLogContext, getInProcessFetch, getJwtSecret, getLogger, getMetadataFromApiKey, getPoWErrorMessage, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isInternalServiceToken, isPoWEnabled, isProduction, isSlackUserToken, isTest, isThirdPartyMCPServerAuthenticated, isTrustedWorkAppMcpUrl, isUniqueConstraintError, isZodSchema, loggerFactory, makeAllPropertiesRequired, maskApiKey, normalizeDataComponentSchema, normalizeDateString, normalizeModelId, parseEmbeddedJson, parseSSEResponse, parseSkillFromMarkdown, preview, problemDetailsSchema, registerAppFetch, retryWithBackoff, runWithLogContext, sanitizeAppConfig, serializeSkillToMarkdown, setSpanWithError, signJwt, signSlackLinkToken, signSlackUserToken, stripUnsupportedConstraints, throwIfUniqueConstraintError, toISODateString, unwrapError, validateApiKey, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, validateOrigin, validatePublicKey, validateTargetAgent, validateTenantId, validateTriggerHeaderValue, verifyAuthorizationHeader, verifyInternalServiceAuthHeader, verifyInternalServiceToken, verifyJwt, verifyPoW, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|
|
42
|
+
export { ApiKeyGenerationResult, AppCredentialResult, AssembleResult, CommonCreateErrorResponses, CommonDeleteErrorResponses, CommonGetErrorResponses, CommonUpdateErrorResponses, ComposioAuthResult, CredentialScope, ERROR_DOCS_BASE_URL, ErrorCode, ErrorCodes, ErrorResponse, GenerateInternalServiceTokenParams, GenerateServiceTokenParams, GenerationType, HashedHeaderValue, InternalServiceId, InternalServiceTokenPayload, InternalServices, JsonTransformer, JwtVerifyResult, LLMMessage, LoggerFactoryConfig, McpClient, McpClientOptions, McpOAuthFlowResult, McpSSEConfig, McpServerConfig, McpStreamableHttpConfig, McpTokenExchangeResult, MockLanguageModel, ModelFactory, OAuthConfig, ParsedSSEResponse, PinoLogger, PinoLoggerConfig, PoWError, PoWResult, ProblemDetails, SKILL_ENTRY_FILE_PATH, ServiceTokenPayload, SignJwtOptions, SignSlackLinkTokenParams, SignSlackUserTokenParams, SignatureVerificationErrorCode, SignatureVerificationResult, SlackAccessTokenPayload, SlackAccessTokenPayloadSchema, SlackLinkIntent, SlackLinkIntentSchema, SlackLinkTokenPayload, SlackLinkTokenPayloadSchema, TRUSTED_WORK_APP_MCP_PATHS, TempTokenPayload, TriggerAuthResult, ValidatePublicKeyResult, VerifyInternalServiceTokenResult, VerifyJwtOptions, VerifyServiceTokenResult, VerifySlackLinkTokenResult, VerifySlackUserTokenResult, _resetWaitUntilCache, activeMcpClients, buildConversationMetadata, buildConversationUserProperties, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, computeNextRunAt, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, createApiError, createMockModel, decodeJwtPayload, deleteComposioConnectedAccount, deriveKidFromPublicKey, deriveRelationId, detectAuthenticationRequired, errorResponseSchema, errorSchemaFactory, estimateTokens, exchangeMcpAuthorizationCode, extractBearerToken, extractComposioServerId, extractPreviewFields, extractPublicId, extractUsageTokens, fetchComposioServers, fetchSingleComposioServer, flushTraces, formatMessagesForLLM, formatMessagesForLLMContext, gatewayCostMiddleware, generateApiKey, generateAppCredential, generateId, generateInternalServiceToken, generateServiceToken, getComposioInstance, getComposioOAuthRedirectUrl, getComposioUserId, getConversationId, getConversationProperties, getConversationUserProperties, getCredentialStoreLookupKeyFromRetrievalParams, getDatabaseErrorLogContext, getInProcessFetch, getJwtSecret, getLogger, getMessageUserProperties, getMetadataFromApiKey, getPoWErrorMessage, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isInternalServiceToken, isPoWEnabled, isProduction, isSlackUserToken, isTest, isThirdPartyMCPServerAuthenticated, isTrustedWorkAppMcpUrl, isUniqueConstraintError, isZodSchema, loggerFactory, makeAllPropertiesRequired, maskApiKey, normalizeDataComponentSchema, normalizeDateString, normalizeModelId, parseEmbeddedJson, parseSSEResponse, parseSkillFromMarkdown, preview, problemDetailsSchema, registerAppFetch, retryWithBackoff, runWithLogContext, sanitizeAppConfig, serializeSkillToMarkdown, setSpanWithError, signJwt, signSlackLinkToken, signSlackUserToken, stripUnsupportedConstraints, throwIfUniqueConstraintError, toISODateString, unwrapError, validateApiKey, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, validateOrigin, validatePublicKey, validateTargetAgent, validateTenantId, validateTriggerHeaderValue, verifyAuthorizationHeader, verifyInternalServiceAuthHeader, verifyInternalServiceToken, verifyJwt, verifyPoW, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|
package/dist/utils/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { isThirdPartyMCPServerAuthenticated } from "./third-party-mcp-servers/th
|
|
|
9
9
|
import "./third-party-mcp-servers/index.js";
|
|
10
10
|
import { getCredentialStoreLookupKeyFromRetrievalParams } from "./credential-store-utils.js";
|
|
11
11
|
import { ERROR_DOCS_BASE_URL, ErrorCode, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, errorResponseSchema, errorSchemaFactory, getDatabaseErrorLogContext, handleApiError, isUniqueConstraintError, problemDetailsSchema, throwIfUniqueConstraintError } from "./error.js";
|
|
12
|
-
import { buildConversationMetadata, deriveRelationId, generateId, getConversationId } from "./conversations.js";
|
|
12
|
+
import { buildConversationMetadata, buildConversationUserProperties, deriveRelationId, generateId, getConversationId, getConversationProperties, getConversationUserProperties, getMessageUserProperties } from "./conversations.js";
|
|
13
13
|
import { extractPublicId, generateApiKey, generateAppCredential, getMetadataFromApiKey, hashApiKey, isApiKeyExpired, maskApiKey, sanitizeAppConfig, validateApiKey } from "./apiKeys.js";
|
|
14
14
|
import { computeNextRunAt } from "./compute-next-run-at.js";
|
|
15
15
|
import { normalizeDateString, toISODateString } from "./date.js";
|
|
@@ -38,4 +38,4 @@ import { validatePublicKey } from "./validate-public-key.js";
|
|
|
38
38
|
import { _resetWaitUntilCache, getWaitUntil } from "./wait-until.js";
|
|
39
39
|
import { TRUSTED_WORK_APP_MCP_PATHS, isTrustedWorkAppMcpUrl } from "./work-app-mcp.js";
|
|
40
40
|
|
|
41
|
-
export { ERROR_DOCS_BASE_URL, ErrorCode, InternalServices, JsonTransformer, McpClient, MockLanguageModel, ModelFactory, PinoLogger, SKILL_ENTRY_FILE_PATH, SlackAccessTokenPayloadSchema, SlackLinkIntentSchema, SlackLinkTokenPayloadSchema, TRUSTED_WORK_APP_MCP_PATHS, _resetWaitUntilCache, activeMcpClients, buildConversationMetadata, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, computeNextRunAt, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, createApiError, createMockModel, decodeJwtPayload, deleteComposioConnectedAccount, deriveKidFromPublicKey, deriveRelationId, detectAuthenticationRequired, errorResponseSchema, errorSchemaFactory, estimateTokens, exchangeMcpAuthorizationCode, extractBearerToken, extractComposioServerId, extractPreviewFields, extractPublicId, extractUsageTokens, fetchComposioServers, fetchSingleComposioServer, flushTraces, formatMessagesForLLM, formatMessagesForLLMContext, gatewayCostMiddleware, generateApiKey, generateAppCredential, generateId, generateInternalServiceToken, generateServiceToken, getComposioInstance, getComposioOAuthRedirectUrl, getComposioUserId, getConversationId, getCredentialStoreLookupKeyFromRetrievalParams, getDatabaseErrorLogContext, getInProcessFetch, getJwtSecret, getLogger, getMetadataFromApiKey, getPoWErrorMessage, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isInternalServiceToken, isPoWEnabled, isProduction, isSlackUserToken, isTest, isThirdPartyMCPServerAuthenticated, isTrustedWorkAppMcpUrl, isUniqueConstraintError, isZodSchema, loggerFactory, makeAllPropertiesRequired, maskApiKey, normalizeDataComponentSchema, normalizeDateString, normalizeModelId, parseEmbeddedJson, parseSSEResponse, parseSkillFromMarkdown, preview, problemDetailsSchema, registerAppFetch, retryWithBackoff, runWithLogContext, sanitizeAppConfig, serializeSkillToMarkdown, setSpanWithError, signJwt, signSlackLinkToken, signSlackUserToken, stripUnsupportedConstraints, throwIfUniqueConstraintError, toISODateString, unwrapError, validateApiKey, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, validateOrigin, validatePublicKey, validateTargetAgent, validateTenantId, validateTriggerHeaderValue, verifyAuthorizationHeader, verifyInternalServiceAuthHeader, verifyInternalServiceToken, verifyJwt, verifyPoW, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|
|
41
|
+
export { ERROR_DOCS_BASE_URL, ErrorCode, InternalServices, JsonTransformer, McpClient, MockLanguageModel, ModelFactory, PinoLogger, SKILL_ENTRY_FILE_PATH, SlackAccessTokenPayloadSchema, SlackLinkIntentSchema, SlackLinkTokenPayloadSchema, TRUSTED_WORK_APP_MCP_PATHS, _resetWaitUntilCache, activeMcpClients, buildConversationMetadata, buildConversationUserProperties, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, computeNextRunAt, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, createApiError, createMockModel, decodeJwtPayload, deleteComposioConnectedAccount, deriveKidFromPublicKey, deriveRelationId, detectAuthenticationRequired, errorResponseSchema, errorSchemaFactory, estimateTokens, exchangeMcpAuthorizationCode, extractBearerToken, extractComposioServerId, extractPreviewFields, extractPublicId, extractUsageTokens, fetchComposioServers, fetchSingleComposioServer, flushTraces, formatMessagesForLLM, formatMessagesForLLMContext, gatewayCostMiddleware, generateApiKey, generateAppCredential, generateId, generateInternalServiceToken, generateServiceToken, getComposioInstance, getComposioOAuthRedirectUrl, getComposioUserId, getConversationId, getConversationProperties, getConversationUserProperties, getCredentialStoreLookupKeyFromRetrievalParams, getDatabaseErrorLogContext, getInProcessFetch, getJwtSecret, getLogger, getMessageUserProperties, getMetadataFromApiKey, getPoWErrorMessage, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isInternalServiceToken, isPoWEnabled, isProduction, isSlackUserToken, isTest, isThirdPartyMCPServerAuthenticated, isTrustedWorkAppMcpUrl, isUniqueConstraintError, isZodSchema, loggerFactory, makeAllPropertiesRequired, maskApiKey, normalizeDataComponentSchema, normalizeDateString, normalizeModelId, parseEmbeddedJson, parseSSEResponse, parseSkillFromMarkdown, preview, problemDetailsSchema, registerAppFetch, retryWithBackoff, runWithLogContext, sanitizeAppConfig, serializeSkillToMarkdown, setSpanWithError, signJwt, signSlackLinkToken, signSlackUserToken, stripUnsupportedConstraints, throwIfUniqueConstraintError, toISODateString, unwrapError, validateApiKey, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, validateOrigin, validatePublicKey, validateTargetAgent, validateTenantId, validateTriggerHeaderValue, verifyAuthorizationHeader, verifyInternalServiceAuthHeader, verifyInternalServiceToken, verifyJwt, verifyPoW, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod15 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_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.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_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.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
|
/**
|