@inkeep/agents-core 0.81.0 → 0.81.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/auth/auth-config-utils.js +1 -2
- package/dist/auth/auth-schema.d.ts +220 -220
- package/dist/auth/auth-validation-schemas.d.ts +137 -137
- package/dist/auth/auth.d.ts +12 -11
- package/dist/auth/auth.js +1 -0
- package/dist/auth/permissions.d.ts +7 -7
- package/dist/context/TemplateEngine.js +2 -1
- package/dist/credential-stores/defaults.js +2 -1
- package/dist/credential-stores/memory-store.js +6 -0
- package/dist/data-access/manage/agents.d.ts +10 -10
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +4 -4
- package/dist/data-access/runtime/apps.d.ts +4 -4
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/events.d.ts +2 -2
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +5 -5
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +405 -405
- package/dist/db/runtime/runtime-schema.d.ts +424 -424
- package/dist/env.d.ts +5 -0
- package/dist/env.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/env-detection.d.ts +3 -1
- package/dist/utils/env-detection.js +7 -1
- 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/schemas/skills.d.ts +32 -32
- package/dist/validation/schemas.d.ts +1866 -1866
- package/package.json +5 -5
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
//#region src/utils/env-detection.d.ts
|
|
2
2
|
declare function isDevelopment(): boolean;
|
|
3
3
|
declare function isTest(): boolean;
|
|
4
|
+
declare function isEnvironmentCredentialAccessEnabled(): boolean;
|
|
5
|
+
declare function getTemplateEnvironmentVariables(): NodeJS.ProcessEnv;
|
|
4
6
|
declare function isProduction(): boolean;
|
|
5
7
|
//#endregion
|
|
6
|
-
export { isDevelopment, isProduction, isTest };
|
|
8
|
+
export { getTemplateEnvironmentVariables, isDevelopment, isEnvironmentCredentialAccessEnabled, isProduction, isTest };
|
|
@@ -5,9 +5,15 @@ function isDevelopment() {
|
|
|
5
5
|
function isTest() {
|
|
6
6
|
return process.env.ENVIRONMENT === "test" || process.env.NODE_ENV === "test";
|
|
7
7
|
}
|
|
8
|
+
function isEnvironmentCredentialAccessEnabled() {
|
|
9
|
+
return process.env.INKEEP_ENABLE_ENVIRONMENT_CREDENTIALS === "true";
|
|
10
|
+
}
|
|
11
|
+
function getTemplateEnvironmentVariables() {
|
|
12
|
+
return isEnvironmentCredentialAccessEnabled() ? process.env : {};
|
|
13
|
+
}
|
|
8
14
|
function isProduction() {
|
|
9
15
|
return !isDevelopment() && !isTest();
|
|
10
16
|
}
|
|
11
17
|
|
|
12
18
|
//#endregion
|
|
13
|
-
export { isDevelopment, isProduction, isTest };
|
|
19
|
+
export { getTemplateEnvironmentVariables, isDevelopment, isEnvironmentCredentialAccessEnabled, isProduction, isTest };
|
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";
|
|
@@ -29,8 +29,8 @@ declare const problemDetailsSchema: z.ZodObject<{
|
|
|
29
29
|
instance: z.ZodOptional<z.ZodString>;
|
|
30
30
|
requestId: z.ZodOptional<z.ZodString>;
|
|
31
31
|
code: z.ZodEnum<{
|
|
32
|
-
bad_request: "bad_request";
|
|
33
32
|
unauthorized: "unauthorized";
|
|
33
|
+
bad_request: "bad_request";
|
|
34
34
|
payment_required: "payment_required";
|
|
35
35
|
forbidden: "forbidden";
|
|
36
36
|
not_found: "not_found";
|
|
@@ -47,8 +47,8 @@ type ErrorCodes = z.infer<typeof ErrorCode>;
|
|
|
47
47
|
declare const errorResponseSchema: z.ZodObject<{
|
|
48
48
|
error: z.ZodObject<{
|
|
49
49
|
code: z.ZodEnum<{
|
|
50
|
-
bad_request: "bad_request";
|
|
51
50
|
unauthorized: "unauthorized";
|
|
51
|
+
bad_request: "bad_request";
|
|
52
52
|
payment_required: "payment_required";
|
|
53
53
|
forbidden: "forbidden";
|
|
54
54
|
not_found: "not_found";
|
|
@@ -89,12 +89,12 @@ declare const errorSchemaFactory: (code: ErrorCodes, description: string) => {
|
|
|
89
89
|
schema: z.ZodObject<{
|
|
90
90
|
instance: z.ZodOptional<z.ZodString>;
|
|
91
91
|
requestId: z.ZodOptional<z.ZodString>;
|
|
92
|
-
code: z.ZodLiteral<"
|
|
92
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
93
93
|
detail: z.ZodString;
|
|
94
94
|
title: z.ZodString;
|
|
95
95
|
status: z.ZodNumber;
|
|
96
96
|
error: z.ZodObject<{
|
|
97
|
-
code: z.ZodLiteral<"
|
|
97
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
98
98
|
message: z.ZodString;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
100
|
}, z.core.$strip>;
|
|
@@ -111,12 +111,12 @@ declare const commonCreateErrorResponses: {
|
|
|
111
111
|
schema: z.ZodObject<{
|
|
112
112
|
instance: z.ZodOptional<z.ZodString>;
|
|
113
113
|
requestId: z.ZodOptional<z.ZodString>;
|
|
114
|
-
code: z.ZodLiteral<"
|
|
114
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
115
115
|
detail: z.ZodString;
|
|
116
116
|
title: z.ZodString;
|
|
117
117
|
status: z.ZodNumber;
|
|
118
118
|
error: z.ZodObject<{
|
|
119
|
-
code: z.ZodLiteral<"
|
|
119
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
120
120
|
message: z.ZodString;
|
|
121
121
|
}, z.core.$strip>;
|
|
122
122
|
}, z.core.$strip>;
|
|
@@ -130,12 +130,12 @@ declare const commonCreateErrorResponses: {
|
|
|
130
130
|
schema: z.ZodObject<{
|
|
131
131
|
instance: z.ZodOptional<z.ZodString>;
|
|
132
132
|
requestId: z.ZodOptional<z.ZodString>;
|
|
133
|
-
code: z.ZodLiteral<"
|
|
133
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
134
134
|
detail: z.ZodString;
|
|
135
135
|
title: z.ZodString;
|
|
136
136
|
status: z.ZodNumber;
|
|
137
137
|
error: z.ZodObject<{
|
|
138
|
-
code: z.ZodLiteral<"
|
|
138
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
139
139
|
message: z.ZodString;
|
|
140
140
|
}, z.core.$strip>;
|
|
141
141
|
}, z.core.$strip>;
|
|
@@ -149,12 +149,12 @@ declare const commonCreateErrorResponses: {
|
|
|
149
149
|
schema: z.ZodObject<{
|
|
150
150
|
instance: z.ZodOptional<z.ZodString>;
|
|
151
151
|
requestId: z.ZodOptional<z.ZodString>;
|
|
152
|
-
code: z.ZodLiteral<"
|
|
152
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
153
153
|
detail: z.ZodString;
|
|
154
154
|
title: z.ZodString;
|
|
155
155
|
status: z.ZodNumber;
|
|
156
156
|
error: z.ZodObject<{
|
|
157
|
-
code: z.ZodLiteral<"
|
|
157
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
158
158
|
message: z.ZodString;
|
|
159
159
|
}, z.core.$strip>;
|
|
160
160
|
}, z.core.$strip>;
|
|
@@ -168,12 +168,12 @@ declare const commonCreateErrorResponses: {
|
|
|
168
168
|
schema: z.ZodObject<{
|
|
169
169
|
instance: z.ZodOptional<z.ZodString>;
|
|
170
170
|
requestId: z.ZodOptional<z.ZodString>;
|
|
171
|
-
code: z.ZodLiteral<"
|
|
171
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
172
172
|
detail: z.ZodString;
|
|
173
173
|
title: z.ZodString;
|
|
174
174
|
status: z.ZodNumber;
|
|
175
175
|
error: z.ZodObject<{
|
|
176
|
-
code: z.ZodLiteral<"
|
|
176
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
177
177
|
message: z.ZodString;
|
|
178
178
|
}, z.core.$strip>;
|
|
179
179
|
}, z.core.$strip>;
|
|
@@ -187,12 +187,12 @@ declare const commonCreateErrorResponses: {
|
|
|
187
187
|
schema: z.ZodObject<{
|
|
188
188
|
instance: z.ZodOptional<z.ZodString>;
|
|
189
189
|
requestId: z.ZodOptional<z.ZodString>;
|
|
190
|
-
code: z.ZodLiteral<"
|
|
190
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
191
191
|
detail: z.ZodString;
|
|
192
192
|
title: z.ZodString;
|
|
193
193
|
status: z.ZodNumber;
|
|
194
194
|
error: z.ZodObject<{
|
|
195
|
-
code: z.ZodLiteral<"
|
|
195
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
196
196
|
message: z.ZodString;
|
|
197
197
|
}, z.core.$strip>;
|
|
198
198
|
}, z.core.$strip>;
|
|
@@ -208,12 +208,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
208
208
|
schema: z.ZodObject<{
|
|
209
209
|
instance: z.ZodOptional<z.ZodString>;
|
|
210
210
|
requestId: z.ZodOptional<z.ZodString>;
|
|
211
|
-
code: z.ZodLiteral<"
|
|
211
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
212
212
|
detail: z.ZodString;
|
|
213
213
|
title: z.ZodString;
|
|
214
214
|
status: z.ZodNumber;
|
|
215
215
|
error: z.ZodObject<{
|
|
216
|
-
code: z.ZodLiteral<"
|
|
216
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
217
217
|
message: z.ZodString;
|
|
218
218
|
}, z.core.$strip>;
|
|
219
219
|
}, z.core.$strip>;
|
|
@@ -227,12 +227,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
227
227
|
schema: z.ZodObject<{
|
|
228
228
|
instance: z.ZodOptional<z.ZodString>;
|
|
229
229
|
requestId: z.ZodOptional<z.ZodString>;
|
|
230
|
-
code: z.ZodLiteral<"
|
|
230
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
231
231
|
detail: z.ZodString;
|
|
232
232
|
title: z.ZodString;
|
|
233
233
|
status: z.ZodNumber;
|
|
234
234
|
error: z.ZodObject<{
|
|
235
|
-
code: z.ZodLiteral<"
|
|
235
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
236
236
|
message: z.ZodString;
|
|
237
237
|
}, z.core.$strip>;
|
|
238
238
|
}, z.core.$strip>;
|
|
@@ -246,12 +246,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
246
246
|
schema: z.ZodObject<{
|
|
247
247
|
instance: z.ZodOptional<z.ZodString>;
|
|
248
248
|
requestId: z.ZodOptional<z.ZodString>;
|
|
249
|
-
code: z.ZodLiteral<"
|
|
249
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
250
250
|
detail: z.ZodString;
|
|
251
251
|
title: z.ZodString;
|
|
252
252
|
status: z.ZodNumber;
|
|
253
253
|
error: z.ZodObject<{
|
|
254
|
-
code: z.ZodLiteral<"
|
|
254
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
255
255
|
message: z.ZodString;
|
|
256
256
|
}, z.core.$strip>;
|
|
257
257
|
}, z.core.$strip>;
|
|
@@ -265,12 +265,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
265
265
|
schema: z.ZodObject<{
|
|
266
266
|
instance: z.ZodOptional<z.ZodString>;
|
|
267
267
|
requestId: z.ZodOptional<z.ZodString>;
|
|
268
|
-
code: z.ZodLiteral<"
|
|
268
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
269
269
|
detail: z.ZodString;
|
|
270
270
|
title: z.ZodString;
|
|
271
271
|
status: z.ZodNumber;
|
|
272
272
|
error: z.ZodObject<{
|
|
273
|
-
code: z.ZodLiteral<"
|
|
273
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
274
274
|
message: z.ZodString;
|
|
275
275
|
}, z.core.$strip>;
|
|
276
276
|
}, z.core.$strip>;
|
|
@@ -284,12 +284,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
284
284
|
schema: z.ZodObject<{
|
|
285
285
|
instance: z.ZodOptional<z.ZodString>;
|
|
286
286
|
requestId: z.ZodOptional<z.ZodString>;
|
|
287
|
-
code: z.ZodLiteral<"
|
|
287
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
288
288
|
detail: z.ZodString;
|
|
289
289
|
title: z.ZodString;
|
|
290
290
|
status: z.ZodNumber;
|
|
291
291
|
error: z.ZodObject<{
|
|
292
|
-
code: z.ZodLiteral<"
|
|
292
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
293
293
|
message: z.ZodString;
|
|
294
294
|
}, z.core.$strip>;
|
|
295
295
|
}, z.core.$strip>;
|
|
@@ -303,12 +303,12 @@ declare const commonUpdateErrorResponses: {
|
|
|
303
303
|
schema: z.ZodObject<{
|
|
304
304
|
instance: z.ZodOptional<z.ZodString>;
|
|
305
305
|
requestId: z.ZodOptional<z.ZodString>;
|
|
306
|
-
code: z.ZodLiteral<"
|
|
306
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
307
307
|
detail: z.ZodString;
|
|
308
308
|
title: z.ZodString;
|
|
309
309
|
status: z.ZodNumber;
|
|
310
310
|
error: z.ZodObject<{
|
|
311
|
-
code: z.ZodLiteral<"
|
|
311
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
312
312
|
message: z.ZodString;
|
|
313
313
|
}, z.core.$strip>;
|
|
314
314
|
}, z.core.$strip>;
|
|
@@ -324,12 +324,12 @@ declare const commonGetErrorResponses: {
|
|
|
324
324
|
schema: z.ZodObject<{
|
|
325
325
|
instance: z.ZodOptional<z.ZodString>;
|
|
326
326
|
requestId: z.ZodOptional<z.ZodString>;
|
|
327
|
-
code: z.ZodLiteral<"
|
|
327
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
328
328
|
detail: z.ZodString;
|
|
329
329
|
title: z.ZodString;
|
|
330
330
|
status: z.ZodNumber;
|
|
331
331
|
error: z.ZodObject<{
|
|
332
|
-
code: z.ZodLiteral<"
|
|
332
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
333
333
|
message: z.ZodString;
|
|
334
334
|
}, z.core.$strip>;
|
|
335
335
|
}, z.core.$strip>;
|
|
@@ -343,12 +343,12 @@ declare const commonGetErrorResponses: {
|
|
|
343
343
|
schema: z.ZodObject<{
|
|
344
344
|
instance: z.ZodOptional<z.ZodString>;
|
|
345
345
|
requestId: z.ZodOptional<z.ZodString>;
|
|
346
|
-
code: z.ZodLiteral<"
|
|
346
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
347
347
|
detail: z.ZodString;
|
|
348
348
|
title: z.ZodString;
|
|
349
349
|
status: z.ZodNumber;
|
|
350
350
|
error: z.ZodObject<{
|
|
351
|
-
code: z.ZodLiteral<"
|
|
351
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
352
352
|
message: z.ZodString;
|
|
353
353
|
}, z.core.$strip>;
|
|
354
354
|
}, z.core.$strip>;
|
|
@@ -362,12 +362,12 @@ declare const commonGetErrorResponses: {
|
|
|
362
362
|
schema: z.ZodObject<{
|
|
363
363
|
instance: z.ZodOptional<z.ZodString>;
|
|
364
364
|
requestId: z.ZodOptional<z.ZodString>;
|
|
365
|
-
code: z.ZodLiteral<"
|
|
365
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
366
366
|
detail: z.ZodString;
|
|
367
367
|
title: z.ZodString;
|
|
368
368
|
status: z.ZodNumber;
|
|
369
369
|
error: z.ZodObject<{
|
|
370
|
-
code: z.ZodLiteral<"
|
|
370
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
371
371
|
message: z.ZodString;
|
|
372
372
|
}, z.core.$strip>;
|
|
373
373
|
}, z.core.$strip>;
|
|
@@ -381,12 +381,12 @@ declare const commonGetErrorResponses: {
|
|
|
381
381
|
schema: z.ZodObject<{
|
|
382
382
|
instance: z.ZodOptional<z.ZodString>;
|
|
383
383
|
requestId: z.ZodOptional<z.ZodString>;
|
|
384
|
-
code: z.ZodLiteral<"
|
|
384
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
385
385
|
detail: z.ZodString;
|
|
386
386
|
title: z.ZodString;
|
|
387
387
|
status: z.ZodNumber;
|
|
388
388
|
error: z.ZodObject<{
|
|
389
|
-
code: z.ZodLiteral<"
|
|
389
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
390
390
|
message: z.ZodString;
|
|
391
391
|
}, z.core.$strip>;
|
|
392
392
|
}, z.core.$strip>;
|
|
@@ -400,12 +400,12 @@ declare const commonGetErrorResponses: {
|
|
|
400
400
|
schema: z.ZodObject<{
|
|
401
401
|
instance: z.ZodOptional<z.ZodString>;
|
|
402
402
|
requestId: z.ZodOptional<z.ZodString>;
|
|
403
|
-
code: z.ZodLiteral<"
|
|
403
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
404
404
|
detail: z.ZodString;
|
|
405
405
|
title: z.ZodString;
|
|
406
406
|
status: z.ZodNumber;
|
|
407
407
|
error: z.ZodObject<{
|
|
408
|
-
code: z.ZodLiteral<"
|
|
408
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
409
409
|
message: z.ZodString;
|
|
410
410
|
}, z.core.$strip>;
|
|
411
411
|
}, z.core.$strip>;
|
|
@@ -419,12 +419,12 @@ declare const commonGetErrorResponses: {
|
|
|
419
419
|
schema: z.ZodObject<{
|
|
420
420
|
instance: z.ZodOptional<z.ZodString>;
|
|
421
421
|
requestId: z.ZodOptional<z.ZodString>;
|
|
422
|
-
code: z.ZodLiteral<"
|
|
422
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
423
423
|
detail: z.ZodString;
|
|
424
424
|
title: z.ZodString;
|
|
425
425
|
status: z.ZodNumber;
|
|
426
426
|
error: z.ZodObject<{
|
|
427
|
-
code: z.ZodLiteral<"
|
|
427
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
428
428
|
message: z.ZodString;
|
|
429
429
|
}, z.core.$strip>;
|
|
430
430
|
}, z.core.$strip>;
|
|
@@ -440,12 +440,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
440
440
|
schema: z.ZodObject<{
|
|
441
441
|
instance: z.ZodOptional<z.ZodString>;
|
|
442
442
|
requestId: z.ZodOptional<z.ZodString>;
|
|
443
|
-
code: z.ZodLiteral<"
|
|
443
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
444
444
|
detail: z.ZodString;
|
|
445
445
|
title: z.ZodString;
|
|
446
446
|
status: z.ZodNumber;
|
|
447
447
|
error: z.ZodObject<{
|
|
448
|
-
code: z.ZodLiteral<"
|
|
448
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
449
449
|
message: z.ZodString;
|
|
450
450
|
}, z.core.$strip>;
|
|
451
451
|
}, z.core.$strip>;
|
|
@@ -459,12 +459,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
459
459
|
schema: z.ZodObject<{
|
|
460
460
|
instance: z.ZodOptional<z.ZodString>;
|
|
461
461
|
requestId: z.ZodOptional<z.ZodString>;
|
|
462
|
-
code: z.ZodLiteral<"
|
|
462
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
463
463
|
detail: z.ZodString;
|
|
464
464
|
title: z.ZodString;
|
|
465
465
|
status: z.ZodNumber;
|
|
466
466
|
error: z.ZodObject<{
|
|
467
|
-
code: z.ZodLiteral<"
|
|
467
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
468
468
|
message: z.ZodString;
|
|
469
469
|
}, z.core.$strip>;
|
|
470
470
|
}, z.core.$strip>;
|
|
@@ -478,12 +478,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
478
478
|
schema: z.ZodObject<{
|
|
479
479
|
instance: z.ZodOptional<z.ZodString>;
|
|
480
480
|
requestId: z.ZodOptional<z.ZodString>;
|
|
481
|
-
code: z.ZodLiteral<"
|
|
481
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
482
482
|
detail: z.ZodString;
|
|
483
483
|
title: z.ZodString;
|
|
484
484
|
status: z.ZodNumber;
|
|
485
485
|
error: z.ZodObject<{
|
|
486
|
-
code: z.ZodLiteral<"
|
|
486
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
487
487
|
message: z.ZodString;
|
|
488
488
|
}, z.core.$strip>;
|
|
489
489
|
}, z.core.$strip>;
|
|
@@ -497,12 +497,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
497
497
|
schema: z.ZodObject<{
|
|
498
498
|
instance: z.ZodOptional<z.ZodString>;
|
|
499
499
|
requestId: z.ZodOptional<z.ZodString>;
|
|
500
|
-
code: z.ZodLiteral<"
|
|
500
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
501
501
|
detail: z.ZodString;
|
|
502
502
|
title: z.ZodString;
|
|
503
503
|
status: z.ZodNumber;
|
|
504
504
|
error: z.ZodObject<{
|
|
505
|
-
code: z.ZodLiteral<"
|
|
505
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
506
506
|
message: z.ZodString;
|
|
507
507
|
}, z.core.$strip>;
|
|
508
508
|
}, z.core.$strip>;
|
|
@@ -516,12 +516,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
516
516
|
schema: z.ZodObject<{
|
|
517
517
|
instance: z.ZodOptional<z.ZodString>;
|
|
518
518
|
requestId: z.ZodOptional<z.ZodString>;
|
|
519
|
-
code: z.ZodLiteral<"
|
|
519
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
520
520
|
detail: z.ZodString;
|
|
521
521
|
title: z.ZodString;
|
|
522
522
|
status: z.ZodNumber;
|
|
523
523
|
error: z.ZodObject<{
|
|
524
|
-
code: z.ZodLiteral<"
|
|
524
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
525
525
|
message: z.ZodString;
|
|
526
526
|
}, z.core.$strip>;
|
|
527
527
|
}, z.core.$strip>;
|
|
@@ -535,12 +535,12 @@ declare const commonDeleteErrorResponses: {
|
|
|
535
535
|
schema: z.ZodObject<{
|
|
536
536
|
instance: z.ZodOptional<z.ZodString>;
|
|
537
537
|
requestId: z.ZodOptional<z.ZodString>;
|
|
538
|
-
code: z.ZodLiteral<"
|
|
538
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
539
539
|
detail: z.ZodString;
|
|
540
540
|
title: z.ZodString;
|
|
541
541
|
status: z.ZodNumber;
|
|
542
542
|
error: z.ZodObject<{
|
|
543
|
-
code: z.ZodLiteral<"
|
|
543
|
+
code: z.ZodLiteral<"unauthorized" | "bad_request" | "payment_required" | "forbidden" | "not_found" | "conflict" | "too_many_requests" | "internal_server_error" | "unprocessable_entity" | "bad_gateway" | "service_unavailable">;
|
|
544
544
|
message: z.ZodString;
|
|
545
545
|
}, z.core.$strip>;
|
|
546
546
|
}, z.core.$strip>;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { buildConversationMetadata, buildConversationUserProperties, deriveRelat
|
|
|
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";
|
|
13
|
-
import { isDevelopment, isProduction, isTest } from "./env-detection.js";
|
|
13
|
+
import { getTemplateEnvironmentVariables, isDevelopment, isEnvironmentCredentialAccessEnabled, isProduction, isTest } from "./env-detection.js";
|
|
14
14
|
import { CommonCreateErrorResponses, CommonDeleteErrorResponses, CommonGetErrorResponses, CommonUpdateErrorResponses, ERROR_DOCS_BASE_URL, ErrorCode, ErrorCodes, ErrorResponse, ProblemDetails, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, createApiError, errorResponseSchema, errorSchemaFactory, getDatabaseErrorLogContext, handleApiError, isUniqueConstraintError, problemDetailsSchema, throwIfUniqueConstraintError } from "./error.js";
|
|
15
15
|
import { LLMMessage, formatMessagesForLLM, formatMessagesForLLMContext } from "./format-messages.js";
|
|
16
16
|
import { getInProcessFetch, registerAppFetch } from "./in-process-fetch.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, SentinelError, SentinelVerifyResult, 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, computePrefixSignature, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countCacheMarkers, countHistoryCacheMarkers, 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, isSentinelEnabled, isSentinelUpstreamUnavailable, 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, verifySentinelPayload, 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, SentinelError, SentinelVerifyResult, 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, computePrefixSignature, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countCacheMarkers, countHistoryCacheMarkers, 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, getTemplateEnvironmentVariables, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isEnvironmentCredentialAccessEnabled, isInternalServiceToken, isPoWEnabled, isProduction, isSentinelEnabled, isSentinelUpstreamUnavailable, 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, verifySentinelPayload, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|
package/dist/utils/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { PinoLogger, getLogger, loggerFactory, runWithLogContext } from "./logge
|
|
|
4
4
|
import { decodeJwtPayload, deriveKidFromPublicKey, extractBearerToken, getJwtSecret, hasIssuer, signJwt, verifyJwt } from "./jwt-helpers.js";
|
|
5
5
|
import { InternalServices, generateInternalServiceToken, isInternalServiceToken, validateInternalServiceProjectAccess, validateInternalServiceTenantAccess, verifyInternalServiceAuthHeader, verifyInternalServiceToken } from "./internal-service-auth.js";
|
|
6
6
|
import { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, makeAllPropertiesRequired, normalizeDataComponentSchema, preview, stripUnsupportedConstraints } from "./schema-conversion.js";
|
|
7
|
+
import { getTemplateEnvironmentVariables, isDevelopment, isEnvironmentCredentialAccessEnabled, isProduction, isTest } from "./env-detection.js";
|
|
7
8
|
import { configureComposioMCPServer, deleteComposioConnectedAccount, extractComposioServerId, fetchComposioServers, fetchSingleComposioServer, getComposioInstance, getComposioOAuthRedirectUrl, getComposioUserId, isComposioMCPServerAuthenticated } from "./third-party-mcp-servers/composio-client.js";
|
|
8
9
|
import { isThirdPartyMCPServerAuthenticated } from "./third-party-mcp-servers/third-party-check.js";
|
|
9
10
|
import "./third-party-mcp-servers/index.js";
|
|
@@ -14,7 +15,6 @@ import { extractPublicId, generateApiKey, generateAppCredential, getMetadataFrom
|
|
|
14
15
|
import { computeNextRunAt } from "./compute-next-run-at.js";
|
|
15
16
|
import { normalizeDateString, toISODateString } from "./date.js";
|
|
16
17
|
import { validateOrigin } from "./domain-validation.js";
|
|
17
|
-
import { isDevelopment, isProduction, isTest } from "./env-detection.js";
|
|
18
18
|
import { formatMessagesForLLM, formatMessagesForLLMContext } from "./format-messages.js";
|
|
19
19
|
import { getInProcessFetch, registerAppFetch } from "./in-process-fetch.js";
|
|
20
20
|
import { JsonTransformer } from "./JsonTransformer.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, buildConversationUserProperties, commonCreateErrorResponses, commonDeleteErrorResponses, commonGetErrorResponses, commonUpdateErrorResponses, computeNextRunAt, computePrefixSignature, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countCacheMarkers, countHistoryCacheMarkers, 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, isSentinelEnabled, isSentinelUpstreamUnavailable, 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, verifySentinelPayload, 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, computePrefixSignature, configureComposioMCPServer, convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, countCacheMarkers, countHistoryCacheMarkers, 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, getTemplateEnvironmentVariables, getTracer, getWaitUntil, handleApiError, hasIssuer, hashApiKey, hashAuthenticationHeaders, hashTriggerHeaderValue, initiateMcpOAuthFlow, interpolateTemplate, isApiKeyExpired, isComposioMCPServerAuthenticated, isDevelopment, isEnvironmentCredentialAccessEnabled, isInternalServiceToken, isPoWEnabled, isProduction, isSentinelEnabled, isSentinelUpstreamUnavailable, 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, verifySentinelPayload, verifyServiceToken, verifySignatureWithConfig, verifySlackLinkToken, verifySlackUserToken, verifyTempToken, verifyTriggerAuth };
|